@calmabacus/pi-web 1.1.0 → 1.1.1
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +9 -9
- package/.next/build-manifest.json +3 -3
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +215 -224
- package/.next/required-server-files.js +3 -2
- package/.next/required-server-files.json +3 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/page.js +21 -21
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +9 -9
- package/.next/server/chunks/102.js +90 -0
- package/.next/server/chunks/11.js +1 -0
- package/.next/server/chunks/1286.js +1 -0
- package/.next/server/chunks/{4563.js → 1412.js} +1 -1
- package/.next/server/chunks/1605.js +1 -0
- package/.next/server/chunks/169.js +1 -0
- package/.next/server/chunks/{3186.js → 18.js} +1 -1
- package/.next/server/chunks/2022.js +1 -0
- package/.next/server/chunks/{4267.js → 2156.js} +1 -1
- package/.next/server/chunks/2157.js +1 -0
- package/.next/server/chunks/2325.js +3 -3
- package/.next/server/chunks/2838.js +1 -0
- package/.next/server/chunks/2897.js +79 -0
- package/.next/server/chunks/3227.js +1 -0
- package/.next/server/chunks/3266.js +1 -0
- package/.next/server/chunks/3379.js +1 -1
- package/.next/server/chunks/3428.js +32 -0
- package/.next/server/chunks/3479.js +1 -0
- package/.next/server/chunks/367.js +115 -0
- package/.next/server/chunks/3698.js +93 -0
- package/.next/server/chunks/{8713.js → 3709.js} +4 -4
- package/.next/server/chunks/4107.js +62 -0
- package/.next/server/chunks/426.js +10 -10
- package/.next/server/chunks/{7799.js → 4569.js} +1 -1
- package/.next/server/chunks/{8782.js → 4755.js} +2 -2
- package/.next/server/chunks/5002.js +1 -0
- package/.next/server/chunks/5112.js +1 -0
- package/.next/server/chunks/5289.js +8 -0
- package/.next/server/chunks/5452.js +23 -0
- package/.next/server/chunks/5453.js +1 -0
- package/.next/server/chunks/5582.js +2 -2
- package/.next/server/chunks/5749.js +27 -0
- package/.next/server/chunks/5782.js +36 -0
- package/.next/server/chunks/{6253.js → 6163.js} +1 -1
- package/.next/server/chunks/6169.js +64 -0
- package/.next/server/chunks/{1094.js → 6208.js} +17 -5
- package/.next/server/chunks/6399.js +24 -0
- package/.next/server/chunks/6429.js +3 -3
- package/.next/server/chunks/6496.js +1 -0
- package/.next/server/chunks/6823.js +215 -0
- package/.next/server/chunks/{4548.js → 6888.js} +1 -1
- package/.next/server/chunks/7245.js +77 -0
- package/.next/server/chunks/7307.js +1 -1
- package/.next/server/chunks/7372.js +287 -0
- package/.next/server/chunks/7384.js +226 -0
- package/.next/server/chunks/7516.js +1 -0
- package/.next/server/chunks/7531.js +24 -0
- package/.next/server/chunks/7591.js +1 -0
- package/.next/server/chunks/7755.js +138 -0
- package/.next/server/chunks/7916.js +1 -0
- package/.next/server/chunks/8078.js +94 -0
- package/.next/server/chunks/8253.js +41 -0
- package/.next/server/chunks/8635.js +1 -0
- package/.next/server/chunks/8688.js +1 -0
- package/.next/server/chunks/8872.js +1 -0
- package/.next/server/chunks/9006.js +1 -0
- package/.next/server/chunks/9018.js +1 -0
- package/.next/server/chunks/9047.js +1 -0
- package/.next/server/chunks/9108.js +1 -0
- package/.next/server/chunks/9280.js +91 -90
- package/.next/server/chunks/9419.js +1 -0
- package/.next/server/chunks/9430.js +1 -0
- package/.next/server/chunks/9586.js +1 -0
- package/.next/server/chunks/9775.js +1 -0
- package/.next/server/chunks/992.js +1 -0
- package/.next/server/chunks/9926.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/1213.e5c6e70a79b5f7e6.js +24 -0
- package/.next/static/chunks/1519.2f596e5f5af9ef57.js +62 -0
- package/.next/static/chunks/1974.9f7176c5854f9939.js +32 -0
- package/.next/static/chunks/2280.e03ab3748922284c.js +1 -0
- package/.next/static/chunks/{398.ffa02af9062a3950.js → 2521.7f745f50d30076e7.js} +1 -1
- package/.next/static/chunks/2585.4d6aa847c780c666.js +1 -0
- package/.next/static/chunks/2589.e456c324416f9615.js +1 -0
- package/.next/static/chunks/2600.45ba17a0f756fc31.js +1 -0
- package/.next/static/chunks/26d302b2.b77b53a34ca944aa.js +122 -0
- package/.next/static/chunks/2768.1a75ba9e2be767cf.js +1 -0
- package/.next/static/chunks/2931.c2acdbf72808b646.js +41 -0
- package/.next/static/chunks/3016.406e568aa95ff867.js +1 -0
- package/.next/static/chunks/{4004.74b9bcf5478b1663.js → 3022.972047558a20553a.js} +30 -18
- package/.next/static/chunks/3064.3a2a1e7cd4fdca5f.js +1 -0
- package/.next/static/chunks/3174.03fbed7b7d7a8256.js +1 -0
- package/.next/static/chunks/3189.b048866768087750.js +1 -0
- package/.next/static/chunks/3217.1a053843c58b70b5.js +24 -0
- package/.next/static/chunks/3308.b58803a5e26a56d8.js +74 -0
- package/.next/static/chunks/331.fc5d78e1e91daf43.js +1 -0
- package/.next/static/chunks/3510.5d4d1c79533e080c.js +1 -0
- package/.next/static/chunks/364.ce5400a9dd70b9dc.js +1 -0
- package/.next/static/chunks/3658-625de9bc05634c7f.js +7 -0
- package/.next/static/chunks/{9793.4567af813117ad25.js → 3789.c418b69121761983.js} +1 -1
- package/.next/static/chunks/3831.25ae62d10dccc27a.js +1 -0
- package/.next/static/chunks/395.3621e96c2bdfec18.js +90 -0
- package/.next/static/chunks/{da12927c.476aa688a637649c.js → 3a7aa434.280905293fc59b77.js} +3 -3
- package/.next/static/chunks/4020.3cc19c463c49f969.js +23 -0
- package/.next/static/chunks/{1063.775c442bdbeef08b.js → 4035.0acc428926d5c8dd.js} +1 -1
- package/.next/static/chunks/405.0902e4f6eb7bd9a2.js +215 -0
- package/.next/static/chunks/4159.bb7124776cbd5f2d.js +138 -0
- package/.next/static/chunks/{4405.7a19458960a1058e.js → 4208.8ea72bb20afa959e.js} +2 -2
- package/.next/static/chunks/4263.ffa8d9bd8a0faaae.js +1 -0
- package/.next/static/chunks/4561.d1a3aaca8bae3224.js +34 -0
- package/.next/static/chunks/4592.507c41f345e21bee.js +93 -0
- package/.next/static/chunks/4799.3c6182ded3f32244.js +1 -0
- package/.next/static/chunks/514.b804c51b26f5e126.js +1 -0
- package/.next/static/chunks/{3336.a76f9485fe7cb762.js → 5270.28592864d38e881c.js} +1 -1
- package/.next/static/chunks/52733464.b343531c2f886252.js +1 -0
- package/.next/static/chunks/5354.b559c717a607dc5c.js +1 -0
- package/.next/static/chunks/{3995.eca0f5bef1fc3ae5.js → 5448.d3972d9fb464b54f.js} +2 -2
- package/.next/static/chunks/587.d52737d7288c11b4.js +1 -0
- package/.next/static/chunks/5909.9e37f7b495b11995.js +115 -0
- package/.next/static/chunks/{7331.2add3c4e125a2dba.js → 5949.5504b3545fcc3d34.js} +1 -1
- package/.next/static/chunks/{9698.4d09a99b9d99f3e5.js → 6361.893d04ac34fa1b49.js} +3 -3
- package/.next/static/chunks/{5526.ff46471041fdcb79.js → 6774.8cd53427dbf32cac.js} +1 -1
- package/.next/static/chunks/6968.b80277c724dbc96e.js +1 -0
- package/.next/static/chunks/{973.88e865b52eff479a.js → 7113.93146ac5e46c1859.js} +1 -1
- package/.next/static/chunks/7236.55a9728d35f5b8a6.js +1 -0
- package/.next/static/chunks/7390.bc7f4ed9f76fe9e1.js +1 -0
- package/.next/static/chunks/7806.a903780fcfa3a30e.js +1 -0
- package/.next/static/chunks/7997.517120d5fcd77d6b.js +1 -0
- package/.next/static/chunks/8216.64a72d4d35ea7be0.js +1 -0
- package/.next/static/chunks/830.a6da04c322e3204a.js +1 -0
- package/.next/static/chunks/{4202.8440832386f023c7.js → 8378.fa91de3406f554c9.js} +1 -1
- package/.next/static/chunks/8501.c34c2a9170eb458d.js +79 -0
- package/.next/static/chunks/8663.6ec5792fb4952e45.js +27 -0
- package/.next/static/chunks/872.96937e758ddce860.js +1 -0
- package/.next/static/chunks/8803.75bde095fe3613f5.js +1 -0
- package/.next/static/chunks/8863.72f5dbb820a0e4c3.js +1 -0
- package/.next/static/chunks/90542734.90283a0c0c838d51.js +1 -0
- package/.next/static/chunks/9379.5bc9c9343ec5a16c.js +64 -0
- package/.next/static/chunks/9389.906fe7aa9cd6a170.js +1 -0
- package/.next/static/chunks/9472.8d21dc4771024c26.js +94 -0
- package/.next/static/chunks/966.50e905df30903189.js +1 -0
- package/.next/static/chunks/{2703.495a65ed14b2f094.js → 9884.c6cac4659c50ebfa.js} +3 -3
- package/.next/static/chunks/app/{layout-6f28a6ca96b468e4.js → layout-900d990b4229e169.js} +1 -1
- package/.next/static/chunks/app/page-6e8e4795e738ba8b.js +232 -0
- package/.next/static/chunks/{1ba63609.b2ae90f43319a29e.js → e413bedd.3a12a8cb02e28fdf.js} +1 -1
- package/.next/static/chunks/ea233666.ebaeaf2eb673ecfa.js +62 -0
- package/.next/static/chunks/framework-3a41051109d8ea39.js +1 -0
- package/.next/static/chunks/webpack-d022bdbc1a873e3c.js +1 -0
- package/.next/static/css/be8ae7904992a245.css +1 -0
- package/.next/trace +7 -7
- package/.next/trace-build +1 -1
- package/next.config.ts +1 -0
- package/package.json +5 -5
- package/.next/server/chunks/1515.js +0 -1
- package/.next/server/chunks/1555.js +0 -1
- package/.next/server/chunks/1601.js +0 -24
- package/.next/server/chunks/1625.js +0 -1
- package/.next/server/chunks/1800.js +0 -1
- package/.next/server/chunks/1860.js +0 -1
- package/.next/server/chunks/2075.js +0 -23
- package/.next/server/chunks/2106.js +0 -1
- package/.next/server/chunks/2169.js +0 -36
- package/.next/server/chunks/2190.js +0 -1
- package/.next/server/chunks/2408.js +0 -1
- package/.next/server/chunks/2452.js +0 -93
- package/.next/server/chunks/2744.js +0 -1
- package/.next/server/chunks/2903.js +0 -1
- package/.next/server/chunks/295.js +0 -1
- package/.next/server/chunks/3012.js +0 -1
- package/.next/server/chunks/3383.js +0 -27
- package/.next/server/chunks/3569.js +0 -1
- package/.next/server/chunks/3869.js +0 -8
- package/.next/server/chunks/3894.js +0 -1
- package/.next/server/chunks/4315.js +0 -1
- package/.next/server/chunks/4367.js +0 -1
- package/.next/server/chunks/4372.js +0 -1
- package/.next/server/chunks/4538.js +0 -24
- package/.next/server/chunks/4674.js +0 -1
- package/.next/server/chunks/4980.js +0 -1
- package/.next/server/chunks/5029.js +0 -1
- package/.next/server/chunks/5974.js +0 -77
- package/.next/server/chunks/6052.js +0 -141
- package/.next/server/chunks/611.js +0 -1
- package/.next/server/chunks/6337.js +0 -1
- package/.next/server/chunks/6366.js +0 -80
- package/.next/server/chunks/673.js +0 -287
- package/.next/server/chunks/6916.js +0 -226
- package/.next/server/chunks/703.js +0 -1
- package/.next/server/chunks/7233.js +0 -1
- package/.next/server/chunks/7265.js +0 -215
- package/.next/server/chunks/7561.js +0 -1
- package/.next/server/chunks/7710.js +0 -1
- package/.next/server/chunks/7744.js +0 -64
- package/.next/server/chunks/7790.js +0 -1
- package/.next/server/chunks/7872.js +0 -1
- package/.next/server/chunks/8106.js +0 -1
- package/.next/server/chunks/8294.js +0 -1
- package/.next/server/chunks/8333.js +0 -79
- package/.next/server/chunks/835.js +0 -1
- package/.next/server/chunks/8397.js +0 -41
- package/.next/server/chunks/8604.js +0 -115
- package/.next/server/chunks/8920.js +0 -62
- package/.next/server/chunks/922.js +0 -5
- package/.next/server/chunks/9486.js +0 -1
- package/.next/server/chunks/9509.js +0 -1
- package/.next/server/chunks/9510.js +0 -90
- package/.next/static/chunks/103.23142a67b02246a8.js +0 -215
- package/.next/static/chunks/1032.12b382a9096ab2a4.js +0 -1
- package/.next/static/chunks/1327.09252bb80616cc3a.js +0 -1
- package/.next/static/chunks/1708.d029f8776e4578de.js +0 -1
- package/.next/static/chunks/1781.866132cea8e77cd0.js +0 -1
- package/.next/static/chunks/2081.47b6e9391094055f.js +0 -1
- package/.next/static/chunks/2181.ba21239d3ac39f81.js +0 -1
- package/.next/static/chunks/2258.4defa30121ef44a5.js +0 -1
- package/.next/static/chunks/2325.23caf22075e51aa5.js +0 -1
- package/.next/static/chunks/2356.523277bb8c6bf72a.js +0 -23
- package/.next/static/chunks/2418.b5d9e177e10a686e.js +0 -1
- package/.next/static/chunks/2480.cf27ca02e5b19761.js +0 -24
- package/.next/static/chunks/2539.c5a4f2fd8e421c70.js +0 -41
- package/.next/static/chunks/268.72794ee2773c2060.js +0 -80
- package/.next/static/chunks/2695.6f49435bae1e6f33.js +0 -90
- package/.next/static/chunks/2821.934bcf60fbdc28c6.js +0 -1
- package/.next/static/chunks/3251.0dce7a0a0ff67235.js +0 -1
- package/.next/static/chunks/3308.be8762955e7155d1.js +0 -73
- package/.next/static/chunks/3716.72bf4c9d7325debd.js +0 -1
- package/.next/static/chunks/4238.6f102dcbcf2ae339.js +0 -141
- package/.next/static/chunks/4424.fd0c93a807a333e1.js +0 -1
- package/.next/static/chunks/4866.d1060b4faf2ae1e2.js +0 -1
- package/.next/static/chunks/4970.8a63b4953b0e4946.js +0 -1
- package/.next/static/chunks/5020.9ac8d0dc8390bb6e.js +0 -1
- package/.next/static/chunks/5137.f163e94c74a94d01.js +0 -1
- package/.next/static/chunks/5242.7b643c6b3394cac1.js +0 -1
- package/.next/static/chunks/5361.afc00ab2626bacbf.js +0 -1
- package/.next/static/chunks/5521.cfdf2cfc6db31407.js +0 -1
- package/.next/static/chunks/5681.dd0e66b0de16e54b.js +0 -27
- package/.next/static/chunks/6121.eb9023b1cbc78ee2.js +0 -1
- package/.next/static/chunks/6161.4836cd7d031026bf.js +0 -1
- package/.next/static/chunks/6195.1153369f5f8b13a2.js +0 -24
- package/.next/static/chunks/6294.24f510c0c3e3714c.js +0 -1
- package/.next/static/chunks/6654.16f727522ec47f5a.js +0 -1
- package/.next/static/chunks/6794.f746d8fbbf248ecf.js +0 -93
- package/.next/static/chunks/7256.e07cf52d87d40252.js +0 -1
- package/.next/static/chunks/7268.236544be8e242c16.js +0 -1
- package/.next/static/chunks/7543.89f7b805ed0f2901.js +0 -1
- package/.next/static/chunks/8200.a36b9f8c983c6b9e.js +0 -5
- package/.next/static/chunks/869.7152372b662e31af.js +0 -1
- package/.next/static/chunks/8863.fa0320ea586efb3b.js +0 -1
- package/.next/static/chunks/8885.cf60cac98bf8b70c.js +0 -79
- package/.next/static/chunks/8901.e117d206a917bda0.js +0 -1
- package/.next/static/chunks/90542734.ae439f2382f58c51.js +0 -1
- package/.next/static/chunks/918.6a9bbe564e4a2d0f.js +0 -115
- package/.next/static/chunks/934.9006461bd0548660.js +0 -1
- package/.next/static/chunks/9445-fde6feabcb39142c.js +0 -7
- package/.next/static/chunks/9522.c7c6e9c330f9ba6b.js +0 -1
- package/.next/static/chunks/9614.3221013d7f0af27f.js +0 -64
- package/.next/static/chunks/9705.40a82b97f214e28b.js +0 -1
- package/.next/static/chunks/9764.2669775c6e107a01.js +0 -62
- package/.next/static/chunks/993e5495.8797001fcfcf2889.js +0 -62
- package/.next/static/chunks/9974.9a0f79beca65e8c4.js +0 -34
- package/.next/static/chunks/app/page-1b94cf40b6b9c77e.js +0 -232
- package/.next/static/chunks/bf2ff291.3a109dffc1fe84af.js +0 -122
- package/.next/static/chunks/db9d41be.e72ce090a86a3691.js +0 -1
- package/.next/static/chunks/framework-b33a8f5d57cd8d87.js +0 -1
- package/.next/static/chunks/webpack-25464d90fe89e601.js +0 -1
- package/.next/static/css/3afba5dcf1fc15ed.css +0 -1
- /package/.next/static/{CAfXUwq4b0HP5p-fE011j → gQm9NqajOt7lJ9sjH6Hab}/_buildManifest.js +0 -0
- /package/.next/static/{CAfXUwq4b0HP5p-fE011j → gQm9NqajOt7lJ9sjH6Hab}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8133],{39100:(t,e,a)=>{a.d(e,{diagram:()=>tv});var r=a(94434),i=a(66246),s=a(40202),n=a(86305),o=a(37325),c=a(56037),l=a(89851),d=a(33948),h=a(84485),p=function(){var t=(0,l.K)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],n=[1,11],o=[1,12],c=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],u=[1,27],_=[1,28],O=[1,29],y=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],R=[1,36],L=[1,37],P=[1,38],D=[1,39],N=[1,40],w=[1,42],S=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Y=[1,74],B=[1,80],K=[1,81],$=[1,82],V=[1,83],W=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],j=[1,89],U=[1,90],G=[1,91],X=[1,92],Z=[1,93],J=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[2,78],th=[4,5,17,51,53,54],tp=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tT=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],tu=[5,52],t_=[70,71,72,73],tO=[1,151],ty={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,l.K)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:this.$={type:"addParticipant",actor:s[o]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,5]),{9:48,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,15]),{13:49,51:P,53:D,54:N},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:C},{23:56,73:C},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(v,[2,30]),t(v,[2,31]),{33:[1,62]},{35:[1,63]},t(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Y},{23:75,55:76,73:Y},{23:77,73:C},{69:78,72:[1,79],78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:C},{23:111,73:C},{23:112,73:C},{23:113,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],td),t(v,[2,6]),t(v,[2,16]),t(th,[2,10],{11:114}),t(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(v,[2,22]),{5:[1,118]},{5:[1,119]},t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,32]),t(v,[2,33]),t(tp,i,{7:120}),t(tp,i,{7:121}),t(tp,i,{7:122}),t(tT,i,{41:123,7:124}),t(tE,i,{43:125,7:126}),t(tE,i,{7:126,43:127}),t(tg,i,{46:128,7:129}),t(tp,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(tu,td,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:C},{69:146,78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},t(t_,[2,79]),t(t_,[2,80]),t(t_,[2,81]),t(t_,[2,82]),t(t_,[2,83]),t(t_,[2,84]),t(t_,[2,85]),t(t_,[2,86]),t(t_,[2,87]),t(t_,[2,88]),t(t_,[2,89]),t(t_,[2,90]),t(t_,[2,91]),t(t_,[2,92]),t(t_,[2,93]),t(t_,[2,94]),t(t_,[2,95]),t(t_,[2,96]),t(t_,[2,97]),t(t_,[2,98]),t(t_,[2,99]),t(t_,[2,100]),t(t_,[2,101]),t(t_,[2,102]),t(t_,[2,103]),t(t_,[2,104]),{23:147,73:C},{23:149,60:148,73:C},{73:[2,68]},{73:[2,69]},{58:150,104:tO},{58:152,104:tO},{58:153,104:tO},{58:154,104:tO},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:P,53:D,54:N},{5:[1,160]},t(v,[2,20]),t(v,[2,21]),t(v,[2,23]),t(v,[2,24]),{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,161],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,164]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,50:[1,165],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,166]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,49:[1,167],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,168]},{17:[1,169]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,48:[1,170],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,171],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{16:[1,172]},t(v,[2,50]),{16:[1,173]},t(v,[2,55]),t(tu,[2,76]),{76:[1,174]},{16:[1,175]},t(v,[2,52]),{16:[1,176]},t(v,[2,57]),t(v,[2,53]),{23:177,73:C},{23:178,73:C},{23:179,73:C},{58:180,104:tO},{23:181,72:[1,182],73:C},{58:183,104:tO},{58:184,104:tO},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(v,[2,17]),t(th,[2,11]),{13:186,51:P,53:D,54:N},t(th,[2,13]),t(th,[2,14]),t(v,[2,19]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),{16:[1,187]},t(v,[2,39]),{16:[1,188]},t(v,[2,40]),t(v,[2,41]),{16:[1,189]},t(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:tO},{58:196,104:tO},{58:197,104:tO},{5:[2,75]},{58:198,104:tO},{23:199,73:C},{5:[2,58]},{5:[2,59]},{23:200,73:C},t(th,[2,12]),t(tT,i,{7:124,41:201}),t(tE,i,{7:126,43:202}),t(tg,i,{7:129,46:203}),t(v,[2,49]),t(v,[2,54]),t(tu,[2,77]),t(v,[2,51]),t(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:tO},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,l.K)(function(t){var e=this,a=[0],r=[],i=[null],s=[],n=this.table,o="",c=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var u=T.yylloc;s.push(u);var _=T.options&&T.options.ranges;function O(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.K)(O,"lex");for(var y,x,b,m,I,f,R,L,P,D={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==y&&(y=O()),m=n[b]&&n[b][y]),void 0===m||!m.length||!m[0]){var N="";for(f in P=[],n[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");N=T.showPosition?"Parse error on line "+(c+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(N,{text:T.match,token:this.terminals_[y]||y,line:T.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(m[0]){case 1:a.push(y),i.push(T.yytext),s.push(T.yylloc),a.push(m[1]),y=null,x?(y=x,x=null):(d=T.yyleng,o=T.yytext,c=T.yylineno,u=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[m[1]][1],D.$=i[i.length-R],D._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},_&&(D._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(D,[o,d,c,E,m[1],i,s].concat(p))))return I;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[m[1]][0]),i.push(D.$),s.push(D._$),L=n[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tx(){this.yy={}}return ty.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,l.K)(tx,"Parser"),tx.prototype=ty,ty.Parser=tx,new tx}();p.parser=p;var T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},g={LEFTOF:0,RIGHTOF:1,OVER:2},u=class{constructor(){this.state=new r.m(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=o.SV,this.setAccDescription=o.EI,this.setDiagramTitle=o.ke,this.getAccTitle=o.iN,this.getAccDescription=o.m7,this.getDiagramTitle=o.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,o.D7)().wrap),this.LINETYPE=T,this.ARROWTYPE=E,this.PLACEMENT=g}static{(0,l.K)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,r,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,i.H)(t,{schema:i.r})}r=n?.type??r,n?.alias&&(!a||a.text===e)&&(a={text:n.alias,wrap:a?.wrap,type:r});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&e===c.name&&null==a)return}if(a?.text==null&&(a={text:e,type:r}),(null==r||null==a.text)&&(a={text:e,type:r}),this.state.records.actors.set(t,{box:o,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,o.D7)().sequence?.wrap??!1}clear(){this.state.reset(),(0,o.IU)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return c.R.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:s}=this.extractWrap(r);return{text:s?(0,o.jZ)(s,(0,o.D7)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){c.R.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,o.jZ)(e.text,(0,o.D7)()),i=r.indexOf("@"),s=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),n=r.slice(i+1).trim();t[s]=n,this.insertLinks(a,t)}catch(t){c.R.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){c.R.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){c.R.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,o.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,o.D7)().sequence}},_=(0,l.K)(t=>{let e=t.dropShadow??"none",{look:a}=(0,o.D7)();return`.actor {
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3447],{51901:(t,e,a)=>{a.d(e,{diagram:()=>tv});var r=a(94434),i=a(27041),s=a(30790),n=a(52691),o=a(31775),c=a(56037),l=a(89851),d=a(33948),h=a(84485),p=function(){var t=(0,l.K)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],n=[1,11],o=[1,12],c=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],u=[1,27],_=[1,28],O=[1,29],y=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],R=[1,36],L=[1,37],P=[1,38],D=[1,39],N=[1,40],w=[1,42],S=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Y=[1,74],B=[1,80],K=[1,81],$=[1,82],V=[1,83],W=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],j=[1,89],U=[1,90],G=[1,91],X=[1,92],Z=[1,93],J=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[2,78],th=[4,5,17,51,53,54],tp=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tT=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],tu=[5,52],t_=[70,71,72,73],tO=[1,151],ty={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,l.K)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:this.$={type:"addParticipant",actor:s[o]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,5]),{9:48,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,15]),{13:49,51:P,53:D,54:N},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:C},{23:56,73:C},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(v,[2,30]),t(v,[2,31]),{33:[1,62]},{35:[1,63]},t(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Y},{23:75,55:76,73:Y},{23:77,73:C},{69:78,72:[1,79],78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:C},{23:111,73:C},{23:112,73:C},{23:113,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],td),t(v,[2,6]),t(v,[2,16]),t(th,[2,10],{11:114}),t(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(v,[2,22]),{5:[1,118]},{5:[1,119]},t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,32]),t(v,[2,33]),t(tp,i,{7:120}),t(tp,i,{7:121}),t(tp,i,{7:122}),t(tT,i,{41:123,7:124}),t(tE,i,{43:125,7:126}),t(tE,i,{7:126,43:127}),t(tg,i,{46:128,7:129}),t(tp,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(tu,td,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:C},{69:146,78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},t(t_,[2,79]),t(t_,[2,80]),t(t_,[2,81]),t(t_,[2,82]),t(t_,[2,83]),t(t_,[2,84]),t(t_,[2,85]),t(t_,[2,86]),t(t_,[2,87]),t(t_,[2,88]),t(t_,[2,89]),t(t_,[2,90]),t(t_,[2,91]),t(t_,[2,92]),t(t_,[2,93]),t(t_,[2,94]),t(t_,[2,95]),t(t_,[2,96]),t(t_,[2,97]),t(t_,[2,98]),t(t_,[2,99]),t(t_,[2,100]),t(t_,[2,101]),t(t_,[2,102]),t(t_,[2,103]),t(t_,[2,104]),{23:147,73:C},{23:149,60:148,73:C},{73:[2,68]},{73:[2,69]},{58:150,104:tO},{58:152,104:tO},{58:153,104:tO},{58:154,104:tO},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:P,53:D,54:N},{5:[1,160]},t(v,[2,20]),t(v,[2,21]),t(v,[2,23]),t(v,[2,24]),{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,161],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,164]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,50:[1,165],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,166]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,49:[1,167],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,168]},{17:[1,169]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,48:[1,170],51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,171],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:D,54:N,56:w,61:S,62:A,63:k,64:M,73:C},{16:[1,172]},t(v,[2,50]),{16:[1,173]},t(v,[2,55]),t(tu,[2,76]),{76:[1,174]},{16:[1,175]},t(v,[2,52]),{16:[1,176]},t(v,[2,57]),t(v,[2,53]),{23:177,73:C},{23:178,73:C},{23:179,73:C},{58:180,104:tO},{23:181,72:[1,182],73:C},{58:183,104:tO},{58:184,104:tO},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(v,[2,17]),t(th,[2,11]),{13:186,51:P,53:D,54:N},t(th,[2,13]),t(th,[2,14]),t(v,[2,19]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),{16:[1,187]},t(v,[2,39]),{16:[1,188]},t(v,[2,40]),t(v,[2,41]),{16:[1,189]},t(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:tO},{58:196,104:tO},{58:197,104:tO},{5:[2,75]},{58:198,104:tO},{23:199,73:C},{5:[2,58]},{5:[2,59]},{23:200,73:C},t(th,[2,12]),t(tT,i,{7:124,41:201}),t(tE,i,{7:126,43:202}),t(tg,i,{7:129,46:203}),t(v,[2,49]),t(v,[2,54]),t(tu,[2,77]),t(v,[2,51]),t(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:tO},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,l.K)(function(t){var e=this,a=[0],r=[],i=[null],s=[],n=this.table,o="",c=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var u=T.yylloc;s.push(u);var _=T.options&&T.options.ranges;function O(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.K)(O,"lex");for(var y,x,b,m,I,f,R,L,P,D={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==y&&(y=O()),m=n[b]&&n[b][y]),void 0===m||!m.length||!m[0]){var N="";for(f in P=[],n[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");N=T.showPosition?"Parse error on line "+(c+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(N,{text:T.match,token:this.terminals_[y]||y,line:T.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(m[0]){case 1:a.push(y),i.push(T.yytext),s.push(T.yylloc),a.push(m[1]),y=null,x?(y=x,x=null):(d=T.yyleng,o=T.yytext,c=T.yylineno,u=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[m[1]][1],D.$=i[i.length-R],D._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},_&&(D._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(D,[o,d,c,E,m[1],i,s].concat(p))))return I;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[m[1]][0]),i.push(D.$),s.push(D._$),L=n[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tx(){this.yy={}}return ty.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,l.K)(tx,"Parser"),tx.prototype=ty,ty.Parser=tx,new tx}();p.parser=p;var T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},g={LEFTOF:0,RIGHTOF:1,OVER:2},u=class{constructor(){this.state=new r.m(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=o.SV,this.setAccDescription=o.EI,this.setDiagramTitle=o.ke,this.getAccTitle=o.iN,this.getAccDescription=o.m7,this.getDiagramTitle=o.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,o.D7)().wrap),this.LINETYPE=T,this.ARROWTYPE=E,this.PLACEMENT=g}static{(0,l.K)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,r,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,i.H)(t,{schema:i.r})}r=n?.type??r,n?.alias&&(!a||a.text===e)&&(a={text:n.alias,wrap:a?.wrap,type:r});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&e===c.name&&null==a)return}if(a?.text==null&&(a={text:e,type:r}),(null==r||null==a.text)&&(a={text:e,type:r}),this.state.records.actors.set(t,{box:o,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,o.D7)().sequence?.wrap??!1}clear(){this.state.reset(),(0,o.IU)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return c.R.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:s}=this.extractWrap(r);return{text:s?(0,o.jZ)(s,(0,o.D7)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){c.R.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,o.jZ)(e.text,(0,o.D7)()),i=r.indexOf("@"),s=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),n=r.slice(i+1).trim();t[s]=n,this.insertLinks(a,t)}catch(t){c.R.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){c.R.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){c.R.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,o.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,o.D7)().sequence}},_=(0,l.K)(t=>{let e=t.dropShadow??"none",{look:a}=(0,o.D7)();return`.actor {
|
|
2
2
|
stroke: ${t.actorBorder};
|
|
3
3
|
fill: ${t.actorBkg};
|
|
4
4
|
stroke-width: ${t.strokeWidth??1};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8367],{60703:(t,e,a)=>{a.d(e,{DA:()=>S,FA:()=>D,Zk:()=>u,aP:()=>eb,lC:()=>w,nM:()=>M,nq:()=>e$});var l=a(10969),r=a(36351),i=a(2401),n=a(52691),s=a(31775),h=a(56037),o=a(89851),d=a(33948),c=a(94529);async function g(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!y(t);await Promise.all([...e].map(t=>new Promise(e=>{function l(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=s.UI.fontSize]=(0,n.I5)(e),l=5*a+"px";t.style.minWidth=l,t.style.maxWidth=l}else t.style.width="100%";e(t)}(0,o.K)(l,"setupImage"),setTimeout(()=>{t.complete&&l()}),t.addEventListener("error",l),t.addEventListener("load",l)})))}function y(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(y)}(0,o.K)(g,"configureLabelImages"),(0,o.K)(y,"hasTextBesidesImages");var f=(0,o.K)(async(t,e,a)=>{let l=(0,s.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),h=i.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle)),o=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),c=e.width?Math.max(e.width-2*(e.padding??0),32):(0,s.D7)().flowchart?.wrappingWidth??200,g=l.c4?.wrap??!0?c:1/0,y=await Promise.all(o.map(async t=>{let a=h.append("g").attr("class",t.cssClass),i=await (0,r.GZ)(a,(0,s.jZ)((0,n.Sm)(t.text??""),l),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},l);return(0,d.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,d.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),f=Math.max(...y.map(({box:t})=>t.width),0),u=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${f/2-e.x-e.width/2}, ${u-e.y})`),u+=e.height+3;let x=y.length>0?u-3:0;return h.insert("rect",":first-child"),h.attr("transform",`translate(${-f/2}, ${-x/2})`),{shapeSvg:i,bbox:h.node().getBBox(),halfPadding:(e.padding??0)/2,label:h}},"c4LabelHelper"),u=(0,o.K)(async(t,e,a)=>{let l,i,h;if(void 0!==e.stereotype)return f(t,e,a);let o=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);l=a||"node default";let c=t.insert("g").attr("class",l).attr("id",e.domId||e.id),y=c.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,x="markdown"===e.labelType,w=await (0,r.GZ)(y,(0,s.jZ)((0,n.Sm)(i),(0,s.D7)()),{useHtmlLabels:o,width:e.width||e.wrappingWidth||(0,s.D7)().flowchart?.wrappingWidth,classes:x?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:x},(0,s.D7)()),p=(e?.padding??0)/2;if(o){let t=w.children[0],e=(0,d.Ltv)(w);await g(t),h=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",h.width),e.attr("height",h.height)}else h=await r.lT.measure(()=>w.getBBox());return o?y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):y.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:c,bbox:h,halfPadding:p,label:y}},"labelHelper"),x=(0,o.K)(async(t,e,a)=>{let l,i=a.useHtmlLabels??(0,s.E)((0,s.D7)()),h=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,r.GZ)(h,(0,s.jZ)((0,n.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:a.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),c=a.padding/2;if((0,s.E)((0,s.D7)())){let t=o.children[0],e=(0,d.Ltv)(o);l=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",l.width),e.attr("height",l.height)}else l=await r.lT.measure(()=>o.getBBox());return i?h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):h.attr("transform","translate(0, "+-l.height/2+")"),a.centerLabel&&h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:t,bbox:l,halfPadding:c,label:h}},"insertLabel"),w=(0,o.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),p=(0,o.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function m(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function $(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function b(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}function k(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let r=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,o.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");r&&Object.entries({fill:n(r,"fill"),"fill-opacity":n(r,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,o.K)(m,"createPathFromPoints"),(0,o.K)($,"generateFullSineWavePoints"),(0,o.K)(b,"generateCirclePoints"),(0,o.K)(k,"mergePaths");var M=(0,o.K)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect"),D=(0,o.K)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,"0 0 1",t+a,e+r,"V",e+l-r,"A",r,r,"0 0 1",t+a-r,e+l,"H",t+r,"A",r,r,"0 0 1",t,e+l-r,"V",e+r,"A",r,r,"0 0 1",t+r,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,o.K)(async(t,e,a,l=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let h=(0,s.D7)(),o=(0,s.E)(h);return await (0,r.GZ)(t,n,{style:a,isTitle:l,useHtmlLabels:o,markdown:!1,isNode:i,width:1/0},h)},"createLabel");function A(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<r&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<i&&(d=-d),{x:r+o,y:i+d}}function K(t,e,a){return A(t,e,e,a)}function v(t,e,a,l){{let r=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=r*a.x+i*a.y+n,h=r*l.x+i*l.y+n;if(0!==s&&0!==h&&C(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&C(g,y))return;let f=r*d-o*i;if(0===f)return;let u=Math.abs(f/2),x=i*c-d*n;return{x:x<0?(x-u)/f:(x+u)/f,y:(x=o*n-r*c)<0?(x-u)/f:(x+u)/f}}}function C(t,e){return t*e>0}function N(t,e,a){let l=t.x,r=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l<e.length;l++){let r=e[l],n=e[l<e.length-1?l+1:0],s=v(t,a,{x:h+r.x,y:o+r.y},{x:h+n.x,y:o+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return i<h?-1:+(i!==h)}),i[0]):t}(0,o.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,o.K)(A,"intersectEllipse"),(0,o.K)(K,"intersectCircle"),(0,o.K)(v,"intersectLine"),(0,o.K)(C,"sameSign"),(0,o.K)(N,"intersectPolygon");function B(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a;let r=p(e),i=r;r||(i="anchor");let s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:o}=e,d=c.A.svg(s),g=(0,l.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(g.roughness=0);let y=d.circle(0,0,2,g),f=s.insert(()=>y,":first-child");return f.attr("class","anchor").attr("style",(0,n.KL)(o)),w(e,f),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),K(e,1,t)},s}function L(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);f.push({x:a,y:l})}return f}function R(t,e,a){let[l,r]=[e,a].sort((t,e)=>e-t);return r*(1-Math.sqrt(1-(t/l/2)**2))}async function F(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=(0,o.K)(t=>t+s,"calcTotalHeight"),d=(0,o.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:g,bbox:y}=await u(t,e,p(e)),f=h(e?.height?e?.height:y.height),[x,$]=d(f),b=R(f,x,$),k=(e?.width?e?.width:y.width)+2*n+b-b,{cssStyles:M}=e,D=[{x:k/2,y:-f/2},{x:-k/2,y:-f/2},...L(-k/2,-f/2,-k/2,f/2,x,$,!1),{x:k/2,y:f/2},...L(k/2,f/2,k/2,-f/2,x,$,!0)],S=c.A.svg(g),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=m(D),v=S.path(K,A),C=g.insert(()=>v,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),r&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),C.attr("transform",`translate(${x/2}, 0)`),w(e,C),e.intersect=function(t){return N(e,D,t)},g}async function P(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await u(t,e,p(e)),d=a?.nodeBorder??a?.lineColor??"currentColor",g=e.padding??12,y=Math.max(s.width+2*g,e.width??0,80),f=Math.max(Math.min(.08*y,12),5),x=Math.max(s.height+2*g+f,e.height??0),m=-x/2+f,$=x/2,b=.72*y,k=`M${-y/2},${m} L${-b/2},${$} A${b/2},${f} 0 0 0 ${b/2},${$} L${y/2},${m} A${y/2},${f} 0 0 0 ${-y/2},${m} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",m).attr("rx",y/2).attr("ry",f).attr("style",`fill:none;stroke:${d};stroke-width:1px`),w(e,D);let S=m+($-m)/2;h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${S-s.height/2-(s.y-(s.top??0))})`);let A=(0,o.K)((t,e,a)=>Array.from({length:13},(l,r)=>{let i=Math.PI-r*Math.PI/12;return{x:t*Math.cos(i),y:e+a*f*Math.sin(i)}}),"arc"),K=[...A(y/2,m,-1),...A(b/2,$,1).reverse()];return e.intersect=function(t){return N(e,K,t)},n}async function G(t,e){let a,{themeVariables:r}=(0,s.D7)(),i=r.clusterBkg,h=r.clusterBorder,{nodeStyles:o}=(0,l.GX)(e),{shapeSvg:d,bbox:g}=await u(t,e,p(e)),y=e.padding??8,f=g.height,x=Math.max(g.width+2*y,80,e?.width??0),m=Math.max(f+8+20+2*y,e?.height??0),$=-x/2,b=-m/2,k=d.select(".label");if(k&&(e.useHtmlLabels??(0,s.E)((0,s.D7)())?k.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):k.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{fill:i,stroke:h,fillStyle:"solid"}),s=t.path(D($,b,x,m,8),r);(a=d.insert(()=>s,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,n.KL)(e.cssStyles))}else(a=d.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",8).attr("ry",8).attr("x",$).attr("y",b).attr("width",x).attr("height",m).attr("fill",i).attr("stroke",h);let S=b+y+f+8;d.append("line").attr("class","collapsed-separator").attr("x1",$+8).attr("y1",S).attr("x2",$+x-8).attr("y2",S).attr("stroke",h).attr("stroke-dasharray","3, 3");let A=S+10;for(let t=-1;t<=1;t++)d.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",A).attr("r",2.5).attr("fill",h);return w(e,a),e.calcIntersect=function(t,e){return M(t,e)},e.intersect=function(t){return M(e,t)},d}function X(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,o.K)(B,"anchor"),(0,o.K)(L,"generateArcPoints"),(0,o.K)(R,"calculateArcSagitta"),(0,o.K)(F,"bowTieRect"),(0,o.K)(P,"bucket"),(0,o.K)(G,"collapsedGroup"),(0,o.K)(X,"insertPolygonShape");var I=["right","left","up","down"],T="point",W=(0,o.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),E=(0,o.K)(t=>I.filter(e=>t.has(e)).join("|")||T,"getDirectionKey"),H={"right|left|up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:0,y:0},{x:e,y:0},{x:l/2,y:2*a},{x:l-e,y:0},{x:l,y:0},{x:l,y:-t/3},{x:l+2*a,y:-t/2},{x:l,y:-2*t/3},{x:l,y:-t},{x:l-e,y:-t},{x:l/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"up|down"),"right|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,o.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,o.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a}],"up"),down:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"down"),[T]:()=>[{x:0,y:0}]},j=(0,o.K)((t,e,a,l)=>{let r=W(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,h=l??e.width+2*s+2*i;return(H[E(r)]??H[T])({height:n,midpoint:s,padding:i,width:h})},"getArrowPoints");async function q(t,e){let{shapeSvg:a,bbox:l}=await u(t,e,p(e)),r=e.padding??0,i=l.height+2*r,n=i/2,s=l.width+2*n+r,h=e.width??0,o=e.positioned&&(e.widthInColumns??1)>1&&h>s?h:s,d=j(e.directions??[],l,e,o),c=X(a,o,i,d);return c.attr("style",e.style??null),w(e,c),e.intersect=function(t){return N(e,d,t)},a}async function _(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await u(t,e,p(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),f=-y/2,{cssStyles:x}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,f,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),x&&m.attr("style",x)}else m.append("rect").attr("x",-g/2).attr("y",f).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("line").attr("x1",-g/2).attr("y1",f+18).attr("x2",g/2).attr("y2",f+18).attr("style",`stroke:${o};stroke-width:1px`);for(let t=0;t<3;t++)m.append("circle").attr("cx",-g/2+12+9*t).attr("cy",f+9).attr("r",2.5).attr("style",`fill:${o};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",f+4).attr("width",Math.max(g-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${o};stroke-width:1px;opacity:0.6`),w(e,m);let $=f+18+(y-18)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return M(e,t)},n}async function z(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?28:n,h="neo"===e.look?24:n,{shapeSvg:o,bbox:d}=await u(t,e,p(e)),g=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*h:h),f=-y,x=[{x:12,y:f},{x:g,y:f},{x:g,y:0},{x:0,y:0},{x:0,y:f+12},{x:12,y:f}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(x),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${y/2})`),$&&a.attr("style",$)}else a=X(o,g,y,x);return i&&a.attr("style",i),w(e,a),e.intersect=function(t){return N(e,x,t)},o}function Z(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let r=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=c.A.svg(r),o=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let d=m(s),g=h.path(d,o),y=r.insert(()=>g,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return N(e,s,t)},r}async function O(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:g}=await u(t,e,p(e)),y=a?.padding??g,f="neo"===e.look?d.width/2+32:d.width/2+y,{cssStyles:x}=e;if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),i=t.circle(0,0,2*f,a);(r=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(x))}else r=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",f).attr("cx",0).attr("cy",0);return w(e,r),e.calcIntersect=function(t,e){let a=t.width/2;return K(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,f,t),K(e,f,t)},o}async function V(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:r,halfPadding:i}=await u(t,e,a),n=l.insert("rect",":first-child"),s=e.padding??0,h=e.positioned?e.width??0:r.width+s,o=e.positioned?e.height??0:r.height+s,d=e.positioned?-h/2:-r.width/2-i,c=e.positioned?-o/2:-r.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",h).attr("height",o),w(e,n),e.intersect=function(t){return M(e,t)},l}async function Y(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await u(t,e,p(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),f=-y/2,{cssStyles:x}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,f,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),x&&m.attr("style",x)}else m.append("rect").attr("x",-g/2).attr("y",f).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("text").attr("x",-g/2+12).attr("y",f+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${o}`).text(">_"),w(e,m);let $=f+20+(y-20)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return M(e,t)},n}function U(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
|
|
2
|
+
M ${r.x},${r.y} L ${n.x},${n.y}`}function J(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=c.A.svg(i),d=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let g=o.circle(0,0,2*n,d),y=U(n),f=o.path(y,d),u=i.insert(()=>g,":first-child");return u.insert(()=>f),u.attr("class","outer-path"),s&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),w(e,u),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:n,point:t}),K(e,n,t)},i}function Q(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function tt(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+h,g=n.height+o,y=Math.max(5,.1*g),{cssStyles:f}=e,x=[...Q(d/2,-g/2,y,30,-90,0),{x:-d/2-y,y:y},...Q(d/2+2*y,-y,y,20,-180,-270),...Q(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-g/2},...Q(d/2,g/2,y,20,0,90)],$=[{x:d/2,y:-g/2-y},{x:-d/2,y:-g/2-y},...Q(d/2,-g/2,y,20,-90,0),{x:-d/2-y,y:-y},...Q(d/2+.1*d,-y,y,20,-180,-270),...Q(d/2+.1*d,y,y,20,-90,-180),{x:-d/2-y,y:g/2},...Q(d/2,g/2,y,20,0,90),{x:-d/2,y:g/2+y},{x:d/2,y:g/2+y}],b=c.A.svg(i),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=m(x).replace("Z",""),D=b.path(M,k),S=m($),A=b.path(S,{...k}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),f&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-d/2+y-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,K),e.intersect=function(t){return N(e,$,t)},i}function te(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:i,y:o})}return n}async function ta(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),g=n.height+("neo"===e.look?2*o:o),y=Math.max(5,.1*g),{cssStyles:f}=e,x=[...te(d/2,-g/2,y,20,-90,0),{x:d/2+y,y:-y},...te(d/2+2*y,-y,y,20,-180,-270),...te(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:g/2},...te(d/2,g/2,y,20,0,90)],$=[{x:-d/2,y:-g/2-y},{x:d/2,y:-g/2-y},...te(d/2,-g/2,y,20,-90,0),{x:d/2+y,y:-y},...te(d/2+2*y,-y,y,20,-180,-270),...te(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:g/2},...te(d/2,g/2,y,20,0,90),{x:d/2,y:g/2+y},{x:-d/2,y:g/2+y}],b=c.A.svg(i),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=m(x).replace("Z",""),D=b.path(M,k),S=m($),A=b.path(S,{...k}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),f&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,K),e.intersect=function(t){return N(e,$,t)},i}function tl(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function tr(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),g=n.height+("neo"===e.look?2*o:o),y=Math.max(5,.1*g),{cssStyles:f}=e,x=[...tl(d/2,-g/2,y,30,-90,0),{x:-d/2-y,y:y},...tl(d/2+2*y,-y,y,20,-180,-270),...tl(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-g/2},...tl(d/2,g/2,y,20,0,90)],$=[...tl(-d/2+y+y/2,-g/2,y,20,-90,-180),{x:d/2-y/2,y:y},...tl(-d/2-y/2,-y,y,20,0,90),...tl(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...tl(-d/2+y+y/2,g/2,y,30,-180,-270)],b=[{x:d/2,y:-g/2-y},{x:-d/2,y:-g/2-y},...tl(d/2,-g/2,y,20,-90,0),{x:-d/2-y,y:-y},...tl(d/2+2*y,-y,y,20,-180,-270),...tl(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:g/2},...tl(d/2,g/2,y,20,0,90),{x:-d/2,y:g/2+y},{x:d/2-y-y/2,y:g/2+y},...tl(-d/2+y+y/2,-g/2,y,20,-90,-180),{x:d/2-y/2,y:y},...tl(-d/2-y/2,-y,y,20,0,90),...tl(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...tl(-d/2+y+y/2,g/2,y,30,-180,-270)],k=c.A.svg(i),M=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m(x).replace("Z",""),S=k.path(D,M),A=m($).replace("Z",""),K=k.path(A,M),v=m(b),C=k.path(v,{...M}),B=i.insert("g",":first-child");return B.insert(()=>C,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.insert(()=>K,":first-child"),B.attr("class","text"),f&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,B),e.intersect=function(t){return N(e,b,t)},i}async function ti(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=Math.max(20,(o.width+2*n)*1.25,e?.width??0),g=Math.max(5,o.height+2*s,e?.height??0),y=g/2,{cssStyles:f}=e,x=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=d-y,M=g/4,D=[{x:k,y:0},{x:M,y:0},{x:0,y:g/2},{x:M,y:g},{x:k,y:g},...b(-k,-g/2,y,50,270,90)],S=m(D),A=x.path(S,$),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",f),r&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",r),K.attr("transform",`translate(${-d/2}, ${-g/2})`),w(e,K),e.intersect=function(t){return N(e,D,t)},h}async function tn(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h=e.padding??20,o=Math.max(n.width+2*h,e.width??0,100),d=Math.min(Math.max(.23*o,16),56),g=.27*d,y=Math.max(n.height+2*h,e.height?e.height-(2*d-g):0),f=Math.min(.177*o,.45*y),x=y+2*d-g,m=-x/2,$=m+2*d-g,k=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:M}=e;if("handDrawn"===e.look){let t=c.A.svg(i),a=(0,l.Fr)(e,{}),r=t.path(D(-o/2,$,o,y,f),a),n=t.circle(0,m+d,2*d,a);k.insert(()=>n,":first-child"),k.insert(()=>r,":first-child"),M&&k.attr("style",M)}else k.append("rect").attr("x",-o/2).attr("y",$).attr("width",o).attr("height",y).attr("rx",f).attr("ry",f).attr("style",r),k.append("circle").attr("cx",0).attr("cy",m+d).attr("r",d).attr("style",r);w(e,k);let S=$+y/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${S-n.height/2-(n.y-(n.top??0))})`);let A=m+d,K=180*Math.asin(Math.min(1,($-A)/d))/Math.PI,v=[...b(0,-A,d,24,180+K,-K),...b(-(-o/2+f),-($+f),f,12,90,0),...b(-(-o/2+f),-(x/2-f),f,12,360,270),...b(-(o/2-f),-(x/2-f),f,12,270,180),...b(-(o/2-f),-($+f),f,12,180,90)];return e.intersect=function(t){return N(e,v,t)},i}(0,o.K)(q,"block_arrow"),(0,o.K)(_,"browser"),(0,o.K)(z,"card"),(0,o.K)(Z,"choice"),(0,o.K)(O,"circle"),(0,o.K)(V,"composite"),(0,o.K)(Y,"consoleWindow"),(0,o.K)(U,"createLine"),(0,o.K)(J,"crossedCircle"),(0,o.K)(Q,"generateCirclePoints"),(0,o.K)(tt,"curlyBraceLeft"),(0,o.K)(te,"generateCirclePoints"),(0,o.K)(ta,"curlyBraceRight"),(0,o.K)(tl,"generateCirclePoints"),(0,o.K)(tr,"curlyBraces"),(0,o.K)(ti,"curvedTrapezoid"),(0,o.K)(tn,"person");var ts=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),th=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),to=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function td(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?24:s,o="neo"===e.look?24:s,d=e.width??0;e.width&&(e.width=e.width-o,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-h-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:g,bbox:y,label:f}=await u(t,e,p(e)),x=Math.max(e.width??0,y.width)+o,m=x/2,$=m/(2.5+x/50),b=Math.max(e.height??0,y.height)+h+$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(g),r=th(0,0,x,b,m,$),i=to(0,$,x,b,m,$),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=g.insert(()=>h,":first-child"),(a=g.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=ts(0,0,x,b,m,$);a=g.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",$),a.attr("transform",`translate(${-x/2}, ${-(b/2+$)})`),w(e,a),f.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(t){let a=M(e,t),l=a.x-(e.x??0);if(0!=m&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-$)){let r=$*$*(1-l*l/(m*m));r>0&&(r=Math.sqrt(r)),r=$-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},g}async function tc(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=Math.max(o.width+2*a.labelPaddingX,e?.width||0),g=Math.max(o.height+2*a.labelPaddingY,e?.height||0),y=-d/2,f=-g/2,{rx:x,ry:m}=e,{cssStyles:$}=e;if(a?.rx&&a.ry&&(x=a.rx,m=a.ry),"handDrawn"===e.look){let t=c.A.svg(h),a=(0,l.Fr)(e,{}),i=x||m?t.path(D(y,f,d,g,x||0),a):t.rectangle(y,f,d,g,a);(r=h.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)($))}else(r=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,n.KL)(x)).attr("ry",(0,n.KL)(m)).attr("x",y).attr("y",f).attr("width",d).attr("height",g);return w(e,r,"handDrawn"===e.look?void 0:{width:d,height:g}),e.calcIntersect=function(t,e){return M(t,e)},e.intersect=function(t){return M(e,t)},h}async function tg(t,e){let{cssClasses:a,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:h}=e,o=await tc(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=o.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return o;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),o.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),o.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),r.remove()),o}let d=o.select(".basic.label-container"),g=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||h)??0;return g>0&&y>0&&d.attr("stroke-dasharray",`${g} ${y}`),o}async function ty(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:h,label:o}=await u(t,e,p(e)),d=h.width+i,g=h.height+n,y=.2*g,f=-d/2,x=-g/2-y/2,{cssStyles:m}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=$.polygon([{x:f,y:x+y},{x:-f,y:x+y},{x:-f,y:-x},{x:f,y:-x},{x:f,y:x},{x:-f,y:x},{x:-f,y:x+y}].map(t=>[t.x,t.y]),b),D=s.insert(()=>k,":first-child");return D.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),o.attr("transform",`translate(${f+(e.padding??0)/2-(h.x-(h.left??0))}, ${x+y+(e.padding??0)/2-(h.y-(h.top??0))})`),w(e,D),e.intersect=function(t){return M(e,t)},s}async function tf(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),s="neo"===e.look?12:5;e.labelStyle=r;let o=e.padding??0,d="neo"===e.look?16:o,{shapeSvg:g,bbox:y}=await u(t,e,p(e)),f=(e?.width?e?.width/2:y.width/2)+(d??0),x=f-s,{cssStyles:m}=e;if("handDrawn"===e.look){let t=c.A.svg(g),r=(0,l.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,l.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*f,r),h=t.circle(0,0,2*x,i);(a=g.insert("g",":first-child")).attr("class",(0,n.KL)(e.cssClasses)).attr("style",(0,n.KL)(m)),a.node()?.appendChild(s),a.node()?.appendChild(h)}else{let t=(a=g.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",x).attr("cx",0).attr("cy",0)}return w(e,a),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,f,t),K(e,f,t)},g}function tu(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=c.A.svg(n),{nodeBorder:d}=a,g=(0,l.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(g.roughness=0);let y=o.circle(0,0,14,g),f=n.insert(()=>y,":first-child");return f.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",i),w(e,f),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),K(e,7,t)},n}async function tx(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:d}=await u(t,e,p(e)),g=(e?.width?e?.width:o.width)+(n??0),y=e?.height?e?.height:g+o.height,f=[{x:0,y:-y},{x:y,y:-y},{x:y/2,y:0}],{cssStyles:x}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=m(f),M=$.path(k,b),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",x),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),e.width=g,e.height=y,w(e,D),d.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,f,t),N(e,f,t)},s}async function tw(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await u(t,e,p(e)),o=e.padding??12,d=Math.max(s.width+2*o,e.width??0,90),g=s.height+2*o,y=Math.max(Math.min(.16*g,14),8),f=Math.max(g+y,e.height??0),x=f-y,m=Math.max(.38*d,28),$=-f/2,b=[{x:-d/2,y:$},{x:-d/2+m,y:$},{x:-d/2+m,y:$+y},{x:d/2,y:$+y},{x:d/2,y:f/2},{x:-d/2,y:f/2}],k=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?w(e,a):w(e,a,{width:d,height:f}),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$+y+x/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return N(e,b,t)},n}function tp(t,e,{dir:a,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,l.GX)(e);e.label="";let s=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:h}=e,o=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===a&&(o=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let g=-1*o/2,y=-1*d/2,f=c.A.svg(s),u=(0,l.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let x=f.rectangle(g,y,o,d,u),m=s.insert(()=>x,":first-child");h&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),w(e,m);let $=r?.padding??0;return e.width&&e.height&&(e.width+=$/2||0,e.height+=$/2||0),e.intersect=function(t){return M(e,t)},s}async function tm(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await u(t,e,p(e)),d=(e?.width?e?.width:Math.max(15,o.width))+2*i,g=(e?.height?e?.height:Math.max(10,o.height))+2*n,y=g/2,{cssStyles:f}=e,x=c.A.svg(s),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-d/2,y:-g/2},{x:d/2-y,y:-g/2},...b(-d/2+y,0,y,50,90,270),{x:d/2-y,y:g/2},{x:-d/2,y:g/2}],M=m(k),D=x.path(M,$),S=s.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",f),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),w(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:y,point:t}),N(e,k,t)},s}(0,o.K)(td,"cylinder"),(0,o.K)(tc,"drawRect"),(0,o.K)(tg,"datastore"),(0,o.K)(ty,"dividedRectangle"),(0,o.K)(tf,"doublecircle"),(0,o.K)(tu,"filledCircle"),(0,o.K)(tx,"flippedTriangle"),(0,o.K)(tw,"folder"),(0,o.K)(tp,"forkJoin"),(0,o.K)(tm,"halfRoundedRectangle");var t$=(0,o.K)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tb(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?70:s,o="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-o,e.height=(e.height??0)-h}let{shapeSvg:d,bbox:g}=await u(t,e,p(e)),y=(e?.height?e?.height:g.height)+h,f=y/n,x=(e?.width?e?.width:g.width)+2*f+o,m=[{x:f,y:0},{x:x-f,y:0},{x:x,y:-y/2},{x:x-f,y:-y},{x:f,y:-y},{x:0,y:-y/2}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{}),i=t$(0,0,x,y,f),n=t.path(i,r);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-x/2}, ${y/2})`),$&&a.attr("style",$)}else a=X(d,x,y,m);return i&&a.attr("style",i),e.width=x,e.height=y,w(e,a),e.intersect=function(t){return N(e,m,t)},d}async function tk(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await u(t,e,p(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,d=c.A.svg(i),g=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let y=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],f=m(y),x=d.path(f,g),$=i.insert(()=>x,":first-child");return $.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",o),r&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",r),$.attr("transform",`translate(${-n/2}, ${-s/2})`),w(e,$),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:y}),N(e,y,t)},i}async function tM(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await u(t,e,"icon-shape default"),y="t"===e.pos,{nodeBorder:f}=a,{stylesMap:x}=(0,l.WW)(e),p=-s/2,m=-s/2,$=8*!!e.label,b=c.A.svg(o),k=(0,l.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=b.rectangle(p,m,s,s,k),S=Math.max(s,d.width),A=s+d.height+$,K=b.rectangle(-S/2,-A/2,S,A,{...k,fill:"transparent",stroke:"none"}),v=o.insert(()=>D,":first-child"),C=o.insert(()=>K);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${y?d.height/2+$/2-r/2-h:-d.height/2-$/2-r/2-h})`),t.attr("style",`color: ${x.get("stroke")??f};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-A/2:A/2-d.height})`),v.attr("transform",`translate(0,${y?d.height/2+$/2:-d.height/2-$/2})`),w(e,C),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return M(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return N(e,i=y?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+$},{x:a+s/2,y:l-r/2+d.height+$},{x:a+s/2,y:l+r/2},{x:a-s/2,y:l+r/2},{x:a-s/2,y:l-r/2+d.height+$},{x:a-d.width/2,y:l-r/2+d.height+$}]:[{x:a-s/2,y:l-r/2},{x:a+s/2,y:l-r/2},{x:a+s/2,y:l-r/2+s},{x:a+d.width/2,y:l-r/2+s},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+s},{x:a-s/2,y:l-r/2+s}],t)},o}async function tD(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await u(t,e,"icon-shape default"),y=8*!!e.label,f="t"===e.pos,{nodeBorder:x,mainBkg:p}=a,{stylesMap:m}=(0,l.WW)(e),$=c.A.svg(o),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid"),b.stroke=m.get("fill")??p;let k=o.append("g");e.icon&&k.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let D=k.node().getBBox(),S=D.width,A=D.height,K=D.x,v=D.y,C=Math.max(S,A)*Math.SQRT2+40,N=$.circle(0,0,C,b),B=Math.max(C,d.width),L=C+d.height+y,R=$.rectangle(-B/2,-L/2,B,L,{...b,fill:"transparent",stroke:"none"}),F=o.insert(()=>N,":first-child"),P=o.insert(()=>R);return k.attr("transform",`translate(${-S/2-K},${f?d.height/2+y/2-A/2-v:-d.height/2-y/2-A/2-v})`),k.attr("style",`color: ${m.get("stroke")??x};`),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-L/2:L/2-d.height})`),F.attr("transform",`translate(0,${f?d.height/2+y/2:-d.height/2-y/2})`),w(e,P),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),M(e,t)},o}async function tS(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await u(t,e,"icon-shape default"),f="t"===e.pos,x=s+2*g,p=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,S=c.A.svg(o),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=b.get("fill")??$;let K=S.path(D(-p/2,-x/2,p,x,5),A),v=Math.max(p,d.width),C=x+d.height+k,B=S.rectangle(-v/2,-C/2,v,C,{...A,fill:"transparent",stroke:"none"}),L=o.insert(()=>K,":first-child").attr("class","icon-shape2"),R=o.insert(()=>B);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${f?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-C/2:C/2-d.height})`),L.attr("transform",`translate(0,${f?d.height/2+k/2:-d.height/2-k/2})`),w(e,R),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return M(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return N(e,i=f?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+p/2,y:l-r/2+d.height+k},{x:a+p/2,y:l+r/2},{x:a-p/2,y:l+r/2},{x:a-p/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-p/2,y:l-r/2},{x:a+p/2,y:l-r/2},{x:a+p/2,y:l-r/2+x},{x:a+d.width/2,y:l-r/2+x},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+x},{x:a-p/2,y:l-r/2+x}],t)},o}async function tA(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await u(t,e,"icon-shape default"),f="t"===e.pos,x=s+2*g,p=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,S=c.A.svg(o),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=b.get("fill")??$;let K=S.path(D(-p/2,-x/2,p,x,.1),A),v=Math.max(p,d.width),C=x+d.height+k,B=S.rectangle(-v/2,-C/2,v,C,{...A,fill:"transparent",stroke:"none"}),L=o.insert(()=>K,":first-child"),R=o.insert(()=>B);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${f?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-C/2:C/2-d.height})`),L.attr("transform",`translate(0,${f?d.height/2+k/2:-d.height/2-k/2})`),w(e,R),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return M(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return N(e,i=f?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+p/2,y:l-r/2+d.height+k},{x:a+p/2,y:l+r/2},{x:a-p/2,y:l+r/2},{x:a-p/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-p/2,y:l-r/2},{x:a+p/2,y:l-r/2},{x:a+p/2,y:l-r/2+x},{x:a+d.width/2,y:l-r/2+x},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+x},{x:a-p/2,y:l-r/2+x}],t)},o}async function tK(t,e,{config:{flowchart:a}}){let r=new Image;r.src=e?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),n=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,l.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?o??0:0,e?.assetWidth??i),g="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,y="on"===e.constraint?g/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(g,o??0);let{shapeSvg:f,bbox:x,label:p}=await u(t,e,"image-shape default"),m="t"===e.pos,$=-g/2,b=8*!!e.label,k=c.A.svg(f),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=k.rectangle($,-y/2,g,y,D),A=Math.max(g,x.width),K=y+x.height+b,v=k.rectangle(-A/2,-K/2,A,K,{...D,fill:"none",stroke:"none"}),C=f.insert(()=>S,":first-child"),B=f.insert(()=>v);if(e.img){let t=f.append("image");t.attr("href",e.img),t.attr("width",g),t.attr("height",y),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${m?K/2-y:-K/2})`)}return p.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${m?-y/2-x.height/2-b/2:y/2-x.height/2+b/2})`),C.attr("transform",`translate(0,${m?x.height/2+b/2:-x.height/2-b/2})`),w(e,B),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return M(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return N(e,i=m?[{x:a-x.width/2,y:l-r/2},{x:a+x.width/2,y:l-r/2},{x:a+x.width/2,y:l-r/2+x.height+b},{x:a+g/2,y:l-r/2+x.height+b},{x:a+g/2,y:l+r/2},{x:a-g/2,y:l+r/2},{x:a-g/2,y:l-r/2+x.height+b},{x:a-x.width/2,y:l-r/2+x.height+b}]:[{x:a-g/2,y:l-r/2},{x:a+g/2,y:l-r/2},{x:a+g/2,y:l-r/2+y},{x:a+x.width/2,y:l-r/2+y},{x:a+x.width/2/2,y:l+r/2},{x:a-x.width/2,y:l+r/2},{x:a-x.width/2,y:l-r/2+y},{x:a-g/2,y:l-r/2+y}],t)},f}async function tv(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=Math.max(o.height+2*n,e.height??0),g=Math.max(o.width+2*s,(e.width??0)-d),y=[{x:0,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),f&&a.attr("style",f)}else a=X(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,w(e,a),e.intersect=function(t){return N(e,y,t)},h}async function tC(t,e){let{shapeSvg:a,bbox:l,label:r}=await u(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),w(e,i),e.intersect=function(t){return M(e,t)},a}async function tN(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:0,y:0},{x:g+3*d/6,y:0},{x:g,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),f&&a.attr("style",f)}else a=X(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,w(e,a),e.intersect=function(t){return N(e,y,t)},h}async function tB(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:-3*d/6,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),f&&a.attr("style",f)}else a=X(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,w(e,a),e.intersect=function(t){return N(e,y,t)},h}function tL(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],g=c.A.svg(i),y=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let f=m(d),u=g.path(f,y),x=i.insert(()=>u,":first-child");return x.attr("class","outer-path"),n&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(-${s/2},${-o})`),w(e,x),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),N(e,d,t)},i}(0,o.K)(tb,"hexagon"),(0,o.K)(tk,"hourglass"),(0,o.K)(tM,"icon"),(0,o.K)(tD,"iconCircle"),(0,o.K)(tS,"iconRounded"),(0,o.K)(tA,"iconSquare"),(0,o.K)(tK,"imageSquare"),(0,o.K)(tv,"inv_trapezoid"),(0,o.K)(tC,"labelRect"),(0,o.K)(tN,"lean_left"),(0,o.K)(tB,"lean_right"),(0,o.K)(tL,"lightningBolt");var tR=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tF=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tP=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tG(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?16:s,o="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-h,e.width<10&&(e.width=10),e.height=(e.height??0)-o-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:g,label:y}=await u(t,e,p(e)),f=(e?.width?e?.width:g.width)+2*h,x=f/2,m=x/(2.5+f/50),$=(e?.height?e?.height:g.height)+m+2*o,b=.1*$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=tF(0,0,f,$,x,m,b),i=tP(0,m,f,$,x,m),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,n);d.insert(()=>h,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tR(0,0,f,$,x,m,b);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",m),a.attr("transform",`translate(${-f/2}, ${-($/2+m)})`),w(e,a),y.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+m-(g.y-(g.top??0))})`),e.intersect=function(t){let a=M(e,t),l=a.x-(e.x??0);if(0!=x&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-m)){let r=m*m*(1-l*l/(x*x));r>0&&(r=Math.sqrt(r)),r=m-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},d}async function tX(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:h,bbox:o,label:d}=await u(t,e,p(e)),g=(e?.width?e?.width:o.width)+(n??0)*2,y=(e?.height?e?.height:o.height)+(s??0)*2,f="neo"===e.look?y/4:y/8,x=y+f,{cssStyles:m}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-g/2-g/2*.1,y:-x/2},{x:-g/2-g/2*.1,y:x/2},...$(-g/2-g/2*.1,x/2,g/2+g/2*.1,x/2,f,.8),{x:g/2+g/2*.1,y:-x/2},{x:-g/2-g/2*.1,y:-x/2},{x:-g/2,y:-x/2},{x:-g/2,y:x/2*1.1},{x:-g/2,y:-x/2}],D=b.polygon(M.map(t=>[t.x,t.y]),k),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(0,${-f/2})`),d.attr("transform",`translate(${-g/2+(e.padding??0)+g/2*.1/2-(o.x-(o.left??0))},${-y/2+(e.padding??0)-f/2-(o.y-(o.top??0))})`),w(e,S),e.intersect=function(t){return N(e,M,t)},h}async function tI(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*h,10),e.height=Math.max((e?.height??0)-2*s-2*h,10));let{shapeSvg:o,bbox:d,label:g}=await u(t,e,p(e)),y=(e?.width?e?.width:d.width)+2*n+2*h,f=(e?.height?e?.height:d.height)+2*s+2*h,x=y-2*h,$=f-2*h,b=-x/2,M=-$/2,{cssStyles:D}=e,S=c.A.svg(o),A=(0,l.Fr)(e,{}),K=[{x:b-h,y:M+h},{x:b-h,y:M+$+h},{x:b+x-h,y:M+$+h},{x:b+x-h,y:M+$},{x:b+x,y:M+$},{x:b+x,y:M+$-h},{x:b+x+h,y:M+$-h},{x:b+x+h,y:M-h},{x:b+h,y:M-h},{x:b+h,y:M},{x:b,y:M},{x:b,y:M+h}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=m(K),C=S.path(v,A),B=m([{x:b,y:M+h},{x:b+x-h,y:M+h},{x:b+x-h,y:M+$},{x:b+x,y:M+$},{x:b+x,y:M},{x:b,y:M}]),L=S.path(B,A);"handDrawn"!==e.look&&(C=k(C),L=k(L));let R=o.insert("g",":first-child");return R.insert(()=>C),R.insert(()=>L),R.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",r),g.attr("transform",`translate(${-(d.width/2)-h-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),w(e,R),e.intersect=function(t){return N(e,K,t)},o}async function tT(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h=e.padding??0,o="neo"===e.look?16:h,d="neo"===e.look?12:h,g=!0;(e.width||e.height)&&(g=!1,e.width=(e?.width??0)-2*o,e.height=(e?.height??0)-3*d);let y=Math.max(n.width,e?.width??0)+2*o,f=Math.max(n.height,e?.height??0)+3*d,x="neo"===e.look?f/4:f/8,b=f+(g?x/2:-x/2),k=-y/2,M=-b/2,{cssStyles:D}=e,S=$(k-10,M+b+10,k+y-10,M+b+10,x,.8),A=S?.[S.length-1],K=[{x:k-10,y:M+10},{x:k-10,y:M+b+10},...S,{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:A.y-20},{x:k+y+10,y:A.y-20},{x:k+y+10,y:M-10},{x:k+10,y:M-10},{x:k+10,y:M},{x:k,y:M},{x:k,y:M+10}],v=[{x:k,y:M+10},{x:k+y-10,y:M+10},{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:M},{x:k,y:M}],C=c.A.svg(i),B=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let L=m(K),R=C.path(L,B),F=m(v),P=C.path(F,B),G=i.insert(()=>R,":first-child");return G.insert(()=>P),G.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",r),G.attr("transform",`translate(0,${-x/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-x/2-(n.y-(n.top??0))})`),w(e,G),e.intersect=function(t){return N(e,K,t)},i}async function tW(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r,e.useHtmlLabels||(0,s.E)((0,s.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:h,label:o}=await u(t,e,p(e)),d=Math.max(h.width+(e.padding??0)*2,e?.width??0),g=Math.max(h.height+(e.padding??0)*2,e?.height??0),{cssStyles:y}=e,f=c.A.svg(n),x=(0,l.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let m=f.rectangle(-d/2,-g/2,d,g,x),$=n.insert(()=>m,":first-child");return $.attr("class","basic label-container outer-path"),o.attr("class","label noteLabel"),y&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",i),o.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),w(e,$),e.intersect=function(t){return M(e,t)},n}(0,o.K)(tG,"linedCylinder"),(0,o.K)(tX,"linedWaveEdgedRect"),(0,o.K)(tI,"multiRect"),(0,o.K)(tT,"multiWaveEdgedRectangle"),(0,o.K)(tW,"note");var tE=(0,o.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tH(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s}=await u(t,e,p(e)),h=s.width+(e.padding??0)+(s.height+(e.padding??0)),o=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=c.A.svg(n),r=(0,l.Fr)(e,{}),i=tE(0,0,h),s=t.path(i,r);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),d&&a.attr("style",d)}else(a=X(n,h,h,o)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return i&&a.attr("style",i),w(e,a),e.calcIntersect=function(t,e){let a=t.width,l=N(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tj(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:h,bbox:o,label:d}=await u(t,e,p(e)),g=o.width+("neo"===e.look?2*n:n),y=Math.max(o.height+("neo"===e.look?2*s:s),e.height??0),f=-Math.max(g,(e.width??0)-y/4)/2,x=-y/2,$=x/2,b=[{x:f+$,y:x},{x:f,y:0},{x:f+$,y:-x},{x:-f,y:-x},{x:-f,y:x}],{cssStyles:k}=e,M=c.A.svg(h),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=m(b),A=M.path(S,D),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-$/2},0)`),d.attr("transform",`translate(${-$/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),w(e,K),e.intersect=function(t){return N(e,b,t)},h}async function tq(t,e){let a,r,i,{labelStyles:n,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let g=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=g.insert("g"),f=g.insert("g").attr("class","label").attr("style",o),u=e.description,x=e.label,p=await S(f,x,e.labelStyle,!0,!0),m={width:0,height:0};if((0,s.E)((0,s.D7)())){let t=p.children[0],e=(0,d.Ltv)(p);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}h.R.info("Text 2",u);let $=u||[],b=p.getBBox(),k=await S(f,Array.isArray($)?$.join("<br/>"):$,e.labelStyle,!0,!0),A=k.children[0],K=(0,d.Ltv)(k);m=A.getBoundingClientRect(),K.attr("width",m.width),K.attr("height",m.height);let v=(e.padding||0)/2;(0,d.Ltv)(k).attr("transform","translate( "+(m.width>b.width?0:(b.width-m.width)/2)+", "+(b.height+v+5)+")"),(0,d.Ltv)(p).attr("transform","translate( "+(m.width<b.width?0:-(b.width-m.width)/2)+", 0)"),m=f.node().getBBox(),f.attr("transform","translate("+-m.width/2+", "+(-m.height/2-v+3)+")");let C=m.width+(e.padding||0),N=m.height+(e.padding||0),B=-m.width/2-v,L=-m.height/2-v;if("handDrawn"===e.look){let t=c.A.svg(g),a=(0,l.Fr)(e,{}),n=t.path(D(B,L,C,N,e.rx||0),a),s=t.line(-m.width/2-v,-m.height/2-v+b.height+v,m.width/2+v,-m.height/2-v+b.height+v,a);i=g.insert(()=>(h.R.debug("Rough node insert CXC",n),s),":first-child"),r=g.insert(()=>(h.R.debug("Rough node insert CXC",n),n),":first-child")}else r=y.insert("rect",":first-child"),i=y.insert("line"),r.attr("class","outer title-state").attr("style",o).attr("x",-m.width/2-v).attr("y",-m.height/2-v).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),i.attr("class","divider").attr("x1",-m.width/2-v).attr("x2",m.width/2+v).attr("y1",-m.height/2-v+b.height+v).attr("y2",-m.height/2-v+b.height+v);return w(e,r),e.intersect=function(t){return M(e,t)},g}async function t_(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,r={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tc(t,e,r)}async function tz(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0,{shapeSvg:h,bbox:o,label:d}=await u(t,e,p(e)),g=(e?.width??o.width)+2*i+("neo"===e.look?8:16),y=(e?.height??o.height)+2*s,f=g-8,x=8-g/2,m=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=b.polygon([{x,y:m},{x:x+f,y:m},{x:x+f,y:m+y},{x:x-8,y:m+y},{x:x-8,y:m},{x,y:m},{x,y:m+y}].map(t=>[t.x,t.y]),k),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path").attr("style",(0,n.KL)($)),r&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),$&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),d.attr("transform",`translate(${4-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),w(e,S),e.intersect=function(t){return M(e,t)},h}async function tZ(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:o,label:d}=await u(t,e,p(e)),g=(e?.width?e?.width:o.width)+2*n,y=((e?.height?e?.height:o.height)+2*s)*1.5/1.5,f=-g/2,x=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:f,y:x},{x:f,y:x+y},{x:f+g,y:x+y},{x:f+g,y:x-y/2}],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),A.attr("transform",`translate(0, ${y/4})`),d.attr("transform",`translate(${-g/2+(e.padding??0)-(o.x-(o.left??0))}, ${-y/4+(e.padding??0)-(o.y-(o.top??0))})`),w(e,A),e.intersect=function(t){return N(e,M,t)},h}async function tO(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,r="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:r};return tc(t,e,i)}async function tV(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?20:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=o.height+("neo"===e.look?2*s:s),g=o.width+d/4+("neo"===e.look?2*n:n),y=d/2,{cssStyles:f}=e,x=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-g/2+y,y:-d/2},{x:g/2-y,y:-d/2},...b(-g/2+y,0,y,50,90,270),{x:g/2-y,y:d/2},...b(g/2-y,0,y,50,270,450)],M=m(k),D=x.path(M,$),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",f),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),w(e,S),e.intersect=function(t){return N(e,k,t)},h}async function tY(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tc(t,e,a)}function tU(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{cssStyles:n}=e,{lineColor:s,stateBorder:h,nodeBorder:o,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let g=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=c.A.svg(g),f=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let u=y.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),x=h??o,p=(e.width??0)*5/14,m=y.circle(0,0,p,{...f,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),$=g.insert(()=>u,":first-child");if($.insert(()=>m),"handDrawn"!==e.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),i&&$.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return w(e,$),e.intersect=function(t){return K(e,(e.width??0)/2,t)},g}function tJ(t,e,{config:{themeVariables:a}}){let r,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=c.A.svg(s).circle(0,0,e.width,(0,l.ue)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return w(e,r),e.intersect=function(t){return K(e,(e.width??7)/2,t)},s}async function tQ(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e?.padding??8,s="neo"===e.look?28:i,h="neo"===e.look?12:i,{shapeSvg:o,bbox:d}=await u(t,e,p(e)),g=Math.max(d.width+16+s,e.width??0),y=Math.max(d.height+h,e.height??0),f=g-16,x=-g/2,m=-y/2,$=[{x:0,y:0},{x:f,y:0},{x:f,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=t.rectangle(x,m,f+16,y,a),i=t.line(x+8,m,x+8,m+y,a),s=t.line(x+8+f,m,x+8+f,m+y,a);o.insert(()=>i,":first-child"),o.insert(()=>s,":first-child");let h=o.insert(()=>r,":first-child"),{cssStyles:d}=e;h.attr("class","basic label-container").attr("style",(0,n.KL)(d)),w(e,h)}else{let t=X(o,f,y,$);r&&t.attr("style",r),w(e,t)}return e.intersect=function(t){return N(e,$,t)},o}async function t0(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=(e?.height?e?.height:o.height)+2*s,g=.2*d,y=(e?.width?e?.width:o.width)+2*n+g-g,f=-y/2,x=-d/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{}),M=[{x:f-g/2,y:x},{x:f+y+g/2,y:x},{x:f+y+g/2,y:x+d},{x:f-g/2,y:x+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=m(M),S=b.path(D,k),A=m([{x:f+y-g/2,y:x+d},{x:f+y+g/2,y:x+d},{x:f+y+g/2,y:x+d-.2*d}]),K=b.path(A,{...k,fillStyle:"solid"}),v=h.insert(()=>K,":first-child");return v.insert(()=>S,":first-child"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),w(e,v),e.intersect=function(t){return N(e,M,t)},h}async function t2(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await u(t,e,p(e)),h=Math.max(n.width+(e.padding??0)*2,e?.width??0),o=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=o/8,g=.2*h,y=.2*o,f=o+d,{cssStyles:x}=e,b=c.A.svg(i),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-h/2-h/2*.1,y:f/2},...$(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2}],D=-h/2+h/2*.1,S=-f/2-.4*y,A=[{x:D+h-g,y:(S+o)*1.3},{x:D+h,y:S+o-y},{x:D+h,y:(S+o)*.9},...$(D+h,(S+o)*1.25,D+h-g,(S+o)*1.3,-(.02*o),.5)],K=m(M),v=b.path(K,k),C=m(A),B=b.path(C,{...k,fillStyle:"solid"}),L=i.insert(()=>B,":first-child");return L.insert(()=>v,":first-child"),L.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",x),r&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-h/2+(e.padding??0)-(n.x-(n.left??0))},${-o/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),w(e,L),e.intersect=function(t){return N(e,M,t)},i}async function t1(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await u(t,e,p(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),h=Math.max(n.height+(e.padding??0),e?.height||0),o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),w(e,o),e.intersect=function(t){return M(e,t)},i}(0,o.K)(tH,"question"),(0,o.K)(tj,"rect_left_inv_arrow"),(0,o.K)(tq,"rectWithTitle"),(0,o.K)(t_,"roundedRect"),(0,o.K)(tz,"shadedProcess"),(0,o.K)(tZ,"slopedRect"),(0,o.K)(tO,"squareRect"),(0,o.K)(tV,"stadium"),(0,o.K)(tY,"state"),(0,o.K)(tU,"stateEnd"),(0,o.K)(tJ,"stateStart"),(0,o.K)(tQ,"subroutine"),(0,o.K)(t0,"taggedRect"),(0,o.K)(t2,"taggedWaveEdgedRectangle"),(0,o.K)(t1,"text");var t5=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e}
|
|
3
|
+
a${r},${i} 0,0,1 0,${-l}
|
|
4
|
+
l${a},0
|
|
5
|
+
a${r},${i} 0,0,1 0,${l}
|
|
6
|
+
M${a},${-l}
|
|
7
|
+
a${r},${i} 0,0,0 0,${l}
|
|
8
|
+
l${-a},0`,"createCylinderPathD"),t8=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),t3=(0,o.K)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t4(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?12:s/2,o=e.height??0;e.height&&(e.height=e.height-h,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-h-o/2/(2.5+o/50)*3,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:g,label:y}=await u(t,e,p(e)),f=Math.max(e.height??0,g.height)+h,x=f/2,m=x/(2.5+f/50),$=Math.max(e.width??0,g.width)+m+h,{cssStyles:b}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=t8(0,0,$,f,m,x),i=t3(0,0,$,f,m,x),n=t.path(r,(0,l.Fr)(e,{})),s=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=d.insert(()=>s,":first-child"),(a=d.insert(()=>n,":first-child")).attr("class","basic label-container"),b&&a.attr("style",b)}else{let t=t5(0,0,$,f,m,x);(a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.KL)(b)).attr("style",i)).attr("class","basic label-container outer-path"),b&&a.selectAll("path").attr("style",b),i&&a.selectAll("path").attr("style",i)}return a.attr("label-offset-x",m),a.attr("transform",`translate(${-$/2}, ${f/2} )`),y.attr("transform",`translate(${-(g.width/2)-m-(g.x-(g.left??0))}, ${-(g.height/2)-(g.y-(g.top??0))})`),w(e,a),e.intersect=function(t){let a=M(e,t),l=a.y-(e.y??0);if(0!=x&&(Math.abs(l)<(e.height??0)/2||Math.abs(l)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-m)){let r=m*m*(1-l*l/(x*x));0!=r&&(r=Math.sqrt(Math.abs(r))),r=m-r,t.x-(e.x??0)>0&&(r=-r),a.x+=r}return a},d}async function t6(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s=(e.look,n),h="neo"===e.look?2*n:n,{shapeSvg:o,bbox:d}=await u(t,e,p(e)),g=Math.max(d.height+s,e.height??0),y=Math.max(d.width+h,(e.width??0)-g),f=[{x:-3*g/6,y:0},{x:y+3*g/6,y:0},{x:y,y:-g},{x:0,y:-g}],{cssStyles:x}=e;if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(f),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-y/2}, ${g/2})`),x&&a.attr("style",x)}else a=X(o,y,g,f);return i&&a.attr("style",i),e.width=y,e.height=g,w(e,a),e.intersect=function(t){return N(e,f,t)},o}async function t7(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+2*s,{cssStyles:y}=e,f=c.A.svg(h),x=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let $=[{x:-d/2*.8,y:-g/2},{x:d/2*.8,y:-g/2},{x:d/2,y:-g/2*.6},{x:d/2,y:g/2},{x:-d/2,y:g/2},{x:-d/2,y:-g/2*.6}],b=m($),k=f.path(b,x),M=h.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",r),w(e,M),e.intersect=function(t){return N(e,$,t)},h}async function t9(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await u(t,e,p(e)),y=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),f=(e?.width?e?.width:d.width)+n,x=e?.height?e?.height:f+d.height,$=[{x:0,y:0},{x:x,y:0},{x:x/2,y:-x}],{cssStyles:b}=e,k=c.A.svg(o),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m($),S=k.path(D,M),A=o.insert(()=>S,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");return b&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",b),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),e.width=f,e.height=x,w(e,A),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${x/2-(d.height+(e.padding??0)/(y?2:1)-(d.y-(d.top??0)))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,$,t),N(e,$,t)},o}async function et(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=!0;(e.width||e.height)&&(h=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await u(t,e,p(e)),y=(e?.width?e?.width:d.width)+(n??0)*2,f=(e?.height?e?.height:d.height)+(s??0)*2,x="neo"===e.look?f/4:f/8,b=f+(h?x:-x),{cssStyles:k}=e,M=14-y,D=M>0?M/2:0,S=c.A.svg(o),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=[{x:-y/2-D,y:b/2},...$(-y/2-D,b/2,y/2+D,b/2,x,.8),{x:y/2+D,y:-b/2},{x:-y/2-D,y:-b/2}],v=m(K),C=S.path(v,A),B=o.insert(()=>C,":first-child");return B.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-x/2})`),g.attr("transform",`translate(${-y/2+(e.padding??0)-(d.x-(d.left??0))},${-f/2+(e.padding??0)-x-(d.y-(d.top??0))})`),w(e,B),e.intersect=function(t){return N(e,K,t)},o}async function ee(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:h,bbox:o}=await u(t,e,p(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+s,y=g/8,f=g+2*y,{cssStyles:x}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-d/2,y:f/2},...$(-d/2,f/2,d/2,f/2,y,1),{x:d/2,y:-f/2},...$(d/2,-f/2,-d/2,-f/2,y,-1)],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",x),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),w(e,A),e.intersect=function(t){return N(e,M,t)},h}async function ea(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*i-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:h,label:o}=await u(t,e,p(e)),d=(e?.width?e?.width:h.width)+2*i+10,g=(e?.height?e?.height:h.height)+2*n+10,y=d-10,f=g-10,x=-y/2,m=-f/2,{cssStyles:$}=e,b=c.A.svg(s),k=(0,l.Fr)(e,{}),M=[{x:x-10,y:m-10},{x:x-10,y:m+f},{x:x+y,y:m+f},{x:x+y,y:m-10}],D=`M${x-10},${m-10} L${x+y},${m-10} L${x+y},${m+f} L${x-10},${m+f} L${x-10},${m-10}
|
|
9
|
+
M${x-10},${m} L${x+y},${m}
|
|
10
|
+
M${x},${m-10} L${x},${m+f}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=b.path(D,k),A=s.insert(()=>S,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(h.width/2)+5-(h.x-(h.left??0))}, ${-(h.height/2)+5-(h.y-(h.top??0))})`),w(e,A),e.intersect=function(t){return N(e,M,t)},s}(0,o.K)(t4,"tiltedCylinder"),(0,o.K)(t6,"trapezoid"),(0,o.K)(t7,"trapezoidalPentagon"),(0,o.K)(t9,"triangle"),(0,o.K)(et,"waveEdgedRectangle"),(0,o.K)(ee,"waveRectangle"),(0,o.K)(ea,"windowPane");var el=new Set(["redux-color","redux-dark-color"]),er=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function ei(t,e){e.alias&&(e.label=e.alias);let{theme:a,themeVariables:r}=(0,s.zj)(),{rowEven:i,rowOdd:h,nodeBorder:o,borderColorArray:g}=r;if("handDrawn"===e.look){let{themeVariables:a}=(0,s.zj)(),{background:l}=a,r={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await ei(t,r)}let y=(0,s.zj)();e.useHtmlLabels=y.htmlLabels;let f=y.er?.diagramPadding??10,u=y.er?.entityPadding??6,{cssStyles:x}=e,{labelStyles:m,nodeStyles:$}=(0,l.GX)(e);if(0===e.attributes.length&&e.label){let l={rx:0,ry:0,labelPaddingX:f,labelPaddingY:1.5*f,classes:""};(0,n.Un)(e.label,y)+2*l.labelPaddingX<y.er.minEntityWidth&&(e.width=y.er.minEntityWidth);let r=await tc(t,e,l);if(null!=a&&el.has(a)){let t=e.colorIndex??0;r.attr("data-color-id",`color-${t%g.length}`)}if(!(0,s._3)(y.htmlLabels)){let t=r.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return r}y.htmlLabels||(f*=1.25,u*=1.25);let b=p(e);b||(b="node default");let k=t.insert("g").attr("class",b).attr("id",e.domId||e.id),D=await en(k,e.label??"",y,0,0,["name"],m);D.height+=u;let S=0,A=[],K=[],v=0,C=0,N=0,B=0,L=!0,R=!0;for(let t of e.attributes){let e=await en(k,t.type,y,0,S,["attribute-type"],m);v=Math.max(v,e.width+f);let a=await en(k,t.name,y,0,S,["attribute-name"],m);C=Math.max(C,a.width+f);let l=await en(k,t.keys.join(),y,0,S,["attribute-keys"],m);N=Math.max(N,l.width+f);let r=await en(k,t.comment,y,0,S,["attribute-comment"],m);B=Math.max(B,r.width+f);let i=Math.max(e.height,a.height,l.height,r.height)+u;K.push({yOffset:S,rowHeight:i}),S+=i}let F=4;N<=f&&(L=!1,N=0,F--),B<=f&&(R=!1,B=0,F--);let P=k.node().getBBox();if(D.width+2*f-(v+C+N+B)>0){let t=D.width+2*f-(v+C+N+B);v+=t/F,C+=t/F,N>0&&(N+=t/F),B>0&&(B+=t/F)}let G=v+C+N+B,X=c.A.svg(k),I=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(I.roughness=0,I.fillStyle="solid");let T=0;K.length>0&&(T=K.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(P.width+2*f,e?.width||0,G),E=Math.max((T??0)+D.height,e?.height||0),H=-W/2,j=-E/2;if(k.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?i+=v:l.attr("class").includes("attribute-keys")?i+=v+C:l.attr("class").includes("attribute-comment")&&(i+=v+C+N))}l.attr("transform",`translate(${H+f/2+i}, ${n+j+D.height+u/2})`)}),k.select(".name").attr("transform","translate("+-D.width/2+", "+(j+u/2)+")"),null!=a&&el.has(a)){let t=e.colorIndex??0;k.attr("data-color-id",`color-${t%g.length}`)}let q=X.rectangle(H,j,W,E,I),_=k.insert(()=>q,":first-child").attr("class","outer-path").attr("style",x.join(""));for(let[t,e]of(A.push(0),K.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=X.rectangle(H,D.height+j+e?.yOffset,W,e?.rowHeight,{...I,fill:a?i:h,stroke:o});k.insert(()=>l,"g.label").attr("style",x.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let z=es(H,D.height+j,W+H,D.height+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I);if(k.insert(()=>Z).attr("class","divider"),z=es(v+H,D.height+j,v+H,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider"),L){let t=v+C+H;z=es(t,D.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(R){let t=v+C+N+H;z=es(t,D.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}for(let t of A){let e=D.height+j+t;z=es(H,e,W+H,e,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(w(e,_),$&&"handDrawn"!==e.look)if(null!=a&&er.has(a))k.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");k.selectAll("path").attr("style",e??""),k.selectAll(".row-rect-even path").attr("style",$)}return e.intersect=function(t){return M(e,t)},k}async function en(t,e,a,l=0,i=0,h=[],o=""){let c=t.insert("g").attr("class",`label ${h.join(" ")}`).attr("transform",`translate(${l}, ${i})`).attr("style",o);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","<").replaceAll(">",">"));let g=c.node().appendChild(await (0,r.GZ)(c,e,{width:(0,n.Un)(e,a)+100,style:o,useHtmlLabels:a.htmlLabels},a));if(e.includes("<")||e.includes(">")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let y=g.getBBox();if((0,s._3)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,d.Ltv)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function es(t,e,a,l,r){return t===a?[{x:t-r/2,y:e},{x:t+r/2,y:e},{x:a+r/2,y:l},{x:a-r/2,y:l}]:[{x:t,y:e-r/2},{x:t,y:e+r/2},{x:a,y:l+r/2},{x:a,y:l-r/2}]}async function eh(t,e,a,l,r=a.class.padding??12){let i=3*!l,n=t.insert("g").attr("class",p(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await eo(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await eo(h,e,0,["font-weight: bolder"]);let f=h.node().getBBox();g=f.height,o=n.insert("g").attr("class","members-group text");let u=0;for(let t of e.members){let e=await eo(o,t,u,[t.parseClassifier()]);u+=e+i}(y=o.node().getBBox().height)<=0&&(y=r/2),d=n.insert("g").attr("class","methods-group text");let x=0;for(let t of e.methods){let e=await eo(d,t,x,[t.parseClassifier()]);x+=e+i}let w=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-f.width/2}, ${c})`),w=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),w=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*r:2*r)})`),w=n.node().getBBox(),{shapeSvg:n,bbox:w}}async function eo(t,e,a,l=[]){let i,h=t.insert("g").attr("class","label").attr("style",l.join("; ")),o=(0,s.zj)(),c="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(o.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!c&&y.startsWith("\\")&&(y=y.substring(1)),(0,s.Wi)(y)&&(c=!0);let f=await (0,r.GZ)(h,(0,s.oB)((0,n.Sm)(y)),{width:(0,n.Un)(y,o)+50,classes:"markdown-node-label",useHtmlLabels:c},o),u=1;if(c){let t=f.children[0],e=(0,d.Ltv)(f);u=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(u+=t.innerHTML.split("<mrow>").length-1),await g(t),i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}else{l.includes("font-weight: bolder")&&(0,d.Ltv)(f).selectAll("tspan").attr("font-weight",""),u=f.children.length;let t=f.children[0];(""===f.textContent||f.textContent.includes(">"))&&(t.textContent=y[0]+y.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),i=f.getBBox()}return h.attr("transform","translate(0,"+(-i.height/(2*u)+a)+")"),i.height}async function ed(t,e){let a=(0,s.D7)(),{themeVariables:r}=a,{useGradient:i}=r,n=a.class.padding??12,h=e.useHtmlLabels??(0,s._3)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:o,bbox:g}=await eh(t,e,a,h,n),{labelStyles:y,nodeStyles:f}=(0,l.GX)(e);e.labelStyle=y,e.cssStyles=e.styles||"";let u=e.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=u.replaceAll("!important","").split(";"));let x=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,p=c.A.svg(o),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let $=Math.max(e.width??0,g.width),b=Math.max(e.height??0,g.height),k=(e.height??0)>g.height;0===e.members.length&&0===e.methods.length?b+=n:e.members.length>0&&0===e.methods.length&&(b+=2*n);let D=-$/2,S=-b/2,A=x?2*n:0===e.members.length&&0===e.methods.length?-n:0;k&&(A=2*n);let K=p.rectangle(D-n,S-n-(x?n:0===e.members.length&&0===e.methods.length?-n/2:0),$+2*n,b+2*n+A,m),v=o.insert(()=>K,":first-child");v.attr("class","basic label-container outer-path");let C=v.node().getBBox(),N=o.select(".annotation-group").node().getBBox().height-(x?n/2:0)||0,B=o.select(".label-group").node().getBBox().height-(x?n/2:0)||0,L=o.select(".members-group").node().getBBox().height-(x?n/2:0)||0,R=(N+B+S+n-(S-n-(x?n:0===e.members.length&&0===e.methods.length?-n/2:0)))/2;if(o.selectAll(".text").each((t,l,r)=>{let i=(0,d.Ltv)(r[l]),s=i.attr("transform"),c=0;if(s){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(s);t&&(c=parseFloat(t[2]))}let g=c+S+n-(x?n:0===e.members.length&&0===e.methods.length?-n/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(L,n/2);g=k?Math.max(R,N+B+t+S+2*n+n)+2*n:N+B+t+S+4*n+n}0===e.members.length&&0===e.methods.length&&a.class?.hideEmptyMembersBox&&(g=e.annotations.length>0?c-n:c),h||(g-=4);let y=D;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(y=-i.node()?.getBBox().width/2||0,o.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),i.attr("transform",`translate(${y}, ${g})`)}),e.members.length>0||e.methods.length>0||x){let t=N+B+S+n,a=p.line(C.x,t,C.x+C.width,t+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",u)}if(x||e.members.length>0||e.methods.length>0){let t=N+B+L+S+2*n+n,a=p.line(C.x,k?Math.max(R,t):t,C.x+C.width,(k?Math.max(R,t):t)+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",u)}if("handDrawn"!==e.look&&o.selectAll("path").attr("style",u),v.select(":nth-child(2)").attr("style",u),o.selectAll(".divider").select("path").attr("style",u),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",u),!h){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(u);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}else if(y){let e=t.exec(y);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}}}return w(e,v),e.intersect=function(t){return M(e,t)},o}async function ec(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n="verifyMethod"in e,h=p(e),o=(0,s.D7)(),{themeVariables:g}=o,{borderColorArray:y,requirementEdgeLabelBackground:f}=g,u="elk"===o.layout?"start":"center",x=t.insert("g").attr("class",h).attr("id",e.domId??e.id),m=a=n?await eg(x,`<<${e.type}>>`,0,e.labelStyle):await eg(x,"<<Element>>",0,e.labelStyle),$=await eg(x,e.name,m,e.labelStyle+"; font-weight: bold;");if(m+=$+20,n){let t=await eg(x,`${e.requirementId?`ID: ${e.requirementId}`:""}`,m,e.labelStyle,u);m+=t;let a=await eg(x,`${e.text?`Text: ${e.text}`:""}`,m,e.labelStyle,u);m+=a;let l=await eg(x,`${e.risk?`Risk: ${e.risk}`:""}`,m,e.labelStyle,u);m+=l,await eg(x,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,m,e.labelStyle,u)}else{let t=await eg(x,`${e.type?`Type: ${e.type}`:""}`,m,e.labelStyle,u);m+=t,await eg(x,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,m,e.labelStyle,u)}let b=(x.node()?.getBBox().width??200)+20,k=(x.node()?.getBBox().height??200)+20,D=-b/2,S=-k/2,A=c.A.svg(x),K=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(K.roughness=0,K.fillStyle="solid");let v=A.rectangle(D,S,b,k,K),C=x.insert(()=>v,":first-child");if(C.attr("class","basic label-container outer-path").attr("style",i),y?.length){let t=e.colorIndex??0;x.attr("data-color-id",`color-${t%y.length}`)}if(x.selectAll(".label").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-k/2,h=D+10;(0===e||1===e)&&(h=i),l.attr("transform",`translate(${h}, ${s+20})`)}),m>a+$+20){let t,l=S+a+$+20;if("neo"===e.look){let e=[[D,l],[D+b,l],[D+b,l+.001],[D,l+.001]];t=A.polygon(e,K)}else t=A.line(D,l,D+b,l,K);x.insert(()=>t).attr("class","divider")}return w(e,C),e.intersect=function(t){return M(e,t)},i&&"handDrawn"!==e.look&&(f||y?.length)&&x.selectAll("path").attr("style",i),x}async function eg(t,e,a,l="",i="center"){let h;if(""===e)return 0;let o=t.insert("g").attr("class","label").attr("style",l),c=(0,s.D7)(),g=c.htmlLabels??!0,y=await (0,r.GZ)(o,(0,s.oB)((0,n.Sm)(e)),{width:(0,n.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:g,style:l},c);if(g){let t=y.children[0],e=(0,d.Ltv)(y);"start"===i&&(0,d.Ltv)(t).style("text-align","left"),h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{let t=y.children[0];for(let e of t.children)l&&e.setAttribute("style",l);if("start"===i)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");h=y.getBBox(),h.height+=6}return o.attr("transform",`translate(${-h.width/2},${-h.height/2+a})`),h.height}(0,o.K)(ei,"erBox"),(0,o.K)(en,"addText"),(0,o.K)(es,"lineToPolygon"),(0,o.K)(eh,"textHelper"),(0,o.K)(eo,"addText"),(0,o.K)(ed,"classBox"),(0,o.K)(ec,"requirementBox"),(0,o.K)(eg,"addText");var ey=(0,o.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ef(t,e,{config:a}){let r,i,n,s,{labelStyles:h,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=h||"";let d=e.width;e.width=(e.width??200)-10;let{shapeSvg:g,bbox:y,label:f}=await u(t,e,p(e)),m=e.padding||10,$="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&($=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),r=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",$).attr("target","_blank"));let b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await x(r,"ticket"in e&&e.ticket||"",b):{label:i,bbox:n}=await x(g,"ticket"in e&&e.ticket||"",b);let{label:k,bbox:S}=await x(g,"assigned"in e&&e.assigned||"",b);e.width=d;let A=e?.width||0,K=Math.max(n.height,S.height)/2,v=Math.max(y.height+20,e?.height||0)+K,C=-A/2,N=-v/2;f.attr("transform","translate("+(m-A/2)+", "+(-K-y.height/2)+")"),i.attr("transform","translate("+(m-A/2)+", "+(-K+y.height/2)+")"),k.attr("transform","translate("+(m+A/2-S.width-20)+", "+(-K+y.height/2)+")");let{rx:B,ry:L}=e,{cssStyles:R}=e;if("handDrawn"===e.look){let t=c.A.svg(g),a=(0,l.Fr)(e,{}),r=B||L?t.path(D(C,N,A,v,B||0),a):t.rectangle(C,N,A,v,a);(s=g.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",R||null)}else{(s=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",o).attr("rx",B??5).attr("ry",L??5).attr("x",C).attr("y",N).attr("width",A).attr("height",v);let t="priority"in e&&e.priority;if(t){let e=g.append("line"),a=C+2,l=N+Math.floor((B??0)/2),r=N+v-Math.floor((B??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",ey(t))}}return w(e,s),e.height=v,e.intersect=function(t){return M(e,t)},g}async function eu(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await u(t,e,p(e)),y=o.width+10*d,f=o.height+8*d,x=.15*y,{cssStyles:m}=e,$=o.width+20,b=o.height+20,k=Math.max(y,$),D=Math.max(f,b);g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let S=`M0 0
|
|
11
|
+
a${x},${x} 1 0,0 ${.25*k},${-1*D*.1}
|
|
12
|
+
a${x},${x} 1 0,0 ${.25*k},0
|
|
13
|
+
a${x},${x} 1 0,0 ${.25*k},0
|
|
14
|
+
a${x},${x} 1 0,0 ${.25*k},${.1*D}
|
|
15
|
+
|
|
16
|
+
a${x},${x} 1 0,0 ${.15*k},${.33*D}
|
|
17
|
+
a${.8*x},${.8*x} 1 0,0 0,${.34*D}
|
|
18
|
+
a${x},${x} 1 0,0 ${-1*k*.15},${.33*D}
|
|
19
|
+
|
|
20
|
+
a${x},${x} 1 0,0 ${-1*k*.25},${.15*D}
|
|
21
|
+
a${x},${x} 1 0,0 ${-1*k*.25},0
|
|
22
|
+
a${x},${x} 1 0,0 ${-1*k*.25},0
|
|
23
|
+
a${x},${x} 1 0,0 ${-1*k*.25},${-1*D*.15}
|
|
24
|
+
|
|
25
|
+
a${x},${x} 1 0,0 ${-1*k*.1},${-1*D*.33}
|
|
26
|
+
a${.8*x},${.8*x} 1 0,0 0,${-1*D*.34}
|
|
27
|
+
a${x},${x} 1 0,0 ${.1*k},${-1*D*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(S,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(m))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S);return a.attr("transform",`translate(${-k/2}, ${-D/2})`),w(e,a),e.calcIntersect=function(t,e){return M(t,e)},e.intersect=function(t){return h.R.info("Bang intersect",e,t),M(e,t)},s}async function ex(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await u(t,e,p(e)),y=o.width+2*d,f=o.height+2*d,x=.15*y,m=.25*y,$=.35*y,b=.2*y,{cssStyles:k}=e,D=`M0 0
|
|
29
|
+
a${x},${x} 0 0,1 ${.25*y},${-1*y*.1}
|
|
30
|
+
a${$},${$} 1 0,1 ${.4*y},${-1*y*.1}
|
|
31
|
+
a${m},${m} 1 0,1 ${.35*y},${.2*y}
|
|
32
|
+
|
|
33
|
+
a${x},${x} 1 0,1 ${.15*y},${.35*f}
|
|
34
|
+
a${b},${b} 1 0,1 ${-1*y*.15},${.65*f}
|
|
35
|
+
|
|
36
|
+
a${m},${x} 1 0,1 ${-1*y*.25},${.15*y}
|
|
37
|
+
a${$},${$} 1 0,1 ${-1*y*.5},0
|
|
38
|
+
a${x},${x} 1 0,1 ${-1*y*.25},${-1*y*.15}
|
|
39
|
+
|
|
40
|
+
a${x},${x} 1 0,1 ${-1*y*.1},${-1*f*.35}
|
|
41
|
+
a${b},${b} 1 0,1 ${.1*y},${-1*f*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(D,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(k))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",D);return g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.attr("transform",`translate(${-y/2}, ${-f/2})`),w(e,a),e.calcIntersect=function(t,e){return M(t,e)},e.intersect=function(t){return h.R.info("Cloud intersect",e,t),M(e,t)},s}async function ew(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,halfPadding:s,label:h}=await u(t,e,p(e)),o=n.width+8*s,d=n.height+2*s,c="neo"===e.look?`
|
|
43
|
+
M${-o/2} ${d/2-5}
|
|
44
|
+
v${-d+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${o-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${d-5}
|
|
49
|
+
H${-o/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-o/2} ${d/2-5}
|
|
53
|
+
v${-d+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${o-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${d-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(o-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",d/2).attr("x2",o/2).attr("y2",d/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>h.node()),w(e,g),e.calcIntersect=function(t,e){return M(t,e)},e.intersect=function(t){return M(e,t)},i}async function ep(t,e){let a={padding:e.padding??0};return O(t,e,a)}(0,o.K)(ef,"kanbanItem"),(0,o.K)(eu,"bang"),(0,o.K)(ex,"cloud"),(0,o.K)(ew,"defaultMindmapNode"),(0,o.K)(ep,"mindmapCircle");var em=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tO},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:t_},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tV},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tQ},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:td},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:tg},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tw},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:P},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Y},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:_},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tn},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:O},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:eu},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ex},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tH},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tb},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tB},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tN},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t6},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tv},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tf},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t1},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:z},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tz},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tJ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tU},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tp},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tk},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:tt},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:ta},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:tr},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tL},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:et},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tm},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t4},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tG},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ti},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ty},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t9},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ea},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tu},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t7},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tZ},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tT},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tI},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:F},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:J},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:t2},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:t0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ee},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tj},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tX}],e$=(0,o.K)(()=>Object.fromEntries([...Object.entries({state:tY,choice:Z,note:tW,composite:V,rectWithTitle:tq,labelRect:tC,block_arrow:q,collapsedGroup:G,iconSquare:tA,iconCircle:tD,icon:tM,iconRounded:tS,imageSquare:tK,anchor:B,kanbanItem:ef,mindmapCircle:ep,defaultMindmapNode:ew,classBox:ed,erBox:ei,requirementBox:ec}),...em.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function eb(t){return t in e$}(0,o.K)(eb,"isValidShape")}}]);
|