@layers-app/editor 0.0.23 → 0.0.25

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 (223) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +6 -44
  3. package/dist/index.js +1 -1
  4. package/dist/{layers.BdanmQPF.js → layers.07qQUlOx.js} +1 -1
  5. package/dist/{layers.CBXpUMze.js → layers.0Uws2RMI.js} +35 -35
  6. package/dist/{layers.BpXiFzvR.js → layers.2klZ3piU.js} +1 -1
  7. package/dist/{layers.p9hSNB6N.js → layers.3O2dWJo4.js} +1 -1
  8. package/dist/{layers.x6ioP3u0.js → layers.3VppN-FK.js} +1 -1
  9. package/dist/{layers.kY3ZYtED.js → layers.3cmQBPRD.js} +1 -1
  10. package/dist/{layers.C-G7-Jg3.js → layers.5U29QNMz.js} +1 -1
  11. package/dist/{layers.CEXVJbhn.js → layers.5s_bUFw7.js} +1 -1
  12. package/dist/{layers.BFLg4UGe.js → layers.8dwcxQd3.js} +1 -1
  13. package/dist/{layers.D2q8ZYi2.js → layers.9EMwI8Xs.js} +15 -15
  14. package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
  15. package/dist/{layers.BBwDvE6l.js → layers.B-eOoyQV.js} +1820 -1814
  16. package/dist/{layers.CPV5PaJ7.js → layers.B-hOwYRy.js} +1 -1
  17. package/dist/{layers.PO65UmTA.js → layers.B0LHiU6c.js} +1 -1
  18. package/dist/{layers.CnD3z0eZ.js → layers.B1psjxfg.js} +1 -1
  19. package/dist/{layers.BUSnd1Ro.js → layers.B1tTFwlU.js} +1 -1
  20. package/dist/{layers.B39TZ2WV.js → layers.B3NaBxHH.js} +1 -1
  21. package/dist/{layers.DIrkcLlA.js → layers.B43rvwKV.js} +63 -63
  22. package/dist/{layers.Dg8Wbn90.js → layers.B7wN1gyM.js} +1 -1
  23. package/dist/{layers.tbRLuldN.js → layers.B9ocXRVO.js} +1 -1
  24. package/dist/{layers.CZh7NZyl.js → layers.BAWbBe9N.js} +1 -1
  25. package/dist/{layers.Cl9Tl2nd.js → layers.BAaIrX5p.js} +1 -1
  26. package/dist/layers.BAnc8Y8B.js +118 -0
  27. package/dist/{layers.CiNAQOA-.js → layers.BB7ssac6.js} +2 -2
  28. package/dist/{layers.Bz0ApNUe.js → layers.BBm66jcD.js} +14 -14
  29. package/dist/layers.BGF0mJI-.js +10 -0
  30. package/dist/{layers.kthR742N.js → layers.BJ2qg5fe.js} +1 -1
  31. package/dist/{layers.C_dOgKfE.js → layers.BK4BzYSQ.js} +1 -1
  32. package/dist/{layers.BST6tR9a.js → layers.BKoRqbkc.js} +1 -1
  33. package/dist/{layers.Bbl6qitU.js → layers.BLvgQy3M.js} +1 -1
  34. package/dist/{layers.DEfJs03Z.js → layers.BNEX6ffl.js} +1 -1
  35. package/dist/layers.BOEB6DhN.js +202 -0
  36. package/dist/{layers.ClaqpFnu.js → layers.BOdIgbDK.js} +2 -2
  37. package/dist/{layers.DalYdEkL.js → layers.BPTiALoi.js} +4 -4
  38. package/dist/{layers.B64g6Zx2.js → layers.BQHgH0c0.js} +1 -1
  39. package/dist/{layers.BFOl7cA-.js → layers.BQUkW6Sr.js} +1 -1
  40. package/dist/{layers.CphCG076.js → layers.BQdiT-Gc.js} +1 -1
  41. package/dist/{layers.Cp82yltX.js → layers.BW8tNgnl.js} +1 -1
  42. package/dist/{layers.CHHqQlm1.js → layers.BWBOjwnD.js} +1 -1
  43. package/dist/{layers.N4wL2Xyj.js → layers.BWBqFzL5.js} +85 -85
  44. package/dist/{layers.c_QDfgff.js → layers.BY_Ddtf_.js} +4 -4
  45. package/dist/{layers.CqM3rL4-.js → layers.B_3SG9-n.js} +1 -1
  46. package/dist/layers.Bag9ck5N.js +1 -0
  47. package/dist/{layers.ChAMqLmE.js → layers.Bgs9DWaM.js} +1 -1
  48. package/dist/{layers.Bv0tGvGl.js → layers.BhjPgUp1.js} +1 -1
  49. package/dist/{layers.ClQj75nc.js → layers.Bjqq928v.js} +1 -1
  50. package/dist/{layers.Ch7C0MR9.js → layers.Bk3rEvTi.js} +1 -1
  51. package/dist/{layers.oFAtdeQ1.js → layers.BlRFAeMZ.js} +3 -3
  52. package/dist/layers.BlifjyLs.js +2 -0
  53. package/dist/{layers.BZcZF6Ct.js → layers.BlkvO94n.js} +1 -1
  54. package/dist/{layers.BPe9NQzP.js → layers.Bm4nXd83.js} +1 -1
  55. package/dist/{layers.Blho0qwc.js → layers.BmU3A8To.js} +1 -1
  56. package/dist/{layers.UbqG2dp_.js → layers.Bn8N2Stv.js} +1 -1
  57. package/dist/{layers.DwLw5o0M.js → layers.BqTvq1WO.js} +1 -1
  58. package/dist/{layers.CGX7Piy7.js → layers.BtP6vWIY.js} +1 -1
  59. package/dist/{layers.CDLdte-o.js → layers.Bu0Rv7u8.js} +1 -1
  60. package/dist/{layers.DAx0hT2g.js → layers.BuJozguU.js} +1 -1
  61. package/dist/{layers.Dol0x5Jd.js → layers.Bw3R-pSG.js} +1 -1
  62. package/dist/{layers.hkFN-BS0.js → layers.BwcyrXEu.js} +1 -1
  63. package/dist/{layers.BBB7YGK1.js → layers.Bwuu3jjm.js} +1 -1
  64. package/dist/{layers.B9zrmkst.js → layers.BymWa7M3.js} +1 -1
  65. package/dist/{layers.LOjND5R4.js → layers.BzRmHQQD.js} +2 -2
  66. package/dist/{layers.Dbuivk7d.js → layers.Bzc44mb4.js} +1 -1
  67. package/dist/{layers.CwPFdFUT.js → layers.C2b0BhoA.js} +1 -1
  68. package/dist/{layers.DARK07JA.js → layers.C3vT-_5E.js} +1 -1
  69. package/dist/{layers.D7HvMBb6.js → layers.C4L1zUgG.js} +1 -1
  70. package/dist/{layers.CcJ28sUd.js → layers.C6qRV0pD.js} +1 -1
  71. package/dist/{layers.CDzPpnhN.js → layers.C7_Otsyx.js} +5 -5
  72. package/dist/{layers.WsdOSV4y.js → layers.C8r5QjFY.js} +1 -1
  73. package/dist/{layers.5BbX0Xoz.js → layers.C9vJr9Fp.js} +57 -57
  74. package/dist/layers.CBAObrHU.js +1 -0
  75. package/dist/layers.CHd51QJn.js +8 -0
  76. package/dist/{layers.BJMMuP5r.js → layers.CI7Z-Sjj.js} +1 -1
  77. package/dist/{layers.D9A031XO.js → layers.CJudskXr.js} +2 -2
  78. package/dist/layers.CLPJWTr_.js +1 -0
  79. package/dist/{layers.OEP2K3db.js → layers.CM0RbG9c.js} +1 -1
  80. package/dist/{layers.BXGiOI1Z.js → layers.CNml1ojC.js} +1 -1
  81. package/dist/{layers.C5uR7AiN.js → layers.CPPtpAVe.js} +1 -1
  82. package/dist/{layers.Cn6OfRlw.js → layers.CPtjfATq.js} +1 -1
  83. package/dist/{layers.BYVHkqLR.js → layers.CRVVTbRr.js} +1 -1
  84. package/dist/{layers.Ym7pRGM7.js → layers.CRuKN3by.js} +3 -3
  85. package/dist/{layers.BuQ1nJmP.js → layers.CSAdHZgs.js} +1 -1
  86. package/dist/{layers.CMS1o_sE.js → layers.CSy8D72I.js} +1 -1
  87. package/dist/{layers.DdTLZZKb.js → layers.CV_r6tXx.js} +6 -6
  88. package/dist/layers.CVlRuvNG.js +122 -0
  89. package/dist/{layers.D68FZk66.js → layers.CWWJnwM1.js} +1 -1
  90. package/dist/{layers.Ck0iJfoW.js → layers.CYPKJ9D_.js} +1 -1
  91. package/dist/{layers.BO3dqWyO.js → layers.CZ9asRxp.js} +1 -1
  92. package/dist/{layers.CO4NHmK3.js → layers.CctQZdRR.js} +1 -1
  93. package/dist/{layers.BjZInKjA.js → layers.Cdw06C7D.js} +2 -2
  94. package/dist/{layers.DYx3Ot6h.js → layers.Ce8BBqO9.js} +1 -1
  95. package/dist/{layers.DQCPMqIN.js → layers.CfVH6j0d.js} +1 -1
  96. package/dist/{layers.lLRqycMO.js → layers.CfyH4z2e.js} +1 -1
  97. package/dist/{layers.BLSqqbWP.js → layers.CgdtQipl.js} +4 -4
  98. package/dist/{layers.DFd9A85i.js → layers.CgvOUVzr.js} +4 -4
  99. package/dist/{layers.gRKbOYG-.js → layers.ChkOb4tl.js} +26 -26
  100. package/dist/{layers.CR4riLSc.js → layers.Cj6cbW8i.js} +639 -639
  101. package/dist/{layers.DKPzrygv.js → layers.Cj7ITJ9c.js} +1 -1
  102. package/dist/{layers.rRMBW9ET.js → layers.CjRpPAKZ.js} +251 -251
  103. package/dist/{layers.Ba97nTEK.js → layers.CjfoYqS0.js} +1 -1
  104. package/dist/{layers.CTmkjIN6.js → layers.Ckd9L1ZQ.js} +1 -1
  105. package/dist/{layers.CQv0GMRl.js → layers.ClpTV2lw.js} +1 -1
  106. package/dist/{layers.D1cZq8tq.js → layers.CmEuIxO4.js} +3 -3
  107. package/dist/{layers.Bwpn7zKE.js → layers.CmOPFjvq.js} +1 -1
  108. package/dist/{layers.DCvUAfE1.js → layers.CnlX6j6i.js} +1 -1
  109. package/dist/{layers.B-6oGNjd.js → layers.CqEtGCpU.js} +1 -1
  110. package/dist/{layers.C51kZnWr.js → layers.CqMLQ0Dp.js} +1 -1
  111. package/dist/{layers.BhM2iCwB.js → layers.CuxIZWEP.js} +1 -1
  112. package/dist/{layers.PhLwHKUM.js → layers.CvLOVBUw.js} +1 -1
  113. package/dist/{layers.ChykDTOy.js → layers.Cx6FqSsI.js} +1 -1
  114. package/dist/{layers.CmHSmrZm.js → layers.CyUKOqQM.js} +1 -1
  115. package/dist/{layers.DeB3waPT.js → layers.CzsxLGGT.js} +1 -1
  116. package/dist/{layers.DXTPaWjN.js → layers.D0yiFcqY.js} +1 -1
  117. package/dist/layers.D1fmxxk7.js +1 -0
  118. package/dist/{layers.DO-G3uLL.js → layers.D39cRqm0.js} +1 -1
  119. package/dist/{layers.ChPHYv68.js → layers.D6ec9SRH.js} +1 -1
  120. package/dist/{layers.BDxQSquK.js → layers.D71p3EhU.js} +1 -1
  121. package/dist/{layers.-RxAm5pH.js → layers.D8G_zttU.js} +47 -47
  122. package/dist/{layers.x6Qk2Mwl.js → layers.D8NjLtRn.js} +1 -1
  123. package/dist/{layers.I-MG0ir4.js → layers.DAkVONDW.js} +6219 -6202
  124. package/dist/{layers.iw01AOuQ.js → layers.DDE-iai2.js} +96 -96
  125. package/dist/{layers.DDRgaMwu.js → layers.DDGV6wvn.js} +1 -1
  126. package/dist/{layers.cp645rbn.js → layers.DDPm1Phd.js} +1 -1
  127. package/dist/{layers.D3Hkinja.js → layers.DFdD8OE6.js} +1 -1
  128. package/dist/{layers.gzGcAwbO.js → layers.DGC-QZbD.js} +3 -3
  129. package/dist/{layers.B9NSFeaj.js → layers.DH6JhdxT.js} +1 -1
  130. package/dist/{layers.DrtkQKK7.js → layers.DHNgS4o3.js} +1 -1
  131. package/dist/{layers.k2UyvrHI.js → layers.DHYQaKXy.js} +1 -1
  132. package/dist/{layers.B0EkntbT.js → layers.DKTUd6cG.js} +1 -1
  133. package/dist/{layers.Cxmncz59.js → layers.DLShWbE3.js} +1 -1
  134. package/dist/{layers.C1KhBpGU.js → layers.DMnBSepD.js} +1 -1
  135. package/dist/{layers.BCFHxkpM.js → layers.DN2-RoYO.js} +1 -1
  136. package/dist/{layers.BLB-feoT.js → layers.DNvn8evO.js} +1 -1
  137. package/dist/{layers.DsAtBUs-.js → layers.DPpl1Lyy.js} +5 -5
  138. package/dist/{layers.paz6tc0L.js → layers.DQevQguw.js} +1 -1
  139. package/dist/{layers.DK_t52oS.js → layers.DRGcrPPV.js} +390 -390
  140. package/dist/{layers.Ckbp-T9r.js → layers.DS8xp3z6.js} +1 -1
  141. package/dist/{layers.D90-hSDT.js → layers.DT2vhESJ.js} +2 -2
  142. package/dist/{layers.B-ie1_cm.js → layers.DTSzGsqB.js} +1 -1
  143. package/dist/{layers.Dyqg_e4P.js → layers.DTX-m6B0.js} +1 -1
  144. package/dist/{layers.Lhl12ohc.js → layers.DUgI8Qm6.js} +1 -1
  145. package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
  146. package/dist/{layers.CZMy0ug4.js → layers.DX5uxco3.js} +1 -1
  147. package/dist/{layers.C6Rn8zoI.js → layers.DYoOWsyB.js} +1 -1
  148. package/dist/layers.DZVs6rl-.js +65 -0
  149. package/dist/{layers.Bfd5bOAD.js → layers.DZxo3Qo-.js} +1 -1
  150. package/dist/{layers.ChJyurjQ.js → layers.DaNHv_tD.js} +1 -1
  151. package/dist/{layers.Bk2PdkMX.js → layers.DbSjlXkz.js} +1 -1
  152. package/dist/{layers.D2vOkfMK.js → layers.Dc_OXuAO.js} +1 -1
  153. package/dist/{layers.BIVmclKv.js → layers.Dg4aFQbj.js} +1 -1
  154. package/dist/{layers.DHbdkCCU.js → layers.Dh8vVrkJ.js} +1 -1
  155. package/dist/{layers.gaT5_-NN.js → layers.DhaEWWE8.js} +1 -1
  156. package/dist/{layers.CH23k4XD.js → layers.DhiiM0nu.js} +1 -1
  157. package/dist/{layers.BEE5yqs5.js → layers.Dj1RvABZ.js} +1 -1
  158. package/dist/{layers.BBU3ik5q.js → layers.DnhB9nfo.js} +3 -3
  159. package/dist/{layers.DxGDxkXA.js → layers.Dp_lp9sc.js} +47 -47
  160. package/dist/{layers.CCRe_IA7.js → layers.DpoqH_qu.js} +1 -1
  161. package/dist/{layers.Y41CVpLS.js → layers.DtYpqqY0.js} +33 -33
  162. package/dist/{layers.CvJxfPxo.js → layers.Dtt8if_X.js} +1 -1
  163. package/dist/{layers.Dyor8Hot.js → layers.Du5-W3Rw.js} +28 -28
  164. package/dist/{layers.CeMe5scF.js → layers.Dv3wcPBB.js} +1 -1
  165. package/dist/{layers.CR10RAJi.js → layers.DvVe2_B8.js} +2 -2
  166. package/dist/{layers.BDhuxbhX.js → layers.Dw80oYJ5.js} +1 -1
  167. package/dist/{layers.-rS-aTo2.js → layers.Dx5bTjWn.js} +1 -1
  168. package/dist/{layers.HcI9cOEd.js → layers.DyUhnefH.js} +47 -47
  169. package/dist/{layers.DhiFm4jW.js → layers.EqE20WDv.js} +1 -1
  170. package/dist/{layers.L_XjkGw6.js → layers.GO-Mbd7I.js} +16 -16
  171. package/dist/{layers.CnloMtKN.js → layers.HRFT_ZjM.js} +14 -14
  172. package/dist/{layers.DhzTwBn5.js → layers.KCNY5y8z.js} +1 -1
  173. package/dist/{layers.Dklz2JqP.js → layers.KFKejNxr.js} +1 -1
  174. package/dist/{layers.D-ZYFolm.js → layers.LBCOqtdP.js} +1 -1
  175. package/dist/{layers.B_Hf0SF-.js → layers.MYNPCNPb.js} +517 -517
  176. package/dist/{layers.FstVqdQC.js → layers.Mz6hy1ns.js} +151 -151
  177. package/dist/{layers.Dxrm0nEM.js → layers.NnXYAx13.js} +140 -140
  178. package/dist/layers.O_QfH9Tw.js +55 -0
  179. package/dist/{layers.Cx14IKzN.js → layers.PrN0U_UM.js} +1 -1
  180. package/dist/{layers.Dzc83sE7.js → layers.Q4CIFfze.js} +1 -1
  181. package/dist/{layers.D_MU5WlI.js → layers.R44OAZRP.js} +1 -1
  182. package/dist/{layers.BvZFIFgz.js → layers.SP95Qof2.js} +1 -1
  183. package/dist/{layers.I5-pSyca.js → layers.SulLxOdh.js} +1 -1
  184. package/dist/{layers.C3K_Whht.js → layers.T0eE6tga.js} +1 -1
  185. package/dist/{layers.BHDiP2sq.js → layers.UHP1RD2c.js} +1482 -1482
  186. package/dist/{layers.BD5uUnI2.js → layers.UVNd1xGx.js} +279 -279
  187. package/dist/{layers.Ci0x4aAi.js → layers.WoRsWqkn.js} +5 -5
  188. package/dist/{layers.BPnpanwd.js → layers.Xe8jbEny.js} +1 -1
  189. package/dist/{layers.DMvWe0pJ.js → layers.ZN4JdEjx.js} +2 -2
  190. package/dist/layers.ZYL9xgWP.js +6 -0
  191. package/dist/{layers.B6UkAKu5.js → layers._hbnQs16.js} +78 -78
  192. package/dist/{layers.BkMfeJ9R.js → layers.dRKtVcxx.js} +1 -1
  193. package/dist/{layers.C0bumYdC.js → layers.eMCYstYw.js} +1 -1
  194. package/dist/{layers.BUkDq4ln.js → layers.eT0cgnuX.js} +1 -1
  195. package/dist/{layers.B0pdr1hX.js → layers.iE9hmQyV.js} +33 -33
  196. package/dist/{layers.B3odqoHb.js → layers.iRxcG0YN.js} +1 -1
  197. package/dist/{layers.D18RSmmQ.js → layers.kyTkLvwr.js} +1 -1
  198. package/dist/{layers.CClfR9Rs.js → layers.otSGVgrf.js} +10347 -11483
  199. package/dist/{layers.dqI-yLmM.js → layers.pAr6m-ST.js} +1 -1
  200. package/dist/{layers.2ODaB2Pd.js → layers.qxHQ5s48.js} +1 -1
  201. package/dist/{layers.B8i9d7Qz.js → layers.qzkyQd0J.js} +36 -30
  202. package/dist/{layers.BoabOlrX.js → layers.rB_UamkL.js} +1 -1
  203. package/dist/{layers.DElpVOY-.js → layers.vK-UofJJ.js} +1 -1
  204. package/dist/{layers.C5rttXXy.js → layers.vfmwTFt7.js} +4 -4
  205. package/dist/{layers.DXaSAlDN.js → layers.vrKjaGL3.js} +1 -1
  206. package/dist/{layers.Ci0QS82_.js → layers.wXI8z3zK.js} +1 -1
  207. package/dist/{layers.CGc04km7.js → layers.z_R2M9xA.js} +1 -1
  208. package/dist/{layers.DGZUGztZ.js → layers.zleGKGQR.js} +29 -29
  209. package/dist/{layers.CSjWzlk9.js → layers.zx6fFkwC.js} +1 -1
  210. package/package.json +1 -4
  211. package/dist/layers.BK01wvsE.js +0 -10
  212. package/dist/layers.BQLZhz6B.js +0 -6
  213. package/dist/layers.BUsBCyiL.js +0 -202
  214. package/dist/layers.BkjjkAwW.js +0 -2
  215. package/dist/layers.BwfB_nzW.js +0 -8
  216. package/dist/layers.CQXDzk5h.js +0 -1
  217. package/dist/layers.CeVpKhli.js +0 -122
  218. package/dist/layers.DTDpNGfk.js +0 -1
  219. package/dist/layers.Dk9dbz6F.js +0 -118
  220. package/dist/layers.DtoCH9Nn.js +0 -1
  221. package/dist/layers.DzaH7mDC.js +0 -65
  222. package/dist/layers.Tatx7z0m.js +0 -55
  223. package/dist/layers.h0tSRttU.js +0 -1
@@ -1,22 +1,22 @@
1
- "use strict";const Fh=require("./layers.DxGDxkXA.js"),Oh=require("./layers.B8i9d7Qz.js"),Lr=20,Ih={rect:"rectangle",circle:"ellipse"},ns={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Lr*1.25}px`},maxEdges:500,maxTextSize:5e4};class Fr{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Lr}),this.converter=e}}var ge;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(ge||(ge={}));var vn;(function(t){t.COLOR="color"})(vn||(vn={}));var Ie;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Ie||(Ie={}));var ai={},os;function Mh(){if(os)return ai;os=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
1
+ "use strict";const Fh=require("./layers.Dp_lp9sc.js"),Oh=require("./layers.qzkyQd0J.js"),Fr=20,Ih={rect:"rectangle",circle:"ellipse"},ns={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Fr*1.25}px`},maxEdges:500,maxTextSize:5e4};class Or{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Fr}),this.converter=e}}var me;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(me||(me={}));var An;(function(t){t.COLOR="color"})(An||(An={}));var Ie;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Ie||(Ie={}));var ci={},os;function Mh(){if(os)return ci;os=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
2
2
  `).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,i.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
3
3
 
4
4
  `).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
5
5
 
6
- `)}catch(n){return console.error(n),e}return r};return ai.removeMarkdown=t,ai}var $h=Mh();const Dh={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},Nh=t=>Dh[t],ji=t=>{let e=t.text;return t.labelType==="markdown"&&(e=$h.removeMarkdown(t.text)),Ph(e)},Ph=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},Rh=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case Ie.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case Ie.STROKE:{e.strokeColor=t[i];break}case Ie.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case Ie.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},qh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case vn.COLOR:{e.strokeColor=t[i];break}}}),e},zh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const s=[];for(n.isLeaf||s.push(`subgraph_group_${n.id}`);n.parent;)s.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},Wh=new Fr({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:s}=zh(t);return t.subGraphs.reverse().forEach(o=>{const a=n(o.id),l={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,label:{groupIds:a,text:ji(o),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(o=>{if(!o)return;const a=n(o.id),l=Rh(o.containerStyle),c=qh(o.labelStyle);let u={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,strokeWidth:2,label:{groupIds:a,text:ji(o),fontSize:r,...c},link:o.link||null,...l};switch(o.type){case ge.STADIUM:{u={...u,roundness:{type:3}};break}case ge.ROUND:{u={...u,roundness:{type:3}};break}case ge.DOUBLECIRCLE:{a.push(`doublecircle_${o.id}}`);const h={type:"ellipse",groupIds:a,x:o.x+5,y:o.y+5,width:o.width-5*2,height:o.height-5*2,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:ji(o),fontSize:r}};u={...u,groupIds:a,type:"ellipse"},i.push(h);break}case ge.CIRCLE:{u.type="ellipse";break}case ge.DIAMOND:{u.type="diamond";break}}i.push(u)}),t.edges.forEach(o=>{let a=[];const l=s(o.start),c=s(o.end);l&&l===c&&(a=n(l));const{startX:u,startY:d,reflectionPoints:h}=o,f=h.map(N=>[N.x-h[0].x,N.y-h[0].y]),m=Nh(o.type),_={id:`${o.start}_${o.end}`,type:"arrow",groupIds:a,x:u,y:d,strokeWidth:o.stroke==="thick"?4:2,strokeStyle:o.stroke==="dotted"?"dashed":void 0,points:f,...o.text?{label:{text:ji(o),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},L=i.find(N=>N.id===o.start),x=i.find(N=>N.id===o.end);!L||!x||(_.start={id:L.id||""},_.end={id:x.id||""},i.push(_))}),{elements:i}}});let Qt=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,i)=>(i&=63,i<36?e+=i.toString(36):i<62?e+=(i-26).toString(36).toUpperCase():i>62?e+="-":e+="_",e),"");const Yh=new Fr({converter:t=>{const e=Qt(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),eo=t=>t.replace(/\\n/g,`
7
- `),xi=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},hr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:eo(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},gi=t=>{var r,n,s,o;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:eo(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((s=t.label)==null?void 0:s.verticalAlign)||"middle",strokeColor:((o=t.label)==null?void 0:o.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},ba=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:eo(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},Hh=new Fr({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let s;switch(n.type){case"line":s=xi(n);break;case"rectangle":case"ellipse":s=gi(n);break;case"text":s=hr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?i.push(s):e.push(s)})}),Object.values(t.lines).forEach(r=>{r&&e.push(xi(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(ba(r)),r.sequenceNumber&&e.push(gi(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:s}=t.loops;r.forEach(o=>{e.push(xi(o))}),n.forEach(o=>{e.push(hr(o))}),s.forEach(o=>{e.push(gi(o))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:s}=r;let o=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(k=>{if(k.id){const U=k.id.indexOf("-"),R=k.id.substring(0,U);return n.includes(R)}}).forEach(k=>{if(k.x===void 0||k.y===void 0||k.width===void 0||k.height===void 0)throw new Error(`Actor attributes missing ${k}`);o=Math.min(o,k.x),a=Math.min(a,k.y),l=Math.max(l,k.x+k.width),c=Math.max(c,k.y+k.height)});const d=10,h=o-d,f=a-d,m=l-o+d*2,y=c-a+d*2,_=Qt(),L=gi({type:"rectangle",x:h,y:f,width:m,height:y,bgColor:r.fill,id:_});e.unshift(L);const x=Qt(),N=[_];e.forEach(k=>{if(k.type!=="frame"){if(k.x===void 0||k.y===void 0||k.width===void 0||k.height===void 0)throw new Error(`Element attributes missing ${k}`);if(k.x>=o&&k.x+k.width<=l&&k.y>=a&&k.y+k.height<=c){const U=k.id||Qt();k.id||Object.assign(k,{id:U}),N.push(U)}}});const C={type:"frame",id:x,name:s,children:N};e.push(C)}),{elements:e}}}),jh=new Fr({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=xi(r);break;case"rectangle":case"ellipse":n=gi(r);break;case"text":n=hr(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(xi(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=ba(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=hr(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],s=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=s.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const o={type:"frame",id:Qt(),name:i.id,children:n};e.push(o)}),{elements:e}}}),Uh=(t,e={})=>{switch(t.type){case"graphImage":return Yh.convert(t,e);case"flowchart":return Wh.convert(t,e);case"sequence":return Hh.convert(t,e);case"class":return jh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function Ta(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var d,h;return(h=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var s=new RegExp(`
6
+ `)}catch(n){return console.error(n),e}return r};return ci.removeMarkdown=t,ci}var $h=Mh();const Dh={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},Nh=t=>Dh[t],Ui=t=>{let e=t.text;return t.labelType==="markdown"&&(e=$h.removeMarkdown(t.text)),Ph(e)},Ph=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},Rh=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case Ie.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case Ie.STROKE:{e.strokeColor=t[i];break}case Ie.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case Ie.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},qh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case An.COLOR:{e.strokeColor=t[i];break}}}),e},zh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const s=[];for(n.isLeaf||s.push(`subgraph_group_${n.id}`);n.parent;)s.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},Wh=new Or({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:s}=zh(t);return t.subGraphs.reverse().forEach(o=>{const a=n(o.id),l={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,label:{groupIds:a,text:Ui(o),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(o=>{if(!o)return;const a=n(o.id),l=Rh(o.containerStyle),c=qh(o.labelStyle);let h={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,strokeWidth:2,label:{groupIds:a,text:Ui(o),fontSize:r,...c},link:o.link||null,...l};switch(o.type){case me.STADIUM:{h={...h,roundness:{type:3}};break}case me.ROUND:{h={...h,roundness:{type:3}};break}case me.DOUBLECIRCLE:{a.push(`doublecircle_${o.id}}`);const u={type:"ellipse",groupIds:a,x:o.x+5,y:o.y+5,width:o.width-5*2,height:o.height-5*2,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Ui(o),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(u);break}case me.CIRCLE:{h.type="ellipse";break}case me.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(o=>{let a=[];const l=s(o.start),c=s(o.end);l&&l===c&&(a=n(l));const{startX:h,startY:f,reflectionPoints:u}=o,d=u.map(P=>[P.x-u[0].x,P.y-u[0].y]),m=Nh(o.type),_={id:`${o.start}_${o.end}`,type:"arrow",groupIds:a,x:h,y:f,strokeWidth:o.stroke==="thick"?4:2,strokeStyle:o.stroke==="dotted"?"dashed":void 0,points:d,...o.text?{label:{text:Ui(o),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},L=i.find(P=>P.id===o.start),x=i.find(P=>P.id===o.end);!L||!x||(_.start={id:L.id||""},_.end={id:x.id||""},i.push(_))}),{elements:i}}});let Qt=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,i)=>(i&=63,i<36?e+=i.toString(36):i<62?e+=(i-26).toString(36).toUpperCase():i>62?e+="-":e+="_",e),"");const Yh=new Or({converter:t=>{const e=Qt(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),eo=t=>t.replace(/\\n/g,`
7
+ `),Ti=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},ur=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:eo(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},yi=t=>{var r,n,s,o;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:eo(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((s=t.label)==null?void 0:s.verticalAlign)||"middle",strokeColor:((o=t.label)==null?void 0:o.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},ba=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:eo(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},Hh=new Or({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let s;switch(n.type){case"line":s=Ti(n);break;case"rectangle":case"ellipse":s=yi(n);break;case"text":s=ur(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?i.push(s):e.push(s)})}),Object.values(t.lines).forEach(r=>{r&&e.push(Ti(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(ba(r)),r.sequenceNumber&&e.push(yi(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:s}=t.loops;r.forEach(o=>{e.push(Ti(o))}),n.forEach(o=>{e.push(ur(o))}),s.forEach(o=>{e.push(yi(o))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:s}=r;let o=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(S=>{if(S.id){const U=S.id.indexOf("-"),N=S.id.substring(0,U);return n.includes(N)}}).forEach(S=>{if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Actor attributes missing ${S}`);o=Math.min(o,S.x),a=Math.min(a,S.y),l=Math.max(l,S.x+S.width),c=Math.max(c,S.y+S.height)});const f=10,u=o-f,d=a-f,m=l-o+f*2,y=c-a+f*2,_=Qt(),L=yi({type:"rectangle",x:u,y:d,width:m,height:y,bgColor:r.fill,id:_});e.unshift(L);const x=Qt(),P=[_];e.forEach(S=>{if(S.type!=="frame"){if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Element attributes missing ${S}`);if(S.x>=o&&S.x+S.width<=l&&S.y>=a&&S.y+S.height<=c){const U=S.id||Qt();S.id||Object.assign(S,{id:U}),P.push(U)}}});const C={type:"frame",id:x,name:s,children:P};e.push(C)}),{elements:e}}}),jh=new Or({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=Ti(r);break;case"rectangle":case"ellipse":n=yi(r);break;case"text":n=ur(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(Ti(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=ba(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=ur(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],s=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=s.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const o={type:"frame",id:Qt(),name:i.id,children:n};e.push(o)}),{elements:e}}}),Uh=(t,e={})=>{switch(t.type){case"graphImage":return Yh.convert(t,e);case"flowchart":return Wh.convert(t,e);case"sequence":return Hh.convert(t,e);case"class":return jh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function Ta(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var f,u;return(u=(f=h.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0})):a},[]);if(n.length){var s=new RegExp(`
8
8
  [ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(s,`
9
- `)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
10
- `)&&(d=String(a).split(`
11
- `).map(function(h,f){return f===0?h:""+u+h}).join(`
12
- `)),o+=d+r[l+1]}),o}var tr={exports:{}},Xh=tr.exports,ss;function Gh(){return ss||(ss=1,function(t,e){(function(i,r){t.exports=r()})(Xh,function(){var i=1e3,r=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",f="year",m="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var v=["th","st","nd","rd"],T=P%100;return"["+P+(v[(T-20)%10]||v[T]||v[0])+"]"}},N=function(P,v,T){var F=String(P);return!F||F.length>=v?P:""+Array(v+1-F.length).join(T)+P},C={s:N,z:function(P){var v=-P.utcOffset(),T=Math.abs(v),F=Math.floor(T/60),w=T%60;return(v<=0?"+":"-")+N(F,2,"0")+":"+N(w,2,"0")},m:function P(v,T){if(v.date()<T.date())return-P(T,v);var F=12*(T.year()-v.year())+(T.month()-v.month()),w=v.clone().add(F,d),$=T-w<0,W=v.clone().add(F+($?-1:1),d);return+(-(F+(T-w)/($?w-W:W-w))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:d,y:f,w:u,d:c,D:m,h:l,m:a,s:o,ms:s,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},k="en",U={};U[k]=x;var R="$isDayjsObject",Q=function(P){return P instanceof tt||!(!P||!P[R])},rt=function P(v,T,F){var w;if(!v)return k;if(typeof v=="string"){var $=v.toLowerCase();U[$]&&(w=$),T&&(U[$]=T,w=$);var W=v.split("-");if(!w&&W.length>1)return P(W[0])}else{var z=v.name;U[z]=v,w=z}return!F&&w&&(k=w),w||!F&&k},Y=function(P,v){if(Q(P))return P.clone();var T=typeof v=="object"?v:{};return T.date=P,T.args=arguments,new tt(T)},B=C;B.l=rt,B.i=Q,B.w=function(P,v){return Y(P,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var tt=function(){function P(T){this.$L=rt(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var v=P.prototype;return v.parse=function(T){this.$d=function(F){var w=F.date,$=F.utc;if(w===null)return new Date(NaN);if(B.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var W=w.match(_);if(W){var z=W[2]-1||0,K=(W[7]||"0").substring(0,3);return $?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)}}return new Date(w)}(T),this.init()},v.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},v.$utils=function(){return B},v.isValid=function(){return this.$d.toString()!==y},v.isSame=function(T,F){var w=Y(T);return this.startOf(F)<=w&&w<=this.endOf(F)},v.isAfter=function(T,F){return Y(T)<this.startOf(F)},v.isBefore=function(T,F){return this.endOf(F)<Y(T)},v.$g=function(T,F,w){return B.u(T)?this[F]:this.set(w,T)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(T,F){var w=this,$=!!B.u(F)||F,W=B.p(T),z=function(Et,nt){var Lt=B.w(w.$u?Date.UTC(w.$y,nt,Et):new Date(w.$y,nt,Et),w);return $?Lt:Lt.endOf(c)},K=function(Et,nt){return B.w(w.toDate()[Et].apply(w.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(nt)),w)},H=this.$W,et=this.$M,X=this.$D,St="set"+(this.$u?"UTC":"");switch(W){case f:return $?z(1,0):z(31,11);case d:return $?z(1,et):z(0,et+1);case u:var Bt=this.$locale().weekStart||0,ne=(H<Bt?H+7:H)-Bt;return z($?X-ne:X+(6-ne),et);case c:case m:return K(St+"Hours",0);case l:return K(St+"Minutes",1);case a:return K(St+"Seconds",2);case o:return K(St+"Milliseconds",3);default:return this.clone()}},v.endOf=function(T){return this.startOf(T,!1)},v.$set=function(T,F){var w,$=B.p(T),W="set"+(this.$u?"UTC":""),z=(w={},w[c]=W+"Date",w[m]=W+"Date",w[d]=W+"Month",w[f]=W+"FullYear",w[l]=W+"Hours",w[a]=W+"Minutes",w[o]=W+"Seconds",w[s]=W+"Milliseconds",w)[$],K=$===c?this.$D+(F-this.$W):F;if($===d||$===f){var H=this.clone().set(m,1);H.$d[z](K),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else z&&this.$d[z](K);return this.init(),this},v.set=function(T,F){return this.clone().$set(T,F)},v.get=function(T){return this[B.p(T)]()},v.add=function(T,F){var w,$=this;T=Number(T);var W=B.p(F),z=function(et){var X=Y($);return B.w(X.date(X.date()+Math.round(et*T)),$)};if(W===d)return this.set(d,this.$M+T);if(W===f)return this.set(f,this.$y+T);if(W===c)return z(1);if(W===u)return z(7);var K=(w={},w[a]=r,w[l]=n,w[o]=i,w)[W]||1,H=this.$d.getTime()+T*K;return B.w(H,this)},v.subtract=function(T,F){return this.add(-1*T,F)},v.format=function(T){var F=this,w=this.$locale();if(!this.isValid())return w.invalidDate||y;var $=T||"YYYY-MM-DDTHH:mm:ssZ",W=B.z(this),z=this.$H,K=this.$m,H=this.$M,et=w.weekdays,X=w.months,St=w.meridiem,Bt=function(nt,Lt,kt,oe){return nt&&(nt[Lt]||nt(F,$))||kt[Lt].slice(0,oe)},ne=function(nt){return B.s(z%12||12,nt,"0")},Et=St||function(nt,Lt,kt){var oe=nt<12?"AM":"PM";return kt?oe.toLowerCase():oe};return $.replace(L,function(nt,Lt){return Lt||function(kt){switch(kt){case"YY":return String(F.$y).slice(-2);case"YYYY":return B.s(F.$y,4,"0");case"M":return H+1;case"MM":return B.s(H+1,2,"0");case"MMM":return Bt(w.monthsShort,H,X,3);case"MMMM":return Bt(X,H);case"D":return F.$D;case"DD":return B.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Bt(w.weekdaysMin,F.$W,et,2);case"ddd":return Bt(w.weekdaysShort,F.$W,et,3);case"dddd":return et[F.$W];case"H":return String(z);case"HH":return B.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Et(z,K,!0);case"A":return Et(z,K,!1);case"m":return String(K);case"mm":return B.s(K,2,"0");case"s":return String(F.$s);case"ss":return B.s(F.$s,2,"0");case"SSS":return B.s(F.$ms,3,"0");case"Z":return W}return null}(nt)||W.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(T,F,w){var $,W=this,z=B.p(F),K=Y(T),H=(K.utcOffset()-this.utcOffset())*r,et=this-K,X=function(){return B.m(W,K)};switch(z){case f:$=X()/12;break;case d:$=X();break;case h:$=X()/3;break;case u:$=(et-H)/6048e5;break;case c:$=(et-H)/864e5;break;case l:$=et/n;break;case a:$=et/r;break;case o:$=et/i;break;default:$=et}return w?$:B.a($)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return U[this.$L]},v.locale=function(T,F){if(!T)return this.$L;var w=this.clone(),$=rt(T,F,!0);return $&&(w.$L=$),w},v.clone=function(){return B.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},P}(),re=tt.prototype;return Y.prototype=re,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach(function(P){re[P[1]]=function(v){return this.$g(v,P[0],P[1])}}),Y.extend=function(P,v){return P.$i||(P(v,tt,Y),P.$i=!0),Y},Y.locale=rt,Y.isDayjs=Q,Y.unix=function(P){return Y(1e3*P)},Y.en=U[k],Y.Ls=U,Y.p={},Y})}(tr)),tr.exports}var Vh=Gh();const Sa=Fh.getDefaultExportFromCjs(Vh);var Kh={value:()=>{}};function ka(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new er(i)}function er(t){this._=t}function Zh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}er.prototype=ka.prototype={constructor:er,on:function(t,e){var i=this._,r=Zh(t+"",i),n,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((n=(t=r[s]).type)&&(n=Jh(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=as(i[n],t.name,e);else if(e==null)for(n in i)i[n]=as(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new er(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,s;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,n=s.length;r<n;++r)s[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,s=r.length;n<s;++n)r[n].value.apply(e,i)}};function Jh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function as(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Kh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var An="http://www.w3.org/1999/xhtml";const ls={svg:"http://www.w3.org/2000/svg",xhtml:An,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Or(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),ls.hasOwnProperty(e)?{space:ls[e],local:t}:t}function Qh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===An&&e.documentElement.namespaceURI===An?e.createElement(t):e.createElementNS(i,t)}}function tu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wa(t){var e=Or(t);return(e.local?tu:Qh)(e)}function eu(){}function io(t){return t==null?eu:function(){return this.querySelector(t)}}function iu(t){typeof t!="function"&&(t=io(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=new Array(o),l,c,u=0;u<o;++u)(l=s[u])&&(c=t.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new Ct(r,this._parents)}function va(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ru(){return[]}function Aa(t){return t==null?ru:function(){return this.querySelectorAll(t)}}function nu(t){return function(){return va(t.apply(this,arguments))}}function ou(t){typeof t=="function"?t=nu(t):t=Aa(t);for(var e=this._groups,i=e.length,r=[],n=[],s=0;s<i;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(r.push(t.call(l,l.__data__,c,o)),n.push(l));return new Ct(r,n)}function Ba(t){return function(){return this.matches(t)}}function Ea(t){return function(e){return e.matches(t)}}var su=Array.prototype.find;function au(t){return function(){return su.call(this.children,t)}}function lu(){return this.firstElementChild}function cu(t){return this.select(t==null?lu:au(typeof t=="function"?t:Ea(t)))}var hu=Array.prototype.filter;function uu(){return Array.from(this.children)}function du(t){return function(){return hu.call(this.children,t)}}function fu(t){return this.selectAll(t==null?uu:du(typeof t=="function"?t:Ea(t)))}function pu(t){typeof t!="function"&&(t=Ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new Ct(r,this._parents)}function La(t){return new Array(t.length)}function gu(){return new Ct(this._enter||this._groups.map(La),this._parents)}function ur(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ur.prototype={constructor:ur,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function mu(t){return function(){return t}}function yu(t,e,i,r,n,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):i[o]=new ur(t,s[o]);for(;o<l;++o)(a=e[o])&&(n[o]=a)}function _u(t,e,i,r,n,s,o){var a,l,c=new Map,u=e.length,d=s.length,h=new Array(u),f;for(a=0;a<u;++a)(l=e[a])&&(h[a]=f=o.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=o.call(t,s[a],a,s)+"",(l=c.get(f))?(r[a]=l,l.__data__=s[a],c.delete(f)):i[a]=new ur(t,s[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(n[a]=l)}function Cu(t){return t.__data__}function xu(t,e){if(!arguments.length)return Array.from(this,Cu);var i=e?_u:yu,r=this._parents,n=this._groups;typeof t!="function"&&(t=mu(t));for(var s=n.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],d=n[c],h=d.length,f=bu(t.call(u,u&&u.__data__,c,r)),m=f.length,y=a[c]=new Array(m),_=o[c]=new Array(m),L=l[c]=new Array(h);i(u,d,y,_,L,f,e);for(var x=0,N=0,C,k;x<m;++x)if(C=y[x]){for(x>=N&&(N=x+1);!(k=_[N])&&++N<m;);C._next=k||null}}return o=new Ct(o,r),o._enter=a,o._exit=l,o}function bu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Tu(){return new Ct(this._exit||this._groups.map(La),this._parents)}function Su(t,e,i){var r=this.enter(),n=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?s.remove():i(s),r&&n?r.merge(n).order():n}function ku(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,s=r.length,o=Math.min(n,s),a=new Array(n),l=0;l<o;++l)for(var c=i[l],u=r[l],d=c.length,h=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||u[m])&&(h[m]=f);for(;l<n;++l)a[l]=i[l];return new Ct(a,this._parents)}function wu(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,s=r[n],o;--n>=0;)(o=r[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function vu(t){t||(t=Au);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var i=this._groups,r=i.length,n=new Array(r),s=0;s<r;++s){for(var o=i[s],a=o.length,l=n[s]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(e)}return new Ct(n,this._parents).order()}function Au(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Bu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Eu(){return Array.from(this)}function Lu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length;n<s;++n){var o=r[n];if(o)return o}return null}function Fu(){let t=0;for(const e of this)++t;return t}function Ou(){return!this.node()}function Iu(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],s=0,o=n.length,a;s<o;++s)(a=n[s])&&t.call(a,a.__data__,s,n);return this}function Mu(t){return function(){this.removeAttribute(t)}}function $u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Du(t,e){return function(){this.setAttribute(t,e)}}function Nu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Pu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Ru(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function qu(t,e){var i=Or(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?$u:Mu:typeof e=="function"?i.local?Ru:Pu:i.local?Nu:Du)(i,e))}function Fa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zu(t){return function(){this.style.removeProperty(t)}}function Wu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Yu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Hu(t,e,i){return arguments.length>1?this.each((e==null?zu:typeof e=="function"?Yu:Wu)(t,e,i??"")):ze(this.node(),t)}function ze(t,e){return t.style.getPropertyValue(e)||Fa(t).getComputedStyle(t,null).getPropertyValue(e)}function ju(t){return function(){delete this[t]}}function Uu(t,e){return function(){this[t]=e}}function Xu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Gu(t,e){return arguments.length>1?this.each((e==null?ju:typeof e=="function"?Xu:Uu)(t,e)):this.node()[t]}function Oa(t){return t.trim().split(/^|\s+/)}function ro(t){return t.classList||new Ia(t)}function Ia(t){this._node=t,this._names=Oa(t.getAttribute("class")||"")}Ia.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ma(t,e){for(var i=ro(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function $a(t,e){for(var i=ro(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Vu(t){return function(){Ma(this,t)}}function Ku(t){return function(){$a(this,t)}}function Zu(t,e){return function(){(e.apply(this,arguments)?Ma:$a)(this,t)}}function Ju(t,e){var i=Oa(t+"");if(arguments.length<2){for(var r=ro(this.node()),n=-1,s=i.length;++n<s;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Zu:e?Vu:Ku)(i,e))}function Qu(){this.textContent=""}function td(t){return function(){this.textContent=t}}function ed(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function id(t){return arguments.length?this.each(t==null?Qu:(typeof t=="function"?ed:td)(t)):this.node().textContent}function rd(){this.innerHTML=""}function nd(t){return function(){this.innerHTML=t}}function od(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function sd(t){return arguments.length?this.each(t==null?rd:(typeof t=="function"?od:nd)(t)):this.node().innerHTML}function ad(){this.nextSibling&&this.parentNode.appendChild(this)}function ld(){return this.each(ad)}function cd(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hd(){return this.each(cd)}function ud(t){var e=typeof t=="function"?t:wa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function dd(){return null}function fd(t,e){var i=typeof t=="function"?t:wa(t),r=e==null?dd:typeof e=="function"?e:io(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function pd(){var t=this.parentNode;t&&t.removeChild(this)}function gd(){return this.each(pd)}function md(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yd(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _d(t){return this.select(t?yd:md)}function Cd(t){return arguments.length?this.property("__data__",t):this.node().__data__}function xd(t){return function(e){t.call(this,e,this.__data__)}}function bd(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Td(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,s;i<n;++i)s=e[i],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function Sd(t,e,i){return function(){var r=this.__on,n,s=xd(e);if(r){for(var o=0,a=r.length;o<a;++o)if((n=r[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),n.value=e;return}}this.addEventListener(t.type,s,i),n={type:t.type,name:t.name,value:e,listener:s,options:i},r?r.push(n):this.__on=[n]}}function kd(t,e,i){var r=bd(t+""),n,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<s;++n)if((o=r[n]).type===u.type&&o.name===u.name)return u.value}return}for(a=e?Sd:Td,n=0;n<s;++n)this.each(a(r[n],e,i));return this}function Da(t,e,i){var r=Fa(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function wd(t,e){return function(){return Da(this,t,e)}}function vd(t,e){return function(){return Da(this,t,e.apply(this,arguments))}}function Ad(t,e){return this.each((typeof e=="function"?vd:wd)(t,e))}function*Bd(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length,o;n<s;++n)(o=r[n])&&(yield o)}var no=[null];function Ct(t,e){this._groups=t,this._parents=e}function Ni(){return new Ct([[document.documentElement]],no)}function Ed(){return this}Ct.prototype=Ni.prototype={constructor:Ct,select:iu,selectAll:ou,selectChild:cu,selectChildren:fu,filter:pu,data:xu,enter:gu,exit:Tu,join:Su,merge:ku,selection:Ed,order:wu,sort:vu,call:Bu,nodes:Eu,node:Lu,size:Fu,empty:Ou,each:Iu,attr:qu,style:Hu,property:Gu,classed:Ju,text:id,html:sd,raise:ld,lower:hd,append:ud,insert:fd,remove:gd,clone:_d,datum:Cd,on:kd,dispatch:Ad,[Symbol.iterator]:Bd};function xt(t){return typeof t=="string"?new Ct([[document.querySelector(t)]],[document.documentElement]):new Ct([[t]],no)}function Ir(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function oo(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Ze(){}var wi=.7,dr=1/wi,De="\\s*([+-]?\\d+)\\s*",vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ld=/^#([0-9a-f]{3,8})$/,Fd=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Od=new RegExp(`^rgb\\(${qt},${qt},${qt}\\)$`),Id=new RegExp(`^rgba\\(${De},${De},${De},${vi}\\)$`),Md=new RegExp(`^rgba\\(${qt},${qt},${qt},${vi}\\)$`),$d=new RegExp(`^hsl\\(${vi},${qt},${qt}\\)$`),Dd=new RegExp(`^hsla\\(${vi},${qt},${qt},${vi}\\)$`),cs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ir(Ze,We,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hs,formatHex:hs,formatHex8:Nd,formatHsl:Pd,formatRgb:us,toString:us});function hs(){return this.rgb().formatHex()}function Nd(){return this.rgb().formatHex8()}function Pd(){return Pa(this).formatHsl()}function us(){return this.rgb().formatRgb()}function We(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Ld.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?ds(e):i===3?new ft(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ui(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ui(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Fd.exec(t))?new ft(e[1],e[2],e[3],1):(e=Od.exec(t))?new ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Id.exec(t))?Ui(e[1],e[2],e[3],e[4]):(e=Md.exec(t))?Ui(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=$d.exec(t))?gs(e[1],e[2]/100,e[3]/100,1):(e=Dd.exec(t))?gs(e[1],e[2]/100,e[3]/100,e[4]):cs.hasOwnProperty(t)?ds(cs[t]):t==="transparent"?new ft(NaN,NaN,NaN,0):null}function ds(t){return new ft(t>>16&255,t>>8&255,t&255,1)}function Ui(t,e,i,r){return r<=0&&(t=e=i=NaN),new ft(t,e,i,r)}function Na(t){return t instanceof Ze||(t=We(t)),t?(t=t.rgb(),new ft(t.r,t.g,t.b,t.opacity)):new ft}function Bn(t,e,i,r){return arguments.length===1?Na(t):new ft(t,e,i,r??1)}function ft(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Ir(ft,Bn,oo(Ze,{brighter(t){return t=t==null?dr:Math.pow(dr,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?wi:Math.pow(wi,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ft(_e(this.r),_e(this.g),_e(this.b),fr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fs,formatHex:fs,formatHex8:Rd,formatRgb:ps,toString:ps}));function fs(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function Rd(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me((isNaN(this.opacity)?1:this.opacity)*255)}`}function ps(){const t=fr(this.opacity);return`${t===1?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${t===1?")":`, ${t})`}`}function fr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function _e(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function me(t){return t=_e(t),(t<16?"0":"")+t.toString(16)}function gs(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,i,r)}function Pa(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof Ze||(t=We(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),s=Math.max(e,i,r),o=NaN,a=s-n,l=(s+n)/2;return a?(e===s?o=(i-r)/a+(i<r)*6:i===s?o=(r-e)/a+2:o=(e-i)/a+4,a/=l<.5?s+n:2-s-n,o*=60):a=l>0&&l<1?0:o,new Ot(o,a,l,t.opacity)}function qd(t,e,i,r){return arguments.length===1?Pa(t):new Ot(t,e,i,r??1)}function Ot(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Ir(Ot,qd,oo(Ze,{brighter(t){return t=t==null?dr:Math.pow(dr,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?wi:Math.pow(wi,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new ft(hn(t>=240?t-240:t+120,n,r),hn(t,n,r),hn(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ot(ms(this.h),Xi(this.s),Xi(this.l),fr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=fr(this.opacity);return`${t===1?"hsl(":"hsla("}${ms(this.h)}, ${Xi(this.s)*100}%, ${Xi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ms(t){return t=(t||0)%360,t<0?t+360:t}function Xi(t){return Math.max(0,Math.min(1,t||0))}function hn(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Mr=t=>()=>t;function Ra(t,e){return function(i){return t+i*e}}function zd(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Wd(t,e){var i=e-t;return i?Ra(t,i>180||i<-180?i-360*Math.round(i/360):i):Mr(isNaN(t)?e:t)}function Yd(t){return(t=+t)==1?so:function(e,i){return i-e?zd(e,i,t):Mr(isNaN(e)?i:e)}}function so(t,e){var i=e-t;return i?Ra(t,i):Mr(isNaN(t)?e:t)}const En=function t(e){var i=Yd(e);function r(n,s){var o=i((n=Bn(n)).r,(s=Bn(s)).r),a=i(n.g,s.g),l=i(n.b,s.b),c=so(n.opacity,s.opacity);return function(u){return n.r=o(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r}(1);function Kt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Ln=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,un=new RegExp(Ln.source,"g");function Hd(t){return function(){return t}}function jd(t){return function(e){return t(e)+""}}function qa(t,e){var i=Ln.lastIndex=un.lastIndex=0,r,n,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Ln.exec(t))&&(n=un.exec(e));)(s=n.index)>i&&(s=e.slice(i,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Kt(r,n)})),i=un.lastIndex;return i<e.length&&(s=e.slice(i),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?jd(l[0].x):Hd(e):(e=l.length,function(c){for(var u=0,d;u<e;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}var ys=180/Math.PI,Fn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function za(t,e,i,r,n,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*ys,skewX:Math.atan(l)*ys,scaleX:o,scaleY:a}}var Gi;function Ud(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Fn:za(e.a,e.b,e.c,e.d,e.e,e.f)}function Xd(t){return t==null||(Gi||(Gi=document.createElementNS("http://www.w3.org/2000/svg","g")),Gi.setAttribute("transform",t),!(t=Gi.transform.baseVal.consolidate()))?Fn:(t=t.matrix,za(t.a,t.b,t.c,t.d,t.e,t.f))}function Wa(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function s(c,u,d,h,f,m){if(c!==d||u!==h){var y=f.push("translate(",null,e,null,i);m.push({i:y-4,x:Kt(c,d)},{i:y-2,x:Kt(u,h)})}else(d||h)&&f.push("translate("+d+e+h+i)}function o(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(n(d)+"rotate(",null,r)-2,x:Kt(c,u)})):u&&d.push(n(d)+"rotate("+u+r)}function a(c,u,d,h){c!==u?h.push({i:d.push(n(d)+"skewX(",null,r)-2,x:Kt(c,u)}):u&&d.push(n(d)+"skewX("+u+r)}function l(c,u,d,h,f,m){if(c!==d||u!==h){var y=f.push(n(f)+"scale(",null,",",null,")");m.push({i:y-4,x:Kt(c,d)},{i:y-2,x:Kt(u,h)})}else(d!==1||h!==1)&&f.push(n(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=t(c),u=t(u),s(c.translateX,c.translateY,u.translateX,u.translateY,d,h),o(c.rotate,u.rotate,d,h),a(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var m=-1,y=h.length,_;++m<y;)d[(_=h[m]).i]=_.x(f);return d.join("")}}}var Gd=Wa(Ud,"px, ","px)","deg)"),Vd=Wa(Xd,", ",")",")"),Ye=0,mi=0,li=0,Ya=1e3,pr,yi,gr=0,be=0,$r=0,Ai=typeof performance=="object"&&performance.now?performance:Date,Ha=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ao(){return be||(Ha(Kd),be=Ai.now()+$r)}function Kd(){be=0}function mr(){this._call=this._time=this._next=null}mr.prototype=ja.prototype={constructor:mr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?ao():+i)+(e==null?0:+e),!this._next&&yi!==this&&(yi?yi._next=this:pr=this,yi=this),this._call=t,this._time=i,On()},stop:function(){this._call&&(this._call=null,this._time=1/0,On())}};function ja(t,e,i){var r=new mr;return r.restart(t,e,i),r}function Zd(){ao(),++Ye;for(var t=pr,e;t;)(e=be-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ye}function _s(){be=(gr=Ai.now())+$r,Ye=mi=0;try{Zd()}finally{Ye=0,Qd(),be=0}}function Jd(){var t=Ai.now(),e=t-gr;e>Ya&&($r-=e,gr=t)}function Qd(){for(var t,e=pr,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:pr=i);yi=t,On(r)}function On(t){if(!Ye){mi&&(mi=clearTimeout(mi));var e=t-be;e>24?(t<1/0&&(mi=setTimeout(_s,t-Ai.now()-$r)),li&&(li=clearInterval(li))):(li||(gr=Ai.now(),li=setInterval(Jd,Ya)),Ye=1,Ha(_s))}}function Cs(t,e,i){var r=new mr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var tf=ka("start","end","cancel","interrupt"),ef=[],Ua=0,xs=1,In=2,ir=3,bs=4,Mn=5,rr=6;function Dr(t,e,i,r,n,s){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;rf(t,i,{name:e,index:r,group:n,on:tf,tween:ef,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ua})}function lo(t,e){var i=Dt(t,e);if(i.state>Ua)throw new Error("too late; already scheduled");return i}function Yt(t,e){var i=Dt(t,e);if(i.state>ir)throw new Error("too late; already running");return i}function Dt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function rf(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ja(s,0,i.time);function s(c){i.state=xs,i.timer.restart(o,i.delay,i.time),i.delay<=c&&o(c-i.delay)}function o(c){var u,d,h,f;if(i.state!==xs)return l();for(u in r)if(f=r[u],f.name===i.name){if(f.state===ir)return Cs(o);f.state===bs?(f.state=rr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+u<e&&(f.state=rr,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[u])}if(Cs(function(){i.state===ir&&(i.state=bs,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=In,i.on.call("start",t,t.__data__,i.index,i.group),i.state===In){for(i.state=ir,n=new Array(h=i.tween.length),u=0,d=-1;u<h;++u)(f=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var u=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=Mn,1),d=-1,h=n.length;++d<h;)n[d].call(t,u);i.state===Mn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=rr,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function nf(t,e){var i=t.__transition,r,n,s=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((r=i[o]).name!==e){s=!1;continue}n=r.state>In&&r.state<Mn,r.state=rr,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[o]}s&&delete t.__transition}}function of(t){return this.each(function(){nf(this,t)})}function sf(t,e){var i,r;return function(){var n=Yt(this,t),s=n.tween;if(s!==i){r=i=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}n.tween=r}}function af(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var s=Yt(this,t),o=s.tween;if(o!==r){n=(r=o).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}s.tween=n}}function lf(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),i).tween,n=0,s=r.length,o;n<s;++n)if((o=r[n]).name===t)return o.value;return null}return this.each((e==null?sf:af)(i,t,e))}function co(t,e,i){var r=t._id;return t.each(function(){var n=Yt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Dt(n,r).value[e]}}function Xa(t,e){var i;return(typeof e=="number"?Kt:e instanceof We?En:(i=We(e))?(e=i,En):qa)(t,e)}function cf(t){return function(){this.removeAttribute(t)}}function hf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uf(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttribute(t);return o===n?null:o===r?s:s=e(r=o,i)}}function df(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?s:s=e(r=o,i)}}function ff(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function pf(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function gf(t,e){var i=Or(t),r=i==="transform"?Vd:Xa;return this.attrTween(t,typeof e=="function"?(i.local?pf:ff)(i,r,co(this,"attr."+t,e)):e==null?(i.local?hf:cf)(i):(i.local?df:uf)(i,r,e))}function mf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function yf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function _f(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&yf(t,s)),i}return n._value=e,n}function Cf(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&mf(t,s)),i}return n._value=e,n}function xf(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Or(t);return this.tween(i,(r.local?_f:Cf)(r,e))}function bf(t,e){return function(){lo(this,t).delay=+e.apply(this,arguments)}}function Tf(t,e){return e=+e,function(){lo(this,t).delay=e}}function Sf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bf:Tf)(e,t)):Dt(this.node(),e).delay}function kf(t,e){return function(){Yt(this,t).duration=+e.apply(this,arguments)}}function wf(t,e){return e=+e,function(){Yt(this,t).duration=e}}function vf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?kf:wf)(e,t)):Dt(this.node(),e).duration}function Af(t,e){if(typeof e!="function")throw new Error;return function(){Yt(this,t).ease=e}}function Bf(t){var e=this._id;return arguments.length?this.each(Af(e,t)):Dt(this.node(),e).ease}function Ef(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Yt(this,t).ease=i}}function Lf(t){if(typeof t!="function")throw new Error;return this.each(Ef(this._id,t))}function Ff(t){typeof t!="function"&&(t=Ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new ee(r,this._parents,this._name,this._id)}function Of(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,s=Math.min(r,n),o=new Array(r),a=0;a<s;++a)for(var l=e[a],c=i[a],u=l.length,d=o[a]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;a<r;++a)o[a]=e[a];return new ee(o,this._parents,this._name,this._id)}function If(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Mf(t,e,i){var r,n,s=If(e)?lo:Yt;return function(){var o=s(this,t),a=o.on;a!==r&&(n=(r=a).copy()).on(e,i),o.on=n}}function $f(t,e){var i=this._id;return arguments.length<2?Dt(this.node(),i).on.on(t):this.each(Mf(i,t,e))}function Df(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Nf(){return this.on("end.remove",Df(this._id))}function Pf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=io(t));for(var r=this._groups,n=r.length,s=new Array(n),o=0;o<n;++o)for(var a=r[o],l=a.length,c=s[o]=new Array(l),u,d,h=0;h<l;++h)(u=a[h])&&(d=t.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,Dr(c[h],e,i,h,c,Dt(u,i)));return new ee(s,this._parents,e,i)}function Rf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Aa(t));for(var r=this._groups,n=r.length,s=[],o=[],a=0;a<n;++a)for(var l=r[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=t.call(u,u.__data__,d,l),f,m=Dt(u,i),y=0,_=h.length;y<_;++y)(f=h[y])&&Dr(f,e,i,y,h,m);s.push(h),o.push(u)}return new ee(s,o,e,i)}var qf=Ni.prototype.constructor;function zf(){return new qf(this._groups,this._parents)}function Wf(t,e){var i,r,n;return function(){var s=ze(this,t),o=(this.style.removeProperty(t),ze(this,t));return s===o?null:s===i&&o===r?n:n=e(i=s,r=o)}}function Ga(t){return function(){this.style.removeProperty(t)}}function Yf(t,e,i){var r,n=i+"",s;return function(){var o=ze(this,t);return o===n?null:o===r?s:s=e(r=o,i)}}function Hf(t,e,i){var r,n,s;return function(){var o=ze(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),ze(this,t))),o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a))}}function jf(t,e){var i,r,n,s="style."+e,o="end."+s,a;return function(){var l=Yt(this,t),c=l.on,u=l.value[s]==null?a||(a=Ga(e)):void 0;(c!==i||n!==u)&&(r=(i=c).copy()).on(o,n=u),l.on=r}}function Uf(t,e,i){var r=(t+="")=="transform"?Gd:Xa;return e==null?this.styleTween(t,Wf(t,r)).on("end.style."+t,Ga(t)):typeof e=="function"?this.styleTween(t,Hf(t,r,co(this,"style."+t,e))).each(jf(this._id,t)):this.styleTween(t,Yf(t,r,e),i).on("end.style."+t,null)}function Xf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Gf(t,e,i){var r,n;function s(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&Xf(t,o,i)),r}return s._value=e,s}function Vf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Gf(t,e,i??""))}function Kf(t){return function(){this.textContent=t}}function Zf(t){return function(){var e=t(this);this.textContent=e??""}}function Jf(t){return this.tween("text",typeof t=="function"?Zf(co(this,"text",t)):Kf(t==null?"":t+""))}function Qf(t){return function(e){this.textContent=t.call(this,e)}}function tp(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Qf(n)),e}return r._value=t,r}function ep(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,tp(t))}function ip(){for(var t=this._name,e=this._id,i=Va(),r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=Dt(l,e);Dr(l,t,i,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ee(r,this._parents,t,i)}function rp(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--n===0&&s()}};i.each(function(){var c=Yt(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&s()})}var np=0;function ee(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Va(){return++np}var Xt=Ni.prototype;ee.prototype={constructor:ee,select:Pf,selectAll:Rf,selectChild:Xt.selectChild,selectChildren:Xt.selectChildren,filter:Ff,merge:Of,selection:zf,transition:ip,call:Xt.call,nodes:Xt.nodes,node:Xt.node,size:Xt.size,empty:Xt.empty,each:Xt.each,on:$f,attr:gf,attrTween:xf,style:Uf,styleTween:Vf,text:Jf,textTween:ep,remove:Nf,tween:lf,delay:Sf,duration:vf,ease:Bf,easeVarying:Lf,end:rp,[Symbol.iterator]:Xt[Symbol.iterator]};function op(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var sp={time:null,delay:0,duration:250,ease:op};function ap(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function lp(t){var e,i;t instanceof ee?(e=t._id,t=t._name):(e=Va(),(i=sp).time=ao(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&Dr(l,t,e,c,o,i||ap(l,e));return new ee(r,this._parents,t,e)}Ni.prototype.interrupt=of;Ni.prototype.transition=lp;const cp=Math.abs,hp=Math.atan2,up=Math.cos,dp=Math.max,fp=Math.min,pp=Math.sin,gp=Math.sqrt,$n=1e-12,Nr=Math.PI,Dn=Nr/2,mp=2*Nr;function yp(t){return t>1?0:t<-1?Nr:Math.acos(t)}function _p(t){return t>=1?Dn:t<=-1?-Dn:Math.asin(t)}function Ka(t){this._context=t}Ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Za(t){return new Ka(t)}class Ja{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Cp(t){return new Ja(t,!0)}function xp(t){return new Ja(t,!1)}function ce(){}function yr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Pr(t){this._context=t}Pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Qa(t){return new Pr(t)}function tl(t){this._context=t}tl.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:yr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function bp(t){return new tl(t)}function el(t){this._context=t}el.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:yr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Tp(t){return new el(t)}function il(t,e){this._basis=new Pr(t),this._beta=e}il.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],s=t[i]-r,o=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Sp=function t(e){function i(r){return e===1?new Pr(r):new il(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function _r(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function ho(t,e){this._context=t,this._k=(1-e)/6}ho.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_r(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:_r(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kp=function t(e){function i(r){return new ho(r,e)}return i.tension=function(r){return t(+r)},i}(0);function uo(t,e){this._context=t,this._k=(1-e)/6}uo.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_r(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wp=function t(e){function i(r){return new uo(r,e)}return i.tension=function(r){return t(+r)},i}(0);function fo(t,e){this._context=t,this._k=(1-e)/6}fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_r(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vp=function t(e){function i(r){return new fo(r,e)}return i.tension=function(r){return t(+r)},i}(0);function po(t,e,i){var r=t._x1,n=t._y1,s=t._x2,o=t._y2;if(t._l01_a>$n){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>$n){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,s,o,t._x2,t._y2)}function rl(t,e){this._context=t,this._alpha=e}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ap=function t(e){function i(r){return e?new rl(r,e):new ho(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function nl(t,e){this._context=t,this._alpha=e}nl.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bp=function t(e){function i(r){return e?new nl(r,e):new uo(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ep=function t(e){function i(r){return e?new ol(r,e):new fo(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function sl(t){this._context=t}sl.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Lp(t){return new sl(t)}function Ts(t){return t<0?-1:1}function Ss(t,e,i){var r=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(r||n<0&&-0),o=(i-t._y1)/(n||r<0&&-0),a=(s*n+o*r)/(r+n);return(Ts(s)+Ts(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function ks(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function dn(t,e,i){var r=t._x0,n=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,n+a*e,s-a,o-a*i,s,o)}function Cr(t){this._context=t}Cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dn(this,this._t0,ks(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,dn(this,ks(this,i=Ss(this,t,e)),i);break;default:dn(this,this._t0,i=Ss(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function al(t){this._context=new ll(t)}(al.prototype=Object.create(Cr.prototype)).point=function(t,e){Cr.prototype.point.call(this,e,t)};function ll(t){this._context=t}ll.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,s){this._context.bezierCurveTo(e,t,r,i,s,n)}};function Fp(t){return new Cr(t)}function Op(t){return new al(t)}function cl(t){this._context=t}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=ws(t),n=ws(e),s=0,o=1;o<i;++s,++o)this._context.bezierCurveTo(r[0][s],n[0][s],r[1][s],n[1][s],t[o],e[o]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ws(t){var e,i=t.length-1,r,n=new Array(i),s=new Array(i),o=new Array(i);for(n[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,s[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(n[i-1]=o[i-1]/s[i-1],e=i-2;e>=0;--e)n[e]=(o[e]-n[e+1])/s[e];for(s[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function Ip(t){return new cl(t)}function Rr(t,e){this._context=t,this._t=e}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Mp(t){return new Rr(t,.5)}function $p(t){return new Rr(t,0)}function Dp(t){return new Rr(t,1)}function _i(t,e,i){this.k=t,this.x=e,this.y=i}_i.prototype={constructor:_i,scale:function(t){return t===1?this:new _i(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new _i(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};_i.prototype;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:hl,setPrototypeOf:vs,isFrozen:Np,getPrototypeOf:Pp,getOwnPropertyDescriptor:Rp}=Object;let{freeze:gt,seal:vt,create:ul}=Object,{apply:Nn,construct:Pn}=typeof Reflect<"u"&&Reflect;gt||(gt=function(e){return e});vt||(vt=function(e){return e});Nn||(Nn=function(e,i,r){return e.apply(i,r)});Pn||(Pn=function(e,i){return new e(...i)});const Vi=Tt(Array.prototype.forEach),As=Tt(Array.prototype.pop),ci=Tt(Array.prototype.push),nr=Tt(String.prototype.toLowerCase),fn=Tt(String.prototype.toString),Bs=Tt(String.prototype.match),hi=Tt(String.prototype.replace),qp=Tt(String.prototype.indexOf),zp=Tt(String.prototype.trim),Ft=Tt(Object.prototype.hasOwnProperty),ut=Tt(RegExp.prototype.test),ui=Wp(TypeError);function Tt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Nn(t,e,r)}}function Wp(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Pn(t,i)}}function j(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nr;vs&&vs(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const s=i(n);s!==n&&(Np(e)||(e[r]=s),n=s)}t[n]=!0}return t}function Yp(t){for(let e=0;e<t.length;e++)Ft(t,e)||(t[e]=null);return t}function pe(t){const e=ul(null);for(const[i,r]of hl(t))Ft(t,i)&&(Array.isArray(r)?e[i]=Yp(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=pe(r):e[i]=r);return e}function di(t,e){for(;t!==null;){const r=Rp(t,e);if(r){if(r.get)return Tt(r.get);if(typeof r.value=="function")return Tt(r.value)}t=Pp(t)}function i(){return null}return i}const Es=gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pn=gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),gn=gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Hp=gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mn=gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jp=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ls=gt(["#text"]),Fs=gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yn=gt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Os=gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ki=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Up=vt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xp=vt(/<%[\w\W]*|[\w\W]*%>/gm),Gp=vt(/\${[\w\W]*}/gm),Vp=vt(/^data-[\-\w.\u00B7-\uFFFF]/),Kp=vt(/^aria-[\-\w]+$/),dl=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zp=vt(/^(?:\w+script|data):/i),Jp=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fl=vt(/^html$/i),Qp=vt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Is=Object.freeze({__proto__:null,MUSTACHE_EXPR:Up,ERB_EXPR:Xp,TMPLIT_EXPR:Gp,DATA_ATTR:Vp,ARIA_ATTR:Kp,IS_ALLOWED_URI:dl,IS_SCRIPT_OR_DATA:Zp,ATTR_WHITESPACE:Jp,DOCTYPE_NAME:fl,CUSTOM_ELEMENT:Qp});const fi={element:1,text:3,progressingInstruction:7,comment:8,document:9},tg=function(){return typeof window>"u"?null:window},eg=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function pl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tg();const e=O=>pl(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==fi.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,m=l.prototype,y=di(m,"cloneNode"),_=di(m,"remove"),L=di(m,"nextSibling"),x=di(m,"childNodes"),N=di(m,"parentNode");if(typeof o=="function"){const O=i.createElement("template");O.content&&O.content.ownerDocument&&(i=O.content.ownerDocument)}let C,k="";const{implementation:U,createNodeIterator:R,createDocumentFragment:Q,getElementsByTagName:rt}=i,{importNode:Y}=r;let B={};e.isSupported=typeof hl=="function"&&typeof N=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:re,TMPLIT_EXPR:P,DATA_ATTR:v,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:w,CUSTOM_ELEMENT:$}=Is;let{IS_ALLOWED_URI:W}=Is,z=null;const K=j({},[...Es,...pn,...gn,...mn,...Ls]);let H=null;const et=j({},[...Fs,...yn,...Os,...Ki]);let X=Object.seal(ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),St=null,Bt=null,ne=!0,Et=!0,nt=!1,Lt=!0,kt=!1,oe=!0,fe=!1,rn=!1,nn=!1,Ae=!1,qi=!1,zi=!1,No=!0,Po=!1;const Sh="user-content-";let on=!0,ni=!1,Be={},Ee=null;const Ro=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qo=null;const zo=j({},["audio","video","img","source","image","track"]);let sn=null;const Wo=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wi="http://www.w3.org/1998/Math/MathML",Yi="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let Le=jt,an=!1,ln=null;const kh=j({},[Wi,Yi,jt],fn);let oi=null;const wh=["application/xhtml+xml","text/html"],vh="text/html";let it=null,Fe=null;const Ah=i.createElement("form"),Yo=function(p){return p instanceof RegExp||p instanceof Function},cn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fe&&Fe===p)){if((!p||typeof p!="object")&&(p={}),p=pe(p),oi=wh.indexOf(p.PARSER_MEDIA_TYPE)===-1?vh:p.PARSER_MEDIA_TYPE,it=oi==="application/xhtml+xml"?fn:nr,z=Ft(p,"ALLOWED_TAGS")?j({},p.ALLOWED_TAGS,it):K,H=Ft(p,"ALLOWED_ATTR")?j({},p.ALLOWED_ATTR,it):et,ln=Ft(p,"ALLOWED_NAMESPACES")?j({},p.ALLOWED_NAMESPACES,fn):kh,sn=Ft(p,"ADD_URI_SAFE_ATTR")?j(pe(Wo),p.ADD_URI_SAFE_ATTR,it):Wo,qo=Ft(p,"ADD_DATA_URI_TAGS")?j(pe(zo),p.ADD_DATA_URI_TAGS,it):zo,Ee=Ft(p,"FORBID_CONTENTS")?j({},p.FORBID_CONTENTS,it):Ro,St=Ft(p,"FORBID_TAGS")?j({},p.FORBID_TAGS,it):{},Bt=Ft(p,"FORBID_ATTR")?j({},p.FORBID_ATTR,it):{},Be=Ft(p,"USE_PROFILES")?p.USE_PROFILES:!1,ne=p.ALLOW_ARIA_ATTR!==!1,Et=p.ALLOW_DATA_ATTR!==!1,nt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kt=p.SAFE_FOR_TEMPLATES||!1,oe=p.SAFE_FOR_XML!==!1,fe=p.WHOLE_DOCUMENT||!1,Ae=p.RETURN_DOM||!1,qi=p.RETURN_DOM_FRAGMENT||!1,zi=p.RETURN_TRUSTED_TYPE||!1,nn=p.FORCE_BODY||!1,No=p.SANITIZE_DOM!==!1,Po=p.SANITIZE_NAMED_PROPS||!1,on=p.KEEP_CONTENT!==!1,ni=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||dl,Le=p.NAMESPACE||jt,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Yo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Yo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(Et=!1),qi&&(Ae=!0),Be&&(z=j({},Ls),H=[],Be.html===!0&&(j(z,Es),j(H,Fs)),Be.svg===!0&&(j(z,pn),j(H,yn),j(H,Ki)),Be.svgFilters===!0&&(j(z,gn),j(H,yn),j(H,Ki)),Be.mathMl===!0&&(j(z,mn),j(H,Os),j(H,Ki))),p.ADD_TAGS&&(z===K&&(z=pe(z)),j(z,p.ADD_TAGS,it)),p.ADD_ATTR&&(H===et&&(H=pe(H)),j(H,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&j(sn,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(Ee===Ro&&(Ee=pe(Ee)),j(Ee,p.FORBID_CONTENTS,it)),on&&(z["#text"]=!0),fe&&j(z,["html","head","body"]),z.table&&(j(z,["tbody"]),delete St.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw ui('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ui('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=p.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=eg(f,n)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));gt&&gt(p),Fe=p}},Ho=j({},["mi","mo","mn","ms","mtext"]),jo=j({},["foreignobject","annotation-xml"]),Bh=j({},["title","style","font","a","script"]),Uo=j({},[...pn,...gn,...Hp]),Xo=j({},[...mn,...jp]),Eh=function(p){let b=N(p);(!b||!b.tagName)&&(b={namespaceURI:Le,tagName:"template"});const A=nr(p.tagName),G=nr(b.tagName);return ln[p.namespaceURI]?p.namespaceURI===Yi?b.namespaceURI===jt?A==="svg":b.namespaceURI===Wi?A==="svg"&&(G==="annotation-xml"||Ho[G]):!!Uo[A]:p.namespaceURI===Wi?b.namespaceURI===jt?A==="math":b.namespaceURI===Yi?A==="math"&&jo[G]:!!Xo[A]:p.namespaceURI===jt?b.namespaceURI===Yi&&!jo[G]||b.namespaceURI===Wi&&!Ho[G]?!1:!Xo[A]&&(Bh[A]||!Uo[A]):!!(oi==="application/xhtml+xml"&&ln[p.namespaceURI]):!1},Nt=function(p){ci(e.removed,{element:p});try{N(p).removeChild(p)}catch{_(p)}},Hi=function(p,b){try{ci(e.removed,{attribute:b.getAttributeNode(p),from:b})}catch{ci(e.removed,{attribute:null,from:b})}if(b.removeAttribute(p),p==="is"&&!H[p])if(Ae||qi)try{Nt(b)}catch{}else try{b.setAttribute(p,"")}catch{}},Go=function(p){let b=null,A=null;if(nn)p="<remove></remove>"+p;else{const ot=Bs(p,/^[\r\n\t ]+/);A=ot&&ot[0]}oi==="application/xhtml+xml"&&Le===jt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const G=C?C.createHTML(p):p;if(Le===jt)try{b=new h().parseFromString(G,oi)}catch{}if(!b||!b.documentElement){b=U.createDocument(Le,"template",null);try{b.documentElement.innerHTML=an?k:G}catch{}}const at=b.body||b.documentElement;return p&&A&&at.insertBefore(i.createTextNode(A),at.childNodes[0]||null),Le===jt?rt.call(b,fe?"html":"body")[0]:fe?b.documentElement:at},Vo=function(p){return R.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ko=function(p){return p instanceof d&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof u)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Zo=function(p){return typeof a=="function"&&p instanceof a},Ut=function(p,b,A){B[p]&&Vi(B[p],G=>{G.call(e,b,A,Fe)})},Jo=function(p){let b=null;if(Ut("beforeSanitizeElements",p,null),Ko(p))return Nt(p),!0;const A=it(p.nodeName);if(Ut("uponSanitizeElement",p,{tagName:A,allowedTags:z}),p.hasChildNodes()&&!Zo(p.firstElementChild)&&ut(/<[/\w]/g,p.innerHTML)&&ut(/<[/\w]/g,p.textContent)||p.nodeType===fi.progressingInstruction||oe&&p.nodeType===fi.comment&&ut(/<[/\w]/g,p.data))return Nt(p),!0;if(!z[A]||St[A]){if(!St[A]&&ts(A)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A)))return!1;if(on&&!Ee[A]){const G=N(p)||p.parentNode,at=x(p)||p.childNodes;if(at&&G){const ot=at.length;for(let mt=ot-1;mt>=0;--mt){const Pt=y(at[mt],!0);Pt.__removalCount=(p.__removalCount||0)+1,G.insertBefore(Pt,L(p))}}}return Nt(p),!0}return p instanceof l&&!Eh(p)||(A==="noscript"||A==="noembed"||A==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Nt(p),!0):(kt&&p.nodeType===fi.text&&(b=p.textContent,Vi([tt,re,P],G=>{b=hi(b,G," ")}),p.textContent!==b&&(ci(e.removed,{element:p.cloneNode()}),p.textContent=b)),Ut("afterSanitizeElements",p,null),!1)},Qo=function(p,b,A){if(No&&(b==="id"||b==="name")&&(A in i||A in Ah))return!1;if(!(Et&&!Bt[b]&&ut(v,b))){if(!(ne&&ut(T,b))){if(!H[b]||Bt[b]){if(!(ts(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,b)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(b))||b==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A))))return!1}else if(!sn[b]){if(!ut(W,hi(A,w,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&p!=="script"&&qp(A,"data:")===0&&qo[p])){if(!(nt&&!ut(F,hi(A,w,"")))){if(A)return!1}}}}}}return!0},ts=function(p){return p!=="annotation-xml"&&Bs(p,$)},es=function(p){Ut("beforeSanitizeAttributes",p,null);const{attributes:b}=p;if(!b)return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};let G=b.length;for(;G--;){const at=b[G],{name:ot,namespaceURI:mt,value:Pt}=at,si=it(ot);let ht=ot==="value"?Pt:zp(Pt);if(A.attrName=si,A.attrValue=ht,A.keepAttr=!0,A.forceKeepAttr=void 0,Ut("uponSanitizeAttribute",p,A),ht=A.attrValue,oe&&ut(/((--!?|])>)|<\/(style|title)/i,ht)){Hi(ot,p);continue}if(A.forceKeepAttr||(Hi(ot,p),!A.keepAttr))continue;if(!Lt&&ut(/\/>/i,ht)){Hi(ot,p);continue}kt&&Vi([tt,re,P],rs=>{ht=hi(ht,rs," ")});const is=it(p.nodeName);if(Qo(is,si,ht)){if(Po&&(si==="id"||si==="name")&&(Hi(ot,p),ht=Sh+ht),C&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!mt)switch(f.getAttributeType(is,si)){case"TrustedHTML":{ht=C.createHTML(ht);break}case"TrustedScriptURL":{ht=C.createScriptURL(ht);break}}try{mt?p.setAttributeNS(mt,ot,ht):p.setAttribute(ot,ht),Ko(p)?Nt(p):As(e.removed)}catch{}}}Ut("afterSanitizeAttributes",p,null)},Lh=function O(p){let b=null;const A=Vo(p);for(Ut("beforeSanitizeShadowDOM",p,null);b=A.nextNode();)Ut("uponSanitizeShadowNode",b,null),!Jo(b)&&(b.content instanceof s&&O(b.content),es(b));Ut("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(O){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,A=null,G=null,at=null;if(an=!O,an&&(O="<!-->"),typeof O!="string"&&!Zo(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw ui("dirty is not a string, aborting")}else throw ui("toString is not a function");if(!e.isSupported)return O;if(rn||cn(p),e.removed=[],typeof O=="string"&&(ni=!1),ni){if(O.nodeName){const Pt=it(O.nodeName);if(!z[Pt]||St[Pt])throw ui("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)b=Go("<!---->"),A=b.ownerDocument.importNode(O,!0),A.nodeType===fi.element&&A.nodeName==="BODY"||A.nodeName==="HTML"?b=A:b.appendChild(A);else{if(!Ae&&!kt&&!fe&&O.indexOf("<")===-1)return C&&zi?C.createHTML(O):O;if(b=Go(O),!b)return Ae?null:zi?k:""}b&&nn&&Nt(b.firstChild);const ot=Vo(ni?O:b);for(;G=ot.nextNode();)Jo(G)||(G.content instanceof s&&Lh(G.content),es(G));if(ni)return O;if(Ae){if(qi)for(at=Q.call(b.ownerDocument);b.firstChild;)at.appendChild(b.firstChild);else at=b;return(H.shadowroot||H.shadowrootmode)&&(at=Y.call(r,at,!0)),at}let mt=fe?b.outerHTML:b.innerHTML;return fe&&z["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&ut(fl,b.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
13
- `+mt),kt&&Vi([tt,re,P],Pt=>{mt=hi(mt,Pt," ")}),C&&zi?C.createHTML(mt):mt},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cn(O),rn=!0},e.clearConfig=function(){Fe=null,rn=!1},e.isValidAttribute=function(O,p,b){Fe||cn({});const A=it(O),G=it(p);return Qo(A,G,b)},e.addHook=function(O,p){typeof p=="function"&&(B[O]=B[O]||[],ci(B[O],p))},e.removeHook=function(O){if(B[O])return As(B[O])},e.removeHooks=function(O){B[O]&&(B[O]=[])},e.removeAllHooks=function(){B={}},e}var He=pl();const or={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;switch(r){case"r":return or.hue2rgb(s,n,t+1/3)*255;case"g":return or.hue2rgb(s,n,t)*255;case"b":return or.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),s=Math.min(t,e,i),o=(n+s)/2;if(r==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},ig={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},rg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:or,lang:ig,unit:rg},ae={};for(let t=0;t<=255;t++)ae[t]=q.unit.dec2hex(t);const lt={ALL:0,RGB:1,HSL:2};class ng{constructor(){this.type=lt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=lt.ALL}is(e){return this.type===e}}class og{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new ng}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=lt.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(lt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(lt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(lt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(lt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(lt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(lt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const qr=new og({r:0,g:0,b:0,a:0},"transparent"),Ne={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Ne.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,c=s?0:-1,u=o?255:15;return qr.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:s?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}${ae[Math.round(n*255)]}`:`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}`}},ye={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ye.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ye.re);if(!i)return;const[,r,n,s,o,a]=i;return qr.set({h:ye._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:o?q.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},bi={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=bi.colors[t];if(e)return Ne.parse(e)},stringify:t=>{const e=Ne.stringify(t);for(const i in bi.colors)if(bi.colors[i]===e)return i}},Ci={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ci.re);if(!i)return;const[,r,n,s,o,a,l,c,u]=i;return qr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Mt={format:{keyword:bi,hex:Ne,rgb:Ci,rgba:Ci,hsl:ye,hsla:ye},parse:t=>{if(typeof t!="string")return t;const e=Ne.parse(t)||Ci.parse(t)||ye.parse(t)||bi.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(lt.HSL)||t.data.r===void 0?ye.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Ci.stringify(t):Ne.stringify(t)},gl=(t,e)=>{const i=Mt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Mt.stringify(i)},Pe=(t,e,i=0,r=1)=>{if(typeof t!="number")return gl(t,{a:e});const n=qr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Mt.stringify(n)},sg=t=>{const{r:e,g:i,b:r}=Mt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},ag=t=>sg(t)>=.5,Je=t=>!ag(t),ml=(t,e,i)=>{const r=Mt.parse(t),n=r[e],s=q.channel.clamp[e](n+i);return n!==s&&(r[e]=s),Mt.stringify(r)},E=(t,e)=>ml(t,"l",e),D=(t,e)=>ml(t,"l",-e),g=(t,e)=>{const i=Mt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return gl(t,r)},lg=(t,e,i=50)=>{const{r,g:n,b:s,a:o}=Mt.parse(t),{r:a,g:l,b:c,a:u}=Mt.parse(e),d=i/100,h=d*2-1,f=o-u,y=((h*f===-1?h:(h+f)/(1+h*f))+1)/2,_=1-y,L=r*y+a*_,x=n*y+l*_,N=s*y+c*_,C=o*d+u*(1-d);return Pe(L,x,N,C)},S=(t,e=100)=>{const i=Mt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,lg(i,t,e)};var yl=typeof global=="object"&&global&&global.Object===Object&&global,cg=typeof self=="object"&&self&&self.Object===Object&&self,Ht=yl||cg||Function("return this")(),Bi=Ht.Symbol,_l=Object.prototype,hg=_l.hasOwnProperty,ug=_l.toString,pi=Bi?Bi.toStringTag:void 0;function dg(t){var e=hg.call(t,pi),i=t[pi];try{t[pi]=void 0;var r=!0}catch{}var n=ug.call(t);return r&&(e?t[pi]=i:delete t[pi]),n}var fg=Object.prototype,pg=fg.toString;function gg(t){return pg.call(t)}var mg="[object Null]",yg="[object Undefined]",Ms=Bi?Bi.toStringTag:void 0;function Qe(t){return t==null?t===void 0?yg:mg:Ms&&Ms in Object(t)?dg(t):gg(t)}function ue(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _g="[object AsyncFunction]",Cg="[object Function]",xg="[object GeneratorFunction]",bg="[object Proxy]";function go(t){if(!ue(t))return!1;var e=Qe(t);return e==Cg||e==xg||e==_g||e==bg}var _n=Ht["__core-js_shared__"],$s=function(){var t=/[^.]+$/.exec(_n&&_n.keys&&_n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Tg(t){return!!$s&&$s in t}var Sg=Function.prototype,kg=Sg.toString;function ke(t){if(t!=null){try{return kg.call(t)}catch{}try{return t+""}catch{}}return""}var wg=/[\\^$.*+?()[\]{}|]/g,vg=/^\[object .+?Constructor\]$/,Ag=Function.prototype,Bg=Object.prototype,Eg=Ag.toString,Lg=Bg.hasOwnProperty,Fg=RegExp("^"+Eg.call(Lg).replace(wg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Og(t){if(!ue(t)||Tg(t))return!1;var e=go(t)?Fg:vg;return e.test(ke(t))}function Ig(t,e){return t==null?void 0:t[e]}function we(t,e){var i=Ig(t,e);return Og(i)?i:void 0}var Ei=we(Object,"create");function Mg(){this.__data__=Ei?Ei(null):{},this.size=0}function $g(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Dg="__lodash_hash_undefined__",Ng=Object.prototype,Pg=Ng.hasOwnProperty;function Rg(t){var e=this.__data__;if(Ei){var i=e[t];return i===Dg?void 0:i}return Pg.call(e,t)?e[t]:void 0}var qg=Object.prototype,zg=qg.hasOwnProperty;function Wg(t){var e=this.__data__;return Ei?e[t]!==void 0:zg.call(e,t)}var Yg="__lodash_hash_undefined__";function Hg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Ei&&e===void 0?Yg:e,this}function Te(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=Mg;Te.prototype.delete=$g;Te.prototype.get=Rg;Te.prototype.has=Wg;Te.prototype.set=Hg;function jg(){this.__data__=[],this.size=0}function zr(t,e){return t===e||t!==t&&e!==e}function Wr(t,e){for(var i=t.length;i--;)if(zr(t[i][0],e))return i;return-1}var Ug=Array.prototype,Xg=Ug.splice;function Gg(t){var e=this.__data__,i=Wr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Xg.call(e,i,1),--this.size,!0}function Vg(t){var e=this.__data__,i=Wr(e,t);return i<0?void 0:e[i][1]}function Kg(t){return Wr(this.__data__,t)>-1}function Zg(t,e){var i=this.__data__,r=Wr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ie(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ie.prototype.clear=jg;ie.prototype.delete=Gg;ie.prototype.get=Vg;ie.prototype.has=Kg;ie.prototype.set=Zg;var Li=we(Ht,"Map");function Jg(){this.size=0,this.__data__={hash:new Te,map:new(Li||ie),string:new Te}}function Qg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Yr(t,e){var i=t.__data__;return Qg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function tm(t){var e=Yr(this,t).delete(t);return this.size-=e?1:0,e}function em(t){return Yr(this,t).get(t)}function im(t){return Yr(this,t).has(t)}function rm(t,e){var i=Yr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function de(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}de.prototype.clear=Jg;de.prototype.delete=tm;de.prototype.get=em;de.prototype.has=im;de.prototype.set=rm;var nm="Expected a function";function Pi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(nm);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(Pi.Cache||de),i}Pi.Cache=de;function om(){this.__data__=new ie,this.size=0}function sm(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function am(t){return this.__data__.get(t)}function lm(t){return this.__data__.has(t)}var cm=200;function hm(t,e){var i=this.__data__;if(i instanceof ie){var r=i.__data__;if(!Li||r.length<cm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new de(r)}return i.set(t,e),this.size=i.size,this}function ve(t){var e=this.__data__=new ie(t);this.size=e.size}ve.prototype.clear=om;ve.prototype.delete=sm;ve.prototype.get=am;ve.prototype.has=lm;ve.prototype.set=hm;var xr=function(){try{var t=we(Object,"defineProperty");return t({},"",{}),t}catch{}}();function mo(t,e,i){e=="__proto__"&&xr?xr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Rn(t,e,i){(i!==void 0&&!zr(t[e],i)||i===void 0&&!(e in t))&&mo(t,e,i)}function um(t){return function(e,i,r){for(var n=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++n];if(i(s[l],l,s)===!1)break}return e}}var dm=um(),Cl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ds=Cl&&typeof module=="object"&&module&&!module.nodeType&&module,fm=Ds&&Ds.exports===Cl,Ns=fm?Ht.Buffer:void 0,Ps=Ns?Ns.allocUnsafe:void 0;function xl(t,e){if(e)return t.slice();var i=t.length,r=Ps?Ps(i):new t.constructor(i);return t.copy(r),r}var Rs=Ht.Uint8Array;function bl(t){var e=new t.constructor(t.byteLength);return new Rs(e).set(new Rs(t)),e}function Tl(t,e){var i=e?bl(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function Sl(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var qs=Object.create,pm=function(){function t(){}return function(e){if(!ue(e))return{};if(qs)return qs(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function kl(t,e){return function(i){return t(e(i))}}var wl=kl(Object.getPrototypeOf,Object),gm=Object.prototype;function Hr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||gm;return t===i}function vl(t){return typeof t.constructor=="function"&&!Hr(t)?pm(wl(t)):{}}function ti(t){return t!=null&&typeof t=="object"}var mm="[object Arguments]";function zs(t){return ti(t)&&Qe(t)==mm}var Al=Object.prototype,ym=Al.hasOwnProperty,_m=Al.propertyIsEnumerable,br=zs(function(){return arguments}())?zs:function(t){return ti(t)&&ym.call(t,"callee")&&!_m.call(t,"callee")},Fi=Array.isArray,Cm=9007199254740991;function Bl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cm}function Ri(t){return t!=null&&Bl(t.length)&&!go(t)}function xm(t){return ti(t)&&Ri(t)}function bm(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ws=El&&typeof module=="object"&&module&&!module.nodeType&&module,Tm=Ws&&Ws.exports===El,Ys=Tm?Ht.Buffer:void 0,Sm=Ys?Ys.isBuffer:void 0,jr=Sm||bm,km="[object Object]",wm=Function.prototype,vm=Object.prototype,Ll=wm.toString,Am=vm.hasOwnProperty,Bm=Ll.call(Object);function Em(t){if(!ti(t)||Qe(t)!=km)return!1;var e=wl(t);if(e===null)return!0;var i=Am.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ll.call(i)==Bm}var Lm="[object Arguments]",Fm="[object Array]",Om="[object Boolean]",Im="[object Date]",Mm="[object Error]",$m="[object Function]",Dm="[object Map]",Nm="[object Number]",Pm="[object Object]",Rm="[object RegExp]",qm="[object Set]",zm="[object String]",Wm="[object WeakMap]",Ym="[object ArrayBuffer]",Hm="[object DataView]",jm="[object Float32Array]",Um="[object Float64Array]",Xm="[object Int8Array]",Gm="[object Int16Array]",Vm="[object Int32Array]",Km="[object Uint8Array]",Zm="[object Uint8ClampedArray]",Jm="[object Uint16Array]",Qm="[object Uint32Array]",V={};V[jm]=V[Um]=V[Xm]=V[Gm]=V[Vm]=V[Km]=V[Zm]=V[Jm]=V[Qm]=!0;V[Lm]=V[Fm]=V[Ym]=V[Om]=V[Hm]=V[Im]=V[Mm]=V[$m]=V[Dm]=V[Nm]=V[Pm]=V[Rm]=V[qm]=V[zm]=V[Wm]=!1;function ty(t){return ti(t)&&Bl(t.length)&&!!V[Qe(t)]}function Fl(t){return function(e){return t(e)}}var Ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ti=Ol&&typeof module=="object"&&module&&!module.nodeType&&module,ey=Ti&&Ti.exports===Ol,Cn=ey&&yl.process,qn=function(){try{var t=Ti&&Ti.require&&Ti.require("util").types;return t||Cn&&Cn.binding&&Cn.binding("util")}catch{}}(),Hs=qn&&qn.isTypedArray,yo=Hs?Fl(Hs):ty;function zn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var iy=Object.prototype,ry=iy.hasOwnProperty;function Il(t,e,i){var r=t[e];(!(ry.call(t,e)&&zr(r,i))||i===void 0&&!(e in t))&&mo(t,e,i)}function Ml(t,e,i,r){var n=!i;i||(i={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),n?mo(i,a,l):Il(i,a,l)}return i}function ny(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var oy=9007199254740991,sy=/^(?:0|[1-9]\d*)$/;function $l(t,e){var i=typeof t;return e=e??oy,!!e&&(i=="number"||i!="symbol"&&sy.test(t))&&t>-1&&t%1==0&&t<e}var ay=Object.prototype,ly=ay.hasOwnProperty;function Dl(t,e){var i=Fi(t),r=!i&&br(t),n=!i&&!r&&jr(t),s=!i&&!r&&!n&&yo(t),o=i||r||n||s,a=o?ny(t.length,String):[],l=a.length;for(var c in t)(e||ly.call(t,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$l(c,l)))&&a.push(c);return a}function cy(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var hy=Object.prototype,uy=hy.hasOwnProperty;function dy(t){if(!ue(t))return cy(t);var e=Hr(t),i=[];for(var r in t)r=="constructor"&&(e||!uy.call(t,r))||i.push(r);return i}function Nl(t){return Ri(t)?Dl(t,!0):dy(t)}function fy(t){return Ml(t,Nl(t))}function py(t,e,i,r,n,s,o){var a=zn(t,i),l=zn(e,i),c=o.get(l);if(c){Rn(t,i,c);return}var u=s?s(a,l,i+"",t,e,o):void 0,d=u===void 0;if(d){var h=Fi(l),f=!h&&jr(l),m=!h&&!f&&yo(l);u=l,h||f||m?Fi(a)?u=a:xm(a)?u=Sl(a):f?(d=!1,u=xl(l,!0)):m?(d=!1,u=Tl(l,!0)):u=[]:Em(l)||br(l)?(u=a,br(a)?u=fy(a):(!ue(a)||go(a))&&(u=vl(l))):d=!1}d&&(o.set(l,u),n(u,l,r,s,o),o.delete(l)),Rn(t,i,u)}function Pl(t,e,i,r,n){t!==e&&dm(e,function(s,o){if(n||(n=new ve),ue(s))py(t,e,o,i,Pl,r,n);else{var a=r?r(zn(t,o),s,o+"",t,e,n):void 0;a===void 0&&(a=s),Rn(t,o,a)}},Nl)}function Rl(t){return t}function gy(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var js=Math.max;function my(t,e,i){return e=js(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,s=js(r.length-e,0),o=Array(s);++n<s;)o[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(o),gy(t,this,a)}}function yy(t){return function(){return t}}var _y=xr?function(t,e){return xr(t,"toString",{configurable:!0,enumerable:!1,value:yy(e),writable:!0})}:Rl,Cy=800,xy=16,by=Date.now;function Ty(t){var e=0,i=0;return function(){var r=by(),n=xy-(r-i);if(i=r,n>0){if(++e>=Cy)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Sy=Ty(_y);function ky(t,e){return Sy(my(t,e,Rl),t+"")}function wy(t,e,i){if(!ue(i))return!1;var r=typeof e;return(r=="number"?Ri(i)&&$l(e,i.length):r=="string"&&e in i)?zr(i[e],t):!1}function vy(t){return ky(function(e,i){var r=-1,n=i.length,s=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(s=t.length>3&&typeof s=="function"?(n--,s):void 0,o&&wy(i[0],i[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,s)}return e})}var Ay=vy(function(t,e,i){Pl(t,e,i)}),ql="comm",zl="rule",Wl="decl",By="@import",Ey="@keyframes",Ly="@layer",Yl=Math.abs,_o=String.fromCharCode;function Hl(t){return t.trim()}function sr(t,e,i){return t.replace(e,i)}function Fy(t,e,i){return t.indexOf(e,i)}function Oi(t,e){return t.charCodeAt(e)|0}function Ii(t,e,i){return t.slice(e,i)}function Zt(t){return t.length}function Oy(t){return t.length}function Zi(t,e){return e.push(t),t}var Ur=1,je=1,jl=0,At=0,Z=0,ei="";function Co(t,e,i,r,n,s,o,a){return{value:t,root:e,parent:i,type:r,props:n,children:s,line:Ur,column:je,length:o,return:"",siblings:a}}function Iy(){return Z}function My(){return Z=At>0?Oi(ei,--At):0,je--,Z===10&&(je=1,Ur--),Z}function It(){return Z=At<jl?Oi(ei,At++):0,je++,Z===10&&(je=1,Ur++),Z}function Ce(){return Oi(ei,At)}function ar(){return At}function Xr(t,e){return Ii(ei,t,e)}function Wn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $y(t){return Ur=je=1,jl=Zt(ei=t),At=0,[]}function Dy(t){return ei="",t}function xn(t){return Hl(Xr(At-1,Yn(t===91?t+2:t===40?t+1:t)))}function Ny(t){for(;(Z=Ce())&&Z<33;)It();return Wn(t)>2||Wn(Z)>3?"":" "}function Py(t,e){for(;--e&&It()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return Xr(t,ar()+(e<6&&Ce()==32&&It()==32))}function Yn(t){for(;It();)switch(Z){case t:return At;case 34:case 39:t!==34&&t!==39&&Yn(Z);break;case 40:t===41&&Yn(t);break;case 92:It();break}return At}function Ry(t,e){for(;It()&&t+Z!==57;)if(t+Z===84&&Ce()===47)break;return"/*"+Xr(e,At-1)+"*"+_o(t===47?t:It())}function qy(t){for(;!Wn(Ce());)It();return Xr(t,At)}function zy(t){return Dy(lr("",null,null,null,[""],t=$y(t),0,[0],t))}function lr(t,e,i,r,n,s,o,a,l){for(var c=0,u=0,d=o,h=0,f=0,m=0,y=1,_=1,L=1,x=0,N="",C=n,k=s,U=r,R=N;_;)switch(m=x,x=It()){case 40:if(m!=108&&Oi(R,d-1)==58){Fy(R+=sr(xn(x),"&","&\f"),"&\f",Yl(c?a[c-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:R+=xn(x);break;case 9:case 10:case 13:case 32:R+=Ny(m);break;case 92:R+=Py(ar()-1,7);continue;case 47:switch(Ce()){case 42:case 47:Zi(Wy(Ry(It(),ar()),e,i,l),l);break;default:R+="/"}break;case 123*y:a[c++]=Zt(R)*L;case 125*y:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+u:L==-1&&(R=sr(R,/\f/g,"")),f>0&&Zt(R)-d&&Zi(f>32?Xs(R+";",r,i,d-1,l):Xs(sr(R," ","")+";",r,i,d-2,l),l);break;case 59:R+=";";default:if(Zi(U=Us(R,e,i,c,u,n,a,N,C=[],k=[],d,s),s),x===123)if(u===0)lr(R,e,U,U,C,s,d,a,k);else switch(h===99&&Oi(R,3)===110?100:h){case 100:case 108:case 109:case 115:lr(t,U,U,r&&Zi(Us(t,U,U,0,0,n,a,N,n,C=[],d,k),k),n,k,d,a,r?C:k);break;default:lr(R,U,U,U,[""],k,0,a,k)}}c=u=f=0,y=L=1,N=R="",d=o;break;case 58:d=1+Zt(R),f=m;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&My()==125)continue}switch(R+=_o(x),x*y){case 38:L=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(Zt(R)-1)*L,L=1;break;case 64:Ce()===45&&(R+=xn(It())),h=Ce(),u=d=Zt(N=R+=qy(ar())),x++;break;case 45:m===45&&Zt(R)==2&&(y=0)}}return s}function Us(t,e,i,r,n,s,o,a,l,c,u,d){for(var h=n-1,f=n===0?s:[""],m=Oy(f),y=0,_=0,L=0;y<r;++y)for(var x=0,N=Ii(t,h+1,h=Yl(_=o[y])),C=t;x<m;++x)(C=Hl(_>0?f[x]+" "+N:sr(N,/&\f/g,f[x])))&&(l[L++]=C);return Co(t,e,i,n===0?zl:a,l,c,u,d)}function Wy(t,e,i,r){return Co(t,e,i,ql,_o(Iy()),Ii(t,2,-2),0,r)}function Xs(t,e,i,r,n){return Co(t,e,i,Wl,Ii(t,0,r),Ii(t,r+1,-1),r,n)}function Hn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function Yy(t,e,i,r){switch(t.type){case Ly:if(t.children.length)break;case By:case Wl:return t.return=t.return||t.value;case ql:return"";case Ey:return t.return=t.value+"{"+Hn(t.children,r)+"}";case zl:if(!Zt(t.value=t.props.join(",")))return""}return Zt(i=Hn(t.children,r))?t.return=t.value+"{"+i+"}":""}var Hy=kl(Object.keys,Object),jy=Object.prototype,Uy=jy.hasOwnProperty;function Ul(t){if(!Hr(t))return Hy(t);var e=[];for(var i in Object(t))Uy.call(t,i)&&i!="constructor"&&e.push(i);return e}var jn=we(Ht,"DataView"),Un=we(Ht,"Promise"),Xn=we(Ht,"Set"),Gn=we(Ht,"WeakMap"),Gs="[object Map]",Xy="[object Object]",Vs="[object Promise]",Ks="[object Set]",Zs="[object WeakMap]",Js="[object DataView]",Gy=ke(jn),Vy=ke(Li),Ky=ke(Un),Zy=ke(Xn),Jy=ke(Gn);exports.getTag=Qe;(jn&&exports.getTag(new jn(new ArrayBuffer(1)))!=Js||Li&&exports.getTag(new Li)!=Gs||Un&&exports.getTag(Un.resolve())!=Vs||Xn&&exports.getTag(new Xn)!=Ks||Gn&&exports.getTag(new Gn)!=Zs)&&(exports.getTag=function(t){var e=Qe(t),i=e==Xy?t.constructor:void 0,r=i?ke(i):"";if(r)switch(r){case Gy:return Js;case Vy:return Gs;case Ky:return Vs;case Zy:return Ks;case Jy:return Zs}return e});var Qy="[object Map]",t0="[object Set]",e0=Object.prototype,i0=e0.hasOwnProperty;function bn(t){if(t==null)return!0;if(Ri(t)&&(Fi(t)||typeof t=="string"||typeof t.splice=="function"||jr(t)||yo(t)||br(t)))return!t.length;var e=exports.getTag(t);if(e==Qy||e==t0)return!t.size;if(Hr(t))return!Ul(t).length;for(var i in t)if(i0.call(t,i))return!1;return!0}const Gt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},xo=function(t="fatal"){let e=Gt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Gt&&(e=Gt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Gt.fatal&&(M.fatal=console.error?console.error.bind(console,wt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",wt("FATAL"))),e<=Gt.error&&(M.error=console.error?console.error.bind(console,wt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",wt("ERROR"))),e<=Gt.warn&&(M.warn=console.warn?console.warn.bind(console,wt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",wt("WARN"))),e<=Gt.info&&(M.info=console.info?console.info.bind(console,wt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",wt("INFO"))),e<=Gt.debug&&(M.debug=console.debug?console.debug.bind(console,wt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",wt("DEBUG"))),e<=Gt.trace&&(M.trace=console.debug?console.debug.bind(console,wt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",wt("TRACE")))},wt=t=>`%c${Sa().format("ss.SSS")} : ${t} : `,ii=/<br\s*\/?>/gi,r0=t=>t?Gl(t).replace(/\\n/g,"#br#").split("#br#"):[""],n0=(()=>{let t=!1;return()=>{t||(o0(),t=!0)}})();function o0(){const t="data-temp-href-target";He.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),He.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Xl=t=>(n0(),He.sanitize(t)),Qs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Xl(t):r!=="loose"&&(t=Gl(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=c0(t))}return t},Ue=(t,e)=>t&&(e.dompurifyConfig?t=He.sanitize(Qs(t,e),e.dompurifyConfig).toString():t=He.sanitize(Qs(t,e),{FORBID_TAGS:["style"]}).toString(),t),s0=(t,e)=>typeof t=="string"?Ue(t,e):t.flat().map(i=>Ue(i,e)),a0=t=>ii.test(t),l0=t=>t.split(ii),c0=t=>t.replace(/#br#/g,"<br/>"),Gl=t=>t.replace(ii,"#br#"),h0=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},bo=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),u0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},d0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},f0=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const s=e[r-1],o=e[r+1];p0(s,o)&&(n=s+","+o,r++,i.pop())}i.push(g0(n))}return i.join("")},Vn=(t,e)=>Math.max(0,t.split(e).length-1),p0=(t,e)=>{const i=Vn(t,"~"),r=Vn(e,"~");return i===1&&r===1},g0=t=>{const e=Vn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),s=r.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)r[n]="<",r[s]=">",n=r.indexOf("~"),s=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ta=()=>window.MathMLElement!==void 0,Kn=/\$\$(.*)\$\$/g,Zn=t=>{var e;return(((e=t.match(Kn))==null?void 0:e.length)??0)>0},m0=async(t,e)=>{t=await Vl(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Vl=async(t,e)=>{if(!Zn(t))return t;if(!ta()&&!e.legacyMathML)return t.replace(Kn,"MathML is unsupported in this environment.");const{default:i}=await Promise.resolve().then(()=>require("./layers.fTcEk1do.js"));return t.split(ii).map(r=>Zn(r)?`
9
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
10
+ `)&&(f=String(a).split(`
11
+ `).map(function(u,d){return d===0?u:""+h+u}).join(`
12
+ `)),o+=f+r[l+1]}),o}var er={exports:{}},Xh=er.exports,ss;function Gh(){return ss||(ss=1,function(t,e){(function(i,r){t.exports=r()})(Xh,function(){var i=1e3,r=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",h="week",f="month",u="quarter",d="year",m="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var w=["th","st","nd","rd"],T=R%100;return"["+R+(w[(T-20)%10]||w[T]||w[0])+"]"}},P=function(R,w,T){var F=String(R);return!F||F.length>=w?R:""+Array(w+1-F.length).join(T)+R},C={s:P,z:function(R){var w=-R.utcOffset(),T=Math.abs(w),F=Math.floor(T/60),k=T%60;return(w<=0?"+":"-")+P(F,2,"0")+":"+P(k,2,"0")},m:function R(w,T){if(w.date()<T.date())return-R(T,w);var F=12*(T.year()-w.year())+(T.month()-w.month()),k=w.clone().add(F,f),$=T-k<0,W=w.clone().add(F+($?-1:1),f);return+(-(F+(T-k)/($?k-W:W-k))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:d,w:h,d:c,D:m,h:l,m:a,s:o,ms:s,Q:u}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},S="en",U={};U[S]=x;var N="$isDayjsObject",Q=function(R){return R instanceof tt||!(!R||!R[N])},rt=function R(w,T,F){var k;if(!w)return S;if(typeof w=="string"){var $=w.toLowerCase();U[$]&&(k=$),T&&(U[$]=T,k=$);var W=w.split("-");if(!k&&W.length>1)return R(W[0])}else{var z=w.name;U[z]=w,k=z}return!F&&k&&(S=k),k||!F&&S},Y=function(R,w){if(Q(R))return R.clone();var T=typeof w=="object"?w:{};return T.date=R,T.args=arguments,new tt(T)},B=C;B.l=rt,B.i=Q,B.w=function(R,w){return Y(R,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var tt=function(){function R(T){this.$L=rt(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[N]=!0}var w=R.prototype;return w.parse=function(T){this.$d=function(F){var k=F.date,$=F.utc;if(k===null)return new Date(NaN);if(B.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(_);if(W){var z=W[2]-1||0,K=(W[7]||"0").substring(0,3);return $?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)}}return new Date(k)}(T),this.init()},w.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},w.$utils=function(){return B},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(T,F){var k=Y(T);return this.startOf(F)<=k&&k<=this.endOf(F)},w.isAfter=function(T,F){return Y(T)<this.startOf(F)},w.isBefore=function(T,F){return this.endOf(F)<Y(T)},w.$g=function(T,F,k){return B.u(T)?this[F]:this.set(k,T)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(T,F){var k=this,$=!!B.u(F)||F,W=B.p(T),z=function(Et,nt){var Lt=B.w(k.$u?Date.UTC(k.$y,nt,Et):new Date(k.$y,nt,Et),k);return $?Lt:Lt.endOf(c)},K=function(Et,nt){return B.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(nt)),k)},H=this.$W,et=this.$M,X=this.$D,vt="set"+(this.$u?"UTC":"");switch(W){case d:return $?z(1,0):z(31,11);case f:return $?z(1,et):z(0,et+1);case h:var Bt=this.$locale().weekStart||0,ne=(H<Bt?H+7:H)-Bt;return z($?X-ne:X+(6-ne),et);case c:case m:return K(vt+"Hours",0);case l:return K(vt+"Minutes",1);case a:return K(vt+"Seconds",2);case o:return K(vt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(T){return this.startOf(T,!1)},w.$set=function(T,F){var k,$=B.p(T),W="set"+(this.$u?"UTC":""),z=(k={},k[c]=W+"Date",k[m]=W+"Date",k[f]=W+"Month",k[d]=W+"FullYear",k[l]=W+"Hours",k[a]=W+"Minutes",k[o]=W+"Seconds",k[s]=W+"Milliseconds",k)[$],K=$===c?this.$D+(F-this.$W):F;if($===f||$===d){var H=this.clone().set(m,1);H.$d[z](K),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else z&&this.$d[z](K);return this.init(),this},w.set=function(T,F){return this.clone().$set(T,F)},w.get=function(T){return this[B.p(T)]()},w.add=function(T,F){var k,$=this;T=Number(T);var W=B.p(F),z=function(et){var X=Y($);return B.w(X.date(X.date()+Math.round(et*T)),$)};if(W===f)return this.set(f,this.$M+T);if(W===d)return this.set(d,this.$y+T);if(W===c)return z(1);if(W===h)return z(7);var K=(k={},k[a]=r,k[l]=n,k[o]=i,k)[W]||1,H=this.$d.getTime()+T*K;return B.w(H,this)},w.subtract=function(T,F){return this.add(-1*T,F)},w.format=function(T){var F=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var $=T||"YYYY-MM-DDTHH:mm:ssZ",W=B.z(this),z=this.$H,K=this.$m,H=this.$M,et=k.weekdays,X=k.months,vt=k.meridiem,Bt=function(nt,Lt,St,oe){return nt&&(nt[Lt]||nt(F,$))||St[Lt].slice(0,oe)},ne=function(nt){return B.s(z%12||12,nt,"0")},Et=vt||function(nt,Lt,St){var oe=nt<12?"AM":"PM";return St?oe.toLowerCase():oe};return $.replace(L,function(nt,Lt){return Lt||function(St){switch(St){case"YY":return String(F.$y).slice(-2);case"YYYY":return B.s(F.$y,4,"0");case"M":return H+1;case"MM":return B.s(H+1,2,"0");case"MMM":return Bt(k.monthsShort,H,X,3);case"MMMM":return Bt(X,H);case"D":return F.$D;case"DD":return B.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Bt(k.weekdaysMin,F.$W,et,2);case"ddd":return Bt(k.weekdaysShort,F.$W,et,3);case"dddd":return et[F.$W];case"H":return String(z);case"HH":return B.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Et(z,K,!0);case"A":return Et(z,K,!1);case"m":return String(K);case"mm":return B.s(K,2,"0");case"s":return String(F.$s);case"ss":return B.s(F.$s,2,"0");case"SSS":return B.s(F.$ms,3,"0");case"Z":return W}return null}(nt)||W.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(T,F,k){var $,W=this,z=B.p(F),K=Y(T),H=(K.utcOffset()-this.utcOffset())*r,et=this-K,X=function(){return B.m(W,K)};switch(z){case d:$=X()/12;break;case f:$=X();break;case u:$=X()/3;break;case h:$=(et-H)/6048e5;break;case c:$=(et-H)/864e5;break;case l:$=et/n;break;case a:$=et/r;break;case o:$=et/i;break;default:$=et}return k?$:B.a($)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return U[this.$L]},w.locale=function(T,F){if(!T)return this.$L;var k=this.clone(),$=rt(T,F,!0);return $&&(k.$L=$),k},w.clone=function(){return B.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},R}(),re=tt.prototype;return Y.prototype=re,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",f],["$y",d],["$D",m]].forEach(function(R){re[R[1]]=function(w){return this.$g(w,R[0],R[1])}}),Y.extend=function(R,w){return R.$i||(R(w,tt,Y),R.$i=!0),Y},Y.locale=rt,Y.isDayjs=Q,Y.unix=function(R){return Y(1e3*R)},Y.en=U[S],Y.Ls=U,Y.p={},Y})}(er)),er.exports}var Vh=Gh();const va=Fh.getDefaultExportFromCjs(Vh);var Kh={value:()=>{}};function Sa(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new ir(i)}function ir(t){this._=t}function Zh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}ir.prototype=Sa.prototype={constructor:ir,on:function(t,e){var i=this._,r=Zh(t+"",i),n,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((n=(t=r[s]).type)&&(n=Jh(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=as(i[n],t.name,e);else if(e==null)for(n in i)i[n]=as(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ir(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,s;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,n=s.length;r<n;++r)s[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,s=r.length;n<s;++n)r[n].value.apply(e,i)}};function Jh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function as(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Kh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var Bn="http://www.w3.org/1999/xhtml";const ls={svg:"http://www.w3.org/2000/svg",xhtml:Bn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ir(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),ls.hasOwnProperty(e)?{space:ls[e],local:t}:t}function Qh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Bn&&e.documentElement.namespaceURI===Bn?e.createElement(t):e.createElementNS(i,t)}}function tu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ka(t){var e=Ir(t);return(e.local?tu:Qh)(e)}function eu(){}function io(t){return t==null?eu:function(){return this.querySelector(t)}}function iu(t){typeof t!="function"&&(t=io(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=new Array(o),l,c,h=0;h<o;++h)(l=s[h])&&(c=t.call(l,l.__data__,h,s))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new Ct(r,this._parents)}function wa(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ru(){return[]}function Aa(t){return t==null?ru:function(){return this.querySelectorAll(t)}}function nu(t){return function(){return wa(t.apply(this,arguments))}}function ou(t){typeof t=="function"?t=nu(t):t=Aa(t);for(var e=this._groups,i=e.length,r=[],n=[],s=0;s<i;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(r.push(t.call(l,l.__data__,c,o)),n.push(l));return new Ct(r,n)}function Ba(t){return function(){return this.matches(t)}}function Ea(t){return function(e){return e.matches(t)}}var su=Array.prototype.find;function au(t){return function(){return su.call(this.children,t)}}function lu(){return this.firstElementChild}function cu(t){return this.select(t==null?lu:au(typeof t=="function"?t:Ea(t)))}var hu=Array.prototype.filter;function uu(){return Array.from(this.children)}function fu(t){return function(){return hu.call(this.children,t)}}function du(t){return this.selectAll(t==null?uu:fu(typeof t=="function"?t:Ea(t)))}function pu(t){typeof t!="function"&&(t=Ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new Ct(r,this._parents)}function La(t){return new Array(t.length)}function gu(){return new Ct(this._enter||this._groups.map(La),this._parents)}function fr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}fr.prototype={constructor:fr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function mu(t){return function(){return t}}function yu(t,e,i,r,n,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):i[o]=new fr(t,s[o]);for(;o<l;++o)(a=e[o])&&(n[o]=a)}function _u(t,e,i,r,n,s,o){var a,l,c=new Map,h=e.length,f=s.length,u=new Array(h),d;for(a=0;a<h;++a)(l=e[a])&&(u[a]=d=o.call(l,l.__data__,a,e)+"",c.has(d)?n[a]=l:c.set(d,l));for(a=0;a<f;++a)d=o.call(t,s[a],a,s)+"",(l=c.get(d))?(r[a]=l,l.__data__=s[a],c.delete(d)):i[a]=new fr(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(u[a])===l&&(n[a]=l)}function Cu(t){return t.__data__}function xu(t,e){if(!arguments.length)return Array.from(this,Cu);var i=e?_u:yu,r=this._parents,n=this._groups;typeof t!="function"&&(t=mu(t));for(var s=n.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var h=r[c],f=n[c],u=f.length,d=bu(t.call(h,h&&h.__data__,c,r)),m=d.length,y=a[c]=new Array(m),_=o[c]=new Array(m),L=l[c]=new Array(u);i(h,f,y,_,L,d,e);for(var x=0,P=0,C,S;x<m;++x)if(C=y[x]){for(x>=P&&(P=x+1);!(S=_[P])&&++P<m;);C._next=S||null}}return o=new Ct(o,r),o._enter=a,o._exit=l,o}function bu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Tu(){return new Ct(this._exit||this._groups.map(La),this._parents)}function vu(t,e,i){var r=this.enter(),n=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?s.remove():i(s),r&&n?r.merge(n).order():n}function Su(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,s=r.length,o=Math.min(n,s),a=new Array(n),l=0;l<o;++l)for(var c=i[l],h=r[l],f=c.length,u=a[l]=new Array(f),d,m=0;m<f;++m)(d=c[m]||h[m])&&(u[m]=d);for(;l<n;++l)a[l]=i[l];return new Ct(a,this._parents)}function ku(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,s=r[n],o;--n>=0;)(o=r[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function wu(t){t||(t=Au);function e(f,u){return f&&u?t(f.__data__,u.__data__):!f-!u}for(var i=this._groups,r=i.length,n=new Array(r),s=0;s<r;++s){for(var o=i[s],a=o.length,l=n[s]=new Array(a),c,h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(e)}return new Ct(n,this._parents).order()}function Au(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Bu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Eu(){return Array.from(this)}function Lu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length;n<s;++n){var o=r[n];if(o)return o}return null}function Fu(){let t=0;for(const e of this)++t;return t}function Ou(){return!this.node()}function Iu(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],s=0,o=n.length,a;s<o;++s)(a=n[s])&&t.call(a,a.__data__,s,n);return this}function Mu(t){return function(){this.removeAttribute(t)}}function $u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Du(t,e){return function(){this.setAttribute(t,e)}}function Nu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Pu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Ru(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function qu(t,e){var i=Ir(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?$u:Mu:typeof e=="function"?i.local?Ru:Pu:i.local?Nu:Du)(i,e))}function Fa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zu(t){return function(){this.style.removeProperty(t)}}function Wu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Yu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Hu(t,e,i){return arguments.length>1?this.each((e==null?zu:typeof e=="function"?Yu:Wu)(t,e,i??"")):We(this.node(),t)}function We(t,e){return t.style.getPropertyValue(e)||Fa(t).getComputedStyle(t,null).getPropertyValue(e)}function ju(t){return function(){delete this[t]}}function Uu(t,e){return function(){this[t]=e}}function Xu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Gu(t,e){return arguments.length>1?this.each((e==null?ju:typeof e=="function"?Xu:Uu)(t,e)):this.node()[t]}function Oa(t){return t.trim().split(/^|\s+/)}function ro(t){return t.classList||new Ia(t)}function Ia(t){this._node=t,this._names=Oa(t.getAttribute("class")||"")}Ia.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ma(t,e){for(var i=ro(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function $a(t,e){for(var i=ro(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Vu(t){return function(){Ma(this,t)}}function Ku(t){return function(){$a(this,t)}}function Zu(t,e){return function(){(e.apply(this,arguments)?Ma:$a)(this,t)}}function Ju(t,e){var i=Oa(t+"");if(arguments.length<2){for(var r=ro(this.node()),n=-1,s=i.length;++n<s;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Zu:e?Vu:Ku)(i,e))}function Qu(){this.textContent=""}function tf(t){return function(){this.textContent=t}}function ef(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function rf(t){return arguments.length?this.each(t==null?Qu:(typeof t=="function"?ef:tf)(t)):this.node().textContent}function nf(){this.innerHTML=""}function of(t){return function(){this.innerHTML=t}}function sf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function af(t){return arguments.length?this.each(t==null?nf:(typeof t=="function"?sf:of)(t)):this.node().innerHTML}function lf(){this.nextSibling&&this.parentNode.appendChild(this)}function cf(){return this.each(lf)}function hf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uf(){return this.each(hf)}function ff(t){var e=typeof t=="function"?t:ka(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function df(){return null}function pf(t,e){var i=typeof t=="function"?t:ka(t),r=e==null?df:typeof e=="function"?e:io(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function gf(){var t=this.parentNode;t&&t.removeChild(this)}function mf(){return this.each(gf)}function yf(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _f(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cf(t){return this.select(t?_f:yf)}function xf(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bf(t){return function(e){t.call(this,e,this.__data__)}}function Tf(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function vf(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,s;i<n;++i)s=e[i],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function Sf(t,e,i){return function(){var r=this.__on,n,s=bf(e);if(r){for(var o=0,a=r.length;o<a;++o)if((n=r[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),n.value=e;return}}this.addEventListener(t.type,s,i),n={type:t.type,name:t.name,value:e,listener:s,options:i},r?r.push(n):this.__on=[n]}}function kf(t,e,i){var r=Tf(t+""),n,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<s;++n)if((o=r[n]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?Sf:vf,n=0;n<s;++n)this.each(a(r[n],e,i));return this}function Da(t,e,i){var r=Fa(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function wf(t,e){return function(){return Da(this,t,e)}}function Af(t,e){return function(){return Da(this,t,e.apply(this,arguments))}}function Bf(t,e){return this.each((typeof e=="function"?Af:wf)(t,e))}function*Ef(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length,o;n<s;++n)(o=r[n])&&(yield o)}var no=[null];function Ct(t,e){this._groups=t,this._parents=e}function Pi(){return new Ct([[document.documentElement]],no)}function Lf(){return this}Ct.prototype=Pi.prototype={constructor:Ct,select:iu,selectAll:ou,selectChild:cu,selectChildren:du,filter:pu,data:xu,enter:gu,exit:Tu,join:vu,merge:Su,selection:Lf,order:ku,sort:wu,call:Bu,nodes:Eu,node:Lu,size:Fu,empty:Ou,each:Iu,attr:qu,style:Hu,property:Gu,classed:Ju,text:rf,html:af,raise:cf,lower:uf,append:ff,insert:pf,remove:mf,clone:Cf,datum:xf,on:kf,dispatch:Bf,[Symbol.iterator]:Ef};function xt(t){return typeof t=="string"?new Ct([[document.querySelector(t)]],[document.documentElement]):new Ct([[t]],no)}function Mr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function oo(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Qe(){}var Ai=.7,dr=1/Ai,De="\\s*([+-]?\\d+)\\s*",Bi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ff=/^#([0-9a-f]{3,8})$/,Of=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),If=new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`),Mf=new RegExp(`^rgba\\(${De},${De},${De},${Bi}\\)$`),$f=new RegExp(`^rgba\\(${zt},${zt},${zt},${Bi}\\)$`),Df=new RegExp(`^hsl\\(${Bi},${zt},${zt}\\)$`),Nf=new RegExp(`^hsla\\(${Bi},${zt},${zt},${Bi}\\)$`),cs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Mr(Qe,Ye,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hs,formatHex:hs,formatHex8:Pf,formatHsl:Rf,formatRgb:us,toString:us});function hs(){return this.rgb().formatHex()}function Pf(){return this.rgb().formatHex8()}function Rf(){return Pa(this).formatHsl()}function us(){return this.rgb().formatRgb()}function Ye(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Ff.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?fs(e):i===3?new dt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Xi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Xi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Of.exec(t))?new dt(e[1],e[2],e[3],1):(e=If.exec(t))?new dt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Mf.exec(t))?Xi(e[1],e[2],e[3],e[4]):(e=$f.exec(t))?Xi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Df.exec(t))?gs(e[1],e[2]/100,e[3]/100,1):(e=Nf.exec(t))?gs(e[1],e[2]/100,e[3]/100,e[4]):cs.hasOwnProperty(t)?fs(cs[t]):t==="transparent"?new dt(NaN,NaN,NaN,0):null}function fs(t){return new dt(t>>16&255,t>>8&255,t&255,1)}function Xi(t,e,i,r){return r<=0&&(t=e=i=NaN),new dt(t,e,i,r)}function Na(t){return t instanceof Qe||(t=Ye(t)),t?(t=t.rgb(),new dt(t.r,t.g,t.b,t.opacity)):new dt}function En(t,e,i,r){return arguments.length===1?Na(t):new dt(t,e,i,r??1)}function dt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Mr(dt,En,oo(Qe,{brighter(t){return t=t==null?dr:Math.pow(dr,t),new dt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ai:Math.pow(Ai,t),new dt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new dt(Ce(this.r),Ce(this.g),Ce(this.b),pr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ds,formatHex:ds,formatHex8:qf,formatRgb:ps,toString:ps}));function ds(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function qf(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye((isNaN(this.opacity)?1:this.opacity)*255)}`}function ps(){const t=pr(this.opacity);return`${t===1?"rgb(":"rgba("}${Ce(this.r)}, ${Ce(this.g)}, ${Ce(this.b)}${t===1?")":`, ${t})`}`}function pr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ce(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ye(t){return t=Ce(t),(t<16?"0":"")+t.toString(16)}function gs(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,i,r)}function Pa(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof Qe||(t=Ye(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),s=Math.max(e,i,r),o=NaN,a=s-n,l=(s+n)/2;return a?(e===s?o=(i-r)/a+(i<r)*6:i===s?o=(r-e)/a+2:o=(e-i)/a+4,a/=l<.5?s+n:2-s-n,o*=60):a=l>0&&l<1?0:o,new Ot(o,a,l,t.opacity)}function zf(t,e,i,r){return arguments.length===1?Pa(t):new Ot(t,e,i,r??1)}function Ot(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Mr(Ot,zf,oo(Qe,{brighter(t){return t=t==null?dr:Math.pow(dr,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ai:Math.pow(Ai,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new dt(un(t>=240?t-240:t+120,n,r),un(t,n,r),un(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ot(ms(this.h),Gi(this.s),Gi(this.l),pr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=pr(this.opacity);return`${t===1?"hsl(":"hsla("}${ms(this.h)}, ${Gi(this.s)*100}%, ${Gi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ms(t){return t=(t||0)%360,t<0?t+360:t}function Gi(t){return Math.max(0,Math.min(1,t||0))}function un(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const $r=t=>()=>t;function Ra(t,e){return function(i){return t+i*e}}function Wf(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Yf(t,e){var i=e-t;return i?Ra(t,i>180||i<-180?i-360*Math.round(i/360):i):$r(isNaN(t)?e:t)}function Hf(t){return(t=+t)==1?so:function(e,i){return i-e?Wf(e,i,t):$r(isNaN(e)?i:e)}}function so(t,e){var i=e-t;return i?Ra(t,i):$r(isNaN(t)?e:t)}const Ln=function t(e){var i=Hf(e);function r(n,s){var o=i((n=En(n)).r,(s=En(s)).r),a=i(n.g,s.g),l=i(n.b,s.b),c=so(n.opacity,s.opacity);return function(h){return n.r=o(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r}(1);function Zt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Fn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fn=new RegExp(Fn.source,"g");function jf(t){return function(){return t}}function Uf(t){return function(e){return t(e)+""}}function qa(t,e){var i=Fn.lastIndex=fn.lastIndex=0,r,n,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Fn.exec(t))&&(n=fn.exec(e));)(s=n.index)>i&&(s=e.slice(i,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Zt(r,n)})),i=fn.lastIndex;return i<e.length&&(s=e.slice(i),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?Uf(l[0].x):jf(e):(e=l.length,function(c){for(var h=0,f;h<e;++h)a[(f=l[h]).i]=f.x(c);return a.join("")})}var ys=180/Math.PI,On={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function za(t,e,i,r,n,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*ys,skewX:Math.atan(l)*ys,scaleX:o,scaleY:a}}var Vi;function Xf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?On:za(e.a,e.b,e.c,e.d,e.e,e.f)}function Gf(t){return t==null||(Vi||(Vi=document.createElementNS("http://www.w3.org/2000/svg","g")),Vi.setAttribute("transform",t),!(t=Vi.transform.baseVal.consolidate()))?On:(t=t.matrix,za(t.a,t.b,t.c,t.d,t.e,t.f))}function Wa(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function s(c,h,f,u,d,m){if(c!==f||h!==u){var y=d.push("translate(",null,e,null,i);m.push({i:y-4,x:Zt(c,f)},{i:y-2,x:Zt(h,u)})}else(f||u)&&d.push("translate("+f+e+u+i)}function o(c,h,f,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:f.push(n(f)+"rotate(",null,r)-2,x:Zt(c,h)})):h&&f.push(n(f)+"rotate("+h+r)}function a(c,h,f,u){c!==h?u.push({i:f.push(n(f)+"skewX(",null,r)-2,x:Zt(c,h)}):h&&f.push(n(f)+"skewX("+h+r)}function l(c,h,f,u,d,m){if(c!==f||h!==u){var y=d.push(n(d)+"scale(",null,",",null,")");m.push({i:y-4,x:Zt(c,f)},{i:y-2,x:Zt(h,u)})}else(f!==1||u!==1)&&d.push(n(d)+"scale("+f+","+u+")")}return function(c,h){var f=[],u=[];return c=t(c),h=t(h),s(c.translateX,c.translateY,h.translateX,h.translateY,f,u),o(c.rotate,h.rotate,f,u),a(c.skewX,h.skewX,f,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,f,u),c=h=null,function(d){for(var m=-1,y=u.length,_;++m<y;)f[(_=u[m]).i]=_.x(d);return f.join("")}}}var Vf=Wa(Xf,"px, ","px)","deg)"),Kf=Wa(Gf,", ",")",")"),He=0,_i=0,hi=0,Ya=1e3,gr,Ci,mr=0,be=0,Dr=0,Ei=typeof performance=="object"&&performance.now?performance:Date,Ha=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ao(){return be||(Ha(Zf),be=Ei.now()+Dr)}function Zf(){be=0}function yr(){this._call=this._time=this._next=null}yr.prototype=ja.prototype={constructor:yr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?ao():+i)+(e==null?0:+e),!this._next&&Ci!==this&&(Ci?Ci._next=this:gr=this,Ci=this),this._call=t,this._time=i,In()},stop:function(){this._call&&(this._call=null,this._time=1/0,In())}};function ja(t,e,i){var r=new yr;return r.restart(t,e,i),r}function Jf(){ao(),++He;for(var t=gr,e;t;)(e=be-t._time)>=0&&t._call.call(void 0,e),t=t._next;--He}function _s(){be=(mr=Ei.now())+Dr,He=_i=0;try{Jf()}finally{He=0,td(),be=0}}function Qf(){var t=Ei.now(),e=t-mr;e>Ya&&(Dr-=e,mr=t)}function td(){for(var t,e=gr,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:gr=i);Ci=t,In(r)}function In(t){if(!He){_i&&(_i=clearTimeout(_i));var e=t-be;e>24?(t<1/0&&(_i=setTimeout(_s,t-Ei.now()-Dr)),hi&&(hi=clearInterval(hi))):(hi||(mr=Ei.now(),hi=setInterval(Qf,Ya)),He=1,Ha(_s))}}function Cs(t,e,i){var r=new yr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var ed=Sa("start","end","cancel","interrupt"),id=[],Ua=0,xs=1,Mn=2,rr=3,bs=4,$n=5,nr=6;function Nr(t,e,i,r,n,s){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;rd(t,i,{name:e,index:r,group:n,on:ed,tween:id,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ua})}function lo(t,e){var i=Dt(t,e);if(i.state>Ua)throw new Error("too late; already scheduled");return i}function Ht(t,e){var i=Dt(t,e);if(i.state>rr)throw new Error("too late; already running");return i}function Dt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function rd(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ja(s,0,i.time);function s(c){i.state=xs,i.timer.restart(o,i.delay,i.time),i.delay<=c&&o(c-i.delay)}function o(c){var h,f,u,d;if(i.state!==xs)return l();for(h in r)if(d=r[h],d.name===i.name){if(d.state===rr)return Cs(o);d.state===bs?(d.state=nr,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=nr,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Cs(function(){i.state===rr&&(i.state=bs,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=Mn,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Mn){for(i.state=rr,n=new Array(u=i.tween.length),h=0,f=-1;h<u;++h)(d=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=d);n.length=f+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=$n,1),f=-1,u=n.length;++f<u;)n[f].call(t,h);i.state===$n&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=nr,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function nd(t,e){var i=t.__transition,r,n,s=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((r=i[o]).name!==e){s=!1;continue}n=r.state>Mn&&r.state<$n,r.state=nr,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[o]}s&&delete t.__transition}}function od(t){return this.each(function(){nd(this,t)})}function sd(t,e){var i,r;return function(){var n=Ht(this,t),s=n.tween;if(s!==i){r=i=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}n.tween=r}}function ad(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var s=Ht(this,t),o=s.tween;if(o!==r){n=(r=o).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}s.tween=n}}function ld(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),i).tween,n=0,s=r.length,o;n<s;++n)if((o=r[n]).name===t)return o.value;return null}return this.each((e==null?sd:ad)(i,t,e))}function co(t,e,i){var r=t._id;return t.each(function(){var n=Ht(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Dt(n,r).value[e]}}function Xa(t,e){var i;return(typeof e=="number"?Zt:e instanceof Ye?Ln:(i=Ye(e))?(e=i,Ln):qa)(t,e)}function cd(t){return function(){this.removeAttribute(t)}}function hd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ud(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttribute(t);return o===n?null:o===r?s:s=e(r=o,i)}}function fd(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?s:s=e(r=o,i)}}function dd(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function pd(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function gd(t,e){var i=Ir(t),r=i==="transform"?Kf:Xa;return this.attrTween(t,typeof e=="function"?(i.local?pd:dd)(i,r,co(this,"attr."+t,e)):e==null?(i.local?hd:cd)(i):(i.local?fd:ud)(i,r,e))}function md(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function yd(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function _d(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&yd(t,s)),i}return n._value=e,n}function Cd(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&md(t,s)),i}return n._value=e,n}function xd(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Ir(t);return this.tween(i,(r.local?_d:Cd)(r,e))}function bd(t,e){return function(){lo(this,t).delay=+e.apply(this,arguments)}}function Td(t,e){return e=+e,function(){lo(this,t).delay=e}}function vd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bd:Td)(e,t)):Dt(this.node(),e).delay}function Sd(t,e){return function(){Ht(this,t).duration=+e.apply(this,arguments)}}function kd(t,e){return e=+e,function(){Ht(this,t).duration=e}}function wd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Sd:kd)(e,t)):Dt(this.node(),e).duration}function Ad(t,e){if(typeof e!="function")throw new Error;return function(){Ht(this,t).ease=e}}function Bd(t){var e=this._id;return arguments.length?this.each(Ad(e,t)):Dt(this.node(),e).ease}function Ed(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Ht(this,t).ease=i}}function Ld(t){if(typeof t!="function")throw new Error;return this.each(Ed(this._id,t))}function Fd(t){typeof t!="function"&&(t=Ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new ee(r,this._parents,this._name,this._id)}function Od(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,s=Math.min(r,n),o=new Array(r),a=0;a<s;++a)for(var l=e[a],c=i[a],h=l.length,f=o[a]=new Array(h),u,d=0;d<h;++d)(u=l[d]||c[d])&&(f[d]=u);for(;a<r;++a)o[a]=e[a];return new ee(o,this._parents,this._name,this._id)}function Id(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Md(t,e,i){var r,n,s=Id(e)?lo:Ht;return function(){var o=s(this,t),a=o.on;a!==r&&(n=(r=a).copy()).on(e,i),o.on=n}}function $d(t,e){var i=this._id;return arguments.length<2?Dt(this.node(),i).on.on(t):this.each(Md(i,t,e))}function Dd(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Nd(){return this.on("end.remove",Dd(this._id))}function Pd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=io(t));for(var r=this._groups,n=r.length,s=new Array(n),o=0;o<n;++o)for(var a=r[o],l=a.length,c=s[o]=new Array(l),h,f,u=0;u<l;++u)(h=a[u])&&(f=t.call(h,h.__data__,u,a))&&("__data__"in h&&(f.__data__=h.__data__),c[u]=f,Nr(c[u],e,i,u,c,Dt(h,i)));return new ee(s,this._parents,e,i)}function Rd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Aa(t));for(var r=this._groups,n=r.length,s=[],o=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,f=0;f<c;++f)if(h=l[f]){for(var u=t.call(h,h.__data__,f,l),d,m=Dt(h,i),y=0,_=u.length;y<_;++y)(d=u[y])&&Nr(d,e,i,y,u,m);s.push(u),o.push(h)}return new ee(s,o,e,i)}var qd=Pi.prototype.constructor;function zd(){return new qd(this._groups,this._parents)}function Wd(t,e){var i,r,n;return function(){var s=We(this,t),o=(this.style.removeProperty(t),We(this,t));return s===o?null:s===i&&o===r?n:n=e(i=s,r=o)}}function Ga(t){return function(){this.style.removeProperty(t)}}function Yd(t,e,i){var r,n=i+"",s;return function(){var o=We(this,t);return o===n?null:o===r?s:s=e(r=o,i)}}function Hd(t,e,i){var r,n,s;return function(){var o=We(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),We(this,t))),o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a))}}function jd(t,e){var i,r,n,s="style."+e,o="end."+s,a;return function(){var l=Ht(this,t),c=l.on,h=l.value[s]==null?a||(a=Ga(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(o,n=h),l.on=r}}function Ud(t,e,i){var r=(t+="")=="transform"?Vf:Xa;return e==null?this.styleTween(t,Wd(t,r)).on("end.style."+t,Ga(t)):typeof e=="function"?this.styleTween(t,Hd(t,r,co(this,"style."+t,e))).each(jd(this._id,t)):this.styleTween(t,Yd(t,r,e),i).on("end.style."+t,null)}function Xd(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Gd(t,e,i){var r,n;function s(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&Xd(t,o,i)),r}return s._value=e,s}function Vd(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Gd(t,e,i??""))}function Kd(t){return function(){this.textContent=t}}function Zd(t){return function(){var e=t(this);this.textContent=e??""}}function Jd(t){return this.tween("text",typeof t=="function"?Zd(co(this,"text",t)):Kd(t==null?"":t+""))}function Qd(t){return function(e){this.textContent=t.call(this,e)}}function tp(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Qd(n)),e}return r._value=t,r}function ep(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,tp(t))}function ip(){for(var t=this._name,e=this._id,i=Va(),r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var h=Dt(l,e);Nr(l,t,i,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ee(r,this._parents,t,i)}function rp(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--n===0&&s()}};i.each(function(){var c=Ht(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&s()})}var np=0;function ee(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Va(){return++np}var Gt=Pi.prototype;ee.prototype={constructor:ee,select:Pd,selectAll:Rd,selectChild:Gt.selectChild,selectChildren:Gt.selectChildren,filter:Fd,merge:Od,selection:zd,transition:ip,call:Gt.call,nodes:Gt.nodes,node:Gt.node,size:Gt.size,empty:Gt.empty,each:Gt.each,on:$d,attr:gd,attrTween:xd,style:Ud,styleTween:Vd,text:Jd,textTween:ep,remove:Nd,tween:ld,delay:vd,duration:wd,ease:Bd,easeVarying:Ld,end:rp,[Symbol.iterator]:Gt[Symbol.iterator]};function op(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var sp={time:null,delay:0,duration:250,ease:op};function ap(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function lp(t){var e,i;t instanceof ee?(e=t._id,t=t._name):(e=Va(),(i=sp).time=ao(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&Nr(l,t,e,c,o,i||ap(l,e));return new ee(r,this._parents,t,e)}Pi.prototype.interrupt=od;Pi.prototype.transition=lp;const cp=Math.abs,hp=Math.atan2,up=Math.cos,fp=Math.max,dp=Math.min,pp=Math.sin,gp=Math.sqrt,Dn=1e-12,Pr=Math.PI,Nn=Pr/2,mp=2*Pr;function yp(t){return t>1?0:t<-1?Pr:Math.acos(t)}function _p(t){return t>=1?Nn:t<=-1?-Nn:Math.asin(t)}function Ka(t){this._context=t}Ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Za(t){return new Ka(t)}class Ja{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Cp(t){return new Ja(t,!0)}function xp(t){return new Ja(t,!1)}function he(){}function _r(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Rr(t){this._context=t}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_r(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Qa(t){return new Rr(t)}function tl(t){this._context=t}tl.prototype={areaStart:he,areaEnd:he,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:_r(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function bp(t){return new tl(t)}function el(t){this._context=t}el.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:_r(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Tp(t){return new el(t)}function il(t,e){this._basis=new Rr(t),this._beta=e}il.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],s=t[i]-r,o=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const vp=function t(e){function i(r){return e===1?new Rr(r):new il(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Cr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function ho(t,e){this._context=t,this._k=(1-e)/6}ho.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Cr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Cr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Sp=function t(e){function i(r){return new ho(r,e)}return i.tension=function(r){return t(+r)},i}(0);function uo(t,e){this._context=t,this._k=(1-e)/6}uo.prototype={areaStart:he,areaEnd:he,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Cr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kp=function t(e){function i(r){return new uo(r,e)}return i.tension=function(r){return t(+r)},i}(0);function fo(t,e){this._context=t,this._k=(1-e)/6}fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wp=function t(e){function i(r){return new fo(r,e)}return i.tension=function(r){return t(+r)},i}(0);function po(t,e,i){var r=t._x1,n=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Dn){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Dn){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,s,o,t._x2,t._y2)}function rl(t,e){this._context=t,this._alpha=e}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ap=function t(e){function i(r){return e?new rl(r,e):new ho(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function nl(t,e){this._context=t,this._alpha=e}nl.prototype={areaStart:he,areaEnd:he,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bp=function t(e){function i(r){return e?new nl(r,e):new uo(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:po(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ep=function t(e){function i(r){return e?new ol(r,e):new fo(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function sl(t){this._context=t}sl.prototype={areaStart:he,areaEnd:he,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Lp(t){return new sl(t)}function Ts(t){return t<0?-1:1}function vs(t,e,i){var r=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(r||n<0&&-0),o=(i-t._y1)/(n||r<0&&-0),a=(s*n+o*r)/(r+n);return(Ts(s)+Ts(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Ss(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function dn(t,e,i){var r=t._x0,n=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,n+a*e,s-a,o-a*i,s,o)}function xr(t){this._context=t}xr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dn(this,this._t0,Ss(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,dn(this,Ss(this,i=vs(this,t,e)),i);break;default:dn(this,this._t0,i=vs(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function al(t){this._context=new ll(t)}(al.prototype=Object.create(xr.prototype)).point=function(t,e){xr.prototype.point.call(this,e,t)};function ll(t){this._context=t}ll.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,s){this._context.bezierCurveTo(e,t,r,i,s,n)}};function Fp(t){return new xr(t)}function Op(t){return new al(t)}function cl(t){this._context=t}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=ks(t),n=ks(e),s=0,o=1;o<i;++s,++o)this._context.bezierCurveTo(r[0][s],n[0][s],r[1][s],n[1][s],t[o],e[o]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ks(t){var e,i=t.length-1,r,n=new Array(i),s=new Array(i),o=new Array(i);for(n[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,s[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(n[i-1]=o[i-1]/s[i-1],e=i-2;e>=0;--e)n[e]=(o[e]-n[e+1])/s[e];for(s[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function Ip(t){return new cl(t)}function qr(t,e){this._context=t,this._t=e}qr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Mp(t){return new qr(t,.5)}function $p(t){return new qr(t,0)}function Dp(t){return new qr(t,1)}function xi(t,e,i){this.k=t,this.x=e,this.y=i}xi.prototype={constructor:xi,scale:function(t){return t===1?this:new xi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new xi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};xi.prototype;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:hl,setPrototypeOf:ws,isFrozen:Np,getPrototypeOf:Pp,getOwnPropertyDescriptor:Rp}=Object;let{freeze:gt,seal:wt,create:ul}=Object,{apply:Pn,construct:Rn}=typeof Reflect<"u"&&Reflect;gt||(gt=function(e){return e});wt||(wt=function(e){return e});Pn||(Pn=function(e,i,r){return e.apply(i,r)});Rn||(Rn=function(e,i){return new e(...i)});const Ki=Tt(Array.prototype.forEach),As=Tt(Array.prototype.pop),ui=Tt(Array.prototype.push),or=Tt(String.prototype.toLowerCase),pn=Tt(String.prototype.toString),Bs=Tt(String.prototype.match),fi=Tt(String.prototype.replace),qp=Tt(String.prototype.indexOf),zp=Tt(String.prototype.trim),Ft=Tt(Object.prototype.hasOwnProperty),ut=Tt(RegExp.prototype.test),di=Wp(TypeError);function Tt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Pn(t,e,r)}}function Wp(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Rn(t,i)}}function j(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:or;ws&&ws(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const s=i(n);s!==n&&(Np(e)||(e[r]=s),n=s)}t[n]=!0}return t}function Yp(t){for(let e=0;e<t.length;e++)Ft(t,e)||(t[e]=null);return t}function ge(t){const e=ul(null);for(const[i,r]of hl(t))Ft(t,i)&&(Array.isArray(r)?e[i]=Yp(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=ge(r):e[i]=r);return e}function pi(t,e){for(;t!==null;){const r=Rp(t,e);if(r){if(r.get)return Tt(r.get);if(typeof r.value=="function")return Tt(r.value)}t=Pp(t)}function i(){return null}return i}const Es=gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gn=gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mn=gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Hp=gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yn=gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jp=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ls=gt(["#text"]),Fs=gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_n=gt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Os=gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zi=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Up=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xp=wt(/<%[\w\W]*|[\w\W]*%>/gm),Gp=wt(/\${[\w\W]*}/gm),Vp=wt(/^data-[\-\w.\u00B7-\uFFFF]/),Kp=wt(/^aria-[\-\w]+$/),fl=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zp=wt(/^(?:\w+script|data):/i),Jp=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dl=wt(/^html$/i),Qp=wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Is=Object.freeze({__proto__:null,MUSTACHE_EXPR:Up,ERB_EXPR:Xp,TMPLIT_EXPR:Gp,DATA_ATTR:Vp,ARIA_ATTR:Kp,IS_ALLOWED_URI:fl,IS_SCRIPT_OR_DATA:Zp,ATTR_WHITESPACE:Jp,DOCTYPE_NAME:dl,CUSTOM_ELEMENT:Qp});const gi={element:1,text:3,progressingInstruction:7,comment:8,document:9},tg=function(){return typeof window>"u"?null:window},eg=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function pl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tg();const e=O=>pl(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==gi.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:u,trustedTypes:d}=t,m=l.prototype,y=pi(m,"cloneNode"),_=pi(m,"remove"),L=pi(m,"nextSibling"),x=pi(m,"childNodes"),P=pi(m,"parentNode");if(typeof o=="function"){const O=i.createElement("template");O.content&&O.content.ownerDocument&&(i=O.content.ownerDocument)}let C,S="";const{implementation:U,createNodeIterator:N,createDocumentFragment:Q,getElementsByTagName:rt}=i,{importNode:Y}=r;let B={};e.isSupported=typeof hl=="function"&&typeof P=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:re,TMPLIT_EXPR:R,DATA_ATTR:w,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:$}=Is;let{IS_ALLOWED_URI:W}=Is,z=null;const K=j({},[...Es,...gn,...mn,...yn,...Ls]);let H=null;const et=j({},[...Fs,..._n,...Os,...Zi]);let X=Object.seal(ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vt=null,Bt=null,ne=!0,Et=!0,nt=!1,Lt=!0,St=!1,oe=!0,pe=!1,nn=!1,on=!1,Ae=!1,zi=!1,Wi=!1,No=!0,Po=!1;const vh="user-content-";let sn=!0,si=!1,Be={},Ee=null;const Ro=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qo=null;const zo=j({},["audio","video","img","source","image","track"]);let an=null;const Wo=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yi="http://www.w3.org/1998/Math/MathML",Hi="http://www.w3.org/2000/svg",Ut="http://www.w3.org/1999/xhtml";let Le=Ut,ln=!1,cn=null;const Sh=j({},[Yi,Hi,Ut],pn);let ai=null;const kh=["application/xhtml+xml","text/html"],wh="text/html";let it=null,Fe=null;const Ah=i.createElement("form"),Yo=function(p){return p instanceof RegExp||p instanceof Function},hn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fe&&Fe===p)){if((!p||typeof p!="object")&&(p={}),p=ge(p),ai=kh.indexOf(p.PARSER_MEDIA_TYPE)===-1?wh:p.PARSER_MEDIA_TYPE,it=ai==="application/xhtml+xml"?pn:or,z=Ft(p,"ALLOWED_TAGS")?j({},p.ALLOWED_TAGS,it):K,H=Ft(p,"ALLOWED_ATTR")?j({},p.ALLOWED_ATTR,it):et,cn=Ft(p,"ALLOWED_NAMESPACES")?j({},p.ALLOWED_NAMESPACES,pn):Sh,an=Ft(p,"ADD_URI_SAFE_ATTR")?j(ge(Wo),p.ADD_URI_SAFE_ATTR,it):Wo,qo=Ft(p,"ADD_DATA_URI_TAGS")?j(ge(zo),p.ADD_DATA_URI_TAGS,it):zo,Ee=Ft(p,"FORBID_CONTENTS")?j({},p.FORBID_CONTENTS,it):Ro,vt=Ft(p,"FORBID_TAGS")?j({},p.FORBID_TAGS,it):{},Bt=Ft(p,"FORBID_ATTR")?j({},p.FORBID_ATTR,it):{},Be=Ft(p,"USE_PROFILES")?p.USE_PROFILES:!1,ne=p.ALLOW_ARIA_ATTR!==!1,Et=p.ALLOW_DATA_ATTR!==!1,nt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,St=p.SAFE_FOR_TEMPLATES||!1,oe=p.SAFE_FOR_XML!==!1,pe=p.WHOLE_DOCUMENT||!1,Ae=p.RETURN_DOM||!1,zi=p.RETURN_DOM_FRAGMENT||!1,Wi=p.RETURN_TRUSTED_TYPE||!1,on=p.FORCE_BODY||!1,No=p.SANITIZE_DOM!==!1,Po=p.SANITIZE_NAMED_PROPS||!1,sn=p.KEEP_CONTENT!==!1,si=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||fl,Le=p.NAMESPACE||Ut,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Yo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Yo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(Et=!1),zi&&(Ae=!0),Be&&(z=j({},Ls),H=[],Be.html===!0&&(j(z,Es),j(H,Fs)),Be.svg===!0&&(j(z,gn),j(H,_n),j(H,Zi)),Be.svgFilters===!0&&(j(z,mn),j(H,_n),j(H,Zi)),Be.mathMl===!0&&(j(z,yn),j(H,Os),j(H,Zi))),p.ADD_TAGS&&(z===K&&(z=ge(z)),j(z,p.ADD_TAGS,it)),p.ADD_ATTR&&(H===et&&(H=ge(H)),j(H,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&j(an,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(Ee===Ro&&(Ee=ge(Ee)),j(Ee,p.FORBID_CONTENTS,it)),sn&&(z["#text"]=!0),pe&&j(z,["html","head","body"]),z.table&&(j(z,["tbody"]),delete vt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw di('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw di('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=p.TRUSTED_TYPES_POLICY,S=C.createHTML("")}else C===void 0&&(C=eg(d,n)),C!==null&&typeof S=="string"&&(S=C.createHTML(""));gt&&gt(p),Fe=p}},Ho=j({},["mi","mo","mn","ms","mtext"]),jo=j({},["foreignobject","annotation-xml"]),Bh=j({},["title","style","font","a","script"]),Uo=j({},[...gn,...mn,...Hp]),Xo=j({},[...yn,...jp]),Eh=function(p){let b=P(p);(!b||!b.tagName)&&(b={namespaceURI:Le,tagName:"template"});const A=or(p.tagName),G=or(b.tagName);return cn[p.namespaceURI]?p.namespaceURI===Hi?b.namespaceURI===Ut?A==="svg":b.namespaceURI===Yi?A==="svg"&&(G==="annotation-xml"||Ho[G]):!!Uo[A]:p.namespaceURI===Yi?b.namespaceURI===Ut?A==="math":b.namespaceURI===Hi?A==="math"&&jo[G]:!!Xo[A]:p.namespaceURI===Ut?b.namespaceURI===Hi&&!jo[G]||b.namespaceURI===Yi&&!Ho[G]?!1:!Xo[A]&&(Bh[A]||!Uo[A]):!!(ai==="application/xhtml+xml"&&cn[p.namespaceURI]):!1},Nt=function(p){ui(e.removed,{element:p});try{P(p).removeChild(p)}catch{_(p)}},ji=function(p,b){try{ui(e.removed,{attribute:b.getAttributeNode(p),from:b})}catch{ui(e.removed,{attribute:null,from:b})}if(b.removeAttribute(p),p==="is"&&!H[p])if(Ae||zi)try{Nt(b)}catch{}else try{b.setAttribute(p,"")}catch{}},Go=function(p){let b=null,A=null;if(on)p="<remove></remove>"+p;else{const ot=Bs(p,/^[\r\n\t ]+/);A=ot&&ot[0]}ai==="application/xhtml+xml"&&Le===Ut&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const G=C?C.createHTML(p):p;if(Le===Ut)try{b=new u().parseFromString(G,ai)}catch{}if(!b||!b.documentElement){b=U.createDocument(Le,"template",null);try{b.documentElement.innerHTML=ln?S:G}catch{}}const at=b.body||b.documentElement;return p&&A&&at.insertBefore(i.createTextNode(A),at.childNodes[0]||null),Le===Ut?rt.call(b,pe?"html":"body")[0]:pe?b.documentElement:at},Vo=function(p){return N.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ko=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof h)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Zo=function(p){return typeof a=="function"&&p instanceof a},Xt=function(p,b,A){B[p]&&Ki(B[p],G=>{G.call(e,b,A,Fe)})},Jo=function(p){let b=null;if(Xt("beforeSanitizeElements",p,null),Ko(p))return Nt(p),!0;const A=it(p.nodeName);if(Xt("uponSanitizeElement",p,{tagName:A,allowedTags:z}),p.hasChildNodes()&&!Zo(p.firstElementChild)&&ut(/<[/\w]/g,p.innerHTML)&&ut(/<[/\w]/g,p.textContent)||p.nodeType===gi.progressingInstruction||oe&&p.nodeType===gi.comment&&ut(/<[/\w]/g,p.data))return Nt(p),!0;if(!z[A]||vt[A]){if(!vt[A]&&ts(A)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A)))return!1;if(sn&&!Ee[A]){const G=P(p)||p.parentNode,at=x(p)||p.childNodes;if(at&&G){const ot=at.length;for(let mt=ot-1;mt>=0;--mt){const Pt=y(at[mt],!0);Pt.__removalCount=(p.__removalCount||0)+1,G.insertBefore(Pt,L(p))}}}return Nt(p),!0}return p instanceof l&&!Eh(p)||(A==="noscript"||A==="noembed"||A==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Nt(p),!0):(St&&p.nodeType===gi.text&&(b=p.textContent,Ki([tt,re,R],G=>{b=fi(b,G," ")}),p.textContent!==b&&(ui(e.removed,{element:p.cloneNode()}),p.textContent=b)),Xt("afterSanitizeElements",p,null),!1)},Qo=function(p,b,A){if(No&&(b==="id"||b==="name")&&(A in i||A in Ah))return!1;if(!(Et&&!Bt[b]&&ut(w,b))){if(!(ne&&ut(T,b))){if(!H[b]||Bt[b]){if(!(ts(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,b)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(b))||b==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A))))return!1}else if(!an[b]){if(!ut(W,fi(A,k,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&p!=="script"&&qp(A,"data:")===0&&qo[p])){if(!(nt&&!ut(F,fi(A,k,"")))){if(A)return!1}}}}}}return!0},ts=function(p){return p!=="annotation-xml"&&Bs(p,$)},es=function(p){Xt("beforeSanitizeAttributes",p,null);const{attributes:b}=p;if(!b)return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};let G=b.length;for(;G--;){const at=b[G],{name:ot,namespaceURI:mt,value:Pt}=at,li=it(ot);let ht=ot==="value"?Pt:zp(Pt);if(A.attrName=li,A.attrValue=ht,A.keepAttr=!0,A.forceKeepAttr=void 0,Xt("uponSanitizeAttribute",p,A),ht=A.attrValue,oe&&ut(/((--!?|])>)|<\/(style|title)/i,ht)){ji(ot,p);continue}if(A.forceKeepAttr||(ji(ot,p),!A.keepAttr))continue;if(!Lt&&ut(/\/>/i,ht)){ji(ot,p);continue}St&&Ki([tt,re,R],rs=>{ht=fi(ht,rs," ")});const is=it(p.nodeName);if(Qo(is,li,ht)){if(Po&&(li==="id"||li==="name")&&(ji(ot,p),ht=vh+ht),C&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!mt)switch(d.getAttributeType(is,li)){case"TrustedHTML":{ht=C.createHTML(ht);break}case"TrustedScriptURL":{ht=C.createScriptURL(ht);break}}try{mt?p.setAttributeNS(mt,ot,ht):p.setAttribute(ot,ht),Ko(p)?Nt(p):As(e.removed)}catch{}}}Xt("afterSanitizeAttributes",p,null)},Lh=function O(p){let b=null;const A=Vo(p);for(Xt("beforeSanitizeShadowDOM",p,null);b=A.nextNode();)Xt("uponSanitizeShadowNode",b,null),!Jo(b)&&(b.content instanceof s&&O(b.content),es(b));Xt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(O){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,A=null,G=null,at=null;if(ln=!O,ln&&(O="<!-->"),typeof O!="string"&&!Zo(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw di("dirty is not a string, aborting")}else throw di("toString is not a function");if(!e.isSupported)return O;if(nn||hn(p),e.removed=[],typeof O=="string"&&(si=!1),si){if(O.nodeName){const Pt=it(O.nodeName);if(!z[Pt]||vt[Pt])throw di("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)b=Go("<!---->"),A=b.ownerDocument.importNode(O,!0),A.nodeType===gi.element&&A.nodeName==="BODY"||A.nodeName==="HTML"?b=A:b.appendChild(A);else{if(!Ae&&!St&&!pe&&O.indexOf("<")===-1)return C&&Wi?C.createHTML(O):O;if(b=Go(O),!b)return Ae?null:Wi?S:""}b&&on&&Nt(b.firstChild);const ot=Vo(si?O:b);for(;G=ot.nextNode();)Jo(G)||(G.content instanceof s&&Lh(G.content),es(G));if(si)return O;if(Ae){if(zi)for(at=Q.call(b.ownerDocument);b.firstChild;)at.appendChild(b.firstChild);else at=b;return(H.shadowroot||H.shadowrootmode)&&(at=Y.call(r,at,!0)),at}let mt=pe?b.outerHTML:b.innerHTML;return pe&&z["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&ut(dl,b.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
13
+ `+mt),St&&Ki([tt,re,R],Pt=>{mt=fi(mt,Pt," ")}),C&&Wi?C.createHTML(mt):mt},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hn(O),nn=!0},e.clearConfig=function(){Fe=null,nn=!1},e.isValidAttribute=function(O,p,b){Fe||hn({});const A=it(O),G=it(p);return Qo(A,G,b)},e.addHook=function(O,p){typeof p=="function"&&(B[O]=B[O]||[],ui(B[O],p))},e.removeHook=function(O){if(B[O])return As(B[O])},e.removeHooks=function(O){B[O]&&(B[O]=[])},e.removeAllHooks=function(){B={}},e}var je=pl();const sr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;switch(r){case"r":return sr.hue2rgb(s,n,t+1/3)*255;case"g":return sr.hue2rgb(s,n,t)*255;case"b":return sr.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),s=Math.min(t,e,i),o=(n+s)/2;if(r==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},ig={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},rg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:sr,lang:ig,unit:rg},ae={};for(let t=0;t<=255;t++)ae[t]=q.unit.dec2hex(t);const lt={ALL:0,RGB:1,HSL:2};class ng{constructor(){this.type=lt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=lt.ALL}is(e){return this.type===e}}class og{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new ng}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=lt.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(lt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(lt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(lt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(lt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(lt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(lt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const zr=new og({r:0,g:0,b:0,a:0},"transparent"),Ne={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Ne.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,c=s?0:-1,h=o?255:15;return zr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:s?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}${ae[Math.round(n*255)]}`:`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}`}},_e={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(_e.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(_e.re);if(!i)return;const[,r,n,s,o,a]=i;return zr.set({h:_e._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:o?q.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},vi={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=vi.colors[t];if(e)return Ne.parse(e)},stringify:t=>{const e=Ne.stringify(t);for(const i in vi.colors)if(vi.colors[i]===e)return i}},bi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(bi.re);if(!i)return;const[,r,n,s,o,a,l,c,h]=i;return zr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Mt={format:{keyword:vi,hex:Ne,rgb:bi,rgba:bi,hsl:_e,hsla:_e},parse:t=>{if(typeof t!="string")return t;const e=Ne.parse(t)||bi.parse(t)||_e.parse(t)||vi.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(lt.HSL)||t.data.r===void 0?_e.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?bi.stringify(t):Ne.stringify(t)},gl=(t,e)=>{const i=Mt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Mt.stringify(i)},Pe=(t,e,i=0,r=1)=>{if(typeof t!="number")return gl(t,{a:e});const n=zr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Mt.stringify(n)},sg=t=>{const{r:e,g:i,b:r}=Mt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},ag=t=>sg(t)>=.5,ti=t=>!ag(t),ml=(t,e,i)=>{const r=Mt.parse(t),n=r[e],s=q.channel.clamp[e](n+i);return n!==s&&(r[e]=s),Mt.stringify(r)},E=(t,e)=>ml(t,"l",e),D=(t,e)=>ml(t,"l",-e),g=(t,e)=>{const i=Mt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return gl(t,r)},lg=(t,e,i=50)=>{const{r,g:n,b:s,a:o}=Mt.parse(t),{r:a,g:l,b:c,a:h}=Mt.parse(e),f=i/100,u=f*2-1,d=o-h,y=((u*d===-1?u:(u+d)/(1+u*d))+1)/2,_=1-y,L=r*y+a*_,x=n*y+l*_,P=s*y+c*_,C=o*f+h*(1-f);return Pe(L,x,P,C)},v=(t,e=100)=>{const i=Mt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,lg(i,t,e)};var yl=typeof global=="object"&&global&&global.Object===Object&&global,cg=typeof self=="object"&&self&&self.Object===Object&&self,jt=yl||cg||Function("return this")(),Li=jt.Symbol,_l=Object.prototype,hg=_l.hasOwnProperty,ug=_l.toString,mi=Li?Li.toStringTag:void 0;function fg(t){var e=hg.call(t,mi),i=t[mi];try{t[mi]=void 0;var r=!0}catch{}var n=ug.call(t);return r&&(e?t[mi]=i:delete t[mi]),n}var dg=Object.prototype,pg=dg.toString;function gg(t){return pg.call(t)}var mg="[object Null]",yg="[object Undefined]",Ms=Li?Li.toStringTag:void 0;function ei(t){return t==null?t===void 0?yg:mg:Ms&&Ms in Object(t)?fg(t):gg(t)}function fe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _g="[object AsyncFunction]",Cg="[object Function]",xg="[object GeneratorFunction]",bg="[object Proxy]";function go(t){if(!fe(t))return!1;var e=ei(t);return e==Cg||e==xg||e==_g||e==bg}var Cn=jt["__core-js_shared__"],$s=function(){var t=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Tg(t){return!!$s&&$s in t}var vg=Function.prototype,Sg=vg.toString;function Se(t){if(t!=null){try{return Sg.call(t)}catch{}try{return t+""}catch{}}return""}var kg=/[\\^$.*+?()[\]{}|]/g,wg=/^\[object .+?Constructor\]$/,Ag=Function.prototype,Bg=Object.prototype,Eg=Ag.toString,Lg=Bg.hasOwnProperty,Fg=RegExp("^"+Eg.call(Lg).replace(kg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Og(t){if(!fe(t)||Tg(t))return!1;var e=go(t)?Fg:wg;return e.test(Se(t))}function Ig(t,e){return t==null?void 0:t[e]}function ke(t,e){var i=Ig(t,e);return Og(i)?i:void 0}var Fi=ke(Object,"create");function Mg(){this.__data__=Fi?Fi(null):{},this.size=0}function $g(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Dg="__lodash_hash_undefined__",Ng=Object.prototype,Pg=Ng.hasOwnProperty;function Rg(t){var e=this.__data__;if(Fi){var i=e[t];return i===Dg?void 0:i}return Pg.call(e,t)?e[t]:void 0}var qg=Object.prototype,zg=qg.hasOwnProperty;function Wg(t){var e=this.__data__;return Fi?e[t]!==void 0:zg.call(e,t)}var Yg="__lodash_hash_undefined__";function Hg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Fi&&e===void 0?Yg:e,this}function Te(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=Mg;Te.prototype.delete=$g;Te.prototype.get=Rg;Te.prototype.has=Wg;Te.prototype.set=Hg;function jg(){this.__data__=[],this.size=0}function Wr(t,e){return t===e||t!==t&&e!==e}function Yr(t,e){for(var i=t.length;i--;)if(Wr(t[i][0],e))return i;return-1}var Ug=Array.prototype,Xg=Ug.splice;function Gg(t){var e=this.__data__,i=Yr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Xg.call(e,i,1),--this.size,!0}function Vg(t){var e=this.__data__,i=Yr(e,t);return i<0?void 0:e[i][1]}function Kg(t){return Yr(this.__data__,t)>-1}function Zg(t,e){var i=this.__data__,r=Yr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ie(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ie.prototype.clear=jg;ie.prototype.delete=Gg;ie.prototype.get=Vg;ie.prototype.has=Kg;ie.prototype.set=Zg;var Oi=ke(jt,"Map");function Jg(){this.size=0,this.__data__={hash:new Te,map:new(Oi||ie),string:new Te}}function Qg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Hr(t,e){var i=t.__data__;return Qg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function tm(t){var e=Hr(this,t).delete(t);return this.size-=e?1:0,e}function em(t){return Hr(this,t).get(t)}function im(t){return Hr(this,t).has(t)}function rm(t,e){var i=Hr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function de(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}de.prototype.clear=Jg;de.prototype.delete=tm;de.prototype.get=em;de.prototype.has=im;de.prototype.set=rm;var nm="Expected a function";function Ri(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(nm);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(Ri.Cache||de),i}Ri.Cache=de;function om(){this.__data__=new ie,this.size=0}function sm(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function am(t){return this.__data__.get(t)}function lm(t){return this.__data__.has(t)}var cm=200;function hm(t,e){var i=this.__data__;if(i instanceof ie){var r=i.__data__;if(!Oi||r.length<cm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new de(r)}return i.set(t,e),this.size=i.size,this}function we(t){var e=this.__data__=new ie(t);this.size=e.size}we.prototype.clear=om;we.prototype.delete=sm;we.prototype.get=am;we.prototype.has=lm;we.prototype.set=hm;var br=function(){try{var t=ke(Object,"defineProperty");return t({},"",{}),t}catch{}}();function mo(t,e,i){e=="__proto__"&&br?br(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function qn(t,e,i){(i!==void 0&&!Wr(t[e],i)||i===void 0&&!(e in t))&&mo(t,e,i)}function um(t){return function(e,i,r){for(var n=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++n];if(i(s[l],l,s)===!1)break}return e}}var fm=um(),Cl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ds=Cl&&typeof module=="object"&&module&&!module.nodeType&&module,dm=Ds&&Ds.exports===Cl,Ns=dm?jt.Buffer:void 0,Ps=Ns?Ns.allocUnsafe:void 0;function xl(t,e){if(e)return t.slice();var i=t.length,r=Ps?Ps(i):new t.constructor(i);return t.copy(r),r}var Rs=jt.Uint8Array;function bl(t){var e=new t.constructor(t.byteLength);return new Rs(e).set(new Rs(t)),e}function Tl(t,e){var i=e?bl(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function vl(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var qs=Object.create,pm=function(){function t(){}return function(e){if(!fe(e))return{};if(qs)return qs(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function Sl(t,e){return function(i){return t(e(i))}}var kl=Sl(Object.getPrototypeOf,Object),gm=Object.prototype;function jr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||gm;return t===i}function wl(t){return typeof t.constructor=="function"&&!jr(t)?pm(kl(t)):{}}function ii(t){return t!=null&&typeof t=="object"}var mm="[object Arguments]";function zs(t){return ii(t)&&ei(t)==mm}var Al=Object.prototype,ym=Al.hasOwnProperty,_m=Al.propertyIsEnumerable,Tr=zs(function(){return arguments}())?zs:function(t){return ii(t)&&ym.call(t,"callee")&&!_m.call(t,"callee")},Ii=Array.isArray,Cm=9007199254740991;function Bl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cm}function qi(t){return t!=null&&Bl(t.length)&&!go(t)}function xm(t){return ii(t)&&qi(t)}function bm(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ws=El&&typeof module=="object"&&module&&!module.nodeType&&module,Tm=Ws&&Ws.exports===El,Ys=Tm?jt.Buffer:void 0,vm=Ys?Ys.isBuffer:void 0,Ur=vm||bm,Sm="[object Object]",km=Function.prototype,wm=Object.prototype,Ll=km.toString,Am=wm.hasOwnProperty,Bm=Ll.call(Object);function Em(t){if(!ii(t)||ei(t)!=Sm)return!1;var e=kl(t);if(e===null)return!0;var i=Am.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ll.call(i)==Bm}var Lm="[object Arguments]",Fm="[object Array]",Om="[object Boolean]",Im="[object Date]",Mm="[object Error]",$m="[object Function]",Dm="[object Map]",Nm="[object Number]",Pm="[object Object]",Rm="[object RegExp]",qm="[object Set]",zm="[object String]",Wm="[object WeakMap]",Ym="[object ArrayBuffer]",Hm="[object DataView]",jm="[object Float32Array]",Um="[object Float64Array]",Xm="[object Int8Array]",Gm="[object Int16Array]",Vm="[object Int32Array]",Km="[object Uint8Array]",Zm="[object Uint8ClampedArray]",Jm="[object Uint16Array]",Qm="[object Uint32Array]",V={};V[jm]=V[Um]=V[Xm]=V[Gm]=V[Vm]=V[Km]=V[Zm]=V[Jm]=V[Qm]=!0;V[Lm]=V[Fm]=V[Ym]=V[Om]=V[Hm]=V[Im]=V[Mm]=V[$m]=V[Dm]=V[Nm]=V[Pm]=V[Rm]=V[qm]=V[zm]=V[Wm]=!1;function t0(t){return ii(t)&&Bl(t.length)&&!!V[ei(t)]}function Fl(t){return function(e){return t(e)}}var Ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Si=Ol&&typeof module=="object"&&module&&!module.nodeType&&module,e0=Si&&Si.exports===Ol,xn=e0&&yl.process,zn=function(){try{var t=Si&&Si.require&&Si.require("util").types;return t||xn&&xn.binding&&xn.binding("util")}catch{}}(),Hs=zn&&zn.isTypedArray,yo=Hs?Fl(Hs):t0;function Wn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var i0=Object.prototype,r0=i0.hasOwnProperty;function Il(t,e,i){var r=t[e];(!(r0.call(t,e)&&Wr(r,i))||i===void 0&&!(e in t))&&mo(t,e,i)}function Ml(t,e,i,r){var n=!i;i||(i={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),n?mo(i,a,l):Il(i,a,l)}return i}function n0(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var o0=9007199254740991,s0=/^(?:0|[1-9]\d*)$/;function $l(t,e){var i=typeof t;return e=e??o0,!!e&&(i=="number"||i!="symbol"&&s0.test(t))&&t>-1&&t%1==0&&t<e}var a0=Object.prototype,l0=a0.hasOwnProperty;function Dl(t,e){var i=Ii(t),r=!i&&Tr(t),n=!i&&!r&&Ur(t),s=!i&&!r&&!n&&yo(t),o=i||r||n||s,a=o?n0(t.length,String):[],l=a.length;for(var c in t)(e||l0.call(t,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$l(c,l)))&&a.push(c);return a}function c0(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var h0=Object.prototype,u0=h0.hasOwnProperty;function f0(t){if(!fe(t))return c0(t);var e=jr(t),i=[];for(var r in t)r=="constructor"&&(e||!u0.call(t,r))||i.push(r);return i}function Nl(t){return qi(t)?Dl(t,!0):f0(t)}function d0(t){return Ml(t,Nl(t))}function p0(t,e,i,r,n,s,o){var a=Wn(t,i),l=Wn(e,i),c=o.get(l);if(c){qn(t,i,c);return}var h=s?s(a,l,i+"",t,e,o):void 0,f=h===void 0;if(f){var u=Ii(l),d=!u&&Ur(l),m=!u&&!d&&yo(l);h=l,u||d||m?Ii(a)?h=a:xm(a)?h=vl(a):d?(f=!1,h=xl(l,!0)):m?(f=!1,h=Tl(l,!0)):h=[]:Em(l)||Tr(l)?(h=a,Tr(a)?h=d0(a):(!fe(a)||go(a))&&(h=wl(l))):f=!1}f&&(o.set(l,h),n(h,l,r,s,o),o.delete(l)),qn(t,i,h)}function Pl(t,e,i,r,n){t!==e&&fm(e,function(s,o){if(n||(n=new we),fe(s))p0(t,e,o,i,Pl,r,n);else{var a=r?r(Wn(t,o),s,o+"",t,e,n):void 0;a===void 0&&(a=s),qn(t,o,a)}},Nl)}function Rl(t){return t}function g0(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var js=Math.max;function m0(t,e,i){return e=js(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,s=js(r.length-e,0),o=Array(s);++n<s;)o[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(o),g0(t,this,a)}}function y0(t){return function(){return t}}var _0=br?function(t,e){return br(t,"toString",{configurable:!0,enumerable:!1,value:y0(e),writable:!0})}:Rl,C0=800,x0=16,b0=Date.now;function T0(t){var e=0,i=0;return function(){var r=b0(),n=x0-(r-i);if(i=r,n>0){if(++e>=C0)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var v0=T0(_0);function S0(t,e){return v0(m0(t,e,Rl),t+"")}function k0(t,e,i){if(!fe(i))return!1;var r=typeof e;return(r=="number"?qi(i)&&$l(e,i.length):r=="string"&&e in i)?Wr(i[e],t):!1}function w0(t){return S0(function(e,i){var r=-1,n=i.length,s=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(s=t.length>3&&typeof s=="function"?(n--,s):void 0,o&&k0(i[0],i[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,s)}return e})}var A0=w0(function(t,e,i){Pl(t,e,i)}),ql="comm",zl="rule",Wl="decl",B0="@import",E0="@namespace",L0="@keyframes",F0="@layer",Yl=Math.abs,_o=String.fromCharCode;function Hl(t){return t.trim()}function ar(t,e,i){return t.replace(e,i)}function O0(t,e,i){return t.indexOf(e,i)}function Re(t,e){return t.charCodeAt(e)|0}function Ue(t,e,i){return t.slice(e,i)}function qt(t){return t.length}function I0(t){return t.length}function Ji(t,e){return e.push(t),t}var Xr=1,Xe=1,jl=0,At=0,Z=0,ri="";function Co(t,e,i,r,n,s,o,a){return{value:t,root:e,parent:i,type:r,props:n,children:s,line:Xr,column:Xe,length:o,return:"",siblings:a}}function M0(){return Z}function $0(){return Z=At>0?Re(ri,--At):0,Xe--,Z===10&&(Xe=1,Xr--),Z}function It(){return Z=At<jl?Re(ri,At++):0,Xe++,Z===10&&(Xe=1,Xr++),Z}function le(){return Re(ri,At)}function lr(){return At}function Gr(t,e){return Ue(ri,t,e)}function Mi(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D0(t){return Xr=Xe=1,jl=qt(ri=t),At=0,[]}function N0(t){return ri="",t}function bn(t){return Hl(Gr(At-1,Yn(t===91?t+2:t===40?t+1:t)))}function P0(t){for(;(Z=le())&&Z<33;)It();return Mi(t)>2||Mi(Z)>3?"":" "}function R0(t,e){for(;--e&&It()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return Gr(t,lr()+(e<6&&le()==32&&It()==32))}function Yn(t){for(;It();)switch(Z){case t:return At;case 34:case 39:t!==34&&t!==39&&Yn(Z);break;case 40:t===41&&Yn(t);break;case 92:It();break}return At}function q0(t,e){for(;It()&&t+Z!==57;)if(t+Z===84&&le()===47)break;return"/*"+Gr(e,At-1)+"*"+_o(t===47?t:It())}function z0(t){for(;!Mi(le());)It();return Gr(t,At)}function W0(t){return N0(cr("",null,null,null,[""],t=D0(t),0,[0],t))}function cr(t,e,i,r,n,s,o,a,l){for(var c=0,h=0,f=o,u=0,d=0,m=0,y=1,_=1,L=1,x=0,P="",C=n,S=s,U=r,N=P;_;)switch(m=x,x=It()){case 40:if(m!=108&&Re(N,f-1)==58){O0(N+=ar(bn(x),"&","&\f"),"&\f",Yl(c?a[c-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:N+=bn(x);break;case 9:case 10:case 13:case 32:N+=P0(m);break;case 92:N+=R0(lr()-1,7);continue;case 47:switch(le()){case 42:case 47:Ji(Y0(q0(It(),lr()),e,i,l),l),(Mi(m||1)==5||Mi(le()||1)==5)&&qt(N)&&Ue(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*y:a[c++]=qt(N)*L;case 125*y:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+h:L==-1&&(N=ar(N,/\f/g,"")),d>0&&(qt(N)-f||y===0&&m===47)&&Ji(d>32?Xs(N+";",r,i,f-1,l):Xs(ar(N," ","")+";",r,i,f-2,l),l);break;case 59:N+=";";default:if(Ji(U=Us(N,e,i,c,h,n,a,P,C=[],S=[],f,s),s),x===123)if(h===0)cr(N,e,U,U,C,s,f,a,S);else{switch(u){case 99:if(Re(N,3)===110)break;case 108:if(Re(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?cr(t,U,U,r&&Ji(Us(t,U,U,0,0,n,a,P,n,C=[],f,S),S),n,S,f,a,r?C:S):cr(N,U,U,U,[""],S,0,a,S)}}c=h=d=0,y=L=1,P=N="",f=o;break;case 58:f=1+qt(N),d=m;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&$0()==125)continue}switch(N+=_o(x),x*y){case 38:L=h>0?1:(N+="\f",-1);break;case 44:a[c++]=(qt(N)-1)*L,L=1;break;case 64:le()===45&&(N+=bn(It())),u=le(),h=f=qt(P=N+=z0(lr())),x++;break;case 45:m===45&&qt(N)==2&&(y=0)}}return s}function Us(t,e,i,r,n,s,o,a,l,c,h,f){for(var u=n-1,d=n===0?s:[""],m=I0(d),y=0,_=0,L=0;y<r;++y)for(var x=0,P=Ue(t,u+1,u=Yl(_=o[y])),C=t;x<m;++x)(C=Hl(_>0?d[x]+" "+P:ar(P,/&\f/g,d[x])))&&(l[L++]=C);return Co(t,e,i,n===0?zl:a,l,c,h,f)}function Y0(t,e,i,r){return Co(t,e,i,ql,_o(M0()),Ue(t,2,-2),0,r)}function Xs(t,e,i,r,n){return Co(t,e,i,Wl,Ue(t,0,r),Ue(t,r+1,-1),r,n)}function Hn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function H0(t,e,i,r){switch(t.type){case F0:if(t.children.length)break;case B0:case E0:case Wl:return t.return=t.return||t.value;case ql:return"";case L0:return t.return=t.value+"{"+Hn(t.children,r)+"}";case zl:if(!qt(t.value=t.props.join(",")))return""}return qt(i=Hn(t.children,r))?t.return=t.value+"{"+i+"}":""}var j0=Sl(Object.keys,Object),U0=Object.prototype,X0=U0.hasOwnProperty;function Ul(t){if(!jr(t))return j0(t);var e=[];for(var i in Object(t))X0.call(t,i)&&i!="constructor"&&e.push(i);return e}var jn=ke(jt,"DataView"),Un=ke(jt,"Promise"),Xn=ke(jt,"Set"),Gn=ke(jt,"WeakMap"),Gs="[object Map]",G0="[object Object]",Vs="[object Promise]",Ks="[object Set]",Zs="[object WeakMap]",Js="[object DataView]",V0=Se(jn),K0=Se(Oi),Z0=Se(Un),J0=Se(Xn),Q0=Se(Gn);exports.getTag=ei;(jn&&exports.getTag(new jn(new ArrayBuffer(1)))!=Js||Oi&&exports.getTag(new Oi)!=Gs||Un&&exports.getTag(Un.resolve())!=Vs||Xn&&exports.getTag(new Xn)!=Ks||Gn&&exports.getTag(new Gn)!=Zs)&&(exports.getTag=function(t){var e=ei(t),i=e==G0?t.constructor:void 0,r=i?Se(i):"";if(r)switch(r){case V0:return Js;case K0:return Gs;case Z0:return Vs;case J0:return Ks;case Q0:return Zs}return e});var ty="[object Map]",ey="[object Set]",iy=Object.prototype,ry=iy.hasOwnProperty;function Tn(t){if(t==null)return!0;if(qi(t)&&(Ii(t)||typeof t=="string"||typeof t.splice=="function"||Ur(t)||yo(t)||Tr(t)))return!t.length;var e=exports.getTag(t);if(e==ty||e==ey)return!t.size;if(jr(t))return!Ul(t).length;for(var i in t)if(ry.call(t,i))return!1;return!0}const Vt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},xo=function(t="fatal"){let e=Vt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Vt&&(e=Vt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Vt.fatal&&(M.fatal=console.error?console.error.bind(console,kt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",kt("FATAL"))),e<=Vt.error&&(M.error=console.error?console.error.bind(console,kt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",kt("ERROR"))),e<=Vt.warn&&(M.warn=console.warn?console.warn.bind(console,kt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",kt("WARN"))),e<=Vt.info&&(M.info=console.info?console.info.bind(console,kt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",kt("INFO"))),e<=Vt.debug&&(M.debug=console.debug?console.debug.bind(console,kt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("DEBUG"))),e<=Vt.trace&&(M.trace=console.debug?console.debug.bind(console,kt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("TRACE")))},kt=t=>`%c${va().format("ss.SSS")} : ${t} : `,ni=/<br\s*\/?>/gi,ny=t=>t?Gl(t).replace(/\\n/g,"#br#").split("#br#"):[""],oy=(()=>{let t=!1;return()=>{t||(sy(),t=!0)}})();function sy(){const t="data-temp-href-target";je.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),je.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Xl=t=>(oy(),je.sanitize(t)),Qs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Xl(t):r!=="loose"&&(t=Gl(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=hy(t))}return t},Ge=(t,e)=>t&&(e.dompurifyConfig?t=je.sanitize(Qs(t,e),e.dompurifyConfig).toString():t=je.sanitize(Qs(t,e),{FORBID_TAGS:["style"]}).toString(),t),ay=(t,e)=>typeof t=="string"?Ge(t,e):t.flat().map(i=>Ge(i,e)),ly=t=>ni.test(t),cy=t=>t.split(ni),hy=t=>t.replace(/#br#/g,"<br/>"),Gl=t=>t.replace(ni,"#br#"),uy=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},bo=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),fy=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},dy=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},py=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const s=e[r-1],o=e[r+1];gy(s,o)&&(n=s+","+o,r++,i.pop())}i.push(my(n))}return i.join("")},Vn=(t,e)=>Math.max(0,t.split(e).length-1),gy=(t,e)=>{const i=Vn(t,"~"),r=Vn(e,"~");return i===1&&r===1},my=t=>{const e=Vn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),s=r.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)r[n]="<",r[s]=">",n=r.indexOf("~"),s=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ta=()=>window.MathMLElement!==void 0,Kn=/\$\$(.*)\$\$/g,Zn=t=>{var e;return(((e=t.match(Kn))==null?void 0:e.length)??0)>0},yy=async(t,e)=>{t=await Vl(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Vl=async(t,e)=>{if(!Zn(t))return t;if(!ta()&&!e.legacyMathML)return t.replace(Kn,"MathML is unsupported in this environment.");const{default:i}=await Promise.resolve().then(()=>require("./layers.DUt_7Rf9.js"));return t.split(ni).map(r=>Zn(r)?`
14
14
  <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
15
15
  ${r}
16
16
  </div>
17
- `:`<div>${r}</div>`).join("").replace(Kn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ta()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Gr={getRows:r0,sanitizeText:Ue,sanitizeTextOrArray:s0,hasBreaks:a0,splitBreaks:l0,lineBreakRegex:ii,removeScript:Xl,getUrl:h0,evaluate:bo,getMax:u0,getMin:d0},pt=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Vr="#ffffff",Kr="#f2f2f2";let y0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,s,o,a,l,c,u,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||E(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||S(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||E(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||D(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||g(this.mainBkg,{h:180,s:-15,l:h*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||g(this.mainBkg,{h:180,s:-15,l:h*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Je(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Vr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Kr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const _0=t=>{const e=new y0;return e.calculate(t),e};let C0=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=E(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=E(S("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Pe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=Pe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,s,o,a,l,c,u,d;this.secondBkg=E(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=E(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=E(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||S(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||E(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Je(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=E(this.secondaryColor,20),this.git1=E(this.pie2||this.secondaryColor,20),this.git2=E(this.pie3||this.tertiaryColor,20),this.git3=E(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=E(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=E(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=E(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=E(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||E(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const x0=t=>{const e=new C0;return e.calculate(t),e};let b0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Pe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,s,o,a,l,c,u,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=D(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||D(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||S(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||S(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Je(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(S(this.git0),25),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Vr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Kr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Kl=t=>{const e=new b0;return e.calculate(t),e};let T0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=E("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.primaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,u,d;this.actorBorder=D(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=D(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||D(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Je(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Vr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Kr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const S0=t=>{const e=new T0;return e.calculate(t),e};class k0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=E(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,u,d;this.secondBkg=E(this.contrast,55),this.border2=this.contrast,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||S(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||E(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||D(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=E(this.contrast,30),this.sectionBkgColor2=E(this.contrast,30),this.taskBorderColor=D(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=E(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Je(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Vr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Kr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const w0=t=>{const e=new k0;return e.calculate(t),e},te={base:{getThemeVariables:_0},dark:{getThemeVariables:x0},default:{getThemeVariables:Kl},forest:{getThemeVariables:S0},neutral:{getThemeVariables:w0}},Vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Zl={...Vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:te.default.getThemeVariables(),sequence:{...Vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Vt.pie,useWidth:984},xyChart:{...Vt.xyChart,useWidth:void 0},requirement:{...Vt.requirement,useWidth:void 0},gitGraph:{...Vt.gitGraph,useMaxWidth:!1},sankey:{...Vt.sankey,useMaxWidth:!1}},Jl=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Jl(t[r],"")]:[...i,e+r],[]),v0=new Set(Jl(Zl,"")),Ql=Zl,Tr=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Tr(e));return}for(const e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!v0.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),Tr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(M.debug("sanitizing css option",e),t[e]=A0(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},A0=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},tc=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Si=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,B0=/\s*%%.*\n/gm;class ec extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Xe={},Zr=function(t,e){t=t.replace(tc,"").replace(Si,"").replace(B0,`
18
- `);for(const[i,{detector:r}]of Object.entries(Xe))if(r(t,e))return i;throw new ec(`No diagram type detected matching given configuration for text: ${t}`)},ic=(...t)=>{for(const{id:e,detector:i,loader:r}of t)rc(e,i,r)},rc=(t,e,i)=>{Xe[t]?M.error(`Detector with key ${t} already exists`):Xe[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},E0=t=>Xe[t].loader,Jn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Jn(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Jn(t[s],e[s],{depth:i-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},st=Jn,nc="​",L0={curveBasis:Qa,curveBasisClosed:bp,curveBasisOpen:Tp,curveBumpX:Cp,curveBumpY:xp,curveBundle:Sp,curveCardinalClosed:wp,curveCardinalOpen:vp,curveCardinal:kp,curveCatmullRomClosed:Bp,curveCatmullRomOpen:Ep,curveCatmullRom:Ap,curveLinear:Za,curveLinearClosed:Lp,curveMonotoneX:Fp,curveMonotoneY:Op,curveNatural:Ip,curveStep:Mp,curveStepAfter:Dp,curveStepBefore:$p},F0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,O0=function(t,e){const i=oc(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const o=i.map(a=>a.args);Tr(o),r=st(r,[...o])}else r=i.args;if(!r)return;let n=Zr(t,e);const s="config";return r[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[s],delete r[s]),r},oc=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${F0.source})(?=[}][%]{2}).*
19
- `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Si.exec(t))!==null;)if(r.index===Si.lastIndex&&Si.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:o})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return M.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},I0=function(t){return t.replace(Si,"")},M0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function sc(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return L0[i]??e}function $0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Oh.distExports.sanitizeUrl(i):i}const D0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let s=window;for(let o=0;o<r;o++)if(s=s[i[o]],!s){M.error(`Function name: ${t} not found in window`);return}s[n](...e)};function ac(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function N0(t){let e,i=0;t.forEach(n=>{i+=ac(n,e),e=n});const r=i/2;return To(t,r)}function P0(t){return t.length===1?t[0]:N0(t)}const ea=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},To=(t,e)=>{let i,r=e;for(const n of t){if(i){const s=ac(n,i);if(s<r)r-=s;else{const o=r/s;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:ea((1-o)*i.x+o*n.x,5),y:ea((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},R0=(t,e,i)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=To(e,25),s=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(e[0].x+n.x)/2,a.y=-Math.cos(o)*s+(e[0].y+n.y)/2,a};function q0(t,e,i){const r=structuredClone(i);M.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,s=To(r,n),o=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2),l}function lc(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ia=0;const cc=()=>(ia++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ia);function z0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const hc=t=>z0(t.length),W0=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Y0=function(t,e){const i=e.text.replace(Gr.lineBreakRegex," "),[,r]=Jr(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),n},uc=Pi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Gr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let s="";return r.forEach((o,a)=>{const l=Mi(`${o} `,i),c=Mi(s,i);if(l>e){const{hyphenatedStrings:h,remainingWord:f}=H0(o,e,"-",i);n.push(s,...h),s=f}else c+l>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&n.push(s)}),n.filter(o=>o!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),H0=Pi((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],s=[];let o="";return n.forEach((a,l)=>{const c=`${o}${a}`;if(Mi(c,r)>=e){const d=l+1,h=n.length===d,f=`${c}${i}`;s.push(h?c:f),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function dc(t,e){return So(t,e).height}function Mi(t,e){return So(t,e).width}const So=Pi((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,s]=Jr(i),o=["sans-serif",r],a=t.split(Gr.lineBreakRegex),l=[],c=xt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of o){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const _=W0();_.text=y||nc;const L=Y0(u,_).style("font-size",s).style("font-weight",n).style("font-family",h),x=(L._groups||L)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,x.width)),f=Math.round(x.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class j0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ji;const U0=function(t){return Ji=Ji||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ji.innerHTML=t,unescape(Ji.textContent)};function fc(t){return"str"in t}const X0=(t,e,i,r)=>{var n;if(!r)return;const s=(n=t.node())==null?void 0:n.getBBox();s&&t.append("text").text(r).attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},Jr=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function ko(t,e){return Ay({},t,e)}const Re={assignWithDepth:st,wrapLabel:uc,calculateTextHeight:dc,calculateTextWidth:Mi,calculateTextDimensions:So,cleanAndMerge:ko,detectInit:O0,detectDirective:oc,isSubstringInArray:M0,interpolateToCurve:sc,calcLabelPosition:P0,calcCardinalityPosition:R0,calcTerminalLabelPosition:q0,formatUrl:$0,getStylesFromArray:lc,generateId:cc,random:hc,runFunc:D0,entityDecode:U0,insertTitle:X0,parseFontSize:Jr,InitIDGenerator:j0},G0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},pc=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ra="10.9.3",Ge=Object.freeze(Ql);let yt=st({},Ge),gc,Ve=[],ki=st({},Ge);const Qr=(t,e)=>{let i=st({},t),r={};for(const n of e)_c(n),r=st(r,n);if(i=st(i,r),r.theme&&r.theme in te){const n=st({},gc),s=st(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in te&&(i.themeVariables=te[i.theme].getThemeVariables(s))}return ki=i,Cc(ki),ki},V0=t=>(yt=st({},Ge),yt=st(yt,t),t.theme&&te[t.theme]&&(yt.themeVariables=te[t.theme].getThemeVariables(t.themeVariables)),Qr(yt,Ve),yt),K0=t=>{gc=st({},t)},Z0=t=>(yt=st(yt,t),Qr(yt,Ve),yt),mc=()=>st({},yt),yc=t=>(Cc(t),st(ki,t),$t()),$t=()=>st({},ki),_c=t=>{t&&(["secure",...yt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&_c(t[e])}))},J0=t=>{Tr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ve.push(t),Qr(yt,Ve)},Sr=(t=yt)=>{Ve=[],Qr(t,Ve)},Q0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},na={},t_=t=>{na[t]||(M.warn(Q0[t]),na[t]=!0)},Cc=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&t_("LAZY_LOAD_DEPRECATED")},xc="c4",e_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),i_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.C5rttXXy.js"));return{id:xc,diagram:t}},r_={id:xc,detector:e_,loader:i_},n_=r_,bc="flowchart",o_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},s_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.OEP2K3db.js"));return{id:bc,diagram:t}},a_={id:bc,detector:o_,loader:s_},l_=a_,Tc="flowchart-v2",c_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},h_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.p9hSNB6N.js"));return{id:Tc,diagram:t}},u_={id:Tc,detector:c_,loader:h_},d_=u_,Sc="er",f_=t=>/^\s*erDiagram/.test(t),p_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BBU3ik5q.js"));return{id:Sc,diagram:t}},g_={id:Sc,detector:f_,loader:p_},m_=g_,kc="gitGraph",y_=t=>/^\s*gitGraph/.test(t),__=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Bz0ApNUe.js"));return{id:kc,diagram:t}},C_={id:kc,detector:y_,loader:__},x_=C_,wc="gantt",b_=t=>/^\s*gantt/.test(t),T_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.c_QDfgff.js"));return{id:wc,diagram:t}},S_={id:wc,detector:b_,loader:T_},k_=S_,vc="info",w_=t=>/^\s*info/.test(t),v_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.ChJyurjQ.js"));return{id:vc,diagram:t}},A_={id:vc,detector:w_,loader:v_},Ac="pie",B_=t=>/^\s*pie/.test(t),E_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.k2UyvrHI.js"));return{id:Ac,diagram:t}},L_={id:Ac,detector:B_,loader:E_},Bc="quadrantChart",F_=t=>/^\s*quadrantChart/.test(t),O_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DMvWe0pJ.js"));return{id:Bc,diagram:t}},I_={id:Bc,detector:F_,loader:O_},M_=I_,Ec="xychart",$_=t=>/^\s*xychart-beta/.test(t),D_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.D18RSmmQ.js"));return{id:Ec,diagram:t}},N_={id:Ec,detector:$_,loader:D_},P_=N_,Lc="requirement",R_=t=>/^\s*requirement(Diagram)?/.test(t),q_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CDzPpnhN.js"));return{id:Lc,diagram:t}},z_={id:Lc,detector:R_,loader:q_},W_=z_,Fc="sequence",Y_=t=>/^\s*sequenceDiagram/.test(t),H_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CeVpKhli.js"));return{id:Fc,diagram:t}},j_={id:Fc,detector:Y_,loader:H_},U_=j_,Oc="class",X_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},G_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BjZInKjA.js"));return{id:Oc,diagram:t}},V_={id:Oc,detector:X_,loader:G_},K_=V_,Ic="classDiagram",Z_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},J_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BkjjkAwW.js"));return{id:Ic,diagram:t}},Q_={id:Ic,detector:Z_,loader:J_},tC=Q_,Mc="state",eC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},iC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CSjWzlk9.js"));return{id:Mc,diagram:t}},rC={id:Mc,detector:eC,loader:iC},nC=rC,$c="stateDiagram",oC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},sC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Ci0QS82_.js"));return{id:$c,diagram:t}},aC={id:$c,detector:oC,loader:sC},lC=aC,Dc="journey",cC=t=>/^\s*journey/.test(t),hC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Ci0x4aAi.js"));return{id:Dc,diagram:t}},uC={id:Dc,detector:cC,loader:hC},dC=uC,fC=function(t,e){for(let i of e)t.attr(i[0],i[1])},pC=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},wo=function(t,e,i,r){const n=pC(e,i,r);fC(t,n)},Nc=function(t,e,i,r){const n=e.node().getBBox(),s=n.width,o=n.height;M.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;M.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=o+i*2,M.info(`Calculated bounds: ${a}x${l}`),wo(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},cr={},gC=(t,e,i)=>{let r="";return t in cr&&cr[t]?r=cr[t](i):M.warn(`No theme found for ${t}`),` & {
17
+ `:`<div>${r}</div>`).join("").replace(Kn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ta()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Vr={getRows:ny,sanitizeText:Ge,sanitizeTextOrArray:ay,hasBreaks:ly,splitBreaks:cy,lineBreakRegex:ni,removeScript:Xl,getUrl:uy,evaluate:bo,getMax:fy,getMin:dy},pt=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Kr="#ffffff",Zr="#f2f2f2";let _y=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,s,o,a,l,c,h,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||E(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=D(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=D(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||v(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||E(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||D(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const u=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||g(this.mainBkg,{h:180,s:-15,l:u*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||g(this.mainBkg,{h:180,s:-15,l:u*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Kr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Zr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Cy=t=>{const e=new _y;return e.calculate(t),e};let xy=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=E(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=E(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Pe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=Pe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,s,o,a,l,c,h,f;this.secondBkg=E(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=E(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=E(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=E(this.secondaryColor,20),this.git1=E(this.pie2||this.secondaryColor,20),this.git2=E(this.pie3||this.tertiaryColor,20),this.git3=E(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=E(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=E(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=E(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=E(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||E(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const by=t=>{const e=new xy;return e.calculate(t),e};let Ty=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Pe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,s,o,a,l,c,h,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Kr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Zr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Kl=t=>{const e=new Ty;return e.calculate(t),e};let vy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=E("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,f;this.actorBorder=D(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Kr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Zr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Sy=t=>{const e=new vy;return e.calculate(t),e};class ky{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=E(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,f;this.secondBkg=E(this.contrast,55),this.border2=this.contrast,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=E(this.contrast,30),this.sectionBkgColor2=E(this.contrast,30),this.taskBorderColor=D(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=E(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Kr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Zr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const wy=t=>{const e=new ky;return e.calculate(t),e},te={base:{getThemeVariables:Cy},dark:{getThemeVariables:by},default:{getThemeVariables:Kl},forest:{getThemeVariables:Sy},neutral:{getThemeVariables:wy}},Kt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Zl={...Kt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:te.default.getThemeVariables(),sequence:{...Kt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Kt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Kt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Kt.pie,useWidth:984},xyChart:{...Kt.xyChart,useWidth:void 0},requirement:{...Kt.requirement,useWidth:void 0},gitGraph:{...Kt.gitGraph,useMaxWidth:!1},sankey:{...Kt.sankey,useMaxWidth:!1}},Jl=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Jl(t[r],"")]:[...i,e+r],[]),Ay=new Set(Jl(Zl,"")),Ql=Zl,vr=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>vr(e));return}for(const e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Ay.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),vr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(M.debug("sanitizing css option",e),t[e]=By(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},By=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},tc=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ki=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ey=/\s*%%.*\n/gm;class ec extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ve={},Jr=function(t,e){t=t.replace(tc,"").replace(ki,"").replace(Ey,`
18
+ `);for(const[i,{detector:r}]of Object.entries(Ve))if(r(t,e))return i;throw new ec(`No diagram type detected matching given configuration for text: ${t}`)},ic=(...t)=>{for(const{id:e,detector:i,loader:r}of t)rc(e,i,r)},rc=(t,e,i)=>{Ve[t]?M.error(`Detector with key ${t} already exists`):Ve[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},Ly=t=>Ve[t].loader,Jn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Jn(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Jn(t[s],e[s],{depth:i-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},st=Jn,nc="​",Fy={curveBasis:Qa,curveBasisClosed:bp,curveBasisOpen:Tp,curveBumpX:Cp,curveBumpY:xp,curveBundle:vp,curveCardinalClosed:kp,curveCardinalOpen:wp,curveCardinal:Sp,curveCatmullRomClosed:Bp,curveCatmullRomOpen:Ep,curveCatmullRom:Ap,curveLinear:Za,curveLinearClosed:Lp,curveMonotoneX:Fp,curveMonotoneY:Op,curveNatural:Ip,curveStep:Mp,curveStepAfter:Dp,curveStepBefore:$p},Oy=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Iy=function(t,e){const i=oc(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const o=i.map(a=>a.args);vr(o),r=st(r,[...o])}else r=i.args;if(!r)return;let n=Jr(t,e);const s="config";return r[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[s],delete r[s]),r},oc=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Oy.source})(?=[}][%]{2}).*
19
+ `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ki.exec(t))!==null;)if(r.index===ki.lastIndex&&ki.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:o})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return M.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},My=function(t){return t.replace(ki,"")},$y=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function sc(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Fy[i]??e}function Dy(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Oh.distExports.sanitizeUrl(i):i}const Ny=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let s=window;for(let o=0;o<r;o++)if(s=s[i[o]],!s){M.error(`Function name: ${t} not found in window`);return}s[n](...e)};function ac(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Py(t){let e,i=0;t.forEach(n=>{i+=ac(n,e),e=n});const r=i/2;return To(t,r)}function Ry(t){return t.length===1?t[0]:Py(t)}const ea=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},To=(t,e)=>{let i,r=e;for(const n of t){if(i){const s=ac(n,i);if(s<r)r-=s;else{const o=r/s;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:ea((1-o)*i.x+o*n.x,5),y:ea((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},qy=(t,e,i)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=To(e,25),s=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(e[0].x+n.x)/2,a.y=-Math.cos(o)*s+(e[0].y+n.y)/2,a};function zy(t,e,i){const r=structuredClone(i);M.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,s=To(r,n),o=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2),l}function lc(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ia=0;const cc=()=>(ia++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ia);function Wy(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const hc=t=>Wy(t.length),Yy=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Hy=function(t,e){const i=e.text.replace(Vr.lineBreakRegex," "),[,r]=Qr(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),n},uc=Ri((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Vr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let s="";return r.forEach((o,a)=>{const l=$i(`${o} `,i),c=$i(s,i);if(l>e){const{hyphenatedStrings:u,remainingWord:d}=jy(o,e,"-",i);n.push(s,...u),s=d}else c+l>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&n.push(s)}),n.filter(o=>o!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),jy=Ri((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],s=[];let o="";return n.forEach((a,l)=>{const c=`${o}${a}`;if($i(c,r)>=e){const f=l+1,u=n.length===f,d=`${c}${i}`;s.push(u?c:d),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function fc(t,e){return vo(t,e).height}function $i(t,e){return vo(t,e).width}const vo=Ri((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,s]=Qr(i),o=["sans-serif",r],a=t.split(Vr.lineBreakRegex),l=[],c=xt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const u of o){let d=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const _=Yy();_.text=y||nc;const L=Hy(h,_).style("font-size",s).style("font-weight",n).style("font-family",u),x=(L._groups||L)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,x.width)),d=Math.round(x.height),m.height+=d,m.lineHeight=Math.round(Math.max(m.lineHeight,d))}l.push(m)}h.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Uy{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Qi;const Xy=function(t){return Qi=Qi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Qi.innerHTML=t,unescape(Qi.textContent)};function dc(t){return"str"in t}const Gy=(t,e,i,r)=>{var n;if(!r)return;const s=(n=t.node())==null?void 0:n.getBBox();s&&t.append("text").text(r).attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},Qr=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function So(t,e){return A0({},t,e)}const qe={assignWithDepth:st,wrapLabel:uc,calculateTextHeight:fc,calculateTextWidth:$i,calculateTextDimensions:vo,cleanAndMerge:So,detectInit:Iy,detectDirective:oc,isSubstringInArray:$y,interpolateToCurve:sc,calcLabelPosition:Ry,calcCardinalityPosition:qy,calcTerminalLabelPosition:zy,formatUrl:Dy,getStylesFromArray:lc,generateId:cc,random:hc,runFunc:Ny,entityDecode:Xy,insertTitle:Gy,parseFontSize:Qr,InitIDGenerator:Uy},Vy=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},pc=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ra="10.9.3",Ke=Object.freeze(Ql);let yt=st({},Ke),gc,Ze=[],wi=st({},Ke);const tn=(t,e)=>{let i=st({},t),r={};for(const n of e)_c(n),r=st(r,n);if(i=st(i,r),r.theme&&r.theme in te){const n=st({},gc),s=st(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in te&&(i.themeVariables=te[i.theme].getThemeVariables(s))}return wi=i,Cc(wi),wi},Ky=t=>(yt=st({},Ke),yt=st(yt,t),t.theme&&te[t.theme]&&(yt.themeVariables=te[t.theme].getThemeVariables(t.themeVariables)),tn(yt,Ze),yt),Zy=t=>{gc=st({},t)},Jy=t=>(yt=st(yt,t),tn(yt,Ze),yt),mc=()=>st({},yt),yc=t=>(Cc(t),st(wi,t),$t()),$t=()=>st({},wi),_c=t=>{t&&(["secure",...yt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&_c(t[e])}))},Qy=t=>{vr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ze.push(t),tn(yt,Ze)},Sr=(t=yt)=>{Ze=[],tn(t,Ze)},t_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},na={},e_=t=>{na[t]||(M.warn(t_[t]),na[t]=!0)},Cc=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&e_("LAZY_LOAD_DEPRECATED")},xc="c4",i_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),r_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.vfmwTFt7.js"));return{id:xc,diagram:t}},n_={id:xc,detector:i_,loader:r_},o_=n_,bc="flowchart",s_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},a_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CM0RbG9c.js"));return{id:bc,diagram:t}},l_={id:bc,detector:s_,loader:a_},c_=l_,Tc="flowchart-v2",h_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},u_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.3O2dWJo4.js"));return{id:Tc,diagram:t}},f_={id:Tc,detector:h_,loader:u_},d_=f_,vc="er",p_=t=>/^\s*erDiagram/.test(t),g_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DnhB9nfo.js"));return{id:vc,diagram:t}},m_={id:vc,detector:p_,loader:g_},y_=m_,Sc="gitGraph",__=t=>/^\s*gitGraph/.test(t),C_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BBm66jcD.js"));return{id:Sc,diagram:t}},x_={id:Sc,detector:__,loader:C_},b_=x_,kc="gantt",T_=t=>/^\s*gantt/.test(t),v_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BY_Ddtf_.js"));return{id:kc,diagram:t}},S_={id:kc,detector:T_,loader:v_},k_=S_,wc="info",w_=t=>/^\s*info/.test(t),A_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DaNHv_tD.js"));return{id:wc,diagram:t}},B_={id:wc,detector:w_,loader:A_},Ac="pie",E_=t=>/^\s*pie/.test(t),L_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DHYQaKXy.js"));return{id:Ac,diagram:t}},F_={id:Ac,detector:E_,loader:L_},Bc="quadrantChart",O_=t=>/^\s*quadrantChart/.test(t),I_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.ZN4JdEjx.js"));return{id:Bc,diagram:t}},M_={id:Bc,detector:O_,loader:I_},$_=M_,Ec="xychart",D_=t=>/^\s*xychart-beta/.test(t),N_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.kyTkLvwr.js"));return{id:Ec,diagram:t}},P_={id:Ec,detector:D_,loader:N_},R_=P_,Lc="requirement",q_=t=>/^\s*requirement(Diagram)?/.test(t),z_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.C7_Otsyx.js"));return{id:Lc,diagram:t}},W_={id:Lc,detector:q_,loader:z_},Y_=W_,Fc="sequence",H_=t=>/^\s*sequenceDiagram/.test(t),j_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CVlRuvNG.js"));return{id:Fc,diagram:t}},U_={id:Fc,detector:H_,loader:j_},X_=U_,Oc="class",G_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},V_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Cdw06C7D.js"));return{id:Oc,diagram:t}},K_={id:Oc,detector:G_,loader:V_},Z_=K_,Ic="classDiagram",J_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Q_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BlifjyLs.js"));return{id:Ic,diagram:t}},tC={id:Ic,detector:J_,loader:Q_},eC=tC,Mc="state",iC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},rC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.zx6fFkwC.js"));return{id:Mc,diagram:t}},nC={id:Mc,detector:iC,loader:rC},oC=nC,$c="stateDiagram",sC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},aC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.wXI8z3zK.js"));return{id:$c,diagram:t}},lC={id:$c,detector:sC,loader:aC},cC=lC,Dc="journey",hC=t=>/^\s*journey/.test(t),uC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.WoRsWqkn.js"));return{id:Dc,diagram:t}},fC={id:Dc,detector:hC,loader:uC},dC=fC,pC=function(t,e){for(let i of e)t.attr(i[0],i[1])},gC=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},ko=function(t,e,i,r){const n=gC(e,i,r);pC(t,n)},Nc=function(t,e,i,r){const n=e.node().getBBox(),s=n.width,o=n.height;M.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;M.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=o+i*2,M.info(`Calculated bounds: ${a}x${l}`),ko(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},hr={},mC=(t,e,i)=>{let r="";return t in hr&&hr[t]?r=hr[t](i):M.warn(`No theme found for ${t}`),` & {
20
20
  font-family: ${i.fontFamily};
21
21
  font-size: ${i.fontSize};
22
22
  fill: ${i.textColor}
@@ -65,32 +65,32 @@
65
65
  ${r}
66
66
 
67
67
  ${e}
68
- `},mC=(t,e)=>{e!==void 0&&(cr[t]=e)},yC=gC;let vo="",Ao="",Bo="";const Eo=t=>Ue(t,$t()),Pc=()=>{vo="",Bo="",Ao=""},Rc=t=>{vo=Eo(t).replace(/^\s+/g,"")},qc=()=>vo,zc=t=>{Bo=Eo(t).replace(/\n\s+/g,`
69
- `)},Wc=()=>Bo,Yc=t=>{Ao=Eo(t)},Hc=()=>Ao,jc=Object.freeze(Object.defineProperty({__proto__:null,clear:Pc,getAccDescription:Wc,getAccTitle:qc,getDiagramTitle:Hc,setAccDescription:zc,setAccTitle:Rc,setDiagramTitle:Yc},Symbol.toStringTag,{value:"Module"})),_C=M,CC=xo,tn=$t,xC=yc,bC=Ge,TC=t=>Ue(t,tn()),Uc=Nc,SC=()=>jc,kr={},wr=(t,e,i)=>{var r;if(kr[t])throw new Error(`Diagram ${t} already registered.`);kr[t]=e,i&&rc(t,i),mC(t,e.styles),(r=e.injectUtils)==null||r.call(e,_C,CC,tn,TC,Uc,SC(),()=>{})},Lo=t=>{if(t in kr)return kr[t];throw new kC(t)};class kC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Xc=t=>{var e;const{securityLevel:i}=tn();let r=xt("body");if(i==="sandbox"){const o=((e=xt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=xt(o.body)}return r.select(`#${t}`)},wC=(t,e,i)=>{M.debug(`rendering svg for syntax error
70
- `);const r=Xc(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),wo(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Gc={draw:wC},vC=Gc,AC={db:{},renderer:Gc,parser:{parser:{yy:{}},parse:()=>{}}},BC=AC,Vc="flowchart-elk",EC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},LC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DYx3Ot6h.js"));return{id:Vc,diagram:t}},FC={id:Vc,detector:EC,loader:LC},OC=FC,Kc="timeline",IC=t=>/^\s*timeline/.test(t),MC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Dol0x5Jd.js"));return{id:Kc,diagram:t}},$C={id:Kc,detector:IC,loader:MC},DC=$C,Zc="mindmap",NC=t=>/^\s*mindmap/.test(t),PC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.D2q8ZYi2.js"));return{id:Zc,diagram:t}},RC={id:Zc,detector:NC,loader:PC},qC=RC,Jc="sankey",zC=t=>/^\s*sankey-beta/.test(t),WC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BFLg4UGe.js"));return{id:Jc,diagram:t}},YC={id:Jc,detector:zC,loader:WC},HC=YC,Qc="block",jC=t=>/^\s*block-beta/.test(t),UC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Dk9dbz6F.js"));return{id:Qc,diagram:t}},XC={id:Qc,detector:jC,loader:UC},GC=XC;let oa=!1;const Fo=()=>{oa||(oa=!0,wr("error",BC,t=>t.toLowerCase().trim()==="error"),wr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),ic(n_,tC,K_,m_,k_,A_,L_,W_,U_,OC,d_,l_,qC,DC,x_,lC,nC,dC,M_,HC,P_,GC))};class th{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=G0(e),this.text+=`
71
- `;const r=$t();try{this.type=Zr(e,r)}catch(s){this.type="error",this.detectError=s}const n=Lo(this.type);M.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,s;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const o=$t();(r=this.init)==null||r.call(this,o),this.metadata.title&&((s=(n=this.db).setDiagramTitle)==null||s.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const VC=async(t,e={})=>{const i=Zr(t,$t());try{Lo(i)}catch{const n=E0(i);if(!n)throw new ec(`Diagram ${i} not found.`);const{id:s,diagram:o}=await n();wr(s,o)}return new th(t,e)};let sa=[];const KC=()=>{sa.forEach(t=>{t()}),sa=[]},ZC="graphics-document document";function JC(t,e){t.attr("role",ZC),e!==""&&t.attr("aria-roledescription",e)}function QC(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const tx=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function eh(t){return typeof t>"u"||t===null}function ex(t){return typeof t=="object"&&t!==null}function ix(t){return Array.isArray(t)?t:eh(t)?[]:[t]}function rx(t,e){var i,r,n,s;if(e)for(s=Object.keys(e),i=0,r=s.length;i<r;i+=1)n=s[i],t[n]=e[n];return t}function nx(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function ox(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var sx=eh,ax=ex,lx=ix,cx=nx,hx=ox,ux=rx,dt={isNothing:sx,isObject:ax,toArray:lx,repeat:cx,isNegativeZero:hx,extend:ux};function ih(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
68
+ `},yC=(t,e)=>{e!==void 0&&(hr[t]=e)},_C=mC;let wo="",Ao="",Bo="";const Eo=t=>Ge(t,$t()),Pc=()=>{wo="",Bo="",Ao=""},Rc=t=>{wo=Eo(t).replace(/^\s+/g,"")},qc=()=>wo,zc=t=>{Bo=Eo(t).replace(/\n\s+/g,`
69
+ `)},Wc=()=>Bo,Yc=t=>{Ao=Eo(t)},Hc=()=>Ao,jc=Object.freeze(Object.defineProperty({__proto__:null,clear:Pc,getAccDescription:Wc,getAccTitle:qc,getDiagramTitle:Hc,setAccDescription:zc,setAccTitle:Rc,setDiagramTitle:Yc},Symbol.toStringTag,{value:"Module"})),CC=M,xC=xo,en=$t,bC=yc,TC=Ke,vC=t=>Ge(t,en()),Uc=Nc,SC=()=>jc,kr={},wr=(t,e,i)=>{var r;if(kr[t])throw new Error(`Diagram ${t} already registered.`);kr[t]=e,i&&rc(t,i),yC(t,e.styles),(r=e.injectUtils)==null||r.call(e,CC,xC,en,vC,Uc,SC(),()=>{})},Lo=t=>{if(t in kr)return kr[t];throw new kC(t)};class kC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Xc=t=>{var e;const{securityLevel:i}=en();let r=xt("body");if(i==="sandbox"){const o=((e=xt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=xt(o.body)}return r.select(`#${t}`)},wC=(t,e,i)=>{M.debug(`rendering svg for syntax error
70
+ `);const r=Xc(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),ko(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Gc={draw:wC},AC=Gc,BC={db:{},renderer:Gc,parser:{parser:{yy:{}},parse:()=>{}}},EC=BC,Vc="flowchart-elk",LC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},FC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Ce8BBqO9.js"));return{id:Vc,diagram:t}},OC={id:Vc,detector:LC,loader:FC},IC=OC,Kc="timeline",MC=t=>/^\s*timeline/.test(t),$C=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Bw3R-pSG.js"));return{id:Kc,diagram:t}},DC={id:Kc,detector:MC,loader:$C},NC=DC,Zc="mindmap",PC=t=>/^\s*mindmap/.test(t),RC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.9EMwI8Xs.js"));return{id:Zc,diagram:t}},qC={id:Zc,detector:PC,loader:RC},zC=qC,Jc="sankey",WC=t=>/^\s*sankey-beta/.test(t),YC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.8dwcxQd3.js"));return{id:Jc,diagram:t}},HC={id:Jc,detector:WC,loader:YC},jC=HC,Qc="block",UC=t=>/^\s*block-beta/.test(t),XC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BAnc8Y8B.js"));return{id:Qc,diagram:t}},GC={id:Qc,detector:UC,loader:XC},VC=GC;let oa=!1;const Fo=()=>{oa||(oa=!0,wr("error",EC,t=>t.toLowerCase().trim()==="error"),wr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),ic(o_,eC,Z_,y_,k_,B_,F_,Y_,X_,IC,d_,c_,zC,NC,b_,cC,oC,dC,$_,jC,R_,VC))};class th{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=Vy(e),this.text+=`
71
+ `;const r=$t();try{this.type=Jr(e,r)}catch(s){this.type="error",this.detectError=s}const n=Lo(this.type);M.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,s;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const o=$t();(r=this.init)==null||r.call(this,o),this.metadata.title&&((s=(n=this.db).setDiagramTitle)==null||s.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const KC=async(t,e={})=>{const i=Jr(t,$t());try{Lo(i)}catch{const n=Ly(i);if(!n)throw new ec(`Diagram ${i} not found.`);const{id:s,diagram:o}=await n();wr(s,o)}return new th(t,e)};let sa=[];const ZC=()=>{sa.forEach(t=>{t()}),sa=[]},JC="graphics-document document";function QC(t,e){t.attr("role",JC),e!==""&&t.attr("aria-roledescription",e)}function tx(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const ex=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function eh(t){return typeof t>"u"||t===null}function ix(t){return typeof t=="object"&&t!==null}function rx(t){return Array.isArray(t)?t:eh(t)?[]:[t]}function nx(t,e){var i,r,n,s;if(e)for(s=Object.keys(e),i=0,r=s.length;i<r;i+=1)n=s[i],t[n]=e[n];return t}function ox(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function sx(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ax=eh,lx=ix,cx=rx,hx=ox,ux=sx,fx=nx,ft={isNothing:ax,isObject:lx,toArray:cx,repeat:hx,isNegativeZero:ux,extend:fx};function ih(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
72
72
 
73
- `+t.mark.snippet),r+" "+i):r}function $i(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=ih(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}$i.prototype=Object.create(Error.prototype);$i.prototype.constructor=$i;$i.prototype.toString=function(e){return this.name+": "+ih(this,e)};var Jt=$i;function Tn(t,e,i,r,n){var s="",o="",a=Math.floor(n/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(o=" ...",i=r+a-o.length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:r-e+s.length}}function Sn(t,e){return dt.repeat(" ",e-t.length)+t}function dx(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],s,o=-1;s=i.exec(t.buffer);)n.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Tn(t.buffer,r[o-l],n[o-l],t.position-(r[o]-r[o-l]),d),a=dt.repeat(" ",e.indent)+Sn((t.line-l+1).toString(),u)+" | "+c.str+`
74
- `+a;for(c=Tn(t.buffer,r[o],n[o],t.position,d),a+=dt.repeat(" ",e.indent)+Sn((t.line+1).toString(),u)+" | "+c.str+`
75
- `,a+=dt.repeat("-",e.indent+u+3+c.pos)+`^
76
- `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Tn(t.buffer,r[o+l],n[o+l],t.position-(r[o]-r[o+l]),d),a+=dt.repeat(" ",e.indent)+Sn((t.line+l+1).toString(),u)+" | "+c.str+`
77
- `;return a.replace(/\n$/,"")}var fx=dx,px=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gx=["scalar","sequence","mapping"];function mx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function yx(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(px.indexOf(i)===-1)throw new Jt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=mx(e.styleAliases||null),gx.indexOf(this.kind)===-1)throw new Jt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=yx;function aa(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(n=o)}),i[n]=r}),i}function _x(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function Qn(t){return this.extend(t)}Qn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Jt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Jt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Jt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Qn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=aa(n,"implicit"),n.compiledExplicit=aa(n,"explicit"),n.compiledTypeMap=_x(n.compiledImplicit,n.compiledExplicit),n};var Cx=Qn,xx=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),bx=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Tx=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Sx=new Cx({explicit:[xx,bx,Tx]});function kx(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function wx(){return null}function vx(t){return t===null}var Ax=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:kx,construct:wx,predicate:vx,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Bx(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Ex(t){return t==="true"||t==="True"||t==="TRUE"}function Lx(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Fx=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Bx,construct:Ex,predicate:Lx,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ox(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Ix(t){return 48<=t&&t<=55}function Mx(t){return 48<=t&&t<=57}function $x(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Ox(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Ix(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!Mx(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function Dx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Nx(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dt.isNegativeZero(t)}var Px=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:$x,construct:Dx,predicate:Nx,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Rx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qx(t){return!(t===null||!Rx.test(t)||t[t.length-1]==="_")}function zx(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Wx=/^[-+]?[0-9]+e/;function Yx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(t))return"-0.0";return i=t.toString(10),Wx.test(i)?i.replace("e",".e"):i}function Hx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dt.isNegativeZero(t))}var jx=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:qx,construct:zx,predicate:Hx,represent:Yx,defaultStyle:"lowercase"}),rh=Sx.extend({implicit:[Ax,Fx,Px,jx]}),Ux=rh,nh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),oh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Xx(t){return t===null?!1:nh.exec(t)!==null||oh.exec(t)!==null}function Gx(t){var e,i,r,n,s,o,a,l=0,c=null,u,d,h;if(e=nh.exec(t),e===null&&(e=oh.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],d=+(e[11]||0),c=(u*60+d)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(i,r,n,s,o,a,l)),c&&h.setTime(h.getTime()-c),h}function Vx(t){return t.toISOString()}var Kx=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Xx,construct:Gx,instanceOf:Date,represent:Vx});function Zx(t){return t==="<<"||t===null}var Jx=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zx}),Oo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
78
- \r`;function Qx(t){if(t===null)return!1;var e,i,r=0,n=t.length,s=Oo;for(i=0;i<n;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function tb(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,s=Oo,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):i===18?(a.push(o>>10&255),a.push(o>>2&255)):i===12&&a.push(o>>4&255),new Uint8Array(a)}function eb(t){var e="",i=0,r,n,s=t.length,o=Oo;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]),i=(i<<8)+t[r];return n=s%3,n===0?(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]):n===2?(e+=o[i>>10&63],e+=o[i>>4&63],e+=o[i<<2&63],e+=o[64]):n===1&&(e+=o[i>>2&63],e+=o[i<<4&63],e+=o[64],e+=o[64]),e}function ib(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var rb=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Qx,construct:tb,predicate:ib,represent:eb}),nb=Object.prototype.hasOwnProperty,ob=Object.prototype.toString;function sb(t){if(t===null)return!0;var e=[],i,r,n,s,o,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],o=!1,ob.call(n)!=="[object Object]")return!1;for(s in n)if(nb.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function ab(t){return t!==null?t:[]}var lb=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sb,construct:ab}),cb=Object.prototype.toString;function hb(t){if(t===null)return!0;var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(r=o[e],cb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;s[e]=[n[0],r[n[0]]]}return!0}function ub(t){if(t===null)return[];var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)r=o[e],n=Object.keys(r),s[e]=[n[0],r[n[0]]];return s}var db=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hb,construct:ub}),fb=Object.prototype.hasOwnProperty;function pb(t){if(t===null)return!0;var e,i=t;for(e in i)if(fb.call(i,e)&&i[e]!==null)return!1;return!0}function gb(t){return t!==null?t:{}}var mb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:pb,construct:gb}),yb=Ux.extend({implicit:[Kx,Jx],explicit:[rb,lb,db,mb]}),he=Object.prototype.hasOwnProperty,vr=1,sh=2,ah=3,Ar=4,kn=1,_b=2,la=3,Cb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xb=/[\x85\u2028\u2029]/,bb=/[,\[\]\{\}]/,lh=/^(?:!|!!|![a-z\-]+!)$/i,ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ca(t){return Object.prototype.toString.call(t)}function zt(t){return t===10||t===13}function xe(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Me(t){return t===44||t===91||t===93||t===123||t===125}function Tb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Sb(t){return t===120?2:t===117?4:t===85?8:0}function kb(t){return 48<=t&&t<=57?t-48:-1}function ha(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
79
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function wb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var hh=new Array(256),uh=new Array(256);for(var Oe=0;Oe<256;Oe++)hh[Oe]=ha(Oe)?1:0,uh[Oe]=ha(Oe);function vb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||yb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dh(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=fx(i),new Jt(e,i)}function I(t,e){throw dh(t,e)}function Br(t,e){t.onWarning&&t.onWarning.call(null,dh(t,e))}var ua={YAML:function(e,i,r){var n,s,o;e.version!==null&&I(e,"duplication of %YAML directive"),r.length!==1&&I(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&I(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&I(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Br(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,s;r.length!==2&&I(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],lh.test(n)||I(e,"ill-formed tag handle (first argument) of the TAG directive"),he.call(e.tagMap,n)&&I(e,'there is a previously declared suffix for "'+n+'" tag handle'),ch.test(s)||I(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{I(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function le(t,e,i,r){var n,s,o,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||I(t,"expected valid JSON character");else Cb.test(a)&&I(t,"the stream contains non-printable characters");t.result+=a}}function da(t,e,i,r){var n,s,o,a;for(dt.isObject(i)||I(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,a=n.length;o<a;o+=1)s=n[o],he.call(e,s)||(e[s]=i[s],r[s]=!0)}function $e(t,e,i,r,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&I(t,"nested arrays are not supported inside keys"),typeof n=="object"&&ca(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&ca(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)da(t,e,s[c],i);else da(t,e,s,i);else!t.json&&!he.call(i,n)&&he.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,I(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete i[n];return e}function Io(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):I(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function J(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;xe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(zt(n))for(Io(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Br(t,"deficient indentation"),r}function en(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function Mo(t,e){e===1?t.result+=" ":e>1&&(t.result+=dt.repeat(`
80
- `,e-1))}function Ab(t,e,i){var r,n,s,o,a,l,c,u,d=t.kind,h=t.result,f;if(f=t.input.charCodeAt(t.position),_t(f)||Me(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Me(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Me(n))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&en(t)||i&&Me(f))break;if(zt(f))if(l=t.line,c=t.lineStart,u=t.lineIndent,J(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(le(t,s,o,!1),Mo(t,t.line-l),s=o=t.position,a=!1),xe(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return le(t,s,o,!1),t.result?!0:(t.kind=d,t.result=h,!1)}function Bb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(le(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else zt(i)?(le(t,r,n,!0),Mo(t,J(t,!1,e)),r=n=t.position):t.position===t.lineStart&&en(t)?I(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);I(t,"unexpected end of the stream within a single quoted scalar")}function Eb(t,e){var i,r,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return le(t,i,t.position,!0),t.position++,!0;if(a===92){if(le(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),zt(a))J(t,!1,e);else if(a<256&&hh[a])t.result+=uh[a],t.position++;else if((o=Sb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Tb(a))>=0?s=(s<<4)+o:I(t,"expected hexadecimal character");t.result+=wb(s),t.position++}else I(t,"unknown escape sequence");i=r=t.position}else zt(a)?(le(t,i,r,!0),Mo(t,J(t,!1,e)),i=r=t.position):t.position===t.lineStart&&en(t)?I(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}I(t,"unexpected end of the stream within a double quoted scalar")}function Lb(t,e){var i=!0,r,n,s,o=t.tag,a,l=t.anchor,c,u,d,h,f,m=Object.create(null),y,_,L,x;if(x=t.input.charCodeAt(t.position),x===91)u=93,f=!1,a=[];else if(x===123)u=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),x=t.input.charCodeAt(++t.position);x!==0;){if(J(t,!0,e),x=t.input.charCodeAt(t.position),x===u)return t.position++,t.tag=o,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;i?x===44&&I(t,"expected the node content, but found ','"):I(t,"missed comma between flow collection entries"),_=y=L=null,d=h=!1,x===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(d=h=!0,t.position++,J(t,!0,e))),r=t.line,n=t.lineStart,s=t.position,Ke(t,e,vr,!1,!0),_=t.tag,y=t.result,J(t,!0,e),x=t.input.charCodeAt(t.position),(h||t.line===r)&&x===58&&(d=!0,x=t.input.charCodeAt(++t.position),J(t,!0,e),Ke(t,e,vr,!1,!0),L=t.result),f?$e(t,a,m,_,y,L,r,n,s):d?a.push($e(t,null,m,_,y,L,r,n,s)):a.push(y),J(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(i=!0,x=t.input.charCodeAt(++t.position)):i=!1}I(t,"unexpected end of the stream within a flow collection")}function Fb(t,e){var i,r,n=kn,s=!1,o=!1,a=e,l=0,c=!1,u,d;if(d=t.input.charCodeAt(t.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)kn===n?n=d===43?la:_b:I(t,"repeat of a chomping mode identifier");else if((u=kb(d))>=0)u===0?I(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?I(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(xe(d)){do d=t.input.charCodeAt(++t.position);while(xe(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!zt(d)&&d!==0)}for(;d!==0;){for(Io(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),zt(d)){l++;continue}if(t.lineIndent<a){n===la?t.result+=dt.repeat(`
73
+ `+t.mark.snippet),r+" "+i):r}function Di(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=ih(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;Di.prototype.toString=function(e){return this.name+": "+ih(this,e)};var Jt=Di;function vn(t,e,i,r,n){var s="",o="",a=Math.floor(n/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(o=" ...",i=r+a-o.length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:r-e+s.length}}function Sn(t,e){return ft.repeat(" ",e-t.length)+t}function dx(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],s,o=-1;s=i.exec(t.buffer);)n.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=vn(t.buffer,r[o-l],n[o-l],t.position-(r[o]-r[o-l]),f),a=ft.repeat(" ",e.indent)+Sn((t.line-l+1).toString(),h)+" | "+c.str+`
74
+ `+a;for(c=vn(t.buffer,r[o],n[o],t.position,f),a+=ft.repeat(" ",e.indent)+Sn((t.line+1).toString(),h)+" | "+c.str+`
75
+ `,a+=ft.repeat("-",e.indent+h+3+c.pos)+`^
76
+ `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=vn(t.buffer,r[o+l],n[o+l],t.position-(r[o]-r[o+l]),f),a+=ft.repeat(" ",e.indent)+Sn((t.line+l+1).toString(),h)+" | "+c.str+`
77
+ `;return a.replace(/\n$/,"")}var px=dx,gx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],mx=["scalar","sequence","mapping"];function yx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function _x(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(gx.indexOf(i)===-1)throw new Jt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=yx(e.styleAliases||null),mx.indexOf(this.kind)===-1)throw new Jt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=_x;function aa(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(n=o)}),i[n]=r}),i}function Cx(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function Qn(t){return this.extend(t)}Qn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Jt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Jt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Jt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Qn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=aa(n,"implicit"),n.compiledExplicit=aa(n,"explicit"),n.compiledTypeMap=Cx(n.compiledImplicit,n.compiledExplicit),n};var xx=Qn,bx=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Tx=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),vx=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Sx=new xx({explicit:[bx,Tx,vx]});function kx(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function wx(){return null}function Ax(t){return t===null}var Bx=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:kx,construct:wx,predicate:Ax,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ex(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Lx(t){return t==="true"||t==="True"||t==="TRUE"}function Fx(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Ox=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ex,construct:Lx,predicate:Fx,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ix(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Mx(t){return 48<=t&&t<=55}function $x(t){return 48<=t&&t<=57}function Dx(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Ix(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Mx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!$x(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function Nx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Px(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ft.isNegativeZero(t)}var Rx=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:Dx,construct:Nx,predicate:Px,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zx(t){return!(t===null||!qx.test(t)||t[t.length-1]==="_")}function Wx(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Yx=/^[-+]?[0-9]+e/;function Hx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ft.isNegativeZero(t))return"-0.0";return i=t.toString(10),Yx.test(i)?i.replace("e",".e"):i}function jx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ft.isNegativeZero(t))}var Ux=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:zx,construct:Wx,predicate:jx,represent:Hx,defaultStyle:"lowercase"}),rh=Sx.extend({implicit:[Bx,Ox,Rx,Ux]}),Xx=rh,nh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),oh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Gx(t){return t===null?!1:nh.exec(t)!==null||oh.exec(t)!==null}function Vx(t){var e,i,r,n,s,o,a,l=0,c=null,h,f,u;if(e=nh.exec(t),e===null&&(e=oh.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],f=+(e[11]||0),c=(h*60+f)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(i,r,n,s,o,a,l)),c&&u.setTime(u.getTime()-c),u}function Kx(t){return t.toISOString()}var Zx=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Gx,construct:Vx,instanceOf:Date,represent:Kx});function Jx(t){return t==="<<"||t===null}var Qx=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Jx}),Oo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
78
+ \r`;function tb(t){if(t===null)return!1;var e,i,r=0,n=t.length,s=Oo;for(i=0;i<n;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function eb(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,s=Oo,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):i===18?(a.push(o>>10&255),a.push(o>>2&255)):i===12&&a.push(o>>4&255),new Uint8Array(a)}function ib(t){var e="",i=0,r,n,s=t.length,o=Oo;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]),i=(i<<8)+t[r];return n=s%3,n===0?(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]):n===2?(e+=o[i>>10&63],e+=o[i>>4&63],e+=o[i<<2&63],e+=o[64]):n===1&&(e+=o[i>>2&63],e+=o[i<<4&63],e+=o[64],e+=o[64]),e}function rb(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var nb=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tb,construct:eb,predicate:rb,represent:ib}),ob=Object.prototype.hasOwnProperty,sb=Object.prototype.toString;function ab(t){if(t===null)return!0;var e=[],i,r,n,s,o,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],o=!1,sb.call(n)!=="[object Object]")return!1;for(s in n)if(ob.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function lb(t){return t!==null?t:[]}var cb=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ab,construct:lb}),hb=Object.prototype.toString;function ub(t){if(t===null)return!0;var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(r=o[e],hb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;s[e]=[n[0],r[n[0]]]}return!0}function fb(t){if(t===null)return[];var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)r=o[e],n=Object.keys(r),s[e]=[n[0],r[n[0]]];return s}var db=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ub,construct:fb}),pb=Object.prototype.hasOwnProperty;function gb(t){if(t===null)return!0;var e,i=t;for(e in i)if(pb.call(i,e)&&i[e]!==null)return!1;return!0}function mb(t){return t!==null?t:{}}var yb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:gb,construct:mb}),_b=Xx.extend({implicit:[Zx,Qx],explicit:[nb,cb,db,yb]}),ue=Object.prototype.hasOwnProperty,Ar=1,sh=2,ah=3,Br=4,kn=1,Cb=2,la=3,xb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bb=/[\x85\u2028\u2029]/,Tb=/[,\[\]\{\}]/,lh=/^(?:!|!!|![a-z\-]+!)$/i,ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ca(t){return Object.prototype.toString.call(t)}function Wt(t){return t===10||t===13}function xe(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Me(t){return t===44||t===91||t===93||t===123||t===125}function vb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Sb(t){return t===120?2:t===117?4:t===85?8:0}function kb(t){return 48<=t&&t<=57?t-48:-1}function ha(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
79
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function wb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var hh=new Array(256),uh=new Array(256);for(var Oe=0;Oe<256;Oe++)hh[Oe]=ha(Oe)?1:0,uh[Oe]=ha(Oe);function Ab(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||_b,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function fh(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=px(i),new Jt(e,i)}function I(t,e){throw fh(t,e)}function Er(t,e){t.onWarning&&t.onWarning.call(null,fh(t,e))}var ua={YAML:function(e,i,r){var n,s,o;e.version!==null&&I(e,"duplication of %YAML directive"),r.length!==1&&I(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&I(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&I(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Er(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,s;r.length!==2&&I(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],lh.test(n)||I(e,"ill-formed tag handle (first argument) of the TAG directive"),ue.call(e.tagMap,n)&&I(e,'there is a previously declared suffix for "'+n+'" tag handle'),ch.test(s)||I(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{I(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function ce(t,e,i,r){var n,s,o,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||I(t,"expected valid JSON character");else xb.test(a)&&I(t,"the stream contains non-printable characters");t.result+=a}}function fa(t,e,i,r){var n,s,o,a;for(ft.isObject(i)||I(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,a=n.length;o<a;o+=1)s=n[o],ue.call(e,s)||(e[s]=i[s],r[s]=!0)}function $e(t,e,i,r,n,s,o,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&I(t,"nested arrays are not supported inside keys"),typeof n=="object"&&ca(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&ca(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)fa(t,e,s[c],i);else fa(t,e,s,i);else!t.json&&!ue.call(i,n)&&ue.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,I(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete i[n];return e}function Io(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):I(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function J(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;xe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Wt(n))for(Io(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Er(t,"deficient indentation"),r}function rn(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function Mo(t,e){e===1?t.result+=" ":e>1&&(t.result+=ft.repeat(`
80
+ `,e-1))}function Bb(t,e,i){var r,n,s,o,a,l,c,h,f=t.kind,u=t.result,d;if(d=t.input.charCodeAt(t.position),_t(d)||Me(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Me(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Me(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&rn(t)||i&&Me(d))break;if(Wt(d))if(l=t.line,c=t.lineStart,h=t.lineIndent,J(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(ce(t,s,o,!1),Mo(t,t.line-l),s=o=t.position,a=!1),xe(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return ce(t,s,o,!1),t.result?!0:(t.kind=f,t.result=u,!1)}function Eb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(ce(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Wt(i)?(ce(t,r,n,!0),Mo(t,J(t,!1,e)),r=n=t.position):t.position===t.lineStart&&rn(t)?I(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);I(t,"unexpected end of the stream within a single quoted scalar")}function Lb(t,e){var i,r,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ce(t,i,t.position,!0),t.position++,!0;if(a===92){if(ce(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Wt(a))J(t,!1,e);else if(a<256&&hh[a])t.result+=uh[a],t.position++;else if((o=Sb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=vb(a))>=0?s=(s<<4)+o:I(t,"expected hexadecimal character");t.result+=wb(s),t.position++}else I(t,"unknown escape sequence");i=r=t.position}else Wt(a)?(ce(t,i,r,!0),Mo(t,J(t,!1,e)),i=r=t.position):t.position===t.lineStart&&rn(t)?I(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}I(t,"unexpected end of the stream within a double quoted scalar")}function Fb(t,e){var i=!0,r,n,s,o=t.tag,a,l=t.anchor,c,h,f,u,d,m=Object.create(null),y,_,L,x;if(x=t.input.charCodeAt(t.position),x===91)h=93,d=!1,a=[];else if(x===123)h=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),x=t.input.charCodeAt(++t.position);x!==0;){if(J(t,!0,e),x=t.input.charCodeAt(t.position),x===h)return t.position++,t.tag=o,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?x===44&&I(t,"expected the node content, but found ','"):I(t,"missed comma between flow collection entries"),_=y=L=null,f=u=!1,x===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(f=u=!0,t.position++,J(t,!0,e))),r=t.line,n=t.lineStart,s=t.position,Je(t,e,Ar,!1,!0),_=t.tag,y=t.result,J(t,!0,e),x=t.input.charCodeAt(t.position),(u||t.line===r)&&x===58&&(f=!0,x=t.input.charCodeAt(++t.position),J(t,!0,e),Je(t,e,Ar,!1,!0),L=t.result),d?$e(t,a,m,_,y,L,r,n,s):f?a.push($e(t,null,m,_,y,L,r,n,s)):a.push(y),J(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(i=!0,x=t.input.charCodeAt(++t.position)):i=!1}I(t,"unexpected end of the stream within a flow collection")}function Ob(t,e){var i,r,n=kn,s=!1,o=!1,a=e,l=0,c=!1,h,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)kn===n?n=f===43?la:Cb:I(t,"repeat of a chomping mode identifier");else if((h=kb(f))>=0)h===0?I(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?I(t,"repeat of an indentation width identifier"):(a=e+h-1,o=!0);else break;if(xe(f)){do f=t.input.charCodeAt(++t.position);while(xe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Wt(f)&&f!==0)}for(;f!==0;){for(Io(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Wt(f)){l++;continue}if(t.lineIndent<a){n===la?t.result+=ft.repeat(`
81
81
  `,s?1+l:l):n===kn&&s&&(t.result+=`
82
- `);break}for(r?xe(d)?(c=!0,t.result+=dt.repeat(`
83
- `,s?1+l:l)):c?(c=!1,t.result+=dt.repeat(`
84
- `,l+1)):l===0?s&&(t.result+=" "):t.result+=dt.repeat(`
85
- `,l):t.result+=dt.repeat(`
86
- `,s?1+l:l),s=!0,o=!0,l=0,i=t.position;!zt(d)&&d!==0;)d=t.input.charCodeAt(++t.position);le(t,i,t.position,!1)}return!0}function fa(t,e){var i,r=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!_t(o))));){if(a=!0,t.position++,J(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ke(t,e,ah,!1,!0),s.push(t.result),J(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)I(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Ob(t,e,i){var r,n,s,o,a,l,c=t.tag,u=t.anchor,d={},h=Object.create(null),f=null,m=null,y=null,_=!1,L=!1,x;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),x=t.input.charCodeAt(t.position);x!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(x===63||x===58)&&_t(r))x===63?(_&&($e(t,d,h,f,m,null,o,a,l),f=m=y=null),L=!0,_=!0,n=!0):_?(_=!1,n=!0):I(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=r;else{if(o=t.line,a=t.lineStart,l=t.position,!Ke(t,i,sh,!1,!0))break;if(t.line===s){for(x=t.input.charCodeAt(t.position);xe(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),_t(x)||I(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&($e(t,d,h,f,m,null,o,a,l),f=m=y=null),L=!0,_=!1,n=!1,f=t.tag,m=t.result;else if(L)I(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(L)I(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),Ke(t,e,Ar,!0,n)&&(_?m=t.result:y=t.result),_||($e(t,d,h,f,m,y,o,a,l),f=m=y=null),J(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&x!==0)I(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&$e(t,d,h,f,m,null,o,a,l),L&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=d),L}function Ib(t){var e,i=!1,r=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&I(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(i=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):I(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!_t(o);)o===33&&(r?I(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),lh.test(n)||I(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),bb.test(s)&&I(t,"tag suffix cannot contain flow indicator characters")}s&&!ch.test(s)&&I(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{I(t,"tag name is malformed: "+s)}return i?t.tag=s:he.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:I(t,'undeclared tag handle "'+n+'"'),!0}function Mb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&I(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Me(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function $b(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!Me(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),he.call(t.anchorMap,i)||I(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],J(t,!0,-1),!0}function Ke(t,e,i,r,n){var s,o,a,l=1,c=!1,u=!1,d,h,f,m,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Ar===i||ah===i,r&&J(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Ib(t)||Mb(t);)J(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Ar===i)&&(vr===i||sh===i?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(fa(t,_)||Ob(t,_,y))||Lb(t,y)?u=!0:(o&&Fb(t,y)||Bb(t,y)||Eb(t,y)?u=!0:$b(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&I(t,"alias node should not have any properties")):Ab(t,y,vr===i)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&fa(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&I(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,h=t.implicitTypes.length;d<h;d+=1)if(m=t.implicitTypes[d],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(he.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,f=t.typeMap.multi[t.kind||"fallback"],d=0,h=f.length;d<h;d+=1)if(t.tag.slice(0,f[d].tag.length)===f[d].tag){m=f[d];break}m||I(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&I(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):I(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Db(t){var e=t.position,i,r,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(J(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&I(t,"directive name must not be less than one character in length");o!==0;){for(;xe(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!zt(o));break}if(zt(o))break;for(i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}o!==0&&Io(t),he.call(ua,r)?ua[r](t,r,n):Br(t,'unknown document directive "'+r+'"')}if(J(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,J(t,!0,-1)):s&&I(t,"directives end mark is expected"),Ke(t,t.lineIndent-1,Ar,!1,!0),J(t,!0,-1),t.checkLineBreaks&&xb.test(t.input.slice(e,t.position))&&Br(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&en(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,J(t,!0,-1));return}if(t.position<t.length-1)I(t,"end of the stream or a document separator is expected");else return}function Nb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
87
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new vb(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,I(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Db(i);return i.documents}function Pb(t,e){var i=Nb(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Jt("expected a single document in the stream, but found more")}}var Rb=Pb,qb={load:Rb},zb=rh,Wb=qb.load;function Yb(t){const e=t.match(tc);if(!e)return{text:t,metadata:{}};let i=Wb(e[1],{schema:zb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Hb=t=>t.replace(/\r\n?/g,`
88
- `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),jb=t=>{const{text:e,metadata:i}=Yb(t),{displayMode:r,title:n,config:s={}}=i;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:n,config:s,text:e}},Ub=t=>{const e=Re.detectInit(t)??{},i=Re.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:I0(t),directive:e}};function fh(t){const e=Hb(t),i=jb(e),r=Ub(i.text),n=ko(i.config,r.directive);return t=tx(r.text),{code:t,title:i.title,config:n}}const Xb=5e4,Gb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Vb="sandbox",Kb="loose",Zb="http://www.w3.org/2000/svg",Jb="http://www.w3.org/1999/xlink",Qb="http://www.w3.org/1999/xhtml",t1="100%",e1="100%",i1="border:0;margin:0;",r1="margin:0",n1="allow-top-navigation-by-user-activation allow-popups",o1='The "iframe" tag is not supported by your browser.',s1=["foreignobject"],a1=["dominant-baseline"];function ph(t){const e=fh(t);return Sr(),J0(e.config??{}),e}async function l1(t,e){Fo(),t=ph(t).code;try{await $o(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const pa=(t,e,i=[])=>`
89
- .${t} ${e} { ${i.join(" !important; ")} !important; }`,c1=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
82
+ `);break}for(r?xe(f)?(c=!0,t.result+=ft.repeat(`
83
+ `,s?1+l:l)):c?(c=!1,t.result+=ft.repeat(`
84
+ `,l+1)):l===0?s&&(t.result+=" "):t.result+=ft.repeat(`
85
+ `,l):t.result+=ft.repeat(`
86
+ `,s?1+l:l),s=!0,o=!0,l=0,i=t.position;!Wt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);ce(t,i,t.position,!1)}return!0}function da(t,e){var i,r=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!_t(o))));){if(a=!0,t.position++,J(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Je(t,e,ah,!1,!0),s.push(t.result),J(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)I(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Ib(t,e,i){var r,n,s,o,a,l,c=t.tag,h=t.anchor,f={},u=Object.create(null),d=null,m=null,y=null,_=!1,L=!1,x;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),x=t.input.charCodeAt(t.position);x!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(x===63||x===58)&&_t(r))x===63?(_&&($e(t,f,u,d,m,null,o,a,l),d=m=y=null),L=!0,_=!0,n=!0):_?(_=!1,n=!0):I(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=r;else{if(o=t.line,a=t.lineStart,l=t.position,!Je(t,i,sh,!1,!0))break;if(t.line===s){for(x=t.input.charCodeAt(t.position);xe(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),_t(x)||I(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&($e(t,f,u,d,m,null,o,a,l),d=m=y=null),L=!0,_=!1,n=!1,d=t.tag,m=t.result;else if(L)I(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(L)I(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),Je(t,e,Br,!0,n)&&(_?m=t.result:y=t.result),_||($e(t,f,u,d,m,y,o,a,l),d=m=y=null),J(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&x!==0)I(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&$e(t,f,u,d,m,null,o,a,l),L&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=f),L}function Mb(t){var e,i=!1,r=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&I(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(i=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):I(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!_t(o);)o===33&&(r?I(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),lh.test(n)||I(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Tb.test(s)&&I(t,"tag suffix cannot contain flow indicator characters")}s&&!ch.test(s)&&I(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{I(t,"tag name is malformed: "+s)}return i?t.tag=s:ue.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:I(t,'undeclared tag handle "'+n+'"'),!0}function $b(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&I(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Me(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Db(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!Me(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),ue.call(t.anchorMap,i)||I(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],J(t,!0,-1),!0}function Je(t,e,i,r,n){var s,o,a,l=1,c=!1,h=!1,f,u,d,m,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Br===i||ah===i,r&&J(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Mb(t)||$b(t);)J(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Br===i)&&(Ar===i||sh===i?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(da(t,_)||Ib(t,_,y))||Fb(t,y)?h=!0:(o&&Ob(t,y)||Eb(t,y)||Lb(t,y)?h=!0:Db(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&I(t,"alias node should not have any properties")):Bb(t,y,Ar===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&da(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&I(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,u=t.implicitTypes.length;f<u;f+=1)if(m=t.implicitTypes[f],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(ue.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,d=t.typeMap.multi[t.kind||"fallback"],f=0,u=d.length;f<u;f+=1)if(t.tag.slice(0,d[f].tag.length)===d[f].tag){m=d[f];break}m||I(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&I(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):I(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function Nb(t){var e=t.position,i,r,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(J(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&I(t,"directive name must not be less than one character in length");o!==0;){for(;xe(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Wt(o));break}if(Wt(o))break;for(i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}o!==0&&Io(t),ue.call(ua,r)?ua[r](t,r,n):Er(t,'unknown document directive "'+r+'"')}if(J(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,J(t,!0,-1)):s&&I(t,"directives end mark is expected"),Je(t,t.lineIndent-1,Br,!1,!0),J(t,!0,-1),t.checkLineBreaks&&bb.test(t.input.slice(e,t.position))&&Er(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&rn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,J(t,!0,-1));return}if(t.position<t.length-1)I(t,"end of the stream or a document separator is expected");else return}function Pb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
87
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Ab(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,I(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Nb(i);return i.documents}function Rb(t,e){var i=Pb(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Jt("expected a single document in the stream, but found more")}}var qb=Rb,zb={load:qb},Wb=rh,Yb=zb.load;function Hb(t){const e=t.match(tc);if(!e)return{text:t,metadata:{}};let i=Yb(e[1],{schema:Wb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const jb=t=>t.replace(/\r\n?/g,`
88
+ `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Ub=t=>{const{text:e,metadata:i}=Hb(t),{displayMode:r,title:n,config:s={}}=i;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:n,config:s,text:e}},Xb=t=>{const e=qe.detectInit(t)??{},i=qe.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:My(t),directive:e}};function dh(t){const e=jb(t),i=Ub(e),r=Xb(i.text),n=So(i.config,r.directive);return t=ex(r.text),{code:t,title:i.title,config:n}}const Gb=5e4,Vb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Kb="sandbox",Zb="loose",Jb="http://www.w3.org/2000/svg",Qb="http://www.w3.org/1999/xlink",t1="http://www.w3.org/1999/xhtml",e1="100%",i1="100%",r1="border:0;margin:0;",n1="margin:0",o1="allow-top-navigation-by-user-activation allow-popups",s1='The "iframe" tag is not supported by your browser.',a1=["foreignobject"],l1=["dominant-baseline"];function ph(t){const e=dh(t);return Sr(),Qy(e.config??{}),e}async function c1(t,e){Fo(),t=ph(t).code;try{await $o(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const pa=(t,e,i=[])=>`
89
+ .${t} ${e} { ${i.join(" !important; ")} !important; }`,h1=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
90
90
  ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
91
91
  :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
92
- :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!bn(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];bn(c.styles)||a.forEach(u=>{r+=pa(c.id,u,c.styles)}),bn(c.textStyles)||(r+=pa(c.id,"tspan",c.textStyles))}}return r},h1=(t,e,i,r)=>{const n=c1(t,i),s=yC(e,n,t.themeVariables);return Hn(zy(`${r}{${s}}`),Yy)},u1=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=pc(r),r=r.replace(/<br>/g,"<br/>"),r},d1=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":e1,s=btoa('<body style="'+r1+'">'+t+"</body>");return`<iframe style="width:${t1};height:${n};${i1}" src="data:text/html;base64,${s}" sandbox="${n1}">
93
- ${o1}
94
- </iframe>`},ga=(t,e,i,r,n)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Zb);return n&&o.attr("xmlns:xlink",n),o.append("g"),t};function ma(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const f1=(t,e,i,r)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(i))==null||s.remove(),(o=t.getElementById(r))==null||o.remove()},p1=async function(t,e,i){var r,n,s,o,a,l;Fo();const c=ph(e);e=c.code;const u=$t();M.debug(u),e.length>((u==null?void 0:u.maxTextSize)??Xb)&&(e=Gb);const d="#"+t,h="i"+t,f="#"+h,m="d"+t,y="#"+m;let _=xt("body");const L=u.securityLevel===Vb,x=u.securityLevel===Kb,N=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){const $=ma(xt(i),h);_=xt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=xt(i);ga(_,t,m,`font-family: ${N}`,Jb)}else{if(f1(document,t,m,h),L){const $=ma(xt("body"),h);_=xt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=xt("body");ga(_,t,m)}let C,k;try{C=await $o(e,{title:c.title})}catch($){C=new th("error"),k=$}const U=_.select(y).node(),R=C.type,Q=U.firstChild,rt=Q.firstChild,Y=(n=(r=C.renderer).getClasses)==null?void 0:n.call(r,e,C),B=h1(u,R,Y,d),tt=document.createElement("style");tt.innerHTML=B,Q.insertBefore(tt,rt);try{await C.renderer.draw(e,t,ra,C)}catch($){throw vC.draw(e,t,ra),$}const re=_.select(`${y} svg`),P=(o=(s=C.db).getAccTitle)==null?void 0:o.call(s),v=(l=(a=C.db).getAccDescription)==null?void 0:l.call(a);m1(R,re,P,v),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Qb);let T=_.select(y).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),T=u1(T,L,bo(u.arrowMarkerAbsolute)),L){const $=_.select(y+" svg").node();T=d1(T,$)}else x||(T=He.sanitize(T,{ADD_TAGS:s1,ADD_ATTR:a1}));if(KC(),k)throw k;const w=xt(L?f:y).node();return w&&"remove"in w&&w.remove(),{svg:T,bindFunctions:C.db.bindFunctions}};function g1(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),K0(t),t!=null&&t.theme&&t.theme in te?t.themeVariables=te[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=te.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?V0(t):mc();xo(i.logLevel),Fo()}const $o=(t,e={})=>{const{code:i}=fh(t);return VC(i,e)};function m1(t,e,i,r){JC(e,t),QC(e,i,r,e.attr("id"))}const Se=Object.freeze({render:p1,parse:l1,getDiagramFromText:$o,initialize:g1,getConfig:$t,setConfig:yc,getSiteConfig:mc,updateSiteConfig:Z0,reset:()=>{Sr()},globalReset:()=>{Sr(Ge)},defaultConfig:Ge});xo($t().logLevel);Sr($t());const y1=async()=>{M.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Xe).map(async([i,{detector:r,loader:n}])=>{if(n)try{Lo(i)}catch{try{const{diagram:o,id:a}=await n();wr(a,o,r)}catch(o){throw M.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Xe[i],o}}}))).filter(i=>i.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(const i of e)M.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},_1=(t,e,i)=>{M.warn(t),fc(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},gh=async function(t={querySelector:".mermaid"}){try{await C1(t)}catch(e){if(fc(e)&&M.error(e.str),bt.parseError&&bt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}},C1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Se.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(M.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Se.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const s=new Re.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){M.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=Ta(Re.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Re.detectInit(o);u&&M.debug("Detected early reinit: ",u);try{const{svg:d,bindFunctions:h}=await Ch(c,o,l);l.innerHTML=d,t&&await t(c),h&&h(l)}catch(d){_1(d,a,bt.parseError)}}if(a.length>0)throw a[0]},mh=function(t){Se.initialize(t)},x1=async function(t,e,i){M.warn("mermaid.init is deprecated. Please use run instead."),t&&mh(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await gh(r)},b1=async(t,{lazyLoad:e=!0}={})=>{ic(...t),e===!1&&await y1()},yh=function(){if(bt.startOnLoad){const{startOnLoad:t}=Se.getConfig();t&&bt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
92
+ :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Tn(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Tn(c.styles)||a.forEach(h=>{r+=pa(c.id,h,c.styles)}),Tn(c.textStyles)||(r+=pa(c.id,"tspan",c.textStyles))}}return r},u1=(t,e,i,r)=>{const n=h1(t,i),s=_C(e,n,t.themeVariables);return Hn(W0(`${r}{${s}}`),H0)},f1=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=pc(r),r=r.replace(/<br>/g,"<br/>"),r},d1=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":i1,s=btoa('<body style="'+n1+'">'+t+"</body>");return`<iframe style="width:${e1};height:${n};${r1}" src="data:text/html;base64,${s}" sandbox="${o1}">
93
+ ${s1}
94
+ </iframe>`},ga=(t,e,i,r,n)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Jb);return n&&o.attr("xmlns:xlink",n),o.append("g"),t};function ma(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const p1=(t,e,i,r)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(i))==null||s.remove(),(o=t.getElementById(r))==null||o.remove()},g1=async function(t,e,i){var r,n,s,o,a,l;Fo();const c=ph(e);e=c.code;const h=$t();M.debug(h),e.length>((h==null?void 0:h.maxTextSize)??Gb)&&(e=Vb);const f="#"+t,u="i"+t,d="#"+u,m="d"+t,y="#"+m;let _=xt("body");const L=h.securityLevel===Kb,x=h.securityLevel===Zb,P=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){const $=ma(xt(i),u);_=xt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=xt(i);ga(_,t,m,`font-family: ${P}`,Qb)}else{if(p1(document,t,m,u),L){const $=ma(xt("body"),u);_=xt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=xt("body");ga(_,t,m)}let C,S;try{C=await $o(e,{title:c.title})}catch($){C=new th("error"),S=$}const U=_.select(y).node(),N=C.type,Q=U.firstChild,rt=Q.firstChild,Y=(n=(r=C.renderer).getClasses)==null?void 0:n.call(r,e,C),B=u1(h,N,Y,f),tt=document.createElement("style");tt.innerHTML=B,Q.insertBefore(tt,rt);try{await C.renderer.draw(e,t,ra,C)}catch($){throw AC.draw(e,t,ra),$}const re=_.select(`${y} svg`),R=(o=(s=C.db).getAccTitle)==null?void 0:o.call(s),w=(l=(a=C.db).getAccDescription)==null?void 0:l.call(a);y1(N,re,R,w),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",t1);let T=_.select(y).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),T=f1(T,L,bo(h.arrowMarkerAbsolute)),L){const $=_.select(y+" svg").node();T=d1(T,$)}else x||(T=je.sanitize(T,{ADD_TAGS:a1,ADD_ATTR:l1}));if(ZC(),S)throw S;const k=xt(L?d:y).node();return k&&"remove"in k&&k.remove(),{svg:T,bindFunctions:C.db.bindFunctions}};function m1(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Zy(t),t!=null&&t.theme&&t.theme in te?t.themeVariables=te[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=te.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?Ky(t):mc();xo(i.logLevel),Fo()}const $o=(t,e={})=>{const{code:i}=dh(t);return KC(i,e)};function y1(t,e,i,r){QC(e,t),tx(e,i,r,e.attr("id"))}const ve=Object.freeze({render:g1,parse:c1,getDiagramFromText:$o,initialize:m1,getConfig:$t,setConfig:yc,getSiteConfig:mc,updateSiteConfig:Jy,reset:()=>{Sr()},globalReset:()=>{Sr(Ke)},defaultConfig:Ke});xo($t().logLevel);Sr($t());const _1=async()=>{M.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ve).map(async([i,{detector:r,loader:n}])=>{if(n)try{Lo(i)}catch{try{const{diagram:o,id:a}=await n();wr(a,o,r)}catch(o){throw M.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Ve[i],o}}}))).filter(i=>i.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(const i of e)M.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},C1=(t,e,i)=>{M.warn(t),dc(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},gh=async function(t={querySelector:".mermaid"}){try{await x1(t)}catch(e){if(dc(e)&&M.error(e.str),bt.parseError&&bt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}},x1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=ve.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(M.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),ve.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const s=new qe.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){M.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=Ta(qe.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=qe.detectInit(o);h&&M.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:u}=await Ch(c,o,l);l.innerHTML=f,t&&await t(c),u&&u(l)}catch(f){C1(f,a,bt.parseError)}}if(a.length>0)throw a[0]},mh=function(t){ve.initialize(t)},b1=async function(t,e,i){M.warn("mermaid.init is deprecated. Please use run instead."),t&&mh(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await gh(r)},T1=async(t,{lazyLoad:e=!0}={})=>{ic(...t),e===!1&&await _1()},yh=function(){if(bt.startOnLoad){const{startOnLoad:t}=ve.getConfig();t&&bt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
95
95
  * Wait for document loaded before starting the execution
96
- */window.addEventListener("load",yh,!1)}const T1=function(t){bt.parseError=t},Er=[];let wn=!1;const _h=async()=>{if(!wn){for(wn=!0;Er.length>0;){const t=Er.shift();if(t)try{await t()}catch(e){M.error("Error executing queue",e)}}wn=!1}},S1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((s,o)=>{Se.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;M.error("Error parsing",a),(l=bt.parseError)==null||l.call(bt,a),o(a),r(a)})});Er.push(n),_h().catch(r)}),Ch=(t,e,i)=>new Promise((r,n)=>{const s=()=>new Promise((o,a)=>{Se.render(t,e,i).then(l=>{o(l),r(l)},l=>{var c;M.error("Error parsing",l),(c=bt.parseError)==null||c.call(bt,l),a(l),n(l)})});Er.push(s),_h().catch(n)}),bt={startOnLoad:!0,mermaidAPI:Se,parse:S1,render:Ch,init:x1,run:gh,registerExternalDiagrams:b1,initialize:mh,parseError:void 0,contentLoaded:yh,setParseErrorHandler:T1,detectType:Zr},ri=t=>{t=w1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},qe=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},k1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},w1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},xh=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),o=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const u=c[c.length-1];return Math.hypot(u.x-a.x,u.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},v1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=Do(r,e),s=r.getBBox(),o={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...o,text:ri(t.title)}},A1=(t,e)=>{var d,h,f;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((d=i.parentElement)==null?void 0:d.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=Do(r?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},a=(h=i.querySelector(".label-container"))==null?void 0:h.getAttribute("style"),l=(f=i.querySelector(".label"))==null?void 0:f.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();c[y]=_});const u={};return l==null||l.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();u[y]=_}),{id:t.id,labelType:t.labelType,text:ri(t.text),type:t.type,link:r||void 0,...n,...o,containerStyle:c,labelStyle:u}},B1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=Do(r,i),s=xh(r,n);return t.length=void 0,{...t,...s,text:ri(t.text)}},Do=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:u}=qe(r),d=r.getBBox();n={x:Number(r.getAttribute("x"))||c+d.x||0,y:Number(r.getAttribute("y"))||u+d.y||0}}const{transformX:s,transformY:o}=qe(t),a={x:s+n.x,y:o+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:u}=qe(i);a.x+=c,a.y+=u}i=i.parentElement}return a},E1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=A1(r[a],e)});const n=new Map,s=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),B1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>v1(a,e)),vertices:r,edges:s}},L1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:ri(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const s=n.split(/(?=[LC])/),o=s[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];s.forEach(c=>{const u=c.substring(1).trim().split(" ").map(d=>{const[h,f]=d.split(",");return[parseFloat(h)-o[0],parseFloat(f)-o[1]]});a.push(...u)});const l=a[a.length-1];i.startX=o[0],i.startY=o[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i},bh=(t,e,i,r,n)=>{const s={};return s.type="arrow",s.startX=t,s.startY=e,s.endX=i,s.endY=r,Object.assign(s,{...n}),s},to=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Lr,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),Th=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),s=Number(t.getAttribute("y"));r.type="text",r.text=ri(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const o=t.getBBox();r.width=o.width,r.height=o.height,r.x=n-o.width/2,r.y=s;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Wt=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:s,id:o,groupId:a}=i;r.id=o,a&&(r.groupId=a),n&&(r.label={text:ri(n.text),fontSize:16,verticalAlign:n==null?void 0:n.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=s,s){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Di=(t,e,i,r,n,s)=>{const o={};return o.startX=e,o.startY=i,o.endX=r,s!=null&&s.groupId&&(o.groupId=s.groupId),s!=null&&s.id&&(o.id=s.id),o.endY=n,o.strokeColor=t.getAttribute("stroke"),o.strokeWidth=Number(t.getAttribute("stroke-width")),o.type="line",o},ya={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Rt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},F1=t=>{let e;switch(t){case Rt.SOLID:case Rt.SOLID_CROSS:case Rt.SOLID_OPEN:case Rt.SOLID_POINT:e="solid";break;case Rt.DOTTED:case Rt.DOTTED_CROSS:case Rt.DOTTED_OPEN:case Rt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},O1=(t,e)=>{var r,n;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const s=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!s)throw new Error("sequence number not present");const o=30,a=o/2,c={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:s,fontSize:14},bgColor:"#e9ecef",height:o,subtype:"sequence"};Object.assign(e,{sequenceNumber:c})}},_a=(t,e,i)=>{if(!t)throw"root node not found";const r=Qt(),n=Array.from(t.children),s=[];return n.forEach((o,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let c;switch(o.tagName){case"line":const u=Number(o.getAttribute("x1")),d=Number(o.getAttribute("y1")),h=Number(o.getAttribute("x2")),f=Number(o.getAttribute("y2"));c=Di(o,u,d,h,f,{groupId:r,id:l});break;case"text":c=Th(o,e,{groupId:r,id:l});break;case"circle":c=Wt(o,"ellipse",{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l});default:c=Wt(o,Ih[o.tagName],{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l})}s.push(c)}),s},I1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],s=[];return Object.values(t).forEach((o,a)=>{var d;const l=i.find(h=>h.getAttribute("name")===o.name),c=r.find(h=>h.getAttribute("name")===o.name);if(!l||!c)throw"root not found";const u=o.description;if(o.type==="participant"){const h=Wt(l,"rectangle",{id:`${o.name}-top`,label:{text:u},subtype:"actor"});if(!h)throw"Top Node element not found!";n.push([h]);const f=Wt(c,"rectangle",{id:`${o.name}-bottom`,label:{text:u},subtype:"actor"});n.push([f]);const m=(d=l==null?void 0:l.parentElement)==null?void 0:d.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1"));if(!h.height)throw"Top node element height is null";const _=h.y+h.height,L=f.y,x=Number(m.getAttribute("x2")),N=Di(m,y,_,x,L);s.push(N)}else if(o.type==="actor"){const h=_a(l,u,{id:`${o.name}-top`});n.push(h);const f=_a(c,u,{id:`${o.name}-bottom`});n.push(f);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1")),_=Number(m.getAttribute("y1")),L=Number(m.getAttribute("x2")),x=f.find(N=>N.type==="ellipse");if(x){const N=x.y,C=Di(m,y,_,L,N);s.push(C)}}}),{nodes:n,lines:s}},M1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(ya),s=t.filter(o=>n.includes(o.type.toString()));return r.forEach((o,a)=>{const l=s[a],c=ya[l.type],u=L1(o,{label:l==null?void 0:l.message,strokeStyle:F1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});O1(o,u),i.push(u)}),i},$1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(s=>s.parentElement),r=t.filter(s=>s.type===Rt.NOTE),n=[];return i.forEach((s,o)=>{if(!s)return;const a=s.firstChild,l=r[o].message,c=Wt(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},D1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Wt(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},N1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],s=[];i.forEach(u=>{const d=Number(u.getAttribute("x1")),h=Number(u.getAttribute("y1")),f=Number(u.getAttribute("x2")),m=Number(u.getAttribute("y2")),y=Di(u,d,h,f,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const o=Array.from(e.querySelectorAll(".loopText")),a=t.filter(u=>u.type===Rt.CRITICAL_START).map(u=>u.message);o.forEach(u=>{var y;const d=u.textContent||"",h=Th(u,d),f=((y=d.match(/\[(.*?)\]/))==null?void 0:y[1])||"";a.includes(f)&&(h.x+=16),n.push(h)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),c=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((u,d)=>{var m;const h=((m=c[d])==null?void 0:m.textContent)||"",f=Wt(u,"rectangle",{label:{text:h}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,s.push(f)}),{lines:r,texts:n,nodes:s}},P1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var n;return((n=r.parentElement)==null?void 0:n.tagName)!=="g"}),i=[];return e.forEach(r=>{const n=Wt(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},R1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),s=P1(e),o=i.getActors(),{nodes:a,lines:l}=I1(o,e),c=i.getMessages(),u=M1(c,e),d=$1(c,e),h=D1(e),f=N1(c,e);return r.push(s),r.push(...a),r.push(d),r.push(h),{type:"sequence",lines:l,arrows:u,nodes:r,loops:f,groups:n}},Qi={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Ca={LINE:0,DOTTED_LINE:1},se=16,q1=t=>{let e;switch(t){case Ca.LINE:e="solid";break;case Ca.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},xa=t=>{let e;switch(t){case Qi.AGGREGATION:e="diamond_outline";break;case Qi.COMPOSITION:e="diamond";break;case Qi.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case Qi.DEPENDENCY:default:e="arrow";break}return e},z1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(s=>{var y;const{domId:o,id:a}=s,l=Qt(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${o} not found`);const{transformX:u,transformY:d}=qe(c),h=Wt(c.firstChild,"rectangle",{id:a,groupId:l});h.x+=u,h.y+=d,h.metadata={classId:a},i.push(h),Array.from(c.querySelectorAll(".divider")).forEach(_=>{const L=Number(_.getAttribute("x1")),x=Number(_.getAttribute("y1")),N=Number(_.getAttribute("x2")),C=Number(_.getAttribute("y2")),k=Di(_,L,x,N,C,{groupId:l,id:Qt()});k.startX+=u,k.startY+=d,k.endX+=u,k.endY+=d,k.metadata={classId:a},r.push(k)});const m=(y=c.querySelector(".label"))==null?void 0:y.children;if(!m)throw"label nodes not found";Array.from(m).forEach(_=>{const L=_.textContent;if(!L)return;const x=Qt(),{transformX:N,transformY:C}=qe(_),k=_.getBBox(),R=to(u+N,d+C+10,L,{width:k.width,height:k.height,id:x,groupId:l,metadata:{classId:a}});n.push(R)})}),{nodes:i,lines:r,text:n}},W1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=se:t==="RL"?e.startX+=se:t==="TB"?e.startY-=se:t==="BT"&&(e.startY+=se)),n&&(t==="LR"?e.endX+=se:t==="RL"?e.endX-=se:t==="TB"?e.endY+=se:t==="BT"&&(e.endY-=se))),e},Y1=(t,e,i,r)=>{var a;const n=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!n)throw new Error("No Edges found!");const s=[],o=[];return t.forEach((l,c)=>{const{id1:u,id2:d,relation:h}=l,f=e.find(tt=>tt.id===u),m=e.find(tt=>tt.id===d),y=q1(h.lineType),_=xa(h.type1),L=xa(h.type2),x=xh(n[c]),N=bh(x.startX,x.startY,x.endX,x.endY,{strokeStyle:y,startArrowhead:_,endArrowhead:L,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:m.id}}),C=W1(r,N);s.push(C);const{relationTitle1:k,relationTitle2:U}=l,R=20,Q=15,rt=15;let Y,B;if(k&&k!=="none"){switch(r){case"TB":Y=C.startX-R,C.endX<C.startX&&(Y-=rt),B=C.startY+Q;break;case"BT":Y=C.startX+R,C.endX>C.startX&&(Y+=rt),B=C.startY-Q;break;case"LR":Y=C.startX+R,B=C.startY+Q,C.endY>C.startY&&(B+=rt);break;case"RL":Y=C.startX-R,B=C.startY-Q,C.startY>C.endY&&(B-=rt);break;default:Y=C.startX-R,B=C.startY+Q}const tt=to(Y,B,k,{fontSize:16});o.push(tt)}if(U&&U!=="none"){switch(r){case"TB":Y=C.endX+R,C.endX<C.startX&&(Y+=rt),B=C.endY-Q;break;case"BT":Y=C.endX-R,C.endX>C.startX&&(Y-=rt),B=C.endY+Q;break;case"LR":Y=C.endX-R,B=C.endY-Q,C.endY>C.startY&&(B-=rt);break;case"RL":Y=C.endX+R,B=C.endY+Q,C.startY>C.endY&&(B+=rt);break;default:Y=C.endX+R,B=C.endY-Q}const tt=to(Y,B,U,{fontSize:16});o.push(tt)}}),{arrows:s,text:o}},H1=(t,e,i)=>{const r=[],n=[];return t.forEach(s=>{const{id:o,text:a,class:l}=s,c=e.querySelector(`#${o}`);if(!c)throw new Error(`Node with id ${o} not found!`);const{transformX:u,transformY:d}=qe(c),h=c.firstChild,f=Wt(h,"rectangle",{id:o,subtype:"note",label:{text:a}});if(Object.assign(f,{x:f.x+u,y:f.y+d}),r.push(f),l){const m=i.find(C=>C.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=f.x+(f.width||0)/2,_=f.y+(f.height||0),L=y,x=m.y,N=bh(y,_,L,x,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:f.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(N)}}),{notes:r,connectors:n}},j1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],s=[],o=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=z1(c,e);n.push(y.nodes),s.push(...y.lines),o.push(...y.text),a.push(...y.nodes)}const u=i.getRelations(),{arrows:d,text:h}=Y1(u,a,e,r),{notes:f,connectors:m}=H1(i.getNotes(),e,a);return n.push(f),d.push(...m),o.push(...h),{type:"class",nodes:n,lines:s,arrows:d,text:o,namespaces:l}},U1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const s="image/svg+xml",o=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(o)}`;return{type:"graphImage",mimeType:s,dataURL:l,width:r,height:n}},X1=async(t,e=ns)=>{bt.initialize({...ns,...e});const i=await bt.mermaidAPI.getDiagramFromText(k1(t)),{svg:r}=await bt.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let s;switch(i.type){case"flowchart-v2":{s=E1(i,n);break}case"sequence":{s=R1(i,n);break}case"classDiagram":{s=j1(i,n);break}default:s=U1(n)}return n.remove(),s},G1=async(t,e)=>{var o;const i=e||{},r=parseInt(((o=i.themeVariables)==null?void 0:o.fontSize)??"")||Lr,n=await X1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return Uh(n,{fontSize:r})},V1=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:G1},Symbol.toStringTag,{value:"Module"}));exports.Color=Mt;exports.Color$1=Ze;exports.Rgb=ft;exports.Selection=Ct;exports.Stack=ve;exports.Symbol=Bi;exports.Utils=q;exports.ZERO_WIDTH_SPACE=nc;exports.abs=cp;exports.acos=yp;exports.array=va;exports.arrayLikeKeys=Dl;exports.asin=_p;exports.assignValue=Il;exports.assignWithDepth$1=st;exports.atan2=hp;exports.baseKeys=Ul;exports.baseUnary=Fl;exports.calculateMathMLDimensions=m0;exports.calculateTextHeight=dc;exports.calculateTextWidth=Mi;exports.cleanAndMerge=ko;exports.clear=Pc;exports.cloneArrayBuffer=bl;exports.cloneBuffer=xl;exports.cloneTypedArray=Tl;exports.color=We;exports.common$1=Gr;exports.commonDb=jc;exports.configureSvgSize=wo;exports.constant=Mr;exports.copyArray=Sl;exports.copyObject=Ml;exports.cos=up;exports.curveBasis=Qa;exports.curveLinear=Za;exports.darken=D;exports.dayjs=Sa;exports.decodeEntities=pc;exports.dedent=Ta;exports.defaultConfig=bC;exports.defaultConfig$2=Ql;exports.define=Ir;exports.epsilon=$n;exports.evaluate=bo;exports.extend=oo;exports.generateId=cc;exports.getAccDescription=Wc;exports.getAccTitle=qc;exports.getConfig=tn;exports.getConfig$1=$t;exports.getDiagramTitle=Hc;exports.getStylesFromArray=lc;exports.getThemeVariables$2=Kl;exports.halfPi=Dn;exports.hasKatex=Zn;exports.hue=Wd;exports.index=V1;exports.initCloneObject=vl;exports.interpolateNumber=Kt;exports.interpolateRgb=En;exports.interpolateString=qa;exports.interpolateToCurve=sc;exports.isArray=Fi;exports.isArrayLike=Ri;exports.isBuffer=jr;exports.isDark=Je;exports.isObject=ue;exports.isObjectLike=ti;exports.lighten=E;exports.lineBreakRegex=ii;exports.log$1=M;exports.max=dp;exports.min=fp;exports.nodeUtil=qn;exports.nogamma=so;exports.parseFontSize=Jr;exports.parseGenericTypes=f0;exports.pi=Nr;exports.random=hc;exports.renderKatex=Vl;exports.rgbConvert=Na;exports.rgba=Pe;exports.root=no;exports.sanitizeText$2=Ue;exports.select=xt;exports.selectSvgElement=Xc;exports.setAccDescription=zc;exports.setAccTitle=Rc;exports.setConfig=xC;exports.setDiagramTitle=Yc;exports.setupGraphViewbox=Uc;exports.setupGraphViewbox$1=Nc;exports.sin=pp;exports.sqrt=gp;exports.tau=mp;exports.utils=Re;exports.wrapLabel=uc;
96
+ */window.addEventListener("load",yh,!1)}const v1=function(t){bt.parseError=t},Lr=[];let wn=!1;const _h=async()=>{if(!wn){for(wn=!0;Lr.length>0;){const t=Lr.shift();if(t)try{await t()}catch(e){M.error("Error executing queue",e)}}wn=!1}},S1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((s,o)=>{ve.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;M.error("Error parsing",a),(l=bt.parseError)==null||l.call(bt,a),o(a),r(a)})});Lr.push(n),_h().catch(r)}),Ch=(t,e,i)=>new Promise((r,n)=>{const s=()=>new Promise((o,a)=>{ve.render(t,e,i).then(l=>{o(l),r(l)},l=>{var c;M.error("Error parsing",l),(c=bt.parseError)==null||c.call(bt,l),a(l),n(l)})});Lr.push(s),_h().catch(n)}),bt={startOnLoad:!0,mermaidAPI:ve,parse:S1,render:Ch,init:b1,run:gh,registerExternalDiagrams:T1,initialize:mh,parseError:void 0,contentLoaded:yh,setParseErrorHandler:v1,detectType:Jr},oi=t=>{t=w1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},ze=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},k1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},w1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},xh=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),o=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const h=c[c.length-1];return Math.hypot(h.x-a.x,h.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},A1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=Do(r,e),s=r.getBBox(),o={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...o,text:oi(t.title)}},B1=(t,e)=>{var f,u,d;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((f=i.parentElement)==null?void 0:f.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=Do(r?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},a=(u=i.querySelector(".label-container"))==null?void 0:u.getAttribute("style"),l=(d=i.querySelector(".label"))==null?void 0:d.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();c[y]=_});const h={};return l==null||l.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();h[y]=_}),{id:t.id,labelType:t.labelType,text:oi(t.text),type:t.type,link:r||void 0,...n,...o,containerStyle:c,labelStyle:h}},E1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=Do(r,i),s=xh(r,n);return t.length=void 0,{...t,...s,text:oi(t.text)}},Do=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:h}=ze(r),f=r.getBBox();n={x:Number(r.getAttribute("x"))||c+f.x||0,y:Number(r.getAttribute("y"))||h+f.y||0}}const{transformX:s,transformY:o}=ze(t),a={x:s+n.x,y:o+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:h}=ze(i);a.x+=c,a.y+=h}i=i.parentElement}return a},L1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=B1(r[a],e)});const n=new Map,s=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),E1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>A1(a,e)),vertices:r,edges:s}},F1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:oi(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const s=n.split(/(?=[LC])/),o=s[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];s.forEach(c=>{const h=c.substring(1).trim().split(" ").map(f=>{const[u,d]=f.split(",");return[parseFloat(u)-o[0],parseFloat(d)-o[1]]});a.push(...h)});const l=a[a.length-1];i.startX=o[0],i.startY=o[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i},bh=(t,e,i,r,n)=>{const s={};return s.type="arrow",s.startX=t,s.startY=e,s.endX=i,s.endY=r,Object.assign(s,{...n}),s},to=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Fr,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),Th=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),s=Number(t.getAttribute("y"));r.type="text",r.text=oi(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const o=t.getBBox();r.width=o.width,r.height=o.height,r.x=n-o.width/2,r.y=s;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Yt=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:s,id:o,groupId:a}=i;r.id=o,a&&(r.groupId=a),n&&(r.label={text:oi(n.text),fontSize:16,verticalAlign:n==null?void 0:n.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=s,s){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Ni=(t,e,i,r,n,s)=>{const o={};return o.startX=e,o.startY=i,o.endX=r,s!=null&&s.groupId&&(o.groupId=s.groupId),s!=null&&s.id&&(o.id=s.id),o.endY=n,o.strokeColor=t.getAttribute("stroke"),o.strokeWidth=Number(t.getAttribute("stroke-width")),o.type="line",o},ya={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Rt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},O1=t=>{let e;switch(t){case Rt.SOLID:case Rt.SOLID_CROSS:case Rt.SOLID_OPEN:case Rt.SOLID_POINT:e="solid";break;case Rt.DOTTED:case Rt.DOTTED_CROSS:case Rt.DOTTED_OPEN:case Rt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},I1=(t,e)=>{var r,n;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const s=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!s)throw new Error("sequence number not present");const o=30,a=o/2,c={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:s,fontSize:14},bgColor:"#e9ecef",height:o,subtype:"sequence"};Object.assign(e,{sequenceNumber:c})}},_a=(t,e,i)=>{if(!t)throw"root node not found";const r=Qt(),n=Array.from(t.children),s=[];return n.forEach((o,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let c;switch(o.tagName){case"line":const h=Number(o.getAttribute("x1")),f=Number(o.getAttribute("y1")),u=Number(o.getAttribute("x2")),d=Number(o.getAttribute("y2"));c=Ni(o,h,f,u,d,{groupId:r,id:l});break;case"text":c=Th(o,e,{groupId:r,id:l});break;case"circle":c=Yt(o,"ellipse",{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l});default:c=Yt(o,Ih[o.tagName],{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l})}s.push(c)}),s},M1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],s=[];return Object.values(t).forEach((o,a)=>{var f;const l=i.find(u=>u.getAttribute("name")===o.name),c=r.find(u=>u.getAttribute("name")===o.name);if(!l||!c)throw"root not found";const h=o.description;if(o.type==="participant"){const u=Yt(l,"rectangle",{id:`${o.name}-top`,label:{text:h},subtype:"actor"});if(!u)throw"Top Node element not found!";n.push([u]);const d=Yt(c,"rectangle",{id:`${o.name}-bottom`,label:{text:h},subtype:"actor"});n.push([d]);const m=(f=l==null?void 0:l.parentElement)==null?void 0:f.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1"));if(!u.height)throw"Top node element height is null";const _=u.y+u.height,L=d.y,x=Number(m.getAttribute("x2")),P=Ni(m,y,_,x,L);s.push(P)}else if(o.type==="actor"){const u=_a(l,h,{id:`${o.name}-top`});n.push(u);const d=_a(c,h,{id:`${o.name}-bottom`});n.push(d);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1")),_=Number(m.getAttribute("y1")),L=Number(m.getAttribute("x2")),x=d.find(P=>P.type==="ellipse");if(x){const P=x.y,C=Ni(m,y,_,L,P);s.push(C)}}}),{nodes:n,lines:s}},$1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(ya),s=t.filter(o=>n.includes(o.type.toString()));return r.forEach((o,a)=>{const l=s[a],c=ya[l.type],h=F1(o,{label:l==null?void 0:l.message,strokeStyle:O1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});I1(o,h),i.push(h)}),i},D1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(s=>s.parentElement),r=t.filter(s=>s.type===Rt.NOTE),n=[];return i.forEach((s,o)=>{if(!s)return;const a=s.firstChild,l=r[o].message,c=Yt(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},N1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Yt(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},P1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],s=[];i.forEach(h=>{const f=Number(h.getAttribute("x1")),u=Number(h.getAttribute("y1")),d=Number(h.getAttribute("x2")),m=Number(h.getAttribute("y2")),y=Ni(h,f,u,d,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const o=Array.from(e.querySelectorAll(".loopText")),a=t.filter(h=>h.type===Rt.CRITICAL_START).map(h=>h.message);o.forEach(h=>{var y;const f=h.textContent||"",u=Th(h,f),d=((y=f.match(/\[(.*?)\]/))==null?void 0:y[1])||"";a.includes(d)&&(u.x+=16),n.push(u)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),c=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((h,f)=>{var m;const u=((m=c[f])==null?void 0:m.textContent)||"",d=Yt(h,"rectangle",{label:{text:u}});d.strokeColor="#adb5bd",d.bgColor="#e9ecef",d.width=void 0,s.push(d)}),{lines:r,texts:n,nodes:s}},R1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var n;return((n=r.parentElement)==null?void 0:n.tagName)!=="g"}),i=[];return e.forEach(r=>{const n=Yt(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},q1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),s=R1(e),o=i.getActors(),{nodes:a,lines:l}=M1(o,e),c=i.getMessages(),h=$1(c,e),f=D1(c,e),u=N1(e),d=P1(c,e);return r.push(s),r.push(...a),r.push(f),r.push(u),{type:"sequence",lines:l,arrows:h,nodes:r,loops:d,groups:n}},tr={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Ca={LINE:0,DOTTED_LINE:1},se=16,z1=t=>{let e;switch(t){case Ca.LINE:e="solid";break;case Ca.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},xa=t=>{let e;switch(t){case tr.AGGREGATION:e="diamond_outline";break;case tr.COMPOSITION:e="diamond";break;case tr.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case tr.DEPENDENCY:default:e="arrow";break}return e},W1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(s=>{var y;const{domId:o,id:a}=s,l=Qt(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${o} not found`);const{transformX:h,transformY:f}=ze(c),u=Yt(c.firstChild,"rectangle",{id:a,groupId:l});u.x+=h,u.y+=f,u.metadata={classId:a},i.push(u),Array.from(c.querySelectorAll(".divider")).forEach(_=>{const L=Number(_.getAttribute("x1")),x=Number(_.getAttribute("y1")),P=Number(_.getAttribute("x2")),C=Number(_.getAttribute("y2")),S=Ni(_,L,x,P,C,{groupId:l,id:Qt()});S.startX+=h,S.startY+=f,S.endX+=h,S.endY+=f,S.metadata={classId:a},r.push(S)});const m=(y=c.querySelector(".label"))==null?void 0:y.children;if(!m)throw"label nodes not found";Array.from(m).forEach(_=>{const L=_.textContent;if(!L)return;const x=Qt(),{transformX:P,transformY:C}=ze(_),S=_.getBBox(),N=to(h+P,f+C+10,L,{width:S.width,height:S.height,id:x,groupId:l,metadata:{classId:a}});n.push(N)})}),{nodes:i,lines:r,text:n}},Y1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=se:t==="RL"?e.startX+=se:t==="TB"?e.startY-=se:t==="BT"&&(e.startY+=se)),n&&(t==="LR"?e.endX+=se:t==="RL"?e.endX-=se:t==="TB"?e.endY+=se:t==="BT"&&(e.endY-=se))),e},H1=(t,e,i,r)=>{var a;const n=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!n)throw new Error("No Edges found!");const s=[],o=[];return t.forEach((l,c)=>{const{id1:h,id2:f,relation:u}=l,d=e.find(tt=>tt.id===h),m=e.find(tt=>tt.id===f),y=z1(u.lineType),_=xa(u.type1),L=xa(u.type2),x=xh(n[c]),P=bh(x.startX,x.startY,x.endX,x.endY,{strokeStyle:y,startArrowhead:_,endArrowhead:L,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:d.id},end:{type:"rectangle",id:m.id}}),C=Y1(r,P);s.push(C);const{relationTitle1:S,relationTitle2:U}=l,N=20,Q=15,rt=15;let Y,B;if(S&&S!=="none"){switch(r){case"TB":Y=C.startX-N,C.endX<C.startX&&(Y-=rt),B=C.startY+Q;break;case"BT":Y=C.startX+N,C.endX>C.startX&&(Y+=rt),B=C.startY-Q;break;case"LR":Y=C.startX+N,B=C.startY+Q,C.endY>C.startY&&(B+=rt);break;case"RL":Y=C.startX-N,B=C.startY-Q,C.startY>C.endY&&(B-=rt);break;default:Y=C.startX-N,B=C.startY+Q}const tt=to(Y,B,S,{fontSize:16});o.push(tt)}if(U&&U!=="none"){switch(r){case"TB":Y=C.endX+N,C.endX<C.startX&&(Y+=rt),B=C.endY-Q;break;case"BT":Y=C.endX-N,C.endX>C.startX&&(Y-=rt),B=C.endY+Q;break;case"LR":Y=C.endX-N,B=C.endY-Q,C.endY>C.startY&&(B-=rt);break;case"RL":Y=C.endX+N,B=C.endY+Q,C.startY>C.endY&&(B+=rt);break;default:Y=C.endX+N,B=C.endY-Q}const tt=to(Y,B,U,{fontSize:16});o.push(tt)}}),{arrows:s,text:o}},j1=(t,e,i)=>{const r=[],n=[];return t.forEach(s=>{const{id:o,text:a,class:l}=s,c=e.querySelector(`#${o}`);if(!c)throw new Error(`Node with id ${o} not found!`);const{transformX:h,transformY:f}=ze(c),u=c.firstChild,d=Yt(u,"rectangle",{id:o,subtype:"note",label:{text:a}});if(Object.assign(d,{x:d.x+h,y:d.y+f}),r.push(d),l){const m=i.find(C=>C.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=d.x+(d.width||0)/2,_=d.y+(d.height||0),L=y,x=m.y,P=bh(y,_,L,x,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:d.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(P)}}),{notes:r,connectors:n}},U1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],s=[],o=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=W1(c,e);n.push(y.nodes),s.push(...y.lines),o.push(...y.text),a.push(...y.nodes)}const h=i.getRelations(),{arrows:f,text:u}=H1(h,a,e,r),{notes:d,connectors:m}=j1(i.getNotes(),e,a);return n.push(d),f.push(...m),o.push(...u),{type:"class",nodes:n,lines:s,arrows:f,text:o,namespaces:l}},X1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const s="image/svg+xml",o=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(o)}`;return{type:"graphImage",mimeType:s,dataURL:l,width:r,height:n}},G1=async(t,e=ns)=>{bt.initialize({...ns,...e});const i=await bt.mermaidAPI.getDiagramFromText(k1(t)),{svg:r}=await bt.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let s;switch(i.type){case"flowchart-v2":{s=L1(i,n);break}case"sequence":{s=q1(i,n);break}case"classDiagram":{s=U1(i,n);break}default:s=X1(n)}return n.remove(),s},V1=async(t,e)=>{var o;const i=e||{},r=parseInt(((o=i.themeVariables)==null?void 0:o.fontSize)??"")||Fr,n=await G1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return Uh(n,{fontSize:r})},K1=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:V1},Symbol.toStringTag,{value:"Module"}));exports.Color=Mt;exports.Color$1=Qe;exports.Rgb=dt;exports.Selection=Ct;exports.Stack=we;exports.Symbol=Li;exports.Utils=q;exports.ZERO_WIDTH_SPACE=nc;exports.abs=cp;exports.acos=yp;exports.array=wa;exports.arrayLikeKeys=Dl;exports.asin=_p;exports.assignValue=Il;exports.assignWithDepth$1=st;exports.atan2=hp;exports.baseKeys=Ul;exports.baseUnary=Fl;exports.calculateMathMLDimensions=yy;exports.calculateTextHeight=fc;exports.calculateTextWidth=$i;exports.cleanAndMerge=So;exports.clear=Pc;exports.cloneArrayBuffer=bl;exports.cloneBuffer=xl;exports.cloneTypedArray=Tl;exports.color=Ye;exports.common$1=Vr;exports.commonDb=jc;exports.configureSvgSize=ko;exports.constant=$r;exports.copyArray=vl;exports.copyObject=Ml;exports.cos=up;exports.curveBasis=Qa;exports.curveLinear=Za;exports.darken=D;exports.dayjs=va;exports.decodeEntities=pc;exports.dedent=Ta;exports.defaultConfig=TC;exports.defaultConfig$2=Ql;exports.define=Mr;exports.epsilon=Dn;exports.evaluate=bo;exports.extend=oo;exports.generateId=cc;exports.getAccDescription=Wc;exports.getAccTitle=qc;exports.getConfig=en;exports.getConfig$1=$t;exports.getDiagramTitle=Hc;exports.getStylesFromArray=lc;exports.getThemeVariables$2=Kl;exports.halfPi=Nn;exports.hasKatex=Zn;exports.hue=Yf;exports.index=K1;exports.initCloneObject=wl;exports.interpolateNumber=Zt;exports.interpolateRgb=Ln;exports.interpolateString=qa;exports.interpolateToCurve=sc;exports.isArray=Ii;exports.isArrayLike=qi;exports.isBuffer=Ur;exports.isDark=ti;exports.isObject=fe;exports.isObjectLike=ii;exports.lighten=E;exports.lineBreakRegex=ni;exports.log$1=M;exports.max=fp;exports.min=dp;exports.nodeUtil=zn;exports.nogamma=so;exports.parseFontSize=Qr;exports.parseGenericTypes=py;exports.pi=Pr;exports.random=hc;exports.renderKatex=Vl;exports.rgbConvert=Na;exports.rgba=Pe;exports.root=no;exports.sanitizeText$2=Ge;exports.select=xt;exports.selectSvgElement=Xc;exports.setAccDescription=zc;exports.setAccTitle=Rc;exports.setConfig=bC;exports.setDiagramTitle=Yc;exports.setupGraphViewbox=Uc;exports.setupGraphViewbox$1=Nc;exports.sin=pp;exports.sqrt=gp;exports.tau=mp;exports.utils=qe;exports.wrapLabel=uc;