@evoscientist/webui 0.2.6 → 0.2.8
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 +5 -5
- 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/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +3 -3
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/api/memory/executions/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +1 -1
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +4 -4
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/dist/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- 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/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]__0471z20._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0owaq8w._.js +3 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__11a1-4t._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1-wfv6i._.js → node_modules_002u7ir._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_01wbayw._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_02l4ncm._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_063ofsn._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_0a-3666._.js +26 -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_0fxlk06._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0gs9qjb._.js +17 -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_0lhl9_0._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0m7-ed8._.js +43 -0
- package/dist/.next/server/chunks/ssr/node_modules_0p_8bfi._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1z_uie6._.js → node_modules_0plqukv._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0q44r64._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1nck62h._.js → node_modules_0qeu828._.js} +2 -2
- 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_0tr3k8r._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0urn1wt._.js +24 -0
- package/dist/.next/server/chunks/ssr/node_modules_0ybok7k._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_10v96_9._.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_v-pb8._.js → node_modules_13e524_._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_14gkv49._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_14xejkf._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_17rfg58._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1_d0q_7._.js +289 -0
- package/dist/.next/server/chunks/ssr/node_modules_1a2dy76._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1asq18n._.js +29 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bo15xl._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1c0h-_d._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1f65-5g._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1ki78ma._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1mcjw-y._.js +17 -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_1owe5xv._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1phops3._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1t626ye._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_1thrjjl._.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_1twjy-4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1vbiuwu._.js +63 -0
- package/dist/.next/server/chunks/ssr/node_modules_208gr2-._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_20iziql._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_20oab__._.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_09ex6q5._.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/14b2ne-5dycww.js +90 -0
- package/dist/.next/static/chunks/14osgsp3aiqpz.js +79 -0
- package/dist/.next/static/chunks/{2rob7uh46oj_f.js → 15e7e4t3feyih.js} +2 -2
- package/dist/.next/static/chunks/16mzcd_gvdgbo.js +1 -0
- package/dist/.next/static/chunks/1815xwa8351ma.js +1 -0
- package/dist/.next/static/chunks/1bzu587wut72w.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/27vb_89qd7ag_.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/2dmr54jagfdwa.css +3 -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/3her9o9_qn46y.js +226 -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/3r7r2d2yc93-y.js +1 -0
- package/dist/.next/static/chunks/3s-zbm7kxc46y.js +93 -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 +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
- 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/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/3cyn-rs5rpay6.css +0 -3
- 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/44dlrjamdw9zn.js +0 -1
- /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_buildManifest.js +0 -0
- /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module.exports=[916573,a=>{"use strict";var b=a.i(789676),c=a.i(956864),d=a.i(166292),e=a.i(887370),f=a.i(261234),g=a.i(875117),h=a.i(539110);a.i(975930);var i=a.i(671731),j=a.i(883763);async function k(a){let b=a.getElementsByTagName("img");if(!b||0===b.length)return;let c=!l(a);await Promise.all([...b].map(a=>new Promise(b=>{function d(){if(a.style.display="flex",a.style.flexDirection="column",c){let b=(0,f.getConfig2)().fontSize?(0,f.getConfig2)().fontSize:window.getComputedStyle(document.body).fontSize,[c=f.defaultConfig_default.fontSize]=(0,e.parseFontSize)(b),d=5*c+"px";a.style.minWidth=d,a.style.maxWidth=d}else a.style.width="100%";b(a)}(0,h.__name)(d,"setupImage"),setTimeout(()=>{a.complete&&d()}),a.addEventListener("error",d),a.addEventListener("load",d)})))}function l(a){return 3===a.nodeType?a.textContent?.trim()!=="":1===a.nodeType&&"img"!==a.tagName.toLowerCase()&&[...a.childNodes].some(l)}(0,h.__name)(k,"configureLabelImages"),(0,h.__name)(l,"hasTextBesidesImages");var m=(0,h.__name)(async(a,b,d)=>{let g=(0,f.getConfig2)(),h=a.insert("g").attr("class",d??"node default").attr("id",b.domId||b.id),j=h.insert("g").attr("class","label").attr("style",(0,e.handleUndefinedAttr)(b.labelStyle)),k=[{text:"string"==typeof b.label?b.label:b.label?.[0]??"",cssClass:"c4-name"},{text:b.stereotype,cssClass:"c4-type"},...(b.description??[]).map(a=>({text:a,cssClass:"c4-descr"}))].filter(a=>a.text),l=b.width?Math.max(b.width-2*(b.padding??0),32):(0,f.getConfig2)().flowchart?.wrappingWidth??200,m=g.c4?.wrap??!0?l:1/0,n=await Promise.all(k.map(async a=>{let d=j.append("g").attr("class",a.cssClass),h=await (0,c.createText)(d,(0,f.sanitizeText)((0,e.decodeEntities)(a.text??""),g),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:m,style:b.labelStyle},g);return(0,i.select)(h).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,i.select)(h).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:d,box:d.node().getBBox()}})),o=Math.max(...n.map(({box:a})=>a.width),0),p=0;for(let{el:a,box:b}of n)a.attr("transform",`translate(${o/2-b.x-b.width/2}, ${p-b.y})`),p+=b.height+3;let q=n.length>0?p-3:0;return j.insert("rect",":first-child"),j.attr("transform",`translate(${-o/2}, ${-q/2})`),{shapeSvg:h,bbox:j.node().getBBox(),halfPadding:(b.padding??0)/2,label:j}},"c4LabelHelper"),n=(0,h.__name)(async(a,b,d)=>{let g,h,j;if(void 0!==b.stereotype)return m(a,b,d);let l=b.useHtmlLabels||(0,f.evaluate)((0,f.getConfig2)()?.htmlLabels);g=d||"node default";let n=a.insert("g").attr("class",g).attr("id",b.domId||b.id),o=n.insert("g").attr("class","label").attr("style",(0,e.handleUndefinedAttr)(b.labelStyle));h=void 0===b.label?"":"string"==typeof b.label?b.label:b.label[0];let p=!!b.icon||!!b.img,q="markdown"===b.labelType,r=await (0,c.createText)(o,(0,f.sanitizeText)((0,e.decodeEntities)(h),(0,f.getConfig2)()),{useHtmlLabels:l,width:b.width||b.wrappingWidth||(0,f.getConfig2)().flowchart?.wrappingWidth,classes:q?"markdown-node-label":"",style:b.labelStyle,addSvgBackground:p,markdown:q},(0,f.getConfig2)()),s=(b?.padding??0)/2;if(l){let a=r.children[0],b=(0,i.select)(r);await k(a),j=await c.fastdom_default.measure(()=>a.getBoundingClientRect()),b.attr("width",j.width),b.attr("height",j.height)}else j=await c.fastdom_default.measure(()=>r.getBBox());return l?o.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"):o.attr("transform","translate(0, "+-j.height/2+")"),b.centerLabel&&o.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:n,bbox:j,halfPadding:s,label:o}},"labelHelper"),o=(0,h.__name)(async(a,b,d)=>{let g,h=d.useHtmlLabels??(0,f.getEffectiveHtmlLabels)((0,f.getConfig2)()),j=a.insert("g").attr("class","label").attr("style",d.labelStyle||""),k=await (0,c.createText)(j,(0,f.sanitizeText)((0,e.decodeEntities)(b),(0,f.getConfig2)()),{useHtmlLabels:h,width:d.width||(0,f.getConfig2)()?.flowchart?.wrappingWidth,style:d.labelStyle,addSvgBackground:!!d.icon||!!d.img}),l=d.padding/2;if((0,f.getEffectiveHtmlLabels)((0,f.getConfig2)())){let a=k.children[0],b=(0,i.select)(k);g=await c.fastdom_default.measure(()=>a.getBoundingClientRect()),b.attr("width",g.width),b.attr("height",g.height)}else g=await c.fastdom_default.measure(()=>k.getBBox());return h?j.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"):j.attr("transform","translate(0, "+-g.height/2+")"),d.centerLabel&&j.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"),j.insert("rect",":first-child"),{shapeSvg:a,bbox:g,halfPadding:l,label:j}},"insertLabel"),p=(0,h.__name)((a,b,c)=>{if(c){a.width=c.width,a.height=c.height;return}let d=b.node().getBBox();a.width=d.width,a.height=d.height},"updateNodeBounds"),q=(0,h.__name)((a,b)=>("handDrawn"===a.look?"rough-node":"node")+" "+a.cssClasses+" "+(b||""),"getNodeClasses");function r(a){let b=a.map((a,b)=>`${0===b?"M":"L"}${a.x},${a.y}`);return b.push("Z"),b.join(" ")}function s(a,b,c,d,e,f){let g=[],h=c-a,i=2*Math.PI/(h/f),j=b+(d-b)/2;for(let b=0;b<=50;b++){let c=a+b/50*h,d=j+e*Math.sin(i*(c-a));g.push({x:c,y:d})}return g}function t(a,b,c,d,e,f){let g=[],h=e*Math.PI/180,i=(f*Math.PI/180-h)/(d-1);for(let e=0;e<d;e++){let d=h+e*i,f=a+c*Math.cos(d),j=b+c*Math.sin(d);g.push({x:-f,y:-j})}return g}function u(a){let b=Array.from(a.childNodes).filter(a=>"path"===a.tagName),c=document.createElementNS("http://www.w3.org/2000/svg","path"),d=b.map(a=>a.getAttribute("d")).filter(a=>null!==a).join(" ");c.setAttribute("d",d);let e=b.find(a=>"none"!==a.getAttribute("fill")),f=b.find(a=>"none"!==a.getAttribute("stroke")),g=(0,h.__name)((a,b)=>a?.getAttribute(b)??void 0,"getAttr");e&&Object.entries({fill:g(e,"fill"),"fill-opacity":g(e,"fill-opacity")??"1"}).forEach(([a,b])=>{b&&c.setAttribute(a,b)}),f&&Object.entries({stroke:g(f,"stroke"),"stroke-width":g(f,"stroke-width")??"1","stroke-opacity":g(f,"stroke-opacity")??"1"}).forEach(([a,b])=>{b&&c.setAttribute(a,b)});let i=document.createElementNS("http://www.w3.org/2000/svg","g");return i.appendChild(c),i}(0,h.__name)(r,"createPathFromPoints"),(0,h.__name)(s,"generateFullSineWavePoints"),(0,h.__name)(t,"generateCirclePoints"),(0,h.__name)(u,"mergePaths");var v=(0,h.__name)((a,b)=>{var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=0===h?0:j*g/h,d=j):(g<0&&(i=-i),c=i,d=0===g?0:i*h/g),{x:e+c,y:f+d}},"intersectRect"),w=(0,h.__name)((a,b,c,d,e)=>["M",a+e,b,"H",a+c-e,"A",e,e,"0 0 1",a+c,b+e,"V",b+d-e,"A",e,e,"0 0 1",a+c-e,b+d,"H",a+e,"A",e,e,"0 0 1",a,b+d-e,"V",b+e,"A",e,e,"0 0 1",a+e,b,"Z"].join(" "),"createRoundedRectPathD"),x=(0,h.__name)(async(a,b,d,e=!1,g=!1)=>{let h=b||"";"object"==typeof h&&(h=h[0]);let i=(0,f.getConfig2)(),j=(0,f.getEffectiveHtmlLabels)(i);return await (0,c.createText)(a,h,{style:d,isTitle:e,useHtmlLabels:j,markdown:!1,isNode:g,width:1/0},i)},"createLabel");function y(a,b,c,d){var e=a.x,f=a.y,g=e-d.x,h=f-d.y,i=Math.sqrt(b*b*h*h+c*c*g*g),j=Math.abs(b*c*g/i);d.x<e&&(j=-j);var k=Math.abs(b*c*h/i);return d.y<f&&(k=-k),{x:e+j,y:f+k}}function z(a,b,c){return y(a,b,b,c)}function A(a,b,c,d){{let e=b.y-a.y,f=a.x-b.x,g=b.x*a.y-a.x*b.y,h=e*c.x+f*c.y+g,i=e*d.x+f*d.y+g;if(0!==h&&0!==i&&B(h,i))return;let j=d.y-c.y,k=c.x-d.x,l=d.x*c.y-c.x*d.y,m=j*a.x+k*a.y+l,n=j*b.x+k*b.y+l;if(1e-6>Math.abs(m)&&1e-6>Math.abs(n)&&B(m,n))return;let o=e*k-j*f;if(0===o)return;let p=Math.abs(o/2),q=f*l-k*g;return{x:q<0?(q-p)/o:(q+p)/o,y:(q=j*g-e*l)<0?(q-p)/o:(q+p)/o}}}function B(a,b){return a*b>0}function C(a,b,c){let d=a.x,e=a.y,f=[],g=1/0,h=1/0;"function"==typeof b.forEach?b.forEach(function(a){g=Math.min(g,a.x),h=Math.min(h,a.y)}):(g=Math.min(g,b.x),h=Math.min(h,b.y));let i=d-a.width/2-g,j=e-a.height/2-h;for(let d=0;d<b.length;d++){let e=b[d],g=b[d<b.length-1?d+1:0],h=A(a,c,{x:i+e.x,y:j+e.y},{x:i+g.x,y:j+g.y});h&&f.push(h)}return f.length?(f.length>1&&f.sort(function(a,b){let d=a.x-c.x,e=a.y-c.y,f=Math.sqrt(d*d+e*e),g=b.x-c.x,h=b.y-c.y,i=Math.sqrt(g*g+h*h);return f<i?-1:+(f!==i)}),f[0]):a}(0,h.__name)(function(a,b){return a.intersect(b)},"intersectNode"),(0,h.__name)(y,"intersectEllipse"),(0,h.__name)(z,"intersectCircle"),(0,h.__name)(A,"intersectLine"),(0,h.__name)(B,"sameSign"),(0,h.__name)(C,"intersectPolygon");function D(a,c){let{labelStyles:d}=(0,b.styles2String)(c);c.labelStyle=d;let f=q(c),h=f;f||(h="anchor");let i=a.insert("g").attr("class",h).attr("id",c.domId||c.id),{cssStyles:k}=c,l=j.default.svg(i),m=(0,b.userNodeOverrides)(c,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==c.look&&(m.roughness=0);let n=l.circle(0,0,2,m),o=i.insert(()=>n,":first-child");return o.attr("class","anchor").attr("style",(0,e.handleUndefinedAttr)(k)),p(c,o),c.intersect=function(a){return g.log.info("Circle intersect",c,1,a),z(c,1,a)},i}function E(a,b,c,d,e,f,g){let h=Math.atan2(d-b,c-a),i=Math.sqrt(((c-a)/2/e)**2+((d-b)/2/f)**2);if(i>1)throw Error("The given radii are too small to create an arc between the points.");let j=Math.sqrt(1-i**2),k=(a+c)/2+j*f*Math.sin(h)*(g?-1:1),l=(b+d)/2-j*e*Math.cos(h)*(g?-1:1),m=Math.atan2((b-l)/f,(a-k)/e),n=Math.atan2((d-l)/f,(c-k)/e)-m;g&&n<0&&(n+=2*Math.PI),!g&&n>0&&(n-=2*Math.PI);let o=[];for(let a=0;a<20;a++){let b=m+a/19*n,c=k+e*Math.cos(b),d=l+f*Math.sin(b);o.push({x:c,y:d})}return o}function F(a,b,c){let[d,e]=[b,c].sort((a,b)=>b-a);return e*(1-Math.sqrt(1-(a/d/2)**2))}async function G(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,i="neo"===c.look?12:f,k=(0,h.__name)(a=>a+i,"calcTotalHeight"),l=(0,h.__name)(a=>{let b=a/2;return[b/(2.5+a/50),b]},"calcEllipseRadius"),{shapeSvg:m,bbox:o}=await n(a,c,q(c)),s=k(c?.height?c?.height:o.height),[t,u]=l(s),v=F(s,t,u),w=(c?.width?c?.width:o.width)+2*g+v-v,{cssStyles:x}=c,y=[{x:w/2,y:-s/2},{x:-w/2,y:-s/2},...E(-w/2,-s/2,-w/2,s/2,t,u,!1),{x:w/2,y:s/2},...E(w/2,s/2,w/2,-s/2,t,u,!0)],z=j.default.svg(m),A=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(A.roughness=0,A.fillStyle="solid");let B=r(y),D=z.path(B,A),G=m.insert(()=>D,":first-child");return G.attr("class","basic label-container outer-path"),x&&"handDrawn"!==c.look&&G.selectAll("path").attr("style",x),e&&"handDrawn"!==c.look&&G.selectAll("path").attr("style",e),G.attr("transform",`translate(${t/2}, 0)`),p(c,G),c.intersect=function(a){return C(c,y,a)},m}async function H(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{shapeSvg:g,bbox:i,label:k}=await n(a,c,q(c)),l=d?.nodeBorder??d?.lineColor??"currentColor",m=c.padding??12,o=Math.max(i.width+2*m,c.width??0,80),r=Math.max(Math.min(.08*o,12),5),s=Math.max(i.height+2*m+r,c.height??0),t=-s/2+r,u=s/2,v=.72*o,w=`M${-o/2},${t} L${-v/2},${u} A${v/2},${r} 0 0 0 ${v/2},${u} L${o/2},${t} A${o/2},${r} 0 0 0 ${-o/2},${t} Z`,{cssStyles:x}=c,y=g.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===c.look){let a=j.default.svg(g).path(w,(0,b.userNodeOverrides)(c,{}));y.node()?.appendChild(a),x&&y.attr("style",x)}else y.append("path").attr("d",w).attr("style",f);y.append("ellipse").attr("cx",0).attr("cy",t).attr("rx",o/2).attr("ry",r).attr("style",`fill:none;stroke:${l};stroke-width:1px`),p(c,y);let z=t+(u-t)/2;k.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${z-i.height/2-(i.y-(i.top??0))})`);let A=(0,h.__name)((a,b,c)=>Array.from({length:13},(d,e)=>{let f=Math.PI-e*Math.PI/12;return{x:a*Math.cos(f),y:b+c*r*Math.sin(f)}}),"arc"),B=[...A(o/2,t,-1),...A(v/2,u,1).reverse()];return c.intersect=function(a){return C(c,B,a)},g}async function I(a,c){let d,{themeVariables:g}=(0,f.getConfig2)(),h=g.clusterBkg,i=g.clusterBorder,{nodeStyles:k}=(0,b.styles2String)(c),{shapeSvg:l,bbox:m}=await n(a,c,q(c)),o=c.padding??8,r=m.height,s=Math.max(m.width+2*o,80,c?.width??0),t=Math.max(r+8+20+2*o,c?.height??0),u=-s/2,x=-t/2,y=l.select(".label");if(y&&(c.useHtmlLabels??(0,f.getEffectiveHtmlLabels)((0,f.getConfig2)())?y.attr("transform",`translate(${-m.width/2}, ${-m.height/2+-14})`):y.attr("transform",`translate(0, ${-m.height/2+-14})`)),"handDrawn"===c.look){let a=j.default.svg(l),f=(0,b.userNodeOverrides)(c,{fill:h,stroke:i,fillStyle:"solid"}),g=a.path(w(u,x,s,t,8),f);(d=l.insert(()=>g,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,e.handleUndefinedAttr)(c.cssStyles))}else(d=l.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",k).attr("rx",8).attr("ry",8).attr("x",u).attr("y",x).attr("width",s).attr("height",t).attr("fill",h).attr("stroke",i);let z=x+o+r+8;l.append("line").attr("class","collapsed-separator").attr("x1",u+8).attr("y1",z).attr("x2",u+s-8).attr("y2",z).attr("stroke",i).attr("stroke-dasharray","3, 3");let A=z+10;for(let a=-1;a<=1;a++)l.append("circle").attr("class","collapsed-indicator").attr("cx",10*a).attr("cy",A).attr("r",2.5).attr("fill",i);return p(c,d),c.calcIntersect=function(a,b){return v(a,b)},c.intersect=function(a){return v(c,a)},l}function J(a,b,c,d){return a.insert("polygon",":first-child").attr("points",d.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-b/2+","+c/2+")")}(0,h.__name)(D,"anchor"),(0,h.__name)(E,"generateArcPoints"),(0,h.__name)(F,"calculateArcSagitta"),(0,h.__name)(G,"bowTieRect"),(0,h.__name)(H,"bucket"),(0,h.__name)(I,"collapsedGroup"),(0,h.__name)(J,"insertPolygonShape");var K=["right","left","up","down"],L="point",M=(0,h.__name)(a=>{let b=new Set;for(let c of a)switch(c){case"x":b.add("right"),b.add("left");break;case"y":b.add("up"),b.add("down");break;default:b.add(c)}return b},"expandAndDeduplicateDirections"),N=(0,h.__name)(a=>K.filter(b=>a.has(b)).join("|")||L,"getDirectionKey"),O={"right|left|up|down":(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:0,y:0},{x:b,y:0},{x:d/2,y:2*c},{x:d-b,y:0},{x:d,y:0},{x:d,y:-a/3},{x:d+2*c,y:-a/2},{x:d,y:-2*a/3},{x:d,y:-a},{x:d-b,y:-a},{x:d/2,y:-a-2*c},{x:b,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*c,y:-a/2},{x:0,y:-a/3}],"right|left|up|down"),"right|left|up":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:b,y:0},{x:c-b,y:0},{x:c,y:-a/2},{x:c-b,y:-a},{x:b,y:-a},{x:0,y:-a/2}],"right|left|up"),"right|left|down":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:0,y:0},{x:b,y:-a},{x:c-b,y:-a},{x:c,y:0}],"right|left|down"),"right|up|down":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:0,y:0},{x:c,y:-b},{x:c,y:-a+b},{x:0,y:-a}],"right|up|down"),"left|up|down":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:c,y:0},{x:0,y:-b},{x:0,y:-a+b},{x:c,y:-a}],"left|up|down"),"right|left":(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:b,y:0},{x:b,y:-c},{x:d-b,y:-c},{x:d-b,y:0},{x:d,y:-a/2},{x:d-b,y:-a},{x:d-b,y:-a+c},{x:b,y:-a+c},{x:b,y:-a},{x:0,y:-a/2}],"right|left"),"up|down":(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:d/2,y:0},{x:0,y:-c},{x:b,y:-c},{x:b,y:-a+c},{x:0,y:-a+c},{x:d/2,y:-a},{x:d,y:-a+c},{x:d-b,y:-a+c},{x:d-b,y:-c},{x:d,y:-c}],"up|down"),"right|up":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:0,y:0},{x:c,y:-b},{x:0,y:-a}],"right|up"),"right|down":(0,h.__name)(({height:a,width:b})=>[{x:0,y:0},{x:b,y:0},{x:0,y:-a}],"right|down"),"left|up":(0,h.__name)(({height:a,midpoint:b,width:c})=>[{x:c,y:0},{x:0,y:-b},{x:c,y:-a}],"left|up"),"left|down":(0,h.__name)(({height:a,width:b})=>[{x:b,y:0},{x:0,y:0},{x:b,y:-a}],"left|down"),right:(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:b,y:-c},{x:b,y:-c},{x:d-b,y:-c},{x:d-b,y:0},{x:d,y:-a/2},{x:d-b,y:-a},{x:d-b,y:-a+c},{x:b,y:-a+c},{x:b,y:-a+c}],"right"),left:(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:b,y:0},{x:b,y:-c},{x:d-b,y:-c},{x:d-b,y:-a+c},{x:b,y:-a+c},{x:b,y:-a},{x:0,y:-a/2}],"left"),up:(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:b,y:-c},{x:b,y:-a+c},{x:0,y:-a+c},{x:d/2,y:-a},{x:d,y:-a+c},{x:d-b,y:-a+c},{x:d-b,y:-c}],"up"),down:(0,h.__name)(({height:a,midpoint:b,padding:c,width:d})=>[{x:d/2,y:0},{x:0,y:-c},{x:b,y:-c},{x:b,y:-a+c},{x:d-b,y:-a+c},{x:d-b,y:-c},{x:d,y:-c}],"down"),[L]:()=>[{x:0,y:0}]},P=(0,h.__name)((a,b,c,d)=>{let e=M(a),f=(c.padding??0)/2,g=b.height+4*f,h=g/2,i=d??b.width+2*h+2*f;return(O[N(e)]??O[L])({height:g,midpoint:h,padding:f,width:i})},"getArrowPoints");async function Q(a,b){let{shapeSvg:c,bbox:d}=await n(a,b,q(b)),e=b.padding??0,f=d.height+2*e,g=f/2,h=d.width+2*g+e,i=b.width??0,j=b.positioned&&(b.widthInColumns??1)>1&&i>h?i:h,k=P(b.directions??[],d,b,j),l=J(c,j,f,k);return l.attr("style",b.style??null),p(b,l),b.intersect=function(a){return C(b,k,a)},c}async function R(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{shapeSvg:g,bbox:h,label:i}=await n(a,c,q(c)),k=d?.nodeBorder??d?.lineColor??"currentColor",l=c.padding??12,m=Math.max(h.width+2*l,c.width??0,90),o=Math.max(h.height+2*l+18,c.height??0),r=-o/2,{cssStyles:s}=c,t=g.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===c.look){let a=j.default.svg(g).path(w(-m/2,r,m,o,12),(0,b.userNodeOverrides)(c,{}));t.node()?.appendChild(a),s&&t.attr("style",s)}else t.append("rect").attr("x",-m/2).attr("y",r).attr("width",m).attr("height",o).attr("rx",12).attr("ry",12).attr("style",f);t.append("line").attr("x1",-m/2).attr("y1",r+18).attr("x2",m/2).attr("y2",r+18).attr("style",`stroke:${k};stroke-width:1px`);for(let a=0;a<3;a++)t.append("circle").attr("cx",-m/2+12+9*a).attr("cy",r+9).attr("r",2.5).attr("style",`fill:${k};stroke:none`);t.append("rect").attr("class","browser-address-bar").attr("x",-m/2+44).attr("y",r+4).attr("width",Math.max(m-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${k};stroke-width:1px;opacity:0.6`),p(c,t);let u=r+18+(o-18)/2;return i.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${u-h.height/2-(h.y-(h.top??0))})`),c.intersect=function(a){return v(c,a)},g}async function S(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let g=c.padding??0,h="neo"===c.look?28:g,i="neo"===c.look?24:g,{shapeSvg:k,bbox:l}=await n(a,c,q(c)),m=(c?.width??l.width)+("neo"===c.look?2*h:h+12),o=(c?.height??l.height)+("neo"===c.look?2*i:i),s=-o,t=[{x:12,y:s},{x:m,y:s},{x:m,y:0},{x:0,y:0},{x:0,y:s+12},{x:12,y:s}],{cssStyles:u}=c;if("handDrawn"===c.look){let a=j.default.svg(k),e=(0,b.userNodeOverrides)(c,{}),f=r(t),g=a.path(f,e);d=k.insert(()=>g,":first-child").attr("transform",`translate(${-m/2}, ${o/2})`),u&&d.attr("style",u)}else d=J(k,m,o,t);return f&&d.attr("style",f),p(c,d),c.intersect=function(a){return C(c,t,a)},k}function T(a,c){let{nodeStyles:d}=(0,b.styles2String)(c);c.label="";let e=a.insert("g").attr("class",q(c)).attr("id",c.domId??c.id),{cssStyles:f}=c,g=Math.max(28,c.width??0),h=[{x:0,y:g/2},{x:g/2,y:0},{x:0,y:-g/2},{x:-g/2,y:0}],i=j.default.svg(e),k=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(k.roughness=0,k.fillStyle="solid");let l=r(h),m=i.path(l,k),n=e.insert(()=>m,":first-child");return f&&"handDrawn"!==c.look&&n.selectAll("path").attr("style",f),d&&"handDrawn"!==c.look&&n.selectAll("path").attr("style",d),c.width=28,c.height=28,c.intersect=function(a){return C(c,h,a)},e}async function U(a,c,d){let f,{labelStyles:h,nodeStyles:i}=(0,b.styles2String)(c);c.labelStyle=h;let{shapeSvg:k,bbox:l,halfPadding:m}=await n(a,c,q(c)),o=d?.padding??m,r="neo"===c.look?l.width/2+32:l.width/2+o,{cssStyles:s}=c;if("handDrawn"===c.look){let a=j.default.svg(k),d=(0,b.userNodeOverrides)(c,{}),g=a.circle(0,0,2*r,d);(f=k.insert(()=>g,":first-child")).attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(s))}else f=k.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",r).attr("cx",0).attr("cy",0);return p(c,f),c.calcIntersect=function(a,b){let c=a.width/2;return z(a,c,b)},c.intersect=function(a){return g.log.info("Circle intersect",c,r,a),z(c,r,a)},k}async function V(a,b){let c=["node",b.cssClasses,b.class].filter(Boolean).join(" "),{shapeSvg:d,bbox:e,halfPadding:f}=await n(a,b,c),g=d.insert("rect",":first-child"),h=b.padding??0,i=b.positioned?b.width??0:e.width+h,j=b.positioned?b.height??0:e.height+h,k=b.positioned?-i/2:-e.width/2-f,l=b.positioned?-j/2:-e.height/2-f;return g.attr("class","basic cluster composite label-container").attr("style",b.style??null).attr("rx",b.rx??null).attr("ry",b.ry??null).attr("x",k).attr("y",l).attr("width",i).attr("height",j),p(b,g),b.intersect=function(a){return v(b,a)},d}async function W(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{shapeSvg:g,bbox:h,label:i}=await n(a,c,q(c)),k=d?.nodeBorder??d?.lineColor??"currentColor",l=c.padding??12,m=Math.max(h.width+2*l,c.width??0,90),o=Math.max(h.height+2*l+20,c.height??0),r=-o/2,{cssStyles:s}=c,t=g.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===c.look){let a=j.default.svg(g).path(w(-m/2,r,m,o,12),(0,b.userNodeOverrides)(c,{}));t.node()?.appendChild(a),s&&t.attr("style",s)}else t.append("rect").attr("x",-m/2).attr("y",r).attr("width",m).attr("height",o).attr("rx",12).attr("ry",12).attr("style",f);t.append("text").attr("x",-m/2+12).attr("y",r+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${k}`).text(">_"),p(c,t);let u=r+20+(o-20)/2;return i.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${u-h.height/2-(h.y-(h.top??0))})`),c.intersect=function(a){return v(c,a)},g}function X(a){let b=Math.cos(Math.PI/4),c=Math.sin(Math.PI/4),d=2*a,e={x:d/2*b,y:d/2*c},f={x:-(d/2)*b,y:d/2*c},g={x:-(d/2)*b,y:-(d/2)*c},h={x:d/2*b,y:-(d/2)*c};return`M ${f.x},${f.y} L ${h.x},${h.y}
|
|
2
|
+
M ${e.x},${e.y} L ${g.x},${g.y}`}function Y(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d,c.label="";let f=a.insert("g").attr("class",q(c)).attr("id",c.domId??c.id),h=Math.max(30,c?.width??0),{cssStyles:i}=c,k=j.default.svg(f),l=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(l.roughness=0,l.fillStyle="solid");let m=k.circle(0,0,2*h,l),n=X(h),o=k.path(n,l),r=f.insert(()=>m,":first-child");return r.insert(()=>o),r.attr("class","outer-path"),i&&"handDrawn"!==c.look&&r.selectAll("path").attr("style",i),e&&"handDrawn"!==c.look&&r.selectAll("path").attr("style",e),p(c,r),c.intersect=function(a){return g.log.info("crossedCircle intersect",c,{radius:h,point:a}),z(c,h,a)},f}function Z(a,b,c,d=100,e=0,f=180){let g=[],h=e*Math.PI/180,i=(f*Math.PI/180-h)/(d-1);for(let e=0;e<d;e++){let d=h+e*i,f=a+c*Math.cos(d),j=b+c*Math.sin(d);g.push({x:-f,y:-j})}return g}async function $(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i="neo"===c.look?18:c.padding??0,k="neo"===c.look?12:c.padding??0,l=g.width+i,m=g.height+k,o=Math.max(5,.1*m),{cssStyles:s}=c,t=[...Z(l/2,-m/2,o,30,-90,0),{x:-l/2-o,y:o},...Z(l/2+2*o,-o,o,20,-180,-270),...Z(l/2+2*o,o,o,20,-90,-180),{x:-l/2-o,y:-m/2},...Z(l/2,m/2,o,20,0,90)],u=[{x:l/2,y:-m/2-o},{x:-l/2,y:-m/2-o},...Z(l/2,-m/2,o,20,-90,0),{x:-l/2-o,y:-o},...Z(l/2+.1*l,-o,o,20,-180,-270),...Z(l/2+.1*l,o,o,20,-90,-180),{x:-l/2-o,y:m/2},...Z(l/2,m/2,o,20,0,90),{x:-l/2,y:m/2+o},{x:l/2,y:m/2+o}],v=j.default.svg(f),w=(0,b.userNodeOverrides)(c,{fill:"none"});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=r(t).replace("Z",""),y=v.path(x,w),z=r(u),A=v.path(z,{...w}),B=f.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>y,":first-child"),B.attr("class","text"),s&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",s),e&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",e),B.attr("transform",`translate(${o}, 0)`),h.attr("transform",`translate(${-l/2+o-(g.x-(g.left??0))},${-m/2+(c.padding??0)/2-(g.y-(g.top??0))})`),p(c,B),c.intersect=function(a){return C(c,u,a)},f}function _(a,b,c,d=100,e=0,f=180){let g=[],h=e*Math.PI/180,i=(f*Math.PI/180-h)/(d-1);for(let e=0;e<d;e++){let d=h+e*i,f=a+c*Math.cos(d),j=b+c*Math.sin(d);g.push({x:f,y:j})}return g}async function aa(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i="neo"===c.look?18:c.padding??0,k="neo"===c.look?12:c.padding??0,l=g.width+("neo"===c.look?2*i:i),m=g.height+("neo"===c.look?2*k:k),o=Math.max(5,.1*m),{cssStyles:s}=c,t=[..._(l/2,-m/2,o,20,-90,0),{x:l/2+o,y:-o},..._(l/2+2*o,-o,o,20,-180,-270),..._(l/2+2*o,o,o,20,-90,-180),{x:l/2+o,y:m/2},..._(l/2,m/2,o,20,0,90)],u=[{x:-l/2,y:-m/2-o},{x:l/2,y:-m/2-o},..._(l/2,-m/2,o,20,-90,0),{x:l/2+o,y:-o},..._(l/2+2*o,-o,o,20,-180,-270),..._(l/2+2*o,o,o,20,-90,-180),{x:l/2+o,y:m/2},..._(l/2,m/2,o,20,0,90),{x:l/2,y:m/2+o},{x:-l/2,y:m/2+o}],v=j.default.svg(f),w=(0,b.userNodeOverrides)(c,{fill:"none"});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=r(t).replace("Z",""),y=v.path(x,w),z=r(u),A=v.path(z,{...w}),B=f.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>y,":first-child"),B.attr("class","text"),s&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",s),e&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",e),B.attr("transform",`translate(${-o}, 0)`),h.attr("transform",`translate(${-l/2+(c.padding??0)/2-(g.x-(g.left??0))},${-m/2+(c.padding??0)/2-(g.y-(g.top??0))})`),p(c,B),c.intersect=function(a){return C(c,u,a)},f}function ab(a,b,c,d=100,e=0,f=180){let g=[],h=e*Math.PI/180,i=(f*Math.PI/180-h)/(d-1);for(let e=0;e<d;e++){let d=h+e*i,f=a+c*Math.cos(d),j=b+c*Math.sin(d);g.push({x:-f,y:-j})}return g}async function ac(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i="neo"===c.look?18:c.padding??0,k="neo"===c.look?12:c.padding??0,l=g.width+("neo"===c.look?2*i:i),m=g.height+("neo"===c.look?2*k:k),o=Math.max(5,.1*m),{cssStyles:s}=c,t=[...ab(l/2,-m/2,o,30,-90,0),{x:-l/2-o,y:o},...ab(l/2+2*o,-o,o,20,-180,-270),...ab(l/2+2*o,o,o,20,-90,-180),{x:-l/2-o,y:-m/2},...ab(l/2,m/2,o,20,0,90)],u=[...ab(-l/2+o+o/2,-m/2,o,20,-90,-180),{x:l/2-o/2,y:o},...ab(-l/2-o/2,-o,o,20,0,90),...ab(-l/2-o/2,o,o,20,-90,0),{x:l/2-o/2,y:-o},...ab(-l/2+o+o/2,m/2,o,30,-180,-270)],v=[{x:l/2,y:-m/2-o},{x:-l/2,y:-m/2-o},...ab(l/2,-m/2,o,20,-90,0),{x:-l/2-o,y:-o},...ab(l/2+2*o,-o,o,20,-180,-270),...ab(l/2+2*o,o,o,20,-90,-180),{x:-l/2-o,y:m/2},...ab(l/2,m/2,o,20,0,90),{x:-l/2,y:m/2+o},{x:l/2-o-o/2,y:m/2+o},...ab(-l/2+o+o/2,-m/2,o,20,-90,-180),{x:l/2-o/2,y:o},...ab(-l/2-o/2,-o,o,20,0,90),...ab(-l/2-o/2,o,o,20,-90,0),{x:l/2-o/2,y:-o},...ab(-l/2+o+o/2,m/2,o,30,-180,-270)],w=j.default.svg(f),x=(0,b.userNodeOverrides)(c,{fill:"none"});"handDrawn"!==c.look&&(x.roughness=0,x.fillStyle="solid");let y=r(t).replace("Z",""),z=w.path(y,x),A=r(u).replace("Z",""),B=w.path(A,x),D=r(v),E=w.path(D,{...x}),F=f.insert("g",":first-child");return F.insert(()=>E,":first-child").attr("stroke-opacity",0),F.insert(()=>z,":first-child"),F.insert(()=>B,":first-child"),F.attr("class","text"),s&&"handDrawn"!==c.look&&F.selectAll("path").attr("style",s),e&&"handDrawn"!==c.look&&F.selectAll("path").attr("style",e),F.attr("transform",`translate(${o-o/4}, 0)`),h.attr("transform",`translate(${-l/2+(c.padding??0)/2-(g.x-(g.left??0))},${-m/2+(c.padding??0)/2-(g.y-(g.top??0))})`),p(c,F),c.intersect=function(a){return C(c,v,a)},f}async function ad(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f,{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=Math.max(20,(k.width+2*g)*1.25,c?.width??0),m=Math.max(5,k.height+2*h,c?.height??0),o=m/2,{cssStyles:s}=c,u=j.default.svg(i),v=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(v.roughness=0,v.fillStyle="solid");let w=l-o,x=m/4,y=[{x:w,y:0},{x:x,y:0},{x:0,y:m/2},{x:x,y:m},{x:w,y:m},...t(-w,-m/2,o,50,270,90)],z=r(y),A=u.path(z,v),B=i.insert(()=>A,":first-child");return B.attr("class","basic label-container outer-path"),s&&"handDrawn"!==c.look&&B.selectChildren("path").attr("style",s),e&&"handDrawn"!==c.look&&B.selectChildren("path").attr("style",e),B.attr("transform",`translate(${-l/2}, ${-m/2})`),p(c,B),c.intersect=function(a){return C(c,y,a)},i}async function ae(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i=c.padding??20,k=Math.max(g.width+2*i,c.width??0,100),l=Math.min(Math.max(.23*k,16),56),m=.27*l,o=Math.max(g.height+2*i,c.height?c.height-(2*l-m):0),r=Math.min(.177*k,.45*o),s=o+2*l-m,u=-s/2,v=u+2*l-m,x=f.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:y}=c;if("handDrawn"===c.look){let a=j.default.svg(f),d=(0,b.userNodeOverrides)(c,{}),e=a.path(w(-k/2,v,k,o,r),d),g=a.circle(0,u+l,2*l,d);x.insert(()=>g,":first-child"),x.insert(()=>e,":first-child"),y&&x.attr("style",y)}else x.append("rect").attr("x",-k/2).attr("y",v).attr("width",k).attr("height",o).attr("rx",r).attr("ry",r).attr("style",e),x.append("circle").attr("cx",0).attr("cy",u+l).attr("r",l).attr("style",e);p(c,x);let z=v+o/2;h.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${z-g.height/2-(g.y-(g.top??0))})`);let A=u+l,B=180*Math.asin(Math.min(1,(v-A)/l))/Math.PI,D=[...t(0,-A,l,24,180+B,-B),...t(-(-k/2+r),-(v+r),r,12,90,0),...t(-(-k/2+r),-(s/2-r),r,12,360,270),...t(-(k/2-r),-(s/2-r),r,12,270,180),...t(-(k/2-r),-(v+r),r,12,180,90)];return c.intersect=function(a){return C(c,D,a)},f}(0,h.__name)(Q,"block_arrow"),(0,h.__name)(R,"browser"),(0,h.__name)(S,"card"),(0,h.__name)(T,"choice"),(0,h.__name)(U,"circle"),(0,h.__name)(V,"composite"),(0,h.__name)(W,"consoleWindow"),(0,h.__name)(X,"createLine"),(0,h.__name)(Y,"crossedCircle"),(0,h.__name)(Z,"generateCirclePoints"),(0,h.__name)($,"curlyBraceLeft"),(0,h.__name)(_,"generateCirclePoints"),(0,h.__name)(aa,"curlyBraceRight"),(0,h.__name)(ab,"generateCirclePoints"),(0,h.__name)(ac,"curlyBraces"),(0,h.__name)(ad,"curvedTrapezoid"),(0,h.__name)(ae,"person");var af=(0,h.__name)((a,b,c,d,e,f)=>`M${a},${b+f} a${e},${f} 0,0,0 ${c},0 a${e},${f} 0,0,0 ${-c},0 l0,${d} a${e},${f} 0,0,0 ${c},0 l0,${-d}`,"createCylinderPathD"),ag=(0,h.__name)((a,b,c,d,e,f)=>`M${a},${b+f} M${a+c},${b+f} a${e},${f} 0,0,0 ${-c},0 l0,${d} a${e},${f} 0,0,0 ${c},0 l0,${-d}`,"createOuterCylinderPathD"),ah=(0,h.__name)((a,b,c,d,e,f)=>`M${a-c/2},${-d/2} a${e},${f} 0,0,0 ${c},0`,"createInnerCylinderPathD");async function ai(a,c){let d,{labelStyles:f,nodeStyles:g}=(0,b.styles2String)(c);c.labelStyle=f;let h=c.padding??0,i="neo"===c.look?24:h,k="neo"===c.look?24:h,l=c.width??0;c.width&&(c.width=c.width-k,c.width<8&&(c.width=8)),c.height&&(c.height=c.height-i-l/2/(2.5+l/50)*3,c.height<8&&(c.height=8));let{shapeSvg:m,bbox:o,label:r}=await n(a,c,q(c)),s=Math.max(c.width??0,o.width)+k,t=s/2,u=t/(2.5+s/50),w=Math.max(c.height??0,o.height)+i+u,{cssStyles:x}=c;if("handDrawn"===c.look){let a=j.default.svg(m),e=ag(0,0,s,w,t,u),f=ah(0,u,s,w,t,u),g=(0,b.userNodeOverrides)(c,{}),h=a.path(e,g),i=a.path(f,(0,b.userNodeOverrides)(c,{fill:"none"}));d=m.insert(()=>i,":first-child"),(d=m.insert(()=>h,":first-child")).attr("class","basic label-container"),x&&d.attr("style",x)}else{let a=af(0,0,s,w,t,u);d=m.insert("path",":first-child").attr("d",a).attr("class","basic label-container outer-path").attr("style",(0,e.handleUndefinedAttr)(x)).attr("style",g)}return d.attr("label-offset-y",u),d.attr("transform",`translate(${-s/2}, ${-(w/2+u)})`),p(c,d),r.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+(c.padding??0)/1.5-(o.y-(o.top??0))})`),c.intersect=function(a){let b=v(c,a),d=b.x-(c.x??0);if(0!=t&&(Math.abs(d)<(c.width??0)/2||Math.abs(d)==(c.width??0)/2&&Math.abs(b.y-(c.y??0))>(c.height??0)/2-u)){let e=u*u*(1-d*d/(t*t));e>0&&(e=Math.sqrt(e)),e=u-e,a.y-(c.y??0)>0&&(e=-e),b.y+=e}return b},m}async function aj(a,c,d){let f,{labelStyles:g,nodeStyles:h}=(0,b.styles2String)(c);c.labelStyle=g;let{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=Math.max(k.width+2*d.labelPaddingX,c?.width||0),m=Math.max(k.height+2*d.labelPaddingY,c?.height||0),o=-l/2,r=-m/2,{rx:s,ry:t}=c,{cssStyles:u}=c;if(d?.rx&&d.ry&&(s=d.rx,t=d.ry),"handDrawn"===c.look){let a=j.default.svg(i),d=(0,b.userNodeOverrides)(c,{}),g=s||t?a.path(w(o,r,l,m,s||0),d):a.rectangle(o,r,l,m,d);(f=i.insert(()=>g,":first-child")).attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(u))}else(f=i.insert("rect",":first-child")).attr("class","basic label-container").attr("style",h).attr("rx",(0,e.handleUndefinedAttr)(s)).attr("ry",(0,e.handleUndefinedAttr)(t)).attr("x",o).attr("y",r).attr("width",l).attr("height",m);return p(c,f,"handDrawn"===c.look?void 0:{width:l,height:m}),c.calcIntersect=function(a,b){return v(a,b)},c.intersect=function(a){return v(c,a)},i}async function ak(a,c){let{cssClasses:d,labelPaddingX:e,labelPaddingY:f,padding:g,width:h,height:i}=c,k=await aj(a,c,{rx:0,ry:0,classes:d??"",labelPaddingX:e??(g??0)*2,labelPaddingY:f??g??0});if("handDrawn"===c.look){let a=j.default.svg(k),d=(0,b.userNodeOverrides)(c,{}),e=k.select(".basic.label-container > path:nth-child(2)"),f=e.node();if(!f)return k;let g=null;return f instanceof SVGGraphicsElement&&(g=f.getBBox(),k.insert(()=>a.line(g.x,g.y,g.x+g.width,g.y,d),".basic.label-container g.label"),k.insert(()=>a.line(g.x,g.y+g.height,g.x+g.width,g.y+g.height,d),".basic.label-container g.label"),e.remove()),k}let l=k.select(".basic.label-container"),m=(Number(l.attr("width"))||h)??0,n=(Number(l.attr("height"))||i)??0;return m>0&&n>0&&l.attr("stroke-dasharray",`${m} ${n}`),k}async function al(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f="neo"===c.look?16:c.padding??0,g="neo"===c.look?16:c.padding??0,{shapeSvg:h,bbox:i,label:k}=await n(a,c,q(c)),l=i.width+f,m=i.height+g,o=.2*m,r=-l/2,s=-m/2-o/2,{cssStyles:t}=c,u=j.default.svg(h),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=u.polygon([{x:r,y:s+o},{x:-r,y:s+o},{x:-r,y:-s},{x:r,y:-s},{x:r,y:s},{x:-r,y:s},{x:-r,y:s+o}].map(a=>[a.x,a.y]),w),y=h.insert(()=>x,":first-child");return y.attr("class","basic label-container outer-path"),t&&"handDrawn"!==c.look&&y.selectAll("path").attr("style",t),e&&"handDrawn"!==c.look&&y.selectAll("path").attr("style",e),k.attr("transform",`translate(${r+(c.padding??0)/2-(i.x-(i.left??0))}, ${s+o+(c.padding??0)/2-(i.y-(i.top??0))})`),p(c,y),c.intersect=function(a){return v(c,a)},h}async function am(a,c){let d,{labelStyles:f,nodeStyles:h}=(0,b.styles2String)(c),i="neo"===c.look?12:5;c.labelStyle=f;let k=c.padding??0,l="neo"===c.look?16:k,{shapeSvg:m,bbox:o}=await n(a,c,q(c)),r=(c?.width?c?.width/2:o.width/2)+(l??0),s=r-i,{cssStyles:t}=c;if("handDrawn"===c.look){let a=j.default.svg(m),f=(0,b.userNodeOverrides)(c,{roughness:.2,strokeWidth:2.5}),g=(0,b.userNodeOverrides)(c,{roughness:.2,strokeWidth:1.5}),h=a.circle(0,0,2*r,f),i=a.circle(0,0,2*s,g);(d=m.insert("g",":first-child")).attr("class",(0,e.handleUndefinedAttr)(c.cssClasses)).attr("style",(0,e.handleUndefinedAttr)(t)),d.node()?.appendChild(h),d.node()?.appendChild(i)}else{let a=(d=m.insert("g",":first-child")).insert("circle",":first-child"),b=d.insert("circle");d.attr("class","basic label-container").attr("style",h),a.attr("class","outer-circle").attr("style",h).attr("r",r).attr("cx",0).attr("cy",0),b.attr("class","inner-circle").attr("style",h).attr("r",s).attr("cx",0).attr("cy",0)}return p(c,d),c.intersect=function(a){return g.log.info("DoubleCircle intersect",c,r,a),z(c,r,a)},m}function an(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.label="",c.labelStyle=e;let h=a.insert("g").attr("class",q(c)).attr("id",c.domId??c.id),{cssStyles:i}=c,k=j.default.svg(h),{nodeBorder:l}=d,m=(0,b.userNodeOverrides)(c,{fillStyle:"solid"});"handDrawn"!==c.look&&(m.roughness=0);let n=k.circle(0,0,14,m),o=h.insert(()=>n,":first-child");return o.selectAll("path").attr("style",`fill: ${l} !important;`),i&&i.length>0&&"handDrawn"!==c.look&&o.selectAll("path").attr("style",i),f&&"handDrawn"!==c.look&&o.selectAll("path").attr("style",f),p(c,o),c.intersect=function(a){return g.log.info("filledCircle intersect",c,{radius:7,point:a}),z(c,7,a)},h}async function ao(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,h="neo"===c.look?2*f:f;(c.width||c.height)&&(c.height=c?.height??0,c.height<10&&(c.height=10),c.width=(c?.width??0)-h-h/2,c.width<10&&(c.width=10));let{shapeSvg:i,bbox:k,label:l}=await n(a,c,q(c)),m=(c?.width?c?.width:k.width)+(h??0),o=c?.height?c?.height:m+k.height,s=[{x:0,y:-o},{x:o,y:-o},{x:o/2,y:0}],{cssStyles:t}=c,u=j.default.svg(i),v=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(v.roughness=0,v.fillStyle="solid");let w=r(s),x=u.path(w,v),y=i.insert(()=>x,":first-child").attr("transform",`translate(${-o/2}, ${o/2})`).attr("class","outer-path");return t&&"handDrawn"!==c.look&&y.selectChildren("path").attr("style",t),e&&"handDrawn"!==c.look&&y.selectChildren("path").attr("style",e),c.width=m,c.height=o,p(c,y),l.attr("transform",`translate(${-k.width/2-(k.x-(k.left??0))}, ${-o/2+(c.padding??0)/2+(k.y-(k.top??0))})`),c.intersect=function(a){return g.log.info("Triangle intersect",c,s,a),C(c,s,a)},i}async function ap(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{shapeSvg:g,bbox:h,label:i}=await n(a,c,q(c)),k=c.padding??12,l=Math.max(h.width+2*k,c.width??0,90),m=h.height+2*k,o=Math.max(Math.min(.16*m,14),8),r=Math.max(m+o,c.height??0),s=r-o,t=Math.max(.38*l,28),u=-r/2,v=[{x:-l/2,y:u},{x:-l/2+t,y:u},{x:-l/2+t,y:u+o},{x:l/2,y:u+o},{x:l/2,y:r/2},{x:-l/2,y:r/2}],w=[`M${v[0].x},${v[0].y}`,...v.slice(1).map(a=>`L${a.x},${a.y}`),"Z"].join(" "),{cssStyles:x}=c;if("handDrawn"===c.look){let a=j.default.svg(g).path(w,(0,b.userNodeOverrides)(c,{}));d=g.insert(()=>a,":first-child").attr("class","basic label-container"),x&&d.attr("style",x)}else d=g.insert("path",":first-child").attr("d",w).attr("class","basic label-container").attr("style",f);return"handDrawn"===c.look?p(c,d):p(c,d,{width:l,height:r}),i.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${u+o+s/2-h.height/2-(h.y-(h.top??0))})`),c.intersect=function(a){return C(c,v,a)},g}function aq(a,c,{dir:d,config:{state:e,themeVariables:f}}){let{nodeStyles:g}=(0,b.styles2String)(c);c.label="";let h=a.insert("g").attr("class",q(c)).attr("id",c.domId??c.id),{cssStyles:i}=c,k=Math.max(70,c?.width??0),l=Math.max(10,c?.height??0);"LR"===d&&(k=Math.max(10,c?.width??0),l=Math.max(70,c?.height??0));let m=-1*k/2,n=-1*l/2,o=j.default.svg(h),r=(0,b.userNodeOverrides)(c,{stroke:f.lineColor,fill:f.lineColor});"handDrawn"!==c.look&&(r.roughness=0,r.fillStyle="solid");let s=o.rectangle(m,n,k,l,r),t=h.insert(()=>s,":first-child");i&&"handDrawn"!==c.look&&t.selectAll("path").attr("style",i),g&&"handDrawn"!==c.look&&t.selectAll("path").attr("style",g),p(c,t);let u=e?.padding??0;return c.width&&c.height&&(c.width+=u/2||0,c.height+=u/2||0),c.intersect=function(a){return v(c,a)},h}async function ar(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f="neo"===c.look?16:c.padding??0,h="neo"===c.look?12:c.padding??0;(c.width||c.height)&&(c.height=(c?.height??0)-2*h,c.height<10&&(c.height=10),c.width=(c?.width??0)-2*f,c.width<15&&(c.width=15));let{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=(c?.width?c?.width:Math.max(15,k.width))+2*f,m=(c?.height?c?.height:Math.max(10,k.height))+2*h,o=m/2,{cssStyles:s}=c,u=j.default.svg(i),v=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(v.roughness=0,v.fillStyle="solid");let w=[{x:-l/2,y:-m/2},{x:l/2-o,y:-m/2},...t(-l/2+o,0,o,50,90,270),{x:l/2-o,y:m/2},{x:-l/2,y:m/2}],x=r(w),y=u.path(x,v),z=i.insert(()=>y,":first-child");return z.attr("class","basic label-container outer-path"),s&&"handDrawn"!==c.look&&z.selectChildren("path").attr("style",s),e&&"handDrawn"!==c.look&&z.selectChildren("path").attr("style",e),p(c,z),c.intersect=function(a){return g.log.info("Pill intersect",c,{radius:o,point:a}),C(c,w,a)},i}(0,h.__name)(ai,"cylinder"),(0,h.__name)(aj,"drawRect"),(0,h.__name)(ak,"datastore"),(0,h.__name)(al,"dividedRectangle"),(0,h.__name)(am,"doublecircle"),(0,h.__name)(an,"filledCircle"),(0,h.__name)(ao,"flippedTriangle"),(0,h.__name)(ap,"folder"),(0,h.__name)(aq,"forkJoin"),(0,h.__name)(ar,"halfRoundedRectangle");var as=(0,h.__name)((a,b,c,d,e)=>`M${a+e},${b} L${a+c-e},${b} L${a+c},${b-d/2} L${a+c-e},${b-d} L${a+e},${b-d} L${a},${b-d/2} Z`,"createHexagonPathD");async function at(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c),g="neo"===c.look?3.5:4;c.labelStyle=e;let h=c.padding??0,i="neo"===c.look?70:h,k="neo"===c.look?32:h;if(c.width||c.height){let a=c.height??0;c.width=(c?.width??0)-a/g*2-k,c.height=(c.height??0)-i}let{shapeSvg:l,bbox:m}=await n(a,c,q(c)),o=(c?.height?c?.height:m.height)+i,r=o/g,s=(c?.width?c?.width:m.width)+2*r+k,t=[{x:r,y:0},{x:s-r,y:0},{x:s,y:-o/2},{x:s-r,y:-o},{x:r,y:-o},{x:0,y:-o/2}],{cssStyles:u}=c;if("handDrawn"===c.look){let a=j.default.svg(l),e=(0,b.userNodeOverrides)(c,{}),f=as(0,0,s,o,r),g=a.path(f,e);d=l.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),u&&d.attr("style",u)}else d=J(l,s,o,t);return f&&d.attr("style",f),c.width=s,c.height=o,p(c,d),c.intersect=function(a){return C(c,t,a)},l}async function au(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.label="",c.labelStyle=d;let{shapeSvg:f}=await n(a,c,q(c)),h=Math.max(30,c?.width??0),i=Math.max(30,c?.height??0),{cssStyles:k}=c,l=j.default.svg(f),m=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(m.roughness=0,m.fillStyle="solid");let o=[{x:0,y:0},{x:h,y:0},{x:0,y:i},{x:h,y:i}],s=r(o),t=l.path(s,m),u=f.insert(()=>t,":first-child");return u.attr("class","basic label-container outer-path"),k&&"handDrawn"!==c.look&&u.selectChildren("path").attr("style",k),e&&"handDrawn"!==c.look&&u.selectChildren("path").attr("style",e),u.attr("transform",`translate(${-h/2}, ${-i/2})`),p(c,u),c.intersect=function(a){return g.log.info("Pill intersect",c,{points:o}),C(c,o,a)},f}async function av(a,c,{config:{themeVariables:e,flowchart:f}}){let{labelStyles:h}=(0,b.styles2String)(c);c.labelStyle=h;let i=Math.max(c.assetHeight??48,c.assetWidth??48);c.width=Math.max(i,f?.wrappingWidth??0);let{shapeSvg:k,bbox:l,label:m}=await n(a,c,"icon-shape default"),o="t"===c.pos,{nodeBorder:q}=e,{stylesMap:r}=(0,b.compileStyles)(c),s=-i/2,t=-i/2,u=8*!!c.label,w=j.default.svg(k),x=(0,b.userNodeOverrides)(c,{stroke:"none",fill:"none"});"handDrawn"!==c.look&&(x.roughness=0,x.fillStyle="solid");let y=w.rectangle(s,t,i,i,x),z=Math.max(i,l.width),A=i+l.height+u,B=w.rectangle(-z/2,-A/2,z,A,{...x,fill:"transparent",stroke:"none"}),D=k.insert(()=>y,":first-child"),E=k.insert(()=>B);if(c.icon){let a=k.append("g");a.html(`<g>${await (0,d.getIconSVG)(c.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let b=a.node().getBBox(),e=b.width,f=b.height,g=b.x,h=b.y;a.attr("transform",`translate(${-e/2-g},${o?l.height/2+u/2-f/2-h:-l.height/2-u/2-f/2-h})`),a.attr("style",`color: ${r.get("stroke")??q};`)}return m.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${o?-A/2:A/2-l.height})`),D.attr("transform",`translate(0,${o?l.height/2+u/2:-l.height/2-u/2})`),p(c,E),c.intersect=function(a){if(g.log.info("iconSquare intersect",c,a),!c.label)return v(c,a);let b=c.x??0,d=c.y??0,e=c.height??0,f=[];return C(c,f=o?[{x:b-l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2+l.height+u},{x:b+i/2,y:d-e/2+l.height+u},{x:b+i/2,y:d+e/2},{x:b-i/2,y:d+e/2},{x:b-i/2,y:d-e/2+l.height+u},{x:b-l.width/2,y:d-e/2+l.height+u}]:[{x:b-i/2,y:d-e/2},{x:b+i/2,y:d-e/2},{x:b+i/2,y:d-e/2+i},{x:b+l.width/2,y:d-e/2+i},{x:b+l.width/2/2,y:d+e/2},{x:b-l.width/2,y:d+e/2},{x:b-l.width/2,y:d-e/2+i},{x:b-i/2,y:d-e/2+i}],a)},k}async function aw(a,c,{config:{themeVariables:e,flowchart:f}}){let{labelStyles:h}=(0,b.styles2String)(c);c.labelStyle=h;let i=Math.max(c.assetHeight??48,c.assetWidth??48);c.width=Math.max(i,f?.wrappingWidth??0);let{shapeSvg:k,bbox:l,label:m}=await n(a,c,"icon-shape default"),o=8*!!c.label,q="t"===c.pos,{nodeBorder:r,mainBkg:s}=e,{stylesMap:t}=(0,b.compileStyles)(c),u=j.default.svg(k),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid"),w.stroke=t.get("fill")??s;let x=k.append("g");c.icon&&x.html(`<g>${await (0,d.getIconSVG)(c.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let y=x.node().getBBox(),z=y.width,A=y.height,B=y.x,C=y.y,D=Math.max(z,A)*Math.SQRT2+40,E=u.circle(0,0,D,w),F=Math.max(D,l.width),G=D+l.height+o,H=u.rectangle(-F/2,-G/2,F,G,{...w,fill:"transparent",stroke:"none"}),I=k.insert(()=>E,":first-child"),J=k.insert(()=>H);return x.attr("transform",`translate(${-z/2-B},${q?l.height/2+o/2-A/2-C:-l.height/2-o/2-A/2-C})`),x.attr("style",`color: ${t.get("stroke")??r};`),m.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${q?-G/2:G/2-l.height})`),I.attr("transform",`translate(0,${q?l.height/2+o/2:-l.height/2-o/2})`),p(c,J),c.intersect=function(a){return g.log.info("iconSquare intersect",c,a),v(c,a)},k}async function ax(a,c,{config:{themeVariables:e,flowchart:f}}){let{labelStyles:h}=(0,b.styles2String)(c);c.labelStyle=h;let i=Math.max(c.assetHeight??48,c.assetWidth??48);c.width=Math.max(i,f?.wrappingWidth??0);let{shapeSvg:k,bbox:l,halfPadding:m,label:o}=await n(a,c,"icon-shape default"),q="t"===c.pos,r=i+2*m,s=i+2*m,{nodeBorder:t,mainBkg:u}=e,{stylesMap:x}=(0,b.compileStyles)(c),y=8*!!c.label,z=j.default.svg(k),A=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=x.get("fill")??u;let B=z.path(w(-s/2,-r/2,s,r,5),A),D=Math.max(s,l.width),E=r+l.height+y,F=z.rectangle(-D/2,-E/2,D,E,{...A,fill:"transparent",stroke:"none"}),G=k.insert(()=>B,":first-child").attr("class","icon-shape2"),H=k.insert(()=>F);if(c.icon){let a=k.append("g");a.html(`<g>${await (0,d.getIconSVG)(c.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let b=a.node().getBBox(),e=b.width,f=b.height,g=b.x,h=b.y;a.attr("transform",`translate(${-e/2-g},${q?l.height/2+y/2-f/2-h:-l.height/2-y/2-f/2-h})`),a.attr("style",`color: ${x.get("stroke")??t};`)}return o.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${q?-E/2:E/2-l.height})`),G.attr("transform",`translate(0,${q?l.height/2+y/2:-l.height/2-y/2})`),p(c,H),c.intersect=function(a){if(g.log.info("iconSquare intersect",c,a),!c.label)return v(c,a);let b=c.x??0,d=c.y??0,e=c.height??0,f=[];return C(c,f=q?[{x:b-l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2+l.height+y},{x:b+s/2,y:d-e/2+l.height+y},{x:b+s/2,y:d+e/2},{x:b-s/2,y:d+e/2},{x:b-s/2,y:d-e/2+l.height+y},{x:b-l.width/2,y:d-e/2+l.height+y}]:[{x:b-s/2,y:d-e/2},{x:b+s/2,y:d-e/2},{x:b+s/2,y:d-e/2+r},{x:b+l.width/2,y:d-e/2+r},{x:b+l.width/2/2,y:d+e/2},{x:b-l.width/2,y:d+e/2},{x:b-l.width/2,y:d-e/2+r},{x:b-s/2,y:d-e/2+r}],a)},k}async function ay(a,c,{config:{themeVariables:e,flowchart:f}}){let{labelStyles:h}=(0,b.styles2String)(c);c.labelStyle=h;let i=Math.max(c.assetHeight??48,c.assetWidth??48);c.width=Math.max(i,f?.wrappingWidth??0);let{shapeSvg:k,bbox:l,halfPadding:m,label:o}=await n(a,c,"icon-shape default"),q="t"===c.pos,r=i+2*m,s=i+2*m,{nodeBorder:t,mainBkg:u}=e,{stylesMap:x}=(0,b.compileStyles)(c),y=8*!!c.label,z=j.default.svg(k),A=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=x.get("fill")??u;let B=z.path(w(-s/2,-r/2,s,r,.1),A),D=Math.max(s,l.width),E=r+l.height+y,F=z.rectangle(-D/2,-E/2,D,E,{...A,fill:"transparent",stroke:"none"}),G=k.insert(()=>B,":first-child"),H=k.insert(()=>F);if(c.icon){let a=k.append("g");a.html(`<g>${await (0,d.getIconSVG)(c.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let b=a.node().getBBox(),e=b.width,f=b.height,g=b.x,h=b.y;a.attr("transform",`translate(${-e/2-g},${q?l.height/2+y/2-f/2-h:-l.height/2-y/2-f/2-h})`),a.attr("style",`color: ${x.get("stroke")??t};`)}return o.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${q?-E/2:E/2-l.height})`),G.attr("transform",`translate(0,${q?l.height/2+y/2:-l.height/2-y/2})`),p(c,H),c.intersect=function(a){if(g.log.info("iconSquare intersect",c,a),!c.label)return v(c,a);let b=c.x??0,d=c.y??0,e=c.height??0,f=[];return C(c,f=q?[{x:b-l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2},{x:b+l.width/2,y:d-e/2+l.height+y},{x:b+s/2,y:d-e/2+l.height+y},{x:b+s/2,y:d+e/2},{x:b-s/2,y:d+e/2},{x:b-s/2,y:d-e/2+l.height+y},{x:b-l.width/2,y:d-e/2+l.height+y}]:[{x:b-s/2,y:d-e/2},{x:b+s/2,y:d-e/2},{x:b+s/2,y:d-e/2+r},{x:b+l.width/2,y:d-e/2+r},{x:b+l.width/2/2,y:d+e/2},{x:b-l.width/2,y:d+e/2},{x:b-l.width/2,y:d-e/2+r},{x:b-s/2,y:d-e/2+r}],a)},k}async function az(a,c,{config:{flowchart:d}}){let e=new Image;e.src=c?.img??"",await e.decode();let f=Number(e.naturalWidth.toString().replace("px","")),h=Number(e.naturalHeight.toString().replace("px",""));c.imageAspectRatio=f/h;let{labelStyles:i}=(0,b.styles2String)(c);c.labelStyle=i;let k=d?.wrappingWidth;c.defaultWidth=d?.wrappingWidth;let l=Math.max(c.label?k??0:0,c?.assetWidth??f),m="on"===c.constraint&&c?.assetHeight?c.assetHeight*c.imageAspectRatio:l,o="on"===c.constraint?m/c.imageAspectRatio:c?.assetHeight??h;c.width=Math.max(m,k??0);let{shapeSvg:q,bbox:r,label:s}=await n(a,c,"image-shape default"),t="t"===c.pos,u=-m/2,w=8*!!c.label,x=j.default.svg(q),y=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(y.roughness=0,y.fillStyle="solid");let z=x.rectangle(u,-o/2,m,o,y),A=Math.max(m,r.width),B=o+r.height+w,D=x.rectangle(-A/2,-B/2,A,B,{...y,fill:"none",stroke:"none"}),E=q.insert(()=>z,":first-child"),F=q.insert(()=>D);if(c.img){let a=q.append("image");a.attr("href",c.img),a.attr("width",m),a.attr("height",o),a.attr("preserveAspectRatio","none"),a.attr("transform",`translate(${-m/2},${t?B/2-o:-B/2})`)}return s.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))},${t?-o/2-r.height/2-w/2:o/2-r.height/2+w/2})`),E.attr("transform",`translate(0,${t?r.height/2+w/2:-r.height/2-w/2})`),p(c,F),c.intersect=function(a){if(g.log.info("iconSquare intersect",c,a),!c.label)return v(c,a);let b=c.x??0,d=c.y??0,e=c.height??0,f=[];return C(c,f=t?[{x:b-r.width/2,y:d-e/2},{x:b+r.width/2,y:d-e/2},{x:b+r.width/2,y:d-e/2+r.height+w},{x:b+m/2,y:d-e/2+r.height+w},{x:b+m/2,y:d+e/2},{x:b-m/2,y:d+e/2},{x:b-m/2,y:d-e/2+r.height+w},{x:b-r.width/2,y:d-e/2+r.height+w}]:[{x:b-m/2,y:d-e/2},{x:b+m/2,y:d-e/2},{x:b+m/2,y:d-e/2+o},{x:b+r.width/2,y:d-e/2+o},{x:b+r.width/2/2,y:d+e/2},{x:b-r.width/2,y:d+e/2},{x:b-r.width/2,y:d-e/2+o},{x:b-m/2,y:d-e/2+o}],a)},q}async function aA(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let g=c.padding??0,h="neo"===c.look?2*g:g,{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=Math.max(k.height+2*g,c.height??0),m=Math.max(k.width+2*h,(c.width??0)-l),o=[{x:0,y:0},{x:m,y:0},{x:m+3*l/6,y:-l},{x:-3*l/6,y:-l}],{cssStyles:s}=c;if("handDrawn"===c.look){let a=j.default.svg(i),e=(0,b.userNodeOverrides)(c,{}),f=r(o),g=a.path(f,e);d=i.insert(()=>g,":first-child").attr("transform",`translate(${-m/2}, ${l/2})`),s&&d.attr("style",s)}else d=J(i,m,l,o);return f&&d.attr("style",f),c.width=m,c.height=l,p(c,d),c.intersect=function(a){return C(c,o,a)},i}async function aB(a,b){let{shapeSvg:c,bbox:d,label:e}=await n(a,b,"label"),f=c.insert("rect",":first-child");return f.attr("width",.1).attr("height",.1),c.attr("class","label edgeLabel"),e.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),p(b,f),b.intersect=function(a){return v(b,a)},c}async function aC(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let g=c.padding??0,h="neo"===c.look?2*g:g,{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=Math.max(k.height+g,c.height??0),m=Math.max(k.width+h,(c.width??0)-l),o=[{x:0,y:0},{x:m+3*l/6,y:0},{x:m,y:-l},{x:-(3*l)/6,y:-l}],{cssStyles:s}=c;if("handDrawn"===c.look){let a=j.default.svg(i),e=(0,b.userNodeOverrides)(c,{}),f=r(o),g=a.path(f,e);d=i.insert(()=>g,":first-child").attr("transform",`translate(${-m/2}, ${l/2})`),s&&d.attr("style",s)}else d=J(i,m,l,o);return f&&d.attr("style",f),c.width=m,c.height=l,p(c,d),c.intersect=function(a){return C(c,o,a)},i}async function aD(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let g=c.padding??0,h="neo"===c.look?2*g:g,{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=Math.max(k.height+g,c.height??0),m=Math.max(k.width+h,(c.width??0)-l),o=[{x:-3*l/6,y:0},{x:m,y:0},{x:m+3*l/6,y:-l},{x:0,y:-l}],{cssStyles:s}=c;if("handDrawn"===c.look){let a=j.default.svg(i),e=(0,b.userNodeOverrides)(c,{}),f=r(o),g=a.path(f,e);d=i.insert(()=>g,":first-child").attr("transform",`translate(${-m/2}, ${l/2})`),s&&d.attr("style",s)}else d=J(i,m,l,o);return f&&d.attr("style",f),c.width=m,c.height=l,p(c,d),c.intersect=function(a){return C(c,o,a)},i}function aE(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.label="",c.labelStyle=d;let f=a.insert("g").attr("class",q(c)).attr("id",c.domId??c.id),{cssStyles:h}=c,i=Math.max(35,c?.width??0),k=Math.max(35,c?.height??0),l=[{x:i,y:0},{x:0,y:k+3.5},{x:i-14,y:k+3.5},{x:0,y:2*k},{x:i,y:k-3.5},{x:14,y:k-3.5}],m=j.default.svg(f),n=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(n.roughness=0,n.fillStyle="solid");let o=r(l),s=m.path(o,n),t=f.insert(()=>s,":first-child");return t.attr("class","outer-path"),h&&"handDrawn"!==c.look&&t.selectAll("path").attr("style",h),e&&"handDrawn"!==c.look&&t.selectAll("path").attr("style",e),t.attr("transform",`translate(-${i/2},${-k})`),p(c,t),c.intersect=function(a){return g.log.info("lightningBolt intersect",c,a),C(c,l,a)},f}(0,h.__name)(at,"hexagon"),(0,h.__name)(au,"hourglass"),(0,h.__name)(av,"icon"),(0,h.__name)(aw,"iconCircle"),(0,h.__name)(ax,"iconRounded"),(0,h.__name)(ay,"iconSquare"),(0,h.__name)(az,"imageSquare"),(0,h.__name)(aA,"inv_trapezoid"),(0,h.__name)(aB,"labelRect"),(0,h.__name)(aC,"lean_left"),(0,h.__name)(aD,"lean_right"),(0,h.__name)(aE,"lightningBolt");var aF=(0,h.__name)((a,b,c,d,e,f,g)=>`M${a},${b+f} a${e},${f} 0,0,0 ${c},0 a${e},${f} 0,0,0 ${-c},0 l0,${d} a${e},${f} 0,0,0 ${c},0 l0,${-d} M${a},${b+f+g} a${e},${f} 0,0,0 ${c},0`,"createCylinderPathD"),aG=(0,h.__name)((a,b,c,d,e,f,g)=>`M${a},${b+f} M${a+c},${b+f} a${e},${f} 0,0,0 ${-c},0 l0,${d} a${e},${f} 0,0,0 ${c},0 l0,${-d} M${a},${b+f+g} a${e},${f} 0,0,0 ${c},0`,"createOuterCylinderPathD"),aH=(0,h.__name)((a,b,c,d,e,f)=>`M${a-c/2},${-d/2} a${e},${f} 0,0,0 ${c},0`,"createInnerCylinderPathD");async function aI(a,c){let d,{labelStyles:f,nodeStyles:g}=(0,b.styles2String)(c);c.labelStyle=f;let h=c.padding??0,i="neo"===c.look?16:h,k="neo"===c.look?24:h;if(c.width||c.height){let a=c.width??0;c.width=(c.width??0)-i,c.width<10&&(c.width=10),c.height=(c.height??0)-k-a/2/(2.5+a/50)*3,c.height<10&&(c.height=10)}let{shapeSvg:l,bbox:m,label:o}=await n(a,c,q(c)),r=(c?.width?c?.width:m.width)+2*i,s=r/2,t=s/(2.5+r/50),u=(c?.height?c?.height:m.height)+t+2*k,w=.1*u,{cssStyles:x}=c;if("handDrawn"===c.look){let a=j.default.svg(l),e=aG(0,0,r,u,s,t,w),f=aH(0,t,r,u,s,t),g=(0,b.userNodeOverrides)(c,{}),h=a.path(e,g),i=a.path(f,g);l.insert(()=>i,":first-child").attr("class","line"),(d=l.insert(()=>h,":first-child")).attr("class","basic label-container"),x&&d.attr("style",x)}else{let a=aF(0,0,r,u,s,t,w);d=l.insert("path",":first-child").attr("d",a).attr("class","basic label-container outer-path").attr("style",(0,e.handleUndefinedAttr)(x)).attr("style",g)}return d.attr("label-offset-y",t),d.attr("transform",`translate(${-r/2}, ${-(u/2+t)})`),p(c,d),o.attr("transform",`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+t-(m.y-(m.top??0))})`),c.intersect=function(a){let b=v(c,a),d=b.x-(c.x??0);if(0!=s&&(Math.abs(d)<(c.width??0)/2||Math.abs(d)==(c.width??0)/2&&Math.abs(b.y-(c.y??0))>(c.height??0)/2-t)){let e=t*t*(1-d*d/(s*s));e>0&&(e=Math.sqrt(e)),e=t-e,a.y-(c.y??0)>0&&(e=-e),b.y+=e}return b},l}async function aJ(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f;if(c.width||c.height){let a=c.width;c.width=(a??0)*10/11-2*g,c.width<10&&(c.width=10),c.height=(c?.height??0)-2*h,c.height<10&&(c.height=10)}let{shapeSvg:i,bbox:k,label:l}=await n(a,c,q(c)),m=(c?.width?c?.width:k.width)+(g??0)*2,o=(c?.height?c?.height:k.height)+(h??0)*2,r="neo"===c.look?o/4:o/8,t=o+r,{cssStyles:u}=c,v=j.default.svg(i),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=[{x:-m/2-m/2*.1,y:-t/2},{x:-m/2-m/2*.1,y:t/2},...s(-m/2-m/2*.1,t/2,m/2+m/2*.1,t/2,r,.8),{x:m/2+m/2*.1,y:-t/2},{x:-m/2-m/2*.1,y:-t/2},{x:-m/2,y:-t/2},{x:-m/2,y:t/2*1.1},{x:-m/2,y:-t/2}],y=v.polygon(x.map(a=>[a.x,a.y]),w),z=i.insert(()=>y,":first-child");return z.attr("class","basic label-container outer-path"),u&&"handDrawn"!==c.look&&z.selectAll("path").attr("style",u),e&&"handDrawn"!==c.look&&z.selectAll("path").attr("style",e),z.attr("transform",`translate(0,${-r/2})`),l.attr("transform",`translate(${-m/2+(c.padding??0)+m/2*.1/2-(k.x-(k.left??0))},${-o/2+(c.padding??0)-r/2-(k.y-(k.top??0))})`),p(c,z),c.intersect=function(a){return C(c,x,a)},i}async function aK(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f,i="neo"===c.look?10:5;(c.width||c.height)&&(c.width=Math.max((c?.width??0)-2*g-2*i,10),c.height=Math.max((c?.height??0)-2*h-2*i,10));let{shapeSvg:k,bbox:l,label:m}=await n(a,c,q(c)),o=(c?.width?c?.width:l.width)+2*g+2*i,s=(c?.height?c?.height:l.height)+2*h+2*i,t=o-2*i,v=s-2*i,w=-t/2,x=-v/2,{cssStyles:y}=c,z=j.default.svg(k),A=(0,b.userNodeOverrides)(c,{}),B=[{x:w-i,y:x+i},{x:w-i,y:x+v+i},{x:w+t-i,y:x+v+i},{x:w+t-i,y:x+v},{x:w+t,y:x+v},{x:w+t,y:x+v-i},{x:w+t+i,y:x+v-i},{x:w+t+i,y:x-i},{x:w+i,y:x-i},{x:w+i,y:x},{x:w,y:x},{x:w,y:x+i}];"handDrawn"!==c.look&&(A.roughness=0,A.fillStyle="solid");let D=r(B),E=z.path(D,A),F=r([{x:w,y:x+i},{x:w+t-i,y:x+i},{x:w+t-i,y:x+v},{x:w+t,y:x+v},{x:w+t,y:x},{x:w,y:x}]),G=z.path(F,A);"handDrawn"!==c.look&&(E=u(E),G=u(G));let H=k.insert("g",":first-child");return H.insert(()=>E),H.insert(()=>G),H.attr("class","basic label-container outer-path"),y&&"handDrawn"!==c.look&&H.selectAll("path").attr("style",y),e&&"handDrawn"!==c.look&&H.selectAll("path").attr("style",e),m.attr("transform",`translate(${-(l.width/2)-i-(l.x-(l.left??0))}, ${-(l.height/2)+i-(l.y-(l.top??0))})`),p(c,H),c.intersect=function(a){return C(c,B,a)},k}async function aL(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i=c.padding??0,k="neo"===c.look?16:i,l="neo"===c.look?12:i,m=!0;(c.width||c.height)&&(m=!1,c.width=(c?.width??0)-2*k,c.height=(c?.height??0)-3*l);let o=Math.max(g.width,c?.width??0)+2*k,t=Math.max(g.height,c?.height??0)+3*l,u="neo"===c.look?t/4:t/8,v=t+(m?u/2:-u/2),w=-o/2,x=-v/2,{cssStyles:y}=c,z=s(w-10,x+v+10,w+o-10,x+v+10,u,.8),A=z?.[z.length-1],B=[{x:w-10,y:x+10},{x:w-10,y:x+v+10},...z,{x:w+o-10,y:A.y-10},{x:w+o,y:A.y-10},{x:w+o,y:A.y-20},{x:w+o+10,y:A.y-20},{x:w+o+10,y:x-10},{x:w+10,y:x-10},{x:w+10,y:x},{x:w,y:x},{x:w,y:x+10}],D=[{x:w,y:x+10},{x:w+o-10,y:x+10},{x:w+o-10,y:A.y-10},{x:w+o,y:A.y-10},{x:w+o,y:x},{x:w,y:x}],E=j.default.svg(f),F=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(F.roughness=0,F.fillStyle="solid");let G=r(B),H=E.path(G,F),I=r(D),J=E.path(I,F),K=f.insert(()=>H,":first-child");return K.insert(()=>J),K.attr("class","basic label-container outer-path"),y&&"handDrawn"!==c.look&&K.selectAll("path").attr("style",y),e&&"handDrawn"!==c.look&&K.selectAll("path").attr("style",e),K.attr("transform",`translate(0,${-u/2})`),h.attr("transform",`translate(${-(g.width/2)-10-(g.x-(g.left??0))}, ${-(g.height/2)+10-u/2-(g.y-(g.top??0))})`),p(c,K),c.intersect=function(a){return C(c,B,a)},f}async function aM(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:g}=(0,b.styles2String)(c);c.labelStyle=e,c.useHtmlLabels||(0,f.getEffectiveHtmlLabels)((0,f.getConfig)())||(c.centerLabel=!0);let{shapeSvg:h,bbox:i,label:k}=await n(a,c,q(c)),l=Math.max(i.width+(c.padding??0)*2,c?.width??0),m=Math.max(i.height+(c.padding??0)*2,c?.height??0),{cssStyles:o}=c,r=j.default.svg(h),s=(0,b.userNodeOverrides)(c,{fill:d.noteBkgColor,stroke:d.noteBorderColor});"handDrawn"!==c.look&&(s.roughness=0,s.fillStyle="solid");let t=r.rectangle(-l/2,-m/2,l,m,s),u=h.insert(()=>t,":first-child");return u.attr("class","basic label-container outer-path"),k.attr("class","label noteLabel"),o&&"handDrawn"!==c.look&&u.selectAll("path").attr("style",o),g&&"handDrawn"!==c.look&&u.selectAll("path").attr("style",g),k.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),p(c,u),c.intersect=function(a){return v(c,a)},h}(0,h.__name)(aI,"linedCylinder"),(0,h.__name)(aJ,"linedWaveEdgedRect"),(0,h.__name)(aK,"multiRect"),(0,h.__name)(aL,"multiWaveEdgedRectangle"),(0,h.__name)(aM,"note");var aN=(0,h.__name)((a,b,c)=>`M${a+c/2},${b} L${a+c},${b-c/2} L${a+c/2},${b-c} L${a},${b-c/2} Z`,"createDecisionBoxPathD");async function aO(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{shapeSvg:g,bbox:h}=await n(a,c,q(c)),i=h.width+(c.padding??0)+(h.height+(c.padding??0)),k=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],{cssStyles:l}=c;if("handDrawn"===c.look){let a=j.default.svg(g),e=(0,b.userNodeOverrides)(c,{}),f=aN(0,0,i),h=a.path(f,e);d=g.insert(()=>h,":first-child").attr("transform",`translate(${-i/2+.5}, ${i/2})`),l&&d.attr("style",l)}else(d=J(g,i,i,k)).attr("transform",`translate(${-i/2+.5}, ${i/2})`);return f&&d.attr("style",f),p(c,d),c.calcIntersect=function(a,b){let c=a.width,d=C(a,[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],b);return{x:d.x-.5,y:d.y-.5}},c.intersect=function(a){return this.calcIntersect(c,a)},g}async function aP(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?21:f??0,h="neo"===c.look?12:f??0,{shapeSvg:i,bbox:k,label:l}=await n(a,c,q(c)),m=k.width+("neo"===c.look?2*g:g),o=Math.max(k.height+("neo"===c.look?2*h:h),c.height??0),s=-Math.max(m,(c.width??0)-o/4)/2,t=-o/2,u=t/2,v=[{x:s+u,y:t},{x:s,y:0},{x:s+u,y:-t},{x:-s,y:-t},{x:-s,y:t}],{cssStyles:w}=c,x=j.default.svg(i),y=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(y.roughness=0,y.fillStyle="solid");let z=r(v),A=x.path(z,y),B=i.insert(()=>A,":first-child");return B.attr("class","basic label-container outer-path"),w&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",w),e&&"handDrawn"!==c.look&&B.selectAll("path").attr("style",e),B.attr("transform",`translate(${-u/2},0)`),l.attr("transform",`translate(${-u/2-k.width/2-(k.x-(k.left??0))}, ${-(k.height/2)-(k.y-(k.top??0))})`),p(c,B),c.intersect=function(a){return C(c,v,a)},i}async function aQ(a,c){let d,e,h,{labelStyles:k,nodeStyles:l}=(0,b.styles2String)(c);c.labelStyle=k,d=c.cssClasses?"node "+c.cssClasses:"node default";let m=a.insert("g").attr("class",d).attr("id",c.domId||c.id),n=m.insert("g"),o=m.insert("g").attr("class","label").attr("style",l),q=c.description,r=c.label,s=await x(o,r,c.labelStyle,!0,!0),t={width:0,height:0};if((0,f.getEffectiveHtmlLabels)((0,f.getConfig2)())){let a=s.children[0],b=(0,i.select)(s);t=a.getBoundingClientRect(),b.attr("width",t.width),b.attr("height",t.height)}g.log.info("Text 2",q);let u=q||[],y=s.getBBox(),z=await x(o,Array.isArray(u)?u.join("<br/>"):u,c.labelStyle,!0,!0),A=z.children[0],B=(0,i.select)(z);t=A.getBoundingClientRect(),B.attr("width",t.width),B.attr("height",t.height);let C=(c.padding||0)/2;(0,i.select)(z).attr("transform","translate( "+(t.width>y.width?0:(y.width-t.width)/2)+", "+(y.height+C+5)+")"),(0,i.select)(s).attr("transform","translate( "+(t.width<y.width?0:-(y.width-t.width)/2)+", 0)"),t=o.node().getBBox(),o.attr("transform","translate("+-t.width/2+", "+(-t.height/2-C+3)+")");let D=t.width+(c.padding||0),E=t.height+(c.padding||0),F=-t.width/2-C,G=-t.height/2-C;if("handDrawn"===c.look){let a=j.default.svg(m),d=(0,b.userNodeOverrides)(c,{}),f=a.path(w(F,G,D,E,c.rx||0),d),i=a.line(-t.width/2-C,-t.height/2-C+y.height+C,t.width/2+C,-t.height/2-C+y.height+C,d);h=m.insert(()=>(g.log.debug("Rough node insert CXC",f),i),":first-child"),e=m.insert(()=>(g.log.debug("Rough node insert CXC",f),f),":first-child")}else e=n.insert("rect",":first-child"),h=n.insert("line"),e.attr("class","outer title-state").attr("style",l).attr("x",-t.width/2-C).attr("y",-t.height/2-C).attr("width",t.width+(c.padding||0)).attr("height",t.height+(c.padding||0)),h.attr("class","divider").attr("x1",-t.width/2-C).attr("x2",t.width/2+C).attr("y1",-t.height/2-C+y.height+C).attr("y2",-t.height/2-C+y.height+C);return p(c,e),c.intersect=function(a){return v(c,a)},m}async function aR(a,b,{config:{themeVariables:c}}){let d=c?.radius??5,e={rx:d,ry:d,classes:"",labelPaddingX:(b?.padding??0)*1,labelPaddingY:(b?.padding??0)*1};return aj(a,b,e)}async function aS(a,c){let{labelStyles:d,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=d;let g="neo"===c.look?16:c.padding??0,h="neo"===c.look?12:c.padding??0,{shapeSvg:i,bbox:k,label:l}=await n(a,c,q(c)),m=(c?.width??k.width)+2*g+("neo"===c.look?8:16),o=(c?.height??k.height)+2*h,r=m-8,s=8-m/2,t=-o/2,{cssStyles:u}=c,w=j.default.svg(i),x=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(x.roughness=0,x.fillStyle="solid");let y=w.polygon([{x:s,y:t},{x:s+r,y:t},{x:s+r,y:t+o},{x:s-8,y:t+o},{x:s-8,y:t},{x:s,y:t},{x:s,y:t+o}].map(a=>[a.x,a.y]),x),z=i.insert(()=>y,":first-child");return z.attr("class","basic label-container outer-path").attr("style",(0,e.handleUndefinedAttr)(u)),f&&"handDrawn"!==c.look&&z.selectAll("path").attr("style",f),u&&"handDrawn"!==c.look&&z.selectAll("path").attr("style",f),l.attr("transform",`translate(${4-k.width/2-(k.x-(k.left??0))}, ${-(k.height/2)-(k.y-(k.top??0))})`),p(c,z),c.intersect=function(a){return v(c,a)},i}async function aT(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f;(c.width||c.height)&&(c.width=Math.max((c?.width??0)-2*g,10),c.height=Math.max((c?.height??0)/1.5-2*h,10));let{shapeSvg:i,bbox:k,label:l}=await n(a,c,q(c)),m=(c?.width?c?.width:k.width)+2*g,o=((c?.height?c?.height:k.height)+2*h)*1.5/1.5,s=-m/2,t=-o/2,{cssStyles:u}=c,v=j.default.svg(i),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=[{x:s,y:t},{x:s,y:t+o},{x:s+m,y:t+o},{x:s+m,y:t-o/2}],y=r(x),z=v.path(y,w),A=i.insert(()=>z,":first-child");return A.attr("class","basic label-container outer-path"),u&&"handDrawn"!==c.look&&A.selectChildren("path").attr("style",u),e&&"handDrawn"!==c.look&&A.selectChildren("path").attr("style",e),A.attr("transform",`translate(0, ${o/4})`),l.attr("transform",`translate(${-m/2+(c.padding??0)-(k.x-(k.left??0))}, ${-o/4+(c.padding??0)-(k.y-(k.top??0))})`),p(c,A),c.intersect=function(a){return C(c,x,a)},i}async function aU(a,b){let c=b.padding??0,d="neo"===b.look?16:2*c,e="neo"===b.look?12:c,f={rx:0,ry:0,classes:"",labelPaddingX:b.labelPaddingX??d,labelPaddingY:e};return aj(a,b,f)}async function aV(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?20:f,h="neo"===c.look?12:f,{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=k.height+("neo"===c.look?2*h:h),m=k.width+l/4+("neo"===c.look?2*g:g),o=l/2,{cssStyles:s}=c,u=j.default.svg(i),v=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(v.roughness=0,v.fillStyle="solid");let w=[{x:-m/2+o,y:-l/2},{x:m/2-o,y:-l/2},...t(-m/2+o,0,o,50,90,270),{x:m/2-o,y:l/2},...t(m/2-o,0,o,50,270,450)],x=r(w),y=u.path(x,v),z=i.insert(()=>y,":first-child");return z.attr("class","basic label-container outer-path"),s&&"handDrawn"!==c.look&&z.selectChildren("path").attr("style",s),e&&"handDrawn"!==c.look&&z.selectChildren("path").attr("style",e),p(c,z),c.intersect=function(a){return C(c,w,a)},i}async function aW(a,b){let c={rx:"neo"===b.look?3:5,ry:"neo"===b.look?3:5,classes:"flowchart-node"};return aj(a,b,c)}function aX(a,c,{config:{themeVariables:d}}){let{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let{cssStyles:g}=c,{lineColor:h,stateBorder:i,nodeBorder:k,nodeShadow:l}=d;(c.width||c.height)&&((c.width??0)<14&&(c.width=14),(c.height??0)<14&&(c.height=14)),c.width||(c.width=14),c.height||(c.height=14);let m=a.insert("g").attr("class","node default").attr("id",c.domId??c.id),n=j.default.svg(m),o=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(o.roughness=0,o.fillStyle="solid");let q=n.circle(0,0,c.width,{...o,stroke:h,strokeWidth:2}),r=i??k,s=(c.width??0)*5/14,t=n.circle(0,0,s,{...o,fill:r,stroke:r,strokeWidth:2,fillStyle:"solid"}),u=m.insert(()=>q,":first-child");if(u.insert(()=>t),"handDrawn"!==c.look&&u.attr("class","outer-path"),g&&u.selectAll("path").attr("style",g),f&&u.selectAll("path").attr("style",f),c.width<25&&l&&"handDrawn"!==c.look){let b=a.node()?.ownerSVGElement?.id??"",c=b?`${b}-drop-shadow-small`:"drop-shadow-small";u.attr("style",`filter:url(#${c})`)}return p(c,u),c.intersect=function(a){return z(c,(c.width??0)/2,a)},m}function aY(a,c,{config:{themeVariables:d}}){let e,{lineColor:f,nodeShadow:g}=d;(c.width||c.height)&&((c.width??0)<14&&(c.width=14),(c.height??0)<14&&(c.height=14)),c.width||(c.width=14),c.height||(c.height=14);let h=a.insert("g").attr("class","node default").attr("id",c.domId||c.id);if("handDrawn"===c.look){let a=j.default.svg(h).circle(0,0,c.width,(0,b.solidStateFill)(f));(e=h.insert(()=>a)).attr("class","state-start").attr("r",(c.width??7)/2).attr("width",c.width??14).attr("height",c.height??14)}else(e=h.insert("circle",":first-child")).attr("class","state-start").attr("r",(c.width??7)/2).attr("width",c.width??14).attr("height",c.height??14);if(c.width<25&&g&&"handDrawn"!==c.look){let b=a.node()?.ownerSVGElement?.id??"",c=b?`${b}-drop-shadow-small`:"drop-shadow-small";e.attr("style",`filter:url(#${c})`)}return p(c,e),c.intersect=function(a){return z(c,(c.width??7)/2,a)},h}async function aZ(a,c){let{labelStyles:d,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=d;let g=c?.padding??8,h="neo"===c.look?28:g,i="neo"===c.look?12:g,{shapeSvg:k,bbox:l}=await n(a,c,q(c)),m=Math.max(l.width+16+h,c.width??0),o=Math.max(l.height+i,c.height??0),r=m-16,s=-m/2,t=-o/2,u=[{x:0,y:0},{x:r,y:0},{x:r,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-o},{x:-8,y:-o},{x:-8,y:0}];if("handDrawn"===c.look){let a=j.default.svg(k),d=(0,b.userNodeOverrides)(c,{}),f=a.rectangle(s,t,r+16,o,d),g=a.line(s+8,t,s+8,t+o,d),h=a.line(s+8+r,t,s+8+r,t+o,d);k.insert(()=>g,":first-child"),k.insert(()=>h,":first-child");let i=k.insert(()=>f,":first-child"),{cssStyles:l}=c;i.attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(l)),p(c,i)}else{let a=J(k,r,o,u);f&&a.attr("style",f),p(c,a)}return c.intersect=function(a){return C(c,u,a)},k}async function a$(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f;(c.width||c.height)&&(c.height=Math.max((c?.height??0)-2*h,10),c.width=Math.max((c?.width??0)-2*g-.2*(c.height+2*h),10));let{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=(c?.height?c?.height:k.height)+2*h,m=.2*l,o=(c?.width?c?.width:k.width)+2*g+m-m,s=-o/2,t=-l/2,{cssStyles:u}=c,v=j.default.svg(i),w=(0,b.userNodeOverrides)(c,{}),x=[{x:s-m/2,y:t},{x:s+o+m/2,y:t},{x:s+o+m/2,y:t+l},{x:s-m/2,y:t+l}];"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let y=r(x),z=v.path(y,w),A=r([{x:s+o-m/2,y:t+l},{x:s+o+m/2,y:t+l},{x:s+o+m/2,y:t+l-.2*l}]),B=v.path(A,{...w,fillStyle:"solid"}),D=i.insert(()=>B,":first-child");return D.insert(()=>z,":first-child"),D.attr("class","basic label-container outer-path"),u&&"handDrawn"!==c.look&&D.selectAll("path").attr("style",u),e&&"handDrawn"!==c.look&&D.selectAll("path").attr("style",e),p(c,D),c.intersect=function(a){return C(c,x,a)},i}async function a_(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,label:h}=await n(a,c,q(c)),i=Math.max(g.width+(c.padding??0)*2,c?.width??0),k=Math.max(g.height+(c.padding??0)*2,c?.height??0),l=k/8,m=.2*i,o=.2*k,t=k+l,{cssStyles:u}=c,v=j.default.svg(f),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=[{x:-i/2-i/2*.1,y:t/2},...s(-i/2-i/2*.1,t/2,i/2+i/2*.1,t/2,l,.8),{x:i/2+i/2*.1,y:-t/2},{x:-i/2-i/2*.1,y:-t/2}],y=-i/2+i/2*.1,z=-t/2-.4*o,A=[{x:y+i-m,y:(z+k)*1.3},{x:y+i,y:z+k-o},{x:y+i,y:(z+k)*.9},...s(y+i,(z+k)*1.25,y+i-m,(z+k)*1.3,-(.02*k),.5)],B=r(x),D=v.path(B,w),E=r(A),F=v.path(E,{...w,fillStyle:"solid"}),G=f.insert(()=>F,":first-child");return G.insert(()=>D,":first-child"),G.attr("class","basic label-container outer-path"),u&&"handDrawn"!==c.look&&G.selectAll("path").attr("style",u),e&&"handDrawn"!==c.look&&G.selectAll("path").attr("style",e),G.attr("transform",`translate(0,${-l/2})`),h.attr("transform",`translate(${-i/2+(c.padding??0)-(g.x-(g.left??0))},${-k/2+(c.padding??0)-l/2-(g.y-(g.top??0))})`),p(c,G),c.intersect=function(a){return C(c,x,a)},f}async function a0(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g}=await n(a,c,q(c)),h=Math.max(g.width+(c.padding??0),c?.width||0),i=Math.max(g.height+(c.padding??0),c?.height||0),j=f.insert("rect",":first-child");return j.attr("class","text").attr("style",e).attr("rx",0).attr("ry",0).attr("x",-h/2).attr("y",-i/2).attr("width",h).attr("height",i),p(c,j),c.intersect=function(a){return v(c,a)},f}(0,h.__name)(aO,"question"),(0,h.__name)(aP,"rect_left_inv_arrow"),(0,h.__name)(aQ,"rectWithTitle"),(0,h.__name)(aR,"roundedRect"),(0,h.__name)(aS,"shadedProcess"),(0,h.__name)(aT,"slopedRect"),(0,h.__name)(aU,"squareRect"),(0,h.__name)(aV,"stadium"),(0,h.__name)(aW,"state"),(0,h.__name)(aX,"stateEnd"),(0,h.__name)(aY,"stateStart"),(0,h.__name)(aZ,"subroutine"),(0,h.__name)(a$,"taggedRect"),(0,h.__name)(a_,"taggedWaveEdgedRectangle"),(0,h.__name)(a0,"text");var a1=(0,h.__name)((a,b,c,d,e,f)=>`M${a},${b}
|
|
3
|
+
a${e},${f} 0,0,1 0,${-d}
|
|
4
|
+
l${c},0
|
|
5
|
+
a${e},${f} 0,0,1 0,${d}
|
|
6
|
+
M${c},${-d}
|
|
7
|
+
a${e},${f} 0,0,0 0,${d}
|
|
8
|
+
l${-c},0`,"createCylinderPathD"),a2=(0,h.__name)((a,b,c,d,e,f)=>`M${a},${b} M${a+c},${b} a${e},${f} 0,0,0 0,${-d} l${-c},0 a${e},${f} 0,0,0 0,${d} l${c},0`,"createOuterCylinderPathD"),a3=(0,h.__name)((a,b,c,d,e,f)=>`M${a+c/2},${-d/2} a${e},${f} 0,0,0 0,${d}`,"createInnerCylinderPathD");async function a4(a,c){let d,{labelStyles:f,nodeStyles:g}=(0,b.styles2String)(c);c.labelStyle=f;let h=c.padding??0,i="neo"===c.look?12:h/2,k=c.height??0;c.height&&(c.height=c.height-i,c.height<5&&(c.height=5)),c.width&&(c.width=c.width-i-k/2/(2.5+k/50)*3,c.width<10&&(c.width=10));let{shapeSvg:l,bbox:m,label:o}=await n(a,c,q(c)),r=Math.max(c.height??0,m.height)+i,s=r/2,t=s/(2.5+r/50),u=Math.max(c.width??0,m.width)+t+i,{cssStyles:w}=c;if("handDrawn"===c.look){let a=j.default.svg(l),e=a2(0,0,u,r,t,s),f=a3(0,0,u,r,t,s),g=a.path(e,(0,b.userNodeOverrides)(c,{})),h=a.path(f,(0,b.userNodeOverrides)(c,{fill:"none"}));d=l.insert(()=>h,":first-child"),(d=l.insert(()=>g,":first-child")).attr("class","basic label-container"),w&&d.attr("style",w)}else{let a=a1(0,0,u,r,t,s);(d=l.insert("path",":first-child").attr("d",a).attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(w)).attr("style",g)).attr("class","basic label-container outer-path"),w&&d.selectAll("path").attr("style",w),g&&d.selectAll("path").attr("style",g)}return d.attr("label-offset-x",t),d.attr("transform",`translate(${-u/2}, ${r/2} )`),o.attr("transform",`translate(${-(m.width/2)-t-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),p(c,d),c.intersect=function(a){let b=v(c,a),d=b.y-(c.y??0);if(0!=s&&(Math.abs(d)<(c.height??0)/2||Math.abs(d)==(c.height??0)/2&&Math.abs(b.x-(c.x??0))>(c.width??0)/2-t)){let e=t*t*(1-d*d/(s*s));0!=e&&(e=Math.sqrt(Math.abs(e))),e=t-e,a.x-(c.x??0)>0&&(e=-e),b.x+=e}return b},l}async function a5(a,c){let d,{labelStyles:e,nodeStyles:f}=(0,b.styles2String)(c);c.labelStyle=e;let g=c.padding??0,h=(c.look,g),i="neo"===c.look?2*g:g,{shapeSvg:k,bbox:l}=await n(a,c,q(c)),m=Math.max(l.height+h,c.height??0),o=Math.max(l.width+i,(c.width??0)-m),s=[{x:-3*m/6,y:0},{x:o+3*m/6,y:0},{x:o,y:-m},{x:0,y:-m}],{cssStyles:t}=c;if("handDrawn"===c.look){let a=j.default.svg(k),e=(0,b.userNodeOverrides)(c,{}),f=r(s),g=a.path(f,e);d=k.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${m/2})`),t&&d.attr("style",t)}else d=J(k,o,m,s);return f&&d.attr("style",f),c.width=o,c.height=m,p(c,d),c.intersect=function(a){return C(c,s,a)},k}async function a6(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f;(c.width||c.height)&&(c.height=(c.height??0)-2*h,c.height<5&&(c.height=5),c.width=(c.width??0)-2*g,c.width<15&&(c.width=15));let{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=(c?.width?c?.width:k.width)+2*g,m=(c?.height?c?.height:k.height)+2*h,{cssStyles:o}=c,s=j.default.svg(i),t=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(t.roughness=0,t.fillStyle="solid");let u=[{x:-l/2*.8,y:-m/2},{x:l/2*.8,y:-m/2},{x:l/2,y:-m/2*.6},{x:l/2,y:m/2},{x:-l/2,y:m/2},{x:-l/2,y:-m/2*.6}],v=r(u),w=s.path(v,t),x=i.insert(()=>w,":first-child");return x.attr("class","basic label-container outer-path"),o&&"handDrawn"!==c.look&&x.selectChildren("path").attr("style",o),e&&"handDrawn"!==c.look&&x.selectChildren("path").attr("style",e),p(c,x),c.intersect=function(a){return C(c,u,a)},i}async function a7(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let h=c.padding??0,i="neo"===c.look?2*h:h;(c.width||c.height)&&(c.width=((c?.width??0)-i)/2,c.width<10&&(c.width=10),c.height=c?.height??0,c.height<10&&(c.height=10));let{shapeSvg:k,bbox:l,label:m}=await n(a,c,q(c)),o=(0,f.evaluate)((0,f.getConfig2)().flowchart?.htmlLabels),s=(c?.width?c?.width:l.width)+i,t=c?.height?c?.height:s+l.height,u=[{x:0,y:0},{x:t,y:0},{x:t/2,y:-t}],{cssStyles:v}=c,w=j.default.svg(k),x=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(x.roughness=0,x.fillStyle="solid");let y=r(u),z=w.path(y,x),A=k.insert(()=>z,":first-child").attr("transform",`translate(${-t/2}, ${t/2})`).attr("class","outer-path");return v&&"handDrawn"!==c.look&&A.selectChildren("path").attr("style",v),e&&"handDrawn"!==c.look&&A.selectChildren("path").attr("style",e),c.width=s,c.height=t,p(c,A),m.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${t/2-(l.height+(c.padding??0)/(o?2:1)-(l.y-(l.top??0)))})`),c.intersect=function(a){return g.log.info("Triangle intersect",c,u,a),C(c,u,a)},k}async function a8(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?12:f,i=!0;(c.width||c.height)&&(i=!1,c.width=(c?.width??0)-2*g,c.width<10&&(c.width=10),c.height=(c?.height??0)-2*h,c.height<10&&(c.height=10));let{shapeSvg:k,bbox:l,label:m}=await n(a,c,q(c)),o=(c?.width?c?.width:l.width)+(g??0)*2,t=(c?.height?c?.height:l.height)+(h??0)*2,u="neo"===c.look?t/4:t/8,v=t+(i?u:-u),{cssStyles:w}=c,x=14-o,y=x>0?x/2:0,z=j.default.svg(k),A=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(A.roughness=0,A.fillStyle="solid");let B=[{x:-o/2-y,y:v/2},...s(-o/2-y,v/2,o/2+y,v/2,u,.8),{x:o/2+y,y:-v/2},{x:-o/2-y,y:-v/2}],D=r(B),E=z.path(D,A),F=k.insert(()=>E,":first-child");return F.attr("class","basic label-container outer-path"),w&&"handDrawn"!==c.look&&F.selectAll("path").attr("style",w),e&&"handDrawn"!==c.look&&F.selectAll("path").attr("style",e),F.attr("transform",`translate(0,${-u/2})`),m.attr("transform",`translate(${-o/2+(c.padding??0)-(l.x-(l.left??0))},${-t/2+(c.padding??0)-u-(l.y-(l.top??0))})`),p(c,F),c.intersect=function(a){return C(c,B,a)},k}async function a9(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f=c.padding??0,g="neo"===c.look?16:f,h="neo"===c.look?20:f;if(c.width||c.height){c.width=c?.width??0,c.width<20&&(c.width=20),c.height=c?.height??0,c.height<10&&(c.height=10);let a=Math.min(.2*c.height,c.height/4);c.height=Math.ceil(c.height-h-20/9*a),c.width=c.width-2*g}let{shapeSvg:i,bbox:k}=await n(a,c,q(c)),l=(c?.width?c?.width:k.width)+2*g,m=(c?.height?c?.height:k.height)+h,o=m/8,t=m+2*o,{cssStyles:u}=c,v=j.default.svg(i),w=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let x=[{x:-l/2,y:t/2},...s(-l/2,t/2,l/2,t/2,o,1),{x:l/2,y:-t/2},...s(l/2,-t/2,-l/2,-t/2,o,-1)],y=r(x),z=v.path(y,w),A=i.insert(()=>z,":first-child");return A.attr("class","basic label-container"),u&&"handDrawn"!==c.look&&A.selectAll("path").attr("style",u),e&&"handDrawn"!==c.look&&A.selectAll("path").attr("style",e),p(c,A),c.intersect=function(a){return C(c,x,a)},i}async function ba(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let f="neo"===c.look?16:c.padding??0,g="neo"===c.look?12:c.padding??0;(c.width||c.height)&&(c.width=Math.max((c?.width??0)-2*f-10,10),c.height=Math.max((c?.height??0)-2*g-10,10));let{shapeSvg:h,bbox:i,label:k}=await n(a,c,q(c)),l=(c?.width?c?.width:i.width)+2*f+10,m=(c?.height?c?.height:i.height)+2*g+10,o=l-10,r=m-10,s=-o/2,t=-r/2,{cssStyles:u}=c,v=j.default.svg(h),w=(0,b.userNodeOverrides)(c,{}),x=[{x:s-10,y:t-10},{x:s-10,y:t+r},{x:s+o,y:t+r},{x:s+o,y:t-10}],y=`M${s-10},${t-10} L${s+o},${t-10} L${s+o},${t+r} L${s-10},${t+r} L${s-10},${t-10}
|
|
9
|
+
M${s-10},${t} L${s+o},${t}
|
|
10
|
+
M${s},${t-10} L${s},${t+r}`;"handDrawn"!==c.look&&(w.roughness=0,w.fillStyle="solid");let z=v.path(y,w),A=h.insert(()=>z,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),u&&"handDrawn"!==c.look&&A.selectAll("path").attr("style",u),e&&"handDrawn"!==c.look&&A.selectAll("path").attr("style",e),k.attr("transform",`translate(${-(i.width/2)+5-(i.x-(i.left??0))}, ${-(i.height/2)+5-(i.y-(i.top??0))})`),p(c,A),c.intersect=function(a){return C(c,x,a)},h}(0,h.__name)(a4,"tiltedCylinder"),(0,h.__name)(a5,"trapezoid"),(0,h.__name)(a6,"trapezoidalPentagon"),(0,h.__name)(a7,"triangle"),(0,h.__name)(a8,"waveEdgedRectangle"),(0,h.__name)(a9,"waveRectangle"),(0,h.__name)(ba,"windowPane");var bb=new Set(["redux-color","redux-dark-color"]),bc=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function bd(a,c){c.alias&&(c.label=c.alias);let{theme:d,themeVariables:g}=(0,f.getConfig)(),{rowEven:h,rowOdd:k,nodeBorder:l,borderColorArray:m}=g;if("handDrawn"===c.look){let{themeVariables:b}=(0,f.getConfig)(),{background:d}=b,e={...c,id:c.id+"-background",domId:(c.domId||c.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${d}`]};await bd(a,e)}let n=(0,f.getConfig)();c.useHtmlLabels=n.htmlLabels;let o=n.er?.diagramPadding??10,r=n.er?.entityPadding??6,{cssStyles:s}=c,{labelStyles:t,nodeStyles:u}=(0,b.styles2String)(c);if(0===c.attributes.length&&c.label){let b={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""};(0,e.calculateTextWidth)(c.label,n)+2*b.labelPaddingX<n.er.minEntityWidth&&(c.width=n.er.minEntityWidth);let g=await aj(a,c,b);if(null!=d&&bb.has(d)){let a=c.colorIndex??0;g.attr("data-color-id",`color-${a%m.length}`)}if(!(0,f.evaluate)(n.htmlLabels)){let a=g.select("text"),b=a.node()?.getBBox();a.attr("transform",`translate(${-b.width/2}, 0)`)}return g}n.htmlLabels||(o*=1.25,r*=1.25);let w=q(c);w||(w="node default");let x=a.insert("g").attr("class",w).attr("id",c.domId||c.id),y=await be(x,c.label??"",n,0,0,["name"],t);y.height+=r;let z=0,A=[],B=[],C=0,D=0,E=0,F=0,G=!0,H=!0;for(let a of c.attributes){let b=await be(x,a.type,n,0,z,["attribute-type"],t);C=Math.max(C,b.width+o);let c=await be(x,a.name,n,0,z,["attribute-name"],t);D=Math.max(D,c.width+o);let d=await be(x,a.keys.join(),n,0,z,["attribute-keys"],t);E=Math.max(E,d.width+o);let e=await be(x,a.comment,n,0,z,["attribute-comment"],t);F=Math.max(F,e.width+o);let f=Math.max(b.height,c.height,d.height,e.height)+r;B.push({yOffset:z,rowHeight:f}),z+=f}let I=4;E<=o&&(G=!1,E=0,I--),F<=o&&(H=!1,F=0,I--);let J=x.node().getBBox();if(y.width+2*o-(C+D+E+F)>0){let a=y.width+2*o-(C+D+E+F);C+=a/I,D+=a/I,E>0&&(E+=a/I),F>0&&(F+=a/I)}let K=C+D+E+F,L=j.default.svg(x),M=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(M.roughness=0,M.fillStyle="solid");let N=0;B.length>0&&(N=B.reduce((a,b)=>a+(b?.rowHeight??0),0));let O=Math.max(J.width+2*o,c?.width||0,K),P=Math.max((N??0)+y.height,c?.height||0),Q=-O/2,R=-P/2;if(x.selectAll("g:not(:first-child)").each((a,b,c)=>{let d=(0,i.select)(c[b]),e=d.attr("transform"),f=0,g=0;if(e){let a=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(e);a&&(f=parseFloat(a[1]),g=parseFloat(a[2]),d.attr("class").includes("attribute-name")?f+=C:d.attr("class").includes("attribute-keys")?f+=C+D:d.attr("class").includes("attribute-comment")&&(f+=C+D+E))}d.attr("transform",`translate(${Q+o/2+f}, ${g+R+y.height+r/2})`)}),x.select(".name").attr("transform","translate("+-y.width/2+", "+(R+r/2)+")"),null!=d&&bb.has(d)){let a=c.colorIndex??0;x.attr("data-color-id",`color-${a%m.length}`)}let S=L.rectangle(Q,R,O,P,M),T=x.insert(()=>S,":first-child").attr("class","outer-path").attr("style",s.join(""));for(let[a,b]of(A.push(0),B.entries())){let c=(a+1)%2==0&&0!==b.yOffset,d=L.rectangle(Q,y.height+R+b?.yOffset,O,b?.rowHeight,{...M,fill:c?h:k,stroke:l});x.insert(()=>d,"g.label").attr("style",s.join("")).attr("class",`row-rect-${c?"even":"odd"}`)}let U=bf(Q,y.height+R,O+Q,y.height+R,1e-4),V=L.polygon(U.map(a=>[a.x,a.y]),M);if(x.insert(()=>V).attr("class","divider"),U=bf(C+Q,y.height+R,C+Q,P+R,1e-4),V=L.polygon(U.map(a=>[a.x,a.y]),M),x.insert(()=>V).attr("class","divider"),G){let a=C+D+Q;U=bf(a,y.height+R,a,P+R,1e-4),V=L.polygon(U.map(a=>[a.x,a.y]),M),x.insert(()=>V).attr("class","divider")}if(H){let a=C+D+E+Q;U=bf(a,y.height+R,a,P+R,1e-4),V=L.polygon(U.map(a=>[a.x,a.y]),M),x.insert(()=>V).attr("class","divider")}for(let a of A){let b=y.height+R+a;U=bf(Q,b,O+Q,b,1e-4),V=L.polygon(U.map(a=>[a.x,a.y]),M),x.insert(()=>V).attr("class","divider")}if(p(c,T),u&&"handDrawn"!==c.look)if(null!=d&&bc.has(d))x.selectAll("path").attr("style",u);else{let a=u.split(";"),b=a?.filter(a=>a.includes("stroke"))?.map(a=>`${a}`).join("; ");x.selectAll("path").attr("style",b??""),x.selectAll(".row-rect-even path").attr("style",u)}return c.intersect=function(a){return v(c,a)},x}async function be(a,b,d,g=0,h=0,j=[],k=""){let l=a.insert("g").attr("class",`label ${j.join(" ")}`).attr("transform",`translate(${g}, ${h})`).attr("style",k);b!==(0,f.parseGenericTypes)(b)&&(b=(b=(0,f.parseGenericTypes)(b)).replaceAll("<","<").replaceAll(">",">"));let m=l.node().appendChild(await (0,c.createText)(l,b,{width:(0,e.calculateTextWidth)(b,d)+100,style:k,useHtmlLabels:d.htmlLabels},d));if(b.includes("<")||b.includes(">")){let a=m.children[0];for(a.textContent=a.textContent.replaceAll("<","<").replaceAll(">",">");a.childNodes[0];)(a=a.childNodes[0]).textContent=a.textContent.replaceAll("<","<").replaceAll(">",">")}let n=m.getBBox();if((0,f.evaluate)(d.htmlLabels)){let a=m.children[0];a.style.textAlign="start";let b=(0,i.select)(m);n=a.getBoundingClientRect(),b.attr("width",n.width),b.attr("height",n.height)}return n}function bf(a,b,c,d,e){return a===c?[{x:a-e/2,y:b},{x:a+e/2,y:b},{x:c+e/2,y:d},{x:c-e/2,y:d}]:[{x:a,y:b-e/2},{x:a,y:b+e/2},{x:c,y:d+e/2},{x:c,y:d-e/2}]}async function bg(a,b,c,d,e=c.class.padding??12){let f=3*!d,g=a.insert("g").attr("class",q(b)).attr("id",b.domId||b.id),h=null,i=null,j=null,k=null,l=0,m=0,n=0;if(h=g.insert("g").attr("class","annotation-group text"),b.annotations.length>0){let a=b.annotations[0];await bh(h,{text:`\xab${a}\xbb`},0),l=h.node().getBBox().height}i=g.insert("g").attr("class","label-group text"),await bh(i,b,0,["font-weight: bolder"]);let o=i.node().getBBox();m=o.height,j=g.insert("g").attr("class","members-group text");let p=0;for(let a of b.members){let b=await bh(j,a,p,[a.parseClassifier()]);p+=b+f}(n=j.node().getBBox().height)<=0&&(n=e/2),k=g.insert("g").attr("class","methods-group text");let r=0;for(let a of b.methods){let b=await bh(k,a,r,[a.parseClassifier()]);r+=b+f}let s=g.node().getBBox();if(null!==h){let a=h.node().getBBox();h.attr("transform",`translate(${-a.width/2})`)}return i.attr("transform",`translate(${-o.width/2}, ${l})`),s=g.node().getBBox(),j.attr("transform",`translate(0, ${l+m+2*e})`),s=g.node().getBBox(),k.attr("transform",`translate(0, ${l+m+(n?n+4*e:2*e)})`),s=g.node().getBBox(),{shapeSvg:g,bbox:s}}async function bh(a,b,d,g=[]){let h,j=a.insert("g").attr("class","label").attr("style",g.join("; ")),l=(0,f.getConfig)(),m="useHtmlLabels"in b?b.useHtmlLabels:(0,f.evaluate)(l.htmlLabels)??!0,n="";n="text"in b?b.text:b.label,!m&&n.startsWith("\\")&&(n=n.substring(1)),(0,f.hasKatex)(n)&&(m=!0);let o=await (0,c.createText)(j,(0,f.sanitizeText2)((0,e.decodeEntities)(n)),{width:(0,e.calculateTextWidth)(n,l)+50,classes:"markdown-node-label",useHtmlLabels:m},l),p=1;if(m){let a=o.children[0],b=(0,i.select)(o);p=a.innerHTML.split("<br>").length,a.innerHTML.includes("</math>")&&(p+=a.innerHTML.split("<mrow>").length-1),await k(a),h=a.getBoundingClientRect(),b.attr("width",h.width),b.attr("height",h.height)}else{g.includes("font-weight: bolder")&&(0,i.select)(o).selectAll("tspan").attr("font-weight",""),p=o.children.length;let a=o.children[0];(""===o.textContent||o.textContent.includes(">"))&&(a.textContent=n[0]+n.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===n[1]&&(a.textContent=a.textContent[0]+" "+a.textContent.substring(1))),"undefined"===a.textContent&&(a.textContent=""),h=o.getBBox()}return j.attr("transform","translate(0,"+(-h.height/(2*p)+d)+")"),h.height}async function bi(a,c){let d=(0,f.getConfig2)(),{themeVariables:e}=d,{useGradient:g}=e,h=d.class.padding??12,k=c.useHtmlLabels??(0,f.evaluate)(d.htmlLabels)??!0;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];let{shapeSvg:l,bbox:m}=await bg(a,c,d,k,h),{labelStyles:n,nodeStyles:o}=(0,b.styles2String)(c);c.labelStyle=n,c.cssStyles=c.styles||"";let q=c.styles?.join(";")||o||"";c.cssStyles||(c.cssStyles=q.replaceAll("!important","").split(";"));let r=0===c.members.length&&0===c.methods.length&&!d.class?.hideEmptyMembersBox,s=j.default.svg(l),t=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(t.roughness=0,t.fillStyle="solid");let u=Math.max(c.width??0,m.width),w=Math.max(c.height??0,m.height),x=(c.height??0)>m.height;0===c.members.length&&0===c.methods.length?w+=h:c.members.length>0&&0===c.methods.length&&(w+=2*h);let y=-u/2,z=-w/2,A=r?2*h:0===c.members.length&&0===c.methods.length?-h:0;x&&(A=2*h);let B=s.rectangle(y-h,z-h-(r?h:0===c.members.length&&0===c.methods.length?-h/2:0),u+2*h,w+2*h+A,t),C=l.insert(()=>B,":first-child");C.attr("class","basic label-container outer-path");let D=C.node().getBBox(),E=l.select(".annotation-group").node().getBBox().height-(r?h/2:0)||0,F=l.select(".label-group").node().getBBox().height-(r?h/2:0)||0,G=l.select(".members-group").node().getBBox().height-(r?h/2:0)||0,H=(E+F+z+h-(z-h-(r?h:0===c.members.length&&0===c.methods.length?-h/2:0)))/2;if(l.selectAll(".text").each((a,b,e)=>{let f=(0,i.select)(e[b]),g=f.attr("transform"),j=0;if(g){let a=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(g);a&&(j=parseFloat(a[2]))}let m=j+z+h-(r?h:0===c.members.length&&0===c.methods.length?-h/2:0);if(f.attr("class").includes("methods-group")){let a=Math.max(G,h/2);m=x?Math.max(H,E+F+a+z+2*h+h)+2*h:E+F+a+z+4*h+h}0===c.members.length&&0===c.methods.length&&d.class?.hideEmptyMembersBox&&(m=c.annotations.length>0?j-h:j),k||(m-=4);let n=y;(f.attr("class").includes("label-group")||f.attr("class").includes("annotation-group"))&&(n=-f.node()?.getBBox().width/2||0,l.selectAll("text").each(function(a,b,c){"middle"===window.getComputedStyle(c[b]).textAnchor&&(n=0)})),f.attr("transform",`translate(${n}, ${m})`)}),c.members.length>0||c.methods.length>0||r){let a=E+F+z+h,b=s.line(D.x,a,D.x+D.width,a+.001,t);l.insert(()=>b).attr("class",`divider${"neo"===c.look&&!g?" neo-line":""}`).attr("style",q)}if(r||c.members.length>0||c.methods.length>0){let a=E+F+G+z+2*h+h,b=s.line(D.x,x?Math.max(H,a):a,D.x+D.width,(x?Math.max(H,a):a)+.001,t);l.insert(()=>b).attr("class",`divider${"neo"===c.look&&!g?" neo-line":""}`).attr("style",q)}if("handDrawn"!==c.look&&l.selectAll("path").attr("style",q),C.select(":nth-child(2)").attr("style",q),l.selectAll(".divider").select("path").attr("style",q),c.labelStyle?l.selectAll("span").attr("style",c.labelStyle):l.selectAll("span").attr("style",q),!k){let a=RegExp(/color\s*:\s*([^;]*)/),b=a.exec(q);if(b){let a=b[0].replace("color","fill");l.selectAll("tspan").attr("style",a)}else if(n){let b=a.exec(n);if(b){let a=b[0].replace("color","fill");l.selectAll("tspan").attr("style",a)}}}return p(c,C),c.intersect=function(a){return v(c,a)},l}async function bj(a,c){let d,{labelStyles:e,nodeStyles:g}=(0,b.styles2String)(c);c.labelStyle=e;let h="verifyMethod"in c,k=q(c),l=(0,f.getConfig2)(),{themeVariables:m}=l,{borderColorArray:n,requirementEdgeLabelBackground:o}=m,r="elk"===l.layout?"start":"center",s=a.insert("g").attr("class",k).attr("id",c.domId??c.id),t=d=h?await bk(s,`<<${c.type}>>`,0,c.labelStyle):await bk(s,"<<Element>>",0,c.labelStyle),u=await bk(s,c.name,t,c.labelStyle+"; font-weight: bold;");if(t+=u+20,h){let a=await bk(s,`${c.requirementId?`ID: ${c.requirementId}`:""}`,t,c.labelStyle,r);t+=a;let b=await bk(s,`${c.text?`Text: ${c.text}`:""}`,t,c.labelStyle,r);t+=b;let d=await bk(s,`${c.risk?`Risk: ${c.risk}`:""}`,t,c.labelStyle,r);t+=d,await bk(s,`${c.verifyMethod?`Verification: ${c.verifyMethod}`:""}`,t,c.labelStyle,r)}else{let a=await bk(s,`${c.type?`Type: ${c.type}`:""}`,t,c.labelStyle,r);t+=a,await bk(s,`${c.docRef?`Doc Ref: ${c.docRef}`:""}`,t,c.labelStyle,r)}let w=(s.node()?.getBBox().width??200)+20,x=(s.node()?.getBBox().height??200)+20,y=-w/2,z=-x/2,A=j.default.svg(s),B=(0,b.userNodeOverrides)(c,{});"handDrawn"!==c.look&&(B.roughness=0,B.fillStyle="solid");let C=A.rectangle(y,z,w,x,B),D=s.insert(()=>C,":first-child");if(D.attr("class","basic label-container outer-path").attr("style",g),n?.length){let a=c.colorIndex??0;s.attr("data-color-id",`color-${a%n.length}`)}if(s.selectAll(".label").each((a,b,c)=>{let d=(0,i.select)(c[b]),e=d.attr("transform"),f=0,g=0;if(e){let a=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(e);a&&(f=parseFloat(a[1]),g=parseFloat(a[2]))}let h=g-x/2,j=y+10;(0===b||1===b)&&(j=f),d.attr("transform",`translate(${j}, ${h+20})`)}),t>d+u+20){let a,b=z+d+u+20;if("neo"===c.look){let c=[[y,b],[y+w,b],[y+w,b+.001],[y,b+.001]];a=A.polygon(c,B)}else a=A.line(y,b,y+w,b,B);s.insert(()=>a).attr("class","divider")}return p(c,D),c.intersect=function(a){return v(c,a)},g&&"handDrawn"!==c.look&&(o||n?.length)&&s.selectAll("path").attr("style",g),s}async function bk(a,b,d,g="",h="center"){let j;if(""===b)return 0;let k=a.insert("g").attr("class","label").attr("style",g),l=(0,f.getConfig2)(),m=l.htmlLabels??!0,n=await (0,c.createText)(k,(0,f.sanitizeText2)((0,e.decodeEntities)(b)),{width:(0,e.calculateTextWidth)(b,l)+50,classes:"markdown-node-label",useHtmlLabels:m,style:g},l);if(m){let a=n.children[0],b=(0,i.select)(n);"start"===h&&(0,i.select)(a).style("text-align","left"),j=a.getBoundingClientRect(),b.attr("width",j.width),b.attr("height",j.height)}else{let a=n.children[0];for(let b of a.children)g&&b.setAttribute("style",g);if("start"===h)for(let b of(a.setAttribute("text-anchor","start"),a.children))b.setAttribute("text-anchor","start");j=n.getBBox(),j.height+=6}return k.attr("transform",`translate(${-j.width/2},${-j.height/2+d})`),j.height}(0,h.__name)(bd,"erBox"),(0,h.__name)(be,"addText"),(0,h.__name)(bf,"lineToPolygon"),(0,h.__name)(bg,"textHelper"),(0,h.__name)(bh,"addText"),(0,h.__name)(bi,"classBox"),(0,h.__name)(bj,"requirementBox"),(0,h.__name)(bk,"addText");var bl=(0,h.__name)(a=>{switch(a){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 bm(a,c,{config:d}){let e,f,g,h,{labelStyles:i,nodeStyles:k}=(0,b.styles2String)(c);c.labelStyle=i||"";let l=c.width;c.width=(c.width??200)-10;let{shapeSvg:m,bbox:r,label:s}=await n(a,c,q(c)),t=c.padding||10,u="";"ticket"in c&&c.ticket&&d?.kanban?.ticketBaseUrl&&(u=d?.kanban?.ticketBaseUrl.replace("#TICKET#",c.ticket),e=m.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));let x={useHtmlLabels:c.useHtmlLabels,labelStyle:c.labelStyle||"",width:c.width,img:c.img,padding:c.padding||8,centerLabel:!1};e?{label:f,bbox:g}=await o(e,"ticket"in c&&c.ticket||"",x):{label:f,bbox:g}=await o(m,"ticket"in c&&c.ticket||"",x);let{label:y,bbox:z}=await o(m,"assigned"in c&&c.assigned||"",x);c.width=l;let A=c?.width||0,B=Math.max(g.height,z.height)/2,C=Math.max(r.height+20,c?.height||0)+B,D=-A/2,E=-C/2;s.attr("transform","translate("+(t-A/2)+", "+(-B-r.height/2)+")"),f.attr("transform","translate("+(t-A/2)+", "+(-B+r.height/2)+")"),y.attr("transform","translate("+(t+A/2-z.width-20)+", "+(-B+r.height/2)+")");let{rx:F,ry:G}=c,{cssStyles:H}=c;if("handDrawn"===c.look){let a=j.default.svg(m),d=(0,b.userNodeOverrides)(c,{}),e=F||G?a.path(w(D,E,A,C,F||0),d):a.rectangle(D,E,A,C,d);(h=m.insert(()=>e,":first-child")).attr("class","basic label-container").attr("style",H||null)}else{(h=m.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",k).attr("rx",F??5).attr("ry",G??5).attr("x",D).attr("y",E).attr("width",A).attr("height",C);let a="priority"in c&&c.priority;if(a){let b=m.append("line"),c=D+2,d=E+Math.floor((F??0)/2),e=E+C-Math.floor((F??0)/2);b.attr("x1",c).attr("y1",d).attr("x2",c).attr("y2",e).attr("stroke-width","4").attr("stroke",bl(a))}}return p(c,h),c.height=C,c.intersect=function(a){return v(c,a)},m}async function bn(a,c){let d,{labelStyles:f,nodeStyles:h}=(0,b.styles2String)(c);c.labelStyle=f;let{shapeSvg:i,bbox:k,halfPadding:l,label:m}=await n(a,c,q(c)),o=k.width+10*l,r=k.height+8*l,s=.15*o,{cssStyles:t}=c,u=k.width+20,w=k.height+20,x=Math.max(o,u),y=Math.max(r,w);m.attr("transform",`translate(${-k.width/2}, ${-k.height/2})`);let z=`M0 0
|
|
11
|
+
a${s},${s} 1 0,0 ${.25*x},${-1*y*.1}
|
|
12
|
+
a${s},${s} 1 0,0 ${.25*x},0
|
|
13
|
+
a${s},${s} 1 0,0 ${.25*x},0
|
|
14
|
+
a${s},${s} 1 0,0 ${.25*x},${.1*y}
|
|
15
|
+
|
|
16
|
+
a${s},${s} 1 0,0 ${.15*x},${.33*y}
|
|
17
|
+
a${.8*s},${.8*s} 1 0,0 0,${.34*y}
|
|
18
|
+
a${s},${s} 1 0,0 ${-1*x*.15},${.33*y}
|
|
19
|
+
|
|
20
|
+
a${s},${s} 1 0,0 ${-1*x*.25},${.15*y}
|
|
21
|
+
a${s},${s} 1 0,0 ${-1*x*.25},0
|
|
22
|
+
a${s},${s} 1 0,0 ${-1*x*.25},0
|
|
23
|
+
a${s},${s} 1 0,0 ${-1*x*.25},${-1*y*.15}
|
|
24
|
+
|
|
25
|
+
a${s},${s} 1 0,0 ${-1*x*.1},${-1*y*.33}
|
|
26
|
+
a${.8*s},${.8*s} 1 0,0 0,${-1*y*.34}
|
|
27
|
+
a${s},${s} 1 0,0 ${.1*x},${-1*y*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===c.look){let a=j.default.svg(i),f=(0,b.userNodeOverrides)(c,{}),g=a.path(z,f);(d=i.insert(()=>g,":first-child")).attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(t))}else d=i.insert("path",":first-child").attr("class","basic label-container").attr("style",h).attr("d",z);return d.attr("transform",`translate(${-x/2}, ${-y/2})`),p(c,d),c.calcIntersect=function(a,b){return v(a,b)},c.intersect=function(a){return g.log.info("Bang intersect",c,a),v(c,a)},i}async function bo(a,c){let d,{labelStyles:f,nodeStyles:h}=(0,b.styles2String)(c);c.labelStyle=f;let{shapeSvg:i,bbox:k,halfPadding:l,label:m}=await n(a,c,q(c)),o=k.width+2*l,r=k.height+2*l,s=.15*o,t=.25*o,u=.35*o,w=.2*o,{cssStyles:x}=c,y=`M0 0
|
|
29
|
+
a${s},${s} 0 0,1 ${.25*o},${-1*o*.1}
|
|
30
|
+
a${u},${u} 1 0,1 ${.4*o},${-1*o*.1}
|
|
31
|
+
a${t},${t} 1 0,1 ${.35*o},${.2*o}
|
|
32
|
+
|
|
33
|
+
a${s},${s} 1 0,1 ${.15*o},${.35*r}
|
|
34
|
+
a${w},${w} 1 0,1 ${-1*o*.15},${.65*r}
|
|
35
|
+
|
|
36
|
+
a${t},${s} 1 0,1 ${-1*o*.25},${.15*o}
|
|
37
|
+
a${u},${u} 1 0,1 ${-1*o*.5},0
|
|
38
|
+
a${s},${s} 1 0,1 ${-1*o*.25},${-1*o*.15}
|
|
39
|
+
|
|
40
|
+
a${s},${s} 1 0,1 ${-1*o*.1},${-1*r*.35}
|
|
41
|
+
a${w},${w} 1 0,1 ${.1*o},${-1*r*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===c.look){let a=j.default.svg(i),f=(0,b.userNodeOverrides)(c,{}),g=a.path(y,f);(d=i.insert(()=>g,":first-child")).attr("class","basic label-container").attr("style",(0,e.handleUndefinedAttr)(x))}else d=i.insert("path",":first-child").attr("class","basic label-container").attr("style",h).attr("d",y);return m.attr("transform",`translate(${-k.width/2}, ${-k.height/2})`),d.attr("transform",`translate(${-o/2}, ${-r/2})`),p(c,d),c.calcIntersect=function(a,b){return v(a,b)},c.intersect=function(a){return g.log.info("Cloud intersect",c,a),v(c,a)},i}async function bp(a,c){let{labelStyles:d,nodeStyles:e}=(0,b.styles2String)(c);c.labelStyle=d;let{shapeSvg:f,bbox:g,halfPadding:h,label:i}=await n(a,c,q(c)),j=g.width+8*h,k=g.height+2*h,l="neo"===c.look?`
|
|
43
|
+
M${-j/2} ${k/2-5}
|
|
44
|
+
v${-k+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${j-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${k-5}
|
|
49
|
+
H${-j/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-j/2} ${k/2-5}
|
|
53
|
+
v${-k+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${j-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${k-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(j-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!c.domId)throw Error(`defaultMindmapNode: node "${c.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let m=f.append("path").attr("id",c.domId).attr("class","node-bkg node-"+c.type).attr("style",e).attr("d",l);return f.append("line").attr("class","node-line-").attr("x1",-j/2).attr("y1",k/2).attr("x2",j/2).attr("y2",k/2),i.attr("transform",`translate(${-g.width/2}, ${-g.height/2})`),f.append(()=>i.node()),p(c,m),c.calcIntersect=function(a,b){return v(a,b)},c.intersect=function(a){return v(c,a)},f}async function bq(a,b){let c={padding:b.padding??0};return U(a,b,c)}(0,h.__name)(bm,"kanbanItem"),(0,h.__name)(bn,"bang"),(0,h.__name)(bo,"cloud"),(0,h.__name)(bp,"defaultMindmapNode"),(0,h.__name)(bq,"mindmapCircle");var br=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:aU},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:aR},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:aV},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:aZ},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ai},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ak},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:ap},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:H},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:W},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:R},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:ae},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:U},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:bn},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:bo},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:aO},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:at},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:aD},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:aC},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:a5},{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:aA},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:am},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:a0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:S},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:aS},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:aY},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:aX},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:aq},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:au},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:$},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:aa},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ac},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:aE},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:a8},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:ar},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:a4},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:aI},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ad},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:al},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:a7},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ba},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:an},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:a6},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ao},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:aT},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:aL},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:aK},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:G},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Y},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:a_},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:a$},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:a9},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:aP},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:aJ}],bs=(0,h.__name)(()=>Object.fromEntries([...Object.entries({state:aW,choice:T,note:aM,composite:V,rectWithTitle:aQ,labelRect:aB,block_arrow:Q,collapsedGroup:I,iconSquare:ay,iconCircle:aw,icon:av,iconRounded:ax,imageSquare:az,anchor:D,kanbanItem:bm,mindmapCircle:bq,defaultMindmapNode:bp,classBox:bi,erBox:bd,requirementBox:bj}),...br.flatMap(a=>[a.shortName,..."aliases"in a?a.aliases:[],..."internalAliases"in a?a.internalAliases:[]].map(b=>[b,a.handler]))]),"generateShapeMap")();function bt(a){return a in bs}(0,h.__name)(bt,"isValidShape"),a.s(["createLabel_default",0,x,"createRoundedRectPathD",0,w,"intersect_rect_default",0,v,"isValidShape",0,bt,"labelHelper",0,n,"shapes",0,bs,"updateNodeBounds",0,p])}];
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[887370,737645,945170,408571,701967,858008,632794,758434,193908,356983,905712,550118,48241,281235,963351,152245,99416,380265,575069,859378,38295,a=>{"use strict";var b,c=a.i(261234),d=a.i(875117),e=a.i(539110),f=a.i(670773);function g(a,b,c){a._context.bezierCurveTo((2*a._x0+a._x1)/3,(2*a._y0+a._y1)/3,(a._x0+2*a._x1)/3,(a._y0+2*a._y1)/3,(a._x0+4*a._x1+b)/6,(a._y0+4*a._y1+c)/6)}function h(a){this._context=a}function i(a){return new h(a)}function j(){}function k(a){this._context=a}function l(a){this._context=a}a.i(975930),h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:g(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:g(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}},a.s(["curveBasis",0,i],737645),k.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._x2=a,this._y2=b;break;case 1:this._point=2,this._x3=a,this._y3=b;break;case 2:this._point=3,this._x4=a,this._y4=b,this._context.moveTo((this._x0+4*this._x1+a)/6,(this._y0+4*this._y1+b)/6);break;default:g(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}},l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var c=(this._x0+4*this._x1+a)/6,d=(this._y0+4*this._y1+b)/6;this._line?this._context.lineTo(c,d):this._context.moveTo(c,d);break;case 3:this._point=4;default:g(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}};class m{constructor(a,b){this._context=a,this._x=b}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+a)/2,this._y0,this._x0,b,a,b):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+b)/2,a,this._y0,a,b)}this._x0=a,this._y0=b}}function n(a){return new m(a,!0)}function o(a){return new m(a,!1)}function p(a,b){this._basis=new h(a),this._beta=b}a.s(["curveBumpX",0,n],945170),a.s(["curveBumpY",0,o],408571),p.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var a=this._x,b=this._y,c=a.length-1;if(c>0)for(var d,e=a[0],f=b[0],g=a[c]-e,h=b[c]-f,i=-1;++i<=c;)d=i/c,this._basis.point(this._beta*a[i]+(1-this._beta)*(e+d*g),this._beta*b[i]+(1-this._beta)*(f+d*h));this._x=this._y=null,this._basis.lineEnd()},point:function(a,b){this._x.push(+a),this._y.push(+b)}};let q=function a(b){function c(a){return 1===b?new h(a):new p(a,b)}return c.beta=function(b){return a(+b)},c}(.85);function r(a,b,c){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-b),a._y2+a._k*(a._y1-c),a._x2,a._y2)}function s(a,b){this._context=a,this._k=(1-b)/6}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2,this._x1=a,this._y1=b;break;case 2:this._point=3;default:r(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let t=function a(b){function c(a){return new s(a,b)}return c.tension=function(b){return a(+b)},c}(0);function u(a,b){this._context=a,this._k=(1-b)/6}u.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:r(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let v=function a(b){function c(a){return new u(a,b)}return c.tension=function(b){return a(+b)},c}(0);function w(a,b){this._context=a,this._k=(1-b)/6}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:r(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let x=function a(b){function c(a){return new w(a,b)}return c.tension=function(b){return a(+b)},c}(0);a.s(["curveCardinal",0,t],701967);var y=a.i(630714);function z(a,b,c){var d=a._x1,e=a._y1,f=a._x2,g=a._y2;if(a._l01_a>y.epsilon){var h=2*a._l01_2a+3*a._l01_a*a._l12_a+a._l12_2a,i=3*a._l01_a*(a._l01_a+a._l12_a);d=(d*h-a._x0*a._l12_2a+a._x2*a._l01_2a)/i,e=(e*h-a._y0*a._l12_2a+a._y2*a._l01_2a)/i}if(a._l23_a>y.epsilon){var j=2*a._l23_2a+3*a._l23_a*a._l12_a+a._l12_2a,k=3*a._l23_a*(a._l23_a+a._l12_a);f=(f*j+a._x1*a._l23_2a-b*a._l12_2a)/k,g=(g*j+a._y1*a._l23_2a-c*a._l12_2a)/k}a._context.bezierCurveTo(d,e,f,g,a._x2,a._y2)}function A(a,b){this._context=a,this._alpha=b}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){if(a*=1,b*=1,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3;default:z(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let B=function a(b){function c(a){return b?new A(a,b):new s(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);function C(a,b){this._context=a,this._alpha=b}C.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(a,b){if(a*=1,b*=1,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:z(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let D=function a(b){function c(a){return b?new C(a,b):new u(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);function E(a,b){this._context=a,this._alpha=b}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){if(a*=1,b*=1,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:z(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};let F=function a(b){function c(a){return b?new E(a,b):new w(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);function G(a){this._context=a}function H(a){return new G(a)}function I(a){this._context=a}a.s(["curveCatmullRom",0,B],858008),G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:this._context.lineTo(a,b)}}},a.s(["default",0,H],632794),a.s(["curveLinear",0,H],758434),I.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(a,b){a*=1,b*=1,this._point?this._context.lineTo(a,b):(this._point=1,this._context.moveTo(a,b))}};function J(a,b,c){var d=a._x1-a._x0,e=b-a._x1,f=(a._y1-a._y0)/(d||e<0&&-0),g=(c-a._y1)/(e||d<0&&-0);return((f<0?-1:1)+(g<0?-1:1))*Math.min(Math.abs(f),Math.abs(g),.5*Math.abs((f*e+g*d)/(d+e)))||0}function K(a,b){var c=a._x1-a._x0;return c?(3*(a._y1-a._y0)/c-b)/2:b}function L(a,b,c){var d=a._x0,e=a._y0,f=a._x1,g=a._y1,h=(f-d)/3;a._context.bezierCurveTo(d+h,e+h*b,f-h,g-h*c,f,g)}function M(a){this._context=a}function N(a){this._context=new O(a)}function O(a){this._context=a}function P(a){return new M(a)}function Q(a){return new N(a)}function R(a){this._context=a}function S(a){var b,c,d=a.length-1,e=Array(d),f=Array(d),g=Array(d);for(e[0]=0,f[0]=2,g[0]=a[0]+2*a[1],b=1;b<d-1;++b)e[b]=1,f[b]=4,g[b]=4*a[b]+2*a[b+1];for(e[d-1]=2,f[d-1]=7,g[d-1]=8*a[d-1]+a[d],b=1;b<d;++b)c=e[b]/f[b-1],f[b]-=c,g[b]-=c*g[b-1];for(e[d-1]=g[d-1]/f[d-1],b=d-2;b>=0;--b)e[b]=(g[b]-e[b+1])/f[b];for(f[d-1]=(a[d]+e[d-1])/2,b=0;b<d-1;++b)f[b]=2*a[b+1]-e[b+1];return[e,f]}function T(a){return new R(a)}function U(a,b){this._context=a,this._t=b}function V(a){return new U(a,.5)}function W(a){return new U(a,0)}function X(a){return new U(a,1)}M.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:L(this,this._t0,K(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){var c=NaN;if(b*=1,(a*=1)!==this._x1||b!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3,L(this,K(this,c=J(this,a,b)),c);break;default:L(this,this._t0,c=J(this,a,b))}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b,this._t0=c}}},(N.prototype=Object.create(M.prototype)).point=function(a,b){M.prototype.point.call(this,b,a)},O.prototype={moveTo:function(a,b){this._context.moveTo(b,a)},closePath:function(){this._context.closePath()},lineTo:function(a,b){this._context.lineTo(b,a)},bezierCurveTo:function(a,b,c,d,e,f){this._context.bezierCurveTo(b,a,d,c,f,e)}},a.s(["curveMonotoneX",0,P],193908),a.s(["curveMonotoneY",0,Q],356983),R.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var a=this._x,b=this._y,c=a.length;if(c)if(this._line?this._context.lineTo(a[0],b[0]):this._context.moveTo(a[0],b[0]),2===c)this._context.lineTo(a[1],b[1]);else for(var d=S(a),e=S(b),f=0,g=1;g<c;++f,++g)this._context.bezierCurveTo(d[0][f],e[0][f],d[1][f],e[1][f],a[g],b[g]);(this._line||0!==this._line&&1===c)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(a,b){this._x.push(+a),this._y.push(+b)}},a.s(["curveNatural",0,T],905712),U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(a,b){switch(a*=1,b*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,b),this._context.lineTo(a,b);else{var c=this._x*(1-this._t)+a*this._t;this._context.lineTo(c,this._y),this._context.lineTo(c,b)}}this._x=a,this._y=b}},a.s(["curveStep",0,V],550118),a.s(["curveStepAfter",0,X],48241),a.s(["curveStepBefore",0,W],281235);var Y=a.i(671731);function Z(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw TypeError("Expected a function");let c=function(...d){let e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);let g=a.apply(this,d);return c.cache=f.set(e,g)||f,g};return c.cache=new(Z.Cache||Map),c}function $(){}function _(a){return null==a||"object"!=typeof a&&"function"!=typeof a}function aa(a){return ArrayBuffer.isView(a)&&!(a instanceof DataView)}function ab(a){return Object.getOwnPropertySymbols(a).filter(b=>Object.prototype.propertyIsEnumerable.call(a,b))}Z.Cache=Map,a.s(["isPrimitive",0,_],963351);let ac="object"==typeof globalThis&&globalThis||"object"==typeof self&&self||a.g||function(){return this}()||Function("return this")();function ad(a){return void 0!==ac.Buffer&&ac.Buffer.isBuffer(a)}function ae(a){if("object"!=typeof a||null==a)return!1;if(null===Object.getPrototypeOf(a))return!0;if("[object Object]"!==Object.prototype.toString.call(a)){let b=a[Symbol.toStringTag];return null!=b&&!!Object.getOwnPropertyDescriptor(a,Symbol.toStringTag)?.writable&&a.toString()===`[object ${b}]`}let b=a;for(;null!==Object.getPrototypeOf(b);)b=Object.getPrototypeOf(b);return Object.getPrototypeOf(a)===b}function af(a){return null==a?void 0===a?"[object Undefined]":"[object Null]":Object.prototype.toString.call(a)}a.s(["isBuffer",0,ad],152245),a.s(["getTag",0,af],99416);let ag="[object RegExp]",ah="[object String]",ai="[object Number]",aj="[object Boolean]",ak="[object Arguments]",al="[object Symbol]",am="[object Date]",an="[object Map]",ao="[object Set]",ap="[object Array]",aq="[object ArrayBuffer]",ar="[object Object]",as="[object DataView]",at="[object Uint8Array]",au="[object Uint8ClampedArray]",av="[object Uint16Array]",aw="[object Uint32Array]",ax="[object Int8Array]",ay="[object Int16Array]",az="[object Int32Array]",aA="[object Float32Array]",aB="[object Float64Array]";function aC(a,b,c,d=new Map,e){let f=e?.(a,b,c,d);if(void 0!==f)return f;if(_(a))return a;if(d.has(a))return d.get(a);if(Array.isArray(a)){let b=Array(a.length);d.set(a,b);for(let f=0;f<a.length;f++)b[f]=aC(a[f],f,c,d,e);return Object.hasOwn(a,"index")&&(b.index=a.index),Object.hasOwn(a,"input")&&(b.input=a.input),b}if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if(a instanceof Map){let b=new Map;for(let[f,g]of(d.set(a,b),a))b.set(f,aC(g,f,c,d,e));return b}if(a instanceof Set){let b=new Set;for(let f of(d.set(a,b),a))b.add(aC(f,void 0,c,d,e));return b}if(ad(a))return a.subarray();if(aa(a)){let b=new(Object.getPrototypeOf(a)).constructor(a.length);d.set(a,b);for(let f=0;f<a.length;f++)b[f]=aC(a[f],f,c,d,e);return b}if(a instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer)return a.slice(0);if(a instanceof DataView){let b=new DataView(a.buffer.slice(0),a.byteOffset,a.byteLength);return d.set(a,b),aD(b,a,c,d,e),b}if("u">typeof File&&a instanceof File){let b=new File([a],a.name,{type:a.type});return d.set(a,b),aD(b,a,c,d,e),b}if("u">typeof Blob&&a instanceof Blob){let b=new Blob([a],{type:a.type});return d.set(a,b),aD(b,a,c,d,e),b}if(a instanceof Error){let b=structuredClone(a);return d.set(a,b),b.message=a.message,b.name=a.name,b.stack=a.stack,b.cause=a.cause,b.constructor=a.constructor,aD(b,a,c,d,e),b}if(a instanceof Boolean){let b=new Boolean(a.valueOf());return d.set(a,b),aD(b,a,c,d,e),b}if(a instanceof Number){let b=new Number(a.valueOf());return d.set(a,b),aD(b,a,c,d,e),b}if(a instanceof String){let b=new String(a.valueOf());return d.set(a,b),aD(b,a,c,d,e),b}if("object"==typeof a&&function(a){switch(af(a)){case ak:case ap:case aq:case as:case aj:case am:case aA:case aB:case ax:case ay:case az:case an:case ai:case ar:case ag:case ao:case ah:case al:case at:case au:case av:case aw:return!0;default:return!1}}(a)){let b=Object.create(Object.getPrototypeOf(a));return d.set(a,b),aD(b,a,c,d,e),b}return a}function aD(a,b,c=a,d,e){let f=[...Object.keys(b),...ab(b)];for(let g=0;g<f.length;g++){let h=f[g],i=Object.getOwnPropertyDescriptor(a,h);(null==i||i.writable)&&(a[h]=aC(b[h],h,c,d,e))}}function aE(a){var b;return b=(b,c,d,e)=>{let f;if(void 0!==f)return f;if("object"==typeof a){if("[object Object]"===af(a)&&"function"!=typeof a.constructor){let b={};return e.set(a,b),aD(b,a,d,e),b}switch(Object.prototype.toString.call(a)){case ai:case ah:case aj:{let b=new a.constructor(a?.valueOf());return aD(b,a),b}case ak:{let b={};return aD(b,a),b.length=a.length,b[Symbol.iterator]=a[Symbol.iterator],b}default:return}}},aC(a,void 0,a,new Map,b)}function aF(a){return null!==a&&"object"==typeof a&&"[object Arguments]"===af(a)}function aG(a){return"object"==typeof a&&null!==a}function aH(a){var b;return null!=a&&"function"!=typeof a&&Number.isSafeInteger(b=a.length)&&b>=0}function aI(a){return aa(a)}a.s(["argumentsTag",0,ak,"arrayBufferTag",0,aq,"arrayTag",0,ap,"booleanTag",0,aj,"dataViewTag",0,as,"dateTag",0,am,"float32ArrayTag",0,aA,"float64ArrayTag",0,aB,"int16ArrayTag",0,ay,"int32ArrayTag",0,az,"int8ArrayTag",0,ax,"mapTag",0,an,"numberTag",0,ai,"objectTag",0,ar,"regexpTag",0,ag,"setTag",0,ao,"stringTag",0,ah,"symbolTag",0,al,"uint16ArrayTag",0,av,"uint32ArrayTag",0,aw,"uint8ArrayTag",0,at,"uint8ClampedArrayTag",0,au],380265),a.s(["isArguments",0,aF],575069),a.s(["isArrayLike",0,aH],859378),a.s(["isTypedArray",0,aI],38295);var aJ={curveBasis:i,curveBasisClosed:function(a){return new k(a)},curveBasisOpen:function(a){return new l(a)},curveBumpX:n,curveBumpY:o,curveBundle:q,curveCardinalClosed:v,curveCardinalOpen:x,curveCardinal:t,curveCatmullRomClosed:D,curveCatmullRomOpen:F,curveCatmullRom:B,curveLinear:H,curveLinearClosed:function(a){return new I(a)},curveMonotoneX:P,curveMonotoneY:Q,curveNatural:T,curveStep:V,curveStepAfter:X,curveStepBefore:W},aK=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,aL=(0,e.__name)(function(a,b){let d=aM(a,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(d)){let a=d.map(a=>a.args);(0,c.sanitizeDirective)(a),e=(0,c.assignWithDepth_default)(e,[...a])}else e=d.args;if(!e)return;let f=(0,c.detectType)(a,b),g="config";return void 0!==e[g]&&("flowchart-v2"===f&&(f="flowchart"),e[f]=e[g],delete e[g]),e},"detectInit"),aM=(0,e.__name)(function(a,b=null){try{let e,f=RegExp(`[%]{2}(?![{]${aK.source})(?=[}][%]{2}).*
|
|
2
|
+
`,"ig");a=a.trim().replace(f,"").replace(/'/gm,'"'),d.log.debug(`Detecting diagram directive${null!==b?" type:"+b:""} based on the text:${a}`);let g=[];for(;null!==(e=c.directiveRegex.exec(a));)if(e.index===c.directiveRegex.lastIndex&&c.directiveRegex.lastIndex++,e&&!b||b&&e[1]?.match(b)||b&&e[2]?.match(b)){let a=e[1]?e[1]:e[2],b=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;g.push({type:a,args:b})}if(0===g.length)return{type:a,args:null};return 1===g.length?g[0]:g}catch(c){return d.log.error(`ERROR: ${c.message} - Unable to parse directive type: '${b}' based on the text: '${a}'`),{type:void 0,args:null}}},"detectDirective"),aN=(0,e.__name)(function(a){return a.replace(c.directiveRegex,"")},"removeDirectives"),aO=(0,e.__name)(function(a,b){for(let[c,d]of b.entries())if(d.match(a))return c;return -1},"isSubstringInArray");function aP(a,b){return a?aJ[`curve${a.charAt(0).toUpperCase()+a.slice(1)}`]??b:b}function aQ(a,b){let c=a.trim();if(c)return"loose"!==b.securityLevel?(0,f.sanitizeUrl)(c):c}(0,e.__name)(aP,"interpolateToCurve"),(0,e.__name)(aQ,"formatUrl");var aR=(0,e.__name)((a,...b)=>{let c=a.split("."),e=c.length-1,f=c[e],g=window;for(let b=0;b<e;b++)if(!(g=g[c[b]]))return void d.log.error(`Function name: ${a} not found in window`);g[f](...b)},"runFunc");function aS(a,b){return a&&b?Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)):0}function aT(a){let b,c=0;return a.forEach(a=>{c+=aS(a,b),b=a}),aW(a,c/2)}function aU(a){return 1===a.length?a[0]:aT(a)}(0,e.__name)(aS,"distance"),(0,e.__name)(aT,"traverseEdge"),(0,e.__name)(aU,"calcLabelPosition");var aV=(0,e.__name)((a,b=2)=>{let c=Math.pow(10,b);return Math.round(a*c)/c},"roundNumber"),aW=(0,e.__name)((a,b)=>{let c,d=b;for(let b of a){if(c){let a=aS(b,c);if(0===a)return c;if(a<d)d-=a;else{let e=d/a;if(e<=0)return c;if(e>=1)return{x:b.x,y:b.y};if(e>0&&e<1)return{x:aV((1-e)*c.x+e*b.x,5),y:aV((1-e)*c.y+e*b.y,5)}}}c=b}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),aX=(0,e.__name)((a,b,c)=>{d.log.info(`our points ${JSON.stringify(b)}`),b[0]!==c&&(b=b.reverse());let e=aW(b,25),f=a?10:5,g=Math.atan2(b[0].y-e.y,b[0].x-e.x),h={x:0,y:0};return h.x=Math.sin(g)*f+(b[0].x+e.x)/2,h.y=-Math.cos(g)*f+(b[0].y+e.y)/2,h},"calcCardinalityPosition");function aY(a,b,c){let e=structuredClone(c);d.log.info("our points",e),"start_left"!==b&&"start_right"!==b&&e.reverse();let f=aW(e,25+a),g=10+.5*a,h=Math.atan2(e[0].y-f.y,e[0].x-f.x),i={x:0,y:0};return"start_left"===b?(i.x=Math.sin(h+Math.PI)*g+(e[0].x+f.x)/2,i.y=-Math.cos(h+Math.PI)*g+(e[0].y+f.y)/2):"end_right"===b?(i.x=Math.sin(h-Math.PI)*g+(e[0].x+f.x)/2-5,i.y=-Math.cos(h-Math.PI)*g+(e[0].y+f.y)/2-5):"end_left"===b?(i.x=Math.sin(h)*g+(e[0].x+f.x)/2-5,i.y=-Math.cos(h)*g+(e[0].y+f.y)/2-5):(i.x=Math.sin(h)*g+(e[0].x+f.x)/2,i.y=-Math.cos(h)*g+(e[0].y+f.y)/2),i}function aZ(a){let b="",c="";for(let d of a)void 0!==d&&(d.startsWith("color:")||d.startsWith("text-align:")?c=c+d+";":b=b+d+";");return{style:b,labelStyle:c}}(0,e.__name)(aY,"calcTerminalLabelPosition"),(0,e.__name)(aZ,"getStylesFromArray");var a$=0,a_=(0,e.__name)(()=>(a$++,"id-"+Math.random().toString(36).substr(2,12)+"-"+a$),"generateId");function a0(a){let b="",c="0123456789abcdef",d=c.length;for(let e=0;e<a;e++)b+=c.charAt(Math.floor(Math.random()*d));return b}(0,e.__name)(a0,"makeRandomHex");var a1=(0,e.__name)(a=>a0(a.length),"random"),a2=(0,e.__name)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),a3=(0,e.__name)(function(a,b){let d=b.text.replace(c.common_default.lineBreakRegex," "),[,e]=bd(b.fontSize),f=a.append("text");f.attr("x",b.x),f.attr("y",b.y),f.style("text-anchor",b.anchor),f.style("font-family",b.fontFamily),f.style("font-size",e),f.style("font-weight",b.fontWeight),f.attr("fill",b.fill),void 0!==b.class&&f.attr("class",b.class);let g=f.append("tspan");return g.attr("x",b.x+2*b.textMargin),g.attr("fill",b.fill),g.text(d),f},"drawSimpleText"),a4=Z((a,b,d)=>{if(!a||(d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},d),c.common_default.lineBreakRegex.test(a)))return a;let e=a.split(" ").filter(Boolean),f=[],g="";return e.forEach((a,c)=>{let h=a7(`${a} `,d),i=a7(g,d);if(h>b){let{hyphenatedStrings:c,remainingWord:e}=a5(a,b,"-",d);f.push(g,...c),g=e}else i+h>=b?(f.push(g),g=a):g=[g,a].filter(Boolean).join(" ");c+1===e.length&&f.push(g)}),f.filter(a=>""!==a).join(d.joinWith)},(a,b,c)=>`${a}${b}${c.fontSize}${c.fontWeight}${c.fontFamily}${c.joinWith}`),a5=Z((a,b,c="-",d)=>{d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},d);let e=[...a],f=[],g="";return e.forEach((a,h)=>{let i=`${g}${a}`;if(a7(i,d)>=b){let a=e.length===h+1,b=`${i}${c}`;f.push(a?i:b),g=""}else g=i}),{hyphenatedStrings:f,remainingWord:g}},(a,b,c="-",d)=>`${a}${b}${c}${d.fontSize}${d.fontWeight}${d.fontFamily}`);function a6(a,b){return a8(a,b).height}function a7(a,b){return a8(a,b).width}(0,e.__name)(a6,"calculateTextHeight"),(0,e.__name)(a7,"calculateTextWidth");var a8=Z((a,b)=>{let{fontSize:d=12,fontFamily:e="Arial",fontWeight:f=400}=b;if(!a)return{width:0,height:0};let[,g]=bd(d),h=a.split(c.common_default.lineBreakRegex),i=[],j=(0,Y.select)("body");if(!j.remove)return{width:0,height:0,lineHeight:0};let k=j.append("svg");for(let a of["sans-serif",e]){let b=0,c={width:0,height:0,lineHeight:0};for(let d of h){let e=a2();e.text=d||"";let h=a3(k,e).style("font-size",g).style("font-weight",f).style("font-family",a),i=(h._groups||h)[0][0].getBBox();if(0===i.width&&0===i.height)throw Error("svg element not in render tree");c.width=Math.round(Math.max(c.width,i.width)),b=Math.round(i.height),c.height+=b,c.lineHeight=Math.round(Math.max(c.lineHeight,b))}i.push(c)}k.remove();let l=isNaN(i[1].height)||isNaN(i[1].width)||isNaN(i[1].lineHeight)||i[0].height>i[1].height&&i[0].width>i[1].width&&i[0].lineHeight>i[1].lineHeight?0:1;return i[l]},(a,b)=>`${a}${b.fontSize}${b.fontWeight}${b.fontFamily}`),a9=class{constructor(a=!1,b){this.count=0,this.count=b?b.length:0,this.next=a?()=>this.count++:()=>Date.now()}static{(0,e.__name)(this,"InitIDGenerator")}},ba=(0,e.__name)(function(a){return b=b||document.createElement("div"),a=escape(a).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),b.innerHTML=a,unescape(b.textContent)},"entityDecode");function bb(a){return"str"in a}(0,e.__name)(bb,"isDetailedError");var bc=(0,e.__name)((a,b,c,d)=>{if(!d)return;let e=a.node()?.getBBox();e&&a.append("text").text(d).attr("text-anchor","middle").attr("x",e.x+e.width/2).attr("y",-c).attr("class",b)},"insertTitle"),bd=(0,e.__name)(a=>{if("number"==typeof a)return[a,a+"px"];let b=parseInt(a??"",10);return Number.isNaN(b)?[void 0,void 0]:a===String(b)?[b,a+"px"]:[b,a]},"parseFontSize");function be(a,b){return function(a,...b){return function(a,...b){let c=b.slice(0,-1),d=b[b.length-1],e=a;for(let a=0;a<c.length;a++)e=function a(b,c,d,e){if(_(b)&&(b=Object(b)),null==c||"object"!=typeof c)return b;if(e.has(c))return function(a){if(_(a))return a;if(Array.isArray(a)||aa(a)||a instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer)return a.slice(0);let b=Object.getPrototypeOf(a);if(null==b)return Object.assign(Object.create(b),a);let c=b.constructor;if(a instanceof Date||a instanceof Map||a instanceof Set)return new c(a);if(a instanceof RegExp){let b=new c(a);return b.lastIndex=a.lastIndex,b}if(a instanceof DataView)return new c(a.buffer.slice(0));if(a instanceof Error){let b;return(b=a instanceof AggregateError?new c(a.errors,a.message,{cause:a.cause}):new c(a.message,{cause:a.cause})).stack=a.stack,Object.assign(b,a),b}return"u">typeof File&&a instanceof File?new c([a],a.name,{type:a.type,lastModified:a.lastModified}):"object"==typeof a?Object.assign(Object.create(b),a):a}(e.get(c));if(e.set(c,b),Array.isArray(c)){c=c.slice();for(let a=0;a<c.length;a++)c[a]=c[a]??void 0}let f=[...Object.keys(c),...ab(c)];for(let h=0;h<f.length;h++){let i=f[h];if("__proto__"===i)continue;let j=c[i],k=b[i];if(aF(j)&&(j={...j}),aF(k)&&(k={...k}),ad(j)&&(j=aE(j)),Array.isArray(j))if(Array.isArray(k)){let a=[],b=Reflect.ownKeys(k);for(let c=0;c<b.length;c++){let d=b[c];a[d]=k[d]}k=a}else{var g;if(aG(g=k)&&aH(g)){let a=[];for(let b=0;b<k.length;b++)a[b]=k[b];k=a}else k=[]}let l=d(k,j,i,b,c,e);void 0!==l?b[i]=l:Array.isArray(j)||aG(k)&&aG(j)&&(ae(k)||ae(j)||aI(k)||aI(j))?b[i]=a(k,j,d,e):null==k&&ae(j)?b[i]=a({},j,d,e):null==k&&aI(j)?b[i]=aE(j):(void 0===k||void 0!==j)&&(b[i]=j)}return b}(e,c[a],d,new Map);return e}(a,...b,$)}({},a,b)}(0,e.__name)(be,"cleanAndMerge");var bf={assignWithDepth:c.assignWithDepth_default,wrapLabel:a4,calculateTextHeight:a6,calculateTextWidth:a7,calculateTextDimensions:a8,cleanAndMerge:be,detectInit:aL,detectDirective:aM,isSubstringInArray:aO,interpolateToCurve:aP,calcLabelPosition:aU,calcCardinalityPosition:aX,calcTerminalLabelPosition:aY,formatUrl:aQ,getStylesFromArray:aZ,generateId:a_,random:a1,runFunc:aR,entityDecode:ba,insertTitle:bc,isLabelCoordinateInPath:bk,parseFontSize:bd,InitIDGenerator:a9},bg=(0,e.__name)(function(a){let b=a;return(b=(b=b.replace(/style.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)})).replace(/classDef.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)})).replace(/#\w+;/g,function(a){let b=a.substring(1,a.length-1);return/^\+?\d+$/.test(b)?"fl°°"+b+"¶ß":"fl°"+b+"¶ß"})},"encodeEntities"),bh=(0,e.__name)(function(a){return a.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),bi=(0,e.__name)((a,b,{counter:c=0,prefix:d,suffix:e},f)=>f||`${d?`${d}_`:""}${a}_${b}_${c}${e?`_${e}`:""}`,"getEdgeId");function bj(a){return a??null}function bk(a,b){let c=Math.round(a.x),d=Math.round(a.y),e=b.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return e.includes(c.toString())||e.includes(d.toString())}(0,e.__name)(bj,"handleUndefinedAttr"),(0,e.__name)(bk,"isLabelCoordinateInPath"),a.s(["ZERO_WIDTH_SPACE",0,"","calculateTextDimensions",0,a8,"calculateTextHeight",0,a6,"calculateTextWidth",0,a7,"cleanAndMerge",0,be,"decodeEntities",0,bh,"encodeEntities",0,bg,"generateId",0,a_,"getEdgeId",0,bi,"getStylesFromArray",0,aZ,"handleUndefinedAttr",0,bj,"interpolateToCurve",0,aP,"isDetailedError",0,bb,"parseFontSize",0,bd,"random",0,a1,"removeDirectives",0,aN,"utils_default",0,bf,"wrapLabel",0,a4],887370)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js.map
|