@bkm016/basalt 0.1.8 → 0.1.10

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.
Files changed (258) hide show
  1. package/{chunk-0039s4jt.js → chunk-02d3x4mj.js} +3 -3
  2. package/{chunk-ky55taar.js → chunk-0mjb3sm3.js} +327 -316
  3. package/{chunk-ckjw3b61.js → chunk-13gvs0ax.js} +2 -2
  4. package/{chunk-0d51ggzj.js → chunk-1n7dat03.js} +4 -4
  5. package/{chunk-ppxv5q7y.js → chunk-1zj3zvw5.js} +3 -3
  6. package/{chunk-2ek3wq4b.js → chunk-29qrxygd.js} +1 -1
  7. package/{chunk-7p6e2f5s.js → chunk-30rjf7my.js} +3 -3
  8. package/{chunk-v2srrqcv.js → chunk-38g3gctw.js} +2 -2
  9. package/chunk-3mqf9ped.js +479 -0
  10. package/{chunk-3j2kkgsc.js → chunk-4dw43syb.js} +1 -1
  11. package/{chunk-t66jqz12.js → chunk-4gtgqcct.js} +2 -2
  12. package/{chunk-qmdpgbg3.js → chunk-755sy11p.js} +1 -1
  13. package/{chunk-n015c8nx.js → chunk-7zkswxvk.js} +1 -1
  14. package/{chunk-91r5nvth.js → chunk-82v8jh1h.js} +2 -2
  15. package/{chunk-12trygzx.js → chunk-95964592.js} +16 -16
  16. package/{chunk-nmtk9xra.js → chunk-9as0p561.js} +2 -2
  17. package/{chunk-pn413hjw.js → chunk-a1352w87.js} +1 -1
  18. package/{chunk-rnt1ckk9.js → chunk-a1rb1a48.js} +5 -5
  19. package/{chunk-fzcmzbsq.js → chunk-a98wma9j.js} +1 -1
  20. package/{chunk-kgkrccr1.js → chunk-asyr3gnq.js} +2 -2
  21. package/{chunk-5gxj9560.js → chunk-ax04trym.js} +1 -1
  22. package/chunk-b2bxqeb4.js +2 -0
  23. package/{chunk-xjw78yey.js → chunk-bdjr0kfr.js} +4 -4
  24. package/{chunk-7kjr9gdx.js → chunk-bk4rpnm8.js} +2 -2
  25. package/{chunk-47vf66t6.js → chunk-c0zfefq8.js} +1 -1
  26. package/{chunk-kpvaqb7c.js → chunk-c6q04xrd.js} +2 -2
  27. package/chunk-c71173py.js +25 -0
  28. package/{chunk-adys4qq4.js → chunk-cmwdjes8.js} +5 -5
  29. package/{chunk-dcwdmpw2.js → chunk-d0a1jxk5.js} +1 -1
  30. package/{chunk-2nrkqq45.js → chunk-d5j74pcp.js} +7 -7
  31. package/{chunk-pkpj7s2k.js → chunk-dfh9m9n7.js} +1 -1
  32. package/{chunk-26cz8et8.js → chunk-dq01v5eq.js} +1 -1
  33. package/{chunk-fpxc6qjr.js → chunk-e1x629v0.js} +2 -2
  34. package/{chunk-86xhmz7k.js → chunk-en218k4y.js} +1 -1
  35. package/{chunk-3hg7yn1t.js → chunk-fgwda4m0.js} +1 -1
  36. package/chunk-gbjn6d81.js +2 -0
  37. package/{chunk-x496kg3v.js → chunk-gkf5jwvj.js} +1 -1
  38. package/{chunk-k3q5jqjj.js → chunk-hb4f2v34.js} +2 -2
  39. package/{chunk-mr807v9n.js → chunk-hbnmymaq.js} +1 -1
  40. package/{chunk-818nd6s1.js → chunk-jj4hqbrx.js} +2 -2
  41. package/{chunk-jyv9cae6.js → chunk-jn5pqy5v.js} +1 -1
  42. package/{chunk-yyy2yp6f.js → chunk-jtsve11b.js} +9 -9
  43. package/chunk-m1eam0s5.js +2 -0
  44. package/{chunk-6vnjg5x9.js → chunk-mbpb5c7w.js} +1 -1
  45. package/{chunk-t40fag3z.js → chunk-msm9hmk9.js} +1 -1
  46. package/{chunk-j781n7ca.js → chunk-n0ybj4h9.js} +2 -2
  47. package/{chunk-jp5afrwm.js → chunk-n2jcx65v.js} +2 -2
  48. package/{chunk-2ks2tnac.js → chunk-nrsd810j.js} +2 -2
  49. package/chunk-pnspvnyd.js +2 -0
  50. package/chunk-pz2afna8.js +2 -0
  51. package/{chunk-d37gemt2.js → chunk-q9f4xb0w.js} +3 -3
  52. package/{chunk-hd3x1w46.js → chunk-qaeyhe65.js} +1 -1
  53. package/chunk-qnkrrwmg.js +2 -0
  54. package/{chunk-e6c2mzxc.js → chunk-r4ttdkrz.js} +2 -2
  55. package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
  56. package/{chunk-g3ed130w.js → chunk-tevejprz.js} +4 -4
  57. package/{chunk-k3rmjrf1.js → chunk-v3ee9z3f.js} +1 -1
  58. package/{chunk-4n49ptbz.js → chunk-vtqr7dm8.js} +2 -2
  59. package/{chunk-z3ch1wg6.js → chunk-xh444pfn.js} +14 -14
  60. package/{chunk-pehyqj8k.js → chunk-zc9ar0r4.js} +1 -1
  61. package/{chunk-ef9yhnk3.js → chunk-zyyzk5ha.js} +1 -1
  62. package/compiled.js +9 -9
  63. package/package.json +1 -1
  64. package/ui-test-worker.js +8 -8
  65. package/web/chunk-045d3b5d.js +1 -0
  66. package/web/{chunk-r4ffr96e.js → chunk-0770q5e1.js} +1 -1
  67. package/web/chunk-12qf1r6m.js +1 -0
  68. package/web/{chunk-s7e93552.js → chunk-18neka5g.js} +4 -4
  69. package/web/{chunk-et8q775x.js → chunk-1ev0n3n4.js} +5 -5
  70. package/web/chunk-1ex3wgms.js +2 -0
  71. package/web/{chunk-svh2gkx8.js → chunk-1qh7f5kr.js} +1 -1
  72. package/web/{chunk-s38s9ff9.js → chunk-26ecc2xh.js} +30 -30
  73. package/web/chunk-2cz7tx8q.js +1 -0
  74. package/web/chunk-32ty2xfn.js +1 -0
  75. package/web/{chunk-q1xxs319.js → chunk-3eexx7y5.js} +4 -4
  76. package/web/{chunk-v14s4vgc.js → chunk-46jnkghq.js} +1 -1
  77. package/web/chunk-4am8j3k3.js +1 -0
  78. package/web/{chunk-85gdsmt4.js → chunk-5qvmefq2.js} +1 -1
  79. package/web/chunk-5svqfj4g.js +3 -0
  80. package/web/{chunk-f93pe4kb.js → chunk-5v5q13hz.js} +4 -4
  81. package/web/chunk-5z2n4z9x.css +1 -0
  82. package/web/{chunk-qcge7d6s.js → chunk-6e87m0nm.js} +2 -2
  83. package/web/chunk-6y55gk1n.js +1 -0
  84. package/web/chunk-7np1jp3x.js +8 -0
  85. package/web/chunk-87e8d1hv.js +1 -0
  86. package/web/{chunk-33w36n91.js → chunk-88wd49xe.js} +2 -2
  87. package/web/chunk-8h2x89tw.js +2 -0
  88. package/web/chunk-8y2526ve.js +1 -0
  89. package/web/chunk-905vw286.js +2 -0
  90. package/web/chunk-918e5t4x.js +2 -0
  91. package/web/chunk-96m2m3e8.js +1 -0
  92. package/web/chunk-9f4zzqbx.js +1 -0
  93. package/web/{chunk-fe31sv6t.js → chunk-9yfftz38.js} +1 -1
  94. package/web/{chunk-z0zrp8n8.js → chunk-a1n4468c.js} +1 -1
  95. package/web/chunk-arnzrqnm.js +1 -0
  96. package/web/{chunk-c01176kn.js → chunk-awkdw9rw.js} +2 -2
  97. package/web/{chunk-m5y2d4zv.js → chunk-b46ws7rf.js} +1 -1
  98. package/web/chunk-bc3ajvfg.js +24 -0
  99. package/web/chunk-bwy3e58v.js +1 -0
  100. package/web/{chunk-ja7w629n.js → chunk-c57f714b.js} +2 -2
  101. package/web/chunk-d5gshd1a.js +1 -0
  102. package/web/chunk-de40q05r.js +30 -0
  103. package/web/chunk-dp0k5vhd.js +1 -0
  104. package/web/{chunk-qq2v8h6d.js → chunk-dv1berk6.js} +5 -5
  105. package/web/{chunk-jzte2phh.js → chunk-eh7wp62z.js} +1 -1
  106. package/web/{chunk-823b7866.js → chunk-ehtmb6sn.js} +18 -18
  107. package/web/{chunk-d9wdsjkk.js → chunk-eqndhs21.js} +2 -2
  108. package/web/chunk-et1hytyv.js +1 -0
  109. package/web/chunk-f7jpakwh.js +1 -0
  110. package/web/chunk-f9m9seam.js +1 -0
  111. package/web/{chunk-7a4xk6j9.js → chunk-fmmrthpa.js} +5 -5
  112. package/web/{chunk-fv6vm14n.js → chunk-frnh4zqf.js} +2 -2
  113. package/web/chunk-g2erm7k0.js +1 -0
  114. package/web/chunk-g3kbn0t2.js +1 -0
  115. package/web/{chunk-h5cfg3vv.js → chunk-g7dc4hrd.js} +2 -2
  116. package/web/{chunk-dgwkqcz6.js → chunk-g7kz8f7q.js} +2 -2
  117. package/web/chunk-ght0t49g.js +1 -0
  118. package/web/{chunk-jjjtv2r1.js → chunk-ghwm7bdj.js} +2 -2
  119. package/web/{chunk-sda7cyrt.js → chunk-grm2208k.js} +21 -21
  120. package/web/{chunk-0zwc2rvh.js → chunk-gsw1tv96.js} +1 -1
  121. package/web/chunk-gw8x1g61.js +24 -0
  122. package/web/chunk-gx340asc.js +1 -0
  123. package/web/chunk-h2txs73e.js +39 -0
  124. package/web/chunk-h3tkacc7.js +1 -0
  125. package/web/{chunk-cyjnert7.js → chunk-h5ckjk48.js} +16 -16
  126. package/web/{chunk-1s8zg6fb.js → chunk-j37p0b13.js} +5 -5
  127. package/web/chunk-j89s11x8.js +78 -0
  128. package/web/{chunk-jam45rqg.js → chunk-jccz14ye.js} +2 -2
  129. package/web/chunk-je78j3vr.js +1 -0
  130. package/web/chunk-jke2ev6m.js +2 -0
  131. package/web/{chunk-1gx0zpmp.js → chunk-js6kb05s.js} +9 -9
  132. package/web/{chunk-30b33r2w.js → chunk-k0cg4n2k.js} +2 -2
  133. package/web/{chunk-tkp72r9b.js → chunk-knm82fw9.js} +1 -1
  134. package/web/{chunk-xb9m0092.js → chunk-kxdtg9dt.js} +1 -1
  135. package/web/{chunk-w37n09px.js → chunk-m4fxd5d9.js} +10 -10
  136. package/web/chunk-m9xzt9p7.js +1 -0
  137. package/web/{chunk-8773nwdc.js → chunk-myd6sc76.js} +1 -1
  138. package/web/{chunk-sf101c23.js → chunk-mykrm8ba.js} +2 -2
  139. package/web/chunk-mzzaet63.js +1 -0
  140. package/web/{chunk-2axwda8c.js → chunk-n4yzs2q0.js} +7 -7
  141. package/web/{chunk-wj3ymejj.js → chunk-nawxgz87.js} +4 -4
  142. package/web/chunk-ngt1j8py.js +1139 -0
  143. package/web/{chunk-hstbgb83.js → chunk-p55vhns6.js} +5 -5
  144. package/web/{chunk-xabcx3ry.js → chunk-pgwf37s2.js} +3 -3
  145. package/web/chunk-q34as3v6.js +1 -0
  146. package/web/{chunk-dtg5yhhs.js → chunk-q4bst4an.js} +1 -1
  147. package/web/chunk-qdzy124b.js +4 -0
  148. package/web/chunk-qe0bgeda.js +1 -0
  149. package/web/{chunk-sd3cdqcm.js → chunk-qh62nkem.js} +2 -2
  150. package/web/{chunk-j1bw5v1g.js → chunk-qq6m2my8.js} +2 -2
  151. package/web/{chunk-8dp7h6w8.js → chunk-qy1zx2yw.js} +16 -16
  152. package/web/chunk-rag65pfs.js +4 -0
  153. package/web/chunk-rbqnre6q.js +36 -0
  154. package/web/{chunk-hbkasy6c.js → chunk-rh3xb76f.js} +22 -22
  155. package/web/{chunk-fx4mackk.js → chunk-rwfmccmh.js} +4 -4
  156. package/web/{chunk-mf6xng5b.js → chunk-rxvm70w5.js} +2 -2
  157. package/web/chunk-sat7zyva.js +1 -0
  158. package/web/{chunk-cn0tmwjs.js → chunk-sc63488q.js} +2 -2
  159. package/web/{chunk-xsz1dfm2.js → chunk-sd3xat3r.js} +20 -20
  160. package/web/{chunk-nky3bqfg.js → chunk-se4h6wx0.js} +1 -1
  161. package/web/chunk-sjkg40ay.js +7 -0
  162. package/web/chunk-sk0hpa80.js +1 -0
  163. package/web/{chunk-xqyazzm7.js → chunk-t5nvgz7z.js} +5 -5
  164. package/web/{chunk-3q0v8w45.js → chunk-tfqarvdx.js} +80 -80
  165. package/web/{chunk-d0m0h0eb.js → chunk-tqze6d6b.js} +1 -1
  166. package/web/{chunk-rbdvc8x7.js → chunk-tt93zbn4.js} +7 -7
  167. package/web/chunk-tvcxrx6h.js +1 -0
  168. package/web/chunk-tzpnh70q.js +1 -0
  169. package/web/{chunk-8wg44w91.js → chunk-vasppf6b.js} +2 -2
  170. package/web/chunk-vb7g4xg6.js +1 -0
  171. package/web/chunk-w3zgfhjb.js +2 -0
  172. package/web/{chunk-0j9a7811.js → chunk-wrevb4ew.js} +6 -6
  173. package/web/chunk-wtvch4ad.js +106 -0
  174. package/web/chunk-wzfe6jtq.js +1 -0
  175. package/web/{chunk-cez1k71m.js → chunk-x5g1yy12.js} +1 -1
  176. package/web/chunk-x850q01z.js +1 -0
  177. package/web/chunk-xh4xn1az.js +1 -0
  178. package/web/chunk-xk904wqv.js +1 -0
  179. package/web/chunk-xtn305fd.js +1 -0
  180. package/web/chunk-xzwxcxb4.js +1 -0
  181. package/web/{chunk-4anjs6yp.js → chunk-y2rzeb4v.js} +2 -2
  182. package/web/chunk-yekaz74b.js +1 -0
  183. package/web/{chunk-8nv7q5ac.js → chunk-yppgejg7.js} +15 -15
  184. package/web/chunk-ys2tns0p.js +1 -0
  185. package/web/chunk-z4bp6p32.js +62 -0
  186. package/web/{chunk-p0cjvjdx.js → chunk-z5qn0xev.js} +1 -1
  187. package/web/{chunk-rkjkynm3.js → chunk-zms6mrqk.js} +12 -12
  188. package/web/{chunk-6e38yf3a.js → chunk-zse05v6j.js} +4 -4
  189. package/web/{chunk-cn1xpg3q.js → chunk-zz1qkaar.js} +2 -2
  190. package/web/index.html +1 -1
  191. package/worker.js +1 -1
  192. package/chunk-2gcp3xdc.js +0 -2
  193. package/chunk-320174qe.js +0 -2
  194. package/chunk-dvb5nd2x.js +0 -2
  195. package/chunk-frt9k18g.js +0 -480
  196. package/chunk-ndt6rjt9.js +0 -2
  197. package/chunk-xy2bxwq8.js +0 -2
  198. package/chunk-yzevjkms.js +0 -25
  199. package/chunk-zdyd8hbn.js +0 -2
  200. package/web/chunk-0jfda4jw.js +0 -2
  201. package/web/chunk-2p3fkhy8.js +0 -1
  202. package/web/chunk-3sz5qcwj.js +0 -1
  203. package/web/chunk-433c80pc.js +0 -1
  204. package/web/chunk-48cnmhvd.js +0 -106
  205. package/web/chunk-5r37rwq1.js +0 -4
  206. package/web/chunk-6bwgdvf6.js +0 -1
  207. package/web/chunk-7f1t7z72.js +0 -2
  208. package/web/chunk-7x35g67d.js +0 -78
  209. package/web/chunk-8pzg8qw4.js +0 -1
  210. package/web/chunk-8r0s8tx7.js +0 -1
  211. package/web/chunk-9p5dfvav.js +0 -1
  212. package/web/chunk-9q9w9pay.js +0 -1
  213. package/web/chunk-a3teqvz2.js +0 -39
  214. package/web/chunk-ahztazsg.js +0 -1
  215. package/web/chunk-bd8ftfxn.js +0 -3
  216. package/web/chunk-c03bt2pz.js +0 -1
  217. package/web/chunk-c1ha2xg6.js +0 -8
  218. package/web/chunk-cgng31df.js +0 -1
  219. package/web/chunk-cvd4f51j.js +0 -1
  220. package/web/chunk-cybvxssy.js +0 -1
  221. package/web/chunk-d22wq71s.js +0 -1
  222. package/web/chunk-dynajx8x.js +0 -2
  223. package/web/chunk-f3vv7n52.js +0 -1
  224. package/web/chunk-fmthkpff.js +0 -1
  225. package/web/chunk-fpa81dv7.js +0 -62
  226. package/web/chunk-g17n6asp.js +0 -1
  227. package/web/chunk-g9dzaw9e.js +0 -30
  228. package/web/chunk-gcwhx3av.js +0 -1139
  229. package/web/chunk-gf8vm6b5.js +0 -1
  230. package/web/chunk-gnmeyy4h.js +0 -1
  231. package/web/chunk-hn7mhsbg.js +0 -1
  232. package/web/chunk-jfvxxp5c.js +0 -1
  233. package/web/chunk-k8h8zx6r.js +0 -24
  234. package/web/chunk-m3ajw575.js +0 -1
  235. package/web/chunk-mbwwj216.js +0 -1
  236. package/web/chunk-mz9b5bsa.js +0 -1
  237. package/web/chunk-np33kmn4.js +0 -1
  238. package/web/chunk-nvk8mazs.js +0 -1
  239. package/web/chunk-nyw5ewgv.js +0 -1
  240. package/web/chunk-p56dcqpr.js +0 -1
  241. package/web/chunk-pdn4r8x4.js +0 -1
  242. package/web/chunk-qpt34d8d.js +0 -1
  243. package/web/chunk-qskt3tqa.js +0 -1
  244. package/web/chunk-qt3n897m.js +0 -4
  245. package/web/chunk-r1rt48h9.js +0 -1
  246. package/web/chunk-r7tgd2fm.js +0 -7
  247. package/web/chunk-rznszqmy.js +0 -1
  248. package/web/chunk-s1pefd34.js +0 -1
  249. package/web/chunk-sc29azev.js +0 -1
  250. package/web/chunk-t4jc4nac.js +0 -1
  251. package/web/chunk-t7g366a5.js +0 -24
  252. package/web/chunk-thbqwq6b.js +0 -1
  253. package/web/chunk-v94v68xg.js +0 -36
  254. package/web/chunk-wcphswcx.js +0 -2
  255. package/web/chunk-wwcnvyjh.css +0 -1
  256. package/web/chunk-xce8n339.js +0 -1
  257. package/web/chunk-xfd3b01q.js +0 -1
  258. package/web/chunk-xtss82z2.js +0 -1
@@ -1,10 +1,10 @@
1
- import{t,a,X,u,d,D,x,so,O,l,ye,ve}from"./chunk-3q0v8w45.js";import{ge}from"./chunk-cn0tmwjs.js";import{ue}from"./chunk-svh2gkx8.js";var Ee=new Uint8Array(16);function ee(){return crypto.getRandomValues(Ee)}var S=[];for(let e=0;e<256;++e)S.push((e+256).toString(16).slice(1));function he(e,i=0){return(S[e[i+0]]+S[e[i+1]]+S[e[i+2]]+S[e[i+3]]+"-"+S[e[i+4]]+S[e[i+5]]+"-"+S[e[i+6]]+S[e[i+7]]+"-"+S[e[i+8]]+S[e[i+9]]+"-"+S[e[i+10]]+S[e[i+11]]+S[e[i+12]]+S[e[i+13]]+S[e[i+14]]+S[e[i+15]]).toLowerCase()}function _e(e,i,p){if(!i&&!e&&crypto.randomUUID)return crypto.randomUUID();return Se(e,i,p)}function Se(e,i,p){e=e||{};let h=e.random??e.rng?.()??ee();if(h.length<16)throw Error("Random bytes length must be >= 16");if(h[6]=h[6]&15|64,h[8]=h[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let n=0;n<16;++n)i[p+n]=h[n];return i}return he(h)}var te=_e;var ne=function(){var e=t(function(w,o,r,c){for(r=r||{},c=w.length;c--;r[w[c]]=o);return r},"o"),i=[1,4],p=[1,13],h=[1,12],n=[1,15],f=[1,16],k=[1,20],E=[1,19],N=[6,7,8],U=[1,26],M=[1,24],P=[1,25],m=[6,7,11],V=[1,6,13,15,16,19,22],ie=[1,33],re=[1,34],F=[1,6,7,11,13,15,16,19,22],Y={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(o,r,c,g,b,s,G){var y=s.length-1;switch(b){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",s[y].id),g.addNode(s[y-1].length,s[y].id,s[y].descr,s[y].type);break;case 16:g.getLogger().trace("Icon: ",s[y]),g.decorateNode({icon:s[y]});break;case 17:case 21:g.decorateNode({class:s[y]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",s[y].id),g.addNode(0,s[y].id,s[y].descr,s[y].type);break;case 20:g.decorateNode({icon:s[y]});break;case 25:g.getLogger().trace("node found ..",s[y-2]),this.$={id:s[y-1],descr:s[y-1],type:g.getType(s[y-2],s[y])};break;case 26:this.$={id:s[y],descr:s[y],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",s[y-3]),this.$={id:s[y-3],descr:s[y-1],type:g.getType(s[y-2],s[y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:p,7:[1,10],9:9,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},e(N,[2,3]),{1:[2,2]},e(N,[2,4]),e(N,[2,5]),{1:[2,6],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},{6:p,9:22,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},{6:U,7:M,10:23,11:P},e(m,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:k,22:E}),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,23]),e(m,[2,24]),e(m,[2,26],{19:[1,30]}),{20:[1,31]},{6:U,7:M,10:32,11:P},{1:[2,7],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},e(V,[2,14],{7:ie,11:re}),e(F,[2,8]),e(F,[2,9]),e(F,[2,10]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),{20:[1,35]},{21:[1,36]},e(V,[2,13],{7:ie,11:re}),e(F,[2,11]),e(F,[2,12]),{21:[1,37]},e(m,[2,25]),e(m,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(o,r){if(r.recoverable)this.trace(o);else{var c=Error(o);throw c.hash=r,c}},"parseError"),parse:t(function(o){var r=this,c=[0],g=[],b=[null],s=[],G=this.table,y="",H=0,se=0,oe=0,fe=2,ae=1,me=s.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,q))R.yy[q]=this.yy[q];if(_.setInput(o,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var J=_.yylloc;s.push(J);var ke=_.options&&_.options.ranges;if(typeof R.yy.parseError==="function")this.parseError=R.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function be(T){c.length=c.length-2*T,b.length=b.length-T,s.length=s.length-T}t(be,"popStack");function ce(){var T=g.pop()||_.lex()||ae;if(typeof T!=="number"){if(T instanceof Array)g=T,T=g.pop();T=r.symbols_[T]||T}return T}t(ce,"lex");var L,K,A,v,we,Q,B={},W,I,le,z;while(!0){if(A=c[c.length-1],this.defaultActions[A])v=this.defaultActions[A];else{if(L===null||typeof L>"u")L=ce();v=G[A]&&G[A][L]}if(typeof v>"u"||!v.length||!v[0]){var Z="";z=[];for(W in G[A])if(this.terminals_[W]&&W>fe)z.push("'"+this.terminals_[W]+"'");if(_.showPosition)Z="Parse error on line "+(H+1)+`:
1
+ import{t,a,K,u,d,N,x,ho,O,l,ge,ye}from"./chunk-tfqarvdx.js";import{he}from"./chunk-sc63488q.js";import{ue}from"./chunk-1qh7f5kr.js";var _e=new Uint8Array(16);function ee(){return crypto.getRandomValues(_e)}var S=[];for(let e=0;e<256;++e)S.push((e+256).toString(16).slice(1));function de(e,i=0){return(S[e[i+0]]+S[e[i+1]]+S[e[i+2]]+S[e[i+3]]+"-"+S[e[i+4]]+S[e[i+5]]+"-"+S[e[i+6]]+S[e[i+7]]+"-"+S[e[i+8]]+S[e[i+9]]+"-"+S[e[i+10]]+S[e[i+11]]+S[e[i+12]]+S[e[i+13]]+S[e[i+14]]+S[e[i+15]]).toLowerCase()}function Se(e,i,p){if(!i&&!e&&crypto.randomUUID)return crypto.randomUUID();return xe(e,i,p)}function xe(e,i,p){e=e||{};let h=e.random??e.rng?.()??ee();if(h.length<16)throw Error("Random bytes length must be >= 16");if(h[6]=h[6]&15|64,h[8]=h[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let n=0;n<16;++n)i[p+n]=h[n];return i}return de(h)}var te=Se;var ne=function(){var e=t(function(w,o,r,c){for(r=r||{},c=w.length;c--;r[w[c]]=o);return r},"o"),i=[1,4],p=[1,13],h=[1,12],n=[1,15],f=[1,16],k=[1,20],E=[1,19],L=[6,7,8],U=[1,26],M=[1,24],P=[1,25],m=[6,7,11],V=[1,6,13,15,16,19,22],ie=[1,33],re=[1,34],F=[1,6,7,11,13,15,16,19,22],z={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(o,r,c,g,b,s,G){var y=s.length-1;switch(b){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",s[y].id),g.addNode(s[y-1].length,s[y].id,s[y].descr,s[y].type);break;case 16:g.getLogger().trace("Icon: ",s[y]),g.decorateNode({icon:s[y]});break;case 17:case 21:g.decorateNode({class:s[y]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",s[y].id),g.addNode(0,s[y].id,s[y].descr,s[y].type);break;case 20:g.decorateNode({icon:s[y]});break;case 25:g.getLogger().trace("node found ..",s[y-2]),this.$={id:s[y-1],descr:s[y-1],type:g.getType(s[y-2],s[y])};break;case 26:this.$={id:s[y],descr:s[y],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",s[y-3]),this.$={id:s[y-3],descr:s[y-1],type:g.getType(s[y-2],s[y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:p,7:[1,10],9:9,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},{6:p,9:22,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},{6:U,7:M,10:23,11:P},e(m,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:k,22:E}),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,23]),e(m,[2,24]),e(m,[2,26],{19:[1,30]}),{20:[1,31]},{6:U,7:M,10:32,11:P},{1:[2,7],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:E},e(V,[2,14],{7:ie,11:re}),e(F,[2,8]),e(F,[2,9]),e(F,[2,10]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),{20:[1,35]},{21:[1,36]},e(V,[2,13],{7:ie,11:re}),e(F,[2,11]),e(F,[2,12]),{21:[1,37]},e(m,[2,25]),e(m,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(o,r){if(r.recoverable)this.trace(o);else{var c=Error(o);throw c.hash=r,c}},"parseError"),parse:t(function(o){var r=this,c=[0],g=[],b=[null],s=[],G=this.table,y="",H=0,se=0,oe=0,me=2,ae=1,ke=s.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var Y in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Y))R.yy[Y]=this.yy[Y];if(_.setInput(o,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var q=_.yylloc;s.push(q);var be=_.options&&_.options.ranges;if(typeof R.yy.parseError==="function")this.parseError=R.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ee(T){c.length=c.length-2*T,b.length=b.length-T,s.length=s.length-T}t(Ee,"popStack");function ce(){var T=g.pop()||_.lex()||ae;if(typeof T!=="number"){if(T instanceof Array)g=T,T=g.pop();T=r.symbols_[T]||T}return T}t(ce,"lex");var D,J,A,v,we,Q,B={},W,I,le,X;while(!0){if(A=c[c.length-1],this.defaultActions[A])v=this.defaultActions[A];else{if(D===null||typeof D>"u")D=ce();v=G[A]&&G[A][D]}if(typeof v>"u"||!v.length||!v[0]){var Z="";X=[];for(W in G[A])if(this.terminals_[W]&&W>me)X.push("'"+this.terminals_[W]+"'");if(_.showPosition)Z="Parse error on line "+(H+1)+`:
2
2
  `+_.showPosition()+`
3
- Expecting `+z.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Z="Parse error on line "+(H+1)+": Unexpected "+(L==ae?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(Z,{text:_.match,token:this.terminals_[L]||L,line:_.yylineno,loc:J,expected:z})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+L);switch(v[0]){case 1:if(c.push(L),b.push(_.yytext),s.push(_.yylloc),c.push(v[1]),L=null,!K){if(se=_.yyleng,y=_.yytext,H=_.yylineno,J=_.yylloc,oe>0)oe--}else L=K,K=null;break;case 2:if(I=this.productions_[v[1]][1],B.$=b[b.length-I],B._$={first_line:s[s.length-(I||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(I||1)].first_column,last_column:s[s.length-1].last_column},ke)B._$.range=[s[s.length-(I||1)].range[0],s[s.length-1].range[1]];if(Q=this.performAction.apply(B,[y,se,H,R.yy,v[1],b,s].concat(me)),typeof Q<"u")return Q;if(I)c=c.slice(0,-1*I*2),b=b.slice(0,-1*I),s=s.slice(0,-1*I);c.push(this.productions_[v[1]][0]),b.push(B.$),s.push(B._$),le=G[c[c.length-2]][c[c.length-1]],c.push(le);break;case 3:return!0}}return!0},"parse")},pe=function(){var w={EOF:1,parseError:t(function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw Error(r)},"parseError"),setInput:t(function(o,r){if(this.yy=r||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var r=o.match(/(?:\r\n?|\n).*/g);if(r)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var r=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var g=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-r];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
3
+ Expecting `+X.join(", ")+", got '"+(this.terminals_[D]||D)+"'";else Z="Parse error on line "+(H+1)+": Unexpected "+(D==ae?"end of input":"'"+(this.terminals_[D]||D)+"'");this.parseError(Z,{text:_.match,token:this.terminals_[D]||D,line:_.yylineno,loc:q,expected:X})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+D);switch(v[0]){case 1:if(c.push(D),b.push(_.yytext),s.push(_.yylloc),c.push(v[1]),D=null,!J){if(se=_.yyleng,y=_.yytext,H=_.yylineno,q=_.yylloc,oe>0)oe--}else D=J,J=null;break;case 2:if(I=this.productions_[v[1]][1],B.$=b[b.length-I],B._$={first_line:s[s.length-(I||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(I||1)].first_column,last_column:s[s.length-1].last_column},be)B._$.range=[s[s.length-(I||1)].range[0],s[s.length-1].range[1]];if(Q=this.performAction.apply(B,[y,se,H,R.yy,v[1],b,s].concat(ke)),typeof Q<"u")return Q;if(I)c=c.slice(0,-1*I*2),b=b.slice(0,-1*I),s=s.slice(0,-1*I);c.push(this.productions_[v[1]][0]),b.push(B.$),s.push(B._$),le=G[c[c.length-2]][c[c.length-1]],c.push(le);break;case 3:return!0}}return!0},"parse")},fe=function(){var w={EOF:1,parseError:t(function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw Error(r)},"parseError"),setInput:t(function(o,r){if(this.yy=r||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var r=o.match(/(?:\r\n?|\n).*/g);if(r)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var r=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var g=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-r];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),r=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
5
  `+r+"^"},"showPosition"),test_match:t(function(o,r){var c,g,b;if(this.options.backtrack_lexer){if(b={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)b.yylloc.range=this.yylloc.range.slice(0)}if(g=o[0].match(/(?:\r\n?|\n).*/g),g)this.yylineno+=g.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var s in b)this[s]=b[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,r,c,g;if(!this._more)this.yytext="",this.match="";var b=this._currentRules();for(var s=0;s<b.length;s++)if(c=this._input.match(this.rules[b[s]]),c&&(!r||c[0].length>r[0].length)){if(r=c,g=s,this.options.backtrack_lexer)if(o=this.test_match(c,b[s]),o!==!1)return o;else if(this._backtrack){r=!1;continue}else return!1;else if(!this.options.flex)break}if(r){if(o=this.test_match(r,b[g]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var r=this.next();if(r)return r;else return this.lex()},"lex"),begin:t(function(r){this.conditionStack.push(r)},"begin"),popState:t(function(){var r=this.conditionStack.length-1;if(r>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(r){if(r=this.conditionStack.length-1-Math.abs(r||0),r>=0)return this.conditionStack[r];else return"INITIAL"},"topState"),pushState:t(function(r){this.begin(r)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(r,c,g,b){var s=b;switch(g){case 0:return r.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return r.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:r.getLogger().trace("end icon"),this.popState();break;case 10:return r.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return r.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return r.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),r.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return r.getLogger().trace("Long description:",c.yytext),20;break;case 36:return r.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return w}();Y.lexer=pe;function j(){this.yy={}}return t(j,"Parser"),j.prototype=Y,Y.Parser=j,new j}();ne.parser=ne;var xe=ne,de=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ne=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,p,h){a.info("addNode",e,i,p,h);let n=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,n=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,n=!1;let f=l(),k=f.mindmap?.padding??D.mindmap.padding;switch(h){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:k*=2;break}let E={id:this.count++,nodeId:O(i,f),level:e,descr:O(p,f),type:h,children:[],width:f.mindmap?.maxNodeWidth??D.mindmap.maxNodeWidth,padding:k,isRoot:n},N=this.getParent(e);if(N)N.children.push(E),this.nodes.push(E);else if(n)this.nodes.push(E);else throw Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,i){switch(a.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let i=l(),p=this.nodes[this.nodes.length-1];if(e.icon)p.icon=O(e.icon,i);if(e.class)p.class=O(e.class,i)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i,p=0,h=!1){if(e.level===0)e.section=void 0;else e.section=h?(p-1)%(de-1):i;if(e.children)for(let[n,f]of e.children.entries()){let k=e.level===0?n%(de-1):i;this.assignSections(f,k,p+1,h)}}flattenNodes(e,i){let p=l(),h=["mindmap-node"];if(e.isRoot===!0)h.push("section-root","section--1");else if(e.section!==void 0)h.push(`section-${e.section}`);if(e.class)h.push(e.class);let n=h.join(" "),f=t((E)=>{let U=(p.theme?.toLowerCase()??"").includes("redux");switch(E){case C.CIRCLE:return"mindmapCircle";case C.RECT:return"rect";case C.ROUNDED_RECT:return"rounded";case C.CLOUD:return"cloud";case C.BANG:return"bang";case C.HEXAGON:return"hexagon";case C.DEFAULT:return U?"rounded":"defaultMindmapNode";case C.NO_BORDER:default:return"rect"}},"getShapeFromType"),k={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:f(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:n,cssStyles:[],centerLabel:!0,look:p.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(k),e.children)for(let E of e.children)this.flattenNodes(E,i)}generateEdges(e,i){if(!e.children)return;let p=l();for(let h of e.children){let n="edge";if(h.section!==void 0)n+=` section-edge-${h.section}`;let f=e.level+1;n+=` edge-depth-${f}`;let k={id:`edge_${e.id}_${h.id}`,start:e.id.toString(),end:h.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:p.look,classes:n,depth:e.level,section:h.section};i.push(k),this.generateEdges(h,i)}}getData(){let e=this.getMindmap(),i=l(),h=so().layout!==void 0,n=i;if(!h)n.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:n};a.debug("getData: mindmapRoot",e,i),this.assignSections(e,void 0,0,i.mindmap?.colorBy==="depth");let f=[],k=[];this.flattenNodes(e,f),this.generateEdges(e,k),a.debug(`getData: processed ${f.length} nodes and ${k.length} edges`);let E=new Map;for(let N of f)E.set(N.id,{shape:N.shape,width:N.width,height:N.height,padding:N.padding});return{nodes:f,edges:k,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+te()}}getLogger(){return a}},Le=t(async(e,i,p,h)=>{a.debug(`Rendering mindmap diagram
7
- `+e);let n=h.db,f=n.getData(),k=ge(i,f.config.securityLevel);if(f.type=h.type,f.layoutAlgorithm=ve(f.config.layout,{fallback:"cose-bilkent"}),f.diagramId=i,!n.getMindmap())return;f.nodes.forEach((m)=>{if(m.shape==="rounded")m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15;else if(m.shape==="circle")m.padding=10;else if(m.shape==="rect")m.width=0,m.padding=10;else if(m.shape==="hexagon")m.width=0,m.height=0}),await ye(f,k);let{themeVariables:N}=x(),{useGradient:U,gradientStart:M,gradientStop:P}=N;if(U&&M&&P){let m=k.attr("id"),V=k.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");V.append("stop").attr("offset","0%").attr("stop-color",M).attr("stop-opacity",1),V.append("stop").attr("offset","100%").attr("stop-color",P).attr("stop-opacity",1)}ue(k,f.config.mindmap?.padding??D.mindmap.padding,"mindmapDiagram",f.config.mindmap?.useMaxWidth??D.mindmap.useMaxWidth)},"draw"),De={draw:Le},Te=t((e)=>{let{theme:i,look:p}=e,h="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],X(e["lineColor"+n]))e["lineColor"+n]=u(e["lineColor"+n],20);else e["lineColor"+n]=d(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let f=""+(p==="neo"?Math.max(10-(n-1)*2,2):17-3*n),k=i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:n)];h+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var r=this.next();if(r)return r;else return this.lex()},"lex"),begin:t(function(r){this.conditionStack.push(r)},"begin"),popState:t(function(){var r=this.conditionStack.length-1;if(r>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(r){if(r=this.conditionStack.length-1-Math.abs(r||0),r>=0)return this.conditionStack[r];else return"INITIAL"},"topState"),pushState:t(function(r){this.begin(r)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(r,c,g,b){var s=b;switch(g){case 0:return r.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return r.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:r.getLogger().trace("end icon"),this.popState();break;case 10:return r.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return r.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return r.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),r.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return r.getLogger().trace("Long description:",c.yytext),20;break;case 36:return r.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return w}();z.lexer=fe;function j(){this.yy={}}return t(j,"Parser"),j.prototype=z,z.Parser=j,new j}();ne.parser=ne;var Ne=ne,pe=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Le=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,p,h){a.info("addNode",e,i,p,h);let n=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,n=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,n=!1;let f=l(),k=f.mindmap?.padding??N.mindmap.padding;switch(h){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:k*=2;break}let E={id:this.count++,nodeId:O(i,f),level:e,descr:O(p,f),type:h,children:[],width:f.mindmap?.maxNodeWidth??N.mindmap.maxNodeWidth,padding:k,isRoot:n},L=this.getParent(e);if(L)L.children.push(E),this.nodes.push(E);else if(n)this.nodes.push(E);else throw Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,i){switch(a.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let i=l(),p=this.nodes[this.nodes.length-1];if(e.icon)p.icon=O(e.icon,i);if(e.class)p.class=O(e.class,i)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i,p=0,h=!1){if(e.level===0)e.section=void 0;else e.section=h?(p-1)%(pe-1):i;if(e.children)for(let[n,f]of e.children.entries()){let k=e.level===0?n%(pe-1):i;this.assignSections(f,k,p+1,h)}}flattenNodes(e,i){let p=l(),h=["mindmap-node"];if(e.isRoot===!0)h.push("section-root","section--1");else if(e.section!==void 0)h.push(`section-${e.section}`);if(e.class)h.push(e.class);let n=h.join(" "),f=t((E)=>{let U=(p.theme?.toLowerCase()??"").includes("redux");switch(E){case C.CIRCLE:return"mindmapCircle";case C.RECT:return"rect";case C.ROUNDED_RECT:return"rounded";case C.CLOUD:return"cloud";case C.BANG:return"bang";case C.HEXAGON:return"hexagon";case C.DEFAULT:return U?"rounded":"defaultMindmapNode";case C.NO_BORDER:default:return"rect"}},"getShapeFromType"),k={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:f(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:n,cssStyles:[],centerLabel:!0,look:p.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(k),e.children)for(let E of e.children)this.flattenNodes(E,i)}generateEdges(e,i){if(!e.children)return;let p=l();for(let h of e.children){let n="edge";if(h.section!==void 0)n+=` section-edge-${h.section}`;let f=e.level+1;n+=` edge-depth-${f}`;let k={id:`edge_${e.id}_${h.id}`,start:e.id.toString(),end:h.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:p.look,classes:n,depth:e.level,section:h.section};i.push(k),this.generateEdges(h,i)}}getData(){let e=this.getMindmap(),i=l(),h=ho().layout!==void 0,n=i;if(!h)n.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:n};a.debug("getData: mindmapRoot",e,i),this.assignSections(e,void 0,0,i.mindmap?.colorBy==="depth");let f=[],k=[];this.flattenNodes(e,f),this.generateEdges(e,k),a.debug(`getData: processed ${f.length} nodes and ${k.length} edges`);let E=new Map;for(let L of f)E.set(L.id,{shape:L.shape,width:L.width,height:L.height,padding:L.padding});return{nodes:f,edges:k,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+te()}}getLogger(){return a}},De=t(async(e,i,p,h)=>{a.debug(`Rendering mindmap diagram
7
+ `+e);let n=h.db,f=n.getData(),k=he(i,f.config.securityLevel);if(f.type=h.type,f.layoutAlgorithm=ye(f.config.layout,{fallback:"cose-bilkent"}),f.diagramId=i,!n.getMindmap())return;f.nodes.forEach((m)=>{if(m.shape==="rounded")m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15;else if(m.shape==="circle")m.padding=10;else if(m.shape==="rect")m.width=0,m.padding=10;else if(m.shape==="hexagon")m.width=0,m.height=0}),await ge(f,k);let{themeVariables:L}=x(),{useGradient:U,gradientStart:M,gradientStop:P}=L;if(U&&M&&P){let m=k.attr("id"),V=k.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");V.append("stop").attr("offset","0%").attr("stop-color",M).attr("stop-opacity",1),V.append("stop").attr("offset","100%").attr("stop-color",P).attr("stop-opacity",1)}ue(k,f.config.mindmap?.padding??N.mindmap.padding,"mindmapDiagram",f.config.mindmap?.useMaxWidth??N.mindmap.useMaxWidth)},"draw"),ve={draw:De},Te=t((e)=>{let{theme:i,look:p}=e,h="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],K(e["lineColor"+n]))e["lineColor"+n]=u(e["lineColor"+n],20);else e["lineColor"+n]=d(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let f=""+(p==="neo"?Math.max(10-(n-1)*2,2):17-3*n),k=i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:n)];h+=`
8
8
  .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
9
  fill: ${e["cScale"+n]};
10
10
  }
@@ -95,4 +95,4 @@ Expecting `+z.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Z="Parse err
95
95
  color: ${h};
96
96
  }
97
97
  ${e.useGradient&&p&&e.mainBkg?Oe(e.THEME_COLOR_LIMIT,p,e.mainBkg):""}
98
- `},"getStyles"),Ce=Ie,It={get db(){return new Ne},renderer:De,parser:xe,styles:Ce};export{It as diagram};
98
+ `},"getStyles"),Ce=Ie,It={get db(){return new Le},renderer:ve,parser:Ne,styles:Ce};export{It as diagram};
@@ -1,7 +1,7 @@
1
- import{t,a,ke,D,O,B,C,S,E,T,A,L,R,l,p}from"./chunk-3q0v8w45.js";import"./chunk-fe31sv6t.js";import{kt}from"./chunk-cn1xpg3q.js";var Qt=function(){var e=t(function(st,o,c,f){for(c=c||{},f=st.length;f--;c[st[f]]=o);return c},"o"),r=[1,3],m=[1,4],y=[1,5],h=[1,6],g=[1,7],V=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],v=[2,36],F=[1,37],P=[1,36],q=[1,38],k=[1,35],_=[1,43],b=[1,41],I=[1,45],_t=[1,14],At=[1,23],Ft=[1,18],Pt=[1,19],mt=[1,20],Vt=[1,21],qt=[1,22],n=[1,24],Ht=[1,25],Xt=[1,26],Mt=[1,27],Yt=[1,28],jt=[1,29],tt=[1,32],et=[1,33],w=[1,34],N=[1,39],W=[1,40],U=[1,42],Q=[1,44],at=[1,63],nt=[1,62],H=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Gt=[1,66],Kt=[1,67],Zt=[1,68],Jt=[1,69],$t=[1,70],te=[1,71],ee=[1,72],ie=[1,73],ae=[1,74],ne=[1,75],re=[1,76],se=[1,77],G=[4,5,6,7,8,9,10,11,12,13,14,15,18],ht=[1,91],ct=[1,92],dt=[1,93],ut=[1,100],xt=[1,94],ft=[1,97],gt=[1,95],pt=[1,96],yt=[1,98],bt=[1,99],It=[1,103],oe=[10,55,56,57],K=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],wt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(o,c,f,x,z,i,St){var s=i.length-1;switch(z){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],x.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:x.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:x.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:x.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:x.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:x.setXAxisLeftText(i[s-2]),x.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",x.setXAxisLeftText(i[s-1]);break;case 53:x.setXAxisLeftText(i[s]);break;case 54:x.setYAxisBottomText(i[s-2]),x.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",x.setYAxisBottomText(i[s-1]);break;case 56:x.setYAxisBottomText(i[s]);break;case 57:x.setQuadrant1Text(i[s]);break;case 58:x.setQuadrant2Text(i[s]);break;case 59:x.setQuadrant3Text(i[s]);break;case 60:x.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:r,26:1,27:2,28:m,55:y,56:h,57:g},{1:[3]},{18:r,26:8,27:2,28:m,55:y,56:h,57:g},{18:r,26:9,27:2,28:m,55:y,56:h,57:g},e(V,[2,33],{29:10}),e(d,[2,61]),e(d,[2,62]),e(d,[2,63]),{1:[2,30]},{1:[2,31]},e(u,v,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:F,5:P,10:q,12:k,13:_,14:b,15:I,18:_t,25:At,35:Ft,37:Pt,39:mt,41:Vt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q}),e(V,[2,34]),{27:46,55:y,56:h,57:g},e(u,[2,37]),e(u,v,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:F,5:P,10:q,12:k,13:_,14:b,15:I,18:_t,25:At,35:Ft,37:Pt,39:mt,41:Vt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(u,[2,45]),e(u,[2,46]),{18:[1,51]},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:52,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:53,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:54,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:55,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:56,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,10:q,12:k,13:_,14:b,15:I,43:57,58:31,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q},{4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,44:[1,58],47:[1,59],58:61,59:60,63:w,64:N,65:W,66:U,67:Q},e(H,[2,64]),e(H,[2,66]),e(H,[2,67]),e(H,[2,70]),e(H,[2,71]),e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(V,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:65,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,21:64},e(u,[2,53],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,78],63:w,64:N,65:W,66:U,67:Q}),e(u,[2,56],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,79],63:w,64:N,65:W,66:U,67:Q}),e(u,[2,57],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,58],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,59],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,60],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),{45:[1,80]},{44:[1,81]},e(H,[2,65]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),{3:83,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,18:[1,82]},e(G,[2,23]),e(G,[2,1]),e(G,[2,2]),e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),e(G,[2,9]),e(G,[2,10]),e(G,[2,11]),e(G,[2,12]),e(u,[2,52],{58:31,43:84,4:F,5:P,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,55],{58:31,43:85,4:F,5:P,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:N,65:W,66:U,67:Q}),{46:[1,86]},{45:[1,87]},{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:89,23:88},e(G,[2,24]),e(u,[2,51],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,54],{59:60,58:61,4:F,5:P,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:N,65:W,66:U,67:Q}),e(u,[2,47],{22:89,16:90,23:101,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{46:[1,102]},e(u,[2,29],{10:It}),e(oe,[2,27],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),e(K,[2,25]),e(K,[2,13]),e(K,[2,14]),e(K,[2,15]),e(K,[2,16]),e(K,[2,17]),e(K,[2,18]),e(K,[2,19]),e(K,[2,20]),e(K,[2,21]),e(K,[2,22]),e(u,[2,49],{10:It}),e(u,[2,48],{22:89,16:90,23:105,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:106},e(K,[2,26]),e(u,[2,50],{10:It}),e(oe,[2,28],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(o,c){if(c.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=c,f}},"parseError"),parse:t(function(o){var c=this,f=[0],x=[],z=[null],i=[],St=this.table,s="",Ct=0,le=0,he=0,Le=2,ce=1,Ee=i.slice.call(arguments,1),X=Object.create(this.lexer),ot={yy:{}};for(var Bt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Bt))ot.yy[Bt]=this.yy[Bt];if(X.setInput(o,ot.yy),ot.yy.lexer=X,ot.yy.parser=this,typeof X.yylloc>"u")X.yylloc={};var Rt=X.yylloc;i.push(Rt);var De=X.options&&X.options.ranges;if(typeof ot.yy.parseError==="function")this.parseError=ot.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ze(J){f.length=f.length-2*J,z.length=z.length-J,i.length=i.length-J}t(ze,"popStack");function de(){var J=x.pop()||X.lex()||ce;if(typeof J!=="number"){if(J instanceof Array)x=J,J=x.pop();J=c.symbols_[J]||J}return J}t(de,"lex");var Y,Nt,lt,Z,We,Wt,Tt={},Lt,rt,ue,Et;while(!0){if(lt=f[f.length-1],this.defaultActions[lt])Z=this.defaultActions[lt];else{if(Y===null||typeof Y>"u")Y=de();Z=St[lt]&&St[lt][Y]}if(typeof Z>"u"||!Z.length||!Z[0]){var Ut="";Et=[];for(Lt in St[lt])if(this.terminals_[Lt]&&Lt>Le)Et.push("'"+this.terminals_[Lt]+"'");if(X.showPosition)Ut="Parse error on line "+(Ct+1)+`:
1
+ import{t,a,ke,N,O,F,C,S,E,T,A,L,R,l,p}from"./chunk-tfqarvdx.js";import"./chunk-9yfftz38.js";import{kt}from"./chunk-zz1qkaar.js";var Qt=function(){var e=t(function(st,o,c,f){for(c=c||{},f=st.length;f--;c[st[f]]=o);return c},"o"),r=[1,3],m=[1,4],y=[1,5],h=[1,6],g=[1,7],V=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],D=[2,36],P=[1,37],v=[1,36],q=[1,38],k=[1,35],_=[1,43],b=[1,41],I=[1,45],_t=[1,14],At=[1,23],Ft=[1,18],Pt=[1,19],mt=[1,20],Vt=[1,21],qt=[1,22],n=[1,24],Ht=[1,25],Xt=[1,26],Mt=[1,27],Yt=[1,28],jt=[1,29],tt=[1,32],et=[1,33],w=[1,34],B=[1,39],W=[1,40],U=[1,42],Q=[1,44],at=[1,63],nt=[1,62],H=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Gt=[1,66],Kt=[1,67],Zt=[1,68],Jt=[1,69],$t=[1,70],te=[1,71],ee=[1,72],ie=[1,73],ae=[1,74],ne=[1,75],re=[1,76],se=[1,77],G=[4,5,6,7,8,9,10,11,12,13,14,15,18],ht=[1,91],ct=[1,92],dt=[1,93],ut=[1,100],xt=[1,94],ft=[1,97],gt=[1,95],pt=[1,96],yt=[1,98],bt=[1,99],It=[1,103],oe=[10,55,56,57],K=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],wt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(o,c,f,x,z,i,St){var s=i.length-1;switch(z){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],x.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:x.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:x.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:x.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:x.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:x.setXAxisLeftText(i[s-2]),x.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",x.setXAxisLeftText(i[s-1]);break;case 53:x.setXAxisLeftText(i[s]);break;case 54:x.setYAxisBottomText(i[s-2]),x.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",x.setYAxisBottomText(i[s-1]);break;case 56:x.setYAxisBottomText(i[s]);break;case 57:x.setQuadrant1Text(i[s]);break;case 58:x.setQuadrant2Text(i[s]);break;case 59:x.setQuadrant3Text(i[s]);break;case 60:x.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:r,26:1,27:2,28:m,55:y,56:h,57:g},{1:[3]},{18:r,26:8,27:2,28:m,55:y,56:h,57:g},{18:r,26:9,27:2,28:m,55:y,56:h,57:g},e(V,[2,33],{29:10}),e(d,[2,61]),e(d,[2,62]),e(d,[2,63]),{1:[2,30]},{1:[2,31]},e(u,D,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:P,5:v,10:q,12:k,13:_,14:b,15:I,18:_t,25:At,35:Ft,37:Pt,39:mt,41:Vt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(V,[2,34]),{27:46,55:y,56:h,57:g},e(u,[2,37]),e(u,D,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:P,5:v,10:q,12:k,13:_,14:b,15:I,18:_t,25:At,35:Ft,37:Pt,39:mt,41:Vt,42:qt,48:n,50:Ht,51:Xt,52:Mt,53:Yt,54:jt,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(u,[2,45]),e(u,[2,46]),{18:[1,51]},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:52,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:53,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:54,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:55,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:56,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,10:q,12:k,13:_,14:b,15:I,43:57,58:31,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q},{4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,44:[1,58],47:[1,59],58:61,59:60,63:w,64:B,65:W,66:U,67:Q},e(H,[2,64]),e(H,[2,66]),e(H,[2,67]),e(H,[2,70]),e(H,[2,71]),e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(V,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:65,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,21:64},e(u,[2,53],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,78],63:w,64:B,65:W,66:U,67:Q}),e(u,[2,56],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,49:[1,79],63:w,64:B,65:W,66:U,67:Q}),e(u,[2,57],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,58],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,59],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,60],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),{45:[1,80]},{44:[1,81]},e(H,[2,65]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),{3:83,4:Gt,5:Kt,6:Zt,7:Jt,8:$t,9:te,10:ee,11:ie,12:ae,13:ne,14:re,15:se,18:[1,82]},e(G,[2,23]),e(G,[2,1]),e(G,[2,2]),e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),e(G,[2,9]),e(G,[2,10]),e(G,[2,11]),e(G,[2,12]),e(u,[2,52],{58:31,43:84,4:P,5:v,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,55],{58:31,43:85,4:P,5:v,10:q,12:k,13:_,14:b,15:I,60:tt,61:et,63:w,64:B,65:W,66:U,67:Q}),{46:[1,86]},{45:[1,87]},{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:89,23:88},e(G,[2,24]),e(u,[2,51],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,54],{59:60,58:61,4:P,5:v,8:at,10:q,12:k,13:_,14:b,15:I,18:nt,63:w,64:B,65:W,66:U,67:Q}),e(u,[2,47],{22:89,16:90,23:101,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{46:[1,102]},e(u,[2,29],{10:It}),e(oe,[2,27],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),e(K,[2,25]),e(K,[2,13]),e(K,[2,14]),e(K,[2,15]),e(K,[2,16]),e(K,[2,17]),e(K,[2,18]),e(K,[2,19]),e(K,[2,20]),e(K,[2,21]),e(K,[2,22]),e(u,[2,49],{10:It}),e(u,[2,48],{22:89,16:90,23:105,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:106},e(K,[2,26]),e(u,[2,50],{10:It}),e(oe,[2,28],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(o,c){if(c.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=c,f}},"parseError"),parse:t(function(o){var c=this,f=[0],x=[],z=[null],i=[],St=this.table,s="",Ct=0,le=0,he=0,Le=2,ce=1,Ee=i.slice.call(arguments,1),X=Object.create(this.lexer),ot={yy:{}};for(var Bt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Bt))ot.yy[Bt]=this.yy[Bt];if(X.setInput(o,ot.yy),ot.yy.lexer=X,ot.yy.parser=this,typeof X.yylloc>"u")X.yylloc={};var Rt=X.yylloc;i.push(Rt);var De=X.options&&X.options.ranges;if(typeof ot.yy.parseError==="function")this.parseError=ot.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ze(J){f.length=f.length-2*J,z.length=z.length-J,i.length=i.length-J}t(ze,"popStack");function de(){var J=x.pop()||X.lex()||ce;if(typeof J!=="number"){if(J instanceof Array)x=J,J=x.pop();J=c.symbols_[J]||J}return J}t(de,"lex");var Y,Nt,lt,Z,We,Wt,Tt={},Lt,rt,ue,Et;while(!0){if(lt=f[f.length-1],this.defaultActions[lt])Z=this.defaultActions[lt];else{if(Y===null||typeof Y>"u")Y=de();Z=St[lt]&&St[lt][Y]}if(typeof Z>"u"||!Z.length||!Z[0]){var Ut="";Et=[];for(Lt in St[lt])if(this.terminals_[Lt]&&Lt>Le)Et.push("'"+this.terminals_[Lt]+"'");if(X.showPosition)Ut="Parse error on line "+(Ct+1)+`:
2
2
  `+X.showPosition()+`
3
3
  Expecting `+Et.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'";else Ut="Parse error on line "+(Ct+1)+": Unexpected "+(Y==ce?"end of input":"'"+(this.terminals_[Y]||Y)+"'");this.parseError(Ut,{text:X.match,token:this.terminals_[Y]||Y,line:X.yylineno,loc:Rt,expected:Et})}if(Z[0]instanceof Array&&Z.length>1)throw Error("Parse Error: multiple actions possible at state: "+lt+", token: "+Y);switch(Z[0]){case 1:if(f.push(Y),z.push(X.yytext),i.push(X.yylloc),f.push(Z[1]),Y=null,!Nt){if(le=X.yyleng,s=X.yytext,Ct=X.yylineno,Rt=X.yylloc,he>0)he--}else Y=Nt,Nt=null;break;case 2:if(rt=this.productions_[Z[1]][1],Tt.$=z[z.length-rt],Tt._$={first_line:i[i.length-(rt||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(rt||1)].first_column,last_column:i[i.length-1].last_column},De)Tt._$.range=[i[i.length-(rt||1)].range[0],i[i.length-1].range[1]];if(Wt=this.performAction.apply(Tt,[s,le,Ct,ot.yy,Z[1],z,i].concat(Ee)),typeof Wt<"u")return Wt;if(rt)f=f.slice(0,-1*rt*2),z=z.slice(0,-1*rt),i=i.slice(0,-1*rt);f.push(this.productions_[Z[1]][0]),z.push(Tt.$),i.push(Tt._$),ue=St[f[f.length-2]][f[f.length-1]],f.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var st={EOF:1,parseError:t(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw Error(c)},"parseError"),setInput:t(function(o,c){if(this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var c=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[z[0],z[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),c=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
5
  `+c+"^"},"showPosition"),test_match:t(function(o,c){var f,x,z;if(this.options.backtrack_lexer){if(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)z.yylloc.range=this.yylloc.range.slice(0)}if(x=o[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],f=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var i in z)this[i]=z[i];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,c,f,x;if(!this._more)this.yytext="",this.match="";var z=this._currentRules();for(var i=0;i<z.length;i++)if(f=this._input.match(this.rules[z[i]]),f&&(!c||f[0].length>c[0].length)){if(c=f,x=i,this.options.backtrack_lexer)if(o=this.test_match(f,z[i]),o!==!1)return o;else if(this._backtrack){c=!1;continue}else return!1;else if(!this.options.flex)break}if(c){if(o=this.test_match(c,z[x]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,f,x,z){var i=z;switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return st}();wt.lexer=Ce;function vt(){this.yy={}}return t(vt,"Parser"),vt.prototype=wt,wt.Parser=vt,new vt}();Qt.parser=Qt;var Ve=Qt,j=ke(),Ie=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:D.quadrantChart?.chartWidth||500,chartWidth:D.quadrantChart?.chartHeight||500,titlePadding:D.quadrantChart?.titlePadding||10,titleFontSize:D.quadrantChart?.titleFontSize||20,quadrantPadding:D.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:D.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:D.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:D.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:D.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:D.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:D.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:D.quadrantChart?.pointTextPadding||5,pointLabelFontSize:D.quadrantChart?.pointLabelFontSize||12,pointRadius:D.quadrantChart?.pointRadius||5,xAxisPosition:D.quadrantChart?.xAxisPosition||"top",yAxisPosition:D.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:D.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:D.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:j.quadrant1Fill,quadrant2Fill:j.quadrant2Fill,quadrant3Fill:j.quadrant3Fill,quadrant4Fill:j.quadrant4Fill,quadrant1TextFill:j.quadrant1TextFill,quadrant2TextFill:j.quadrant2TextFill,quadrant3TextFill:j.quadrant3TextFill,quadrant4TextFill:j.quadrant4TextFill,quadrantPointFill:j.quadrantPointFill,quadrantPointTextFill:j.quadrantPointTextFill,quadrantXAxisTextFill:j.quadrantXAxisTextFill,quadrantYAxisTextFill:j.quadrantYAxisTextFill,quadrantTitleFill:j.quadrantTitleFill,quadrantInternalBorderStrokeFill:j.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:j.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){a.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){a.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,m,y){let h=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,g={top:e==="top"&&r?h:0,bottom:e==="bottom"&&r?h:0},V=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&m?V:0,right:this.config.yAxisPosition==="right"&&m?V:0},u=this.config.titleFontSize+this.config.titlePadding*2,v={top:y?u:0},F=this.config.quadrantPadding+d.left,P=this.config.quadrantPadding+g.top+v.top,q=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,k=this.config.chartHeight-this.config.quadrantPadding*2-g.top-g.bottom-v.top,_=q/2,b=k/2;return{xAxisSpace:g,yAxisSpace:d,titleSpace:v,quadrantSpace:{quadrantLeft:F,quadrantTop:P,quadrantWidth:q,quadrantHalfWidth:_,quadrantHeight:k,quadrantHalfHeight:b}}}getAxisLabels(e,r,m,y){let{quadrantSpace:h,titleSpace:g}=y,{quadrantHalfHeight:V,quadrantHeight:d,quadrantLeft:u,quadrantHalfWidth:v,quadrantTop:F,quadrantWidth:P}=h,q=Boolean(this.data.xAxisRightText),k=Boolean(this.data.yAxisTopText),_=[];if(this.data.xAxisLeftText&&r)_.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(q?v/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+F+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)_.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+v+(q?v/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+F+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&m)_.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+P+this.config.quadrantPadding,y:F+d-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&m)_.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+P+this.config.quadrantPadding,y:F+V-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});return _}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:m,quadrantLeft:y,quadrantHalfWidth:h,quadrantTop:g}=r,V=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g,width:h,height:m,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g,width:h,height:m,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant4Fill}];for(let d of V)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return V}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:m,quadrantLeft:y,quadrantTop:h,quadrantWidth:g}=r,V=kt().domain([0,1]).range([y,g+y]),d=kt().domain([0,1]).range([m+h,h]);return this.data.points.map((v)=>{let F=this.classes.get(v.className);if(F)v={...F,...v};return{x:V(v.x),y:d(v.y),fill:v.color??this.themeConfig.quadrantPointFill,radius:v.radius??this.config.pointRadius,text:{text:v.text,fill:this.themeConfig.quadrantPointTextFill,x:V(v.x),y:d(v.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:v.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:v.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:m}=e,{quadrantHalfHeight:y,quadrantHeight:h,quadrantLeft:g,quadrantHalfWidth:V,quadrantTop:d,quadrantWidth:u}=m;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d,x2:g+u+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g+u,y1:d+r,x2:g+u,y2:d+h-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d+h,x2:g+u+r,y2:d+h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g,y1:d+r,x2:g,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+V,y1:d+r,x2:g+V,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+r,y1:d+y,x2:g+u-r,y2:d+y}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),m=this.config.showTitle&&!!this.data.titleText,y=this.data.points.length>0?"bottom":this.config.xAxisPosition,h=this.calculateSpace(y,e,r,m);return{points:this.getQuadrantPoints(h),quadrants:this.getQuadrants(h),axisLabels:this.getAxisLabels(y,e,r,h),borderLines:this.getBorders(h),title:this.getTitle(m)}}},Dt=class extends Error{static{t(this,"InvalidStyleError")}constructor(e,r,m){super(`value for ${e} ${r} is invalid, please use a valid ${m}`);this.name="InvalidStyleError"}};function Ot(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(Ot,"validateHexCode");function xe(e){return!/^\d+$/.test(e)}t(xe,"validateNumber");function fe(e){return!/^\d+px$/.test(e)}t(fe,"validateSizeInPixels");function it(e){return O(e.trim(),l())}t(it,"textSanitizer");var M=new Ie;function ge(e){M.setData({quadrant1Text:it(e.text)})}t(ge,"setQuadrant1Text");function pe(e){M.setData({quadrant2Text:it(e.text)})}t(pe,"setQuadrant2Text");function ye(e){M.setData({quadrant3Text:it(e.text)})}t(ye,"setQuadrant3Text");function be(e){M.setData({quadrant4Text:it(e.text)})}t(be,"setQuadrant4Text");function Te(e){M.setData({xAxisLeftText:it(e.text)})}t(Te,"setXAxisLeftText");function me(e){M.setData({xAxisRightText:it(e.text)})}t(me,"setXAxisRightText");function qe(e){M.setData({yAxisTopText:it(e.text)})}t(qe,"setYAxisTopText");function Se(e){M.setData({yAxisBottomText:it(e.text)})}t(Se,"setYAxisBottomText");function zt(e){let r={};for(let m of e){let[y,h]=m.trim().split(/\s*:\s*/);if(y==="radius"){if(xe(h))throw new Dt(y,h,"number");r.radius=parseInt(h)}else if(y==="color"){if(Ot(h))throw new Dt(y,h,"hex code");r.color=h}else if(y==="stroke-color"){if(Ot(h))throw new Dt(y,h,"hex code");r.strokeColor=h}else if(y==="stroke-width"){if(fe(h))throw new Dt(y,h,"number of pixels (eg. 10px)");r.strokeWidth=h}else throw Error(`style named ${y} is not supported.`)}return r}t(zt,"parseStyles");function _e(e,r,m,y,h){let g=zt(h);M.addPoints([{x:m,y,text:it(e.text),className:r,...g}])}t(_e,"addPoint");function Ae(e,r){M.addClass(e,zt(r))}t(Ae,"addClass");function Fe(e){M.setConfig({chartWidth:e})}t(Fe,"setWidth");function Pe(e){M.setConfig({chartHeight:e})}t(Pe,"setHeight");function ve(){let e=l(),{themeVariables:r,quadrantChart:m}=e;if(m)M.setConfig(m);return M.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),M.setData({titleText:R()}),M.build()}t(ve,"getQuadrantData");var we=t(function(){M.clear(),C()},"clear"),Be={setWidth:Fe,setHeight:Pe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:Se,parseStyles:zt,addPoint:_e,addClass:Ae,getQuadrantData:ve,clear:we,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,getAccDescription:A,setAccDescription:T},Re=t((e,r,m,y)=>{function h(n){return n==="top"?"hanging":"middle"}t(h,"getDominantBaseLine");function g(n){return n==="left"?"start":"middle"}t(g,"getTextAnchor");function V(n){return`translate(${n.x}, ${n.y}) rotate(${n.rotation||0})`}t(V,"getTransformation");let d=l();a.debug(`Rendering quadrant chart
7
- `+e);let u=d.securityLevel,v;if(u==="sandbox")v=p("#i"+r);let P=(u==="sandbox"?p(v.nodes()[0].contentDocument.body):p("body")).select(`[id="${r}"]`),q=P.append("g").attr("class","main"),k=d.quadrantChart?.chartWidth??500,_=d.quadrantChart?.chartHeight??500;B(P,_,k,d.quadrantChart?.useMaxWidth??!0),P.attr("viewBox","0 0 "+k+" "+_),y.db.setHeight(_),y.db.setWidth(k);let b=y.db.getQuadrantData(),I=q.append("g").attr("class","quadrants"),_t=q.append("g").attr("class","border"),At=q.append("g").attr("class","data-points"),Ft=q.append("g").attr("class","labels"),Pt=q.append("g").attr("class","title");if(b.title)Pt.append("text").attr("x",0).attr("y",0).attr("fill",b.title.fill).attr("font-size",b.title.fontSize).attr("dominant-baseline",h(b.title.horizontalPos)).attr("text-anchor",g(b.title.verticalPos)).attr("transform",V(b.title)).text(b.title.text);if(b.borderLines)_t.selectAll("line").data(b.borderLines).enter().append("line").attr("x1",(n)=>n.x1).attr("y1",(n)=>n.y1).attr("x2",(n)=>n.x2).attr("y2",(n)=>n.y2).style("stroke",(n)=>n.strokeFill).style("stroke-width",(n)=>n.strokeWidth);let mt=I.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class","quadrant");mt.append("rect").attr("x",(n)=>n.x).attr("y",(n)=>n.y).attr("width",(n)=>n.width).attr("height",(n)=>n.height).attr("fill",(n)=>n.fill),mt.append("text").attr("x",0).attr("y",0).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text)).text((n)=>n.text.text),Ft.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((n)=>n.text).attr("fill",(n)=>n.fill).attr("font-size",(n)=>n.fontSize).attr("dominant-baseline",(n)=>h(n.horizontalPos)).attr("text-anchor",(n)=>g(n.verticalPos)).attr("transform",(n)=>V(n));let qt=At.selectAll("g.data-point").data(b.points).enter().append("g").attr("class","data-point");qt.append("circle").attr("cx",(n)=>n.x).attr("cy",(n)=>n.y).attr("r",(n)=>n.radius).attr("fill",(n)=>n.fill).attr("stroke",(n)=>n.strokeColor).attr("stroke-width",(n)=>n.strokeWidth),qt.append("text").attr("x",0).attr("y",0).text((n)=>n.text.text).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text))},"draw"),Ne={draw:Re},Me={parser:Ve,db:Be,renderer:Ne,styles:t(()=>"","styles")};export{Me as diagram};
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,f,x,z){var i=z;switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return st}();wt.lexer=Ce;function vt(){this.yy={}}return t(vt,"Parser"),vt.prototype=wt,wt.Parser=vt,new vt}();Qt.parser=Qt;var Ve=Qt,j=ke(),Ie=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:N.quadrantChart?.chartWidth||500,chartWidth:N.quadrantChart?.chartHeight||500,titlePadding:N.quadrantChart?.titlePadding||10,titleFontSize:N.quadrantChart?.titleFontSize||20,quadrantPadding:N.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:N.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:N.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:N.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:N.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:N.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:N.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:N.quadrantChart?.pointTextPadding||5,pointLabelFontSize:N.quadrantChart?.pointLabelFontSize||12,pointRadius:N.quadrantChart?.pointRadius||5,xAxisPosition:N.quadrantChart?.xAxisPosition||"top",yAxisPosition:N.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:N.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:N.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:j.quadrant1Fill,quadrant2Fill:j.quadrant2Fill,quadrant3Fill:j.quadrant3Fill,quadrant4Fill:j.quadrant4Fill,quadrant1TextFill:j.quadrant1TextFill,quadrant2TextFill:j.quadrant2TextFill,quadrant3TextFill:j.quadrant3TextFill,quadrant4TextFill:j.quadrant4TextFill,quadrantPointFill:j.quadrantPointFill,quadrantPointTextFill:j.quadrantPointTextFill,quadrantXAxisTextFill:j.quadrantXAxisTextFill,quadrantYAxisTextFill:j.quadrantYAxisTextFill,quadrantTitleFill:j.quadrantTitleFill,quadrantInternalBorderStrokeFill:j.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:j.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){a.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){a.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,m,y){let h=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,g={top:e==="top"&&r?h:0,bottom:e==="bottom"&&r?h:0},V=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&m?V:0,right:this.config.yAxisPosition==="right"&&m?V:0},u=this.config.titleFontSize+this.config.titlePadding*2,D={top:y?u:0},P=this.config.quadrantPadding+d.left,v=this.config.quadrantPadding+g.top+D.top,q=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,k=this.config.chartHeight-this.config.quadrantPadding*2-g.top-g.bottom-D.top,_=q/2,b=k/2;return{xAxisSpace:g,yAxisSpace:d,titleSpace:D,quadrantSpace:{quadrantLeft:P,quadrantTop:v,quadrantWidth:q,quadrantHalfWidth:_,quadrantHeight:k,quadrantHalfHeight:b}}}getAxisLabels(e,r,m,y){let{quadrantSpace:h,titleSpace:g}=y,{quadrantHalfHeight:V,quadrantHeight:d,quadrantLeft:u,quadrantHalfWidth:D,quadrantTop:P,quadrantWidth:v}=h,q=Boolean(this.data.xAxisRightText),k=Boolean(this.data.yAxisTopText),_=[];if(this.data.xAxisLeftText&&r)_.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)_.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+D+(q?D/2:0),y:e==="top"?this.config.xAxisLabelPadding+g.top:this.config.xAxisLabelPadding+P+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&m)_.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+d-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&m)_.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+v+this.config.quadrantPadding,y:P+V-(k?V/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});return _}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:m,quadrantLeft:y,quadrantHalfWidth:h,quadrantTop:g}=r,V=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g,width:h,height:m,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g,width:h,height:m,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+h,y:g+m,width:h,height:m,fill:this.themeConfig.quadrant4Fill}];for(let d of V)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return V}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:m,quadrantLeft:y,quadrantTop:h,quadrantWidth:g}=r,V=kt().domain([0,1]).range([y,g+y]),d=kt().domain([0,1]).range([m+h,h]);return this.data.points.map((D)=>{let P=this.classes.get(D.className);if(P)D={...P,...D};return{x:V(D.x),y:d(D.y),fill:D.color??this.themeConfig.quadrantPointFill,radius:D.radius??this.config.pointRadius,text:{text:D.text,fill:this.themeConfig.quadrantPointTextFill,x:V(D.x),y:d(D.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:D.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:D.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:m}=e,{quadrantHalfHeight:y,quadrantHeight:h,quadrantLeft:g,quadrantHalfWidth:V,quadrantTop:d,quadrantWidth:u}=m;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d,x2:g+u+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g+u,y1:d+r,x2:g+u,y2:d+h-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g-r,y1:d+h,x2:g+u+r,y2:d+h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:g,y1:d+r,x2:g,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+V,y1:d+r,x2:g+V,y2:d+h-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:g+r,y1:d+y,x2:g+u-r,y2:d+y}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),m=this.config.showTitle&&!!this.data.titleText,y=this.data.points.length>0?"bottom":this.config.xAxisPosition,h=this.calculateSpace(y,e,r,m);return{points:this.getQuadrantPoints(h),quadrants:this.getQuadrants(h),axisLabels:this.getAxisLabels(y,e,r,h),borderLines:this.getBorders(h),title:this.getTitle(m)}}},Dt=class extends Error{static{t(this,"InvalidStyleError")}constructor(e,r,m){super(`value for ${e} ${r} is invalid, please use a valid ${m}`);this.name="InvalidStyleError"}};function Ot(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(Ot,"validateHexCode");function xe(e){return!/^\d+$/.test(e)}t(xe,"validateNumber");function fe(e){return!/^\d+px$/.test(e)}t(fe,"validateSizeInPixels");function it(e){return O(e.trim(),l())}t(it,"textSanitizer");var M=new Ie;function ge(e){M.setData({quadrant1Text:it(e.text)})}t(ge,"setQuadrant1Text");function pe(e){M.setData({quadrant2Text:it(e.text)})}t(pe,"setQuadrant2Text");function ye(e){M.setData({quadrant3Text:it(e.text)})}t(ye,"setQuadrant3Text");function be(e){M.setData({quadrant4Text:it(e.text)})}t(be,"setQuadrant4Text");function Te(e){M.setData({xAxisLeftText:it(e.text)})}t(Te,"setXAxisLeftText");function me(e){M.setData({xAxisRightText:it(e.text)})}t(me,"setXAxisRightText");function qe(e){M.setData({yAxisTopText:it(e.text)})}t(qe,"setYAxisTopText");function Se(e){M.setData({yAxisBottomText:it(e.text)})}t(Se,"setYAxisBottomText");function zt(e){let r={};for(let m of e){let[y,h]=m.trim().split(/\s*:\s*/);if(y==="radius"){if(xe(h))throw new Dt(y,h,"number");r.radius=parseInt(h)}else if(y==="color"){if(Ot(h))throw new Dt(y,h,"hex code");r.color=h}else if(y==="stroke-color"){if(Ot(h))throw new Dt(y,h,"hex code");r.strokeColor=h}else if(y==="stroke-width"){if(fe(h))throw new Dt(y,h,"number of pixels (eg. 10px)");r.strokeWidth=h}else throw Error(`style named ${y} is not supported.`)}return r}t(zt,"parseStyles");function _e(e,r,m,y,h){let g=zt(h);M.addPoints([{x:m,y,text:it(e.text),className:r,...g}])}t(_e,"addPoint");function Ae(e,r){M.addClass(e,zt(r))}t(Ae,"addClass");function Fe(e){M.setConfig({chartWidth:e})}t(Fe,"setWidth");function Pe(e){M.setConfig({chartHeight:e})}t(Pe,"setHeight");function ve(){let e=l(),{themeVariables:r,quadrantChart:m}=e;if(m)M.setConfig(m);return M.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),M.setData({titleText:R()}),M.build()}t(ve,"getQuadrantData");var we=t(function(){M.clear(),C()},"clear"),Be={setWidth:Fe,setHeight:Pe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:Se,parseStyles:zt,addPoint:_e,addClass:Ae,getQuadrantData:ve,clear:we,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,getAccDescription:A,setAccDescription:T},Re=t((e,r,m,y)=>{function h(n){return n==="top"?"hanging":"middle"}t(h,"getDominantBaseLine");function g(n){return n==="left"?"start":"middle"}t(g,"getTextAnchor");function V(n){return`translate(${n.x}, ${n.y}) rotate(${n.rotation||0})`}t(V,"getTransformation");let d=l();a.debug(`Rendering quadrant chart
7
+ `+e);let u=d.securityLevel,D;if(u==="sandbox")D=p("#i"+r);let v=(u==="sandbox"?p(D.nodes()[0].contentDocument.body):p("body")).select(`[id="${r}"]`),q=v.append("g").attr("class","main"),k=d.quadrantChart?.chartWidth??500,_=d.quadrantChart?.chartHeight??500;F(v,_,k,d.quadrantChart?.useMaxWidth??!0),v.attr("viewBox","0 0 "+k+" "+_),y.db.setHeight(_),y.db.setWidth(k);let b=y.db.getQuadrantData(),I=q.append("g").attr("class","quadrants"),_t=q.append("g").attr("class","border"),At=q.append("g").attr("class","data-points"),Ft=q.append("g").attr("class","labels"),Pt=q.append("g").attr("class","title");if(b.title)Pt.append("text").attr("x",0).attr("y",0).attr("fill",b.title.fill).attr("font-size",b.title.fontSize).attr("dominant-baseline",h(b.title.horizontalPos)).attr("text-anchor",g(b.title.verticalPos)).attr("transform",V(b.title)).text(b.title.text);if(b.borderLines)_t.selectAll("line").data(b.borderLines).enter().append("line").attr("x1",(n)=>n.x1).attr("y1",(n)=>n.y1).attr("x2",(n)=>n.x2).attr("y2",(n)=>n.y2).style("stroke",(n)=>n.strokeFill).style("stroke-width",(n)=>n.strokeWidth);let mt=I.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class","quadrant");mt.append("rect").attr("x",(n)=>n.x).attr("y",(n)=>n.y).attr("width",(n)=>n.width).attr("height",(n)=>n.height).attr("fill",(n)=>n.fill),mt.append("text").attr("x",0).attr("y",0).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text)).text((n)=>n.text.text),Ft.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((n)=>n.text).attr("fill",(n)=>n.fill).attr("font-size",(n)=>n.fontSize).attr("dominant-baseline",(n)=>h(n.horizontalPos)).attr("text-anchor",(n)=>g(n.verticalPos)).attr("transform",(n)=>V(n));let qt=At.selectAll("g.data-point").data(b.points).enter().append("g").attr("class","data-point");qt.append("circle").attr("cx",(n)=>n.x).attr("cy",(n)=>n.y).attr("r",(n)=>n.radius).attr("fill",(n)=>n.fill).attr("stroke",(n)=>n.strokeColor).attr("stroke-width",(n)=>n.strokeWidth),qt.append("text").attr("x",0).attr("y",0).text((n)=>n.text.text).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>h(n.text.horizontalPos)).attr("text-anchor",(n)=>g(n.text.verticalPos)).attr("transform",(n)=>V(n.text))},"draw"),Ne={draw:Re},Me={parser:Ve,db:Be,renderer:Ne,styles:t(()=>"","styles")};export{Me as diagram};
@@ -0,0 +1 @@
1
+ import{ki}from"./chunk-6e87m0nm.js";export{ki as default};