@bkm016/basalt 0.1.12 → 0.1.13
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/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
- package/{chunk-jpnf71q7.js → chunk-095adzn5.js} +2 -2
- package/chunk-0a7ft50x.js +18 -0
- package/{chunk-vjne04dp.js → chunk-0nedq669.js} +4 -4
- package/chunk-0x9netvr.js +5 -0
- package/{chunk-9as0p561.js → chunk-15ve3nmv.js} +11 -11
- package/chunk-1dbfmejf.js +2 -0
- package/{chunk-hbnmymaq.js → chunk-1q6e3mj7.js} +2 -2
- package/{chunk-85v69h91.js → chunk-22az84sh.js} +2 -2
- package/{chunk-w0rr66z7.js → chunk-2q56egb8.js} +1 -1
- package/{chunk-fhxy6y34.js → chunk-2tf7qfbx.js} +2 -2
- package/{chunk-nw1xpt3s.js → chunk-2zbj8ny6.js} +2 -2
- package/chunk-302n9g7p.js +2 -0
- package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
- package/chunk-41das1ty.js +2 -0
- package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
- package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
- package/{chunk-1zj3zvw5.js → chunk-4k9t9jvx.js} +4 -4
- package/{chunk-eq4wqxzt.js → chunk-4rnmxtpx.js} +2 -2
- package/{chunk-1xfv4bd7.js → chunk-4w9zqv0k.js} +1 -1
- package/chunk-6d9r9p91.js +20 -0
- package/chunk-6f4ht2hw.js +2 -0
- package/{chunk-jj4hqbrx.js → chunk-6sea12mw.js} +3 -3
- package/chunk-74wwdx3y.js +3 -0
- package/{chunk-w6f2r052.js → chunk-77c2cqp2.js} +1 -1
- package/chunk-7chv3knf.js +2 -0
- package/chunk-86yr2c0r.js +3 -0
- package/{chunk-6sz5q3df.js → chunk-8cgz8xv7.js} +2 -2
- package/{chunk-tvm4zmgj.js → chunk-959z9efn.js} +2 -2
- package/{chunk-eyrtbbdd.js → chunk-9e8vhzy7.js} +1 -1
- package/chunk-b516bp7n.js +3 -0
- package/chunk-bja7p3em.js +25 -0
- package/chunk-bng72094.js +2 -0
- package/{chunk-ksk49hv0.js → chunk-bp61xdsc.js} +1 -1
- package/chunk-bq54argx.js +2 -0
- package/chunk-ct77cdg7.js +2 -0
- package/{chunk-02d3x4mj.js → chunk-dk6fgprw.js} +3 -3
- package/chunk-drett6hb.js +2 -0
- package/{chunk-4gtgqcct.js → chunk-edbq461k.js} +3 -3
- package/{chunk-p2pmdbt2.js → chunk-f0h2bv11.js} +12 -12
- package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
- package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
- package/{chunk-fy82qxa1.js → chunk-gpnqmtbk.js} +1 -1
- package/{chunk-kpe7pnhy.js → chunk-h9zxqeqr.js} +4 -4
- package/{chunk-qfcr5g35.js → chunk-jjtt9aq8.js} +3 -3
- package/{chunk-5wnmbc1b.js → chunk-kbpbrr11.js} +2 -2
- package/chunk-m71pj3g1.js +2 -0
- package/chunk-mdkfm1ak.js +7 -0
- package/chunk-mf04h0yy.js +7 -0
- package/chunk-n22vd4at.js +2 -0
- package/{chunk-v7wcchy2.js → chunk-nbjnwd54.js} +1 -1
- package/{chunk-1h34mzh7.js → chunk-pryvvs96.js} +22 -22
- package/{chunk-2kxnw7vs.js → chunk-r1jn77q6.js} +2 -2
- package/{chunk-ypqjfv3a.js → chunk-rn3jwyh1.js} +2 -2
- package/chunk-sgrrxsnz.js +482 -0
- package/chunk-sgz87ht5.js +2 -0
- package/{chunk-stj493dn.js → chunk-snz19yc2.js} +2 -2
- package/{chunk-qs8zzg50.js → chunk-szj85dqe.js} +2 -2
- package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
- package/{chunk-hc300148.js → chunk-tfhze1vq.js} +2 -2
- package/{chunk-01nve4qy.js → chunk-tjg0gcks.js} +1 -1
- package/{chunk-cbgpymt4.js → chunk-tnj2kqb8.js} +1 -1
- package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
- package/{chunk-82v8jh1h.js → chunk-xvm0y99b.js} +2 -2
- package/{chunk-rwks9zaw.js → chunk-y23dpz5e.js} +2 -2
- package/{chunk-ejjem0tc.js → chunk-y4pvhes1.js} +6 -6
- package/{chunk-bwawt15q.js → chunk-ydzag81d.js} +2 -2
- package/chunk-ymg7mtcx.js +3 -0
- package/chunk-yy1f9jxc.js +4044 -0
- package/{chunk-ntks40jd.js → chunk-z0c8ek0j.js} +5 -5
- package/chunk-zk91579b.js +3 -0
- package/{chunk-0fc9apfn.js → chunk-zx75vnw8.js} +18 -18
- package/compiled.js +85 -12
- package/package.json +1 -1
- package/ui-test-worker.js +53 -53
- package/web/{chunk-aeymdtm1.js → chunk-0jbf73pr.js} +3 -3
- package/web/{chunk-7vgh17es.js → chunk-0rhx7qb8.js} +1 -1
- package/web/{chunk-7adsmqv6.js → chunk-0rvwj2wh.js} +2 -2
- package/web/chunk-12qf1r6m.js +1 -0
- package/web/{chunk-dndd757x.js → chunk-14vmr99v.js} +3 -3
- package/web/{chunk-4f6a8dsk.js → chunk-16jc5m0f.js} +1 -1
- package/web/{chunk-bra33pt0.js → chunk-1m6fx2h7.js} +2 -2
- package/web/{chunk-hva7xyne.js → chunk-1xm9x7d6.js} +1 -1
- package/web/{chunk-8539865x.js → chunk-20jxvmbw.js} +1 -1
- package/web/chunk-2n5xbnrt.js +1 -0
- package/web/{chunk-bygwbpvq.js → chunk-2sef2wft.js} +2 -2
- package/web/{chunk-w9gnqkez.js → chunk-2x7vmhm0.js} +2 -2
- package/web/{chunk-19zd0tye.js → chunk-2y1avvqj.js} +8 -8
- package/web/chunk-36s08nye.js +1 -0
- package/web/chunk-3ctmehg4.js +1 -0
- package/web/{chunk-ncfzmf2g.js → chunk-3jjksgze.js} +1 -1
- package/web/{chunk-aebrw6cv.js → chunk-3p9w8sg5.js} +2 -2
- package/web/{chunk-sdr5wa4z.js → chunk-3wpxymxa.js} +3 -3
- package/web/{chunk-v34mr9ky.js → chunk-4py9sndw.js} +3 -3
- package/web/chunk-4swea9sn.js +1 -0
- package/web/chunk-4zz5a483.js +1 -0
- package/web/{chunk-3rkkp6ed.js → chunk-5cwxhhae.js} +5 -5
- package/web/{chunk-d57fm7k0.js → chunk-5ym5ffd5.js} +2 -2
- package/web/{chunk-gten0rpx.js → chunk-6e87m0nm.js} +2 -2
- package/web/{chunk-b99k8q22.js → chunk-6rsr2cyw.js} +8 -8
- package/web/chunk-6y55gk1n.js +1 -0
- package/web/chunk-7aep7k4v.js +1 -0
- package/web/{chunk-yf8ykk4v.js → chunk-8j4tzff5.js} +3 -3
- package/web/{chunk-ny436sqg.js → chunk-8tgavnwx.js} +1 -1
- package/web/{chunk-xvfeq8v2.js → chunk-97t3ngqf.js} +12 -12
- package/web/{chunk-gkmaryr4.js → chunk-980zhtht.js} +1 -1
- package/web/chunk-9k7fkx80.js +1 -0
- package/web/{chunk-hxbfkdjd.js → chunk-9wz8jne3.js} +1 -1
- package/web/chunk-a00vg115.js +1 -0
- package/web/chunk-a4gbxnm3.js +1 -0
- package/web/{chunk-6f2sz84q.js → chunk-a6g3nqp0.js} +1 -1
- package/web/{chunk-n9v14vyd.js → chunk-a9er7a7c.js} +22 -22
- package/web/chunk-atppv8fk.js +1 -0
- package/web/{chunk-xbyrgyy0.js → chunk-awkdw9rw.js} +2 -2
- package/web/{chunk-hqxc9m07.js → chunk-b4gcpsbg.js} +10 -10
- package/web/{chunk-qdd3bx8q.js → chunk-b9jry5a3.js} +1 -1
- package/web/{chunk-jyf7a7yp.js → chunk-ba9qy65y.js} +1 -1
- package/web/chunk-bq6mep6p.js +2 -0
- package/web/chunk-bwy3e58v.js +1 -0
- package/web/{chunk-aa46mrgh.js → chunk-c57f714b.js} +2 -2
- package/web/{chunk-b5zf1hs3.js → chunk-c6m4vfn5.js} +101 -101
- package/web/{chunk-5np514v5.js → chunk-cr04125j.js} +4 -4
- package/web/{chunk-ym7kv2hs.js → chunk-cr05dttm.js} +1 -1
- package/web/{chunk-2cyzaqjy.js → chunk-ct7z7bea.js} +3 -3
- package/web/{chunk-y2rzeb4v.js → chunk-ct90yf8z.js} +2 -2
- package/web/{chunk-yjs6jmdb.js → chunk-ddg8rz82.js} +3 -3
- package/web/{chunk-8cnjd0f2.js → chunk-dmha2y9c.js} +18 -18
- package/web/{chunk-jeafmjsm.js → chunk-e57h40qa.js} +6 -6
- package/web/chunk-eeesa5q1.js +1 -0
- package/web/{chunk-4wwd3pfz.js → chunk-eqndhs21.js} +2 -2
- package/web/{chunk-td83xf12.js → chunk-eqxy6535.js} +2 -2
- package/web/{chunk-wvrs986a.js → chunk-et1rsgmp.js} +3 -3
- package/web/chunk-f7jpakwh.js +1 -0
- package/web/{chunk-v1hfbjz9.js → chunk-fnvgdvrg.js} +4 -4
- package/web/chunk-fp62avjh.js +1 -0
- package/web/{chunk-6jb2zyp6.js → chunk-frnh4zqf.js} +2 -2
- package/web/chunk-g0be12na.js +1 -0
- package/web/{chunk-60mym60n.js → chunk-g7hqafb8.js} +1 -1
- package/web/{chunk-wqzbxzk3.js → chunk-ga07tv37.js} +1 -1
- package/web/chunk-gr163fex.js +1 -0
- package/web/chunk-gxtz10wf.js +1 -0
- package/web/{chunk-pjpre6de.js → chunk-h1k2kqbs.js} +6 -6
- package/web/{chunk-7tkgbbf9.js → chunk-h6k1x096.js} +2 -2
- package/web/{chunk-885kpj14.js → chunk-jccz14ye.js} +2 -2
- package/web/{chunk-d73zkc4q.js → chunk-jh33m2mq.js} +2 -2
- package/web/{chunk-g488hxx0.js → chunk-jh3k7xex.js} +3 -3
- package/web/{chunk-3qxxrwsp.js → chunk-jpem3qvs.js} +10 -10
- package/web/chunk-k9qnvx86.js +2 -0
- package/web/chunk-kcnj0gan.js +1 -0
- package/web/{chunk-2jfesv7m.js → chunk-ke8dffnk.js} +2 -2
- package/web/chunk-kpp5xqsb.js +1 -0
- package/web/chunk-m33yted6.js +1 -0
- package/web/chunk-me5jqqn6.js +1 -0
- package/web/{chunk-7v85yvb2.js → chunk-mkxeenph.js} +1 -1
- package/web/{chunk-mxkbmgcv.js → chunk-mnf4ngj9.js} +1 -1
- package/web/{chunk-30aeb767.js → chunk-mykrm8ba.js} +2 -2
- package/web/chunk-mzqqwbmr.js +1 -0
- package/web/chunk-npyrdsf8.css +1 -0
- package/web/chunk-p6e2vr51.js +34 -0
- package/web/{chunk-3n9ypydh.js → chunk-p7pa02k9.js} +2 -2
- package/web/chunk-q34as3v6.js +1 -0
- package/web/{chunk-7ksg3ccg.js → chunk-q4vy3dkk.js} +2 -2
- package/web/chunk-q6c8p73w.js +1 -0
- package/web/{chunk-h754ntg7.js → chunk-qb8mbptk.js} +1 -1
- package/web/{chunk-g4zm0crw.js → chunk-qbmtah1x.js} +1 -1
- package/web/chunk-qn93we3a.js +1 -0
- package/web/{chunk-c3fty2c2.js → chunk-qq06x2ce.js} +7 -7
- package/web/{chunk-fj753yzt.js → chunk-qq6m2my8.js} +2 -2
- package/web/chunk-r1f1egve.js +1 -0
- package/web/{chunk-80z8s8zb.js → chunk-s935z8er.js} +1 -1
- package/web/{chunk-3psgr0q8.js → chunk-sq75q603.js} +20 -20
- package/web/{chunk-qp3tjhaq.js → chunk-ss96cz1f.js} +1 -1
- package/web/{chunk-hn8m1vsg.js → chunk-t82sngk9.js} +7 -7
- package/web/chunk-tt9410zw.js +8 -0
- package/web/{chunk-act3rr85.js → chunk-v4cqc9f9.js} +1 -1
- package/web/chunk-ve8gy05p.js +1142 -0
- package/web/chunk-vg1ebkce.js +1 -0
- package/web/{chunk-k4dnjf8n.js → chunk-vk7ch6fh.js} +3 -3
- package/web/chunk-vnt34mkb.js +1 -0
- package/web/{chunk-kerfb21g.js → chunk-w28dn4dw.js} +1 -1
- package/web/{chunk-rdr6wt22.js → chunk-w4tfad6c.js} +4 -4
- package/web/{chunk-81s15c2e.js → chunk-wpxtkxjt.js} +2 -2
- package/web/{chunk-h24ybwp6.js → chunk-xcyqd7cn.js} +1 -1
- package/web/chunk-xe121vg7.js +1 -0
- package/web/chunk-xh4xn1az.js +1 -0
- package/web/{chunk-e94pd9rr.js → chunk-xk1vkcj4.js} +9 -9
- package/web/chunk-xrk5ewsn.js +1 -0
- package/web/{chunk-5g8md2wg.js → chunk-xvm66b7v.js} +4 -4
- package/web/{chunk-q1zxvjhs.js → chunk-xxmaqj1m.js} +2 -2
- package/web/chunk-xzwxcxb4.js +1 -0
- package/web/{chunk-xpecre7w.js → chunk-y9waq403.js} +4 -4
- package/web/chunk-ydhnkws0.js +1 -0
- package/web/{chunk-ar6jnhm5.js → chunk-yn4t5s9r.js} +1 -1
- package/web/chunk-ys2tns0p.js +1 -0
- package/web/chunk-zb61mf0a.js +1 -0
- package/web/{chunk-r6kk4vp1.js → chunk-ze6azq7z.js} +4 -4
- package/web/chunk-zh7193nq.js +2 -0
- package/web/chunk-zqcg6frm.js +1 -0
- package/web/{chunk-enwfd8d5.js → chunk-zxrbbbtp.js} +2 -2
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-2fyjph3f.js +0 -2
- package/chunk-37zystxb.js +0 -25
- package/chunk-3k627vf2.js +0 -3
- package/chunk-7er5pz7s.js +0 -479
- package/chunk-7g5smgjj.js +0 -2
- package/chunk-7m3jagqn.js +0 -2
- package/chunk-9c4gdg1q.js +0 -3
- package/chunk-b2bxqeb4.js +0 -2
- package/chunk-bpw6q7g0.js +0 -3
- package/chunk-cdw03j4t.js +0 -20
- package/chunk-ch1r3ted.js +0 -2
- package/chunk-cmwdjes8.js +0 -18
- package/chunk-db7ws33a.js +0 -7
- package/chunk-e1x629v0.js +0 -5
- package/chunk-j64dc767.js +0 -3
- package/chunk-m4bg1apa.js +0 -7
- package/chunk-nhm9z3d8.js +0 -2
- package/chunk-pnspvnyd.js +0 -2
- package/chunk-qnkrrwmg.js +0 -2
- package/chunk-r4gm8ngh.js +0 -2
- package/chunk-rks90mh1.js +0 -2
- package/chunk-t7te60m7.js +0 -2
- package/chunk-tv52xajf.js +0 -2
- package/chunk-wqqjzsjt.js +0 -3983
- package/chunk-xef4642x.js +0 -3
- package/web/chunk-04drx71p.js +0 -1
- package/web/chunk-0mdf1qja.js +0 -1
- package/web/chunk-0rdgt4jb.css +0 -1
- package/web/chunk-1m0kp0g3.js +0 -8
- package/web/chunk-3j2tcphs.js +0 -1
- package/web/chunk-3k9h7a73.js +0 -1142
- package/web/chunk-3m1bb2fw.js +0 -1
- package/web/chunk-55nvm2mj.js +0 -1
- package/web/chunk-5dkqfnh7.js +0 -2
- package/web/chunk-7ky5nrrr.js +0 -1
- package/web/chunk-8sdjgv3k.js +0 -1
- package/web/chunk-9bxtzwtc.js +0 -1
- package/web/chunk-9jy8nc4r.js +0 -1
- package/web/chunk-bcjgzwef.js +0 -1
- package/web/chunk-cxpnj495.js +0 -2
- package/web/chunk-d1btrqmw.js +0 -1
- package/web/chunk-d94t9z70.js +0 -1
- package/web/chunk-e68jw0bg.js +0 -1
- package/web/chunk-fr4fft89.js +0 -1
- package/web/chunk-gckmcef6.js +0 -1
- package/web/chunk-gnb09wmx.js +0 -1
- package/web/chunk-hrgqc1vr.js +0 -1
- package/web/chunk-j9c8fa82.js +0 -1
- package/web/chunk-jz5mmp64.js +0 -1
- package/web/chunk-kxeaj44h.js +0 -1
- package/web/chunk-m0136xav.js +0 -1
- package/web/chunk-m1rdyvb5.js +0 -1
- package/web/chunk-m6vyvgm5.js +0 -1
- package/web/chunk-my0ec787.js +0 -1
- package/web/chunk-nkpdd9hw.js +0 -1
- package/web/chunk-pbp1p5ex.js +0 -1
- package/web/chunk-ph75hddv.js +0 -1
- package/web/chunk-phdfyqaa.js +0 -1
- package/web/chunk-phxa5krt.js +0 -1
- package/web/chunk-r4zbw4zj.js +0 -2
- package/web/chunk-ry4ycah9.js +0 -1
- package/web/chunk-sqm16fat.js +0 -1
- package/web/chunk-tj1fn8v2.js +0 -1
- package/web/chunk-v0wtk059.js +0 -34
- package/web/chunk-v1qt3gq4.js +0 -1
- package/web/chunk-v854w9yn.js +0 -1
- package/web/chunk-ve56gxq0.js +0 -1
- package/web/chunk-w573ym17.js +0 -1
- package/web/chunk-x0mjydtp.js +0 -1
- package/web/chunk-zhybh04p.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,a,oe,O,b,F,S,E,T,A,l,p,Dn,Xr,Ye,w,Jr}from"./chunk-b5zf1hs3.js";import{an}from"./chunk-2jfesv7m.js";var Gt=function(){var e=t(function(wt,k,R,D){for(R=R||{},D=wt.length;D--;R[wt[D]]=k);return R},"o"),n=[1,24],i=[1,25],o=[1,26],f=[1,27],u=[1,28],r=[1,63],d=[1,64],s=[1,65],y=[1,66],g=[1,67],m=[1,68],v=[1,69],P=[1,29],V=[1,30],z=[1,31],Y=[1,32],U=[1,33],H=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],Rt=[1,60],Bt=[14,42],$t=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Yt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],N=[1,82],L=[1,83],I=[1,84],M=[1,85],B=[12,14,42],ye=[12,14,33,42],Xt=[12,14,33,42,76,77,79,80],Nt=[12,33],te=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ee={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(k,R,D,x,j,h,Ft){var _=h.length-1;switch(j){case 3:x.setDirection("TB");break;case 4:x.setDirection("BT");break;case 5:x.setDirection("RL");break;case 6:x.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:x.setC4Type(h[_-3]);break;case 19:x.setTitle(h[_].substring(6)),this.$=h[_].substring(6);break;case 20:x.setAccDescription(h[_].substring(15)),this.$=h[_].substring(15);break;case 21:this.$=h[_].trim(),x.setTitle(this.$);break;case 22:case 23:this.$=h[_].trim(),x.setAccDescription(this.$);break;case 28:h[_].splice(2,0,"ENTERPRISE"),x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 29:h[_].splice(2,0,"SYSTEM"),x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 30:x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 31:h[_].splice(2,0,"CONTAINER"),x.addContainerBoundary(...h[_]),this.$=h[_];break;case 32:x.addDeploymentNode("node",...h[_]),this.$=h[_];break;case 33:x.addDeploymentNode("nodeL",...h[_]),this.$=h[_];break;case 34:x.addDeploymentNode("nodeR",...h[_]),this.$=h[_];break;case 35:x.popBoundaryParseStack();break;case 39:x.addPersonOrSystem("person",...h[_]),this.$=h[_];break;case 40:x.addPersonOrSystem("external_person",...h[_]),this.$=h[_];break;case 41:x.addPersonOrSystem("system",...h[_]),this.$=h[_];break;case 42:x.addPersonOrSystem("system_db",...h[_]),this.$=h[_];break;case 43:x.addPersonOrSystem("system_queue",...h[_]),this.$=h[_];break;case 44:x.addPersonOrSystem("external_system",...h[_]),this.$=h[_];break;case 45:x.addPersonOrSystem("external_system_db",...h[_]),this.$=h[_];break;case 46:x.addPersonOrSystem("external_system_queue",...h[_]),this.$=h[_];break;case 47:x.addContainer("container",...h[_]),this.$=h[_];break;case 48:x.addContainer("container_db",...h[_]),this.$=h[_];break;case 49:x.addContainer("container_queue",...h[_]),this.$=h[_];break;case 50:x.addContainer("external_container",...h[_]),this.$=h[_];break;case 51:x.addContainer("external_container_db",...h[_]),this.$=h[_];break;case 52:x.addContainer("external_container_queue",...h[_]),this.$=h[_];break;case 53:x.addComponent("component",...h[_]),this.$=h[_];break;case 54:x.addComponent("component_db",...h[_]),this.$=h[_];break;case 55:x.addComponent("component_queue",...h[_]),this.$=h[_];break;case 56:x.addComponent("external_component",...h[_]),this.$=h[_];break;case 57:x.addComponent("external_component_db",...h[_]),this.$=h[_];break;case 58:x.addComponent("external_component_queue",...h[_]),this.$=h[_];break;case 60:x.addRel("rel",...h[_]),this.$=h[_];break;case 61:x.addRel("birel",...h[_]),this.$=h[_];break;case 62:x.addRel("rel_u",...h[_]),this.$=h[_];break;case 63:x.addRel("rel_d",...h[_]),this.$=h[_];break;case 64:x.addRel("rel_l",...h[_]),this.$=h[_];break;case 65:x.addRel("rel_r",...h[_]),this.$=h[_];break;case 66:x.addRel("rel_b",...h[_]),this.$=h[_];break;case 67:h[_].splice(0,1),x.addRel("rel",...h[_]),this.$=h[_];break;case 68:x.updateElStyle("update_el_style",...h[_]),this.$=h[_];break;case 69:x.updateRelStyle("update_rel_style",...h[_]),this.$=h[_];break;case 70:x.updateLayoutConfig("update_layout_config",...h[_]),this.$=h[_];break;case 71:this.$=[h[_]];break;case 72:h[_].unshift(h[_-1]),this.$=h[_];break;case 73:case 75:this.$=h[_].trim();break;case 74:let At={};At[h[_-1].trim()]=h[_].trim(),this.$=At;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:70,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:71,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:72,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:73,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{14:[1,74]},e(Bt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:d,37:s,38:y,39:g,40:m,41:v,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Bt,[2,14]),e($t,[2,16],{12:[1,76]}),e(Bt,[2,36],{12:[1,77]}),e(Yt,[2,19]),e(Yt,[2,20]),{25:[1,78]},{27:[1,79]},e(Yt,[2,23]),{35:80,75:81,76:N,77:L,79:I,80:M},{35:86,75:81,76:N,77:L,79:I,80:M},{35:87,75:81,76:N,77:L,79:I,80:M},{35:88,75:81,76:N,77:L,79:I,80:M},{35:89,75:81,76:N,77:L,79:I,80:M},{35:90,75:81,76:N,77:L,79:I,80:M},{35:91,75:81,76:N,77:L,79:I,80:M},{35:92,75:81,76:N,77:L,79:I,80:M},{35:93,75:81,76:N,77:L,79:I,80:M},{35:94,75:81,76:N,77:L,79:I,80:M},{35:95,75:81,76:N,77:L,79:I,80:M},{35:96,75:81,76:N,77:L,79:I,80:M},{35:97,75:81,76:N,77:L,79:I,80:M},{35:98,75:81,76:N,77:L,79:I,80:M},{35:99,75:81,76:N,77:L,79:I,80:M},{35:100,75:81,76:N,77:L,79:I,80:M},{35:101,75:81,76:N,77:L,79:I,80:M},{35:102,75:81,76:N,77:L,79:I,80:M},{35:103,75:81,76:N,77:L,79:I,80:M},{35:104,75:81,76:N,77:L,79:I,80:M},e(B,[2,59]),{35:105,75:81,76:N,77:L,79:I,80:M},{35:106,75:81,76:N,77:L,79:I,80:M},{35:107,75:81,76:N,77:L,79:I,80:M},{35:108,75:81,76:N,77:L,79:I,80:M},{35:109,75:81,76:N,77:L,79:I,80:M},{35:110,75:81,76:N,77:L,79:I,80:M},{35:111,75:81,76:N,77:L,79:I,80:M},{35:112,75:81,76:N,77:L,79:I,80:M},{35:113,75:81,76:N,77:L,79:I,80:M},{35:114,75:81,76:N,77:L,79:I,80:M},{35:115,75:81,76:N,77:L,79:I,80:M},{20:116,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{12:[1,118],33:[1,117]},{35:119,75:81,76:N,77:L,79:I,80:M},{35:120,75:81,76:N,77:L,79:I,80:M},{35:121,75:81,76:N,77:L,79:I,80:M},{35:122,75:81,76:N,77:L,79:I,80:M},{35:123,75:81,76:N,77:L,79:I,80:M},{35:124,75:81,76:N,77:L,79:I,80:M},{35:125,75:81,76:N,77:L,79:I,80:M},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Bt,[2,15]),e($t,[2,17],{21:22,19:130,22:n,23:i,24:o,26:f,28:u}),e(Bt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:i,24:o,26:f,28:u,34:r,36:d,37:s,38:y,39:g,40:m,41:v,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Yt,[2,21]),e(Yt,[2,22]),e(B,[2,39]),e(ye,[2,71],{75:81,35:132,76:N,77:L,79:I,80:M}),e(Xt,[2,73]),{78:[1,133]},e(Xt,[2,75]),e(Xt,[2,76]),e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(B,[2,43]),e(B,[2,44]),e(B,[2,45]),e(B,[2,46]),e(B,[2,47]),e(B,[2,48]),e(B,[2,49]),e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(B,[2,60]),e(B,[2,61]),e(B,[2,62]),e(B,[2,63]),e(B,[2,64]),e(B,[2,65]),e(B,[2,66]),e(B,[2,67]),e(B,[2,68]),e(B,[2,69]),e(B,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Nt,[2,28]),e(Nt,[2,29]),e(Nt,[2,30]),e(Nt,[2,31]),e(Nt,[2,32]),e(Nt,[2,33]),e(Nt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e($t,[2,18]),e(Bt,[2,38]),e(ye,[2,72]),e(Xt,[2,74]),e(B,[2,24]),e(B,[2,35]),e(te,[2,25]),e(te,[2,26],{12:[1,138]}),e(te,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(k,R){if(R.recoverable)this.trace(k);else{var D=Error(k);throw D.hash=R,D}},"parseError"),parse:t(function(k){var R=this,D=[0],x=[],j=[null],h=[],Ft=this.table,_="",At=0,_e=0,be=0,Be=2,me=1,Ve=h.slice.call(arguments,1),W=Object.create(this.lexer),Lt={yy:{}};for(var ne in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ne))Lt.yy[ne]=this.yy[ne];if(W.setInput(k,Lt.yy),Lt.yy.lexer=W,Lt.yy.parser=this,typeof W.yylloc>"u")W.yylloc={};var re=W.yylloc;h.push(re);var Fe=W.options&&W.options.ranges;if(typeof Lt.yy.parseError==="function")this.parseError=Lt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(K){D.length=D.length-2*K,j.length=j.length-K,h.length=h.length-K}t(Ue,"popStack");function ge(){var K=x.pop()||W.lex()||me;if(typeof K!=="number"){if(K instanceof Array)x=K,K=x.pop();K=R.symbols_[K]||K}return K}t(ge,"lex");var X,se,It,Q,X0,ae,Vt={},Ht,et,xe,Qt;while(!0){if(It=D[D.length-1],this.defaultActions[It])Q=this.defaultActions[It];else{if(X===null||typeof X>"u")X=ge();Q=Ft[It]&&Ft[It][X]}if(typeof Q>"u"||!Q.length||!Q[0]){var ie="";Qt=[];for(Ht in Ft[It])if(this.terminals_[Ht]&&Ht>Be)Qt.push("'"+this.terminals_[Ht]+"'");if(W.showPosition)ie="Parse error on line "+(At+1)+`:
|
|
1
|
+
import{t,a,se,O,b,F,S,E,T,A,l,p,Nn,Qr,Ye,w,ta}from"./chunk-c6m4vfn5.js";import{an}from"./chunk-ke8dffnk.js";var Gt=function(){var e=t(function(wt,k,R,D){for(R=R||{},D=wt.length;D--;R[wt[D]]=k);return R},"o"),n=[1,24],i=[1,25],o=[1,26],f=[1,27],u=[1,28],r=[1,63],d=[1,64],s=[1,65],y=[1,66],g=[1,67],m=[1,68],v=[1,69],P=[1,29],V=[1,30],z=[1,31],Y=[1,32],U=[1,33],H=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],Rt=[1,60],Bt=[14,42],$t=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Yt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],N=[1,82],L=[1,83],I=[1,84],M=[1,85],B=[12,14,42],ye=[12,14,33,42],Xt=[12,14,33,42,76,77,79,80],Nt=[12,33],te=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ee={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(k,R,D,x,j,h,Ft){var _=h.length-1;switch(j){case 3:x.setDirection("TB");break;case 4:x.setDirection("BT");break;case 5:x.setDirection("RL");break;case 6:x.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:x.setC4Type(h[_-3]);break;case 19:x.setTitle(h[_].substring(6)),this.$=h[_].substring(6);break;case 20:x.setAccDescription(h[_].substring(15)),this.$=h[_].substring(15);break;case 21:this.$=h[_].trim(),x.setTitle(this.$);break;case 22:case 23:this.$=h[_].trim(),x.setAccDescription(this.$);break;case 28:h[_].splice(2,0,"ENTERPRISE"),x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 29:h[_].splice(2,0,"SYSTEM"),x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 30:x.addPersonOrSystemBoundary(...h[_]),this.$=h[_];break;case 31:h[_].splice(2,0,"CONTAINER"),x.addContainerBoundary(...h[_]),this.$=h[_];break;case 32:x.addDeploymentNode("node",...h[_]),this.$=h[_];break;case 33:x.addDeploymentNode("nodeL",...h[_]),this.$=h[_];break;case 34:x.addDeploymentNode("nodeR",...h[_]),this.$=h[_];break;case 35:x.popBoundaryParseStack();break;case 39:x.addPersonOrSystem("person",...h[_]),this.$=h[_];break;case 40:x.addPersonOrSystem("external_person",...h[_]),this.$=h[_];break;case 41:x.addPersonOrSystem("system",...h[_]),this.$=h[_];break;case 42:x.addPersonOrSystem("system_db",...h[_]),this.$=h[_];break;case 43:x.addPersonOrSystem("system_queue",...h[_]),this.$=h[_];break;case 44:x.addPersonOrSystem("external_system",...h[_]),this.$=h[_];break;case 45:x.addPersonOrSystem("external_system_db",...h[_]),this.$=h[_];break;case 46:x.addPersonOrSystem("external_system_queue",...h[_]),this.$=h[_];break;case 47:x.addContainer("container",...h[_]),this.$=h[_];break;case 48:x.addContainer("container_db",...h[_]),this.$=h[_];break;case 49:x.addContainer("container_queue",...h[_]),this.$=h[_];break;case 50:x.addContainer("external_container",...h[_]),this.$=h[_];break;case 51:x.addContainer("external_container_db",...h[_]),this.$=h[_];break;case 52:x.addContainer("external_container_queue",...h[_]),this.$=h[_];break;case 53:x.addComponent("component",...h[_]),this.$=h[_];break;case 54:x.addComponent("component_db",...h[_]),this.$=h[_];break;case 55:x.addComponent("component_queue",...h[_]),this.$=h[_];break;case 56:x.addComponent("external_component",...h[_]),this.$=h[_];break;case 57:x.addComponent("external_component_db",...h[_]),this.$=h[_];break;case 58:x.addComponent("external_component_queue",...h[_]),this.$=h[_];break;case 60:x.addRel("rel",...h[_]),this.$=h[_];break;case 61:x.addRel("birel",...h[_]),this.$=h[_];break;case 62:x.addRel("rel_u",...h[_]),this.$=h[_];break;case 63:x.addRel("rel_d",...h[_]),this.$=h[_];break;case 64:x.addRel("rel_l",...h[_]),this.$=h[_];break;case 65:x.addRel("rel_r",...h[_]),this.$=h[_];break;case 66:x.addRel("rel_b",...h[_]),this.$=h[_];break;case 67:h[_].splice(0,1),x.addRel("rel",...h[_]),this.$=h[_];break;case 68:x.updateElStyle("update_el_style",...h[_]),this.$=h[_];break;case 69:x.updateRelStyle("update_rel_style",...h[_]),this.$=h[_];break;case 70:x.updateLayoutConfig("update_layout_config",...h[_]),this.$=h[_];break;case 71:this.$=[h[_]];break;case 72:h[_].unshift(h[_-1]),this.$=h[_];break;case 73:case 75:this.$=h[_].trim();break;case 74:let At={};At[h[_-1].trim()]=h[_].trim(),this.$=At;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:70,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:71,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:72,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:73,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:u,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{14:[1,74]},e(Bt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:d,37:s,38:y,39:g,40:m,41:v,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Bt,[2,14]),e($t,[2,16],{12:[1,76]}),e(Bt,[2,36],{12:[1,77]}),e(Yt,[2,19]),e(Yt,[2,20]),{25:[1,78]},{27:[1,79]},e(Yt,[2,23]),{35:80,75:81,76:N,77:L,79:I,80:M},{35:86,75:81,76:N,77:L,79:I,80:M},{35:87,75:81,76:N,77:L,79:I,80:M},{35:88,75:81,76:N,77:L,79:I,80:M},{35:89,75:81,76:N,77:L,79:I,80:M},{35:90,75:81,76:N,77:L,79:I,80:M},{35:91,75:81,76:N,77:L,79:I,80:M},{35:92,75:81,76:N,77:L,79:I,80:M},{35:93,75:81,76:N,77:L,79:I,80:M},{35:94,75:81,76:N,77:L,79:I,80:M},{35:95,75:81,76:N,77:L,79:I,80:M},{35:96,75:81,76:N,77:L,79:I,80:M},{35:97,75:81,76:N,77:L,79:I,80:M},{35:98,75:81,76:N,77:L,79:I,80:M},{35:99,75:81,76:N,77:L,79:I,80:M},{35:100,75:81,76:N,77:L,79:I,80:M},{35:101,75:81,76:N,77:L,79:I,80:M},{35:102,75:81,76:N,77:L,79:I,80:M},{35:103,75:81,76:N,77:L,79:I,80:M},{35:104,75:81,76:N,77:L,79:I,80:M},e(B,[2,59]),{35:105,75:81,76:N,77:L,79:I,80:M},{35:106,75:81,76:N,77:L,79:I,80:M},{35:107,75:81,76:N,77:L,79:I,80:M},{35:108,75:81,76:N,77:L,79:I,80:M},{35:109,75:81,76:N,77:L,79:I,80:M},{35:110,75:81,76:N,77:L,79:I,80:M},{35:111,75:81,76:N,77:L,79:I,80:M},{35:112,75:81,76:N,77:L,79:I,80:M},{35:113,75:81,76:N,77:L,79:I,80:M},{35:114,75:81,76:N,77:L,79:I,80:M},{35:115,75:81,76:N,77:L,79:I,80:M},{20:116,29:49,30:61,32:62,34:r,36:d,37:s,38:y,39:g,40:m,41:v,43:23,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{12:[1,118],33:[1,117]},{35:119,75:81,76:N,77:L,79:I,80:M},{35:120,75:81,76:N,77:L,79:I,80:M},{35:121,75:81,76:N,77:L,79:I,80:M},{35:122,75:81,76:N,77:L,79:I,80:M},{35:123,75:81,76:N,77:L,79:I,80:M},{35:124,75:81,76:N,77:L,79:I,80:M},{35:125,75:81,76:N,77:L,79:I,80:M},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Bt,[2,15]),e($t,[2,17],{21:22,19:130,22:n,23:i,24:o,26:f,28:u}),e(Bt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:i,24:o,26:f,28:u,34:r,36:d,37:s,38:y,39:g,40:m,41:v,44:P,45:V,46:z,47:Y,48:U,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Yt,[2,21]),e(Yt,[2,22]),e(B,[2,39]),e(ye,[2,71],{75:81,35:132,76:N,77:L,79:I,80:M}),e(Xt,[2,73]),{78:[1,133]},e(Xt,[2,75]),e(Xt,[2,76]),e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(B,[2,43]),e(B,[2,44]),e(B,[2,45]),e(B,[2,46]),e(B,[2,47]),e(B,[2,48]),e(B,[2,49]),e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(B,[2,60]),e(B,[2,61]),e(B,[2,62]),e(B,[2,63]),e(B,[2,64]),e(B,[2,65]),e(B,[2,66]),e(B,[2,67]),e(B,[2,68]),e(B,[2,69]),e(B,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Nt,[2,28]),e(Nt,[2,29]),e(Nt,[2,30]),e(Nt,[2,31]),e(Nt,[2,32]),e(Nt,[2,33]),e(Nt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e($t,[2,18]),e(Bt,[2,38]),e(ye,[2,72]),e(Xt,[2,74]),e(B,[2,24]),e(B,[2,35]),e(te,[2,25]),e(te,[2,26],{12:[1,138]}),e(te,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(k,R){if(R.recoverable)this.trace(k);else{var D=Error(k);throw D.hash=R,D}},"parseError"),parse:t(function(k){var R=this,D=[0],x=[],j=[null],h=[],Ft=this.table,_="",At=0,_e=0,be=0,Be=2,me=1,Ve=h.slice.call(arguments,1),W=Object.create(this.lexer),Lt={yy:{}};for(var ne in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ne))Lt.yy[ne]=this.yy[ne];if(W.setInput(k,Lt.yy),Lt.yy.lexer=W,Lt.yy.parser=this,typeof W.yylloc>"u")W.yylloc={};var re=W.yylloc;h.push(re);var Fe=W.options&&W.options.ranges;if(typeof Lt.yy.parseError==="function")this.parseError=Lt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(K){D.length=D.length-2*K,j.length=j.length-K,h.length=h.length-K}t(Ue,"popStack");function ge(){var K=x.pop()||W.lex()||me;if(typeof K!=="number"){if(K instanceof Array)x=K,K=x.pop();K=R.symbols_[K]||K}return K}t(ge,"lex");var X,ae,It,Q,X0,ie,Vt={},Ht,et,xe,Qt;while(!0){if(It=D[D.length-1],this.defaultActions[It])Q=this.defaultActions[It];else{if(X===null||typeof X>"u")X=ge();Q=Ft[It]&&Ft[It][X]}if(typeof Q>"u"||!Q.length||!Q[0]){var oe="";Qt=[];for(Ht in Ft[It])if(this.terminals_[Ht]&&Ht>Be)Qt.push("'"+this.terminals_[Ht]+"'");if(W.showPosition)oe="Parse error on line "+(At+1)+`:
|
|
2
2
|
`+W.showPosition()+`
|
|
3
|
-
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[X]||X)+"'";else
|
|
3
|
+
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[X]||X)+"'";else oe="Parse error on line "+(At+1)+": Unexpected "+(X==me?"end of input":"'"+(this.terminals_[X]||X)+"'");this.parseError(oe,{text:W.match,token:this.terminals_[X]||X,line:W.yylineno,loc:re,expected:Qt})}if(Q[0]instanceof Array&&Q.length>1)throw Error("Parse Error: multiple actions possible at state: "+It+", token: "+X);switch(Q[0]){case 1:if(D.push(X),j.push(W.yytext),h.push(W.yylloc),D.push(Q[1]),X=null,!ae){if(_e=W.yyleng,_=W.yytext,At=W.yylineno,re=W.yylloc,be>0)be--}else X=ae,ae=null;break;case 2:if(et=this.productions_[Q[1]][1],Vt.$=j[j.length-et],Vt._$={first_line:h[h.length-(et||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(et||1)].first_column,last_column:h[h.length-1].last_column},Fe)Vt._$.range=[h[h.length-(et||1)].range[0],h[h.length-1].range[1]];if(ie=this.performAction.apply(Vt,[_,_e,At,Lt.yy,Q[1],j,h].concat(Ve)),typeof ie<"u")return ie;if(et)D=D.slice(0,-1*et*2),j=j.slice(0,-1*et),h=h.slice(0,-1*et);D.push(this.productions_[Q[1]][0]),j.push(Vt.$),h.push(Vt._$),xe=Ft[D[D.length-2]][D[D.length-1]],D.push(xe);break;case 3:return!0}}return!0},"parse")},Me=function(){var wt={EOF:1,parseError:t(function(R,D){if(this.yy.parser)this.yy.parser.parseError(R,D);else throw Error(R)},"parseError"),setInput:t(function(k,R){if(this.yy=R||this.yy||{},this._input=k,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];return this.offset=0,this},"setInput"),input:t(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var R=k.match(/(?:\r\n?|\n).*/g);if(R)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),k},"input"),unput:t(function(k){var R=k.length,D=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var x=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1)this.yylineno-=D.length-1;var j=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===x.length?this.yylloc.first_column:0)+x[x.length-D.length].length-D[0].length:this.yylloc.first_column-R},this.options.ranges)this.yylloc.range=[j[0],j[0]+this.yyleng-R];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(k){this.unput(this.match.slice(k))},"less"),pastInput:t(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var k=this.match;if(k.length<20)k+=this._input.substr(0,20-k.length);return(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var k=this.pastInput(),R=Array(k.length+1).join("-");return k+this.upcomingInput()+`
|
|
5
5
|
`+R+"^"},"showPosition"),test_match:t(function(k,R){var D,x,j;if(this.options.backtrack_lexer){if(j={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)j.yylloc.range=this.yylloc.range.slice(0)}if(x=k[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],D=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(D)return D;else if(this._backtrack){for(var h in j)this[h]=j[h];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var k,R,D,x;if(!this._more)this.yytext="",this.match="";var j=this._currentRules();for(var h=0;h<j.length;h++)if(D=this._input.match(this.rules[j[h]]),D&&(!R||D[0].length>R[0].length)){if(R=D,x=h,this.options.backtrack_lexer)if(k=this.test_match(D,j[h]),k!==!1)return k;else if(this._backtrack){R=!1;continue}else return!1;else if(!this.options.flex)break}if(R){if(k=this.test_match(R,j[x]),k!==!1)return k;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var R=this.next();if(R)return R;else return this.lex()},"lex"),begin:t(function(R){this.conditionStack.push(R)},"begin"),popState:t(function(){var R=this.conditionStack.length-1;if(R>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(R){if(R=this.conditionStack.length-1-Math.abs(R||0),R>=0)return this.conditionStack[R];else return"INITIAL"},"topState"),pushState:t(function(R){this.begin(R)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(R,D,x,j){var h=j;switch(x){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return wt}();ee.lexer=Me;function qt(){this.yy={}}return t(qt,"Parser"),qt.prototype=ee,ee.Parser=qt,new qt}();Gt.parser=Gt;var je=Gt,Te=t((e)=>l()[e],"getRequiredConfig"),G=new Set(["label","descr","techn","type"]),Mt=t((e,n)=>{for(let[i,o]of Object.entries(n)){if(o===void 0)continue;if(typeof o==="object"){let[f,u]=Object.entries(o)[0];e[f]=G.has(f)?{text:u}:u}else e[i]=o}},"assignAttributes"),Ce=t(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),Z=[],Ot=[""],q="global",J="",tt=[Ce()],Wt=[],de="",pe=!1,Jt=4,Zt=2,Re,ze=t(function(){return Re},"getC4Type"),We=t(function(e){Re=O(e,l())},"setC4Type"),Xe=t(function(e,n,i,o,f,u,r,d,s){if(e===void 0||e===null||n===void 0||n===null||i===void 0||i===null||o===void 0||o===null)return;let y={},g=Wt.find((m)=>m.from===n&&m.to===i);if(g)y=g;else Wt.push(y);if(y.type=e,y.from=n,y.to=i,y.label={text:o},f===void 0||f===null)y.techn??={text:""};else if(typeof f==="object"){let[m,v]=Object.entries(f)[0];y[m]=G.has(m)?{text:v}:v}else y.techn={text:f};if(u===void 0||u===null)y.descr??={text:""};else if(typeof u==="object"){let[m,v]=Object.entries(u)[0];y[m]=G.has(m)?{text:v}:v}else y.descr={text:u};Mt(y,{sprite:r,tags:d,link:s}),y.wrap=Dt()},"addRel"),qe=t(function(e,n,i,o,f,u,r){if(n===null||i===null)return;let d={},s=Z.find((y)=>y.alias===n);if(s&&n===s.alias)d=s;else d.alias=n,Z.push(d);if(i===void 0||i===null)d.label={text:""};else d.label={text:i};if(o===void 0||o===null)d.descr??={text:""};else if(typeof o==="object"){let[y,g]=Object.entries(o)[0];d[y]=G.has(y)?{text:g}:g}else d.descr={text:o};Mt(d,{sprite:f,tags:u,link:r}),d.typeC4Shape={text:e},d.parentBoundary=q,d.wrap=Dt()},"addPersonOrSystem"),He=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=Z.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,Z.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.techn={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{sprite:u,tags:r,link:d}),s.wrap=Dt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addContainer"),Qe=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=Z.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,Z.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.techn={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{sprite:u,tags:r,link:d}),s.wrap=Dt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addComponent"),Ke=t(function(e,n,i,o,f){if(e===null||n===null)return;let u={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)u=r;else u.alias=e,tt.push(u);if(n===void 0||n===null)u.label={text:""};else u.label={text:n};if(i===void 0||i===null)u.type={text:"system"};else if(typeof i==="object"){let[d,s]=Object.entries(i)[0];u[d]=G.has(d)?{text:s}:s}else u.type={text:i};Mt(u,{tags:o,link:f}),u.parentBoundary=q,u.wrap=Dt(),J=q,q=e,Ot.push(J)},"addPersonOrSystemBoundary"),Ge=t(function(e,n,i,o,f){if(e===null||n===null)return;let u={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)u=r;else u.alias=e,tt.push(u);if(n===void 0||n===null)u.label={text:""};else u.label={text:n};if(i===void 0||i===null)u.type={text:"container"};else if(typeof i==="object"){let[d,s]=Object.entries(i)[0];u[d]=G.has(d)?{text:s}:s}else u.type={text:i};Mt(u,{tags:o,link:f}),u.parentBoundary=q,u.wrap=Dt(),J=q,q=e,Ot.push(J)},"addContainerBoundary"),Je=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=tt.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,tt.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.type={text:"node"};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.type={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{tags:r,link:d}),s.nodeType=e,s.parentBoundary=q,s.wrap=Dt(),J=q,q=n,Ot.push(J)},"addDeploymentNode"),Ze=t(function(){q=J,Ot.pop(),J=Ot.pop(),Ot.push(J)},"popBoundaryParseStack"),$e=t(function(e,n,i,o,f,u,r,d,s,y,g){let m=Z.find((v)=>v.alias===n);if(m===void 0){if(m=tt.find((v)=>v.alias===n),m===void 0)return}if(i!==void 0&&i!==null)if(typeof i==="object"){let[v,P]=Object.entries(i)[0];m[v]=P}else m.bgColor=i;if(o!==void 0&&o!==null)if(typeof o==="object"){let[v,P]=Object.entries(o)[0];m[v]=P}else m.fontColor=o;if(f!==void 0&&f!==null)if(typeof f==="object"){let[v,P]=Object.entries(f)[0];m[v]=P}else m.borderColor=f;if(u!==void 0&&u!==null)if(typeof u==="object"){let[v,P]=Object.entries(u)[0];m[v]=P}else m.shadowing=u;if(r!==void 0&&r!==null)if(typeof r==="object"){let[v,P]=Object.entries(r)[0];m[v]=P}else m.shape=r;if(d!==void 0&&d!==null)if(typeof d==="object"){let[v,P]=Object.entries(d)[0];m[v]=P}else m.sprite=d;if(s!==void 0&&s!==null)if(typeof s==="object"){let[v,P]=Object.entries(s)[0];m[v]=P}else m.techn=s;if(y!==void 0&&y!==null)if(typeof y==="object"){let[v,P]=Object.entries(y)[0];m[v]=P}else m.legendText=y;if(g!==void 0&&g!==null)if(typeof g==="object"){let[v,P]=Object.entries(g)[0];m[v]=P}else m.legendSprite=g},"updateElStyle"),t0=t(function(e,n,i,o,f,u,r){let d=Wt.find((s)=>s.from===n&&s.to===i);if(d===void 0)return;if(o!==void 0&&o!==null)if(typeof o==="object"){let[s,y]=Object.entries(o)[0];d[s]=y}else d.textColor=o;if(f!==void 0&&f!==null)if(typeof f==="object"){let[s,y]=Object.entries(f)[0];d[s]=y}else d.lineColor=f;if(u!==void 0&&u!==null)if(typeof u==="object"){let[s,y]=Object.entries(u)[0];d[s]=parseInt(y)}else d.offsetX=parseInt(u);if(r!==void 0&&r!==null)if(typeof r==="object"){let[s,y]=Object.entries(r)[0];d[s]=parseInt(y)}else d.offsetY=parseInt(r)},"updateRelStyle"),e0=t(function(e,n,i){let o=Jt,f=Zt;if(typeof n==="object"){let u=Object.values(n)[0];o=parseInt(u)}else o=parseInt(n);if(typeof i==="object"){let u=Object.values(i)[0];f=parseInt(u)}else f=parseInt(i);if(o>=1)Jt=o;if(f>=1)Zt=f},"updateLayoutConfig"),n0=t(function(){return Jt},"getC4ShapeInRow"),r0=t(function(){return Zt},"getC4BoundaryInRow"),s0=t(function(){return q},"getCurrentBoundaryParse"),a0=t(function(){return J},"getParentBoundaryParse"),we=t(function(e){if(e===void 0||e===null)return Z;else return Z.filter((n)=>n.parentBoundary===e)},"getC4ShapeArray"),i0=t(function(e){return Z.find((n)=>n.alias===e)??tt.find((n)=>n.alias===e)},"getC4Shape"),o0=t(function(e){return Object.keys(we(e))},"getC4ShapeKeys"),Oe=t(function(e){if(e===void 0||e===null)return tt;else return tt.filter((n)=>n.parentBoundary===e)},"getBoundaries"),l0=Oe,c0=t(function(){return Wt},"getRels"),u0=t(function(){return de},"getTitle"),h0=t(function(e){pe=e},"setWrap"),Dt=t(function(){return pe},"autoWrap"),d0=t(function(){Z=[],tt=[Ce()],J="",q="global",Ot=[""],Wt=[],Ot=[""],de="",pe=!1,Jt=4,Zt=2},"clear"),p0={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},f0={FILLED:0,OPEN:1},y0={LEFTOF:0,RIGHTOF:1,OVER:2},_0=t(function(e){de=O(e,l())},"setTitle"),ce={addPersonOrSystem:qe,addPersonOrSystemBoundary:Ke,addContainer:He,addContainerBoundary:Ge,addComponent:Qe,addDeploymentNode:Je,popBoundaryParseStack:Ze,addRel:Xe,updateElStyle:$e,updateRelStyle:t0,updateLayoutConfig:e0,autoWrap:Dt,setWrap:h0,getC4ShapeArray:we,getC4Shape:i0,getC4ShapeKeys:o0,getBoundaries:Oe,getBoundarys:l0,getCurrentBoundaryParse:s0,getParentBoundaryParse:a0,getRels:c0,getTitle:u0,getC4Type:ze,getC4ShapeInRow:n0,getC4BoundaryInRow:r0,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,getConfig:t(()=>Te("c4"),"getConfig"),clear:d0,LINETYPE:p0,ARROWTYPE:f0,PLACEMENT:y0,setTitle:_0,setC4Type:We},Pe=t(function(e,n){return an(e,n)},"drawRect"),b0=t((e,n,i,o)=>{let f=e.append("g"),u=0;for(let r of n){let d=r.textColor?r.textColor:"#444444",s=r.lineColor?r.lineColor:"#444444",y=r.offsetX?parseInt(String(r.offsetX)):0,g=r.offsetY?parseInt(String(r.offsetY)):0,m="";if(u===0){let V=f.append("line");if(V.attr("x1",r.startPoint.x),V.attr("y1",r.startPoint.y),V.attr("x2",r.endPoint.x),V.attr("y2",r.endPoint.y),V.attr("stroke-width","1"),V.attr("stroke",s),V.style("fill","none"),r.type!=="rel_b")V.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")V.attr("marker-start","url(#"+o+"-arrowend)");u=-1}else{let V=f.append("path");if(V.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),r.type!=="rel_b")V.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")V.attr("marker-start","url(#"+o+"-arrowend)")}let v=r.label.width,P=i.messageFont();if(Ut(i)(r.label.text,f,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+y,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+g,v,r.label.height,{fill:d},P),r.techn&&r.techn.text!=="")P=i.messageFont(),Ut(i)("["+r.techn.text+"]",f,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+y,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+i.messageFontSize+5+g,Math.max(v,r.techn.width),r.techn.height,{fill:d,"font-style":"italic"},P)}},"drawRels"),m0=t(function(e,n,i){let o=e.append("g"),f=n.bgColor?n.bgColor:"none",u=n.borderColor?n.borderColor:"#444444",r=n.fontColor?n.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(n.nodeType)d={"stroke-width":1};let s={x:n.x,y:n.y,fill:f,stroke:u,width:n.width,height:n.height,rx:2.5,ry:2.5,attrs:d};Pe(o,s);let y=i.boundaryFont();if(y.fontWeight="bold",y.fontSize=y.fontSize+2,y.fontColor=r,Ut(i)(n.label.text,o,n.x,n.y+n.label.Y,n.width,n.height,{fill:"#444444"},y),n.type&&n.type.text!=="")y=i.boundaryFont(),y.fontColor=r,Ut(i)(n.type.text,o,n.x,n.y+n.type.Y,n.width,n.height,{fill:"#444444"},y);if(n.descr&&n.descr.text!=="")y=i.boundaryFont(),y.fontSize=y.fontSize-2,y.fontColor=r,Ut(i)(n.descr.text,o,n.x,n.y+n.descr.Y,n.width,n.height,{fill:"#444444"},y)},"drawBoundary"),g0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),x0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),v0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),k0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-filled-head").attr("refX",18).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"),T0=t(function(e,n){let o=e.append("defs").append("marker").attr("id",n+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Ut=function(){function e(f,u,r,d,s,y,g){let m=u.append("text").attr("x",r+s/2).attr("y",d+y/2+5).style("text-anchor","middle").text(f);o(m,g)}t(e,"byText");function n(f,u,r,d,s,y,g,m){let{fontSize:v,fontFamily:P,fontWeight:V}=m,z=f.split(b.lineBreakRegex);for(let Y=0;Y<z.length;Y++){let U=Y*v-v*(z.length-1)/2,H=u.append("text").attr("x",r+s/2).attr("y",d).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",v).style("font-weight",V).style("font-family",P);H.append("tspan").attr("dy",U).text(z[Y]).attr("alignment-baseline","mathematical"),o(H,g)}}t(n,"byTspan");function i(f,u,r,d,s,y,g,m){let v=u.append("switch"),V=v.append("foreignObject").attr("x",r).attr("y",d).attr("width",s).attr("height",y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");V.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(f),n(f,v,r,d,s,y,g,m),o(V,g)}t(i,"byFo");function o(f,u){for(let r in u)if(u.hasOwnProperty(r))f.attr(r,u[r])}return t(o,"_setTextAttrs"),function(f){return f.textPlacement==="fo"?i:f.textPlacement==="old"?e:n}}(),nt={drawRect:Pe,drawBoundary:m0,drawRels:b0,insertArrowHead:k0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertArrowCrossHead:T0,insertDatabaseIcon:g0,insertComputerIcon:x0,insertClockIcon:v0},C0=t((e,n)=>{if(n==="sandbox"){let o=p("#i"+e).node()?.contentDocument;if(!o)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:p(o.body),doc:o}}return{root:p("body"),doc:document}},"getDiagramRoot"),R0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),w0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),O0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},le=t((e)=>e?O0[e.toLowerCase()]:void 0,"keywordShape"),P0=t((e)=>{let n=le(e.shape)??le(e.sprite);if(n)return n;if(e.tags)for(let o of e.tags.split(",")){let f=le(o.trim());if(f)return f}let i=e.typeC4Shape.text;if(i==="person"||i==="external_person")return"person";if(w0.has(i))return"cylinder";if(R0.has(i))return"h-cyl";return"rounded"},"resolveNodeShape"),D0={person:"Person",system:"Software System",container:"Container",component:"Component"},N0=t((e)=>{let n=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return D0[n]??n.replace(/_/g," ")},"stereotypeLabel"),A0=t((e)=>e.startsWith("external_"),"isExternal"),L0=t((e)=>{let n=N0(e.typeC4Shape.text);return e.techn?.text?`[${n}: ${e.techn.text}]`:`[${n}]`},"stereotypeText"),De=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),I0=new Set(De),ve=t((e)=>I0.has(e),"isC4ElementType"),M0=t((e,n)=>{let i=e.typeC4Shape.text,o=e.bgColor??(ve(i)&&n[`${i}_bg_color`]),f=e.borderColor??(ve(i)&&n[`${i}_border_color`]),u=[];if(o)u.push(`fill:${o}`);if(f)u.push(`stroke:${f}`);return u.push(`color:${e.fontColor??"#FFFFFF"}`),u},"elementCssStyles"),ke=t((e,n,i,o,f)=>{let u=e.typeC4Shape.text,r=["c4-shape",`c4-${u}`];if(A0(u))r.push("c4-external");let d=P0(e),s=M0(e,n);if(d==="rounded"||d==="fr-rect")s.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:L0(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:r.join(" "),cssStyles:s,padding:i,look:o,useHtmlLabels:!1,width:f}},"buildC4Node"),jt=0,zt=0,Ne=4,ue=2;Gt.yy=ce;var C={},Ae=class{static{t(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,he(e.db.getConfig())}setData(e,n,i,o){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=n,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=o}updateVal(e,n,i,o){if(e[n]===void 0)e[n]=i;else e[n]=o(i,e[n])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let n=this.nextData.stopx,i=this.data.widthLimit,o=this.nextData.startx===this.nextData.stopx?n+e.margin:n+e.margin*2,f=o+e.width,u=this.nextData.starty+e.margin*2,r=u+e.height;if(o>=i||f>=i||this.nextData.cnt>Ne)o=this.nextData.startx+e.margin+C.nextLinePaddingX,u=this.nextData.stopy+e.margin*2,this.nextData.stopx=f=o+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=u+e.height,this.nextData.cnt=1;e.x=o,e.y=u,this.updateVal(this.data,"startx",o,Math.min),this.updateVal(this.data,"starty",u,Math.min),this.updateVal(this.data,"stopx",f,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",o,Math.min),this.updateVal(this.nextData,"starty",u,Math.min),this.updateVal(this.nextData,"stopx",f,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},he(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},he=t(function(e){if(oe(C,e),e?.fontFamily)C.personFontFamily=C.systemFontFamily=C.messageFontFamily=e.fontFamily;if(e?.fontSize)C.personFontSize=C.systemFontSize=C.messageFontSize=e.fontSize;if(e?.fontWeight)C.personFontWeight=C.systemFontWeight=C.messageFontWeight=e.fontWeight},"setConf"),Kt=t((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),B0=t((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Pt(e,n,i,o,f){let u=n[e];if(!u.width)if(i)u.text=Dn(u.text,f,o),u.textLines=u.text.split(b.lineBreakRegex).length,u.width=f,u.height=Xr(u.text,o);else{let r=u.text.split(b.lineBreakRegex);u.textLines=r.length;let d=0;u.height=0,u.width=0;for(let s of r)u.width=Math.max(Ye(s,o),u.width),d=Xr(s,o),u.height=u.height+d}return u}t(Pt,"calcC4ShapeTextWH");var Le=t(function(e,n,i){let o=i.data.startx,f=i.data.starty;n.x=o,n.y=f,n.width=i.data.stopx-o,n.height=i.data.stopy-f,n.intersect=(s)=>w.rect({x:n.x+n.width/2,y:n.y+n.height/2,width:n.width,height:n.height},s),n.label.y=C.c4ShapeMargin-35;let u=n.wrap&&C.wrap,r=Kt(C);r.fontSize=r.fontSize+2,r.fontWeight="bold";let d=Ye(n.label.text,r);Pt("label",n,u,r,d),nt.drawBoundary(e,n,C)},"drawBoundary"),Ie=t(async function(e,n,i,o){let f=l(),u=f.look??"classic",r={config:f},d=n.attr("id")??"",s=o.map((g)=>i[Number(g)]),y=t((g)=>{let m=g.shape?Jr[g.shape]:void 0;if(!m)throw Error(`C4: no shape handler for "${g.shape}"`);return m},"shapeHandlerFor");await Promise.all(s.map(async(g)=>{let m=ke(g,C,C.c4ShapePadding,u,C.width);m.domId=`${d}-${m.id}`;let v=await y(m)(n,m,r);g.width=m.width??C.width,g.height=m.height??C.height,g.margin=C.c4ShapeMargin,v.remove()}));for(let g of s)e.insert(g);await Promise.all(s.map(async(g)=>{let m=ke(g,C,C.c4ShapePadding,u,C.width);m.domId=`${d}-${m.id}`,m.x=g.x+g.width/2,m.y=g.y+g.height/2;let v=n.append("g").attr("transform",`translate(${g.x+g.width/2}, ${g.y+g.height/2})`);await y(m)(v,m,r),g.intersect=m.intersect})),e.bumpLastMargin(C.c4ShapeMargin)},"drawC4ShapeArray"),V0=class{static{t(this,"Point")}constructor(e,n){this.x=e,this.y=n}},Ee=t(function(e,n){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:i,y:o}=e.intersect(n);return new V0(i,o)},"getIntersectPoint"),Y0=t(function(e,n){let i={x:0,y:0};i.x=n.x+n.width/2,i.y=n.y+n.height/2;let o=Ee(e,i);i.x=e.x+e.width/2,i.y=e.y+e.height/2;let f=Ee(n,i);return{startPoint:o,endPoint:f}},"getIntersectPoints"),F0=t(function(e,n,i,o,f){let u=o.db.getC4Type(),r=0;for(let d of n){r=r+1;let s=d.wrap&&C.wrap,y=B0(C);if(u==="C4Dynamic")d.label.text=r+": "+d.label.text;let g=Ye(d.label.text,y);if(Pt("label",d,s,y,g),d.techn&&d.techn.text!=="")g=Ye(d.techn.text,y),Pt("techn",d,s,y,g);if(d.descr&&d.descr.text!=="")g=Ye(d.descr.text,y),Pt("descr",d,s,y,g);let m=i(d.from),v=i(d.to);if(!m||!v)throw Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let P=Y0(m,v);if(!P.startPoint||!P.endPoint)throw Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=P.startPoint,d.endPoint=P.endPoint}nt.drawRels(e,n,C,f)},"drawRels");async function fe(e,n,i,o,f){let u=f.db,r=new Ae(f);r.data.widthLimit=i.data.widthLimit/Math.min(ue,o.length);for(let[d,s]of o.entries()){let y=0;if(s.image={width:0,height:0,Y:0},s.sprite)s.image.width=48,s.image.height=48,s.image.Y=y,y=s.image.Y+s.image.height;let g=s.wrap&&C.wrap,m=Kt(C);m.fontSize=m.fontSize+2,m.fontWeight="bold";let v=Pt("label",s,g,m,r.data.widthLimit);if(v.Y=y+8,y=v.Y+v.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let Y=Kt(C),U=Pt("type",s,g,Y,r.data.widthLimit);U.Y=y+5,y=U.Y+U.height}if(s.descr&&s.descr.text!==""){let Y=Kt(C);Y.fontSize=Y.fontSize-2;let U=Pt("descr",s,g,Y,r.data.widthLimit);U.Y=y+20,y=U.Y+U.height}if(d==0||d%ue===0){let Y=i.data.startx+C.diagramMarginX,U=i.data.stopy+C.diagramMarginY+y;r.setData(Y,Y,U,U)}else{let Y=r.data.stopx!==r.data.startx?r.data.stopx+C.diagramMarginX:r.data.startx,U=r.data.starty;r.setData(Y,Y,U,U)}r.name=s.alias;let P=u.getC4ShapeArray(s.alias),V=u.getC4ShapeKeys(s.alias);if(V.length>0)await Ie(r,e,P,V);n=s.alias;let z=u.getBoundaries(n);if(z.length>0)await fe(e,n,r,z,f);if(s.alias!=="global")Le(e,s,r);i.data.stopy=Math.max(r.data.stopy+C.c4ShapeMargin,i.data.stopy),i.data.stopx=Math.max(r.data.stopx+C.c4ShapeMargin,i.data.stopx),jt=Math.max(jt,i.data.stopx),zt=Math.max(zt,i.data.stopy)}}t(fe,"drawInsideBoundary");var U0=t(async function(e,n,i,o){C=Te("c4");let f=l().securityLevel,{root:u}=C0(n,f),r=o.db;r.setWrap(C.wrap),Ne=r.getC4ShapeInRow(),ue=r.getC4BoundaryInRow(),a.debug(`C:${JSON.stringify(C,null,2)}`);let d=u.select(`[id="${n}"]`);nt.insertComputerIcon(d,n),nt.insertDatabaseIcon(d,n),nt.insertClockIcon(d,n);let s=new Ae(o);s.setData(C.diagramMarginX,C.diagramMarginX,C.diagramMarginY,C.diagramMarginY),s.data.widthLimit=screen.availWidth,jt=C.diagramMarginX,zt=C.diagramMarginY;let y=r.getTitle(),g=r.getBoundaries("");await fe(d,"",s,g,o),nt.insertArrowHead(d,n),nt.insertArrowEnd(d,n),nt.insertArrowCrossHead(d,n),nt.insertArrowFilledHead(d,n),F0(d,r.getRels(),r.getC4Shape,o,n),s.data.stopx=jt,s.data.stopy=zt;let m=s.data,{startx:v,starty:P}=m,z=zt-P+2*C.diagramMarginY,Y=jt-v,U=Y+2*C.diagramMarginX;if(y)d.append("text").text(y).attr("x",Y/2-4*C.diagramMarginX).attr("y",P+C.diagramMarginY);F(d,z,U,C.useMaxWidth);let H=y?60:0;d.attr("viewBox",v-C.diagramMarginX+" -"+(C.diagramMarginY+H)+" "+U+" "+(z+H)),a.debug("models:",m)},"draw"),Se={drawPersonOrSystemArray:Ie,drawBoundary:Le,setConf:he,draw:U0},j0=t(()=>{let e=l().c4??{},n=new CSSStyleSheet;for(let i of De){let o=n.cssRules[n.insertRule(`.c4-shape.c4-${i} .label {}`,n.cssRules.length)],f=e[`${i}FontFamily`],u=e[`${i}FontSize`],r=e[`${i}FontWeight`];if(f)o.style.setProperty("font-family",f);if(u)o.style.setProperty("font-size",typeof u==="number"?`${u}px`:u);if(r)o.style.setProperty("font-weight",String(r))}return[...n.cssRules].filter((i)=>i.style.length>0).map((i)=>` ${i.cssText}`).join(`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var R=this.next();if(R)return R;else return this.lex()},"lex"),begin:t(function(R){this.conditionStack.push(R)},"begin"),popState:t(function(){var R=this.conditionStack.length-1;if(R>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(R){if(R=this.conditionStack.length-1-Math.abs(R||0),R>=0)return this.conditionStack[R];else return"INITIAL"},"topState"),pushState:t(function(R){this.begin(R)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(R,D,x,j){var h=j;switch(x){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return wt}();ee.lexer=Me;function qt(){this.yy={}}return t(qt,"Parser"),qt.prototype=ee,ee.Parser=qt,new qt}();Gt.parser=Gt;var je=Gt,Te=t((e)=>l()[e],"getRequiredConfig"),G=new Set(["label","descr","techn","type"]),Mt=t((e,n)=>{for(let[i,o]of Object.entries(n)){if(o===void 0)continue;if(typeof o==="object"){let[f,u]=Object.entries(o)[0];e[f]=G.has(f)?{text:u}:u}else e[i]=o}},"assignAttributes"),Ce=t(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),Z=[],Ot=[""],q="global",J="",tt=[Ce()],Wt=[],de="",pe=!1,Jt=4,Zt=2,Re,ze=t(function(){return Re},"getC4Type"),We=t(function(e){Re=O(e,l())},"setC4Type"),Xe=t(function(e,n,i,o,f,u,r,d,s){if(e===void 0||e===null||n===void 0||n===null||i===void 0||i===null||o===void 0||o===null)return;let y={},g=Wt.find((m)=>m.from===n&&m.to===i);if(g)y=g;else Wt.push(y);if(y.type=e,y.from=n,y.to=i,y.label={text:o},f===void 0||f===null)y.techn??={text:""};else if(typeof f==="object"){let[m,v]=Object.entries(f)[0];y[m]=G.has(m)?{text:v}:v}else y.techn={text:f};if(u===void 0||u===null)y.descr??={text:""};else if(typeof u==="object"){let[m,v]=Object.entries(u)[0];y[m]=G.has(m)?{text:v}:v}else y.descr={text:u};Mt(y,{sprite:r,tags:d,link:s}),y.wrap=Dt()},"addRel"),qe=t(function(e,n,i,o,f,u,r){if(n===null||i===null)return;let d={},s=Z.find((y)=>y.alias===n);if(s&&n===s.alias)d=s;else d.alias=n,Z.push(d);if(i===void 0||i===null)d.label={text:""};else d.label={text:i};if(o===void 0||o===null)d.descr??={text:""};else if(typeof o==="object"){let[y,g]=Object.entries(o)[0];d[y]=G.has(y)?{text:g}:g}else d.descr={text:o};Mt(d,{sprite:f,tags:u,link:r}),d.typeC4Shape={text:e},d.parentBoundary=q,d.wrap=Dt()},"addPersonOrSystem"),He=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=Z.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,Z.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.techn={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{sprite:u,tags:r,link:d}),s.wrap=Dt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addContainer"),Qe=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=Z.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,Z.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.techn={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{sprite:u,tags:r,link:d}),s.wrap=Dt(),s.typeC4Shape={text:e},s.parentBoundary=q},"addComponent"),Ke=t(function(e,n,i,o,f){if(e===null||n===null)return;let u={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)u=r;else u.alias=e,tt.push(u);if(n===void 0||n===null)u.label={text:""};else u.label={text:n};if(i===void 0||i===null)u.type={text:"system"};else if(typeof i==="object"){let[d,s]=Object.entries(i)[0];u[d]=G.has(d)?{text:s}:s}else u.type={text:i};Mt(u,{tags:o,link:f}),u.parentBoundary=q,u.wrap=Dt(),J=q,q=e,Ot.push(J)},"addPersonOrSystemBoundary"),Ge=t(function(e,n,i,o,f){if(e===null||n===null)return;let u={},r=tt.find((d)=>d.alias===e);if(r&&e===r.alias)u=r;else u.alias=e,tt.push(u);if(n===void 0||n===null)u.label={text:""};else u.label={text:n};if(i===void 0||i===null)u.type={text:"container"};else if(typeof i==="object"){let[d,s]=Object.entries(i)[0];u[d]=G.has(d)?{text:s}:s}else u.type={text:i};Mt(u,{tags:o,link:f}),u.parentBoundary=q,u.wrap=Dt(),J=q,q=e,Ot.push(J)},"addContainerBoundary"),Je=t(function(e,n,i,o,f,u,r,d){if(n===null||i===null)return;let s={},y=tt.find((g)=>g.alias===n);if(y&&n===y.alias)s=y;else s.alias=n,tt.push(s);if(i===void 0||i===null)s.label={text:""};else s.label={text:i};if(o===void 0||o===null)s.type={text:"node"};else if(typeof o==="object"){let[g,m]=Object.entries(o)[0];s[g]=G.has(g)?{text:m}:m}else s.type={text:o};if(f===void 0||f===null)s.descr??={text:""};else if(typeof f==="object"){let[g,m]=Object.entries(f)[0];s[g]=G.has(g)?{text:m}:m}else s.descr={text:f};Mt(s,{tags:r,link:d}),s.nodeType=e,s.parentBoundary=q,s.wrap=Dt(),J=q,q=n,Ot.push(J)},"addDeploymentNode"),Ze=t(function(){q=J,Ot.pop(),J=Ot.pop(),Ot.push(J)},"popBoundaryParseStack"),$e=t(function(e,n,i,o,f,u,r,d,s,y,g){let m=Z.find((v)=>v.alias===n);if(m===void 0){if(m=tt.find((v)=>v.alias===n),m===void 0)return}if(i!==void 0&&i!==null)if(typeof i==="object"){let[v,P]=Object.entries(i)[0];m[v]=P}else m.bgColor=i;if(o!==void 0&&o!==null)if(typeof o==="object"){let[v,P]=Object.entries(o)[0];m[v]=P}else m.fontColor=o;if(f!==void 0&&f!==null)if(typeof f==="object"){let[v,P]=Object.entries(f)[0];m[v]=P}else m.borderColor=f;if(u!==void 0&&u!==null)if(typeof u==="object"){let[v,P]=Object.entries(u)[0];m[v]=P}else m.shadowing=u;if(r!==void 0&&r!==null)if(typeof r==="object"){let[v,P]=Object.entries(r)[0];m[v]=P}else m.shape=r;if(d!==void 0&&d!==null)if(typeof d==="object"){let[v,P]=Object.entries(d)[0];m[v]=P}else m.sprite=d;if(s!==void 0&&s!==null)if(typeof s==="object"){let[v,P]=Object.entries(s)[0];m[v]=P}else m.techn=s;if(y!==void 0&&y!==null)if(typeof y==="object"){let[v,P]=Object.entries(y)[0];m[v]=P}else m.legendText=y;if(g!==void 0&&g!==null)if(typeof g==="object"){let[v,P]=Object.entries(g)[0];m[v]=P}else m.legendSprite=g},"updateElStyle"),t0=t(function(e,n,i,o,f,u,r){let d=Wt.find((s)=>s.from===n&&s.to===i);if(d===void 0)return;if(o!==void 0&&o!==null)if(typeof o==="object"){let[s,y]=Object.entries(o)[0];d[s]=y}else d.textColor=o;if(f!==void 0&&f!==null)if(typeof f==="object"){let[s,y]=Object.entries(f)[0];d[s]=y}else d.lineColor=f;if(u!==void 0&&u!==null)if(typeof u==="object"){let[s,y]=Object.entries(u)[0];d[s]=parseInt(y)}else d.offsetX=parseInt(u);if(r!==void 0&&r!==null)if(typeof r==="object"){let[s,y]=Object.entries(r)[0];d[s]=parseInt(y)}else d.offsetY=parseInt(r)},"updateRelStyle"),e0=t(function(e,n,i){let o=Jt,f=Zt;if(typeof n==="object"){let u=Object.values(n)[0];o=parseInt(u)}else o=parseInt(n);if(typeof i==="object"){let u=Object.values(i)[0];f=parseInt(u)}else f=parseInt(i);if(o>=1)Jt=o;if(f>=1)Zt=f},"updateLayoutConfig"),n0=t(function(){return Jt},"getC4ShapeInRow"),r0=t(function(){return Zt},"getC4BoundaryInRow"),s0=t(function(){return q},"getCurrentBoundaryParse"),a0=t(function(){return J},"getParentBoundaryParse"),we=t(function(e){if(e===void 0||e===null)return Z;else return Z.filter((n)=>n.parentBoundary===e)},"getC4ShapeArray"),i0=t(function(e){return Z.find((n)=>n.alias===e)??tt.find((n)=>n.alias===e)},"getC4Shape"),o0=t(function(e){return Object.keys(we(e))},"getC4ShapeKeys"),Oe=t(function(e){if(e===void 0||e===null)return tt;else return tt.filter((n)=>n.parentBoundary===e)},"getBoundaries"),l0=Oe,c0=t(function(){return Wt},"getRels"),u0=t(function(){return de},"getTitle"),h0=t(function(e){pe=e},"setWrap"),Dt=t(function(){return pe},"autoWrap"),d0=t(function(){Z=[],tt=[Ce()],J="",q="global",Ot=[""],Wt=[],Ot=[""],de="",pe=!1,Jt=4,Zt=2},"clear"),p0={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},f0={FILLED:0,OPEN:1},y0={LEFTOF:0,RIGHTOF:1,OVER:2},_0=t(function(e){de=O(e,l())},"setTitle"),ce={addPersonOrSystem:qe,addPersonOrSystemBoundary:Ke,addContainer:He,addContainerBoundary:Ge,addComponent:Qe,addDeploymentNode:Je,popBoundaryParseStack:Ze,addRel:Xe,updateElStyle:$e,updateRelStyle:t0,updateLayoutConfig:e0,autoWrap:Dt,setWrap:h0,getC4ShapeArray:we,getC4Shape:i0,getC4ShapeKeys:o0,getBoundaries:Oe,getBoundarys:l0,getCurrentBoundaryParse:s0,getParentBoundaryParse:a0,getRels:c0,getTitle:u0,getC4Type:ze,getC4ShapeInRow:n0,getC4BoundaryInRow:r0,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,getConfig:t(()=>Te("c4"),"getConfig"),clear:d0,LINETYPE:p0,ARROWTYPE:f0,PLACEMENT:y0,setTitle:_0,setC4Type:We},Pe=t(function(e,n){return an(e,n)},"drawRect"),b0=t((e,n,i,o)=>{let f=e.append("g"),u=0;for(let r of n){let d=r.textColor?r.textColor:"#444444",s=r.lineColor?r.lineColor:"#444444",y=r.offsetX?parseInt(String(r.offsetX)):0,g=r.offsetY?parseInt(String(r.offsetY)):0,m="";if(u===0){let V=f.append("line");if(V.attr("x1",r.startPoint.x),V.attr("y1",r.startPoint.y),V.attr("x2",r.endPoint.x),V.attr("y2",r.endPoint.y),V.attr("stroke-width","1"),V.attr("stroke",s),V.style("fill","none"),r.type!=="rel_b")V.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")V.attr("marker-start","url(#"+o+"-arrowend)");u=-1}else{let V=f.append("path");if(V.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),r.type!=="rel_b")V.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")V.attr("marker-start","url(#"+o+"-arrowend)")}let v=r.label.width,P=i.messageFont();if(Ut(i)(r.label.text,f,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+y,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+g,v,r.label.height,{fill:d},P),r.techn&&r.techn.text!=="")P=i.messageFont(),Ut(i)("["+r.techn.text+"]",f,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+y,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+i.messageFontSize+5+g,Math.max(v,r.techn.width),r.techn.height,{fill:d,"font-style":"italic"},P)}},"drawRels"),m0=t(function(e,n,i){let o=e.append("g"),f=n.bgColor?n.bgColor:"none",u=n.borderColor?n.borderColor:"#444444",r=n.fontColor?n.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(n.nodeType)d={"stroke-width":1};let s={x:n.x,y:n.y,fill:f,stroke:u,width:n.width,height:n.height,rx:2.5,ry:2.5,attrs:d};Pe(o,s);let y=i.boundaryFont();if(y.fontWeight="bold",y.fontSize=y.fontSize+2,y.fontColor=r,Ut(i)(n.label.text,o,n.x,n.y+n.label.Y,n.width,n.height,{fill:"#444444"},y),n.type&&n.type.text!=="")y=i.boundaryFont(),y.fontColor=r,Ut(i)(n.type.text,o,n.x,n.y+n.type.Y,n.width,n.height,{fill:"#444444"},y);if(n.descr&&n.descr.text!=="")y=i.boundaryFont(),y.fontSize=y.fontSize-2,y.fontColor=r,Ut(i)(n.descr.text,o,n.x,n.y+n.descr.Y,n.width,n.height,{fill:"#444444"},y)},"drawBoundary"),g0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),x0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),v0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-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"),k0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-filled-head").attr("refX",18).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"),T0=t(function(e,n){let o=e.append("defs").append("marker").attr("id",n+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Ut=function(){function e(f,u,r,d,s,y,g){let m=u.append("text").attr("x",r+s/2).attr("y",d+y/2+5).style("text-anchor","middle").text(f);o(m,g)}t(e,"byText");function n(f,u,r,d,s,y,g,m){let{fontSize:v,fontFamily:P,fontWeight:V}=m,z=f.split(b.lineBreakRegex);for(let Y=0;Y<z.length;Y++){let U=Y*v-v*(z.length-1)/2,H=u.append("text").attr("x",r+s/2).attr("y",d).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",v).style("font-weight",V).style("font-family",P);H.append("tspan").attr("dy",U).text(z[Y]).attr("alignment-baseline","mathematical"),o(H,g)}}t(n,"byTspan");function i(f,u,r,d,s,y,g,m){let v=u.append("switch"),V=v.append("foreignObject").attr("x",r).attr("y",d).attr("width",s).attr("height",y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");V.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(f),n(f,v,r,d,s,y,g,m),o(V,g)}t(i,"byFo");function o(f,u){for(let r in u)if(u.hasOwnProperty(r))f.attr(r,u[r])}return t(o,"_setTextAttrs"),function(f){return f.textPlacement==="fo"?i:f.textPlacement==="old"?e:n}}(),nt={drawRect:Pe,drawBoundary:m0,drawRels:b0,insertArrowHead:k0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertArrowCrossHead:T0,insertDatabaseIcon:g0,insertComputerIcon:x0,insertClockIcon:v0},C0=t((e,n)=>{if(n==="sandbox"){let o=p("#i"+e).node()?.contentDocument;if(!o)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:p(o.body),doc:o}}return{root:p("body"),doc:document}},"getDiagramRoot"),R0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),w0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),O0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},le=t((e)=>e?O0[e.toLowerCase()]:void 0,"keywordShape"),P0=t((e)=>{let n=le(e.shape)??le(e.sprite);if(n)return n;if(e.tags)for(let o of e.tags.split(",")){let f=le(o.trim());if(f)return f}let i=e.typeC4Shape.text;if(i==="person"||i==="external_person")return"person";if(w0.has(i))return"cylinder";if(R0.has(i))return"h-cyl";return"rounded"},"resolveNodeShape"),D0={person:"Person",system:"Software System",container:"Container",component:"Component"},N0=t((e)=>{let n=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return D0[n]??n.replace(/_/g," ")},"stereotypeLabel"),A0=t((e)=>e.startsWith("external_"),"isExternal"),L0=t((e)=>{let n=N0(e.typeC4Shape.text);return e.techn?.text?`[${n}: ${e.techn.text}]`:`[${n}]`},"stereotypeText"),De=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),I0=new Set(De),ve=t((e)=>I0.has(e),"isC4ElementType"),M0=t((e,n)=>{let i=e.typeC4Shape.text,o=e.bgColor??(ve(i)&&n[`${i}_bg_color`]),f=e.borderColor??(ve(i)&&n[`${i}_border_color`]),u=[];if(o)u.push(`fill:${o}`);if(f)u.push(`stroke:${f}`);return u.push(`color:${e.fontColor??"#FFFFFF"}`),u},"elementCssStyles"),ke=t((e,n,i,o,f)=>{let u=e.typeC4Shape.text,r=["c4-shape",`c4-${u}`];if(A0(u))r.push("c4-external");let d=P0(e),s=M0(e,n);if(d==="rounded"||d==="fr-rect")s.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:L0(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:r.join(" "),cssStyles:s,padding:i,look:o,useHtmlLabels:!1,width:f}},"buildC4Node"),jt=0,zt=0,Ne=4,ue=2;Gt.yy=ce;var C={},Ae=class{static{t(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,he(e.db.getConfig())}setData(e,n,i,o){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=n,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=o}updateVal(e,n,i,o){if(e[n]===void 0)e[n]=i;else e[n]=o(i,e[n])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let n=this.nextData.stopx,i=this.data.widthLimit,o=this.nextData.startx===this.nextData.stopx?n+e.margin:n+e.margin*2,f=o+e.width,u=this.nextData.starty+e.margin*2,r=u+e.height;if(o>=i||f>=i||this.nextData.cnt>Ne)o=this.nextData.startx+e.margin+C.nextLinePaddingX,u=this.nextData.stopy+e.margin*2,this.nextData.stopx=f=o+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=u+e.height,this.nextData.cnt=1;e.x=o,e.y=u,this.updateVal(this.data,"startx",o,Math.min),this.updateVal(this.data,"starty",u,Math.min),this.updateVal(this.data,"stopx",f,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",o,Math.min),this.updateVal(this.nextData,"starty",u,Math.min),this.updateVal(this.nextData,"stopx",f,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},he(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},he=t(function(e){if(se(C,e),e?.fontFamily)C.personFontFamily=C.systemFontFamily=C.messageFontFamily=e.fontFamily;if(e?.fontSize)C.personFontSize=C.systemFontSize=C.messageFontSize=e.fontSize;if(e?.fontWeight)C.personFontWeight=C.systemFontWeight=C.messageFontWeight=e.fontWeight},"setConf"),Kt=t((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),B0=t((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Pt(e,n,i,o,f){let u=n[e];if(!u.width)if(i)u.text=Nn(u.text,f,o),u.textLines=u.text.split(b.lineBreakRegex).length,u.width=f,u.height=Qr(u.text,o);else{let r=u.text.split(b.lineBreakRegex);u.textLines=r.length;let d=0;u.height=0,u.width=0;for(let s of r)u.width=Math.max(Ye(s,o),u.width),d=Qr(s,o),u.height=u.height+d}return u}t(Pt,"calcC4ShapeTextWH");var Le=t(function(e,n,i){let o=i.data.startx,f=i.data.starty;n.x=o,n.y=f,n.width=i.data.stopx-o,n.height=i.data.stopy-f,n.intersect=(s)=>w.rect({x:n.x+n.width/2,y:n.y+n.height/2,width:n.width,height:n.height},s),n.label.y=C.c4ShapeMargin-35;let u=n.wrap&&C.wrap,r=Kt(C);r.fontSize=r.fontSize+2,r.fontWeight="bold";let d=Ye(n.label.text,r);Pt("label",n,u,r,d),nt.drawBoundary(e,n,C)},"drawBoundary"),Ie=t(async function(e,n,i,o){let f=l(),u=f.look??"classic",r={config:f},d=n.attr("id")??"",s=o.map((g)=>i[Number(g)]),y=t((g)=>{let m=g.shape?ta[g.shape]:void 0;if(!m)throw Error(`C4: no shape handler for "${g.shape}"`);return m},"shapeHandlerFor");await Promise.all(s.map(async(g)=>{let m=ke(g,C,C.c4ShapePadding,u,C.width);m.domId=`${d}-${m.id}`;let v=await y(m)(n,m,r);g.width=m.width??C.width,g.height=m.height??C.height,g.margin=C.c4ShapeMargin,v.remove()}));for(let g of s)e.insert(g);await Promise.all(s.map(async(g)=>{let m=ke(g,C,C.c4ShapePadding,u,C.width);m.domId=`${d}-${m.id}`,m.x=g.x+g.width/2,m.y=g.y+g.height/2;let v=n.append("g").attr("transform",`translate(${g.x+g.width/2}, ${g.y+g.height/2})`);await y(m)(v,m,r),g.intersect=m.intersect})),e.bumpLastMargin(C.c4ShapeMargin)},"drawC4ShapeArray"),V0=class{static{t(this,"Point")}constructor(e,n){this.x=e,this.y=n}},Ee=t(function(e,n){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:i,y:o}=e.intersect(n);return new V0(i,o)},"getIntersectPoint"),Y0=t(function(e,n){let i={x:0,y:0};i.x=n.x+n.width/2,i.y=n.y+n.height/2;let o=Ee(e,i);i.x=e.x+e.width/2,i.y=e.y+e.height/2;let f=Ee(n,i);return{startPoint:o,endPoint:f}},"getIntersectPoints"),F0=t(function(e,n,i,o,f){let u=o.db.getC4Type(),r=0;for(let d of n){r=r+1;let s=d.wrap&&C.wrap,y=B0(C);if(u==="C4Dynamic")d.label.text=r+": "+d.label.text;let g=Ye(d.label.text,y);if(Pt("label",d,s,y,g),d.techn&&d.techn.text!=="")g=Ye(d.techn.text,y),Pt("techn",d,s,y,g);if(d.descr&&d.descr.text!=="")g=Ye(d.descr.text,y),Pt("descr",d,s,y,g);let m=i(d.from),v=i(d.to);if(!m||!v)throw Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let P=Y0(m,v);if(!P.startPoint||!P.endPoint)throw Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=P.startPoint,d.endPoint=P.endPoint}nt.drawRels(e,n,C,f)},"drawRels");async function fe(e,n,i,o,f){let u=f.db,r=new Ae(f);r.data.widthLimit=i.data.widthLimit/Math.min(ue,o.length);for(let[d,s]of o.entries()){let y=0;if(s.image={width:0,height:0,Y:0},s.sprite)s.image.width=48,s.image.height=48,s.image.Y=y,y=s.image.Y+s.image.height;let g=s.wrap&&C.wrap,m=Kt(C);m.fontSize=m.fontSize+2,m.fontWeight="bold";let v=Pt("label",s,g,m,r.data.widthLimit);if(v.Y=y+8,y=v.Y+v.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let Y=Kt(C),U=Pt("type",s,g,Y,r.data.widthLimit);U.Y=y+5,y=U.Y+U.height}if(s.descr&&s.descr.text!==""){let Y=Kt(C);Y.fontSize=Y.fontSize-2;let U=Pt("descr",s,g,Y,r.data.widthLimit);U.Y=y+20,y=U.Y+U.height}if(d==0||d%ue===0){let Y=i.data.startx+C.diagramMarginX,U=i.data.stopy+C.diagramMarginY+y;r.setData(Y,Y,U,U)}else{let Y=r.data.stopx!==r.data.startx?r.data.stopx+C.diagramMarginX:r.data.startx,U=r.data.starty;r.setData(Y,Y,U,U)}r.name=s.alias;let P=u.getC4ShapeArray(s.alias),V=u.getC4ShapeKeys(s.alias);if(V.length>0)await Ie(r,e,P,V);n=s.alias;let z=u.getBoundaries(n);if(z.length>0)await fe(e,n,r,z,f);if(s.alias!=="global")Le(e,s,r);i.data.stopy=Math.max(r.data.stopy+C.c4ShapeMargin,i.data.stopy),i.data.stopx=Math.max(r.data.stopx+C.c4ShapeMargin,i.data.stopx),jt=Math.max(jt,i.data.stopx),zt=Math.max(zt,i.data.stopy)}}t(fe,"drawInsideBoundary");var U0=t(async function(e,n,i,o){C=Te("c4");let f=l().securityLevel,{root:u}=C0(n,f),r=o.db;r.setWrap(C.wrap),Ne=r.getC4ShapeInRow(),ue=r.getC4BoundaryInRow(),a.debug(`C:${JSON.stringify(C,null,2)}`);let d=u.select(`[id="${n}"]`);nt.insertComputerIcon(d,n),nt.insertDatabaseIcon(d,n),nt.insertClockIcon(d,n);let s=new Ae(o);s.setData(C.diagramMarginX,C.diagramMarginX,C.diagramMarginY,C.diagramMarginY),s.data.widthLimit=screen.availWidth,jt=C.diagramMarginX,zt=C.diagramMarginY;let y=r.getTitle(),g=r.getBoundaries("");await fe(d,"",s,g,o),nt.insertArrowHead(d,n),nt.insertArrowEnd(d,n),nt.insertArrowCrossHead(d,n),nt.insertArrowFilledHead(d,n),F0(d,r.getRels(),r.getC4Shape,o,n),s.data.stopx=jt,s.data.stopy=zt;let m=s.data,{startx:v,starty:P}=m,z=zt-P+2*C.diagramMarginY,Y=jt-v,U=Y+2*C.diagramMarginX;if(y)d.append("text").text(y).attr("x",Y/2-4*C.diagramMarginX).attr("y",P+C.diagramMarginY);F(d,z,U,C.useMaxWidth);let H=y?60:0;d.attr("viewBox",v-C.diagramMarginX+" -"+(C.diagramMarginY+H)+" "+U+" "+(z+H)),a.debug("models:",m)},"draw"),Se={drawPersonOrSystemArray:Ie,drawBoundary:Le,setConf:he,draw:U0},j0=t(()=>{let e=l().c4??{},n=new CSSStyleSheet;for(let i of De){let o=n.cssRules[n.insertRule(`.c4-shape.c4-${i} .label {}`,n.cssRules.length)],f=e[`${i}FontFamily`],u=e[`${i}FontSize`],r=e[`${i}FontWeight`];if(f)o.style.setProperty("font-family",f);if(u)o.style.setProperty("font-size",typeof u==="number"?`${u}px`:u);if(r)o.style.setProperty("font-weight",String(r))}return[...n.cssRules].filter((i)=>i.style.length>0).map((i)=>` ${i.cssText}`).join(`
|
|
7
7
|
`)},"elementFontStyles"),z0=t((e)=>`.person {
|
|
8
8
|
stroke: ${e.personBorder};
|
|
9
9
|
fill: ${e.personBkg};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ui}from"./chunk-c57f714b.js";export{ui as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{t,a,we,
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'";else Ut="Parse error on line "+(vt+1)+": Unexpected "+(Y==ce?"end of input":"'"+(this.terminals_[Y]||Y)+"'");this.parseError(Ut,{text:
|
|
1
|
+
import{t,a,we,N,O,F,C,S,E,T,A,L,R,l,p}from"./chunk-c6m4vfn5.js";import"./chunk-ss96cz1f.js";import{wt}from"./chunk-zxrbbbtp.js";var Qt=function(){var e=t(function(st,o,c,f){for(c=c||{},f=st.length;f--;c[st[f]]=o);return c},"o"),r=[1,3],m=[1,4],y=[1,5],h=[1,6],g=[1,7],V=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],D=[2,36],P=[1,37],v=[1,36],q=[1,38],k=[1,35],_=[1,43],b=[1,41],I=[1,45],St=[1,14],_t=[1,23],At=[1,18],Ft=[1,19],mt=[1,20],zt=[1,21],qt=[1,22],n=[1,24],Ht=[1,25],Xt=[1,26],Mt=[1,27],Yt=[1,28],jt=[1,29],tt=[1,32],et=[1,33],w=[1,34],B=[1,39],W=[1,40],U=[1,42],Q=[1,44],at=[1,63],nt=[1,62],H=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Gt=[1,66],Kt=[1,67],Zt=[1,68],Jt=[1,69],$t=[1,70],te=[1,71],ee=[1,72],ie=[1,73],ae=[1,74],ne=[1,75],re=[1,76],se=[1,77],G=[4,5,6,7,8,9,10,11,12,13,14,15,18],ht=[1,91],ct=[1,92],dt=[1,93],ut=[1,100],xt=[1,94],ft=[1,97],gt=[1,95],pt=[1,96],yt=[1,98],bt=[1,99],Vt=[1,103],oe=[10,55,56,57],K=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],It={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(o,c,f,x,z,i,kt){var s=i.length-1;switch(z){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],x.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:x.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:x.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:x.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:x.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:x.setXAxisLeftText(i[s-2]),x.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",x.setXAxisLeftText(i[s-1]);break;case 53:x.setXAxisLeftText(i[s]);break;case 54:x.setYAxisBottomText(i[s-2]),x.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",x.setYAxisBottomText(i[s-1]);break;case 56:x.setYAxisBottomText(i[s]);break;case 57:x.setQuadrant1Text(i[s]);break;case 58:x.setQuadrant2Text(i[s]);break;case 59:x.setQuadrant3Text(i[s]);break;case 60:x.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:r,26:1,27:2,28:m,55:y,56:h,57:g},{1:[3]},{18:r,26:8,27:2,28:m,55:y,56:h,57:g},{18:r,26:9,27:2,28:m,55:y,56:h,57:g},e(V,[2,33],{29:10}),e(d,[2,61]),e(d,[2,62]),e(d,[2,63]),{1:[2,30]},{1:[2,31]},e(u,D,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:P,5:v,10:q,12:k,13:_,14:b,15:I,18:St,25:_t,35:At,37:Ft,39:mt,41:zt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(V,[2,34]),{27:46,55:y,56:h,57:g},e(u,[2,37]),e(u,D,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:P,5:v,10:q,12:k,13:_,14:b,15:I,18:St,25:_t,35:At,37:Ft,39:mt,41:zt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(u,[2,45]),e(u,[2,46]),{18:[1,51]},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:52,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:53,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:54,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:55,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:56,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:57,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,44:[1,58],47:[1,59],58:61,59:60,63:w,64:B,65:W,66:U,67:Q},e(H,[2,64]),e(H,[2,66]),e(H,[2,67]),e(H,[2,70]),e(H,[2,71]),e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(V,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:65,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,21:64},e(u,[2,53],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,78],63:w,64:B,65:W,66:U,67:Q}),e(u,[2,56],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,79],63:w,64:B,65:W,66:U,67:Q}),e(u,[2,57],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,58],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,59],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,60],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),{45:[1,80]},{44:[1,81]},e(H,[2,65]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),{3:83,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,18:[1,82]},e(G,[2,23]),e(G,[2,1]),e(G,[2,2]),e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),e(G,[2,9]),e(G,[2,10]),e(G,[2,11]),e(G,[2,12]),e(u,[2,52],{58:31,43:84,4:P,5:v,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,55],{58:31,43:85,4:P,5:v,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),{46:[1,86]},{45:[1,87]},{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:89,23:88},e(G,[2,24]),e(u,[2,51],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,54],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,47],{22:89,16:90,23:101,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{46:[1,102]},e(u,[2,29],{10:Vt}),e(oe,[2,27],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),e(K,[2,25]),e(K,[2,13]),e(K,[2,14]),e(K,[2,15]),e(K,[2,16]),e(K,[2,17]),e(K,[2,18]),e(K,[2,19]),e(K,[2,20]),e(K,[2,21]),e(K,[2,22]),e(u,[2,49],{10:Vt}),e(u,[2,48],{22:89,16:90,23:105,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:106},e(K,[2,26]),e(u,[2,50],{10:Vt}),e(oe,[2,28],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(o,c){if(c.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=c,f}},"parseError"),parse:t(function(o){var c=this,f=[0],x=[],z=[null],i=[],kt=this.table,s="",vt=0,le=0,he=0,Ce=2,ce=1,Le=i.slice.call(arguments,1),X=Object.create(this.lexer),ot={yy:{}};for(var Bt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Bt))ot.yy[Bt]=this.yy[Bt];if(X.setInput(o,ot.yy),ot.yy.lexer=X,ot.yy.parser=this,typeof X.yylloc>"u")X.yylloc={};var Rt=X.yylloc;i.push(Rt);var Ee=X.options&&X.options.ranges;if(typeof ot.yy.parseError==="function")this.parseError=ot.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function De(J){f.length=f.length-2*J,z.length=z.length-J,i.length=i.length-J}t(De,"popStack");function de(){var J=x.pop()||X.lex()||ce;if(typeof J!=="number"){if(J instanceof Array)x=J,J=x.pop();J=c.symbols_[J]||J}return J}t(de,"lex");var Y,Nt,lt,Z,We,Wt,Tt={},Ct,rt,ue,Lt;while(!0){if(lt=f[f.length-1],this.defaultActions[lt])Z=this.defaultActions[lt];else{if(Y===null||typeof Y>"u")Y=de();Z=kt[lt]&&kt[lt][Y]}if(typeof Z>"u"||!Z.length||!Z[0]){var Ut="";Lt=[];for(Ct in kt[lt])if(this.terminals_[Ct]&&Ct>Ce)Lt.push("'"+this.terminals_[Ct]+"'");if(X.showPosition)Ut="Parse error on line "+(vt+1)+`:
|
|
2
|
+
`+X.showPosition()+`
|
|
3
|
+
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'";else Ut="Parse error on line "+(vt+1)+": Unexpected "+(Y==ce?"end of input":"'"+(this.terminals_[Y]||Y)+"'");this.parseError(Ut,{text:X.match,token:this.terminals_[Y]||Y,line:X.yylineno,loc:Rt,expected:Lt})}if(Z[0]instanceof Array&&Z.length>1)throw Error("Parse Error: multiple actions possible at state: "+lt+", token: "+Y);switch(Z[0]){case 1:if(f.push(Y),z.push(X.yytext),i.push(X.yylloc),f.push(Z[1]),Y=null,!Nt){if(le=X.yyleng,s=X.yytext,vt=X.yylineno,Rt=X.yylloc,he>0)he--}else Y=Nt,Nt=null;break;case 2:if(rt=this.productions_[Z[1]][1],Tt.$=z[z.length-rt],Tt._$={first_line:i[i.length-(rt||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(rt||1)].first_column,last_column:i[i.length-1].last_column},Ee)Tt._$.range=[i[i.length-(rt||1)].range[0],i[i.length-1].range[1]];if(Wt=this.performAction.apply(Tt,[s,le,vt,ot.yy,Z[1],z,i].concat(Le)),typeof Wt<"u")return Wt;if(rt)f=f.slice(0,-1*rt*2),z=z.slice(0,-1*rt),i=i.slice(0,-1*rt);f.push(this.productions_[Z[1]][0]),z.push(Tt.$),i.push(Tt._$),ue=kt[f[f.length-2]][f[f.length-1]],f.push(ue);break;case 3:return!0}}return!0},"parse")},ve=function(){var st={EOF:1,parseError:t(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw Error(c)},"parseError"),setInput:t(function(o,c){if(this.yy=c||this.yy||{},this._input=o,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];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var c=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[z[0],z[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),c=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+c+"^"},"showPosition"),test_match:t(function(o,c){var f,x,z;if(this.options.backtrack_lexer){if(z={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)z.yylloc.range=this.yylloc.range.slice(0)}if(x=o[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],f=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var i in z)this[i]=z[i];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,c,f,x;if(!this._more)this.yytext="",this.match="";var z=this._currentRules();for(var i=0;i<z.length;i++)if(f=this._input.match(this.rules[z[i]]),f&&(!c||f[0].length>c[0].length)){if(c=f,x=i,this.options.backtrack_lexer)if(o=this.test_match(f,z[i]),o!==!1)return o;else if(this._backtrack){c=!1;continue}else return!1;else if(!this.options.flex)break}if(c){if(o=this.test_match(c,z[x]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,f,x,z){var i=z;switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return st}();It.lexer=ve;function Pt(){this.yy={}}return t(Pt,"Parser"),Pt.prototype=It,It.Parser=Pt,new Pt}();Qt.parser=Qt;var ze=Qt,j=we(),Ve=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:M.quadrantChart?.chartWidth||500,chartWidth:M.quadrantChart?.chartHeight||500,titlePadding:M.quadrantChart?.titlePadding||10,titleFontSize:M.quadrantChart?.titleFontSize||20,quadrantPadding:M.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:M.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:M.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:M.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:M.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:M.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:M.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:M.quadrantChart?.pointTextPadding||5,pointLabelFontSize:M.quadrantChart?.pointLabelFontSize||12,pointRadius:M.quadrantChart?.pointRadius||5,xAxisPosition:M.quadrantChart?.xAxisPosition||"top",yAxisPosition:M.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:M.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:M.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:j.quadrant1Fill,quadrant2Fill:j.quadrant2Fill,quadrant3Fill:j.quadrant3Fill,quadrant4Fill:j.quadrant4Fill,quadrant1TextFill:j.quadrant1TextFill,quadrant2TextFill:j.quadrant2TextFill,quadrant3TextFill:j.quadrant3TextFill,quadrant4TextFill:j.quadrant4TextFill,quadrantPointFill:j.quadrantPointFill,quadrantPointTextFill:j.quadrantPointTextFill,quadrantXAxisTextFill:j.quadrantXAxisTextFill,quadrantYAxisTextFill:j.quadrantYAxisTextFill,quadrantTitleFill:j.quadrantTitleFill,quadrantInternalBorderStrokeFill:j.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:j.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){a.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){a.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,m,y){let h=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,g={top:e==="top"&&r?h:0,bottom:e==="bottom"&&r?h:0},V=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&m?V:0,right:this.config.yAxisPosition==="right"&&m?V:0},u=this.config.titleFontSize+this.config.titlePadding*2,D={top:y?u:0},P=this.config.quadrantPadding+d.left,v=this.config.quadrantPadding+g.top+D.top,q=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,k=this.config.chartHeight-this.config.quadrantPadding*2-g.top-g.bottom-D.top,_=q/2,b=k/2;return{xAxisSpace:g,yAxisSpace:d,titleSpace:D,quadrantSpace:{quadrantLeft:P,quadrantTop:v,quadrantWidth:q,quadrantHalfWidth:_,quadrantHeight:k,quadrantHalfHeight:b}}}getAxisLabels(e,r,m,y){let{quadrantSpace:h,titleSpace:g}=y,{quadrantHalfHeight:V,quadrantHeight:d,quadrantLeft:u,quadrantHalfWidth:D,quadrantTop:P,quadrantWidth:v}=h,q=Boolean(this.data.xAxisRightText),k=Boolean(this.data.yAxisTopText),_=[];if(this.data.xAxisLeftText&&r)_.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)_.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+D+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&m)_.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+d-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&m)_.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+V-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});return _}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:m,quadrantLeft:y,quadrantHalfWidth:h,quadrantTop:g}=r,V=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g,width:h,height:m,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g,width:h,height:m,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant4Fill}];for(let d of V)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return V}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:m,quadrantLeft:y,quadrantTop:h,quadrantWidth:g}=r,V=wt().domain([0,1]).range([y,g+y]),d=wt().domain([0,1]).range([m+h,h]);return this.data.points.map((D)=>{let P=this.classes.get(D.className);if(P)D={...P,...D};return{x:V(D.x),y:d(D.y),fill:D.color??this.themeConfig.quadrantPointFill,radius:D.radius??this.config.pointRadius,text:{text:D.text,fill:this.themeConfig.quadrantPointTextFill,x:V(D.x),y:d(D.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:D.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:D.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:m}=e,{quadrantHalfHeight:y,quadrantHeight:h,quadrantLeft:g,quadrantHalfWidth:V,quadrantTop:d,quadrantWidth:u}=m;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d,x2:g+u+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g+u,y1:d+r,x2:g+u,y2:d+h-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d+h,x2:g+u+r,y2:d+h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g,y1:d+r,x2:g,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+V,y1:d+r,x2:g+V,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+r,y1:d+y,x2:g+u-r,y2:d+y}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),m=this.config.showTitle&&!!this.data.titleText,y=this.data.points.length>0?"bottom":this.config.xAxisPosition,h=this.calculateSpace(y,e,r,m);return{points:this.getQuadrantPoints(h),quadrants:this.getQuadrants(h),axisLabels:this.getAxisLabels(y,e,r,h),borderLines:this.getBorders(h),title:this.getTitle(m)}}},Et=class extends Error{static{t(this,"InvalidStyleError")}constructor(e,r,m){super(`value for ${e} ${r} is invalid, please use a valid ${m}`);this.name="InvalidStyleError"}};function Ot(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(Ot,"validateHexCode");function xe(e){return!/^\d+$/.test(e)}t(xe,"validateNumber");function fe(e){return!/^\d+px$/.test(e)}t(fe,"validateSizeInPixels");function it(e){return O(e.trim(),l())}t(it,"textSanitizer");var X=new Ve;function ge(e){X.setData({quadrant1Text:it(e.text)})}t(ge,"setQuadrant1Text");function pe(e){X.setData({quadrant2Text:it(e.text)})}t(pe,"setQuadrant2Text");function ye(e){X.setData({quadrant3Text:it(e.text)})}t(ye,"setQuadrant3Text");function be(e){X.setData({quadrant4Text:it(e.text)})}t(be,"setQuadrant4Text");function Te(e){X.setData({xAxisLeftText:it(e.text)})}t(Te,"setXAxisLeftText");function me(e){X.setData({xAxisRightText:it(e.text)})}t(me,"setXAxisRightText");function qe(e){X.setData({yAxisTopText:it(e.text)})}t(qe,"setYAxisTopText");function ke(e){X.setData({yAxisBottomText:it(e.text)})}t(ke,"setYAxisBottomText");function Dt(e){let r={};for(let m of e){let[y,h]=m.trim().split(/\s*:\s*/);if(y==="radius"){if(xe(h))throw new Et(y,h,"number");r.radius=parseInt(h)}else if(y==="color"){if(Ot(h))throw new Et(y,h,"hex code");r.color=h}else if(y==="stroke-color"){if(Ot(h))throw new Et(y,h,"hex code");r.strokeColor=h}else if(y==="stroke-width"){if(fe(h))throw new Et(y,h,"number of pixels (eg. 10px)");r.strokeWidth=h}else throw Error(`style named ${y} is not supported.`)}return r}t(Dt,"parseStyles");function Se(e,r,m,y,h){let g=Dt(h);X.addPoints([{x:m,y,text:it(e.text),className:r,...g}])}t(Se,"addPoint");function _e(e,r){X.addClass(e,Dt(r))}t(_e,"addClass");function Ae(e){X.setConfig({chartWidth:e})}t(Ae,"setWidth");function Fe(e){X.setConfig({chartHeight:e})}t(Fe,"setHeight");function Pe(){let e=l(),{themeVariables:r,quadrantChart:m}=e;if(m)X.setConfig(m);return X.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),X.setData({titleText:R()}),X.build()}t(Pe,"getQuadrantData");var Ie=t(function(){X.clear(),C()},"clear"),Be={setWidth:Ae,setHeight:Fe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:ke,parseStyles:Dt,addPoint:Se,addClass:_e,getQuadrantData:Pe,clear:Ie,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,getAccDescription:A,setAccDescription:T},Re=t((e,r,m,y)=>{function h(n){return n==="top"?"hanging":"middle"}t(h,"getDominantBaseLine");function g(n){return n==="left"?"start":"middle"}t(g,"getTextAnchor");function V(n){return`translate(${n.x}, ${n.y}) rotate(${n.rotation||0})`}t(V,"getTransformation");let d=l();a.debug(`Rendering quadrant chart
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,f,x,z){var i=z;switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return st}();It.lexer=ve;function Pt(){this.yy={}}return t(Pt,"Parser"),Pt.prototype=It,It.Parser=Pt,new Pt}();Qt.parser=Qt;var ze=Qt,j=we(),Ve=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:N.quadrantChart?.chartWidth||500,chartWidth:N.quadrantChart?.chartHeight||500,titlePadding:N.quadrantChart?.titlePadding||10,titleFontSize:N.quadrantChart?.titleFontSize||20,quadrantPadding:N.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:N.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:N.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:N.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:N.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:N.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:N.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:N.quadrantChart?.pointTextPadding||5,pointLabelFontSize:N.quadrantChart?.pointLabelFontSize||12,pointRadius:N.quadrantChart?.pointRadius||5,xAxisPosition:N.quadrantChart?.xAxisPosition||"top",yAxisPosition:N.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:N.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:N.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:j.quadrant1Fill,quadrant2Fill:j.quadrant2Fill,quadrant3Fill:j.quadrant3Fill,quadrant4Fill:j.quadrant4Fill,quadrant1TextFill:j.quadrant1TextFill,quadrant2TextFill:j.quadrant2TextFill,quadrant3TextFill:j.quadrant3TextFill,quadrant4TextFill:j.quadrant4TextFill,quadrantPointFill:j.quadrantPointFill,quadrantPointTextFill:j.quadrantPointTextFill,quadrantXAxisTextFill:j.quadrantXAxisTextFill,quadrantYAxisTextFill:j.quadrantYAxisTextFill,quadrantTitleFill:j.quadrantTitleFill,quadrantInternalBorderStrokeFill:j.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:j.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){a.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){a.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,m,y){let h=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,g={top:e==="top"&&r?h:0,bottom:e==="bottom"&&r?h:0},V=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&m?V:0,right:this.config.yAxisPosition==="right"&&m?V:0},u=this.config.titleFontSize+this.config.titlePadding*2,D={top:y?u:0},P=this.config.quadrantPadding+d.left,v=this.config.quadrantPadding+g.top+D.top,q=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,k=this.config.chartHeight-this.config.quadrantPadding*2-g.top-g.bottom-D.top,_=q/2,b=k/2;return{xAxisSpace:g,yAxisSpace:d,titleSpace:D,quadrantSpace:{quadrantLeft:P,quadrantTop:v,quadrantWidth:q,quadrantHalfWidth:_,quadrantHeight:k,quadrantHalfHeight:b}}}getAxisLabels(e,r,m,y){let{quadrantSpace:h,titleSpace:g}=y,{quadrantHalfHeight:V,quadrantHeight:d,quadrantLeft:u,quadrantHalfWidth:D,quadrantTop:P,quadrantWidth:v}=h,q=Boolean(this.data.xAxisRightText),k=Boolean(this.data.yAxisTopText),_=[];if(this.data.xAxisLeftText&&r)_.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)_.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+D+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&m)_.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+d-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&m)_.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+V-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});return _}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:m,quadrantLeft:y,quadrantHalfWidth:h,quadrantTop:g}=r,V=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g,width:h,height:m,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g,width:h,height:m,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant4Fill}];for(let d of V)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return V}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:m,quadrantLeft:y,quadrantTop:h,quadrantWidth:g}=r,V=wt().domain([0,1]).range([y,g+y]),d=wt().domain([0,1]).range([m+h,h]);return this.data.points.map((D)=>{let P=this.classes.get(D.className);if(P)D={...P,...D};return{x:V(D.x),y:d(D.y),fill:D.color??this.themeConfig.quadrantPointFill,radius:D.radius??this.config.pointRadius,text:{text:D.text,fill:this.themeConfig.quadrantPointTextFill,x:V(D.x),y:d(D.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:D.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:D.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:m}=e,{quadrantHalfHeight:y,quadrantHeight:h,quadrantLeft:g,quadrantHalfWidth:V,quadrantTop:d,quadrantWidth:u}=m;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d,x2:g+u+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g+u,y1:d+r,x2:g+u,y2:d+h-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d+h,x2:g+u+r,y2:d+h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g,y1:d+r,x2:g,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+V,y1:d+r,x2:g+V,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+r,y1:d+y,x2:g+u-r,y2:d+y}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),m=this.config.showTitle&&!!this.data.titleText,y=this.data.points.length>0?"bottom":this.config.xAxisPosition,h=this.calculateSpace(y,e,r,m);return{points:this.getQuadrantPoints(h),quadrants:this.getQuadrants(h),axisLabels:this.getAxisLabels(y,e,r,h),borderLines:this.getBorders(h),title:this.getTitle(m)}}},Et=class extends Error{static{t(this,"InvalidStyleError")}constructor(e,r,m){super(`value for ${e} ${r} is invalid, please use a valid ${m}`);this.name="InvalidStyleError"}};function Ot(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(Ot,"validateHexCode");function xe(e){return!/^\d+$/.test(e)}t(xe,"validateNumber");function fe(e){return!/^\d+px$/.test(e)}t(fe,"validateSizeInPixels");function it(e){return O(e.trim(),l())}t(it,"textSanitizer");var M=new Ve;function ge(e){M.setData({quadrant1Text:it(e.text)})}t(ge,"setQuadrant1Text");function pe(e){M.setData({quadrant2Text:it(e.text)})}t(pe,"setQuadrant2Text");function ye(e){M.setData({quadrant3Text:it(e.text)})}t(ye,"setQuadrant3Text");function be(e){M.setData({quadrant4Text:it(e.text)})}t(be,"setQuadrant4Text");function Te(e){M.setData({xAxisLeftText:it(e.text)})}t(Te,"setXAxisLeftText");function me(e){M.setData({xAxisRightText:it(e.text)})}t(me,"setXAxisRightText");function qe(e){M.setData({yAxisTopText:it(e.text)})}t(qe,"setYAxisTopText");function ke(e){M.setData({yAxisBottomText:it(e.text)})}t(ke,"setYAxisBottomText");function Dt(e){let r={};for(let m of e){let[y,h]=m.trim().split(/\s*:\s*/);if(y==="radius"){if(xe(h))throw new Et(y,h,"number");r.radius=parseInt(h)}else if(y==="color"){if(Ot(h))throw new Et(y,h,"hex code");r.color=h}else if(y==="stroke-color"){if(Ot(h))throw new Et(y,h,"hex code");r.strokeColor=h}else if(y==="stroke-width"){if(fe(h))throw new Et(y,h,"number of pixels (eg. 10px)");r.strokeWidth=h}else throw Error(`style named ${y} is not supported.`)}return r}t(Dt,"parseStyles");function Se(e,r,m,y,h){let g=Dt(h);M.addPoints([{x:m,y,text:it(e.text),className:r,...g}])}t(Se,"addPoint");function _e(e,r){M.addClass(e,Dt(r))}t(_e,"addClass");function Ae(e){M.setConfig({chartWidth:e})}t(Ae,"setWidth");function Fe(e){M.setConfig({chartHeight:e})}t(Fe,"setHeight");function Pe(){let e=l(),{themeVariables:r,quadrantChart:m}=e;if(m)M.setConfig(m);return M.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),M.setData({titleText:R()}),M.build()}t(Pe,"getQuadrantData");var Ie=t(function(){M.clear(),C()},"clear"),Be={setWidth:Ae,setHeight:Fe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:ke,parseStyles:Dt,addPoint:Se,addClass:_e,getQuadrantData:Pe,clear:Ie,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,getAccDescription:A,setAccDescription:T},Re=t((e,r,m,y)=>{function h(n){return n==="top"?"hanging":"middle"}t(h,"getDominantBaseLine");function g(n){return n==="left"?"start":"middle"}t(g,"getTextAnchor");function V(n){return`translate(${n.x}, ${n.y}) rotate(${n.rotation||0})`}t(V,"getTransformation");let d=l();a.debug(`Rendering quadrant chart
|
|
7
7
|
`+e);let u=d.securityLevel,D;if(u==="sandbox")D=p("#i"+r);let v=(u==="sandbox"?p(D.nodes()[0].contentDocument.body):p("body")).select(`[id="${r}"]`),q=v.append("g").attr("class","main"),k=d.quadrantChart?.chartWidth??500,_=d.quadrantChart?.chartHeight??500;F(v,_,k,d.quadrantChart?.useMaxWidth??!0),v.attr("viewBox","0 0 "+k+" "+_),y.db.setHeight(_),y.db.setWidth(k);let b=y.db.getQuadrantData(),I=q.append("g").attr("class","quadrants"),St=q.append("g").attr("class","border"),_t=q.append("g").attr("class","data-points"),At=q.append("g").attr("class","labels"),Ft=q.append("g").attr("class","title");if(b.title)Ft.append("text").attr("x",0).attr("y",0).attr("fill",b.title.fill).attr("font-size",b.title.fontSize).attr("dominant-baseline",h(b.title.horizontalPos)).attr("text-anchor",g(b.title.verticalPos)).attr("transform",V(b.title)).text(b.title.text);if(b.borderLines)St.selectAll("line").data(b.borderLines).enter().append("line").attr("x1",(n)=>n.x1).attr("y1",(n)=>n.y1).attr("x2",(n)=>n.x2).attr("y2",(n)=>n.y2).style("stroke",(n)=>n.strokeFill).style("stroke-width",(n)=>n.strokeWidth);let mt=I.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class","quadrant");mt.append("rect").attr("x",(n)=>n.x).attr("y",(n)=>n.y).attr("width",(n)=>n.width).attr("height",(n)=>n.height).attr("fill",(n)=>n.fill),mt.append("text").attr("x",0).attr("y",0).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text)).text((n)=>n.text.text),At.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((n)=>n.text).attr("fill",(n)=>n.fill).attr("font-size",(n)=>n.fontSize).attr("dominant-baseline",(n)=>h(n.horizontalPos)).attr("text-anchor",(n)=>g(n.verticalPos)).attr("transform",(n)=>V(n));let qt=_t.selectAll("g.data-point").data(b.points).enter().append("g").attr("class","data-point");qt.append("circle").attr("cx",(n)=>n.x).attr("cy",(n)=>n.y).attr("r",(n)=>n.radius).attr("fill",(n)=>n.fill).attr("stroke",(n)=>n.strokeColor).attr("stroke-width",(n)=>n.strokeWidth),qt.append("text").attr("x",0).attr("y",0).text((n)=>n.text.text).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text))},"draw"),Ne={draw:Re},Me={parser:ze,db:Be,renderer:Ne,styles:t(()=>"","styles")};export{Me as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h,o,W,i,r,e,n,y,ne}from"./chunk-ve8gy05p.js";import{qt}from"./chunk-mnf4ngj9.js";import"./chunk-k9qnvx86.js";var G={config:"自定义路径",env:"环境变量",system:"系统预装"};function L({connection:p}){let{Button:w,Input:P,Switch:v,SettingGroup:C,SettingRow:d,cn:x}=y(),B=W(),[f,N]=r({}),[a,b]=r({}),[l,S]=r(null),[u,A]=r(!0),[k,R]=r(!1),[g,E]=r(!1),[I,c]=r(null),q=i(null),z=(a.executable??"")!==(f.executable??"")||Boolean(a.noSandbox)!==Boolean(f.noSandbox)||Boolean(a.ignoreCertErrors)!==Boolean(f.ignoreCertErrors),O=h(async(t)=>{R(!0);try{let s=await p.request("/api/plugins/browser/status",{signal:t});S(s)}catch(s){if(!t?.aborted)S({available:!1,error:s instanceof Error?s.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)R(!1)}},[p]);o(()=>{let t=new AbortController;return q.current=t,Promise.all([p.request("/api/plugins/browser/settings",{signal:t.signal}),p.request("/api/plugins/browser/status",{signal:t.signal})]).then(([s,m])=>{if(!t.signal.aborted)N(s),b(s),S(m)}).catch((s)=>{if(!t.signal.aborted)c({type:"error",text:s instanceof Error?s.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)A(!1)}),()=>t.abort()},[p]);let D=async(t)=>{if(t?.preventDefault(),g||u)return;let s=new AbortController;E(!0),c(null);try{if(await p.request("/api/plugins/browser/settings",{method:"PATCH",signal:s.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),!s.signal.aborted)N(a),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await O(s.signal)}catch(m){if(!s.signal.aborted)c({type:"error",text:m instanceof Error?m.message:"保存设置失败"})}finally{if(!s.signal.aborted)E(!1)}},T=()=>{b(f),c(null)};return n("form",{id:B,onSubmit:D,className:"min-w-0 space-y-5",children:[e(C,{title:"运行环境",children:e(d,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:x("size-2 shrink-0 rounded-full",l?.available?"bg-success":"bg-danger")}),l?l.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:l&&!l.available&&l.error?e("span",{className:"text-danger",children:l.error}):l?.available&&l.source?`来源:${G[l.source]??l.source}`:void 0,children:n(w,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void O(),className:"text-dim",children:[e(ne,{className:x("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(C,{title:"启动参数",children:[e(d,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(P,{id:"browser-executable",disabled:u||g,value:a.executable??"",placeholder:"自动探测",onChange:(t)=>{b({...a,executable:t.target.value}),c(null)}}),a.executable&&e(w,{type:"button",variant:"ghost",size:"sm",disabled:u||g,onClick:()=>{b({...a,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(d,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(v,{label:"禁用沙箱",disabled:u||g,checked:a.noSandbox??!1,onCheckedChange:(t)=>{b({...a,noSandbox:t}),c(null)}})}),e(d,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(v,{label:"忽略证书错误",disabled:u||g,checked:a.ignoreCertErrors??!1,onCheckedChange:(t)=>{b({...a,ignoreCertErrors:t}),c(null)}})})]}),e(qt,{formID:B,notice:I,dirty:z,busy:u||g,saving:g,onReset:T})]})}export{L as default};
|