@cagent/chat-embedding-core 0.0.13 → 0.0.14
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/.env +6 -0
- package/README.md +213 -213
- package/bun.lock +1548 -1548
- package/dist/abnfDiagram-VRR7QNED-3cfb3856.js +1 -0
- package/dist/abnfDiagram-VRR7QNED-686410b0.js +1 -0
- package/dist/abnfDiagram-VRR7QNED-fb22812d.js +1 -0
- package/dist/api/chatRoom.d.ts.map +1 -0
- package/dist/arc-24dd4755.js +1 -0
- package/dist/arc-5d6257cf.js +1 -0
- package/dist/arc-90e71e7e.js +1 -0
- package/dist/architecture-TIHT7OUA-a997f441.js +1 -0
- package/dist/architecture-TIHT7OUA-faa1f9b3.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-87443299.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-93988e41.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-bde2dd21.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-25a94a47.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-88bd543c.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-c769a3c8.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-763880d7.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-d7fc839e.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-da04a76e.js +1 -0
- package/dist/channel-11d3f4bc.js +1 -0
- package/dist/channel-534c2e17.js +1 -0
- package/dist/channel-c3cf6060.js +1 -0
- package/dist/chunk-2Q5K7J3B-2892df89.js +1 -0
- package/dist/chunk-2Q5K7J3B-7960ff8e.js +1 -0
- package/dist/chunk-2Q5K7J3B-9497bf31.js +1 -0
- package/dist/chunk-32BRIVSS-10123eba.js +1 -0
- package/dist/chunk-32BRIVSS-10ac68f7.js +1 -0
- package/dist/chunk-32BRIVSS-8a8507a2.js +1 -0
- package/dist/chunk-5VM5RSS4-36b32f6e.js +1 -0
- package/dist/chunk-5VM5RSS4-4b2efd20.js +1 -0
- package/dist/chunk-5VM5RSS4-5fc85a49.js +1 -0
- package/dist/chunk-EX3LRPZG-36494b87.js +1 -0
- package/dist/chunk-EX3LRPZG-6cd1f2fa.js +1 -0
- package/dist/chunk-EX3LRPZG-7ac6d0d7.js +1 -0
- package/dist/chunk-JWPE2WC7-15a55950.js +1 -0
- package/dist/chunk-JWPE2WC7-84faee3d.js +1 -0
- package/dist/chunk-JWPE2WC7-e2521b1e.js +1 -0
- package/dist/chunk-MOJQB5TN-47f0392f.js +1 -0
- package/dist/chunk-MOJQB5TN-5cc2e61b.js +1 -0
- package/dist/chunk-MOJQB5TN-ea88675c.js +1 -0
- package/dist/chunk-PUDLZKDR-057ec46a.js +1 -0
- package/dist/chunk-PUDLZKDR-53309be9.js +1 -0
- package/dist/chunk-PUDLZKDR-6de50ada.js +1 -0
- package/dist/chunk-RYQCIY6F-06b096c5.js +1 -0
- package/dist/chunk-RYQCIY6F-453400cd.js +1 -0
- package/dist/chunk-RYQCIY6F-8de649c8.js +1 -0
- package/dist/chunk-V7JOEXUC-4083766f.js +1 -0
- package/dist/chunk-V7JOEXUC-4e8d7729.js +1 -0
- package/dist/chunk-V7JOEXUC-bb2df9b0.js +1 -0
- package/dist/chunk-VR4S4FIN-5feb7571.js +1 -0
- package/dist/chunk-VR4S4FIN-9df47127.js +1 -0
- package/dist/chunk-VR4S4FIN-c4f2681d.js +1 -0
- package/dist/chunk-XXDRQBXY-3c9d8bf9.js +1 -0
- package/dist/chunk-XXDRQBXY-de00e988.js +1 -0
- package/dist/chunk-XXDRQBXY-f923ffed.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-5cdf5fe6.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-d51bd736.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-fc2b54d6.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-5cdf5fe6.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-d51bd736.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-fc2b54d6.js +1 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
- package/dist/components/RoomReconnectAlert.d.ts.map +1 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPopupModal.d.ts.map +1 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/CancelButton.d.ts.map +1 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
- package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
- package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
- package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/RecordIcon.d.ts.map +1 -0
- package/dist/components/icons/ResetZoomIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/icons/StopIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
- package/dist/components/icons/TickIcon.d.ts.map +1 -0
- package/dist/components/icons/TrashIcon.d.ts.map +1 -0
- package/dist/components/icons/XIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomInIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomOutIcon.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/index.d.ts.map +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/cose-bilkent-JH36ORCC-ac4d2e28.js +1 -0
- package/dist/cose-bilkent-JH36ORCC-c3560feb.js +1 -0
- package/dist/cose-bilkent-JH36ORCC-f0ddc3e7.js +1 -0
- package/dist/cynefin-VYW2F7L2-2458ad91.js +1 -0
- package/dist/cynefin-VYW2F7L2-a8648cf6.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-62a29383.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-910b3dfd.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-deb0bb2c.js +1 -0
- package/dist/cytoscape.esm-56d2239f.js +1 -0
- package/dist/cytoscape.esm-c9352dc8.js +1 -0
- package/dist/dagre-VKFMJZFB-1467d0af.js +1 -0
- package/dist/dagre-VKFMJZFB-35daad97.js +1 -0
- package/dist/dagre-VKFMJZFB-c5b9a4a0.js +1 -0
- package/dist/defaultLocale-b4977250.js +1 -0
- package/dist/defaultLocale-e35a4def.js +1 -0
- package/dist/diagram-FQU43EPY-41eed431.js +1 -0
- package/dist/diagram-FQU43EPY-613e9e4e.js +1 -0
- package/dist/diagram-FQU43EPY-d256050e.js +1 -0
- package/dist/diagram-G47NLZAW-813bbb70.js +1 -0
- package/dist/diagram-G47NLZAW-8ef917d1.js +1 -0
- package/dist/diagram-G47NLZAW-aa02607c.js +1 -0
- package/dist/diagram-NH7WQ7WH-0af7a921.js +1 -0
- package/dist/diagram-NH7WQ7WH-0e4f7f17.js +1 -0
- package/dist/diagram-NH7WQ7WH-6f91f6aa.js +1 -0
- package/dist/diagram-OA4YK3LP-0fba2475.js +1 -0
- package/dist/diagram-OA4YK3LP-587273f4.js +1 -0
- package/dist/diagram-OA4YK3LP-6cbfc7a5.js +1 -0
- package/dist/diagram-WEI45ONY-0241463f.js +1 -0
- package/dist/diagram-WEI45ONY-dd634033.js +1 -0
- package/dist/diagram-WEI45ONY-e002e844.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-20ac4ba3.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-e9974165.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-ead44055.js +1 -0
- package/dist/erDiagram-Q63AITRT-1febb8fc.js +1 -0
- package/dist/erDiagram-Q63AITRT-4ea4b93d.js +1 -0
- package/dist/erDiagram-Q63AITRT-bcb00855.js +1 -0
- package/dist/eventmodeling-45OFAUF4-a82f1f18.js +1 -0
- package/dist/eventmodeling-45OFAUF4-dcf667fc.js +1 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/full/components/Full.d.ts.map +1 -0
- package/dist/features/full/components/index.d.ts.map +1 -0
- package/dist/features/full/index.d.ts.map +1 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/flowDiagram-23GEKE2U-14ee2b3c.js +1 -0
- package/dist/flowDiagram-23GEKE2U-7ab9c2e4.js +1 -0
- package/dist/flowDiagram-23GEKE2U-f7309569.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-249a167d.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-bd530d12.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-e5e495d6.js +1 -0
- package/dist/gitGraph-TEB2WS4Q-72ba3362.js +1 -0
- package/dist/gitGraph-TEB2WS4Q-d07b15b3.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-2964ff91.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-4d9324ad.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-97bf868b.js +1 -0
- package/dist/graph-0df36b9d.js +1 -0
- package/dist/graph-c6801890.js +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/info-DKCQHKI2-d8e8a901.js +1 -0
- package/dist/info-DKCQHKI2-dd69502c.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-1267309e.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-5b9d28af.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-cc33afe4.js +1 -0
- package/dist/init-b029a625.js +1 -0
- package/dist/init-cf76ae07.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-3f0977e8.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-89c1b2f4.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-9fef4653.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-563a68ff.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-c8c8d701.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-e6c5e84b.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-3719e367.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-7bc0cd1e.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-d8b002e3.js +1 -0
- package/dist/katex-67456a45.js +1 -0
- package/dist/katex-b134d23c.js +1 -0
- package/dist/layout-e44354bf.js +1 -0
- package/dist/layout-ff5d33a1.js +1 -0
- package/dist/linear-7b1a23f3.js +1 -0
- package/dist/linear-d7ad6d25.js +1 -0
- package/dist/linear-e5c99c88.js +1 -0
- package/dist/map-05f0ff95.js +1 -0
- package/dist/map-d3292a5b.js +1 -0
- package/dist/mermaid-parser.core-6df0beec.js +1 -0
- package/dist/mermaid-parser.core-d8d1c2b9.js +1 -0
- package/dist/mermaid.core-2d237a1e.js +1 -0
- package/dist/mermaid.core-70d5aead.js +1 -0
- package/dist/mermaid.core-8797d6a9.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-04a12a88.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-86a890ce.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-f495948c.js +1 -0
- package/dist/ordinal-221e41d7.js +1 -0
- package/dist/ordinal-4a51e46c.js +1 -0
- package/dist/packet-7NZHBO7P-b4586e10.js +1 -0
- package/dist/packet-7NZHBO7P-f62750ff.js +1 -0
- package/dist/pegDiagram-2B236MQR-234fe6d1.js +1 -0
- package/dist/pegDiagram-2B236MQR-2826e278.js +1 -0
- package/dist/pegDiagram-2B236MQR-64eeb662.js +1 -0
- package/dist/pie-RZYD4A2V-106ba3d7.js +1 -0
- package/dist/pie-RZYD4A2V-752eda00.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-0c3b09b8.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-3fb5f734.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-af928526.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-1a55c0f5.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-3d15c26d.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-9110fa9c.js +1 -0
- package/dist/queries/sendMessageQuery.d.ts.map +1 -0
- package/dist/radar-I7S5WNFK-53bde9ff.js +1 -0
- package/dist/radar-I7S5WNFK-87e8c5ba.js +1 -0
- package/dist/railroad-3IZDKUUU-99427b9f.js +1 -0
- package/dist/railroad-3IZDKUUU-9e29587d.js +1 -0
- package/dist/railroad-abnf-AHOZXSZD-1d11cb5b.js +1 -0
- package/dist/railroad-abnf-AHOZXSZD-c27db0bc.js +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-38dff87c.js +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-6bb5de0c.js +1 -0
- package/dist/railroad-peg-LSFZ7HO6-c9f0aa71.js +1 -0
- package/dist/railroad-peg-LSFZ7HO6-efcb0a43.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-14373a87.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-ec9e696e.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-effa5611.js +1 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/requirementDiagram-TGXJPOKE-3d199581.js +1 -0
- package/dist/requirementDiagram-TGXJPOKE-5a337f1a.js +1 -0
- package/dist/requirementDiagram-TGXJPOKE-a7960859.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-209eac30.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-3c852fda.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-46aa1eb1.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-4121f7c2.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-7bad18e4.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-af96f48e.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-13826306.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-32e2eec7.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-a078176f.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-527374a2.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-8047e124.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-ba344b5d.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-7580bf69.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-d4c58fd3.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-e5921044.js +1 -0
- package/dist/store/constant.d.ts.map +1 -0
- package/dist/swimlanes-5IMT3BWC-5834b232.js +1 -0
- package/dist/swimlanes-5IMT3BWC-791a3547.js +1 -0
- package/dist/swimlanes-5IMT3BWC-db2c593a.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-36c30eec.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-89220ddd.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-b621330d.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-0482a67a.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-1d165a67.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-f9600b97.js +1 -0
- package/dist/treeView-QDETBFTQ-0ecf20cd.js +1 -0
- package/dist/treeView-QDETBFTQ-96ed8e2f.js +1 -0
- package/dist/treemap-6X3UGDF4-0a7f19ca.js +1 -0
- package/dist/treemap-6X3UGDF4-9f498e0c.js +1 -0
- package/dist/types/chart.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/audioRecording.d.ts.map +1 -0
- package/dist/utils/chartInstanceManager.d.ts.map +1 -0
- package/dist/utils/chartTagParser.d.ts.map +1 -0
- package/dist/utils/chatInputHistory.d.ts.map +1 -0
- package/dist/utils/chatStreamHelper.d.ts.map +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/vennDiagram-L72KCM5P-05176193.js +1 -0
- package/dist/vennDiagram-L72KCM5P-25a48393.js +1 -0
- package/dist/vennDiagram-L72KCM5P-28cffef7.js +1 -0
- package/dist/wardley-OPB4EBWU-08c5f013.js +1 -0
- package/dist/wardley-OPB4EBWU-9803a1d9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-052e6de9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-6a614fd9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-d11fe904.js +1 -0
- package/dist/web-25bb78b9.js +1 -0
- package/dist/web-753300e1.js +1 -0
- package/dist/web-c3ed22c4.js +1 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +1 -1
- package/dist/window.d.ts.map +1 -0
- package/dist/xychartDiagram-FW5EYKEG-43118b83.js +1 -0
- package/dist/xychartDiagram-FW5EYKEG-d77187fe.js +1 -0
- package/dist/xychartDiagram-FW5EYKEG-f2fac492.js +1 -0
- package/package.json +86 -86
- package/server.js +477 -477
- package/.idea/flowise-chatbox.iml +0 -10
- package/.idea/modules.xml +0 -8
- package/.idea/workspace.xml +0 -4
- package/docs/embedding-style-guide.md +0 -417
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{_ as i,j as r,l as n}from"./mermaid.core-2d237a1e.js";import{c as o}from"./cytoscape.esm-56d2239f.js";import{c as s,g as a}from"./web-753300e1.js";var h,l,g={exports:{}},u={exports:{}},c={exports:{}};function d(){var t;return l||(l=1,t=function(t){return i=[function(e,i){e.exports=t},function(t,e,i){var r,n=i(0).FDLayoutConstants;function o(){}for(r in n)o[r]=n[r];o.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,o.DEFAULT_RADIAL_SEPARATION=n.DEFAULT_EDGE_LENGTH,o.DEFAULT_COMPONENT_SEPERATION=60,o.TILE=!0,o.TILING_PADDING_VERTICAL=10,o.TILING_PADDING_HORIZONTAL=10,o.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=o},function(t,e,i){var r,n=i(0).FDLayoutEdge;function o(t,e,i){n.call(this,t,e,i)}for(r in o.prototype=Object.create(n.prototype),n)o[r]=n[r];t.exports=o},function(t,e,i){var r,n=i(0).LGraph;function o(t,e,i){n.call(this,t,e,i)}for(r in o.prototype=Object.create(n.prototype),n)o[r]=n[r];t.exports=o},function(t,e,i){var r,n=i(0).LGraphManager;function o(t){n.call(this,t)}for(r in o.prototype=Object.create(n.prototype),n)o[r]=n[r];t.exports=o},function(t,e,i){var r,n=i(0).FDLayoutNode,o=i(0).IMath;function s(t,e,i,r){n.call(this,t,e,i,r)}for(r in s.prototype=Object.create(n.prototype),n)s[r]=n[r];s.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},s.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n<r.length;n++)null==(i=r[n]).getChild()?(i.moveBy(t,e),i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},s.prototype.setPred1=function(t){this.pred1=t},s.prototype.getPred1=function(){return pred1},s.prototype.getPred2=function(){return pred2},s.prototype.setNext=function(t){this.next=t},s.prototype.getNext=function(){return next},s.prototype.setProcessed=function(t){this.processed=t},s.prototype.isProcessed=function(){return processed},t.exports=s},function(t,e,i){var r,n=i(0).FDLayout,o=i(4),s=i(3),a=i(5),h=i(2),l=i(1),g=i(0).FDLayoutConstants,u=i(0).LayoutConstants,c=i(0).Point,d=i(0).PointD,p=i(0).Layout,f=i(0).Integer,y=i(0).IGeometry,E=i(0).LGraph,A=i(0).Transform;function N(){n.call(this),this.toBeTiled={}}for(r in N.prototype=Object.create(n.prototype),n)N[r]=n[r];N.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t},N.prototype.newGraph=function(t){return new s(null,this.graphManager,t)},N.prototype.newNode=function(t){return new a(this.graphManager,t)},N.prototype.newEdge=function(t){return new h(null,null,t)},N.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=g.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=g.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=g.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=g.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/g.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=g.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},N.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.prototype.classicLayout=function(){var t,e,i;return this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental?l.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(t){return e.has(t)}),this.graphManager.setAllNodesToApplyGravitation(i)):0<(t=this.getFlatForest()).length?this.positionNodesRadially(t):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(t){return e.has(t)}),this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()),this.initSpringEmbedder(),this.runSpringEmbedder(),!0},N.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(0<this.prunedNodesAll.length))return!0;this.isTreeGrowing=!0}if(this.totalIterations%g.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(0<this.prunedNodesAll.length))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}var t;if(this.isTreeGrowing&&(this.growTreeIterations%10==0&&(0<this.prunedNodesAll.length?(this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=g.DEFAULT_COOLING_FACTOR_INCREMENTAL):(this.isTreeGrowing=!1,this.isGrowthFinished=!0)),this.growTreeIterations++),this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=g.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var e=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(e,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,n=t[i].id;e[n]={id:n,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===g.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},N.prototype.calculateNodesToApplyGravitationTo=function(){for(var t,e=[],i=this.graphManager.getGraphs(),r=i.length,n=0;n<r;n++)(t=i[n]).updateConnected(),t.isConnected||(e=e.concat(t.getNodes()));return e},N.prototype.createBendpoints=function(){for(var t=(t=[]).concat(this.graphManager.getAllEdges()),e=new Set,i=0;i<t.length;i++){var r=t[i];if(!e.has(r)){var n=r.getSource(),o=r.getTarget();if(n==o)r.getBendpoints().push(new d),r.getBendpoints().push(new d),this.createDummyNodesForBendpoints(r),e.add(r);else{var s=[];if(s=(s=s.concat(n.getEdgeListToNode(o))).concat(o.getEdgeListToNode(n)),!e.has(s[0])){if(1<s.length)for(var a=0;a<s.length;a++){var h=s[a];h.getBendpoints().push(new d),this.createDummyNodesForBendpoints(h)}s.forEach(function(t){e.add(t)})}}}if(e.size==t.length)break}},N.prototype.positionNodesRadially=function(t){for(var e=new c(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,n=0,o=0,s=new d(0,0),a=0;a<t.length;a++){a%i==0&&(n=r,(o=0)!=a&&(n+=l.DEFAULT_COMPONENT_SEPERATION),r=0);var h=t[a],g=p.findCenterOfTree(h);e.x=o,e.y=n,(s=N.radialLayout(h,g,e)).y>r&&(r=Math.floor(s.y)),o=Math.floor(s.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(u.WORLD_CENTER_X-s.x/2,u.WORLD_CENTER_Y-s.y/2))},N.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),l.DEFAULT_RADIAL_SEPARATION),n=(e=(N.branchRadialLayout(e,null,0,359,0,r),E.calculateBounds(t)),new A);n.setDeviceOrgX(e.getMinX()),n.setDeviceOrgY(e.getMinY()),n.setWorldOrgX(i.x),n.setWorldOrgY(i.y);for(var o=0;o<t.length;o++)t[o].transform(n);return r=new d(e.getMaxX(),e.getMaxY()),n.inverseTransformPoint(r)},N.branchRadialLayout=function(t,e,i,r,n,o){(s=(r-i+1)/2)<0&&(s+=180);for(var s=(s+i)%360*y.TWO_PI/360,a=n*Math.cos(s),h=(s=n*Math.sin(s),t.setCenter(a,s),[]),l=(h=h.concat(t.getEdges())).length,g=(null!=e&&l--,0),u=h.length,c=t.getEdgesBetween(e);1<c.length;){var d=c[0];0<=(d=(c.splice(0,1),h.indexOf(d)))&&h.splice(d,1),u--,l--}a=null!=e?(h.indexOf(c[0])+1)%u:0;for(var p=Math.abs(r-i)/l,f=a;g!=l;f=++f%u){var E=h[f].getOtherEnd(t);E!=e&&(N.branchRadialLayout(E,t,E=(i+g*p)%360,(E+p)%360,n+o,o),g++)}},N.maxDiagonalInTree=function(t){for(var e=f.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();e<r&&(e=r)}return e},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){for(var t=this,e={},i=(this.memberGroups={},this.idToDummyNode={},[]),r=this.graphManager.getAllNodes(),n=0;n<r.length;n++){var o=(s=r[n]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||i.push(s)}for(n=0;n<i.length;n++){var s,h=(s=i[n]).getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(s)}Object.keys(e).forEach(function(i){if(1<e[i].length){var r="DummyCompound_"+i,n=(t.memberGroups[r]=e[i],e[i][0].getParent()),o=new a(t.graphManager),s=(o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o,t.getGraphManager().add(t.newGraph(),o)),h=n.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var g=e[i][l];h.remove(g),s.add(g)}}})},N.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},N.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(i){var r=t.idToDummyNode[i];e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height})},N.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;0<=t;t--){var e=this.compoundOrder[t],i=e.id;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,e.paddingLeft,e.paddingTop)}},N.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,r.paddingTop)})},N.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];if(null==(t=t.getChild()))return this.toBeTiled[e]=!1;for(var i=t.getNodes(),r=0;r<i.length;r++){var n=i[r];if(0<this.getNodeDegree(n))return this.toBeTiled[e]=!1;if(null==n.getChild())this.toBeTiled[n.id]=!1;else if(!this.getToBeTiled(n))return this.toBeTiled[e]=!1}return this.toBeTiled[e]=!0},N.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var n=e[r];n.getSource().id!==n.getTarget().id&&(i+=1)}return i},N.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null!=t.getChild())for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var n=i[r];e+=this.getNodeDegreeWithChildren(n)}return e},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},N.prototype.adjustLocations=function(t,e,i,r,n){i+=n;for(var o=e+=r,s=0;s<t.rows.length;s++){for(var a=t.rows[s],h=(e=o,0),l=0;l<a.length;l++){var g=a[l];g.rect.x=e,g.rect.y=i,e+=g.rect.width+t.horizontalPadding,g.rect.height>h&&(h=g.rect.height)}i+=h+t.verticalPadding}},N.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height})},N.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0});for(var r=0;r<t.length;r++){var n=t[r];0==i.rows.length?this.insertNodeToRow(i,n,0,e):this.canAddHorizontal(i,n.rect.width,n.rect.height)?this.insertNodeToRow(i,n,this.getShortestRowIndex(i),e):this.insertNodeToRow(i,n,i.rows.length,e),this.shiftToLastRow(i)}return i},N.prototype.insertNodeToRow=function(t,e,i,r){i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(r),t.rowHeight.push(0));r=t.rowWidth[i]+e.rect.width,0<t.rows[i].length&&(r+=t.horizontalPadding),t.rowWidth[i]=r,t.width<r&&(t.width=r),r=e.rect.height;var n=(0<i&&(r+=t.verticalPadding),0);r>t.rowHeight[i]&&(n=t.rowHeight[i],t.rowHeight[i]=r,n=t.rowHeight[i]-n),t.height+=n,t.rows[i].push(e)},N.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},N.prototype.getLongestRowIndex=function(t){for(var e=-1,i=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},N.prototype.canAddHorizontal=function(t,e,i){var r,n,o=this.getShortestRowIndex(t);return o<0||(n=t.rowWidth[o])+t.horizontalPadding+e<=t.width||(r=0,t.rowHeight[o]<i&&0<o&&(r=i+t.verticalPadding-t.rowHeight[o]),o=e+t.horizontalPadding<=t.width-n?(t.height+r)/(n+e+t.horizontalPadding):(t.height+r)/t.width,r=i+t.verticalPadding,(o=o<1?1/o:o)<((n=t.width<e?(t.height+r)/e:(t.height+r)/t.width)<1?1/n:n))},N.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],n=r[r.length-1],o=n.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;a<r.length;a++)r[a].height>s&&(s=r[a].height);0<e&&(s+=t.verticalPadding),o=t.rowHeight[e]+t.rowHeight[i],t.rowHeight[e]=s,t.rowHeight[i]<n.height+t.verticalPadding&&(t.rowHeight[i]=n.height+t.verticalPadding),n=t.rowHeight[e]+t.rowHeight[i],t.height+=n-o,this.shiftToLastRow(t)}},N.prototype.tilingPreLayout=function(){l.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){l.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){for(var r=this.graphManager.getAllNodes(),n=[],o=(i=!1,0);o<r.length;o++)1!=(t=r[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(n.push([t,t.getEdges()[0],t.getOwner()]),i=!0);if(1==i){for(var s=[],a=0;a<n.length;a++)1==n[a][0].getEdges().length&&(s.push(n[a]),n[a][0].getOwner().remove(n[a][0]));e.push(s),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},N.prototype.growTree=function(t){for(var e,i=t[t.length-1],r=0;r<i.length;r++)e=i[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},N.prototype.findPlaceforPrunedNode=function(t){var e=t[0],i=(t=e==t[1].source?t[1].target:t[1].source).startX,r=t.finishX,n=t.startY,o=t.finishY,s=[0,0,0,0];if(0<n)for(var a=i;a<=r;a++)s[0]+=this.grid[a][n-1].length+this.grid[a][n].length-1;if(r<this.grid.length-1)for(a=n;a<=o;a++)s[1]+=this.grid[r+1][a].length+this.grid[r][a].length-1;if(o<this.grid[0].length-1)for(a=i;a<=r;a++)s[2]+=this.grid[a][o+1].length+this.grid[a][o].length-1;if(0<i)for(a=n;a<=o;a++)s[3]+=this.grid[i-1][a].length+this.grid[i][a].length-1;for(var h,l,u,c,d=f.MAX_VALUE,p=0;p<s.length;p++)s[p]<d?(d=s[p],h=1,l=p):s[p]==d&&h++;3==h&&0==d?0==s[0]&&0==s[1]&&0==s[2]?u=1:0==s[0]&&0==s[1]&&0==s[3]?u=0:0==s[0]&&0==s[2]&&0==s[3]?u=3:0==s[1]&&0==s[2]&&0==s[3]&&(u=2):u=2==h&&0==d?(c=Math.floor(2*Math.random()),0==s[0]&&0==s[1]?0==c?0:1:0==s[0]&&0==s[2]?0==c?0:2:0==s[0]&&0==s[3]?0==c?0:3:0==s[1]&&0==s[2]?0==c?1:2:0==s[1]&&0==s[3]?0==c?1:3:0==c?2:3):4==h&&0==d?c=Math.floor(4*Math.random()):l,0==u?e.setCenter(t.getCenterX(),t.getCenterY()-t.getHeight()/2-g.DEFAULT_EDGE_LENGTH-e.getHeight()/2):1==u?e.setCenter(t.getCenterX()+t.getWidth()/2+g.DEFAULT_EDGE_LENGTH+e.getWidth()/2,t.getCenterY()):2==u?e.setCenter(t.getCenterX(),t.getCenterY()+t.getHeight()/2+g.DEFAULT_EDGE_LENGTH+e.getHeight()/2):e.setCenter(t.getCenterX()-t.getWidth()/2-g.DEFAULT_EDGE_LENGTH-e.getWidth()/2,t.getCenterY())},t.exports=N},function(t,e,i){var r={};r.layoutBase=i(0),r.CoSEConstants=i(1),r.CoSEEdge=i(2),r.CoSEGraph=i(3),r.CoSEGraphManager=i(4),r.CoSELayout=i(6),r.CoSENode=i(5),t.exports=r}],r={},e.m=i,e.c=r,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7);function e(t){var n;return(r[t]||(n=r[t]={i:t,l:!1,exports:{}},i[t].call(n.exports,n,n.exports,e),n.l=!0,n)).exports}var i,r},u.exports=t(function(){var t;return h||(h=1,t=function(){return e=[function(t,e,i){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_HALF_SIZE=(r.SIMPLE_NODE_SIZE=40)/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.INITIAL_WORLD_BOUNDARY=(r.WORLD_BOUNDARY=1e6)/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,i){var r,n=i(2),o=i(8),s=i(9);function a(t,e,i){n.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(r in a.prototype=Object.create(n.prototype),n)a[r]=n[r];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},a.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=a},function(t,e,i){t.exports=function(t){this.vGraphObject=t}},function(t,e,i){var r,n=i(2),o=i(10),s=i(13),a=i(0),h=i(16),l=i(4);function g(t,e,i,r){n.call(this,r=null==i&&null==r?e:r),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=r,this.edges=[],this.graphManager=t,this.rect=null!=i&&null!=e?new s(e.x,e.y,i.width,i.height):new s}for(r in g.prototype=Object.create(n.prototype),n)g[r]=n[r];g.prototype.getEdges=function(){return this.edges},g.prototype.getChild=function(){return this.child},g.prototype.getOwner=function(){return this.owner},g.prototype.getWidth=function(){return this.rect.width},g.prototype.setWidth=function(t){this.rect.width=t},g.prototype.getHeight=function(){return this.rect.height},g.prototype.setHeight=function(t){this.rect.height=t},g.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},g.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},g.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},g.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},g.prototype.getRect=function(){return this.rect},g.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},g.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},g.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},g.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},g.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},g.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},g.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},g.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";r.target!=t&&r.source!=t||e.push(r)}),e},g.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},g.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},g.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t?1:t},g.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},g.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},g.prototype.scatter=function(){var t=-a.INITIAL_WORLD_BOUNDARY,e=a.INITIAL_WORLD_BOUNDARY,i=(e=a.WORLD_CENTER_X+h.nextDouble()*(e-t)+t,t=-a.INITIAL_WORLD_BOUNDARY,a.INITIAL_WORLD_BOUNDARY);i=a.WORLD_CENTER_Y+h.nextDouble()*(i-t)+t,this.rect.x=e,this.rect.y=i},g.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";var t,e;0!=this.getChild().getNodes().length&&((e=this.getChild()).updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS)&&(t=e.getRight()-e.getLeft(),e=e.getBottom()-e.getTop(),this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>e)&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-e)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-e),this.setHeight(this.labelHeight))},g.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},g.prototype.transform=function(t){var e=((e=this.rect.x)>a.WORLD_BOUNDARY?e=a.WORLD_BOUNDARY:e<-a.WORLD_BOUNDARY&&(e=-a.WORLD_BOUNDARY),(i=this.rect.y)>a.WORLD_BOUNDARY?i=a.WORLD_BOUNDARY:i<-a.WORLD_BOUNDARY&&(i=-a.WORLD_BOUNDARY),new l(e,i)),i=t.inverseTransformPoint(e);this.setLocation(i.x,i.y)},g.prototype.getLeft=function(){return this.rect.x},g.prototype.getRight=function(){return this.rect.x+this.rect.width},g.prototype.getTop=function(){return this.rect.y},g.prototype.getBottom=function(){return this.rect.y+this.rect.height},g.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=g},function(t,e,i){function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){var r,n=i(2),o=i(10),s=i(0),a=i(6),h=i(3),l=i(1),g=i(13),u=i(12),c=i(11);function d(t,e,i){n.call(this,i),this.estimatedSize=o.MIN_VALUE,this.margin=s.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof a?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(r in d.prototype=Object.create(n.prototype),n)d[r]=n[r];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(t,e,i){if(null==e&&null==i){var r=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(-1<this.getNodes().indexOf(r))throw"Node already in graph!";return(r.owner=this).getNodes().push(r),r}if(r=t,!(-1<this.getNodes().indexOf(e)&&-1<this.getNodes().indexOf(i)))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(r.source=e,r.target=i,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),i!=e&&i.edges.push(r),r)},d.prototype.remove=function(t){var e=t;if(t instanceof h){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i,r=e.edges.slice(),n=r.length,o=0;o<n;o++)((i=r[o]).isInterGraph?this.graphManager:i.source.owner).remove(i);if(-1==(s=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(t instanceof l){if(null==(i=t))throw"Edge is null!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(null==i.source.owner||null==i.target.owner||i.source.owner!=this||i.target.owner!=this)throw"Source and/or target owner is invalid!";var s;if(e=i.source.edges.indexOf(i),t=i.target.edges.indexOf(i),!(-1<e&&-1<t))throw"Source and/or target doesn't know this edge!";if(i.source.edges.splice(e,1),i.target!=i.source&&i.target.edges.splice(t,1),-1==(s=i.source.owner.getEdges().indexOf(i)))throw"Not in owner's edge list!";i.source.owner.getEdges().splice(s,1)}},d.prototype.updateLeftTop=function(){for(var t,e=o.MAX_VALUE,i=o.MAX_VALUE,r=this.getNodes(),n=r.length,s=0;s<n;s++){var a,h=r[s];(a=h.getTop())<e&&(e=a),(a=h.getLeft())<i&&(i=a)}return e==o.MAX_VALUE?null:(t=null!=r[0].getParent().paddingLeft?r[0].getParent().paddingLeft:this.margin,this.left=i-t,this.top=e-t,new u(this.left,this.top))},d.prototype.updateBounds=function(t){for(var e,i,r=o.MAX_VALUE,n=-o.MAX_VALUE,s=o.MAX_VALUE,a=-o.MAX_VALUE,h=this.nodes,l=h.length,u=0;u<l;u++){var c=h[u];t&&null!=c.child&&c.updateBounds(),(e=c.getLeft())<r&&(r=e),n<(e=c.getRight())&&(n=e),(e=c.getTop())<s&&(s=e),a<(e=c.getBottom())&&(a=e)}var d=new g(r,s,n-r,a-s);r==o.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),i=null!=h[0].getParent().paddingLeft?h[0].getParent().paddingLeft:this.margin,this.left=d.x-i,this.right=d.x+d.width+i,this.top=d.y-i,this.bottom=d.y+d.height+i},d.calculateBounds=function(t){for(var e=o.MAX_VALUE,i=-o.MAX_VALUE,r=o.MAX_VALUE,n=-o.MAX_VALUE,s=t.length,a=0;a<s;a++){var h,l=t[a];(h=l.getLeft())<e&&(e=h),i<(h=l.getRight())&&(i=h),(h=l.getTop())<r&&(r=h),n<(h=l.getBottom())&&(n=h)}return new g(e,r,i-e,n-r)},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,r=0;r<i;r++)t+=e[r].calcEstimatedSize();return this.estimatedSize=0==t?s.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},d.prototype.updateConnected=function(){var t=this;if(0==this.nodes.length)this.isConnected=!0;else{var e,i=new c,r=new Set,n=this.nodes[0];for(n.withChildren().forEach(function(t){i.push(t),r.add(t)});0!==i.length;)for(var o,s,a=(o=(n=i.shift()).getEdges()).length,h=0;h<a;h++)null==(s=o[h].getOtherEndInGraph(n,this))||r.has(s)||s.withChildren().forEach(function(t){i.push(t),r.add(t)});this.isConnected=!1,r.size>=this.nodes.length&&(e=0,r.forEach(function(i){i.owner==t&&e++}),e==this.nodes.length)&&(this.isConnected=!0)}},t.exports=d},function(t,e,i){var r,n=i(1);function o(t){r=i(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null);return t=this.add(t,e),this.setRootGraph(t),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(-1<this.graphs.indexOf(t))throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return(t.parent=e).child=t}if(n=i,i=t,t=(r=e).getOwner(),e=n.getOwner(),null==t||t.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==e||e.getGraphManager()!=this)throw"Target not in this graph mgr!";if(t==e)return i.isInterGraph=!1,t.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,-1<this.edges.indexOf(i))throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var i,o=[],s=(o=o.concat(e.getEdges())).length,a=0;a<s;a++)i=o[a],e.remove(i);var h,l=[];for(s=(l=l.concat(e.getNodes())).length,a=0;a<s;a++)h=l[a],e.remove(h);e==this.rootGraph&&this.setRootGraph(null);var g=this.graphs.indexOf(e);this.graphs.splice(g,1),e.parent=null}else if(t instanceof n){if(null==(i=t))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";if(g=i.source.edges.indexOf(i),i.source.edges.splice(g,1),g=i.target.edges.indexOf(i),i.target.edges.splice(g,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";g=i.source.owner.getGraphManager().edges.indexOf(i),i.source.owner.getGraphManager().edges.splice(g,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,r=0;r<i;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var i=0;i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";null==(this.rootGraph=t).parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,r=t.getOwner();null!=(i=r.getParent());){if(i==e)return!0;if(null==(r=i.getOwner()))break}for(r=e.getOwner();null!=(i=r.getParent());){if(i==t)return!0;if(null==(r=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,r,n,o=this.getAllEdges(),s=o.length,a=0;a<s;a++)if(e=(t=o[a]).source,i=t.target,t.lca=null,(t.sourceInLca=e)==(t.targetInLca=i))t.lca=e.getOwner();else{for(r=e.getOwner();null==t.lca;){for(n=(t.targetInLca=i).getOwner();null==t.lca;){if(n==r){t.lca=n;break}if(n==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=n.getParent(),n=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var r=e.getOwner();null!=r;){if(r==i)return r;r=r.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){null==t&&null==e&&(t=this.rootGraph,e=1);for(var i,r=t.getNodes(),n=r.length,o=0;o<n;o++)(i=r[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,i=0;i<e;i++)if(t=this.edges[i],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,i){var r,n=i(0);function o(){}for(r in n)o[r]=n[r];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT=3*(o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100),o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=o},function(t,e,i){var r=i(12);function n(){}n.calcSeparationAmount=function(t,e,i,r){if(!t.intersects(e))throw"assert failed";var n=new Array(2),o=(this.decideDirectionsForOverlappingNodes(t,e,n),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom())),Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX())));e=(o=e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()?1:o)*i[0],t=i[1]/o,i[0]<t?t=i[0]:e=i[1],i[0]=-1*n[0]*(t/2+r),i[1]=-1*n[1]*(e/2+r)},n.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(t,e,i){var r=t.getCenterX(),n=t.getCenterY(),o=e.getCenterX(),s=e.getCenterY();if(t.intersects(e))return i[0]=r,i[1]=n,i[2]=o,i[3]=s,!0;var a=t.getX(),h=t.getY(),l=t.getRight(),g=t.getX(),u=t.getBottom(),c=t.getRight(),d=t.getWidthHalf(),p=t.getHeightHalf(),f=e.getX(),y=e.getY(),E=e.getRight(),A=e.getX(),N=e.getBottom(),T=e.getRight(),L=e.getWidthHalf(),v=e.getHeightHalf(),_=!1,m=!1;if(r===o){if(s<n)return i[0]=r,i[1]=h,i[2]=o,i[3]=N,!1;n<s&&(i[0]=r,i[1]=u,i[2]=o,i[3]=y)}else if(n===s){if(o<r)return i[0]=a,i[1]=n,i[2]=E,i[3]=s,!1;r<o&&(i[0]=l,i[1]=n,i[2]=f,i[3]=s)}else{t=t.height/t.width,e=e.height/e.width;var O,I=(s-n)/(o-r),D=void 0,w=void 0,R=void 0;if(-t==I?(o<r?(i[0]=g,i[1]=u):(i[0]=l,i[1]=h),_=!0):t==I&&(o<r?(i[0]=a,i[1]=h):(i[0]=c,i[1]=u),_=!0),-e==I?(r<o?(i[2]=A,i[3]=N):(i[2]=E,i[3]=y),m=!0):e==I&&(r<o?(i[2]=f,i[3]=y):(i[2]=T,i[3]=N),m=!0),_&&m)return!1;if(O=o<r?s<n?(D=this.getCardinalDirection(t,I,4),this.getCardinalDirection(e,I,2)):(D=this.getCardinalDirection(-t,I,3),this.getCardinalDirection(-e,I,1)):s<n?(D=this.getCardinalDirection(-t,I,1),this.getCardinalDirection(-e,I,3)):(D=this.getCardinalDirection(t,I,2),this.getCardinalDirection(e,I,4)),!_)switch(D){case 1:w=h,i[0]=r+-p/I,i[1]=w;break;case 2:w=n+d*I,i[0]=c,i[1]=w;break;case 3:w=u,i[0]=r+p/I,i[1]=w;break;case 4:w=n+-d*I,i[0]=g,i[1]=w}if(!m)switch(O){case 1:R=y,i[2]=o+-v/I,i[3]=R;break;case 2:R=s+L*I,i[2]=T,i[3]=R;break;case 3:R=N,i[2]=o+v/I,i[3]=R;break;case 4:R=s+-L*I,i[2]=A,i[3]=R}}return!1},n.getCardinalDirection=function(t,e,i){return e<t?i:1+i%4},n.getIntersection=function(t,e,i,n){var o,s,a,h,l,g,u,c,d,p,f;return null==n?this.getIntersection2(t,e,i):(o=t.x,s=e.x,p=u=void 0,0==(f=(l=(e=e.y)-(t=t.y))*(d=(a=i.x)-(h=n.x))-(c=(n=n.y)-(i=i.y))*(g=o-s))?null:new r((g*(p=h*i-a*n)-d*(u=s*t-o*e))/f,(c*u-l*p)/f))},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i<t?n+=Math.PI:r<e&&(n+=this.TWO_PI)):n=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,n},n.doIntersect=function(t,e,i,r){var n=t.x,o=(t=t.y,e.x),s=(e=e.y,i.x),a=(i=i.y,r.x),h=(o-n)*((r=r.y)-i)-(a-s)*(e-t);return 0!=h&&(e=((t-e)*(a-n)+(o-n)*(r-t))/h,0<(o=((r-i)*(a-n)+(s-a)*(r-t))/h))&&o<1&&0<e&&e<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){function r(){}r.sign=function(t){return 0<t?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,t.exports=r},function(t,e,i){function r(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t){return{value:t,next:null,prev:null}}function o(t,e,i,r){return null!==t?t.next=e:r.head=e,null!==i?i.prev=e:r.tail=e,e.prev=t,e.next=i,r.length++,e}function s(t,e){var i=t.prev,r=t.next;return null!==i?i.next=r:e.head=r,null!==r?r.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t}function a(t){var e=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.length=0,this.head=null,(this.tail=null)!=t&&t.forEach(function(t){return e.push(t)})}(function(t,e){e&&r(t.prototype,e)})(a,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,n(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,n(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,n(t),null,this)}},{key:"unshift",value:function(t){return o(null,n(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,r=this.head;i<t;)r=r.next,i++;r.value=e}}}]),t.exports=a},function(t,e,i){function r(t,e,i){this.x=null,(this.y=null)==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(this.x=(i=t).x,this.y=i.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?this.setLocation((i=t).x,i.y):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){return"Point"==t.constructor.name?this.x==t.x&&this.y==t.y:this==t},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,i){function r(t,e,i,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=r&&(this.x=t,this.y=e,this.width=i,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,i){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function n(){}n.lastID=0,n.createID=function(t){return n.isPrimitive(t)?t:(null==t.uniqueID&&(t.uniqueID=n.getString(),n.lastID++),t.uniqueID)},n.getString=function(t){return"Object#"+(null==t?n.lastID:t)},n.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=n},function(t,e,i){function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var n=i(0),o=i(6),s=i(3),a=i(1),h=i(5),l=i(4),g=i(17),u=i(27);function c(t){u.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}c.RANDOM_SEED=1,(c.prototype=Object.create(u.prototype)).getGraphManager=function(){return this.graphManager},c.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},c.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},c.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},c.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t},c.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},c.prototype.newNode=function(t){return new s(this.graphManager,t)},c.prototype.newEdge=function(t){return new a(null,null,t)},c.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},c.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(t&&!this.isSubLayout&&this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},c.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},c.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var i=this.graphManager.getRoot().getNodes();for(e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},c.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof s){var e=t;if(null!=e.getChild())for(var i=e.getChild().getNodes(),r=0;r<i.length;r++)update(i[r]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else t instanceof a?null!=t.vGraphObject&&t.vGraphObject.update(t):t instanceof h&&null!=t.vGraphObject&&t.vGraphObject.update(t)},c.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},c.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new g,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var r=this.getAllNodes(),n=0;n<r.length;n++)r[n].transform(e)}}},c.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,r=t.getNodes(),n=0;n<r.length;n++)null==(i=(e=r[n]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},c.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),n=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(n=!1);if(n)for(var s=new Set,a=[],h=new Map,l=(l=[]).concat(i);0<l.length&&e;){for(a.push(l[0]);0<a.length&&e;){var g=a[0],u=(a.splice(0,1),s.add(g),g.getEdges());for(o=0;o<u.length;o++){var c=u[o].getOtherEnd(g);if(h.get(g)!=c){if(s.has(c)){e=!1;break}a.push(c),h.set(c,g)}}}if(e){var d=[].concat(r(s));for(t.push(d),o=0;o<d.length;o++){var p=d[o];-1<(p=l.indexOf(p))&&l.splice(p,1)}s=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n<t.bendpoints.length;n++){var o=this.newNode(null),s=(o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o),this.newEdge(null));this.graphManager.add(s,i,o),e.add(o),i=o}return s=this.newEdge(null),this.graphManager.add(s,i,t.target),this.edgeToDummyNodes.set(t,e),(t.isInterGraph()?this.graphManager:r).remove(t),e},c.prototype.createBendpointsFromDummyNodes=function(){var t=(t=[]).concat(this.graphManager.getAllEdges());t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(0<i.bendpoints.length){for(var n=this.edgeToDummyNodes.get(i),o=0;o<n.length;o++){var s=n[o],a=new l(s.getCenterX(),s.getCenterY()),h=i.bendpoints.get(o);h.x=a.x,h.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},c.transform=function(t,e,i,r){var n,o;return null!=i&&null!=r?(n=e,t<=50?n-=(e-e/i)/50*(50-t):n+=(e*r-e)/50*(t-50),n):(i=t<=50?(o=9*e/500,e/10):(o=9*e/50,-8*e),o*t+i)},c.findCenterOfTree=function(t){var e=(e=[]).concat(t),i=[],r=new Map,n=!1,o=null;1!=e.length&&2!=e.length||(n=!0,o=e[0]);for(var s=0;s<e.length;s++){var a=(l=e[s]).getNeighborsList().size;r.set(l,l.getNeighborsList().size),1==a&&i.push(l)}for(h=(h=[]).concat(i);!n;){[].concat(h);var h=[];for(s=0;s<e.length;s++){var l=e[s],g=e.indexOf(l);0<=g&&e.splice(g,1),l.getNeighborsList().forEach(function(t){var e;i.indexOf(t)<0&&(1==(e=r.get(t)-1)&&h.push(t),r.set(t,e))})}i=i.concat(h),1!=e.length&&2!=e.length||(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return(r.x=1e4*Math.sin(r.seed++))-Math.floor(r.x)},t.exports=r},function(t,e,i){var r=i(4);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i?this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i:e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i?this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i:e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i?this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i:e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i?this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i:e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){var r,n=i(15),o=i(7),s=i(0),a=i(8),h=i(9);function l(){n.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.springConstant=o.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=o.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}for(r in l.prototype=Object.create(n.prototype),n)l[r]=n[r];l.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,n,a=this.getGraphManager().getAllEdges(),h=0;h<a.length;h++)(t=a[h]).idealLength=this.idealEdgeLength,t.isInterGraph&&(e=t.getSource(),i=t.getTarget(),r=t.getSourceInLca().getEstimatedSize(),n=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=r+n-2*s.SIMPLE_NODE_SIZE),r=t.getLca().getInclusionTreeDepth(),t.idealLength+=o.DEFAULT_EDGE_LENGTH*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(e.getInclusionTreeDepth()+i.getInclusionTreeDepth()-2*r))},l.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},l.prototype.calcRepulsionForces=function(){var t,e,i,r,n,s=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),n=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,n,s,a),n.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)r=h[e],i.getOwner()==r.getOwner()&&this.calcRepulsionForce(i,r)},l.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},l.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},l.prototype.calcSpringForce=function(t,e){var i,r,n=t.getSource(),o=t.getTarget();if(this.uniformLeafNodeSizes&&null==n.getChild()&&null==o.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(r=(e=this.springConstant*(i-e))*(t.lengthX/i),t=t.lengthY/i*e,n.springForceX+=r,n.springForceY+=t,o.springForceX-=r,o.springForceY-=t)},l.prototype.calcRepulsionForce=function(t,e){var i,r,n,s=t.getRect(),l=e.getRect(),g=new Array(2),u=new Array(4);s.intersects(l)?(a.calcSeparationAmount(s,l,g,o.DEFAULT_EDGE_LENGTH/2),r=2*g[0],n=2*g[1],g=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren),t.repulsionForceX-=g*r,t.repulsionForceY-=g*n,e.repulsionForceX+=g*r,e.repulsionForceY+=g*n):(g=this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=l.getCenterX()-s.getCenterX(),l.getCenterY()-s.getCenterY()):(a.getIntersection(s,l,u),i=u[2]-u[0],u[3]-u[1]),s=(i=Math.abs(i)<o.MIN_REPULSION_DIST?h.sign(i)*o.MIN_REPULSION_DIST:i)*i+(g=Math.abs(g)<o.MIN_REPULSION_DIST?h.sign(g)*o.MIN_REPULSION_DIST:g)*g,l=Math.sqrt(s),n=(u=this.repulsionConstant*t.noOfChildren*e.noOfChildren/s)*g/l,t.repulsionForceX-=r=u*i/l,t.repulsionForceY-=n,e.repulsionForceX+=r,e.repulsionForceY+=n)},l.prototype.calcGravitationalForce=function(t){var e,i=t.getOwner(),r=(i.getRight()+i.getLeft())/2,n=(i.getTop()+i.getBottom())/2,o=(r=t.getCenterX()-r,n=t.getCenterY()-n,Math.abs(r)+t.getWidth()/2),s=Math.abs(n)+t.getHeight()/2;t.getOwner()==this.graphManager.getRoot()?((e=i.getEstimatedSize()*this.gravityRangeFactor)<o||e<s)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*n):((e=i.getEstimatedSize()*this.compoundGravityRangeFactor)<o||e<s)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*n*this.compoundGravityConstant)},l.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},l.prototype.calcGrid=function(t){for(var e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange)),r=new Array(e),n=0;n<e;n++)r[n]=new Array(i);for(n=0;n<e;n++)for(var o=0;o<i;o++)r[n][o]=new Array;return r},l.prototype.addNodeToGrid=function(t,e,i){for(var r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),n=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),s=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange)),a=r;a<=n;a++)for(var h=o;h<=s;h++)this.grid[a][h].push(t),t.setGridCoordinates(r,n,o,s)},l.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(t,e,i,r){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&i||r){for(var n=new Set,s=(t.surrounding=new Array,this.grid),a=t.startX-1;a<t.finishX+2;a++)for(var h=t.startY-1;h<t.finishY+2;h++)if(!(a<0||h<0||a>=s.length||h>=s[0].length))for(var l=0;l<s[a][h].length;l++){var g,u,c=s[a][h][l];t.getOwner()!=c.getOwner()||t==c||e.has(c)||n.has(c)||(g=Math.abs(t.getCenterX()-c.getCenterX())-(t.getWidth()/2+c.getWidth()/2),u=Math.abs(t.getCenterY()-c.getCenterY())-(t.getHeight()/2+c.getHeight()/2),g<=this.repulsionRange&&u<=this.repulsionRange&&n.add(c))}t.surrounding=[].concat((t=>{if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)})(n))}for(a=0;a<t.surrounding.length;a++)this.calcRepulsionForce(t,t.surrounding[a])},l.prototype.calcRepulsionRange=function(){return 0},t.exports=l},function(t,e,i){var r,n=i(1),o=i(7);function s(t,e,i){n.call(this,t,e,i),this.idealLength=o.DEFAULT_EDGE_LENGTH}for(r in s.prototype=Object.create(n.prototype),n)s[r]=n[r];t.exports=s},function(t,e,i){var r,n=i(3);function o(t,e,i,r){n.call(this,t,e,i,r),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(r in o.prototype=Object.create(n.prototype),n)o[r]=n[r];o.prototype.setGridCoordinates=function(t,e,i,r){this.startX=t,this.finishX=e,this.startY=i,this.finishY=r},t.exports=o},function(t,e,i){function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,i){var r=i(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(t,e){var i=r.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},n.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},n.prototype.get=function(t){return t=r.createID(t),this.map[t]},n.prototype.keySet=function(){return this.keys},t.exports=n},function(t,e,i){var r=i(14);function n(){this.set={}}n.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},n.prototype.remove=function(t){delete this.set[r.createID(t)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(t){return this.set[r.createID(t)]==t},n.prototype.isEmpty=function(){return 0===this.size()},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,r=0;r<i;r++)t.push(this.set[e[r]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.add(r)}},t.exports=n},function(t,e,i){function r(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=i(11);function o(t,e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");null===e&&void 0===e||(this.compareFunction=this._defaultCompareFunction),e=void 0,e=t instanceof n?t.size():t.length,this._quicksort(t,0,e-1)}(function(t,e,i){e&&r(t.prototype,e),i&&r(t,i)})(o,[{key:"_quicksort",value:function(t,e,i){var r;e<i&&(r=this._partition(t,e,i),this._quicksort(t,e,r),this._quicksort(t,r+1,i))}},{key:"_partition",value:function(t,e,i){for(var r=this._get(t,e),n=e,o=i;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,n),r);)n++;if(!(n<o))return o;this._swap(t,n,o),n++,o--}}},{key:"_get",value:function(t,e){return t instanceof n?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof n?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var r=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,r)}},{key:"_defaultCompareFunction",value:function(t,e){return t<e}}]),i=o,t.exports=i},function(t,e,i){function r(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(t,e){e&&r(t.prototype,e)}(o,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var r=1;r<this.jMax;r++){var n=[this.sequence1[i-1]===this.sequence2[r-1]?this.grid[i-1][r-1]+this.match_score:this.grid[i-1][r-1]+this.mismatch_penalty,this.grid[i-1][r]+this.gap_penalty,this.grid[i][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(n);this.grid[i][r]=n[o[0]],this.tracebackGrid[i][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],r=-1;-1!==(r=t.indexOf(e,r+1));)i.push(r);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]);var n=o;function o(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:-1,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.sequence1=t,this.sequence2=e,this.match_score=i,this.mismatch_penalty=r,this.gap_penalty=n,this.iMax=t.length+1,this.jMax=e.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}t.exports=n},function(t,e,i){function r(){}r.FDLayout=i(18),r.FDLayoutConstants=i(7),r.FDLayoutEdge=i(19),r.FDLayoutNode=i(20),r.DimensionD=i(21),r.HashMap=i(22),r.HashSet=i(23),r.IGeometry=i(8),r.IMath=i(9),r.Integer=i(10),r.Point=i(12),r.PointD=i(4),r.RandomSeed=i(16),r.RectangleD=i(13),r.Transform=i(17),r.UniqueIDGeneretor=i(14),r.Quicksort=i(24),r.LinkedList=i(11),r.LGraphObject=i(2),r.LGraph=i(5),r.LEdge=i(1),r.LGraphManager=i(6),r.LNode=i(3),r.Layout=i(15),r.LayoutConstants=i(0),r.NeedlemanWunsch=i(25),t.exports=r},function(t,e,i){function r(){this.listeners=[]}var n=r.prototype;n.addListener=function(t,e){this.listeners.push({event:t,callback:e})},n.removeListener=function(t,e){for(var i=this.listeners.length;0<=i;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];t===r.event&&r.callback(e)}},t.exports=r}],i={},t.m=e,t.c=i,t.i=function(t){return t},t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=26);function t(r){var n;return(i[r]||(n=i[r]={i:r,l:!1,exports:{}},e[r].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}var e,i},c.exports=t()),c.exports}())),u.exports}(()=>{var t;t=function(t){return i=[function(e,i){e.exports=t},function(t,e,i){var r=i(0).layoutBase.LayoutConstants,n=i(0).layoutBase.FDLayoutConstants,o=i(0).CoSEConstants,s=i(0).CoSELayout,a=i(0).CoSENode,h=i(0).layoutBase.PointD,l=i(0).layoutBase.DimensionD,g={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function u(t){this.options=((t,e)=>{var i,r={};for(i in t)r[i]=t[i];for(i in e)r[i]=e[i];return r})(g,t),function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=n.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=n.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=n.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=n.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=n.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=n.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=n.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=n.ANIMATE=r.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal}(this.options)}function c(t){t("layout","cose-bilkent",u)}u.prototype.run=function(){var t,e,i=this.options,r=(this.idToLNode={},this.layout=new s),n=this,o=(n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this}),r.newGraphManager()),a=(this.gm=o,this.options.eles.nodes()),h=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(a),r);for(var l=0;l<h.length;l++){var g=h[l],u=this.idToLNode[g.data("source")],c=this.idToLNode[g.data("target")];u!==c&&0==u.getEdgesBetween(c).length&&(o.add(r.newEdge(),u,c).id=g.id())}function d(){for(var o,s,a=function(){i.fit&&i.cy.fit(i.eles,i.padding),t||(t=!0,n.cy.one("layoutready",i.ready),n.cy.trigger({type:"layoutready",layout:n}))},h=n.options.refresh,l=0;l<h&&!o;l++)o=n.stopped||n.layout.tick();o?(r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,n.options.eles.nodes().positions(p),a(),n.cy.one("layoutstop",n.options.stop),n.cy.trigger({type:"layoutstop",layout:n}),e&&cancelAnimationFrame(e),t=!1):(s=n.layout.getPositionsData(),i.eles.nodes().positions(function(t,e){if(!(t="number"==typeof t?e:t).isParent()){for(var i=t.id(),r=s[i],n=t;null==r&&(r=s[n.data("parent")]||s["DummyCompound_"+n.data("parent")],s[i]=r,null!=(n=n.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:t.position("x"),y:t.position("y")}}}),a(),e=requestAnimationFrame(d))}var p=function(t,e){return e=(t="number"==typeof t?e:t).data("id"),{x:(t=n.idToLNode[e]).getRect().getCenterX(),y:t.getRect().getCenterY()}};return r.addListener("layoutstarted",function(){"during"===n.options.animate&&(e=requestAnimationFrame(d))}),r.runLayout(),"during"!==this.options.animate&&(n.options.eles.nodes().not(":parent").layoutPositions(n,n.options,p),t=!1),this},u.prototype.getTopMostNodes=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;return t.filter(function(t,i){for(var r=(t="number"==typeof t?i:t).parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0})},u.prototype.processChildrenList=function(t,e,i){for(var r=e.length,n=0;n<r;n++){var o,s,g,u=e[n],c=u.children(),d=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});(d=null!=u.outerWidth()&&null!=u.outerHeight()?t.add(new a(i.graphManager,new h(u.position("x")-d.w/2,u.position("y")-d.h/2),new l(parseFloat(d.w),parseFloat(d.h)))):t.add(new a(this.graphManager))).id=u.data("id"),d.paddingLeft=parseInt(u.css("padding")),d.paddingTop=parseInt(u.css("padding")),d.paddingRight=parseInt(u.css("padding")),d.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()&&(g=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,o=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,s=u.css("text-halign"),d.labelWidth=g,d.labelHeight=o,d.labelPos=s),this.idToLNode[u.data("id")]=d,isNaN(d.rect.x)&&(d.rect.x=0),isNaN(d.rect.y)&&(d.rect.y=0),null!=c&&0<c.length&&(g=i.getGraphManager().add(i.newGraph(),d),this.processChildrenList(g,c,i))}},u.prototype.stop=function(){return this.stopped=!0,this},"undefined"!=typeof cytoscape&&c(cytoscape),t.exports=c}],r={},e.m=i,e.c=r,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1);function e(t){var n;return(r[t]||(n=r[t]={i:t,l:!1,exports:{}},i[t].call(n.exports,n,n.exports,e),n.l=!0,n)).exports}var i,r},g.exports=t(d())})();var p=a(g.exports);function f(t,e){t.forEach(t=>{let i={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:t.padding??0};Object.keys(t).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(i[e]=t[e])}),e.add({group:"nodes",data:i,position:{x:t.x??0,y:t.y??0}})})}function y(t,e){t.forEach(t=>{let i={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach(e=>{["id","start","end"].includes(e)||(i[e]=t[e])}),e.add({group:"edges",data:i})})}function E(t){return new Promise(e=>{var i=r("body").append("div").attr("id","cy").attr("style","display:none");let s=o({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),f(t.nodes,s),y(t.edges,s),s.nodes().forEach(function(t){t.layoutDimensions=()=>{var e=t.data();return{w:e.width,h:e.height}}}),s.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),s.ready(t=>{n.info("Cytoscape ready",t),e(s)})})}function A(t){return t.nodes().map(t=>{let e=t.data();t=t.position();let i={id:e.id,x:t.x,y:t.y};return Object.keys(e).forEach(t=>{"id"!==t&&(i[t]=e[t])}),i})}function N(t){return t.edges().map(t=>{let e=t.data();t=t._private.rscratch;let i={id:e.id,source:e.source,target:e.target,startX:t.startX,startY:t.startY,midX:t.midX,midY:t.midY,endX:t.endX,endY:t.endY};return Object.keys(e).forEach(t=>{["id","source","target"].includes(t)||(i[t]=e[t])}),i})}async function T(t,e){n.debug("Starting cose-bilkent layout algorithm");try{L(t);var i=await E(t),r=A(i),o=N(i);return n.debug(`Layout completed: ${r.length} nodes, ${o.length} edges`),{nodes:r,edges:o}}catch(t){throw n.error("Error in cose-bilkent layout algorithm:",t),t}}function L(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(Array.isArray(t.edges))return!0;throw new Error("Edges array is required in layout data")}o.use(p),i(f,"addNodes"),i(y,"addEdges"),i(E,"createCytoscapeInstance"),i(A,"extractPositionedNodes"),i(N,"extractPositionedEdges"),i(T,"executeCoseBilkentLayout"),i(L,"validateLayoutData");var v=i(async(t,e,{insertCluster:i,insertEdge:r,insertEdgeLabel:n,insertMarkers:o,insertNode:s,log:a,positionEdgeLabel:h},{})=>{let l={},g={};o(e=e.select("g"),t.markers,t.type,t.diagramId);let u=e.insert("g").attr("class","subgraphs"),c=e.insert("g").attr("class","edgePaths"),d=e.insert("g").attr("class","edgeLabels"),p=e.insert("g").attr("class","nodes"),f=(a.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async e=>{var r,n,o;e.isGroup?(r={...e},g[e.id]=r,l[e.id]=r,await i(u,e)):(r={...e},l[e.id]=r,o=(n=await s(p,e,{config:t.config,dir:t.direction||"TB"})).node().getBBox(),r.width=o.width,r.height=o.height,r.domId=n,a.debug(`Node ${e.id} dimensions: ${o.width}x`+o.height))})),a.debug("Running cose-bilkent layout algorithm"),await T({...t,nodes:t.nodes.map(t=>{var e=l[t.id];return{...t,width:e.width,height:e.height}})},t.config));a.debug("Positioning nodes based on layout results"),f.nodes.forEach(t=>{var e=l[t.id];e?.domId&&(e.domId.attr("transform",`translate(${t.x}, ${t.y})`),e.x=t.x,e.y=t.y,a.debug(`Positioned node ${e.id} at center (${t.x}, ${t.y})`))}),f.edges.forEach(e=>{var i=t.edges.find(t=>t.id===e.id);i&&(i.points=[{x:e.startX,y:e.startY},{x:e.midX,y:e.midY},{x:e.endX,y:e.endY}])}),a.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async e=>{await n(d,e);var i,o,s=l[e.start??""],u=l[e.end??""];s&&u&&((i=f.edges.find(t=>t.id===e.id))?(a.debug("APA01 positionedEdge",i),i={...e},o=r(c,i,g,t.type,s,u,t.diagramId),h(i,o)):(i={...e,points:[{x:s.x||0,y:s.y||0},{x:u.x||0,y:u.y||0}]},o=r(c,i,g,t.type,s,u,t.diagramId),h(i,o)))})),a.debug("Cose-bilkent rendering completed")},"render"),_=v;export{_ as render};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r;(e=self.document)&&!e.getElementById("livereloadscript")&&((r=e.createElement("script")).async=1,r.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",r.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(r));export{C as CynefinModule,u as createCynefinServices}from"./mermaid-parser.core-6df0beec.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as CynefinModule,u as createCynefinServices}from"./mermaid-parser.core-d8d1c2b9.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t}from"./chunk-JWPE2WC7-e2521b1e.js";import{_ as e,s as n,g as a,n as r,o as i,b as o,c as s,l as c,F as l,E as d,G as f,v as p,K as m,k as y,L as x}from"./mermaid.core-8797d6a9.js";import{v as h}from"./mermaid-parser.core-d8d1c2b9.js";import"./web-c3ed22c4.js";var g=e((()=>({domains:new Map,transitions:[]})),"createDefaultData"),u=g(),$={getDomains:e((()=>u.domains),"getDomains"),getTransitions:e((()=>u.transitions),"getTransitions"),setDomains:e((t=>{if(t)for(const a of t){var e=a.domain,n=(a.items??[]).map((t=>({label:t.label})));u.domains.set(e,{name:e,items:n})}}),"setDomains"),setTransitions:e((t=>{t&&(u.transitions=t.filter((t=>t.from!==t.to||(c.warn(`Cynefin: self-loop transition on domain "${t.from}" is not meaningful and will be skipped.`),!1))).map((t=>({from:t.from,to:t.to,label:t.label||void 0}))))}),"setTransitions"),getConfig:e((()=>l({...d.cynefin,...f().cynefin})),"getConfig"),clear:e((()=>{p(),u=g()}),"clear"),setAccTitle:n,getAccTitle:a,setDiagramTitle:r,getDiagramTitle:i,getAccDescription:o,setAccDescription:s},b=e((e=>{t(e,$),$.setDomains(e.domains),$.setTransitions(e.transitions)}),"populate"),w={parse:e((async t=>{t=await h("cynefin",t),c.debug(t),b(t)}),"parse")};function v(t){return t=t+1831565813|0,t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}function C(t){let e=0;for(let n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}function k(t,e){return"number"==typeof t&&Number.isFinite(t)&&0!==t?t:C(e)}function D(t,e,n,a){var r=t/2,i=a??.015*t,o=e/7,s=[];for(let t=0;t<=7;t++){var c=v(n+17*t)*i*2-i;s.push({x:r+c,y:t*o})}let l=`M${s[0].x},`+s[0].y;for(let t=0;t<s.length-1;t++){var d=s[t],f=s[t+1],p=(d.y+f.y)/2,m=1.5*i*(t%2==0?1:-1)*v(n+31*t+7);l+=` C${d=d.x+m},${p} ${m=f.x-m},${p} ${f.x},`+f.y}return l}function B(t,e,n,a){var r=e/2,i=a??.015*e,o=t/7,s=[];for(let t=0;t<=7;t++){var c=v(n+23*t)*i*2-i;s.push({x:t*o,y:r+c})}let l=`M${s[0].x},`+s[0].y;for(let t=0;t<s.length-1;t++){var d=s[t],f=s[t+1],p=(d.x+f.x)/2,m=1.5*i*(t%2==0?1:-1)*v(n+37*t+11);l+=` C${p},${d=d.y+m} ${p},${m=f.y-m} ${f.x},`+f.y}return l}function A(t,e){var n=t/2,a=.5*e;return[`M${n},`+a,`C${n+(t=.03*t)},`+(a+.2*(e-a)),n-1.5*t+","+(a+.55*(e-a)),n+.5*t+","+(a+.75*(e-a)),`C${n-t},`+(a+.85*(e-a)),n+.3*t+","+(a+.95*(e-a)),n+","+e].join(" ")}function T(t,e,n,a){return[`M${t-n},`+e,`A${n},${a} 0 1,1 ${t+n},`+e,`A${n},${a} 0 1,1 ${t-n},`+e,"Z"].join(" ")}e(v,"seededRandom"),e(C,"hashString"),e(k,"resolveSeed"),e(D,"generateFoldPath"),e(B,"generateHorizontalBoundary"),e(A,"generateCliffPath"),e(T,"generateConfusionPath");var S={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},z=e(((t,e)=>({complex:{cx:(t/=2)/2,cy:(e/=2)/2,x:0,y:0,w:t,h:e},complicated:{cx:t+t/2,cy:e/2,x:t,y:0,w:t,h:e},chaotic:{cx:t/2,cy:e+e/2,x:0,y:e,w:t,h:e},clear:{cx:t+t/2,cy:e+e/2,x:t,y:e,w:t,h:e},confusion:{cx:t,cy:e,x:.7*t,y:.7*e,w:.6*t,h:.6*e}})),"getDomainLayouts"),L=e((()=>{var t=x(),e=f();return l(t,e.themeVariables).cynefin}),"getCynefinDomainColors"),M={draw:e(((t,e,n,a)=>{var r=(a=a.db).getDomains(),i=a.getTransitions(),o=a.getDiagramTitle(),s=a.getAccTitle(),l=a.getAccDescription(),d=(a=a.getConfig(),L()),f=(c.debug("Rendering Cynefin diagram"),a.width),p=a.height,x=a.padding,h=a.showDomainDescriptions,g=a.boundaryAmplitude,u=f+2*x,$=p+2*x;const b={complex:d.complexBg,complicated:d.complicatedBg,clear:d.clearBg,chaotic:d.chaoticBg,confusion:d.confusionBg};d=m(e),y(d,$,u,a.useMaxWidth??!0),d.attr("viewBox",`0 0 ${u} `+$),s&&d.append("title").text(s),l&&d.append("desc").text(l),u=d.append("g").attr("transform",`translate(${x}, ${x})`);const w=z(f,p);$=k(a.seed,e);var v=u.append("g").attr("class","cynefin-backgrounds");s=["complex","complicated","chaotic","clear"];for(const t of s){var C=w[t];v.append("rect").attr("class","cynefinDomain").attr("x",C.x).attr("y",C.y).attr("width",C.w).attr("height",C.h).attr("fill",b[t]).attr("fill-opacity",.4).attr("stroke","none")}(l=u.append("g").attr("class","cynefin-boundaries")).append("path").attr("class","cynefinBoundary").attr("d",D(f,p,$,g)).attr("fill","none"),l.append("path").attr("class","cynefinBoundary").attr("d",B(f,p,$+100,g)).attr("fill","none"),l.append("path").attr("class","cynefinCliff").attr("d",A(f,p)).attr("fill","none"),a=.15*f,$=.15*p;var M=(u.append("path").attr("class","cynefinConfusion").attr("d",T(f/2,p/2,a,$)).attr("fill",b.confusion).attr("fill-opacity",.5),u.append("g").attr("class","cynefin-labels"));for(const t of s){var P=w[t];M.append("text").attr("class","cynefinDomainLabel").attr("x",P.cx).attr("y",h?P.cy-30:P.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(t.charAt(0).toUpperCase()+t.slice(1))}if(M.append("text").attr("class","cynefinDomainLabel").attr("x",f/2).attr("y",h?p/2-10:p/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){var F=u.append("g").attr("class","cynefin-subtitles");for(const t of s){var I=w[t],W=S[t];F.append("text").attr("class","cynefinSubtitle").attr("x",I.cx).attr("y",I.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W.model),F.append("text").attr("class","cynefinSubtitle").attr("x",I.cx).attr("y",I.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W.practice)}F.append("text").attr("class","cynefinSubtitle").attr("x",f/2).attr("y",p/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(S.confusion.practice)}const j=u.append("g").attr("class","cynefin-items");for(const t of["complex","complicated","chaotic","clear","confusion"]){if((E=r.get(t))&&0!==E.items.length){const e=w[t];var R="confusion"===t;let n,a=E.items,r=0;if(R&&E.items.length>3&&(r=E.items.length-3,a=E.items.slice(0,3)),n=R?e.cy+(h?22:14):e.cy+(h?25:15),[...a].forEach(((a,r)=>{r=n+30*r;var i=j.append("g"),o=i.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(a.label);let s=7*a.label.length;a=(s=(a=o.node())&&"function"==typeof a.getBBox&&0<(a=a.getBBox()).width?a.width:s)+20;var c=e.cx-a/2;i.attr("transform",`translate(${c}, ${r})`),i.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",a).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.95),o.attr("x",a/2).attr("y",13)})),0<r){var E=n+30*a.length,H=(R=`+${r} more`,j.append("g")),G=H.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(R);let i=7*R.length;R=(i=(R=G.node())&&"function"==typeof R.getBBox&&0<(R=R.getBBox()).width?R.width:i)+20;var N=e.cx-R/2;H.attr("transform",`translate(${N}, ${E})`),H.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",R).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.6),G.attr("x",R/2).attr("y",13)}}}if(0<i.length){g=d.select("defs").empty()?d.append("defs"):d.select("defs");const t="cynefin-arrow-"+e,n=(g.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead"),u.append("g").attr("class","cynefin-arrows"));i.forEach((e=>{var a,r,i,o,s,l,d,f=w[e.from],p=w[e.to];f&&p&&(e.from===e.to?c.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`):(a=f.cx,f=f.cy,r=p.cx,d=(f+(p=p.cy))/2,i=r-a,l=(a+r)/2+-(o=p-f)/(o=Math.sqrt(i*i+o*o))*(s=.15*o),d+=i/o*s,n.append("path").attr("class","cynefinArrowLine").attr("d",`M${a},${f} Q${l},${d} ${r},`+p).attr("fill","none").attr("marker-end",`url(#${t})`),e.label&&n.append("text").attr("class","cynefinArrowLabel").attr("x",l).attr("y",d-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(e.label)))}))}o&&u.append("text").attr("class","cynefinTitle").attr("x",f/2).attr("y",-x/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o)}),"draw")},P=e((()=>{var t=x(),e=f();return l(t,e.themeVariables).cynefin}),"getCynefinTheme"),F=e((()=>{var t=P();return`\n\t.cynefinDomain {\n\t\tstroke: none;\n\t}\n\t.cynefinDomainLabel {\n\t\tfont-size: ${t.domainFontSize}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t.cynefinSubtitle {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t\tfont-style: italic;\n\t}\n\t.cynefinItem {\n\t\tfill-opacity: 0.95;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t}\n\t.cynefinItemText {\n\t\tfont-size: ${t.itemFontSize}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinItemOverflow {\n\t\tfill-opacity: 0.6;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t\tstroke-dasharray: 3 2;\n\t}\n\t.cynefinBoundary {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: ${t.boundaryWidth};\n\t\tstroke-dasharray: 6 3;\n\t}\n\t.cynefinCliff {\n\t\tstroke: ${t.cliffColor};\n\t\tstroke-width: ${t.cliffWidth};\n\t}\n\t.cynefinConfusion {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1.5;\n\t\tstroke-dasharray: 4 2;\n\t}\n\t.cynefinArrowLine {\n\t\tstroke: ${t.arrowColor};\n\t\tstroke-width: ${t.arrowWidth};\n\t\tfill: none;\n\t}\n\t.cynefinArrowHead {\n\t\tfill: ${t.arrowColor};\n\t\tstroke: none;\n\t}\n\t.cynefinArrowLabel {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinTitle {\n\t\tfont-size: ${t.domainFontSize+2}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t`}),"styles"),I={parser:w,db:$,renderer:M,styles:F};export{I as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{p as a}from"./chunk-JWPE2WC7-84faee3d.js";import{_ as n,s as r,g as i,n as o,o as l,b as s,c,l as d,F as f,E as p,G as m,v as y,K as x,k as h,L as g}from"./mermaid.core-2d237a1e.js";import{v as u}from"./mermaid-parser.core-6df0beec.js";import"./web-753300e1.js";var $=n(()=>({domains:new Map,transitions:[]}),"createDefaultData"),b=$(),w=n(()=>b.domains,"getDomains"),v=n(()=>b.transitions,"getTransitions"),C=n(t=>{if(t)for(var e of t){var a=e.domain;e=(e.items??[]).map(t=>({label:t.label}));b.domains.set(a,{name:a,items:e})}},"setDomains"),k=n(t=>{t&&(b.transitions=t.filter(t=>t.from!==t.to||(d.warn(`Cynefin: self-loop transition on domain "${t.from}" is not meaningful and will be skipped.`),!1)).map(t=>({from:t.from,to:t.to,label:t.label||void 0})))},"setTransitions"),D={getDomains:w,getTransitions:v,setDomains:C,setTransitions:k,getConfig:n(()=>f({...p.cynefin,...m().cynefin}),"getConfig"),clear:n(()=>{y(),b=$()},"clear"),setAccTitle:r,getAccTitle:i,setDiagramTitle:o,getDiagramTitle:l,getAccDescription:s,setAccDescription:c},B=n(t=>{a(t,D),D.setDomains(t.domains),D.setTransitions(t.transitions)},"populate"),A={parse:n(async t=>{t=await u("cynefin",t),d.debug(t),B(t)},"parse")};function T(t){return t=t+1831565813|0,t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}function S(t){let e=0;for(let a=0;a<t.length;a++){e=(e<<5)-e+t.charCodeAt(a),e|=0}return e}function z(t,e){return"number"==typeof t&&Number.isFinite(t)&&0!==t?t:S(e)}function L(t,e,a,n){var r=t/2,i=n??.015*t,o=e/7,l=[];for(let t=0;t<=7;t++){var s=T(a+17*t)*i*2-i;l.push({x:r+s,y:t*o})}let c=`M${l[0].x},`+l[0].y;for(let t=0;t<l.length-1;t++){var d=l[t],f=l[t+1],p=(d.y+f.y)/2,m=1.5*i*(t%2==0?1:-1)*T(a+31*t+7);c+=` C${d=d.x+m},${p} ${m=f.x-m},${p} ${f.x},`+f.y}return c}function M(t,e,a,n){var r=e/2,i=n??.015*e,o=t/7,l=[];for(let t=0;t<=7;t++){var s=T(a+23*t)*i*2-i;l.push({x:t*o,y:r+s})}let c=`M${l[0].x},`+l[0].y;for(let t=0;t<l.length-1;t++){var d=l[t],f=l[t+1],p=(d.x+f.x)/2,m=1.5*i*(t%2==0?1:-1)*T(a+37*t+11);c+=` C${p},${d=d.y+m} ${p},${m=f.y-m} ${f.x},`+f.y}return c}function P(t,e){var a=t/2,n=.5*e;return[`M${a},`+n,`C${a+(t=.03*t)},`+(n+.2*(e-n)),a-1.5*t+","+(n+.55*(e-n)),a+.5*t+","+(n+.75*(e-n)),`C${a-t},`+(n+.85*(e-n)),a+.3*t+","+(n+.95*(e-n)),a+","+e].join(" ")}function E(t,e,a,n){return[`M${t-a},`+e,`A${a},${n} 0 1,1 ${t+a},`+e,`A${a},${n} 0 1,1 ${t-a},`+e,"Z"].join(" ")}n(T,"seededRandom"),n(S,"hashString"),n(z,"resolveSeed"),n(L,"generateFoldPath"),n(M,"generateHorizontalBoundary"),n(P,"generateCliffPath"),n(E,"generateConfusionPath");var F={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},I=n((t,e)=>({complex:{cx:(t/=2)/2,cy:(e/=2)/2,x:0,y:0,w:t,h:e},complicated:{cx:t+t/2,cy:e/2,x:t,y:0,w:t,h:e},chaotic:{cx:t/2,cy:e+e/2,x:0,y:e,w:t,h:e},clear:{cx:t+t/2,cy:e+e/2,x:t,y:e,w:t,h:e},confusion:{cx:t,cy:e,x:.7*t,y:.7*e,w:.6*t,h:.6*e}}),"getDomainLayouts"),j=n(()=>{var t=g(),e=m();return f(t,e.themeVariables).cynefin},"getCynefinDomainColors"),W=n((t,e,a,n)=>{var r=(n=n.db).getDomains(),i=n.getTransitions(),o=n.getDiagramTitle(),l=n.getAccTitle(),s=n.getAccDescription(),c=(n=n.getConfig(),j()),f=(d.debug("Rendering Cynefin diagram"),n.width),p=n.height,m=n.padding,y=n.showDomainDescriptions,g=n.boundaryAmplitude,u=f+2*m,$=p+2*m;let b={complex:c.complexBg,complicated:c.complicatedBg,clear:c.clearBg,chaotic:c.chaoticBg,confusion:c.confusionBg};c=x(e),h(c,$,u,n.useMaxWidth??!0),c.attr("viewBox",`0 0 ${u} `+$),l&&c.append("title").text(l),s&&c.append("desc").text(s),u=c.append("g").attr("transform",`translate(${m}, ${m})`);let w=I(f,p);$=z(n.seed,e);var v,C=u.append("g").attr("class","cynefin-backgrounds");l=["complex","complicated","chaotic","clear"];for(v of l){var k=w[v];C.append("rect").attr("class","cynefinDomain").attr("x",k.x).attr("y",k.y).attr("width",k.w).attr("height",k.h).attr("fill",b[v]).attr("fill-opacity",.4).attr("stroke","none")}(s=u.append("g").attr("class","cynefin-boundaries")).append("path").attr("class","cynefinBoundary").attr("d",L(f,p,$,g)).attr("fill","none"),s.append("path").attr("class","cynefinBoundary").attr("d",M(f,p,$+100,g)).attr("fill","none"),s.append("path").attr("class","cynefinCliff").attr("d",P(f,p)).attr("fill","none"),n=.15*f,$=.15*p;var D,B=(u.append("path").attr("class","cynefinConfusion").attr("d",E(f/2,p/2,n,$)).attr("fill",b.confusion).attr("fill-opacity",.5),u.append("g").attr("class","cynefin-labels"));for(D of l){var A=w[D];B.append("text").attr("class","cynefinDomainLabel").attr("x",A.cx).attr("y",y?A.cy-30:A.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(D.charAt(0).toUpperCase()+D.slice(1))}if(B.append("text").attr("class","cynefinDomainLabel").attr("x",f/2).attr("y",y?p/2-10:p/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),y){var T,S=u.append("g").attr("class","cynefin-subtitles");for(T of l){var W=w[T],R=F[T];S.append("text").attr("class","cynefinSubtitle").attr("x",W.cx).attr("y",W.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R.model),S.append("text").attr("class","cynefinSubtitle").attr("x",W.cx).attr("y",W.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R.practice)}S.append("text").attr("class","cynefinSubtitle").attr("x",f/2).attr("y",p/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(F.confusion.practice)}let H=u.append("g").attr("class","cynefin-items");for(let t of["complex","complicated","chaotic","clear","confusion"]){if((G=r.get(t))&&0!==G.items.length){let e=w[t];var N="confusion"===t;let a,n=G.items,r=0;if(N&&G.items.length>3&&(r=G.items.length-3,n=G.items.slice(0,3)),a=N?e.cy+(y?22:14):e.cy+(y?25:15),[...n].forEach((n,r)=>{r=a+30*r;var i=H.append("g"),o=i.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(n.label);let l=7*n.label.length;n=(l=(n=o.node())&&"function"==typeof n.getBBox&&0<(n=n.getBBox()).width?n.width:l)+20;var s=e.cx-n/2;i.attr("transform",`translate(${s}, ${r})`),i.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",n).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.95),o.attr("x",n/2).attr("y",13)}),0<r){var G=a+30*n.length,O=(N=`+${r} more`,H.append("g")),V=O.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(N);let i=7*N.length;N=(i=(N=V.node())&&"function"==typeof N.getBBox&&0<(N=N.getBBox()).width?N.width:i)+20;var q=e.cx-N/2;O.attr("transform",`translate(${q}, ${G})`),O.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",N).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.6),V.attr("x",N/2).attr("y",13)}}}if(0<i.length){g=c.select("defs").empty()?c.append("defs"):c.select("defs");let t="cynefin-arrow-"+e,a=(g.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead"),u.append("g").attr("class","cynefin-arrows"));i.forEach(e=>{var n,r,i,o,l,s,c,f=w[e.from],p=w[e.to];f&&p&&(e.from===e.to?d.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`):(n=f.cx,r=p.cx,c=((f=f.cy)+(p=p.cy))/2,i=r-n,s=(n+r)/2+-(o=p-f)/(o=Math.sqrt(i*i+o*o))*(l=.15*o),c+=i/o*l,a.append("path").attr("class","cynefinArrowLine").attr("d",`M${n},${f} Q${s},${c} ${r},`+p).attr("fill","none").attr("marker-end",`url(#${t})`),e.label&&a.append("text").attr("class","cynefinArrowLabel").attr("x",s).attr("y",c-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(e.label)))})}o&&u.append("text").attr("class","cynefinTitle").attr("x",f/2).attr("y",-m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o)},"draw"),R={draw:W},H=n(()=>{var t=g(),e=m();return f(t,e.themeVariables).cynefin},"getCynefinTheme"),N=n(()=>{var t=H();return`\n\t.cynefinDomain {\n\t\tstroke: none;\n\t}\n\t.cynefinDomainLabel {\n\t\tfont-size: ${t.domainFontSize}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t.cynefinSubtitle {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t\tfont-style: italic;\n\t}\n\t.cynefinItem {\n\t\tfill-opacity: 0.95;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t}\n\t.cynefinItemText {\n\t\tfont-size: ${t.itemFontSize}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinItemOverflow {\n\t\tfill-opacity: 0.6;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t\tstroke-dasharray: 3 2;\n\t}\n\t.cynefinBoundary {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: ${t.boundaryWidth};\n\t\tstroke-dasharray: 6 3;\n\t}\n\t.cynefinCliff {\n\t\tstroke: ${t.cliffColor};\n\t\tstroke-width: ${t.cliffWidth};\n\t}\n\t.cynefinConfusion {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1.5;\n\t\tstroke-dasharray: 4 2;\n\t}\n\t.cynefinArrowLine {\n\t\tstroke: ${t.arrowColor};\n\t\tstroke-width: ${t.arrowWidth};\n\t\tfill: none;\n\t}\n\t.cynefinArrowHead {\n\t\tfill: ${t.arrowColor};\n\t\tstroke: none;\n\t}\n\t.cynefinArrowLabel {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinTitle {\n\t\tfont-size: ${t.domainFontSize+2}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t`},"styles"),G={parser:A,db:D,renderer:R,styles:N};export{G as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{p as a}from"./chunk-JWPE2WC7-15a55950.js";import{_ as n,s as r,g as i,n as o,o as l,b as s,c,l as d,F as f,E as p,G as m,v as y,K as x,k as h,L as g}from"./mermaid.core-70d5aead.js";import{v as u}from"./mermaid-parser.core-6df0beec.js";import"./web-25bb78b9.js";var $=n(()=>({domains:new Map,transitions:[]}),"createDefaultData"),b=$(),w=n(()=>b.domains,"getDomains"),v=n(()=>b.transitions,"getTransitions"),C=n(t=>{if(t)for(var e of t){var a=e.domain;e=(e.items??[]).map(t=>({label:t.label}));b.domains.set(a,{name:a,items:e})}},"setDomains"),k=n(t=>{t&&(b.transitions=t.filter(t=>t.from!==t.to||(d.warn(`Cynefin: self-loop transition on domain "${t.from}" is not meaningful and will be skipped.`),!1)).map(t=>({from:t.from,to:t.to,label:t.label||void 0})))},"setTransitions"),D={getDomains:w,getTransitions:v,setDomains:C,setTransitions:k,getConfig:n(()=>f({...p.cynefin,...m().cynefin}),"getConfig"),clear:n(()=>{y(),b=$()},"clear"),setAccTitle:r,getAccTitle:i,setDiagramTitle:o,getDiagramTitle:l,getAccDescription:s,setAccDescription:c},B=n(t=>{a(t,D),D.setDomains(t.domains),D.setTransitions(t.transitions)},"populate"),A={parse:n(async t=>{t=await u("cynefin",t),d.debug(t),B(t)},"parse")};function T(t){return t=t+1831565813|0,t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}function S(t){let e=0;for(let a=0;a<t.length;a++){e=(e<<5)-e+t.charCodeAt(a),e|=0}return e}function z(t,e){return"number"==typeof t&&Number.isFinite(t)&&0!==t?t:S(e)}function L(t,e,a,n){var r=t/2,i=n??.015*t,o=e/7,l=[];for(let t=0;t<=7;t++){var s=T(a+17*t)*i*2-i;l.push({x:r+s,y:t*o})}let c=`M${l[0].x},`+l[0].y;for(let t=0;t<l.length-1;t++){var d=l[t],f=l[t+1],p=(d.y+f.y)/2,m=1.5*i*(t%2==0?1:-1)*T(a+31*t+7);c+=` C${d=d.x+m},${p} ${m=f.x-m},${p} ${f.x},`+f.y}return c}function M(t,e,a,n){var r=e/2,i=n??.015*e,o=t/7,l=[];for(let t=0;t<=7;t++){var s=T(a+23*t)*i*2-i;l.push({x:t*o,y:r+s})}let c=`M${l[0].x},`+l[0].y;for(let t=0;t<l.length-1;t++){var d=l[t],f=l[t+1],p=(d.x+f.x)/2,m=1.5*i*(t%2==0?1:-1)*T(a+37*t+11);c+=` C${p},${d=d.y+m} ${p},${m=f.y-m} ${f.x},`+f.y}return c}function P(t,e){var a=t/2,n=.5*e;return[`M${a},`+n,`C${a+(t=.03*t)},`+(n+.2*(e-n)),a-1.5*t+","+(n+.55*(e-n)),a+.5*t+","+(n+.75*(e-n)),`C${a-t},`+(n+.85*(e-n)),a+.3*t+","+(n+.95*(e-n)),a+","+e].join(" ")}function E(t,e,a,n){return[`M${t-a},`+e,`A${a},${n} 0 1,1 ${t+a},`+e,`A${a},${n} 0 1,1 ${t-a},`+e,"Z"].join(" ")}n(T,"seededRandom"),n(S,"hashString"),n(z,"resolveSeed"),n(L,"generateFoldPath"),n(M,"generateHorizontalBoundary"),n(P,"generateCliffPath"),n(E,"generateConfusionPath");var F={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},I=n((t,e)=>({complex:{cx:(t/=2)/2,cy:(e/=2)/2,x:0,y:0,w:t,h:e},complicated:{cx:t+t/2,cy:e/2,x:t,y:0,w:t,h:e},chaotic:{cx:t/2,cy:e+e/2,x:0,y:e,w:t,h:e},clear:{cx:t+t/2,cy:e+e/2,x:t,y:e,w:t,h:e},confusion:{cx:t,cy:e,x:.7*t,y:.7*e,w:.6*t,h:.6*e}}),"getDomainLayouts"),j=n(()=>{var t=g(),e=m();return f(t,e.themeVariables).cynefin},"getCynefinDomainColors"),W=n((t,e,a,n)=>{var r=(n=n.db).getDomains(),i=n.getTransitions(),o=n.getDiagramTitle(),l=n.getAccTitle(),s=n.getAccDescription(),c=(n=n.getConfig(),j()),f=(d.debug("Rendering Cynefin diagram"),n.width),p=n.height,m=n.padding,y=n.showDomainDescriptions,g=n.boundaryAmplitude,u=f+2*m,$=p+2*m;let b={complex:c.complexBg,complicated:c.complicatedBg,clear:c.clearBg,chaotic:c.chaoticBg,confusion:c.confusionBg};c=x(e),h(c,$,u,n.useMaxWidth??!0),c.attr("viewBox",`0 0 ${u} `+$),l&&c.append("title").text(l),s&&c.append("desc").text(s),u=c.append("g").attr("transform",`translate(${m}, ${m})`);let w=I(f,p);$=z(n.seed,e);var v,C=u.append("g").attr("class","cynefin-backgrounds");l=["complex","complicated","chaotic","clear"];for(v of l){var k=w[v];C.append("rect").attr("class","cynefinDomain").attr("x",k.x).attr("y",k.y).attr("width",k.w).attr("height",k.h).attr("fill",b[v]).attr("fill-opacity",.4).attr("stroke","none")}(s=u.append("g").attr("class","cynefin-boundaries")).append("path").attr("class","cynefinBoundary").attr("d",L(f,p,$,g)).attr("fill","none"),s.append("path").attr("class","cynefinBoundary").attr("d",M(f,p,$+100,g)).attr("fill","none"),s.append("path").attr("class","cynefinCliff").attr("d",P(f,p)).attr("fill","none"),n=.15*f,$=.15*p;var D,B=(u.append("path").attr("class","cynefinConfusion").attr("d",E(f/2,p/2,n,$)).attr("fill",b.confusion).attr("fill-opacity",.5),u.append("g").attr("class","cynefin-labels"));for(D of l){var A=w[D];B.append("text").attr("class","cynefinDomainLabel").attr("x",A.cx).attr("y",y?A.cy-30:A.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(D.charAt(0).toUpperCase()+D.slice(1))}if(B.append("text").attr("class","cynefinDomainLabel").attr("x",f/2).attr("y",y?p/2-10:p/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),y){var T,S=u.append("g").attr("class","cynefin-subtitles");for(T of l){var W=w[T],R=F[T];S.append("text").attr("class","cynefinSubtitle").attr("x",W.cx).attr("y",W.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R.model),S.append("text").attr("class","cynefinSubtitle").attr("x",W.cx).attr("y",W.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R.practice)}S.append("text").attr("class","cynefinSubtitle").attr("x",f/2).attr("y",p/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(F.confusion.practice)}let H=u.append("g").attr("class","cynefin-items");for(let t of["complex","complicated","chaotic","clear","confusion"]){if((G=r.get(t))&&0!==G.items.length){let e=w[t];var N="confusion"===t;let a,n=G.items,r=0;if(N&&G.items.length>3&&(r=G.items.length-3,n=G.items.slice(0,3)),a=N?e.cy+(y?22:14):e.cy+(y?25:15),[...n].forEach((n,r)=>{r=a+30*r;var i=H.append("g"),o=i.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(n.label);let l=7*n.label.length;n=(l=(n=o.node())&&"function"==typeof n.getBBox&&0<(n=n.getBBox()).width?n.width:l)+20;var s=e.cx-n/2;i.attr("transform",`translate(${s}, ${r})`),i.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",n).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.95),o.attr("x",n/2).attr("y",13)}),0<r){var G=a+30*n.length,O=(N=`+${r} more`,H.append("g")),V=O.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(N);let i=7*N.length;N=(i=(N=V.node())&&"function"==typeof N.getBBox&&0<(N=N.getBBox()).width?N.width:i)+20;var q=e.cx-N/2;O.attr("transform",`translate(${q}, ${G})`),O.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",N).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",b[t]).attr("fill-opacity",.6),V.attr("x",N/2).attr("y",13)}}}if(0<i.length){g=c.select("defs").empty()?c.append("defs"):c.select("defs");let t="cynefin-arrow-"+e,a=(g.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead"),u.append("g").attr("class","cynefin-arrows"));i.forEach(e=>{var n,r,i,o,l,s,c,f=w[e.from],p=w[e.to];f&&p&&(e.from===e.to?d.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`):(n=f.cx,r=p.cx,c=((f=f.cy)+(p=p.cy))/2,i=r-n,s=(n+r)/2+-(o=p-f)/(o=Math.sqrt(i*i+o*o))*(l=.15*o),c+=i/o*l,a.append("path").attr("class","cynefinArrowLine").attr("d",`M${n},${f} Q${s},${c} ${r},`+p).attr("fill","none").attr("marker-end",`url(#${t})`),e.label&&a.append("text").attr("class","cynefinArrowLabel").attr("x",s).attr("y",c-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(e.label)))})}o&&u.append("text").attr("class","cynefinTitle").attr("x",f/2).attr("y",-m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o)},"draw"),R={draw:W},H=n(()=>{var t=g(),e=m();return f(t,e.themeVariables).cynefin},"getCynefinTheme"),N=n(()=>{var t=H();return`\n\t.cynefinDomain {\n\t\tstroke: none;\n\t}\n\t.cynefinDomainLabel {\n\t\tfont-size: ${t.domainFontSize}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t.cynefinSubtitle {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t\tfont-style: italic;\n\t}\n\t.cynefinItem {\n\t\tfill-opacity: 0.95;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t}\n\t.cynefinItemText {\n\t\tfont-size: ${t.itemFontSize}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinItemOverflow {\n\t\tfill-opacity: 0.6;\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1;\n\t\tstroke-dasharray: 3 2;\n\t}\n\t.cynefinBoundary {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: ${t.boundaryWidth};\n\t\tstroke-dasharray: 6 3;\n\t}\n\t.cynefinCliff {\n\t\tstroke: ${t.cliffColor};\n\t\tstroke-width: ${t.cliffWidth};\n\t}\n\t.cynefinConfusion {\n\t\tstroke: ${t.boundaryColor};\n\t\tstroke-width: 1.5;\n\t\tstroke-dasharray: 4 2;\n\t}\n\t.cynefinArrowLine {\n\t\tstroke: ${t.arrowColor};\n\t\tstroke-width: ${t.arrowWidth};\n\t\tfill: none;\n\t}\n\t.cynefinArrowHead {\n\t\tfill: ${t.arrowColor};\n\t\tstroke: none;\n\t}\n\t.cynefinArrowLabel {\n\t\tfont-size: ${t.itemFontSize-1}px;\n\t\tfill: ${t.textColor};\n\t}\n\t.cynefinTitle {\n\t\tfont-size: ${t.domainFontSize+2}px;\n\t\tfont-weight: bold;\n\t\tfill: ${t.labelColor};\n\t}\n\t`},"styles"),G={parser:A,db:D,renderer:R,styles:N};export{G as diagram};
|