markdown-flow-ui 0.3.2 → 0.3.3
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/_virtual/index.es6.js +5 -3
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +3 -5
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/assets/markdown-flow-ui.css +1 -10
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +23 -24
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +54 -53
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +21 -22
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.d.ts +5 -1
- package/dist/components/MarkdownFlowEditor/utils.es.js +40 -41
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/markdown-flow-ui.css +1 -10
- package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.cjs +2 -14
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.cjs.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.es.js +6 -26
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOHPRMQF.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.cjs +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.cjs.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +2 -6
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +2 -2
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -5
- package/dist/node_modules/classnames/index.cjs.map +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -6
- package/dist/node_modules/classnames/index.es.js.map +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.cjs +3 -13
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.cjs.map +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.es.js +15 -46
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.es.js.map +1 -1
- package/dist/node_modules/d3-scale/src/ordinal.es.js +1 -1
- package/dist/node_modules/d3-scale/src/ordinal.es.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.cjs +2 -2
- package/dist/node_modules/dompurify/dist/purify.es.cjs.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.es.js +0 -2
- package/dist/node_modules/dompurify/dist/purify.es.es.js.map +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/highlight.js/lib/core.es.js +1 -1
- package/dist/node_modules/highlight.js/lib/core.es.js.map +1 -1
- package/dist/node_modules/katex/dist/katex.cjs +18 -18
- package/dist/node_modules/katex/dist/katex.cjs.map +1 -1
- package/dist/node_modules/katex/dist/katex.es.js +2716 -3120
- package/dist/node_modules/katex/dist/katex.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/Icon.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +1 -6
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +1 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.es.js +0 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VZM6K2ZE.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +0 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.es.js +0 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-7S7Q4E2Y.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
- package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -3
- package/dist/node_modules/mermaid/dist/mermaid.core.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/mermaid.core.es.js +0 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.es.js.map +1 -1
- package/dist/node_modules/rc-util/es/React/isFragment.es.js +1 -1
- package/dist/node_modules/rc-util/es/React/isFragment.es.js.map +1 -1
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.cjs +1 -9
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.cjs.map +1 -1
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.es.js +2 -11
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.es.js.map +1 -1
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.cjs +1 -9
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.cjs.map +1 -1
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.es.js +2 -11
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -1
- package/dist/node_modules/style-mod/src/style-mod.es.js +1 -1
- package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
- package/package.json +21 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index6.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index7.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
|
|
2
2
|
`+Q.showPosition()+`
|
|
3
3
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Xt="Parse error on line "+(Dt+1)+": Unexpected "+(et==ye?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(Xt,{text:Q.match,token:this.terminals_[et]||et,line:Q.yylineno,loc:Ut,expected:vt})}if(ot[0]instanceof Array&&ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+et);switch(ot[0]){case 1:P.push(et),z.push(Q.yytext),o.push(Q.yylloc),P.push(ot[1]),et=null,Ie=Q.yyleng,h=Q.yytext,Dt=Q.yylineno,Ut=Q.yylloc;break;case 2:if(dt=this.productions_[ot[1]][1],yt.$=z[z.length-dt],yt._$={first_line:o[o.length-(dt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(dt||1)].first_column,last_column:o[o.length-1].last_column},Fe&&(yt._$.range=[o[o.length-(dt||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(yt,[h,Ie,Dt,ut.yy,ot[1],z,o].concat(qe)),typeof Gt<"u")return Gt;dt&&(P=P.slice(0,-1*dt*2),z=z.slice(0,-1*dt),o=o.slice(0,-1*dt)),P.push(this.productions_[ot[1]][0]),z.push(yt.$),o.push(yt._$),Oe=At[P[P.length-2]][P[P.length-1]],P.push(Oe);break;case 3:return!0}}return!0},"parse")},We=(function(){var pt={EOF:1,parseError:m.__name(function(C,P){if(this.yy.parser)this.yy.parser.parseError(C,P);else throw new Error(C)},"parseError"),setInput:m.__name(function(N,C){return this.yy=C||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m.__name(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var C=N.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:m.__name(function(N){var C=N.length,P=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1&&(this.yylineno-=P.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:m.__name(function(){return this._more=!0,this},"more"),reject:m.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m.__name(function(N){this.unput(this.match.slice(N))},"less"),pastInput:m.__name(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m.__name(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m.__name(function(){var N=this.pastInput(),C=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
|
|
@@ -7,7 +7,7 @@ import { log as at } from "./chunk-X3CZISLH.es.js";
|
|
|
7
7
|
import { __name as x } from "./chunk-Y2CYZVJY.es.js";
|
|
8
8
|
import "../../../../d3-transition/src/selection/index.es.js";
|
|
9
9
|
import "../../../../d3-zoom/src/transform.es.js";
|
|
10
|
-
import { d as Ve } from "../../../../../_virtual/index.
|
|
10
|
+
import { d as Ve } from "../../../../../_virtual/index.es7.js";
|
|
11
11
|
import Wt from "../../../../d3-selection/src/select.es.js";
|
|
12
12
|
var ee = (function() {
|
|
13
13
|
var e = /* @__PURE__ */ x(function(ut, S, v, P) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
|
|
2
2
|
//# sourceMappingURL=stateDiagram-OKZ733FA.cjs.map
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
|
|
|
5
5
|
import { getConfig2 as t, configureSvgSize as P, common_default as z, getUrl as U } from "./chunk-I66GZJ75.es.js";
|
|
6
6
|
import { log as S } from "./chunk-X3CZISLH.es.js";
|
|
7
7
|
import "./chunk-J7OUQ5F2.es.js";
|
|
8
|
-
import "../../../../../_virtual/index.
|
|
8
|
+
import "../../../../../_virtual/index.es7.js";
|
|
9
9
|
import "./chunk-7Z6QIM7H.es.js";
|
|
10
10
|
import "./chunk-QR6OTTB3.es.js";
|
|
11
11
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var i={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=i;
|
|
2
2
|
//# sourceMappingURL=stateDiagram-v2-UEYNNEHI.cjs.map
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
|
|
|
5
5
|
import "./chunk-I66GZJ75.es.js";
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.es.js";
|
|
7
7
|
import "./chunk-J7OUQ5F2.es.js";
|
|
8
|
-
import "../../../../../_virtual/index.
|
|
8
|
+
import "../../../../../_virtual/index.es7.js";
|
|
9
9
|
import "./chunk-7Z6QIM7H.es.js";
|
|
10
10
|
import "./chunk-QR6OTTB3.es.js";
|
|
11
11
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u=t.__name(e=>`${r.styles_default(e)}
|
|
2
2
|
.swimlane.cluster rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ import "./chunk-I66GZJ75.es.js";
|
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.es.js";
|
|
7
7
|
import "js-yaml";
|
|
8
8
|
import "./chunk-J7OUQ5F2.es.js";
|
|
9
|
-
import "../../../../../_virtual/index.
|
|
9
|
+
import "../../../../../_virtual/index.es7.js";
|
|
10
10
|
import "./chunk-7Z6QIM7H.es.js";
|
|
11
11
|
import "./chunk-QR6OTTB3.es.js";
|
|
12
12
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -7,7 +7,5 @@
|
|
|
7
7
|
`}else i+=`${e.themeCSS}
|
|
8
8
|
`;return i+o.cssStyleSheetToString(a)},"createCssStyles"),ci=t.__name((e,r)=>z.serialize(tr.compile(`${e}{${r}}`),ar.middleware([t.__name(function(i,n,d,l){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===b.KEYFRAMES)return;i.props=i.props.map(c=>c===e&&Array.isArray(i.children)&&i.children.every(g=>g.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(g.props))||(c.startsWith(`${e} `)||c.startsWith(`${e}>`))&&!c.startsWith(`${e} ||`)?c:`${e} ${c}`)}else i.type.startsWith("@")&&([...[b.MEDIA,b.SUPPORTS,b.LAYER,b.SCOPE,"@container","@starting-style"],b.KEYFRAMES].includes(i.type)||(m.log.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=b.COMMENT))},"addNamespace"),z.stringify])),"compileCSS"),mi=t.__name((e,r,a,i)=>{const n=li(e,a),d=o.styles_default(r,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return ci(i,d)},"createUserStyles"),ui=t.__name((e="",r,a)=>{let i=e;return!a&&!r&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=_.decodeEntities(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),gi=t.__name((e="",r)=>{const a=r?.viewBox?.baseVal?.height?r.viewBox.baseVal.height+"px":ti,i=Re(`<body style="${ii}">${e}</body>`);return`<iframe style="width:${ri};height:${a};${ai}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${ni}">
|
|
9
9
|
${oi}
|
|
10
|
-
</iframe>`},"putIntoIFrame"),H=t.__name((e,r,a,i,n)=>{const d=e.append("div");d.attr("id",a),i&&d.attr("style",i);const l=d.append("svg").attr("id",r).attr("width","100%").attr("xmlns",Ja);return n&&l.attr("xmlns:xlink",n),l.append("g"),e},"appendDivSvgG");function R(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t.__name(R,"sandboxedIframe");var vi=t.__name((e,r,a,i)=>{e.getElementById(r)?.remove(),e.getElementById(a)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),_i=t.__name(async function(e,r,a){T();const i=I(r);r=i.code;const n=o.getConfig();m.log.debug(n),r.length>(n?.maxTextSize??Xa)&&(r=Wa);const d=`#${e}`,l="i"+e,c="#"+l,s="d"+e,g="#"+s,p=t.__name(()=>{const v=y?c:g,x=w.default(v).node();x&&"remove"in x&&x.remove()},"removeTempElements");let u=w.default(document.body);const y=n.securityLevel===Ka,Ge=n.securityLevel===Qa,He=n.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),y){const v=R(w.default(a),l);u=w.default(v.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=w.default(a);H(u,e,s,`font-family: ${He}`,Za)}else{if(vi(document,e,s,l),y){const v=R(w.default(document.body),l);u=w.default(v.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=w.default("body");H(u,e,s)}let f,P;try{f=await A.fromText(r,{title:i.title})}catch(v){if(n.suppressErrorRendering)throw p(),v;f=await A.fromText("error"),P=v}const Ye=u.select(g).node(),L=f.type,F=Ye.firstChild,Be=F.firstChild,je=f.renderer.getClasses?.(r,f),Ue=mi(n,L,je,d),k=document.createElement("style");k.innerHTML=Ue,F.insertBefore(k,Be);try{await f.renderer.draw(r,e,"11.16.1",f)}catch(v){throw n.suppressErrorRendering?p():St.draw(r,e,"11.16.1"),v}const Xe=u.select(`${g} svg`),We=f.db.getAccTitle?.(),Ke=f.db.getAccDescription?.();ke(L,Xe,We,Ke),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",ei);let S=u.select(g).node().innerHTML;if(m.log.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),S=ui(S,y,o.evaluate(n.arrowMarkerAbsolute)),y){const v=u.select(g+" svg").node();S=gi(S,v)}else Ge||(S=rr.default.sanitize(S,{ADD_TAGS:di,ADD_ATTR:si,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Ha(),P)throw P;return p(),{diagramType:L,svg:S,bindFunctions:f.db.bindFunctions}},"render");function Ie(e={}){const r=o.assignWithDepth_default({},e);r?.fontFamily&&!r.themeVariables?.fontFamily&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),o.saveConfigFromInitialize(r),r?.theme&&r.theme in o.themes_default?r.themeVariables=o.themes_default[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=o.themes_default.default.getThemeVariables(r.themeVariables));const a=typeof r=="object"?o.setSiteConfig(r):o.getSiteConfig();m.setLogLevel(a.logLevel),T()}t.__name(Ie,"initialize");var Fe=t.__name((e,r={})=>{const{code:a}=M(e);return A.fromText(a,r)},"getDiagramFromText");function ke(e,r,a,i){xe(r,e),Ce(r,a,i,r.attr("id"))}t.__name(ke,"addA11yInfo");var E=Object.freeze({render:_i,parse:Me,getDiagramFromText:Fe,initialize:Ie,getConfig:o.getConfig,setConfig:o.setConfig,getSiteConfig:o.getSiteConfig,updateSiteConfig:o.updateSiteConfig,reset:t.__name(()=>{o.reset()},"reset"),globalReset:t.__name(()=>{o.reset(o.defaultConfig)},"globalReset"),defaultConfig:o.defaultConfig});m.setLogLevel(o.getConfig().logLevel);o.reset(o.getConfig());var fi=t.__name((e,r,a)=>{m.log.warn(e),_.isDetailedError(e)?(a&&a(e.str,e.hash),r.push({...e,message:e.str,error:e})):(a&&a(e),e instanceof Error&&r.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),$e=t.__name(async function(e={querySelector:".mermaid"}){try{await pi(e)}catch(r){if(_.isDetailedError(r)&&m.log.error(r.str),h.parseError&&h.parseError(r),!e.suppressErrors)throw m.log.error("Use the suppressErrors option to suppress these errors"),r}},"run"),pi=t.__name(async function({postRenderCallback:e,querySelector:r,nodes:a}={querySelector:".mermaid"}){const i=E.getConfig();m.log.debug(`${e?"":"No "}Callback function found`);let n;if(a)n=a;else if(r)n=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");m.log.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(m.log.debug("Start On Load: "+i?.startOnLoad),E.updateSiteConfig({startOnLoad:i?.startOnLoad}));const d=new _.utils_default.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let l;const c=[];for(const s of Array.from(n)){if(m.log.info("Rendering diagram: "+s.id),s.getAttribute("data-processed"))continue;s.setAttribute("data-processed","true");const g=`mermaid-${d.next()}`;l=s.innerHTML,l=er.dedent(_.utils_default.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,"<br/>");const p=_.utils_default.detectInit(l);p&&m.log.debug("Detected early reinit: ",p);try{const{svg:u,bindFunctions:y}=await Ne(g,l,s);s.innerHTML=u,e&&await e(g),y&&y(s)}catch(u){fi(u,c,h.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),Oe=t.__name(function(e){E.initialize(e)},"initialize"),hi=t.__name(async function(e,r,a){m.log.warn("mermaid.init is deprecated. Please use run instead."),e&&Oe(e);const i={postRenderCallback:a,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await $e(i)},"init"),yi=t.__name(async(e,{lazyLoad:r=!0}={})=>{T(),o.registerLazyLoadedDiagrams(...e),r===!1&&await Na()},"registerExternalDiagrams"),ze=t.__name(function(){if(h.startOnLoad){const{startOnLoad:e}=E.getConfig();e&&h.run().catch(r=>m.log.error("Mermaid failed to initialize",r))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",ze,!1);var wi=t.__name(function(e){h.parseError=e},"setParseErrorHandler"),q=[],C=!1,Ve=t.__name(async()=>{if(!C){for(C=!0;q.length>0;){const e=q.shift();if(e)try{await e()}catch(r){m.log.error("Error executing queue",r)}}C=!1}},"executeQueue"),Si=t.__name(async(e,r)=>new Promise((a,i)=>{const n=t.__name(()=>new Promise((d,l)=>{E.parse(e,r).then(c=>{d(c),a(c)},c=>{m.log.error("Error parsing",c),h.parseError?.(c),l(c),i(c)})}),"performCall");q.push(n),Ve().catch(i)}),"parse"),Ne=t.__name((e,r,a)=>new Promise((i,n)=>{const d=t.__name(()=>new Promise((l,c)=>{E.render(e,r,a).then(s=>{l(s),i(s)},s=>{m.log.error("Error parsing",s),h.parseError?.(s),c(s),n(s)})}),"performCall");q.push(d),Ve().catch(n)}),"render"),bi=t.__name(()=>Object.keys(o.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),h={startOnLoad:!0,mermaidAPI:E,parse:Si,render:Ne,init:hi,run:$e,registerExternalDiagrams:yi,registerLayoutLoaders:Je.registerLayoutLoaders,initialize:Oe,parseError:void 0,contentLoaded:ze,setParseErrorHandler:wi,detectType:o.detectType,registerIconPacks:Ze.registerIconPacks,getRegisteredDiagramsMetadata:bi},Di=h
|
|
11
|
-
* Wait for document loaded before starting the execution
|
|
12
|
-
*/exports.default=Di;
|
|
10
|
+
</iframe>`},"putIntoIFrame"),H=t.__name((e,r,a,i,n)=>{const d=e.append("div");d.attr("id",a),i&&d.attr("style",i);const l=d.append("svg").attr("id",r).attr("width","100%").attr("xmlns",Ja);return n&&l.attr("xmlns:xlink",n),l.append("g"),e},"appendDivSvgG");function R(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t.__name(R,"sandboxedIframe");var vi=t.__name((e,r,a,i)=>{e.getElementById(r)?.remove(),e.getElementById(a)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),_i=t.__name(async function(e,r,a){T();const i=I(r);r=i.code;const n=o.getConfig();m.log.debug(n),r.length>(n?.maxTextSize??Xa)&&(r=Wa);const d=`#${e}`,l="i"+e,c="#"+l,s="d"+e,g="#"+s,p=t.__name(()=>{const v=y?c:g,x=w.default(v).node();x&&"remove"in x&&x.remove()},"removeTempElements");let u=w.default(document.body);const y=n.securityLevel===Ka,Ge=n.securityLevel===Qa,He=n.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),y){const v=R(w.default(a),l);u=w.default(v.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=w.default(a);H(u,e,s,`font-family: ${He}`,Za)}else{if(vi(document,e,s,l),y){const v=R(w.default(document.body),l);u=w.default(v.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=w.default("body");H(u,e,s)}let f,P;try{f=await A.fromText(r,{title:i.title})}catch(v){if(n.suppressErrorRendering)throw p(),v;f=await A.fromText("error"),P=v}const Ye=u.select(g).node(),L=f.type,F=Ye.firstChild,Be=F.firstChild,je=f.renderer.getClasses?.(r,f),Ue=mi(n,L,je,d),k=document.createElement("style");k.innerHTML=Ue,F.insertBefore(k,Be);try{await f.renderer.draw(r,e,"11.16.1",f)}catch(v){throw n.suppressErrorRendering?p():St.draw(r,e,"11.16.1"),v}const Xe=u.select(`${g} svg`),We=f.db.getAccTitle?.(),Ke=f.db.getAccDescription?.();ke(L,Xe,We,Ke),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",ei);let S=u.select(g).node().innerHTML;if(m.log.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),S=ui(S,y,o.evaluate(n.arrowMarkerAbsolute)),y){const v=u.select(g+" svg").node();S=gi(S,v)}else Ge||(S=rr.default.sanitize(S,{ADD_TAGS:di,ADD_ATTR:si,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Ha(),P)throw P;return p(),{diagramType:L,svg:S,bindFunctions:f.db.bindFunctions}},"render");function Ie(e={}){const r=o.assignWithDepth_default({},e);r?.fontFamily&&!r.themeVariables?.fontFamily&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),o.saveConfigFromInitialize(r),r?.theme&&r.theme in o.themes_default?r.themeVariables=o.themes_default[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=o.themes_default.default.getThemeVariables(r.themeVariables));const a=typeof r=="object"?o.setSiteConfig(r):o.getSiteConfig();m.setLogLevel(a.logLevel),T()}t.__name(Ie,"initialize");var Fe=t.__name((e,r={})=>{const{code:a}=M(e);return A.fromText(a,r)},"getDiagramFromText");function ke(e,r,a,i){xe(r,e),Ce(r,a,i,r.attr("id"))}t.__name(ke,"addA11yInfo");var E=Object.freeze({render:_i,parse:Me,getDiagramFromText:Fe,initialize:Ie,getConfig:o.getConfig,setConfig:o.setConfig,getSiteConfig:o.getSiteConfig,updateSiteConfig:o.updateSiteConfig,reset:t.__name(()=>{o.reset()},"reset"),globalReset:t.__name(()=>{o.reset(o.defaultConfig)},"globalReset"),defaultConfig:o.defaultConfig});m.setLogLevel(o.getConfig().logLevel);o.reset(o.getConfig());var fi=t.__name((e,r,a)=>{m.log.warn(e),_.isDetailedError(e)?(a&&a(e.str,e.hash),r.push({...e,message:e.str,error:e})):(a&&a(e),e instanceof Error&&r.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),$e=t.__name(async function(e={querySelector:".mermaid"}){try{await pi(e)}catch(r){if(_.isDetailedError(r)&&m.log.error(r.str),h.parseError&&h.parseError(r),!e.suppressErrors)throw m.log.error("Use the suppressErrors option to suppress these errors"),r}},"run"),pi=t.__name(async function({postRenderCallback:e,querySelector:r,nodes:a}={querySelector:".mermaid"}){const i=E.getConfig();m.log.debug(`${e?"":"No "}Callback function found`);let n;if(a)n=a;else if(r)n=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");m.log.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(m.log.debug("Start On Load: "+i?.startOnLoad),E.updateSiteConfig({startOnLoad:i?.startOnLoad}));const d=new _.utils_default.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let l;const c=[];for(const s of Array.from(n)){if(m.log.info("Rendering diagram: "+s.id),s.getAttribute("data-processed"))continue;s.setAttribute("data-processed","true");const g=`mermaid-${d.next()}`;l=s.innerHTML,l=er.dedent(_.utils_default.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,"<br/>");const p=_.utils_default.detectInit(l);p&&m.log.debug("Detected early reinit: ",p);try{const{svg:u,bindFunctions:y}=await Ne(g,l,s);s.innerHTML=u,e&&await e(g),y&&y(s)}catch(u){fi(u,c,h.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),Oe=t.__name(function(e){E.initialize(e)},"initialize"),hi=t.__name(async function(e,r,a){m.log.warn("mermaid.init is deprecated. Please use run instead."),e&&Oe(e);const i={postRenderCallback:a,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await $e(i)},"init"),yi=t.__name(async(e,{lazyLoad:r=!0}={})=>{T(),o.registerLazyLoadedDiagrams(...e),r===!1&&await Na()},"registerExternalDiagrams"),ze=t.__name(function(){if(h.startOnLoad){const{startOnLoad:e}=E.getConfig();e&&h.run().catch(r=>m.log.error("Mermaid failed to initialize",r))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",ze,!1);var wi=t.__name(function(e){h.parseError=e},"setParseErrorHandler"),q=[],C=!1,Ve=t.__name(async()=>{if(!C){for(C=!0;q.length>0;){const e=q.shift();if(e)try{await e()}catch(r){m.log.error("Error executing queue",r)}}C=!1}},"executeQueue"),Si=t.__name(async(e,r)=>new Promise((a,i)=>{const n=t.__name(()=>new Promise((d,l)=>{E.parse(e,r).then(c=>{d(c),a(c)},c=>{m.log.error("Error parsing",c),h.parseError?.(c),l(c),i(c)})}),"performCall");q.push(n),Ve().catch(i)}),"parse"),Ne=t.__name((e,r,a)=>new Promise((i,n)=>{const d=t.__name(()=>new Promise((l,c)=>{E.render(e,r,a).then(s=>{l(s),i(s)},s=>{m.log.error("Error parsing",s),h.parseError?.(s),c(s),n(s)})}),"performCall");q.push(d),Ve().catch(n)}),"render"),bi=t.__name(()=>Object.keys(o.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),h={startOnLoad:!0,mermaidAPI:E,parse:Si,render:Ne,init:hi,run:$e,registerExternalDiagrams:yi,registerLayoutLoaders:Je.registerLayoutLoaders,initialize:Oe,parseError:void 0,contentLoaded:ze,setParseErrorHandler:wi,detectType:o.detectType,registerIconPacks:Ze.registerIconPacks,getRegisteredDiagramsMetadata:bi},Di=h;exports.default=Di;
|
|
13
11
|
//# sourceMappingURL=mermaid.core.cjs.map
|