@stigmer/server-slim 0.1.0
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/README.md +3 -0
- package/console/404.html +1 -0
- package/console/__next.__PAGE__.txt +54 -0
- package/console/__next._full.txt +71 -0
- package/console/__next._index.txt +62 -0
- package/console/__next._tree.txt +6 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
- package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
- package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
- package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
- package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
- package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
- package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
- package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
- package/console/_next/static/chunks/07twy5plc911w.js +1 -0
- package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
- package/console/_next/static/chunks/085db4op75mf5.js +1 -0
- package/console/_next/static/chunks/0923388wak11-.js +1 -0
- package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
- package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
- package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
- package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
- package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
- package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
- package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
- package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
- package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
- package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
- package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
- package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
- package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
- package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
- package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
- package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
- package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
- package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
- package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
- package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
- package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
- package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
- package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
- package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
- package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
- package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
- package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
- package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
- package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
- package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
- package/console/_next/static/chunks/0srualwd948m1.js +29 -0
- package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
- package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
- package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
- package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
- package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
- package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
- package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
- package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
- package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
- package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
- package/console/_next/static/chunks/1745jt9onokna.js +1 -0
- package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
- package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
- package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
- package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
- package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
- package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
- package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
- package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
- package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
- package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
- package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
- package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
- package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
- package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
- package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
- package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
- package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
- package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
- package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
- package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
- package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
- package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
- package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
- package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
- package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
- package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
- package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
- package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
- package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
- package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
- package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
- package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
- package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
- package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
- package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
- package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
- package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
- package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
- package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
- package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
- package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
- package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
- package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
- package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
- package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
- package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
- package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
- package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
- package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
- package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
- package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
- package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
- package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
- package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
- package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
- package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
- package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
- package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
- package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
- package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
- package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
- package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
- package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
- package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
- package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
- package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
- package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
- package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
- package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
- package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
- package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
- package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
- package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
- package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
- package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
- package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
- package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
- package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
- package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
- package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
- package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
- package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
- package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
- package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
- package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
- package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
- package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
- package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
- package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
- package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
- package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
- package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
- package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
- package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
- package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
- package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
- package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
- package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
- package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
- package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
- package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
- package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
- package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
- package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
- package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
- package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
- package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
- package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
- package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
- package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
- package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
- package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
- package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
- package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
- package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
- package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
- package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
- package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
- package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
- package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
- package/console/_next/static/chunks/3udubdawo7583.js +1 -0
- package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
- package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
- package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
- package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
- package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
- package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
- package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
- package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
- package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
- package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
- package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
- package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
- package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
- package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
- package/console/_not-found/__next._full.txt +73 -0
- package/console/_not-found/__next._index.txt +62 -0
- package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
- package/console/_not-found/__next._tree.txt +5 -0
- package/console/_not-found.html +1 -0
- package/console/_not-found.txt +73 -0
- package/console/apple-touch-icon-dark.png +0 -0
- package/console/apple-touch-icon-light.png +0 -0
- package/console/auth/callback/__next._full.txt +82 -0
- package/console/auth/callback/__next._index.txt +62 -0
- package/console/auth/callback/__next._tree.txt +8 -0
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
- package/console/auth/callback.html +1 -0
- package/console/auth/callback.txt +82 -0
- package/console/auth/oauth/callback/__next._full.txt +84 -0
- package/console/auth/oauth/callback/__next._index.txt +62 -0
- package/console/auth/oauth/callback/__next._tree.txt +9 -0
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
- package/console/auth/oauth/callback.html +1 -0
- package/console/auth/oauth/callback.txt +84 -0
- package/console/brand-avatar.png +0 -0
- package/console/chat/__placeholder__/__next._full.txt +80 -0
- package/console/chat/__placeholder__/__next._index.txt +62 -0
- package/console/chat/__placeholder__/__next._tree.txt +8 -0
- package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
- package/console/chat/__placeholder__.html +1 -0
- package/console/chat/__placeholder__.txt +80 -0
- package/console/connect/__placeholder__/__next._full.txt +79 -0
- package/console/connect/__placeholder__/__next._index.txt +62 -0
- package/console/connect/__placeholder__/__next._tree.txt +8 -0
- package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
- package/console/connect/__placeholder__.html +1 -0
- package/console/connect/__placeholder__.txt +79 -0
- package/console/conversations/__next._full.txt +79 -0
- package/console/conversations/__next._index.txt +62 -0
- package/console/conversations/__next._tree.txt +7 -0
- package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
- package/console/conversations/__placeholder__/__placeholder__.html +1 -0
- package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
- package/console/conversations.html +1 -0
- package/console/conversations.txt +79 -0
- package/console/dashboard/__next._full.txt +77 -0
- package/console/dashboard/__next._index.txt +62 -0
- package/console/dashboard/__next._tree.txt +7 -0
- package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
- package/console/dashboard.html +1 -0
- package/console/dashboard.txt +77 -0
- package/console/desktop/billing/__next._full.txt +82 -0
- package/console/desktop/billing/__next._index.txt +62 -0
- package/console/desktop/billing/__next._tree.txt +8 -0
- package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
- package/console/desktop/billing.html +1 -0
- package/console/desktop/billing.txt +82 -0
- package/console/embed.js +1 -0
- package/console/favicon-dark-16x16.png +0 -0
- package/console/favicon-dark-32x32.png +0 -0
- package/console/favicon-dark.ico +0 -0
- package/console/favicon-dark.svg +1 -0
- package/console/favicon-light-16x16.png +0 -0
- package/console/favicon-light-32x32.png +0 -0
- package/console/favicon-light.ico +0 -0
- package/console/favicon-light.svg +1 -0
- package/console/index.html +1 -0
- package/console/index.txt +71 -0
- package/console/invite/__placeholder__/__next._full.txt +80 -0
- package/console/invite/__placeholder__/__next._index.txt +62 -0
- package/console/invite/__placeholder__/__next._tree.txt +8 -0
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
- package/console/invite/__placeholder__.html +1 -0
- package/console/invite/__placeholder__.txt +80 -0
- package/console/library/__next._full.txt +89 -0
- package/console/library/__next._index.txt +62 -0
- package/console/library/__next._tree.txt +7 -0
- package/console/library/__next.library.__PAGE__.txt +74 -0
- package/console/library/agents/__next._full.txt +94 -0
- package/console/library/agents/__next._index.txt +62 -0
- package/console/library/agents/__next._tree.txt +8 -0
- package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
- package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/agents/new/__next._full.txt +99 -0
- package/console/library/agents/new/__next._index.txt +62 -0
- package/console/library/agents/new/__next._tree.txt +9 -0
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
- package/console/library/agents/new.html +1 -0
- package/console/library/agents/new.txt +99 -0
- package/console/library/agents.html +1 -0
- package/console/library/agents.txt +94 -0
- package/console/library/environments/__next._full.txt +95 -0
- package/console/library/environments/__next._index.txt +62 -0
- package/console/library/environments/__next._tree.txt +8 -0
- package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
- package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/environments/new/__next._full.txt +99 -0
- package/console/library/environments/new/__next._index.txt +62 -0
- package/console/library/environments/new/__next._tree.txt +9 -0
- package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
- package/console/library/environments/new.html +1 -0
- package/console/library/environments/new.txt +99 -0
- package/console/library/environments.html +1 -0
- package/console/library/environments.txt +95 -0
- package/console/library/files/__next._full.txt +94 -0
- package/console/library/files/__next._index.txt +62 -0
- package/console/library/files/__next._tree.txt +8 -0
- package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
- package/console/library/files.html +1 -0
- package/console/library/files.txt +94 -0
- package/console/library/plugins/__next._full.txt +94 -0
- package/console/library/plugins/__next._index.txt +62 -0
- package/console/library/plugins/__next._tree.txt +8 -0
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
- package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/plugins/upload/__next._full.txt +99 -0
- package/console/library/plugins/upload/__next._index.txt +62 -0
- package/console/library/plugins/upload/__next._tree.txt +9 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
- package/console/library/plugins/upload.html +1 -0
- package/console/library/plugins/upload.txt +99 -0
- package/console/library/plugins.html +1 -0
- package/console/library/plugins.txt +94 -0
- package/console/library/routines/__next._full.txt +94 -0
- package/console/library/routines/__next._index.txt +62 -0
- package/console/library/routines/__next._tree.txt +8 -0
- package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
- package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/routines/new/__next._full.txt +98 -0
- package/console/library/routines/new/__next._index.txt +62 -0
- package/console/library/routines/new/__next._tree.txt +9 -0
- package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
- package/console/library/routines/new.html +1 -0
- package/console/library/routines/new.txt +98 -0
- package/console/library/routines.html +1 -0
- package/console/library/routines.txt +94 -0
- package/console/library/skills/__next._full.txt +94 -0
- package/console/library/skills/__next._index.txt +62 -0
- package/console/library/skills/__next._tree.txt +8 -0
- package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
- package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/skills/new/__next._full.txt +98 -0
- package/console/library/skills/new/__next._index.txt +62 -0
- package/console/library/skills/new/__next._tree.txt +9 -0
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
- package/console/library/skills/new.html +1 -0
- package/console/library/skills/new.txt +98 -0
- package/console/library/skills.html +1 -0
- package/console/library/skills.txt +94 -0
- package/console/library.html +1 -0
- package/console/library.txt +89 -0
- package/console/login/__next._full.txt +81 -0
- package/console/login/__next._index.txt +62 -0
- package/console/login/__next._tree.txt +7 -0
- package/console/login/__next.login.__PAGE__.txt +66 -0
- package/console/login.html +1 -0
- package/console/login.txt +81 -0
- package/console/marketplace/__next._full.txt +81 -0
- package/console/marketplace/__next._index.txt +62 -0
- package/console/marketplace/__next._tree.txt +7 -0
- package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
- package/console/marketplace.html +1 -0
- package/console/marketplace.txt +81 -0
- package/console/models/__next._full.txt +77 -0
- package/console/models/__next._index.txt +62 -0
- package/console/models/__next._tree.txt +7 -0
- package/console/models/__next.models.__PAGE__.txt +62 -0
- package/console/models.html +1 -0
- package/console/models.txt +77 -0
- package/console/oauth/slack/callback/__next._full.txt +84 -0
- package/console/oauth/slack/callback/__next._index.txt +62 -0
- package/console/oauth/slack/callback/__next._tree.txt +9 -0
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
- package/console/oauth/slack/callback.html +1 -0
- package/console/oauth/slack/callback.txt +84 -0
- package/console/runs/__placeholder__/__next._full.txt +77 -0
- package/console/runs/__placeholder__/__next._index.txt +62 -0
- package/console/runs/__placeholder__/__next._tree.txt +8 -0
- package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
- package/console/runs/__placeholder__.html +1 -0
- package/console/runs/__placeholder__.txt +77 -0
- package/console/sessions/__placeholder__/__next._full.txt +77 -0
- package/console/sessions/__placeholder__/__next._index.txt +62 -0
- package/console/sessions/__placeholder__/__next._tree.txt +8 -0
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
- package/console/sessions/__placeholder__.html +1 -0
- package/console/sessions/__placeholder__.txt +77 -0
- package/console/settings/__next._full.txt +85 -0
- package/console/settings/__next._index.txt +62 -0
- package/console/settings/__next._tree.txt +7 -0
- package/console/settings/__next.settings.__PAGE__.txt +70 -0
- package/console/settings/access-history/__next._full.txt +87 -0
- package/console/settings/access-history/__next._index.txt +62 -0
- package/console/settings/access-history/__next._tree.txt +8 -0
- package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
- package/console/settings/access-history.html +1 -0
- package/console/settings/access-history.txt +87 -0
- package/console/settings/account-preferences/__next._full.txt +87 -0
- package/console/settings/account-preferences/__next._index.txt +62 -0
- package/console/settings/account-preferences/__next._tree.txt +8 -0
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
- package/console/settings/account-preferences.html +1 -0
- package/console/settings/account-preferences.txt +87 -0
- package/console/settings/api-keys/__next._full.txt +86 -0
- package/console/settings/api-keys/__next._index.txt +62 -0
- package/console/settings/api-keys/__next._tree.txt +8 -0
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
- package/console/settings/api-keys.html +1 -0
- package/console/settings/api-keys.txt +86 -0
- package/console/settings/billing/__next._full.txt +89 -0
- package/console/settings/billing/__next._index.txt +62 -0
- package/console/settings/billing/__next._tree.txt +8 -0
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
- package/console/settings/billing.html +1 -0
- package/console/settings/billing.txt +89 -0
- package/console/settings/channel-apps/__next._full.txt +87 -0
- package/console/settings/channel-apps/__next._index.txt +62 -0
- package/console/settings/channel-apps/__next._tree.txt +8 -0
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
- package/console/settings/channel-apps.html +1 -0
- package/console/settings/channel-apps.txt +87 -0
- package/console/settings/federation-issuers/__next._full.txt +88 -0
- package/console/settings/federation-issuers/__next._index.txt +62 -0
- package/console/settings/federation-issuers/__next._tree.txt +8 -0
- package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
- package/console/settings/federation-issuers.html +1 -0
- package/console/settings/federation-issuers.txt +88 -0
- package/console/settings/invitations/__next._full.txt +87 -0
- package/console/settings/invitations/__next._index.txt +62 -0
- package/console/settings/invitations/__next._tree.txt +8 -0
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
- package/console/settings/invitations.html +1 -0
- package/console/settings/invitations.txt +87 -0
- package/console/settings/licenses/__next._full.txt +90 -0
- package/console/settings/licenses/__next._index.txt +62 -0
- package/console/settings/licenses/__next._tree.txt +8 -0
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
- package/console/settings/licenses.html +1 -0
- package/console/settings/licenses.txt +90 -0
- package/console/settings/members/__next._full.txt +86 -0
- package/console/settings/members/__next._index.txt +62 -0
- package/console/settings/members/__next._tree.txt +8 -0
- package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
- package/console/settings/members.html +1 -0
- package/console/settings/members.txt +86 -0
- package/console/settings/memory/__next._full.txt +86 -0
- package/console/settings/memory/__next._index.txt +62 -0
- package/console/settings/memory/__next._tree.txt +8 -0
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
- package/console/settings/memory.html +1 -0
- package/console/settings/memory.txt +86 -0
- package/console/settings/model-catalog/__next._full.txt +89 -0
- package/console/settings/model-catalog/__next._index.txt +62 -0
- package/console/settings/model-catalog/__next._tree.txt +8 -0
- package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
- package/console/settings/model-catalog.html +1 -0
- package/console/settings/model-catalog.txt +89 -0
- package/console/settings/notifications/__next._full.txt +89 -0
- package/console/settings/notifications/__next._index.txt +62 -0
- package/console/settings/notifications/__next._tree.txt +8 -0
- package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
- package/console/settings/notifications.html +1 -0
- package/console/settings/notifications.txt +89 -0
- package/console/settings/oauth-apps/__next._full.txt +87 -0
- package/console/settings/oauth-apps/__next._index.txt +62 -0
- package/console/settings/oauth-apps/__next._tree.txt +8 -0
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
- package/console/settings/oauth-apps.html +1 -0
- package/console/settings/oauth-apps.txt +87 -0
- package/console/settings/org-embedding/__next._full.txt +87 -0
- package/console/settings/org-embedding/__next._index.txt +62 -0
- package/console/settings/org-embedding/__next._tree.txt +8 -0
- package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
- package/console/settings/org-embedding.html +1 -0
- package/console/settings/org-embedding.txt +87 -0
- package/console/settings/org-policies/__next._full.txt +87 -0
- package/console/settings/org-policies/__next._index.txt +62 -0
- package/console/settings/org-policies/__next._tree.txt +8 -0
- package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
- package/console/settings/org-policies.html +1 -0
- package/console/settings/org-policies.txt +87 -0
- package/console/settings/org-preferences/__next._full.txt +87 -0
- package/console/settings/org-preferences/__next._index.txt +62 -0
- package/console/settings/org-preferences/__next._tree.txt +8 -0
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
- package/console/settings/org-preferences.html +1 -0
- package/console/settings/org-preferences.txt +87 -0
- package/console/settings/org-profile/__next._full.txt +89 -0
- package/console/settings/org-profile/__next._index.txt +62 -0
- package/console/settings/org-profile/__next._tree.txt +8 -0
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
- package/console/settings/org-profile.html +1 -0
- package/console/settings/org-profile.txt +89 -0
- package/console/settings/plans/__next._full.txt +89 -0
- package/console/settings/plans/__next._index.txt +62 -0
- package/console/settings/plans/__next._tree.txt +8 -0
- package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
- package/console/settings/plans.html +1 -0
- package/console/settings/plans.txt +89 -0
- package/console/settings/service-accounts/__next._full.txt +87 -0
- package/console/settings/service-accounts/__next._index.txt +62 -0
- package/console/settings/service-accounts/__next._tree.txt +8 -0
- package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
- package/console/settings/service-accounts.html +1 -0
- package/console/settings/service-accounts.txt +87 -0
- package/console/settings/teams/__next._full.txt +86 -0
- package/console/settings/teams/__next._index.txt +62 -0
- package/console/settings/teams/__next._tree.txt +8 -0
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
- package/console/settings/teams.html +1 -0
- package/console/settings/teams.txt +86 -0
- package/console/settings/usage/__next._full.txt +86 -0
- package/console/settings/usage/__next._index.txt +62 -0
- package/console/settings/usage/__next._tree.txt +8 -0
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
- package/console/settings/usage.html +1 -0
- package/console/settings/usage.txt +86 -0
- package/console/settings/vaults/__next._full.txt +86 -0
- package/console/settings/vaults/__next._index.txt +62 -0
- package/console/settings/vaults/__next._tree.txt +8 -0
- package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
- package/console/settings/vaults.html +1 -0
- package/console/settings/vaults.txt +86 -0
- package/console/settings.html +1 -0
- package/console/settings.txt +85 -0
- package/main.js +1656 -0
- package/mappings.wasm +0 -0
- package/package.json +25 -0
- package/workflow-bundle-agent-execution.js +29297 -0
- package/workflow-bundle-evals.js +11997 -0
- package/workflow-bundle-grading.js +11155 -0
- package/workflow-bundle-routine.js +11300 -0
- package/workflow-worker-thread.cjs +111 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,643531,e=>{"use strict";var t=e.i(678745);e.s(["f",()=>t.f])},385663,928240,182990,e=>{"use strict";let t=(0,e.i(475254).f)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);e.s(["f",0,t],385663);let s=/\{\{\s*[A-Za-z0-9_]+\s*\}\}/g;e.s(["B",0,function(e){let t=[],r=0;for(let a of e.matchAll(s))a.index>r&&t.push({kind:"text",value:e.slice(r,a.index)}),t.push({kind:"placeholder",value:a[0]}),r=a.index+a[0].length;return r<e.length&&t.push({kind:"text",value:e.slice(r)}),t},"p",0,function(e){switch(e){case"APPROVED":return"ready";case"PENDING":case"IN_APPEAL":return"pending";case"PAUSED":case"LIMIT_EXCEEDED":return"degraded";case"REJECTED":case"DISABLED":return"failed";case"PENDING_DELETION":case"DELETED":return"disabled";default:return"draft"}}],928240);var r=e.i(651023),a=e.i(891287),i=e.i(330428),n=e.i(255817),l=e.i(616701);e.s(["f",0,function(e,t,s){let c=(0,n.f)(),o=s?.approvedOnly??!1,[u,d]=(0,r.useState)(!1),h=e&&t?async()=>(await c.channel.listTemplates((0,a.f)(i.R,{channel:e,org:t,approvedOnly:o}))).entries:null,{data:f,isLoading:m,isRefetching:p,error:g,refetch:x}=(0,l.f)(h,[e,t,o,c],[],{refetchInterval:u}),y=f.some(e=>"PENDING"===e.status);return(0,r.useEffect)(()=>{d(!!y&&6e4)},[y]),{templates:f,isLoading:m,isRefetching:p,error:g,refetch:x}}],182990)},543727,914118,582688,e=>{"use strict";var t=e.i(974265);function s({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5.04 15.17a2.52 2.52 0 1 1-2.52-2.52h2.52v2.52zM6.31 15.17a2.52 2.52 0 0 1 5.04 0v6.31a2.52 2.52 0 1 1-5.04 0v-6.31zM8.83 5.04a2.52 2.52 0 1 1 2.52-2.52v2.52H8.83zM8.83 6.31a2.52 2.52 0 0 1 0 5.04H2.52a2.52 2.52 0 1 1 0-5.04h6.31zM18.96 8.83a2.52 2.52 0 1 1 2.52 2.52h-2.52V8.83zM17.69 8.83a2.52 2.52 0 0 1-5.04 0V2.52a2.52 2.52 0 1 1 5.04 0v6.31zM15.17 18.96a2.52 2.52 0 1 1-2.52 2.52v-2.52h2.52zM15.17 17.69a2.52 2.52 0 0 1 0-5.04h6.31a2.52 2.52 0 1 1 0 5.04h-6.31z"})})}function r({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"})})}e.s(["f",0,s],914118),e.s(["f",0,r],582688);let a=[{id:"slack",label:"Slack",Icon:s,installStyle:"redirect",supportsMessageTemplates:!1,supportsStaffReplies:!1,timelineIncludesCustomerMessages:!1},{id:"whatsapp",label:"WhatsApp",Icon:r,installStyle:"direct",supportsMessageTemplates:!0,supportsStaffReplies:!0,timelineIncludesCustomerMessages:!0}];e.s(["V",0,a,"P",0,function(e){return"cloud"===e},"T",0,function(e){return a.find(t=>t.id===e)??null}],543727)},752930,e=>{"use strict";var t=e.i(891287),s=e.i(500343),r=e.i(255817),a=e.i(766330),i=e.i(616701);e.s(["f",0,function(e){let n=(0,r.f)(),l=e?()=>(0,a.a)(r=>n.channel.list((0,t.f)(s.G,{org:e,pageSize:a.J,pageToken:r}))):null,{data:c,isLoading:o,isRefetching:u,error:d,refetch:h}=(0,i.f)(l,[e,n],[]);return{channels:c,isLoading:o,isRefetching:u,error:d,refetch:h}}])},311015,e=>{"use strict";var t=e.i(974265),s=e.i(893976),r=e.i(65642),a=e.i(651023),i=e.i(475254);let n=(0,i.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),l=(0,i.f)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),c=(0,i.f)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var o=e.i(63209);let u="stg:h-10 stg:w-10";e.s(["f",0,function({variant:e,resourceLabel:i,icon:d,title:h,description:f,errorMessage:m,action:p,children:g,className:x}){let y=function(e){let{variant:t,resourceLabel:s="resources",title:r,description:i,errorMessage:d}=e;return(0,a.useMemo)(()=>{let e=function(e,t){switch(e){case"first-use":return{title:`No ${t} yet`,description:`Create ${"agents"===t?"an agent":`a ${t.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${t}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(t,s);return{title:r??e.title,description:"error"===t&&d?d:i??e.description,defaultIcon:function(e){switch(e){case"first-use":return(0,a.createElement)(n,{className:u});case"zero-results":return(0,a.createElement)(l,{className:u});case"permission":return(0,a.createElement)(c,{className:u});case"error":return(0,a.createElement)(o.f,{className:u})}}(t),role:"error"===t?"alert":"status"}},[t,s,r,i,d])}({variant:e,resourceLabel:i,title:h,description:f,errorMessage:m});return(0,t.jsxs)("div",{role:y.role,className:(0,s.f)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",x),children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground-faint",children:d??y.defaultIcon}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-medium stg:text-muted-foreground",children:y.title}),(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-sm stg:text-xs stg:text-muted-foreground",children:y.description})]}),g?(0,t.jsx)("div",{className:"stg:mt-1",children:g}):p&&(0,t.jsx)(r.f,{variant:"error"===e?"outline":"primary",icon:p.icon,onClick:p.onClick,className:"stg:mt-1",children:p.label})]})}],311015)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,443578,t=>{"use strict";var e=t.i(908381),i=t.i(171206),r=(0,i.p)((t,r,o,d)=>{t.attr("class",o);let{width:n,height:u,x:c,y:l}=a(t,r);(0,e.m)(t,u,n,d);let g=s(c,l,n,u,r);t.attr("viewBox",g),i.d.debug(`viewBox configured: ${g} with padding: ${r}`)},"setupViewPortForSVG"),a=(0,i.p)((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=(0,i.p)((t,e,i,r,a)=>`${t-a} ${e-a} ${i} ${r}`,"createViewBox");t.s(["f",0,r])},707510,t=>{"use strict";var e=t.i(171206);t.i(947716);var i=t.i(723685),r=(0,e.p)((t,e)=>{let r;return"sandbox"===e&&(r=(0,i.f)("#i"+t)),("sandbox"===e?(0,i.f)(r.nodes()[0].contentDocument.body):(0,i.f)("body")).select(`[id="${t}"]`)},"getDiagramElement");t.s(["f",0,r])},20981,t=>{"use strict";var e=t.i(547902);t.i(707510),t.i(443578),t.i(233755),t.i(95547),t.i(609003),t.i(347578),t.i(136013),t.i(620144),t.i(864421),t.i(669587),t.i(908381);var i=t.i(171206),r={parser:e.g,get db(){return new e.t(2)},renderer:e.u,styles:e.v,init:(0,i.p)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};t.s(["diagram",0,r])}]);
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,179007,t=>{"use strict";var e=t.i(960948),a=t.i(621501),r=t.i(857387),i=t.i(669587),s=t.i(908381),n=t.i(171206);t.i(947716);var o=t.i(723685),c=t.i(139941),l=function(){var t=(0,n.p)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],o=[1,11],c=[1,12],l=[1,14],d=[1,15],h=[1,17],p=[1,18],E=[1,19],T=[1,25],g=[1,26],u=[1,27],O=[1,28],y=[1,29],_=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],L=[1,36],R=[1,37],P=[1,38],N=[1,39],w=[1,40],S=[1,42],D=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Y=[1,74],B=[1,80],$=[1,81],V=[1,82],W=[1,83],F=[1,84],K=[1,85],q=[1,86],z=[1,87],H=[1,88],U=[1,89],j=[1,90],X=[1,91],G=[1,92],J=[1,93],Z=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[2,78],th=[4,5,17,51,53,54],tp=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tT=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],tu=[5,52],tO=[70,71,72,73],ty=[1,151],t_={trace:(0,n.p)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,n.p)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:this.$={type:"addParticipant",actor:s[o]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},t(v,[2,5]),{9:48,13:13,14:l,15:d,18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,15]),{13:49,51:P,53:N,54:w},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:C},{23:56,73:C},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(v,[2,30]),t(v,[2,31]),{33:[1,62]},{35:[1,63]},t(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Y},{23:75,55:76,73:Y},{23:77,73:C},{69:78,72:[1,79],78:B,79:$,80:V,81:W,82:F,83:K,84:q,85:z,86:H,87:U,88:j,89:X,90:G,91:J,92:Z,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:C},{23:111,73:C},{23:112,73:C},{23:113,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],td),t(v,[2,6]),t(v,[2,16]),t(th,[2,10],{11:114}),t(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(v,[2,22]),{5:[1,118]},{5:[1,119]},t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,32]),t(v,[2,33]),t(tp,i,{7:120}),t(tp,i,{7:121}),t(tp,i,{7:122}),t(tE,i,{41:123,7:124}),t(tT,i,{43:125,7:126}),t(tT,i,{7:126,43:127}),t(tg,i,{46:128,7:129}),t(tp,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(tu,td,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:C},{69:146,78:B,79:$,80:V,81:W,82:F,83:K,84:q,85:z,86:H,87:U,88:j,89:X,90:G,91:J,92:Z,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},t(tO,[2,79]),t(tO,[2,80]),t(tO,[2,81]),t(tO,[2,82]),t(tO,[2,83]),t(tO,[2,84]),t(tO,[2,85]),t(tO,[2,86]),t(tO,[2,87]),t(tO,[2,88]),t(tO,[2,89]),t(tO,[2,90]),t(tO,[2,91]),t(tO,[2,92]),t(tO,[2,93]),t(tO,[2,94]),t(tO,[2,95]),t(tO,[2,96]),t(tO,[2,97]),t(tO,[2,98]),t(tO,[2,99]),t(tO,[2,100]),t(tO,[2,101]),t(tO,[2,102]),t(tO,[2,103]),t(tO,[2,104]),{23:147,73:C},{23:149,60:148,73:C},{73:[2,68]},{73:[2,69]},{58:150,104:ty},{58:152,104:ty},{58:153,104:ty},{58:154,104:ty},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:P,53:N,54:w},{5:[1,160]},t(v,[2,20]),t(v,[2,21]),t(v,[2,23]),t(v,[2,24]),{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,161],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{17:[1,164]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,50:[1,165],51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{17:[1,166]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,49:[1,167],51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{17:[1,168]},{17:[1,169]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,48:[1,170],51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,171],18:16,19:h,22:p,23:41,24:E,25:20,26:21,27:22,28:23,29:24,30:T,31:g,32:u,34:O,36:y,37:_,38:x,39:b,40:m,42:I,44:f,45:L,47:R,51:P,53:N,54:w,56:S,61:D,62:A,63:k,64:M,73:C},{16:[1,172]},t(v,[2,50]),{16:[1,173]},t(v,[2,55]),t(tu,[2,76]),{76:[1,174]},{16:[1,175]},t(v,[2,52]),{16:[1,176]},t(v,[2,57]),t(v,[2,53]),{23:177,73:C},{23:178,73:C},{23:179,73:C},{58:180,104:ty},{23:181,72:[1,182],73:C},{58:183,104:ty},{58:184,104:ty},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(v,[2,17]),t(th,[2,11]),{13:186,51:P,53:N,54:w},t(th,[2,13]),t(th,[2,14]),t(v,[2,19]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),{16:[1,187]},t(v,[2,39]),{16:[1,188]},t(v,[2,40]),t(v,[2,41]),{16:[1,189]},t(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ty},{58:196,104:ty},{58:197,104:ty},{5:[2,75]},{58:198,104:ty},{23:199,73:C},{5:[2,58]},{5:[2,59]},{23:200,73:C},t(th,[2,12]),t(tE,i,{7:124,41:201}),t(tT,i,{7:126,43:202}),t(tg,i,{7:129,46:203}),t(v,[2,49]),t(v,[2,54]),t(tu,[2,77]),t(v,[2,51]),t(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ty},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,n.p)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,n.p)(function(t){var e=this,a=[0],r=[],i=[null],s=[],o=this.table,c="",l=0,d=0,h=0,p=s.slice.call(arguments,1),E=Object.create(this.lexer),T={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(T[g]=this.yy[g]);E.setInput(t,T),T.lexer=E,T.parser=this,void 0===E.yylloc&&(E.yylloc={});var u=E.yylloc;s.push(u);var O=E.options&&E.options.ranges;function y(){var t;return"number"!=typeof(t=r.pop()||E.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof T.parseError?this.parseError=T.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,n.p)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,n.p)(y,"lex");for(var _,x,b,m,I,f,L,R,P,N={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==_&&(_=y()),m=o[b]&&o[b][_]),void 0===m||!m.length||!m[0]){var w="";for(f in P=[],o[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");w=E.showPosition?"Parse error on line "+(l+1)+":\n"+E.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(w,{text:E.match,token:this.terminals_[_]||_,line:E.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+_);switch(m[0]){case 1:a.push(_),i.push(E.yytext),s.push(E.yylloc),a.push(m[1]),_=null,x?(_=x,x=null):(d=E.yyleng,c=E.yytext,l=E.yylineno,u=E.yylloc,h>0&&h--);break;case 2:if(L=this.productions_[m[1]][1],N.$=i[i.length-L],N._$={first_line:s[s.length-(L||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(L||1)].first_column,last_column:s[s.length-1].last_column},O&&(N._$.range=[s[s.length-(L||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(N,[c,d,l,T,m[1],i,s].concat(p))))return I;L&&(a=a.slice(0,-1*L*2),i=i.slice(0,-1*L),s=s.slice(0,-1*L)),a.push(this.productions_[m[1]][0]),i.push(N.$),s.push(N._$),R=o[a[a.length-2]][a[a.length-1]],a.push(R);break;case 3:return!0}}return!0},"parse")};function tx(){this.yy={}}return t_.lexer={EOF:1,parseError:(0,n.p)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,n.p)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,n.p)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,n.p)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,n.p)(function(){return this._more=!0,this},"more"),reject:(0,n.p)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,n.p)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,n.p)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,n.p)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,n.p)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,n.p)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,n.p)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,n.p)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,n.p)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,n.p)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,n.p)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,n.p)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,n.p)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,n.p)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,n.p)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,n.p)(tx,"Parser"),tx.prototype=t_,t_.Parser=tx,new tx}();l.parser=l;var d={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},h={FILLED:0,OPEN:1},p={LEFTOF:0,RIGHTOF:1,OVER:2},E=class{constructor(){this.state=new r.f(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=s.b,this.setAccDescription=s.C,this.setDiagramTitle=s.a,this.getAccTitle=s.d,this.getAccDescription=s.j,this.getDiagramTitle=s.F,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,s.z)().wrap),this.LINETYPE=d,this.ARROWTYPE=h,this.PLACEMENT=p}static{(0,n.p)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,a,r,i,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,e.z)(t,{schema:e.Q})}i=n?.type??i,n?.alias&&(!r||r.text===a)&&(r={text:n.alias,wrap:r?.wrap,type:i});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&a===c.name&&null==r)return}if(r?.text==null&&(r={text:a,type:i}),(null==i||null==r.text)&&(r={text:a,type:i}),this.state.records.actors.set(t,{box:o,name:a,description:r.text,wrap:r.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,s.z)().sequence?.wrap??!1}clear(){this.state.reset(),(0,s.M)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return n.d.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:n}=this.extractWrap(r);return{text:n?(0,s.w)(n,(0,s.z)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,s.w)(e.text,(0,s.z)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){n.d.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,s.w)(e.text,(0,s.z)()),i=r.indexOf("@"),n=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),o=r.slice(i+1).trim();t[n]=o,this.insertLinks(a,t)}catch(t){n.d.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,s.w)(e.text,(0,s.z)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){n.d.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){n.d.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,s.b)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,s.z)().sequence}},T=(0,n.p)(t=>{let e=t.dropShadow??"none",{look:a}=(0,s.z)();return`.actor {
|
|
2
|
+
stroke: ${t.actorBorder};
|
|
3
|
+
fill: ${t.actorBkg};
|
|
4
|
+
stroke-width: ${t.strokeWidth??1};
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
rect.actor.outer-path[data-look="neo"] {
|
|
8
|
+
filter: ${e};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
rect.note[data-look="neo"] {
|
|
12
|
+
stroke:${t.noteBorderColor};
|
|
13
|
+
fill:${t.noteBkgColor};
|
|
14
|
+
filter: ${e};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
text.actor > tspan {
|
|
18
|
+
fill: ${t.actorTextColor};
|
|
19
|
+
stroke: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.actor-line {
|
|
23
|
+
stroke: ${t.actorLineColor};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.innerArc {
|
|
27
|
+
stroke-width: 1.5;
|
|
28
|
+
stroke-dasharray: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.messageLine0 {
|
|
32
|
+
stroke-width: 1.5;
|
|
33
|
+
stroke-dasharray: none;
|
|
34
|
+
stroke: ${t.signalColor};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.messageLine1 {
|
|
38
|
+
stroke-width: 1.5;
|
|
39
|
+
stroke-dasharray: 2, 2;
|
|
40
|
+
stroke: ${t.signalColor};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[id$="-arrowhead"] path {
|
|
44
|
+
fill: ${t.signalColor};
|
|
45
|
+
stroke: ${t.signalColor};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sequenceNumber {
|
|
49
|
+
fill: ${t.sequenceNumberColor};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[id$="-sequencenumber"] {
|
|
53
|
+
fill: ${t.signalColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[id$="-crosshead"] path {
|
|
57
|
+
fill: ${t.signalColor};
|
|
58
|
+
stroke: ${t.signalColor};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.messageText {
|
|
62
|
+
fill: ${t.signalTextColor};
|
|
63
|
+
stroke: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.labelBox {
|
|
67
|
+
stroke: ${t.labelBoxBorderColor};
|
|
68
|
+
fill: ${t.labelBoxBkgColor};
|
|
69
|
+
filter: ${"neo"===a?e:"none"};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.labelText, .labelText > tspan {
|
|
73
|
+
fill: ${t.labelTextColor};
|
|
74
|
+
stroke: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.loopText, .loopText > tspan {
|
|
78
|
+
fill: ${t.loopTextColor};
|
|
79
|
+
stroke: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sectionTitle, .sectionTitle > tspan {
|
|
83
|
+
fill: ${t.loopTextColor};
|
|
84
|
+
stroke: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.loopLine {
|
|
88
|
+
stroke-width: 2px;
|
|
89
|
+
stroke-dasharray: 2, 2;
|
|
90
|
+
stroke: ${t.labelBoxBorderColor};
|
|
91
|
+
fill: ${t.labelBoxBorderColor};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.note {
|
|
95
|
+
//stroke: #decc93;
|
|
96
|
+
stroke: ${t.noteBorderColor};
|
|
97
|
+
fill: ${t.noteBkgColor};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.noteText, .noteText > tspan {
|
|
101
|
+
fill: ${t.noteTextColor};
|
|
102
|
+
stroke: none;
|
|
103
|
+
${t.noteFontWeight?`font-weight: ${t.noteFontWeight};`:""}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.activation0 {
|
|
107
|
+
fill: ${t.activationBkgColor};
|
|
108
|
+
stroke: ${t.activationBorderColor};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.activation1 {
|
|
112
|
+
fill: ${t.activationBkgColor};
|
|
113
|
+
stroke: ${t.activationBorderColor};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.activation2 {
|
|
117
|
+
fill: ${t.activationBkgColor};
|
|
118
|
+
stroke: ${t.activationBorderColor};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.actorPopupMenu {
|
|
122
|
+
position: absolute;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.actorPopupMenuPanel {
|
|
126
|
+
position: absolute;
|
|
127
|
+
fill: ${t.actorBkg};
|
|
128
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
129
|
+
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
130
|
+
}
|
|
131
|
+
.actor-man circle, line {
|
|
132
|
+
fill: ${t.actorBkg};
|
|
133
|
+
stroke-width: 2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
g rect.rect {
|
|
137
|
+
filter: ${e};
|
|
138
|
+
stroke: ${t.nodeBorder};
|
|
139
|
+
}
|
|
140
|
+
`},"getStyles"),g="actor-top",u="actor-bottom",O="actor-box",y="actor-man",_=new Set(["redux-color","redux-dark-color"]),x=(0,n.p)(function(t,e){let r=(0,a.J)(t,e);return"neo"===(0,s.N)().look&&r.attr("data-look","neo"),r},"drawRect"),b=(0,n.p)(function(t,e,a,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};let s=e.links,n=e.actorCnt,o=e.rectData;var l="none";i&&(l="block !important");let d=t.append("g");d.attr("id","actor"+n+"_popup"),d.attr("class","actorPopupMenu"),d.attr("display",l);var h="";void 0!==o.class&&(h=" "+o.class);let p=o.width>a?o.width:a,E=d.append("rect");if(E.attr("class","actorPopupMenuPanel"+h),E.attr("x",o.x),E.attr("y",o.height),E.attr("fill",o.fill),E.attr("stroke",o.stroke),E.attr("width",p),E.attr("height",o.height),E.attr("rx",o.rx),E.attr("ry",o.ry),null!=s){var T=20;for(let t in s){var g=d.append("a"),u=(0,c.sanitizeUrl)(s[t]);g.attr("xlink:href",u),g.attr("target","_blank"),Q(r)(t,g,o.x+10,o.height+T,p,20,{class:"actor"},r),T+=30}}return E.attr("height",T),{height:o.height+T,width:p}},"drawPopup"),m=(0,n.p)(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),I=(0,n.p)(async function(t,e,a=null){let r=t.append("foreignObject"),i=await (0,s.W)(e.text,(0,s.N)()),n=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(n.height)).attr("width",Math.round(n.width)),"noteText"===e.class){let a=t.node().firstChild;a.setAttribute("height",n.height+2*e.textMargin);let i=a.getBBox();r.attr("x",Math.round(i.x+i.width/2-n.width/2)).attr("y",Math.round(i.y+i.height/2-n.height/2))}else if(a){let{startx:t,stopx:i,starty:s}=a;if(t>i){let e=t;t=i,i=e}r.attr("x",Math.round(t+Math.abs(t-i)/2-n.width/2)),"loopText"===e.class?r.attr("y",Math.round(s)):r.attr("y",Math.round(s-n.height))}return[r]},"drawKatex"),f=(0,n.p)(function(t,e){let a=0,r=0,o=e.text.split(s.E.lineBreakRegex),[c,l]=(0,i.X)(e.fontSize),d=[],h=0,p=(0,n.p)(()=>e.y,"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":p=(0,n.p)(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":p=(0,n.p)(()=>Math.round(e.y+(a+r+e.textMargin)/2),"yfunc");break;case"bottom":case"end":p=(0,n.p)(()=>Math.round(e.y+(a+r+2*e.textMargin)-e.textMargin),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[s,n]of o.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==c&&(h=s*c);let o=t.append("text");o.attr("x",e.x),o.attr("y",p()),void 0!==e.anchor&&o.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&o.style("font-family",e.fontFamily),void 0!==l&&o.style("font-size",l),void 0!==e.fontWeight&&o.style("font-weight",e.fontWeight),void 0!==e.fill&&o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class),void 0!==e.dy?o.attr("dy",e.dy):0!==h&&o.attr("dy",h);let E=n||i.g;if(e.tspan){let t=o.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(E)}else o.text(E);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(o._groups||o)[0][0].getBBox().height,a=r),d.push(o)}return d},"drawText"),L=(0,n.p)(function(t,e){function a(t,e,a,r,i){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+r-i)+" "+(t+a-1.2*i)+","+(e+r)+" "+t+","+(e+r)}(0,n.p)(a,"genPoints");let r=t.append("polygon");return r.attr("points",a(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,f(t,e),r},"drawLabel"),R=-1,P=(0,n.p)((t,e,a,r)=>{t.select&&a.forEach(a=>{let i=e.get(a),s=t.select("#actor"+i.actorCnt);!r.mirrorActors&&i.stopy?s.attr("y2",i.stopy+i.height/2):r.mirrorActors&&s.attr("y2",i.stopy)})},"fixLifeLineHeights"),N=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:E,borderColorArray:T}=p,y=t.append("g").lower();var b=y;i||(R++,Object.keys(e.links||{}).length&&!r.forceMenus&&b.attr("onclick",m(`actor${R}_popup`)).attr("cursor","pointer"),b.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),b=y.append("g"),e.actorCnt=R,null!=e.links&&b.attr("id","root-"+R),"neo"===d&&b.attr("data-look","neo"));let I=(0,a.f)();var f="actor";e.properties?.class?f=e.properties.class:I.fill="#eaeaea",i?f+=` ${u}`:f+=` ${g}`,I.x=e.x,I.y=o,I.width=e.width,I.height=e.height,I.class=f,I.rx=3,I.ry=3,I.name=e.name,"neo"===d&&(I.rx=6,I.ry=6);let L=x(b,I),P=n.get(e.name)??0;if(_.has(h)&&(L.style("stroke",T[P%T.length]),L.style("fill",E[P%T.length])),"neo"===d&&L.attr("filter","url(#drop-shadow)"),e.rectData=I,e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,a.N)(b,I.x+I.width-20,I.y+10,t.substr(1)):(0,a.A)(b,I.x+I.width-20,I.y+10,t)}i||(b.attr("data-et","participant"),b.attr("data-type","participant"),b.attr("data-id",e.name)),Z(r,(0,s.r)(e.description))(e.description,b,I.x,I.y,I.width,I.height,{class:`actor ${O}`},r);let N=e.height;if(L.node){let t=L.node().getBBox();e.height=t.height,N=t.height}return N},"drawActorTypeParticipant"),w=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:E,borderColorArray:T}=p,y=t.append("g").lower();var b=y;i||(R++,Object.keys(e.links||{}).length&&!r.forceMenus&&b.attr("onclick",m(`actor${R}_popup`)).attr("cursor","pointer"),b.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),b=y.append("g"),e.actorCnt=R,null!=e.links&&b.attr("id","root-"+R),"neo"===d&&b.attr("data-look","neo"));let I=(0,a.f)();var f="actor";e.properties?.class?f=e.properties.class:I.fill="#eaeaea",i?f+=` ${u}`:f+=` ${g}`,I.x=e.x,I.y=o,I.width=e.width,I.height=e.height,I.class=f,I.name=e.name;let L={...I,x:I.x+-6,y:I.y+6,class:"actor"},P=x(b,I),N=x(b,L);e.rectData=I,"neo"===d&&b.attr("filter","url(#drop-shadow)");let w=n.get(e.name)??0;if(_.has(h)&&(P.style("stroke",T[w%T.length]),P.style("fill",E[w%T.length]),N.style("stroke",T[w%T.length]),N.style("fill",E[w%T.length])),e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,a.N)(b,I.x+I.width-20,I.y+10,t.substr(1)):(0,a.A)(b,I.x+I.width-20,I.y+10,t)}Z(r,(0,s.r)(e.description))(e.description,b,I.x-6,I.y+6,I.width,I.height,{class:`actor ${O}`},r);let S=e.height;if(P.node){let t=P.node().getBBox();e.height=t.height,S=t.height}return i||(b.attr("data-et","participant"),b.attr("data-type","collections"),b.attr("data-id",e.name)),S},"drawActorTypeCollections"),S=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:E,borderColorArray:T}=p,y=t.append("g").lower(),x=y;i||(R++,Object.keys(e.links||{}).length&&!r.forceMenus&&x.attr("onclick",m(`actor${R}_popup`)).attr("cursor","pointer"),x.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),x=y.append("g"),e.actorCnt=R,null!=e.links&&x.attr("id","root-"+R),"neo"===d&&x.attr("data-look","neo"));let b=(0,a.f)(),I="actor";e.properties?.class?I=e.properties.class:b.fill="#eaeaea",i?I+=` ${u}`:I+=` ${g}`,x.attr("class",I),b.x=e.x,b.y=o,b.width=e.width,b.height=e.height,b.name=e.name;let f=b.height/2,L=f/(2.5+b.height/50),P=x.append("g"),N=x.append("g"),w=`M ${b.x},${b.y+f}
|
|
141
|
+
a ${L},${f} 0 0 0 0,${b.height}
|
|
142
|
+
h ${b.width-2*L}
|
|
143
|
+
a ${L},${f} 0 0 0 0,-${b.height}
|
|
144
|
+
Z
|
|
145
|
+
`;P.append("path").attr("d",w),N.append("path").attr("d",`M ${b.x},${b.y+f}
|
|
146
|
+
a ${L},${f} 0 0 0 0,${b.height}`),P.attr("transform",`translate(${L}, ${-(b.height/2)})`),N.attr("transform",`translate(${b.width-L}, ${-b.height/2})`),e.rectData=b,"neo"===d&&P.attr("filter","url(#drop-shadow)");let S=n.get(e.name)??0;if(_.has(h)&&(P.style("stroke",T[S%T.length]),P.style("fill",E[S%T.length]),N.style("stroke",T[S%T.length]),N.style("fill",E[S%T.length])),e.properties?.icon){let t=e.properties.icon.trim(),r=b.x+b.width-20,i=b.y+10;"@"===t.charAt(0)?(0,a.N)(x,r,i,t.substr(1)):(0,a.A)(x,r,i,t)}Z(r,(0,s.r)(e.description))(e.description,x,b.x,b.y,b.width,b.height,{class:`actor ${O}`},r);let D=e.height,A=P.select("path:last-child");if(A.node()){let t=A.node().getBBox();e.height=t.height,D=t.height}return i||(x.attr("data-et","participant"),x.attr("data-type","queue"),x.attr("data-id",e.name)),D},"drawActorTypeQueue"),D=(0,n.p)(function(t,e,r,i,n,o){let c=i?e.stopy:e.starty,l=e.x+e.width/2,d=c+75,{look:h,theme:p,themeVariables:E}=r,{bkgColorArray:T,borderColorArray:O,actorBorder:x,actorBkg:b}=E,m=t.append("g").lower();i||(R++,m.append("line").attr("id","actor"+R).attr("x1",l).attr("y1",d).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=R);let I=t.append("g"),f=y;i?f+=` ${u}`:f+=` ${g}`,I.attr("class",f),I.attr("name",e.name);let L=(0,a.f)();L.x=e.x,L.y=c,L.fill="#eaeaea",L.width=e.width,L.height=e.height,L.class="actor";let P=e.x+e.width/2,N=c+32;I.append("defs").append("marker").attr("id",n+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),I.append("circle").attr("cx",P).attr("cy",N).attr("r",22).attr("filter",`${"neo"===h?"url(#drop-shadow)":""}`),I.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform",`translate(${P}, ${N-22})`);let w=o.get(e.name)??0;return _.has(p)?(I.style("stroke",O[w%O.length]),I.style("fill",T[w%O.length])):(I.style("stroke",x),I.style("fill",b)),e.height=I.node().getBBox().height+2*(r?.sequence?.labelBoxHeight??0),Z(r,(0,s.r)(e.description))(e.description,I,L.x,L.y+22+(i?5:12),L.width,L.height,{class:`actor ${y}`},r),i||(I.attr("data-et","participant"),I.attr("data-type","control"),I.attr("data-id",e.name)),e.height},"drawActorTypeControl"),A=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+75,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:E,borderColorArray:T}=p,O=t.append("g").lower(),x=t.append("g"),b="actor";i?b+=` ${u}`:b+=` ${g}`,x.attr("class",b),x.attr("name",e.name);let m=(0,a.f)();m.x=e.x,m.y=o,m.fill="#eaeaea",m.width=e.width,m.height=e.height,m.class="actor";let I=e.x+e.width/2,f=o+(i?10:25);x.append("circle").attr("cx",I).attr("cy",f).attr("r",22).attr("width",e.width).attr("height",e.height),x.append("line").attr("x1",I-22).attr("x2",I+22).attr("y1",f+22).attr("y2",f+22).attr("stroke-width",2),"neo"===d&&x.attr("filter","url(#drop-shadow)");let L=n.get(e.name)??0;return _.has(h)&&(x.style("stroke",T[L%T.length]),x.style("fill",E[L%T.length])),e.height=x.node().getBBox().height+(r?.sequence?.labelBoxHeight??0),i||(R++,O.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=R),Z(r,(0,s.r)(e.description))(e.description,x,m.x,m.y+(i?15:30),m.width,m.height,{class:`actor ${y}`},r),i?x.attr("transform","translate(0, 22)"):(x.attr("transform","translate(0, 6)"),x.attr("data-et","participant"),x.attr("data-type","entity"),x.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),k=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height+2*r.boxTextMargin,{theme:d,themeVariables:h,look:p}=r,{bkgColorArray:E,borderColorArray:T,actorBorder:y}=h,x=t.append("g").lower(),b=x;i||(R++,Object.keys(e.links||{}).length&&!r.forceMenus&&b.attr("onclick",m(`actor${R}_popup`)).attr("cursor","pointer"),b.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),b=x.append("g"),e.actorCnt=R,null!=e.links&&b.attr("id","root-"+R),"neo"===p&&b.attr("data-look","neo"));let I=(0,a.f)(),f="actor";e.properties?.class?f=e.properties.class:I.fill="#eaeaea",i?f+=` ${u}`:f+=` ${g}`,I.x=e.x,I.y=o,I.width=e.width,I.height=e.height,I.class=f,I.name=e.name,I.x=e.x,I.y=o;let L=I.width/3,P=I.width/3,N=L/2,w=N/(2.5+L/50),S=b.append("g");S.attr("class",f);let D=`
|
|
147
|
+
M ${I.x},${I.y+w}
|
|
148
|
+
a ${N},${w} 0 0 0 ${L},0
|
|
149
|
+
a ${N},${w} 0 0 0 -${L},0
|
|
150
|
+
l 0,${P-2*w}
|
|
151
|
+
a ${N},${w} 0 0 0 ${L},0
|
|
152
|
+
l 0,-${P-2*w}
|
|
153
|
+
`;S.append("path").attr("d",D),"neo"===p&&S.attr("filter","url(#drop-shadow)");let A=n.get(e.name)??0;_.has(d)?(S.style("stroke",T[A%T.length]),S.style("fill",E[A%T.length])):S.style("stroke",y),S.attr("transform",`translate(${L}, ${w})`),e.rectData=I,Z(r,(0,s.r)(e.description))(e.description,b,I.x,I.y+35,I.width,I.height,{class:`actor ${O}`},r);let k=S.select("path:last-child");return k.node()&&(e.height=k.node().getBBox().height+(r.sequence.labelBoxHeight??0)),i||(b.attr("data-et","participant"),b.attr("data-type","database"),b.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),M=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+80,d=t.append("g").lower(),{look:h,theme:p,themeVariables:E}=r,{bkgColorArray:T,borderColorArray:O,actorBorder:x}=E;i||(R++,d.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=R);let b=t.append("g"),m=y;i?m+=` ${u}`:m+=` ${g}`,b.attr("class",m),b.attr("name",e.name);let I=(0,a.f)();I.x=e.x,I.y=o,I.fill="#eaeaea",I.width=e.width,I.height=e.height,I.class="actor",b.append("line").attr("id","actor-man-torso"+R).attr("x1",e.x+e.width/2-55).attr("y1",o+12).attr("x2",e.x+e.width/2-15).attr("y2",o+12),b.append("line").attr("id","actor-man-arms"+R).attr("x1",e.x+e.width/2-55).attr("y1",o+2).attr("x2",e.x+e.width/2-55).attr("y2",o+22),b.append("circle").attr("cx",e.x+e.width/2).attr("cy",o+12).attr("r",22),"neo"===h&&b.attr("filter","url(#drop-shadow)");let f=n.get(e.name)??0;return _.has(p)?(b.style("stroke",O[f%O.length]),b.style("fill",T[f%O.length])):b.style("stroke",x),e.height=b.node().getBBox().height+(r.sequence.labelBoxHeight??0),Z(r,(0,s.r)(e.description))(e.description,b,I.x,I.y+15,I.width,I.height,{class:`actor ${y}`},r),b.attr("transform","translate(0,21)"),i||(b.attr("data-et","participant"),b.attr("data-type","boundary"),b.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),C=(0,n.p)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,{look:l,theme:d,themeVariables:h}=r,{bkgColorArray:p,borderColorArray:E,actorBorder:T}=h,O=t.append("g").lower();i||(R++,O.append("line").attr("id","actor"+R).attr("x1",c).attr("y1",o+80).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=R);let x=t.append("g"),b=y;i?b+=` ${u}`:b+=` ${g}`,x.attr("class",b),x.attr("name",e.name),i||x.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let m="neo"===l?.5:1,I="neo"===l?o+(1-m)*30:o;x.append("line").attr("id","actor-man-torso"+R).attr("x1",c).attr("y1",I+25*m).attr("x2",c).attr("y2",I+45*m),x.append("line").attr("id","actor-man-arms"+R).attr("x1",c-18*m).attr("y1",I+33*m).attr("x2",c+18*m).attr("y2",I+33*m),x.append("line").attr("x1",c-18*m).attr("y1",I+60*m).attr("x2",c).attr("y2",I+45*m),x.append("line").attr("x1",c).attr("y1",I+45*m).attr("x2",c+16*m).attr("y2",I+60*m);let f=x.append("circle");f.attr("cx",e.x+e.width/2),f.attr("cy",I+10*m),f.attr("r",15*m),f.attr("width",e.width*m),f.attr("height",e.height*m),e.height=x.node().getBBox().height;let L=(0,a.f)();L.x=e.x,L.y=I,L.fill="#eaeaea",L.width=e.width,L.height=e.height/m,L.class="actor",L.rx=3,L.ry=3;let P=n.get(e.name)??0;return _.has(d)?(x.style("stroke",E[P%E.length]),x.style("fill",p[P%E.length])):x.style("stroke",T),Z(r,(0,s.r)(e.description))(e.description,x,L.x,I+35*m-10*("neo"===l),L.width,L.height,{class:`actor ${y}`},r),e.height},"drawActorTypeActor"),v=(0,n.p)(async function(t,e,a,r,i,s,n){let o=n??new Map([...s.db.getActors().values()].map((t,e)=>[t.name,e]));switch(e.type){case"actor":return await C(t,e,a,r,o);case"participant":return await N(t,e,a,r,o);case"boundary":return await M(t,e,a,r,o);case"control":return await D(t,e,a,r,i,o);case"entity":return await A(t,e,a,r,o);case"database":return await k(t,e,a,r,o);case"collections":return await w(t,e,a,r,o);case"queue":return await S(t,e,a,r,o)}},"drawActor"),Y=(0,n.p)(function(t,e,a){let r=t.append("g");W(r,e),e.name&&Z(a)(e.name,r,e.x,e.y+a.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a),r.lower()},"drawBox"),B=(0,n.p)(function(t){return t.append("g")},"anchorElement"),$=(0,n.p)(function(t,e,r,i,s,n,o){let{theme:c,themeVariables:l}=i,{bkgColorArray:d,borderColorArray:h,mainBkg:p}=l,E=(0,a.f)(),T=e.anchored,g=e.actor;E.x=e.startx,E.y=e.starty,E.class="activation"+s%3,E.width=e.stopx-e.startx,E.height=r-e.starty;let u=x(T,E),O=(o??new Map([...n.db.getActors().values()].map((t,e)=>[t.name,e]))).get(g)??0;_.has(c)&&(u.style("stroke",h[O%h.length]),u.style("fill",d[O%h.length]??p))},"drawActivation"),V=(0,n.p)(async function(t,e,r,i,o){let{boxMargin:c,boxTextMargin:l,labelBoxHeight:d,labelBoxWidth:h,messageFontFamily:p,messageFontSize:E,messageFontWeight:T}=i,g=t.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),u=(0,n.p)(function(t,e,a,r){return g.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r).attr("class","loopLine")},"drawLoopLine");u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach(function(t){u(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")});let O=(0,a.W)();O.text=r,O.x=e.startx,O.y=e.starty,O.fontFamily=p,O.fontSize=E,O.fontWeight=T,O.anchor="middle",O.valign="middle",O.tspan=!1,O.width=Math.max(h??0,50),O.height=d+15*("neo"===i.look)||20,O.textMargin=l,O.class="labelText",L(g,O),(O=G()).text=e.title,O.x=e.startx+h/2+(e.stopx-e.startx)/2,O.y=e.starty+c+l,O.anchor="middle",O.valign="middle",O.textMargin=l,O.class="loopText",O.fontFamily=p,O.fontSize=E,O.fontWeight=T,O.wrap=!0;let y=(0,s.r)(O.text)?await I(g,O,e):f(g,O);if(void 0!==e.sectionTitles){for(let[t,a]of Object.entries(e.sectionTitles))if(a.message){O.text=a.message,O.x=e.startx+(e.stopx-e.startx)/2,O.y=e.sections[t].y+c+l,O.class="sectionTitle",O.anchor="middle",O.valign="middle",O.tspan=!1,O.fontFamily=p,O.fontSize=E,O.fontWeight=T,O.wrap=e.wrap,(0,s.r)(O.text)?(e.starty=e.sections[t].y,await I(g,O,e)):f(g,O);let r=Math.round(y.map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));e.sections[t].height+=r-(c+l)}}return e.height=Math.round(e.stopy-e.starty),g},"drawLoop"),W=(0,n.p)(function(t,e){(0,a.Z)(t,e)},"drawBackgroundRect"),F=(0,n.p)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),K=(0,n.p)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),q=(0,n.p)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),z=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),H=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),U=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),j=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),X=(0,n.p)(function(t,e){let{theme:a}=e;t.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${"redux"===a||"redux-color"===a?"#000000":"#FFFFFF"}`)},"insertDropShadow"),G=(0,n.p)(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),J=(0,n.p)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Z=function(){function t(t,e,a,r,i,s,n){o(e.append("text").attr("x",a+i/2).attr("y",r+s/2+5).style("text-anchor","middle").text(t),n)}function e(t,e,a,r,n,c,l,d){let{actorFontSize:h,actorFontFamily:p,actorFontWeight:E}=d,[T,g]=(0,i.X)(h),u=t.split(s.E.lineBreakRegex);for(let t=0;t<u.length;t++){let i=t*T-T*(u.length-1)/2,s=e.append("text").attr("x",a+n/2).attr("y",r).style("text-anchor","middle").style("font-size",g).style("font-weight",E).style("font-family",p);s.append("tspan").attr("x",a+n/2).attr("dy",i).text(u[t]),s.attr("y",r+c/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(s,l)}}function a(t,a,r,i,s,n,c,l){let d=a.append("switch"),h=d.append("foreignObject").attr("x",r).attr("y",i).attr("width",s).attr("height",n).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,r,i,s,n,c,l),o(h,c)}async function r(t,a,r,i,n,c,l,d){let h=await (0,s.s)(t,(0,s.N)()),p=a.append("switch"),E=p.append("foreignObject").attr("x",r+n/2-h.width/2).attr("y",i+c/2-h.height/2).attr("width",h.width).attr("height",h.height).append("xhtml:div").style("height","100%").style("width","100%");E.append("div").style("text-align","center").style("vertical-align","middle").html(await (0,s.W)(t,(0,s.N)())),e(t,p,r,i,n,c,l,d),o(E,l)}function o(t,e){for(let a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.p)(t,"byText"),(0,n.p)(e,"byTspan"),(0,n.p)(a,"byFo"),(0,n.p)(r,"byKatex"),(0,n.p)(o,"_setTextAttrs"),function(i,s=!1){return s?r:"fo"===i.textPlacement?a:"old"===i.textPlacement?t:e}}(),Q=function(){function t(t,e,a,i,s,n,o){r(e.append("text").attr("x",a).attr("y",i).style("text-anchor","start").text(t),o)}function e(t,e,a,i,n,o,c,l){let{actorFontSize:d,actorFontFamily:h,actorFontWeight:p}=l,E=t.split(s.E.lineBreakRegex);for(let t=0;t<E.length;t++){let s=t*d-d*(E.length-1)/2,n=e.append("text").attr("x",a).attr("y",i).style("text-anchor","start").style("font-size",d).style("font-weight",p).style("font-family",h);n.append("tspan").attr("x",a).attr("dy",s).text(E[t]),n.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(n,c)}}function a(t,a,i,s,n,o,c,l){let d=a.append("switch"),h=d.append("foreignObject").attr("x",i).attr("y",s).attr("width",n).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,i,s,n,o,c,l),r(h,c)}function r(t,e){for(let a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.p)(t,"byText"),(0,n.p)(e,"byTspan"),(0,n.p)(a,"byFo"),(0,n.p)(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?a:"old"===r.textPlacement?t:e}}(),tt=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),te=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),ta=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),tr=(0,n.p)(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),ti={drawRect:x,drawText:f,drawLabel:L,drawActor:v,drawBox:Y,drawPopup:b,anchorElement:B,drawActivation:$,drawLoop:V,drawBackgroundRect:W,insertArrowHead:z,insertArrowFilledHead:H,insertSequenceNumber:U,insertArrowCrossHead:j,insertDatabaseIcon:F,insertComputerIcon:K,insertClockIcon:q,getTextObj:G,getNoteRect:J,fixLifeLineHeights:P,sanitizeUrl:c.sanitizeUrl,insertDropShadow:X,insertSolidTopArrowHead:tt,insertSolidBottomArrowHead:te,insertStickTopArrowHead:ta,insertStickBottomArrowHead:tr},ts={},tn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,n.p)(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(t=>t.height||0))+(0===this.loops.length?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.messages.length?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.notes.length?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:(0,n.p)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,n.p)(function(t){this.boxes.push(t)},"addBox"),addActor:(0,n.p)(function(t){this.actors.push(t)},"addActor"),addLoop:(0,n.p)(function(t){this.loops.push(t)},"addLoop"),addMessage:(0,n.p)(function(t){this.messages.push(t)},"addMessage"),addNote:(0,n.p)(function(t){this.notes.push(t)},"addNote"),lastActor:(0,n.p)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,n.p)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,n.p)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,n.p)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,n.p)(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tO((0,s.z)())},"init"),updateVal:(0,n.p)(function(t,e,a,r){void 0===t[e]?t[e]=a:t[e]=r(a,t[e])},"updateVal"),updateBounds:(0,n.p)(function(t,e,a,r){let i=this,s=0;function o(o){return(0,n.p)(function(n){s++;let c=i.sequenceItems.length-s+1;i.updateVal(n,"starty",e-c*ts.boxMargin,Math.min),i.updateVal(n,"stopy",r+c*ts.boxMargin,Math.max),i.updateVal(tn.data,"startx",t-c*ts.boxMargin,Math.min),i.updateVal(tn.data,"stopx",a+c*ts.boxMargin,Math.max),"activation"!==o&&(i.updateVal(n,"startx",t-c*ts.boxMargin,Math.min),i.updateVal(n,"stopx",a+c*ts.boxMargin,Math.max),i.updateVal(tn.data,"starty",e-c*ts.boxMargin,Math.min),i.updateVal(tn.data,"stopy",r+c*ts.boxMargin,Math.max))},"updateItemBounds")}(0,n.p)(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:(0,n.p)(function(t,e,a,r){let i=s.E.getMin(t,a),n=s.E.getMax(t,a),o=s.E.getMin(e,r),c=s.E.getMax(e,r);this.updateVal(tn.data,"startx",i,Math.min),this.updateVal(tn.data,"starty",o,Math.min),this.updateVal(tn.data,"stopx",n,Math.max),this.updateVal(tn.data,"stopy",c,Math.max),this.updateBounds(i,o,n,c)},"insert"),newActivation:(0,n.p)(function(t,e,a){let r=a.get(t.from),i=ty(t.from).length||0,s=r.x+r.width/2+(i-1)*ts.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+ts.activationWidth,stopy:void 0,actor:t.from,anchored:ti.anchorElement(e)})},"newActivation"),endActivation:(0,n.p)(function(t){let e=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:(0,n.p)(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:(0,n.p)(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:(0,n.p)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,n.p)(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:(0,n.p)(function(t){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:tn.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:(0,n.p)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,n.p)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,n.p)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=s.E.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,n.p)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,n.p)(function(){return{bounds:this.data,models:this.models}},"getBounds")},to=(0,n.p)(async function(t,e,r){tn.bumpVerticalPos(ts.boxMargin),e.height=ts.boxMargin,e.starty=tn.getVerticalPos();let i=(0,a.f)();i.x=e.startx,i.y=e.starty,i.width=e.width||ts.width,i.class="note";let n=t.append("g");n.attr("data-et","note"),n.attr("data-id","i"+r);let o=ti.drawRect(n,i),c=(0,a.W)();c.x=e.startx,c.y=e.starty,c.width=i.width,c.dy="1em",c.text=e.message,c.class="noteText",c.fontFamily=ts.noteFontFamily,c.fontSize=ts.noteFontSize,c.fontWeight=ts.noteFontWeight,c.anchor=ts.noteAlign,c.textMargin=ts.noteMargin,c.valign="center";let l=Math.round(((0,s.r)(c.text)?await I(n,c):f(n,c)).map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));o.attr("height",l+2*ts.noteMargin),e.height+=l+2*ts.noteMargin,tn.bumpVerticalPos(l+2*ts.noteMargin),e.stopy=e.starty+l+2*ts.noteMargin,e.stopx=e.startx+i.width,tn.insert(e.startx,e.starty,e.stopx,e.stopy),tn.models.addNote(e)},"drawNote"),tc=(0,n.p)(function(t,e,a,r,i,s,o){let c=r.db.getActors(),l=c.get(e.from),d=c.get(e.to),h=a.sequenceVisible,p=l.x+l.width/2,E=d.x+d.width/2,T=p<=E,g=tw(e,r),u=t.append("g"),O=(0,n.p)((t,e)=>{let a=t?16.5:-16.5;return e?-a:a},"getCircleOffset"),y=(0,n.p)(t=>{u.append("circle").attr("cx",t).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:_,CENTRAL_CONNECTION_REVERSE:x,CENTRAL_CONNECTION_DUAL:b}=r.db.LINETYPE;if(h)switch(e.centralConnection){case _:g&&(E+=O(T,!0));break;case x:g||(p+=O(T,!1));break;case b:g?E+=O(T,!0):p+=O(T,!1)}switch(e.centralConnection){case _:y(E);break;case x:y(p);break;case b:y(p),y(E)}},"drawCentralConnection"),tl=(0,n.p)(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),td=(0,n.p)(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),th=(0,n.p)(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function tp(t,e){let a;tn.bumpVerticalPos(10);let{startx:r,stopx:n,message:o}=e,c=s.E.splitBreaks(o).length,l=(0,s.r)(o),d=l?await (0,s.s)(o,(0,s.z)()):i.u.calculateTextDimensions(o,tl(ts));if(!l){let t=d.height/c;e.height+=t,tn.bumpVerticalPos(t)}let h=d.height-10,p=d.width;if(r===n){a=tn.getVerticalPos()+h,ts.rightAngles||(h+=ts.boxMargin,a=tn.getVerticalPos()+h),h+=30;let t=s.E.getMax(p/2,ts.width/2);tn.insert(r-t,tn.getVerticalPos()-10+h,n+t,tn.getVerticalPos()+30+h)}else h+=ts.boxMargin,a=tn.getVerticalPos()+h,tn.insert(r,a-10,n,a);return tn.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,tn.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),a}(0,n.p)(tp,"boundMessage");var tE=(0,n.p)(async function(t,e,r,n,o,c){let l,{startx:d,stopx:h,starty:p,message:E,type:T,sequenceIndex:g,sequenceVisible:u}=e,O=i.u.calculateTextDimensions(E,tl(ts)),y=(0,a.W)();y.x=Math.min(d,h),y.y=p+10,y.width=Math.abs(h-d),y.class="messageText",y.dy="1em",y.text=E,y.fontFamily=ts.messageFontFamily,y.fontSize=ts.messageFontSize,y.fontWeight=ts.messageFontWeight,y.anchor=ts.messageAlign,y.valign="center",y.textMargin=ts.wrapPadding,y.tspan=!1,(0,s.r)(y.text)?await I(t,y,{startx:d,stopx:h,starty:r}):f(t,y);let _=O.width;if(d===h){let a=u||ts.showSequenceNumbers,i=tw(o,n),c=tS(o,n),p=d+(a&&(i||c)?10:0);l=ts.rightAngles?t.append("path").attr("d",`M ${p},${r} H ${d+s.E.getMax(ts.width/2,_/2)} V ${r+25} H ${d}`):t.append("path").attr("d","M "+p+","+r+" C "+(p+60)+","+(r-10)+" "+(d+60)+","+(r+30)+" "+d+","+(r+20)),tP(o,n)&&tc(t,o,e,n,d,h,r)}else(l=t.append("line")).attr("x1",d),l.attr("y1",r),l.attr("x2",h),l.attr("y2",r),tP(o,n)&&tc(t,o,e,n,d,h,r);T===n.db.LINETYPE.DOTTED||T===n.db.LINETYPE.DOTTED_CROSS||T===n.db.LINETYPE.DOTTED_POINT||T===n.db.LINETYPE.DOTTED_OPEN||T===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||T===n.db.LINETYPE.SOLID_TOP_DOTTED||T===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||T===n.db.LINETYPE.STICK_TOP_DOTTED||T===n.db.LINETYPE.STICK_BOTTOM_DOTTED||T===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||T===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||T===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||T===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(l.style("stroke-dasharray","3, 3"),l.attr("class","messageLine1")):l.attr("class","messageLine0"),l.attr("data-et","message"),l.attr("data-id","i"+e.id),l.attr("data-from",e.from),l.attr("data-to",e.to);let x="";if(ts.arrowMarkerAbsolute&&(x=(0,s.q)(!0)),l.attr("stroke-width",2),l.attr("stroke","none"),l.style("fill","none"),(T===n.db.LINETYPE.SOLID_TOP||T===n.db.LINETYPE.SOLID_TOP_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-solidTopArrowHead)"),(T===n.db.LINETYPE.SOLID_BOTTOM||T===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-solidBottomArrowHead)"),(T===n.db.LINETYPE.STICK_TOP||T===n.db.LINETYPE.STICK_TOP_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-stickTopArrowHead)"),(T===n.db.LINETYPE.STICK_BOTTOM||T===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-stickBottomArrowHead)"),(T===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||T===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-solidBottomArrowHead)"),(T===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||T===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-solidTopArrowHead)"),(T===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||T===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-stickBottomArrowHead)"),(T===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||T===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-stickTopArrowHead)"),(T===n.db.LINETYPE.SOLID||T===n.db.LINETYPE.DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-arrowhead)"),(T===n.db.LINETYPE.BIDIRECTIONAL_SOLID||T===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(l.attr("marker-start","url("+x+"#"+c+"-arrowhead)"),l.attr("marker-end","url("+x+"#"+c+"-arrowhead)")),(T===n.db.LINETYPE.SOLID_POINT||T===n.db.LINETYPE.DOTTED_POINT)&&l.attr("marker-end","url("+x+"#"+c+"-filled-head)"),(T===n.db.LINETYPE.SOLID_CROSS||T===n.db.LINETYPE.DOTTED_CROSS)&&l.attr("marker-end","url("+x+"#"+c+"-crosshead)"),u||ts.showSequenceNumbers){let a=T===n.db.LINETYPE.BIDIRECTIONAL_SOLID||T===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,i=T===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||T===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||T===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||T===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||T===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||T===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||T===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||T===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s=tP(o,n),p=d,E=h;a?(p=d<h?d+12:d-6+(s?-5:0)+(o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),l.attr("x1",p)):i?(h>d?E=h-12:(E=h-6,p+=o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),E+=15*!!s,l.attr("x2",E),l.attr("x1",p)):l.attr("x1",d+6);let u=0,O=d===h,y=d<=h;u=O?e.fromBounds+1:i?y?e.toBounds-1:e.fromBounds+1:y?e.fromBounds+1:e.toBounds-1;let _="12px",b=g.toString().length;b>5?_="7px":b>3&&(_="9px"),t.append("line").attr("x1",u).attr("y1",r).attr("x2",u).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+x+"#"+c+"-sequencenumber)"),t.append("text").attr("x",u).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",_).attr("text-anchor","middle").attr("class","sequenceNumber").text(g)}},"drawMessage"),tT=(0,n.p)(function(t,e,a,r,i,n,o){let c,l=0,d=0,h=0;for(let t of r){let r=e.get(t),n=r.box;c&&c!=n&&(o||tn.models.addBox(c),d+=ts.boxMargin+c.margin),n&&n!=c&&(o||(n.x=l+d,n.y=i),d+=n.margin),r.width=s.E.getMax(r.width||ts.width,ts.width),r.height=s.E.getMax(r.height||ts.height,ts.height),r.margin=r.margin||ts.actorMargin,h=s.E.getMax(h,r.height),a.get(r.name)&&(d+=r.width/2),r.x=l+d,r.starty=tn.getVerticalPos(),tn.insert(r.x,i,r.x+r.width,r.height),l+=r.width+d,r.box&&(r.box.width=l+n.margin-r.box.x),d=r.margin,c=r.box,tn.models.addActor(r)}c&&!o&&tn.models.addBox(c),tn.bumpVerticalPos(h)},"addActorRenderingData"),tg=(0,n.p)(async function(t,e,a,r,i,n,o){if(r){let r=0;for(let c of(tn.bumpVerticalPos(2*ts.boxMargin),a)){let a=e.get(c);a.stopy||(a.stopy=tn.getVerticalPos());let l=await ti.drawActor(t,a,ts,!0,i,n,o);r=s.E.getMax(r,l)}tn.bumpVerticalPos(r+ts.boxMargin)}else for(let r of a){let a=e.get(r);await ti.drawActor(t,a,ts,!1,i,n,o)}},"drawActors"),tu=(0,n.p)(function(t,e,a,r){let i=0,s=0;for(let n of a){let a=e.get(n),o=tf(a),c=ti.drawPopup(t,a,o,ts,ts.forceMenus,r);c.height>i&&(i=c.height),c.width+a.x>s&&(s=c.width+a.x)}return{maxHeight:i,maxWidth:s}},"drawActorsPopup"),tO=(0,n.p)(function(t){(0,s.L)(ts,t),t.fontFamily&&(ts.actorFontFamily=ts.noteFontFamily=ts.messageFontFamily=t.fontFamily),t.fontSize&&(ts.actorFontSize=ts.noteFontSize=ts.messageFontSize=t.fontSize),t.fontWeight&&(ts.actorFontWeight=ts.noteFontWeight=ts.messageFontWeight=t.fontWeight)},"setConf"),ty=(0,n.p)(function(t){return tn.activations.filter(function(e){return e.actor===t})},"actorActivations"),t_=(0,n.p)(function(t,e){let a=e.get(t),r=ty(t);return[r.reduce(function(t,e){return s.E.getMin(t,e.startx)},a.x+a.width/2-1),r.reduce(function(t,e){return s.E.getMax(t,e.stopx)},a.x+a.width/2+1)]},"activationBounds");function tx(t,e,a,r,o){tn.bumpVerticalPos(a);let c=r;if(e.id&&e.message&&t[e.id]){let a=t[e.id].width,o=tl(ts);e.message=i.u.wrapLabel(`[${e.message}]`,a-2*ts.wrapPadding,o),e.width=a,e.wrap=!0;let l=i.u.calculateTextDimensions(e.message,o),d=s.E.getMax(l.height,ts.labelBoxHeight);c=r+d,n.d.debug(`${d} - ${e.message}`)}o(e),tn.bumpVerticalPos(c)}function tb(t,e,a,r,i,s,o){function c(a,r){a.x<i.get(t.from).x?(tn.insert(e.stopx-r,e.starty,e.startx,e.stopy+a.height/2+ts.noteMargin),e.stopx=e.stopx+r):(tn.insert(e.startx,e.starty,e.stopx+r,e.stopy+a.height/2+ts.noteMargin),e.stopx=e.stopx-r)}function l(a,r){a.x<i.get(t.to).x?(tn.insert(e.startx-r,e.starty,e.stopx,e.stopy+a.height/2+ts.noteMargin),e.startx=e.startx+r):(tn.insert(e.stopx,e.starty,e.startx+r,e.stopy+a.height/2+ts.noteMargin),e.startx=e.startx-r)}(0,n.p)(c,"receiverAdjustment"),(0,n.p)(l,"senderAdjustment");let d=["actor","control","entity","database"];if(s.get(t.to)==r){let e=i.get(t.to),r=d.includes(e.type)?21:e.width/2+3;c(e,r),e.starty=a-e.height/2,tn.bumpVerticalPos(e.height/2)}else if(o.get(t.from)==r){let e=i.get(t.from);if(ts.mirrorActors){let t=d.includes(e.type)?18:e.width/2;l(e,t)}e.stopy=a-e.height/2,tn.bumpVerticalPos(e.height/2)}else if(o.get(t.to)==r){let e=i.get(t.to);if(ts.mirrorActors){let t=d.includes(e.type)?21:e.width/2+3;c(e,t)}e.stopy=a-e.height/2,tn.bumpVerticalPos(e.height/2)}}(0,n.p)(tx,"adjustLoopHeightForWrap"),(0,n.p)(tb,"adjustCreatedDestroyedData");var tm=(0,n.p)(async function(t,e,a,r){let i,{securityLevel:c,sequence:l,look:d}=(0,s.z)();ts=l,"sandbox"===c&&(i=(0,o.f)("#i"+e));let h="sandbox"===c?(0,o.f)(i.nodes()[0].contentDocument.body):(0,o.f)("body"),p="sandbox"===c?i.nodes()[0].contentDocument:document;tn.init(),n.d.debug(r.db);let E="sandbox"===c?h.select(`[id="${e}"]`):(0,o.f)(`[id="${e}"]`),T=r.db.getActors(),g=r.db.getCreatedActors(),u=r.db.getDestroyedActors(),O=r.db.getBoxes(),y=r.db.getActorKeys(),_=r.db.getMessages(),x=r.db.getDiagramTitle(),b=r.db.hasAtLeastOneBox(),m=r.db.hasAtLeastOneBoxWithTitle(),I=await tI(T,_,r);if(ts.height=await tL(T,I,O),ti.insertComputerIcon(E,e),ti.insertDatabaseIcon(E,e),ti.insertClockIcon(E,e),b&&(tn.bumpVerticalPos(ts.boxMargin),m&&tn.bumpVerticalPos(O[0].textMaxHeight)),!0===ts.hideUnusedParticipants){let t=new Set;_.forEach(e=>{t.add(e.from),t.add(e.to)}),y=y.filter(e=>t.has(e))}let f=new Map(y.map((t,e)=>[T.get(t)?.name??t,e]));tT(E,T,g,y,0,_,!1);let L=await tA(_,T,I,r);function R(t,e){let a=tn.endActivation(t);a.starty+18>e&&(a.starty=e-6,e+=12),ti.drawActivation(E,a,e,ts,ty(t.from).length,r,f),tn.insert(a.startx,e-10,a.stopx,e)}ti.insertArrowHead(E,e),ti.insertArrowCrossHead(E,e),ti.insertArrowFilledHead(E,e),ti.insertSequenceNumber(E,e),ti.insertSolidTopArrowHead(E,e),ti.insertSolidBottomArrowHead(E,e),ti.insertStickTopArrowHead(E,e),ti.insertStickBottomArrowHead(E,e),"neo"===d&&ti.insertDropShadow(E,ts),(0,n.p)(R,"activeEnd");let N=1,w=1,S=[],D=[],A=0;for(let t of _){let e,a,i;switch(t.type){case r.db.LINETYPE.NOTE:tn.resetVerticalPos(),a=t.noteModel,await to(E,a,t.id);break;case r.db.LINETYPE.ACTIVE_START:case r.db.LINETYPE.CENTRAL_CONNECTION:case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:tn.newActivation(t,E,T);break;case r.db.LINETYPE.ACTIVE_END:R(t,tn.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.LOOP_END:e=tn.endLoop(),await ti.drawLoop(E,e,"loop",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:tx(L,t,ts.boxMargin,ts.boxMargin,t=>tn.newLoop(void 0,t.message));break;case r.db.LINETYPE.RECT_END:e=tn.endLoop(),D.push(e),tn.models.addLoop(e),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos());break;case r.db.LINETYPE.OPT_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.OPT_END:e=tn.endLoop(),await ti.drawLoop(E,e,"opt",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.ALT_ELSE:tx(L,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.ALT_END:e=tn.endLoop(),await ti.drawLoop(E,e,"alt",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t)),tn.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:tx(L,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.PAR_END:e=tn.endLoop(),await ti.drawLoop(E,e,"par",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:N=t.message.start||N,w=t.message.step||w,t.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.CRITICAL_OPTION:tx(L,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.CRITICAL_END:e=tn.endLoop(),await ti.drawLoop(E,e,"critical",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:tx(L,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.BREAK_END:e=tn.endLoop(),await ti.drawLoop(E,e,"break",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;default:try{(i=t.msgModel).starty=tn.getVerticalPos(),i.sequenceIndex=N,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=t.id,i.from=t.from,i.to=t.to;let e=await tp(E,i);tb(t,i,e,A,T,g,u),S.push({messageModel:i,lineStartY:e,msg:t}),tn.models.addMessage(i)}catch(t){n.d.error("error while drawing message",t)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(N=Math.round((N+w)*100)/100),A++}for(let t of(n.d.debug("createdActors",g),n.d.debug("destroyedActors",u),await tg(E,T,y,!1,e,r,f),S))await tE(E,t.messageModel,t.lineStartY,r,t.msg,e);for(let t of(ts.mirrorActors&&await tg(E,T,y,!0,e,r,f),D.forEach(t=>ti.drawBackgroundRect(E,t)),P(E,T,y,ts),tn.models.boxes)){t.height=tn.getVerticalPos()-t.y,tn.insert(t.x,t.y,t.x+t.width,t.height);let e=2*ts.boxMargin;t.startx=t.x-e,t.starty=t.y-.25*e,t.stopx=t.startx+t.width+2*e,t.stopy=t.starty+t.height+.75*e,t.stroke="rgb(0,0,0, 0.5)",ti.drawBox(E,t,ts)}b&&tn.bumpVerticalPos(ts.boxMargin);let k=tu(E,T,y,p),{bounds:M}=tn.getBounds();void 0===M.startx&&(M.startx=0),void 0===M.starty&&(M.starty=0),void 0===M.stopx&&(M.stopx=0),void 0===M.stopy&&(M.stopy=0);let C=M.stopy-M.starty;C<k.maxHeight&&(C=k.maxHeight);let v=C+2*ts.diagramMarginY;ts.mirrorActors&&(v=v-ts.boxMargin+ts.bottomMarginAdj);let Y=M.stopx-M.startx;Y<k.maxWidth&&(Y=k.maxWidth);let B=Y+2*ts.diagramMarginX;x&&E.append("text").text(x).attr("x",(M.stopx-M.startx)/2-2*ts.diagramMarginX).attr("y",-25),(0,s.m)(E,v,B,ts.useMaxWidth);let $=40*!!x,V=T.size&&"neo"===d?30:0;E.attr("viewBox",M.startx-ts.diagramMarginX+" -"+(ts.diagramMarginY+$)+" "+B+" "+(v+$+V)),n.d.debug("models:",tn.models)},"draw");async function tI(t,e,a){let r={};for(let n of e)if(t.get(n.to)&&t.get(n.from)){let e=t.get(n.to);if(n.placement===a.db.PLACEMENT.LEFTOF&&!e.prevActor||n.placement===a.db.PLACEMENT.RIGHTOF&&!e.nextActor)continue;let o=void 0!==n.placement,c=!o,l=o?td(ts):tl(ts),d=n.wrap?i.u.wrapLabel(n.message,ts.width-2*ts.wrapPadding,l):n.message,h=((0,s.r)(d)?await (0,s.s)(n.message,(0,s.z)()):i.u.calculateTextDimensions(d,l)).width+2*ts.wrapPadding;c&&n.from===e.nextActor?r[n.to]=s.E.getMax(r[n.to]||0,h):c&&n.from===e.prevActor?r[n.from]=s.E.getMax(r[n.from]||0,h):c&&n.from===n.to?(r[n.from]=s.E.getMax(r[n.from]||0,h/2),r[n.to]=s.E.getMax(r[n.to]||0,h/2)):n.placement===a.db.PLACEMENT.RIGHTOF?r[n.from]=s.E.getMax(r[n.from]||0,h):n.placement===a.db.PLACEMENT.LEFTOF?r[e.prevActor]=s.E.getMax(r[e.prevActor]||0,h):n.placement===a.db.PLACEMENT.OVER&&(e.prevActor&&(r[e.prevActor]=s.E.getMax(r[e.prevActor]||0,h/2)),e.nextActor&&(r[n.from]=s.E.getMax(r[n.from]||0,h/2)))}return n.d.debug("maxMessageWidthPerActor:",r),r}(0,n.p)(tI,"getMaxMessageWidthPerActor");var tf=(0,n.p)(function(t){let e=0,a=th(ts);for(let r in t.links){let t=i.u.calculateTextDimensions(r,a).width+2*ts.wrapPadding+2*ts.boxMargin;e<t&&(e=t)}return e},"getRequiredPopupWidth");async function tL(t,e,a){let r=0;for(let e of t.keys()){let a=t.get(e);a.wrap&&(a.description=i.u.wrapLabel(a.description,ts.width-2*ts.wrapPadding,th(ts)));let n=(0,s.r)(a.description)?await (0,s.s)(a.description,(0,s.z)()):i.u.calculateTextDimensions(a.description,th(ts));a.width=a.wrap?ts.width:s.E.getMax(ts.width,n.width+2*ts.wrapPadding),a.height=a.wrap?s.E.getMax(n.height,ts.height):ts.height,r=s.E.getMax(r,a.height)}for(let a in e){let r=t.get(a);if(!r)continue;let i=t.get(r.nextActor);if(!i){let t=e[a]+ts.actorMargin-r.width/2;r.margin=s.E.getMax(t,ts.actorMargin);continue}let n=e[a]+ts.actorMargin-r.width/2-i.width/2;r.margin=s.E.getMax(n,ts.actorMargin)}let n=0;return a.forEach(e=>{let a=tl(ts),r=e.actorKeys.reduce((e,a)=>e+=t.get(a).width+(t.get(a).margin||0),0);r+=8*ts.boxMargin,r-=2*ts.boxTextMargin,e.wrap&&(e.name=i.u.wrapLabel(e.name,r-2*ts.wrapPadding,a));let o=i.u.calculateTextDimensions(e.name,a);n=s.E.getMax(o.height,n);let c=s.E.getMax(r,o.width+2*ts.wrapPadding);if(e.margin=ts.boxTextMargin,r<c){let t=(c-r)/2;e.margin+=t}}),a.forEach(t=>t.textMaxHeight=n),s.E.getMax(r,ts.height)}(0,n.p)(tL,"calculateActorMargins");var tR=(0,n.p)(async function(t,e,a){let r=e.get(t.from),o=e.get(t.to),c=r.x,l=o.x,d=t.wrap&&t.message,h=(0,s.r)(t.message)?await (0,s.s)(t.message,(0,s.z)()):i.u.calculateTextDimensions(d?i.u.wrapLabel(t.message,ts.width,td(ts)):t.message,td(ts)),p={width:d?ts.width:s.E.getMax(ts.width,h.width+2*ts.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(p.width=d?s.E.getMax(ts.width,h.width):s.E.getMax(r.width/2+o.width/2,h.width+2*ts.noteMargin),p.startx=c+(r.width+ts.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(p.width=d?s.E.getMax(ts.width,h.width+2*ts.noteMargin):s.E.getMax(r.width/2+o.width/2,h.width+2*ts.noteMargin),p.startx=c-p.width+(r.width-ts.actorMargin)/2):t.to===t.from?(h=i.u.calculateTextDimensions(d?i.u.wrapLabel(t.message,s.E.getMax(ts.width,r.width),td(ts)):t.message,td(ts)),p.width=d?s.E.getMax(ts.width,r.width):s.E.getMax(r.width,ts.width,h.width+2*ts.noteMargin),p.startx=c+(r.width-p.width)/2):(p.width=Math.abs(c+r.width/2-(l+o.width/2))+ts.actorMargin,p.startx=c<l?c+r.width/2-ts.actorMargin/2:l+o.width/2-ts.actorMargin/2),d&&(p.message=i.u.wrapLabel(t.message,p.width-2*ts.wrapPadding,td(ts))),n.d.debug(`NM:[${p.startx},${p.stopx},${p.starty},${p.stopy}:${p.width},${p.height}=${t.message}]`),p},"buildNoteModel"),tP=(0,n.p)(function(t,e){let{CENTRAL_CONNECTION:a,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=e.db.LINETYPE;return[a,r,i].includes(t.centralConnection)},"hasCentralConnection"),tN=(0,n.p)(function(t,e,a){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:s,BIDIRECTIONAL_DOTTED:n}=e.db.LINETYPE,o=0;return(t.centralConnection===r||t.centralConnection===i)&&(o+=4),(t.centralConnection===r||t.centralConnection===i)&&(t.type===s||t.type===n)&&(o+=a?0:-6),o},"calculateCentralConnectionOffset"),tw=(0,n.p)(function(t,e){let{SOLID_ARROW_TOP_REVERSE:a,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:s,STICK_ARROW_TOP_REVERSE:n,STICK_ARROW_TOP_REVERSE_DOTTED:o,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=e.db.LINETYPE;return[a,r,i,s,n,o,c,l].includes(t.type)},"isReverseArrowType"),tS=(0,n.p)(function(t,e){let{BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:r}=e.db.LINETYPE;return[a,r].includes(t.type)},"isBidirectionalArrowType"),tD=(0,n.p)(function(t,e,a){let{look:r}=(0,s.z)();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};let[o,c]=t_(t.from,e),[l,d]=t_(t.to,e),h=o<=l,p=h?c:o,E=h?l:d;"neo"===r&&(t.type!==a.db.LINETYPE.SOLID_OPEN&&(E+=h?-3:3),(t.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||t.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(p+=h?3:-3)),p+=tN(t,a,h);let T=Math.abs(l-d)>2,g=(0,n.p)(t=>h?-t:t,"adjustValue");t.from===t.to?E=p:(t.activate&&!T&&(E+=g(ts.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(E+=g(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(p-=g(3)));let u=[o,c,l,d],O=Math.abs(p-E);t.wrap&&t.message&&(t.message=i.u.wrapLabel(t.message,s.E.getMax(O+2*ts.wrapPadding,ts.width),tl(ts)));let y=i.u.calculateTextDimensions(t.message,tl(ts));return{width:s.E.getMax(t.wrap?0:y.width+2*ts.wrapPadding,O+2*ts.wrapPadding,ts.width),height:0,startx:p,stopx:E,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},"buildMessageModel"),tA=(0,n.p)(async function(t,e,a,r){let i,o,c,l={},d=[];for(let a of t){switch(a.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:d.push({id:a.id,msg:a.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:a.message&&(l[(i=d.pop()).id]=i,l[a.id]=i,d.push(i));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:l[(i=d.pop()).id]=i;break;case r.db.LINETYPE.ACTIVE_START:{let t=e.get(a.from?a.from:a.to.actor),r=ty(a.from?a.from:a.to.actor).length,i=t.x+t.width/2+(r-1)*ts.activationWidth/2,s={startx:i,stopx:i+ts.activationWidth,actor:a.from,enabled:!0};tn.activations.push(s)}break;case r.db.LINETYPE.ACTIVE_END:{let t=tn.activations.map(t=>t.actor).lastIndexOf(a.from);tn.activations.splice(t,1).splice(0,1)}}void 0!==a.placement?(o=await tR(a,e,r),a.noteModel=o,d.forEach(t=>{(i=t).from=s.E.getMin(i.from,o.startx),i.to=s.E.getMax(i.to,o.startx+o.width),i.width=s.E.getMax(i.width,Math.abs(i.from-i.to))-ts.labelBoxWidth})):(c=tD(a,e,r),a.msgModel=c,c.startx&&c.stopx&&d.length>0&&d.forEach(t=>{if(i=t,c.startx===c.stopx){let t=e.get(a.from),r=e.get(a.to);i.from=s.E.getMin(t.x-c.width/2,t.x-t.width/2,i.from),i.to=s.E.getMax(r.x+c.width/2,r.x+t.width/2,i.to),i.width=s.E.getMax(i.width,Math.abs(i.to-i.from))-ts.labelBoxWidth}else i.from=s.E.getMin(c.startx,i.from),i.to=s.E.getMax(c.stopx,i.to),i.width=s.E.getMax(i.width,c.width)-ts.labelBoxWidth}))}return tn.activations=[],n.d.debug("Loop type widths:",l),l},"calculateLoopBounds"),tk={parser:l,get db(){return new E},renderer:{bounds:tn,drawActors:tg,drawActorsPopup:tu,setConf:tO,draw:tm},styles:T,init:(0,n.p)(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,(0,s.D)({sequence:{wrap:t.wrap}}))},"init")};t.s(["diagram",0,tk])}]);
|