@nodefony/studio 10.0.0-beta.5 → 10.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/decorateParam.js +1 -1
- package/dist/frontend/assets/Accordion-CpfkavHk.js +1 -0
- package/dist/frontend/assets/ActionsLiveGraph-D1QeuUQm.js +1 -0
- package/dist/frontend/assets/AgentsPreview-3-5OZZ37.js +12 -0
- package/dist/frontend/assets/ApiKeys-CtLUNnl0.js +2 -0
- package/dist/frontend/assets/ArchitectureLiveGraph-CMuDgIZB.js +1 -0
- package/dist/frontend/assets/Audit-B2FUlGqs.js +1 -0
- package/dist/frontend/assets/BackplaneLiveGraph-DPaKwgjB.js +1 -0
- package/dist/frontend/assets/Breadcrumbs-Ct1K_zqN.js +1 -0
- package/dist/frontend/assets/BrickStoreChip-D1KnkCmc.js +1 -0
- package/dist/frontend/assets/Chat-DvhzrpTt.js +1 -0
- package/dist/frontend/assets/Chip-CzEO4TVP.js +1 -0
- package/dist/frontend/assets/Cluster-4QkYbMbl.js +1 -0
- package/dist/frontend/assets/Collapse-C38QJ_Ri.js +1 -0
- package/dist/frontend/assets/ConfigPage-DSazrv0h.js +1 -0
- package/dist/frontend/assets/ConnectorCard-GiShQva6.js +11 -0
- package/dist/frontend/assets/Create-C-ZVQRdt.js +2 -0
- package/dist/frontend/assets/DashboardSupervision-deg6L71S.js +1 -0
- package/dist/frontend/assets/Database-BmezwQtb.js +1 -0
- package/dist/frontend/assets/{DbLogo-DnsxrIuK.js → DbLogo-CckTvmdO.js} +1 -1
- package/dist/frontend/assets/Documentation-CmNFuMcO.js +1 -0
- package/dist/frontend/assets/FanOutLiveGraph-C6KbaYVm.js +1 -0
- package/dist/frontend/assets/Firewall-Htuj9USB.js +1 -0
- package/dist/frontend/assets/GatewayPreview-Bl4ilFGn.js +1 -0
- package/dist/frontend/assets/IconAdjustmentsAlt-CPpJMDFd.js +1 -0
- package/dist/frontend/assets/{IconAdjustmentsHorizontal-Cl0HIZIL.js → IconAdjustmentsHorizontal-CzTgez2O.js} +1 -1
- package/dist/frontend/assets/IconAffiliate-B-8j6CaO.js +1 -0
- package/dist/frontend/assets/IconApi-CBIbi8ns.js +1 -0
- package/dist/frontend/assets/{IconAppWindow-Bs58vZIt.js → IconAppWindow-BtbyDQML.js} +1 -1
- package/dist/frontend/assets/{IconApps-65-UAwsK.js → IconApps-BfSGoNRn.js} +1 -1
- package/dist/frontend/assets/IconArchive-DDq3xKRQ.js +1 -0
- package/dist/frontend/assets/{IconArrowDown-D9YrjBsl.js → IconArrowDown-CypWBIm8.js} +1 -1
- package/dist/frontend/assets/{IconArrowLeft-DfkbqW0P.js → IconArrowLeft-D0LQWE0c.js} +1 -1
- package/dist/frontend/assets/{IconArrowUp-Wl2xauER.js → IconArrowUp-GGdt393_.js} +1 -1
- package/dist/frontend/assets/IconArrowsExchange-BP7tLAV_.js +1 -0
- package/dist/frontend/assets/{IconArrowsSplit2-C9n20g2v.js → IconArrowsSplit2-BMV-DM2_.js} +1 -1
- package/dist/frontend/assets/IconBan-DF34c4Ac.js +1 -0
- package/dist/frontend/assets/{IconBook-CeLncPbQ.js → IconBook-BS-zX7Sh.js} +1 -1
- package/dist/frontend/assets/IconBooks-DYJgVlGf.js +1 -0
- package/dist/frontend/assets/IconBox-DT4IcS8e.js +1 -0
- package/dist/frontend/assets/IconBrain-CMyyVykF.js +1 -0
- package/dist/frontend/assets/{IconCircleCheck-Cev1g2jp.js → IconCircleCheck-BkiqnBmy.js} +1 -1
- package/dist/frontend/assets/{IconCircleDot-iaW-20aN.js → IconCircleDot-DBpgsPm5.js} +1 -1
- package/dist/frontend/assets/IconCircuitResistor-BiMeCX9K.js +1 -0
- package/dist/frontend/assets/{IconCode-Back6-pr.js → IconCode-CkzeaOMf.js} +1 -1
- package/dist/frontend/assets/{IconDeviceDesktop-Cjz_ZorW.js → IconDeviceDesktop-BhfcZEfk.js} +1 -1
- package/dist/frontend/assets/IconDevices-DYaCW1Lf.js +1 -0
- package/dist/frontend/assets/{IconDots-Uc12X1j1.js → IconDots-zMMjYLi7.js} +1 -1
- package/dist/frontend/assets/{IconDownload-TLEMvh4h.js → IconDownload-BIf4ZImv.js} +1 -1
- package/dist/frontend/assets/{IconEye-Bp3WBW_K.js → IconEye-DXjnEUL5.js} +1 -1
- package/dist/frontend/assets/{IconFile-D_IwbZbP.js → IconFile-D_AMs1iZ.js} +1 -1
- package/dist/frontend/assets/{IconFolder-TW06P_HX.js → IconFolder-DNvrDX-8.js} +1 -1
- package/dist/frontend/assets/{IconGitBranch-DfUYidP2.js → IconGitBranch-C9rgpIR2.js} +1 -1
- package/dist/frontend/assets/{IconHandStop-BlYaZ8pd.js → IconHandStop-DQFq7Kla.js} +1 -1
- package/dist/frontend/assets/{IconHeartRateMonitor-CqXgvjmG.js → IconHeartRateMonitor-DURptc8j.js} +1 -1
- package/dist/frontend/assets/{IconHelpCircle-CNDr9FpE.js → IconHelpCircle-C6caw8cr.js} +1 -1
- package/dist/frontend/assets/{IconLayoutGrid-B99HuO3B.js → IconLayoutGrid-DqIXTdsq.js} +1 -1
- package/dist/frontend/assets/{IconListSearch-BkvbitIl.js → IconListSearch-Dx8ldAwH.js} +1 -1
- package/dist/frontend/assets/{IconPackages-BCP9yEBr.js → IconPackages-Dswyo8q2.js} +1 -1
- package/dist/frontend/assets/{IconPencil-DcuxW7s6.js → IconPencil-B8AVKzwi.js} +1 -1
- package/dist/frontend/assets/{IconPlayerPause-BnZOaBnJ.js → IconPlayerPause-BESNYgPM.js} +1 -1
- package/dist/frontend/assets/IconPlayerPlay-DhqKbQEW.js +1 -0
- package/dist/frontend/assets/{IconPlayerStop-0cIrjKL1.js → IconPlayerStop-BEsZkT6N.js} +1 -1
- package/dist/frontend/assets/IconPlus-DPedeEtY.js +1 -0
- package/dist/frontend/assets/{IconPuzzle-BB3XWSJ3.js → IconPuzzle-CJhQUtbI.js} +1 -1
- package/dist/frontend/assets/{IconRecycle-Cs7uLh99.js → IconRecycle-Ba6E065w.js} +1 -1
- package/dist/frontend/assets/{IconSend-BiPxzhGo.js → IconSend-YkuVPb0V.js} +1 -1
- package/dist/frontend/assets/{IconServer2-CwKH5DuF.js → IconServer2-CQ-VREH3.js} +1 -1
- package/dist/frontend/assets/{IconShieldOff-BtjbLiFI.js → IconShieldOff-BsfIN8zc.js} +1 -1
- package/dist/frontend/assets/{IconSitemap-DsC21r-y.js → IconSitemap-BVtH3lou.js} +1 -1
- package/dist/frontend/assets/{IconStack2-Bi2TDP1d.js → IconStack2-CCZMRSRP.js} +1 -1
- package/dist/frontend/assets/{IconTerminal2-DWYhp77C.js → IconTerminal2-DTjQG6wa.js} +1 -1
- package/dist/frontend/assets/{IconTool-CCYc3z_c.js → IconTool-BSCYXvc-.js} +1 -1
- package/dist/frontend/assets/{IconUserOff-BJroVvTi.js → IconUserOff-f9WTCDbr.js} +1 -1
- package/dist/frontend/assets/{IconWorld-DwwvBIep.js → IconWorld-DSRVZK6z.js} +1 -1
- package/dist/frontend/assets/KnowledgePreview-DXIniW1c.js +1 -0
- package/dist/frontend/assets/{List-CSxy5t8i.js → List-B4NvgWxC.js} +1 -1
- package/dist/frontend/assets/LlmProvidersPreview-C6K_4T7y.js +1 -0
- package/dist/frontend/assets/LogVisuals-DEasJmu2.js +1 -0
- package/dist/frontend/assets/Logs-D4Lwm_D0.js +1 -0
- package/dist/frontend/assets/McpPreview-RM10Do9w.js +1 -0
- package/dist/frontend/assets/MemoryPreview-BIQuDHaJ.js +1 -0
- package/dist/frontend/assets/Migrations-Ct1DBgot.js +3 -0
- package/dist/frontend/assets/ModuleDetail-zR6tYvwc.js +1 -0
- package/dist/frontend/assets/Modules-yxw9R2M5.js +1 -0
- package/dist/frontend/assets/OrmConnector-CJZkJeNS.js +1 -0
- package/dist/frontend/assets/OrmEntity-PEj9Ff7K.js +1 -0
- package/dist/frontend/assets/OrmOverview-DETG6IpL.js +1 -0
- package/dist/frontend/assets/OrmWorker-8Etwr4fo.js +1 -0
- package/dist/frontend/assets/Playground-BWA7qAvx.js +1 -0
- package/dist/frontend/assets/ProbesLiveGraph-D94e1c6i.js +1 -0
- package/dist/frontend/assets/Profile-D0U83sV_.js +2 -0
- package/dist/frontend/assets/ProfileFields-dt4VO6bY.js +1 -0
- package/dist/frontend/assets/Progress-COepY2v5.js +1 -0
- package/dist/frontend/assets/ProtocoleLiveGraph-UmOlL04Y.js +1 -0
- package/dist/frontend/assets/RealtimeConsole-CcZUTtHc.js +1 -0
- package/dist/frontend/assets/RingProgress-QfUZ9GPc.js +1 -0
- package/dist/frontend/assets/Roadmap-DrseUgGd.js +1 -0
- package/dist/frontend/assets/RoleSwitch-DZt4YgqK.js +1 -0
- package/dist/frontend/assets/Roles-Dhe0yW0U.js +1 -0
- package/dist/frontend/assets/RoutesView-CXZ8Aoj_.js +1 -0
- package/dist/frontend/assets/Runtime-BAWsvDqI.js +1 -0
- package/dist/frontend/assets/Sessions-Dvi9WBmv.js +1 -0
- package/dist/frontend/assets/Skeleton-D4mSLrUF.js +1 -0
- package/dist/frontend/assets/Slider-BbJH89K3.js +1 -0
- package/dist/frontend/assets/StoresView-m9K9J-zE.js +1 -0
- package/dist/frontend/assets/System-DbcrHR18.js +1 -0
- package/dist/frontend/assets/TagsInput-DLA4PIhC.js +1 -0
- package/dist/frontend/assets/Textarea-nmioafgL.js +1 -0
- package/dist/frontend/assets/Timeline-ouAOSjY1.js +1 -0
- package/dist/frontend/assets/TraceView-Bvtoz8-Z.js +1 -0
- package/dist/frontend/assets/Twin-gbY-Ir8E.js +1 -0
- package/dist/frontend/assets/TwinMap-DCpZouug.js +19 -0
- package/dist/frontend/assets/UserProfile-BaPNh-G3.js +1 -0
- package/dist/frontend/assets/Users-DoSedUDm.js +1 -0
- package/dist/frontend/assets/VectorStoresPreview-BwYoGKio.js +1 -0
- package/dist/frontend/assets/Webhooks-Ck9n1qLs.js +1 -0
- package/dist/frontend/assets/Workspace-BZRv5E_W.js +1 -0
- package/dist/frontend/assets/abnfDiagram-S7VZAUFO-BthwvKmL.js +1 -0
- package/dist/frontend/assets/aiPreviewParts-Dj8Ljhnn.js +1 -0
- package/dist/frontend/assets/{apiKeysModel-Ds886u9a.js → apiKeysModel-CJevQpt8.js} +1 -1
- package/dist/frontend/assets/{arc-Dkr_NqJg.js → arc-Y1ARJVZ4.js} +1 -1
- package/dist/frontend/assets/architecture-WOLXFQ4H-BQY4m_R3.js +1 -0
- package/dist/frontend/assets/architectureDiagram-YGSQEFNW-CtnMg3MY.js +36 -0
- package/dist/frontend/assets/auditFormat-jZN46_5Z.js +1 -0
- package/dist/frontend/assets/{auditModel-Btt_BBhB.js → auditModel-Cz-3Rzik.js} +1 -1
- package/dist/frontend/assets/blockDiagram-APKKGZFW-CsYeBrai.js +140 -0
- package/dist/frontend/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/dist/frontend/assets/{c4Diagram-XDPPPE54-B4jELhYh.js → c4Diagram-KJ2TOQU5-C8bCU1bx.js} +8 -8
- package/dist/frontend/assets/{chunk-7S6XSTFO-DClaWD3h.js → chunk-6MUBBAK2-DAO7STBG.js} +1 -1
- package/dist/frontend/assets/chunk-AXFCVDMN-CqUINOI2.js +62 -0
- package/dist/frontend/assets/{chunk-DSNLSHJZ-BHcejTug.js → chunk-BG4553SI-BNzrATwc.js} +33 -33
- package/dist/frontend/assets/chunk-DQASFODM-DKUUI-Ih.js +10 -0
- package/dist/frontend/assets/chunk-HFQBQIA3--X-aj9KB.js +1 -0
- package/dist/frontend/assets/chunk-KQLB2F66-CuRVkU-t.js +2 -0
- package/dist/frontend/assets/{chunk-4EMNKR2T-DkjFLyKa.js → chunk-KS47KZWR-C3-zYwni.js} +1 -1
- package/dist/frontend/assets/chunk-LEVMRMFU-BeKJOfig.js +1 -0
- package/dist/frontend/assets/chunk-M57EVK23-Bs-aWYqL.js +1 -0
- package/dist/frontend/assets/{chunk-NGNAAXSQ-Bw6tHVuc.js → chunk-NGNAAXSQ-DI_UYJZ4.js} +1 -1
- package/dist/frontend/assets/{chunk-2E7WHVMD-CnHjZi31.js → chunk-OY52VR5R-DN8ejlQ6.js} +4 -4
- package/dist/frontend/assets/chunk-QB3YPZ4I-D5PEJqKj.js +213 -0
- package/dist/frontend/assets/chunk-R3KSYZAL-DFQRbzGi.js +1 -0
- package/dist/frontend/assets/{chunk-AQDTSKZB-BCzT2csB.js → chunk-STOXU5M4-BmVWLvxQ.js} +7 -7
- package/dist/frontend/assets/chunk-TU62E6Q5-BqRb4Syq.js +1 -0
- package/dist/frontend/assets/{chunk-UHW7PFBP-C4qGS7N6.js → chunk-X4PVCEUW-DBYVvmEP.js} +1 -1
- package/dist/frontend/assets/chunk-XXDRQBXY-KOTosY-t.js +1 -0
- package/dist/frontend/assets/{classDiagram-v2-4MYWR3UA-BYwKN_JS.js → classDiagram-v2-L25IHNXF-B0Tfsy9e.js} +9 -9
- package/dist/frontend/assets/configEdit-p1JESVv_.js +1 -0
- package/dist/frontend/assets/cose-bilkent-JH36ORCC-DI2bTSr6.js +1 -0
- package/dist/frontend/assets/cynefin-EF2NZ3EQ-e826ZIRH.js +1 -0
- package/dist/frontend/assets/{cynefinDiagram-WF24UDRP-BlblpBJN.js → cynefinDiagram-L36ESFBY-Clsv_gOI.js} +1 -1
- package/dist/frontend/assets/cytoscape.esm-DaJm_o37.js +321 -0
- package/dist/frontend/assets/dagre-SPEB5RXH-cY9dwpOY.js +4 -0
- package/dist/frontend/assets/dayjs.min-C79hm5sx.js +1 -0
- package/dist/frontend/assets/{diagram-TYUNFSNR-CHlQchf6.js → diagram-3B7GL73J-ZnBnQ4MO.js} +33 -33
- package/dist/frontend/assets/{diagram-I5XIIV2D-CzqjaT_Z.js → diagram-DNEMPZML-e0DwZ8iA.js} +1 -1
- package/dist/frontend/assets/{diagram-RJA3I4VV-awutgug0.js → diagram-L3MUGCDN-BzmymsEn.js} +2 -2
- package/dist/frontend/assets/diagram-LA4NIPWU-DhzeBEnk.js +24 -0
- package/dist/frontend/assets/diagram-MHCOC4E2-DqdCYbDY.js +3 -0
- package/dist/frontend/assets/{diagram-ODIL2UCW-DYG1ZHG2.js → diagram-XPFHEONP-B08RMyca.js} +6 -6
- package/dist/frontend/assets/dist-CumnGVmJ.js +1 -0
- package/dist/frontend/assets/ebnfDiagram-UZSYDL2S-BDZ2e7-2.js +1 -0
- package/dist/frontend/assets/elk-XV6XMXQE-CW1yMFnw.js +27 -0
- package/dist/frontend/assets/erDiagram-EYBAPDEH-BqxJrPVs.js +99 -0
- package/dist/frontend/assets/{eventFlow-B3Lx-Ogd.js → eventFlow-wonKPF8V.js} +1 -1
- package/dist/frontend/assets/eventmodeling-K75KTNOO-CEasMmJe.js +1 -0
- package/dist/frontend/assets/flowDiagram-MALGAFMO-B3gkB--g.js +1 -0
- package/dist/frontend/assets/ganttDiagram-23REXITY-Bx0HX2-D.js +292 -0
- package/dist/frontend/assets/gitGraph-VSP46ZUC-CbeGPPjU.js +1 -0
- package/dist/frontend/assets/{gitGraphDiagram-PDYL7XHY-wE75QFTm.js → gitGraphDiagram-STJD7YCW-CQ6BpT59.js} +6 -6
- package/dist/frontend/assets/{health-DFLTZnXO.js → health-7sMajsQI.js} +1 -1
- package/dist/frontend/assets/hooks-DL-ZhyoD.js +1 -0
- package/dist/frontend/assets/index-CA-mibvn.css +1 -0
- package/dist/frontend/assets/index-PhNQVa0x.js +28 -0
- package/dist/frontend/assets/info-OHQRW6UA-BxUXUAFn.js +1 -0
- package/dist/frontend/assets/infoDiagram-KBXO4MBG-gSPqmMVx.js +2 -0
- package/dist/frontend/assets/{ishikawaDiagram-HPEHV2GE-XUL4r_qi.js → ishikawaDiagram-M35NCXHK-CAtetruZ.js} +6 -6
- package/dist/frontend/assets/journeyDiagram-OPLOXDXO-BNyh1MG4.js +139 -0
- package/dist/frontend/assets/{kanban-definition-FNSA4HC5-B4MXIgE0.js → kanban-definition-BZKZHSQY-rZvRpURc.js} +31 -31
- package/dist/frontend/assets/{katex-B_JcIwqj.js → katex-MEuSR36T.js} +1 -1
- package/dist/frontend/assets/line-DT9k40dN.js +1 -0
- package/dist/frontend/assets/linear-BUYtyba4.js +1 -0
- package/dist/frontend/assets/{logFormat-crJLA6Hd.js → logFormat-Bk36BvWi.js} +1 -1
- package/dist/frontend/assets/mermaid-parser.core-CgGwEebV.js +7 -0
- package/dist/frontend/assets/mermaid.core-B6xpe3Jr.js +44 -0
- package/dist/frontend/assets/{mindmap-definition-6OY57UG3-DzXLun_0.js → mindmap-definition-I2QAS2VK-BJbK0rgk.js} +11 -11
- package/dist/frontend/assets/{ormConnectorInsights-lP0jkfsV.js → ormConnectorInsights-C7902tKC.js} +1 -1
- package/dist/frontend/assets/packet-JDAUHWVQ-B6zqkP5f.js +1 -0
- package/dist/frontend/assets/pegDiagram-FD4XPPHP-D1jS_bll.js +1 -0
- package/dist/frontend/assets/pie-XZMESJXO-Bvu_D5Uq.js +1 -0
- package/dist/frontend/assets/pieDiagram-J4AKIIQI-BqeADRiG.js +39 -0
- package/dist/frontend/assets/{preload-helper-BACSxGrM.js → preload-helper-Zb0SmQx3.js} +1 -1
- package/dist/frontend/assets/profileVisuals-Dz_Mb4iH.js +1 -0
- package/dist/frontend/assets/{quadrantDiagram-D57K4MC3-C1LjpFf-.js → quadrantDiagram-XTYBLID2-B5Td0X4i.js} +7 -7
- package/dist/frontend/assets/radar-ABXABTNO-B0U_pqol.js +1 -0
- package/dist/frontend/assets/railroad-I3PHUGI6-DitcXnXq.js +1 -0
- package/dist/frontend/assets/railroad-abnf-LNEFI6M7-BcDt2ZeV.js +1 -0
- package/dist/frontend/assets/railroad-ebnf-DWYD2UWJ-s_yk7_jm.js +1 -0
- package/dist/frontend/assets/railroad-peg-JR7BVNR7-CtT0gxKT.js +1 -0
- package/dist/frontend/assets/railroadDiagram-MRQ6NCDL-DxGiXmKa.js +1 -0
- package/dist/frontend/assets/realtimeHealth-ClmV7IKO.js +1 -0
- package/dist/frontend/assets/requirementDiagram-Y7LWUY3S-ipbahX4M.js +84 -0
- package/dist/frontend/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/dist/frontend/assets/{sankeyDiagram-SY24JHO5-e-LII4V6.js → sankeyDiagram-WGJFYUXA-uANor5GF.js} +7 -7
- package/dist/frontend/assets/sequenceDiagram-5NDRBG5M-DuithWYh.js +169 -0
- package/dist/frontend/assets/src-C_gRsKqw.js +1 -0
- package/dist/frontend/assets/src-CiSWvS1R.js +1 -0
- package/dist/frontend/assets/{stateDiagram-v2-A6IESKWZ-Cnz1jfoK.js → stateDiagram-v2-FJ4FJNEA-Bg90e_SA.js} +19 -19
- package/dist/frontend/assets/stores-BPQ3jvDo.js +1 -0
- package/dist/frontend/assets/swimlanes-UMQ2AFYF-DZeEcIW9.js +1 -0
- package/dist/frontend/assets/swimlanesDiagram-OMPLPG4O-40YMe2C5.js +8 -0
- package/dist/frontend/assets/timeline-definition-SEUHKTQE-Df_4IrHP.js +120 -0
- package/dist/frontend/assets/treeView-D4JQ5SDB-Bi7Lp2TZ.js +1 -0
- package/dist/frontend/assets/treemap-SAJKECNS-DFsoQutK.js +1 -0
- package/dist/frontend/assets/ui-B4vXT8-w.js +323 -0
- package/dist/frontend/assets/useBlockSource-DTNNrdmz.js +1 -0
- package/dist/frontend/assets/useSocketLiveData-CmMYezqs.js +1 -0
- package/dist/frontend/assets/{usecaseDiagram-WPOLBNNX-D1qB4ycj.js → usecaseDiagram-AFA6YXN4-BUyQPYP3.js} +59 -59
- package/dist/frontend/assets/usersFormat-EIUaaMSm.js +1 -0
- package/dist/frontend/assets/{value-Ds4WqiGU.js → value-CHmTzbgv.js} +1 -1
- package/dist/frontend/assets/vennDiagram-NNMJR3RB-DWurGDbi.js +34 -0
- package/dist/frontend/assets/wardley-7MLQ67FV-C49ynNLo.js +1 -0
- package/dist/frontend/assets/wardleyDiagram-S7YFUSEH-IkA7ATkO.js +78 -0
- package/dist/frontend/assets/{xychartDiagram-4URNHDU4-DU68Uiwb.js → xychartDiagram-GGNKY7IX-nAWXrVur.js} +7 -7
- package/dist/frontend/index.html +19 -9
- package/dist/index.js +5 -2
- package/dist/nodefony/controller/StudioController.js +18 -10
- package/dist/nodefony/controller/StudioCreateController.js +3 -3
- package/dist/nodefony/controller/StudioRealtimeController.js +65 -28
- package/dist/nodefony/realtime/providers.js +18 -5
- package/dist/nodefony/realtime/supervisionHistory.js +196 -0
- package/dist/nodefony/src/actionParams.js +63 -0
- package/dist/nodefony/src/studioAdminApi.js +35 -0
- package/dist/types/frontend/src/realtime/studioContract.d.ts +117 -0
- package/dist/types/frontend/src/routes/create/createModel.d.ts +428 -0
- package/dist/types/frontend/src/utils/guards.d.ts +33 -0
- package/dist/types/nodefony/controller/StudioController.d.ts +0 -28
- package/dist/types/nodefony/controller/StudioCreateController.d.ts +1 -1
- package/dist/types/nodefony/controller/StudioRealtimeController.d.ts +43 -14
- package/dist/types/nodefony/realtime/providers.d.ts +16 -1
- package/dist/types/nodefony/realtime/supervisionHistory.d.ts +60 -0
- package/dist/types/nodefony/src/actionParams.d.ts +51 -0
- package/dist/types/nodefony/src/studioAdminApi.d.ts +17 -0
- package/package.json +30 -30
- package/dist/frontend/assets/Accordion-B95T_jqd.js +0 -1
- package/dist/frontend/assets/ActionsLiveGraph-D3-4cU7L.js +0 -1
- package/dist/frontend/assets/AgentsPreview-jk8ZqKC0.js +0 -12
- package/dist/frontend/assets/ApiKeys-BsOVh9jZ.js +0 -2
- package/dist/frontend/assets/ArchitectureLiveGraph-DxdFansn.js +0 -1
- package/dist/frontend/assets/Audit-DN46ibNe.js +0 -1
- package/dist/frontend/assets/BackplaneLiveGraph-CO5_VjW2.js +0 -1
- package/dist/frontend/assets/Breadcrumbs-BIn6iL6M.js +0 -1
- package/dist/frontend/assets/BrickStoreChip-qSqdbJGs.js +0 -1
- package/dist/frontend/assets/Chat-CYSa6u-p.js +0 -1
- package/dist/frontend/assets/Chip-vBXuu2Pb.js +0 -1
- package/dist/frontend/assets/Cluster-OJGOgCyg.js +0 -1
- package/dist/frontend/assets/ConfigPage-BjzVG-6E.js +0 -1
- package/dist/frontend/assets/ConnectorCard-zvQhWOBu.js +0 -11
- package/dist/frontend/assets/Create-CTWnL96w.js +0 -2
- package/dist/frontend/assets/DashboardSupervision-CuO-q63s.js +0 -1
- package/dist/frontend/assets/Database-CiQgVd4R.js +0 -1
- package/dist/frontend/assets/Documentation-D7PIdZhA.js +0 -1
- package/dist/frontend/assets/FanOutLiveGraph-Dx91GfJH.js +0 -1
- package/dist/frontend/assets/Firewall-0tS7vsj8.js +0 -1
- package/dist/frontend/assets/IconBan-BpUuW2o7.js +0 -1
- package/dist/frontend/assets/IconCircuitResistor-BLDyvG8t.js +0 -1
- package/dist/frontend/assets/IconPlayerPlay-Dmu0_cO7.js +0 -1
- package/dist/frontend/assets/IconPlus-DJnai39n.js +0 -1
- package/dist/frontend/assets/KnowledgePreview-DD3gFPVj.js +0 -1
- package/dist/frontend/assets/LlmProvidersPreview-BqcHOOz6.js +0 -1
- package/dist/frontend/assets/LogVisuals-BzU1XVTx.js +0 -1
- package/dist/frontend/assets/Logs-Biv9FSPR.js +0 -1
- package/dist/frontend/assets/McpPreview-yS6eWMSn.js +0 -1
- package/dist/frontend/assets/MemoryPreview-Di6W70HF.js +0 -1
- package/dist/frontend/assets/Migrations-3DzAGzE5.js +0 -3
- package/dist/frontend/assets/ModuleDetail-B3ddL_Ni.js +0 -1
- package/dist/frontend/assets/Modules-BjkwQo-M.js +0 -1
- package/dist/frontend/assets/OrmConnector-3ghomo2w.js +0 -1
- package/dist/frontend/assets/OrmEntity-CCgAuLJw.js +0 -1
- package/dist/frontend/assets/OrmOverview-DN4Oeaqi.js +0 -1
- package/dist/frontend/assets/OrmWorker-DVB3-CXZ.js +0 -1
- package/dist/frontend/assets/Playground-Dm51zhvM.js +0 -1
- package/dist/frontend/assets/ProbesLiveGraph-DguMpU4r.js +0 -1
- package/dist/frontend/assets/Profile-C5DZ3RBe.js +0 -2
- package/dist/frontend/assets/ProfileFields-CVd01diC.js +0 -1
- package/dist/frontend/assets/Progress-CBHZcl7M.js +0 -1
- package/dist/frontend/assets/ProtocoleLiveGraph-B3ylCzdY.js +0 -1
- package/dist/frontend/assets/RealtimeConsole-CifCD0gL.js +0 -1
- package/dist/frontend/assets/RingProgress-DG5R3qG5.js +0 -1
- package/dist/frontend/assets/Roadmap-N0SiFkET.js +0 -1
- package/dist/frontend/assets/RoleSwitch-DxxRjBDk.js +0 -1
- package/dist/frontend/assets/Roles-BoWhfMpG.js +0 -1
- package/dist/frontend/assets/RoutesView-D_jPoY8n.js +0 -1
- package/dist/frontend/assets/Runtime-B0KTrYTl.js +0 -1
- package/dist/frontend/assets/Sessions-DZNuM2pE.js +0 -1
- package/dist/frontend/assets/Skeleton-BPMtTBl8.js +0 -1
- package/dist/frontend/assets/StoresView-DwMaOetW.js +0 -1
- package/dist/frontend/assets/System-z6oDmzUd.js +0 -1
- package/dist/frontend/assets/TagsInput-DL4sudtP.js +0 -1
- package/dist/frontend/assets/Textarea-DxkrnirS.js +0 -1
- package/dist/frontend/assets/Timeline-C0f-zZ9I.js +0 -1
- package/dist/frontend/assets/TraceView-BMAOmZcO.js +0 -1
- package/dist/frontend/assets/Twin-ByLKTjbH.js +0 -19
- package/dist/frontend/assets/UserProfile-BWD1GuI6.js +0 -1
- package/dist/frontend/assets/Users-Cx-wNGfg.js +0 -1
- package/dist/frontend/assets/VectorStoresPreview-DU8fG7oS.js +0 -1
- package/dist/frontend/assets/Webhooks-CrpDmgYf.js +0 -1
- package/dist/frontend/assets/Workspace-CPYmh57b.js +0 -1
- package/dist/frontend/assets/abnfDiagram-WEYOIA3C-o6kZb03b.js +0 -1
- package/dist/frontend/assets/aiPreviewModel-CCdOgd0j.js +0 -2
- package/dist/frontend/assets/aiPreviewParts-DvLkNJZw.js +0 -1
- package/dist/frontend/assets/architecture-WOLXFQ4H-D0WVDySu.js +0 -1
- package/dist/frontend/assets/architectureDiagram-ZHVYKT53-D9lWKg5J.js +0 -36
- package/dist/frontend/assets/auditFormat-DkcEhB6E.js +0 -1
- package/dist/frontend/assets/blockDiagram-RJAE7QA3-WjPcOKRW.js +0 -140
- package/dist/frontend/assets/channel-bBINEAVx.js +0 -1
- package/dist/frontend/assets/chunk-55XCU76K-DX-SqoL7.js +0 -1
- package/dist/frontend/assets/chunk-HAGFOTED-BEnakj0Q.js +0 -62
- package/dist/frontend/assets/chunk-HNE4Q36P-u3A7JPIz.js +0 -1
- package/dist/frontend/assets/chunk-NQOKRVIF-C4CpPbjZ.js +0 -213
- package/dist/frontend/assets/chunk-VQ5W62QI-CD4iG1Ju.js +0 -1
- package/dist/frontend/assets/chunk-WQQL4CDK-BRd_O9U1.js +0 -10
- package/dist/frontend/assets/chunk-XXDRQBXY-r_aMXwAb.js +0 -1
- package/dist/frontend/assets/chunk-YZO67HFG-DYi_O4tF.js +0 -1
- package/dist/frontend/assets/chunk-ZAUX2LTX-F2xkI2IG.js +0 -1
- package/dist/frontend/assets/chunk-ZCHMQSOR-BLHSEC1D.js +0 -2
- package/dist/frontend/assets/configEdit-BUcR8Rdh.js +0 -1
- package/dist/frontend/assets/cose-bilkent-JH36ORCC-p6hKc9FM.js +0 -1
- package/dist/frontend/assets/cynefin-EF2NZ3EQ-3fMGJqpS.js +0 -1
- package/dist/frontend/assets/cytoscape.esm-CCmQRb78.js +0 -321
- package/dist/frontend/assets/dagre-NK4GIZVX-CHbXyXoH.js +0 -4
- package/dist/frontend/assets/dayjs.min-BnY7wTsz.js +0 -1
- package/dist/frontend/assets/diagram-CBK3MWTC-COexS5yt.js +0 -24
- package/dist/frontend/assets/diagram-PFBEJUXE-DHiPTpVh.js +0 -3
- package/dist/frontend/assets/dist-CNARAVwn.js +0 -1
- package/dist/frontend/assets/ebnfDiagram-V4P3TTPT-DDRnrPjS.js +0 -1
- package/dist/frontend/assets/elk-QONTBCTQ-DjqguIGM.js +0 -27
- package/dist/frontend/assets/erDiagram-KYQIGQAA-0Rq0qAP2.js +0 -99
- package/dist/frontend/assets/eventmodeling-K75KTNOO-Ci5ZysGc.js +0 -1
- package/dist/frontend/assets/flowDiagram-IUGLLWBU-Bd7ui4lC.js +0 -1
- package/dist/frontend/assets/ganttDiagram-R7GPNTJY-QmeRcBvv.js +0 -292
- package/dist/frontend/assets/gitGraph-VSP46ZUC-BNjGbs2Q.js +0 -1
- package/dist/frontend/assets/index-BrRxCdie.css +0 -1
- package/dist/frontend/assets/index-C96TEx9w.js +0 -28
- package/dist/frontend/assets/info-OHQRW6UA-AwuZMzCF.js +0 -1
- package/dist/frontend/assets/infoDiagram-MVDRKAX5-C0bjwO5A.js +0 -2
- package/dist/frontend/assets/journeyDiagram-BOSHW7O7-DOB7DGOm.js +0 -139
- package/dist/frontend/assets/line-GyWcPEv4.js +0 -1
- package/dist/frontend/assets/linear-DuXPlWP5.js +0 -1
- package/dist/frontend/assets/mermaid-parser.core-DuBc40Fk.js +0 -7
- package/dist/frontend/assets/mermaid.core-lhcUO7it.js +0 -44
- package/dist/frontend/assets/mobx-P4YDScON.js +0 -1
- package/dist/frontend/assets/packet-JDAUHWVQ-BO5uQF22.js +0 -1
- package/dist/frontend/assets/pegDiagram-ECIUJNBX-ZvDgYb9i.js +0 -1
- package/dist/frontend/assets/pie-XZMESJXO-BZrK7zKX.js +0 -1
- package/dist/frontend/assets/pieDiagram-GNMPY74T-CHFaZNK-.js +0 -39
- package/dist/frontend/assets/profileVisuals-DodchGbL.js +0 -1
- package/dist/frontend/assets/radar-ABXABTNO-DecCvP8c.js +0 -1
- package/dist/frontend/assets/railroad-I3PHUGI6-_iEZazdU.js +0 -1
- package/dist/frontend/assets/railroad-abnf-LNEFI6M7-CDs9xz8A.js +0 -1
- package/dist/frontend/assets/railroad-ebnf-DWYD2UWJ-OMA8rXBg.js +0 -1
- package/dist/frontend/assets/railroad-peg-JR7BVNR7-CahBRdoM.js +0 -1
- package/dist/frontend/assets/railroadDiagram-Y72NRBL7-Dffo1i5y.js +0 -1
- package/dist/frontend/assets/realtimeHealth-CEJDxl45.js +0 -1
- package/dist/frontend/assets/requirementDiagram-EQYSW5RA-C1QpRX4G.js +0 -84
- package/dist/frontend/assets/sequenceDiagram-BLEHNHQU-NnPkqGF3.js +0 -169
- package/dist/frontend/assets/src-3uYsZQ6M.js +0 -1
- package/dist/frontend/assets/src-99e5ryd8.js +0 -1
- package/dist/frontend/assets/stores-59plMWc-.js +0 -1
- package/dist/frontend/assets/swimlanes-B3ENRKFQ-Bk54DtP4.js +0 -1
- package/dist/frontend/assets/swimlanesDiagram-AYQRV4AK-DVvOf_w1.js +0 -8
- package/dist/frontend/assets/timeline-definition-JXYKGLGB-sa8408Jf.js +0 -120
- package/dist/frontend/assets/treeView-D4JQ5SDB-DVhp_E4d.js +0 -1
- package/dist/frontend/assets/treemap-SAJKECNS-Bxhpvb2A.js +0 -1
- package/dist/frontend/assets/ui-DL2XgTmu.js +0 -322
- package/dist/frontend/assets/useBlockSource-CTef4isR.js +0 -1
- package/dist/frontend/assets/useSocketLiveData-C39Aqu7R.js +0 -1
- package/dist/frontend/assets/usersFormat-yj2abAgj.js +0 -1
- package/dist/frontend/assets/vennDiagram-Q3Y3IDCW-0Yok6bqQ.js +0 -34
- package/dist/frontend/assets/wardley-7MLQ67FV-kuj23NGq.js +0 -1
- package/dist/frontend/assets/wardleyDiagram-IVAIDKWA-CdkJzHfw.js +0 -78
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{w as e}from"./src-3uYsZQ6M.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-99e5ryd8.js";import{R as r,h as i,p as a,r as o,s}from"./chunk-DSNLSHJZ-BHcejTug.js";import{t as c}from"./dist-CNARAVwn.js";function l(e){this._context=e}l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function u(e){return new l(e)}var d=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function f(e){return new d(e,!0)}function ee(e){return new d(e,!1)}function p(){}function m(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:m(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function te(e){return new h(e)}function ne(e){this._context=e}ne.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new ne(e)}function ie(e){this._context=e}ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ae(e){return new ie(e)}function oe(e,t){this._basis=new h(e),this._beta=t}oe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var se=(function e(t){function n(e){return t===1?new h(e):new oe(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function g(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var le=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t){this._context=e,this._k=(1-t)/6}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function de(e,t){this._context=e,this._alpha=t}de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fe=(function e(t){function n(e){return t?new de(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function pe(e,t){this._context=e,this._alpha=t}pe.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var me=(function e(t){function n(e){return t?new pe(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var he=(function e(t){function n(e){return t?new x(e,t):new y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ge(e){this._context=e}ge.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _e(e){return new ge(e)}function ve(e){return e<0?-1:1}function ye(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ve(a)+ve(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function be(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function S(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function C(e){this._context=e}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S(this,this._t0,be(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S(this,be(this,n=ye(this,e,t)),n);break;default:S(this,this._t0,n=ye(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xe(e){this._context=new Se(e)}(xe.prototype=Object.create(C.prototype)).point=function(e,t){C.prototype.point.call(this,t,e)};function Se(e){this._context=e}Se.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Ce(e){return new C(e)}function we(e){return new xe(e)}function Te(e){this._context=e}Te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ee(e),i=Ee(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ee(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function De(e){return new Te(e)}function w(e,t){this._context=e,this._t=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function T(e){return new w(e,.5)}function E(e){return new w(e,0)}function D(e){return new w(e,1)}function O(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Oe(){}function ke(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function k(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ae=`[object RegExp]`,A=`[object String]`,j=`[object Number]`,M=`[object Boolean]`,N=`[object Arguments]`,je=`[object Symbol]`,Me=`[object Date]`,Ne=`[object Map]`,Pe=`[object Set]`,Fe=`[object Array]`,Ie=`[object ArrayBuffer]`,Le=`[object Object]`,Re=`[object DataView]`,ze=`[object Uint8Array]`,Be=`[object Uint8ClampedArray]`,Ve=`[object Uint16Array]`,He=`[object Uint32Array]`,Ue=`[object Int8Array]`,We=`[object Int16Array]`,Ge=`[object Int32Array]`,Ke=`[object Float32Array]`,qe=`[object Float64Array]`,Je=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function P(e){return Je.Buffer!==void 0&&Je.Buffer.isBuffer(e)}function Ye(e){return Number.isSafeInteger(e)&&e>=0}function Xe(e){return e!=null&&typeof e!=`function`&&Ye(e.length)}function Ze(e){return e===`__proto__`}function F(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function I(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qe(e,t){return L(e,void 0,e,new Map,t)}function L(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(F(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,L(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(L(a,void 0,n,r,i));return t}if(P(e))return e.subarray();if(I(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),R(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,R(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(typeof e==`object`&&$e(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),R(t,e,n,r,i),t}return e}function R(e,t,n=e,r,i){let a=[...Object.keys(t),...ke(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=L(t[s],s,n,r,i))}}function $e(e){switch(k(e)){case N:case Fe:case Ie:case Re:case M:case Me:case Ke:case qe:case Ue:case We:case Ge:case Ne:case j:case Le:case Ae:case Pe:case A:case je:case ze:case Be:case Ve:case He:return!0;default:return!1}}function et(e,t){return Qe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(k(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),R(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case j:case A:case M:{let t=new e.constructor(e?.valueOf());return R(t,e),t}case N:{let t={};return R(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function tt(e){return et(e)}function z(e){return typeof e==`object`&&!!e&&k(e)===`[object Arguments]`}function B(e){return typeof e==`object`&&!!e}function nt(e){return B(e)&&Xe(e)}function V(e){return I(e)}function H(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(H.Cache||Map),n}H.Cache=Map;function rt(e){if(F(e))return e;if(Array.isArray(e)||I(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function it(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=U(i,t,r,new Map)}return i}function U(e,t,n,r){if(F(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return rt(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...ke(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Ze(o))continue;let s=t[o],c=e[o];if(z(s)&&(s={...s}),z(c)&&(c={...c}),P(s)&&(s=tt(s)),Array.isArray(s)){if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(nt(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[]}let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||B(c)&&B(s)&&(O(c)||O(s)||V(c)||V(s))?e[o]=U(c,s,n,r):c==null&&O(s)?e[o]=U({},s,n,r):c==null&&V(s)?e[o]=tt(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function at(e,...t){return it(e,...t,Oe)}var ot=c(),st={curveBasis:te,curveBasisClosed:re,curveBasisOpen:ae,curveBumpX:f,curveBumpY:ee,curveBundle:se,curveCardinalClosed:le,curveCardinalOpen:ue,curveCardinal:ce,curveCatmullRomClosed:me,curveCatmullRomOpen:he,curveCatmullRom:fe,curveLinear:u,curveLinearClosed:_e,curveMonotoneX:Ce,curveMonotoneY:we,curveNatural:De,curveStep:T,curveStepAfter:D,curveStepBefore:E},ct=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,lt=t(function(e,t){let n=ut(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(n)){let e=n.map(e=>e.args);r(e),i=o(i,[...e])}else i=n.args;if(!i)return;let s=a(e,t),c=`config`;return i[c]!==void 0&&(s===`flowchart-v2`&&(s=`flowchart`),i[s]=i[c],delete i[c]),i},`detectInit`),ut=t(function(e,t=null){try{let r=RegExp(`[%]{2}(?![{]${ct.source})(?=[}][%]{2}).*
|
|
1
|
+
import{w as e}from"./src-C_gRsKqw.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-CiSWvS1R.js";import{R as r,h as i,p as a,r as o,s}from"./chunk-BG4553SI-BNzrATwc.js";import{t as c}from"./dist-CumnGVmJ.js";function l(e){this._context=e}l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function u(e){return new l(e)}var d=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function f(e){return new d(e,!0)}function ee(e){return new d(e,!1)}function p(){}function m(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:m(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function te(e){return new h(e)}function ne(e){this._context=e}ne.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new ne(e)}function ie(e){this._context=e}ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:m(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ae(e){return new ie(e)}function oe(e,t){this._basis=new h(e),this._beta=t}oe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var se=(function e(t){function n(e){return t===1?new h(e):new oe(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function g(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var le=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t){this._context=e,this._k=(1-t)/6}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function de(e,t){this._context=e,this._alpha=t}de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fe=(function e(t){function n(e){return t?new de(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function pe(e,t){this._context=e,this._alpha=t}pe.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var me=(function e(t){function n(e){return t?new pe(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var he=(function e(t){function n(e){return t?new x(e,t):new y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ge(e){this._context=e}ge.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _e(e){return new ge(e)}function ve(e){return e<0?-1:1}function ye(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ve(a)+ve(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function be(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function S(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function C(e){this._context=e}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S(this,this._t0,be(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S(this,be(this,n=ye(this,e,t)),n);break;default:S(this,this._t0,n=ye(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xe(e){this._context=new Se(e)}(xe.prototype=Object.create(C.prototype)).point=function(e,t){C.prototype.point.call(this,t,e)};function Se(e){this._context=e}Se.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Ce(e){return new C(e)}function we(e){return new xe(e)}function Te(e){this._context=e}Te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ee(e),i=Ee(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ee(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function De(e){return new Te(e)}function w(e,t){this._context=e,this._t=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function T(e){return new w(e,.5)}function E(e){return new w(e,0)}function D(e){return new w(e,1)}function O(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Oe(){}function ke(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function k(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ae=`[object RegExp]`,A=`[object String]`,j=`[object Number]`,M=`[object Boolean]`,N=`[object Arguments]`,je=`[object Symbol]`,Me=`[object Date]`,Ne=`[object Map]`,Pe=`[object Set]`,Fe=`[object Array]`,Ie=`[object ArrayBuffer]`,Le=`[object Object]`,Re=`[object DataView]`,ze=`[object Uint8Array]`,Be=`[object Uint8ClampedArray]`,Ve=`[object Uint16Array]`,He=`[object Uint32Array]`,Ue=`[object Int8Array]`,We=`[object Int16Array]`,Ge=`[object Int32Array]`,Ke=`[object Float32Array]`,qe=`[object Float64Array]`,Je=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function P(e){return Je.Buffer!==void 0&&Je.Buffer.isBuffer(e)}function Ye(e){return Number.isSafeInteger(e)&&e>=0}function Xe(e){return e!=null&&typeof e!=`function`&&Ye(e.length)}function Ze(e){return e===`__proto__`}function F(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function I(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qe(e,t){return L(e,void 0,e,new Map,t)}function L(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(F(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,L(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(L(a,void 0,n,r,i));return t}if(P(e))return e.subarray();if(I(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),R(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,R(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(typeof e==`object`&&$e(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),R(t,e,n,r,i),t}return e}function R(e,t,n=e,r,i){let a=[...Object.keys(t),...ke(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=L(t[s],s,n,r,i))}}function $e(e){switch(k(e)){case N:case Fe:case Ie:case Re:case M:case Me:case Ke:case qe:case Ue:case We:case Ge:case Ne:case j:case Le:case Ae:case Pe:case A:case je:case ze:case Be:case Ve:case He:return!0;default:return!1}}function et(e,t){return Qe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(k(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),R(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case j:case A:case M:{let t=new e.constructor(e?.valueOf());return R(t,e),t}case N:{let t={};return R(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function tt(e){return et(e)}function z(e){return typeof e==`object`&&!!e&&k(e)===`[object Arguments]`}function B(e){return typeof e==`object`&&!!e}function nt(e){return B(e)&&Xe(e)}function V(e){return I(e)}function H(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(H.Cache||Map),n}H.Cache=Map;function rt(e){if(F(e))return e;if(Array.isArray(e)||I(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function it(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=U(i,t,r,new Map)}return i}function U(e,t,n,r){if(F(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return rt(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...ke(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Ze(o))continue;let s=t[o],c=e[o];if(z(s)&&(s={...s}),z(c)&&(c={...c}),P(s)&&(s=tt(s)),Array.isArray(s)){if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(nt(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[]}let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||B(c)&&B(s)&&(O(c)||O(s)||V(c)||V(s))?e[o]=U(c,s,n,r):c==null&&O(s)?e[o]=U({},s,n,r):c==null&&V(s)?e[o]=tt(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function at(e,...t){return it(e,...t,Oe)}var ot=c(),st={curveBasis:te,curveBasisClosed:re,curveBasisOpen:ae,curveBumpX:f,curveBumpY:ee,curveBundle:se,curveCardinalClosed:le,curveCardinalOpen:ue,curveCardinal:ce,curveCatmullRomClosed:me,curveCatmullRomOpen:he,curveCatmullRom:fe,curveLinear:u,curveLinearClosed:_e,curveMonotoneX:Ce,curveMonotoneY:we,curveNatural:De,curveStep:T,curveStepAfter:D,curveStepBefore:E},ct=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,lt=t(function(e,t){let n=ut(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(n)){let e=n.map(e=>e.args);r(e),i=o(i,[...e])}else i=n.args;if(!i)return;let s=a(e,t),c=`config`;return i[c]!==void 0&&(s===`flowchart-v2`&&(s=`flowchart`),i[s]=i[c],delete i[c]),i},`detectInit`),ut=t(function(e,t=null){try{let r=RegExp(`[%]{2}(?![{]${ct.source})(?=[}][%]{2}).*
|
|
2
2
|
`,`ig`);e=e.trim().replace(r,``).replace(/'/gm,`"`),n.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let a,o=[];for(;(a=i.exec(e))!==null;)if(a.index===i.lastIndex&&i.lastIndex++,a&&!t||t&&a[1]?.match(t)||t&&a[2]?.match(t)){let e=a[1]?a[1]:a[2],t=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:e,args:t})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return n.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),dt=t(function(e){return e.replace(i,``)},`removeDirectives`),ft=t(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function W(e,t){return e?st[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}t(W,`interpolateToCurve`);function pt(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,ot.sanitizeUrl)(n)}t(pt,`formatUrl`);var mt=t((e,...t)=>{let r=e.split(`.`),i=r.length-1,a=r[i],o=window;for(let t=0;t<i;t++)if(o=o[r[t]],!o){n.error(`Function name: ${e} not found in window`);return}o[a](...t)},`runFunc`);function G(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}t(G,`distance`);function ht(e){let t,n=0;return e.forEach(e=>{n+=G(e,t),t=e}),K(e,n/2)}t(ht,`traverseEdge`);function gt(e){return e.length===1?e[0]:ht(e)}t(gt,`calcLabelPosition`);var _t=t((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),K=t((e,t)=>{let n,r=t;for(let t of e){if(n){let e=G(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:_t((1-i)*n.x+i*t.x,5),y:_t((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),vt=t((e,t,r)=>{n.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=K(t,25),a=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+i.x)/2,s.y=-Math.cos(o)*a+(t[0].y+i.y)/2,s},`calcCardinalityPosition`);function yt(e,t,r){let i=structuredClone(r);n.info(`our points`,i),t!==`start_left`&&t!==`start_right`&&i.reverse();let a=K(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return t===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}t(yt,`calcTerminalLabelPosition`);function q(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}t(q,`getStylesFromArray`);var bt=0,xt=t(()=>(bt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+bt),`generateId`);function St(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}t(St,`makeRandomHex`);var Ct=t(e=>St(e.length),`random`),wt=t(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),Tt=t(function(e,t){let n=t.text.replace(s.lineBreakRegex,` `),[,r]=Q(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Et=H((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},n),s.hasBreaks(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Y(`${e} `,n),c=Y(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=Dt(e,t,`-`,n);i.push(a,...r),a=o}else c+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Dt=H((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}t(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}t(Y,`calculateTextWidth`);var X=H((t,n)=>{let{fontSize:r=12,fontFamily:i=`Arial`,fontWeight:a=400}=n;if(!t)return{width:0,height:0};let[,o]=Q(r),c=[`sans-serif`,i],l=t.split(s.lineBreakRegex),u=[],d=e(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of c){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=wt();i.text=r||``;let s=Tt(f,i).style(`font-size`,o).style(`font-weight`,a).style(`font-family`,e),c=(s._groups||s)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ot=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{t(this,`InitIDGenerator`)}},Z,kt=t(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function At(e){return`str`in e}t(At,`isDetailedError`);function jt(e){return e instanceof Error?e.message:String(e)}t(jt,`getErrorMessage`);var Mt=t((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=t(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,t){return at({},e,t)}t($,`cleanAndMerge`);var Nt={assignWithDepth:o,wrapLabel:Et,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:lt,detectDirective:ut,isSubstringInArray:ft,interpolateToCurve:W,calcLabelPosition:gt,calcCardinalityPosition:vt,calcTerminalLabelPosition:yt,formatUrl:pt,getStylesFromArray:q,generateId:xt,random:Ct,runFunc:mt,entityDecode:kt,insertTitle:Mt,isLabelCoordinateInPath:Rt,parseFontSize:Q,InitIDGenerator:Ot},Pt=t(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Ft=t(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),It=t((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function Lt(e){return e??null}t(Lt,`handleUndefinedAttr`);function Rt(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}t(Rt,`isLabelCoordinateInPath`);export{fe as $,Ke as A,A as B,P as C,M as D,Fe as E,Ne as F,Be as G,Ve as H,j as I,E as J,k as K,Le as L,We as M,Ge as N,Re as O,Ue as P,we as Q,Ae as R,Xe as S,Ie as T,He as U,je as V,ze as W,De as X,T as Y,Ce as Z,Nt as _,Ft as a,z as b,It as c,Lt as d,ce as et,W as f,dt as g,Ct as h,$ as i,u as it,qe as j,Me as k,jt as l,Q as m,J as n,f as nt,Pt as o,At as p,D as q,Y as r,ee as rt,xt as s,X as t,te as tt,q as u,Et as v,N as w,F as x,V as y,Pe as z};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{a as e,i as t,r as n,t as r}from"./chunk-X4PVCEUW-DBYVvmEP.js";import{w as i}from"./src-C_gRsKqw.js";import{n as a,r as o}from"./chunk-STOXU5M4-BmVWLvxQ.js";import{i as s,n as c,r as l,t as u}from"./chunk-R3KSYZAL-DFQRbzGi.js";import{s as d}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{a as f,d as p,m,r as h}from"./chunk-6MUBBAK2-DAO7STBG.js";import{B as g,M as _,b as v,f as y,g as b,k as x,w as S,y as C,z as w}from"./chunk-BG4553SI-BNzrATwc.js";import{t as T}from"./src-CiSWvS1R.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as D}from"./rough.esm-Dy-Kn_BL.js";import{t as O}from"./preload-helper-Zb0SmQx3.js";var k=1,A=3;async function j(e){let t=e.getElementsByTagName(`img`);if(!t||t.length===0)return;let n=!M(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,n){let t=v().fontSize?v().fontSize:window.getComputedStyle(document.body).fontSize,[n=y.fontSize]=m(t),r=n*5+`px`;e.style.minWidth=r,e.style.maxWidth=r}else e.style.width=`100%`;t(e)}E(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}E(j,`configureLabelImages`);function M(e){return e.nodeType===A?e.textContent?.trim()!==``:e.nodeType!==k||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(M)}E(M,`hasTextBesidesImages`);var N=3,P=32,F=E(async(e,t,n)=>{let r=v(),o=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),s=o.insert(`g`).attr(`class`,`label`).attr(`style`,p(t.labelStyle)),c=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),l=t.width?Math.max(t.width-2*(t.padding??0),P):v().flowchart?.wrappingWidth??200,u=r.c4?.wrap??!0?l:1/0,d=await Promise.all(c.map(async e=>{let n=s.append(`g`).attr(`class`,e.cssClass),o=await a(n,w(f(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:u,style:t.labelStyle},r);return i(o).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),i(o).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),m=Math.max(...d.map(({box:e})=>e.width),0),h=0;for(let{el:e,box:t}of d)e.attr(`transform`,`translate(${m/2-t.x-t.width/2}, ${h-t.y})`),h+=t.height+N;let g=d.length>0?h-N:0;return s.insert(`rect`,`:first-child`),s.attr(`transform`,`translate(${-m/2}, ${-g/2})`),{shapeSvg:o,bbox:s.node().getBBox(),halfPadding:(t.padding??0)/2,label:s}},`c4LabelHelper`),ee=E((e,t)=>{let{x:n,y:r,width:i,height:a}=e;return i>=t?e:`left`in e?{x:n,y:r,width:t,height:a,top:r,left:n,bottom:r+a,right:n+t,toJSON:E(()=>({}),`toJSON`)}:{x:n-(t-i)/2,y:r,width:t,height:a}},`withMinWidth`),I=E(async(e,t,n,{ignoreMinWidth:r=!1}={})=>{if(t.stereotype!==void 0)return F(e,t,n);let s,c=t.useHtmlLabels||b(v()?.htmlLabels);s=n||`node default`;let l=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId||t.id),u=l.insert(`g`).attr(`class`,`label`).attr(`style`,p(t.labelStyle)),d;d=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let m=!!t.icon||!!t.img,h=t.labelType===`markdown`,g=d&&!t.width&&!r?t.minWidth??0:0,_=await a(u,w(f(d),v()),{useHtmlLabels:c,width:t.width||t.wrappingWidth||v().flowchart?.wrappingWidth,minWidth:g,classes:h?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:m,markdown:h},v()),y=(t?.padding??0)/2,x;if(c){let e=_.children[0],t=i(_);await j(e),x=await o.measure(()=>e.getBoundingClientRect()),x=ee(x,g),t.attr(`width`,x.width),t.attr(`height`,x.height)}else x=await o.measure(()=>_.getBBox()),x=ee(x,g);return c?u.attr(`transform`,`translate(`+-x.width/2+`, `+-x.height/2+`)`):u.attr(`transform`,`translate(0, `+-x.height/2+`)`),t.centerLabel&&u.attr(`transform`,`translate(`+-x.width/2+`, `+-x.height/2+`)`),u.insert(`rect`,`:first-child`),{shapeSvg:l,bbox:x,halfPadding:y,label:u}},`labelHelper`),L=E(async(e,t,n)=>{let r=n.useHtmlLabels??S(v()),s=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),c=await a(s,w(f(t),v()),{useHtmlLabels:r,width:n.width||v()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),l=n.padding/2,u;if(S(v())){let e=c.children[0],t=i(c);u=await o.measure(()=>e.getBoundingClientRect()),t.attr(`width`,u.width),t.attr(`height`,u.height)}else u=await o.measure(()=>c.getBBox());return r?s.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):s.attr(`transform`,`translate(0, `+-u.height/2+`)`),n.centerLabel&&s.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),s.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:l,label:s}},`insertLabel`),R=E((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),z=E((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function B(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}E(B,`createPathFromPoints`);function V(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}E(V,`generateFullSineWavePoints`);function H(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}E(H,`generateCirclePoints`);function U(e){let t=Array.from(e.childNodes).filter(e=>e.tagName===`path`),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),r=t.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);n.setAttribute(`d`,r);let i=t.find(e=>e.getAttribute(`fill`)!==`none`),a=t.find(e=>e.getAttribute(`stroke`)!==`none`),o=E((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(i){let e={fill:o(i,`fill`),"fill-opacity":o(i,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(a){let e={stroke:o(a,`stroke`),"stroke-width":o(a,`stroke-width`)??`1`,"stroke-opacity":o(a,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return s.appendChild(n),s}E(U,`mergePaths`);var W=E((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`);function te(e,t){return e.intersect(t)}E(te,`intersectNode`);var ne=te;function re(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}E(re,`intersectEllipse`);var G=re;function K(e,t,n){return G(e,t,t,n)}E(K,`intersectCircle`);var ie=K;function ae(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&oe(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&oe(p,m))return;let h=i*d-u*a;return h===0?void 0:{x:(a*f-d*o)/h,y:(u*o-i*f)/h}}}E(ae,`intersectLine`);function oe(e,t){return e*t>0}E(oe,`sameSign`);var se=ae;function ce(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=se(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}E(ce,`intersectPolygon`);var q={node:ne,circle:ie,ellipse:G,polygon:ce,rect:W},J=E((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),le=E(async(e,t,n,r=!1,i=!1)=>{let o=t||``;typeof o==`object`&&(o=o[0]);let s=v(),c=S(s);return await a(e,o,{style:n,isTitle:r,useHtmlLabels:c,markdown:!1,isNode:i,width:1/0},s)},`createLabel`);function ue(n,r){let{labelStyles:i}=t(r);r.labelStyle=i;let a=z(r),o=a;a||(o=`anchor`);let s=n.insert(`g`).attr(`class`,o).attr(`id`,r.domId||r.id),{cssStyles:c}=r,l=D.svg(s),u=e(r,{fill:`black`,stroke:`none`,fillStyle:`solid`});r.look!==`handDrawn`&&(u.roughness=0);let d=l.circle(0,0,2,u),f=s.insert(()=>d,`:first-child`);return f.attr(`class`,`anchor`).attr(`style`,p(c)),R(r,f),r.intersect=function(e){return T.info(`Circle intersect`,r,1,e),q.circle(r,1,e)},s}E(ue,`anchor`);function de(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}E(de,`generateArcPoints`);function fe(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}E(fe,`calculateArcSagitta`);async function pe(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o,l=E(e=>e+c,`calcTotalHeight`),u=E(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:d,bbox:f}=await I(n,r,z(r)),p=l(r?.height?r?.height:f.height),[m,h]=u(p),g=fe(p,m,h),_=(r?.width?r?.width:f.width)+s*2+g-g,v=p,{cssStyles:y}=r,b=[{x:_/2,y:-v/2},{x:-_/2,y:-v/2},...de(-_/2,-v/2,-_/2,v/2,m,h,!1),{x:_/2,y:v/2},...de(_/2,v/2,_/2,-v/2,m,h,!0)],x=D.svg(d),S=e(r,{});r.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=B(b),w=x.path(C,S),T=d.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&r.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,y),a&&r.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,a),T.attr(`transform`,`translate(${m/2}, 0)`),R(r,T),r.intersect=function(e){return q.polygon(r,b,e)},d}E(pe,`bowTieRect`);async function me(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c,label:l}=await I(n,r,z(r)),u=i?.nodeBorder??i?.lineColor??`currentColor`,d=r.padding??12,f=Math.max(c.width+d*2,r.width??0,80),p=Math.max(Math.min(f*.08,12),5),m=Math.max(c.height+d*2+p,r.height??0),h=-m/2+p,g=m/2,_=f*.72,v=[`M${-f/2},${h}`,`L${-_/2},${g}`,`A${_/2},${p} 0 0 0 ${_/2},${g}`,`L${f/2},${h}`,`A${f/2},${p} 0 0 0 ${-f/2},${h}`,`Z`].join(` `),{cssStyles:y}=r,b=s.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(r.look===`handDrawn`){let t=D.svg(s).path(v,e(r,{}));b.node()?.appendChild(t),y&&b.attr(`style`,y)}else b.append(`path`).attr(`d`,v).attr(`style`,o);b.append(`ellipse`).attr(`cx`,0).attr(`cy`,h).attr(`rx`,f/2).attr(`ry`,p).attr(`style`,`fill:none;stroke:${u};stroke-width:1px`),R(r,b);let x=h+(g-h)/2;l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${x-c.height/2-(c.y-(c.top??0))})`);let S=E((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*p*Math.sin(a)}}),`arc`),C=[...S(f/2,h,-1),...S(_/2,g,1).reverse()];return r.intersect=function(e){return q.polygon(r,C,e)},s}E(me,`bucket`);var he=20,ge=8,_e=80,ve=8;function ye(e){let{themeVariables:t}=v(),n=t.clusterBkg,r=t.clusterBorder;switch(e){case`flow`:return{rx:10,fill:`none`,stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:`flow-collapsed`};default:return{rx:ve,fill:n,stroke:r,cssClass:`collapsed-group`}}}E(ye,`getCollapsedStyle`);async function be(n,r){let i=ye(r.metadata?.containerType),{fill:a,stroke:o}=i,{nodeStyles:s}=t(r),{shapeSvg:c,bbox:l}=await I(n,r,z(r)),{theme:u,themeVariables:f}=v();d(c,r.colorIndex,u,f.borderColorArray);let m=r.padding??8,h=l.height,g=Math.max(l.width+m*2,_e,r?.width??0),_=Math.max(h+ge+he+m*2,r?.height??0),y=-g/2,b=-_/2,x=-(ge+he)/2,C=c.select(`.label`);C&&(r.useHtmlLabels??S(v())?C.attr(`transform`,`translate(${-l.width/2}, ${-l.height/2+x})`):C.attr(`transform`,`translate(0, ${-l.height/2+x})`));let w;if(r.look===`handDrawn`){let t=D.svg(c),n=e(r,{fill:a,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...a===`none`?{fillWeight:0}:{fillStyle:`solid`}}),s=t.path(J(y,b,g,_,i.rx),n);w=c.insert(()=>s,`:first-child`),w.attr(`class`,`basic label-container `+i.cssClass).attr(`style`,p(r.cssStyles))}else w=c.insert(`rect`,`:first-child`),w.attr(`class`,`basic label-container `+i.cssClass).attr(`style`,s).attr(`rx`,i.rx).attr(`ry`,i.rx).attr(`x`,y).attr(`y`,b).attr(`width`,g).attr(`height`,_).attr(`fill`,a).attr(`stroke`,o),i.strokeWidth!==void 0&&w.attr(`stroke-width`,i.strokeWidth+`px`);let T=b+m+h+ge;c.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,y+8).attr(`y1`,T).attr(`x2`,y+g-8).attr(`y2`,T).attr(`stroke`,o).attr(`stroke-dasharray`,`3, 3`);let E=T+he/2;for(let e=-1;e<=1;e++)c.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,E).attr(`r`,2.5).attr(`fill`,o);return R(r,w),r.calcIntersect=function(e,t){return q.rect(e,t)},r.intersect=function(e){return q.rect(r,e)},c}E(be,`collapsedGroup`);function Y(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}E(Y,`insertPolygonShape`);var xe=[`right`,`left`,`up`,`down`],Se=`point`,Ce=E(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),we=E(e=>xe.filter(t=>e.has(t)).join(`|`)||Se,`getDirectionKey`),Te={"right|left|up|down":E(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":E(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":E(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":E(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":E(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":E(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":E(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":E(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":E(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":E(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":E(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:E(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:E(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:E(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:E(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[Se]:()=>[{x:0,y:0}]},Ee=E((e,t,n,r)=>{let i=Ce(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,c=r??t.width+2*s+2*a;return(Te[we(i)]??Te[Se])({height:o,midpoint:s,padding:a,width:c})},`getArrowPoints`);async function De(e,t){let n=t,{shapeSvg:r,bbox:i}=await I(e,n,z(n)),a=n.padding??0,o=i.height+2*a,s=o/2,c=i.width+2*s+a,l=n.width??0,u=n.positioned&&(n.widthInColumns??1)>1&&l>c?l:c,d=Ee(n.directions??[],i,n,u),f=Y(r,u,o,d);return f.attr(`style`,n.style??null),R(n,f),n.intersect=function(e){return q.polygon(n,d,e)},r}E(De,`block_arrow`);async function Oe(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c,label:l}=await I(n,r,z(r)),u=i?.nodeBorder??i?.lineColor??`currentColor`,d=r.padding??12,f=Math.max(c.width+d*2,r.width??0,90),p=Math.max(c.height+d*2+18,r.height??0),m=-p/2,{cssStyles:h}=r,g=s.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(r.look===`handDrawn`){let t=D.svg(s).path(J(-f/2,m,f,p,12),e(r,{}));g.node()?.appendChild(t),h&&g.attr(`style`,h)}else g.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,o);g.append(`line`).attr(`x1`,-f/2).attr(`y1`,m+18).attr(`x2`,f/2).attr(`y2`,m+18).attr(`style`,`stroke:${u};stroke-width:1px`);for(let e=0;e<3;e++)g.append(`circle`).attr(`cx`,-f/2+12+e*9).attr(`cy`,m+9).attr(`r`,2.5).attr(`style`,`fill:${u};stroke:none`);g.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-f/2+44).attr(`y`,m+4).attr(`width`,Math.max(f-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${u};stroke-width:1px;opacity:0.6`),R(r,g);let _=m+18+(p-18)/2;return l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${_-c.height/2-(c.y-(c.top??0))})`),r.intersect=function(e){return q.rect(r,e)},s}E(Oe,`browser`);var ke=12;async function Ae(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?28:o,c=r.look===`neo`?24:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=(r?.width??u.width)+(r.look===`neo`?s*2:s+ke),f=(r?.height??u.height)+(r.look===`neo`?c*2:c),p=d,m=-f,h=[{x:0+ke,y:m},{x:p,y:m},{x:p,y:0},{x:0,y:0},{x:0,y:m+ke},{x:0+ke,y:m}],g,{cssStyles:_}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=B(h),a=t.path(i,n);g=l.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-d/2}, ${f/2})`),_&&g.attr(`style`,_)}else g=Y(l,d,f,h);return a&&g.attr(`style`,a),R(r,g),r.intersect=function(e){return q.polygon(r,h,e)},l}E(Ae,`card`);function je(n,r){let{nodeStyles:i}=t(r);r.label=``;let a=n.insert(`g`).attr(`class`,z(r)).attr(`id`,r.domId??r.id),{cssStyles:o}=r,s=Math.max(28,r.width??0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=D.svg(a),u=e(r,{});r.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=B(c),f=l.path(d,u),p=a.insert(()=>f,`:first-child`);return o&&r.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),i&&r.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,i),r.width=28,r.height=28,r.intersect=function(e){return q.polygon(r,c,e)},a}E(je,`choice`);async function Me(n,r,i){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c,halfPadding:l}=await I(n,r,z(r),{ignoreMinWidth:!0}),u=i?.padding??l,d=Math.sqrt(c.width**2+c.height**2)/2,f=r.look===`neo`?d+16:d+u,m,{cssStyles:h}=r;if(r.look===`handDrawn`){let t=D.svg(s),n=e(r,{}),i=t.circle(0,0,f*2,n);m=s.insert(()=>i,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,p(h))}else m=s.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,o).attr(`r`,f).attr(`cx`,0).attr(`cy`,0);return R(r,m),r.calcIntersect=function(e,t){let n=e.width/2;return q.circle(e,n,t)},r.intersect=function(e){return T.info(`Circle intersect`,r,f,e),q.circle(r,f,e)},s}E(Me,`circle`);async function Ne(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await I(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,c=n.positioned?n.width??0:i.width+s,l=n.positioned?n.height??0:i.height+s,u=n.positioned?-c/2:-i.width/2-a,d=n.positioned?-l/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,u).attr(`y`,d).attr(`width`,c).attr(`height`,l),R(n,o),n.intersect=function(e){return q.rect(n,e)},r}E(Ne,`composite`);async function Pe(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c,label:l}=await I(n,r,z(r)),u=i?.nodeBorder??i?.lineColor??`currentColor`,d=r.padding??12,f=Math.max(c.width+d*2,r.width??0,90),p=Math.max(c.height+d*2+20,r.height??0),m=-p/2,{cssStyles:h}=r,g=s.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(r.look===`handDrawn`){let t=D.svg(s).path(J(-f/2,m,f,p,12),e(r,{}));g.node()?.appendChild(t),h&&g.attr(`style`,h)}else g.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,o);g.append(`text`).attr(`x`,-f/2+12).attr(`y`,m+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${u}`).text(`>_`),R(r,g);let _=m+20+(p-20)/2;return l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${_-c.height/2-(c.y-(c.top??0))})`),r.intersect=function(e){return q.rect(r,e)},s}E(Pe,`consoleWindow`);function Fe(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
2
|
+
M ${i.x},${i.y} L ${o.x},${o.y}`}E(Fe,`createLine`);function Ie(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i,r.label=``;let o=n.insert(`g`).attr(`class`,z(r)).attr(`id`,r.domId??r.id),s=Math.max(30,r?.width??0),{cssStyles:c}=r,l=D.svg(o),u=e(r,{});r.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=l.circle(0,0,s*2,u),f=Fe(s),p=l.path(f,u),m=o.insert(()=>d,`:first-child`);return m.insert(()=>p),m.attr(`class`,`outer-path`),c&&r.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,c),a&&r.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),R(r,m),r.intersect=function(e){return T.info(`crossedCircle intersect`,r,{radius:s,point:e}),q.circle(r,s,e)},o}E(Ie,`crossedCircle`);function Le(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}E(Le,`generateCirclePoints`);async function Re(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.look===`neo`?18:r.padding??0,u=r.look===`neo`?12:r.padding??0,d=s.width+l,f=s.height+u,p=Math.max(5,f*.1),{cssStyles:m}=r,h=[...Le(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...Le(d/2+p*2,-p,p,20,-180,-270),...Le(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...Le(d/2,f/2,p,20,0,90)],g=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...Le(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...Le(d/2+d*.1,-p,p,20,-180,-270),...Le(d/2+d*.1,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...Le(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2,y:f/2+p}],_=D.svg(o),v=e(r,{fill:`none`});r.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=B(h).replace(`Z`,``),b=_.path(y,v),x=B(g),S=_.path(x,{...v}),C=o.insert(`g`,`:first-child`);return C.insert(()=>S,`:first-child`).attr(`stroke-opacity`,0),C.insert(()=>b,`:first-child`),C.attr(`class`,`text`),m&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,m),a&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),C.attr(`transform`,`translate(${p}, 0)`),c.attr(`transform`,`translate(${-d/2+p-(s.x-(s.left??0))},${-f/2+(r.padding??0)/2-(s.y-(s.top??0))})`),R(r,C),r.intersect=function(e){return q.polygon(r,g,e)},o}E(Re,`curlyBraceLeft`);function ze(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}E(ze,`generateCirclePoints`);async function Be(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.look===`neo`?18:r.padding??0,u=r.look===`neo`?12:r.padding??0,d=s.width+(r.look===`neo`?l*2:l),f=s.height+(r.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=r,h=[...ze(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...ze(d/2+p*2,-p,p,20,-180,-270),...ze(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...ze(d/2,f/2,p,20,0,90)],g=[{x:-d/2,y:-f/2-p},{x:d/2,y:-f/2-p},...ze(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...ze(d/2+p*2,-p,p,20,-180,-270),...ze(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...ze(d/2,f/2,p,20,0,90),{x:d/2,y:f/2+p},{x:-d/2,y:f/2+p}],_=D.svg(o),v=e(r,{fill:`none`});r.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=B(h).replace(`Z`,``),b=_.path(y,v),x=B(g),S=_.path(x,{...v}),C=o.insert(`g`,`:first-child`);return C.insert(()=>S,`:first-child`).attr(`stroke-opacity`,0),C.insert(()=>b,`:first-child`),C.attr(`class`,`text`),m&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,m),a&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),C.attr(`transform`,`translate(${-p}, 0)`),c.attr(`transform`,`translate(${-d/2+(r.padding??0)/2-(s.x-(s.left??0))},${-f/2+(r.padding??0)/2-(s.y-(s.top??0))})`),R(r,C),r.intersect=function(e){return q.polygon(r,g,e)},o}E(Be,`curlyBraceRight`);function X(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}E(X,`generateCirclePoints`);async function Ve(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.look===`neo`?18:r.padding??0,u=r.look===`neo`?12:r.padding??0,d=s.width+(r.look===`neo`?l*2:l),f=s.height+(r.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=r,h=[...X(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...X(d/2+p*2,-p,p,20,-180,-270),...X(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...X(d/2,f/2,p,20,0,90)],g=[...X(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...X(-d/2-p/2,-p,p,20,0,90),...X(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...X(-d/2+p+p/2,f/2,p,30,-180,-270)],_=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...X(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...X(d/2+p*2,-p,p,20,-180,-270),...X(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...X(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2-p-p/2,y:f/2+p},...X(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...X(-d/2-p/2,-p,p,20,0,90),...X(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...X(-d/2+p+p/2,f/2,p,30,-180,-270)],v=D.svg(o),y=e(r,{fill:`none`});r.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=B(h).replace(`Z`,``),x=v.path(b,y),S=B(g).replace(`Z`,``),C=v.path(S,y),w=B(_),T=v.path(w,{...y}),E=o.insert(`g`,`:first-child`);return E.insert(()=>T,`:first-child`).attr(`stroke-opacity`,0),E.insert(()=>x,`:first-child`),E.insert(()=>C,`:first-child`),E.attr(`class`,`text`),m&&r.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,m),a&&r.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),E.attr(`transform`,`translate(${p-p/4}, 0)`),c.attr(`transform`,`translate(${-d/2+(r.padding??0)/2-(s.x-(s.left??0))},${-f/2+(r.padding??0)/2-(s.y-(s.top??0))})`),R(r,E),r.intersect=function(e){return q.polygon(r,_,e)},o}E(Ve,`curlyBraces`);async function He(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(5,u.height+c*2,r?.height??0),f=d/2,p=f-Math.sqrt(Math.max(0,f**2-(u.height/2)**2)),m=Math.max(d/4,p),h=Math.max(20,u.width+s*2+m*2,(u.width+s*2)*1.25,r?.width??0),{cssStyles:g}=r,_=D.svg(l),v=e(r,{});r.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=h,b=d,x=y-f,S=b/4,C=[{x,y:0},{x:S,y:0},{x:0,y:b/2},{x:S,y:b},{x,y:b},...H(-x,-b/2,f,50,270,90)],w=B(C),T=_.path(w,v),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`),g&&r.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,g),a&&r.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,a),E.attr(`transform`,`translate(${-h/2}, ${-d/2})`),R(r,E),r.intersect=function(e){return q.polygon(r,C,e)},l}E(He,`curvedTrapezoid`);async function Ue(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.padding??20,u=Math.max(s.width+l*2,r.width??0,100),d=Math.min(Math.max(u*.23,16),56),f=d*.27,p=Math.max(s.height+l*2,r.height?r.height-(2*d-f):0),m=Math.min(u*.177,p*.45),h=p+2*d-f,g=-h/2,_=g+2*d-f,v=o.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:y}=r;if(r.look===`handDrawn`){let t=D.svg(o),n=e(r,{}),i=t.path(J(-u/2,_,u,p,m),n),a=t.circle(0,g+d,d*2,n);v.insert(()=>a,`:first-child`),v.insert(()=>i,`:first-child`),y&&v.attr(`style`,y)}else v.append(`rect`).attr(`x`,-u/2).attr(`y`,_).attr(`width`,u).attr(`height`,p).attr(`rx`,m).attr(`ry`,m).attr(`style`,a),v.append(`circle`).attr(`cx`,0).attr(`cy`,g+d).attr(`r`,d).attr(`style`,a);R(r,v);let b=_+p/2;c.attr(`transform`,`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${b-s.height/2-(s.y-(s.top??0))})`);let x=g+d,S=Math.asin(Math.min(1,(_-x)/d))*180/Math.PI,C=[...H(0,-x,d,24,180+S,-S),...H(-(-u/2+m),-(_+m),m,12,90,0),...H(-(-u/2+m),-(h/2-m),m,12,360,270),...H(-(u/2-m),-(h/2-m),m,12,270,180),...H(-(u/2-m),-(_+m),m,12,180,90)];return r.intersect=function(e){return q.polygon(r,C,e)},o}E(Ue,`person`);var We=E((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),Ge=E((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),Ke=E((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),qe=8,Je=8;async function Ye(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?24:o,c=r.look===`neo`?24:o,l=r.width??0;if(r.width&&(r.width-=c,r.width<Je&&(r.width=Je)),r.height){let e=l/2/(2.5+l/50);r.height=r.height-s-e*3,r.height<qe&&(r.height=qe)}let{shapeSvg:u,bbox:d,label:f}=await I(n,r,z(r)),m=Math.max(r.width??0,d.width)+c,h=m/2,g=h/(2.5+m/50),_=Math.max(r.height??0,d.height)+s+g,v,{cssStyles:y}=r;if(r.look===`handDrawn`){let t=D.svg(u),n=Ge(0,0,m,_,h,g),i=Ke(0,g,m,_,h,g),a=e(r,{}),o=t.path(n,a),s=t.path(i,e(r,{fill:`none`}));v=u.insert(()=>s,`:first-child`),v=u.insert(()=>o,`:first-child`),v.attr(`class`,`basic label-container`),y&&v.attr(`style`,y)}else{let e=We(0,0,m,_,h,g);v=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,p(y)).attr(`style`,a)}return v.attr(`label-offset-y`,g),v.attr(`transform`,`translate(${-m/2}, ${-(_/2+g)})`),R(r,v),f.attr(`transform`,`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+(r.padding??0)/1.5-(d.y-(d.top??0))})`),r.intersect=function(e){let t=q.rect(r,e),n=t.x-(r.x??0);if(h!=0&&(Math.abs(n)<(r.width??0)/2||Math.abs(n)==(r.width??0)/2&&Math.abs(t.y-(r.y??0))>(r.height??0)/2-g)){let i=g*g*(1-n*n/(h*h));i>0&&(i=Math.sqrt(i)),i=g-i,e.y-(r.y??0)>0&&(i=-i),t.y+=i}return t},u}E(Ye,`cylinder`);async function Xe(n,r,i){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c}=await I(n,r,z(r)),l=Math.max(c.width+i.labelPaddingX*2,r?.width||0),u=Math.max(c.height+i.labelPaddingY*2,r?.height||0),d=-l/2,f=-u/2,m,{rx:h,ry:g}=r,{cssStyles:_}=r;if(i?.rx&&i.ry&&(h=i.rx,g=i.ry),r.look===`handDrawn`){let t=D.svg(s),n=e(r,{}),i=h||g?t.path(J(d,f,l,u,h||0),n):t.rectangle(d,f,l,u,n);m=s.insert(()=>i,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,p(_))}else m=s.insert(`rect`,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,o).attr(`rx`,p(h)).attr(`ry`,p(g)).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u);return R(r,m,r.look===`handDrawn`?void 0:{width:l,height:u}),r.calcIntersect=function(e,t){return q.rect(e,t)},r.intersect=function(e){return q.rect(r,e)},s}E(Xe,`drawRect`);async function Ze(t,n){let{cssClasses:r,labelPaddingX:i,labelPaddingY:a,padding:o,width:s,height:c}=n,l=await Xe(t,n,{rx:0,ry:0,classes:r??``,labelPaddingX:i??(o??0)*2,labelPaddingY:a??o??0});if(n.look===`handDrawn`){let t=D.svg(l),r=e(n,{}),i=l.select(`.basic.label-container > path:nth-child(2)`),a=i.node();if(!a)return l;let o=null;if(a instanceof SVGGraphicsElement)o=a.getBBox();else return l;return l.insert(()=>t.line(o.x,o.y,o.x+o.width,o.y,r),`.basic.label-container g.label`),l.insert(()=>t.line(o.x,o.y+o.height,o.x+o.width,o.y+o.height,r),`.basic.label-container g.label`),i.remove(),l}let u=l.select(`.basic.label-container`),d=(Number(u.attr(`width`))||s)??0,f=(Number(u.attr(`height`))||c)??0;return d>0&&f>0&&u.attr(`stroke-dasharray`,`${d} ${f}`),l}E(Ze,`datastore`);async function Qe(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.look===`neo`?16:r.padding??0,s=r.look===`neo`?16:r.padding??0,{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=l.width+o,f=l.height+s,p=f*.2,m=-d/2,h=-f/2-p/2,{cssStyles:g}=r,_=D.svg(c),v=e(r,{});r.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:m,y:h+p},{x:-m,y:h+p},{x:-m,y:-h},{x:m,y:-h},{x:m,y:h},{x:-m,y:h},{x:-m,y:h+p}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=c.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),g&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,g),a&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,a),u.attr(`transform`,`translate(${m+(r.padding??0)/2-(l.x-(l.left??0))}, ${h+p+(r.padding??0)/2-(l.y-(l.top??0))})`),R(r,x),r.intersect=function(e){return q.rect(r,e)},c}E(Qe,`dividedRectangle`);async function $e(n,r){let{labelStyles:i,nodeStyles:a}=t(r),o=r.look===`neo`?12:5;r.labelStyle=i;let s=r.padding??0,c=r.look===`neo`?16:s,{shapeSvg:l,bbox:u}=await I(n,r,z(r),{ignoreMinWidth:!0}),d=Math.sqrt(u.width**2+u.height**2)/2,f=(r?.width?r?.width/2:d)+(c??0),m=f+o,h,{cssStyles:g}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{roughness:.2,strokeWidth:2.5}),i=e(r,{roughness:.2,strokeWidth:1.5}),a=t.circle(0,0,m*2,n),o=t.circle(0,0,f*2,i);h=l.insert(`g`,`:first-child`),h.attr(`class`,p(r.cssClasses)).attr(`style`,p(g)),h.node()?.appendChild(a),h.node()?.appendChild(o)}else{h=l.insert(`g`,`:first-child`);let e=h.insert(`circle`,`:first-child`),t=h.insert(`circle`);h.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,m).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,f).attr(`cx`,0).attr(`cy`,0)}return R(r,h),r.intersect=function(e){return T.info(`DoubleCircle intersect`,r,m,e),q.circle(r,m,e)},l}E($e,`doublecircle`);async function et(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:c}=await I(n,r,z(r)),{theme:l,themeVariables:u}=v();d(o,r.colorIndex,l,u.borderColorArray);let f=c??10,p=s.width/2+f*2,m=s.height/2+f*2,h,{cssStyles:g}=r;if(r.look===`handDrawn`){let t=D.svg(o),n=e(r,{}),i=t.ellipse(0,0,p*2,m*2,n);h=o.insert(()=>i,`:first-child`),h.attr(`class`,`basic label-container`),g&&h.attr(`style`,g)}else h=o.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,p).attr(`ry`,m).attr(`cx`,0).attr(`cy`,0);return r.width=p*2,r.height=m*2,R(r,h),r.calcIntersect=function(e,t){let n=e.width/2,r=e.height/2;return q.ellipse(e,n,r,t)},r.intersect=function(e){return q.ellipse(r,p,m,e)},o}E(et,`usecaseEllipse`);function tt(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.label=``,r.labelStyle=a;let s=n.insert(`g`).attr(`class`,z(r)).attr(`id`,r.domId??r.id),{cssStyles:c}=r,l=D.svg(s),{nodeBorder:u}=i,d=e(r,{fillStyle:`solid`});r.look!==`handDrawn`&&(d.roughness=0);let f=l.circle(0,0,14,d),p=s.insert(()=>f,`:first-child`);return p.selectAll(`path`).attr(`style`,`fill: ${u} !important;`),c&&c.length>0&&r.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,c),o&&r.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),R(r,p),r.intersect=function(e){return T.info(`filledCircle intersect`,r,{radius:7,point:e}),q.circle(r,7,e)},s}E(tt,`filledCircle`);var nt=10,rt=10;async function it(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?o*2:o;(r.width||r.height)&&(r.height=r?.height??0,r.height<nt&&(r.height=nt),r.width=(r?.width??0)-s-s/2,r.width<rt&&(r.width=rt));let{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=(r?.width?r?.width:l.width)+(s??0),f=r?.height?r?.height:d+l.height,p=f,m=[{x:0,y:-f},{x:p,y:-f},{x:p/2,y:0}],{cssStyles:h}=r,g=D.svg(c),_=e(r,{});r.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=B(m),y=g.path(v,_),b=c.insert(()=>y,`:first-child`).attr(`transform`,`translate(${-f/2}, ${f/2})`).attr(`class`,`outer-path`);return h&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,h),a&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),r.width=d,r.height=f,R(r,b),u.attr(`transform`,`translate(${-l.width/2-(l.x-(l.left??0))}, ${-f/2+(r.padding??0)/2+(l.y-(l.top??0))})`),r.intersect=function(e){return T.info(`Triangle intersect`,r,m,e),q.polygon(r,m,e)},c}E(it,`flippedTriangle`);async function at(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.padding??12,u=Math.max(s.width+l*2,r.width??0,90),d=s.height+l*2,f=Math.max(Math.min(d*.16,14),8),p=Math.max(d+f,r.height??0),m=p-f,h=Math.max(u*.38,28),g=-p/2,_=[{x:-u/2,y:g},{x:-u/2+h,y:g},{x:-u/2+h,y:g+f},{x:u/2,y:g+f},{x:u/2,y:p/2},{x:-u/2,y:p/2}],v=[`M${_[0].x},${_[0].y}`,..._.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:y}=r,b;if(r.look===`handDrawn`){let t=D.svg(o).path(v,e(r,{}));b=o.insert(()=>t,`:first-child`).attr(`class`,`basic label-container`),y&&b.attr(`style`,y)}else b=o.insert(`path`,`:first-child`).attr(`d`,v).attr(`class`,`basic label-container`).attr(`style`,a);r.look===`handDrawn`?R(r,b):R(r,b,{width:u,height:p});let x=g+f+m/2;return c.attr(`transform`,`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),r.intersect=function(e){return q.polygon(r,_,e)},o}E(at,`folder`);function ot(n,r,{dir:i,config:{state:a,themeVariables:o}}){let{nodeStyles:s}=t(r);r.label=``;let c=n.insert(`g`).attr(`class`,z(r)).attr(`id`,r.domId??r.id),{cssStyles:l}=r,u=Math.max(70,r?.width??0),d=Math.max(10,r?.height??0);(i===`LR`||i===`RL`)&&(u=Math.max(10,r?.width??0),d=Math.max(70,r?.height??0));let f=-1*u/2,p=-1*d/2,m=D.svg(c),h=e(r,{stroke:o.lineColor,fill:o.lineColor});r.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(f,p,u,d,h),_=c.insert(()=>g,`:first-child`);l&&r.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,l),s&&r.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,s),R(r,_);let v=a?.padding??0;return r.width&&r.height&&(r.width+=v/2||0,r.height+=v/2||0),r.intersect=function(e){return q.rect(r,e)},c}E(ot,`forkJoin`);async function st(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.look===`neo`?16:r.padding??0,s=r.look===`neo`?12:r.padding??0;(r.width||r.height)&&(r.height=(r?.height??0)-s*2,r.height<10&&(r.height=10),r.width=(r?.width??0)-o*2,r.width<15&&(r.width=15));let{shapeSvg:c,bbox:l}=await I(n,r,z(r)),u=(r?.height?r?.height:Math.max(10,l.height))+s*2,d=u/2,f=d-Math.sqrt(Math.max(0,d**2-(l.height/2)**2)),p=(r?.width?r?.width:Math.max(15,l.width)+f*2)+o*2,{cssStyles:m}=r,h=D.svg(c),g=e(r,{});r.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-p/2,y:-u/2},{x:p/2-d,y:-u/2},...H(-p/2+d,0,d,50,90,270),{x:p/2-d,y:u/2},{x:-p/2,y:u/2}],v=B(_),y=h.path(v,g),b=c.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),a&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),R(r,b),r.intersect=function(e){return T.info(`Pill intersect`,r,{radius:d,point:e}),q.polygon(r,_,e)},c}E(st,`halfRoundedRectangle`);var ct=E((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function lt(n,r){let{labelStyles:i,nodeStyles:a}=t(r),o=r.look===`neo`?3.5:4;r.labelStyle=i;let s=r.padding??0,c=r.look===`neo`?70:s,l=r.look===`neo`?32:s;if(r.width||r.height){let e=(r.height??0)/o;r.width=(r?.width??0)-2*e-l,r.height=(r.height??0)-c}let{shapeSvg:u,bbox:d}=await I(n,r,z(r)),f=(r?.height?r?.height:d.height)+c,p=f/o,m=(r?.width?r?.width:d.width)+2*p+l,h=[{x:p,y:0},{x:m-p,y:0},{x:m,y:-f/2},{x:m-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}],g,{cssStyles:_}=r;if(r.look===`handDrawn`){let t=D.svg(u),n=e(r,{}),i=ct(0,0,m,f,p),a=t.path(i,n);g=u.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-m/2}, ${f/2})`),_&&g.attr(`style`,_)}else g=Y(u,m,f,h);return a&&g.attr(`style`,a),r.width=m,r.height=f,R(r,g),r.intersect=function(e){return q.polygon(r,h,e)},u}E(lt,`hexagon`);async function ut(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.label=``,r.labelStyle=i;let{shapeSvg:o}=await I(n,r,z(r)),s=Math.max(30,r?.width??0),c=Math.max(30,r?.height??0),{cssStyles:l}=r,u=D.svg(o),d=e(r,{});r.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=[{x:0,y:0},{x:s,y:0},{x:0,y:c},{x:s,y:c}],p=B(f),m=u.path(p,d),h=o.insert(()=>m,`:first-child`);return h.attr(`class`,`basic label-container outer-path`),l&&r.look!==`handDrawn`&&h.selectChildren(`path`).attr(`style`,l),a&&r.look!==`handDrawn`&&h.selectChildren(`path`).attr(`style`,a),h.attr(`transform`,`translate(${-s/2}, ${-c/2})`),R(r,h),r.intersect=function(e){return T.info(`Pill intersect`,r,{points:f}),q.polygon(r,f,e)},o}E(ut,`hourglass`);async function dt(n,i,{config:{themeVariables:a,flowchart:o}}){let{labelStyles:s}=t(i);i.labelStyle=s;let c=i.assetHeight??48,l=i.assetWidth??48,d=Math.max(c,l),f=o?.wrappingWidth;i.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:h}=await I(n,i,`icon-shape default`),g=i.pos===`t`,_=d,v=d,{nodeBorder:y}=a,{stylesMap:b}=r(i),x=-v/2,S=-_/2,C=i.label?8:0,w=D.svg(p),E=e(i,{stroke:`none`,fill:`none`});i.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let O=w.rectangle(x,S,v,_,E),k=Math.max(v,m.width),A=_+m.height+C,j=w.rectangle(-k/2,-A/2,k,A,{...E,fill:`transparent`,stroke:`none`}),M=p.insert(()=>O,`:first-child`),N=p.insert(()=>j);if(i.icon){let e=p.append(`g`);e.html(`<g>${await u(i.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),n=t.width,r=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-n/2-a},${g?m.height/2+C/2-r/2-o:-m.height/2-C/2-r/2-o})`),e.attr(`style`,`color: ${b.get(`stroke`)??y};`)}return h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${g?-A/2:A/2-m.height})`),M.attr(`transform`,`translate(0,${g?m.height/2+C/2:-m.height/2-C/2})`),R(i,N),i.intersect=function(e){if(T.info(`iconSquare intersect`,i,e),!i.label)return q.rect(i,e);let t=i.x??0,n=i.y??0,r=i.height??0,a=[];return a=g?[{x:t-m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2+m.height+C},{x:t+v/2,y:n-r/2+m.height+C},{x:t+v/2,y:n+r/2},{x:t-v/2,y:n+r/2},{x:t-v/2,y:n-r/2+m.height+C},{x:t-m.width/2,y:n-r/2+m.height+C}]:[{x:t-v/2,y:n-r/2},{x:t+v/2,y:n-r/2},{x:t+v/2,y:n-r/2+_},{x:t+m.width/2,y:n-r/2+_},{x:t+m.width/2/2,y:n+r/2},{x:t-m.width/2,y:n+r/2},{x:t-m.width/2,y:n-r/2+_},{x:t-v/2,y:n-r/2+_}],q.polygon(i,a,e)},p}E(dt,`icon`);async function ft(n,i,{config:{themeVariables:a,flowchart:o}}){let{labelStyles:s}=t(i);i.labelStyle=s;let c=i.assetHeight??48,l=i.assetWidth??48,d=Math.max(c,l),f=o?.wrappingWidth;i.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:h}=await I(n,i,`icon-shape default`),g=i.label?8:0,_=i.pos===`t`,{nodeBorder:v,mainBkg:y}=a,{stylesMap:b}=r(i),x=D.svg(p),S=e(i,{});i.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`),S.stroke=b.get(`fill`)??y;let C=p.append(`g`);i.icon&&C.html(`<g>${await u(i.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let w=C.node().getBBox(),E=w.width,O=w.height,k=w.x,A=w.y,j=Math.max(E,O)*Math.SQRT2+40,M=x.circle(0,0,j,S),N=Math.max(j,m.width),P=j+m.height+g,F=x.rectangle(-N/2,-P/2,N,P,{...S,fill:`transparent`,stroke:`none`}),ee=p.insert(()=>M,`:first-child`),L=p.insert(()=>F);return C.attr(`transform`,`translate(${-E/2-k},${_?m.height/2+g/2-O/2-A:-m.height/2-g/2-O/2-A})`),C.attr(`style`,`color: ${b.get(`stroke`)??v};`),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${_?-P/2:P/2-m.height})`),ee.attr(`transform`,`translate(0,${_?m.height/2+g/2:-m.height/2-g/2})`),R(i,L),i.intersect=function(e){return T.info(`iconSquare intersect`,i,e),q.rect(i,e)},p}E(ft,`iconCircle`);async function pt(n,i,{config:{themeVariables:a,flowchart:o}}){let{labelStyles:s}=t(i);i.labelStyle=s;let c=i.assetHeight??48,l=i.assetWidth??48,d=Math.max(c,l),f=o?.wrappingWidth;i.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:h,label:g}=await I(n,i,`icon-shape default`),_=i.pos===`t`,v=d+h*2,y=d+h*2,{nodeBorder:b,mainBkg:x}=a,{stylesMap:S}=r(i),C=-y/2,w=-v/2,E=i.label?8:0,O=D.svg(p),k=e(i,{});i.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`),k.stroke=S.get(`fill`)??x;let A=O.path(J(C,w,y,v,5),k),j=Math.max(y,m.width),M=v+m.height+E,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=p.insert(()=>A,`:first-child`).attr(`class`,`icon-shape2`),F=p.insert(()=>N);if(i.icon){let e=p.append(`g`);e.html(`<g>${await u(i.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),n=t.width,r=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-n/2-a},${_?m.height/2+E/2-r/2-o:-m.height/2-E/2-r/2-o})`),e.attr(`style`,`color: ${S.get(`stroke`)??b};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${_?-M/2:M/2-m.height})`),P.attr(`transform`,`translate(0,${_?m.height/2+E/2:-m.height/2-E/2})`),R(i,F),i.intersect=function(e){if(T.info(`iconSquare intersect`,i,e),!i.label)return q.rect(i,e);let t=i.x??0,n=i.y??0,r=i.height??0,a=[];return a=_?[{x:t-m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2+m.height+E},{x:t+y/2,y:n-r/2+m.height+E},{x:t+y/2,y:n+r/2},{x:t-y/2,y:n+r/2},{x:t-y/2,y:n-r/2+m.height+E},{x:t-m.width/2,y:n-r/2+m.height+E}]:[{x:t-y/2,y:n-r/2},{x:t+y/2,y:n-r/2},{x:t+y/2,y:n-r/2+v},{x:t+m.width/2,y:n-r/2+v},{x:t+m.width/2/2,y:n+r/2},{x:t-m.width/2,y:n+r/2},{x:t-m.width/2,y:n-r/2+v},{x:t-y/2,y:n-r/2+v}],q.polygon(i,a,e)},p}E(pt,`iconRounded`);async function mt(n,i,{config:{themeVariables:a,flowchart:o}}){let{labelStyles:s}=t(i);i.labelStyle=s;let c=i.assetHeight??48,l=i.assetWidth??48,d=Math.max(c,l),f=o?.wrappingWidth;i.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:h,label:g}=await I(n,i,`icon-shape default`),_=i.pos===`t`,v=d+h*2,y=d+h*2,{nodeBorder:b,mainBkg:x}=a,{stylesMap:S}=r(i),C=-y/2,w=-v/2,E=i.label?8:0,O=D.svg(p),k=e(i,{});i.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`),k.stroke=S.get(`fill`)??x;let A=O.path(J(C,w,y,v,.1),k),j=Math.max(y,m.width),M=v+m.height+E,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=p.insert(()=>A,`:first-child`),F=p.insert(()=>N);if(i.icon){let e=p.append(`g`);e.html(`<g>${await u(i.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),n=t.width,r=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-n/2-a},${_?m.height/2+E/2-r/2-o:-m.height/2-E/2-r/2-o})`),e.attr(`style`,`color: ${S.get(`stroke`)??b};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${_?-M/2:M/2-m.height})`),P.attr(`transform`,`translate(0,${_?m.height/2+E/2:-m.height/2-E/2})`),R(i,F),i.intersect=function(e){if(T.info(`iconSquare intersect`,i,e),!i.label)return q.rect(i,e);let t=i.x??0,n=i.y??0,r=i.height??0,a=[];return a=_?[{x:t-m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2},{x:t+m.width/2,y:n-r/2+m.height+E},{x:t+y/2,y:n-r/2+m.height+E},{x:t+y/2,y:n+r/2},{x:t-y/2,y:n+r/2},{x:t-y/2,y:n-r/2+m.height+E},{x:t-m.width/2,y:n-r/2+m.height+E}]:[{x:t-y/2,y:n-r/2},{x:t+y/2,y:n-r/2},{x:t+y/2,y:n-r/2+v},{x:t+m.width/2,y:n-r/2+v},{x:t+m.width/2/2,y:n+r/2},{x:t-m.width/2,y:n+r/2},{x:t-m.width/2,y:n-r/2+v},{x:t-y/2,y:n-r/2+v}],q.polygon(i,a,e)},p}E(mt,`iconSquare`);async function ht(n,r,{config:{flowchart:i}}){let a=new Image;a.src=r?.img??``,await a.decode();let o=Number(a.naturalWidth.toString().replace(`px`,``)),s=Number(a.naturalHeight.toString().replace(`px`,``));r.imageAspectRatio=o/s;let{labelStyles:c}=t(r);r.labelStyle=c;let l=i?.wrappingWidth;r.defaultWidth=i?.wrappingWidth;let u=Math.max(r.label?l??0:0,r?.assetWidth??o),d=r.constraint===`on`&&r?.assetHeight?r.assetHeight*r.imageAspectRatio:u,f=r.constraint===`on`?d/r.imageAspectRatio:r?.assetHeight??s;r.width=Math.max(d,l??0);let{shapeSvg:p,bbox:m,label:h}=await I(n,r,`image-shape default`),g=r.pos===`t`,_=-d/2,v=-f/2,y=r.label?8:0,b=D.svg(p),x=e(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=b.rectangle(_,v,d,f,x),C=Math.max(d,m.width),w=f+m.height+y,E=b.rectangle(-C/2,-w/2,C,w,{...x,fill:`none`,stroke:`none`}),O=p.insert(()=>S,`:first-child`),k=p.insert(()=>E);if(r.img){let e=p.append(`image`);e.attr(`href`,r.img),e.attr(`width`,d),e.attr(`height`,f),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-d/2},${g?w/2-f:-w/2})`)}return h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${g?-f/2-m.height/2-y/2:f/2-m.height/2+y/2})`),O.attr(`transform`,`translate(0,${g?m.height/2+y/2:-m.height/2-y/2})`),R(r,k),r.intersect=function(e){if(T.info(`iconSquare intersect`,r,e),!r.label)return q.rect(r,e);let t=r.x??0,n=r.y??0,i=r.height??0,a=[];return a=g?[{x:t-m.width/2,y:n-i/2},{x:t+m.width/2,y:n-i/2},{x:t+m.width/2,y:n-i/2+m.height+y},{x:t+d/2,y:n-i/2+m.height+y},{x:t+d/2,y:n+i/2},{x:t-d/2,y:n+i/2},{x:t-d/2,y:n-i/2+m.height+y},{x:t-m.width/2,y:n-i/2+m.height+y}]:[{x:t-d/2,y:n-i/2},{x:t+d/2,y:n-i/2},{x:t+d/2,y:n-i/2+f},{x:t+m.width/2,y:n-i/2+f},{x:t+m.width/2/2,y:n+i/2},{x:t-m.width/2,y:n+i/2},{x:t-m.width/2,y:n-i/2+f},{x:t-d/2,y:n-i/2+f}],q.polygon(r,a,e)},p}E(ht,`imageSquare`);async function gt(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=o,c=r.look===`neo`?o*2:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(u.height+s*2,r.height??0),f=Math.max(u.width+c*2,(r.width??0)-d),p=[{x:0,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:-3*d/6,y:-d}],m,{cssStyles:h}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=B(p),a=t.path(i,n);m=l.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=Y(l,f,d,p);return a&&m.attr(`style`,a),r.width=f,r.height=d,R(r,m),r.intersect=function(e){return q.polygon(r,p,e)},l}E(gt,`inv_trapezoid`);async function _t(e,t){let{shapeSvg:n,bbox:r,label:i}=await I(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),R(t,a),t.intersect=function(e){return q.rect(t,e)},n}E(_t,`labelRect`);async function vt(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=o,c=r.look===`neo`?o*2:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(u.height+s,r.height??0),f=Math.max(u.width+c,(r.width??0)-d),p=[{x:0,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:-(3*d)/6,y:-d}],m,{cssStyles:h}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=B(p),a=t.path(i,n);m=l.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=Y(l,f,d,p);return a&&m.attr(`style`,a),r.width=f,r.height=d,R(r,m),r.intersect=function(e){return q.polygon(r,p,e)},l}E(vt,`lean_left`);async function yt(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=o,c=r.look===`neo`?o*2:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(u.height+s,r.height??0),f=Math.max(u.width+c,(r.width??0)-d),p=[{x:-3*d/6,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:0,y:-d}],m,{cssStyles:h}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=B(p),a=t.path(i,n);m=l.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=Y(l,f,d,p);return a&&m.attr(`style`,a),r.width=f,r.height=d,R(r,m),r.intersect=function(e){return q.polygon(r,p,e)},l}E(yt,`lean_right`);function bt(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.label=``,r.labelStyle=i;let o=n.insert(`g`).attr(`class`,z(r)).attr(`id`,r.domId??r.id),{cssStyles:s}=r,c=Math.max(35,r?.width??0),l=Math.max(35,r?.height??0),u=[{x:c,y:0},{x:0,y:l+7/2},{x:c-14,y:l+7/2},{x:0,y:2*l},{x:c,y:l-7/2},{x:14,y:l-7/2}],d=D.svg(o),f=e(r,{});r.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=B(u),m=d.path(p,f),h=o.insert(()=>m,`:first-child`);return h.attr(`class`,`outer-path`),s&&r.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,s),a&&r.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),h.attr(`transform`,`translate(-${c/2},${-l})`),R(r,h),r.intersect=function(e){return T.info(`lightningBolt intersect`,r,e),q.polygon(r,u,e)},o}E(bt,`lightningBolt`);var xt=E((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),St=E((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Ct=E((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),wt=10,Tt=10;async function Et(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?24:o;if(r.width||r.height){let e=r.width??0;r.width=(r.width??0)-s,r.width<Tt&&(r.width=Tt);let t=e/2/(2.5+e/50);r.height=(r.height??0)-c-t*3,r.height<wt&&(r.height=wt)}let{shapeSvg:l,bbox:u,label:d}=await I(n,r,z(r)),f=(r?.width?r?.width:u.width)+s*2,m=f/2,h=m/(2.5+f/50),g=(r?.height?r?.height:u.height)+h+c*2,_=g*.1,v,{cssStyles:y}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=St(0,0,f,g,m,h,_),i=Ct(0,h,f,g,m,h),a=e(r,{}),o=t.path(n,a),s=t.path(i,a);l.insert(()=>s,`:first-child`).attr(`class`,`line`),v=l.insert(()=>o,`:first-child`),v.attr(`class`,`basic label-container`),y&&v.attr(`style`,y)}else{let e=xt(0,0,f,g,m,h,_);v=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,p(y)).attr(`style`,a)}return v.attr(`label-offset-y`,h),v.attr(`transform`,`translate(${-f/2}, ${-(g/2+h)})`),R(r,v),d.attr(`transform`,`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+h-(u.y-(u.top??0))})`),r.intersect=function(e){let t=q.rect(r,e),n=t.x-(r.x??0);if(m!=0&&(Math.abs(n)<(r.width??0)/2||Math.abs(n)==(r.width??0)/2&&Math.abs(t.y-(r.y??0))>(r.height??0)/2-h)){let i=h*h*(1-n*n/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(r.y??0)>0&&(i=-i),t.y+=i}return t},l}E(Et,`linedCylinder`);async function Dt(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o;(r.width||r.height)&&(r.width=(r.width??0)*10/11-s*2,r.width<10&&(r.width=10),r.height=(r?.height??0)-c*2,r.height<10&&(r.height=10));let{shapeSvg:l,bbox:u,label:d}=await I(n,r,z(r)),f=(r?.width?r?.width:u.width)+(s??0)*2,p=(r?.height?r?.height:u.height)+(c??0)*2,m=r.look===`neo`?p/4:p/8,h=p+m,{cssStyles:g}=r,_=D.svg(l),v=e(r,{});r.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:-f/2-f/2*.1,y:-h/2},{x:-f/2-f/2*.1,y:h/2},...V(-f/2-f/2*.1,h/2,f/2+f/2*.1,h/2,m,.8),{x:f/2+f/2*.1,y:-h/2},{x:-f/2-f/2*.1,y:-h/2},{x:-f/2,y:-h/2},{x:-f/2,y:h/2*1.1},{x:-f/2,y:-h/2}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=l.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),g&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,g),a&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,a),x.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(r.padding??0)+f/2*.1/2-(u.x-(u.left??0))},${-p/2+(r.padding??0)-m-(u.y-(u.top??0))})`),R(r,x),r.intersect=function(e){return q.polygon(r,y,e)},l}E(Dt,`linedWaveEdgedRect`);var Ot=56,kt=72,At=8,jt=2,Mt=8,Nt={normal:`usecase-actor-shape usecase-actor-normal`,hollow:`usecase-actor-hollow`,awesome:`usecase-actor-awesome`,icon:`usecase-actor-icon`},Pt=Math.PI/3,Ft=.6,It=E((e,t)=>{let n=t*Ft,r=t*Math.sqrt(1-Ft**2),i=Math.cos(Pt),a=-Math.sin(Pt),o=n*-a,s=e+n*i,c=r*i,l=r*a;return`M ${o-c} ${s-l} L ${o+c} ${s+l}`},`businessMarkerPathForCircle`),Lt={normal:It(-24,12),hollow:It(-23,9),awesome:It(-21,13),icon:`M 12 -8 L 26 -26`},Rt=E((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),zt=E((t,n,r,i,a=!1)=>{if(n.look===`handDrawn`){let o=D.svg(t).path(r,e(n,a?{fill:`none`}:{}));return t.insert(()=>o,`:first-child`).attr(`class`,i)}let o=t.append(`path`).attr(`class`,i).attr(`d`,r);return a&&o.attr(`fill`,`none`),o},`appendActorPath`),Bt=E((t,n,r,i,a,o,s=!1)=>{if(n.look===`handDrawn`){let c=D.svg(t).circle(r,i,a*2,e(n,s?{fill:`none`}:{}));return t.insert(()=>c,`:first-child`).attr(`class`,o)}let c=t.append(`circle`).attr(`class`,o).attr(`cx`,r).attr(`cy`,i).attr(`r`,a);return s&&c.attr(`fill`,`none`),c},`appendActorCircle`),Vt=E((e,t,n)=>{t.business&&e.append(`path`).attr(`class`,`usecase-business-marker usecase-actor-business-marker`).attr(`d`,Lt[n]).attr(`fill`,`none`).attr(`style`,`stroke: inherit !important; stroke-width: inherit !important`)},`appendBusinessActorMarker`);async function Ht(e,n,r,i){let{labelStyles:a,nodeStyles:o}=t(n);n.labelStyle=a;let{shapeSvg:s,bbox:c,label:l}=await I(e,r===`icon`||n.stereotype!==void 0?{...n,icon:r===`icon`?void 0:n.icon,stereotype:void 0}:n,z(n,`usecase-actor-variant usecase-actor-${r}`)),u=n.accessibleName??n.label;u&&s.attr(`role`,`img`).attr(`aria-label`,u),l.attr(`class`,`label actor-label usecase-actor-label`);let{theme:f,themeVariables:p}=v();d(s,n.colorIndex,f,p.borderColorArray);let m,h;if(n.stereotype){let e=await L(s,`\xAB${n.stereotype}\xBB`,{labelStyle:a,useHtmlLabels:n.useHtmlLabels,padding:0,centerLabel:!0,width:n.wrappingWidth});m=e.label.attr(`class`,`label usecase-stereotype`),h=e.bbox}let g=s.append(`g`).attr(`class`,`usecase-actor-glyph ${Nt[r]}`).attr(`style`,o||null);await i(g,n),Vt(g,n,r);let _=n.padding??Mt,y=h?.height??0,b=kt+At+c.height+(h?y+jt:0),x=Math.max(Ot,c.width,h?.width??0)+_*2,S=b+_*2,C=-b/2;g.attr(`transform`,`translate(0,${C+kt/2})`);let w=C+kt+At;return m&&h&&(w+=y/2,Rt(m,h,w),w+=y/2+jt),Rt(l,c,w+c.height/2),R(n,s.insert(`rect`,`:first-child`).attr(`class`,`usecase-actor-outline`).attr(`x`,-x/2).attr(`y`,-S/2).attr(`width`,x).attr(`height`,S).attr(`opacity`,0).attr(`aria-hidden`,`true`)),n.intersect=e=>q.rect(n,e),s}E(Ht,`renderUsecaseActor`);var Ut=`M 0 -12 C 6.627 -12 12 -17.373 12 -24 C 12 -30.627 6.627 -36 0 -36 C -6.627 -36 -12 -30.627 -12 -24 C -12 -17.373 -6.627 -12 0 -12 Z M 0 -12 V 8 M -17 -5 H 17 M 0 8 L -15 28 M 0 8 L 15 28`;async function Wt(e,t){return Ht(e,t,`normal`,(e,t)=>{zt(e,t,Ut,`usecase-actor-stick`)})}E(Wt,`usecaseActor`);var Gt=`M 0 -34 C 7.18 -34 13 -28.18 13 -21 C 13 -13.82 7.18 -8 0 -8 C -7.18 -8 -13 -13.82 -13 -21 C -13 -28.18 -7.18 -34 0 -34 Z M -24 25 C -24 7 -14 -3 0 -3 C 14 -3 24 7 24 25 C 24 28 21 30 18 30 H -18 C -21 30 -24 28 -24 25 Z`;async function Kt(e,t){return Ht(e,t,`awesome`,(e,t)=>{zt(e,t,Gt,`usecase-actor-awesome-silhouette`)})}E(Kt,`usecaseActorAwesome`);var qt=`M -22 -10 H 22 V 0 H 6 L 22 17 L 13 28 L 0 13 L -13 28 L -22 17 L -6 0 H -22 Z`;async function Jt(e,t){return Ht(e,t,`hollow`,(e,t)=>{Bt(e,t,0,-23,9,`usecase-actor-hollow-head`,!0),zt(e,t,qt,`usecase-actor-hollow-body`,!0)})}E(Jt,`usecaseActorHollow`);var Yt=52,Xt=42,Zt=-2,Qt=E(async(t,n)=>{let r=-Yt/2,i=Zt-Yt/2;if(n.look===`handDrawn`){let a=D.svg(t).rectangle(r,i,Yt,Yt,e(n,{}));t.insert(()=>a,`:first-child`).attr(`class`,`usecase-actor-icon-frame`)}else t.append(`rect`).attr(`class`,`usecase-actor-icon-frame`).attr(`x`,r).attr(`y`,i).attr(`width`,Yt).attr(`height`,Yt).attr(`rx`,4).attr(`ry`,4);let a=n.icon??``,o=await c(a.includes(`:`)?a:`fa:${a}`),s=await u(a,{height:Xt,width:Xt,fallbackPrefix:`fa`}),l=t.append(`g`).attr(`class`,`usecase-actor-icon-symbol${o?``:` usecase-actor-icon-fallback`}`).attr(`aria-hidden`,`true`).html(`<g>${s}</g>`),d=l.node()?.getBBox();d&&l.attr(`transform`,`translate(${-d.width/2-d.x},${Zt-d.height/2-d.y})`)},`drawIconActor`);async function $t(e,t){return Ht(e,t,`icon`,Qt)}E($t,`usecaseActorIcon`);var en=E((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`);async function tn(n,r){let i=r,{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{shapeSvg:s,bbox:c,halfPadding:l,label:u}=await I(n,i.stereotype?{...r,stereotype:void 0}:r,z(r,`usecase-business-shape`));u.attr(`class`,`label usecase-label`);let{theme:f,themeVariables:p}=v();d(s,r.colorIndex,f,p.borderColorArray);let m,h;if(i.stereotype){let e=await L(s,`\xAB${i.stereotype}\xBB`,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0,width:r.wrappingWidth});m=e.label.attr(`class`,`label usecase-stereotype`),h=e.bbox}let g=h?2:0,_=c.height+(h?.height??0)+g,y=Math.max(c.width,h?.width??0),b=l??10,x=y/2+b*2,S=_/2+b*2,C=Math.min(Math.max(b/5,1),b/2),w=y/2+C,T=x-C,E=w/x,O=T/x,k=S*Math.sqrt(Math.max(0,1-E*E)),A=-S*Math.sqrt(Math.max(0,1-O*O));m&&h&&en(m,h,-_/2+h.height/2),en(u,c,_/2-c.height/2);let j;if(r.look===`handDrawn`){let t=D.svg(s).ellipse(0,0,x*2,S*2,e(r,{}));j=s.insert(()=>t,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`)}else j=s.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`).attr(`style`,o).attr(`rx`,x).attr(`ry`,S).attr(`cx`,0).attr(`cy`,0);s.append(`path`).attr(`class`,`usecase-business-marker`).attr(`d`,`M ${w} ${k} L ${T} ${A}`).attr(`fill`,`none`).attr(`style`,o||null);let M=i.accessibleName??i.label;return M&&s.attr(`role`,`img`).attr(`aria-label`,M),R(r,j),r.calcIntersect=(e,t)=>q.ellipse(e,e.width/2,e.height/2,t),r.intersect=e=>q.ellipse(r,x,S,e),s}E(tn,`usecaseBusiness`);var nn=8,rn=4,an=1,on=E((e,t,n,r)=>{let i=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${n-t.width/2-i},${r-t.height/2-a})`)},`positionLabel`),sn=E(e=>{let t=Number.parseFloat(e??``);return Number.isFinite(t)&&t>=0?t:an},`numericStrokeWidth`);async function cn(n,i){let a=i,{labelStyles:o,nodeStyles:s}=t(i),{stylesMap:c}=r(i);i.labelStyle=o;let{shapeSvg:l,bbox:u,label:d}=await I(n,i,z(i,`usecase-json-table`));l.attr(`role`,`img`),a.accessibleName&&l.attr(`aria-label`,a.accessibleName),d.attr(`class`,`label usecase-json-title`);let f=l.append(`g`).attr(`class`,`usecase-json-table-grid`),p=[];for(let e of a.jsonRows??[]){let t=await L(f,e.key,{labelStyle:o,useHtmlLabels:i.useHtmlLabels,padding:0,centerLabel:!0}),n=await L(f,e.value,{labelStyle:o,useHtmlLabels:i.useHtmlLabels,padding:0,centerLabel:!0});p.push({key:{label:t.label.attr(`class`,`label usecase-json-key`),bbox:t.bbox},value:{label:n.label.attr(`class`,`label usecase-json-value`),bbox:n.bbox}})}let m=Math.max(0,...p.map(({key:e})=>e.bbox.width))+nn*2,h=Math.max(0,...p.map(({value:e})=>e.bbox.width))+nn*2,g=u.width+nn*2,_=Math.max(g,m+h),v=h+Math.max(0,_-m-h),y=u.height+rn*2,b=p.map(({key:e,value:t})=>Math.max(e.bbox.height,t.bbox.height)+rn*2),x=y+b.reduce((e,t)=>e+t,0),S=sn(c.get(`stroke-width`)),C=_+S*2,w=x+S*2,T=-_/2,O=-x/2,k=i.look===`handDrawn`?D.svg(l):void 0,A=k?e(i,{}):void 0,j=E((e,t,n,r,i,a)=>{if(k&&A){let o=k.rectangle(n,r,i,a,A);return e.insert(()=>o,`:first-child`).attr(`class`,t)}return e.insert(`rect`,`:first-child`).attr(`class`,t).attr(`x`,n).attr(`y`,r).attr(`width`,i).attr(`height`,a).attr(`style`,s)},`insertCell`),M=j(l,`label-container usecase-json-border`,-C/2,-w/2,C,w);j(f,`usecase-json-cell usecase-json-title-cell`,T,O,_,y),f.node()?.append(d.node()),on(d,u,0,O+y/2);let N=O+y;return p.forEach(({key:e,value:t},n)=>{let r=b[n],i=f.append(`g`).attr(`class`,`usecase-json-row`).attr(`data-row-index`,n).attr(`transform`,`translate(0,${N})`);j(i,`usecase-json-cell usecase-json-key-cell`,T,0,m,r),j(i,`usecase-json-cell usecase-json-value-cell`,T+m,0,v,r),i.node()?.append(e.label.node(),t.label.node()),on(e.label,e.bbox,T+m/2,r/2),on(t.label,t.bbox,T+m+v/2,r/2),N+=r}),R(i,M),i.intersect=e=>q.rect(i,e),l}E(cn,`usecaseJsonTable`);async function ln(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o,l=r.look===`neo`?10:5;(r.width||r.height)&&(r.width=Math.max((r?.width??0)-s*2-2*l,10),r.height=Math.max((r?.height??0)-c*2-2*l,10));let{shapeSvg:u,bbox:d,label:f}=await I(n,r,z(r)),p=(r?.width?r?.width:d.width)+s*2+2*l,m=(r?.height?r?.height:d.height)+c*2+2*l,h=p-2*l,g=m-2*l,_=-h/2,v=-g/2,{cssStyles:y}=r,b=D.svg(u),x=e(r,{}),S=[{x:_-l,y:v+l},{x:_-l,y:v+g+l},{x:_+h-l,y:v+g+l},{x:_+h-l,y:v+g},{x:_+h,y:v+g},{x:_+h,y:v+g-l},{x:_+h+l,y:v+g-l},{x:_+h+l,y:v-l},{x:_+l,y:v-l},{x:_+l,y:v},{x:_,y:v},{x:_,y:v+l}],C=[{x:_,y:v+l},{x:_+h-l,y:v+l},{x:_+h-l,y:v+g},{x:_+h,y:v+g},{x:_+h,y:v},{x:_,y:v}];r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let w=B(S),T=b.path(w,x),E=B(C),O=b.path(E,x);r.look!==`handDrawn`&&(T=U(T),O=U(O));let k=u.insert(`g`,`:first-child`);return k.insert(()=>T),k.insert(()=>O),k.attr(`class`,`basic label-container outer-path`),y&&r.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,y),a&&r.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,a),f.attr(`transform`,`translate(${-(d.width/2)-l-(d.x-(d.left??0))}, ${-(d.height/2)+l-(d.y-(d.top??0))})`),R(r,k),r.intersect=function(e){return q.polygon(r,S,e)},u}E(ln,`multiRect`);async function un(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=r.padding??0,u=r.look===`neo`?16:l,d=r.look===`neo`?12:l,f=!0;(r.width||r.height)&&(f=!1,r.width=(r?.width??0)-u*2,r.height=(r?.height??0)-d*3);let p=Math.max(s.width,r?.width??0)+u*2,m=Math.max(s.height,r?.height??0)+d*3,h=r.look===`neo`?m/4:m/8,g=m+(f?h/2:-h/2),_=-p/2,v=-g/2,{cssStyles:y}=r,b=V(_-10,v+g+10,_+p-10,v+g+10,h,.8),x=b?.[b.length-1],S=[{x:_-10,y:v+10},{x:_-10,y:v+g+10},...b,{x:_+p-10,y:x.y-10},{x:_+p,y:x.y-10},{x:_+p,y:x.y-20},{x:_+p+10,y:x.y-20},{x:_+p+10,y:v-10},{x:_+10,y:v-10},{x:_+10,y:v},{x:_,y:v},{x:_,y:v+10}],C=[{x:_,y:v+10},{x:_+p-10,y:v+10},{x:_+p-10,y:x.y-10},{x:_+p,y:x.y-10},{x:_+p,y:v},{x:_,y:v}],w=D.svg(o),T=e(r,{});r.look!==`handDrawn`&&(T.roughness=0,T.fillStyle=`solid`);let E=B(S),O=w.path(E,T),k=B(C),A=w.path(k,T),j=o.insert(()=>O,`:first-child`);return j.insert(()=>A),j.attr(`class`,`basic label-container outer-path`),y&&r.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,y),a&&r.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,a),j.attr(`transform`,`translate(0,${-h/2})`),c.attr(`transform`,`translate(${-(s.width/2)-10-(s.x-(s.left??0))}, ${-(s.height/2)+10-h-(s.y-(s.top??0))})`),R(r,j),r.intersect=function(e){return q.polygon(r,S,e)},o}E(un,`multiWaveEdgedRectangle`);async function dn(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a,r.useHtmlLabels||S(C())||(r.centerLabel=!0);let{shapeSvg:s,bbox:c,label:l}=await I(n,r,z(r)),u=Math.max(c.width+(r.padding??0)*2,r?.width??0),d=Math.max(c.height+(r.padding??0)*2,r?.height??0),f=-u/2,p=-d/2,{cssStyles:m}=r,h=D.svg(s),g=e(r,{fill:i.noteBkgColor,stroke:i.noteBorderColor});r.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=h.rectangle(f,p,u,d,g),v=s.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),l.attr(`class`,`label noteLabel`),m&&r.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,m),o&&r.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,o),l.attr(`transform`,`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),R(r,v),r.intersect=function(e){return q.rect(r,e)},s}E(dn,`note`);var fn=E((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function pn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s}=await I(n,r,z(r)),c=s.width+(r.padding??0)+(s.height+(r.padding??0)),l=.5,u=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],d,{cssStyles:f}=r;if(r.look===`handDrawn`){let t=D.svg(o),n=e(r,{}),i=fn(0,0,c),a=t.path(i,n);d=o.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-c/2+l}, ${c/2})`),f&&d.attr(`style`,f)}else d=Y(o,c,c,u),d.attr(`transform`,`translate(${-c/2+l}, ${c/2})`);return a&&d.attr(`style`,a),R(r,d),r.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];return q.polygon(e,r,t)},r.intersect=function(e){return this.calcIntersect(r,e)},o}E(pn,`question`);async function mn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?21:o??0,c=r.look===`neo`?12:o??0,{shapeSvg:l,bbox:u,label:d}=await I(n,r,z(r)),f=u.width+(r.look===`neo`?s*2:s),p=Math.max(u.height+(r.look===`neo`?c*2:c),r.height??0),m=p/4,h=-Math.max(f,(r.width??0)-m)/2,g=-p/2,_=g/2,v=[{x:h+_,y:g},{x:h,y:0},{x:h+_,y:-g},{x:-h,y:-g},{x:-h,y:g}],{cssStyles:y}=r,b=D.svg(l),x=e(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=B(v),C=b.path(S,x),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&r.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),a&&r.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,a),w.attr(`transform`,`translate(${-_/2},0)`),d.attr(`transform`,`translate(${-_/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),R(r,w),r.intersect=function(e){return q.polygon(r,v,e)},l}E(mn,`rect_left_inv_arrow`);async function hn(n,r){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let s;s=r.cssClasses?`node `+r.cssClasses:`node default`;let c=n.insert(`g`).attr(`class`,s).attr(`id`,r.domId||r.id),l=c.insert(`g`),u=c.insert(`g`).attr(`class`,`label`).attr(`style`,o),d=r.description,f=r.label,p=await le(u,f,r.labelStyle,!0,!0),m={width:0,height:0};if(S(v())){let e=p.children[0],t=i(p);m=e.getBoundingClientRect(),t.attr(`width`,m.width),t.attr(`height`,m.height)}T.info(`Text 2`,d);let h=d||[],g=p.getBBox(),_=await le(u,Array.isArray(h)?h.join(`<br/>`):h,r.labelStyle,!0,!0),y=_.children[0],b=i(_);m=y.getBoundingClientRect(),b.attr(`width`,m.width),b.attr(`height`,m.height);let x=(r.padding||0)/2;i(_).attr(`transform`,`translate( `+(m.width>g.width?0:(g.width-m.width)/2)+`, `+(g.height+x+5)+`)`),i(p).attr(`transform`,`translate( `+(m.width<g.width?0:-(g.width-m.width)/2)+`, 0)`),m=u.node().getBBox(),u.attr(`transform`,`translate(`+-m.width/2+`, `+(-m.height/2-x+3)+`)`);let C=m.width+(r.padding||0),w=m.height+(r.padding||0),E=-m.width/2-x,O=-m.height/2-x,k,A;if(r.look===`handDrawn`){let t=D.svg(c),n=e(r,{}),i=t.path(J(E,O,C,w,r.rx||0),n),a=t.line(-m.width/2-x,-m.height/2-x+g.height+x,m.width/2+x,-m.height/2-x+g.height+x,n);A=c.insert(()=>(T.debug(`Rough node insert CXC`,i),a),`:first-child`),k=c.insert(()=>(T.debug(`Rough node insert CXC`,i),i),`:first-child`)}else k=l.insert(`rect`,`:first-child`),A=l.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,o).attr(`x`,-m.width/2-x).attr(`y`,-m.height/2-x).attr(`width`,m.width+(r.padding||0)).attr(`height`,m.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-m.width/2-x).attr(`x2`,m.width/2+x).attr(`y1`,-m.height/2-x+g.height+x).attr(`y2`,-m.height/2-x+g.height+x);return R(r,k),r.intersect=function(e){return q.rect(r,e)},c}E(hn,`rectWithTitle`);async function gn(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Xe(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}E(gn,`roundedRect`);var _n=8;async function vn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.look===`neo`?16:r.padding??0,s=r.look===`neo`?12:r.padding??0,{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=(r?.width??l.width)+o*2+(r.look===`neo`?_n:_n*2),f=(r?.height??l.height)+s*2,m=d-_n,h=f,g=_n-d/2,_=-f/2,{cssStyles:v}=r,y=D.svg(c),b=e(r,{});r.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:g,y:_},{x:g+m,y:_},{x:g+m,y:_+h},{x:g-_n,y:_+h},{x:g-_n,y:_},{x:g,y:_},{x:g,y:_+h}],S=y.polygon(x.map(e=>[e.x,e.y]),b),C=c.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`).attr(`style`,p(v)),a&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),v&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),u.attr(`transform`,`translate(${_n/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),R(r,C),r.intersect=function(e){return q.rect(r,e)},c}E(vn,`shadedProcess`);async function yn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o;(r.width||r.height)&&(r.width=Math.max((r?.width??0)-s*2,10),r.height=Math.max((r?.height??0)/1.5-c*2,10));let{shapeSvg:l,bbox:u,label:d}=await I(n,r,z(r)),f=(r?.width?r?.width:u.width)+s*2,p=((r?.height?r?.height:u.height)+c*2)*1.5,m=f,h=p/1.5,g=-m/2,_=-h/2,{cssStyles:v}=r,y=D.svg(l),b=e(r,{});r.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:g,y:_},{x:g,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_-h/2}],S=B(x),C=y.path(S,b),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),v&&r.look!==`handDrawn`&&w.selectChildren(`path`).attr(`style`,v),a&&r.look!==`handDrawn`&&w.selectChildren(`path`).attr(`style`,a),w.attr(`transform`,`translate(0, ${h/4})`),d.attr(`transform`,`translate(${-m/2+(r.padding??0)-(u.x-(u.left??0))}, ${-h/4+(r.padding??0)-(u.y-(u.top??0))})`),R(r,w),r.intersect=function(e){return q.polygon(r,x,e)},l}E(yn,`slopedRect`);async function bn(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n,a=await Xe(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i});if(t.colorIndex!==void 0){let{theme:e,themeVariables:n}=v();d(a,t.colorIndex,e,n.borderColorArray)}return a}E(bn,`squareRect`);var xn=50,Sn=E((e,t,n)=>{let r=e.height+n,i=r*Math.cos(Math.PI/(2*(xn-1))),a=Math.sqrt(Math.max(0,i**2-e.height**2));return{w:Math.max(e.width+r/4+t,1.5*r+(r-i),e.width+t+r-a),h:r}},`stadiumDimensions`);async function Cn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?40:o,c=r.look===`neo`?24:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),{w:d,h:f}=Sn(u,s,c),p=f/2,{cssStyles:m}=r,h=D.svg(l),g=e(r,{});r.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-d/2+p,y:-f/2},{x:d/2-p,y:-f/2},...H(-d/2+p,0,p,xn,90,270),{x:d/2-p,y:f/2},...H(d/2-p,0,p,xn,270,450)],v=B(_),y=h.path(v,g),b=l.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),a&&r.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),R(r,b),r.intersect=function(e){return q.polygon(r,_,e)},l}E(Cn,`stadium`);async function wn(e,t){return Xe(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}E(wn,`state`);function Tn(n,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let{cssStyles:s}=r,{lineColor:c,stateBorder:l,nodeBorder:u,nodeShadow:d}=i;(r.width||r.height)&&((r.width??0)<14&&(r.width=14),(r.height??0)<14&&(r.height=14)),r.width||=14,r.height||=14;let f=n.insert(`g`).attr(`class`,`node default`).attr(`id`,r.domId??r.id),p=D.svg(f),m=e(r,{});r.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.circle(0,0,r.width,{...m,stroke:c,strokeWidth:2}),g=l??u,_=(r.width??0)*5/14,v=p.circle(0,0,_,{...m,fill:g,stroke:g,strokeWidth:2,fillStyle:`solid`}),y=f.insert(()=>h,`:first-child`);if(y.insert(()=>v),r.look!==`handDrawn`&&y.attr(`class`,`outer-path`),s&&y.selectAll(`path`).attr(`style`,s),o&&y.selectAll(`path`).attr(`style`,o),r.width<25&&d&&r.look!==`handDrawn`){let e=n.node()?.ownerSVGElement?.id??``,t=e?`${e}-drop-shadow-small`:`drop-shadow-small`;y.attr(`style`,`filter:url(#${t})`)}return R(r,y),r.intersect=function(e){return q.circle(r,(r.width??0)/2,e)},f}E(Tn,`stateEnd`);function En(e,t,{config:{themeVariables:r}}){let{lineColor:i,nodeShadow:a}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let o=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),s;if(t.look===`handDrawn`){let e=D.svg(o).circle(0,0,t.width,n(i));s=o.insert(()=>e),s.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else s=o.insert(`circle`,`:first-child`),s.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&a&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;s.attr(`style`,`filter:url(#${n})`)}return R(t,s),t.intersect=function(e){return q.circle(t,(t.width??7)/2,e)},o}E(En,`stateStart`);var Dn=8;async function On(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r?.padding??8,s=r.look===`neo`?28:o,c=r.look===`neo`?12:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(u.width+2*Dn+s,r.width??0),f=Math.max(u.height+c,r.height??0),m=d-2*Dn,h=f,g=-d/2,_=-f/2,v=[{x:0,y:0},{x:m,y:0},{x:m,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=t.rectangle(g,_,m+16,h,n),a=t.line(g+Dn,_,g+Dn,_+h,n),o=t.line(g+Dn+m,_,g+Dn+m,_+h,n);l.insert(()=>a,`:first-child`),l.insert(()=>o,`:first-child`);let s=l.insert(()=>i,`:first-child`),{cssStyles:c}=r;s.attr(`class`,`basic label-container`).attr(`style`,p(c)),R(r,s)}else{let e=Y(l,m,h,v);a&&e.attr(`style`,a),R(r,e)}return r.intersect=function(e){return q.polygon(r,v,e)},l}E(On,`subroutine`);var kn=.2;async function An(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o;(r.width||r.height)&&(r.height=Math.max((r?.height??0)-c*2,10),r.width=Math.max((r?.width??0)-s*2-kn*(r.height+c*2),10));let{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=(r?.height?r?.height:u.height)+c*2,f=kn*d,p=kn*d,m=(r?.width?r?.width:u.width)+s*2+f-f,h=d,g=-m/2,_=-h/2,{cssStyles:v}=r,y=D.svg(l),b=e(r,{}),x=[{x:g-f/2,y:_},{x:g+m+f/2,y:_},{x:g+m+f/2,y:_+h},{x:g-f/2,y:_+h}],S=[{x:g+m-f/2,y:_+h},{x:g+m+f/2,y:_+h},{x:g+m+f/2,y:_+h-p}];r.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=B(x),w=y.path(C,b),T=B(S),E=y.path(T,{...b,fillStyle:`solid`}),O=l.insert(()=>E,`:first-child`);return O.insert(()=>w,`:first-child`),O.attr(`class`,`basic label-container outer-path`),v&&r.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,v),a&&r.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,a),R(r,O),r.intersect=function(e){return q.polygon(r,x,e)},l}E(An,`taggedRect`);async function jn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(n,r,z(r)),l=Math.max(s.width+(r.padding??0)*2,r?.width??0),u=Math.max(s.height+(r.padding??0)*2,r?.height??0),d=u/8,f=.2*l,p=.2*u,m=u+d,{cssStyles:h}=r,g=D.svg(o),_=e(r,{});r.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-l/2-l/2*.1,y:m/2},...V(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,d,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],y=-l/2+l/2*.1,b=-m/2-p*.4,x=[{x:y+l-f,y:(b+u)*1.3},{x:y+l,y:b+u-p},{x:y+l,y:(b+u)*.9},...V(y+l,(b+u)*1.25,y+l-f,(b+u)*1.3,-u*.02,.5)],S=B(v),C=g.path(S,_),w=B(x),T=g.path(w,{..._,fillStyle:`solid`}),E=o.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container outer-path`),h&&r.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,h),a&&r.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),E.attr(`transform`,`translate(0,${-d/2})`),c.attr(`transform`,`translate(${-l/2+(r.padding??0)-(s.x-(s.left??0))},${-u/2+(r.padding??0)-d/2-(s.y-(s.top??0))})`),R(r,E),r.intersect=function(e){return q.polygon(r,v,e)},o}E(jn,`taggedWaveEdgedRectangle`);async function Mn(e,n){let{labelStyles:r,nodeStyles:i}=t(n);n.labelStyle=r;let{shapeSvg:a,bbox:o}=await I(e,n,z(n)),s=Math.max(o.width+(n.padding??0),n?.width||0),c=Math.max(o.height+(n.padding??0),n?.height||0),l=-s/2,u=-c/2,d=a.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,i).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),R(n,d),n.intersect=function(e){return q.rect(n,e)},a}E(Mn,`text`);var Nn=E((e,t,n,r,i,a)=>`M${e},${t}
|
|
3
|
+
a${i},${a} 0,0,1 0,${-r}
|
|
4
|
+
l${n},0
|
|
5
|
+
a${i},${a} 0,0,1 0,${r}
|
|
6
|
+
M${n},${-r}
|
|
7
|
+
a${i},${a} 0,0,0 0,${r}
|
|
8
|
+
l${-n},0`,`createCylinderPathD`),Pn=E((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),Fn=E((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),In=5,Ln=10;async function Rn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?12:o/2,c=r.height??0;if(r.height&&(r.height-=s,r.height<In&&(r.height=In)),r.width){let e=c/2/(2.5+c/50);r.width=r.width-s-e*3,r.width<Ln&&(r.width=Ln)}let{shapeSvg:l,bbox:u,label:d}=await I(n,r,z(r)),f=Math.max(r.height??0,u.height)+s,m=f/2,h=m/(2.5+f/50),g=Math.max(r.width??0,u.width)+h+s,{cssStyles:_}=r,v;if(r.look===`handDrawn`){let t=D.svg(l),n=Pn(0,0,g,f,h,m),i=Fn(0,0,g,f,h,m),a=t.path(n,e(r,{})),o=t.path(i,e(r,{fill:`none`}));v=l.insert(()=>o,`:first-child`),v=l.insert(()=>a,`:first-child`),v.attr(`class`,`basic label-container`),_&&v.attr(`style`,_)}else{let e=Nn(0,0,g,f,h,m);v=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,p(_)).attr(`style`,a),v.attr(`class`,`basic label-container outer-path`),_&&v.selectAll(`path`).attr(`style`,_),a&&v.selectAll(`path`).attr(`style`,a)}return v.attr(`label-offset-x`,h),v.attr(`transform`,`translate(${-g/2}, ${f/2} )`),d.attr(`transform`,`translate(${-(u.width/2)-h-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),R(r,v),r.intersect=function(e){let t=q.rect(r,e),n=t.y-(r.y??0);if(m!=0&&(Math.abs(n)<(r.height??0)/2||Math.abs(n)==(r.height??0)/2&&Math.abs(t.x-(r.x??0))>(r.width??0)/2-h)){let i=h*h*(1-n*n/(m*m));i!=0&&(i=Math.sqrt(Math.abs(i))),i=h-i,e.x-(r.x??0)>0&&(i=-i),t.x+=i}return t},l}E(Rn,`tiltedCylinder`);async function zn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=(r.look,o),c=r.look===`neo`?o*2:o,{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=Math.max(u.height+s,r.height??0),f=Math.max(u.width+c,(r.width??0)-d),p=[{x:-3*d/6,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:0,y:-d}],m,{cssStyles:h}=r;if(r.look===`handDrawn`){let t=D.svg(l),n=e(r,{}),i=B(p),a=t.path(i,n);m=l.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=Y(l,f,d,p);return a&&m.attr(`style`,a),r.width=f,r.height=d,R(r,m),r.intersect=function(e){return q.polygon(r,p,e)},l}E(zn,`trapezoid`);async function Bn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o;(r.width||r.height)&&(r.height=(r.height??0)-c*2,r.height<5&&(r.height=5),r.width=(r.width??0)-s*2,r.width<15&&(r.width=15));let{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=(r?.width?r?.width:u.width)+s*2,f=(r?.height?r?.height:u.height)+c*2,{cssStyles:p}=r,m=D.svg(l),h=e(r,{});r.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-d/2*.8,y:-f/2},{x:d/2*.8,y:-f/2},{x:d/2,y:-f/2*.6},{x:d/2,y:f/2},{x:-d/2,y:f/2},{x:-d/2,y:-f/2*.6}],_=B(g),v=m.path(_,h),y=l.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&r.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),a&&r.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,a),R(r,y),r.intersect=function(e){return q.polygon(r,g,e)},l}E(Bn,`trapezoidalPentagon`);var Vn=10,Hn=10;async function Un(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?o*2:o;(r.width||r.height)&&(r.width=((r?.width??0)-s)/2,r.width<Hn&&(r.width=Hn),r.height=r?.height??0,r.height<Vn&&(r.height=Vn));let{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=b(v().flowchart?.htmlLabels),f=(r?.width?r?.width:l.width)+s,p=r?.height?r?.height:f+l.height,m=p,h=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:g}=r,_=D.svg(c),y=e(r,{});r.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let x=B(h),S=_.path(x,y),C=c.insert(()=>S,`:first-child`).attr(`transform`,`translate(${-p/2}, ${p/2})`).attr(`class`,`outer-path`);return g&&r.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,g),a&&r.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,a),r.width=f,r.height=p,R(r,C),u.attr(`transform`,`translate(${-l.width/2-(l.x-(l.left??0))}, ${p/2-(l.height+(r.padding??0)/(d?2:1)-(l.y-(l.top??0)))})`),r.intersect=function(e){return T.info(`Triangle intersect`,r,h,e),q.polygon(r,h,e)},c}E(Un,`triangle`);async function Wn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?12:o,l=!0;(r.width||r.height)&&(l=!1,r.width=(r?.width??0)-s*2,r.width<10&&(r.width=10),r.height=(r?.height??0)-c*2,r.height<10&&(r.height=10));let{shapeSvg:u,bbox:d,label:f}=await I(n,r,z(r)),p=(r?.width?r?.width:d.width)+(s??0)*2,m=(r?.height?r?.height:d.height)+(c??0)*2,h=r.look===`neo`?m/4:m/8,g=m+(l?h:-h),{cssStyles:_}=r,v=14-p,y=v>0?v/2:0,b=D.svg(u),x=e(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-p/2-y,y:g/2},...V(-p/2-y,g/2,p/2+y,g/2,h,.8),{x:p/2+y,y:-g/2},{x:-p/2-y,y:-g/2}],C=B(S),w=b.path(C,x),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),_&&r.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,_),a&&r.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,a),T.attr(`transform`,`translate(0,${-h/2})`),f.attr(`transform`,`translate(${-p/2+(r.padding??0)-(d.x-(d.left??0))},${-m/2+(r.padding??0)-h-(d.y-(d.top??0))})`),R(r,T),r.intersect=function(e){return q.polygon(r,S,e)},u}E(Wn,`waveEdgedRectangle`);async function Gn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.padding??0,s=r.look===`neo`?16:o,c=r.look===`neo`?20:o;if(r.width||r.height){r.width=r?.width??0,r.width<20&&(r.width=20),r.height=r?.height??0,r.height<10&&(r.height=10);let e=Math.min(r.height*.2,r.height/4);r.height=Math.ceil(r.height-c-20/9*e),r.width-=s*2}let{shapeSvg:l,bbox:u}=await I(n,r,z(r)),d=(r?.width?r?.width:u.width)+s*2,f=(r?.height?r?.height:u.height)+c,p=f/8,m=f+p*2,{cssStyles:h}=r,g=D.svg(l),_=e(r,{});r.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-d/2,y:m/2},...V(-d/2,m/2,d/2,m/2,p,1),{x:d/2,y:-m/2},...V(d/2,-m/2,-d/2,-m/2,p,-1)],y=B(v),b=g.path(y,_),x=l.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container`),h&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,h),a&&r.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,a),R(r,x),r.intersect=function(e){return q.polygon(r,v,e)},l}E(Gn,`waveRectangle`);var Z=10;async function Kn(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let o=r.look===`neo`?16:r.padding??0,s=r.look===`neo`?12:r.padding??0;(r.width||r.height)&&(r.width=Math.max((r?.width??0)-o*2-Z,10),r.height=Math.max((r?.height??0)-s*2-Z,10));let{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=(r?.width?r?.width:l.width)+o*2+Z,f=(r?.height?r?.height:l.height)+s*2+Z,p=d-Z,m=f-Z,h=-p/2,g=-m/2,{cssStyles:_}=r,v=D.svg(c),y=e(r,{}),b=[{x:h-Z,y:g-Z},{x:h-Z,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-Z}],x=`M${h-Z},${g-Z} L${h+p},${g-Z} L${h+p},${g+m} L${h-Z},${g+m} L${h-Z},${g-Z}
|
|
9
|
+
M${h-Z},${g} L${h+p},${g}
|
|
10
|
+
M${h},${g-Z} L${h},${g+m}`;r.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=v.path(x,y),C=c.insert(()=>S,`:first-child`);return C.attr(`transform`,`translate(${Z/2}, ${Z/2})`),C.attr(`class`,`basic label-container outer-path`),_&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,_),a&&r.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),u.attr(`transform`,`translate(${-(l.width/2)+Z/2-(l.x-(l.left??0))}, ${-(l.height/2)+Z/2-(l.y-(l.top??0))})`),R(r,C),r.intersect=function(e){return q.polygon(r,b,e)},c}E(Kn,`windowPane`);var qn=new Set([`redux-color`,`redux-dark-color`]),Jn=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function Yn(n,r){let a=r;a.alias&&(r.label=a.alias);let{theme:o,themeVariables:s}=C(),{rowEven:c,rowOdd:l,nodeBorder:u,borderColorArray:d}=s;if(r.look===`handDrawn`){let{themeVariables:e}=C(),{background:t}=e;await Yn(n,{...r,id:r.id+`-background`,domId:(r.domId||r.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${t}`]})}let f=C();r.useHtmlLabels=f.htmlLabels;let p=f.er?.diagramPadding??10,m=f.er?.entityPadding??6,{cssStyles:g}=r,{labelStyles:_,nodeStyles:v}=t(r);if(a.attributes.length===0&&r.label){let e={rx:0,ry:0,labelPaddingX:p,labelPaddingY:p*1.5,classes:``};h(r.label,f)+e.labelPaddingX*2<f.er.minEntityWidth&&(r.width=f.er.minEntityWidth);let t=await Xe(n,r,e);if(o!=null&&qn.has(o)){let e=a.colorIndex??0;t.attr(`data-color-id`,`color-${e%d.length}`)}if(!b(f.htmlLabels)){let e=t.select(`text`),n=e.node()?.getBBox();e.attr(`transform`,`translate(${-n.width/2}, 0)`)}return t}f.htmlLabels||(p*=1.25,m*=1.25);let y=z(r);y||=`node default`;let x=n.insert(`g`).attr(`class`,y).attr(`id`,r.domId||r.id),S=await Xn(x,r.label??``,f,0,0,[`name`],_);S.height+=m;let w=0,T=[],E=[],O=0,k=0,A=0,j=0,M=!0,N=!0;for(let e of a.attributes){let t=await Xn(x,e.type,f,0,w,[`attribute-type`],_);O=Math.max(O,t.width+p);let n=await Xn(x,e.name,f,0,w,[`attribute-name`],_);k=Math.max(k,n.width+p);let r=await Xn(x,e.keys.join(),f,0,w,[`attribute-keys`],_);A=Math.max(A,r.width+p);let i=await Xn(x,e.comment,f,0,w,[`attribute-comment`],_);j=Math.max(j,i.width+p);let a=Math.max(t.height,n.height,r.height,i.height)+m;E.push({yOffset:w,rowHeight:a}),w+=a}let P=4;A<=p&&(M=!1,A=0,P--),j<=p&&(N=!1,j=0,P--);let F=x.node().getBBox();if(S.width+p*2-(O+k+A+j)>0){let e=S.width+p*2-(O+k+A+j);O+=e/P,k+=e/P,A>0&&(A+=e/P),j>0&&(j+=e/P)}let ee=O+k+A+j,I=D.svg(x),L=e(r,{});r.look!==`handDrawn`&&(L.roughness=0,L.fillStyle=`solid`);let B=0;E.length>0&&(B=E.reduce((e,t)=>e+(t?.rowHeight??0),0));let V=Math.max(F.width+p*2,r?.width||0,ee),H=Math.max((B??0)+S.height,r?.height||0),U=-V/2,W=-H/2;if(x.selectAll(`g:not(:first-child)`).each((e,t,n)=>{let r=i(n[t]),a=r.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),r.attr(`class`).includes(`attribute-name`)?o+=O:r.attr(`class`).includes(`attribute-keys`)?o+=O+k:r.attr(`class`).includes(`attribute-comment`)&&(o+=O+k+A))}r.attr(`transform`,`translate(${U+p/2+o}, ${s+W+S.height+m/2})`)}),x.select(`.name`).attr(`transform`,`translate(`+-S.width/2+`, `+(W+m/2)+`)`),o!=null&&qn.has(o)){let e=a.colorIndex??0;x.attr(`data-color-id`,`color-${e%d.length}`)}let te=I.rectangle(U,W,V,H,L),ne=x.insert(()=>te,`:first-child`).attr(`class`,`outer-path`).attr(`style`,g.join(``));T.push(0);for(let[e,t]of E.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=I.rectangle(U,S.height+W+t?.yOffset,V,t?.rowHeight,{...L,fill:n?c:l,stroke:u});x.insert(()=>r,`g.label`).attr(`style`,g.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let re=1e-4,G=Zn(U,S.height+W,V+U,S.height+W,re),K=I.polygon(G.map(e=>[e.x,e.y]),L);if(x.insert(()=>K).attr(`class`,`divider`),G=Zn(O+U,S.height+W,O+U,H+W,re),K=I.polygon(G.map(e=>[e.x,e.y]),L),x.insert(()=>K).attr(`class`,`divider`),M){let e=O+k+U;G=Zn(e,S.height+W,e,H+W,re),K=I.polygon(G.map(e=>[e.x,e.y]),L),x.insert(()=>K).attr(`class`,`divider`)}if(N){let e=O+k+A+U;G=Zn(e,S.height+W,e,H+W,re),K=I.polygon(G.map(e=>[e.x,e.y]),L),x.insert(()=>K).attr(`class`,`divider`)}for(let e of T){let t=S.height+W+e;G=Zn(U,t,V+U,t,re),K=I.polygon(G.map(e=>[e.x,e.y]),L),x.insert(()=>K).attr(`class`,`divider`)}if(R(r,ne),v&&r.look!==`handDrawn`){if(o!=null&&Jn.has(o))x.selectAll(`path`).attr(`style`,v);else{let e=v.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);x.selectAll(`path`).attr(`style`,e??``),x.selectAll(`.row-rect-even path`).attr(`style`,v)}}return r.intersect=function(e){return q.rect(r,e)},x}E(Yn,`erBox`);async function Xn(e,t,n,r=0,o=0,s=[],c=``){let l=e.insert(`g`).attr(`class`,`label ${s.join(` `)}`).attr(`transform`,`translate(${r}, ${o})`).attr(`style`,c);t!==_(t)&&(t=_(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let u=l.node().appendChild(await a(l,t,{width:h(t,n)+100,style:c,useHtmlLabels:n.htmlLabels},n));if(t.includes(`<`)||t.includes(`>`)){let e=u.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let d=u.getBBox();if(b(n.htmlLabels)){let e=u.children[0];e.style.textAlign=`start`;let t=i(u);d=e.getBoundingClientRect(),t.attr(`width`,d.width),t.attr(`height`,d.height)}return d}E(Xn,`addText`);function Zn(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}E(Zn,`lineToPolygon`);async function Qn(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,z(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,f=0,p=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await $n(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await $n(c,t,0,[`font-weight: bolder`]);let m=c.node().getBBox();f=m.height,l=o.insert(`g`).attr(`class`,`members-group text`);let h=0;for(let e of t.members){let t=await $n(l,e,h,[e.parseClassifier()]);h+=t+a}p=l.node().getBBox().height,p<=0&&(p=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let g=0;for(let e of t.methods){let t=await $n(u,e,g,[e.parseClassifier()]);g+=t+a}let _=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-m.width/2}, ${d})`),_=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+f+i*2})`),_=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+f+(p?p+i*4:i*2)})`),_=o.node().getBBox(),{shapeSvg:o,bbox:_}}E(Qn,`textHelper`);async function $n(e,t,n,r=[]){let o=e.insert(`g`).attr(`class`,`label`).attr(`style`,r.join(`; `)),s=C(),c=`useHtmlLabels`in t?t.useHtmlLabels:b(s.htmlLabels)??!0,l=``;l=`text`in t?t.text:t.label,!c&&l.startsWith(`\\`)&&(l=l.substring(1)),x(l)&&(c=!0);let u=await a(o,g(f(l)),{width:h(l,s)+50,classes:`markdown-node-label`,useHtmlLabels:c},s),d,p=1;if(c){let e=u.children[0],t=i(u);p=e.innerHTML.split(`<br>`).length,e.innerHTML.includes(`</math>`)&&(p+=e.innerHTML.split(`<mrow>`).length-1),await j(e),d=e.getBoundingClientRect(),t.attr(`width`,d.width),t.attr(`height`,d.height)}else{r.includes(`font-weight: bolder`)&&i(u).selectAll(`tspan`).attr(`font-weight`,``),p=u.children.length;let e=u.children[0];(u.textContent===``||u.textContent.includes(`>`))&&(e.textContent=l[0]+l.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),l[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),d=u.getBBox()}return o.attr(`transform`,`translate(0,`+(-d.height/(2*p)+n)+`)`),d.height}E($n,`addText`);async function er(n,r){let a=v(),{theme:o,themeVariables:s}=a,{useGradient:c,borderColorArray:l}=s,u=a.class.padding??12,f=u,p=r.useHtmlLabels??b(a.htmlLabels)??!0,m=r;m.annotations=m.annotations??[],m.members=m.members??[],m.methods=m.methods??[];let{shapeSvg:h,bbox:g}=await Qn(n,r,a,p,f);d(h,r.colorIndex,o,l);let{labelStyles:_,nodeStyles:y}=t(r);r.labelStyle=_,r.cssStyles=m.styles||``;let x=m.styles?.join(`;`)||y||``;r.cssStyles||=x.replaceAll(`!important`,``).split(`;`);let S=m.members.length===0&&m.methods.length===0&&!a.class?.hideEmptyMembersBox,C=D.svg(h),w=e(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=Math.max(r.width??0,g.width),E=Math.max(r.height??0,g.height),O=(r.height??0)>g.height;m.members.length===0&&m.methods.length===0?E+=f:m.members.length>0&&m.methods.length===0&&(E+=f*2);let k=-T/2,A=-E/2,j=S?u*2:m.members.length===0&&m.methods.length===0?-u:0;O&&(j=u*2);let M=C.rectangle(k-u,A-u-(S?u:m.members.length===0&&m.methods.length===0?-u/2:0),T+2*u,E+2*u+j,w),N=h.insert(()=>M,`:first-child`);N.attr(`class`,`basic label-container outer-path`);let P=N.node().getBBox(),F=h.select(`.annotation-group`).node().getBBox().height-(S?u/2:0)||0,ee=h.select(`.label-group`).node().getBBox().height-(S?u/2:0)||0,I=h.select(`.members-group`).node().getBBox().height-(S?u/2:0)||0,L=(F+ee+A+u-(A-u-(S?u:m.members.length===0&&m.methods.length===0?-u/2:0)))/2;if(h.selectAll(`.text`).each((e,t,n)=>{let r=i(n[t]),o=r.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let c=s+A+u-(S?u:m.members.length===0&&m.methods.length===0?-u/2:0);if(r.attr(`class`).includes(`methods-group`)){let e=Math.max(I,f/2);c=O?Math.max(L,F+ee+e+A+f*2+u)+f*2:F+ee+e+A+f*4+u}m.members.length===0&&m.methods.length===0&&a.class?.hideEmptyMembersBox&&(c=m.annotations.length>0?s-f:s),p||(c-=4);let l=k;(r.attr(`class`).includes(`label-group`)||r.attr(`class`).includes(`annotation-group`))&&(l=-r.node()?.getBBox().width/2||0,h.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(l=0)})),r.attr(`transform`,`translate(${l}, ${c})`)}),m.members.length>0||m.methods.length>0||S){let e=F+ee+A+u,t=C.line(P.x,e,P.x+P.width,e+.001,w);h.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,x)}if(S||m.members.length>0||m.methods.length>0){let e=F+ee+I+A+f*2+u,t=C.line(P.x,O?Math.max(L,e):e,P.x+P.width,(O?Math.max(L,e):e)+.001,w);h.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,x)}if(m.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,x),N.select(`:nth-child(2)`).attr(`style`,x),h.selectAll(`.divider`).select(`path`).attr(`style`,x),r.labelStyle?h.selectAll(`span`).attr(`style`,r.labelStyle):h.selectAll(`span`).attr(`style`,x),!p){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(x);if(t){let e=t[0].replace(`color`,`fill`);h.selectAll(`tspan`).attr(`style`,e)}else if(_){let t=e.exec(_);if(t){let e=t[0].replace(`color`,`fill`);h.selectAll(`tspan`).attr(`style`,e)}}}return R(r,N),r.intersect=function(e){return q.rect(r,e)},h}E(er,`classBox`);async function tr(n,r){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a;let s=r,c=r,l=`verifyMethod`in r,u=z(r),d=v(),{themeVariables:f}=d,{borderColorArray:p,requirementEdgeLabelBackground:m}=f,h=d.layout===`elk`?`start`:`center`,g=n.insert(`g`).attr(`class`,u).attr(`id`,r.domId??r.id),_;_=l?await Q(g,`<<${s.type}>>`,0,r.labelStyle):await Q(g,`<<Element>>`,0,r.labelStyle);let y=_,b=await Q(g,s.name,y,r.labelStyle+`; font-weight: bold;`);if(y+=b+20,l){let e=await Q(g,`${s.requirementId?`ID: ${s.requirementId}`:``}`,y,r.labelStyle,h);y+=e;let t=await Q(g,`${s.text?`Text: ${s.text}`:``}`,y,r.labelStyle,h);y+=t;let n=await Q(g,`${s.risk?`Risk: ${s.risk}`:``}`,y,r.labelStyle,h);y+=n,await Q(g,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:``}`,y,r.labelStyle,h)}else{let e=await Q(g,`${c.type?`Type: ${c.type}`:``}`,y,r.labelStyle,h);y+=e,await Q(g,`${c.docRef?`Doc Ref: ${c.docRef}`:``}`,y,r.labelStyle,h)}let x=(g.node()?.getBBox().width??200)+20,S=(g.node()?.getBBox().height??200)+20,C=-x/2,w=-S/2,T=D.svg(g),E=e(r,{});r.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let O=T.rectangle(C,w,x,S,E),k=g.insert(()=>O,`:first-child`);if(k.attr(`class`,`basic label-container outer-path`).attr(`style`,o),p?.length){let e=r.colorIndex??0;g.attr(`data-color-id`,`color-${e%p.length}`)}if(g.selectAll(`.label`).each((e,t,n)=>{let r=i(n[t]),a=r.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-S/2,l=C+10;(t===0||t===1)&&(l=o),r.attr(`transform`,`translate(${l}, ${c+20})`)}),y>_+b+20){let e=w+_+b+20,t;if(r.look===`neo`){let n=.001,r=[[C,e],[C+x,e],[C+x,e+n],[C,e+n]];t=T.polygon(r,E)}else t=T.line(C,e,C+x,e,E);g.insert(()=>t).attr(`class`,`divider`)}return R(r,k),r.intersect=function(e){return q.rect(r,e)},o&&r.look!==`handDrawn`&&(m||p?.length)&&g.selectAll(`path`).attr(`style`,o),g}E(tr,`requirementBox`);async function Q(e,t,n,r=``,o=`center`){if(t===``)return 0;let s=e.insert(`g`).attr(`class`,`label`).attr(`style`,r),c=v(),l=c.htmlLabels??!0,u=await a(s,g(f(t)),{width:h(t,c)+50,classes:`markdown-node-label`,useHtmlLabels:l,style:r},c),d;if(l){let e=u.children[0],t=i(u);o===`start`&&i(e).style(`text-align`,`left`),d=e.getBoundingClientRect(),t.attr(`width`,d.width),t.attr(`height`,d.height)}else{let e=u.children[0];for(let t of e.children)r&&t.setAttribute(`style`,r);if(o===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}d=u.getBBox(),d.height+=6}return s.attr(`transform`,`translate(${-d.width/2},${-d.height/2+n})`),d.height}E(Q,`addText`);var nr=E(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function rr(n,r,{config:i}){let{labelStyles:a,nodeStyles:o}=t(r);r.labelStyle=a||``;let s=r.width;r.width=(r.width??200)-10;let{shapeSvg:c,bbox:l,label:u}=await I(n,r,z(r)),d=r.padding||10,f=``,p;`ticket`in r&&r.ticket&&i?.kanban?.ticketBaseUrl&&(f=i?.kanban?.ticketBaseUrl.replace(`#TICKET#`,r.ticket),p=c.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,f).attr(`target`,`_blank`));let m={useHtmlLabels:r.useHtmlLabels,labelStyle:r.labelStyle||``,width:r.width,img:r.img,padding:r.padding||8,centerLabel:!1},h,g;p?{label:h,bbox:g}=await L(p,`ticket`in r&&r.ticket||``,m):{label:h,bbox:g}=await L(c,`ticket`in r&&r.ticket||``,m);let{label:_,bbox:v}=await L(c,`assigned`in r&&r.assigned||``,m);r.width=s;let y=r?.width||0,b=Math.max(g.height,v.height)/2,x=Math.max(l.height+20,r?.height||0)+b,S=-y/2,C=-x/2;u.attr(`transform`,`translate(`+(d-y/2)+`, `+(-b-l.height/2)+`)`),h.attr(`transform`,`translate(`+(d-y/2)+`, `+(-b+l.height/2)+`)`),_.attr(`transform`,`translate(`+(d+y/2-v.width-20)+`, `+(-b+l.height/2)+`)`);let w,{rx:T,ry:E}=r,{cssStyles:O}=r;if(r.look===`handDrawn`){let t=D.svg(c),n=e(r,{}),i=T||E?t.path(J(S,C,y,x,T||0),n):t.rectangle(S,C,y,x,n);w=c.insert(()=>i,`:first-child`),w.attr(`class`,`basic label-container`).attr(`style`,O||null)}else{w=c.insert(`rect`,`:first-child`),w.attr(`class`,`basic label-container __APA__`).attr(`style`,o).attr(`rx`,T??5).attr(`ry`,E??5).attr(`x`,S).attr(`y`,C).attr(`width`,y).attr(`height`,x);let e=`priority`in r&&r.priority;if(e){let t=c.append(`line`),n=S+2,r=C+Math.floor((T??0)/2),i=C+x-Math.floor((T??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,nr(e))}}return R(r,w),r.height=x,r.intersect=function(e){return q.rect(r,e)},c}E(rr,`kanbanItem`);async function ir(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:c,label:l}=await I(n,r,z(r)),u=s.width+10*c,d=s.height+8*c,f=.15*u,{cssStyles:m}=r,h=s.width+20,g=s.height+20,_=Math.max(u,h),v=Math.max(d,g);l.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2})`);let y,b=`M0 0
|
|
11
|
+
a${f},${f} 1 0,0 ${_*.25},${-1*v*.1}
|
|
12
|
+
a${f},${f} 1 0,0 ${_*.25},0
|
|
13
|
+
a${f},${f} 1 0,0 ${_*.25},0
|
|
14
|
+
a${f},${f} 1 0,0 ${_*.25},${v*.1}
|
|
15
|
+
|
|
16
|
+
a${f},${f} 1 0,0 ${_*.15},${v*.33}
|
|
17
|
+
a${f*.8},${f*.8} 1 0,0 0,${v*.34}
|
|
18
|
+
a${f},${f} 1 0,0 ${-1*_*.15},${v*.33}
|
|
19
|
+
|
|
20
|
+
a${f},${f} 1 0,0 ${-1*_*.25},${v*.15}
|
|
21
|
+
a${f},${f} 1 0,0 ${-1*_*.25},0
|
|
22
|
+
a${f},${f} 1 0,0 ${-1*_*.25},0
|
|
23
|
+
a${f},${f} 1 0,0 ${-1*_*.25},${-1*v*.15}
|
|
24
|
+
|
|
25
|
+
a${f},${f} 1 0,0 ${-1*_*.1},${-1*v*.33}
|
|
26
|
+
a${f*.8},${f*.8} 1 0,0 0,${-1*v*.34}
|
|
27
|
+
a${f},${f} 1 0,0 ${_*.1},${-1*v*.33}
|
|
28
|
+
H0 V0 Z`;if(r.look===`handDrawn`){let t=D.svg(o),n=e(r,{}),i=t.path(b,n);y=o.insert(()=>i,`:first-child`),y.attr(`class`,`basic label-container`).attr(`style`,p(m))}else y=o.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,b);return y.attr(`transform`,`translate(${-_/2}, ${-v/2})`),R(r,y),r.calcIntersect=function(e,t){return q.rect(e,t)},r.intersect=function(e){return T.info(`Bang intersect`,r,e),q.rect(r,e)},o}E(ir,`bang`);async function ar(n,r){let{labelStyles:i,nodeStyles:a}=t(r);r.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:c,label:l}=await I(n,r,z(r)),u=s.width+2*c,d=s.height+2*c,f=.15*u,m=.25*u,h=.35*u,g=.2*u,{cssStyles:_}=r,v,y=`M0 0
|
|
29
|
+
a${f},${f} 0 0,1 ${u*.25},${-1*u*.1}
|
|
30
|
+
a${h},${h} 1 0,1 ${u*.4},${-1*u*.1}
|
|
31
|
+
a${m},${m} 1 0,1 ${u*.35},${u*.2}
|
|
32
|
+
|
|
33
|
+
a${f},${f} 1 0,1 ${u*.15},${d*.35}
|
|
34
|
+
a${g},${g} 1 0,1 ${-1*u*.15},${d*.65}
|
|
35
|
+
|
|
36
|
+
a${m},${f} 1 0,1 ${-1*u*.25},${u*.15}
|
|
37
|
+
a${h},${h} 1 0,1 ${-1*u*.5},0
|
|
38
|
+
a${f},${f} 1 0,1 ${-1*u*.25},${-1*u*.15}
|
|
39
|
+
|
|
40
|
+
a${f},${f} 1 0,1 ${-1*u*.1},${-1*d*.35}
|
|
41
|
+
a${g},${g} 1 0,1 ${u*.1},${-1*d*.65}
|
|
42
|
+
H0 V0 Z`;if(r.look===`handDrawn`){let t=D.svg(o),n=e(r,{}),i=t.path(y,n);v=o.insert(()=>i,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,p(_))}else v=o.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,y);return l.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2})`),v.attr(`transform`,`translate(${-u/2}, ${-d/2})`),R(r,v),r.calcIntersect=function(e,t){return q.rect(e,t)},r.intersect=function(e){return T.info(`Cloud intersect`,r,e),q.rect(r,e)},o}E(ar,`cloud`);async function or(e,n){let{labelStyles:r,nodeStyles:i}=t(n);n.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:c}=await I(e,n,z(n)),l=o.width+8*s,u=o.height+2*s,d=n.look===`neo`?`
|
|
43
|
+
M${-l/2} ${u/2-5}
|
|
44
|
+
v${-u+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${l-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${u-5}
|
|
49
|
+
H${-l/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-l/2} ${u/2-5}
|
|
53
|
+
v${-u+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${l-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${u-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(l-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!n.domId)throw Error(`defaultMindmapNode: node "${n.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=a.append(`path`).attr(`id`,n.domId).attr(`class`,`node-bkg node-`+n.type).attr(`style`,i).attr(`d`,d);return a.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),c.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>c.node()),R(n,f),n.calcIntersect=function(e,t){return q.rect(e,t)},n.intersect=function(e){return q.rect(n,e)},a}E(or,`defaultMindmapNode`);async function sr(e,t){return Me(e,t,{padding:t.padding??0})}E(sr,`mindmapCircle`);var cr=36,lr=50,ur=100,dr=80,fr=6,pr=16,mr=`bpmn`,hr={start:{rings:1,strokeWidth:1.6},intermediate:{rings:2,strokeWidth:1.4},boundary:{rings:2,strokeWidth:1.4},end:{rings:1,strokeWidth:3.4}},gr;async function _r(){return gr??=O(async()=>{let{bpmnIcons:e}=await import(`./bpmnIcons-APHXDYXF-C0jbCElo.js`);return{bpmnIcons:e}},[]).then(({bpmnIcons:e})=>{l(e.prefix)||s([{name:e.prefix,icons:e}])}),gr}E(_r,`ensureBpmnIcons`);function vr(e){let t=e.metadata?.dataDirection;return t===`input`||t===`output`?t:void 0}E(vr,`dataDirectionOf`);function yr(e){return e.metadata?.isCollection===!0}E(yr,`isCollectionData`);async function br(e,t){return await _r(),u(e,{height:t,width:t,fallbackPrefix:mr})}E(br,`glyphSvg`);var xr=E((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabelBelow`),Sr=E(async(e,t,n)=>{if(!t)return;let r=e.append(`g`).attr(`class`,`bpmn-glyph`);r.html(`<g>${await br(t,n)}</g>`),r.attr(`transform`,`translate(${-n/2}, ${-n/2})`)},`appendGlyph`),Cr=E((e,t,n,r,i)=>{i&&(t.metadata={...t.metadata??{},drawnExtent:i});let a=e.insert(`rect`,`:first-child`).attr(`class`,`bpmn-bounds`).attr(`x`,-n/2).attr(`y`,-r/2).attr(`width`,n).attr(`height`,r).attr(`opacity`,0).attr(`aria-hidden`,`true`);return R(t,a),a},`reserveBounds`),wr=8,Tr=E((e,t,n)=>Math.min(Math.max(e,t),n),`clamp`),Er=E((e,t,n,r,i)=>{let a=e.x??0,o=e.y??0,s=t/2,c=n/2,l=r.x-a,u=r.y-o,d=i??(Math.abs(l)*c>Math.abs(u)*s?l>=0?`right`:`left`:u>=0?`bottom`:`top`),f=E(e=>Math.max(0,e-Math.min(wr,e/2)),`reach`);return d===`left`||d===`right`?{x:a+(d===`right`?s:-s),y:Tr(r.y,o-f(c),o+f(c))}:{x:Tr(r.x,a-f(s),a+f(s)),y:o+(d===`bottom`?c:-c)}},`faceProjectIntersect`),Dr=E((e,t,n)=>{let r=e.x??0,i=e.y??0,a=t/2,o=n.x-r,s=n.y-i,c=a*.85;if(Math.abs(s)>=Math.abs(o)){let e=Tr(o,-c,c);return{x:r+e,y:i+Math.sign(s||1)*Math.sqrt(a*a-e*e)}}let l=Tr(s,-c,c);return{x:r+Math.sign(o||1)*Math.sqrt(a*a-l*l),y:i+l}},`ringIntersect`),Or=E((e,t,n,r)=>{let i=e.x??0,a=e.y??0,o=t/2,s=n/2,c=r.x-i,l=r.y-a;return Math.abs(c)*s>Math.abs(l)*o?{x:i+Math.sign(c)*o,y:a}:{x:i,y:a+Math.sign(l||1)*s}},`faceCentreIntersect`);async function kr(e,n,r){let i=n,{labelStyles:a,nodeStyles:o}=t(n);n.labelStyle=a;let{rings:s,strokeWidth:c}=hr[r],l=cr/2,{shapeSvg:u,bbox:d,label:f}=await I(e,n,z(n,`bpmn-event bpmn-event-${r}`)),p=u.insert(`g`,`:first-child`).attr(`class`,`bpmn-event-body`);p.attr(`style`,o);for(let e=0;e<s;e++)p.append(`circle`).attr(`class`,e===0?`bpmn-event-ring`:`bpmn-event-ring bpmn-event-ring-inner`).attr(`r`,l-e*3).style(`stroke-width`,`${c}px`);await Sr(p,i.icon,pr);let m=d.height>0&&!!n.label,h=cr+2*(m?fr+d.height:0),g=Math.max(cr,m?d.width:0);return m&&xr(f,d,l+fr+d.height/2),Cr(u,n,g,h,{width:cr,height:cr}),n.intersect=function(e){return Dr(n,cr,e)},u}E(kr,`renderBpmnEvent`);async function Ar(e,t){return kr(e,t,`start`)}E(Ar,`bpmnStart`);async function jr(e,t){return kr(e,t,`intermediate`)}E(jr,`bpmnIntermediate`);async function Mr(e,t){return kr(e,t,`boundary`)}E(Mr,`bpmnBoundary`);async function Nr(e,t){return kr(e,t,`end`)}E(Nr,`bpmnEnd`);async function Pr(e,n){let r=n,{labelStyles:i,nodeStyles:a}=t(n);n.labelStyle=i;let o=lr/2,{shapeSvg:s,bbox:c,label:l}=await I(e,n,z(n,`bpmn-gateway`)),u=s.insert(`g`,`:first-child`).attr(`class`,`bpmn-gateway-body`);u.append(`polygon`).attr(`class`,`bpmn-gateway-diamond`).attr(`points`,`0,${-o} ${o},0 0,${o} ${-o},0`).attr(`style`,a),await Sr(u,r.icon,pr+2);let d=c.height>0&&!!n.label,f=lr+2*(d?fr+c.height:0),p=Math.max(lr,d?c.width:0);return d&&xr(l,c,o+fr+c.height/2),Cr(s,n,p,f,{width:lr,height:lr}),n.intersect=function(e){return Or(n,lr,lr,e)},s}E(Pr,`bpmnGateway`);async function Fr(e,n){let r=n,{labelStyles:i,nodeStyles:a}=t(n);n.labelStyle=i;let{shapeSvg:o,bbox:s,label:c}=await I(e,n,z(n,`bpmn-activity`)),l=r.markers??[],u=r.icon,d=u?pr+6:10,f=l.length>0?pr+4:10,p=Math.max(ur,s.width+16),m=Math.max(dr,s.height+d+f),h=o.insert(`g`,`:first-child`).attr(`class`,`bpmn-activity-body`);if(h.append(`rect`).attr(`class`,`bpmn-activity-rect`).attr(`x`,-p/2).attr(`y`,-m/2).attr(`width`,p).attr(`height`,m).attr(`rx`,10).attr(`ry`,10).attr(`style`,a),u){let e=h.append(`g`).attr(`class`,`bpmn-activity-icon`);e.html(`<g>${await br(u,pr)}</g>`),e.attr(`transform`,`translate(${-p/2+6}, ${-m/2+6})`)}if(l.length>0){let e=h.append(`g`).attr(`class`,`bpmn-activity-markers`),t=pr-2,n=l.length*t;for(let[r,i]of l.entries()){let a=e.append(`g`);a.html(`<g>${await br(i,t)}</g>`),a.attr(`transform`,`translate(${-n/2+r*t}, 0)`)}e.attr(`transform`,`translate(0, ${m/2-t-3})`)}return s.height>0&&xr(c,s,(-m/2+d+(m/2-f))/2),R(n,h),n.intersect=function(e){return Er(n,p,m,e)},o}E(Fr,`bpmnActivity`);var Ir=36,Lr=50,Rr=10;async function zr(e,n){let{labelStyles:r,nodeStyles:i}=t(n);n.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await I(e,n,z(n,`bpmn-data-object`)),c=a.insert(`g`,`:first-child`).attr(`class`,`bpmn-data-body`),l=-Ir/2,u=-Lr/2,d=Ir/2,f=Lr/2;c.append(`path`).attr(`class`,`bpmn-data-page`).attr(`d`,`M${l},${u} H${d-Rr} L${d},${u+Rr} V${f} H${l} Z`).attr(`style`,i),c.append(`path`).attr(`class`,`bpmn-data-fold`).attr(`d`,`M${d-Rr},${u} V${u+Rr} H${d}`);let p=vr(n);p&&c.append(`path`).attr(`class`,`bpmn-data-arrow bpmn-data-arrow-${p}`).attr(`d`,`M${l+4},${u+9} h7 v-3 l5,4.5 -5,4.5 v-3 h-7 Z`),yr(n)&&c.append(`path`).attr(`class`,`bpmn-data-collection`).attr(`d`,`M-4,${f-11} v9 M0,${f-11} v9 M4,${f-11} v9`);let m=o.height>0&&!!n.label,h=Lr+2*(m?fr+o.height:0),g=Math.max(Ir,m?o.width:0);return m&&xr(s,o,Lr/2+fr+o.height/2),Cr(a,n,g,h,{width:Ir,height:Lr}),n.intersect=function(e){return Er(n,Ir,Lr,e)},a}E(zr,`bpmnDataObject`);var $=50;async function Br(e,n){let{labelStyles:r,nodeStyles:i}=t(n);n.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await I(e,n,z(n,`bpmn-data-store`)),c=a.insert(`g`,`:first-child`).attr(`class`,`bpmn-data-body`),l=$/2;c.append(`path`).attr(`class`,`bpmn-store-body`).attr(`d`,`M${-l},${-l+6} a${l},6 0 0 1 ${$},0 V${l-6} a${l},6 0 0 1 ${-$},0 Z`).attr(`style`,i);for(let e of[0,5,10])c.append(`path`).attr(`class`,`bpmn-store-rings`).attr(`d`,`M${-l},${-l+6+e} a${l},6 0 0 0 ${$},0`);let u=o.height>0&&!!n.label,d=$+2*(u?fr+o.height:0),f=Math.max($,u?o.width:0);return u&&xr(s,o,l+fr+o.height/2),Cr(a,n,f,d,{width:$,height:$}),n.intersect=function(e){return Er(n,$,$,e)},a}E(Br,`bpmnDataStore`);async function Vr(e,n){let{labelStyles:r}=t(n);n.labelStyle=r,n.wrappingWidth=160;let{shapeSvg:i,bbox:a,label:o}=await I(e,n,z(n,`bpmn-annotation`)),s=Math.max(28,a.height+16),c=a.width+16+6,l=n.metadata?.attachFace===`right`?`right`:`left`;i.insert(`g`,`:first-child`).attr(`class`,`bpmn-annotation-body`).append(`path`).attr(`class`,`bpmn-annotation-bracket`).attr(`d`,l===`right`?`M${c/2-6},${-s/2} h6 V${s/2} h-6`:`M${-c/2+6},${-s/2} h-6 V${s/2} h6`);let u=l===`right`?-c/2+8:-c/2+8+6;return o.attr(`transform`,`translate(${u-(a.x??0)+(a.left??0)},${-a.height/2-((a.y??0)-(a.top??0))})`),Cr(i,n,c,s),n.intersect=function(e){return Er(n,c,s,e,l)},i}E(Vr,`bpmnAnnotation`);var Hr=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:bn},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:gn},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Cn},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:On},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:Ye},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:Ze},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:at},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:me},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:Pe},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:Oe},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:Ue},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:Me},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:ir},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:ar},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:pn},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:lt},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:yt},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:vt},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:zn},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:gt},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:$e},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Mn},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:Ae},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:vn},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:En},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Tn},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ot},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:ut},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:Re},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:Be},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:Ve},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:bt},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Wn},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:st},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:Rn},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Et},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:He},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Qe},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Un},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Kn},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:tt},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Bn},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:it},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:yn},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:un},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:ln},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:pe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:Ie},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:jn},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:An},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Gn},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:mn},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Dt}],Ur=E(()=>{let e=[...Object.entries({state:wn,choice:je,note:dn,composite:Ne,rectWithTitle:hn,labelRect:_t,block_arrow:De,collapsedGroup:be,iconSquare:mt,iconCircle:ft,icon:dt,iconRounded:pt,imageSquare:ht,anchor:ue,kanbanItem:rr,mindmapCircle:sr,defaultMindmapNode:or,classBox:er,erBox:Yn,requirementBox:tr,usecaseActor:Wt,usecaseActorHollow:Jt,usecaseActorAwesome:Kt,usecaseActorIcon:$t,usecaseBusiness:tn,usecaseEllipse:et,usecaseJsonTable:cn,"bpmn-start":Ar,"bpmn-intermediate":jr,"bpmn-boundary":Mr,"bpmn-end":Nr,"bpmn-gateway":Pr,"bpmn-activity":Fr,"bpmn-data":zr,"bpmn-data-store":Br,"bpmn-annotation":Vr}),...Hr.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Wr(e){return e in Ur}E(Wr,`isValidShape`);export{Wr as a,R as c,W as i,J as n,I as o,q as r,Ur as s,le as t};
|