@evoscientist/webui 0.2.7 → 0.2.9
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/.next/BUILD_ID +1 -1
- package/dist/.next/build-manifest.json +3 -3
- package/dist/.next/prerender-manifest.json +3 -3
- package/dist/.next/required-server-files.json +5 -5
- package/dist/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/.next/server/app/_global-error.html +1 -1
- package/dist/.next/server/app/_global-error.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/api/memory/executions/route.js +1 -1
- package/dist/.next/server/app/api/memory/executions/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/observations/route.js +1 -1
- package/dist/.next/server/app/api/memory/observations/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/route.js +1 -1
- package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/install/route.js +1 -1
- package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/route.js +1 -1
- package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/file/route.js +1 -1
- package/dist/.next/server/app/api/workspace/file/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/route.js +1 -1
- package/dist/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/upload/route.js +1 -1
- package/dist/.next/server/app/api/workspace/upload/route.js.nft.json +1 -1
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +2 -2
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0k-rs5f._.js → [root-of-the-server]__01e0ekn._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0t923su._.js → [root-of-the-server]__08gtyud._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0key-2n._.js → [root-of-the-server]__0c_9zoh._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0zqsdzd._.js → [root-of-the-server]__0dsauq5._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0jsq76h._.js → [root-of-the-server]__0om1fsa._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__1alqt3_._.js → [root-of-the-server]__19l67fj._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0nn8czk._.js → [root-of-the-server]__1nb3ezt._.js} +1 -1
- package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js +84 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js +92 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js +81 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js +117 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js +106 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js +66 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js +136 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js +81 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js +3 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js +155 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js +79 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js +3 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__1q-wcrf._.js +15 -0
- package/dist/.next/server/chunks/ssr/node_modules_0-3gk4n._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_03mz3d2._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_042csl2._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_063ofsn._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_0_3n1hi._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_0_n1n9u._.js +43 -0
- package/dist/.next/server/chunks/ssr/node_modules_0bnt8d5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0dxcji9._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_082g_84._.js → node_modules_0f5_pdq._.js} +12 -3
- package/dist/.next/server/chunks/ssr/node_modules_0gmj-7m._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j6b-p5._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_111pp7w._.js → node_modules_0klo3i5._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0koo_87._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0mhroki._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0pimgwq._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0qw862r._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rb-_la._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0s436hr._.js +24 -0
- package/dist/.next/server/chunks/ssr/node_modules_0u5o24a._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0z53q9t._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0zzr3iv._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1p9b60w._.js → node_modules_11trqmi._.js} +4 -4
- package/dist/.next/server/chunks/ssr/{node_modules_1-wfv6i._.js → node_modules_14_5zct._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_14gkv49._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_14j-r2i._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1nck62h._.js → node_modules_16ih6qm._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_18frml9._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_1_d0q_7._.js +289 -0
- package/dist/.next/server/chunks/ssr/node_modules_1asq18n._.js +29 -0
- package/dist/.next/server/chunks/ssr/node_modules_1b08rf0._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bddg7x._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bo15xl._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bompw4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1c0h-_d._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1i5ml3x._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1jpkt5_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1ki78ma._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_0v4zc0t._.js → node_modules_1nl12mt._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_1rsc-gt._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_1thrjjl._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1ti62ba._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_0456qqx._.js → node_modules_1tsuh_o._.js} +3 -3
- package/dist/.next/server/chunks/ssr/node_modules_1vbiuwu._.js +63 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1_v-pb8._.js → node_modules_1wn8qu0._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_1z_uie6._.js → node_modules_1wvft2t._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_1xgltz7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1y4f8cf._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1z39zs4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_066fcep._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0_301m2._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0it10w8._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0m-ahsg._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n8rqkj._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0nb4v-i._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0tdjo9s._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12betp4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1mu01rb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1xda76v._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1z2f7i3._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_20vrei_._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1quf15b._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0muxjzn._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0__ix0y._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0597f-k._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1vi37xl._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1fzbfn5._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_04eh6b6._.js → node_modules_katex_dist_katex_mjs_16enqn_._.js} +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0e5n4p5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js +126 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js +34 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js +4 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js +124 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js +228 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js +12 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js +160 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js +88 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js +203 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-Y2CYZVJY_mjs_20i4m4_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js +96 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js +36 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js +25 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_1ao-jv5._.js +3 -3
- package/dist/.next/server/middleware-build-manifest.js +3 -3
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.js +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/00h58csdfefay.js +1 -0
- package/dist/.next/static/chunks/01_remgex0cp2.js +1 -0
- package/dist/.next/static/chunks/01xjer0i_e5z5.js +15 -0
- package/dist/.next/static/chunks/025bmrgeukcb2.js +15 -0
- package/dist/.next/static/chunks/02slxciv9jt1p.js +77 -0
- package/dist/.next/static/chunks/04e-e--5lk26x.js +287 -0
- package/dist/.next/static/chunks/09nk4rn1z6j8b.js +1 -0
- package/dist/.next/static/chunks/0_l0vn2teso0z.js +1 -0
- package/dist/.next/static/chunks/0a_kuude9z_bg.js +1 -0
- package/dist/.next/static/chunks/0bz8pjqbx0nt7.js +1 -0
- package/dist/.next/static/chunks/0cnrxsj5iw5ld.js +2 -0
- package/dist/.next/static/chunks/0dcfqbly-089u.js +10 -0
- package/dist/.next/static/chunks/0dhmf6y59xjoo.js +1 -0
- package/dist/.next/static/chunks/{2-tnv5f86ywqz.js → 0kdfzi54utgbh.js} +1 -1
- package/dist/.next/static/chunks/0m-pl93u72hp9.js +1 -0
- package/dist/.next/static/chunks/0mkmxdnpoteey.js +1 -0
- package/dist/.next/static/chunks/{41ii5ld31fjk5.js → 0oyz95sujd2c7.js} +3 -3
- package/dist/.next/static/chunks/0p54qye85am3w.js +1 -0
- package/dist/.next/static/chunks/0q5tyevxl-ioe.js +1 -0
- package/dist/.next/static/chunks/0r79_ebje0i6_.js +1 -0
- package/dist/.next/static/chunks/0si45yj1su8y7.js +23 -0
- package/dist/.next/static/chunks/0u3ktztrzu1fa.js +1 -0
- package/dist/.next/static/chunks/0u9ae9k_2g7k3.js +1 -0
- package/dist/.next/static/chunks/{357a_3k2qrz6b.js → 0vhltcpdssl3-.js} +1 -1
- package/dist/.next/static/chunks/0x7n81v2cw92f.js +64 -0
- package/dist/.next/static/chunks/{1wsp3h55ims3-.js → 1-2_pusn4n8oh.js} +3 -3
- package/dist/.next/static/chunks/1-axl1a1s8xi7.js +1 -0
- package/dist/.next/static/chunks/14osgsp3aiqpz.js +79 -0
- package/dist/.next/static/chunks/16mzcd_gvdgbo.js +1 -0
- package/dist/.next/static/chunks/1815xwa8351ma.js +1 -0
- package/dist/.next/static/chunks/1d9i8nlx-zy9a.js +62 -0
- package/dist/.next/static/chunks/1ebh7wwf-wzqn.js +32 -0
- package/dist/.next/static/chunks/1g6hadfcoz4ag.js +62 -0
- package/dist/.next/static/chunks/1kg8hnvdsweku.js +1 -0
- package/dist/.next/static/chunks/1kzq0rdlu1v0j.js +86 -0
- package/dist/.next/static/chunks/1qapeyh3r6cg3.js +1 -0
- package/dist/.next/static/chunks/1rh4z578p-h1a.js +104 -0
- package/dist/.next/static/chunks/1rowt7kr1tu9y.js +1 -0
- package/dist/.next/static/chunks/1u5i-jti87jbo.js +153 -0
- package/dist/.next/static/chunks/1v15lv0fcel0n.js +1 -0
- package/dist/.next/static/chunks/1wrwqqt23_cqy.js +94 -0
- package/dist/.next/static/chunks/21o6_7520je3e.js +1 -0
- package/dist/.next/static/chunks/221-n1wtpkus8.js +27 -0
- package/dist/.next/static/chunks/25pfy8u3vc_bn.js +24 -0
- package/dist/.next/static/chunks/266qo7h19xz_m.js +24 -0
- package/dist/.next/static/chunks/27ag7-c9a81uz.js +1 -0
- package/dist/.next/static/chunks/2b4v6n9b8htrv.js +158 -0
- package/dist/.next/static/chunks/2b57kmz64uj8h.js +1 -0
- package/dist/.next/static/chunks/2gocl3dq0_h1s.js +15 -0
- package/dist/.next/static/chunks/2itcfm_igcz5x.js +201 -0
- package/dist/.next/static/chunks/2l1phv_g29xz7.js +61 -0
- package/dist/.next/static/chunks/2m267diam_vib.js +22 -0
- package/dist/.next/static/chunks/2o4dndk0d68do.js +1 -0
- package/dist/.next/static/chunks/2qq7e47gpyc_e.js +82 -0
- package/dist/.next/static/chunks/2re701zfx-nrj.js +1 -0
- package/dist/.next/static/chunks/2sdwbfs1x5skp.js +1 -0
- package/dist/.next/static/chunks/2udhdtq_z8488.js +115 -0
- package/dist/.next/static/chunks/31etpuynk3lai.js +1 -0
- package/dist/.next/static/chunks/{05cl5ojgc4_ku.js → 32e7ex-ufg57f.js} +14 -14
- package/dist/.next/static/chunks/38h4_u_fq6ose.js +38 -0
- package/dist/.next/static/chunks/397b67vbg5iof.js +4 -0
- package/dist/.next/static/chunks/3fg_vuz1xt14w.js +1 -0
- package/dist/.next/static/chunks/3her9o9_qn46y.js +226 -0
- package/dist/.next/static/chunks/3lnrl25cwsoyk.js +90 -0
- package/dist/.next/static/chunks/3lx-n8v_8u7og.js +1 -0
- package/dist/.next/static/chunks/3mjwob-a5hhwz.js +1 -0
- package/dist/.next/static/chunks/3n80kknp-eoi9.js +1 -0
- package/dist/.next/static/chunks/3oif9bymgqjgd.js +41 -0
- package/dist/.next/static/chunks/3peltyinql2qj.js +34 -0
- package/dist/.next/static/chunks/3r4zv-ypmltqz.js +13 -0
- package/dist/.next/static/chunks/3r7r2d2yc93-y.js +1 -0
- package/dist/.next/static/chunks/3s-zbm7kxc46y.js +93 -0
- package/dist/.next/static/chunks/3s09ok8dc101_.js +1 -0
- package/dist/.next/static/chunks/3t9huugh-5_ps.js +1 -0
- package/dist/.next/static/chunks/3w5gsie2472pe.js +1 -0
- package/dist/.next/static/chunks/3zgnmu3cnahk0.js +122 -0
- package/dist/.next/static/chunks/41r6lojo50nzh.js +1 -0
- package/dist/.next/static/chunks/41uertskgrvwu.js +1 -0
- package/dist/.next/static/chunks/42kilhgqayez4.js +124 -0
- package/dist/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
- package/dist/node_modules/@img/sharp-darwin-arm64/lib/{sharp-darwin-arm64-0.35.3.node → sharp-darwin-arm64-0.35.4.node} +0 -0
- package/dist/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +1 -1
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.3.dylib → libvips-cpp.8.18.6.dylib} +0 -0
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +13 -13
- package/dist/node_modules/sharp/dist/composite.cjs +6 -6
- package/dist/node_modules/sharp/dist/composite.mjs +6 -6
- package/dist/node_modules/sharp/dist/constructor.cjs +1 -1
- package/dist/node_modules/sharp/dist/constructor.mjs +1 -1
- package/dist/node_modules/sharp/dist/index.d.cts +2 -2
- package/dist/node_modules/sharp/dist/index.d.mts +2 -2
- package/dist/node_modules/sharp/dist/input.cjs +20 -15
- package/dist/node_modules/sharp/dist/input.mjs +20 -15
- package/dist/node_modules/sharp/dist/operation.cjs +4 -0
- package/dist/node_modules/sharp/dist/operation.mjs +4 -0
- package/dist/node_modules/sharp/dist/output.cjs +4 -7
- package/dist/node_modules/sharp/dist/output.mjs +4 -7
- package/dist/node_modules/sharp/dist/resize.cjs +8 -8
- package/dist/node_modules/sharp/dist/resize.mjs +8 -8
- package/dist/node_modules/sharp/package.json +38 -38
- package/dist/package.json +3 -4
- package/dist/server.js +1 -1
- package/package.json +3 -4
- package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_03i6i8q._.js +0 -82
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_1m8bey3._.js +0 -92
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_0cvy8c2._.js +0 -81
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0vzw4gu._.js +0 -117
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_1kl1645._.js +0 -106
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_1-btteu._.js +0 -66
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0omhwqk._.js +0 -136
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_052rc5y._.js +0 -81
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0l8r0bx._.js +0 -3
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_0c-9sj0._.js +0 -155
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0hqmyh5._.js +0 -79
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_1l5rlhy._.js +0 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0nzxyl0._.js +0 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0owaq8w._.js +0 -12
- package/dist/.next/server/chunks/ssr/node_modules_0-n78w2._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_00cex-8._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_07zdzg3._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_0_w_s0o._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0chqc93._.js +0 -11
- package/dist/.next/server/chunks/ssr/node_modules_0i3cah4._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_0jx8vby._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0kh3gaq._.js +0 -45
- package/dist/.next/server/chunks/ssr/node_modules_0oiuulr._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0sud39z._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0ty2qhi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0uvms5m._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0xme7lg._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0z2foqi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0z4gniu._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_15pczok._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_16l6ua_._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_16q2m8u._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_17rj81n._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_19b6jde._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1_jf-yx._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_1lio4hi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1tj6b0h._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1zskgct._.js +0 -26
- package/dist/.next/server/chunks/ssr/node_modules_20p8pl7._.js +0 -289
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_01lis5y._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_07fm7s3._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0kitx9n._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0x5ivvr._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_145f4t2._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1_o7dux._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1alyi8-._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1bxlr8e._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1grmhd9._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01pthdh._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_03fanqm._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_16vf13h._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0jxv2ay._.js +0 -129
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_1yyt6ej._.js +0 -7
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_165ua5_._.js +0 -64
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_16ac76u._.js +0 -4
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_0a9kagr._.js +0 -203
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_1p-51mn._.js +0 -228
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0savw5-._.js +0 -121
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_1vk17qr._.js +0 -12
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_074844c._.js +0 -62
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0u9wa-b._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0w_brpy._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0pzbdul._.js +0 -26
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_1_cyy1q._.js +0 -82
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_01y3363._.js +0 -154
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_1nsv0tt._.js +0 -36
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0j4-fk2._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_1jvbrvq._.js +0 -25
- package/dist/.next/static/chunks/01nhrh-3r57wh.js +0 -1
- package/dist/.next/static/chunks/03regxjjibliy.js +0 -29
- package/dist/.next/static/chunks/059oqdb-4djh4.js +0 -1
- package/dist/.next/static/chunks/0bk3aw3m9c72a.js +0 -201
- package/dist/.next/static/chunks/0bko6sy3fi25l.js +0 -1
- package/dist/.next/static/chunks/0c4y7_xzemq6-.js +0 -1
- package/dist/.next/static/chunks/0catqiaei7kwh.js +0 -62
- package/dist/.next/static/chunks/0cm59yzmvnr6a.js +0 -1
- package/dist/.next/static/chunks/0dm2etancr7wp.js +0 -2
- package/dist/.next/static/chunks/0l2v1ybx0rm07.js +0 -1
- package/dist/.next/static/chunks/0ll25xvc8tvc7.js +0 -60
- package/dist/.next/static/chunks/0o19535rrdg5j.js +0 -1
- package/dist/.next/static/chunks/0piaur2yhvb4v.js +0 -1
- package/dist/.next/static/chunks/0r-qze3me8owo.js +0 -5
- package/dist/.next/static/chunks/0s3geiy0as3cz.js +0 -104
- package/dist/.next/static/chunks/0wf_g68m1dyuq.js +0 -152
- package/dist/.next/static/chunks/0z7hf76h0cz39.js +0 -1
- package/dist/.next/static/chunks/0zao0i_njogzy.js +0 -79
- package/dist/.next/static/chunks/11jp13p4e7ycl.js +0 -1
- package/dist/.next/static/chunks/12b5tf_04ca4i.js +0 -10
- package/dist/.next/static/chunks/13j02-7zvh70e.js +0 -1
- package/dist/.next/static/chunks/15746zaz9af2k.js +0 -80
- package/dist/.next/static/chunks/15m2ikcj71414.js +0 -1
- package/dist/.next/static/chunks/17y1ca1c2d1k0.js +0 -127
- package/dist/.next/static/chunks/17zvg7jc-nx5v.js +0 -1
- package/dist/.next/static/chunks/18dnd1yq8sjcm.js +0 -80
- package/dist/.next/static/chunks/1bi4m489puezc.js +0 -64
- package/dist/.next/static/chunks/1g6nbgmclpjgd.js +0 -90
- package/dist/.next/static/chunks/1h978hs06gqwr.js +0 -1
- package/dist/.next/static/chunks/1rxbddx-dyypf.js +0 -226
- package/dist/.next/static/chunks/1s8wltynx2kei.js +0 -24
- package/dist/.next/static/chunks/1un-c368y76x-.js +0 -1
- package/dist/.next/static/chunks/1vqrf8u3eyf8l.js +0 -1
- package/dist/.next/static/chunks/1x5foe7mtvd8m.js +0 -15
- package/dist/.next/static/chunks/20uqpnur2j1hn.js +0 -1
- package/dist/.next/static/chunks/24c-6p_4lbozm.js +0 -1
- package/dist/.next/static/chunks/24l5e3uup8rxf.js +0 -153
- package/dist/.next/static/chunks/26t_0sbrej8uf.js +0 -15
- package/dist/.next/static/chunks/27n_wru0tprv5.js +0 -4
- package/dist/.next/static/chunks/29x7ecuc6vybp.js +0 -1
- package/dist/.next/static/chunks/2dqeid-8xhwun.js +0 -93
- package/dist/.next/static/chunks/2f6739bq5ewxz.js +0 -34
- package/dist/.next/static/chunks/2fuc_smcevit1.js +0 -15
- package/dist/.next/static/chunks/2h7acwi-mfsrx.js +0 -1
- package/dist/.next/static/chunks/2ia3pig2diart.js +0 -43
- package/dist/.next/static/chunks/2y3wq_x8yyu_b.js +0 -115
- package/dist/.next/static/chunks/2zrfdnujo3u51.js +0 -1
- package/dist/.next/static/chunks/3-q38f64d_smq.js +0 -77
- package/dist/.next/static/chunks/3-t8rqn47mim5.js +0 -1
- package/dist/.next/static/chunks/383s4_f7pq0oz.js +0 -1
- package/dist/.next/static/chunks/3cnkwh7z04e3e.js +0 -24
- package/dist/.next/static/chunks/3cvv663zekq_n.js +0 -119
- package/dist/.next/static/chunks/3mcxvhb8ujk39.js +0 -1
- package/dist/.next/static/chunks/3s7at3o7ube_p.js +0 -9
- package/dist/.next/static/chunks/3wb9uvu5ii1sy.js +0 -287
- package/dist/.next/static/chunks/3x5hww03ialmf.js +0 -1
- package/dist/.next/static/chunks/3ypwau9uw-qzz.js +0 -23
- package/dist/.next/static/chunks/42yfqecr30v0q.js +0 -10
- package/dist/.next/static/chunks/44dlrjamdw9zn.js +0 -1
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_buildManifest.js +0 -0
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,552158,e=>{e.v(r=>Promise.all(["static/chunks/0bz8pjqbx0nt7.js"].map(r=>e.l(r))).then(()=>r(175545)))},649224,e=>{e.v(r=>Promise.all(["static/chunks/31etpuynk3lai.js"].map(r=>e.l(r))).then(()=>r(311232)))},939673,e=>{e.v(r=>Promise.all(["static/chunks/2b57kmz64uj8h.js"].map(r=>e.l(r))).then(()=>r(664375)))},526485,e=>{e.v(r=>Promise.all(["static/chunks/41r6lojo50nzh.js"].map(r=>e.l(r))).then(()=>r(978478)))},469279,e=>{e.v(r=>Promise.all(["static/chunks/0r79_ebje0i6_.js"].map(r=>e.l(r))).then(()=>r(268237)))},962275,e=>{e.v(r=>Promise.all(["static/chunks/3w5gsie2472pe.js"].map(r=>e.l(r))).then(()=>r(151769)))},974922,e=>{e.v(r=>Promise.all(["static/chunks/0q5tyevxl-ioe.js"].map(r=>e.l(r))).then(()=>r(150908)))},863450,e=>{e.v(r=>Promise.all(["static/chunks/1qapeyh3r6cg3.js"].map(r=>e.l(r))).then(()=>r(754577)))},293114,e=>{e.v(r=>Promise.all(["static/chunks/27ag7-c9a81uz.js"].map(r=>e.l(r))).then(()=>r(206944)))},905608,e=>{e.v(r=>Promise.all(["static/chunks/0a_kuude9z_bg.js"].map(r=>e.l(r))).then(()=>r(642564)))},398593,e=>{e.v(r=>Promise.all(["static/chunks/1v15lv0fcel0n.js"].map(r=>e.l(r))).then(()=>r(198312)))},563269,e=>{e.v(r=>Promise.all(["static/chunks/1815xwa8351ma.js"].map(r=>e.l(r))).then(()=>r(164709)))},398449,e=>{e.v(r=>Promise.all(["static/chunks/01_remgex0cp2.js"].map(r=>e.l(r))).then(()=>r(439077)))},682312,e=>{e.v(r=>Promise.all(["static/chunks/21o6_7520je3e.js"].map(r=>e.l(r))).then(()=>r(407721)))},660716,e=>{e.v(r=>Promise.all(["static/chunks/41uertskgrvwu.js"].map(r=>e.l(r))).then(()=>r(592379)))},724854,e=>{"use strict";var r=e.i(501554),t=e.i(173474);e.i(696017),e.i(60231);var a=e.i(508324),s=e.i(419524),n=e.i(289590),l=(0,e.i(682954).createRailroadPegServices)().RailroadPeg.parser.LangiumParser,i=(0,s.__name)(e=>{let r=e.alternatives.map(m);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),m=(0,s.__name)(e=>{let r=e.elements.map(o);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformSequence"),o=(0,s.__name)(e=>{let r=u(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?`&${p(r)}`:`!${p(r)}`}:r},"transformPrefix"),p=(0,s.__name)(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),u=(0,s.__name)(e=>{let r=c(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),c=(0,s.__name)(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),h=(0,s.__name)(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),P=(0,s.__name)(e=>{(0,t.populateCommonDb)(e,r.db),e.title&&r.db.setTitle(e.title),e.rules.map(e=>r.db.addRule(h(e)))},"populateDb"),d={parser:{parse:(0,s.__name)(e=>{r.db.clear(),a.log.debug("[PEG Parser] Starting Langium parse");let t=l.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new n.MermaidParseError(t);let s=t.value;a.log.debug("[PEG Parser] Parsed rules:",s.rules.length),P(s),a.log.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:r.db}},db:r.db,renderer:r.renderer,styles:r.getStyles};e.s(["diagram",0,d])}]);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,117204,e=>{"use strict";var t=e.i(60231),i=e.i(508324),s=e.i(419524),n=(0,s.__name)((e,s,n,l)=>{e.attr("class",n);let{width:o,height:c,x:h,y:u}=r(e,s);(0,t.configureSvgSize)(e,c,o,l);let m=a(h,u,o,c,s);e.attr("viewBox",m),i.log.debug(`viewBox configured: ${m} with padding: ${s}`)},"setupViewPortForSVG"),r=(0,s.__name)((e,t)=>{let i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*t,height:i.height+2*t,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),a=(0,s.__name)((e,t,i,s,n)=>`${e-n} ${t-n} ${i} ${s}`,"createViewBox");e.s(["setupViewPortForSVG",0,n])},248585,e=>{"use strict";var t=e.i(419524);e.i(947716);var i=e.i(723685),s=(0,t.__name)((e,t)=>{let s;return"sandbox"===t&&(s=(0,i.select)("#i"+e)),("sandbox"===t?(0,i.select)(s.nodes()[0].contentDocument.body):(0,i.select)("body")).select(`[id="${e}"]`)},"getDiagramElement");e.s(["getDiagramElement",0,s])},207851,e=>{"use strict";var t=e.i(248585),i=e.i(117204),s=e.i(121292);e.i(369110),e.i(382793),e.i(502056),e.i(217248),e.i(224797),e.i(836333),e.i(29836);var n=e.i(447804),r=e.i(60231),a=e.i(508324),l=e.i(419524),o=function(){var e=(0,l.__name)(function(e,t,i,s){for(i=i||{},s=e.length;s--;i[e[s]]=t);return i},"o"),t=[1,3],i=[1,4],s=[1,5],n=[1,6],r=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],o=[2,7],c=[1,26],h=[1,27],u=[1,28],m=[1,29],_=[1,33],y=[1,34],d=[1,35],E=[1,36],p=[1,37],R=[1,38],g=[1,24],f=[1,31],S=[1,32],I=[1,30],b=[1,39],T=[1,40],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],q=[89,90],C=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[27,29],L=[1,70],$=[1,71],v=[1,72],x=[1,73],w=[1,74],D=[1,75],O=[1,76],M=[1,83],F=[1,80],P=[1,84],V=[1,85],U=[1,86],B=[1,87],Y=[1,88],Q=[1,89],H=[1,90],K=[1,91],W=[1,92],j=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],G=[63,64],z=[1,101],X=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],J=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[1,110],ee=[1,106],et=[1,107],ei=[1,108],es=[1,109],en=[1,111],er=[1,116],ea=[1,117],el=[1,114],eo=[1,115],ec={trace:(0,l.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,l.__name)(function(e,t,i,s,n,r,a){var l=r.length-1;switch(n){case 4:this.$=r[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=r[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(r[l-3],r[l-4]);break;case 22:s.addRequirement(r[l-5],r[l-6]),s.setClass([r[l-5]],r[l-3]);break;case 23:s.setNewReqId(r[l-2]);break;case 24:s.setNewReqText(r[l-2]);break;case 25:s.setNewReqRisk(r[l-2]);break;case 26:s.setNewReqVerifyMethod(r[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(r[l-3]);break;case 43:s.addElement(r[l-5]),s.setClass([r[l-5]],r[l-3]);break;case 44:s.setNewElementType(r[l-2]);break;case 45:s.setNewElementDocRef(r[l-2]);break;case 48:s.addRelationship(r[l-2],r[l],r[l-4]);break;case 49:s.addRelationship(r[l-2],r[l-4],r[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=r[l-2],s.defineClass(r[l-1],r[l]);break;case 58:s.setClass(r[l-1],r[l]);break;case 59:s.setClass([r[l-2]],r[l]);break;case 60:case 62:case 65:this.$=[r[l]];break;case 61:case 63:this.$=r[l-2].concat([r[l]]);break;case 64:this.$=r[l-2],s.setCssStyle(r[l-1],r[l]);break;case 66:r[l-2].push(r[l]),this.$=r[l-2];break;case 68:this.$=r[l-1]+r[l]}},"anonymous"),table:[{3:1,4:2,6:t,9:i,11:s,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:i,11:s,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(r,[2,6]),{3:12,4:2,6:t,9:i,11:s,13:n},{1:[2,2]},{4:17,5:a,7:13,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},e(r,[2,4]),e(r,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:43,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:44,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:45,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:46,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:47,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:48,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:49,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:50,8:o,9:i,11:s,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:h,23:u,24:m,25:23,33:25,41:_,42:y,43:d,44:E,45:p,46:R,54:g,72:f,74:S,77:I,89:b,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),{30:60,33:62,75:N,89:b,90:T},{30:63,33:62,75:N,89:b,90:T},{30:64,33:62,75:N,89:b,90:T},e(q,[2,29]),e(q,[2,30]),e(q,[2,31]),e(q,[2,32]),e(q,[2,33]),e(q,[2,34]),e(C,[2,81]),e(C,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(A,[2,79]),e(A,[2,80]),{27:[1,67],29:[1,68]},e(A,[2,85]),e(A,[2,86]),{62:69,65:L,66:$,67:v,68:x,69:w,70:D,71:O},{62:77,65:L,66:$,67:v,68:x,69:w,70:D,71:O},{30:78,33:62,75:N,89:b,90:T},{73:79,75:M,76:F,78:81,79:82,80:P,81:V,82:U,83:B,84:Y,85:Q,86:H,87:K,88:W},e(j,[2,60]),e(j,[2,62]),{73:93,75:M,76:F,78:81,79:82,80:P,81:V,82:U,83:B,84:Y,85:Q,86:H,87:K,88:W},{30:94,33:62,75:N,76:F,89:b,90:T},{5:[1,95]},{30:96,33:62,75:N,89:b,90:T},{5:[1,97]},{30:98,33:62,75:N,89:b,90:T},{63:[1,99]},e(G,[2,50]),e(G,[2,51]),e(G,[2,52]),e(G,[2,53]),e(G,[2,54]),e(G,[2,55]),e(G,[2,56]),{64:[1,100]},e(k,[2,59],{76:F}),e(k,[2,64],{76:z}),{33:103,75:[1,102],89:b,90:T},e(X,[2,65],{79:104,75:M,80:P,81:V,82:U,83:B,84:Y,85:Q,86:H,87:K,88:W}),e(J,[2,67]),e(J,[2,69]),e(J,[2,70]),e(J,[2,71]),e(J,[2,72]),e(J,[2,73]),e(J,[2,74]),e(J,[2,75]),e(J,[2,76]),e(J,[2,77]),e(J,[2,78]),e(k,[2,57],{76:z}),e(k,[2,58],{76:F}),{5:Z,28:105,31:ee,34:et,36:ei,38:es,40:en},{27:[1,112],76:F},{5:er,40:ea,56:113,57:el,59:eo},{27:[1,118],76:F},{33:119,89:b,90:T},{33:120,89:b,90:T},{75:M,78:121,79:82,80:P,81:V,82:U,83:B,84:Y,85:Q,86:H,87:K,88:W},e(j,[2,61]),e(j,[2,63]),e(J,[2,68]),e(k,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Z,28:126,31:ee,34:et,36:ei,38:es,40:en},e(k,[2,28]),{5:[1,127]},e(k,[2,42]),{32:[1,128]},{32:[1,129]},{5:er,40:ea,56:130,57:el,59:eo},e(k,[2,47]),{5:[1,131]},e(k,[2,48]),e(k,[2,49]),e(X,[2,66],{79:104,75:M,80:P,81:V,82:U,83:B,84:Y,85:Q,86:H,87:K,88:W}),{33:132,89:b,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(k,[2,27]),{5:Z,28:145,31:ee,34:et,36:ei,38:es,40:en},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(k,[2,46]),{5:er,40:ea,56:152,57:el,59:eo},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(k,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(k,[2,43]),{5:Z,28:159,31:ee,34:et,36:ei,38:es,40:en},{5:Z,28:160,31:ee,34:et,36:ei,38:es,40:en},{5:Z,28:161,31:ee,34:et,36:ei,38:es,40:en},{5:Z,28:162,31:ee,34:et,36:ei,38:es,40:en},{5:er,40:ea,56:163,57:el,59:eo},{5:er,40:ea,56:164,57:el,59:eo},e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(k,[2,26]),e(k,[2,44]),e(k,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,l.__name)(function(e,t){if(t.recoverable)this.trace(e);else{var i=Error(e);throw i.hash=t,i}},"parseError"),parse:(0,l.__name)(function(e){var t=this,i=[0],s=[],n=[null],r=[],a=this.table,o="",c=0,h=0,u=0,m=r.slice.call(arguments,1),_=Object.create(this.lexer),y={};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(y[d]=this.yy[d]);_.setInput(e,y),y.lexer=_,y.parser=this,void 0===_.yylloc&&(_.yylloc={});var E=_.yylloc;r.push(E);var p=_.options&&_.options.ranges;function R(){var e;return"number"!=typeof(e=s.pop()||_.lex()||1)&&(e instanceof Array&&(e=(s=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.__name)(function(e){i.length=i.length-2*e,n.length=n.length-e,r.length=r.length-e},"popStack"),(0,l.__name)(R,"lex");for(var g,f,S,I,b,T,k,N,q,C={};;){if(S=i[i.length-1],this.defaultActions[S]?I=this.defaultActions[S]:(null==g&&(g=R()),I=a[S]&&a[S][g]),void 0===I||!I.length||!I[0]){var A="";for(T in q=[],a[S])this.terminals_[T]&&T>2&&q.push("'"+this.terminals_[T]+"'");A=_.showPosition?"Parse error on line "+(c+1)+":\n"+_.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(A,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:E,expected:q})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+g);switch(I[0]){case 1:i.push(g),n.push(_.yytext),r.push(_.yylloc),i.push(I[1]),g=null,f?(g=f,f=null):(h=_.yyleng,o=_.yytext,c=_.yylineno,E=_.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[I[1]][1],C.$=n[n.length-k],C._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},p&&(C._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(C,[o,h,c,y,I[1],n,r].concat(m))))return b;k&&(i=i.slice(0,-1*k*2),n=n.slice(0,-1*k),r=r.slice(0,-1*k)),i.push(this.productions_[I[1]][0]),n.push(C.$),r.push(C._$),N=a[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0},"parse")};function eh(){this.yy={}}return ec.lexer={EOF:1,parseError:(0,l.__name)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,l.__name)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.__name)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,l.__name)(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.__name)(function(){return this._more=!0,this},"more"),reject:(0,l.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.__name)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,l.__name)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.__name)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.__name)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,l.__name)(function(e,t){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:(0,l.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,i,s,n=this._currentRules(),r=0;r<n.length;r++)if((i=this._input.match(this.rules[n[r]]))&&(!t||i[0].length>t[0].length)){if(t=i,s=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,n[r])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[s]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.__name)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,l.__name)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,l.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.__name)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,l.__name)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,l.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.__name)(function(e,t,i,s){switch(i){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,l.__name)(eh,"Parser"),eh.prototype=ec,ec.Parser=eh,new eh}();o.parser=o;var c=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=r.setAccTitle,this.getAccTitle=r.getAccTitle,this.setAccDescription=r.setAccDescription,this.getAccDescription=r.getAccDescription,this.setDiagramTitle=r.setDiagramTitle,this.getDiagramTitle=r.getDiagramTitle,this.getConfig=(0,l.__name)(()=>(0,r.getConfig2)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,l.__name)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=e)}setNewReqText(e){void 0!==this.latestRequirement&&(this.latestRequirement.text=e)}setNewReqRisk(e){void 0!==this.latestRequirement&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),a.log.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){void 0!==this.latestElement&&(this.latestElement.type=e)}setNewElementDocRef(e){void 0!==this.latestElement&&(this.latestElement.docRef=e)}addRelationship(e,t,i){this.relations.push({type:e,src:t,dst:i})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,r.clear)()}setCssStyle(e,t){for(let i of e){let e=this.requirements.get(i)??this.elements.get(i);if(!t||!e)return;for(let i of t)i.includes(",")?e.cssStyles.push(...i.split(",")):e.cssStyles.push(i)}}setClass(e,t){for(let i of e){let e=this.requirements.get(i)??this.elements.get(i);if(e)for(let i of t){e.classes.push(i);let t=this.classes.get(i)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let i of e){let e=this.classes.get(i);void 0===e&&(e={id:i,styles:[],textStyles:[]},this.classes.set(i,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let i=t.replace("fill","bgFill");e.textStyles.push(i)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(i)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))}),this.elements.forEach(e=>{e.classes.includes(i)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))})}}getClasses(){return this.classes}getData(){let e=(0,r.getConfig2)(),t=[],i=[];for(let i of this.requirements.values())i.id=i.name,i.cssStyles=i.cssStyles,i.cssClasses=i.classes.join(" "),i.shape="requirementBox",i.look=e.look,i.colorIndex=t.length,t.push(i);for(let i of this.elements.values())i.shape="requirementBox",i.look=e.look,i.id=i.name,i.cssStyles=i.cssStyles,i.cssClasses=i.classes.join(" "),i.colorIndex=t.length,t.push(i);let s=0;for(let t of this.relations){let n=t.type===this.Relationships.CONTAINS,r={id:`${t.src}-${t.dst}-${s++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:"relationshipLine",style:["fill:none",n?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:n?"normal":"dashed",arrowTypeStart:n?"requirement_contains":"",arrowTypeEnd:n?"":"requirement_arrow",look:e.look,labelType:"markdown"};i.push(r)}return{nodes:t,edges:i,other:{},config:e,direction:this.getDirection()}}},h=(0,l.__name)(e=>{let{themeVariables:t,look:i}=(0,r.getConfig)(),{bkgColorArray:s,borderColorArray:n}=t;if(!n?.length)return"";let a="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)a+=`
|
|
2
|
+
|
|
3
|
+
[data-look="${i}"][data-color-id="color-${t}"].node path {
|
|
4
|
+
stroke: ${n[t]};
|
|
5
|
+
fill: ${s?.length?s[t]:""};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-look="${i}"][data-color-id="color-${t}"].node rect {
|
|
9
|
+
stroke: ${n[t]};
|
|
10
|
+
fill: ${s?.length?s[t]:""};
|
|
11
|
+
}
|
|
12
|
+
`;return a},"genColor"),u=(0,l.__name)(e=>{let{look:t,themeVariables:i}=(0,r.getConfig)(),{requirementEdgeLabelBackground:s}=i;return`
|
|
13
|
+
${h(e)}
|
|
14
|
+
marker {
|
|
15
|
+
fill: ${e.relationColor};
|
|
16
|
+
stroke: ${e.relationColor};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
marker.cross {
|
|
20
|
+
stroke: ${e.lineColor};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
svg {
|
|
24
|
+
font-family: ${e.fontFamily};
|
|
25
|
+
font-size: ${e.fontSize};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.reqBox {
|
|
29
|
+
fill: ${e.requirementBackground};
|
|
30
|
+
fill-opacity: 1.0;
|
|
31
|
+
stroke: ${e.requirementBorderColor};
|
|
32
|
+
stroke-width: ${e.requirementBorderSize};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.reqTitle, .reqLabel{
|
|
36
|
+
fill: ${e.requirementTextColor};
|
|
37
|
+
}
|
|
38
|
+
.reqLabelBox {
|
|
39
|
+
fill: ${e.relationLabelBackground};
|
|
40
|
+
fill-opacity: 1.0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.req-title-line {
|
|
44
|
+
stroke: ${e.requirementBorderColor};
|
|
45
|
+
stroke-width: ${e.requirementBorderSize};
|
|
46
|
+
}
|
|
47
|
+
.relationshipLine {
|
|
48
|
+
stroke: ${e.relationColor};
|
|
49
|
+
stroke-width: ${"neo"===t?e.strokeWidth:"1px"};
|
|
50
|
+
}
|
|
51
|
+
.relationshipLabel {
|
|
52
|
+
fill: ${e.relationLabelColor};
|
|
53
|
+
}
|
|
54
|
+
.edgeLabel {
|
|
55
|
+
background-color: ${e.edgeLabelBackground};
|
|
56
|
+
}
|
|
57
|
+
.edgeLabel .label rect {
|
|
58
|
+
fill: ${e.edgeLabelBackground};
|
|
59
|
+
}
|
|
60
|
+
.edgeLabel .label text {
|
|
61
|
+
fill: ${e.relationLabelColor};
|
|
62
|
+
}
|
|
63
|
+
.divider {
|
|
64
|
+
stroke: ${e.nodeBorder};
|
|
65
|
+
stroke-width: 1;
|
|
66
|
+
}
|
|
67
|
+
.label {
|
|
68
|
+
font-family: ${e.fontFamily};
|
|
69
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
70
|
+
}
|
|
71
|
+
.label text,span {
|
|
72
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
73
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
74
|
+
}
|
|
75
|
+
.labelBkg {
|
|
76
|
+
background-color: ${s??e.edgeLabelBackground};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
`},"getStyles"),m={};(0,l.__export)(m,{draw:()=>_});var _=(0,l.__name)(async function(e,l,o,c){a.log.info("REF0:"),a.log.info("Drawing requirement diagram (unified)",l);let{securityLevel:h,state:u,layout:m,look:_}=(0,r.getConfig2)(),y=c.db.getData(),d=(0,t.getDiagramElement)(l,h);y.type=c.type,y.layoutAlgorithm=(0,s.getRegisteredLayoutAlgorithm)(m),y.nodeSpacing=u?.nodeSpacing??50,y.rankSpacing=u?.rankSpacing??50,y.markers="neo"===_?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],y.diagramId=l,await (0,s.render)(y,d),n.utils_default.insertTitle(d,"requirementDiagramTitleText",u?.titleTopMargin??25,c.db.getDiagramTitle()),(0,i.setupViewPortForSVG)(d,8,"requirementDiagram",u?.useMaxWidth??!0)},"draw");e.s(["diagram",0,{parser:o,get db(){return new c},renderer:m,styles:u}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,921789,e=>{"use strict";var t=e.i(409843),r=e.i(369110),a=e.i(382793),o=e.i(502056),i=e.i(217248);e.i(224797),e.i(836333),e.i(29836),e.i(447804);var n=e.i(60231),d=e.i(508324),l=e.i(419524);e.i(461696);var s=e.i(915888);e.i(566661);var g=e.i(704642),h=(0,l.__name)((e,t,r)=>Math.max(t,Math.min(r,e)),"clamp"),u=(0,l.__name)((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),p=(0,l.__name)(e=>"flowchart"===e||"flowchart-v2"===e||"stateDiagram"===e||"er"===e||"classDiagram"===e,"shouldMergeSelfLoopSegments"),f=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],c=(0,l.__name)((e,t,r,a,o)=>{let i=[],n=new Set;if(r.forEach(({start:e,end:t})=>{e!==a&&n.add(e),t!==a&&n.add(t)}),n.forEach(t=>{let r=e.node(t);"number"==typeof r?.x&&"number"==typeof r?.y&&i.push(r)}),0===i.length&&r.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{"number"==typeof e?.x&&"number"==typeof e?.y&&i.push(e)})}),0===i.length)return u(o);let d=i.reduce((e,t)=>({x:e.x+t.x/i.length,y:e.y+t.y/i.length}),{x:0,y:0}),l=d.x-t.x,s=d.y-t.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":u(o)},"getSelfLoopSide"),y=(0,l.__name)((e,t="top",r=0,a=0)=>{let o=e.x,i=e.y-r,n=e.width/2,d=e.height/2,l=Math.max(36,Math.min(100,.8*e.width)),s=h(Math.max(a,.35*e.width),36,l),g=h(.45*Math.min(e.width,e.height),24,48);switch(t){case"bottom":{let e=i+d;return[{x:o-s/2,y:e},{x:o-s/2,y:e+g},{x:o+s/2,y:e+g},{x:o+s/2,y:e}]}case"right":{let e=o+n;return[{x:e,y:i-s/2},{x:e+g,y:i-s/2},{x:e+g,y:i+s/2},{x:e,y:i+s/2}]}case"left":{let e=o-n;return[{x:e,y:i-s/2},{x:e-g,y:i-s/2},{x:e-g,y:i+s/2},{x:e,y:i+s/2}]}default:{let e=i-d;return[{x:o-s/2,y:e},{x:o-s/2,y:e-g},{x:o+s/2,y:e-g},{x:o+s/2,y:e}]}}},"getSelfLoopPoints"),m=(0,l.__name)((e,t,r="top",a=0,o={})=>{let i=e.x,n=e.y-a,d=o.width??0,l=o.height??0;switch(r){case"bottom":return{x:i,y:Math.max(...t.map(e=>e.y))+l/2+4};case"right":return{x:Math.max(...t.map(e=>e.x))+d/2+4,y:n};case"left":return{x:Math.min(...t.map(e=>e.x))-d/2-4,y:n};default:return{x:i,y:Math.min(...t.map(e=>e.y))-l/2-4}}},"getSelfLoopLabelPosition"),L=(0,l.__name)((e,t=0,{mergeSelfLoops:r=!0}={})=>{let a=new Map,o=[],i=e.graph()?.rankdir;return e.edges().forEach(t=>{let i=e.edge(t);if(r&&i.selfLoop){let e=i.selfLoop.id;a.has(e)||a.set(e,[]),a.get(e).push({edge:i,start:t.v,end:t.w})}else o.push({edge:i,start:t.v,end:t.w})}),a.forEach(r=>{if(3!==r.length)return void r.forEach(e=>o.push(e));r.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[a,n,d]=r,l=a.edge.originalEdge??n.edge.originalEdge??d.edge.originalEdge??n.edge,s=e.node(l.start);if(!s)return void r.forEach(e=>o.push(e));let g={width:n.edge.width,height:n.edge.height},h=c(e,s,r,l.start,i),u=y(s,h,t,g.width??0),p=m(s,u,h,t,g),f={...n.edge,...l,id:l.id,points:u,start:l.start,end:l.end,x:p.x,y:p.y,width:g.width,height:g.height,labelStyle:n.edge.labelStyle,fromCluster:a.edge.fromCluster??n.edge.fromCluster??d.edge.fromCluster,toCluster:a.edge.toCluster??n.edge.toCluster??d.edge.toCluster};delete f.selfLoop,delete f.originalEdge,o.push({edge:f,start:f.start,end:f.end})}),o},"getEdgesToRender"),b=(0,l.__name)(async({element:e,graph:r,diagramType:n,id:s,parentCluster:g,siteConfig:h})=>{let u=r.graph().rankdir;d.log.trace("Dir in recursive render - dir:",u);let{clusters:f,edgePaths:c,edgeLabels:y,nodes:m,rootGroups:L}=(0,t.createLayoutElementGroups)(e,{edgePathsClass:"edgePaths"});r.nodes()?d.log.info("Recursive render XXX",r.nodes()):d.log.info("No nodes found for",r),r.edges().length>0&&d.log.info("Recursive edges",r.edge(r.edges()[0]));let b=p(n);await Promise.all(r.nodes().map(async function(e){let a=r.node(e);if(void 0!==g){let t=JSON.parse(JSON.stringify(g.clusterData));d.log.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",g.height),r.setNode(g.id,t),r.parent(e)||(d.log.trace("Setting parent",e,g.id),r.setParent(e,g.id,t))}if(d.log.info("(Insert) Node XXX"+e+": "+JSON.stringify(r.node(e))),a?.clusterNode){d.log.info("Cluster identified XBX",e,a.width,r.node(e));let{ranksep:t,nodesep:l}=r.graph();a.graph.setGraph({...a.graph.graph(),ranksep:t+25,nodesep:l});let g=await X({element:m,graph:a.graph,diagramType:n,id:s,parentCluster:r.node(e),siteConfig:h}),u=g.elem;(0,i.updateNodeBounds)(a,u),a.diff=g.diff||0,d.log.info("New compound node after recursive render XAX",e,"width",a.width,"height",a.height),(0,o.setNodeElem)(u,a)}else r.children(e).length>0?(d.log.trace("Cluster - the non recursive path XBX",e,a.id,a,a.width,"Graph:",r),d.log.trace((0,t.findNonClusterChild)(a.id,r)),t.clusterDb.set(a.id,{id:(0,t.findNonClusterChild)(a.id,r),node:a})):(d.log.trace("Node - the non recursive path XAX",e,m,r.node(e),u),await (0,t.insertMeasuredNode)(m,r.node(e),{config:h,dir:u}))}));let w=(0,l.__name)(async()=>{let e=r.edges().map(async function(e){let o=r.edge(e.v,e.w,e.name);if(d.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),d.log.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(r.edge(e))),d.log.info("Fix",t.clusterDb,"ids:",e.v,e.w,"Translating: ",t.clusterDb.get(e.v),t.clusterDb.get(e.w)),b&&o.selfLoop){if(1!==o.selfLoop.order)return;let e={...o.originalEdge,...o,id:o.selfLoop.id,startLabelLeft:o.originalEdge?.startLabelLeft??o.startLabelLeft,startLabelRight:o.originalEdge?.startLabelRight??o.startLabelRight,endLabelLeft:o.originalEdge?.endLabelLeft??o.endLabelLeft,endLabelRight:o.originalEdge?.endLabelRight??o.endLabelRight};await (0,a.insertEdgeLabel)(y,e),o.width=e.width,o.height=e.height,o.labelStyle=e.labelStyle;return}await (0,a.insertEdgeLabel)(y,o)});await Promise.all(e)},"processEdges");await w();let{subGraphTitleTotalMargin:E}=(0,o.getSubGraphTitleMargins)(h);return{elem:L,graph:r,groups:{clusters:f,edgePaths:c,edgeLabels:y,nodes:m,rootGroups:L},diagramType:n,id:s,mergeSelfLoops:b,subGraphTitleTotalMargin:E}},"measureDagreGraph"),w=(0,l.__name)(e=>{d.log.info("############################################# XXX"),d.log.info("### Layout ### XXX"),d.log.info("############################################# XXX"),(0,s.layout)(e)},"runDagreGraphLayout"),E=(0,l.__name)((e,t,r)=>{let a=e.node(t);if(!a)return;let o={...a};return a?.clusterNode?o.y=(a.y??0)+r:e.children(t).length>0?o.height=(a.height??0)+r:o.y=(a.y??0)+r/2,o},"normalizeDagreNode"),x=(0,l.__name)((e,t)=>{f.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])})},"applyDagreNodeLayout"),_=(0,l.__name)((e,t,r,a)=>({...e,start:e.start??t,end:e.end??r,points:(e.points??[]).map(e=>({...e,y:"number"==typeof e.y?e.y+a:e.y}))}),"normalizeDagreEdge"),N=(0,l.__name)((e,r)=>{let{graph:a,mergeSelfLoops:o,subGraphTitleTotalMargin:i=0}=r,n=new Map(e.nodes.map(e=>[e.id,e]));(0,t.sortNodesByHierarchy)(a).forEach(e=>{let t=E(a,e,i);if(!t)return;x(a.node(e),t);let r=n.get(e);r&&x(r,t)});let d=i/2;return e.edges=L(a,d,{mergeSelfLoops:o}).map(({edge:e,start:t,end:r})=>_(e,t,r,d)),e},"applyDagreLayoutResult"),C=(0,l.__name)(async({elem:e,graph:i,groups:{clusters:n,edgePaths:l},diagramType:s,id:g,mergeSelfLoops:h,subGraphTitleTotalMargin:u})=>{let p=0;await Promise.all((0,t.sortNodesByHierarchy)(i).map(async function(e){let a=i.node(e);if(d.log.info("Position XBX => "+e+": ("+a.x,","+a.y,") width: ",a.width," height: ",a.height),a?.clusterNode)a.y+=u,d.log.info("A tainted cluster node XBX1",e,a.id,a.width,a.height,a.x,a.y,i.parent(e)),t.clusterDb.get(a.id).node=a,(0,o.positionNode)(a);else if(i.children(e).length>0){d.log.info("A pure cluster node XBX1",e,a.id,a.x,a.y,a.width,a.height,i.parent(e)),a.height+=u,i.node(a.parentId);let o=a?.padding/2||0,l=a?.labelBBox?.height||0;d.log.debug("OffsetY",l-o||0,"labelHeight",l,"halfPadding",o),await (0,r.insertCluster)(n,a),t.clusterDb.get(a.id).node=a}else{let e=i.node(a.parentId);a.y+=u/2,d.log.info("A regular node XBX1 - using the padding",a.id,"parent",a.parentId,a.width,a.height,a.x,a.y,"offsetY",a.offsetY,"parent",e,e?.offsetY,a),(0,o.positionNode)(a)}}));let f=u/2;return L(i,f,{mergeSelfLoops:h}).forEach(function({edge:e,start:r,end:o}){d.log.info("Edge "+r+" -> "+o+": "+JSON.stringify(e),e),e.points.forEach(e=>e.y+=f);let n=i.node(r),h=i.node(o),u=(0,a.insertEdge)(l,e,t.clusterDb,s,n,h,g);(0,a.positionEdgeLabel)(e,u)}),i.nodes().forEach(function(e){let t=i.node(e);d.log.info(e,t.type,t.diff),t.isGroup&&(p=t.diff)}),d.log.warn("Returning from recursive render XAX",e,p),{elem:e,diff:p}},"paintDagreLayoutCore"),X=(0,l.__name)(async e=>{let t=await b(e);return w(t.graph),await C(t)},"renderDagreSubgraph"),S=(0,l.__name)(e=>{let r=new g.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{r.setNode(e.id,{...e}),e.parentId&&r.setParent(e.id,e.parentId)}),d.log.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,a=t+"---"+t+"---1",o=t+"---"+t+"---2",i=r.node(t);r.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(a,i.parentId),r.setNode(o,{domId:o,id:o,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(o,i.parentId);let n=structuredClone(e),d=structuredClone(e),l=structuredClone(e),s=structuredClone(e);d.originalEdge=n,d.selfLoop={id:n.id,order:0},l.originalEdge=n,l.selfLoop={id:n.id,order:1},s.originalEdge=n,s.selfLoop={id:n.id,order:2},d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=t+"-cyclic-special-1",l.startLabelRight="",l.startLabelLeft="",l.endLabelLeft="",l.endLabelRight="",l.arrowTypeStart="none",l.arrowTypeEnd="none",l.id=t+"-cyclic-special-mid",s.label="",s.startLabelRight="",s.startLabelLeft="",s.arrowTypeStart="none",i.isGroup&&(d.fromCluster=t,s.toCluster=t),s.id=t+"-cyclic-special-2",s.arrowTypeStart="none",r.setEdge(t,a,d,t+"-cyclic-special-0"),r.setEdge(a,o,l,t+"-cyclic-special-1"),r.setEdge(o,t,s,t+"-cyclic-special-2")}else r.setEdge(e.start,e.end,{...e},e.id)}),(0,t.adjustClustersAndEdges)(r),{graph:r}},"prepareLayoutForDagre"),D=(0,l.__name)(async(e,{element:t,preparedLayout:r})=>{let a=r??S(e),o=(0,n.getConfig2)(),i=await b({element:t,graph:a.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return a.measuredLayout=i,i},"measureDagreLayout"),v=(0,l.__name)((e,t)=>{let r=t.preparedLayout?.measuredLayout;if(!r)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return w(r.graph),N(e,r),r},"runDagreLayoutCore"),R=(0,l.__name)((e,{measure:r})=>(0,t.sortNodesByHierarchy)(r.graph).map(e=>r.graph.node(e)).filter(Boolean),"getDagrePaintNodes"),B=(0,l.__name)((e,t,{measure:r})=>e?r.graph.node(e):void 0,"getDagreEdgeNode"),M=(0,t.createCommonLayoutRenderer)({prepareLayout:S,measureLayout:D,runLayoutCore:v,paintOptions:{clusterDb:t.clusterDb,getNodes:R,getEdgeNode:B,skipNode:(0,l.__name)((e,{measure:t})=>!t.graph.hasNode(e.id),"skipNode"),isCluster:(0,l.__name)((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,"isCluster")}});e.s(["applyDagreLayoutResult",0,N,"getEdgesToRender",0,L,"measureDagreLayout",0,D,"prepareLayoutForDagre",0,S,"render",0,M,"runDagreLayoutCore",0,v])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,164709,e=>{"use strict";var i=e.i(682954);e.i(951773),e.s([],659924),e.i(659924),e.s(["createRailroadPegServices",()=>i.createRailroadPegServices],164709)}]);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,217248,t=>{"use strict";var e=t.i(224797),a=t.i(836333),l=t.i(29836),r=t.i(447804),i=t.i(60231),n=t.i(508324),s=t.i(419524);t.i(947716);var h=t.i(723685),o=t.i(883272);async function d(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!c(t);await Promise.all([...e].map(t=>new Promise(e=>{function l(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,i.getConfig2)().fontSize?(0,i.getConfig2)().fontSize:window.getComputedStyle(document.body).fontSize,[a=i.defaultConfig_default.fontSize]=(0,r.parseFontSize)(e),l=5*a+"px";t.style.minWidth=l,t.style.maxWidth=l}else t.style.width="100%";e(t)}(0,s.__name)(l,"setupImage"),setTimeout(()=>{t.complete&&l()}),t.addEventListener("error",l),t.addEventListener("load",l)})))}function c(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(c)}(0,s.__name)(d,"configureLabelImages"),(0,s.__name)(c,"hasTextBesidesImages");var g=(0,s.__name)(async(t,e,l)=>{let n=(0,i.getConfig2)(),s=t.insert("g").attr("class",l??"node default").attr("id",e.domId||e.id),o=s.insert("g").attr("class","label").attr("style",(0,r.handleUndefinedAttr)(e.labelStyle)),d=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),c=e.width?Math.max(e.width-2*(e.padding??0),32):(0,i.getConfig2)().flowchart?.wrappingWidth??200,g=n.c4?.wrap??!0?c:1/0,y=await Promise.all(d.map(async t=>{let l=o.append("g").attr("class",t.cssClass),s=await (0,a.createText)(l,(0,i.sanitizeText)((0,r.decodeEntities)(t.text??""),n),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},n);return(0,h.select)(s).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,h.select)(s).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:l,box:l.node().getBBox()}})),u=Math.max(...y.map(({box:t})=>t.width),0),f=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${u/2-e.x-e.width/2}, ${f-e.y})`),f+=e.height+3;let m=y.length>0?f-3:0;return o.insert("rect",":first-child"),o.attr("transform",`translate(${-u/2}, ${-m/2})`),{shapeSvg:s,bbox:o.node().getBBox(),halfPadding:(e.padding??0)/2,label:o}},"c4LabelHelper"),y=(0,s.__name)(async(t,e,l)=>{let n,s,o;if(void 0!==e.stereotype)return g(t,e,l);let c=e.useHtmlLabels||(0,i.evaluate)((0,i.getConfig2)()?.htmlLabels);n=l||"node default";let y=t.insert("g").attr("class",n).attr("id",e.domId||e.id),u=y.insert("g").attr("class","label").attr("style",(0,r.handleUndefinedAttr)(e.labelStyle));s=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let f=!!e.icon||!!e.img,m="markdown"===e.labelType,x=await (0,a.createText)(u,(0,i.sanitizeText)((0,r.decodeEntities)(s),(0,i.getConfig2)()),{useHtmlLabels:c,width:e.width||e.wrappingWidth||(0,i.getConfig2)().flowchart?.wrappingWidth,classes:m?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:f,markdown:m},(0,i.getConfig2)()),p=(e?.padding??0)/2;if(c){let t=x.children[0],e=(0,h.select)(x);await d(t),o=await a.fastdom_default.measure(()=>t.getBoundingClientRect()),e.attr("width",o.width),e.attr("height",o.height)}else o=await a.fastdom_default.measure(()=>x.getBBox());return c?u.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):u.attr("transform","translate(0, "+-o.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:y,bbox:o,halfPadding:p,label:u}},"labelHelper"),u=(0,s.__name)(async(t,e,l)=>{let n,s=l.useHtmlLabels??(0,i.getEffectiveHtmlLabels)((0,i.getConfig2)()),o=t.insert("g").attr("class","label").attr("style",l.labelStyle||""),d=await (0,a.createText)(o,(0,i.sanitizeText)((0,r.decodeEntities)(e),(0,i.getConfig2)()),{useHtmlLabels:s,width:l.width||(0,i.getConfig2)()?.flowchart?.wrappingWidth,style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),c=l.padding/2;if((0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())){let t=d.children[0],e=(0,h.select)(d);n=await a.fastdom_default.measure(()=>t.getBoundingClientRect()),e.attr("width",n.width),e.attr("height",n.height)}else n=await a.fastdom_default.measure(()=>d.getBBox());return s?o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):o.attr("transform","translate(0, "+-n.height/2+")"),l.centerLabel&&o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:n,halfPadding:c,label:o}},"insertLabel"),f=(0,s.__name)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),m=(0,s.__name)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function x(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function p(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function w(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}function $(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let r=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,s.__name)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");r&&Object.entries({fill:n(r,"fill"),"fill-opacity":n(r,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let h=document.createElementNS("http://www.w3.org/2000/svg","g");return h.appendChild(a),h}(0,s.__name)(x,"createPathFromPoints"),(0,s.__name)(p,"generateFullSineWavePoints"),(0,s.__name)(w,"generateCirclePoints"),(0,s.__name)($,"mergePaths");var b=(0,s.__name)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect"),k=(0,s.__name)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,"0 0 1",t+a,e+r,"V",e+l-r,"A",r,r,"0 0 1",t+a-r,e+l,"H",t+r,"A",r,r,"0 0 1",t,e+l-r,"V",e+r,"A",r,r,"0 0 1",t+r,e,"Z"].join(" "),"createRoundedRectPathD"),_=(0,s.__name)(async(t,e,l,r=!1,n=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let h=(0,i.getConfig2)(),o=(0,i.getEffectiveHtmlLabels)(h);return await (0,a.createText)(t,s,{style:l,isTitle:r,useHtmlLabels:o,markdown:!1,isNode:n,width:1/0},h)},"createLabel");function S(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<r&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<i&&(d=-d),{x:r+o,y:i+d}}function M(t,e,a){return S(t,e,e,a)}function v(t,e,a,l){{let r=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=r*a.x+i*a.y+n,h=r*l.x+i*l.y+n;if(0!==s&&0!==h&&N(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&N(g,y))return;let u=r*d-o*i;if(0===u)return;let f=Math.abs(u/2),m=i*c-d*n;return{x:m<0?(m-f)/u:(m+f)/u,y:(m=o*n-r*c)<0?(m-f)/u:(m+f)/u}}}function N(t,e){return t*e>0}function D(t,e,a){let l=t.x,r=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l<e.length;l++){let r=e[l],n=e[l<e.length-1?l+1:0],s=v(t,a,{x:h+r.x,y:o+r.y},{x:h+n.x,y:o+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return i<h?-1:+(i!==h)}),i[0]):t}(0,s.__name)(function(t,e){return t.intersect(e)},"intersectNode"),(0,s.__name)(S,"intersectEllipse"),(0,s.__name)(M,"intersectCircle"),(0,s.__name)(v,"intersectLine"),(0,s.__name)(N,"sameSign"),(0,s.__name)(D,"intersectPolygon");function C(t,a){let{labelStyles:l}=(0,e.styles2String)(a);a.labelStyle=l;let i=m(a),s=i;i||(s="anchor");let h=t.insert("g").attr("class",s).attr("id",a.domId||a.id),{cssStyles:d}=a,c=o.default.svg(h),g=(0,e.userNodeOverrides)(a,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==a.look&&(g.roughness=0);let y=c.circle(0,0,2,g),u=h.insert(()=>y,":first-child");return u.attr("class","anchor").attr("style",(0,r.handleUndefinedAttr)(d)),f(a,u),a.intersect=function(t){return n.log.info("Circle intersect",a,1,t),M(a,1,t)},h}function A(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let u=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);u.push({x:a,y:l})}return u}function B(t,e,a){let[l,r]=[e,a].sort((t,e)=>e-t);return r*(1-Math.sqrt(1-(t/l/2)**2))}async function P(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,h="neo"===a.look?12:i,d=(0,s.__name)(t=>t+h,"calcTotalHeight"),c=(0,s.__name)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:g,bbox:u}=await y(t,a,m(a)),p=d(a?.height?a?.height:u.height),[w,$]=c(p),b=B(p,w,$),k=(a?.width?a?.width:u.width)+2*n+b-b,{cssStyles:_}=a,S=[{x:k/2,y:-p/2},{x:-k/2,y:-p/2},...A(-k/2,-p/2,-k/2,p/2,w,$,!1),{x:k/2,y:p/2},...A(k/2,p/2,k/2,-p/2,w,$,!0)],M=o.default.svg(g),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let N=x(S),C=M.path(N,v),P=g.insert(()=>C,":first-child");return P.attr("class","basic label-container outer-path"),_&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",_),r&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",r),P.attr("transform",`translate(${w/2}, 0)`),f(a,P),a.intersect=function(t){return D(a,S,t)},g}async function L(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:h,label:d}=await y(t,a,m(a)),c=l?.nodeBorder??l?.lineColor??"currentColor",g=a.padding??12,u=Math.max(h.width+2*g,a.width??0,80),x=Math.max(Math.min(.08*u,12),5),p=Math.max(h.height+2*g+x,a.height??0),w=-p/2+x,$=p/2,b=.72*u,k=`M${-u/2},${w} L${-b/2},${$} A${b/2},${x} 0 0 0 ${b/2},${$} L${u/2},${w} A${u/2},${x} 0 0 0 ${-u/2},${w} Z`,{cssStyles:_}=a,S=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k,(0,e.userNodeOverrides)(a,{}));S.node()?.appendChild(t),_&&S.attr("style",_)}else S.append("path").attr("d",k).attr("style",i);S.append("ellipse").attr("cx",0).attr("cy",w).attr("rx",u/2).attr("ry",x).attr("style",`fill:none;stroke:${c};stroke-width:1px`),f(a,S);let M=w+($-w)/2;d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${M-h.height/2-(h.y-(h.top??0))})`);let v=(0,s.__name)((t,e,a)=>Array.from({length:13},(l,r)=>{let i=Math.PI-r*Math.PI/12;return{x:t*Math.cos(i),y:e+a*x*Math.sin(i)}}),"arc"),N=[...v(u/2,w,-1),...v(b/2,$,1).reverse()];return a.intersect=function(t){return D(a,N,t)},n}async function O(t,a){let l,{themeVariables:n}=(0,i.getConfig2)(),s=n.clusterBkg,h=n.clusterBorder,{nodeStyles:d}=(0,e.styles2String)(a),{shapeSvg:c,bbox:g}=await y(t,a,m(a)),u=a.padding??8,x=g.height,p=Math.max(g.width+2*u,80,a?.width??0),w=Math.max(x+8+20+2*u,a?.height??0),$=-p/2,_=-w/2,S=c.select(".label");if(S&&(a.useHtmlLabels??(0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())?S.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):S.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===a.look){let t=o.default.svg(c),i=(0,e.userNodeOverrides)(a,{fill:s,stroke:h,fillStyle:"solid"}),n=t.path(k($,_,p,w,8),i);(l=c.insert(()=>n,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,r.handleUndefinedAttr)(a.cssStyles))}else(l=c.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",d).attr("rx",8).attr("ry",8).attr("x",$).attr("y",_).attr("width",p).attr("height",w).attr("fill",s).attr("stroke",h);let M=_+u+x+8;c.append("line").attr("class","collapsed-separator").attr("x1",$+8).attr("y1",M).attr("x2",$+p-8).attr("y2",M).attr("stroke",h).attr("stroke-dasharray","3, 3");let v=M+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",v).attr("r",2.5).attr("fill",h);return f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},c}function R(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,s.__name)(C,"anchor"),(0,s.__name)(A,"generateArcPoints"),(0,s.__name)(B,"calculateArcSagitta"),(0,s.__name)(P,"bowTieRect"),(0,s.__name)(L,"bucket"),(0,s.__name)(O,"collapsedGroup"),(0,s.__name)(R,"insertPolygonShape");var T=["right","left","up","down"],I="point",H=(0,s.__name)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),E=(0,s.__name)(t=>T.filter(e=>t.has(e)).join("|")||I,"getDirectionKey"),W={"right|left|up|down":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:0,y:0},{x:e,y:0},{x:l/2,y:2*a},{x:l-e,y:0},{x:l,y:0},{x:l,y:-t/3},{x:l+2*a,y:-t/2},{x:l,y:-2*t/3},{x:l,y:-t},{x:l-e,y:-t},{x:l/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"up|down"),"right|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,s.__name)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,s.__name)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a}],"up"),down:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"down"),[I]:()=>[{x:0,y:0}]},q=(0,s.__name)((t,e,a,l)=>{let r=H(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,h=l??e.width+2*s+2*i;return(W[E(r)]??W[I])({height:n,midpoint:s,padding:i,width:h})},"getArrowPoints");async function z(t,e){let{shapeSvg:a,bbox:l}=await y(t,e,m(e)),r=e.padding??0,i=l.height+2*r,n=i/2,s=l.width+2*n+r,h=e.width??0,o=e.positioned&&(e.widthInColumns??1)>1&&h>s?h:s,d=q(e.directions??[],l,e,o),c=R(a,o,i,d);return c.attr("style",e.style??null),f(e,c),e.intersect=function(t){return D(e,d,t)},a}async function j(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=l?.nodeBorder??l?.lineColor??"currentColor",c=a.padding??12,g=Math.max(s.width+2*c,a.width??0,90),u=Math.max(s.height+2*c+18,a.height??0),x=-u/2,{cssStyles:p}=a,w=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k(-g/2,x,g,u,12),(0,e.userNodeOverrides)(a,{}));w.node()?.appendChild(t),p&&w.attr("style",p)}else w.append("rect").attr("x",-g/2).attr("y",x).attr("width",g).attr("height",u).attr("rx",12).attr("ry",12).attr("style",i);w.append("line").attr("x1",-g/2).attr("y1",x+18).attr("x2",g/2).attr("y2",x+18).attr("style",`stroke:${d};stroke-width:1px`);for(let t=0;t<3;t++)w.append("circle").attr("cx",-g/2+12+9*t).attr("cy",x+9).attr("r",2.5).attr("style",`fill:${d};stroke:none`);w.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",x+4).attr("width",Math.max(g-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${d};stroke-width:1px;opacity:0.6`),f(a,w);let $=x+18+(u-18)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return b(a,t)},n}async function F(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?28:n,h="neo"===a.look?24:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=(a?.width??c.width)+("neo"===a.look?2*s:s+12),u=(a?.height??c.height)+("neo"===a.look?2*h:h),p=-u,w=[{x:12,y:p},{x:g,y:p},{x:g,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:$}=a;if("handDrawn"===a.look){let t=o.default.svg(d),r=(0,e.userNodeOverrides)(a,{}),i=x(w),n=t.path(i,r);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${u/2})`),$&&l.attr("style",$)}else l=R(d,g,u,w);return i&&l.attr("style",i),f(a,l),a.intersect=function(t){return D(a,w,t)},d}function U(t,a){let{nodeStyles:l}=(0,e.styles2String)(a);a.label="";let r=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:i}=a,n=Math.max(28,a.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=o.default.svg(r),d=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(d.roughness=0,d.fillStyle="solid");let c=x(s),g=h.path(c,d),y=r.insert(()=>g,":first-child");return i&&"handDrawn"!==a.look&&y.selectAll("path").attr("style",i),l&&"handDrawn"!==a.look&&y.selectAll("path").attr("style",l),a.width=28,a.height=28,a.intersect=function(t){return D(a,s,t)},r}async function V(t,a,l){let i,{labelStyles:s,nodeStyles:h}=(0,e.styles2String)(a);a.labelStyle=s;let{shapeSvg:d,bbox:c,halfPadding:g}=await y(t,a,m(a)),u=l?.padding??g,x="neo"===a.look?c.width/2+32:c.width/2+u,{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),n=t.circle(0,0,2*x,l);(i=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(p))}else i=d.insert("circle",":first-child").attr("class","basic label-container").attr("style",h).attr("r",x).attr("cx",0).attr("cy",0);return f(a,i),a.calcIntersect=function(t,e){let a=t.width/2;return M(t,a,e)},a.intersect=function(t){return n.log.info("Circle intersect",a,x,t),M(a,x,t)},d}async function Z(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:r,halfPadding:i}=await y(t,e,a),n=l.insert("rect",":first-child"),s=e.padding??0,h=e.positioned?e.width??0:r.width+s,o=e.positioned?e.height??0:r.height+s,d=e.positioned?-h/2:-r.width/2-i,c=e.positioned?-o/2:-r.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",h).attr("height",o),f(e,n),e.intersect=function(t){return b(e,t)},l}async function G(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=l?.nodeBorder??l?.lineColor??"currentColor",c=a.padding??12,g=Math.max(s.width+2*c,a.width??0,90),u=Math.max(s.height+2*c+20,a.height??0),x=-u/2,{cssStyles:p}=a,w=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k(-g/2,x,g,u,12),(0,e.userNodeOverrides)(a,{}));w.node()?.appendChild(t),p&&w.attr("style",p)}else w.append("rect").attr("x",-g/2).attr("y",x).attr("width",g).attr("height",u).attr("rx",12).attr("ry",12).attr("style",i);w.append("text").attr("x",-g/2+12).attr("y",x+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${d}`).text(">_"),f(a,w);let $=x+20+(u-20)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return b(a,t)},n}function X(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
|
|
2
|
+
M ${r.x},${r.y} L ${n.x},${n.y}`}function J(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l,a.label="";let i=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),s=Math.max(30,a?.width??0),{cssStyles:h}=a,d=o.default.svg(i),c=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(c.roughness=0,c.fillStyle="solid");let g=d.circle(0,0,2*s,c),y=X(s),u=d.path(y,c),x=i.insert(()=>g,":first-child");return x.insert(()=>u),x.attr("class","outer-path"),h&&"handDrawn"!==a.look&&x.selectAll("path").attr("style",h),r&&"handDrawn"!==a.look&&x.selectAll("path").attr("style",r),f(a,x),a.intersect=function(t){return n.log.info("crossedCircle intersect",a,{radius:s,point:t}),M(a,s,t)},i}function K(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function Y(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+h,g=n.height+d,u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...K(c/2,-g/2,u,30,-90,0),{x:-c/2-u,y:u},...K(c/2+2*u,-u,u,20,-180,-270),...K(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:-g/2},...K(c/2,g/2,u,20,0,90)],$=[{x:c/2,y:-g/2-u},{x:-c/2,y:-g/2-u},...K(c/2,-g/2,u,20,-90,0),{x:-c/2-u,y:-u},...K(c/2+.1*c,-u,u,20,-180,-270),...K(c/2+.1*c,u,u,20,-90,-180),{x:-c/2-u,y:g/2},...K(c/2,g/2,u,20,0,90),{x:-c/2,y:g/2+u},{x:c/2,y:g/2+u}],b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=x(w).replace("Z",""),S=b.path(_,k),M=x($),v=b.path(M,{...k}),N=i.insert("g",":first-child");return N.insert(()=>v,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${u}, 0)`),s.attr("transform",`translate(${-c/2+u-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,N),a.intersect=function(t){return D(a,$,t)},i}function Q(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:i,y:o})}return n}async function tt(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+("neo"===a.look?2*h:h),g=n.height+("neo"===a.look?2*d:d),u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...Q(c/2,-g/2,u,20,-90,0),{x:c/2+u,y:-u},...Q(c/2+2*u,-u,u,20,-180,-270),...Q(c/2+2*u,u,u,20,-90,-180),{x:c/2+u,y:g/2},...Q(c/2,g/2,u,20,0,90)],$=[{x:-c/2,y:-g/2-u},{x:c/2,y:-g/2-u},...Q(c/2,-g/2,u,20,-90,0),{x:c/2+u,y:-u},...Q(c/2+2*u,-u,u,20,-180,-270),...Q(c/2+2*u,u,u,20,-90,-180),{x:c/2+u,y:g/2},...Q(c/2,g/2,u,20,0,90),{x:c/2,y:g/2+u},{x:-c/2,y:g/2+u}],b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=x(w).replace("Z",""),S=b.path(_,k),M=x($),v=b.path(M,{...k}),N=i.insert("g",":first-child");return N.insert(()=>v,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${-u}, 0)`),s.attr("transform",`translate(${-c/2+(a.padding??0)/2-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,N),a.intersect=function(t){return D(a,$,t)},i}function te(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function ta(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+("neo"===a.look?2*h:h),g=n.height+("neo"===a.look?2*d:d),u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...te(c/2,-g/2,u,30,-90,0),{x:-c/2-u,y:u},...te(c/2+2*u,-u,u,20,-180,-270),...te(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:-g/2},...te(c/2,g/2,u,20,0,90)],$=[...te(-c/2+u+u/2,-g/2,u,20,-90,-180),{x:c/2-u/2,y:u},...te(-c/2-u/2,-u,u,20,0,90),...te(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...te(-c/2+u+u/2,g/2,u,30,-180,-270)],b=[{x:c/2,y:-g/2-u},{x:-c/2,y:-g/2-u},...te(c/2,-g/2,u,20,-90,0),{x:-c/2-u,y:-u},...te(c/2+2*u,-u,u,20,-180,-270),...te(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:g/2},...te(c/2,g/2,u,20,0,90),{x:-c/2,y:g/2+u},{x:c/2-u-u/2,y:g/2+u},...te(-c/2+u+u/2,-g/2,u,20,-90,-180),{x:c/2-u/2,y:u},...te(-c/2-u/2,-u,u,20,0,90),...te(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...te(-c/2+u+u/2,g/2,u,30,-180,-270)],k=o.default.svg(i),_=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=x(w).replace("Z",""),M=k.path(S,_),v=x($).replace("Z",""),N=k.path(v,_),C=x(b),A=k.path(C,{..._}),B=i.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>M,":first-child"),B.insert(()=>N,":first-child"),B.attr("class","text"),p&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(${u-u/4}, 0)`),s.attr("transform",`translate(${-c/2+(a.padding??0)/2-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,B),a.intersect=function(t){return D(a,b,t)},i}async function tl(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(20,(d.width+2*n)*1.25,a?.width??0),g=Math.max(5,d.height+2*s,a?.height??0),u=g/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=c-u,_=g/4,S=[{x:k,y:0},{x:_,y:0},{x:0,y:g/2},{x:_,y:g},{x:k,y:g},...w(-k,-g/2,u,50,270,90)],M=x(S),v=$.path(M,b),N=h.insert(()=>v,":first-child");return N.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&N.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectChildren("path").attr("style",r),N.attr("transform",`translate(${-c/2}, ${-g/2})`),f(a,N),a.intersect=function(t){return D(a,S,t)},h}async function tr(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=a.padding??20,d=Math.max(n.width+2*h,a.width??0,100),c=Math.min(Math.max(.23*d,16),56),g=.27*c,u=Math.max(n.height+2*h,a.height?a.height-(2*c-g):0),x=Math.min(.177*d,.45*u),p=u+2*c-g,$=-p/2,b=$+2*c-g,_=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:S}=a;if("handDrawn"===a.look){let t=o.default.svg(i),l=(0,e.userNodeOverrides)(a,{}),r=t.path(k(-d/2,b,d,u,x),l),n=t.circle(0,$+c,2*c,l);_.insert(()=>n,":first-child"),_.insert(()=>r,":first-child"),S&&_.attr("style",S)}else _.append("rect").attr("x",-d/2).attr("y",b).attr("width",d).attr("height",u).attr("rx",x).attr("ry",x).attr("style",r),_.append("circle").attr("cx",0).attr("cy",$+c).attr("r",c).attr("style",r);f(a,_);let M=b+u/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${M-n.height/2-(n.y-(n.top??0))})`);let v=$+c,N=180*Math.asin(Math.min(1,(b-v)/c))/Math.PI,C=[...w(0,-v,c,24,180+N,-N),...w(-(-d/2+x),-(b+x),x,12,90,0),...w(-(-d/2+x),-(p/2-x),x,12,360,270),...w(-(d/2-x),-(p/2-x),x,12,270,180),...w(-(d/2-x),-(b+x),x,12,180,90)];return a.intersect=function(t){return D(a,C,t)},i}(0,s.__name)(z,"block_arrow"),(0,s.__name)(j,"browser"),(0,s.__name)(F,"card"),(0,s.__name)(U,"choice"),(0,s.__name)(V,"circle"),(0,s.__name)(Z,"composite"),(0,s.__name)(G,"consoleWindow"),(0,s.__name)(X,"createLine"),(0,s.__name)(J,"crossedCircle"),(0,s.__name)(K,"generateCirclePoints"),(0,s.__name)(Y,"curlyBraceLeft"),(0,s.__name)(Q,"generateCirclePoints"),(0,s.__name)(tt,"curlyBraceRight"),(0,s.__name)(te,"generateCirclePoints"),(0,s.__name)(ta,"curlyBraces"),(0,s.__name)(tl,"curvedTrapezoid"),(0,s.__name)(tr,"person");var ti=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),tn=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),ts=(0,s.__name)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function th(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?24:s,d="neo"===a.look?24:s,c=a.width??0;a.width&&(a.width=a.width-d,a.width<8&&(a.width=8)),a.height&&(a.height=a.height-h-c/2/(2.5+c/50)*3,a.height<8&&(a.height=8));let{shapeSvg:g,bbox:u,label:x}=await y(t,a,m(a)),p=Math.max(a.width??0,u.width)+d,w=p/2,$=w/(2.5+p/50),k=Math.max(a.height??0,u.height)+h+$,{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(g),r=tn(0,0,p,k,w,$),i=ts(0,$,p,k,w,$),n=(0,e.userNodeOverrides)(a,{}),s=t.path(r,n),h=t.path(i,(0,e.userNodeOverrides)(a,{fill:"none"}));l=g.insert(()=>h,":first-child"),(l=g.insert(()=>s,":first-child")).attr("class","basic label-container"),_&&l.attr("style",_)}else{let t=ti(0,0,p,k,w,$);l=g.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)(_)).attr("style",n)}return l.attr("label-offset-y",$),l.attr("transform",`translate(${-p/2}, ${-(k/2+$)})`),f(a,l),x.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(a.padding??0)/1.5-(u.y-(u.top??0))})`),a.intersect=function(t){let e=b(a,t),l=e.x-(a.x??0);if(0!=w&&(Math.abs(l)<(a.width??0)/2||Math.abs(l)==(a.width??0)/2&&Math.abs(e.y-(a.y??0))>(a.height??0)/2-$)){let r=$*$*(1-l*l/(w*w));r>0&&(r=Math.sqrt(r)),r=$-r,t.y-(a.y??0)>0&&(r=-r),e.y+=r}return e},g}async function to(t,a,l){let i,{labelStyles:n,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=n;let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.width+2*l.labelPaddingX,a?.width||0),g=Math.max(d.height+2*l.labelPaddingY,a?.height||0),u=-c/2,x=-g/2,{rx:p,ry:w}=a,{cssStyles:$}=a;if(l?.rx&&l.ry&&(p=l.rx,w=l.ry),"handDrawn"===a.look){let t=o.default.svg(h),l=(0,e.userNodeOverrides)(a,{}),n=p||w?t.path(k(u,x,c,g,p||0),l):t.rectangle(u,x,c,g,l);(i=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)($))}else(i=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,r.handleUndefinedAttr)(p)).attr("ry",(0,r.handleUndefinedAttr)(w)).attr("x",u).attr("y",x).attr("width",c).attr("height",g);return f(a,i,"handDrawn"===a.look?void 0:{width:c,height:g}),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},h}async function td(t,a){let{cssClasses:l,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:h}=a,d=await to(t,a,{rx:0,ry:0,classes:l??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),r=d.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return d;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),d.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,l),".basic.label-container g.label"),d.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,l),".basic.label-container g.label"),r.remove()),d}let c=d.select(".basic.label-container"),g=(Number(c.attr("width"))||s)??0,y=(Number(c.attr("height"))||h)??0;return g>0&&y>0&&c.attr("stroke-dasharray",`${g} ${y}`),d}async function tc(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,n="neo"===a.look?16:a.padding??0,{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=h.width+i,g=h.height+n,u=.2*g,x=-c/2,p=-g/2-u/2,{cssStyles:w}=a,$=o.default.svg(s),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=$.polygon([{x,y:p+u},{x:-x,y:p+u},{x:-x,y:-p},{x,y:-p},{x,y:p},{x:-x,y:p},{x:-x,y:p+u}].map(t=>[t.x,t.y]),k),S=s.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),w&&"handDrawn"!==a.look&&S.selectAll("path").attr("style",w),r&&"handDrawn"!==a.look&&S.selectAll("path").attr("style",r),d.attr("transform",`translate(${x+(a.padding??0)/2-(h.x-(h.left??0))}, ${p+u+(a.padding??0)/2-(h.y-(h.top??0))})`),f(a,S),a.intersect=function(t){return b(a,t)},s}async function tg(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a),h="neo"===a.look?12:5;a.labelStyle=i;let d=a.padding??0,c="neo"===a.look?16:d,{shapeSvg:g,bbox:u}=await y(t,a,m(a)),x=(a?.width?a?.width/2:u.width/2)+(c??0),p=x-h,{cssStyles:w}=a;if("handDrawn"===a.look){let t=o.default.svg(g),i=(0,e.userNodeOverrides)(a,{roughness:.2,strokeWidth:2.5}),n=(0,e.userNodeOverrides)(a,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*x,i),h=t.circle(0,0,2*p,n);(l=g.insert("g",":first-child")).attr("class",(0,r.handleUndefinedAttr)(a.cssClasses)).attr("style",(0,r.handleUndefinedAttr)(w)),l.node()?.appendChild(s),l.node()?.appendChild(h)}else{let t=(l=g.insert("g",":first-child")).insert("circle",":first-child"),e=l.insert("circle");l.attr("class","basic label-container").attr("style",s),t.attr("class","outer-circle").attr("style",s).attr("r",x).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0)}return f(a,l),a.intersect=function(t){return n.log.info("DoubleCircle intersect",a,x,t),M(a,x,t)},g}function ty(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.label="",a.labelStyle=r;let s=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:h}=a,d=o.default.svg(s),{nodeBorder:c}=l,g=(0,e.userNodeOverrides)(a,{fillStyle:"solid"});"handDrawn"!==a.look&&(g.roughness=0);let y=d.circle(0,0,14,g),u=s.insert(()=>y,":first-child");return u.selectAll("path").attr("style",`fill: ${c} !important;`),h&&h.length>0&&"handDrawn"!==a.look&&u.selectAll("path").attr("style",h),i&&"handDrawn"!==a.look&&u.selectAll("path").attr("style",i),f(a,u),a.intersect=function(t){return n.log.info("filledCircle intersect",a,{radius:7,point:t}),M(a,7,t)},s}async function tu(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,s="neo"===a.look?2*i:i;(a.width||a.height)&&(a.height=a?.height??0,a.height<10&&(a.height=10),a.width=(a?.width??0)-s-s/2,a.width<10&&(a.width=10));let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+(s??0),u=a?.height?a?.height:g+d.height,p=[{x:0,y:-u},{x:u,y:-u},{x:u/2,y:0}],{cssStyles:w}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=x(p),_=$.path(k,b),S=h.insert(()=>_,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return w&&"handDrawn"!==a.look&&S.selectChildren("path").attr("style",w),r&&"handDrawn"!==a.look&&S.selectChildren("path").attr("style",r),a.width=g,a.height=u,f(a,S),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-u/2+(a.padding??0)/2+(d.y-(d.top??0))})`),a.intersect=function(t){return n.log.info("Triangle intersect",a,p,t),D(a,p,t)},h}async function tf(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=a.padding??12,c=Math.max(s.width+2*d,a.width??0,90),g=s.height+2*d,u=Math.max(Math.min(.16*g,14),8),x=Math.max(g+u,a.height??0),p=x-u,w=Math.max(.38*c,28),$=-x/2,b=[{x:-c/2,y:$},{x:-c/2+w,y:$},{x:-c/2+w,y:$+u},{x:c/2,y:$+u},{x:c/2,y:x/2},{x:-c/2,y:x/2}],k=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(n).path(k,(0,e.userNodeOverrides)(a,{}));l=n.insert(()=>t,":first-child").attr("class","basic label-container"),_&&l.attr("style",_)}else l=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===a.look?f(a,l):f(a,l,{width:c,height:x}),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$+u+p/2-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return D(a,b,t)},n}function tm(t,a,{dir:l,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,e.styles2String)(a);a.label="";let s=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:h}=a,d=Math.max(70,a?.width??0),c=Math.max(10,a?.height??0);"LR"===l&&(d=Math.max(10,a?.width??0),c=Math.max(70,a?.height??0));let g=-1*d/2,y=-1*c/2,u=o.default.svg(s),x=(0,e.userNodeOverrides)(a,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==a.look&&(x.roughness=0,x.fillStyle="solid");let p=u.rectangle(g,y,d,c,x),w=s.insert(()=>p,":first-child");h&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",h),n&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",n),f(a,w);let $=r?.padding??0;return a.width&&a.height&&(a.width+=$/2||0,a.height+=$/2||0),a.intersect=function(t){return b(a,t)},s}async function tx(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,s="neo"===a.look?12:a.padding??0;(a.width||a.height)&&(a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10),a.width=(a?.width??0)-2*i,a.width<15&&(a.width=15));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:Math.max(15,d.width))+2*i,g=(a?.height?a?.height:Math.max(10,d.height))+2*s,u=g/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-c/2,y:-g/2},{x:c/2-u,y:-g/2},...w(-c/2+u,0,u,50,90,270),{x:c/2-u,y:g/2},{x:-c/2,y:g/2}],_=x(k),S=$.path(_,b),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",r),f(a,M),a.intersect=function(t){return n.log.info("Pill intersect",a,{radius:u,point:t}),D(a,k,t)},h}(0,s.__name)(th,"cylinder"),(0,s.__name)(to,"drawRect"),(0,s.__name)(td,"datastore"),(0,s.__name)(tc,"dividedRectangle"),(0,s.__name)(tg,"doublecircle"),(0,s.__name)(ty,"filledCircle"),(0,s.__name)(tu,"flippedTriangle"),(0,s.__name)(tf,"folder"),(0,s.__name)(tm,"forkJoin"),(0,s.__name)(tx,"halfRoundedRectangle");var tp=(0,s.__name)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tw(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a),n="neo"===a.look?3.5:4;a.labelStyle=r;let s=a.padding??0,h="neo"===a.look?70:s,d="neo"===a.look?32:s;if(a.width||a.height){let t=a.height??0;a.width=(a?.width??0)-t/n*2-d,a.height=(a.height??0)-h}let{shapeSvg:c,bbox:g}=await y(t,a,m(a)),u=(a?.height?a?.height:g.height)+h,x=u/n,p=(a?.width?a?.width:g.width)+2*x+d,w=[{x:x,y:0},{x:p-x,y:0},{x:p,y:-u/2},{x:p-x,y:-u},{x:x,y:-u},{x:0,y:-u/2}],{cssStyles:$}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=(0,e.userNodeOverrides)(a,{}),i=tp(0,0,p,u,x),n=t.path(i,r);l=c.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),$&&l.attr("style",$)}else l=R(c,p,u,w);return i&&l.attr("style",i),a.width=p,a.height=u,f(a,l),a.intersect=function(t){return D(a,w,t)},c}async function t$(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.label="",a.labelStyle=l;let{shapeSvg:i}=await y(t,a,m(a)),s=Math.max(30,a?.width??0),h=Math.max(30,a?.height??0),{cssStyles:d}=a,c=o.default.svg(i),g=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(g.roughness=0,g.fillStyle="solid");let u=[{x:0,y:0},{x:s,y:0},{x:0,y:h},{x:s,y:h}],p=x(u),w=c.path(p,g),$=i.insert(()=>w,":first-child");return $.attr("class","basic label-container outer-path"),d&&"handDrawn"!==a.look&&$.selectChildren("path").attr("style",d),r&&"handDrawn"!==a.look&&$.selectChildren("path").attr("style",r),$.attr("transform",`translate(${-s/2}, ${-h/2})`),f(a,$),a.intersect=function(t){return n.log.info("Pill intersect",a,{points:u}),D(a,u,t)},i}async function tb(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,label:g}=await y(t,a,"icon-shape default"),u="t"===a.pos,{nodeBorder:m}=r,{stylesMap:x}=(0,e.compileStyles)(a),p=-h/2,w=-h/2,$=8*!!a.label,k=o.default.svg(d),_=(0,e.userNodeOverrides)(a,{stroke:"none",fill:"none"});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=k.rectangle(p,w,h,h,_),M=Math.max(h,c.width),v=h+c.height+$,N=k.rectangle(-M/2,-v/2,M,v,{..._,fill:"transparent",stroke:"none"}),C=d.insert(()=>S,":first-child"),A=d.insert(()=>N);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${u?c.height/2+$/2-i/2-s:-c.height/2-$/2-i/2-s})`),t.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-v/2:v/2-c.height})`),C.attr("transform",`translate(0,${u?c.height/2+$/2:-c.height/2-$/2})`),f(a,A),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=u?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+$},{x:e+h/2,y:l-r/2+c.height+$},{x:e+h/2,y:l+r/2},{x:e-h/2,y:l+r/2},{x:e-h/2,y:l-r/2+c.height+$},{x:e-c.width/2,y:l-r/2+c.height+$}]:[{x:e-h/2,y:l-r/2},{x:e+h/2,y:l-r/2},{x:e+h/2,y:l-r/2+h},{x:e+c.width/2,y:l-r/2+h},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+h},{x:e-h/2,y:l-r/2+h}],t)},d}async function tk(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,label:g}=await y(t,a,"icon-shape default"),u=8*!!a.label,m="t"===a.pos,{nodeBorder:x,mainBkg:p}=r,{stylesMap:w}=(0,e.compileStyles)(a),$=o.default.svg(d),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=w.get("fill")??p;let _=d.append("g");a.icon&&_.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let S=_.node().getBBox(),M=S.width,v=S.height,N=S.x,D=S.y,C=Math.max(M,v)*Math.SQRT2+40,A=$.circle(0,0,C,k),B=Math.max(C,c.width),P=C+c.height+u,L=$.rectangle(-B/2,-P/2,B,P,{...k,fill:"transparent",stroke:"none"}),O=d.insert(()=>A,":first-child"),R=d.insert(()=>L);return _.attr("transform",`translate(${-M/2-N},${m?c.height/2+u/2-v/2-D:-c.height/2-u/2-v/2-D})`),_.attr("style",`color: ${w.get("stroke")??x};`),g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-P/2:P/2-c.height})`),O.attr("transform",`translate(0,${m?c.height/2+u/2:-c.height/2-u/2})`),f(a,R),a.intersect=function(t){return n.log.info("iconSquare intersect",a,t),b(a,t)},d}async function t_(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,halfPadding:g,label:u}=await y(t,a,"icon-shape default"),m="t"===a.pos,x=h+2*g,p=h+2*g,{nodeBorder:w,mainBkg:$}=r,{stylesMap:_}=(0,e.compileStyles)(a),S=8*!!a.label,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=_.get("fill")??$;let N=M.path(k(-p/2,-x/2,p,x,5),v),C=Math.max(p,c.width),A=x+c.height+S,B=M.rectangle(-C/2,-A/2,C,A,{...v,fill:"transparent",stroke:"none"}),P=d.insert(()=>N,":first-child").attr("class","icon-shape2"),L=d.insert(()=>B);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${m?c.height/2+S/2-i/2-s:-c.height/2-S/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??w};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-A/2:A/2-c.height})`),P.attr("transform",`translate(0,${m?c.height/2+S/2:-c.height/2-S/2})`),f(a,L),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=m?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+S},{x:e+p/2,y:l-r/2+c.height+S},{x:e+p/2,y:l+r/2},{x:e-p/2,y:l+r/2},{x:e-p/2,y:l-r/2+c.height+S},{x:e-c.width/2,y:l-r/2+c.height+S}]:[{x:e-p/2,y:l-r/2},{x:e+p/2,y:l-r/2},{x:e+p/2,y:l-r/2+x},{x:e+c.width/2,y:l-r/2+x},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+x},{x:e-p/2,y:l-r/2+x}],t)},d}async function tS(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,halfPadding:g,label:u}=await y(t,a,"icon-shape default"),m="t"===a.pos,x=h+2*g,p=h+2*g,{nodeBorder:w,mainBkg:$}=r,{stylesMap:_}=(0,e.compileStyles)(a),S=8*!!a.label,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=_.get("fill")??$;let N=M.path(k(-p/2,-x/2,p,x,.1),v),C=Math.max(p,c.width),A=x+c.height+S,B=M.rectangle(-C/2,-A/2,C,A,{...v,fill:"transparent",stroke:"none"}),P=d.insert(()=>N,":first-child"),L=d.insert(()=>B);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${m?c.height/2+S/2-i/2-s:-c.height/2-S/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??w};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-A/2:A/2-c.height})`),P.attr("transform",`translate(0,${m?c.height/2+S/2:-c.height/2-S/2})`),f(a,L),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=m?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+S},{x:e+p/2,y:l-r/2+c.height+S},{x:e+p/2,y:l+r/2},{x:e-p/2,y:l+r/2},{x:e-p/2,y:l-r/2+c.height+S},{x:e-c.width/2,y:l-r/2+c.height+S}]:[{x:e-p/2,y:l-r/2},{x:e+p/2,y:l-r/2},{x:e+p/2,y:l-r/2+x},{x:e+c.width/2,y:l-r/2+x},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+x},{x:e-p/2,y:l-r/2+x}],t)},d}async function tM(t,a,{config:{flowchart:l}}){let r=new Image;r.src=a?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),s=Number(r.naturalHeight.toString().replace("px",""));a.imageAspectRatio=i/s;let{labelStyles:h}=(0,e.styles2String)(a);a.labelStyle=h;let d=l?.wrappingWidth;a.defaultWidth=l?.wrappingWidth;let c=Math.max(a.label?d??0:0,a?.assetWidth??i),g="on"===a.constraint&&a?.assetHeight?a.assetHeight*a.imageAspectRatio:c,u="on"===a.constraint?g/a.imageAspectRatio:a?.assetHeight??s;a.width=Math.max(g,d??0);let{shapeSvg:m,bbox:x,label:p}=await y(t,a,"image-shape default"),w="t"===a.pos,$=-g/2,k=8*!!a.label,_=o.default.svg(m),S=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(S.roughness=0,S.fillStyle="solid");let M=_.rectangle($,-u/2,g,u,S),v=Math.max(g,x.width),N=u+x.height+k,C=_.rectangle(-v/2,-N/2,v,N,{...S,fill:"none",stroke:"none"}),A=m.insert(()=>M,":first-child"),B=m.insert(()=>C);if(a.img){let t=m.append("image");t.attr("href",a.img),t.attr("width",g),t.attr("height",u),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${w?N/2-u:-N/2})`)}return p.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${w?-u/2-x.height/2-k/2:u/2-x.height/2+k/2})`),A.attr("transform",`translate(0,${w?x.height/2+k/2:-x.height/2-k/2})`),f(a,B),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=w?[{x:e-x.width/2,y:l-r/2},{x:e+x.width/2,y:l-r/2},{x:e+x.width/2,y:l-r/2+x.height+k},{x:e+g/2,y:l-r/2+x.height+k},{x:e+g/2,y:l+r/2},{x:e-g/2,y:l+r/2},{x:e-g/2,y:l-r/2+x.height+k},{x:e-x.width/2,y:l-r/2+x.height+k}]:[{x:e-g/2,y:l-r/2},{x:e+g/2,y:l-r/2},{x:e+g/2,y:l-r/2+u},{x:e+x.width/2,y:l-r/2+u},{x:e+x.width/2/2,y:l+r/2},{x:e-x.width/2,y:l+r/2},{x:e-x.width/2,y:l-r/2+u},{x:e-g/2,y:l-r/2+u}],t)},m}async function tv(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+2*n,a.height??0),g=Math.max(d.width+2*s,(a.width??0)-c),u=[{x:0,y:0},{x:g,y:0},{x:g+3*c/6,y:-c},{x:-3*c/6,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}async function tN(t,e){let{shapeSvg:a,bbox:l,label:r}=await y(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),f(e,i),e.intersect=function(t){return b(e,t)},a}async function tD(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+n,a.height??0),g=Math.max(d.width+s,(a.width??0)-c),u=[{x:0,y:0},{x:g+3*c/6,y:0},{x:g,y:-c},{x:-(3*c)/6,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}async function tC(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+n,a.height??0),g=Math.max(d.width+s,(a.width??0)-c),u=[{x:-3*c/6,y:0},{x:g,y:0},{x:g+3*c/6,y:-c},{x:0,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}function tA(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.label="",a.labelStyle=l;let i=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:s}=a,h=Math.max(35,a?.width??0),d=Math.max(35,a?.height??0),c=[{x:h,y:0},{x:0,y:d+3.5},{x:h-14,y:d+3.5},{x:0,y:2*d},{x:h,y:d-3.5},{x:14,y:d-3.5}],g=o.default.svg(i),y=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(y.roughness=0,y.fillStyle="solid");let u=x(c),p=g.path(u,y),w=i.insert(()=>p,":first-child");return w.attr("class","outer-path"),s&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",s),r&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",r),w.attr("transform",`translate(-${h/2},${-d})`),f(a,w),a.intersect=function(t){return n.log.info("lightningBolt intersect",a,t),D(a,c,t)},i}(0,s.__name)(tw,"hexagon"),(0,s.__name)(t$,"hourglass"),(0,s.__name)(tb,"icon"),(0,s.__name)(tk,"iconCircle"),(0,s.__name)(t_,"iconRounded"),(0,s.__name)(tS,"iconSquare"),(0,s.__name)(tM,"imageSquare"),(0,s.__name)(tv,"inv_trapezoid"),(0,s.__name)(tN,"labelRect"),(0,s.__name)(tD,"lean_left"),(0,s.__name)(tC,"lean_right"),(0,s.__name)(tA,"lightningBolt");var tB=(0,s.__name)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tP=(0,s.__name)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tL=(0,s.__name)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tO(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?16:s,d="neo"===a.look?24:s;if(a.width||a.height){let t=a.width??0;a.width=(a.width??0)-h,a.width<10&&(a.width=10),a.height=(a.height??0)-d-t/2/(2.5+t/50)*3,a.height<10&&(a.height=10)}let{shapeSvg:c,bbox:g,label:u}=await y(t,a,m(a)),x=(a?.width?a?.width:g.width)+2*h,p=x/2,w=p/(2.5+x/50),$=(a?.height?a?.height:g.height)+w+2*d,k=.1*$,{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=tP(0,0,x,$,p,w,k),i=tL(0,w,x,$,p,w),n=(0,e.userNodeOverrides)(a,{}),s=t.path(r,n),h=t.path(i,n);c.insert(()=>h,":first-child").attr("class","line"),(l=c.insert(()=>s,":first-child")).attr("class","basic label-container"),_&&l.attr("style",_)}else{let t=tB(0,0,x,$,p,w,k);l=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)(_)).attr("style",n)}return l.attr("label-offset-y",w),l.attr("transform",`translate(${-x/2}, ${-($/2+w)})`),f(a,l),u.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+w-(g.y-(g.top??0))})`),a.intersect=function(t){let e=b(a,t),l=e.x-(a.x??0);if(0!=p&&(Math.abs(l)<(a.width??0)/2||Math.abs(l)==(a.width??0)/2&&Math.abs(e.y-(a.y??0))>(a.height??0)/2-w)){let r=w*w*(1-l*l/(p*p));r>0&&(r=Math.sqrt(r)),r=w-r,t.y-(a.y??0)>0&&(r=-r),e.y+=r}return e},c}async function tR(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;if(a.width||a.height){let t=a.width;a.width=(t??0)*10/11-2*n,a.width<10&&(a.width=10),a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10)}let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+(n??0)*2,u=(a?.height?a?.height:d.height)+(s??0)*2,x="neo"===a.look?u/4:u/8,w=u+x,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-g/2-g/2*.1,y:-w/2},{x:-g/2-g/2*.1,y:w/2},...p(-g/2-g/2*.1,w/2,g/2+g/2*.1,w/2,x,.8),{x:g/2+g/2*.1,y:-w/2},{x:-g/2-g/2*.1,y:-w/2},{x:-g/2,y:-w/2},{x:-g/2,y:w/2*1.1},{x:-g/2,y:-w/2}],S=b.polygon(_.map(t=>[t.x,t.y]),k),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",r),M.attr("transform",`translate(0,${-x/2})`),c.attr("transform",`translate(${-g/2+(a.padding??0)+g/2*.1/2-(d.x-(d.left??0))},${-u/2+(a.padding??0)-x/2-(d.y-(d.top??0))})`),f(a,M),a.intersect=function(t){return D(a,_,t)},h}async function tT(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,h="neo"===a.look?10:5;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*n-2*h,10),a.height=Math.max((a?.height??0)-2*s-2*h,10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(a?.width?a?.width:c.width)+2*n+2*h,p=(a?.height?a?.height:c.height)+2*s+2*h,w=u-2*h,b=p-2*h,k=-w/2,_=-b/2,{cssStyles:S}=a,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{}),N=[{x:k-h,y:_+h},{x:k-h,y:_+b+h},{x:k+w-h,y:_+b+h},{x:k+w-h,y:_+b},{x:k+w,y:_+b},{x:k+w,y:_+b-h},{x:k+w+h,y:_+b-h},{x:k+w+h,y:_-h},{x:k+h,y:_-h},{x:k+h,y:_},{x:k,y:_},{x:k,y:_+h}];"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let C=x(N),A=M.path(C,v),B=x([{x:k,y:_+h},{x:k+w-h,y:_+h},{x:k+w-h,y:_+b},{x:k+w,y:_+b},{x:k+w,y:_},{x:k,y:_}]),P=M.path(B,v);"handDrawn"!==a.look&&(A=$(A),P=$(P));let L=d.insert("g",":first-child");return L.insert(()=>A),L.insert(()=>P),L.attr("class","basic label-container outer-path"),S&&"handDrawn"!==a.look&&L.selectAll("path").attr("style",S),r&&"handDrawn"!==a.look&&L.selectAll("path").attr("style",r),g.attr("transform",`translate(${-(c.width/2)-h-(c.x-(c.left??0))}, ${-(c.height/2)+h-(c.y-(c.top??0))})`),f(a,L),a.intersect=function(t){return D(a,N,t)},d}async function tI(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=a.padding??0,d="neo"===a.look?16:h,c="neo"===a.look?12:h,g=!0;(a.width||a.height)&&(g=!1,a.width=(a?.width??0)-2*d,a.height=(a?.height??0)-3*c);let u=Math.max(n.width,a?.width??0)+2*d,w=Math.max(n.height,a?.height??0)+3*c,$="neo"===a.look?w/4:w/8,b=w+(g?$/2:-$/2),k=-u/2,_=-b/2,{cssStyles:S}=a,M=p(k-10,_+b+10,k+u-10,_+b+10,$,.8),v=M?.[M.length-1],N=[{x:k-10,y:_+10},{x:k-10,y:_+b+10},...M,{x:k+u-10,y:v.y-10},{x:k+u,y:v.y-10},{x:k+u,y:v.y-20},{x:k+u+10,y:v.y-20},{x:k+u+10,y:_-10},{x:k+10,y:_-10},{x:k+10,y:_},{x:k,y:_},{x:k,y:_+10}],C=[{x:k,y:_+10},{x:k+u-10,y:_+10},{x:k+u-10,y:v.y-10},{x:k+u,y:v.y-10},{x:k+u,y:_},{x:k,y:_}],A=o.default.svg(i),B=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(B.roughness=0,B.fillStyle="solid");let P=x(N),L=A.path(P,B),O=x(C),R=A.path(O,B),T=i.insert(()=>L,":first-child");return T.insert(()=>R),T.attr("class","basic label-container outer-path"),S&&"handDrawn"!==a.look&&T.selectAll("path").attr("style",S),r&&"handDrawn"!==a.look&&T.selectAll("path").attr("style",r),T.attr("transform",`translate(0,${-$/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-$/2-(n.y-(n.top??0))})`),f(a,T),a.intersect=function(t){return D(a,N,t)},i}async function tH(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=r,a.useHtmlLabels||(0,i.getEffectiveHtmlLabels)((0,i.getConfig)())||(a.centerLabel=!0);let{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=Math.max(h.width+(a.padding??0)*2,a?.width??0),g=Math.max(h.height+(a.padding??0)*2,a?.height??0),{cssStyles:u}=a,x=o.default.svg(s),p=(0,e.userNodeOverrides)(a,{fill:l.noteBkgColor,stroke:l.noteBorderColor});"handDrawn"!==a.look&&(p.roughness=0,p.fillStyle="solid");let w=x.rectangle(-c/2,-g/2,c,g,p),$=s.insert(()=>w,":first-child");return $.attr("class","basic label-container outer-path"),d.attr("class","label noteLabel"),u&&"handDrawn"!==a.look&&$.selectAll("path").attr("style",u),n&&"handDrawn"!==a.look&&$.selectAll("path").attr("style",n),d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),f(a,$),a.intersect=function(t){return b(a,t)},s}(0,s.__name)(tO,"linedCylinder"),(0,s.__name)(tR,"linedWaveEdgedRect"),(0,s.__name)(tT,"multiRect"),(0,s.__name)(tI,"multiWaveEdgedRectangle"),(0,s.__name)(tH,"note");var tE=(0,s.__name)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tW(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s}=await y(t,a,m(a)),h=s.width+(a.padding??0)+(s.height+(a.padding??0)),d=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:c}=a;if("handDrawn"===a.look){let t=o.default.svg(n),r=(0,e.userNodeOverrides)(a,{}),i=tE(0,0,h),s=t.path(i,r);l=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),c&&l.attr("style",c)}else(l=R(n,h,h,d)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return i&&l.attr("style",i),f(a,l),a.calcIntersect=function(t,e){let a=t.width,l=D(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},a.intersect=function(t){return this.calcIntersect(a,t)},n}async function tq(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?21:i??0,s="neo"===a.look?12:i??0,{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=d.width+("neo"===a.look?2*n:n),u=Math.max(d.height+("neo"===a.look?2*s:s),a.height??0),p=-Math.max(g,(a.width??0)-u/4)/2,w=-u/2,$=w/2,b=[{x:p+$,y:w},{x:p,y:0},{x:p+$,y:-w},{x:-p,y:-w},{x:-p,y:w}],{cssStyles:k}=a,_=o.default.svg(h),S=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(S.roughness=0,S.fillStyle="solid");let M=x(b),v=_.path(M,S),N=h.insert(()=>v,":first-child");return N.attr("class","basic label-container outer-path"),k&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",k),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${-$/2},0)`),c.attr("transform",`translate(${-$/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),f(a,N),a.intersect=function(t){return D(a,b,t)},h}async function tz(t,a){let l,r,s,{labelStyles:d,nodeStyles:c}=(0,e.styles2String)(a);a.labelStyle=d,l=a.cssClasses?"node "+a.cssClasses:"node default";let g=t.insert("g").attr("class",l).attr("id",a.domId||a.id),y=g.insert("g"),u=g.insert("g").attr("class","label").attr("style",c),m=a.description,x=a.label,p=await _(u,x,a.labelStyle,!0,!0),w={width:0,height:0};if((0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())){let t=p.children[0],e=(0,h.select)(p);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}n.log.info("Text 2",m);let $=m||[],S=p.getBBox(),M=await _(u,Array.isArray($)?$.join("<br/>"):$,a.labelStyle,!0,!0),v=M.children[0],N=(0,h.select)(M);w=v.getBoundingClientRect(),N.attr("width",w.width),N.attr("height",w.height);let D=(a.padding||0)/2;(0,h.select)(M).attr("transform","translate( "+(w.width>S.width?0:(S.width-w.width)/2)+", "+(S.height+D+5)+")"),(0,h.select)(p).attr("transform","translate( "+(w.width<S.width?0:-(S.width-w.width)/2)+", 0)"),w=u.node().getBBox(),u.attr("transform","translate("+-w.width/2+", "+(-w.height/2-D+3)+")");let C=w.width+(a.padding||0),A=w.height+(a.padding||0),B=-w.width/2-D,P=-w.height/2-D;if("handDrawn"===a.look){let t=o.default.svg(g),l=(0,e.userNodeOverrides)(a,{}),i=t.path(k(B,P,C,A,a.rx||0),l),h=t.line(-w.width/2-D,-w.height/2-D+S.height+D,w.width/2+D,-w.height/2-D+S.height+D,l);s=g.insert(()=>(n.log.debug("Rough node insert CXC",i),h),":first-child"),r=g.insert(()=>(n.log.debug("Rough node insert CXC",i),i),":first-child")}else r=y.insert("rect",":first-child"),s=y.insert("line"),r.attr("class","outer title-state").attr("style",c).attr("x",-w.width/2-D).attr("y",-w.height/2-D).attr("width",w.width+(a.padding||0)).attr("height",w.height+(a.padding||0)),s.attr("class","divider").attr("x1",-w.width/2-D).attr("x2",w.width/2+D).attr("y1",-w.height/2-D+S.height+D).attr("y2",-w.height/2-D+S.height+D);return f(a,r),a.intersect=function(t){return b(a,t)},g}async function tj(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,r={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return to(t,e,r)}async function tF(t,a){let{labelStyles:l,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=l;let n="neo"===a.look?16:a.padding??0,s="neo"===a.look?12:a.padding??0,{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width??d.width)+2*n+("neo"===a.look?8:16),u=(a?.height??d.height)+2*s,x=g-8,p=8-g/2,w=-u/2,{cssStyles:$}=a,k=o.default.svg(h),_=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=k.polygon([{x:p,y:w},{x:p+x,y:w},{x:p+x,y:w+u},{x:p-8,y:w+u},{x:p-8,y:w},{x:p,y:w},{x:p,y:w+u}].map(t=>[t.x,t.y]),_),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)($)),i&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",i),$&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",i),c.attr("transform",`translate(${4-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),f(a,M),a.intersect=function(t){return b(a,t)},h}async function tU(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*n,10),a.height=Math.max((a?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+2*n,u=((a?.height?a?.height:d.height)+2*s)*1.5/1.5,p=-g/2,w=-u/2,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:p,y:w},{x:p,y:w+u},{x:p+g,y:w+u},{x:p+g,y:w-u/2}],S=x(_),M=b.path(S,k),v=h.insert(()=>M,":first-child");return v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",r),v.attr("transform",`translate(0, ${u/4})`),c.attr("transform",`translate(${-g/2+(a.padding??0)-(d.x-(d.left??0))}, ${-u/4+(a.padding??0)-(d.y-(d.top??0))})`),f(a,v),a.intersect=function(t){return D(a,_,t)},h}async function tV(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,r="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:r};return to(t,e,i)}async function tZ(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?20:i,s="neo"===a.look?12:i,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=d.height+("neo"===a.look?2*s:s),g=d.width+c/4+("neo"===a.look?2*n:n),u=c/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-g/2+u,y:-c/2},{x:g/2-u,y:-c/2},...w(-g/2+u,0,u,50,90,270),{x:g/2-u,y:c/2},...w(g/2-u,0,u,50,270,450)],_=x(k),S=$.path(_,b),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",r),f(a,M),a.intersect=function(t){return D(a,k,t)},h}async function tG(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return to(t,e,a)}function tX(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{cssStyles:n}=a,{lineColor:s,stateBorder:h,nodeBorder:d,nodeShadow:c}=l;(a.width||a.height)&&((a.width??0)<14&&(a.width=14),(a.height??0)<14&&(a.height=14)),a.width||(a.width=14),a.height||(a.height=14);let g=t.insert("g").attr("class","node default").attr("id",a.domId??a.id),y=o.default.svg(g),u=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(u.roughness=0,u.fillStyle="solid");let m=y.circle(0,0,a.width,{...u,stroke:s,strokeWidth:2}),x=h??d,p=(a.width??0)*5/14,w=y.circle(0,0,p,{...u,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),$=g.insert(()=>m,":first-child");if($.insert(()=>w),"handDrawn"!==a.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),i&&$.selectAll("path").attr("style",i),a.width<25&&c&&"handDrawn"!==a.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return f(a,$),a.intersect=function(t){return M(a,(a.width??0)/2,t)},g}function tJ(t,a,{config:{themeVariables:l}}){let r,{lineColor:i,nodeShadow:n}=l;(a.width||a.height)&&((a.width??0)<14&&(a.width=14),(a.height??0)<14&&(a.height=14)),a.width||(a.width=14),a.height||(a.height=14);let s=t.insert("g").attr("class","node default").attr("id",a.domId||a.id);if("handDrawn"===a.look){let t=o.default.svg(s).circle(0,0,a.width,(0,e.solidStateFill)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(a.width??7)/2).attr("width",a.width??14).attr("height",a.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(a.width??7)/2).attr("width",a.width??14).attr("height",a.height??14);if(a.width<25&&n&&"handDrawn"!==a.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return f(a,r),a.intersect=function(t){return M(a,(a.width??7)/2,t)},s}async function tK(t,a){let{labelStyles:l,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=l;let n=a?.padding??8,s="neo"===a.look?28:n,h="neo"===a.look?12:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=Math.max(c.width+16+s,a.width??0),u=Math.max(c.height+h,a.height??0),x=g-16,p=-g/2,w=-u/2,$=[{x:0,y:0},{x:x,y:0},{x:x,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:x+8,y:0},{x:x+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),i=t.rectangle(p,w,x+16,u,l),n=t.line(p+8,w,p+8,w+u,l),s=t.line(p+8+x,w,p+8+x,w+u,l);d.insert(()=>n,":first-child"),d.insert(()=>s,":first-child");let h=d.insert(()=>i,":first-child"),{cssStyles:c}=a;h.attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(c)),f(a,h)}else{let t=R(d,x,u,$);i&&t.attr("style",i),f(a,t)}return a.intersect=function(t){return D(a,$,t)},d}async function tY(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.height=Math.max((a?.height??0)-2*s,10),a.width=Math.max((a?.width??0)-2*n-.2*(a.height+2*s),10));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.height?a?.height:d.height)+2*s,g=.2*c,u=(a?.width?a?.width:d.width)+2*n+g-g,p=-u/2,w=-c/2,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{}),_=[{x:p-g/2,y:w},{x:p+u+g/2,y:w},{x:p+u+g/2,y:w+c},{x:p-g/2,y:w+c}];"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let S=x(_),M=b.path(S,k),v=x([{x:p+u-g/2,y:w+c},{x:p+u+g/2,y:w+c},{x:p+u+g/2,y:w+c-.2*c}]),N=b.path(v,{...k,fillStyle:"solid"}),C=h.insert(()=>N,":first-child");return C.insert(()=>M,":first-child"),C.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&C.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&C.selectAll("path").attr("style",r),f(a,C),a.intersect=function(t){return D(a,_,t)},h}async function tQ(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=Math.max(n.width+(a.padding??0)*2,a?.width??0),d=Math.max(n.height+(a.padding??0)*2,a?.height??0),c=d/8,g=.2*h,u=.2*d,w=d+c,{cssStyles:$}=a,b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-h/2-h/2*.1,y:w/2},...p(-h/2-h/2*.1,w/2,h/2+h/2*.1,w/2,c,.8),{x:h/2+h/2*.1,y:-w/2},{x:-h/2-h/2*.1,y:-w/2}],S=-h/2+h/2*.1,M=-w/2-.4*u,v=[{x:S+h-g,y:(M+d)*1.3},{x:S+h,y:M+d-u},{x:S+h,y:(M+d)*.9},...p(S+h,(M+d)*1.25,S+h-g,(M+d)*1.3,-(.02*d),.5)],N=x(_),C=b.path(N,k),A=x(v),B=b.path(A,{...k,fillStyle:"solid"}),P=i.insert(()=>B,":first-child");return P.insert(()=>C,":first-child"),P.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",r),P.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-h/2+(a.padding??0)-(n.x-(n.left??0))},${-d/2+(a.padding??0)-c/2-(n.y-(n.top??0))})`),f(a,P),a.intersect=function(t){return D(a,_,t)},i}async function t0(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n}=await y(t,a,m(a)),s=Math.max(n.width+(a.padding??0),a?.width||0),h=Math.max(n.height+(a.padding??0),a?.height||0),o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),f(a,o),a.intersect=function(t){return b(a,t)},i}(0,s.__name)(tW,"question"),(0,s.__name)(tq,"rect_left_inv_arrow"),(0,s.__name)(tz,"rectWithTitle"),(0,s.__name)(tj,"roundedRect"),(0,s.__name)(tF,"shadedProcess"),(0,s.__name)(tU,"slopedRect"),(0,s.__name)(tV,"squareRect"),(0,s.__name)(tZ,"stadium"),(0,s.__name)(tG,"state"),(0,s.__name)(tX,"stateEnd"),(0,s.__name)(tJ,"stateStart"),(0,s.__name)(tK,"subroutine"),(0,s.__name)(tY,"taggedRect"),(0,s.__name)(tQ,"taggedWaveEdgedRectangle"),(0,s.__name)(t0,"text");var t2=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e}
|
|
3
|
+
a${r},${i} 0,0,1 0,${-l}
|
|
4
|
+
l${a},0
|
|
5
|
+
a${r},${i} 0,0,1 0,${l}
|
|
6
|
+
M${a},${-l}
|
|
7
|
+
a${r},${i} 0,0,0 0,${l}
|
|
8
|
+
l${-a},0`,"createCylinderPathD"),t1=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),t5=(0,s.__name)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t8(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?12:s/2,d=a.height??0;a.height&&(a.height=a.height-h,a.height<5&&(a.height=5)),a.width&&(a.width=a.width-h-d/2/(2.5+d/50)*3,a.width<10&&(a.width=10));let{shapeSvg:c,bbox:g,label:u}=await y(t,a,m(a)),x=Math.max(a.height??0,g.height)+h,p=x/2,w=p/(2.5+x/50),$=Math.max(a.width??0,g.width)+w+h,{cssStyles:k}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=t1(0,0,$,x,w,p),i=t5(0,0,$,x,w,p),n=t.path(r,(0,e.userNodeOverrides)(a,{})),s=t.path(i,(0,e.userNodeOverrides)(a,{fill:"none"}));l=c.insert(()=>s,":first-child"),(l=c.insert(()=>n,":first-child")).attr("class","basic label-container"),k&&l.attr("style",k)}else{let t=t2(0,0,$,x,w,p);(l=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(k)).attr("style",n)).attr("class","basic label-container outer-path"),k&&l.selectAll("path").attr("style",k),n&&l.selectAll("path").attr("style",n)}return l.attr("label-offset-x",w),l.attr("transform",`translate(${-$/2}, ${x/2} )`),u.attr("transform",`translate(${-(g.width/2)-w-(g.x-(g.left??0))}, ${-(g.height/2)-(g.y-(g.top??0))})`),f(a,l),a.intersect=function(t){let e=b(a,t),l=e.y-(a.y??0);if(0!=p&&(Math.abs(l)<(a.height??0)/2||Math.abs(l)==(a.height??0)/2&&Math.abs(e.x-(a.x??0))>(a.width??0)/2-w)){let r=w*w*(1-l*l/(p*p));0!=r&&(r=Math.sqrt(Math.abs(r))),r=w-r,t.x-(a.x??0)>0&&(r=-r),e.x+=r}return e},c}async function t4(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s=(a.look,n),h="neo"===a.look?2*n:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=Math.max(c.height+s,a.height??0),u=Math.max(c.width+h,(a.width??0)-g),p=[{x:-3*g/6,y:0},{x:u+3*g/6,y:0},{x:u,y:-g},{x:0,y:-g}],{cssStyles:w}=a;if("handDrawn"===a.look){let t=o.default.svg(d),r=(0,e.userNodeOverrides)(a,{}),i=x(p),n=t.path(i,r);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${g/2})`),w&&l.attr("style",w)}else l=R(d,u,g,p);return i&&l.attr("style",i),a.width=u,a.height=g,f(a,l),a.intersect=function(t){return D(a,p,t)},d}async function t3(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.height=(a.height??0)-2*s,a.height<5&&(a.height=5),a.width=(a.width??0)-2*n,a.width<15&&(a.width=15));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:d.width)+2*n,g=(a?.height?a?.height:d.height)+2*s,{cssStyles:u}=a,p=o.default.svg(h),w=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(w.roughness=0,w.fillStyle="solid");let $=[{x:-c/2*.8,y:-g/2},{x:c/2*.8,y:-g/2},{x:c/2,y:-g/2*.6},{x:c/2,y:g/2},{x:-c/2,y:g/2},{x:-c/2,y:-g/2*.6}],b=x($),k=p.path(b,w),_=h.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),u&&"handDrawn"!==a.look&&_.selectChildren("path").attr("style",u),r&&"handDrawn"!==a.look&&_.selectChildren("path").attr("style",r),f(a,_),a.intersect=function(t){return D(a,$,t)},h}async function t6(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let s=a.padding??0,h="neo"===a.look?2*s:s;(a.width||a.height)&&(a.width=((a?.width??0)-h)/2,a.width<10&&(a.width=10),a.height=a?.height??0,a.height<10&&(a.height=10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(0,i.evaluate)((0,i.getConfig2)().flowchart?.htmlLabels),p=(a?.width?a?.width:c.width)+h,w=a?.height?a?.height:p+c.height,$=[{x:0,y:0},{x:w,y:0},{x:w/2,y:-w}],{cssStyles:b}=a,k=o.default.svg(d),_=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=x($),M=k.path(S,_),v=d.insert(()=>M,":first-child").attr("transform",`translate(${-w/2}, ${w/2})`).attr("class","outer-path");return b&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",b),r&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",r),a.width=p,a.height=w,f(a,v),g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${w/2-(c.height+(a.padding??0)/(u?2:1)-(c.y-(c.top??0)))})`),a.intersect=function(t){return n.log.info("Triangle intersect",a,$,t),D(a,$,t)},d}async function t9(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,h=!0;(a.width||a.height)&&(h=!1,a.width=(a?.width??0)-2*n,a.width<10&&(a.width=10),a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(a?.width?a?.width:c.width)+(n??0)*2,w=(a?.height?a?.height:c.height)+(s??0)*2,$="neo"===a.look?w/4:w/8,b=w+(h?$:-$),{cssStyles:k}=a,_=14-u,S=_>0?_/2:0,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let N=[{x:-u/2-S,y:b/2},...p(-u/2-S,b/2,u/2+S,b/2,$,.8),{x:u/2+S,y:-b/2},{x:-u/2-S,y:-b/2}],C=x(N),A=M.path(C,v),B=d.insert(()=>A,":first-child");return B.attr("class","basic label-container outer-path"),k&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",k),r&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-$/2})`),g.attr("transform",`translate(${-u/2+(a.padding??0)-(c.x-(c.left??0))},${-w/2+(a.padding??0)-$-(c.y-(c.top??0))})`),f(a,B),a.intersect=function(t){return D(a,N,t)},d}async function t7(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?20:i;if(a.width||a.height){a.width=a?.width??0,a.width<20&&(a.width=20),a.height=a?.height??0,a.height<10&&(a.height=10);let t=Math.min(.2*a.height,a.height/4);a.height=Math.ceil(a.height-s-20/9*t),a.width=a.width-2*n}let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:d.width)+2*n,g=(a?.height?a?.height:d.height)+s,u=g/8,w=g+2*u,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-c/2,y:w/2},...p(-c/2,w/2,c/2,w/2,u,1),{x:c/2,y:-w/2},...p(c/2,-w/2,-c/2,-w/2,u,-1)],S=x(_),M=b.path(S,k),v=h.insert(()=>M,":first-child");return v.attr("class","basic label-container"),$&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",r),f(a,v),a.intersect=function(t){return D(a,_,t)},h}async function et(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,n="neo"===a.look?12:a.padding??0;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*i-10,10),a.height=Math.max((a?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=(a?.width?a?.width:h.width)+2*i+10,g=(a?.height?a?.height:h.height)+2*n+10,u=c-10,x=g-10,p=-u/2,w=-x/2,{cssStyles:$}=a,b=o.default.svg(s),k=(0,e.userNodeOverrides)(a,{}),_=[{x:p-10,y:w-10},{x:p-10,y:w+x},{x:p+u,y:w+x},{x:p+u,y:w-10}],S=`M${p-10},${w-10} L${p+u},${w-10} L${p+u},${w+x} L${p-10},${w+x} L${p-10},${w-10}
|
|
9
|
+
M${p-10},${w} L${p+u},${w}
|
|
10
|
+
M${p},${w-10} L${p},${w+x}`;"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let M=b.path(S,k),v=s.insert(()=>M,":first-child");return v.attr("transform","translate(5, 5)"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",r),d.attr("transform",`translate(${-(h.width/2)+5-(h.x-(h.left??0))}, ${-(h.height/2)+5-(h.y-(h.top??0))})`),f(a,v),a.intersect=function(t){return D(a,_,t)},s}(0,s.__name)(t8,"tiltedCylinder"),(0,s.__name)(t4,"trapezoid"),(0,s.__name)(t3,"trapezoidalPentagon"),(0,s.__name)(t6,"triangle"),(0,s.__name)(t9,"waveEdgedRectangle"),(0,s.__name)(t7,"waveRectangle"),(0,s.__name)(et,"windowPane");var ee=new Set(["redux-color","redux-dark-color"]),ea=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function el(t,a){a.alias&&(a.label=a.alias);let{theme:l,themeVariables:n}=(0,i.getConfig)(),{rowEven:s,rowOdd:d,nodeBorder:c,borderColorArray:g}=n;if("handDrawn"===a.look){let{themeVariables:e}=(0,i.getConfig)(),{background:l}=e,r={...a,id:a.id+"-background",domId:(a.domId||a.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await el(t,r)}let y=(0,i.getConfig)();a.useHtmlLabels=y.htmlLabels;let u=y.er?.diagramPadding??10,x=y.er?.entityPadding??6,{cssStyles:p}=a,{labelStyles:w,nodeStyles:$}=(0,e.styles2String)(a);if(0===a.attributes.length&&a.label){let e={rx:0,ry:0,labelPaddingX:u,labelPaddingY:1.5*u,classes:""};(0,r.calculateTextWidth)(a.label,y)+2*e.labelPaddingX<y.er.minEntityWidth&&(a.width=y.er.minEntityWidth);let n=await to(t,a,e);if(null!=l&&ee.has(l)){let t=a.colorIndex??0;n.attr("data-color-id",`color-${t%g.length}`)}if(!(0,i.evaluate)(y.htmlLabels)){let t=n.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return n}y.htmlLabels||(u*=1.25,x*=1.25);let k=m(a);k||(k="node default");let _=t.insert("g").attr("class",k).attr("id",a.domId||a.id),S=await er(_,a.label??"",y,0,0,["name"],w);S.height+=x;let M=0,v=[],N=[],D=0,C=0,A=0,B=0,P=!0,L=!0;for(let t of a.attributes){let e=await er(_,t.type,y,0,M,["attribute-type"],w);D=Math.max(D,e.width+u);let a=await er(_,t.name,y,0,M,["attribute-name"],w);C=Math.max(C,a.width+u);let l=await er(_,t.keys.join(),y,0,M,["attribute-keys"],w);A=Math.max(A,l.width+u);let r=await er(_,t.comment,y,0,M,["attribute-comment"],w);B=Math.max(B,r.width+u);let i=Math.max(e.height,a.height,l.height,r.height)+x;N.push({yOffset:M,rowHeight:i}),M+=i}let O=4;A<=u&&(P=!1,A=0,O--),B<=u&&(L=!1,B=0,O--);let R=_.node().getBBox();if(S.width+2*u-(D+C+A+B)>0){let t=S.width+2*u-(D+C+A+B);D+=t/O,C+=t/O,A>0&&(A+=t/O),B>0&&(B+=t/O)}let T=D+C+A+B,I=o.default.svg(_),H=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(H.roughness=0,H.fillStyle="solid");let E=0;N.length>0&&(E=N.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(R.width+2*u,a?.width||0,T),q=Math.max((E??0)+S.height,a?.height||0),z=-W/2,j=-q/2;if(_.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,h.select)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?i+=D:l.attr("class").includes("attribute-keys")?i+=D+C:l.attr("class").includes("attribute-comment")&&(i+=D+C+A))}l.attr("transform",`translate(${z+u/2+i}, ${n+j+S.height+x/2})`)}),_.select(".name").attr("transform","translate("+-S.width/2+", "+(j+x/2)+")"),null!=l&&ee.has(l)){let t=a.colorIndex??0;_.attr("data-color-id",`color-${t%g.length}`)}let F=I.rectangle(z,j,W,q,H),U=_.insert(()=>F,":first-child").attr("class","outer-path").attr("style",p.join(""));for(let[t,e]of(v.push(0),N.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=I.rectangle(z,S.height+j+e?.yOffset,W,e?.rowHeight,{...H,fill:a?s:d,stroke:c});_.insert(()=>l,"g.label").attr("style",p.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let V=ei(z,S.height+j,W+z,S.height+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H);if(_.insert(()=>Z).attr("class","divider"),V=ei(D+z,S.height+j,D+z,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider"),P){let t=D+C+z;V=ei(t,S.height+j,t,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}if(L){let t=D+C+A+z;V=ei(t,S.height+j,t,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}for(let t of v){let e=S.height+j+t;V=ei(z,e,W+z,e,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}if(f(a,U),$&&"handDrawn"!==a.look)if(null!=l&&ea.has(l))_.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");_.selectAll("path").attr("style",e??""),_.selectAll(".row-rect-even path").attr("style",$)}return a.intersect=function(t){return b(a,t)},_}async function er(t,e,l,n=0,s=0,o=[],d=""){let c=t.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${s})`).attr("style",d);e!==(0,i.parseGenericTypes)(e)&&(e=(e=(0,i.parseGenericTypes)(e)).replaceAll("<","<").replaceAll(">",">"));let g=c.node().appendChild(await (0,a.createText)(c,e,{width:(0,r.calculateTextWidth)(e,l)+100,style:d,useHtmlLabels:l.htmlLabels},l));if(e.includes("<")||e.includes(">")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let y=g.getBBox();if((0,i.evaluate)(l.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,h.select)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function ei(t,e,a,l,r){return t===a?[{x:t-r/2,y:e},{x:t+r/2,y:e},{x:a+r/2,y:l},{x:a-r/2,y:l}]:[{x:t,y:e-r/2},{x:t,y:e+r/2},{x:a,y:l+r/2},{x:a,y:l-r/2}]}async function en(t,e,a,l,r=a.class.padding??12){let i=3*!l,n=t.insert("g").attr("class",m(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await es(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await es(h,e,0,["font-weight: bolder"]);let u=h.node().getBBox();g=u.height,o=n.insert("g").attr("class","members-group text");let f=0;for(let t of e.members){let e=await es(o,t,f,[t.parseClassifier()]);f+=e+i}(y=o.node().getBBox().height)<=0&&(y=r/2),d=n.insert("g").attr("class","methods-group text");let x=0;for(let t of e.methods){let e=await es(d,t,x,[t.parseClassifier()]);x+=e+i}let p=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-u.width/2}, ${c})`),p=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),p=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*r:2*r)})`),p=n.node().getBBox(),{shapeSvg:n,bbox:p}}async function es(t,e,l,n=[]){let s,o=t.insert("g").attr("class","label").attr("style",n.join("; ")),c=(0,i.getConfig)(),g="useHtmlLabels"in e?e.useHtmlLabels:(0,i.evaluate)(c.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!g&&y.startsWith("\\")&&(y=y.substring(1)),(0,i.hasKatex)(y)&&(g=!0);let u=await (0,a.createText)(o,(0,i.sanitizeText2)((0,r.decodeEntities)(y)),{width:(0,r.calculateTextWidth)(y,c)+50,classes:"markdown-node-label",useHtmlLabels:g},c),f=1;if(g){let t=u.children[0],e=(0,h.select)(u);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1),await d(t),s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}else{n.includes("font-weight: bolder")&&(0,h.select)(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;let t=u.children[0];(""===u.textContent||u.textContent.includes(">"))&&(t.textContent=y[0]+y.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),s=u.getBBox()}return o.attr("transform","translate(0,"+(-s.height/(2*f)+l)+")"),s.height}async function eh(t,a){let l=(0,i.getConfig2)(),{themeVariables:r}=l,{useGradient:n}=r,s=l.class.padding??12,d=a.useHtmlLabels??(0,i.evaluate)(l.htmlLabels)??!0;a.annotations=a.annotations??[],a.members=a.members??[],a.methods=a.methods??[];let{shapeSvg:c,bbox:g}=await en(t,a,l,d,s),{labelStyles:y,nodeStyles:u}=(0,e.styles2String)(a);a.labelStyle=y,a.cssStyles=a.styles||"";let m=a.styles?.join(";")||u||"";a.cssStyles||(a.cssStyles=m.replaceAll("!important","").split(";"));let x=0===a.members.length&&0===a.methods.length&&!l.class?.hideEmptyMembersBox,p=o.default.svg(c),w=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(w.roughness=0,w.fillStyle="solid");let $=Math.max(a.width??0,g.width),k=Math.max(a.height??0,g.height),_=(a.height??0)>g.height;0===a.members.length&&0===a.methods.length?k+=s:a.members.length>0&&0===a.methods.length&&(k+=2*s);let S=-$/2,M=-k/2,v=x?2*s:0===a.members.length&&0===a.methods.length?-s:0;_&&(v=2*s);let N=p.rectangle(S-s,M-s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0),$+2*s,k+2*s+v,w),D=c.insert(()=>N,":first-child");D.attr("class","basic label-container outer-path");let C=D.node().getBBox(),A=c.select(".annotation-group").node().getBBox().height-(x?s/2:0)||0,B=c.select(".label-group").node().getBBox().height-(x?s/2:0)||0,P=c.select(".members-group").node().getBBox().height-(x?s/2:0)||0,L=(A+B+M+s-(M-s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0)))/2;if(c.selectAll(".text").each((t,e,r)=>{let i=(0,h.select)(r[e]),n=i.attr("transform"),o=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(o=parseFloat(t[2]))}let g=o+M+s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(P,s/2);g=_?Math.max(L,A+B+t+M+2*s+s)+2*s:A+B+t+M+4*s+s}0===a.members.length&&0===a.methods.length&&l.class?.hideEmptyMembersBox&&(g=a.annotations.length>0?o-s:o),d||(g-=4);let y=S;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(y=-i.node()?.getBBox().width/2||0,c.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),i.attr("transform",`translate(${y}, ${g})`)}),a.members.length>0||a.methods.length>0||x){let t=A+B+M+s,e=p.line(C.x,t,C.x+C.width,t+.001,w);c.insert(()=>e).attr("class",`divider${"neo"===a.look&&!n?" neo-line":""}`).attr("style",m)}if(x||a.members.length>0||a.methods.length>0){let t=A+B+P+M+2*s+s,e=p.line(C.x,_?Math.max(L,t):t,C.x+C.width,(_?Math.max(L,t):t)+.001,w);c.insert(()=>e).attr("class",`divider${"neo"===a.look&&!n?" neo-line":""}`).attr("style",m)}if("handDrawn"!==a.look&&c.selectAll("path").attr("style",m),D.select(":nth-child(2)").attr("style",m),c.selectAll(".divider").select("path").attr("style",m),a.labelStyle?c.selectAll("span").attr("style",a.labelStyle):c.selectAll("span").attr("style",m),!d){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(m);if(e){let t=e[0].replace("color","fill");c.selectAll("tspan").attr("style",t)}else if(y){let e=t.exec(y);if(e){let t=e[0].replace("color","fill");c.selectAll("tspan").attr("style",t)}}}return f(a,D),a.intersect=function(t){return b(a,t)},c}async function eo(t,a){let l,{labelStyles:r,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=r;let s="verifyMethod"in a,d=m(a),c=(0,i.getConfig2)(),{themeVariables:g}=c,{borderColorArray:y,requirementEdgeLabelBackground:u}=g,x="elk"===c.layout?"start":"center",p=t.insert("g").attr("class",d).attr("id",a.domId??a.id),w=l=s?await ed(p,`<<${a.type}>>`,0,a.labelStyle):await ed(p,"<<Element>>",0,a.labelStyle),$=await ed(p,a.name,w,a.labelStyle+"; font-weight: bold;");if(w+=$+20,s){let t=await ed(p,`${a.requirementId?`ID: ${a.requirementId}`:""}`,w,a.labelStyle,x);w+=t;let e=await ed(p,`${a.text?`Text: ${a.text}`:""}`,w,a.labelStyle,x);w+=e;let l=await ed(p,`${a.risk?`Risk: ${a.risk}`:""}`,w,a.labelStyle,x);w+=l,await ed(p,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,w,a.labelStyle,x)}else{let t=await ed(p,`${a.type?`Type: ${a.type}`:""}`,w,a.labelStyle,x);w+=t,await ed(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,w,a.labelStyle,x)}let k=(p.node()?.getBBox().width??200)+20,_=(p.node()?.getBBox().height??200)+20,S=-k/2,M=-_/2,v=o.default.svg(p),N=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(N.roughness=0,N.fillStyle="solid");let D=v.rectangle(S,M,k,_,N),C=p.insert(()=>D,":first-child");if(C.attr("class","basic label-container outer-path").attr("style",n),y?.length){let t=a.colorIndex??0;p.attr("data-color-id",`color-${t%y.length}`)}if(p.selectAll(".label").each((t,e,a)=>{let l=(0,h.select)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-_/2,o=S+10;(0===e||1===e)&&(o=i),l.attr("transform",`translate(${o}, ${s+20})`)}),w>l+$+20){let t,e=M+l+$+20;if("neo"===a.look){let a=[[S,e],[S+k,e],[S+k,e+.001],[S,e+.001]];t=v.polygon(a,N)}else t=v.line(S,e,S+k,e,N);p.insert(()=>t).attr("class","divider")}return f(a,C),a.intersect=function(t){return b(a,t)},n&&"handDrawn"!==a.look&&(u||y?.length)&&p.selectAll("path").attr("style",n),p}async function ed(t,e,l,n="",s="center"){let o;if(""===e)return 0;let d=t.insert("g").attr("class","label").attr("style",n),c=(0,i.getConfig2)(),g=c.htmlLabels??!0,y=await (0,a.createText)(d,(0,i.sanitizeText2)((0,r.decodeEntities)(e)),{width:(0,r.calculateTextWidth)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:g,style:n},c);if(g){let t=y.children[0],e=(0,h.select)(y);"start"===s&&(0,h.select)(t).style("text-align","left"),o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}else{let t=y.children[0];for(let e of t.children)n&&e.setAttribute("style",n);if("start"===s)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");o=y.getBBox(),o.height+=6}return d.attr("transform",`translate(${-o.width/2},${-o.height/2+l})`),o.height}(0,s.__name)(el,"erBox"),(0,s.__name)(er,"addText"),(0,s.__name)(ei,"lineToPolygon"),(0,s.__name)(en,"textHelper"),(0,s.__name)(es,"addText"),(0,s.__name)(eh,"classBox"),(0,s.__name)(eo,"requirementBox"),(0,s.__name)(ed,"addText");var ec=(0,s.__name)(t=>{switch(t){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 eg(t,a,{config:l}){let r,i,n,s,{labelStyles:h,nodeStyles:d}=(0,e.styles2String)(a);a.labelStyle=h||"";let c=a.width;a.width=(a.width??200)-10;let{shapeSvg:g,bbox:x,label:p}=await y(t,a,m(a)),w=a.padding||10,$="";"ticket"in a&&a.ticket&&l?.kanban?.ticketBaseUrl&&($=l?.kanban?.ticketBaseUrl.replace("#TICKET#",a.ticket),r=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",$).attr("target","_blank"));let _={useHtmlLabels:a.useHtmlLabels,labelStyle:a.labelStyle||"",width:a.width,img:a.img,padding:a.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await u(r,"ticket"in a&&a.ticket||"",_):{label:i,bbox:n}=await u(g,"ticket"in a&&a.ticket||"",_);let{label:S,bbox:M}=await u(g,"assigned"in a&&a.assigned||"",_);a.width=c;let v=a?.width||0,N=Math.max(n.height,M.height)/2,D=Math.max(x.height+20,a?.height||0)+N,C=-v/2,A=-D/2;p.attr("transform","translate("+(w-v/2)+", "+(-N-x.height/2)+")"),i.attr("transform","translate("+(w-v/2)+", "+(-N+x.height/2)+")"),S.attr("transform","translate("+(w+v/2-M.width-20)+", "+(-N+x.height/2)+")");let{rx:B,ry:P}=a,{cssStyles:L}=a;if("handDrawn"===a.look){let t=o.default.svg(g),l=(0,e.userNodeOverrides)(a,{}),r=B||P?t.path(k(C,A,v,D,B||0),l):t.rectangle(C,A,v,D,l);(s=g.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",L||null)}else{(s=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",d).attr("rx",B??5).attr("ry",P??5).attr("x",C).attr("y",A).attr("width",v).attr("height",D);let t="priority"in a&&a.priority;if(t){let e=g.append("line"),a=C+2,l=A+Math.floor((B??0)/2),r=A+D-Math.floor((B??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",ec(t))}}return f(a,s),a.height=D,a.intersect=function(t){return b(a,t)},g}async function ey(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=i;let{shapeSvg:h,bbox:d,halfPadding:c,label:g}=await y(t,a,m(a)),u=d.width+10*c,x=d.height+8*c,p=.15*u,{cssStyles:w}=a,$=d.width+20,k=d.height+20,_=Math.max(u,$),S=Math.max(x,k);g.attr("transform",`translate(${-d.width/2}, ${-d.height/2})`);let M=`M0 0
|
|
11
|
+
a${p},${p} 1 0,0 ${.25*_},${-1*S*.1}
|
|
12
|
+
a${p},${p} 1 0,0 ${.25*_},0
|
|
13
|
+
a${p},${p} 1 0,0 ${.25*_},0
|
|
14
|
+
a${p},${p} 1 0,0 ${.25*_},${.1*S}
|
|
15
|
+
|
|
16
|
+
a${p},${p} 1 0,0 ${.15*_},${.33*S}
|
|
17
|
+
a${.8*p},${.8*p} 1 0,0 0,${.34*S}
|
|
18
|
+
a${p},${p} 1 0,0 ${-1*_*.15},${.33*S}
|
|
19
|
+
|
|
20
|
+
a${p},${p} 1 0,0 ${-1*_*.25},${.15*S}
|
|
21
|
+
a${p},${p} 1 0,0 ${-1*_*.25},0
|
|
22
|
+
a${p},${p} 1 0,0 ${-1*_*.25},0
|
|
23
|
+
a${p},${p} 1 0,0 ${-1*_*.25},${-1*S*.15}
|
|
24
|
+
|
|
25
|
+
a${p},${p} 1 0,0 ${-1*_*.1},${-1*S*.33}
|
|
26
|
+
a${.8*p},${.8*p} 1 0,0 0,${-1*S*.34}
|
|
27
|
+
a${p},${p} 1 0,0 ${.1*_},${-1*S*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===a.look){let t=o.default.svg(h),i=(0,e.userNodeOverrides)(a,{}),n=t.path(M,i);(l=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(w))}else l=h.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",M);return l.attr("transform",`translate(${-_/2}, ${-S/2})`),f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return n.log.info("Bang intersect",a,t),b(a,t)},h}async function eu(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=i;let{shapeSvg:h,bbox:d,halfPadding:c,label:g}=await y(t,a,m(a)),u=d.width+2*c,x=d.height+2*c,p=.15*u,w=.25*u,$=.35*u,k=.2*u,{cssStyles:_}=a,S=`M0 0
|
|
29
|
+
a${p},${p} 0 0,1 ${.25*u},${-1*u*.1}
|
|
30
|
+
a${$},${$} 1 0,1 ${.4*u},${-1*u*.1}
|
|
31
|
+
a${w},${w} 1 0,1 ${.35*u},${.2*u}
|
|
32
|
+
|
|
33
|
+
a${p},${p} 1 0,1 ${.15*u},${.35*x}
|
|
34
|
+
a${k},${k} 1 0,1 ${-1*u*.15},${.65*x}
|
|
35
|
+
|
|
36
|
+
a${w},${p} 1 0,1 ${-1*u*.25},${.15*u}
|
|
37
|
+
a${$},${$} 1 0,1 ${-1*u*.5},0
|
|
38
|
+
a${p},${p} 1 0,1 ${-1*u*.25},${-1*u*.15}
|
|
39
|
+
|
|
40
|
+
a${p},${p} 1 0,1 ${-1*u*.1},${-1*x*.35}
|
|
41
|
+
a${k},${k} 1 0,1 ${.1*u},${-1*x*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===a.look){let t=o.default.svg(h),i=(0,e.userNodeOverrides)(a,{}),n=t.path(S,i);(l=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(_))}else l=h.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",S);return g.attr("transform",`translate(${-d.width/2}, ${-d.height/2})`),l.attr("transform",`translate(${-u/2}, ${-x/2})`),f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return n.log.info("Cloud intersect",a,t),b(a,t)},h}async function ef(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,halfPadding:s,label:h}=await y(t,a,m(a)),o=n.width+8*s,d=n.height+2*s,c="neo"===a.look?`
|
|
43
|
+
M${-o/2} ${d/2-5}
|
|
44
|
+
v${-d+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${o-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${d-5}
|
|
49
|
+
H${-o/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-o/2} ${d/2-5}
|
|
53
|
+
v${-d+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${o-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${d-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(o-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!a.domId)throw Error(`defaultMindmapNode: node "${a.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",a.domId).attr("class","node-bkg node-"+a.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",d/2).attr("x2",o/2).attr("y2",d/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>h.node()),f(a,g),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},i}async function em(t,e){let a={padding:e.padding??0};return V(t,e,a)}(0,s.__name)(eg,"kanbanItem"),(0,s.__name)(ey,"bang"),(0,s.__name)(eu,"cloud"),(0,s.__name)(ef,"defaultMindmapNode"),(0,s.__name)(em,"mindmapCircle");var ex=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tV},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tj},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tZ},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tK},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:th},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:td},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tf},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:L},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:G},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:j},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tr},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:V},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ey},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:eu},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tW},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tw},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tC},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tD},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t4},{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:tv},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tg},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:F},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tF},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tJ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tX},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:t$},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Y},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ta},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tA},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t9},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t8},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tO},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tl},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tc},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t6},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:et},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ty},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t3},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tu},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tU},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tI},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:J},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tQ},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tY},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t7},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tR}],ep=(0,s.__name)(()=>Object.fromEntries([...Object.entries({state:tG,choice:U,note:tH,composite:Z,rectWithTitle:tz,labelRect:tN,block_arrow:z,collapsedGroup:O,iconSquare:tS,iconCircle:tk,icon:tb,iconRounded:t_,imageSquare:tM,anchor:C,kanbanItem:eg,mindmapCircle:em,defaultMindmapNode:ef,classBox:eh,erBox:el,requirementBox:eo}),...ex.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ew(t){return t in ep}(0,s.__name)(ew,"isValidShape"),t.s(["createLabel_default",0,_,"createRoundedRectPathD",0,k,"intersect_rect_default",0,b,"isValidShape",0,ew,"labelHelper",0,y,"shapes",0,ep,"updateNodeBounds",0,f])}]);
|