@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.
- package/dist/App.vue.d.ts +2 -0
- package/dist/_basePickBy-CkZky1V-.js +135 -0
- package/dist/_baseUniq-f11MNaXe.js +573 -0
- package/dist/abap--jVlqvLx.js +2 -0
- package/dist/actionscript-3-N1AoJtTA.js +2 -0
- package/dist/ada-CYGINLea.js +2 -0
- package/dist/andromeeda-CvsZnG9k.js +2 -0
- package/dist/angular-html-C5vmpet2.js +14 -0
- package/dist/angular-html-CLTv4jM9.js +5 -0
- package/dist/angular-ts-BKqJWrwt.js +19 -0
- package/dist/apache-D6X-_dyJ.js +2 -0
- package/dist/apex-C7VgAgAE.js +2 -0
- package/dist/apl-BcJs32yU.js +15 -0
- package/dist/applescript-DN64Su6U.js +2 -0
- package/dist/ara-Dm1jHrgg.js +2 -0
- package/dist/arc-Dh_0vvHo.js +78 -0
- package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
- package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
- package/dist/array-CkdOJbdT.js +5 -0
- package/dist/asciidoc-BpqtqRF5.js +2 -0
- package/dist/asm-DUGlKYIq.js +2 -0
- package/dist/astro-q-huTQEP.js +16 -0
- package/dist/aurora-x-DwOih-un.js +2 -0
- package/dist/awk-DcnVbJrN.js +2 -0
- package/dist/ayu-dark-Bd-89MKE.js +2 -0
- package/dist/ballerina-BQVdQd9X.js +2 -0
- package/dist/bash-DI_p7w58.js +2 -0
- package/dist/bat-juB1J52r.js +2 -0
- package/dist/beancount-ThxIlRc3.js +2 -0
- package/dist/berry-qC18BfC_.js +2 -0
- package/dist/bibtex-CahMDY_0.js +2 -0
- package/dist/bicep-CHLBKS47.js +2 -0
- package/dist/blade-Ckff5WJQ.js +19 -0
- package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
- package/dist/bsl-BTNab0FD.js +3 -0
- package/dist/c-BYDGkYzS.js +2 -0
- package/dist/c-CX6yudYR.js +2 -0
- package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
- package/dist/cadence-DA5J9-Di.js +2 -0
- package/dist/cairo-DUZgbTPW.js +3 -0
- package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
- package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
- package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
- package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
- package/dist/channel-BrxVk5HC.js +3 -0
- package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
- package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
- package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
- package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
- package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
- package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
- package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
- package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
- package/dist/chunk-DNh5sLlG.js +18 -0
- package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
- package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
- package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
- package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
- package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
- package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
- package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
- package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
- package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
- package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
- package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
- package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
- package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
- package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
- package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
- package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
- package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
- package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
- package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
- package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
- package/dist/clarity-CsFOkG3c.js +2 -0
- package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
- package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
- package/dist/clojure-u1TZmmdQ.js +2 -0
- package/dist/clone-BRioDvRr.js +7 -0
- package/dist/cmake-CA3Lfsq7.js +2 -0
- package/dist/cmake-K1k8HMYR.js +2 -0
- package/dist/cobol-DhzLzJib.js +10 -0
- package/dist/codeowners-l4eSxhtA.js +2 -0
- package/dist/codeql-5CeQaktT.js +2 -0
- package/dist/coffee-P21KTKMu.js +3 -0
- package/dist/common-lisp-BVttGbYJ.js +2 -0
- package/dist/components/ChatConversation/ChatConversation.vue.d.ts +7 -0
- package/dist/components/ChatConversation/index.d.ts +1 -0
- package/dist/components/ChatPromptInputProvider/ChatPromptInputProvider.vue.d.ts +17 -0
- package/dist/components/ChatPromptInputProvider/index.d.ts +1 -0
- package/dist/components/ai-elements/artifact/Artifact.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/ArtifactAction.vue.d.ts +32 -0
- package/dist/components/ai-elements/artifact/ArtifactActions.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/ArtifactClose.vue.d.ts +27 -0
- package/dist/components/ai-elements/artifact/ArtifactContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/ArtifactDescription.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/ArtifactHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/ArtifactTitle.vue.d.ts +21 -0
- package/dist/components/ai-elements/artifact/index.d.ts +8 -0
- package/dist/components/ai-elements/canvas/index.d.ts +1 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThought.vue.d.ts +30 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue.d.ts +22 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue.d.ts +21 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue.d.ts +21 -0
- package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue.d.ts +28 -0
- package/dist/components/ai-elements/chain-of-thought/context.d.ts +6 -0
- package/dist/components/ai-elements/chain-of-thought/index.d.ts +7 -0
- package/dist/components/ai-elements/checkpoint/Checkpoint.vue.d.ts +21 -0
- package/dist/components/ai-elements/checkpoint/CheckpointIcon.vue.d.ts +21 -0
- package/dist/components/ai-elements/checkpoint/CheckpointTrigger.vue.d.ts +27 -0
- package/dist/components/ai-elements/checkpoint/index.d.ts +3 -0
- package/dist/components/ai-elements/code-block/CodeBlock.vue.d.ts +27 -0
- package/dist/components/ai-elements/code-block/CodeBlockCopyButton.vue.d.ts +30 -0
- package/dist/components/ai-elements/code-block/context.d.ts +5 -0
- package/dist/components/ai-elements/code-block/index.d.ts +2 -0
- package/dist/components/ai-elements/code-block/utils.d.ts +2 -0
- package/dist/components/ai-elements/confirmation/Confirmation.vue.d.ts +25 -0
- package/dist/components/ai-elements/confirmation/ConfirmationAccepted.vue.d.ts +17 -0
- package/dist/components/ai-elements/confirmation/ConfirmationAction.vue.d.ts +17 -0
- package/dist/components/ai-elements/confirmation/ConfirmationActions.vue.d.ts +21 -0
- package/dist/components/ai-elements/confirmation/ConfirmationRejected.vue.d.ts +17 -0
- package/dist/components/ai-elements/confirmation/ConfirmationRequest.vue.d.ts +17 -0
- package/dist/components/ai-elements/confirmation/ConfirmationTitle.vue.d.ts +21 -0
- package/dist/components/ai-elements/confirmation/context.d.ts +29 -0
- package/dist/components/ai-elements/confirmation/index.d.ts +7 -0
- package/dist/components/ai-elements/connection/Connection.vue.d.ts +3 -0
- package/dist/components/ai-elements/connection/index.d.ts +1 -0
- package/dist/components/ai-elements/context/Context.vue.d.ts +25 -0
- package/dist/components/ai-elements/context/ContextCacheUsage.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextContentBody.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextContentFooter.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextContentHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextIcon.vue.d.ts +2 -0
- package/dist/components/ai-elements/context/ContextInputUsage.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextOutputUsage.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextReasoningUsage.vue.d.ts +21 -0
- package/dist/components/ai-elements/context/ContextTrigger.vue.d.ts +17 -0
- package/dist/components/ai-elements/context/TokensWithCost.vue.d.ts +6 -0
- package/dist/components/ai-elements/context/context.d.ts +11 -0
- package/dist/components/ai-elements/context/index.d.ts +12 -0
- package/dist/components/ai-elements/controls/Controls.vue.d.ts +6 -0
- package/dist/components/ai-elements/controls/index.d.ts +1 -0
- package/dist/components/ai-elements/conversation/Conversation.vue.d.ts +47 -0
- package/dist/components/ai-elements/conversation/ConversationContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/conversation/ConversationEmptyState.vue.d.ts +27 -0
- package/dist/components/ai-elements/conversation/ConversationScrollButton.vue.d.ts +6 -0
- package/dist/components/ai-elements/conversation/index.d.ts +4 -0
- package/dist/components/ai-elements/edge/Animated.vue.d.ts +4 -0
- package/dist/components/ai-elements/edge/Temporary.vue.d.ts +4 -0
- package/dist/components/ai-elements/edge/index.d.ts +2 -0
- package/dist/components/ai-elements/image/Image.vue.d.ts +8 -0
- package/dist/components/ai-elements/image/index.d.ts +1 -0
- package/dist/components/ai-elements/inline-citation/InlineCitation.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCard.vue.d.ts +24 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCardBody.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue.d.ts +7 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarousel.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue.d.ts +17 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue.d.ts +6 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue.d.ts +6 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationQuote.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationSource.vue.d.ts +24 -0
- package/dist/components/ai-elements/inline-citation/InlineCitationText.vue.d.ts +21 -0
- package/dist/components/ai-elements/inline-citation/index.d.ts +14 -0
- package/dist/components/ai-elements/loader/Loader.vue.d.ts +9 -0
- package/dist/components/ai-elements/loader/LoaderIcon.vue.d.ts +7 -0
- package/dist/components/ai-elements/loader/index.d.ts +2 -0
- package/dist/components/ai-elements/message/Message.vue.d.ts +23 -0
- package/dist/components/ai-elements/message/MessageAction.vue.d.ts +28 -0
- package/dist/components/ai-elements/message/MessageActions.vue.d.ts +21 -0
- package/dist/components/ai-elements/message/MessageAttachment.vue.d.ts +12 -0
- package/dist/components/ai-elements/message/MessageAttachments.vue.d.ts +21 -0
- package/dist/components/ai-elements/message/MessageAvatar.vue.d.ts +8 -0
- package/dist/components/ai-elements/message/MessageBranch.vue.d.ts +28 -0
- package/dist/components/ai-elements/message/MessageBranchContent.vue.d.ts +6 -0
- package/dist/components/ai-elements/message/MessageBranchNext.vue.d.ts +17 -0
- package/dist/components/ai-elements/message/MessageBranchPage.vue.d.ts +6 -0
- package/dist/components/ai-elements/message/MessageBranchPrevious.vue.d.ts +17 -0
- package/dist/components/ai-elements/message/MessageBranchSelector.vue.d.ts +21 -0
- package/dist/components/ai-elements/message/MessageContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/message/MessageResponse.vue.d.ts +7 -0
- package/dist/components/ai-elements/message/MessageToolbar.vue.d.ts +21 -0
- package/dist/components/ai-elements/message/context.d.ts +11 -0
- package/dist/components/ai-elements/message/index.d.ts +15 -0
- package/dist/components/ai-elements/model-selector/ModelSelector.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorContent.vue.d.ts +24 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorDialog.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorEmpty.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorGroup.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorInput.vue.d.ts +6 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorItem.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorList.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorLogo.vue.d.ts +7 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue.d.ts +21 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorName.vue.d.ts +21 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorSeparator.vue.d.ts +2 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorShortcut.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/ModelSelectorTrigger.vue.d.ts +17 -0
- package/dist/components/ai-elements/model-selector/index.d.ts +14 -0
- package/dist/components/ai-elements/node/Node.vue.d.ts +26 -0
- package/dist/components/ai-elements/node/NodeAction.vue.d.ts +17 -0
- package/dist/components/ai-elements/node/NodeContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/node/NodeDescription.vue.d.ts +17 -0
- package/dist/components/ai-elements/node/NodeFooter.vue.d.ts +21 -0
- package/dist/components/ai-elements/node/NodeHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/node/NodeTitle.vue.d.ts +17 -0
- package/dist/components/ai-elements/node/index.d.ts +7 -0
- package/dist/components/ai-elements/open-in-chat/OpenIn.vue.d.ts +20 -0
- package/dist/components/ai-elements/open-in-chat/OpenInContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/open-in-chat/OpenInItemLink.vue.d.ts +8 -0
- package/dist/components/ai-elements/open-in-chat/OpenInTrigger.vue.d.ts +17 -0
- package/dist/components/ai-elements/open-in-chat/context.d.ts +7 -0
- package/dist/components/ai-elements/open-in-chat/index.d.ts +9 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/Claude.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/Cursor.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/Github.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/Scira.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/V0.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/icons/index.d.ts +6 -0
- package/dist/components/ai-elements/open-in-chat/providers/index.d.ts +38 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue.d.ts +2 -0
- package/dist/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue.d.ts +2 -0
- package/dist/components/ai-elements/panel/Panel.vue.d.ts +25 -0
- package/dist/components/ai-elements/panel/index.d.ts +1 -0
- package/dist/components/ai-elements/plan/Plan.vue.d.ts +24 -0
- package/dist/components/ai-elements/plan/PlanAction.vue.d.ts +17 -0
- package/dist/components/ai-elements/plan/PlanContent.vue.d.ts +17 -0
- package/dist/components/ai-elements/plan/PlanDescription.vue.d.ts +22 -0
- package/dist/components/ai-elements/plan/PlanFooter.vue.d.ts +17 -0
- package/dist/components/ai-elements/plan/PlanHeader.vue.d.ts +21 -0
- package/dist/components/ai-elements/plan/PlanTitle.vue.d.ts +18 -0
- package/dist/components/ai-elements/plan/PlanTrigger.vue.d.ts +6 -0
- package/dist/components/ai-elements/plan/context.d.ts +7 -0
- package/dist/components/ai-elements/plan/index.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInput.vue.d.ts +46 -0
- package/dist/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue.d.ts +7 -0
- package/dist/components/ai-elements/prompt-input/PromptInputActionMenu.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputAttachment.vue.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInputAttachments.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputBody.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputButton.vue.d.ts +20 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommand.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandGroup.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandInput.vue.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandItem.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandList.vue.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInputFooter.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputHeader.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputHoverCard.vue.d.ts +26 -0
- package/dist/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputProvider.vue.d.ts +43 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSelect.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSelectContent.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSelectItem.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSelectValue.vue.d.ts +23 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSpeechButton.vue.d.ts +51 -0
- package/dist/components/ai-elements/prompt-input/PromptInputSubmit.vue.d.ts +30 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTab.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTabBody.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTabItem.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTabLabel.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTabsList.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTextarea.vue.d.ts +8 -0
- package/dist/components/ai-elements/prompt-input/PromptInputTools.vue.d.ts +21 -0
- package/dist/components/ai-elements/prompt-input/context.d.ts +22 -0
- package/dist/components/ai-elements/prompt-input/index.d.ts +39 -0
- package/dist/components/ai-elements/prompt-input/types.d.ts +24 -0
- package/dist/components/ai-elements/queue/Queue.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItem.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItemAction.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItemActions.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItemAttachment.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItemContent.vue.d.ts +24 -0
- package/dist/components/ai-elements/queue/QueueItemDescription.vue.d.ts +24 -0
- package/dist/components/ai-elements/queue/QueueItemFile.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueItemImage.vue.d.ts +6 -0
- package/dist/components/ai-elements/queue/QueueItemIndicator.vue.d.ts +9 -0
- package/dist/components/ai-elements/queue/QueueList.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueSection.vue.d.ts +24 -0
- package/dist/components/ai-elements/queue/QueueSectionContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/QueueSectionLabel.vue.d.ts +23 -0
- package/dist/components/ai-elements/queue/QueueSectionTrigger.vue.d.ts +21 -0
- package/dist/components/ai-elements/queue/index.d.ts +15 -0
- package/dist/components/ai-elements/reasoning/Reasoning.vue.d.ts +35 -0
- package/dist/components/ai-elements/reasoning/ReasoningContent.vue.d.ts +7 -0
- package/dist/components/ai-elements/reasoning/ReasoningTrigger.vue.d.ts +21 -0
- package/dist/components/ai-elements/reasoning/context.d.ts +9 -0
- package/dist/components/ai-elements/reasoning/index.d.ts +3 -0
- package/dist/components/ai-elements/shimmer/Shimmer.vue.d.ts +28 -0
- package/dist/components/ai-elements/shimmer/index.d.ts +1 -0
- package/dist/components/ai-elements/sources/Source.vue.d.ts +23 -0
- package/dist/components/ai-elements/sources/Sources.vue.d.ts +21 -0
- package/dist/components/ai-elements/sources/SourcesContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/sources/SourcesTrigger.vue.d.ts +22 -0
- package/dist/components/ai-elements/sources/index.d.ts +4 -0
- package/dist/components/ai-elements/suggestion/Suggestion.vue.d.ts +31 -0
- package/dist/components/ai-elements/suggestion/Suggestions.vue.d.ts +21 -0
- package/dist/components/ai-elements/suggestion/index.d.ts +2 -0
- package/dist/components/ai-elements/task/Task.vue.d.ts +28 -0
- package/dist/components/ai-elements/task/TaskContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/task/TaskItem.vue.d.ts +21 -0
- package/dist/components/ai-elements/task/TaskItemFile.vue.d.ts +21 -0
- package/dist/components/ai-elements/task/TaskTrigger.vue.d.ts +22 -0
- package/dist/components/ai-elements/task/index.d.ts +5 -0
- package/dist/components/ai-elements/tool/Tool.vue.d.ts +21 -0
- package/dist/components/ai-elements/tool/ToolContent.vue.d.ts +21 -0
- package/dist/components/ai-elements/tool/ToolHeader.vue.d.ts +10 -0
- package/dist/components/ai-elements/tool/ToolInput.vue.d.ts +8 -0
- package/dist/components/ai-elements/tool/ToolOutput.vue.d.ts +9 -0
- package/dist/components/ai-elements/tool/ToolStatusBadge.vue.d.ts +6 -0
- package/dist/components/ai-elements/tool/index.d.ts +5 -0
- package/dist/components/ai-elements/toolbar/Toolbar.vue.d.ts +25 -0
- package/dist/components/ai-elements/toolbar/index.d.ts +1 -0
- package/dist/components/ai-elements/web-preview/WebPreview.vue.d.ts +34 -0
- package/dist/components/ai-elements/web-preview/WebPreviewBody.vue.d.ts +24 -0
- package/dist/components/ai-elements/web-preview/WebPreviewConsole.vue.d.ts +30 -0
- package/dist/components/ai-elements/web-preview/WebPreviewNavigation.vue.d.ts +21 -0
- package/dist/components/ai-elements/web-preview/WebPreviewNavigationButton.vue.d.ts +30 -0
- package/dist/components/ai-elements/web-preview/WebPreviewUrl.vue.d.ts +9 -0
- package/dist/components/ai-elements/web-preview/context.d.ts +9 -0
- package/dist/components/ai-elements/web-preview/index.d.ts +7 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
- package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/components/ui/alert/index.d.ts +8 -0
- package/dist/components/ui/avatar/Avatar.vue.d.ts +21 -0
- package/dist/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/components/ui/avatar/index.d.ts +3 -0
- package/dist/components/ui/badge/Badge.vue.d.ts +24 -0
- package/dist/components/ui/badge/index.d.ts +6 -0
- package/dist/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +7 -0
- package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +23 -0
- package/dist/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
- package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +26 -0
- package/dist/components/ui/button-group/index.d.ts +8 -0
- package/dist/components/ui/card/Card.vue.d.ts +21 -0
- package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
- package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
- package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
- package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
- package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
- package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
- package/dist/components/ui/card/index.d.ts +7 -0
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +22 -0
- package/dist/components/ui/carousel/CarouselItem.vue.d.ts +18 -0
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +26 -0
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +26 -0
- package/dist/components/ui/carousel/index.d.ts +7 -0
- package/dist/components/ui/carousel/interface.d.ts +19 -0
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
- package/dist/components/ui/collapsible/index.d.ts +3 -0
- package/dist/components/ui/command/Command.vue.d.ts +40 -0
- package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
- package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
- package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
- package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
- package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
- package/dist/components/ui/command/index.d.ts +90 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dialog/index.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/hover-card/HoverCard.vue.d.ts +24 -0
- package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +24 -0
- package/dist/components/ui/hover-card/HoverCardTrigger.vue.d.ts +18 -0
- package/dist/components/ui/hover-card/index.d.ts +3 -0
- package/dist/components/ui/input/Input.vue.d.ts +12 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/input-group/InputGroup.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupAddon.vue.d.ts +25 -0
- package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupInput.vue.d.ts +6 -0
- package/dist/components/ui/input-group/InputGroupText.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupTextarea.vue.d.ts +6 -0
- package/dist/components/ui/input-group/index.d.ts +22 -0
- package/dist/components/ui/progress/Progress.vue.d.ts +9 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
- package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +23 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +12 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/components/ui/tooltip/index.d.ts +4 -0
- package/dist/composables/useChat.d.ts +8 -0
- package/dist/coq-CZjzQDnb.js +2 -0
- package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
- package/dist/cpp-C6JyDxZu.js +16 -0
- package/dist/cpp-GAIEvywS.js +6 -0
- package/dist/crystal-BJfcoGS4.js +16 -0
- package/dist/csharp-BbUwciq4.js +2 -0
- package/dist/csharp-JE-9ns6W.js +2 -0
- package/dist/css-Crp0iO_o.js +2 -0
- package/dist/css-Cy-fypCV.js +2 -0
- package/dist/csv-DJ7xG4PY.js +2 -0
- package/dist/csv-DtT8LmMi.js +2 -0
- package/dist/cue-BwjaQTCz.js +2 -0
- package/dist/cypher-B7e06enY.js +2 -0
- package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
- package/dist/d-q60wkid4.js +2 -0
- package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
- package/dist/dagre-DtvXp3zQ.js +1395 -0
- package/dist/dark-plus-D_fA88xf.js +2 -0
- package/dist/dart-DjkWvBgr.js +2 -0
- package/dist/dax-lueLIZQI.js +2 -0
- package/dist/defaultLocale-CoJOMwPq.js +177 -0
- package/dist/desktop-DaphHKD5.js +2 -0
- package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
- package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
- package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
- package/dist/diff-COB48_rb.js +2 -0
- package/dist/diff-DlXnqUMK.js +2 -0
- package/dist/dist-CrnZo_23.js +49 -0
- package/dist/docker-DZKmuwpA.js +2 -0
- package/dist/dotenv-hmNahw-8.js +2 -0
- package/dist/dracula-ddM3a7au.js +2 -0
- package/dist/dracula-soft-vfA-TA_S.js +2 -0
- package/dist/dream-maker-Cxa2a8FY.js +2 -0
- package/dist/edge-Dm7HQa9N.js +12 -0
- package/dist/elixir-BkvHyCNd.js +5 -0
- package/dist/elm-rz9wTSrn.js +4 -0
- package/dist/emacs-lisp-w5URnZPZ.js +2 -0
- package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
- package/dist/erb-DyrwQYVz.js +25 -0
- package/dist/erlang-DLFKZs5N.js +3 -0
- package/dist/everforest-dark-DAPtv4yI.js +2 -0
- package/dist/everforest-light-nQzYm8GO.js +2 -0
- package/dist/fennel-CJDNJZTU.js +2 -0
- package/dist/fish-BkYaLI4-.js +2 -0
- package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
- package/dist/fluent-DShra35H.js +2 -0
- package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
- package/dist/fortran-free-form-CgbOAJnm.js +2 -0
- package/dist/fortran-free-form-Js8JrQQE.js +2 -0
- package/dist/fsharp-CtWO0jvL.js +3 -0
- package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
- package/dist/gdresource-CgyXKpe4.js +8 -0
- package/dist/gdscript-DnurdQnh.js +2 -0
- package/dist/gdscript-STdmRKv-.js +2 -0
- package/dist/gdshader-Bs2s6cSB.js +2 -0
- package/dist/gdshader-YiVaPq6D.js +2 -0
- package/dist/genie-BppkvzZC.js +2 -0
- package/dist/gherkin-Bp4zdWMb.js +2 -0
- package/dist/git-commit--0GGwZNa.js +3 -0
- package/dist/git-rebase-orw-bSIZ.js +3 -0
- package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
- package/dist/github-dark-CMN1tZPn.js +2 -0
- package/dist/github-dark-DxCf_Qaz.js +2 -0
- package/dist/github-dark-default-DVCJut02.js +2 -0
- package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
- package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
- package/dist/github-light-CfdX7txK.js +2 -0
- package/dist/github-light-Y8g-VxKq.js +2 -0
- package/dist/github-light-default-BNGkGE--.js +2 -0
- package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
- package/dist/gleam-Lw0tKp8T.js +2 -0
- package/dist/glimmer-js-C6E6wJv0.js +12 -0
- package/dist/glimmer-ts-C6GgTGNO.js +12 -0
- package/dist/glsl-D8_YBRKT.js +3 -0
- package/dist/glsl-rwn_QCp2.js +3 -0
- package/dist/gnuplot-BeA3etmO.js +2 -0
- package/dist/go-BhDDN9y4.js +2 -0
- package/dist/go-xfE7BrfS.js +2 -0
- package/dist/graphlib-BZdVmxO6.js +223 -0
- package/dist/graphql-DQHhbQm2.js +6 -0
- package/dist/graphql-DoBLseH6.js +12 -0
- package/dist/groovy-C5-mv4io.js +2 -0
- package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
- package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
- package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
- package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
- package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
- package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
- package/dist/hack-DEAxoi73.js +10 -0
- package/dist/haml-BG2d3iX4.js +4 -0
- package/dist/haml-mA656Lm7.js +8 -0
- package/dist/handlebars-CO5xAxJ3.js +12 -0
- package/dist/haskell-Hsexh2aP.js +2 -0
- package/dist/haxe-BJVSeYxy.js +2 -0
- package/dist/haxe-CD_Rs3P5.js +2 -0
- package/dist/hcl-D098sJ_J.js +2 -0
- package/dist/hjson-BwXHX5r6.js +2 -0
- package/dist/hlsl-B0pnUVYG.js +2 -0
- package/dist/hlsl-Dt9-unql.js +2 -0
- package/dist/houston-C7hMWO_I.js +2 -0
- package/dist/html-DFCxtjnd.js +4 -0
- package/dist/html-DKSj3FeM.js +8 -0
- package/dist/html-derivative-BCRkrTcD.js +5 -0
- package/dist/html-derivative-C-vidKoA.js +3 -0
- package/dist/http-CYP1tEDW.js +17 -0
- package/dist/hurl-BJexUSKz.js +15 -0
- package/dist/hxml-XfuSEjM-.js +3 -0
- package/dist/hy-DPQ04rHt.js +2 -0
- package/dist/imba-Bgu2n5Mo.js +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2984 -0
- package/dist/index.mjs +37693 -0
- package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
- package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
- package/dist/ini-g9mZnyrk.js +2 -0
- package/dist/init-CBay3kgM.js +13 -0
- package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
- package/dist/isEmpty-CCym_WUL.js +32 -0
- package/dist/java-CUbPyze1.js +2 -0
- package/dist/java-DIOGgqAD.js +2 -0
- package/dist/javascript-9-JPeKdm.js +2 -0
- package/dist/javascript-De1qhUaI.js +2 -0
- package/dist/jinja-CVFxFRh6.js +5 -0
- package/dist/jison-0X6LppGq.js +3 -0
- package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
- package/dist/json-DJtYdWQK.js +2 -0
- package/dist/json-fcFpRaf3.js +2 -0
- package/dist/json5-CPTZJOmf.js +2 -0
- package/dist/jsonc-CYrayg0k.js +2 -0
- package/dist/jsonl-Bsv7LjJ3.js +2 -0
- package/dist/jsonnet-B7LkHJxg.js +2 -0
- package/dist/jssm-BopKGZKg.js +2 -0
- package/dist/jsx-Bf3Nk9Di.js +2 -0
- package/dist/jsx-qo0JNHpZ.js +2 -0
- package/dist/julia-ChGs-n_c.js +17 -0
- package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
- package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
- package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
- package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
- package/dist/katex-BcWXJDMd.js +22097 -0
- package/dist/katex-K1dsczyg.js +2 -0
- package/dist/kdl-BbokxoZ9.js +2 -0
- package/dist/kotlin-3dXKmwyJ.js +2 -0
- package/dist/kusto-Os6_yHEz.js +2 -0
- package/dist/laserwave-8RcN1zf8.js +2 -0
- package/dist/latex-BnWZlY4q.js +4 -0
- package/dist/lean--0Wr4Cy4.js +2 -0
- package/dist/less-B4ybD-7s.js +2 -0
- package/dist/less-Cb54jO7u.js +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/light-plus-CP_iZQDF.js +2 -0
- package/dist/line-EpckC7pZ.js +30 -0
- package/dist/linear-DjVN4o4U.js +250 -0
- package/dist/liquid-pc5Mduds.js +12 -0
- package/dist/llvm-ILH_SX7E.js +2 -0
- package/dist/log-DwO_GzA0.js +2 -0
- package/dist/logo-B4FeRowR.js +2 -0
- package/dist/lua-0TqNbT8C.js +3 -0
- package/dist/lua-6pXga3HV.js +3 -0
- package/dist/luau-DsUEyLJN.js +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/make-p6NYc19I.js +2 -0
- package/dist/markdown-CCRtgC0b.js +2 -0
- package/dist/markdown-LaaQ4Eua.js +2 -0
- package/dist/marked.esm-D9xINNve.js +1384 -0
- package/dist/marko-D8uDUUEs.js +12 -0
- package/dist/material-theme-D__z84-n.js +2 -0
- package/dist/material-theme-darker-CWC5BoMv.js +2 -0
- package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
- package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
- package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
- package/dist/math-CJAnbPum.js +8 -0
- package/dist/matlab-CL0oMGfq.js +2 -0
- package/dist/mdc-Ki3KnB5U.js +13 -0
- package/dist/mdx-BTufVkNP.js +2 -0
- package/dist/mermaid-FCjIh1A7.js +2 -0
- package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
- package/dist/mermaid.core-Ra1JFCui.js +895 -0
- package/dist/min-dark-B4KRMcN3.js +2 -0
- package/dist/min-light-BQVJODr0.js +2 -0
- package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
- package/dist/mipsasm-Cn6AQ4lM.js +2 -0
- package/dist/mojo-C9IiQhp4.js +2 -0
- package/dist/monokai-vDwMMRi4.js +2 -0
- package/dist/move-BdizQ4_I.js +2 -0
- package/dist/narrat-BP2kx-u2.js +2 -0
- package/dist/nextflow-CyRmCGOe.js +2 -0
- package/dist/nginx-B46vdQ9n.js +4 -0
- package/dist/night-owl-DmjkOa5g.js +2 -0
- package/dist/nim-BxQNx10D.js +19 -0
- package/dist/nix-qPhlsqZI.js +2 -0
- package/dist/nord-sjxbvIbg.js +2 -0
- package/dist/nushell-puA-1bCW.js +2 -0
- package/dist/objective-c-D-qDLNy5.js +2 -0
- package/dist/objective-cpp-CFxSAM6p.js +2 -0
- package/dist/ocaml-CsLB7SWJ.js +2 -0
- package/dist/one-dark-pro-BHH-VjFD.js +2 -0
- package/dist/one-light-BqE6erWk.js +2 -0
- package/dist/openscad-DJCIQfnJ.js +2 -0
- package/dist/ordinal-CYQpsShT.js +61 -0
- package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
- package/dist/pascal-CPg9_ZFN.js +2 -0
- package/dist/path-esxOUfAH.js +79 -0
- package/dist/perl-D1bDaADZ.js +15 -0
- package/dist/php-BX51InqL.js +9 -0
- package/dist/php-D5tmU8Cr.js +16 -0
- package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
- package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
- package/dist/pkl-BQQ96hvn.js +2 -0
- package/dist/plastic-BrNUBdSC.js +2 -0
- package/dist/plsql-Co7Bxe7U.js +2 -0
- package/dist/po-BqzJCro7.js +2 -0
- package/dist/poimandres-C_AK8TlO.js +2 -0
- package/dist/polar-CtdYIPEe.js +2 -0
- package/dist/postcss-ChqFKb46.js +2 -0
- package/dist/postcss-ainQkoyY.js +2 -0
- package/dist/powerquery-CDugc1w-.js +2 -0
- package/dist/powershell-j5X-IA59.js +2 -0
- package/dist/prisma-Cyl7YhUw.js +2 -0
- package/dist/prolog-DELKnUYf.js +2 -0
- package/dist/proto-C4A_gDBY.js +2 -0
- package/dist/pug-BcLlS7Yb.js +10 -0
- package/dist/puppet-DFC9LyFj.js +2 -0
- package/dist/purescript-eECq7_n2.js +2 -0
- package/dist/python-BhdCuCld.js +2 -0
- package/dist/python-CuBu5pyY.js +2 -0
- package/dist/qml-MD0NqqIl.js +3 -0
- package/dist/qmldir-BpJII-Ze.js +2 -0
- package/dist/qss-CpMcemMc.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
- package/dist/r-CQeHOO4c.js +2 -0
- package/dist/r-D90zdkbN.js +2 -0
- package/dist/racket-COTs6Zfi.js +2 -0
- package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
- package/dist/raku-DfOtwMUC.js +2 -0
- package/dist/razor-eRwFWsjJ.js +10 -0
- package/dist/red-CWGFZsim.js +2 -0
- package/dist/reg-BX5DwoEA.js +2 -0
- package/dist/regexp-Ca0eDBa2.js +2 -0
- package/dist/regexp-Cap8fK_2.js +2 -0
- package/dist/rel-CzXuLSk3.js +2 -0
- package/dist/request/index.d.ts +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
- package/dist/riscv-DnFIiqh3.js +2 -0
- package/dist/rose-pine-C4v2iQVe.js +2 -0
- package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
- package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
- package/dist/rosmsg-D02ul3fM.js +2 -0
- package/dist/rst-DFmSdXGd.js +34 -0
- package/dist/ruby-BAEFomR0.js +20 -0
- package/dist/ruby-DDMUvAvC.js +28 -0
- package/dist/rust-s3hBbfQg.js +2 -0
- package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
- package/dist/sas-TjtLSnOp.js +3 -0
- package/dist/sass-v3HeJ9Fl.js +2 -0
- package/dist/scala-BTIBM_Vn.js +2 -0
- package/dist/scheme-C4NQMf7a.js +2 -0
- package/dist/scss-C-bthdG1.js +3 -0
- package/dist/scss-D-6-mg-f.js +3 -0
- package/dist/sdbl-BA3l-JrH.js +2 -0
- package/dist/sdbl-gc7zIVWR.js +2 -0
- package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
- package/dist/shaderlab-BRlB5fpk.js +3 -0
- package/dist/shellscript-BQ8mKDAF.js +2 -0
- package/dist/shellscript-DZa_4vvb.js +2 -0
- package/dist/shellsession-CIlmlgbR.js +3 -0
- package/dist/slack-dark-DhXO5DWr.js +2 -0
- package/dist/slack-ochin-aAGl4PPH.js +2 -0
- package/dist/smalltalk-DbwVUw_i.js +2 -0
- package/dist/snazzy-light-B4S5mk83.js +2 -0
- package/dist/solarized-dark-Dexkq3Fm.js +2 -0
- package/dist/solarized-light-I-Bzy8UC.js +2 -0
- package/dist/solidity-SMk0TJDc.js +2 -0
- package/dist/soy-DwSCrzEF.js +5 -0
- package/dist/sparql-D9kVSpEx.js +3 -0
- package/dist/splunk-DXXu2r7r.js +2 -0
- package/dist/sql-Bi3LyNPb.js +2 -0
- package/dist/sql-D0eLHBiZ.js +2 -0
- package/dist/src-B-SBGd0A.js +1975 -0
- package/dist/ssh-config-DyVcFTfI.js +2 -0
- package/dist/stata-DkEObyNb.js +3 -0
- package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
- package/dist/stylus-BKTuFHcX.js +2 -0
- package/dist/stylus-DEHALDNh.js +2 -0
- package/dist/svelte-KFuclcR6.js +12 -0
- package/dist/swift-Cenptrnf.js +2 -0
- package/dist/synthwave-84-BRkDuVE-.js +2 -0
- package/dist/system-verilog-Cvgukx4v.js +2 -0
- package/dist/systemd-BepdslJQ.js +2 -0
- package/dist/talonscript-Q98m-VXh.js +2 -0
- package/dist/tasl-uebrX98X.js +2 -0
- package/dist/tcl-B1Ny4XFf.js +2 -0
- package/dist/templ-C5mtYbb_.js +10 -0
- package/dist/terraform-0mA5ERTe.js +2 -0
- package/dist/tex-B4uYy1vC.js +3 -0
- package/dist/tex-BoVFa1ir.js +3 -0
- package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
- package/dist/tokyo-night-D0mU3-u8.js +2 -0
- package/dist/toml-vMAjra5M.js +2 -0
- package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
- package/dist/ts-tags-DRdTXGhb.js +38 -0
- package/dist/tsv-BnmbkntZ.js +2 -0
- package/dist/tsx-BaaPsUbd.js +2 -0
- package/dist/tsx-C0w0w5St.js +2 -0
- package/dist/turtle-4UWi_qX6.js +2 -0
- package/dist/turtle-BRmolh-6.js +2 -0
- package/dist/twig-cEhAbahS.js +33 -0
- package/dist/typescript-4YtK2JL4.js +2 -0
- package/dist/typescript-CmJ8D0yY.js +2 -0
- package/dist/typespec-CILw3zvZ.js +2 -0
- package/dist/typst-CLajFw6q.js +2 -0
- package/dist/v-MJV2RQvK.js +2 -0
- package/dist/vala-Dc1TiHw1.js +2 -0
- package/dist/vb-CoJdNmGs.js +2 -0
- package/dist/verilog-C7aVmiO0.js +2 -0
- package/dist/vesper-Cvcqyrim.js +2 -0
- package/dist/vhdl-CYQvzAG1.js +2 -0
- package/dist/viml-DOyjiDI8.js +2 -0
- package/dist/vitesse-black-CUYJaB5b.js +2 -0
- package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
- package/dist/vitesse-light-JU98KqVa.js +2 -0
- package/dist/vue-B3C4YeUK.js +8 -0
- package/dist/vue-DMpjAWNv.js +20 -0
- package/dist/vue-html-BIZN50ug.js +13 -0
- package/dist/vue-vine-DxezWcjL.js +22 -0
- package/dist/vyper-JU_r7Ch6.js +2 -0
- package/dist/wasm-DJ1S--fN.js +2 -0
- package/dist/wasm-eLFiAU8u.js +2 -0
- package/dist/wenyan-CqkzmyWz.js +2 -0
- package/dist/wgsl-gV62iTnF.js +2 -0
- package/dist/wikitext-BfUl8La4.js +2 -0
- package/dist/wit-kp_bCf2U.js +2 -0
- package/dist/wolfram-aPsN9AKt.js +2 -0
- package/dist/xml-BglBgo29.js +3 -0
- package/dist/xml-BxRdgEAX.js +3 -0
- package/dist/xsl-Cni90e0k.js +4 -0
- package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
- package/dist/yaml-DQRfaSRo.js +2 -0
- package/dist/yaml-P2kjOPvW.js +2 -0
- package/dist/zenscript-BuY4FX-t.js +2 -0
- package/dist/zig-CGDGjytz.js +2 -0
- package/package.json +66 -60
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -6
- package/auto-imports.d.ts +0 -73
- package/components.d.ts +0 -312
- package/components.json +0 -21
- package/index.html +0 -13
- package/src/App.vue +0 -68
- package/src/components/ChatConversation/ChatConversation.vue +0 -97
- package/src/components/ChatConversation/index.ts +0 -1
- package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
- package/src/components/ChatPromptInputProvider/index.ts +0 -1
- package/src/components/ai-elements/artifact/Artifact.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
- package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
- package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
- package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
- package/src/components/ai-elements/artifact/index.ts +0 -8
- package/src/components/ai-elements/canvas/Canvas.vue +0 -37
- package/src/components/ai-elements/canvas/index.ts +0 -1
- package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
- package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
- package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
- package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
- package/src/components/ai-elements/checkpoint/index.ts +0 -3
- package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
- package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
- package/src/components/ai-elements/code-block/context.ts +0 -7
- package/src/components/ai-elements/code-block/index.ts +0 -2
- package/src/components/ai-elements/code-block/utils.ts +0 -46
- package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
- package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
- package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
- package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
- package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
- package/src/components/ai-elements/confirmation/context.ts +0 -46
- package/src/components/ai-elements/confirmation/index.ts +0 -7
- package/src/components/ai-elements/connection/Connection.vue +0 -36
- package/src/components/ai-elements/connection/index.ts +0 -1
- package/src/components/ai-elements/context/Context.vue +0 -29
- package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextContent.vue +0 -20
- package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
- package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
- package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
- package/src/components/ai-elements/context/ContextIcon.vue +0 -62
- package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
- package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
- package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
- package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
- package/src/components/ai-elements/context/context.ts +0 -23
- package/src/components/ai-elements/context/index.ts +0 -12
- package/src/components/ai-elements/controls/Controls.vue +0 -25
- package/src/components/ai-elements/controls/index.ts +0 -1
- package/src/components/ai-elements/conversation/Conversation.vue +0 -37
- package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
- package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
- package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
- package/src/components/ai-elements/conversation/index.ts +0 -4
- package/src/components/ai-elements/edge/Animated.vue +0 -91
- package/src/components/ai-elements/edge/Temporary.vue +0 -28
- package/src/components/ai-elements/edge/index.ts +0 -2
- package/src/components/ai-elements/image/Image.vue +0 -29
- package/src/components/ai-elements/image/index.ts +0 -1
- package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
- package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
- package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
- package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
- package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
- package/src/components/ai-elements/inline-citation/index.ts +0 -14
- package/src/components/ai-elements/loader/Loader.vue +0 -23
- package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
- package/src/components/ai-elements/loader/index.ts +0 -2
- package/src/components/ai-elements/message/Message.vue +0 -27
- package/src/components/ai-elements/message/MessageAction.vue +0 -45
- package/src/components/ai-elements/message/MessageActions.vue +0 -19
- package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
- package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
- package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
- package/src/components/ai-elements/message/MessageBranch.vue +0 -66
- package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
- package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
- package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
- package/src/components/ai-elements/message/MessageContent.vue +0 -26
- package/src/components/ai-elements/message/MessageResponse.vue +0 -42
- package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
- package/src/components/ai-elements/message/context.ts +0 -22
- package/src/components/ai-elements/message/index.ts +0 -15
- package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
- package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
- package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
- package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
- package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
- package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
- package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
- package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
- package/src/components/ai-elements/model-selector/index.ts +0 -14
- package/src/components/ai-elements/node/Node.vue +0 -31
- package/src/components/ai-elements/node/NodeAction.vue +0 -9
- package/src/components/ai-elements/node/NodeContent.vue +0 -15
- package/src/components/ai-elements/node/NodeDescription.vue +0 -9
- package/src/components/ai-elements/node/NodeFooter.vue +0 -15
- package/src/components/ai-elements/node/NodeHeader.vue +0 -15
- package/src/components/ai-elements/node/NodeTitle.vue +0 -9
- package/src/components/ai-elements/node/index.ts +0 -7
- package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
- package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
- package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
- package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
- package/src/components/ai-elements/open-in-chat/context.ts +0 -20
- package/src/components/ai-elements/open-in-chat/index.ts +0 -9
- package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
- package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
- package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
- package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
- package/src/components/ai-elements/panel/Panel.vue +0 -28
- package/src/components/ai-elements/panel/index.ts +0 -1
- package/src/components/ai-elements/plan/Plan.vue +0 -32
- package/src/components/ai-elements/plan/PlanAction.vue +0 -9
- package/src/components/ai-elements/plan/PlanContent.vue +0 -12
- package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
- package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
- package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
- package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
- package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
- package/src/components/ai-elements/plan/context.ts +0 -20
- package/src/components/ai-elements/plan/index.ts +0 -8
- package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
- package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
- package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
- package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
- package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
- package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
- package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
- package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
- package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
- package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
- package/src/components/ai-elements/prompt-input/context.ts +0 -223
- package/src/components/ai-elements/prompt-input/index.ts +0 -39
- package/src/components/ai-elements/prompt-input/types.ts +0 -28
- package/src/components/ai-elements/queue/Queue.vue +0 -21
- package/src/components/ai-elements/queue/QueueItem.vue +0 -21
- package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
- package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
- package/src/components/ai-elements/queue/QueueList.vue +0 -22
- package/src/components/ai-elements/queue/QueueSection.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
- package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
- package/src/components/ai-elements/queue/index.ts +0 -15
- package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
- package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
- package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
- package/src/components/ai-elements/reasoning/context.ts +0 -19
- package/src/components/ai-elements/reasoning/index.ts +0 -3
- package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
- package/src/components/ai-elements/shimmer/index.ts +0 -1
- package/src/components/ai-elements/sources/Source.vue +0 -26
- package/src/components/ai-elements/sources/Sources.vue +0 -17
- package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
- package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
- package/src/components/ai-elements/sources/index.ts +0 -4
- package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
- package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
- package/src/components/ai-elements/suggestion/index.ts +0 -2
- package/src/components/ai-elements/task/Task.vue +0 -32
- package/src/components/ai-elements/task/TaskContent.vue +0 -27
- package/src/components/ai-elements/task/TaskItem.vue +0 -16
- package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
- package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
- package/src/components/ai-elements/task/index.ts +0 -5
- package/src/components/ai-elements/tool/Tool.vue +0 -18
- package/src/components/ai-elements/tool/ToolContent.vue +0 -23
- package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
- package/src/components/ai-elements/tool/ToolInput.vue +0 -32
- package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
- package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
- package/src/components/ai-elements/tool/index.ts +0 -5
- package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
- package/src/components/ai-elements/toolbar/index.ts +0 -1
- package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
- package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
- package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
- package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
- package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
- package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
- package/src/components/ai-elements/web-preview/context.ts +0 -25
- package/src/components/ai-elements/web-preview/index.ts +0 -7
- package/src/components/ui/alert/Alert.vue +0 -21
- package/src/components/ui/alert/AlertDescription.vue +0 -17
- package/src/components/ui/alert/AlertTitle.vue +0 -17
- package/src/components/ui/alert/index.ts +0 -24
- package/src/components/ui/avatar/Avatar.vue +0 -18
- package/src/components/ui/avatar/AvatarFallback.vue +0 -21
- package/src/components/ui/avatar/AvatarImage.vue +0 -16
- package/src/components/ui/avatar/index.ts +0 -3
- package/src/components/ui/badge/Badge.vue +0 -26
- package/src/components/ui/badge/index.ts +0 -26
- package/src/components/ui/button/Button.vue +0 -29
- package/src/components/ui/button/index.ts +0 -38
- package/src/components/ui/button-group/ButtonGroup.vue +0 -22
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
- package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
- package/src/components/ui/button-group/index.ts +0 -25
- package/src/components/ui/card/Card.vue +0 -22
- package/src/components/ui/card/CardAction.vue +0 -17
- package/src/components/ui/card/CardContent.vue +0 -17
- package/src/components/ui/card/CardDescription.vue +0 -17
- package/src/components/ui/card/CardFooter.vue +0 -17
- package/src/components/ui/card/CardHeader.vue +0 -17
- package/src/components/ui/card/CardTitle.vue +0 -17
- package/src/components/ui/card/index.ts +0 -7
- package/src/components/ui/carousel/Carousel.vue +0 -53
- package/src/components/ui/carousel/CarouselContent.vue +0 -33
- package/src/components/ui/carousel/CarouselItem.vue +0 -24
- package/src/components/ui/carousel/CarouselNext.vue +0 -41
- package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
- package/src/components/ui/carousel/index.ts +0 -10
- package/src/components/ui/carousel/interface.ts +0 -26
- package/src/components/ui/carousel/useCarousel.ts +0 -56
- package/src/components/ui/collapsible/Collapsible.vue +0 -19
- package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
- package/src/components/ui/collapsible/index.ts +0 -3
- package/src/components/ui/command/Command.vue +0 -87
- package/src/components/ui/command/CommandDialog.vue +0 -31
- package/src/components/ui/command/CommandEmpty.vue +0 -27
- package/src/components/ui/command/CommandGroup.vue +0 -45
- package/src/components/ui/command/CommandInput.vue +0 -39
- package/src/components/ui/command/CommandItem.vue +0 -76
- package/src/components/ui/command/CommandList.vue +0 -25
- package/src/components/ui/command/CommandSeparator.vue +0 -21
- package/src/components/ui/command/CommandShortcut.vue +0 -17
- package/src/components/ui/command/index.ts +0 -25
- package/src/components/ui/dialog/Dialog.vue +0 -19
- package/src/components/ui/dialog/DialogClose.vue +0 -15
- package/src/components/ui/dialog/DialogContent.vue +0 -53
- package/src/components/ui/dialog/DialogDescription.vue +0 -23
- package/src/components/ui/dialog/DialogFooter.vue +0 -15
- package/src/components/ui/dialog/DialogHeader.vue +0 -17
- package/src/components/ui/dialog/DialogOverlay.vue +0 -21
- package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
- package/src/components/ui/dialog/DialogTitle.vue +0 -23
- package/src/components/ui/dialog/DialogTrigger.vue +0 -15
- package/src/components/ui/dialog/index.ts +0 -10
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
- package/src/components/ui/dropdown-menu/index.ts +0 -16
- package/src/components/ui/hover-card/HoverCard.vue +0 -19
- package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
- package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
- package/src/components/ui/hover-card/index.ts +0 -3
- package/src/components/ui/input/Input.vue +0 -33
- package/src/components/ui/input/index.ts +0 -1
- package/src/components/ui/input-group/InputGroup.vue +0 -37
- package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
- package/src/components/ui/input-group/InputGroupButton.vue +0 -21
- package/src/components/ui/input-group/InputGroupInput.vue +0 -19
- package/src/components/ui/input-group/InputGroupText.vue +0 -19
- package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
- package/src/components/ui/input-group/index.ts +0 -59
- package/src/components/ui/progress/Progress.vue +0 -38
- package/src/components/ui/progress/index.ts +0 -1
- package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
- package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
- package/src/components/ui/scroll-area/index.ts +0 -2
- package/src/components/ui/select/Select.vue +0 -19
- package/src/components/ui/select/SelectContent.vue +0 -51
- package/src/components/ui/select/SelectGroup.vue +0 -15
- package/src/components/ui/select/SelectItem.vue +0 -44
- package/src/components/ui/select/SelectItemText.vue +0 -15
- package/src/components/ui/select/SelectLabel.vue +0 -17
- package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
- package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
- package/src/components/ui/select/SelectSeparator.vue +0 -19
- package/src/components/ui/select/SelectTrigger.vue +0 -33
- package/src/components/ui/select/SelectValue.vue +0 -15
- package/src/components/ui/select/index.ts +0 -11
- package/src/components/ui/separator/Separator.vue +0 -29
- package/src/components/ui/separator/index.ts +0 -1
- package/src/components/ui/textarea/Textarea.vue +0 -28
- package/src/components/ui/textarea/index.ts +0 -1
- package/src/components/ui/tooltip/Tooltip.vue +0 -19
- package/src/components/ui/tooltip/TooltipContent.vue +0 -34
- package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
- package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
- package/src/components/ui/tooltip/index.ts +0 -4
- package/src/composables/useChat.ts +0 -46
- package/src/index.ts +0 -3
- package/src/lib/utils.ts +0 -7
- package/src/main.ts +0 -5
- package/src/request/index.ts +0 -41
- package/src/style.css +0 -120
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -13
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -26
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,3560 @@
|
|
|
1
|
+
import "./isArrayLikeObject-Dz_TDfw0.js";
|
|
2
|
+
import { g as utils_default, p as parseFontSize, t as ZERO_WIDTH_SPACE } 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, C as getDiagramTitle, E as getUrl, H as setConfig2, I as sanitizeText, N as renderKatexSanitized, O as hasKatex, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, i as calculateMathMLDimensions, r as assignWithDepth_default, s as common_default, v as getAccTitle, y as getConfig, 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, n as drawEmbeddedImage, o as getNoteRect, r as drawImage, s as getTextObj, t as drawBackgroundRect } from "./chunk-TZMSLE5B-F4nHm7N1.js";
|
|
8
|
+
import { n as load, t as JSON_SCHEMA } from "./chunk-MI3HLSF2-Dy6F9XgR.js";
|
|
9
|
+
import { t as ImperativeState } from "./chunk-QZHKN3VN-ClanGuXA.js";
|
|
10
|
+
var import_dist = require_dist(), parser = (function() {
|
|
11
|
+
var t = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
12
|
+
for (u ||= {}, d = t.length; d--; u[t[d]] = l);
|
|
13
|
+
return u;
|
|
14
|
+
}, "o"), l = [1, 2], u = [1, 3], d = [1, 4], p = [2, 4], m = [1, 9], h = [1, 11], g = [1, 13], _ = [1, 14], v = [1, 16], y = [1, 17], b = [1, 18], x = [1, 24], S = [1, 25], C = [1, 26], w = [1, 27], T = [1, 28], E = [1, 29], D = [1, 30], O = [1, 31], k = [1, 32], A = [1, 33], j = [1, 34], M = [1, 35], N = [1, 36], P = [1, 37], F = [1, 38], I = [1, 39], L = [1, 41], R = [1, 42], z = [1, 43], B = [1, 44], V = [1, 45], H = [1, 46], U = [
|
|
15
|
+
1,
|
|
16
|
+
4,
|
|
17
|
+
5,
|
|
18
|
+
13,
|
|
19
|
+
14,
|
|
20
|
+
16,
|
|
21
|
+
18,
|
|
22
|
+
21,
|
|
23
|
+
23,
|
|
24
|
+
29,
|
|
25
|
+
30,
|
|
26
|
+
31,
|
|
27
|
+
33,
|
|
28
|
+
35,
|
|
29
|
+
36,
|
|
30
|
+
37,
|
|
31
|
+
38,
|
|
32
|
+
39,
|
|
33
|
+
41,
|
|
34
|
+
43,
|
|
35
|
+
44,
|
|
36
|
+
46,
|
|
37
|
+
47,
|
|
38
|
+
48,
|
|
39
|
+
49,
|
|
40
|
+
50,
|
|
41
|
+
52,
|
|
42
|
+
53,
|
|
43
|
+
55,
|
|
44
|
+
60,
|
|
45
|
+
61,
|
|
46
|
+
62,
|
|
47
|
+
63,
|
|
48
|
+
71
|
|
49
|
+
], W = [2, 71], G = [
|
|
50
|
+
4,
|
|
51
|
+
5,
|
|
52
|
+
16,
|
|
53
|
+
50,
|
|
54
|
+
52,
|
|
55
|
+
53
|
|
56
|
+
], K = [
|
|
57
|
+
4,
|
|
58
|
+
5,
|
|
59
|
+
13,
|
|
60
|
+
14,
|
|
61
|
+
16,
|
|
62
|
+
18,
|
|
63
|
+
21,
|
|
64
|
+
23,
|
|
65
|
+
29,
|
|
66
|
+
30,
|
|
67
|
+
31,
|
|
68
|
+
33,
|
|
69
|
+
35,
|
|
70
|
+
36,
|
|
71
|
+
37,
|
|
72
|
+
38,
|
|
73
|
+
39,
|
|
74
|
+
41,
|
|
75
|
+
43,
|
|
76
|
+
44,
|
|
77
|
+
46,
|
|
78
|
+
50,
|
|
79
|
+
52,
|
|
80
|
+
53,
|
|
81
|
+
55,
|
|
82
|
+
60,
|
|
83
|
+
61,
|
|
84
|
+
62,
|
|
85
|
+
63,
|
|
86
|
+
71
|
|
87
|
+
], q = [
|
|
88
|
+
4,
|
|
89
|
+
5,
|
|
90
|
+
13,
|
|
91
|
+
14,
|
|
92
|
+
16,
|
|
93
|
+
18,
|
|
94
|
+
21,
|
|
95
|
+
23,
|
|
96
|
+
29,
|
|
97
|
+
30,
|
|
98
|
+
31,
|
|
99
|
+
33,
|
|
100
|
+
35,
|
|
101
|
+
36,
|
|
102
|
+
37,
|
|
103
|
+
38,
|
|
104
|
+
39,
|
|
105
|
+
41,
|
|
106
|
+
43,
|
|
107
|
+
44,
|
|
108
|
+
46,
|
|
109
|
+
49,
|
|
110
|
+
50,
|
|
111
|
+
52,
|
|
112
|
+
53,
|
|
113
|
+
55,
|
|
114
|
+
60,
|
|
115
|
+
61,
|
|
116
|
+
62,
|
|
117
|
+
63,
|
|
118
|
+
71
|
|
119
|
+
], J = [
|
|
120
|
+
4,
|
|
121
|
+
5,
|
|
122
|
+
13,
|
|
123
|
+
14,
|
|
124
|
+
16,
|
|
125
|
+
18,
|
|
126
|
+
21,
|
|
127
|
+
23,
|
|
128
|
+
29,
|
|
129
|
+
30,
|
|
130
|
+
31,
|
|
131
|
+
33,
|
|
132
|
+
35,
|
|
133
|
+
36,
|
|
134
|
+
37,
|
|
135
|
+
38,
|
|
136
|
+
39,
|
|
137
|
+
41,
|
|
138
|
+
43,
|
|
139
|
+
44,
|
|
140
|
+
46,
|
|
141
|
+
48,
|
|
142
|
+
50,
|
|
143
|
+
52,
|
|
144
|
+
53,
|
|
145
|
+
55,
|
|
146
|
+
60,
|
|
147
|
+
61,
|
|
148
|
+
62,
|
|
149
|
+
63,
|
|
150
|
+
71
|
|
151
|
+
], Y = [
|
|
152
|
+
4,
|
|
153
|
+
5,
|
|
154
|
+
13,
|
|
155
|
+
14,
|
|
156
|
+
16,
|
|
157
|
+
18,
|
|
158
|
+
21,
|
|
159
|
+
23,
|
|
160
|
+
29,
|
|
161
|
+
30,
|
|
162
|
+
31,
|
|
163
|
+
33,
|
|
164
|
+
35,
|
|
165
|
+
36,
|
|
166
|
+
37,
|
|
167
|
+
38,
|
|
168
|
+
39,
|
|
169
|
+
41,
|
|
170
|
+
43,
|
|
171
|
+
44,
|
|
172
|
+
46,
|
|
173
|
+
47,
|
|
174
|
+
50,
|
|
175
|
+
52,
|
|
176
|
+
53,
|
|
177
|
+
55,
|
|
178
|
+
60,
|
|
179
|
+
61,
|
|
180
|
+
62,
|
|
181
|
+
63,
|
|
182
|
+
71
|
|
183
|
+
], X = [
|
|
184
|
+
69,
|
|
185
|
+
70,
|
|
186
|
+
71
|
|
187
|
+
], Z = [1, 127], Q = {
|
|
188
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
189
|
+
yy: {},
|
|
190
|
+
symbols_: {
|
|
191
|
+
error: 2,
|
|
192
|
+
start: 3,
|
|
193
|
+
SPACE: 4,
|
|
194
|
+
NEWLINE: 5,
|
|
195
|
+
SD: 6,
|
|
196
|
+
document: 7,
|
|
197
|
+
line: 8,
|
|
198
|
+
statement: 9,
|
|
199
|
+
box_section: 10,
|
|
200
|
+
box_line: 11,
|
|
201
|
+
participant_statement: 12,
|
|
202
|
+
create: 13,
|
|
203
|
+
box: 14,
|
|
204
|
+
restOfLine: 15,
|
|
205
|
+
end: 16,
|
|
206
|
+
signal: 17,
|
|
207
|
+
autonumber: 18,
|
|
208
|
+
NUM: 19,
|
|
209
|
+
off: 20,
|
|
210
|
+
activate: 21,
|
|
211
|
+
actor: 22,
|
|
212
|
+
deactivate: 23,
|
|
213
|
+
note_statement: 24,
|
|
214
|
+
links_statement: 25,
|
|
215
|
+
link_statement: 26,
|
|
216
|
+
properties_statement: 27,
|
|
217
|
+
details_statement: 28,
|
|
218
|
+
title: 29,
|
|
219
|
+
legacy_title: 30,
|
|
220
|
+
acc_title: 31,
|
|
221
|
+
acc_title_value: 32,
|
|
222
|
+
acc_descr: 33,
|
|
223
|
+
acc_descr_value: 34,
|
|
224
|
+
acc_descr_multiline_value: 35,
|
|
225
|
+
loop: 36,
|
|
226
|
+
rect: 37,
|
|
227
|
+
opt: 38,
|
|
228
|
+
alt: 39,
|
|
229
|
+
else_sections: 40,
|
|
230
|
+
par: 41,
|
|
231
|
+
par_sections: 42,
|
|
232
|
+
par_over: 43,
|
|
233
|
+
critical: 44,
|
|
234
|
+
option_sections: 45,
|
|
235
|
+
break: 46,
|
|
236
|
+
option: 47,
|
|
237
|
+
and: 48,
|
|
238
|
+
else: 49,
|
|
239
|
+
participant: 50,
|
|
240
|
+
AS: 51,
|
|
241
|
+
participant_actor: 52,
|
|
242
|
+
destroy: 53,
|
|
243
|
+
actor_with_config: 54,
|
|
244
|
+
note: 55,
|
|
245
|
+
placement: 56,
|
|
246
|
+
text2: 57,
|
|
247
|
+
over: 58,
|
|
248
|
+
actor_pair: 59,
|
|
249
|
+
links: 60,
|
|
250
|
+
link: 61,
|
|
251
|
+
properties: 62,
|
|
252
|
+
details: 63,
|
|
253
|
+
spaceList: 64,
|
|
254
|
+
",": 65,
|
|
255
|
+
left_of: 66,
|
|
256
|
+
right_of: 67,
|
|
257
|
+
signaltype: 68,
|
|
258
|
+
"+": 69,
|
|
259
|
+
"-": 70,
|
|
260
|
+
ACTOR: 71,
|
|
261
|
+
config_object: 72,
|
|
262
|
+
CONFIG_START: 73,
|
|
263
|
+
CONFIG_CONTENT: 74,
|
|
264
|
+
CONFIG_END: 75,
|
|
265
|
+
SOLID_OPEN_ARROW: 76,
|
|
266
|
+
DOTTED_OPEN_ARROW: 77,
|
|
267
|
+
SOLID_ARROW: 78,
|
|
268
|
+
BIDIRECTIONAL_SOLID_ARROW: 79,
|
|
269
|
+
DOTTED_ARROW: 80,
|
|
270
|
+
BIDIRECTIONAL_DOTTED_ARROW: 81,
|
|
271
|
+
SOLID_CROSS: 82,
|
|
272
|
+
DOTTED_CROSS: 83,
|
|
273
|
+
SOLID_POINT: 84,
|
|
274
|
+
DOTTED_POINT: 85,
|
|
275
|
+
TXT: 86,
|
|
276
|
+
$accept: 0,
|
|
277
|
+
$end: 1
|
|
278
|
+
},
|
|
279
|
+
terminals_: {
|
|
280
|
+
2: "error",
|
|
281
|
+
4: "SPACE",
|
|
282
|
+
5: "NEWLINE",
|
|
283
|
+
6: "SD",
|
|
284
|
+
13: "create",
|
|
285
|
+
14: "box",
|
|
286
|
+
15: "restOfLine",
|
|
287
|
+
16: "end",
|
|
288
|
+
18: "autonumber",
|
|
289
|
+
19: "NUM",
|
|
290
|
+
20: "off",
|
|
291
|
+
21: "activate",
|
|
292
|
+
23: "deactivate",
|
|
293
|
+
29: "title",
|
|
294
|
+
30: "legacy_title",
|
|
295
|
+
31: "acc_title",
|
|
296
|
+
32: "acc_title_value",
|
|
297
|
+
33: "acc_descr",
|
|
298
|
+
34: "acc_descr_value",
|
|
299
|
+
35: "acc_descr_multiline_value",
|
|
300
|
+
36: "loop",
|
|
301
|
+
37: "rect",
|
|
302
|
+
38: "opt",
|
|
303
|
+
39: "alt",
|
|
304
|
+
41: "par",
|
|
305
|
+
43: "par_over",
|
|
306
|
+
44: "critical",
|
|
307
|
+
46: "break",
|
|
308
|
+
47: "option",
|
|
309
|
+
48: "and",
|
|
310
|
+
49: "else",
|
|
311
|
+
50: "participant",
|
|
312
|
+
51: "AS",
|
|
313
|
+
52: "participant_actor",
|
|
314
|
+
53: "destroy",
|
|
315
|
+
55: "note",
|
|
316
|
+
58: "over",
|
|
317
|
+
60: "links",
|
|
318
|
+
61: "link",
|
|
319
|
+
62: "properties",
|
|
320
|
+
63: "details",
|
|
321
|
+
65: ",",
|
|
322
|
+
66: "left_of",
|
|
323
|
+
67: "right_of",
|
|
324
|
+
69: "+",
|
|
325
|
+
70: "-",
|
|
326
|
+
71: "ACTOR",
|
|
327
|
+
73: "CONFIG_START",
|
|
328
|
+
74: "CONFIG_CONTENT",
|
|
329
|
+
75: "CONFIG_END",
|
|
330
|
+
76: "SOLID_OPEN_ARROW",
|
|
331
|
+
77: "DOTTED_OPEN_ARROW",
|
|
332
|
+
78: "SOLID_ARROW",
|
|
333
|
+
79: "BIDIRECTIONAL_SOLID_ARROW",
|
|
334
|
+
80: "DOTTED_ARROW",
|
|
335
|
+
81: "BIDIRECTIONAL_DOTTED_ARROW",
|
|
336
|
+
82: "SOLID_CROSS",
|
|
337
|
+
83: "DOTTED_CROSS",
|
|
338
|
+
84: "SOLID_POINT",
|
|
339
|
+
85: "DOTTED_POINT",
|
|
340
|
+
86: "TXT"
|
|
341
|
+
},
|
|
342
|
+
productions_: [
|
|
343
|
+
0,
|
|
344
|
+
[3, 2],
|
|
345
|
+
[3, 2],
|
|
346
|
+
[3, 2],
|
|
347
|
+
[7, 0],
|
|
348
|
+
[7, 2],
|
|
349
|
+
[8, 2],
|
|
350
|
+
[8, 1],
|
|
351
|
+
[8, 1],
|
|
352
|
+
[10, 0],
|
|
353
|
+
[10, 2],
|
|
354
|
+
[11, 2],
|
|
355
|
+
[11, 1],
|
|
356
|
+
[11, 1],
|
|
357
|
+
[9, 1],
|
|
358
|
+
[9, 2],
|
|
359
|
+
[9, 4],
|
|
360
|
+
[9, 2],
|
|
361
|
+
[9, 4],
|
|
362
|
+
[9, 3],
|
|
363
|
+
[9, 3],
|
|
364
|
+
[9, 2],
|
|
365
|
+
[9, 3],
|
|
366
|
+
[9, 3],
|
|
367
|
+
[9, 2],
|
|
368
|
+
[9, 2],
|
|
369
|
+
[9, 2],
|
|
370
|
+
[9, 2],
|
|
371
|
+
[9, 2],
|
|
372
|
+
[9, 1],
|
|
373
|
+
[9, 1],
|
|
374
|
+
[9, 2],
|
|
375
|
+
[9, 2],
|
|
376
|
+
[9, 1],
|
|
377
|
+
[9, 4],
|
|
378
|
+
[9, 4],
|
|
379
|
+
[9, 4],
|
|
380
|
+
[9, 4],
|
|
381
|
+
[9, 4],
|
|
382
|
+
[9, 4],
|
|
383
|
+
[9, 4],
|
|
384
|
+
[9, 4],
|
|
385
|
+
[45, 1],
|
|
386
|
+
[45, 4],
|
|
387
|
+
[42, 1],
|
|
388
|
+
[42, 4],
|
|
389
|
+
[40, 1],
|
|
390
|
+
[40, 4],
|
|
391
|
+
[12, 5],
|
|
392
|
+
[12, 3],
|
|
393
|
+
[12, 5],
|
|
394
|
+
[12, 3],
|
|
395
|
+
[12, 3],
|
|
396
|
+
[12, 3],
|
|
397
|
+
[24, 4],
|
|
398
|
+
[24, 4],
|
|
399
|
+
[25, 3],
|
|
400
|
+
[26, 3],
|
|
401
|
+
[27, 3],
|
|
402
|
+
[28, 3],
|
|
403
|
+
[64, 2],
|
|
404
|
+
[64, 1],
|
|
405
|
+
[59, 3],
|
|
406
|
+
[59, 1],
|
|
407
|
+
[56, 1],
|
|
408
|
+
[56, 1],
|
|
409
|
+
[17, 5],
|
|
410
|
+
[17, 5],
|
|
411
|
+
[17, 4],
|
|
412
|
+
[54, 2],
|
|
413
|
+
[72, 3],
|
|
414
|
+
[22, 1],
|
|
415
|
+
[68, 1],
|
|
416
|
+
[68, 1],
|
|
417
|
+
[68, 1],
|
|
418
|
+
[68, 1],
|
|
419
|
+
[68, 1],
|
|
420
|
+
[68, 1],
|
|
421
|
+
[68, 1],
|
|
422
|
+
[68, 1],
|
|
423
|
+
[68, 1],
|
|
424
|
+
[68, 1],
|
|
425
|
+
[57, 1]
|
|
426
|
+
],
|
|
427
|
+
performAction: /* @__PURE__ */ __name(function(t, l, u, d, f, p, m) {
|
|
428
|
+
var h = p.length - 1;
|
|
429
|
+
switch (f) {
|
|
430
|
+
case 3: return d.apply(p[h]), p[h];
|
|
431
|
+
case 4:
|
|
432
|
+
case 9:
|
|
433
|
+
this.$ = [];
|
|
434
|
+
break;
|
|
435
|
+
case 5:
|
|
436
|
+
case 10:
|
|
437
|
+
p[h - 1].push(p[h]), this.$ = p[h - 1];
|
|
438
|
+
break;
|
|
439
|
+
case 6:
|
|
440
|
+
case 7:
|
|
441
|
+
case 11:
|
|
442
|
+
case 12:
|
|
443
|
+
this.$ = p[h];
|
|
444
|
+
break;
|
|
445
|
+
case 8:
|
|
446
|
+
case 13:
|
|
447
|
+
this.$ = [];
|
|
448
|
+
break;
|
|
449
|
+
case 15:
|
|
450
|
+
p[h].type = "createParticipant", this.$ = p[h];
|
|
451
|
+
break;
|
|
452
|
+
case 16:
|
|
453
|
+
p[h - 1].unshift({
|
|
454
|
+
type: "boxStart",
|
|
455
|
+
boxData: d.parseBoxData(p[h - 2])
|
|
456
|
+
}), p[h - 1].push({
|
|
457
|
+
type: "boxEnd",
|
|
458
|
+
boxText: p[h - 2]
|
|
459
|
+
}), this.$ = p[h - 1];
|
|
460
|
+
break;
|
|
461
|
+
case 18:
|
|
462
|
+
this.$ = {
|
|
463
|
+
type: "sequenceIndex",
|
|
464
|
+
sequenceIndex: Number(p[h - 2]),
|
|
465
|
+
sequenceIndexStep: Number(p[h - 1]),
|
|
466
|
+
sequenceVisible: !0,
|
|
467
|
+
signalType: d.LINETYPE.AUTONUMBER
|
|
468
|
+
};
|
|
469
|
+
break;
|
|
470
|
+
case 19:
|
|
471
|
+
this.$ = {
|
|
472
|
+
type: "sequenceIndex",
|
|
473
|
+
sequenceIndex: Number(p[h - 1]),
|
|
474
|
+
sequenceIndexStep: 1,
|
|
475
|
+
sequenceVisible: !0,
|
|
476
|
+
signalType: d.LINETYPE.AUTONUMBER
|
|
477
|
+
};
|
|
478
|
+
break;
|
|
479
|
+
case 20:
|
|
480
|
+
this.$ = {
|
|
481
|
+
type: "sequenceIndex",
|
|
482
|
+
sequenceVisible: !1,
|
|
483
|
+
signalType: d.LINETYPE.AUTONUMBER
|
|
484
|
+
};
|
|
485
|
+
break;
|
|
486
|
+
case 21:
|
|
487
|
+
this.$ = {
|
|
488
|
+
type: "sequenceIndex",
|
|
489
|
+
sequenceVisible: !0,
|
|
490
|
+
signalType: d.LINETYPE.AUTONUMBER
|
|
491
|
+
};
|
|
492
|
+
break;
|
|
493
|
+
case 22:
|
|
494
|
+
this.$ = {
|
|
495
|
+
type: "activeStart",
|
|
496
|
+
signalType: d.LINETYPE.ACTIVE_START,
|
|
497
|
+
actor: p[h - 1].actor
|
|
498
|
+
};
|
|
499
|
+
break;
|
|
500
|
+
case 23:
|
|
501
|
+
this.$ = {
|
|
502
|
+
type: "activeEnd",
|
|
503
|
+
signalType: d.LINETYPE.ACTIVE_END,
|
|
504
|
+
actor: p[h - 1].actor
|
|
505
|
+
};
|
|
506
|
+
break;
|
|
507
|
+
case 29:
|
|
508
|
+
d.setDiagramTitle(p[h].substring(6)), this.$ = p[h].substring(6);
|
|
509
|
+
break;
|
|
510
|
+
case 30:
|
|
511
|
+
d.setDiagramTitle(p[h].substring(7)), this.$ = p[h].substring(7);
|
|
512
|
+
break;
|
|
513
|
+
case 31:
|
|
514
|
+
this.$ = p[h].trim(), d.setAccTitle(this.$);
|
|
515
|
+
break;
|
|
516
|
+
case 32:
|
|
517
|
+
case 33:
|
|
518
|
+
this.$ = p[h].trim(), d.setAccDescription(this.$);
|
|
519
|
+
break;
|
|
520
|
+
case 34:
|
|
521
|
+
p[h - 1].unshift({
|
|
522
|
+
type: "loopStart",
|
|
523
|
+
loopText: d.parseMessage(p[h - 2]),
|
|
524
|
+
signalType: d.LINETYPE.LOOP_START
|
|
525
|
+
}), p[h - 1].push({
|
|
526
|
+
type: "loopEnd",
|
|
527
|
+
loopText: p[h - 2],
|
|
528
|
+
signalType: d.LINETYPE.LOOP_END
|
|
529
|
+
}), this.$ = p[h - 1];
|
|
530
|
+
break;
|
|
531
|
+
case 35:
|
|
532
|
+
p[h - 1].unshift({
|
|
533
|
+
type: "rectStart",
|
|
534
|
+
color: d.parseMessage(p[h - 2]),
|
|
535
|
+
signalType: d.LINETYPE.RECT_START
|
|
536
|
+
}), p[h - 1].push({
|
|
537
|
+
type: "rectEnd",
|
|
538
|
+
color: d.parseMessage(p[h - 2]),
|
|
539
|
+
signalType: d.LINETYPE.RECT_END
|
|
540
|
+
}), this.$ = p[h - 1];
|
|
541
|
+
break;
|
|
542
|
+
case 36:
|
|
543
|
+
p[h - 1].unshift({
|
|
544
|
+
type: "optStart",
|
|
545
|
+
optText: d.parseMessage(p[h - 2]),
|
|
546
|
+
signalType: d.LINETYPE.OPT_START
|
|
547
|
+
}), p[h - 1].push({
|
|
548
|
+
type: "optEnd",
|
|
549
|
+
optText: d.parseMessage(p[h - 2]),
|
|
550
|
+
signalType: d.LINETYPE.OPT_END
|
|
551
|
+
}), this.$ = p[h - 1];
|
|
552
|
+
break;
|
|
553
|
+
case 37:
|
|
554
|
+
p[h - 1].unshift({
|
|
555
|
+
type: "altStart",
|
|
556
|
+
altText: d.parseMessage(p[h - 2]),
|
|
557
|
+
signalType: d.LINETYPE.ALT_START
|
|
558
|
+
}), p[h - 1].push({
|
|
559
|
+
type: "altEnd",
|
|
560
|
+
signalType: d.LINETYPE.ALT_END
|
|
561
|
+
}), this.$ = p[h - 1];
|
|
562
|
+
break;
|
|
563
|
+
case 38:
|
|
564
|
+
p[h - 1].unshift({
|
|
565
|
+
type: "parStart",
|
|
566
|
+
parText: d.parseMessage(p[h - 2]),
|
|
567
|
+
signalType: d.LINETYPE.PAR_START
|
|
568
|
+
}), p[h - 1].push({
|
|
569
|
+
type: "parEnd",
|
|
570
|
+
signalType: d.LINETYPE.PAR_END
|
|
571
|
+
}), this.$ = p[h - 1];
|
|
572
|
+
break;
|
|
573
|
+
case 39:
|
|
574
|
+
p[h - 1].unshift({
|
|
575
|
+
type: "parStart",
|
|
576
|
+
parText: d.parseMessage(p[h - 2]),
|
|
577
|
+
signalType: d.LINETYPE.PAR_OVER_START
|
|
578
|
+
}), p[h - 1].push({
|
|
579
|
+
type: "parEnd",
|
|
580
|
+
signalType: d.LINETYPE.PAR_END
|
|
581
|
+
}), this.$ = p[h - 1];
|
|
582
|
+
break;
|
|
583
|
+
case 40:
|
|
584
|
+
p[h - 1].unshift({
|
|
585
|
+
type: "criticalStart",
|
|
586
|
+
criticalText: d.parseMessage(p[h - 2]),
|
|
587
|
+
signalType: d.LINETYPE.CRITICAL_START
|
|
588
|
+
}), p[h - 1].push({
|
|
589
|
+
type: "criticalEnd",
|
|
590
|
+
signalType: d.LINETYPE.CRITICAL_END
|
|
591
|
+
}), this.$ = p[h - 1];
|
|
592
|
+
break;
|
|
593
|
+
case 41:
|
|
594
|
+
p[h - 1].unshift({
|
|
595
|
+
type: "breakStart",
|
|
596
|
+
breakText: d.parseMessage(p[h - 2]),
|
|
597
|
+
signalType: d.LINETYPE.BREAK_START
|
|
598
|
+
}), p[h - 1].push({
|
|
599
|
+
type: "breakEnd",
|
|
600
|
+
optText: d.parseMessage(p[h - 2]),
|
|
601
|
+
signalType: d.LINETYPE.BREAK_END
|
|
602
|
+
}), this.$ = p[h - 1];
|
|
603
|
+
break;
|
|
604
|
+
case 43:
|
|
605
|
+
this.$ = p[h - 3].concat([{
|
|
606
|
+
type: "option",
|
|
607
|
+
optionText: d.parseMessage(p[h - 1]),
|
|
608
|
+
signalType: d.LINETYPE.CRITICAL_OPTION
|
|
609
|
+
}, p[h]]);
|
|
610
|
+
break;
|
|
611
|
+
case 45:
|
|
612
|
+
this.$ = p[h - 3].concat([{
|
|
613
|
+
type: "and",
|
|
614
|
+
parText: d.parseMessage(p[h - 1]),
|
|
615
|
+
signalType: d.LINETYPE.PAR_AND
|
|
616
|
+
}, p[h]]);
|
|
617
|
+
break;
|
|
618
|
+
case 47:
|
|
619
|
+
this.$ = p[h - 3].concat([{
|
|
620
|
+
type: "else",
|
|
621
|
+
altText: d.parseMessage(p[h - 1]),
|
|
622
|
+
signalType: d.LINETYPE.ALT_ELSE
|
|
623
|
+
}, p[h]]);
|
|
624
|
+
break;
|
|
625
|
+
case 48:
|
|
626
|
+
p[h - 3].draw = "participant", p[h - 3].type = "addParticipant", p[h - 3].description = d.parseMessage(p[h - 1]), this.$ = p[h - 3];
|
|
627
|
+
break;
|
|
628
|
+
case 49:
|
|
629
|
+
p[h - 1].draw = "participant", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
|
|
630
|
+
break;
|
|
631
|
+
case 50:
|
|
632
|
+
p[h - 3].draw = "actor", p[h - 3].type = "addParticipant", p[h - 3].description = d.parseMessage(p[h - 1]), this.$ = p[h - 3];
|
|
633
|
+
break;
|
|
634
|
+
case 51:
|
|
635
|
+
p[h - 1].draw = "actor", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
|
|
636
|
+
break;
|
|
637
|
+
case 52:
|
|
638
|
+
p[h - 1].type = "destroyParticipant", this.$ = p[h - 1];
|
|
639
|
+
break;
|
|
640
|
+
case 53:
|
|
641
|
+
p[h - 1].draw = "participant", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
|
|
642
|
+
break;
|
|
643
|
+
case 54:
|
|
644
|
+
this.$ = [p[h - 1], {
|
|
645
|
+
type: "addNote",
|
|
646
|
+
placement: p[h - 2],
|
|
647
|
+
actor: p[h - 1].actor,
|
|
648
|
+
text: p[h]
|
|
649
|
+
}];
|
|
650
|
+
break;
|
|
651
|
+
case 55:
|
|
652
|
+
p[h - 2] = [].concat(p[h - 1], p[h - 1]).slice(0, 2), p[h - 2][0] = p[h - 2][0].actor, p[h - 2][1] = p[h - 2][1].actor, this.$ = [p[h - 1], {
|
|
653
|
+
type: "addNote",
|
|
654
|
+
placement: d.PLACEMENT.OVER,
|
|
655
|
+
actor: p[h - 2].slice(0, 2),
|
|
656
|
+
text: p[h]
|
|
657
|
+
}];
|
|
658
|
+
break;
|
|
659
|
+
case 56:
|
|
660
|
+
this.$ = [p[h - 1], {
|
|
661
|
+
type: "addLinks",
|
|
662
|
+
actor: p[h - 1].actor,
|
|
663
|
+
text: p[h]
|
|
664
|
+
}];
|
|
665
|
+
break;
|
|
666
|
+
case 57:
|
|
667
|
+
this.$ = [p[h - 1], {
|
|
668
|
+
type: "addALink",
|
|
669
|
+
actor: p[h - 1].actor,
|
|
670
|
+
text: p[h]
|
|
671
|
+
}];
|
|
672
|
+
break;
|
|
673
|
+
case 58:
|
|
674
|
+
this.$ = [p[h - 1], {
|
|
675
|
+
type: "addProperties",
|
|
676
|
+
actor: p[h - 1].actor,
|
|
677
|
+
text: p[h]
|
|
678
|
+
}];
|
|
679
|
+
break;
|
|
680
|
+
case 59:
|
|
681
|
+
this.$ = [p[h - 1], {
|
|
682
|
+
type: "addDetails",
|
|
683
|
+
actor: p[h - 1].actor,
|
|
684
|
+
text: p[h]
|
|
685
|
+
}];
|
|
686
|
+
break;
|
|
687
|
+
case 62:
|
|
688
|
+
this.$ = [p[h - 2], p[h]];
|
|
689
|
+
break;
|
|
690
|
+
case 63:
|
|
691
|
+
this.$ = p[h];
|
|
692
|
+
break;
|
|
693
|
+
case 64:
|
|
694
|
+
this.$ = d.PLACEMENT.LEFTOF;
|
|
695
|
+
break;
|
|
696
|
+
case 65:
|
|
697
|
+
this.$ = d.PLACEMENT.RIGHTOF;
|
|
698
|
+
break;
|
|
699
|
+
case 66:
|
|
700
|
+
this.$ = [
|
|
701
|
+
p[h - 4],
|
|
702
|
+
p[h - 1],
|
|
703
|
+
{
|
|
704
|
+
type: "addMessage",
|
|
705
|
+
from: p[h - 4].actor,
|
|
706
|
+
to: p[h - 1].actor,
|
|
707
|
+
signalType: p[h - 3],
|
|
708
|
+
msg: p[h],
|
|
709
|
+
activate: !0
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
type: "activeStart",
|
|
713
|
+
signalType: d.LINETYPE.ACTIVE_START,
|
|
714
|
+
actor: p[h - 1].actor
|
|
715
|
+
}
|
|
716
|
+
];
|
|
717
|
+
break;
|
|
718
|
+
case 67:
|
|
719
|
+
this.$ = [
|
|
720
|
+
p[h - 4],
|
|
721
|
+
p[h - 1],
|
|
722
|
+
{
|
|
723
|
+
type: "addMessage",
|
|
724
|
+
from: p[h - 4].actor,
|
|
725
|
+
to: p[h - 1].actor,
|
|
726
|
+
signalType: p[h - 3],
|
|
727
|
+
msg: p[h]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
type: "activeEnd",
|
|
731
|
+
signalType: d.LINETYPE.ACTIVE_END,
|
|
732
|
+
actor: p[h - 4].actor
|
|
733
|
+
}
|
|
734
|
+
];
|
|
735
|
+
break;
|
|
736
|
+
case 68:
|
|
737
|
+
this.$ = [
|
|
738
|
+
p[h - 3],
|
|
739
|
+
p[h - 1],
|
|
740
|
+
{
|
|
741
|
+
type: "addMessage",
|
|
742
|
+
from: p[h - 3].actor,
|
|
743
|
+
to: p[h - 1].actor,
|
|
744
|
+
signalType: p[h - 2],
|
|
745
|
+
msg: p[h]
|
|
746
|
+
}
|
|
747
|
+
];
|
|
748
|
+
break;
|
|
749
|
+
case 69:
|
|
750
|
+
this.$ = {
|
|
751
|
+
type: "addParticipant",
|
|
752
|
+
actor: p[h - 1],
|
|
753
|
+
config: p[h]
|
|
754
|
+
};
|
|
755
|
+
break;
|
|
756
|
+
case 70:
|
|
757
|
+
this.$ = p[h - 1].trim();
|
|
758
|
+
break;
|
|
759
|
+
case 71:
|
|
760
|
+
this.$ = {
|
|
761
|
+
type: "addParticipant",
|
|
762
|
+
actor: p[h]
|
|
763
|
+
};
|
|
764
|
+
break;
|
|
765
|
+
case 72:
|
|
766
|
+
this.$ = d.LINETYPE.SOLID_OPEN;
|
|
767
|
+
break;
|
|
768
|
+
case 73:
|
|
769
|
+
this.$ = d.LINETYPE.DOTTED_OPEN;
|
|
770
|
+
break;
|
|
771
|
+
case 74:
|
|
772
|
+
this.$ = d.LINETYPE.SOLID;
|
|
773
|
+
break;
|
|
774
|
+
case 75:
|
|
775
|
+
this.$ = d.LINETYPE.BIDIRECTIONAL_SOLID;
|
|
776
|
+
break;
|
|
777
|
+
case 76:
|
|
778
|
+
this.$ = d.LINETYPE.DOTTED;
|
|
779
|
+
break;
|
|
780
|
+
case 77:
|
|
781
|
+
this.$ = d.LINETYPE.BIDIRECTIONAL_DOTTED;
|
|
782
|
+
break;
|
|
783
|
+
case 78:
|
|
784
|
+
this.$ = d.LINETYPE.SOLID_CROSS;
|
|
785
|
+
break;
|
|
786
|
+
case 79:
|
|
787
|
+
this.$ = d.LINETYPE.DOTTED_CROSS;
|
|
788
|
+
break;
|
|
789
|
+
case 80:
|
|
790
|
+
this.$ = d.LINETYPE.SOLID_POINT;
|
|
791
|
+
break;
|
|
792
|
+
case 81:
|
|
793
|
+
this.$ = d.LINETYPE.DOTTED_POINT;
|
|
794
|
+
break;
|
|
795
|
+
case 82:
|
|
796
|
+
this.$ = d.parseMessage(p[h].trim().substring(1));
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
}, "anonymous"),
|
|
800
|
+
table: [
|
|
801
|
+
{
|
|
802
|
+
3: 1,
|
|
803
|
+
4: l,
|
|
804
|
+
5: u,
|
|
805
|
+
6: d
|
|
806
|
+
},
|
|
807
|
+
{ 1: [3] },
|
|
808
|
+
{
|
|
809
|
+
3: 5,
|
|
810
|
+
4: l,
|
|
811
|
+
5: u,
|
|
812
|
+
6: d
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
3: 6,
|
|
816
|
+
4: l,
|
|
817
|
+
5: u,
|
|
818
|
+
6: d
|
|
819
|
+
},
|
|
820
|
+
t([
|
|
821
|
+
1,
|
|
822
|
+
4,
|
|
823
|
+
5,
|
|
824
|
+
13,
|
|
825
|
+
14,
|
|
826
|
+
18,
|
|
827
|
+
21,
|
|
828
|
+
23,
|
|
829
|
+
29,
|
|
830
|
+
30,
|
|
831
|
+
31,
|
|
832
|
+
33,
|
|
833
|
+
35,
|
|
834
|
+
36,
|
|
835
|
+
37,
|
|
836
|
+
38,
|
|
837
|
+
39,
|
|
838
|
+
41,
|
|
839
|
+
43,
|
|
840
|
+
44,
|
|
841
|
+
46,
|
|
842
|
+
50,
|
|
843
|
+
52,
|
|
844
|
+
53,
|
|
845
|
+
55,
|
|
846
|
+
60,
|
|
847
|
+
61,
|
|
848
|
+
62,
|
|
849
|
+
63,
|
|
850
|
+
71
|
|
851
|
+
], p, { 7: 7 }),
|
|
852
|
+
{ 1: [2, 1] },
|
|
853
|
+
{ 1: [2, 2] },
|
|
854
|
+
{
|
|
855
|
+
1: [2, 3],
|
|
856
|
+
4: m,
|
|
857
|
+
5: h,
|
|
858
|
+
8: 8,
|
|
859
|
+
9: 10,
|
|
860
|
+
12: 12,
|
|
861
|
+
13: g,
|
|
862
|
+
14: _,
|
|
863
|
+
17: 15,
|
|
864
|
+
18: v,
|
|
865
|
+
21: y,
|
|
866
|
+
22: 40,
|
|
867
|
+
23: b,
|
|
868
|
+
24: 19,
|
|
869
|
+
25: 20,
|
|
870
|
+
26: 21,
|
|
871
|
+
27: 22,
|
|
872
|
+
28: 23,
|
|
873
|
+
29: x,
|
|
874
|
+
30: S,
|
|
875
|
+
31: C,
|
|
876
|
+
33: w,
|
|
877
|
+
35: T,
|
|
878
|
+
36: E,
|
|
879
|
+
37: D,
|
|
880
|
+
38: O,
|
|
881
|
+
39: k,
|
|
882
|
+
41: A,
|
|
883
|
+
43: j,
|
|
884
|
+
44: M,
|
|
885
|
+
46: N,
|
|
886
|
+
50: P,
|
|
887
|
+
52: F,
|
|
888
|
+
53: I,
|
|
889
|
+
55: L,
|
|
890
|
+
60: R,
|
|
891
|
+
61: z,
|
|
892
|
+
62: B,
|
|
893
|
+
63: V,
|
|
894
|
+
71: H
|
|
895
|
+
},
|
|
896
|
+
t(U, [2, 5]),
|
|
897
|
+
{
|
|
898
|
+
9: 47,
|
|
899
|
+
12: 12,
|
|
900
|
+
13: g,
|
|
901
|
+
14: _,
|
|
902
|
+
17: 15,
|
|
903
|
+
18: v,
|
|
904
|
+
21: y,
|
|
905
|
+
22: 40,
|
|
906
|
+
23: b,
|
|
907
|
+
24: 19,
|
|
908
|
+
25: 20,
|
|
909
|
+
26: 21,
|
|
910
|
+
27: 22,
|
|
911
|
+
28: 23,
|
|
912
|
+
29: x,
|
|
913
|
+
30: S,
|
|
914
|
+
31: C,
|
|
915
|
+
33: w,
|
|
916
|
+
35: T,
|
|
917
|
+
36: E,
|
|
918
|
+
37: D,
|
|
919
|
+
38: O,
|
|
920
|
+
39: k,
|
|
921
|
+
41: A,
|
|
922
|
+
43: j,
|
|
923
|
+
44: M,
|
|
924
|
+
46: N,
|
|
925
|
+
50: P,
|
|
926
|
+
52: F,
|
|
927
|
+
53: I,
|
|
928
|
+
55: L,
|
|
929
|
+
60: R,
|
|
930
|
+
61: z,
|
|
931
|
+
62: B,
|
|
932
|
+
63: V,
|
|
933
|
+
71: H
|
|
934
|
+
},
|
|
935
|
+
t(U, [2, 7]),
|
|
936
|
+
t(U, [2, 8]),
|
|
937
|
+
t(U, [2, 14]),
|
|
938
|
+
{
|
|
939
|
+
12: 48,
|
|
940
|
+
50: P,
|
|
941
|
+
52: F,
|
|
942
|
+
53: I
|
|
943
|
+
},
|
|
944
|
+
{ 15: [1, 49] },
|
|
945
|
+
{ 5: [1, 50] },
|
|
946
|
+
{
|
|
947
|
+
5: [1, 53],
|
|
948
|
+
19: [1, 51],
|
|
949
|
+
20: [1, 52]
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
22: 54,
|
|
953
|
+
71: H
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
22: 55,
|
|
957
|
+
71: H
|
|
958
|
+
},
|
|
959
|
+
{ 5: [1, 56] },
|
|
960
|
+
{ 5: [1, 57] },
|
|
961
|
+
{ 5: [1, 58] },
|
|
962
|
+
{ 5: [1, 59] },
|
|
963
|
+
{ 5: [1, 60] },
|
|
964
|
+
t(U, [2, 29]),
|
|
965
|
+
t(U, [2, 30]),
|
|
966
|
+
{ 32: [1, 61] },
|
|
967
|
+
{ 34: [1, 62] },
|
|
968
|
+
t(U, [2, 33]),
|
|
969
|
+
{ 15: [1, 63] },
|
|
970
|
+
{ 15: [1, 64] },
|
|
971
|
+
{ 15: [1, 65] },
|
|
972
|
+
{ 15: [1, 66] },
|
|
973
|
+
{ 15: [1, 67] },
|
|
974
|
+
{ 15: [1, 68] },
|
|
975
|
+
{ 15: [1, 69] },
|
|
976
|
+
{ 15: [1, 70] },
|
|
977
|
+
{
|
|
978
|
+
22: 71,
|
|
979
|
+
54: 72,
|
|
980
|
+
71: [1, 73]
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
22: 74,
|
|
984
|
+
71: H
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
22: 75,
|
|
988
|
+
71: H
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
68: 76,
|
|
992
|
+
76: [1, 77],
|
|
993
|
+
77: [1, 78],
|
|
994
|
+
78: [1, 79],
|
|
995
|
+
79: [1, 80],
|
|
996
|
+
80: [1, 81],
|
|
997
|
+
81: [1, 82],
|
|
998
|
+
82: [1, 83],
|
|
999
|
+
83: [1, 84],
|
|
1000
|
+
84: [1, 85],
|
|
1001
|
+
85: [1, 86]
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
56: 87,
|
|
1005
|
+
58: [1, 88],
|
|
1006
|
+
66: [1, 89],
|
|
1007
|
+
67: [1, 90]
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
22: 91,
|
|
1011
|
+
71: H
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
22: 92,
|
|
1015
|
+
71: H
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
22: 93,
|
|
1019
|
+
71: H
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
22: 94,
|
|
1023
|
+
71: H
|
|
1024
|
+
},
|
|
1025
|
+
t([
|
|
1026
|
+
5,
|
|
1027
|
+
51,
|
|
1028
|
+
65,
|
|
1029
|
+
76,
|
|
1030
|
+
77,
|
|
1031
|
+
78,
|
|
1032
|
+
79,
|
|
1033
|
+
80,
|
|
1034
|
+
81,
|
|
1035
|
+
82,
|
|
1036
|
+
83,
|
|
1037
|
+
84,
|
|
1038
|
+
85,
|
|
1039
|
+
86
|
|
1040
|
+
], W),
|
|
1041
|
+
t(U, [2, 6]),
|
|
1042
|
+
t(U, [2, 15]),
|
|
1043
|
+
t(G, [2, 9], { 10: 95 }),
|
|
1044
|
+
t(U, [2, 17]),
|
|
1045
|
+
{
|
|
1046
|
+
5: [1, 97],
|
|
1047
|
+
19: [1, 96]
|
|
1048
|
+
},
|
|
1049
|
+
{ 5: [1, 98] },
|
|
1050
|
+
t(U, [2, 21]),
|
|
1051
|
+
{ 5: [1, 99] },
|
|
1052
|
+
{ 5: [1, 100] },
|
|
1053
|
+
t(U, [2, 24]),
|
|
1054
|
+
t(U, [2, 25]),
|
|
1055
|
+
t(U, [2, 26]),
|
|
1056
|
+
t(U, [2, 27]),
|
|
1057
|
+
t(U, [2, 28]),
|
|
1058
|
+
t(U, [2, 31]),
|
|
1059
|
+
t(U, [2, 32]),
|
|
1060
|
+
t(K, p, { 7: 101 }),
|
|
1061
|
+
t(K, p, { 7: 102 }),
|
|
1062
|
+
t(K, p, { 7: 103 }),
|
|
1063
|
+
t(q, p, {
|
|
1064
|
+
40: 104,
|
|
1065
|
+
7: 105
|
|
1066
|
+
}),
|
|
1067
|
+
t(J, p, {
|
|
1068
|
+
42: 106,
|
|
1069
|
+
7: 107
|
|
1070
|
+
}),
|
|
1071
|
+
t(J, p, {
|
|
1072
|
+
7: 107,
|
|
1073
|
+
42: 108
|
|
1074
|
+
}),
|
|
1075
|
+
t(Y, p, {
|
|
1076
|
+
45: 109,
|
|
1077
|
+
7: 110
|
|
1078
|
+
}),
|
|
1079
|
+
t(K, p, { 7: 111 }),
|
|
1080
|
+
{
|
|
1081
|
+
5: [1, 113],
|
|
1082
|
+
51: [1, 112]
|
|
1083
|
+
},
|
|
1084
|
+
{ 5: [1, 114] },
|
|
1085
|
+
t([5, 51], W, {
|
|
1086
|
+
72: 115,
|
|
1087
|
+
73: [1, 116]
|
|
1088
|
+
}),
|
|
1089
|
+
{
|
|
1090
|
+
5: [1, 118],
|
|
1091
|
+
51: [1, 117]
|
|
1092
|
+
},
|
|
1093
|
+
{ 5: [1, 119] },
|
|
1094
|
+
{
|
|
1095
|
+
22: 122,
|
|
1096
|
+
69: [1, 120],
|
|
1097
|
+
70: [1, 121],
|
|
1098
|
+
71: H
|
|
1099
|
+
},
|
|
1100
|
+
t(X, [2, 72]),
|
|
1101
|
+
t(X, [2, 73]),
|
|
1102
|
+
t(X, [2, 74]),
|
|
1103
|
+
t(X, [2, 75]),
|
|
1104
|
+
t(X, [2, 76]),
|
|
1105
|
+
t(X, [2, 77]),
|
|
1106
|
+
t(X, [2, 78]),
|
|
1107
|
+
t(X, [2, 79]),
|
|
1108
|
+
t(X, [2, 80]),
|
|
1109
|
+
t(X, [2, 81]),
|
|
1110
|
+
{
|
|
1111
|
+
22: 123,
|
|
1112
|
+
71: H
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
22: 125,
|
|
1116
|
+
59: 124,
|
|
1117
|
+
71: H
|
|
1118
|
+
},
|
|
1119
|
+
{ 71: [2, 64] },
|
|
1120
|
+
{ 71: [2, 65] },
|
|
1121
|
+
{
|
|
1122
|
+
57: 126,
|
|
1123
|
+
86: Z
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
57: 128,
|
|
1127
|
+
86: Z
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
57: 129,
|
|
1131
|
+
86: Z
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
57: 130,
|
|
1135
|
+
86: Z
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
4: [1, 133],
|
|
1139
|
+
5: [1, 135],
|
|
1140
|
+
11: 132,
|
|
1141
|
+
12: 134,
|
|
1142
|
+
16: [1, 131],
|
|
1143
|
+
50: P,
|
|
1144
|
+
52: F,
|
|
1145
|
+
53: I
|
|
1146
|
+
},
|
|
1147
|
+
{ 5: [1, 136] },
|
|
1148
|
+
t(U, [2, 19]),
|
|
1149
|
+
t(U, [2, 20]),
|
|
1150
|
+
t(U, [2, 22]),
|
|
1151
|
+
t(U, [2, 23]),
|
|
1152
|
+
{
|
|
1153
|
+
4: m,
|
|
1154
|
+
5: h,
|
|
1155
|
+
8: 8,
|
|
1156
|
+
9: 10,
|
|
1157
|
+
12: 12,
|
|
1158
|
+
13: g,
|
|
1159
|
+
14: _,
|
|
1160
|
+
16: [1, 137],
|
|
1161
|
+
17: 15,
|
|
1162
|
+
18: v,
|
|
1163
|
+
21: y,
|
|
1164
|
+
22: 40,
|
|
1165
|
+
23: b,
|
|
1166
|
+
24: 19,
|
|
1167
|
+
25: 20,
|
|
1168
|
+
26: 21,
|
|
1169
|
+
27: 22,
|
|
1170
|
+
28: 23,
|
|
1171
|
+
29: x,
|
|
1172
|
+
30: S,
|
|
1173
|
+
31: C,
|
|
1174
|
+
33: w,
|
|
1175
|
+
35: T,
|
|
1176
|
+
36: E,
|
|
1177
|
+
37: D,
|
|
1178
|
+
38: O,
|
|
1179
|
+
39: k,
|
|
1180
|
+
41: A,
|
|
1181
|
+
43: j,
|
|
1182
|
+
44: M,
|
|
1183
|
+
46: N,
|
|
1184
|
+
50: P,
|
|
1185
|
+
52: F,
|
|
1186
|
+
53: I,
|
|
1187
|
+
55: L,
|
|
1188
|
+
60: R,
|
|
1189
|
+
61: z,
|
|
1190
|
+
62: B,
|
|
1191
|
+
63: V,
|
|
1192
|
+
71: H
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
4: m,
|
|
1196
|
+
5: h,
|
|
1197
|
+
8: 8,
|
|
1198
|
+
9: 10,
|
|
1199
|
+
12: 12,
|
|
1200
|
+
13: g,
|
|
1201
|
+
14: _,
|
|
1202
|
+
16: [1, 138],
|
|
1203
|
+
17: 15,
|
|
1204
|
+
18: v,
|
|
1205
|
+
21: y,
|
|
1206
|
+
22: 40,
|
|
1207
|
+
23: b,
|
|
1208
|
+
24: 19,
|
|
1209
|
+
25: 20,
|
|
1210
|
+
26: 21,
|
|
1211
|
+
27: 22,
|
|
1212
|
+
28: 23,
|
|
1213
|
+
29: x,
|
|
1214
|
+
30: S,
|
|
1215
|
+
31: C,
|
|
1216
|
+
33: w,
|
|
1217
|
+
35: T,
|
|
1218
|
+
36: E,
|
|
1219
|
+
37: D,
|
|
1220
|
+
38: O,
|
|
1221
|
+
39: k,
|
|
1222
|
+
41: A,
|
|
1223
|
+
43: j,
|
|
1224
|
+
44: M,
|
|
1225
|
+
46: N,
|
|
1226
|
+
50: P,
|
|
1227
|
+
52: F,
|
|
1228
|
+
53: I,
|
|
1229
|
+
55: L,
|
|
1230
|
+
60: R,
|
|
1231
|
+
61: z,
|
|
1232
|
+
62: B,
|
|
1233
|
+
63: V,
|
|
1234
|
+
71: H
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
4: m,
|
|
1238
|
+
5: h,
|
|
1239
|
+
8: 8,
|
|
1240
|
+
9: 10,
|
|
1241
|
+
12: 12,
|
|
1242
|
+
13: g,
|
|
1243
|
+
14: _,
|
|
1244
|
+
16: [1, 139],
|
|
1245
|
+
17: 15,
|
|
1246
|
+
18: v,
|
|
1247
|
+
21: y,
|
|
1248
|
+
22: 40,
|
|
1249
|
+
23: b,
|
|
1250
|
+
24: 19,
|
|
1251
|
+
25: 20,
|
|
1252
|
+
26: 21,
|
|
1253
|
+
27: 22,
|
|
1254
|
+
28: 23,
|
|
1255
|
+
29: x,
|
|
1256
|
+
30: S,
|
|
1257
|
+
31: C,
|
|
1258
|
+
33: w,
|
|
1259
|
+
35: T,
|
|
1260
|
+
36: E,
|
|
1261
|
+
37: D,
|
|
1262
|
+
38: O,
|
|
1263
|
+
39: k,
|
|
1264
|
+
41: A,
|
|
1265
|
+
43: j,
|
|
1266
|
+
44: M,
|
|
1267
|
+
46: N,
|
|
1268
|
+
50: P,
|
|
1269
|
+
52: F,
|
|
1270
|
+
53: I,
|
|
1271
|
+
55: L,
|
|
1272
|
+
60: R,
|
|
1273
|
+
61: z,
|
|
1274
|
+
62: B,
|
|
1275
|
+
63: V,
|
|
1276
|
+
71: H
|
|
1277
|
+
},
|
|
1278
|
+
{ 16: [1, 140] },
|
|
1279
|
+
{
|
|
1280
|
+
4: m,
|
|
1281
|
+
5: h,
|
|
1282
|
+
8: 8,
|
|
1283
|
+
9: 10,
|
|
1284
|
+
12: 12,
|
|
1285
|
+
13: g,
|
|
1286
|
+
14: _,
|
|
1287
|
+
16: [2, 46],
|
|
1288
|
+
17: 15,
|
|
1289
|
+
18: v,
|
|
1290
|
+
21: y,
|
|
1291
|
+
22: 40,
|
|
1292
|
+
23: b,
|
|
1293
|
+
24: 19,
|
|
1294
|
+
25: 20,
|
|
1295
|
+
26: 21,
|
|
1296
|
+
27: 22,
|
|
1297
|
+
28: 23,
|
|
1298
|
+
29: x,
|
|
1299
|
+
30: S,
|
|
1300
|
+
31: C,
|
|
1301
|
+
33: w,
|
|
1302
|
+
35: T,
|
|
1303
|
+
36: E,
|
|
1304
|
+
37: D,
|
|
1305
|
+
38: O,
|
|
1306
|
+
39: k,
|
|
1307
|
+
41: A,
|
|
1308
|
+
43: j,
|
|
1309
|
+
44: M,
|
|
1310
|
+
46: N,
|
|
1311
|
+
49: [1, 141],
|
|
1312
|
+
50: P,
|
|
1313
|
+
52: F,
|
|
1314
|
+
53: I,
|
|
1315
|
+
55: L,
|
|
1316
|
+
60: R,
|
|
1317
|
+
61: z,
|
|
1318
|
+
62: B,
|
|
1319
|
+
63: V,
|
|
1320
|
+
71: H
|
|
1321
|
+
},
|
|
1322
|
+
{ 16: [1, 142] },
|
|
1323
|
+
{
|
|
1324
|
+
4: m,
|
|
1325
|
+
5: h,
|
|
1326
|
+
8: 8,
|
|
1327
|
+
9: 10,
|
|
1328
|
+
12: 12,
|
|
1329
|
+
13: g,
|
|
1330
|
+
14: _,
|
|
1331
|
+
16: [2, 44],
|
|
1332
|
+
17: 15,
|
|
1333
|
+
18: v,
|
|
1334
|
+
21: y,
|
|
1335
|
+
22: 40,
|
|
1336
|
+
23: b,
|
|
1337
|
+
24: 19,
|
|
1338
|
+
25: 20,
|
|
1339
|
+
26: 21,
|
|
1340
|
+
27: 22,
|
|
1341
|
+
28: 23,
|
|
1342
|
+
29: x,
|
|
1343
|
+
30: S,
|
|
1344
|
+
31: C,
|
|
1345
|
+
33: w,
|
|
1346
|
+
35: T,
|
|
1347
|
+
36: E,
|
|
1348
|
+
37: D,
|
|
1349
|
+
38: O,
|
|
1350
|
+
39: k,
|
|
1351
|
+
41: A,
|
|
1352
|
+
43: j,
|
|
1353
|
+
44: M,
|
|
1354
|
+
46: N,
|
|
1355
|
+
48: [1, 143],
|
|
1356
|
+
50: P,
|
|
1357
|
+
52: F,
|
|
1358
|
+
53: I,
|
|
1359
|
+
55: L,
|
|
1360
|
+
60: R,
|
|
1361
|
+
61: z,
|
|
1362
|
+
62: B,
|
|
1363
|
+
63: V,
|
|
1364
|
+
71: H
|
|
1365
|
+
},
|
|
1366
|
+
{ 16: [1, 144] },
|
|
1367
|
+
{ 16: [1, 145] },
|
|
1368
|
+
{
|
|
1369
|
+
4: m,
|
|
1370
|
+
5: h,
|
|
1371
|
+
8: 8,
|
|
1372
|
+
9: 10,
|
|
1373
|
+
12: 12,
|
|
1374
|
+
13: g,
|
|
1375
|
+
14: _,
|
|
1376
|
+
16: [2, 42],
|
|
1377
|
+
17: 15,
|
|
1378
|
+
18: v,
|
|
1379
|
+
21: y,
|
|
1380
|
+
22: 40,
|
|
1381
|
+
23: b,
|
|
1382
|
+
24: 19,
|
|
1383
|
+
25: 20,
|
|
1384
|
+
26: 21,
|
|
1385
|
+
27: 22,
|
|
1386
|
+
28: 23,
|
|
1387
|
+
29: x,
|
|
1388
|
+
30: S,
|
|
1389
|
+
31: C,
|
|
1390
|
+
33: w,
|
|
1391
|
+
35: T,
|
|
1392
|
+
36: E,
|
|
1393
|
+
37: D,
|
|
1394
|
+
38: O,
|
|
1395
|
+
39: k,
|
|
1396
|
+
41: A,
|
|
1397
|
+
43: j,
|
|
1398
|
+
44: M,
|
|
1399
|
+
46: N,
|
|
1400
|
+
47: [1, 146],
|
|
1401
|
+
50: P,
|
|
1402
|
+
52: F,
|
|
1403
|
+
53: I,
|
|
1404
|
+
55: L,
|
|
1405
|
+
60: R,
|
|
1406
|
+
61: z,
|
|
1407
|
+
62: B,
|
|
1408
|
+
63: V,
|
|
1409
|
+
71: H
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
4: m,
|
|
1413
|
+
5: h,
|
|
1414
|
+
8: 8,
|
|
1415
|
+
9: 10,
|
|
1416
|
+
12: 12,
|
|
1417
|
+
13: g,
|
|
1418
|
+
14: _,
|
|
1419
|
+
16: [1, 147],
|
|
1420
|
+
17: 15,
|
|
1421
|
+
18: v,
|
|
1422
|
+
21: y,
|
|
1423
|
+
22: 40,
|
|
1424
|
+
23: b,
|
|
1425
|
+
24: 19,
|
|
1426
|
+
25: 20,
|
|
1427
|
+
26: 21,
|
|
1428
|
+
27: 22,
|
|
1429
|
+
28: 23,
|
|
1430
|
+
29: x,
|
|
1431
|
+
30: S,
|
|
1432
|
+
31: C,
|
|
1433
|
+
33: w,
|
|
1434
|
+
35: T,
|
|
1435
|
+
36: E,
|
|
1436
|
+
37: D,
|
|
1437
|
+
38: O,
|
|
1438
|
+
39: k,
|
|
1439
|
+
41: A,
|
|
1440
|
+
43: j,
|
|
1441
|
+
44: M,
|
|
1442
|
+
46: N,
|
|
1443
|
+
50: P,
|
|
1444
|
+
52: F,
|
|
1445
|
+
53: I,
|
|
1446
|
+
55: L,
|
|
1447
|
+
60: R,
|
|
1448
|
+
61: z,
|
|
1449
|
+
62: B,
|
|
1450
|
+
63: V,
|
|
1451
|
+
71: H
|
|
1452
|
+
},
|
|
1453
|
+
{ 15: [1, 148] },
|
|
1454
|
+
t(U, [2, 49]),
|
|
1455
|
+
t(U, [2, 53]),
|
|
1456
|
+
{ 5: [2, 69] },
|
|
1457
|
+
{ 74: [1, 149] },
|
|
1458
|
+
{ 15: [1, 150] },
|
|
1459
|
+
t(U, [2, 51]),
|
|
1460
|
+
t(U, [2, 52]),
|
|
1461
|
+
{
|
|
1462
|
+
22: 151,
|
|
1463
|
+
71: H
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
22: 152,
|
|
1467
|
+
71: H
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
57: 153,
|
|
1471
|
+
86: Z
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
57: 154,
|
|
1475
|
+
86: Z
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
57: 155,
|
|
1479
|
+
86: Z
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
65: [1, 156],
|
|
1483
|
+
86: [2, 63]
|
|
1484
|
+
},
|
|
1485
|
+
{ 5: [2, 56] },
|
|
1486
|
+
{ 5: [2, 82] },
|
|
1487
|
+
{ 5: [2, 57] },
|
|
1488
|
+
{ 5: [2, 58] },
|
|
1489
|
+
{ 5: [2, 59] },
|
|
1490
|
+
t(U, [2, 16]),
|
|
1491
|
+
t(G, [2, 10]),
|
|
1492
|
+
{
|
|
1493
|
+
12: 157,
|
|
1494
|
+
50: P,
|
|
1495
|
+
52: F,
|
|
1496
|
+
53: I
|
|
1497
|
+
},
|
|
1498
|
+
t(G, [2, 12]),
|
|
1499
|
+
t(G, [2, 13]),
|
|
1500
|
+
t(U, [2, 18]),
|
|
1501
|
+
t(U, [2, 34]),
|
|
1502
|
+
t(U, [2, 35]),
|
|
1503
|
+
t(U, [2, 36]),
|
|
1504
|
+
t(U, [2, 37]),
|
|
1505
|
+
{ 15: [1, 158] },
|
|
1506
|
+
t(U, [2, 38]),
|
|
1507
|
+
{ 15: [1, 159] },
|
|
1508
|
+
t(U, [2, 39]),
|
|
1509
|
+
t(U, [2, 40]),
|
|
1510
|
+
{ 15: [1, 160] },
|
|
1511
|
+
t(U, [2, 41]),
|
|
1512
|
+
{ 5: [1, 161] },
|
|
1513
|
+
{ 75: [1, 162] },
|
|
1514
|
+
{ 5: [1, 163] },
|
|
1515
|
+
{
|
|
1516
|
+
57: 164,
|
|
1517
|
+
86: Z
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
57: 165,
|
|
1521
|
+
86: Z
|
|
1522
|
+
},
|
|
1523
|
+
{ 5: [2, 68] },
|
|
1524
|
+
{ 5: [2, 54] },
|
|
1525
|
+
{ 5: [2, 55] },
|
|
1526
|
+
{
|
|
1527
|
+
22: 166,
|
|
1528
|
+
71: H
|
|
1529
|
+
},
|
|
1530
|
+
t(G, [2, 11]),
|
|
1531
|
+
t(q, p, {
|
|
1532
|
+
7: 105,
|
|
1533
|
+
40: 167
|
|
1534
|
+
}),
|
|
1535
|
+
t(J, p, {
|
|
1536
|
+
7: 107,
|
|
1537
|
+
42: 168
|
|
1538
|
+
}),
|
|
1539
|
+
t(Y, p, {
|
|
1540
|
+
7: 110,
|
|
1541
|
+
45: 169
|
|
1542
|
+
}),
|
|
1543
|
+
t(U, [2, 48]),
|
|
1544
|
+
{ 5: [2, 70] },
|
|
1545
|
+
t(U, [2, 50]),
|
|
1546
|
+
{ 5: [2, 66] },
|
|
1547
|
+
{ 5: [2, 67] },
|
|
1548
|
+
{ 86: [2, 62] },
|
|
1549
|
+
{ 16: [2, 47] },
|
|
1550
|
+
{ 16: [2, 45] },
|
|
1551
|
+
{ 16: [2, 43] }
|
|
1552
|
+
],
|
|
1553
|
+
defaultActions: {
|
|
1554
|
+
5: [2, 1],
|
|
1555
|
+
6: [2, 2],
|
|
1556
|
+
89: [2, 64],
|
|
1557
|
+
90: [2, 65],
|
|
1558
|
+
115: [2, 69],
|
|
1559
|
+
126: [2, 56],
|
|
1560
|
+
127: [2, 82],
|
|
1561
|
+
128: [2, 57],
|
|
1562
|
+
129: [2, 58],
|
|
1563
|
+
130: [2, 59],
|
|
1564
|
+
153: [2, 68],
|
|
1565
|
+
154: [2, 54],
|
|
1566
|
+
155: [2, 55],
|
|
1567
|
+
162: [2, 70],
|
|
1568
|
+
164: [2, 66],
|
|
1569
|
+
165: [2, 67],
|
|
1570
|
+
166: [2, 62],
|
|
1571
|
+
167: [2, 47],
|
|
1572
|
+
168: [2, 45],
|
|
1573
|
+
169: [2, 43]
|
|
1574
|
+
},
|
|
1575
|
+
parseError: /* @__PURE__ */ __name(function(t, l) {
|
|
1576
|
+
if (l.recoverable) this.trace(t);
|
|
1577
|
+
else {
|
|
1578
|
+
var u = Error(t);
|
|
1579
|
+
throw u.hash = l, u;
|
|
1580
|
+
}
|
|
1581
|
+
}, "parseError"),
|
|
1582
|
+
parse: /* @__PURE__ */ __name(function(t) {
|
|
1583
|
+
var l = this, u = [0], d = [], p = [null], m = [], h = this.table, g = "", _ = 0, v = 0, y = 0, b = 2, x = 1, S = m.slice.call(arguments, 1), C = Object.create(this.lexer), w = { yy: {} };
|
|
1584
|
+
for (var T in this.yy) Object.prototype.hasOwnProperty.call(this.yy, T) && (w.yy[T] = this.yy[T]);
|
|
1585
|
+
C.setInput(t, w.yy), w.yy.lexer = C, w.yy.parser = this, C.yylloc === void 0 && (C.yylloc = {});
|
|
1586
|
+
var E = C.yylloc;
|
|
1587
|
+
m.push(E);
|
|
1588
|
+
var D = C.options && C.options.ranges;
|
|
1589
|
+
typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1590
|
+
function O(t) {
|
|
1591
|
+
u.length -= 2 * t, p.length -= t, m.length -= t;
|
|
1592
|
+
}
|
|
1593
|
+
__name(O, "popStack");
|
|
1594
|
+
function k() {
|
|
1595
|
+
var t = d.pop() || C.lex() || x;
|
|
1596
|
+
return typeof t != "number" && (t instanceof Array && (d = t, t = d.pop()), t = l.symbols_[t] || t), t;
|
|
1597
|
+
}
|
|
1598
|
+
__name(k, "lex");
|
|
1599
|
+
for (var A, j, M, N, P, F = {}, I, L, R, z;;) {
|
|
1600
|
+
if (M = u[u.length - 1], this.defaultActions[M] ? N = this.defaultActions[M] : (A ??= k(), N = h[M] && h[M][A]), N === void 0 || !N.length || !N[0]) {
|
|
1601
|
+
var B = "";
|
|
1602
|
+
for (I in z = [], h[M]) this.terminals_[I] && I > b && z.push("'" + this.terminals_[I] + "'");
|
|
1603
|
+
B = C.showPosition ? "Parse error on line " + (_ + 1) + ":\n" + C.showPosition() + "\nExpecting " + z.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : "Parse error on line " + (_ + 1) + ": Unexpected " + (A == x ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(B, {
|
|
1604
|
+
text: C.match,
|
|
1605
|
+
token: this.terminals_[A] || A,
|
|
1606
|
+
line: C.yylineno,
|
|
1607
|
+
loc: E,
|
|
1608
|
+
expected: z
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + A);
|
|
1612
|
+
switch (N[0]) {
|
|
1613
|
+
case 1:
|
|
1614
|
+
u.push(A), p.push(C.yytext), m.push(C.yylloc), u.push(N[1]), A = null, j ? (A = j, j = null) : (v = C.yyleng, g = C.yytext, _ = C.yylineno, E = C.yylloc, y > 0 && y--);
|
|
1615
|
+
break;
|
|
1616
|
+
case 2:
|
|
1617
|
+
if (L = this.productions_[N[1]][1], F.$ = p[p.length - L], F._$ = {
|
|
1618
|
+
first_line: m[m.length - (L || 1)].first_line,
|
|
1619
|
+
last_line: m[m.length - 1].last_line,
|
|
1620
|
+
first_column: m[m.length - (L || 1)].first_column,
|
|
1621
|
+
last_column: m[m.length - 1].last_column
|
|
1622
|
+
}, D && (F._$.range = [m[m.length - (L || 1)].range[0], m[m.length - 1].range[1]]), P = this.performAction.apply(F, [
|
|
1623
|
+
g,
|
|
1624
|
+
v,
|
|
1625
|
+
_,
|
|
1626
|
+
w.yy,
|
|
1627
|
+
N[1],
|
|
1628
|
+
p,
|
|
1629
|
+
m
|
|
1630
|
+
].concat(S)), P !== void 0) return P;
|
|
1631
|
+
L && (u = u.slice(0, -1 * L * 2), p = p.slice(0, -1 * L), m = m.slice(0, -1 * L)), u.push(this.productions_[N[1]][0]), p.push(F.$), m.push(F._$), R = h[u[u.length - 2]][u[u.length - 1]], u.push(R);
|
|
1632
|
+
break;
|
|
1633
|
+
case 3: return !0;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
return !0;
|
|
1637
|
+
}, "parse")
|
|
1638
|
+
};
|
|
1639
|
+
Q.lexer = /* @__PURE__ */ (function() {
|
|
1640
|
+
return {
|
|
1641
|
+
EOF: 1,
|
|
1642
|
+
parseError: /* @__PURE__ */ __name(function(t, l) {
|
|
1643
|
+
if (this.yy.parser) this.yy.parser.parseError(t, l);
|
|
1644
|
+
else throw Error(t);
|
|
1645
|
+
}, "parseError"),
|
|
1646
|
+
setInput: /* @__PURE__ */ __name(function(t, l) {
|
|
1647
|
+
return this.yy = l || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1648
|
+
first_line: 1,
|
|
1649
|
+
first_column: 0,
|
|
1650
|
+
last_line: 1,
|
|
1651
|
+
last_column: 0
|
|
1652
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1653
|
+
}, "setInput"),
|
|
1654
|
+
input: /* @__PURE__ */ __name(function() {
|
|
1655
|
+
var t = this._input[0];
|
|
1656
|
+
return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.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), t;
|
|
1657
|
+
}, "input"),
|
|
1658
|
+
unput: /* @__PURE__ */ __name(function(t) {
|
|
1659
|
+
var l = t.length, u = t.split(/(?:\r\n?|\n)/g);
|
|
1660
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
1661
|
+
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
1662
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
|
|
1663
|
+
var f = this.yylloc.range;
|
|
1664
|
+
return this.yylloc = {
|
|
1665
|
+
first_line: this.yylloc.first_line,
|
|
1666
|
+
last_line: this.yylineno + 1,
|
|
1667
|
+
first_column: this.yylloc.first_column,
|
|
1668
|
+
last_column: u ? (u.length === d.length ? this.yylloc.first_column : 0) + d[d.length - u.length].length - u[0].length : this.yylloc.first_column - l
|
|
1669
|
+
}, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
1670
|
+
}, "unput"),
|
|
1671
|
+
more: /* @__PURE__ */ __name(function() {
|
|
1672
|
+
return this._more = !0, this;
|
|
1673
|
+
}, "more"),
|
|
1674
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
1675
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1676
|
+
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(), {
|
|
1677
|
+
text: "",
|
|
1678
|
+
token: null,
|
|
1679
|
+
line: this.yylineno
|
|
1680
|
+
});
|
|
1681
|
+
return this;
|
|
1682
|
+
}, "reject"),
|
|
1683
|
+
less: /* @__PURE__ */ __name(function(t) {
|
|
1684
|
+
this.unput(this.match.slice(t));
|
|
1685
|
+
}, "less"),
|
|
1686
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
1687
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1688
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
1689
|
+
}, "pastInput"),
|
|
1690
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
1691
|
+
var t = this.match;
|
|
1692
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1693
|
+
}, "upcomingInput"),
|
|
1694
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
1695
|
+
var t = this.pastInput(), l = Array(t.length + 1).join("-");
|
|
1696
|
+
return t + this.upcomingInput() + "\n" + l + "^";
|
|
1697
|
+
}, "showPosition"),
|
|
1698
|
+
test_match: /* @__PURE__ */ __name(function(t, l) {
|
|
1699
|
+
var u, d, f;
|
|
1700
|
+
if (this.options.backtrack_lexer && (f = {
|
|
1701
|
+
yylineno: this.yylineno,
|
|
1702
|
+
yylloc: {
|
|
1703
|
+
first_line: this.yylloc.first_line,
|
|
1704
|
+
last_line: this.last_line,
|
|
1705
|
+
first_column: this.yylloc.first_column,
|
|
1706
|
+
last_column: this.yylloc.last_column
|
|
1707
|
+
},
|
|
1708
|
+
yytext: this.yytext,
|
|
1709
|
+
match: this.match,
|
|
1710
|
+
matches: this.matches,
|
|
1711
|
+
matched: this.matched,
|
|
1712
|
+
yyleng: this.yyleng,
|
|
1713
|
+
offset: this.offset,
|
|
1714
|
+
_more: this._more,
|
|
1715
|
+
_input: this._input,
|
|
1716
|
+
yy: this.yy,
|
|
1717
|
+
conditionStack: this.conditionStack.slice(0),
|
|
1718
|
+
done: this.done
|
|
1719
|
+
}, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), d = t[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
1720
|
+
first_line: this.yylloc.last_line,
|
|
1721
|
+
last_line: this.yylineno + 1,
|
|
1722
|
+
first_column: this.yylloc.last_column,
|
|
1723
|
+
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
1724
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
|
|
1725
|
+
if (this._backtrack) {
|
|
1726
|
+
for (var p in f) this[p] = f[p];
|
|
1727
|
+
return !1;
|
|
1728
|
+
}
|
|
1729
|
+
return !1;
|
|
1730
|
+
}, "test_match"),
|
|
1731
|
+
next: /* @__PURE__ */ __name(function() {
|
|
1732
|
+
if (this.done) return this.EOF;
|
|
1733
|
+
this._input || (this.done = !0);
|
|
1734
|
+
var t, l, u, d;
|
|
1735
|
+
this._more || (this.yytext = "", this.match = "");
|
|
1736
|
+
for (var f = this._currentRules(), p = 0; p < f.length; p++) if (u = this._input.match(this.rules[f[p]]), u && (!l || u[0].length > l[0].length)) {
|
|
1737
|
+
if (l = u, d = p, this.options.backtrack_lexer) {
|
|
1738
|
+
if (t = this.test_match(u, f[p]), t !== !1) return t;
|
|
1739
|
+
if (this._backtrack) {
|
|
1740
|
+
l = !1;
|
|
1741
|
+
continue;
|
|
1742
|
+
} else return !1;
|
|
1743
|
+
} else if (!this.options.flex) break;
|
|
1744
|
+
}
|
|
1745
|
+
return l ? (t = this.test_match(l, f[d]), t === !1 ? !1 : t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1746
|
+
text: "",
|
|
1747
|
+
token: null,
|
|
1748
|
+
line: this.yylineno
|
|
1749
|
+
});
|
|
1750
|
+
}, "next"),
|
|
1751
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
1752
|
+
return this.next() || this.lex();
|
|
1753
|
+
}, "lex"),
|
|
1754
|
+
begin: /* @__PURE__ */ __name(function(t) {
|
|
1755
|
+
this.conditionStack.push(t);
|
|
1756
|
+
}, "begin"),
|
|
1757
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
1758
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1759
|
+
}, "popState"),
|
|
1760
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
1761
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1762
|
+
}, "_currentRules"),
|
|
1763
|
+
topState: /* @__PURE__ */ __name(function(t) {
|
|
1764
|
+
return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
|
|
1765
|
+
}, "topState"),
|
|
1766
|
+
pushState: /* @__PURE__ */ __name(function(t) {
|
|
1767
|
+
this.begin(t);
|
|
1768
|
+
}, "pushState"),
|
|
1769
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
1770
|
+
return this.conditionStack.length;
|
|
1771
|
+
}, "stateStackSize"),
|
|
1772
|
+
options: { "case-insensitive": !0 },
|
|
1773
|
+
performAction: /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
1774
|
+
switch (u) {
|
|
1775
|
+
case 0: return 5;
|
|
1776
|
+
case 1: break;
|
|
1777
|
+
case 2: break;
|
|
1778
|
+
case 3: break;
|
|
1779
|
+
case 4: break;
|
|
1780
|
+
case 5: break;
|
|
1781
|
+
case 6: return 19;
|
|
1782
|
+
case 7: return this.begin("CONFIG"), 73;
|
|
1783
|
+
case 8: return 74;
|
|
1784
|
+
case 9: return this.popState(), this.popState(), 75;
|
|
1785
|
+
case 10: return l.yytext = l.yytext.trim(), 71;
|
|
1786
|
+
case 11: return l.yytext = l.yytext.trim(), this.begin("ALIAS"), 71;
|
|
1787
|
+
case 12: return this.begin("LINE"), 14;
|
|
1788
|
+
case 13: return this.begin("ID"), 50;
|
|
1789
|
+
case 14: return this.begin("ID"), 52;
|
|
1790
|
+
case 15: return 13;
|
|
1791
|
+
case 16: return this.begin("ID"), 53;
|
|
1792
|
+
case 17: return l.yytext = l.yytext.trim(), this.begin("ALIAS"), 71;
|
|
1793
|
+
case 18: return this.popState(), this.popState(), this.begin("LINE"), 51;
|
|
1794
|
+
case 19: return this.popState(), this.popState(), 5;
|
|
1795
|
+
case 20: return this.begin("LINE"), 36;
|
|
1796
|
+
case 21: return this.begin("LINE"), 37;
|
|
1797
|
+
case 22: return this.begin("LINE"), 38;
|
|
1798
|
+
case 23: return this.begin("LINE"), 39;
|
|
1799
|
+
case 24: return this.begin("LINE"), 49;
|
|
1800
|
+
case 25: return this.begin("LINE"), 41;
|
|
1801
|
+
case 26: return this.begin("LINE"), 43;
|
|
1802
|
+
case 27: return this.begin("LINE"), 48;
|
|
1803
|
+
case 28: return this.begin("LINE"), 44;
|
|
1804
|
+
case 29: return this.begin("LINE"), 47;
|
|
1805
|
+
case 30: return this.begin("LINE"), 46;
|
|
1806
|
+
case 31: return this.popState(), 15;
|
|
1807
|
+
case 32: return 16;
|
|
1808
|
+
case 33: return 66;
|
|
1809
|
+
case 34: return 67;
|
|
1810
|
+
case 35: return 60;
|
|
1811
|
+
case 36: return 61;
|
|
1812
|
+
case 37: return 62;
|
|
1813
|
+
case 38: return 63;
|
|
1814
|
+
case 39: return 58;
|
|
1815
|
+
case 40: return 55;
|
|
1816
|
+
case 41: return this.begin("ID"), 21;
|
|
1817
|
+
case 42: return this.begin("ID"), 23;
|
|
1818
|
+
case 43: return 29;
|
|
1819
|
+
case 44: return 30;
|
|
1820
|
+
case 45: return this.begin("acc_title"), 31;
|
|
1821
|
+
case 46: return this.popState(), "acc_title_value";
|
|
1822
|
+
case 47: return this.begin("acc_descr"), 33;
|
|
1823
|
+
case 48: return this.popState(), "acc_descr_value";
|
|
1824
|
+
case 49:
|
|
1825
|
+
this.begin("acc_descr_multiline");
|
|
1826
|
+
break;
|
|
1827
|
+
case 50:
|
|
1828
|
+
this.popState();
|
|
1829
|
+
break;
|
|
1830
|
+
case 51: return "acc_descr_multiline_value";
|
|
1831
|
+
case 52: return 6;
|
|
1832
|
+
case 53: return 18;
|
|
1833
|
+
case 54: return 20;
|
|
1834
|
+
case 55: return 65;
|
|
1835
|
+
case 56: return 5;
|
|
1836
|
+
case 57: return l.yytext = l.yytext.trim(), 71;
|
|
1837
|
+
case 58: return 78;
|
|
1838
|
+
case 59: return 79;
|
|
1839
|
+
case 60: return 80;
|
|
1840
|
+
case 61: return 81;
|
|
1841
|
+
case 62: return 76;
|
|
1842
|
+
case 63: return 77;
|
|
1843
|
+
case 64: return 82;
|
|
1844
|
+
case 65: return 83;
|
|
1845
|
+
case 66: return 84;
|
|
1846
|
+
case 67: return 85;
|
|
1847
|
+
case 68: return 86;
|
|
1848
|
+
case 69: return 86;
|
|
1849
|
+
case 70: return 69;
|
|
1850
|
+
case 71: return 70;
|
|
1851
|
+
case 72: return 5;
|
|
1852
|
+
case 73: return "INVALID";
|
|
1853
|
+
}
|
|
1854
|
+
}, "anonymous"),
|
|
1855
|
+
rules: [
|
|
1856
|
+
/^(?:[\n]+)/i,
|
|
1857
|
+
/^(?:\s+)/i,
|
|
1858
|
+
/^(?:((?!\n)\s)+)/i,
|
|
1859
|
+
/^(?:#[^\n]*)/i,
|
|
1860
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
1861
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
1862
|
+
/^(?:[0-9]+(?=[ \n]+))/i,
|
|
1863
|
+
/^(?:@\{)/i,
|
|
1864
|
+
/^(?:[^\}]+)/i,
|
|
1865
|
+
/^(?:\})/i,
|
|
1866
|
+
/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
|
|
1867
|
+
/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
|
|
1868
|
+
/^(?:box\b)/i,
|
|
1869
|
+
/^(?:participant\b)/i,
|
|
1870
|
+
/^(?:actor\b)/i,
|
|
1871
|
+
/^(?:create\b)/i,
|
|
1872
|
+
/^(?:destroy\b)/i,
|
|
1873
|
+
/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
|
|
1874
|
+
/^(?:as\b)/i,
|
|
1875
|
+
/^(?:(?:))/i,
|
|
1876
|
+
/^(?:loop\b)/i,
|
|
1877
|
+
/^(?:rect\b)/i,
|
|
1878
|
+
/^(?:opt\b)/i,
|
|
1879
|
+
/^(?:alt\b)/i,
|
|
1880
|
+
/^(?:else\b)/i,
|
|
1881
|
+
/^(?:par\b)/i,
|
|
1882
|
+
/^(?:par_over\b)/i,
|
|
1883
|
+
/^(?:and\b)/i,
|
|
1884
|
+
/^(?:critical\b)/i,
|
|
1885
|
+
/^(?:option\b)/i,
|
|
1886
|
+
/^(?:break\b)/i,
|
|
1887
|
+
/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
|
|
1888
|
+
/^(?:end\b)/i,
|
|
1889
|
+
/^(?:left of\b)/i,
|
|
1890
|
+
/^(?:right of\b)/i,
|
|
1891
|
+
/^(?:links\b)/i,
|
|
1892
|
+
/^(?:link\b)/i,
|
|
1893
|
+
/^(?:properties\b)/i,
|
|
1894
|
+
/^(?:details\b)/i,
|
|
1895
|
+
/^(?:over\b)/i,
|
|
1896
|
+
/^(?:note\b)/i,
|
|
1897
|
+
/^(?:activate\b)/i,
|
|
1898
|
+
/^(?:deactivate\b)/i,
|
|
1899
|
+
/^(?:title\s[^#\n;]+)/i,
|
|
1900
|
+
/^(?:title:\s[^#\n;]+)/i,
|
|
1901
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
1902
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1903
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
1904
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1905
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
1906
|
+
/^(?:[\}])/i,
|
|
1907
|
+
/^(?:[^\}]*)/i,
|
|
1908
|
+
/^(?:sequenceDiagram\b)/i,
|
|
1909
|
+
/^(?:autonumber\b)/i,
|
|
1910
|
+
/^(?:off\b)/i,
|
|
1911
|
+
/^(?:,)/i,
|
|
1912
|
+
/^(?:;)/i,
|
|
1913
|
+
/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
|
|
1914
|
+
/^(?:->>)/i,
|
|
1915
|
+
/^(?:<<->>)/i,
|
|
1916
|
+
/^(?:-->>)/i,
|
|
1917
|
+
/^(?:<<-->>)/i,
|
|
1918
|
+
/^(?:->)/i,
|
|
1919
|
+
/^(?:-->)/i,
|
|
1920
|
+
/^(?:-[x])/i,
|
|
1921
|
+
/^(?:--[x])/i,
|
|
1922
|
+
/^(?:-[\)])/i,
|
|
1923
|
+
/^(?:--[\)])/i,
|
|
1924
|
+
/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
|
|
1925
|
+
/^(?::)/i,
|
|
1926
|
+
/^(?:\+)/i,
|
|
1927
|
+
/^(?:-)/i,
|
|
1928
|
+
/^(?:$)/i,
|
|
1929
|
+
/^(?:.)/i
|
|
1930
|
+
],
|
|
1931
|
+
conditions: {
|
|
1932
|
+
acc_descr_multiline: {
|
|
1933
|
+
rules: [50, 51],
|
|
1934
|
+
inclusive: !1
|
|
1935
|
+
},
|
|
1936
|
+
acc_descr: {
|
|
1937
|
+
rules: [48],
|
|
1938
|
+
inclusive: !1
|
|
1939
|
+
},
|
|
1940
|
+
acc_title: {
|
|
1941
|
+
rules: [46],
|
|
1942
|
+
inclusive: !1
|
|
1943
|
+
},
|
|
1944
|
+
ID: {
|
|
1945
|
+
rules: [
|
|
1946
|
+
2,
|
|
1947
|
+
3,
|
|
1948
|
+
7,
|
|
1949
|
+
10,
|
|
1950
|
+
11,
|
|
1951
|
+
17
|
|
1952
|
+
],
|
|
1953
|
+
inclusive: !1
|
|
1954
|
+
},
|
|
1955
|
+
ALIAS: {
|
|
1956
|
+
rules: [
|
|
1957
|
+
2,
|
|
1958
|
+
3,
|
|
1959
|
+
18,
|
|
1960
|
+
19
|
|
1961
|
+
],
|
|
1962
|
+
inclusive: !1
|
|
1963
|
+
},
|
|
1964
|
+
LINE: {
|
|
1965
|
+
rules: [
|
|
1966
|
+
2,
|
|
1967
|
+
3,
|
|
1968
|
+
31
|
|
1969
|
+
],
|
|
1970
|
+
inclusive: !1
|
|
1971
|
+
},
|
|
1972
|
+
CONFIG: {
|
|
1973
|
+
rules: [8, 9],
|
|
1974
|
+
inclusive: !1
|
|
1975
|
+
},
|
|
1976
|
+
CONFIG_DATA: {
|
|
1977
|
+
rules: [],
|
|
1978
|
+
inclusive: !1
|
|
1979
|
+
},
|
|
1980
|
+
INITIAL: {
|
|
1981
|
+
rules: [
|
|
1982
|
+
0,
|
|
1983
|
+
1,
|
|
1984
|
+
3,
|
|
1985
|
+
4,
|
|
1986
|
+
5,
|
|
1987
|
+
6,
|
|
1988
|
+
12,
|
|
1989
|
+
13,
|
|
1990
|
+
14,
|
|
1991
|
+
15,
|
|
1992
|
+
16,
|
|
1993
|
+
20,
|
|
1994
|
+
21,
|
|
1995
|
+
22,
|
|
1996
|
+
23,
|
|
1997
|
+
24,
|
|
1998
|
+
25,
|
|
1999
|
+
26,
|
|
2000
|
+
27,
|
|
2001
|
+
28,
|
|
2002
|
+
29,
|
|
2003
|
+
30,
|
|
2004
|
+
32,
|
|
2005
|
+
33,
|
|
2006
|
+
34,
|
|
2007
|
+
35,
|
|
2008
|
+
36,
|
|
2009
|
+
37,
|
|
2010
|
+
38,
|
|
2011
|
+
39,
|
|
2012
|
+
40,
|
|
2013
|
+
41,
|
|
2014
|
+
42,
|
|
2015
|
+
43,
|
|
2016
|
+
44,
|
|
2017
|
+
45,
|
|
2018
|
+
47,
|
|
2019
|
+
49,
|
|
2020
|
+
52,
|
|
2021
|
+
53,
|
|
2022
|
+
54,
|
|
2023
|
+
55,
|
|
2024
|
+
56,
|
|
2025
|
+
57,
|
|
2026
|
+
58,
|
|
2027
|
+
59,
|
|
2028
|
+
60,
|
|
2029
|
+
61,
|
|
2030
|
+
62,
|
|
2031
|
+
63,
|
|
2032
|
+
64,
|
|
2033
|
+
65,
|
|
2034
|
+
66,
|
|
2035
|
+
67,
|
|
2036
|
+
68,
|
|
2037
|
+
69,
|
|
2038
|
+
70,
|
|
2039
|
+
71,
|
|
2040
|
+
72,
|
|
2041
|
+
73
|
|
2042
|
+
],
|
|
2043
|
+
inclusive: !0
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
};
|
|
2047
|
+
})();
|
|
2048
|
+
function $() {
|
|
2049
|
+
this.yy = {};
|
|
2050
|
+
}
|
|
2051
|
+
return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
|
|
2052
|
+
})();
|
|
2053
|
+
parser.parser = parser;
|
|
2054
|
+
var sequenceDiagram_default = parser, LINETYPE = {
|
|
2055
|
+
SOLID: 0,
|
|
2056
|
+
DOTTED: 1,
|
|
2057
|
+
NOTE: 2,
|
|
2058
|
+
SOLID_CROSS: 3,
|
|
2059
|
+
DOTTED_CROSS: 4,
|
|
2060
|
+
SOLID_OPEN: 5,
|
|
2061
|
+
DOTTED_OPEN: 6,
|
|
2062
|
+
LOOP_START: 10,
|
|
2063
|
+
LOOP_END: 11,
|
|
2064
|
+
ALT_START: 12,
|
|
2065
|
+
ALT_ELSE: 13,
|
|
2066
|
+
ALT_END: 14,
|
|
2067
|
+
OPT_START: 15,
|
|
2068
|
+
OPT_END: 16,
|
|
2069
|
+
ACTIVE_START: 17,
|
|
2070
|
+
ACTIVE_END: 18,
|
|
2071
|
+
PAR_START: 19,
|
|
2072
|
+
PAR_AND: 20,
|
|
2073
|
+
PAR_END: 21,
|
|
2074
|
+
RECT_START: 22,
|
|
2075
|
+
RECT_END: 23,
|
|
2076
|
+
SOLID_POINT: 24,
|
|
2077
|
+
DOTTED_POINT: 25,
|
|
2078
|
+
AUTONUMBER: 26,
|
|
2079
|
+
CRITICAL_START: 27,
|
|
2080
|
+
CRITICAL_OPTION: 28,
|
|
2081
|
+
CRITICAL_END: 29,
|
|
2082
|
+
BREAK_START: 30,
|
|
2083
|
+
BREAK_END: 31,
|
|
2084
|
+
PAR_OVER_START: 32,
|
|
2085
|
+
BIDIRECTIONAL_SOLID: 33,
|
|
2086
|
+
BIDIRECTIONAL_DOTTED: 34
|
|
2087
|
+
}, ARROWTYPE = {
|
|
2088
|
+
FILLED: 0,
|
|
2089
|
+
OPEN: 1
|
|
2090
|
+
}, PLACEMENT = {
|
|
2091
|
+
LEFTOF: 0,
|
|
2092
|
+
RIGHTOF: 1,
|
|
2093
|
+
OVER: 2
|
|
2094
|
+
}, PARTICIPANT_TYPE = {
|
|
2095
|
+
ACTOR: "actor",
|
|
2096
|
+
BOUNDARY: "boundary",
|
|
2097
|
+
COLLECTIONS: "collections",
|
|
2098
|
+
CONTROL: "control",
|
|
2099
|
+
DATABASE: "database",
|
|
2100
|
+
ENTITY: "entity",
|
|
2101
|
+
PARTICIPANT: "participant",
|
|
2102
|
+
QUEUE: "queue"
|
|
2103
|
+
}, SequenceDB = class {
|
|
2104
|
+
constructor() {
|
|
2105
|
+
this.state = new ImperativeState(() => ({
|
|
2106
|
+
prevActor: void 0,
|
|
2107
|
+
actors: /* @__PURE__ */ new Map(),
|
|
2108
|
+
createdActors: /* @__PURE__ */ new Map(),
|
|
2109
|
+
destroyedActors: /* @__PURE__ */ new Map(),
|
|
2110
|
+
boxes: [],
|
|
2111
|
+
messages: [],
|
|
2112
|
+
notes: [],
|
|
2113
|
+
sequenceNumbersEnabled: !1,
|
|
2114
|
+
wrapEnabled: void 0,
|
|
2115
|
+
currentBox: void 0,
|
|
2116
|
+
lastCreated: void 0,
|
|
2117
|
+
lastDestroyed: void 0
|
|
2118
|
+
})), this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(getConfig2().wrap), this.LINETYPE = LINETYPE, this.ARROWTYPE = ARROWTYPE, this.PLACEMENT = PLACEMENT;
|
|
2119
|
+
}
|
|
2120
|
+
static #e = __name(this, "SequenceDB");
|
|
2121
|
+
addBox(t) {
|
|
2122
|
+
this.state.records.boxes.push({
|
|
2123
|
+
name: t.text,
|
|
2124
|
+
wrap: t.wrap ?? this.autoWrap(),
|
|
2125
|
+
fill: t.color,
|
|
2126
|
+
actorKeys: []
|
|
2127
|
+
}), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
|
|
2128
|
+
}
|
|
2129
|
+
addActor(t, l, u, d, f) {
|
|
2130
|
+
let p = this.state.records.currentBox, m;
|
|
2131
|
+
if (f !== void 0) {
|
|
2132
|
+
let t;
|
|
2133
|
+
t = f.includes("\n") ? f + "\n" : "{\n" + f + "\n}", m = load(t, { schema: JSON_SCHEMA });
|
|
2134
|
+
}
|
|
2135
|
+
d = m?.type ?? d;
|
|
2136
|
+
let h = this.state.records.actors.get(t);
|
|
2137
|
+
if (h) {
|
|
2138
|
+
if (this.state.records.currentBox && h.box && this.state.records.currentBox !== h.box) throw Error(`A same participant should only be defined in one Box: ${h.name} can't be in '${h.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
|
|
2139
|
+
if (p = h.box ? h.box : this.state.records.currentBox, h.box = p, h && l === h.name && u == null) return;
|
|
2140
|
+
}
|
|
2141
|
+
if (u?.text ?? (u = {
|
|
2142
|
+
text: l,
|
|
2143
|
+
type: d
|
|
2144
|
+
}), (d == null || u.text == null) && (u = {
|
|
2145
|
+
text: l,
|
|
2146
|
+
type: d
|
|
2147
|
+
}), this.state.records.actors.set(t, {
|
|
2148
|
+
box: p,
|
|
2149
|
+
name: l,
|
|
2150
|
+
description: u.text,
|
|
2151
|
+
wrap: u.wrap ?? this.autoWrap(),
|
|
2152
|
+
prevActor: this.state.records.prevActor,
|
|
2153
|
+
links: {},
|
|
2154
|
+
properties: {},
|
|
2155
|
+
actorCnt: null,
|
|
2156
|
+
rectData: null,
|
|
2157
|
+
type: d ?? "participant"
|
|
2158
|
+
}), this.state.records.prevActor) {
|
|
2159
|
+
let l = this.state.records.actors.get(this.state.records.prevActor);
|
|
2160
|
+
l && (l.nextActor = t);
|
|
2161
|
+
}
|
|
2162
|
+
this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(t), this.state.records.prevActor = t;
|
|
2163
|
+
}
|
|
2164
|
+
activationCount(t) {
|
|
2165
|
+
let l, u = 0;
|
|
2166
|
+
if (!t) return 0;
|
|
2167
|
+
for (l = 0; l < this.state.records.messages.length; l++) this.state.records.messages[l].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[l].from === t && u++, this.state.records.messages[l].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[l].from === t && u--;
|
|
2168
|
+
return u;
|
|
2169
|
+
}
|
|
2170
|
+
addMessage(t, l, u, d) {
|
|
2171
|
+
this.state.records.messages.push({
|
|
2172
|
+
id: this.state.records.messages.length.toString(),
|
|
2173
|
+
from: t,
|
|
2174
|
+
to: l,
|
|
2175
|
+
message: u.text,
|
|
2176
|
+
wrap: u.wrap ?? this.autoWrap(),
|
|
2177
|
+
answer: d
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
addSignal(t, l, u, d, f = !1) {
|
|
2181
|
+
if (d === this.LINETYPE.ACTIVE_END && this.activationCount(t ?? "") < 1) {
|
|
2182
|
+
let l = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + t + ")");
|
|
2183
|
+
throw l.hash = {
|
|
2184
|
+
text: "->>-",
|
|
2185
|
+
token: "->>-",
|
|
2186
|
+
line: "1",
|
|
2187
|
+
loc: {
|
|
2188
|
+
first_line: 1,
|
|
2189
|
+
last_line: 1,
|
|
2190
|
+
first_column: 1,
|
|
2191
|
+
last_column: 1
|
|
2192
|
+
},
|
|
2193
|
+
expected: ["'ACTIVE_PARTICIPANT'"]
|
|
2194
|
+
}, l;
|
|
2195
|
+
}
|
|
2196
|
+
return this.state.records.messages.push({
|
|
2197
|
+
id: this.state.records.messages.length.toString(),
|
|
2198
|
+
from: t,
|
|
2199
|
+
to: l,
|
|
2200
|
+
message: u?.text ?? "",
|
|
2201
|
+
wrap: u?.wrap ?? this.autoWrap(),
|
|
2202
|
+
type: d,
|
|
2203
|
+
activate: f
|
|
2204
|
+
}), !0;
|
|
2205
|
+
}
|
|
2206
|
+
hasAtLeastOneBox() {
|
|
2207
|
+
return this.state.records.boxes.length > 0;
|
|
2208
|
+
}
|
|
2209
|
+
hasAtLeastOneBoxWithTitle() {
|
|
2210
|
+
return this.state.records.boxes.some((t) => t.name);
|
|
2211
|
+
}
|
|
2212
|
+
getMessages() {
|
|
2213
|
+
return this.state.records.messages;
|
|
2214
|
+
}
|
|
2215
|
+
getBoxes() {
|
|
2216
|
+
return this.state.records.boxes;
|
|
2217
|
+
}
|
|
2218
|
+
getActors() {
|
|
2219
|
+
return this.state.records.actors;
|
|
2220
|
+
}
|
|
2221
|
+
getCreatedActors() {
|
|
2222
|
+
return this.state.records.createdActors;
|
|
2223
|
+
}
|
|
2224
|
+
getDestroyedActors() {
|
|
2225
|
+
return this.state.records.destroyedActors;
|
|
2226
|
+
}
|
|
2227
|
+
getActor(t) {
|
|
2228
|
+
return this.state.records.actors.get(t);
|
|
2229
|
+
}
|
|
2230
|
+
getActorKeys() {
|
|
2231
|
+
return [...this.state.records.actors.keys()];
|
|
2232
|
+
}
|
|
2233
|
+
enableSequenceNumbers() {
|
|
2234
|
+
this.state.records.sequenceNumbersEnabled = !0;
|
|
2235
|
+
}
|
|
2236
|
+
disableSequenceNumbers() {
|
|
2237
|
+
this.state.records.sequenceNumbersEnabled = !1;
|
|
2238
|
+
}
|
|
2239
|
+
showSequenceNumbers() {
|
|
2240
|
+
return this.state.records.sequenceNumbersEnabled;
|
|
2241
|
+
}
|
|
2242
|
+
setWrap(t) {
|
|
2243
|
+
this.state.records.wrapEnabled = t;
|
|
2244
|
+
}
|
|
2245
|
+
extractWrap(t) {
|
|
2246
|
+
if (t === void 0) return {};
|
|
2247
|
+
t = t.trim();
|
|
2248
|
+
let l = /^:?wrap:/.exec(t) === null ? /^:?nowrap:/.exec(t) === null ? void 0 : !1 : !0;
|
|
2249
|
+
return {
|
|
2250
|
+
cleanedText: (l === void 0 ? t : t.replace(/^:?(?:no)?wrap:/, "")).trim(),
|
|
2251
|
+
wrap: l
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
autoWrap() {
|
|
2255
|
+
return this.state.records.wrapEnabled === void 0 ? getConfig2().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
|
|
2256
|
+
}
|
|
2257
|
+
clear() {
|
|
2258
|
+
this.state.reset(), clear();
|
|
2259
|
+
}
|
|
2260
|
+
parseMessage(t) {
|
|
2261
|
+
let l = t.trim(), { wrap: u, cleanedText: f } = this.extractWrap(l), p = {
|
|
2262
|
+
text: f,
|
|
2263
|
+
wrap: u
|
|
2264
|
+
};
|
|
2265
|
+
return log.debug(`parseMessage: ${JSON.stringify(p)}`), p;
|
|
2266
|
+
}
|
|
2267
|
+
parseBoxData(t) {
|
|
2268
|
+
let l = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t), u = l?.[1] ? l[1].trim() : "transparent", d = l?.[2] ? l[2].trim() : void 0;
|
|
2269
|
+
if (window?.CSS) window.CSS.supports("color", u) || (u = "transparent", d = t.trim());
|
|
2270
|
+
else {
|
|
2271
|
+
let l = new Option().style;
|
|
2272
|
+
l.color = u, l.color !== u && (u = "transparent", d = t.trim());
|
|
2273
|
+
}
|
|
2274
|
+
let { wrap: f, cleanedText: p } = this.extractWrap(d);
|
|
2275
|
+
return {
|
|
2276
|
+
text: p ? sanitizeText(p, getConfig2()) : void 0,
|
|
2277
|
+
color: u,
|
|
2278
|
+
wrap: f
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
addNote(t, l, u) {
|
|
2282
|
+
let d = {
|
|
2283
|
+
actor: t,
|
|
2284
|
+
placement: l,
|
|
2285
|
+
message: u.text,
|
|
2286
|
+
wrap: u.wrap ?? this.autoWrap()
|
|
2287
|
+
}, f = [].concat(t, t);
|
|
2288
|
+
this.state.records.notes.push(d), this.state.records.messages.push({
|
|
2289
|
+
id: this.state.records.messages.length.toString(),
|
|
2290
|
+
from: f[0],
|
|
2291
|
+
to: f[1],
|
|
2292
|
+
message: u.text,
|
|
2293
|
+
wrap: u.wrap ?? this.autoWrap(),
|
|
2294
|
+
type: this.LINETYPE.NOTE,
|
|
2295
|
+
placement: l
|
|
2296
|
+
});
|
|
2297
|
+
}
|
|
2298
|
+
addLinks(t, l) {
|
|
2299
|
+
let u = this.getActor(t);
|
|
2300
|
+
try {
|
|
2301
|
+
let t = sanitizeText(l.text, getConfig2());
|
|
2302
|
+
t = t.replace(/=/g, "="), t = t.replace(/&/g, "&");
|
|
2303
|
+
let d = JSON.parse(t);
|
|
2304
|
+
this.insertLinks(u, d);
|
|
2305
|
+
} catch (t) {
|
|
2306
|
+
log.error("error while parsing actor link text", t);
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
addALink(t, l) {
|
|
2310
|
+
let u = this.getActor(t);
|
|
2311
|
+
try {
|
|
2312
|
+
let t = {}, d = sanitizeText(l.text, getConfig2()), f = d.indexOf("@");
|
|
2313
|
+
d = d.replace(/=/g, "="), d = d.replace(/&/g, "&");
|
|
2314
|
+
let p = d.slice(0, f - 1).trim();
|
|
2315
|
+
t[p] = d.slice(f + 1).trim(), this.insertLinks(u, t);
|
|
2316
|
+
} catch (t) {
|
|
2317
|
+
log.error("error while parsing actor link text", t);
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
insertLinks(t, l) {
|
|
2321
|
+
if (t.links == null) t.links = l;
|
|
2322
|
+
else for (let u in l) t.links[u] = l[u];
|
|
2323
|
+
}
|
|
2324
|
+
addProperties(t, l) {
|
|
2325
|
+
let u = this.getActor(t);
|
|
2326
|
+
try {
|
|
2327
|
+
let t = sanitizeText(l.text, getConfig2()), d = JSON.parse(t);
|
|
2328
|
+
this.insertProperties(u, d);
|
|
2329
|
+
} catch (t) {
|
|
2330
|
+
log.error("error while parsing actor properties text", t);
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
insertProperties(t, l) {
|
|
2334
|
+
if (t.properties == null) t.properties = l;
|
|
2335
|
+
else for (let u in l) t.properties[u] = l[u];
|
|
2336
|
+
}
|
|
2337
|
+
boxEnd() {
|
|
2338
|
+
this.state.records.currentBox = void 0;
|
|
2339
|
+
}
|
|
2340
|
+
addDetails(t, l) {
|
|
2341
|
+
let u = this.getActor(t), f = document.getElementById(l.text);
|
|
2342
|
+
try {
|
|
2343
|
+
let t = f.innerHTML, l = JSON.parse(t);
|
|
2344
|
+
l.properties && this.insertProperties(u, l.properties), l.links && this.insertLinks(u, l.links);
|
|
2345
|
+
} catch (t) {
|
|
2346
|
+
log.error("error while parsing actor details text", t);
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
getActorProperty(t, l) {
|
|
2350
|
+
if (t?.properties !== void 0) return t.properties[l];
|
|
2351
|
+
}
|
|
2352
|
+
apply(t) {
|
|
2353
|
+
if (Array.isArray(t)) t.forEach((t) => {
|
|
2354
|
+
this.apply(t);
|
|
2355
|
+
});
|
|
2356
|
+
else switch (t.type) {
|
|
2357
|
+
case "sequenceIndex":
|
|
2358
|
+
this.state.records.messages.push({
|
|
2359
|
+
id: this.state.records.messages.length.toString(),
|
|
2360
|
+
from: void 0,
|
|
2361
|
+
to: void 0,
|
|
2362
|
+
message: {
|
|
2363
|
+
start: t.sequenceIndex,
|
|
2364
|
+
step: t.sequenceIndexStep,
|
|
2365
|
+
visible: t.sequenceVisible
|
|
2366
|
+
},
|
|
2367
|
+
wrap: !1,
|
|
2368
|
+
type: t.signalType
|
|
2369
|
+
});
|
|
2370
|
+
break;
|
|
2371
|
+
case "addParticipant":
|
|
2372
|
+
this.addActor(t.actor, t.actor, t.description, t.draw, t.config);
|
|
2373
|
+
break;
|
|
2374
|
+
case "createParticipant":
|
|
2375
|
+
if (this.state.records.actors.has(t.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
|
|
2376
|
+
this.state.records.lastCreated = t.actor, this.addActor(t.actor, t.actor, t.description, t.draw, t.config), this.state.records.createdActors.set(t.actor, this.state.records.messages.length);
|
|
2377
|
+
break;
|
|
2378
|
+
case "destroyParticipant":
|
|
2379
|
+
this.state.records.lastDestroyed = t.actor, this.state.records.destroyedActors.set(t.actor, this.state.records.messages.length);
|
|
2380
|
+
break;
|
|
2381
|
+
case "activeStart":
|
|
2382
|
+
this.addSignal(t.actor, void 0, void 0, t.signalType);
|
|
2383
|
+
break;
|
|
2384
|
+
case "activeEnd":
|
|
2385
|
+
this.addSignal(t.actor, void 0, void 0, t.signalType);
|
|
2386
|
+
break;
|
|
2387
|
+
case "addNote":
|
|
2388
|
+
this.addNote(t.actor, t.placement, t.text);
|
|
2389
|
+
break;
|
|
2390
|
+
case "addLinks":
|
|
2391
|
+
this.addLinks(t.actor, t.text);
|
|
2392
|
+
break;
|
|
2393
|
+
case "addALink":
|
|
2394
|
+
this.addALink(t.actor, t.text);
|
|
2395
|
+
break;
|
|
2396
|
+
case "addProperties":
|
|
2397
|
+
this.addProperties(t.actor, t.text);
|
|
2398
|
+
break;
|
|
2399
|
+
case "addDetails":
|
|
2400
|
+
this.addDetails(t.actor, t.text);
|
|
2401
|
+
break;
|
|
2402
|
+
case "addMessage":
|
|
2403
|
+
if (this.state.records.lastCreated) {
|
|
2404
|
+
if (t.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
|
|
2405
|
+
this.state.records.lastCreated = void 0;
|
|
2406
|
+
} else if (this.state.records.lastDestroyed) {
|
|
2407
|
+
if (t.to !== this.state.records.lastDestroyed && t.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
|
|
2408
|
+
this.state.records.lastDestroyed = void 0;
|
|
2409
|
+
}
|
|
2410
|
+
this.addSignal(t.from, t.to, t.msg, t.signalType, t.activate);
|
|
2411
|
+
break;
|
|
2412
|
+
case "boxStart":
|
|
2413
|
+
this.addBox(t.boxData);
|
|
2414
|
+
break;
|
|
2415
|
+
case "boxEnd":
|
|
2416
|
+
this.boxEnd();
|
|
2417
|
+
break;
|
|
2418
|
+
case "loopStart":
|
|
2419
|
+
this.addSignal(void 0, void 0, t.loopText, t.signalType);
|
|
2420
|
+
break;
|
|
2421
|
+
case "loopEnd":
|
|
2422
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2423
|
+
break;
|
|
2424
|
+
case "rectStart":
|
|
2425
|
+
this.addSignal(void 0, void 0, t.color, t.signalType);
|
|
2426
|
+
break;
|
|
2427
|
+
case "rectEnd":
|
|
2428
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2429
|
+
break;
|
|
2430
|
+
case "optStart":
|
|
2431
|
+
this.addSignal(void 0, void 0, t.optText, t.signalType);
|
|
2432
|
+
break;
|
|
2433
|
+
case "optEnd":
|
|
2434
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2435
|
+
break;
|
|
2436
|
+
case "altStart":
|
|
2437
|
+
this.addSignal(void 0, void 0, t.altText, t.signalType);
|
|
2438
|
+
break;
|
|
2439
|
+
case "else":
|
|
2440
|
+
this.addSignal(void 0, void 0, t.altText, t.signalType);
|
|
2441
|
+
break;
|
|
2442
|
+
case "altEnd":
|
|
2443
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2444
|
+
break;
|
|
2445
|
+
case "setAccTitle":
|
|
2446
|
+
setAccTitle(t.text);
|
|
2447
|
+
break;
|
|
2448
|
+
case "parStart":
|
|
2449
|
+
this.addSignal(void 0, void 0, t.parText, t.signalType);
|
|
2450
|
+
break;
|
|
2451
|
+
case "and":
|
|
2452
|
+
this.addSignal(void 0, void 0, t.parText, t.signalType);
|
|
2453
|
+
break;
|
|
2454
|
+
case "parEnd":
|
|
2455
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2456
|
+
break;
|
|
2457
|
+
case "criticalStart":
|
|
2458
|
+
this.addSignal(void 0, void 0, t.criticalText, t.signalType);
|
|
2459
|
+
break;
|
|
2460
|
+
case "option":
|
|
2461
|
+
this.addSignal(void 0, void 0, t.optionText, t.signalType);
|
|
2462
|
+
break;
|
|
2463
|
+
case "criticalEnd":
|
|
2464
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2465
|
+
break;
|
|
2466
|
+
case "breakStart":
|
|
2467
|
+
this.addSignal(void 0, void 0, t.breakText, t.signalType);
|
|
2468
|
+
break;
|
|
2469
|
+
case "breakEnd":
|
|
2470
|
+
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
2471
|
+
break;
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
getConfig() {
|
|
2475
|
+
return getConfig2().sequence;
|
|
2476
|
+
}
|
|
2477
|
+
}, styles_default = /* @__PURE__ */ __name((t) => `.actor {
|
|
2478
|
+
stroke: ${t.actorBorder};
|
|
2479
|
+
fill: ${t.actorBkg};
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
text.actor > tspan {
|
|
2483
|
+
fill: ${t.actorTextColor};
|
|
2484
|
+
stroke: none;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
.actor-line {
|
|
2488
|
+
stroke: ${t.actorLineColor};
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.innerArc {
|
|
2492
|
+
stroke-width: 1.5;
|
|
2493
|
+
stroke-dasharray: none;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.messageLine0 {
|
|
2497
|
+
stroke-width: 1.5;
|
|
2498
|
+
stroke-dasharray: none;
|
|
2499
|
+
stroke: ${t.signalColor};
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
.messageLine1 {
|
|
2503
|
+
stroke-width: 1.5;
|
|
2504
|
+
stroke-dasharray: 2, 2;
|
|
2505
|
+
stroke: ${t.signalColor};
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
#arrowhead path {
|
|
2509
|
+
fill: ${t.signalColor};
|
|
2510
|
+
stroke: ${t.signalColor};
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.sequenceNumber {
|
|
2514
|
+
fill: ${t.sequenceNumberColor};
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
#sequencenumber {
|
|
2518
|
+
fill: ${t.signalColor};
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
#crosshead path {
|
|
2522
|
+
fill: ${t.signalColor};
|
|
2523
|
+
stroke: ${t.signalColor};
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
.messageText {
|
|
2527
|
+
fill: ${t.signalTextColor};
|
|
2528
|
+
stroke: none;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
.labelBox {
|
|
2532
|
+
stroke: ${t.labelBoxBorderColor};
|
|
2533
|
+
fill: ${t.labelBoxBkgColor};
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.labelText, .labelText > tspan {
|
|
2537
|
+
fill: ${t.labelTextColor};
|
|
2538
|
+
stroke: none;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
.loopText, .loopText > tspan {
|
|
2542
|
+
fill: ${t.loopTextColor};
|
|
2543
|
+
stroke: none;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.loopLine {
|
|
2547
|
+
stroke-width: 2px;
|
|
2548
|
+
stroke-dasharray: 2, 2;
|
|
2549
|
+
stroke: ${t.labelBoxBorderColor};
|
|
2550
|
+
fill: ${t.labelBoxBorderColor};
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
.note {
|
|
2554
|
+
//stroke: #decc93;
|
|
2555
|
+
stroke: ${t.noteBorderColor};
|
|
2556
|
+
fill: ${t.noteBkgColor};
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
.noteText, .noteText > tspan {
|
|
2560
|
+
fill: ${t.noteTextColor};
|
|
2561
|
+
stroke: none;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
.activation0 {
|
|
2565
|
+
fill: ${t.activationBkgColor};
|
|
2566
|
+
stroke: ${t.activationBorderColor};
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.activation1 {
|
|
2570
|
+
fill: ${t.activationBkgColor};
|
|
2571
|
+
stroke: ${t.activationBorderColor};
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
.activation2 {
|
|
2575
|
+
fill: ${t.activationBkgColor};
|
|
2576
|
+
stroke: ${t.activationBorderColor};
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
.actorPopupMenu {
|
|
2580
|
+
position: absolute;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
.actorPopupMenuPanel {
|
|
2584
|
+
position: absolute;
|
|
2585
|
+
fill: ${t.actorBkg};
|
|
2586
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
2587
|
+
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
2588
|
+
}
|
|
2589
|
+
.actor-man line {
|
|
2590
|
+
stroke: ${t.actorBorder};
|
|
2591
|
+
fill: ${t.actorBkg};
|
|
2592
|
+
}
|
|
2593
|
+
.actor-man circle, line {
|
|
2594
|
+
stroke: ${t.actorBorder};
|
|
2595
|
+
fill: ${t.actorBkg};
|
|
2596
|
+
stroke-width: 2px;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
`, "getStyles"), ACTOR_TYPE_WIDTH = 36, TOP_ACTOR_CLASS = "actor-top", BOTTOM_ACTOR_CLASS = "actor-bottom", ACTOR_BOX_CLASS = "actor-box", ACTOR_MAN_FIGURE_CLASS = "actor-man", drawRect2 = /* @__PURE__ */ __name(function(t, l) {
|
|
2600
|
+
return drawRect(t, l);
|
|
2601
|
+
}, "drawRect"), drawPopup = /* @__PURE__ */ __name(function(t, l, u, d, f) {
|
|
2602
|
+
if (l.links === void 0 || l.links === null || Object.keys(l.links).length === 0) return {
|
|
2603
|
+
height: 0,
|
|
2604
|
+
width: 0
|
|
2605
|
+
};
|
|
2606
|
+
let p = l.links, m = l.actorCnt, h = l.rectData;
|
|
2607
|
+
var g = "none";
|
|
2608
|
+
f && (g = "block !important");
|
|
2609
|
+
let _ = t.append("g");
|
|
2610
|
+
_.attr("id", "actor" + m + "_popup"), _.attr("class", "actorPopupMenu"), _.attr("display", g);
|
|
2611
|
+
var v = "";
|
|
2612
|
+
h.class !== void 0 && (v = " " + h.class);
|
|
2613
|
+
let y = h.width > u ? h.width : u, b = _.append("rect");
|
|
2614
|
+
if (b.attr("class", "actorPopupMenuPanel" + v), b.attr("x", h.x), b.attr("y", h.height), b.attr("fill", h.fill), b.attr("stroke", h.stroke), b.attr("width", y), b.attr("height", h.height), b.attr("rx", h.rx), b.attr("ry", h.ry), p != null) {
|
|
2615
|
+
var x = 20;
|
|
2616
|
+
for (let t in p) {
|
|
2617
|
+
var S = _.append("a"), C = (0, import_dist.sanitizeUrl)(p[t]);
|
|
2618
|
+
S.attr("xlink:href", C), S.attr("target", "_blank"), _drawMenuItemTextCandidateFunc(d)(t, S, h.x + 10, h.height + x, y, 20, { class: "actor" }, d), x += 30;
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
return b.attr("height", x), {
|
|
2622
|
+
height: h.height + x,
|
|
2623
|
+
width: y
|
|
2624
|
+
};
|
|
2625
|
+
}, "drawPopup"), popupMenuToggle = /* @__PURE__ */ __name(function(t) {
|
|
2626
|
+
return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
2627
|
+
}, "popupMenuToggle"), drawKatex = /* @__PURE__ */ __name(async function(t, l, u = null) {
|
|
2628
|
+
let d = t.append("foreignObject"), f = await renderKatexSanitized(l.text, getConfig()), p = d.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(f).node().getBoundingClientRect();
|
|
2629
|
+
if (d.attr("height", Math.round(p.height)).attr("width", Math.round(p.width)), l.class === "noteText") {
|
|
2630
|
+
let u = t.node().firstChild;
|
|
2631
|
+
u.setAttribute("height", p.height + 2 * l.textMargin);
|
|
2632
|
+
let f = u.getBBox();
|
|
2633
|
+
d.attr("x", Math.round(f.x + f.width / 2 - p.width / 2)).attr("y", Math.round(f.y + f.height / 2 - p.height / 2));
|
|
2634
|
+
} else if (u) {
|
|
2635
|
+
let { startx: t, stopx: f, starty: m } = u;
|
|
2636
|
+
if (t > f) {
|
|
2637
|
+
let l = t;
|
|
2638
|
+
t = f, f = l;
|
|
2639
|
+
}
|
|
2640
|
+
d.attr("x", Math.round(t + Math.abs(t - f) / 2 - p.width / 2)), l.class === "loopText" ? d.attr("y", Math.round(m)) : d.attr("y", Math.round(m - p.height));
|
|
2641
|
+
}
|
|
2642
|
+
return [d];
|
|
2643
|
+
}, "drawKatex"), drawText = /* @__PURE__ */ __name(function(t, u) {
|
|
2644
|
+
let d = 0, p = 0, m = u.text.split(common_default.lineBreakRegex), [h, g] = parseFontSize(u.fontSize), _ = [], v = 0, y = /* @__PURE__ */ __name(() => u.y, "yfunc");
|
|
2645
|
+
if (u.valign !== void 0 && u.textMargin !== void 0 && u.textMargin > 0) switch (u.valign) {
|
|
2646
|
+
case "top":
|
|
2647
|
+
case "start":
|
|
2648
|
+
y = /* @__PURE__ */ __name(() => Math.round(u.y + u.textMargin), "yfunc");
|
|
2649
|
+
break;
|
|
2650
|
+
case "middle":
|
|
2651
|
+
case "center":
|
|
2652
|
+
y = /* @__PURE__ */ __name(() => Math.round(u.y + (d + p + u.textMargin) / 2), "yfunc");
|
|
2653
|
+
break;
|
|
2654
|
+
case "bottom":
|
|
2655
|
+
case "end":
|
|
2656
|
+
y = /* @__PURE__ */ __name(() => Math.round(u.y + (d + p + 2 * u.textMargin) - u.textMargin), "yfunc");
|
|
2657
|
+
break;
|
|
2658
|
+
}
|
|
2659
|
+
if (u.anchor !== void 0 && u.textMargin !== void 0 && u.width !== void 0) switch (u.anchor) {
|
|
2660
|
+
case "left":
|
|
2661
|
+
case "start":
|
|
2662
|
+
u.x = Math.round(u.x + u.textMargin), u.anchor = "start", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
|
|
2663
|
+
break;
|
|
2664
|
+
case "middle":
|
|
2665
|
+
case "center":
|
|
2666
|
+
u.x = Math.round(u.x + u.width / 2), u.anchor = "middle", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
|
|
2667
|
+
break;
|
|
2668
|
+
case "right":
|
|
2669
|
+
case "end":
|
|
2670
|
+
u.x = Math.round(u.x + u.width - u.textMargin), u.anchor = "end", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
|
|
2671
|
+
break;
|
|
2672
|
+
}
|
|
2673
|
+
for (let [l, f] of m.entries()) {
|
|
2674
|
+
u.textMargin !== void 0 && u.textMargin === 0 && h !== void 0 && (v = l * h);
|
|
2675
|
+
let m = t.append("text");
|
|
2676
|
+
m.attr("x", u.x), m.attr("y", y()), u.anchor !== void 0 && m.attr("text-anchor", u.anchor).attr("dominant-baseline", u.dominantBaseline).attr("alignment-baseline", u.alignmentBaseline), u.fontFamily !== void 0 && m.style("font-family", u.fontFamily), g !== void 0 && m.style("font-size", g), u.fontWeight !== void 0 && m.style("font-weight", u.fontWeight), u.fill !== void 0 && m.attr("fill", u.fill), u.class !== void 0 && m.attr("class", u.class), u.dy === void 0 ? v !== 0 && m.attr("dy", v) : m.attr("dy", u.dy);
|
|
2677
|
+
let b = f || "";
|
|
2678
|
+
if (u.tspan) {
|
|
2679
|
+
let t = m.append("tspan");
|
|
2680
|
+
t.attr("x", u.x), u.fill !== void 0 && t.attr("fill", u.fill), t.text(b);
|
|
2681
|
+
} else m.text(b);
|
|
2682
|
+
u.valign !== void 0 && u.textMargin !== void 0 && u.textMargin > 0 && (p += (m._groups || m)[0][0].getBBox().height, d = p), _.push(m);
|
|
2683
|
+
}
|
|
2684
|
+
return _;
|
|
2685
|
+
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(t, l) {
|
|
2686
|
+
function u(t, l, u, d, f) {
|
|
2687
|
+
return t + "," + l + " " + (t + u) + "," + l + " " + (t + u) + "," + (l + d - f) + " " + (t + u - f * 1.2) + "," + (l + d) + " " + t + "," + (l + d);
|
|
2688
|
+
}
|
|
2689
|
+
__name(u, "genPoints");
|
|
2690
|
+
let d = t.append("polygon");
|
|
2691
|
+
return d.attr("points", u(l.x, l.y, l.width, l.height, 7)), d.attr("class", "labelBox"), l.y += l.height / 2, drawText(t, l), d;
|
|
2692
|
+
}, "drawLabel"), actorCnt = -1, fixLifeLineHeights = /* @__PURE__ */ __name((t, l, u, d) => {
|
|
2693
|
+
t.select && u.forEach((u) => {
|
|
2694
|
+
let f = l.get(u), p = t.select("#actor" + f.actorCnt);
|
|
2695
|
+
!d.mirrorActors && f.stopy ? p.attr("y2", f.stopy + f.height / 2) : d.mirrorActors && p.attr("y2", f.stopy);
|
|
2696
|
+
});
|
|
2697
|
+
}, "fixLifeLineHeights"), drawActorTypeParticipant = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2698
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = t.append("g").lower();
|
|
2699
|
+
var g = h;
|
|
2700
|
+
d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
|
|
2701
|
+
let _ = getNoteRect();
|
|
2702
|
+
var v = "actor";
|
|
2703
|
+
l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.rx = 3, _.ry = 3, _.name = l.name;
|
|
2704
|
+
let y = drawRect2(g, _);
|
|
2705
|
+
if (l.rectData = _, l.properties?.icon) {
|
|
2706
|
+
let t = l.properties.icon.trim();
|
|
2707
|
+
t.charAt(0) === "@" ? drawEmbeddedImage(g, _.x + _.width - 20, _.y + 10, t.substr(1)) : drawImage(g, _.x + _.width - 20, _.y + 10, t);
|
|
2708
|
+
}
|
|
2709
|
+
_drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
|
|
2710
|
+
let x = l.height;
|
|
2711
|
+
if (y.node) {
|
|
2712
|
+
let t = y.node().getBBox();
|
|
2713
|
+
l.height = t.height, x = t.height;
|
|
2714
|
+
}
|
|
2715
|
+
return x;
|
|
2716
|
+
}, "drawActorTypeParticipant"), drawActorTypeCollections = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2717
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = t.append("g").lower();
|
|
2718
|
+
var g = h;
|
|
2719
|
+
d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
|
|
2720
|
+
let _ = getNoteRect();
|
|
2721
|
+
var v = "actor";
|
|
2722
|
+
l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name;
|
|
2723
|
+
let y = {
|
|
2724
|
+
..._,
|
|
2725
|
+
x: _.x + -6,
|
|
2726
|
+
y: _.y + 6,
|
|
2727
|
+
class: "actor"
|
|
2728
|
+
}, x = drawRect2(g, _);
|
|
2729
|
+
if (drawRect2(g, y), l.rectData = _, l.properties?.icon) {
|
|
2730
|
+
let t = l.properties.icon.trim();
|
|
2731
|
+
t.charAt(0) === "@" ? drawEmbeddedImage(g, _.x + _.width - 20, _.y + 10, t.substr(1)) : drawImage(g, _.x + _.width - 20, _.y + 10, t);
|
|
2732
|
+
}
|
|
2733
|
+
_drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x - 6, _.y + 6, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
|
|
2734
|
+
let S = l.height;
|
|
2735
|
+
if (x.node) {
|
|
2736
|
+
let t = x.node().getBBox();
|
|
2737
|
+
l.height = t.height, S = t.height;
|
|
2738
|
+
}
|
|
2739
|
+
return S;
|
|
2740
|
+
}, "drawActorTypeCollections"), drawActorTypeQueue = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2741
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = t.append("g").lower(), g = h;
|
|
2742
|
+
d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
|
|
2743
|
+
let _ = getNoteRect(), v = "actor";
|
|
2744
|
+
l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name;
|
|
2745
|
+
let y = _.height / 2, x = y / (2.5 + _.height / 50), S = g.append("g"), C = g.append("g");
|
|
2746
|
+
if (S.append("path").attr("d", `M ${_.x},${_.y + y}
|
|
2747
|
+
a ${x},${y} 0 0 0 0,${_.height}
|
|
2748
|
+
h ${_.width - 2 * x}
|
|
2749
|
+
a ${x},${y} 0 0 0 0,-${_.height}
|
|
2750
|
+
Z
|
|
2751
|
+
`).attr("class", v), C.append("path").attr("d", `M ${_.x},${_.y + y}
|
|
2752
|
+
a ${x},${y} 0 0 0 0,${_.height}`).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", v), S.attr("transform", `translate(${x}, ${-(_.height / 2)})`), C.attr("transform", `translate(${_.width - x}, ${-_.height / 2})`), l.rectData = _, l.properties?.icon) {
|
|
2753
|
+
let t = l.properties.icon.trim(), u = _.x + _.width - 20, d = _.y + 10;
|
|
2754
|
+
t.charAt(0) === "@" ? drawEmbeddedImage(g, u, d, t.substr(1)) : drawImage(g, u, d, t);
|
|
2755
|
+
}
|
|
2756
|
+
_drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
|
|
2757
|
+
let w = l.height, T = S.select("path:last-child");
|
|
2758
|
+
if (T.node()) {
|
|
2759
|
+
let t = T.node().getBBox();
|
|
2760
|
+
l.height = t.height, w = t.height;
|
|
2761
|
+
}
|
|
2762
|
+
return w;
|
|
2763
|
+
}, "drawActorTypeQueue"), drawActorTypeControl = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2764
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 75, h = t.append("g").lower();
|
|
2765
|
+
d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
|
|
2766
|
+
let g = t.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
2767
|
+
d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
|
|
2768
|
+
let v = getNoteRect();
|
|
2769
|
+
v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor";
|
|
2770
|
+
let y = l.x + l.width / 2, x = f + 30;
|
|
2771
|
+
return g.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), g.append("circle").attr("cx", y).attr("cy", x).attr("r", 18).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), g.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${y}, ${x - 18})`), l.height = g.node().getBBox().height + 2 * (u?.sequence?.labelBoxHeight ?? 0), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + 18 + (d ? 5 : 10), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), l.height;
|
|
2772
|
+
}, "drawActorTypeControl"), drawActorTypeEntity = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2773
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 75, h = t.append("g").lower(), g = t.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
2774
|
+
d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
|
|
2775
|
+
let v = getNoteRect();
|
|
2776
|
+
v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor";
|
|
2777
|
+
let y = l.x + l.width / 2, x = f + (d ? 10 : 25);
|
|
2778
|
+
return g.append("circle").attr("cx", y).attr("cy", x).attr("r", 18).attr("width", l.width).attr("height", l.height), g.append("line").attr("x1", y - 18).attr("x2", y + 18).attr("y1", x + 18).attr("y2", x + 18).attr("stroke", "#333").attr("stroke-width", 2), l.height = g.node().getBBox().height + (u?.sequence?.labelBoxHeight ?? 0), d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + (d ? (x - f + 18 - 5) / 2 : (x + 18 - f) / 2), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), g.attr("transform", `translate(0, ${18 / 2})`), l.height;
|
|
2779
|
+
}, "drawActorTypeEntity"), drawActorTypeDatabase = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2780
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height + 2 * u.boxTextMargin, h = t.append("g").lower(), g = h;
|
|
2781
|
+
d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
|
|
2782
|
+
let _ = getNoteRect(), v = "actor";
|
|
2783
|
+
l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name, _.x = l.x, _.y = f;
|
|
2784
|
+
let y = _.width / 4, x = _.width / 4, S = y / 2, C = S / (2.5 + y / 50), w = g.append("g"), T = `
|
|
2785
|
+
M ${_.x},${_.y + C}
|
|
2786
|
+
a ${S},${C} 0 0 0 ${y},0
|
|
2787
|
+
a ${S},${C} 0 0 0 -${y},0
|
|
2788
|
+
l 0,${x - 2 * C}
|
|
2789
|
+
a ${S},${C} 0 0 0 ${y},0
|
|
2790
|
+
l 0,-${x - 2 * C}
|
|
2791
|
+
`;
|
|
2792
|
+
w.append("path").attr("d", T).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", v), d ? w.attr("transform", `translate(${y * 1.5}, ${_.height / 4 - 2 * C})`) : w.attr("transform", `translate(${y * 1.5}, ${(_.height + C) / 4})`), l.rectData = _, _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y + (d ? (_.height + x) / 4 : (_.height + C) / 2), _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
|
|
2793
|
+
let E = w.select("path:last-child");
|
|
2794
|
+
return E.node() && (l.height = E.node().getBBox().height + (u.sequence.labelBoxHeight ?? 0)), l.height;
|
|
2795
|
+
}, "drawActorTypeDatabase"), drawActorTypeBoundary = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2796
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 80, h = t.append("g").lower();
|
|
2797
|
+
d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
|
|
2798
|
+
let g = t.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
2799
|
+
d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
|
|
2800
|
+
let v = getNoteRect();
|
|
2801
|
+
return v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", l.x + l.width / 2 - 30 * 2.5).attr("y1", f + 10).attr("x2", l.x + l.width / 2 - 15).attr("y2", f + 10), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", l.x + l.width / 2 - 30 * 2.5).attr("y1", f + 0).attr("x2", l.x + l.width / 2 - 30 * 2.5).attr("y2", f + 20), g.append("circle").attr("cx", l.x + l.width / 2).attr("cy", f + 10).attr("r", 30), l.height = g.node().getBBox().height + (u.sequence.labelBoxHeight ?? 0), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + (d ? 30 / 2 - 4 : 18), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), g.attr("transform", "translate(0,22)"), l.height;
|
|
2802
|
+
}, "drawActorTypeBoundary"), drawActorTypeActor = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2803
|
+
let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 80, h = t.append("g").lower();
|
|
2804
|
+
d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
|
|
2805
|
+
let g = t.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
2806
|
+
d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
|
|
2807
|
+
let v = getNoteRect();
|
|
2808
|
+
v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor", v.rx = 3, v.ry = 3, g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", p).attr("y1", f + 25).attr("x2", p).attr("y2", f + 45), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", p - ACTOR_TYPE_WIDTH / 2).attr("y1", f + 33).attr("x2", p + ACTOR_TYPE_WIDTH / 2).attr("y2", f + 33), g.append("line").attr("x1", p - ACTOR_TYPE_WIDTH / 2).attr("y1", f + 60).attr("x2", p).attr("y2", f + 45), g.append("line").attr("x1", p).attr("y1", f + 45).attr("x2", p + ACTOR_TYPE_WIDTH / 2 - 2).attr("y2", f + 60);
|
|
2809
|
+
let y = g.append("circle");
|
|
2810
|
+
return y.attr("cx", l.x + l.width / 2), y.attr("cy", f + 10), y.attr("r", 15), y.attr("width", l.width), y.attr("height", l.height), l.height = g.node().getBBox().height, _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + 35, v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), l.height;
|
|
2811
|
+
}, "drawActorTypeActor"), drawActor = /* @__PURE__ */ __name(async function(t, l, u, d) {
|
|
2812
|
+
switch (l.type) {
|
|
2813
|
+
case "actor": return await drawActorTypeActor(t, l, u, d);
|
|
2814
|
+
case "participant": return await drawActorTypeParticipant(t, l, u, d);
|
|
2815
|
+
case "boundary": return await drawActorTypeBoundary(t, l, u, d);
|
|
2816
|
+
case "control": return await drawActorTypeControl(t, l, u, d);
|
|
2817
|
+
case "entity": return await drawActorTypeEntity(t, l, u, d);
|
|
2818
|
+
case "database": return await drawActorTypeDatabase(t, l, u, d);
|
|
2819
|
+
case "collections": return await drawActorTypeCollections(t, l, u, d);
|
|
2820
|
+
case "queue": return await drawActorTypeQueue(t, l, u, d);
|
|
2821
|
+
}
|
|
2822
|
+
}, "drawActor"), drawBox = /* @__PURE__ */ __name(function(t, l, u) {
|
|
2823
|
+
let d = t.append("g");
|
|
2824
|
+
drawBackgroundRect2(d, l), l.name && _drawTextCandidateFunc(u)(l.name, d, l.x, l.y + u.boxTextMargin + (l.textMaxHeight || 0) / 2, l.width, 0, { class: "text" }, u), d.lower();
|
|
2825
|
+
}, "drawBox"), anchorElement = /* @__PURE__ */ __name(function(t) {
|
|
2826
|
+
return t.append("g");
|
|
2827
|
+
}, "anchorElement"), drawActivation = /* @__PURE__ */ __name(function(t, l, u, d, f) {
|
|
2828
|
+
let p = getNoteRect(), m = l.anchored;
|
|
2829
|
+
p.x = l.startx, p.y = l.starty, p.class = "activation" + f % 3, p.width = l.stopx - l.startx, p.height = u - l.starty, drawRect2(m, p);
|
|
2830
|
+
}, "drawActivation"), drawLoop = /* @__PURE__ */ __name(async function(t, l, u, d) {
|
|
2831
|
+
let { boxMargin: p, boxTextMargin: m, labelBoxHeight: h, labelBoxWidth: g, messageFontFamily: _, messageFontSize: v, messageFontWeight: y } = d, x = t.append("g"), S = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
2832
|
+
return x.append("line").attr("x1", t).attr("y1", l).attr("x2", u).attr("y2", d).attr("class", "loopLine");
|
|
2833
|
+
}, "drawLoopLine");
|
|
2834
|
+
S(l.startx, l.starty, l.stopx, l.starty), S(l.stopx, l.starty, l.stopx, l.stopy), S(l.startx, l.stopy, l.stopx, l.stopy), S(l.startx, l.starty, l.startx, l.stopy), l.sections !== void 0 && l.sections.forEach(function(t) {
|
|
2835
|
+
S(l.startx, t.y, l.stopx, t.y).style("stroke-dasharray", "3, 3");
|
|
2836
|
+
});
|
|
2837
|
+
let C = getTextObj();
|
|
2838
|
+
C.text = u, C.x = l.startx, C.y = l.starty, C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.anchor = "middle", C.valign = "middle", C.tspan = !1, C.width = g || 50, C.height = h || 20, C.textMargin = m, C.class = "labelText", drawLabel(x, C), C = getTextObj2(), C.text = l.title, C.x = l.startx + g / 2 + (l.stopx - l.startx) / 2, C.y = l.starty + p + m, C.anchor = "middle", C.valign = "middle", C.textMargin = m, C.class = "loopText", C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.wrap = !0;
|
|
2839
|
+
let w = hasKatex(C.text) ? await drawKatex(x, C, l) : drawText(x, C);
|
|
2840
|
+
if (l.sectionTitles !== void 0) {
|
|
2841
|
+
for (let [t, u] of Object.entries(l.sectionTitles)) if (u.message) {
|
|
2842
|
+
C.text = u.message, C.x = l.startx + (l.stopx - l.startx) / 2, C.y = l.sections[t].y + p + m, C.class = "loopText", C.anchor = "middle", C.valign = "middle", C.tspan = !1, C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.wrap = l.wrap, hasKatex(C.text) ? (l.starty = l.sections[t].y, await drawKatex(x, C, l)) : drawText(x, C);
|
|
2843
|
+
let d = Math.round(w.map((t) => (t._groups || t)[0][0].getBBox().height).reduce((t, l) => t + l));
|
|
2844
|
+
l.sections[t].height += d - (p + m);
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
return l.height = Math.round(l.stopy - l.starty), x;
|
|
2848
|
+
}, "drawLoop"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(t, l) {
|
|
2849
|
+
drawBackgroundRect(t, l);
|
|
2850
|
+
}, "drawBackgroundRect"), insertDatabaseIcon = /* @__PURE__ */ __name(function(t) {
|
|
2851
|
+
t.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");
|
|
2852
|
+
}, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(t) {
|
|
2853
|
+
t.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");
|
|
2854
|
+
}, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(t) {
|
|
2855
|
+
t.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");
|
|
2856
|
+
}, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(t) {
|
|
2857
|
+
t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
|
|
2858
|
+
}, "insertArrowHead"), insertArrowFilledHead = /* @__PURE__ */ __name(function(t) {
|
|
2859
|
+
t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
2860
|
+
}, "insertArrowFilledHead"), insertSequenceNumber = /* @__PURE__ */ __name(function(t) {
|
|
2861
|
+
t.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);
|
|
2862
|
+
}, "insertSequenceNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(t) {
|
|
2863
|
+
t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
|
|
2864
|
+
}, "insertArrowCrossHead"), getTextObj2 = /* @__PURE__ */ __name(function() {
|
|
2865
|
+
return {
|
|
2866
|
+
x: 0,
|
|
2867
|
+
y: 0,
|
|
2868
|
+
fill: void 0,
|
|
2869
|
+
anchor: void 0,
|
|
2870
|
+
style: "#666",
|
|
2871
|
+
width: void 0,
|
|
2872
|
+
height: void 0,
|
|
2873
|
+
textMargin: 0,
|
|
2874
|
+
rx: 0,
|
|
2875
|
+
ry: 0,
|
|
2876
|
+
tspan: !0,
|
|
2877
|
+
valign: void 0
|
|
2878
|
+
};
|
|
2879
|
+
}, "getTextObj"), getNoteRect2 = /* @__PURE__ */ __name(function() {
|
|
2880
|
+
return {
|
|
2881
|
+
x: 0,
|
|
2882
|
+
y: 0,
|
|
2883
|
+
fill: "#EDF2AE",
|
|
2884
|
+
stroke: "#666",
|
|
2885
|
+
width: 100,
|
|
2886
|
+
anchor: "start",
|
|
2887
|
+
height: 100,
|
|
2888
|
+
rx: 0,
|
|
2889
|
+
ry: 0
|
|
2890
|
+
};
|
|
2891
|
+
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
2892
|
+
function t(t, l, u, d, f, p, h) {
|
|
2893
|
+
m(l.append("text").attr("x", u + f / 2).attr("y", d + p / 2 + 5).style("text-anchor", "middle").text(t), h);
|
|
2894
|
+
}
|
|
2895
|
+
__name(t, "byText");
|
|
2896
|
+
function u(t, u, d, f, p, h, g, _) {
|
|
2897
|
+
let { actorFontSize: v, actorFontFamily: y, actorFontWeight: b } = _, [x, S] = parseFontSize(v), C = t.split(common_default.lineBreakRegex);
|
|
2898
|
+
for (let t = 0; t < C.length; t++) {
|
|
2899
|
+
let l = t * x - x * (C.length - 1) / 2, _ = u.append("text").attr("x", d + p / 2).attr("y", f).style("text-anchor", "middle").style("font-size", S).style("font-weight", b).style("font-family", y);
|
|
2900
|
+
_.append("tspan").attr("x", d + p / 2).attr("dy", l).text(C[t]), _.attr("y", f + h / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), m(_, g);
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
__name(u, "byTspan");
|
|
2904
|
+
function d(t, l, d, f, p, h, g, _) {
|
|
2905
|
+
let v = l.append("switch"), y = v.append("foreignObject").attr("x", d).attr("y", f).attr("width", p).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
2906
|
+
y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(t), u(t, v, d, f, p, h, g, _), m(y, g);
|
|
2907
|
+
}
|
|
2908
|
+
__name(d, "byFo");
|
|
2909
|
+
async function p(t, l, d, f, p, h, g, _) {
|
|
2910
|
+
let v = await calculateMathMLDimensions(t, getConfig()), b = l.append("switch"), x = b.append("foreignObject").attr("x", d + p / 2 - v.width / 2).attr("y", f + h / 2 - v.height / 2).attr("width", v.width).attr("height", v.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
2911
|
+
x.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(t, getConfig())), u(t, b, d, f, p, h, g, _), m(x, g);
|
|
2912
|
+
}
|
|
2913
|
+
__name(p, "byKatex");
|
|
2914
|
+
function m(t, l) {
|
|
2915
|
+
for (let u in l) l.hasOwnProperty(u) && t.attr(u, l[u]);
|
|
2916
|
+
}
|
|
2917
|
+
return __name(m, "_setTextAttrs"), function(l, f = !1) {
|
|
2918
|
+
return f ? p : l.textPlacement === "fo" ? d : l.textPlacement === "old" ? t : u;
|
|
2919
|
+
};
|
|
2920
|
+
})(), _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
2921
|
+
function t(t, l, u, f, p, m, h) {
|
|
2922
|
+
d(l.append("text").attr("x", u).attr("y", f).style("text-anchor", "start").text(t), h);
|
|
2923
|
+
}
|
|
2924
|
+
__name(t, "byText");
|
|
2925
|
+
function l(t, l, u, f, p, m, h, g) {
|
|
2926
|
+
let { actorFontSize: _, actorFontFamily: v, actorFontWeight: y } = g, b = t.split(common_default.lineBreakRegex);
|
|
2927
|
+
for (let t = 0; t < b.length; t++) {
|
|
2928
|
+
let p = t * _ - _ * (b.length - 1) / 2, g = l.append("text").attr("x", u).attr("y", f).style("text-anchor", "start").style("font-size", _).style("font-weight", y).style("font-family", v);
|
|
2929
|
+
g.append("tspan").attr("x", u).attr("dy", p).text(b[t]), g.attr("y", f + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), d(g, h);
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
__name(l, "byTspan");
|
|
2933
|
+
function u(t, u, f, p, m, h, g, _) {
|
|
2934
|
+
let v = u.append("switch"), y = v.append("foreignObject").attr("x", f).attr("y", p).attr("width", m).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
2935
|
+
y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(t), l(t, v, f, p, m, h, g, _), d(y, g);
|
|
2936
|
+
}
|
|
2937
|
+
__name(u, "byFo");
|
|
2938
|
+
function d(t, l) {
|
|
2939
|
+
for (let u in l) l.hasOwnProperty(u) && t.attr(u, l[u]);
|
|
2940
|
+
}
|
|
2941
|
+
return __name(d, "_setTextAttrs"), function(d) {
|
|
2942
|
+
return d.textPlacement === "fo" ? u : d.textPlacement === "old" ? t : l;
|
|
2943
|
+
};
|
|
2944
|
+
})(), svgDraw_default = {
|
|
2945
|
+
drawRect: drawRect2,
|
|
2946
|
+
drawText,
|
|
2947
|
+
drawLabel,
|
|
2948
|
+
drawActor,
|
|
2949
|
+
drawBox,
|
|
2950
|
+
drawPopup,
|
|
2951
|
+
anchorElement,
|
|
2952
|
+
drawActivation,
|
|
2953
|
+
drawLoop,
|
|
2954
|
+
drawBackgroundRect: drawBackgroundRect2,
|
|
2955
|
+
insertArrowHead,
|
|
2956
|
+
insertArrowFilledHead,
|
|
2957
|
+
insertSequenceNumber,
|
|
2958
|
+
insertArrowCrossHead,
|
|
2959
|
+
insertDatabaseIcon,
|
|
2960
|
+
insertComputerIcon,
|
|
2961
|
+
insertClockIcon,
|
|
2962
|
+
getTextObj: getTextObj2,
|
|
2963
|
+
getNoteRect: getNoteRect2,
|
|
2964
|
+
fixLifeLineHeights,
|
|
2965
|
+
sanitizeUrl: import_dist.sanitizeUrl
|
|
2966
|
+
}, conf = {}, bounds = {
|
|
2967
|
+
data: {
|
|
2968
|
+
startx: void 0,
|
|
2969
|
+
stopx: void 0,
|
|
2970
|
+
starty: void 0,
|
|
2971
|
+
stopy: void 0
|
|
2972
|
+
},
|
|
2973
|
+
verticalPos: 0,
|
|
2974
|
+
sequenceItems: [],
|
|
2975
|
+
activations: [],
|
|
2976
|
+
models: {
|
|
2977
|
+
getHeight: /* @__PURE__ */ __name(function() {
|
|
2978
|
+
return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((t) => t.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((t) => t.height || 0).reduce((t, l) => t + l)) + (this.messages.length === 0 ? 0 : this.messages.map((t) => t.height || 0).reduce((t, l) => t + l)) + (this.notes.length === 0 ? 0 : this.notes.map((t) => t.height || 0).reduce((t, l) => t + l));
|
|
2979
|
+
}, "getHeight"),
|
|
2980
|
+
clear: /* @__PURE__ */ __name(function() {
|
|
2981
|
+
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
2982
|
+
}, "clear"),
|
|
2983
|
+
addBox: /* @__PURE__ */ __name(function(t) {
|
|
2984
|
+
this.boxes.push(t);
|
|
2985
|
+
}, "addBox"),
|
|
2986
|
+
addActor: /* @__PURE__ */ __name(function(t) {
|
|
2987
|
+
this.actors.push(t);
|
|
2988
|
+
}, "addActor"),
|
|
2989
|
+
addLoop: /* @__PURE__ */ __name(function(t) {
|
|
2990
|
+
this.loops.push(t);
|
|
2991
|
+
}, "addLoop"),
|
|
2992
|
+
addMessage: /* @__PURE__ */ __name(function(t) {
|
|
2993
|
+
this.messages.push(t);
|
|
2994
|
+
}, "addMessage"),
|
|
2995
|
+
addNote: /* @__PURE__ */ __name(function(t) {
|
|
2996
|
+
this.notes.push(t);
|
|
2997
|
+
}, "addNote"),
|
|
2998
|
+
lastActor: /* @__PURE__ */ __name(function() {
|
|
2999
|
+
return this.actors[this.actors.length - 1];
|
|
3000
|
+
}, "lastActor"),
|
|
3001
|
+
lastLoop: /* @__PURE__ */ __name(function() {
|
|
3002
|
+
return this.loops[this.loops.length - 1];
|
|
3003
|
+
}, "lastLoop"),
|
|
3004
|
+
lastMessage: /* @__PURE__ */ __name(function() {
|
|
3005
|
+
return this.messages[this.messages.length - 1];
|
|
3006
|
+
}, "lastMessage"),
|
|
3007
|
+
lastNote: /* @__PURE__ */ __name(function() {
|
|
3008
|
+
return this.notes[this.notes.length - 1];
|
|
3009
|
+
}, "lastNote"),
|
|
3010
|
+
actors: [],
|
|
3011
|
+
boxes: [],
|
|
3012
|
+
loops: [],
|
|
3013
|
+
messages: [],
|
|
3014
|
+
notes: []
|
|
3015
|
+
},
|
|
3016
|
+
init: /* @__PURE__ */ __name(function() {
|
|
3017
|
+
this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
|
|
3018
|
+
startx: void 0,
|
|
3019
|
+
stopx: void 0,
|
|
3020
|
+
starty: void 0,
|
|
3021
|
+
stopy: void 0
|
|
3022
|
+
}, this.verticalPos = 0, setConf(getConfig2());
|
|
3023
|
+
}, "init"),
|
|
3024
|
+
updateVal: /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
3025
|
+
t[l] === void 0 ? t[l] = u : t[l] = d(u, t[l]);
|
|
3026
|
+
}, "updateVal"),
|
|
3027
|
+
updateBounds: /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
3028
|
+
let p = this, m = 0;
|
|
3029
|
+
function h(h) {
|
|
3030
|
+
return /* @__PURE__ */ __name(function(f) {
|
|
3031
|
+
m++;
|
|
3032
|
+
let g = p.sequenceItems.length - m + 1;
|
|
3033
|
+
p.updateVal(f, "starty", l - g * conf.boxMargin, Math.min), p.updateVal(f, "stopy", d + g * conf.boxMargin, Math.max), p.updateVal(bounds.data, "startx", t - g * conf.boxMargin, Math.min), p.updateVal(bounds.data, "stopx", u + g * conf.boxMargin, Math.max), h !== "activation" && (p.updateVal(f, "startx", t - g * conf.boxMargin, Math.min), p.updateVal(f, "stopx", u + g * conf.boxMargin, Math.max), p.updateVal(bounds.data, "starty", l - g * conf.boxMargin, Math.min), p.updateVal(bounds.data, "stopy", d + g * conf.boxMargin, Math.max));
|
|
3034
|
+
}, "updateItemBounds");
|
|
3035
|
+
}
|
|
3036
|
+
__name(h, "updateFn"), this.sequenceItems.forEach(h()), this.activations.forEach(h("activation"));
|
|
3037
|
+
}, "updateBounds"),
|
|
3038
|
+
insert: /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
3039
|
+
let f = common_default.getMin(t, u), p = common_default.getMax(t, u), m = common_default.getMin(l, d), h = common_default.getMax(l, d);
|
|
3040
|
+
this.updateVal(bounds.data, "startx", f, Math.min), this.updateVal(bounds.data, "starty", m, Math.min), this.updateVal(bounds.data, "stopx", p, Math.max), this.updateVal(bounds.data, "stopy", h, Math.max), this.updateBounds(f, m, p, h);
|
|
3041
|
+
}, "insert"),
|
|
3042
|
+
newActivation: /* @__PURE__ */ __name(function(t, l, u) {
|
|
3043
|
+
let d = u.get(t.from), f = actorActivations(t.from).length || 0, p = d.x + d.width / 2 + (f - 1) * conf.activationWidth / 2;
|
|
3044
|
+
this.activations.push({
|
|
3045
|
+
startx: p,
|
|
3046
|
+
starty: this.verticalPos + 2,
|
|
3047
|
+
stopx: p + conf.activationWidth,
|
|
3048
|
+
stopy: void 0,
|
|
3049
|
+
actor: t.from,
|
|
3050
|
+
anchored: svgDraw_default.anchorElement(l)
|
|
3051
|
+
});
|
|
3052
|
+
}, "newActivation"),
|
|
3053
|
+
endActivation: /* @__PURE__ */ __name(function(t) {
|
|
3054
|
+
let l = this.activations.map(function(t) {
|
|
3055
|
+
return t.actor;
|
|
3056
|
+
}).lastIndexOf(t.from);
|
|
3057
|
+
return this.activations.splice(l, 1)[0];
|
|
3058
|
+
}, "endActivation"),
|
|
3059
|
+
createLoop: /* @__PURE__ */ __name(function(t = {
|
|
3060
|
+
message: void 0,
|
|
3061
|
+
wrap: !1,
|
|
3062
|
+
width: void 0
|
|
3063
|
+
}, l) {
|
|
3064
|
+
return {
|
|
3065
|
+
startx: void 0,
|
|
3066
|
+
starty: this.verticalPos,
|
|
3067
|
+
stopx: void 0,
|
|
3068
|
+
stopy: void 0,
|
|
3069
|
+
title: t.message,
|
|
3070
|
+
wrap: t.wrap,
|
|
3071
|
+
width: t.width,
|
|
3072
|
+
height: 0,
|
|
3073
|
+
fill: l
|
|
3074
|
+
};
|
|
3075
|
+
}, "createLoop"),
|
|
3076
|
+
newLoop: /* @__PURE__ */ __name(function(t = {
|
|
3077
|
+
message: void 0,
|
|
3078
|
+
wrap: !1,
|
|
3079
|
+
width: void 0
|
|
3080
|
+
}, l) {
|
|
3081
|
+
this.sequenceItems.push(this.createLoop(t, l));
|
|
3082
|
+
}, "newLoop"),
|
|
3083
|
+
endLoop: /* @__PURE__ */ __name(function() {
|
|
3084
|
+
return this.sequenceItems.pop();
|
|
3085
|
+
}, "endLoop"),
|
|
3086
|
+
isLoopOverlap: /* @__PURE__ */ __name(function() {
|
|
3087
|
+
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
|
|
3088
|
+
}, "isLoopOverlap"),
|
|
3089
|
+
addSectionToLoop: /* @__PURE__ */ __name(function(t) {
|
|
3090
|
+
let l = this.sequenceItems.pop();
|
|
3091
|
+
l.sections = l.sections || [], l.sectionTitles = l.sectionTitles || [], l.sections.push({
|
|
3092
|
+
y: bounds.getVerticalPos(),
|
|
3093
|
+
height: 0
|
|
3094
|
+
}), l.sectionTitles.push(t), this.sequenceItems.push(l);
|
|
3095
|
+
}, "addSectionToLoop"),
|
|
3096
|
+
saveVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3097
|
+
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
3098
|
+
}, "saveVerticalPos"),
|
|
3099
|
+
resetVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3100
|
+
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
3101
|
+
}, "resetVerticalPos"),
|
|
3102
|
+
bumpVerticalPos: /* @__PURE__ */ __name(function(t) {
|
|
3103
|
+
this.verticalPos += t, this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
|
|
3104
|
+
}, "bumpVerticalPos"),
|
|
3105
|
+
getVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3106
|
+
return this.verticalPos;
|
|
3107
|
+
}, "getVerticalPos"),
|
|
3108
|
+
getBounds: /* @__PURE__ */ __name(function() {
|
|
3109
|
+
return {
|
|
3110
|
+
bounds: this.data,
|
|
3111
|
+
models: this.models
|
|
3112
|
+
};
|
|
3113
|
+
}, "getBounds")
|
|
3114
|
+
}, drawNote = /* @__PURE__ */ __name(async function(t, l) {
|
|
3115
|
+
bounds.bumpVerticalPos(conf.boxMargin), l.height = conf.boxMargin, l.starty = bounds.getVerticalPos();
|
|
3116
|
+
let u = getNoteRect();
|
|
3117
|
+
u.x = l.startx, u.y = l.starty, u.width = l.width || conf.width, u.class = "note";
|
|
3118
|
+
let d = t.append("g"), f = svgDraw_default.drawRect(d, u), p = getTextObj();
|
|
3119
|
+
p.x = l.startx, p.y = l.starty, p.width = u.width, p.dy = "1em", p.text = l.message, p.class = "noteText", p.fontFamily = conf.noteFontFamily, p.fontSize = conf.noteFontSize, p.fontWeight = conf.noteFontWeight, p.anchor = conf.noteAlign, p.textMargin = conf.noteMargin, p.valign = "center";
|
|
3120
|
+
let m = hasKatex(p.text) ? await drawKatex(d, p) : drawText(d, p), h = Math.round(m.map((t) => (t._groups || t)[0][0].getBBox().height).reduce((t, l) => t + l));
|
|
3121
|
+
f.attr("height", h + 2 * conf.noteMargin), l.height += h + 2 * conf.noteMargin, bounds.bumpVerticalPos(h + 2 * conf.noteMargin), l.stopy = l.starty + h + 2 * conf.noteMargin, l.stopx = l.startx + u.width, bounds.insert(l.startx, l.starty, l.stopx, l.stopy), bounds.models.addNote(l);
|
|
3122
|
+
}, "drawNote"), messageFont = /* @__PURE__ */ __name((t) => ({
|
|
3123
|
+
fontFamily: t.messageFontFamily,
|
|
3124
|
+
fontSize: t.messageFontSize,
|
|
3125
|
+
fontWeight: t.messageFontWeight
|
|
3126
|
+
}), "messageFont"), noteFont = /* @__PURE__ */ __name((t) => ({
|
|
3127
|
+
fontFamily: t.noteFontFamily,
|
|
3128
|
+
fontSize: t.noteFontSize,
|
|
3129
|
+
fontWeight: t.noteFontWeight
|
|
3130
|
+
}), "noteFont"), actorFont = /* @__PURE__ */ __name((t) => ({
|
|
3131
|
+
fontFamily: t.actorFontFamily,
|
|
3132
|
+
fontSize: t.actorFontSize,
|
|
3133
|
+
fontWeight: t.actorFontWeight
|
|
3134
|
+
}), "actorFont");
|
|
3135
|
+
async function boundMessage(l, u) {
|
|
3136
|
+
bounds.bumpVerticalPos(10);
|
|
3137
|
+
let { startx: d, stopx: f, message: p } = u, m = common_default.splitBreaks(p).length, h = hasKatex(p), g = h ? await calculateMathMLDimensions(p, getConfig2()) : utils_default.calculateTextDimensions(p, messageFont(conf));
|
|
3138
|
+
if (!h) {
|
|
3139
|
+
let t = g.height / m;
|
|
3140
|
+
u.height += t, bounds.bumpVerticalPos(t);
|
|
3141
|
+
}
|
|
3142
|
+
let _, v = g.height - 10, y = g.width;
|
|
3143
|
+
if (d === f) {
|
|
3144
|
+
_ = bounds.getVerticalPos() + v, conf.rightAngles || (v += conf.boxMargin, _ = bounds.getVerticalPos() + v), v += 30;
|
|
3145
|
+
let t = common_default.getMax(y / 2, conf.width / 2);
|
|
3146
|
+
bounds.insert(d - t, bounds.getVerticalPos() - 10 + v, f + t, bounds.getVerticalPos() + 30 + v);
|
|
3147
|
+
} else v += conf.boxMargin, _ = bounds.getVerticalPos() + v, bounds.insert(d, _ - 10, f, _);
|
|
3148
|
+
return bounds.bumpVerticalPos(v), u.height += v, u.stopy = u.starty + u.height, bounds.insert(u.fromBounds, u.starty, u.toBounds, u.stopy), _;
|
|
3149
|
+
}
|
|
3150
|
+
__name(boundMessage, "boundMessage");
|
|
3151
|
+
var drawMessage = /* @__PURE__ */ __name(async function(l, u, d, f) {
|
|
3152
|
+
let { startx: p, stopx: m, starty: h, message: _, type: v, sequenceIndex: y, sequenceVisible: x } = u, S = utils_default.calculateTextDimensions(_, messageFont(conf)), C = getTextObj();
|
|
3153
|
+
C.x = p, C.y = h + 10, C.width = m - p, C.class = "messageText", C.dy = "1em", C.text = _, C.fontFamily = conf.messageFontFamily, C.fontSize = conf.messageFontSize, C.fontWeight = conf.messageFontWeight, C.anchor = conf.messageAlign, C.valign = "center", C.textMargin = conf.wrapPadding, C.tspan = !1, hasKatex(C.text) ? await drawKatex(l, C, {
|
|
3154
|
+
startx: p,
|
|
3155
|
+
stopx: m,
|
|
3156
|
+
starty: d
|
|
3157
|
+
}) : drawText(l, C);
|
|
3158
|
+
let w = S.width, T;
|
|
3159
|
+
p === m ? T = conf.rightAngles ? l.append("path").attr("d", `M ${p},${d} H ${p + common_default.getMax(conf.width / 2, w / 2)} V ${d + 25} H ${p}`) : l.append("path").attr("d", "M " + p + "," + d + " C " + (p + 60) + "," + (d - 10) + " " + (p + 60) + "," + (d + 30) + " " + p + "," + (d + 20)) : (T = l.append("line"), T.attr("x1", p), T.attr("y1", d), T.attr("x2", m), T.attr("y2", d)), v === f.db.LINETYPE.DOTTED || v === f.db.LINETYPE.DOTTED_CROSS || v === f.db.LINETYPE.DOTTED_POINT || v === f.db.LINETYPE.DOTTED_OPEN || v === f.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (T.style("stroke-dasharray", "3, 3"), T.attr("class", "messageLine1")) : T.attr("class", "messageLine0");
|
|
3160
|
+
let E = "";
|
|
3161
|
+
conf.arrowMarkerAbsolute && (E = getUrl(!0)), T.attr("stroke-width", 2), T.attr("stroke", "none"), T.style("fill", "none"), (v === f.db.LINETYPE.SOLID || v === f.db.LINETYPE.DOTTED) && T.attr("marker-end", "url(" + E + "#arrowhead)"), (v === f.db.LINETYPE.BIDIRECTIONAL_SOLID || v === f.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (T.attr("marker-start", "url(" + E + "#arrowhead)"), T.attr("marker-end", "url(" + E + "#arrowhead)")), (v === f.db.LINETYPE.SOLID_POINT || v === f.db.LINETYPE.DOTTED_POINT) && T.attr("marker-end", "url(" + E + "#filled-head)"), (v === f.db.LINETYPE.SOLID_CROSS || v === f.db.LINETYPE.DOTTED_CROSS) && T.attr("marker-end", "url(" + E + "#crosshead)"), (x || conf.showSequenceNumbers) && ((v === f.db.LINETYPE.BIDIRECTIONAL_SOLID || v === f.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (p < m ? T.attr("x1", p + 12) : T.attr("x1", p + 6)), l.append("line").attr("x1", p).attr("y1", d).attr("x2", p).attr("y2", d).attr("stroke-width", 0).attr("marker-start", "url(" + E + "#sequencenumber)"), l.append("text").attr("x", p).attr("y", d + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(y));
|
|
3162
|
+
}, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(t, l, u, d, f, p, m) {
|
|
3163
|
+
let h = 0, g = 0, _, v = 0;
|
|
3164
|
+
for (let t of d) {
|
|
3165
|
+
let d = l.get(t), p = d.box;
|
|
3166
|
+
_ && _ != p && (m || bounds.models.addBox(_), g += conf.boxMargin + _.margin), p && p != _ && (m || (p.x = h + g, p.y = f), g += p.margin), d.width = d.width || conf.width, d.height = common_default.getMax(d.height || conf.height, conf.height), d.margin = d.margin || conf.actorMargin, v = common_default.getMax(v, d.height), u.get(d.name) && (g += d.width / 2), d.x = h + g, d.starty = bounds.getVerticalPos(), bounds.insert(d.x, f, d.x + d.width, d.height), h += d.width + g, d.box && (d.box.width = h + p.margin - d.box.x), g = d.margin, _ = d.box, bounds.models.addActor(d);
|
|
3167
|
+
}
|
|
3168
|
+
_ && !m && bounds.models.addBox(_), bounds.bumpVerticalPos(v);
|
|
3169
|
+
}, "addActorRenderingData"), drawActors = /* @__PURE__ */ __name(async function(t, l, u, d) {
|
|
3170
|
+
if (d) {
|
|
3171
|
+
let d = 0;
|
|
3172
|
+
bounds.bumpVerticalPos(conf.boxMargin * 2);
|
|
3173
|
+
for (let f of u) {
|
|
3174
|
+
let u = l.get(f);
|
|
3175
|
+
u.stopy ||= bounds.getVerticalPos();
|
|
3176
|
+
let p = await svgDraw_default.drawActor(t, u, conf, !0);
|
|
3177
|
+
d = common_default.getMax(d, p);
|
|
3178
|
+
}
|
|
3179
|
+
bounds.bumpVerticalPos(d + conf.boxMargin);
|
|
3180
|
+
} else for (let d of u) {
|
|
3181
|
+
let u = l.get(d);
|
|
3182
|
+
await svgDraw_default.drawActor(t, u, conf, !1);
|
|
3183
|
+
}
|
|
3184
|
+
}, "drawActors"), drawActorsPopup = /* @__PURE__ */ __name(function(t, l, u, d) {
|
|
3185
|
+
let f = 0, p = 0;
|
|
3186
|
+
for (let m of u) {
|
|
3187
|
+
let u = l.get(m), h = getRequiredPopupWidth(u), g = svgDraw_default.drawPopup(t, u, h, conf, conf.forceMenus, d);
|
|
3188
|
+
g.height > f && (f = g.height), g.width + u.x > p && (p = g.width + u.x);
|
|
3189
|
+
}
|
|
3190
|
+
return {
|
|
3191
|
+
maxHeight: f,
|
|
3192
|
+
maxWidth: p
|
|
3193
|
+
};
|
|
3194
|
+
}, "drawActorsPopup"), setConf = /* @__PURE__ */ __name(function(t) {
|
|
3195
|
+
assignWithDepth_default(conf, t), t.fontFamily && (conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = t.fontFamily), t.fontSize && (conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = t.fontSize), t.fontWeight && (conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = t.fontWeight);
|
|
3196
|
+
}, "setConf"), actorActivations = /* @__PURE__ */ __name(function(t) {
|
|
3197
|
+
return bounds.activations.filter(function(l) {
|
|
3198
|
+
return l.actor === t;
|
|
3199
|
+
});
|
|
3200
|
+
}, "actorActivations"), activationBounds = /* @__PURE__ */ __name(function(t, l) {
|
|
3201
|
+
let u = l.get(t), d = actorActivations(t);
|
|
3202
|
+
return [d.reduce(function(t, l) {
|
|
3203
|
+
return common_default.getMin(t, l.startx);
|
|
3204
|
+
}, u.x + u.width / 2 - 1), d.reduce(function(t, l) {
|
|
3205
|
+
return common_default.getMax(t, l.stopx);
|
|
3206
|
+
}, u.x + u.width / 2 + 1)];
|
|
3207
|
+
}, "activationBounds");
|
|
3208
|
+
function adjustLoopHeightForWrap(l, u, f, p, m) {
|
|
3209
|
+
bounds.bumpVerticalPos(f);
|
|
3210
|
+
let h = p;
|
|
3211
|
+
if (u.id && u.message && l[u.id]) {
|
|
3212
|
+
let f = l[u.id].width, m = messageFont(conf);
|
|
3213
|
+
u.message = utils_default.wrapLabel(`[${u.message}]`, f - 2 * conf.wrapPadding, m), u.width = f, u.wrap = !0;
|
|
3214
|
+
let g = utils_default.calculateTextDimensions(u.message, m), _ = common_default.getMax(g.height, conf.labelBoxHeight);
|
|
3215
|
+
h = p + _, log.debug(`${_} - ${u.message}`);
|
|
3216
|
+
}
|
|
3217
|
+
m(u), bounds.bumpVerticalPos(h);
|
|
3218
|
+
}
|
|
3219
|
+
__name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
|
|
3220
|
+
function adjustCreatedDestroyedData(t, l, u, d, p, m, h) {
|
|
3221
|
+
function g(u, d) {
|
|
3222
|
+
u.x < p.get(t.from).x ? (bounds.insert(l.stopx - d, l.starty, l.startx, l.stopy + u.height / 2 + conf.noteMargin), l.stopx += d) : (bounds.insert(l.startx, l.starty, l.stopx + d, l.stopy + u.height / 2 + conf.noteMargin), l.stopx -= d);
|
|
3223
|
+
}
|
|
3224
|
+
__name(g, "receiverAdjustment");
|
|
3225
|
+
function _(u, d) {
|
|
3226
|
+
u.x < p.get(t.to).x ? (bounds.insert(l.startx - d, l.starty, l.stopx, l.stopy + u.height / 2 + conf.noteMargin), l.startx += d) : (bounds.insert(l.stopx, l.starty, l.startx + d, l.stopy + u.height / 2 + conf.noteMargin), l.startx -= d);
|
|
3227
|
+
}
|
|
3228
|
+
__name(_, "senderAdjustment");
|
|
3229
|
+
let v = [
|
|
3230
|
+
PARTICIPANT_TYPE.ACTOR,
|
|
3231
|
+
PARTICIPANT_TYPE.CONTROL,
|
|
3232
|
+
PARTICIPANT_TYPE.ENTITY,
|
|
3233
|
+
PARTICIPANT_TYPE.DATABASE
|
|
3234
|
+
];
|
|
3235
|
+
if (m.get(t.to) == d) {
|
|
3236
|
+
let l = p.get(t.to);
|
|
3237
|
+
g(l, v.includes(l.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : l.width / 2 + 3), l.starty = u - l.height / 2, bounds.bumpVerticalPos(l.height / 2);
|
|
3238
|
+
} else if (h.get(t.from) == d) {
|
|
3239
|
+
let l = p.get(t.from);
|
|
3240
|
+
conf.mirrorActors && _(l, v.includes(l.type) ? ACTOR_TYPE_WIDTH / 2 : l.width / 2), l.stopy = u - l.height / 2, bounds.bumpVerticalPos(l.height / 2);
|
|
3241
|
+
} else if (h.get(t.to) == d) {
|
|
3242
|
+
let l = p.get(t.to);
|
|
3243
|
+
conf.mirrorActors && g(l, v.includes(l.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : l.width / 2 + 3), l.stopy = u - l.height / 2, bounds.bumpVerticalPos(l.height / 2);
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
__name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
|
|
3247
|
+
var draw = /* @__PURE__ */ __name(async function(t, l, u, m) {
|
|
3248
|
+
let { securityLevel: h, sequence: g } = getConfig2();
|
|
3249
|
+
conf = g;
|
|
3250
|
+
let _;
|
|
3251
|
+
h === "sandbox" && (_ = select_default("#i" + l));
|
|
3252
|
+
let v = select_default(h === "sandbox" ? _.nodes()[0].contentDocument.body : "body"), y = h === "sandbox" ? _.nodes()[0].contentDocument : document;
|
|
3253
|
+
bounds.init(), log.debug(m.db);
|
|
3254
|
+
let b = h === "sandbox" ? v.select(`[id="${l}"]`) : select_default(`[id="${l}"]`), x = m.db.getActors(), S = m.db.getCreatedActors(), C = m.db.getDestroyedActors(), E = m.db.getBoxes(), D = m.db.getActorKeys(), O = m.db.getMessages(), k = m.db.getDiagramTitle(), A = m.db.hasAtLeastOneBox(), j = m.db.hasAtLeastOneBoxWithTitle(), M = await getMaxMessageWidthPerActor(x, O, m);
|
|
3255
|
+
if (conf.height = await calculateActorMargins(x, M, E), svgDraw_default.insertComputerIcon(b), svgDraw_default.insertDatabaseIcon(b), svgDraw_default.insertClockIcon(b), A && (bounds.bumpVerticalPos(conf.boxMargin), j && bounds.bumpVerticalPos(E[0].textMaxHeight)), conf.hideUnusedParticipants === !0) {
|
|
3256
|
+
let t = /* @__PURE__ */ new Set();
|
|
3257
|
+
O.forEach((l) => {
|
|
3258
|
+
t.add(l.from), t.add(l.to);
|
|
3259
|
+
}), D = D.filter((l) => t.has(l));
|
|
3260
|
+
}
|
|
3261
|
+
addActorRenderingData(b, x, S, D, 0, O, !1);
|
|
3262
|
+
let N = await calculateLoopBounds(O, x, M, m);
|
|
3263
|
+
svgDraw_default.insertArrowHead(b), svgDraw_default.insertArrowCrossHead(b), svgDraw_default.insertArrowFilledHead(b), svgDraw_default.insertSequenceNumber(b);
|
|
3264
|
+
function P(t, l) {
|
|
3265
|
+
let u = bounds.endActivation(t);
|
|
3266
|
+
u.starty + 18 > l && (u.starty = l - 6, l += 12), svgDraw_default.drawActivation(b, u, l, conf, actorActivations(t.from).length), bounds.insert(u.startx, l - 10, u.stopx, l);
|
|
3267
|
+
}
|
|
3268
|
+
__name(P, "activeEnd");
|
|
3269
|
+
let F = 1, I = 1, L = [], R = [], z = 0;
|
|
3270
|
+
for (let t of O) {
|
|
3271
|
+
let l, u, f;
|
|
3272
|
+
switch (t.type) {
|
|
3273
|
+
case m.db.LINETYPE.NOTE:
|
|
3274
|
+
bounds.resetVerticalPos(), u = t.noteModel, await drawNote(b, u);
|
|
3275
|
+
break;
|
|
3276
|
+
case m.db.LINETYPE.ACTIVE_START:
|
|
3277
|
+
bounds.newActivation(t, b, x);
|
|
3278
|
+
break;
|
|
3279
|
+
case m.db.LINETYPE.ACTIVE_END:
|
|
3280
|
+
P(t, bounds.getVerticalPos());
|
|
3281
|
+
break;
|
|
3282
|
+
case m.db.LINETYPE.LOOP_START:
|
|
3283
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t));
|
|
3284
|
+
break;
|
|
3285
|
+
case m.db.LINETYPE.LOOP_END:
|
|
3286
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "loop", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3287
|
+
break;
|
|
3288
|
+
case m.db.LINETYPE.RECT_START:
|
|
3289
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin, (t) => bounds.newLoop(void 0, t.message));
|
|
3290
|
+
break;
|
|
3291
|
+
case m.db.LINETYPE.RECT_END:
|
|
3292
|
+
l = bounds.endLoop(), R.push(l), bounds.models.addLoop(l), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos());
|
|
3293
|
+
break;
|
|
3294
|
+
case m.db.LINETYPE.OPT_START:
|
|
3295
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t));
|
|
3296
|
+
break;
|
|
3297
|
+
case m.db.LINETYPE.OPT_END:
|
|
3298
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "opt", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3299
|
+
break;
|
|
3300
|
+
case m.db.LINETYPE.ALT_START:
|
|
3301
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t));
|
|
3302
|
+
break;
|
|
3303
|
+
case m.db.LINETYPE.ALT_ELSE:
|
|
3304
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (t) => bounds.addSectionToLoop(t));
|
|
3305
|
+
break;
|
|
3306
|
+
case m.db.LINETYPE.ALT_END:
|
|
3307
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "alt", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3308
|
+
break;
|
|
3309
|
+
case m.db.LINETYPE.PAR_START:
|
|
3310
|
+
case m.db.LINETYPE.PAR_OVER_START:
|
|
3311
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t)), bounds.saveVerticalPos();
|
|
3312
|
+
break;
|
|
3313
|
+
case m.db.LINETYPE.PAR_AND:
|
|
3314
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (t) => bounds.addSectionToLoop(t));
|
|
3315
|
+
break;
|
|
3316
|
+
case m.db.LINETYPE.PAR_END:
|
|
3317
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "par", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3318
|
+
break;
|
|
3319
|
+
case m.db.LINETYPE.AUTONUMBER:
|
|
3320
|
+
F = t.message.start || F, I = t.message.step || I, t.message.visible ? m.db.enableSequenceNumbers() : m.db.disableSequenceNumbers();
|
|
3321
|
+
break;
|
|
3322
|
+
case m.db.LINETYPE.CRITICAL_START:
|
|
3323
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t));
|
|
3324
|
+
break;
|
|
3325
|
+
case m.db.LINETYPE.CRITICAL_OPTION:
|
|
3326
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (t) => bounds.addSectionToLoop(t));
|
|
3327
|
+
break;
|
|
3328
|
+
case m.db.LINETYPE.CRITICAL_END:
|
|
3329
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "critical", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3330
|
+
break;
|
|
3331
|
+
case m.db.LINETYPE.BREAK_START:
|
|
3332
|
+
adjustLoopHeightForWrap(N, t, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (t) => bounds.newLoop(t));
|
|
3333
|
+
break;
|
|
3334
|
+
case m.db.LINETYPE.BREAK_END:
|
|
3335
|
+
l = bounds.endLoop(), await svgDraw_default.drawLoop(b, l, "break", conf), bounds.bumpVerticalPos(l.stopy - bounds.getVerticalPos()), bounds.models.addLoop(l);
|
|
3336
|
+
break;
|
|
3337
|
+
default: try {
|
|
3338
|
+
f = t.msgModel, f.starty = bounds.getVerticalPos(), f.sequenceIndex = F, f.sequenceVisible = m.db.showSequenceNumbers();
|
|
3339
|
+
let l = await boundMessage(b, f);
|
|
3340
|
+
adjustCreatedDestroyedData(t, f, l, z, x, S, C), L.push({
|
|
3341
|
+
messageModel: f,
|
|
3342
|
+
lineStartY: l
|
|
3343
|
+
}), bounds.models.addMessage(f);
|
|
3344
|
+
} catch (t) {
|
|
3345
|
+
log.error("error while drawing message", t);
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
[
|
|
3349
|
+
m.db.LINETYPE.SOLID_OPEN,
|
|
3350
|
+
m.db.LINETYPE.DOTTED_OPEN,
|
|
3351
|
+
m.db.LINETYPE.SOLID,
|
|
3352
|
+
m.db.LINETYPE.DOTTED,
|
|
3353
|
+
m.db.LINETYPE.SOLID_CROSS,
|
|
3354
|
+
m.db.LINETYPE.DOTTED_CROSS,
|
|
3355
|
+
m.db.LINETYPE.SOLID_POINT,
|
|
3356
|
+
m.db.LINETYPE.DOTTED_POINT,
|
|
3357
|
+
m.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3358
|
+
m.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3359
|
+
].includes(t.type) && (F += I), z++;
|
|
3360
|
+
}
|
|
3361
|
+
log.debug("createdActors", S), log.debug("destroyedActors", C), await drawActors(b, x, D, !1);
|
|
3362
|
+
for (let t of L) await drawMessage(b, t.messageModel, t.lineStartY, m);
|
|
3363
|
+
conf.mirrorActors && await drawActors(b, x, D, !0), R.forEach((t) => svgDraw_default.drawBackgroundRect(b, t)), fixLifeLineHeights(b, x, D, conf);
|
|
3364
|
+
for (let t of bounds.models.boxes) {
|
|
3365
|
+
t.height = bounds.getVerticalPos() - t.y, bounds.insert(t.x, t.y, t.x + t.width, t.height);
|
|
3366
|
+
let l = conf.boxMargin * 2;
|
|
3367
|
+
t.startx = t.x - l, t.starty = t.y - l * .25, t.stopx = t.startx + t.width + 2 * l, t.stopy = t.starty + t.height + l * .75, t.stroke = "rgb(0,0,0, 0.5)", svgDraw_default.drawBox(b, t, conf);
|
|
3368
|
+
}
|
|
3369
|
+
A && bounds.bumpVerticalPos(conf.boxMargin);
|
|
3370
|
+
let B = drawActorsPopup(b, x, D, y), { bounds: V } = bounds.getBounds();
|
|
3371
|
+
V.startx === void 0 && (V.startx = 0), V.starty === void 0 && (V.starty = 0), V.stopx === void 0 && (V.stopx = 0), V.stopy === void 0 && (V.stopy = 0);
|
|
3372
|
+
let H = V.stopy - V.starty;
|
|
3373
|
+
H < B.maxHeight && (H = B.maxHeight);
|
|
3374
|
+
let U = H + 2 * conf.diagramMarginY;
|
|
3375
|
+
conf.mirrorActors && (U = U - conf.boxMargin + conf.bottomMarginAdj);
|
|
3376
|
+
let W = V.stopx - V.startx;
|
|
3377
|
+
W < B.maxWidth && (W = B.maxWidth);
|
|
3378
|
+
let G = W + 2 * conf.diagramMarginX;
|
|
3379
|
+
k && b.append("text").text(k).attr("x", (V.stopx - V.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25), configureSvgSize(b, U, G, conf.useMaxWidth);
|
|
3380
|
+
let K = k ? 40 : 0;
|
|
3381
|
+
b.attr("viewBox", V.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + K) + " " + G + " " + (U + K)), log.debug("models:", bounds.models);
|
|
3382
|
+
}, "draw");
|
|
3383
|
+
async function getMaxMessageWidthPerActor(l, u, f) {
|
|
3384
|
+
let p = {};
|
|
3385
|
+
for (let d of u) if (l.get(d.to) && l.get(d.from)) {
|
|
3386
|
+
let u = l.get(d.to);
|
|
3387
|
+
if (d.placement === f.db.PLACEMENT.LEFTOF && !u.prevActor || d.placement === f.db.PLACEMENT.RIGHTOF && !u.nextActor) continue;
|
|
3388
|
+
let m = d.placement !== void 0, h = !m, g = m ? noteFont(conf) : messageFont(conf), _ = d.wrap ? utils_default.wrapLabel(d.message, conf.width - 2 * conf.wrapPadding, g) : d.message, v = (hasKatex(_) ? await calculateMathMLDimensions(d.message, getConfig2()) : utils_default.calculateTextDimensions(_, g)).width + 2 * conf.wrapPadding;
|
|
3389
|
+
h && d.from === u.nextActor ? p[d.to] = common_default.getMax(p[d.to] || 0, v) : h && d.from === u.prevActor ? p[d.from] = common_default.getMax(p[d.from] || 0, v) : h && d.from === d.to ? (p[d.from] = common_default.getMax(p[d.from] || 0, v / 2), p[d.to] = common_default.getMax(p[d.to] || 0, v / 2)) : d.placement === f.db.PLACEMENT.RIGHTOF ? p[d.from] = common_default.getMax(p[d.from] || 0, v) : d.placement === f.db.PLACEMENT.LEFTOF ? p[u.prevActor] = common_default.getMax(p[u.prevActor] || 0, v) : d.placement === f.db.PLACEMENT.OVER && (u.prevActor && (p[u.prevActor] = common_default.getMax(p[u.prevActor] || 0, v / 2)), u.nextActor && (p[d.from] = common_default.getMax(p[d.from] || 0, v / 2)));
|
|
3390
|
+
}
|
|
3391
|
+
return log.debug("maxMessageWidthPerActor:", p), p;
|
|
3392
|
+
}
|
|
3393
|
+
__name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
|
|
3394
|
+
var getRequiredPopupWidth = /* @__PURE__ */ __name(function(l) {
|
|
3395
|
+
let u = 0, d = actorFont(conf);
|
|
3396
|
+
for (let f in l.links) {
|
|
3397
|
+
let l = utils_default.calculateTextDimensions(f, d).width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
|
|
3398
|
+
u < l && (u = l);
|
|
3399
|
+
}
|
|
3400
|
+
return u;
|
|
3401
|
+
}, "getRequiredPopupWidth");
|
|
3402
|
+
async function calculateActorMargins(l, u, d) {
|
|
3403
|
+
let f = 0;
|
|
3404
|
+
for (let u of l.keys()) {
|
|
3405
|
+
let d = l.get(u);
|
|
3406
|
+
d.wrap && (d.description = utils_default.wrapLabel(d.description, conf.width - 2 * conf.wrapPadding, actorFont(conf)));
|
|
3407
|
+
let p = hasKatex(d.description) ? await calculateMathMLDimensions(d.description, getConfig2()) : utils_default.calculateTextDimensions(d.description, actorFont(conf));
|
|
3408
|
+
d.width = d.wrap ? conf.width : common_default.getMax(conf.width, p.width + 2 * conf.wrapPadding), d.height = d.wrap ? common_default.getMax(p.height, conf.height) : conf.height, f = common_default.getMax(f, d.height);
|
|
3409
|
+
}
|
|
3410
|
+
for (let t in u) {
|
|
3411
|
+
let d = l.get(t);
|
|
3412
|
+
if (!d) continue;
|
|
3413
|
+
let f = l.get(d.nextActor);
|
|
3414
|
+
if (!f) {
|
|
3415
|
+
let l = u[t] + conf.actorMargin - d.width / 2;
|
|
3416
|
+
d.margin = common_default.getMax(l, conf.actorMargin);
|
|
3417
|
+
continue;
|
|
3418
|
+
}
|
|
3419
|
+
let p = u[t] + conf.actorMargin - d.width / 2 - f.width / 2;
|
|
3420
|
+
d.margin = common_default.getMax(p, conf.actorMargin);
|
|
3421
|
+
}
|
|
3422
|
+
let p = 0;
|
|
3423
|
+
return d.forEach((u) => {
|
|
3424
|
+
let d = messageFont(conf), f = u.actorKeys.reduce((t, u) => t += l.get(u).width + (l.get(u).margin || 0), 0), m = conf.boxMargin * 8;
|
|
3425
|
+
f += m, f -= 2 * conf.boxTextMargin, u.wrap && (u.name = utils_default.wrapLabel(u.name, f - 2 * conf.wrapPadding, d));
|
|
3426
|
+
let h = utils_default.calculateTextDimensions(u.name, d);
|
|
3427
|
+
p = common_default.getMax(h.height, p);
|
|
3428
|
+
let g = common_default.getMax(f, h.width + 2 * conf.wrapPadding);
|
|
3429
|
+
if (u.margin = conf.boxTextMargin, f < g) {
|
|
3430
|
+
let t = (g - f) / 2;
|
|
3431
|
+
u.margin += t;
|
|
3432
|
+
}
|
|
3433
|
+
}), d.forEach((t) => t.textMaxHeight = p), common_default.getMax(f, conf.height);
|
|
3434
|
+
}
|
|
3435
|
+
__name(calculateActorMargins, "calculateActorMargins");
|
|
3436
|
+
var buildNoteModel = /* @__PURE__ */ __name(async function(l, u, f) {
|
|
3437
|
+
let p = u.get(l.from), m = u.get(l.to), h = p.x, g = m.x, _ = l.wrap && l.message, v = hasKatex(l.message) ? await calculateMathMLDimensions(l.message, getConfig2()) : utils_default.calculateTextDimensions(_ ? utils_default.wrapLabel(l.message, conf.width, noteFont(conf)) : l.message, noteFont(conf)), y = {
|
|
3438
|
+
width: _ ? conf.width : common_default.getMax(conf.width, v.width + 2 * conf.noteMargin),
|
|
3439
|
+
height: 0,
|
|
3440
|
+
startx: p.x,
|
|
3441
|
+
stopx: 0,
|
|
3442
|
+
starty: 0,
|
|
3443
|
+
stopy: 0,
|
|
3444
|
+
message: l.message
|
|
3445
|
+
};
|
|
3446
|
+
return l.placement === f.db.PLACEMENT.RIGHTOF ? (y.width = _ ? common_default.getMax(conf.width, v.width) : common_default.getMax(p.width / 2 + m.width / 2, v.width + 2 * conf.noteMargin), y.startx = h + (p.width + conf.actorMargin) / 2) : l.placement === f.db.PLACEMENT.LEFTOF ? (y.width = _ ? common_default.getMax(conf.width, v.width + 2 * conf.noteMargin) : common_default.getMax(p.width / 2 + m.width / 2, v.width + 2 * conf.noteMargin), y.startx = h - y.width + (p.width - conf.actorMargin) / 2) : l.to === l.from ? (v = utils_default.calculateTextDimensions(_ ? utils_default.wrapLabel(l.message, common_default.getMax(conf.width, p.width), noteFont(conf)) : l.message, noteFont(conf)), y.width = _ ? common_default.getMax(conf.width, p.width) : common_default.getMax(p.width, conf.width, v.width + 2 * conf.noteMargin), y.startx = h + (p.width - y.width) / 2) : (y.width = Math.abs(h + p.width / 2 - (g + m.width / 2)) + conf.actorMargin, y.startx = h < g ? h + p.width / 2 - conf.actorMargin / 2 : g + m.width / 2 - conf.actorMargin / 2), _ && (y.message = utils_default.wrapLabel(l.message, y.width - 2 * conf.wrapPadding, noteFont(conf))), log.debug(`NM:[${y.startx},${y.stopx},${y.starty},${y.stopy}:${y.width},${y.height}=${l.message}]`), y;
|
|
3447
|
+
}, "buildNoteModel"), buildMessageModel = /* @__PURE__ */ __name(function(l, u, d) {
|
|
3448
|
+
if (![
|
|
3449
|
+
d.db.LINETYPE.SOLID_OPEN,
|
|
3450
|
+
d.db.LINETYPE.DOTTED_OPEN,
|
|
3451
|
+
d.db.LINETYPE.SOLID,
|
|
3452
|
+
d.db.LINETYPE.DOTTED,
|
|
3453
|
+
d.db.LINETYPE.SOLID_CROSS,
|
|
3454
|
+
d.db.LINETYPE.DOTTED_CROSS,
|
|
3455
|
+
d.db.LINETYPE.SOLID_POINT,
|
|
3456
|
+
d.db.LINETYPE.DOTTED_POINT,
|
|
3457
|
+
d.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3458
|
+
d.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3459
|
+
].includes(l.type)) return {};
|
|
3460
|
+
let [p, m] = activationBounds(l.from, u), [h, g] = activationBounds(l.to, u), _ = p <= h, v = _ ? m : p, y = _ ? h : g, b = Math.abs(h - g) > 2, x = /* @__PURE__ */ __name((t) => _ ? -t : t, "adjustValue");
|
|
3461
|
+
l.from === l.to ? y = v : (l.activate && !b && (y += x(conf.activationWidth / 2 - 1)), [d.db.LINETYPE.SOLID_OPEN, d.db.LINETYPE.DOTTED_OPEN].includes(l.type) || (y += x(3)), [d.db.LINETYPE.BIDIRECTIONAL_SOLID, d.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(l.type) && (v -= x(3)));
|
|
3462
|
+
let S = [
|
|
3463
|
+
p,
|
|
3464
|
+
m,
|
|
3465
|
+
h,
|
|
3466
|
+
g
|
|
3467
|
+
], C = Math.abs(v - y);
|
|
3468
|
+
l.wrap && l.message && (l.message = utils_default.wrapLabel(l.message, common_default.getMax(C + 2 * conf.wrapPadding, conf.width), messageFont(conf)));
|
|
3469
|
+
let w = utils_default.calculateTextDimensions(l.message, messageFont(conf));
|
|
3470
|
+
return {
|
|
3471
|
+
width: common_default.getMax(l.wrap ? 0 : w.width + 2 * conf.wrapPadding, C + 2 * conf.wrapPadding, conf.width),
|
|
3472
|
+
height: 0,
|
|
3473
|
+
startx: v,
|
|
3474
|
+
stopx: y,
|
|
3475
|
+
starty: 0,
|
|
3476
|
+
stopy: 0,
|
|
3477
|
+
message: l.message,
|
|
3478
|
+
type: l.type,
|
|
3479
|
+
wrap: l.wrap,
|
|
3480
|
+
fromBounds: Math.min.apply(null, S),
|
|
3481
|
+
toBounds: Math.max.apply(null, S)
|
|
3482
|
+
};
|
|
3483
|
+
}, "buildMessageModel"), calculateLoopBounds = /* @__PURE__ */ __name(async function(t, l, u, f) {
|
|
3484
|
+
let p = {}, m = [], h, g, _;
|
|
3485
|
+
for (let u of t) {
|
|
3486
|
+
switch (u.type) {
|
|
3487
|
+
case f.db.LINETYPE.LOOP_START:
|
|
3488
|
+
case f.db.LINETYPE.ALT_START:
|
|
3489
|
+
case f.db.LINETYPE.OPT_START:
|
|
3490
|
+
case f.db.LINETYPE.PAR_START:
|
|
3491
|
+
case f.db.LINETYPE.PAR_OVER_START:
|
|
3492
|
+
case f.db.LINETYPE.CRITICAL_START:
|
|
3493
|
+
case f.db.LINETYPE.BREAK_START:
|
|
3494
|
+
m.push({
|
|
3495
|
+
id: u.id,
|
|
3496
|
+
msg: u.message,
|
|
3497
|
+
from: 2 ** 53 - 1,
|
|
3498
|
+
to: -(2 ** 53 - 1),
|
|
3499
|
+
width: 0
|
|
3500
|
+
});
|
|
3501
|
+
break;
|
|
3502
|
+
case f.db.LINETYPE.ALT_ELSE:
|
|
3503
|
+
case f.db.LINETYPE.PAR_AND:
|
|
3504
|
+
case f.db.LINETYPE.CRITICAL_OPTION:
|
|
3505
|
+
u.message && (h = m.pop(), p[h.id] = h, p[u.id] = h, m.push(h));
|
|
3506
|
+
break;
|
|
3507
|
+
case f.db.LINETYPE.LOOP_END:
|
|
3508
|
+
case f.db.LINETYPE.ALT_END:
|
|
3509
|
+
case f.db.LINETYPE.OPT_END:
|
|
3510
|
+
case f.db.LINETYPE.PAR_END:
|
|
3511
|
+
case f.db.LINETYPE.CRITICAL_END:
|
|
3512
|
+
case f.db.LINETYPE.BREAK_END:
|
|
3513
|
+
h = m.pop(), p[h.id] = h;
|
|
3514
|
+
break;
|
|
3515
|
+
case f.db.LINETYPE.ACTIVE_START:
|
|
3516
|
+
{
|
|
3517
|
+
let t = l.get(u.from ? u.from : u.to.actor), d = actorActivations(u.from ? u.from : u.to.actor).length, f = t.x + t.width / 2 + (d - 1) * conf.activationWidth / 2, p = {
|
|
3518
|
+
startx: f,
|
|
3519
|
+
stopx: f + conf.activationWidth,
|
|
3520
|
+
actor: u.from,
|
|
3521
|
+
enabled: !0
|
|
3522
|
+
};
|
|
3523
|
+
bounds.activations.push(p);
|
|
3524
|
+
}
|
|
3525
|
+
break;
|
|
3526
|
+
case f.db.LINETYPE.ACTIVE_END:
|
|
3527
|
+
{
|
|
3528
|
+
let t = bounds.activations.map((t) => t.actor).lastIndexOf(u.from);
|
|
3529
|
+
bounds.activations.splice(t, 1).splice(0, 1);
|
|
3530
|
+
}
|
|
3531
|
+
break;
|
|
3532
|
+
}
|
|
3533
|
+
u.placement === void 0 ? (_ = buildMessageModel(u, l, f), u.msgModel = _, _.startx && _.stopx && m.length > 0 && m.forEach((t) => {
|
|
3534
|
+
if (h = t, _.startx === _.stopx) {
|
|
3535
|
+
let t = l.get(u.from), d = l.get(u.to);
|
|
3536
|
+
h.from = common_default.getMin(t.x - _.width / 2, t.x - t.width / 2, h.from), h.to = common_default.getMax(d.x + _.width / 2, d.x + t.width / 2, h.to), h.width = common_default.getMax(h.width, Math.abs(h.to - h.from)) - conf.labelBoxWidth;
|
|
3537
|
+
} else h.from = common_default.getMin(_.startx, h.from), h.to = common_default.getMax(_.stopx, h.to), h.width = common_default.getMax(h.width, _.width) - conf.labelBoxWidth;
|
|
3538
|
+
})) : (g = await buildNoteModel(u, l, f), u.noteModel = g, m.forEach((t) => {
|
|
3539
|
+
h = t, h.from = common_default.getMin(h.from, g.startx), h.to = common_default.getMax(h.to, g.startx + g.width), h.width = common_default.getMax(h.width, Math.abs(h.from - h.to)) - conf.labelBoxWidth;
|
|
3540
|
+
}));
|
|
3541
|
+
}
|
|
3542
|
+
return bounds.activations = [], log.debug("Loop type widths:", p), p;
|
|
3543
|
+
}, "calculateLoopBounds"), diagram = {
|
|
3544
|
+
parser: sequenceDiagram_default,
|
|
3545
|
+
get db() {
|
|
3546
|
+
return new SequenceDB();
|
|
3547
|
+
},
|
|
3548
|
+
renderer: {
|
|
3549
|
+
bounds,
|
|
3550
|
+
drawActors,
|
|
3551
|
+
drawActorsPopup,
|
|
3552
|
+
setConf,
|
|
3553
|
+
draw
|
|
3554
|
+
},
|
|
3555
|
+
styles: styles_default,
|
|
3556
|
+
init: /* @__PURE__ */ __name((t) => {
|
|
3557
|
+
t.sequence ||= {}, t.wrap && (t.sequence.wrap = t.wrap, setConfig2({ sequence: { wrap: t.wrap } }));
|
|
3558
|
+
}, "init")
|
|
3559
|
+
};
|
|
3560
|
+
export { diagram };
|