@intent-hq/web 2.310.0 → 2.310.2

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 (251) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{DiagramPresentation.fimBl1wP.css → DiagramPresentation.Bfi3xHm0.css} +1 -1
  3. package/web/app/immutable/chunks/-xK_vQQs.js +1 -0
  4. package/web/app/immutable/chunks/{DXIbhld5.js → 189zCzpy.js} +1 -1
  5. package/web/app/immutable/chunks/6XLvYn_R.js +4 -0
  6. package/web/app/immutable/chunks/{DE2cS7Gk.js → 7LPFBi2V.js} +2 -2
  7. package/web/app/immutable/chunks/{DvPohY9Y.js → 9Al7uANH.js} +1 -1
  8. package/web/app/immutable/chunks/{CCiSNRYo.js → 9Ax53qRD.js} +2 -2
  9. package/web/app/immutable/chunks/{B2RUMnVi.js → 9U2m-KE4.js} +1 -1
  10. package/web/app/immutable/chunks/{DEg_be2d.js → B08PB3d6.js} +1 -1
  11. package/web/app/immutable/chunks/B1wLVJWc.js +7 -0
  12. package/web/app/immutable/chunks/B1zCpBoo.js +217 -0
  13. package/web/app/immutable/chunks/{D4n7ImP1.js → B2-LFLJm.js} +1 -1
  14. package/web/app/immutable/chunks/{BhPGdKCS.js → B3NZDdp-.js} +1 -1
  15. package/web/app/immutable/chunks/{B6F4Lh4e.js → B3u9yhMd.js} +1 -1
  16. package/web/app/immutable/chunks/{BCWCSGn-.js → B6ACa1PM.js} +1 -1
  17. package/web/app/immutable/chunks/{DfEETRjs.js → B7VxeONz.js} +1 -1
  18. package/web/app/immutable/chunks/{2t50lsua.js → BGOzArFr.js} +6 -6
  19. package/web/app/immutable/chunks/{9jrhCQLH.js → BGSgFd0R.js} +1 -1
  20. package/web/app/immutable/chunks/{CaSAI0VT.js → BHMk19Fd.js} +1 -1
  21. package/web/app/immutable/chunks/{BZJTxW0W.js → BRp0P9cF.js} +1 -1
  22. package/web/app/immutable/chunks/{DRr3RJL8.js → BS3KKa6i.js} +5 -5
  23. package/web/app/immutable/chunks/{dxICYcDB.js → BSN7-Qxa.js} +4 -4
  24. package/web/app/immutable/chunks/{BpsqLTOp.js → BU1SD4F5.js} +2 -2
  25. package/web/app/immutable/chunks/BUvLOETw.js +8 -0
  26. package/web/app/immutable/chunks/{CZZvWnXg.js → B_CxKeY9.js} +1 -1
  27. package/web/app/immutable/chunks/{BibcbnTP.js → B_F8B07u.js} +5 -5
  28. package/web/app/immutable/chunks/{DFCDnAax.js → B_u6ph9g.js} +1 -1
  29. package/web/app/immutable/chunks/{Cg-2uoaY.js → BbajLcMi.js} +1 -1
  30. package/web/app/immutable/chunks/{tBYaHQw_.js → BcGA_XKM.js} +79 -79
  31. package/web/app/immutable/chunks/Bdj20t_M.js +200 -0
  32. package/web/app/immutable/chunks/{SJdoTqK2.js → BfVF2I5Q.js} +3 -3
  33. package/web/app/immutable/chunks/{B-AmXRdp.js → BgjzIHmr.js} +2 -2
  34. package/web/app/immutable/chunks/BhFdeIZl.js +1 -0
  35. package/web/app/immutable/chunks/{CMcFXsiy.js → BjS3bCVA.js} +1 -1
  36. package/web/app/immutable/chunks/Bl1SUWQK.js +1 -0
  37. package/web/app/immutable/chunks/BtFywNMt.js +40 -0
  38. package/web/app/immutable/chunks/{CCJs9cZU.js → BwThkZnv.js} +1 -1
  39. package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
  40. package/web/app/immutable/chunks/Bz2AaX7v.js +38 -0
  41. package/web/app/immutable/chunks/{CjKEz27r.js → BzqKIdEP.js} +1 -1
  42. package/web/app/immutable/chunks/{gMys6NxR.js → C-27EQSK.js} +6 -6
  43. package/web/app/immutable/chunks/C2FKcF8a.js +99 -0
  44. package/web/app/immutable/chunks/{kOoRis7L.js → C2ypXh8V.js} +4 -4
  45. package/web/app/immutable/chunks/{Bbi-Ieb_.js → C5bjHjx4.js} +1 -1
  46. package/web/app/immutable/chunks/{CS85fbWZ.js → C64YVcCh.js} +1 -1
  47. package/web/app/immutable/chunks/{xq16NT3q.js → C7-VQsLR.js} +1 -1
  48. package/web/app/immutable/chunks/C7ldC6zu.js +41 -0
  49. package/web/app/immutable/chunks/{Z1IVvFmx.js → C7xfOFNZ.js} +4 -4
  50. package/web/app/immutable/chunks/{CBvSxWdG.js → CAt8c0ls.js} +1 -1
  51. package/web/app/immutable/chunks/CC-vc0Sh.js +2 -0
  52. package/web/app/immutable/chunks/{D2b3DtCR.js → CDmxeAFz.js} +1 -1
  53. package/web/app/immutable/chunks/{BeFewn7K.js → CLUug_7o.js} +1 -1
  54. package/web/app/immutable/chunks/{CDACoTI2.js → CLyqqizl.js} +11 -11
  55. package/web/app/immutable/chunks/{B_EqlvEE.js → CO5Qz17e.js} +1 -1
  56. package/web/app/immutable/chunks/{DDfFKaoN.js → COBtdbv4.js} +1 -1
  57. package/web/app/immutable/chunks/COZ8XMYr.js +2 -0
  58. package/web/app/immutable/chunks/{BVxirgV2.js → CQK97B3l.js} +1 -1
  59. package/web/app/immutable/chunks/{50gvEURs.js → CYTBw0CY.js} +1 -1
  60. package/web/app/immutable/chunks/{CGizsEXq.js → CZLMJ41d.js} +3 -3
  61. package/web/app/immutable/chunks/{CjdtUG_a.js → CZqaUHhn.js} +1 -1
  62. package/web/app/immutable/chunks/CeVWos-t.js +1 -0
  63. package/web/app/immutable/chunks/CepoDpYW.js +1 -0
  64. package/web/app/immutable/chunks/{xFj9RuQx.js → CiBABzvX.js} +1 -1
  65. package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
  66. package/web/app/immutable/chunks/{DUVw4Tv2.js → CkactGV1.js} +30 -30
  67. package/web/app/immutable/chunks/ClebXGIM.js +141 -0
  68. package/web/app/immutable/chunks/{DO_qdDGF.js → CnfDI0G9.js} +1 -1
  69. package/web/app/immutable/chunks/{CQSBplf3.js → CoiqgZqV.js} +1 -1
  70. package/web/app/immutable/chunks/{CGMhstmi.js → CpQksukT.js} +1 -1
  71. package/web/app/immutable/chunks/CrX2GQl1.js +1 -0
  72. package/web/app/immutable/chunks/{BKTwjZpB.js → CtDXgUYh.js} +2 -2
  73. package/web/app/immutable/chunks/CvEzUeZj.js +39 -0
  74. package/web/app/immutable/chunks/{C_YR_yV-.js → CxP8jrn2.js} +1 -1
  75. package/web/app/immutable/chunks/{BPG20H4B.js → D2XAsGw-.js} +1 -1
  76. package/web/app/immutable/chunks/D3in5AGo.js +34 -0
  77. package/web/app/immutable/chunks/D3ma4MWK.js +84 -0
  78. package/web/app/immutable/chunks/{DqvIKmgg.js → D3p4HGPq.js} +1 -1
  79. package/web/app/immutable/chunks/D57k4GEE.js +344 -0
  80. package/web/app/immutable/chunks/{_otPiQOz.js → D5mZ2XGM.js} +1 -1
  81. package/web/app/immutable/chunks/{swAYnpK6.js → DE1vhlzN.js} +1 -1
  82. package/web/app/immutable/chunks/{NdkVneBF.js → DI-WSiIl.js} +1 -1
  83. package/web/app/immutable/chunks/DMfS3QUv.js +213 -0
  84. package/web/app/immutable/chunks/DMmGJ3th.js +140 -0
  85. package/web/app/immutable/chunks/DPADHNob.js +3 -0
  86. package/web/app/immutable/chunks/DPcySxOl.js +24 -0
  87. package/web/app/immutable/chunks/{BMvGDYIO.js → DQNwUygY.js} +3 -3
  88. package/web/app/immutable/chunks/{Bj5SHeCl.js → DR3ukAe9.js} +2 -2
  89. package/web/app/immutable/chunks/{DZpxiGBS.js → DRKyy5zo.js} +1 -1
  90. package/web/app/immutable/chunks/DTpCNXVX.js +62 -0
  91. package/web/app/immutable/chunks/DW02E8JU.js +291 -0
  92. package/web/app/immutable/chunks/{DyHBOL0Q.js → DbnaPZDp.js} +2 -2
  93. package/web/app/immutable/chunks/Dhhgf7-r.js +36 -0
  94. package/web/app/immutable/chunks/{Cbh5ofn-.js → DjaKy3j_.js} +1 -1
  95. package/web/app/immutable/chunks/{KljALMT3.js → Dk4znOdW.js} +1 -1
  96. package/web/app/immutable/chunks/{BANQT5xk.js → Dl1xcl6N.js} +1 -1
  97. package/web/app/immutable/chunks/Dmv_LV6R.js +106 -0
  98. package/web/app/immutable/chunks/{BreeoU2c.js → Dr28se2A.js} +2 -2
  99. package/web/app/immutable/chunks/Dr_BXnmT.js +169 -0
  100. package/web/app/immutable/chunks/{CoIY5b-q.js → Dvt2xumc.js} +1 -1
  101. package/web/app/immutable/chunks/DxHqMweQ.js +27 -0
  102. package/web/app/immutable/chunks/Dyv7eW7r.js +1 -0
  103. package/web/app/immutable/chunks/{W2kuqRhi.js → DzDnAGVP.js} +1 -1
  104. package/web/app/immutable/chunks/{CJNlKuUY.js → IIWxUL8F.js} +1 -1
  105. package/web/app/immutable/chunks/IjQ_akx8.js +24 -0
  106. package/web/app/immutable/chunks/{wihFHGRA.js → JFNcUgqI.js} +3 -3
  107. package/web/app/immutable/chunks/{BoTxE-Dg.js → JvGvDA7z.js} +1 -1
  108. package/web/app/immutable/chunks/{3xT4xHCc.js → LXPDKlyI.js} +1 -1
  109. package/web/app/immutable/chunks/{BPlpnhzH.js → M5rEGvXZ.js} +1 -1
  110. package/web/app/immutable/chunks/{C_sPSbma.js → O55LMojB.js} +1 -1
  111. package/web/app/immutable/chunks/{BmhnS69e.js → O86272iX.js} +2 -2
  112. package/web/app/immutable/chunks/{CZT_wjvA.js → PW60rHG1.js} +2 -2
  113. package/web/app/immutable/chunks/{D8xJeFNR.js → UzQ5fjmd.js} +7 -7
  114. package/web/app/immutable/chunks/VmPClZ6P.js +98 -0
  115. package/web/app/immutable/chunks/WKN7DEK1.js +292 -0
  116. package/web/app/immutable/chunks/{B7YFRmY9.js → YuniekLU.js} +2 -2
  117. package/web/app/immutable/chunks/{DWztuYd2.js → _Q4NEhG2.js} +1 -1
  118. package/web/app/immutable/chunks/{DyPRCICU.js → _sFm91KN.js} +4 -4
  119. package/web/app/immutable/chunks/{NChdTnqQ.js → cF0DaKkd.js} +1 -1
  120. package/web/app/immutable/chunks/{B2O-zJJK.js → d9OF_ecy.js} +1 -1
  121. package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
  122. package/web/app/immutable/chunks/ey5Fwige.js +1 -0
  123. package/web/app/immutable/chunks/gq2RHuUM.js +120 -0
  124. package/web/app/immutable/chunks/{C0oSivDJ.js → hJG5qV93.js} +1 -1
  125. package/web/app/immutable/chunks/jfltPaLX.js +370 -0
  126. package/web/app/immutable/chunks/{CjUOGaIe.js → l0v05b1J.js} +3 -3
  127. package/web/app/immutable/chunks/{zeRt85dY.js → le8iLKoG.js} +1 -1
  128. package/web/app/immutable/chunks/{C0f7EiIR.js → mCGfnSaU.js} +1 -1
  129. package/web/app/immutable/chunks/{u7rudBWt.js → mNrkfPcL.js} +1 -1
  130. package/web/app/immutable/chunks/{Da48jYxu.js → tzNFwvLY.js} +1 -1
  131. package/web/app/immutable/chunks/{C1rjgyNe.js → xL2Hl8pt.js} +1 -1
  132. package/web/app/immutable/chunks/{D6QUdzQ1.js → yEkT96At.js} +1 -1
  133. package/web/app/immutable/chunks/{DhbOsIE5.js → yGxUPrAb.js} +14 -14
  134. package/web/app/immutable/entry/{app.CYN435_6.js → app.CWgSMPHo.js} +2 -2
  135. package/web/app/immutable/entry/start.DRM4Ek1S.js +1 -0
  136. package/web/app/immutable/nodes/{0.Dns3lFCs.js → 0.DsHcmAxw.js} +1 -1
  137. package/web/app/immutable/nodes/{1.Cd7O-58t.js → 1.CkY-7ake.js} +1 -1
  138. package/web/app/immutable/nodes/{10.BhPCwuSS.js → 10.CdTsXOpX.js} +1 -1
  139. package/web/app/immutable/nodes/{14.CbX9Og6B.js → 14.juvATfIp.js} +1 -1
  140. package/web/app/immutable/nodes/{16.DYSTj8m0.js → 16.DuXLhJX1.js} +2 -2
  141. package/web/app/immutable/nodes/{2.n7fSSeCW.js → 2.DL0H4Ehj.js} +8 -8
  142. package/web/app/immutable/nodes/{3.CfhffOh-.js → 3.CsarMzm8.js} +1 -1
  143. package/web/app/immutable/nodes/{4.DNZDs0vZ.js → 4.DOKXGcKD.js} +1 -1
  144. package/web/app/immutable/nodes/{5.DooL0KdY.js → 5.5nmYhZgy.js} +1 -1
  145. package/web/app/immutable/nodes/{6.pzplS1TY.js → 6.BMO8vjvw.js} +1 -1
  146. package/web/app/immutable/nodes/{7.CRhweboS.js → 7.Rmoc-ypk.js} +1 -1
  147. package/web/app/immutable/nodes/{8.CuuXIPiR.js → 8.Dy5AT1iw.js} +2 -2
  148. package/web/app/immutable/nodes/{9.hhdT3UPw.js → 9.Dtv2dSUT.js} +18 -18
  149. package/web/app/version.json +1 -1
  150. package/web/index.html +9 -9
  151. package/web/app/immutable/chunks/41W03kYB.js +0 -96
  152. package/web/app/immutable/chunks/4jLfrK-n.js +0 -84
  153. package/web/app/immutable/chunks/70PyZUYg.js +0 -70
  154. package/web/app/immutable/chunks/9H8XjRUA.js +0 -106
  155. package/web/app/immutable/chunks/B-2EcDun.js +0 -78
  156. package/web/app/immutable/chunks/B6EdH0gk.js +0 -120
  157. package/web/app/immutable/chunks/B7d6B8i2.js +0 -1
  158. package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
  159. package/web/app/immutable/chunks/BCfzoYfU.js +0 -1
  160. package/web/app/immutable/chunks/BDEqpi1y.js +0 -106
  161. package/web/app/immutable/chunks/BDchM60p.js +0 -178
  162. package/web/app/immutable/chunks/BDuevalq.js +0 -1
  163. package/web/app/immutable/chunks/BFcpLy2V.js +0 -24
  164. package/web/app/immutable/chunks/BGS2SWF9.js +0 -40
  165. package/web/app/immutable/chunks/BKpC4hzB.js +0 -1
  166. package/web/app/immutable/chunks/BLOlf2p9.js +0 -39
  167. package/web/app/immutable/chunks/BN912nIE.js +0 -1
  168. package/web/app/immutable/chunks/BQqlXz7Q.js +0 -24
  169. package/web/app/immutable/chunks/BZmA3QXk.js +0 -24
  170. package/web/app/immutable/chunks/BdluP0Re.js +0 -120
  171. package/web/app/immutable/chunks/BgmOiuVG.js +0 -342
  172. package/web/app/immutable/chunks/BmKF0wck.js +0 -1
  173. package/web/app/immutable/chunks/BpJz1MvJ.js +0 -7
  174. package/web/app/immutable/chunks/Br2I_00T.js +0 -7
  175. package/web/app/immutable/chunks/Br8EhifD.js +0 -89
  176. package/web/app/immutable/chunks/BriIY-V6.js +0 -2
  177. package/web/app/immutable/chunks/Bs-gIQLt.js +0 -4
  178. package/web/app/immutable/chunks/BwBhkp82.js +0 -292
  179. package/web/app/immutable/chunks/Bz-Yc7Wl.js +0 -34
  180. package/web/app/immutable/chunks/BzAchneh.js +0 -1
  181. package/web/app/immutable/chunks/C10ooCp1.js +0 -24
  182. package/web/app/immutable/chunks/C3OhkOVO.js +0 -1
  183. package/web/app/immutable/chunks/C519ihU9.js +0 -231
  184. package/web/app/immutable/chunks/C7T4LQE1.js +0 -257
  185. package/web/app/immutable/chunks/C7_3LSl8.js +0 -162
  186. package/web/app/immutable/chunks/CAM1CwRY.js +0 -1
  187. package/web/app/immutable/chunks/CHx78N0-.js +0 -1
  188. package/web/app/immutable/chunks/CJRXWUIB.js +0 -36
  189. package/web/app/immutable/chunks/CKRb139P.js +0 -1
  190. package/web/app/immutable/chunks/COamqMg3.js +0 -1
  191. package/web/app/immutable/chunks/CPm7NntQ.js +0 -38
  192. package/web/app/immutable/chunks/CSNcNZAr.js +0 -1
  193. package/web/app/immutable/chunks/CTI6K_Uf.js +0 -1
  194. package/web/app/immutable/chunks/CUuCn5ps.js +0 -1
  195. package/web/app/immutable/chunks/CXVxtSkJ.js +0 -38
  196. package/web/app/immutable/chunks/CYhtIPW_.js +0 -62
  197. package/web/app/immutable/chunks/CaNdc6nO.js +0 -292
  198. package/web/app/immutable/chunks/CbMdHBoe.js +0 -1
  199. package/web/app/immutable/chunks/Citosjx7.js +0 -41
  200. package/web/app/immutable/chunks/Cj_j-lXn.js +0 -206
  201. package/web/app/immutable/chunks/CnCQnNEp.js +0 -354
  202. package/web/app/immutable/chunks/CnsnqDQd.js +0 -1
  203. package/web/app/immutable/chunks/CqBIsc3j.js +0 -99
  204. package/web/app/immutable/chunks/CqslOMwD.js +0 -96
  205. package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
  206. package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
  207. package/web/app/immutable/chunks/CwpRQv-w.js +0 -8
  208. package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
  209. package/web/app/immutable/chunks/Cyhorubq.js +0 -231
  210. package/web/app/immutable/chunks/D1SkvgLK.js +0 -1
  211. package/web/app/immutable/chunks/D6XiPT-X.js +0 -1
  212. package/web/app/immutable/chunks/D7jRh74W.js +0 -1
  213. package/web/app/immutable/chunks/D9ytGf5e.js +0 -1
  214. package/web/app/immutable/chunks/DF1EzKEK.js +0 -41
  215. package/web/app/immutable/chunks/DGaGjBKU.js +0 -168
  216. package/web/app/immutable/chunks/DKQ9ngHk.js +0 -99
  217. package/web/app/immutable/chunks/DNmtQDpd.js +0 -8
  218. package/web/app/immutable/chunks/DOXLMb3q.js +0 -129
  219. package/web/app/immutable/chunks/DPpctSbu.js +0 -84
  220. package/web/app/immutable/chunks/DR8edmqz.js +0 -139
  221. package/web/app/immutable/chunks/DUYSWpmE.js +0 -1
  222. package/web/app/immutable/chunks/DXaxEP8U.js +0 -1
  223. package/web/app/immutable/chunks/DYy64AXn.js +0 -338
  224. package/web/app/immutable/chunks/DcI5wCZ5.js +0 -1
  225. package/web/app/immutable/chunks/DdRfFUWu.js +0 -1
  226. package/web/app/immutable/chunks/DfF0sVRg.js +0 -3
  227. package/web/app/immutable/chunks/Divbj3b8.js +0 -40
  228. package/web/app/immutable/chunks/DmUq9QE3.js +0 -162
  229. package/web/app/immutable/chunks/Dqn0Ivcg.js +0 -39
  230. package/web/app/immutable/chunks/DsJW9cbJ.js +0 -88
  231. package/web/app/immutable/chunks/DtFtH7jZ.js +0 -4
  232. package/web/app/immutable/chunks/DvZBb8H_.js +0 -168
  233. package/web/app/immutable/chunks/GX9YV5ly.js +0 -129
  234. package/web/app/immutable/chunks/HP8lGamR.js +0 -257
  235. package/web/app/immutable/chunks/I1Pwq7BS.js +0 -15
  236. package/web/app/immutable/chunks/Jj6giUQG.js +0 -7
  237. package/web/app/immutable/chunks/K10ifhfc.js +0 -1
  238. package/web/app/immutable/chunks/PDuKM1t5.js +0 -1
  239. package/web/app/immutable/chunks/PUlhNAJH.js +0 -1
  240. package/web/app/immutable/chunks/VtMTQAXA.js +0 -30
  241. package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
  242. package/web/app/immutable/chunks/b7kGm9Ly.js +0 -36
  243. package/web/app/immutable/chunks/d1jIpATl.js +0 -62
  244. package/web/app/immutable/chunks/eCj-hB88.js +0 -3
  245. package/web/app/immutable/chunks/g3iFlZMW.js +0 -1
  246. package/web/app/immutable/chunks/iYpMWPUv.js +0 -206
  247. package/web/app/immutable/chunks/kqGPx169.js +0 -2
  248. package/web/app/immutable/chunks/ojOCNOao.js +0 -1
  249. package/web/app/immutable/chunks/v70CwcHz.js +0 -34
  250. package/web/app/immutable/chunks/zkqMQ7Ph.js +0 -1
  251. package/web/app/immutable/entry/start.Cuiv1qlw.js +0 -1
@@ -1,206 +0,0 @@
1
- import{g as it}from"./I1Pwq7BS.js";import{g as at}from"./DcI5wCZ5.js";import{a as f,ad as Pe,N as B,R as rt,ax as nt,aV as Me,as as ut,aG as lt,L as ct,aF as ot,K as ht,aI as dt,O as pt,p as O,k as At,P as ft,aD as mt,ao as K}from"./CnCQnNEp.js";import{s as gt}from"./PDuKM1t5.js";import{c as Ct}from"./CTI6K_Uf.js";import{g as F,c3 as fe}from"./BgmOiuVG.js";var Re=(function(){var s=f(function(V,o,h,p){for(h=h||{},p=V.length;p--;h[V[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],g=[1,25],m=[1,32],x=[1,33],ge=[1,34],b=[1,45],Ce=[1,35],be=[1,36],ke=[1,37],Ee=[1,38],Te=[1,27],ye=[1,28],De=[1,29],Fe=[1,30],Be=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],_e=[1,9],A=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Se=[1,63],Ne=[1,64],S=[1,8,9,41],Ge=[1,77],U=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ue=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Ue=[13,60,68,69,70,71,72,86,100,102,103],ce=[1,103],W=[1,121],Q=[1,117],j=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],Z=[1,118],$=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Ke=[1,128],oe=[12,39],xe=[1,8,9,39,41,44,46],he=[1,8,9,22],Ye=[1,153],We=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(F(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(F(function(o,h,p,l,C,e,te){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(_e,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Ge,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(U,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(U,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ue,[2,133]),s(ue,[2,134]),s(ue,[2,135]),s(ue,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(_e,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne},s(A,[2,64]),{67:93,73:Se,74:Ne},s(le,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),s(Y,[2,84]),s(Y,[2,85]),s(Y,[2,86]),s(Y,[2,87]),s(Y,[2,88]),s(Ue,[2,89]),s(Ue,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:m,56:x},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ce},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:j,82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},{60:[1,122]},{13:Ge,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:Q,59:124,60:j,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},s(ze,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(U,[2,16]),s(U,[2,17]),s(U,[2,18]),{11:127,12:Ke,39:[2,36]},s(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(oe,[2,10]),s(xe,[2,55],{11:131,12:Ke}),s(_e,[2,7]),{9:[1,132]},s(he,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(le,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),s(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:m,56:x},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ce},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ye}),s(We,[2,107],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(S,[2,71]),s(A,[2,73],{61:Ye}),{60:[1,155]},s(U,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(oe,[2,12]),s(xe,[2,56]),{1:[2,4]},s(he,[2,69]),s(he,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(le,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:m,56:x},{45:163,51:ce},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:j,82:X,84:169,85:112,86:q,87:H,88:J,89:Z,90:$},s(v,[2,110]),s(ze,[2,75]),{14:[1,170]},s(oe,[2,11]),s(he,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ce},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(We,[2,108],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(xe,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(A,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(F(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),"parseError"),parse:f(F(function(o){var h=this,p=[0],l=[],C=[null],e=[],te=this.table,t="",de=0,Qe=0,et=2,je=1,tt=e.slice.call(arguments,1),D=Object.create(this.lexer),P={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(P.yy[ve]=this.yy[ve]);D.setInput(o,P.yy),P.yy.lexer=D,P.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var st=D.options&&D.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}F(Xe,"popStack"),f(Xe,"popStack");function Oe(){var N;return N=l.pop()||D.lex()||je,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=h.symbols_[N]||N),N}F(Oe,"lex"),f(Oe,"lex");for(var _,M,L,we,z={},pe,I,qe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=Oe()),L=te[M]&&te[M][_]),typeof L>"u"||!L.length||!L[0]){var Ve="";Ae=[];for(pe in te[M])this.terminals_[pe]&&pe>et&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Ve="Parse error on line "+(de+1)+`:
2
- `+D.showPosition()+`
3
- Expecting `+Ae.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ve="Parse error on line "+(de+1)+": Unexpected "+(_==je?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ve,{text:D.match,token:this.terminals_[_]||_,line:D.yylineno,loc:Ie,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+_);switch(L[0]){case 1:p.push(_),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),_=null,Qe=D.yyleng,t=D.yytext,de=D.yylineno,Ie=D.yylloc;break;case 2:if(I=this.productions_[L[1]][1],z.$=C[C.length-I],z._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},st&&(z._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),we=this.performAction.apply(z,[t,Qe,de,P.yy,L[1],C,e].concat(tt)),typeof we<"u")return we;I&&(p=p.slice(0,-1*I*2),C=C.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),C.push(z.$),e.push(z._$),qe=te[p[p.length-2]][p[p.length-1]],p.push(qe);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var V={EOF:1,parseError:f(F(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),"parseError"),setInput:f(function(o,h){return this.yy=h||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]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(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:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+h+"^"},"showPosition"),test_match:f(function(o,h){var p,l,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.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]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in C)this[e]=C[e];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,h,p,l;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),e=0;e<C.length;e++)if(p=this._input.match(this.rules[C[e]]),p&&(!h||p[0].length>h[0].length)){if(h=p,l=e,this.options.backtrack_lexer){if(o=this.test_match(p,C[e]),o!==!1)return o;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(o=this.test_match(h,C[l]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(F(function(){var h=this.next();return h||this.lex()},"lex"),"lex"),begin:f(F(function(h){this.conditionStack.push(h)},"begin"),"begin"),popState:f(F(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:f(F(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:f(F(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),"topState"),pushState:f(F(function(h){this.begin(h)},"pushState"),"pushState"),stateStackSize:f(F(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{},performAction:f(F(function(h,p,l,C){switch(l){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return V})();Le.lexer=$e;function ee(){this.yy={}}return F(ee,"Parser"),f(ee,"Parser"),ee.prototype=Le,Le.Parser=ee,new ee})();Re.parser=Re;var Nt=Re,He=["#","+","~","-",""],G,Je=(G=class{constructor(i,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";const r=mt(i,B());this.parseMember(r)}getDisplayDetails(){let i=this.visibility+K(this.id);this.memberType==="method"&&(i+=`(${K(this.parameters.trim())})`,this.returnType&&(i+=" : "+K(this.returnType))),i=i.trim();const a=this.parseClassifier();return{displayText:i,cssStyle:a}}parseMember(i){let a="";if(this.memberType==="method"){const c=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(c){const u=c[1]?c[1].trim():"";if(He.includes(u)&&(this.visibility=u),this.id=c[2],this.parameters=c[3]?c[3].trim():"",a=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",a===""){const d=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(d)&&(a=d,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const n=i.length,c=i.substring(0,1),u=i.substring(n-1);He.includes(c)&&(this.visibility=c),/[$*]/.exec(u)&&(a=u),this.id=i.substring(this.visibility===""?0:1,a===""?n:n-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const r=`${this.visibility?"\\"+this.visibility:""}${K(this.id)}${this.memberType==="method"?`(${K(this.parameters)})${this.returnType?" : "+K(this.returnType):""}`:""}`;this.text=r.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},F(G,"ClassMember"),f(G,"ClassMember"),G),me="classId-",Ze=0,R=f(s=>O.sanitizeText(s,B()),"sanitizeText"),w,xt=(w=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=f(i=>{const a=Ct();fe(i).select("svg").selectAll("g").filter(function(){return fe(this).attr("title")!==null}).on("mouseover",c=>{const u=fe(c.currentTarget),d=u.attr("title");if(!d)return;const g=c.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(ut.sanitize(d)).style("left",`${window.scrollX+g.left+g.width/2}px`).style("top",`${window.scrollY+g.bottom+4}px`),u.classed("hover",!0)}).on("mouseout",c=>{a.transition().duration(500).style("opacity",0),fe(c.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=lt,this.getAccTitle=ct,this.setAccDescription=ot,this.getAccDescription=ht,this.setDiagramTitle=dt,this.getDiagramTitle=pt,this.getConfig=f(()=>B().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(i){const a=O.sanitizeText(i,B());let r="",n=a;if(a.indexOf("~")>0){const c=a.split("~");n=R(c[0]),r=R(c[1])}return{className:n,type:r}}setClassLabel(i,a){const r=O.sanitizeText(i,B());a&&(a=R(a));const{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){const a=O.sanitizeText(i,B()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;const c=O.sanitizeText(r,B());this.classes.set(c,{id:c,type:n,label:c,text:`${c}${n?`&lt;${n}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:me+c+"-"+Ze}),Ze++}addInterface(i,a){const r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){const a=O.sanitizeText(i,B());if(this.classes.has(a)){const r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",At()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){const a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Pe.debug("Adding relation: "+JSON.stringify(i));const a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=O.sanitizeText(i.relationTitle1.trim(),B()),i.relationTitle2=O.sanitizeText(i.relationTitle2.trim(),B()),this.relations.push(i)}addAnnotation(i,a){const r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);const r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){const c=a.trim();c.startsWith("<<")&&c.endsWith(">>")?n.annotations.push(R(c.substring(2,c.length-2))):c.indexOf(")")>0?n.methods.push(new Je(c,"method")):c&&n.members.push(new Je(c,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){const r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),R(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=me+n),n=this.splitClassNameAndType(n).className;const c=this.classes.get(n);c&&(c.cssClasses+=" "+a)})}defineClass(i,a){for(const r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(c=>{if(/color/.exec(c)){const u=c.replace("fill","bgFill");n.textStyles.push(u)}n.styles.push(c)}),this.classes.forEach(c=>{c.cssClasses.includes(r)&&c.styles.push(...a.flatMap(u=>u.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){const n=this.splitClassNameAndType(r).className,c=this.classes.get(n);c&&(c.tooltip=R(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){const n=B();i.split(",").forEach(c=>{let u=c;/\d/.exec(c[0])&&(u=me+u),u=this.splitClassNameAndType(u).className;const d=this.classes.get(u);d&&(d.link=Me.formatUrl(a,n),n.securityLevel==="sandbox"?d.linkTarget="_top":typeof r=="string"?d.linkTarget=R(r):d.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);const c=this.splitClassNameAndType(n).className,u=this.classes.get(c);u&&(u.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){const n=O.sanitizeText(i,B());if(B().securityLevel!=="loose"||a===void 0)return;const u=this.splitClassNameAndType(n).className;if(this.classes.has(u)){let d=[];if(typeof r=="string"){d=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<d.length;g++){let m=d[g].trim();m.startsWith('"')&&m.endsWith('"')&&(m=m.substr(1,m.length-2)),d[g]=m}}d.length===0&&d.push(u),this.functions.push(()=>{const g=this.lookUpDomId(u),m=document.querySelector(`[id="${g}"]`);m!==null&&m.addEventListener("click",()=>{Me.runFunc(a,...d)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){const r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){const a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n<a.length;n++)r[n]=`${r[n-1]}.${a[n]}`;return r}createNamespaceNode(i,a,r,n=!1){return{id:i,label:a,classes:new Map,notes:new Map,children:new Map,domId:me+i+"-"+this.namespaceCounter++,parent:r,explicit:n}}linkParentChild(i,a){const r=this.namespaces.get(i),n=this.namespaces.get(a);!r||!n||(r.children.has(a)||r.children.set(a,n),n.parent??=i)}addNamespace(i,a){const r=w.resolveQualifiedId(i,this.namespaceStack);if(this.namespaceStack.push(r),this.namespaces.has(r)){const u=this.namespaces.get(r);return u.explicit=!0,a&&(u.label=a),r}const n=r.split("."),c=w.getAncestorIds(r);for(let u=0;u<c.length;u++){const d=c[u],g=u>0?c[u-1]:void 0,m=u===c.length-1,x=m&&a?a:n[u];this.namespaces.has(d)?m&&(this.namespaces.get(d).explicit=!0):this.namespaces.set(d,this.createNamespaceNode(d,x,g,m)),g&&this.linkParentChild(g,d)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(const n of a){const{className:c}=this.splitClassNameAndType(n),u=this.getClass(c);u.parent=i,this.namespaces.get(i).classes.set(c,u)}for(const n of r){const c=this.getNote(n);c.parent=i,this.namespaces.get(i).notes.set(n,c)}}}setCssStyle(i,a){const r=this.classes.get(i);if(!(!a||!r))for(const n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){const r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){const i=[],a=[],r=B(),n=r.class?.hierarchicalNamespaces??!0;for(const u of this.namespaces.values()){if(!n&&!u.explicit)continue;const d={id:u.id,label:n?u.label:u.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?u.parent:void 0};i.push(d)}for(const u of this.classes.values()){const d=n?u.parent:this.resolveExplicitAncestor(u.parent),g={...u,type:void 0,isGroup:!1,parentId:d,look:r.look};i.push(g)}for(const u of this.notes.values()){const d=n?u.parent:this.resolveExplicitAncestor(u.parent),g={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:d,labelType:"markdown"};i.push(g);const m=this.classes.get(u.class)?.id;if(m){const x={id:`edgeNote${u.index}`,start:u.id,end:m,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(x)}}for(const u of this.interfaces){const d={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(d)}let c=0;for(const u of this.relations){c++;const d={id:ft(u.id1,u.id2,{prefix:"id",counter:c}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(d)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},F(w,"_ClassDB"),f(w,"ClassDB"),w),bt=f(s=>`g.classGroup text {
7
- fill: ${s.nodeBorder||s.classText};
8
- stroke: none;
9
- font-family: ${s.fontFamily};
10
- font-size: 10px;
11
-
12
- .title {
13
- font-weight: bolder;
14
- }
15
-
16
- }
17
-
18
- .cluster-label text {
19
- fill: ${s.titleColor};
20
- }
21
- .cluster-label span {
22
- color: ${s.titleColor};
23
- }
24
- .cluster-label span p {
25
- background-color: transparent;
26
- }
27
-
28
- .cluster rect {
29
- fill: ${s.clusterBkg};
30
- stroke: ${s.clusterBorder};
31
- stroke-width: 1px;
32
- }
33
-
34
- .cluster text {
35
- fill: ${s.titleColor};
36
- }
37
-
38
- .cluster span {
39
- color: ${s.titleColor};
40
- }
41
-
42
- .nodeLabel, .edgeLabel {
43
- color: ${s.classText};
44
- }
45
-
46
- .noteLabel .nodeLabel, .noteLabel .edgeLabel {
47
- color: ${s.noteTextColor};
48
- }
49
- .edgeLabel .label rect {
50
- fill: ${s.mainBkg};
51
- }
52
- .label text {
53
- fill: ${s.classText};
54
- }
55
-
56
- .labelBkg {
57
- background: ${s.mainBkg};
58
- }
59
- .edgeLabel .label span {
60
- background: ${s.mainBkg};
61
- }
62
-
63
- .classTitle {
64
- font-weight: bolder;
65
- }
66
- .node rect,
67
- .node circle,
68
- .node ellipse,
69
- .node polygon,
70
- .node path {
71
- fill: ${s.mainBkg};
72
- stroke: ${s.nodeBorder};
73
- stroke-width: ${s.strokeWidth};
74
- }
75
-
76
-
77
- .divider {
78
- stroke: ${s.nodeBorder};
79
- stroke-width: 1;
80
- }
81
-
82
- g.clickable {
83
- cursor: pointer;
84
- }
85
-
86
- g.classGroup rect {
87
- fill: ${s.mainBkg};
88
- stroke: ${s.nodeBorder};
89
- }
90
-
91
- g.classGroup line {
92
- stroke: ${s.nodeBorder};
93
- stroke-width: 1;
94
- }
95
-
96
- .classLabel .box {
97
- stroke: none;
98
- stroke-width: 0;
99
- fill: ${s.mainBkg};
100
- opacity: 0.5;
101
- }
102
-
103
- .classLabel .label {
104
- fill: ${s.nodeBorder};
105
- font-size: 10px;
106
- }
107
-
108
- .relation {
109
- stroke: ${s.lineColor};
110
- stroke-width: ${s.strokeWidth};
111
- fill: none;
112
- }
113
-
114
- .dashed-line{
115
- stroke-dasharray: 3;
116
- }
117
-
118
- .dotted-line{
119
- stroke-dasharray: 1 2;
120
- }
121
-
122
- [id$="-compositionStart"], .composition {
123
- fill: ${s.lineColor} !important;
124
- stroke: ${s.lineColor} !important;
125
- stroke-width: 1;
126
- }
127
-
128
- [id$="-compositionEnd"], .composition {
129
- fill: ${s.lineColor} !important;
130
- stroke: ${s.lineColor} !important;
131
- stroke-width: 1;
132
- }
133
-
134
- [id$="-dependencyStart"], .dependency {
135
- fill: ${s.lineColor} !important;
136
- stroke: ${s.lineColor} !important;
137
- stroke-width: 1;
138
- }
139
-
140
- [id$="-dependencyEnd"], .dependency {
141
- fill: ${s.lineColor} !important;
142
- stroke: ${s.lineColor} !important;
143
- stroke-width: 1;
144
- }
145
-
146
- [id$="-extensionStart"], .extension {
147
- fill: transparent !important;
148
- stroke: ${s.lineColor} !important;
149
- stroke-width: 1;
150
- }
151
-
152
- [id$="-extensionEnd"], .extension {
153
- fill: transparent !important;
154
- stroke: ${s.lineColor} !important;
155
- stroke-width: 1;
156
- }
157
-
158
- [id$="-aggregationStart"], .aggregation {
159
- fill: transparent !important;
160
- stroke: ${s.lineColor} !important;
161
- stroke-width: 1;
162
- }
163
-
164
- [id$="-aggregationEnd"], .aggregation {
165
- fill: transparent !important;
166
- stroke: ${s.lineColor} !important;
167
- stroke-width: 1;
168
- }
169
-
170
- [id$="-lollipopStart"], .lollipop {
171
- fill: ${s.mainBkg} !important;
172
- stroke: ${s.lineColor} !important;
173
- stroke-width: 1;
174
- }
175
-
176
- [id$="-lollipopEnd"], .lollipop {
177
- fill: ${s.mainBkg} !important;
178
- stroke: ${s.lineColor} !important;
179
- stroke-width: 1;
180
- }
181
-
182
- .edgeTerminals {
183
- font-size: 11px;
184
- line-height: initial;
185
- }
186
-
187
- .classTitleText {
188
- text-anchor: middle;
189
- font-size: 18px;
190
- fill: ${s.textColor};
191
- }
192
-
193
- .edgeLabel[data-look="neo"] {
194
- background-color: ${s.edgeLabelBackground};
195
- p {
196
- background-color: ${s.edgeLabelBackground};
197
- }
198
- rect {
199
- opacity: 0.5;
200
- background-color: ${s.edgeLabelBackground};
201
- fill: ${s.edgeLabelBackground};
202
- }
203
- text-align: center;
204
- }
205
- ${it()}
206
- `,"getStyles"),Lt=bt,kt=f((s,i="TB")=>{if(!s.doc)return i;let a=i;for(const r of s.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Et=f(function(s,i){return i.db.getClasses()},"getClasses"),Tt=f(async function(s,i,a,r){Pe.info("REF0:"),Pe.info("Drawing class diagram (v3)",i);const{securityLevel:n,state:c,layout:u}=B();r.db.setDiagramId(i);const d=r.db.getData(),g=at(i,n);d.type=r.type,d.layoutAlgorithm=rt(u),d.nodeSpacing=c?.nodeSpacing||50,d.rankSpacing=c?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=i,await nt(d,g);const m=8;Me.insertTitle(g,"classDiagramTitleText",c?.titleTopMargin??25,r.db.getDiagramTitle()),gt(g,m,"classDiagram",c?.useMaxWidth??!0)},"draw"),vt={getClasses:Et,draw:Tt,getDir:kt};export{xt as C,vt as a,Nt as c,Lt as s};
@@ -1,2 +0,0 @@
1
- import{p as o}from"./BDchM60p.js";import{a as e,ad as s,aE as i,r as g}from"./CnCQnNEp.js";var d={parse:e(async r=>{const a=await o("info",r);s.debug(a)},"parse")},p={version:"11.17.0"},v=e(()=>p.version,"getVersion"),m={getVersion:v},c=e((r,a,n)=>{s.debug(`rendering info diagram
2
- `+r);const t=i(a);g(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},_={parser:d,db:m,renderer:f};export{_ as diagram};
@@ -1 +0,0 @@
1
- import{R as $n,b$ as Ye,ay as Jn,aD as Bn,a as jn,bL as yn,b2 as xe}from"./BgmOiuVG.js";import{b as ke,t as Nn,c as He,a as de}from"./CAM1CwRY.js";import{i as We}from"./Gi6I4Gst.js";function mr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t<o||t===void 0&&o>=o)&&(t=o)}return t}function hr(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let o of n)(o=e(o,++r,n))!=null&&(t>o||t===void 0&&o>=o)&&(t=o)}return t}function Le(n){return n}var sn=1,Tn=2,Fn=3,cn=4,An=1e-6;function Ne(n){return"translate("+n+",0)"}function Ae(n){return"translate(0,"+n+")"}function Oe(n){return e=>+n(e)}function Ie(n,e){return e=Math.max(0,n.bandwidth()-e*2)/2,n.round()&&(e=Math.round(e)),t=>+n(t)+e}function ze(){return!this.__axis}function En(n,e){var t=[],r=null,o=null,a=6,i=6,T=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=n===sn||n===cn?-1:1,M=n===cn||n===Tn?"x":"y",v=n===sn||n===Fn?Ne:Ae;function f(l){var H=r??(e.ticks?e.ticks.apply(e,t):e.domain()),R=o??(e.tickFormat?e.tickFormat.apply(e,t):Le),Z=Math.max(a,0)+T,_=e.range(),V=+_[0]+C,b=+_[_.length-1]+C,S=(e.bandwidth?Ie:Oe)(e.copy(),C),L=l.selection?l.selection():l,s=L.selectAll(".domain").data([null]),p=L.selectAll(".tick").data(H,e).order(),P=p.exit(),j=p.enter().append("g").attr("class","tick"),q=p.select("line"),Q=p.select("text");s=s.merge(s.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(j),q=q.merge(j.append("line").attr("stroke","currentColor").attr(M+"2",m*a)),Q=Q.merge(j.append("text").attr("fill","currentColor").attr(M,m*Z).attr("dy",n===sn?"0em":n===Fn?"0.71em":"0.32em")),l!==L&&(s=s.transition(l),p=p.transition(l),q=q.transition(l),Q=Q.transition(l),P=P.transition(l).attr("opacity",An).attr("transform",function(d){return isFinite(d=S(d))?v(d+C):this.getAttribute("transform")}),j.attr("opacity",An).attr("transform",function(d){var E=this.parentNode.__axis;return v((E&&isFinite(E=E(d))?E:S(d))+C)})),P.remove(),s.attr("d",n===cn||n===Tn?i?"M"+m*i+","+V+"H"+C+"V"+b+"H"+m*i:"M"+C+","+V+"V"+b:i?"M"+V+","+m*i+"V"+C+"H"+b+"V"+m*i:"M"+V+","+C+"H"+b),p.attr("opacity",1).attr("transform",function(d){return v(S(d)+C)}),q.attr(M+"2",m*a),Q.attr(M,m*Z).text(R),L.filter(ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===Tn?"start":n===cn?"end":"middle"),L.each(function(){this.__axis=S})}return f.scale=function(l){return arguments.length?(e=l,f):e},f.ticks=function(){return t=Array.from(arguments),f},f.tickArguments=function(l){return arguments.length?(t=l==null?[]:Array.from(l),f):t.slice()},f.tickValues=function(l){return arguments.length?(r=l==null?null:Array.from(l),f):r&&r.slice()},f.tickFormat=function(l){return arguments.length?(o=l,f):o},f.tickSize=function(l){return arguments.length?(a=i=+l,f):a},f.tickSizeInner=function(l){return arguments.length?(a=+l,f):a},f.tickSizeOuter=function(l){return arguments.length?(i=+l,f):i},f.tickPadding=function(l){return arguments.length?(T=+l,f):T},f.offset=function(l){return arguments.length?(C=+l,f):C},f}function yr(n){return En(sn,n)}function Tr(n){return En(Fn,n)}const Ze=Math.PI/180,Ve=180/Math.PI,ln=18,Gn=.96422,Kn=1,ne=.82521,ee=4/29,nn=6/29,te=3*nn*nn,Pe=nn*nn*nn;function re(n){if(n instanceof W)return new W(n.l,n.a,n.b,n.opacity);if(n instanceof N)return ue(n);n instanceof $n||(n=Ye(n));var e=pn(n.r),t=pn(n.g),r=pn(n.b),o=Mn((.2225045*e+.7168786*t+.0606169*r)/Kn),a,i;return e===t&&t===r?a=i=o:(a=Mn((.4360747*e+.3850649*t+.1430804*r)/Gn),i=Mn((.0139322*e+.0971045*t+.7141733*r)/ne)),new W(116*o-16,500*(a-o),200*(o-i),n.opacity)}function Re(n,e,t,r){return arguments.length===1?re(n):new W(n,e,t,r??1)}function W(n,e,t,r){this.l=+n,this.a=+e,this.b=+t,this.opacity=+r}Jn(W,Re,Bn(jn,{brighter(n){return new W(this.l+ln*(n??1),this.a,this.b,this.opacity)},darker(n){return new W(this.l-ln*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=Gn*Cn(e),n=Kn*Cn(n),t=ne*Cn(t),new $n(Un(3.1338561*e-1.6168667*n-.4906146*t),Un(-.9787684*e+1.9161415*n+.033454*t),Un(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function Mn(n){return n>Pe?Math.pow(n,1/3):n/te+ee}function Cn(n){return n>nn?n*n*n:te*(n-ee)}function Un(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function pn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _e(n){if(n instanceof N)return new N(n.h,n.c,n.l,n.opacity);if(n instanceof W||(n=re(n)),n.a===0&&n.b===0)return new N(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var e=Math.atan2(n.b,n.a)*Ve;return new N(e<0?e+360:e,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Yn(n,e,t,r){return arguments.length===1?_e(n):new N(n,e,t,r??1)}function N(n,e,t,r){this.h=+n,this.c=+e,this.l=+t,this.opacity=+r}function ue(n){if(isNaN(n.h))return new W(n.l,0,0,n.opacity);var e=n.h*Ze;return new W(n.l,Math.cos(e)*n.c,Math.sin(e)*n.c,n.opacity)}Jn(N,Yn,Bn(jn,{brighter(n){return new N(this.h,this.c,this.l+ln*(n??1),this.opacity)},darker(n){return new N(this.h,this.c,this.l-ln*(n??1),this.opacity)},rgb(){return ue(this).rgb()}}));function qe(n){return function(e,t){var r=n((e=Yn(e)).h,(t=Yn(t)).h),o=yn(e.c,t.c),a=yn(e.l,t.l),i=yn(e.opacity,t.opacity);return function(T){return e.h=r(T),e.c=o(T),e.l=a(T),e.opacity=i(T),e+""}}}const Mr=qe(xe);function Qe(n,e){n=n.slice();var t=0,r=n.length-1,o=n[t],a=n[r],i;return a<o&&(i=t,t=r,r=i,i=o,o=a,a=i),n[t]=e.floor(o),n[r]=e.ceil(a),n}const Dn=new Date,wn=new Date;function D(n,e,t,r){function o(a){return n(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(n(a=new Date(+a)),a),o.ceil=a=>(n(a=new Date(a-1)),e(a,1),n(a),a),o.round=a=>{const i=o(a),T=o.ceil(a);return a-i<T-a?i:T},o.offset=(a,i)=>(e(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,T)=>{const C=[];if(a=o.ceil(a),T=T==null?1:Math.floor(T),!(a<i)||!(T>0))return C;let m;do C.push(m=new Date(+a)),e(a,T),n(a);while(m<a&&a<i);return C},o.filter=a=>D(i=>{if(i>=i)for(;n(i),!a(i);)i.setTime(i-1)},(i,T)=>{if(i>=i)if(T<0)for(;++T<=0;)for(;e(i,-1),!a(i););else for(;--T>=0;)for(;e(i,1),!a(i););}),t&&(o.count=(a,i)=>(Dn.setTime(+a),wn.setTime(+i),n(Dn),n(wn),Math.floor(t(Dn,wn))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const fn=D(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);fn.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?D(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):fn);fn.range;const A=1e3,k=A*60,O=k*60,I=O*24,xn=I*7,On=I*30,vn=I*365,K=D(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*A)},(n,e)=>(e-n)/A,n=>n.getUTCSeconds());K.range;const kn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getMinutes());kn.range;const Xe=D(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*k)},(n,e)=>(e-n)/k,n=>n.getUTCMinutes());Xe.range;const Hn=D(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*A-n.getMinutes()*k)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getHours());Hn.range;const $e=D(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*O)},(n,e)=>(e-n)/O,n=>n.getUTCHours());$e.range;const on=D(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*k)/I,n=>n.getDate()-1);on.range;const dn=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>n.getUTCDate()-1);dn.range;const Je=D(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/I,n=>Math.floor(n/I));Je.range;function J(n){return D(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*k)/xn)}const hn=J(0),gn=J(1),Be=J(2),je=J(3),en=J(4),Ee=J(5),Ge=J(6);hn.range;gn.range;Be.range;je.range;en.range;Ee.range;Ge.range;function B(n){return D(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/xn)}const ae=B(0),mn=B(1),Ke=B(2),nt=B(3),tn=B(4),et=B(5),tt=B(6);ae.range;mn.range;Ke.range;nt.range;tn.range;et.range;tt.range;const Wn=D(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Wn.range;const rt=D(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());rt.range;const z=D(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());z.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)});z.range;const $=D(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());$.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:D(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)});$.range;function ut(n,e,t,r,o,a){const i=[[K,1,A],[K,5,5*A],[K,15,15*A],[K,30,30*A],[a,1,k],[a,5,5*k],[a,15,15*k],[a,30,30*k],[o,1,O],[o,3,3*O],[o,6,6*O],[o,12,12*O],[r,1,I],[r,2,2*I],[t,1,xn],[e,1,On],[e,3,3*On],[n,1,vn]];function T(m,M,v){const f=M<m;f&&([m,M]=[M,m]);const l=v&&typeof v.range=="function"?v:C(m,M,v),H=l?l.range(m,+M+1):[];return f?H.reverse():H}function C(m,M,v){const f=Math.abs(M-m)/v,l=ke(([,,Z])=>Z).right(i,f);if(l===i.length)return n.every(Nn(m/vn,M/vn,v));if(l===0)return fn.every(Math.max(Nn(m,M,v),1));const[H,R]=i[f/i[l-1][2]<i[l][2]/f?l-1:l];return H.every(R)}return[T,C]}const[at,ot]=ut(z,Wn,hn,on,Hn,kn);function bn(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Sn(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function rn(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function it(n){var e=n.dateTime,t=n.date,r=n.time,o=n.periods,a=n.days,i=n.shortDays,T=n.months,C=n.shortMonths,m=un(o),M=an(o),v=un(a),f=an(a),l=un(i),H=an(i),R=un(T),Z=an(T),_=un(C),V=an(C),b={a:ye,A:Te,b:Me,B:Ce,c:null,d:Rn,e:Rn,f:Ht,g:Vt,G:Rt,H:Yt,I:xt,j:kt,L:oe,m:dt,M:Wt,p:Ue,q:pe,Q:Qn,s:Xn,S:Lt,u:Nt,U:At,V:Ot,w:It,W:zt,x:null,X:null,y:Zt,Y:Pt,Z:_t,"%":qn},S={a:De,A:we,b:ve,B:be,c:null,d:_n,e:_n,f:$t,g:rr,G:ar,H:qt,I:Qt,j:Xt,L:ce,m:Jt,M:Bt,p:Se,q:Fe,Q:Qn,s:Xn,S:jt,u:Et,U:Gt,V:Kt,w:nr,W:er,x:null,X:null,y:tr,Y:ur,Z:or,"%":qn},L={a:q,A:Q,b:d,B:E,c:ge,d:Vn,e:Vn,f:vt,g:Zn,G:zn,H:Pn,I:Pn,j:Ut,L:wt,m:Ct,M:pt,p:j,q:Mt,Q:St,s:Ft,S:Dt,u:gt,U:mt,V:ht,w:ft,W:yt,x:me,X:he,y:Zn,Y:zn,Z:Tt,"%":bt};b.x=s(t,b),b.X=s(r,b),b.c=s(e,b),S.x=s(t,S),S.X=s(r,S),S.c=s(e,S);function s(c,g){return function(h){var u=[],F=-1,U=0,Y=c.length,x,X,Ln;for(h instanceof Date||(h=new Date(+h));++F<Y;)c.charCodeAt(F)===37&&(u.push(c.slice(U,F)),(X=In[x=c.charAt(++F)])!=null?x=c.charAt(++F):X=x==="e"?" ":"0",(Ln=g[x])&&(x=Ln(h,X)),u.push(x),U=F+1);return u.push(c.slice(U,F)),u.join("")}}function p(c,g){return function(h){var u=rn(1900,void 0,1),F=P(u,c,h+="",0),U,Y;if(F!=h.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(u.s*1e3+("L"in u?u.L:0));if(g&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+u.p*12),u.m===void 0&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(U=Sn(rn(u.y,0,1)),Y=U.getUTCDay(),U=Y>4||Y===0?mn.ceil(U):mn(U),U=dn.offset(U,(u.V-1)*7),u.y=U.getUTCFullYear(),u.m=U.getUTCMonth(),u.d=U.getUTCDate()+(u.w+6)%7):(U=bn(rn(u.y,0,1)),Y=U.getDay(),U=Y>4||Y===0?gn.ceil(U):gn(U),U=on.offset(U,(u.V-1)*7),u.y=U.getFullYear(),u.m=U.getMonth(),u.d=U.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Y="Z"in u?Sn(rn(u.y,0,1)).getUTCDay():bn(rn(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Y+5)%7:u.w+u.U*7-(Y+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Sn(u)):bn(u)}}function P(c,g,h,u){for(var F=0,U=g.length,Y=h.length,x,X;F<U;){if(u>=Y)return-1;if(x=g.charCodeAt(F++),x===37){if(x=g.charAt(F++),X=L[x in In?g.charAt(F++):x],!X||(u=X(c,h,u))<0)return-1}else if(x!=h.charCodeAt(u++))return-1}return u}function j(c,g,h){var u=m.exec(g.slice(h));return u?(c.p=M.get(u[0].toLowerCase()),h+u[0].length):-1}function q(c,g,h){var u=l.exec(g.slice(h));return u?(c.w=H.get(u[0].toLowerCase()),h+u[0].length):-1}function Q(c,g,h){var u=v.exec(g.slice(h));return u?(c.w=f.get(u[0].toLowerCase()),h+u[0].length):-1}function d(c,g,h){var u=_.exec(g.slice(h));return u?(c.m=V.get(u[0].toLowerCase()),h+u[0].length):-1}function E(c,g,h){var u=R.exec(g.slice(h));return u?(c.m=Z.get(u[0].toLowerCase()),h+u[0].length):-1}function ge(c,g,h){return P(c,e,g,h)}function me(c,g,h){return P(c,t,g,h)}function he(c,g,h){return P(c,r,g,h)}function ye(c){return i[c.getDay()]}function Te(c){return a[c.getDay()]}function Me(c){return C[c.getMonth()]}function Ce(c){return T[c.getMonth()]}function Ue(c){return o[+(c.getHours()>=12)]}function pe(c){return 1+~~(c.getMonth()/3)}function De(c){return i[c.getUTCDay()]}function we(c){return a[c.getUTCDay()]}function ve(c){return C[c.getUTCMonth()]}function be(c){return T[c.getUTCMonth()]}function Se(c){return o[+(c.getUTCHours()>=12)]}function Fe(c){return 1+~~(c.getUTCMonth()/3)}return{format:function(c){var g=s(c+="",b);return g.toString=function(){return c},g},parse:function(c){var g=p(c+="",!1);return g.toString=function(){return c},g},utcFormat:function(c){var g=s(c+="",S);return g.toString=function(){return c},g},utcParse:function(c){var g=p(c+="",!0);return g.toString=function(){return c},g}}}var In={"-":"",_:" ",0:"0"},w=/^\s*\d+/,ct=/^%/,st=/[\\^$*+?|[\]().{}]/g;function y(n,e,t){var r=n<0?"-":"",o=(r?-n:n)+"",a=o.length;return r+(a<t?new Array(t-a+1).join(e)+o:o)}function lt(n){return n.replace(st,"\\$&")}function un(n){return new RegExp("^(?:"+n.map(lt).join("|")+")","i")}function an(n){return new Map(n.map((e,t)=>[e.toLowerCase(),t]))}function ft(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.w=+r[0],t+r[0].length):-1}function gt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.u=+r[0],t+r[0].length):-1}function mt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.U=+r[0],t+r[0].length):-1}function ht(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.V=+r[0],t+r[0].length):-1}function yt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.W=+r[0],t+r[0].length):-1}function zn(n,e,t){var r=w.exec(e.slice(t,t+4));return r?(n.y=+r[0],t+r[0].length):-1}function Zn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),t+r[0].length):-1}function Tt(n,e,t){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),t+r[0].length):-1}function Mt(n,e,t){var r=w.exec(e.slice(t,t+1));return r?(n.q=r[0]*3-3,t+r[0].length):-1}function Ct(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.m=r[0]-1,t+r[0].length):-1}function Vn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.d=+r[0],t+r[0].length):-1}function Ut(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.m=0,n.d=+r[0],t+r[0].length):-1}function Pn(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.H=+r[0],t+r[0].length):-1}function pt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.M=+r[0],t+r[0].length):-1}function Dt(n,e,t){var r=w.exec(e.slice(t,t+2));return r?(n.S=+r[0],t+r[0].length):-1}function wt(n,e,t){var r=w.exec(e.slice(t,t+3));return r?(n.L=+r[0],t+r[0].length):-1}function vt(n,e,t){var r=w.exec(e.slice(t,t+6));return r?(n.L=Math.floor(r[0]/1e3),t+r[0].length):-1}function bt(n,e,t){var r=ct.exec(e.slice(t,t+1));return r?t+r[0].length:-1}function St(n,e,t){var r=w.exec(e.slice(t));return r?(n.Q=+r[0],t+r[0].length):-1}function Ft(n,e,t){var r=w.exec(e.slice(t));return r?(n.s=+r[0],t+r[0].length):-1}function Rn(n,e){return y(n.getDate(),e,2)}function Yt(n,e){return y(n.getHours(),e,2)}function xt(n,e){return y(n.getHours()%12||12,e,2)}function kt(n,e){return y(1+on.count(z(n),n),e,3)}function oe(n,e){return y(n.getMilliseconds(),e,3)}function Ht(n,e){return oe(n,e)+"000"}function dt(n,e){return y(n.getMonth()+1,e,2)}function Wt(n,e){return y(n.getMinutes(),e,2)}function Lt(n,e){return y(n.getSeconds(),e,2)}function Nt(n){var e=n.getDay();return e===0?7:e}function At(n,e){return y(hn.count(z(n)-1,n),e,2)}function ie(n){var e=n.getDay();return e>=4||e===0?en(n):en.ceil(n)}function Ot(n,e){return n=ie(n),y(en.count(z(n),n)+(z(n).getDay()===4),e,2)}function It(n){return n.getDay()}function zt(n,e){return y(gn.count(z(n)-1,n),e,2)}function Zt(n,e){return y(n.getFullYear()%100,e,2)}function Vt(n,e){return n=ie(n),y(n.getFullYear()%100,e,2)}function Pt(n,e){return y(n.getFullYear()%1e4,e,4)}function Rt(n,e){var t=n.getDay();return n=t>=4||t===0?en(n):en.ceil(n),y(n.getFullYear()%1e4,e,4)}function _t(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+y(e/60|0,"0",2)+y(e%60,"0",2)}function _n(n,e){return y(n.getUTCDate(),e,2)}function qt(n,e){return y(n.getUTCHours(),e,2)}function Qt(n,e){return y(n.getUTCHours()%12||12,e,2)}function Xt(n,e){return y(1+dn.count($(n),n),e,3)}function ce(n,e){return y(n.getUTCMilliseconds(),e,3)}function $t(n,e){return ce(n,e)+"000"}function Jt(n,e){return y(n.getUTCMonth()+1,e,2)}function Bt(n,e){return y(n.getUTCMinutes(),e,2)}function jt(n,e){return y(n.getUTCSeconds(),e,2)}function Et(n){var e=n.getUTCDay();return e===0?7:e}function Gt(n,e){return y(ae.count($(n)-1,n),e,2)}function se(n){var e=n.getUTCDay();return e>=4||e===0?tn(n):tn.ceil(n)}function Kt(n,e){return n=se(n),y(tn.count($(n),n)+($(n).getUTCDay()===4),e,2)}function nr(n){return n.getUTCDay()}function er(n,e){return y(mn.count($(n)-1,n),e,2)}function tr(n,e){return y(n.getUTCFullYear()%100,e,2)}function rr(n,e){return n=se(n),y(n.getUTCFullYear()%100,e,2)}function ur(n,e){return y(n.getUTCFullYear()%1e4,e,4)}function ar(n,e){var t=n.getUTCDay();return n=t>=4||t===0?tn(n):tn.ceil(n),y(n.getUTCFullYear()%1e4,e,4)}function or(){return"+0000"}function qn(){return"%"}function Qn(n){return+n}function Xn(n){return Math.floor(+n/1e3)}var G,le;ir({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ir(n){return G=it(n),le=G.format,G.parse,G.utcFormat,G.utcParse,G}function cr(n){return new Date(n)}function sr(n){return n instanceof Date?+n:+new Date(+n)}function fe(n,e,t,r,o,a,i,T,C,m){var M=He(),v=M.invert,f=M.domain,l=m(".%L"),H=m(":%S"),R=m("%I:%M"),Z=m("%I %p"),_=m("%a %d"),V=m("%b %d"),b=m("%B"),S=m("%Y");function L(s){return(C(s)<s?l:T(s)<s?H:i(s)<s?R:a(s)<s?Z:r(s)<s?o(s)<s?_:V:t(s)<s?b:S)(s)}return M.invert=function(s){return new Date(v(s))},M.domain=function(s){return arguments.length?f(Array.from(s,sr)):f().map(cr)},M.ticks=function(s){var p=f();return n(p[0],p[p.length-1],s??10)},M.tickFormat=function(s,p){return p==null?L:m(p)},M.nice=function(s){var p=f();return(!s||typeof s.range!="function")&&(s=e(p[0],p[p.length-1],s??10)),s?f(Qe(p,s)):M},M.copy=function(){return de(M,fe(n,e,t,r,o,a,i,T,C,m))},M}function Cr(){return We.apply(fe(at,ot,z,Wn,hn,on,Hn,kn,K,le).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Tr as a,yr as b,fn as c,hr as d,on as e,le as f,Ee as g,Hn as h,Mr as i,kn as j,gn as k,Wn as l,mr as m,Ge as n,hn as o,en as p,Be as q,je as r,K as s,Cr as t};
@@ -1,34 +0,0 @@
1
- import{k as Kt,c6 as Wt,aK as Ht,aP as Yt,c9 as Xt,aL as Zt,c7 as Jt,f as w,aN as wt,c4 as Qt,c3 as ot,v as $t,bk as te,by as ee,as as ne,a6 as se,a0 as ie,$ as oe,ax as re}from"./BgmOiuVG.js";const It=(t,n)=>Kt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)J(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);J(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Ot(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(I=>{I.size==0&&I.sets.length==1&&C.add(I.sets[0])}),d=d.filter(I=>!I.sets.some(F=>C.has(F)));let k={},D={};if(d.length>0){let I=m(d,{lossFunction:v,distinct:b});l&&(I=Dt(I,r,h)),k=Nt(I,s,e,i,f),D=Lt(k,d,M)}const U={};d.forEach(I=>{I.label&&(U[I.sets]=I.label)});function V(I){if(I.sets in U)return U[I.sets];if(I.sets.length==1)return""+I.sets[0]}x.selectAll("svg").data([k]).enter().append("svg");const O=x.select("svg");n?O.attr("viewBox",`0 0 ${s} ${e}`):O.attr("width",s).attr("height",e);const R={};let T=!1;O.selectAll(".venn-area path").each(function(I){const F=this.getAttribute("d");I.sets.length==1&&F&&!b&&(T=!0,R[I.sets[0]]=Me(F))});function A(I){return F=>{const H=I.sets.map(et=>{let Y=R[et],Z=k[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return St(H,p)}}const G=O.selectAll(".venn-area").data(d,I=>I.sets),P=G.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),B=P.append("path"),L=P.append("text").attr("class","label").text(I=>V(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),L.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function W(I){return typeof I.transition=="function"?I.transition("venn").duration(o):I}let z=x;T&&typeof z.transition=="function"?(z=W(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",I=>St(I.sets.map(F=>k[F])),p);const N=z.selectAll("text").filter(I=>I.sets in D).text(I=>V(I)).attr("x",I=>Math.floor(D[I.sets].x)).attr("y",I=>Math.floor(D[I.sets].y));u&&(T?"on"in N?N.on("end",rt(k,V)):N.each("end",rt(k,V)):N.each(rt(k,V)));const j=W(G.exit()).remove();typeof G.transition=="function"&&j.selectAll("path").attrTween("d",A);const X=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(L.style("font-size","0px"),N.style("font-size",y),X.style("font-size","0px")),{circles:k,textCentres:D,nodes:G,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function ke(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=ke(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function Ie(t,n,s){const e=[];return e.push(`
2
- M`,t,n),e.push(`
3
- m`,-s,0),e.push(`
4
- a`,s,s,0,1,0,s*2,0),e.push(`
5
- a`,s,s,0,1,0,-s*2,0),e.join(" ")}function Me(t){const n=t.split(" ");return{x:Number.parseFloat(n[1]),y:Number.parseFloat(n[2]),radius:-Number.parseFloat(n[4])}}function Pt(t){if(t.length===0)return[];const n={};return st(t,n),n.arcs}function Bt(t,n){if(t.length===0)return"M 0 0";const s=Math.pow(10,n||0),e=n!=null?o=>Math.round(o*s)/s:o=>o;if(t.length==1){const o=t[0].circle;return Ie(e(o.x),e(o.y),e(o.radius))}const i=[`
6
- M`,e(t[0].p2.x),e(t[0].p2.y)];for(const o of t){const r=e(o.circle.radius);i.push(`
7
- A`,r,r,0,o.large?1:0,o.sweep?1:0,e(o.p1.x),e(o.p1.y))}return i.join(" ")}function St(t,n){return Bt(Pt(t),n)}function Se(t,n={}){const{lossFunction:s,layoutFunction:e=At,normalize:i=!0,orientation:o=Math.PI/2,orientationOrder:r,width:l=600,height:f=350,padding:u=15,scaleToFit:a=!1,symmetricalTextCentre:y=!1,distinct:h,round:b=2}=n;let p=e(t,{lossFunction:s==="default"||!s?tt:s==="logRatio"?Ct:s,distinct:h});i&&(p=Dt(p,o,r));const M=Nt(p,l,f,u,a),E=Lt(M,t,y),_=new Map(Object.keys(M).map(m=>[m,{set:m,x:M[m].x,y:M[m].y,radius:M[m].radius}])),S=t.map(m=>{const v=m.sets.map(d=>_.get(d)),c=Pt(v),x=Bt(c,b);return{circles:v,arcs:c,path:x,area:m,has:new Set(m.sets)}});function g(m){let v="";for(const c of S)c.has.size>m.length&&m.every(x=>c.has.has(x))&&(v+=" "+c.path);return v}return S.map(({circles:m,arcs:v,path:c,area:x})=>({data:x,text:E[x.sets],circles:m,arcs:v,path:c,distinctPath:c+g(x.sets)}))}var gt=(function(){var t=w(function(S,g,m,v){for(m=m||{},v=S.length;v--;m[S[v]]=g);return m},"o"),n=[5,8],s=[7,8,11,12,17,19,22,24],e=[1,17],i=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],r=[1,31],l=[1,39],f=[7,8,11,12,17,19,22,24,27],u=[1,57],a=[1,56],y=[1,58],h=[1,59],b=[1,60],p=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],M={trace:w(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:w(function(g,m,v,c,x,d,C){var k=d.length-1;switch(x){case 1:return d[k-1];case 2:case 3:case 4:this.$=[];break;case 5:d[k-1].push(d[k]),this.$=d[k-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=d[k];break;case 8:c.setDiagramTitle(d[k].substr(6)),this.$=d[k].substr(6);break;case 9:c.addSubsetData([d[k]],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 10:c.addSubsetData([d[k-1]],d[k],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 11:c.addSubsetData([d[k-2]],void 0,parseFloat(d[k])),c.setIndentMode&&c.setIndentMode(!0);break;case 12:c.addSubsetData([d[k-3]],d[k-2],parseFloat(d[k])),c.setIndentMode&&c.setIndentMode(!0);break;case 13:if(d[k].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(d[k]),c.addSubsetData(d[k],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 14:if(d[k-1].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(d[k-1]),c.addSubsetData(d[k-1],d[k],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 15:if(d[k-2].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(d[k-2]),c.addSubsetData(d[k-2],void 0,parseFloat(d[k])),c.setIndentMode&&c.setIndentMode(!0);break;case 16:if(d[k-3].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(d[k-3]),c.addSubsetData(d[k-3],d[k-2],parseFloat(d[k])),c.setIndentMode&&c.setIndentMode(!0);break;case 17:case 18:case 19:c.addTextData(d[k-1],d[k],void 0);break;case 20:case 21:c.addTextData(d[k-2],d[k-1],d[k]);break;case 23:c.addStyleData(d[k-1],d[k]);break;case 24:case 25:case 26:var D=c.getCurrentSets();if(!D)throw new Error("text requires set");c.addTextData(D,d[k],void 0);break;case 27:case 28:var D=c.getCurrentSets();if(!D)throw new Error("text requires set");c.addTextData(D,d[k-1],d[k]);break;case 29:case 41:this.$=[d[k]];break;case 30:case 42:this.$=[...d[k-2],d[k]];break;case 31:this.$=[d[k-2],d[k]];break;case 33:this.$=d[k].join(" ");break;case 34:this.$=[d[k]];break;case 35:d[k-1].push(d[k]),this.$=d[k-1];break;case 43:case 44:this.$=d[k];break}},"anonymous"),table:[t(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(s,[2,4],{6:5}),t(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),t(s,[2,8]),{13:16,20:e,21:i},{13:20,18:19,20:e,21:i},{13:20,18:21,20:e,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:e,21:i},t(s,[2,9],{14:[1,27],15:[1,28]}),t(o,[2,43]),t(o,[2,44]),t(s,[2,13],{14:[1,29],15:[1,30],27:r}),t(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:r},t(s,[2,22]),t(s,[2,24],{14:[1,35]}),t(s,[2,25],{14:[1,36]}),t(s,[2,26]),{20:l,25:37,26:38,27:r},t(s,[2,10],{15:[1,40]}),{16:[1,41]},t(s,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:e,21:i},t(s,[2,17],{14:[1,45]}),t(s,[2,18],{14:[1,46]}),t(s,[2,19]),t(s,[2,27]),t(s,[2,28]),t(s,[2,23],{27:[1,47]}),t(f,[2,29]),{15:[1,48]},{16:[1,49]},t(s,[2,11]),{16:[1,50]},t(s,[2,15]),t(o,[2,42]),t(s,[2,20]),t(s,[2,21]),{20:l,26:51},{16:u,20:a,21:[1,53],28:52,29:54,30:55,31:y,32:h,33:b},t(s,[2,12]),t(s,[2,16]),t(f,[2,30]),t(f,[2,31]),t(f,[2,32]),t(f,[2,33],{30:61,16:u,20:a,31:y,32:h,33:b}),t(p,[2,34]),t(p,[2,36]),t(p,[2,37]),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,35])],defaultActions:{6:[2,1]},parseError:w(function(g,m){if(m.recoverable)this.trace(g);else{var v=new Error(g);throw v.hash=m,v}},"parseError"),parse:w(function(g){var m=this,v=[0],c=[],x=[null],d=[],C=this.table,k="",D=0,U=0,V=2,O=1,R=d.slice.call(arguments,1),T=Object.create(this.lexer),A={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(A.yy[G]=this.yy[G]);T.setInput(g,A.yy),A.yy.lexer=T,A.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var P=T.yylloc;d.push(P);var B=T.options&&T.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(K){v.length=v.length-2*K,x.length=x.length-K,d.length=d.length-K}w(L,"popStack");function W(){var K;return K=c.pop()||T.lex()||O,typeof K!="number"&&(K instanceof Array&&(c=K,K=c.pop()),K=m.symbols_[K]||K),K}w(W,"lex");for(var z,N,j,X,I={},F,H,et,Y;;){if(N=v[v.length-1],this.defaultActions[N]?j=this.defaultActions[N]:((z===null||typeof z>"u")&&(z=W()),j=C[N]&&C[N][z]),typeof j>"u"||!j.length||!j[0]){var Z="";Y=[];for(F in C[N])this.terminals_[F]&&F>V&&Y.push("'"+this.terminals_[F]+"'");T.showPosition?Z="Parse error on line "+(D+1)+`:
8
- `+T.showPosition()+`
9
- Expecting `+Y.join(", ")+", got '"+(this.terminals_[z]||z)+"'":Z="Parse error on line "+(D+1)+": Unexpected "+(z==O?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(Z,{text:T.match,token:this.terminals_[z]||z,line:T.yylineno,loc:P,expected:Y})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+z);switch(j[0]){case 1:v.push(z),x.push(T.yytext),d.push(T.yylloc),v.push(j[1]),z=null,U=T.yyleng,k=T.yytext,D=T.yylineno,P=T.yylloc;break;case 2:if(H=this.productions_[j[1]][1],I.$=x[x.length-H],I._$={first_line:d[d.length-(H||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(H||1)].first_column,last_column:d[d.length-1].last_column},B&&(I._$.range=[d[d.length-(H||1)].range[0],d[d.length-1].range[1]]),X=this.performAction.apply(I,[k,U,D,A.yy,j[1],x,d].concat(R)),typeof X<"u")return X;H&&(v=v.slice(0,-1*H*2),x=x.slice(0,-1*H),d=d.slice(0,-1*H)),v.push(this.productions_[j[1]][0]),x.push(I.$),d.push(I._$),et=C[v[v.length-2]][v[v.length-1]],v.push(et);break;case 3:return!0}}return!0},"parse")},E=(function(){var S={EOF:1,parseError:w(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:w(function(g,m){return this.yy=m||this.yy||{},this._input=g,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:w(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var m=g.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:w(function(g){var m=g.length,v=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===c.length?this.yylloc.first_column:0)+c[c.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:w(function(){return this._more=!0,this},"more"),reject:w(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).
10
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:w(function(g){this.unput(this.match.slice(g))},"less"),pastInput:w(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:w(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:w(function(){var g=this.pastInput(),m=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
11
- `+m+"^"},"showPosition"),test_match:w(function(g,m){var v,c,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),c=g[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(g[0].length),this.matched+=g[0],v=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var d in x)this[d]=x[d];return!1}return!1},"test_match"),next:w(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,m,v,c;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),d=0;d<x.length;d++)if(v=this._input.match(this.rules[x[d]]),v&&(!m||v[0].length>m[0].length)){if(m=v,c=d,this.options.backtrack_lexer){if(g=this.test_match(v,x[d]),g!==!1)return g;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(g=this.test_match(m,x[c]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:w(function(){var m=this.next();return m||this.lex()},"lex"),begin:w(function(m){this.conditionStack.push(m)},"begin"),popState:w(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:w(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:w(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:w(function(m){this.begin(m)},"pushState"),stateStackSize:w(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:w(function(m,v,c,x){switch(c){case 0:break;case 1:break;case 2:break;case 3:if(m.getIndentMode&&m.getIndentMode())return m.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:m.setIndentMode&&m.setIndentMode(!1),this.begin("INITIAL"),this.unput(v.yytext);break;case 6:return this.begin("bol"),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(m.consumeIndentText)m.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return v.yytext=v.yytext.slice(2,-2),14;case 17:return v.yytext=v.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return S})();M.lexer=E;function _(){this.yy={}}return w(_,"Parser"),_.prototype=M,M.Parser=_,new _})();gt.parser=gt;var we=gt,yt=[],pt=[],mt=[],bt=new Set,vt,kt=!1,_e=w((t,n,s)=>{const e=it(t).sort(),i=s??10/Math.pow(t.length,2);vt=e,e.length===1&&bt.add(e[0]),yt.push({sets:e,size:i,label:n?nt(n):void 0})},"addSubsetData"),Te=w(()=>yt,"getSubsetData"),nt=w(t=>{const n=t.trim();return n.length>=2&&n.startsWith('"')&&n.endsWith('"')?n.slice(1,-1):n},"normalizeText"),Ee=w(t=>t&&nt(t),"normalizeStyleValue"),ze=w((t,n,s)=>{const e=nt(n);pt.push({sets:it(t).sort(),id:e,label:s?nt(s):void 0})},"addTextData"),Ae=w((t,n)=>{const s=it(t).sort(),e={};for(const[i,o]of n)e[i]=Ee(o)??o;mt.push({targets:s,styles:e})},"addStyleData"),Re=w(()=>mt,"getStyleData"),it=w(t=>t.map(n=>nt(n)),"normalizeIdentifierList"),Ce=w(t=>{const s=it(t).filter(e=>!bt.has(e));if(s.length>0)throw new Error(`unknown set identifier: ${s.join(", ")}`)},"validateUnionIdentifiers"),De=w(()=>pt,"getTextData"),Ne=w(()=>vt,"getCurrentSets"),Oe=w(()=>kt,"getIndentMode"),Fe=w(t=>{kt=t},"setIndentMode"),je=re.venn;function Vt(){return oe(je,wt().venn)}w(Vt,"getConfig");var Le=w(()=>{ie(),yt.length=0,pt.length=0,mt.length=0,bt.clear(),vt=void 0,kt=!1},"customClear"),Pe={getConfig:Vt,clear:Le,setAccTitle:Jt,getAccTitle:Zt,setDiagramTitle:Xt,getDiagramTitle:Yt,getAccDescription:Ht,setAccDescription:Wt,addSubsetData:_e,getSubsetData:Te,addTextData:ze,addStyleData:Ae,validateUnionIdentifiers:Ce,getTextData:De,getStyleData:Re,getCurrentSets:Ne,getIndentMode:Oe,setIndentMode:Fe},Be=w(t=>`
13
- .venn-title {
14
- font-size: 32px;
15
- fill: ${t.vennTitleTextColor};
16
- font-family: ${t.fontFamily};
17
- }
18
-
19
- .venn-circle text {
20
- font-size: 48px;
21
- font-family: ${t.fontFamily};
22
- }
23
-
24
- .venn-intersection text {
25
- font-size: 48px;
26
- fill: ${t.vennSetTextColor};
27
- font-family: ${t.fontFamily};
28
- }
29
-
30
- .venn-text-node {
31
- font-family: ${t.fontFamily};
32
- color: ${t.vennSetTextColor};
33
- }
34
- `,"getStyles"),Ve=Be;function qt(t){const n=new Map;for(const s of t){const e=s.targets.join("|"),i=n.get(e);i?Object.assign(i,s.styles):n.set(e,{...s.styles})}return n}w(qt,"buildStyleByKey");var qe=w((t,n,s,e)=>{const i=e.db,o=i.getConfig?.(),{themeVariables:r,look:l,handDrawnSeed:f}=wt(),u=l==="handDrawn",a=[r.venn1,r.venn2,r.venn3,r.venn4,r.venn5,r.venn6,r.venn7,r.venn8].filter(Boolean),y=i.getDiagramTitle?.(),h=i.getSubsetData(),b=i.getTextData(),p=qt(i.getStyleData()),M=Gt(h),E=o?.width??800,_=o?.height??450,g=E/1600,m=y?48*g:0,v=r.primaryTextColor??r.textColor,c=Qt(n);c.attr("viewBox",`0 0 ${E} ${_}`),y&&c.append("text").text(y).attr("class","venn-title").attr("font-size",`${32*g}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*g).style("fill",r.vennTitleTextColor||r.titleColor);const x=ot(document.createElement("div")),d=ve().width(E).height(_-m);x.datum(M).call(d);const C=u?$t.svg(x.select("svg").node()):void 0,k=Se(M,{width:E,height:_-m,padding:o?.padding??15}),D=new Map;for(const R of k){const T=Q([...R.data.sets].sort());D.set(T,R)}b.length>0&&Ut(o,D,x,b,g,p);const U=te(r.background||"#f4f4f4");x.selectAll(".venn-circle").each(function(R,T){const A=ot(this),P=Q([...R.sets].sort()),B=p.get(P),L=B?.fill||a[T%a.length]||r.primaryColor;A.classed(`venn-set-${T%8}`,!0);const W=B?.["fill-opacity"]??.1,z=B?.stroke||L,N=B?.["stroke-width"]||`${5*g}`;if(u&&C){const X=D.get(P);if(X&&X.circles.length>0){const I=X.circles[0],F=C.circle(I.x,I.y,I.radius*2,{roughness:.7,seed:f,fill:It(L,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+T*60,stroke:z,strokeWidth:parseFloat(String(N))});A.select("path").remove(),A.node()?.insertBefore(F,A.select("text").node())}}else A.select("path").style("fill",L).style("fill-opacity",W).style("stroke",z).style("stroke-width",N).style("stroke-opacity",.95);const j=B?.color||(U?ee(L,30):ne(L,30));A.select("text").style("font-size",`${48*g}px`).style("fill",j)}),u&&C?x.selectAll(".venn-intersection").each(function(R){const T=ot(this),G=Q([...R.sets].sort()),P=p.get(G),B=P?.fill;if(B){const L=T.select("path"),W=L.attr("d");if(W){const z=C.path(W,{roughness:.7,seed:f,fill:It(B,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),N=L.node();N?.parentNode?.insertBefore(z,N),L.remove()}}else T.select("path").style("fill-opacity",0);T.select("text").style("font-size",`${48*g}px`).style("fill",P?.color??r.vennSetTextColor??v)}):(x.selectAll(".venn-intersection text").style("font-size",`${48*g}px`).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.color??r.vennSetTextColor??v}),x.selectAll(".venn-intersection path").style("fill-opacity",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill?1:0}).style("fill",R=>{const A=Q([...R.sets].sort());return p.get(A)?.fill??"transparent"}));const V=c.append("g").attr("transform",`translate(0, ${m})`),O=x.select("svg").node();if(O&&"childNodes"in O)for(const R of[...O.childNodes])V.node()?.appendChild(R);se(c,_,E,o?.useMaxWidth??!0)},"draw");function Q(t){return t.join("|")}w(Q,"stableSetsKey");function Ut(t,n,s,e,i,o){const r=t?.useDebugLayout??!1,f=s.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const a of e){const y=Q(a.sets),h=u.get(y);h?h.push(a):u.set(y,[a])}for(const[a,y]of u.entries()){const h=n.get(a);if(!h?.text)continue;const b=h.text.x,p=h.text.y,M=Math.min(...h.circles.map(O=>O.radius)),E=Math.min(...h.circles.map(O=>O.radius-Math.hypot(b-O.x,p-O.y)));let _=Number.isFinite(E)?Math.max(0,E):0;_===0&&Number.isFinite(M)&&(_=M*.6);const S=f.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);r&&S.append("circle").attr("class","venn-text-debug-circle").attr("cx",b).attr("cy",p).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const g=Math.max(80*i,_*2*.95),m=Math.max(60*i,_*2*.95),x=(h.data.label&&h.data.label.length>0?Math.min(32*i,_*.25):0)+(y.length<=2?30*i:0),d=b-g/2,C=p-m/2+x,k=Math.max(1,Math.ceil(Math.sqrt(y.length))),D=Math.max(1,Math.ceil(y.length/k)),U=g/k,V=m/D;for(const[O,R]of y.entries()){const T=O%k,A=Math.floor(O/k),G=d+U*(T+.5),P=C+V*(A+.5);r&&S.append("rect").attr("class","venn-text-debug-cell").attr("x",d+U*T).attr("y",C+V*A).attr("width",U).attr("height",V).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const B=U*.9,L=V*.9,W=S.append("foreignObject").attr("class","venn-text-node-fo").attr("width",B).attr("height",L).attr("x",G-B/2).attr("y",P-L/2).attr("overflow","visible"),z=o.get(R.id)?.color,N=W.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(R.label??R.id);z&&N.style("color",z)}}}w(Ut,"renderTextNodes");function Gt(t){const n=new Set(t.map(i=>[...i.sets].sort().join("|"))),s=new Map(t.filter(i=>i.sets.length===1&&i.size!==void 0).map(i=>[i.sets[0],i.size])),e=[];for(const i of t){if(i.sets.length<3)continue;const o=[...i.sets].sort();for(let r=0;r<o.length-1;r++)for(let l=r+1;l<o.length;l++){const f=[o[r],o[l]],u=f.join("|");if(!n.has(u)){n.add(u);const a=s.get(f[0]),y=s.get(f[1]),h=a!==void 0&&y!==void 0?Math.min(a,y)/4:2.5;e.push({sets:f,size:h,label:""})}}}return e.length>0?[...t,...e]:t}w(Gt,"ensurePairwiseSubsets");var Ue={draw:qe},Ke={parser:we,db:Pe,renderer:Ue,styles:Ve};export{Ke as diagram};
@@ -1 +0,0 @@
1
- import{s as r,a as s,c as e,C as t}from"./Cj_j-lXn.js";import{f as l}from"./BgmOiuVG.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
@@ -1 +0,0 @@
1
- import{l as o,s as r}from"../chunks/DyHBOL0Q.js";export{o as load_css,r as start};