openclaw-cortex 1.1.0

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 (463) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/bin/cortex-ui.mjs +307 -0
  4. package/package.json +35 -0
  5. package/static/_app/env.js +1 -0
  6. package/static/_app/immutable/assets/0.CTZ7R4vC.css +1 -0
  7. package/static/_app/immutable/assets/2.D5MMRphb.css +1 -0
  8. package/static/_app/immutable/assets/4.Cst5sby_.css +1 -0
  9. package/static/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 +0 -0
  10. package/static/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff +0 -0
  11. package/static/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf +0 -0
  12. package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf +0 -0
  13. package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff +0 -0
  14. package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 +0 -0
  15. package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff +0 -0
  16. package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 +0 -0
  17. package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf +0 -0
  18. package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf +0 -0
  19. package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff +0 -0
  20. package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 +0 -0
  21. package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf +0 -0
  22. package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 +0 -0
  23. package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff +0 -0
  24. package/static/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 +0 -0
  25. package/static/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff +0 -0
  26. package/static/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf +0 -0
  27. package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 +0 -0
  28. package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf +0 -0
  29. package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff +0 -0
  30. package/static/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf +0 -0
  31. package/static/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff +0 -0
  32. package/static/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 +0 -0
  33. package/static/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 +0 -0
  34. package/static/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff +0 -0
  35. package/static/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf +0 -0
  36. package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf +0 -0
  37. package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 +0 -0
  38. package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff +0 -0
  39. package/static/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff +0 -0
  40. package/static/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf +0 -0
  41. package/static/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 +0 -0
  42. package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf +0 -0
  43. package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 +0 -0
  44. package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff +0 -0
  45. package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 +0 -0
  46. package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff +0 -0
  47. package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf +0 -0
  48. package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf +0 -0
  49. package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff +0 -0
  50. package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 +0 -0
  51. package/static/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf +0 -0
  52. package/static/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 +0 -0
  53. package/static/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff +0 -0
  54. package/static/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff +0 -0
  55. package/static/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf +0 -0
  56. package/static/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 +0 -0
  57. package/static/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf +0 -0
  58. package/static/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 +0 -0
  59. package/static/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff +0 -0
  60. package/static/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff +0 -0
  61. package/static/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf +0 -0
  62. package/static/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff +0 -0
  63. package/static/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf +0 -0
  64. package/static/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 +0 -0
  65. package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff +0 -0
  66. package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 +0 -0
  67. package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf +0 -0
  68. package/static/_app/immutable/chunks/-Dz179kp.js +1 -0
  69. package/static/_app/immutable/chunks/0A2p0G4C.js +1 -0
  70. package/static/_app/immutable/chunks/2EtD6e53.js +1 -0
  71. package/static/_app/immutable/chunks/2UxHyX5q.js +1 -0
  72. package/static/_app/immutable/chunks/3e1v2bzS.js +1 -0
  73. package/static/_app/immutable/chunks/4A_iFExJ.js +1 -0
  74. package/static/_app/immutable/chunks/5J0xJHOV.js +321 -0
  75. package/static/_app/immutable/chunks/5i3qLPDT.js +1 -0
  76. package/static/_app/immutable/chunks/83L43bj1.js +1 -0
  77. package/static/_app/immutable/chunks/85-TOEBH.js +1 -0
  78. package/static/_app/immutable/chunks/B-drBnSa.js +1 -0
  79. package/static/_app/immutable/chunks/B0m2ddpp.js +1 -0
  80. package/static/_app/immutable/chunks/B1dDrJ26.js +1 -0
  81. package/static/_app/immutable/chunks/B1yitclQ.js +1 -0
  82. package/static/_app/immutable/chunks/B2A7gHtL.js +2 -0
  83. package/static/_app/immutable/chunks/B3DkuU-J.js +1 -0
  84. package/static/_app/immutable/chunks/B5Fyld5U.js +1 -0
  85. package/static/_app/immutable/chunks/B6aJPvgy.js +1 -0
  86. package/static/_app/immutable/chunks/B7c-h3xW.js +1 -0
  87. package/static/_app/immutable/chunks/B7mTdjB0.js +1 -0
  88. package/static/_app/immutable/chunks/B7xXCP9k.js +65 -0
  89. package/static/_app/immutable/chunks/B93PlW-d.js +1 -0
  90. package/static/_app/immutable/chunks/BBf5iR-q.js +1 -0
  91. package/static/_app/immutable/chunks/BEDo0Tqx.js +1 -0
  92. package/static/_app/immutable/chunks/BERRCDM3.js +1 -0
  93. package/static/_app/immutable/chunks/BETggiCN.js +1 -0
  94. package/static/_app/immutable/chunks/BEwlwnbL.js +1 -0
  95. package/static/_app/immutable/chunks/BFfxhgS-.js +1 -0
  96. package/static/_app/immutable/chunks/BGHnOYBU.js +1 -0
  97. package/static/_app/immutable/chunks/BGJmEYvX.js +1 -0
  98. package/static/_app/immutable/chunks/BH7IYjvW.js +1 -0
  99. package/static/_app/immutable/chunks/BHpy7Gm-.js +7 -0
  100. package/static/_app/immutable/chunks/BIGW1oBm.js +1 -0
  101. package/static/_app/immutable/chunks/BJ7Hojwm.js +165 -0
  102. package/static/_app/immutable/chunks/BJDFO7_C.js +1 -0
  103. package/static/_app/immutable/chunks/BL5jzBAz.js +1 -0
  104. package/static/_app/immutable/chunks/BLmx8bSh.js +1 -0
  105. package/static/_app/immutable/chunks/BLtJtn59.js +1 -0
  106. package/static/_app/immutable/chunks/BM1_JUlF.js +1 -0
  107. package/static/_app/immutable/chunks/BMWR74SV.js +1 -0
  108. package/static/_app/immutable/chunks/BPQ3VLAy.js +1 -0
  109. package/static/_app/immutable/chunks/BQ8w6xss.js +1 -0
  110. package/static/_app/immutable/chunks/BR5kRUq4.js +1 -0
  111. package/static/_app/immutable/chunks/BRHolxvo.js +1 -0
  112. package/static/_app/immutable/chunks/BRZ36xJF.js +1 -0
  113. package/static/_app/immutable/chunks/BTJTHyun.js +1 -0
  114. package/static/_app/immutable/chunks/BTifaqeh.js +1 -0
  115. package/static/_app/immutable/chunks/BUw7H-hv.js +1 -0
  116. package/static/_app/immutable/chunks/BV7otONQ.js +1 -0
  117. package/static/_app/immutable/chunks/BVNfpfKI.js +1 -0
  118. package/static/_app/immutable/chunks/BVQ-GDCI.js +1 -0
  119. package/static/_app/immutable/chunks/BWvSN4gD.js +1 -0
  120. package/static/_app/immutable/chunks/BXkSAIEj.js +1 -0
  121. package/static/_app/immutable/chunks/BYXRTvT-.js +1 -0
  122. package/static/_app/immutable/chunks/BYunw83y.js +1 -0
  123. package/static/_app/immutable/chunks/BZvkOJ9d.js +1 -0
  124. package/static/_app/immutable/chunks/B_m7g4N7.js +1 -0
  125. package/static/_app/immutable/chunks/Ba13S78F.js +1 -0
  126. package/static/_app/immutable/chunks/BaaWV1KV.js +1 -0
  127. package/static/_app/immutable/chunks/BbxtiRj7.js +1 -0
  128. package/static/_app/immutable/chunks/BcOcwvcX.js +1 -0
  129. package/static/_app/immutable/chunks/BcVCzyr7.js +1 -0
  130. package/static/_app/immutable/chunks/BdImnpbu.js +1 -0
  131. package/static/_app/immutable/chunks/BdnUsdx6.js +1 -0
  132. package/static/_app/immutable/chunks/Be_uRYmX.js +1 -0
  133. package/static/_app/immutable/chunks/BfHTSMKl.js +1 -0
  134. package/static/_app/immutable/chunks/BfJx3WfE.js +1 -0
  135. package/static/_app/immutable/chunks/BfQbQz2e.js +1 -0
  136. package/static/_app/immutable/chunks/BfjtVDDH.js +1 -0
  137. package/static/_app/immutable/chunks/BgCckEu3.js +43 -0
  138. package/static/_app/immutable/chunks/BgDCqdQA.js +1 -0
  139. package/static/_app/immutable/chunks/BgIZa_E2.js +1 -0
  140. package/static/_app/immutable/chunks/BhOHFoWU.js +1 -0
  141. package/static/_app/immutable/chunks/BhRPY-oY.js +1 -0
  142. package/static/_app/immutable/chunks/BkioyH1T.js +1 -0
  143. package/static/_app/immutable/chunks/Bkuqu6BP.js +1 -0
  144. package/static/_app/immutable/chunks/BmXAJ9_W.js +1 -0
  145. package/static/_app/immutable/chunks/Bmn6On1c.js +1 -0
  146. package/static/_app/immutable/chunks/Bp6g37R7.js +1 -0
  147. package/static/_app/immutable/chunks/BpQpoErY.js +30 -0
  148. package/static/_app/immutable/chunks/BqTXFGrv.js +1 -0
  149. package/static/_app/immutable/chunks/BqYA7rlc.js +1 -0
  150. package/static/_app/immutable/chunks/Br6cN0cg.js +1 -0
  151. package/static/_app/immutable/chunks/BrzmwbiE.js +1 -0
  152. package/static/_app/immutable/chunks/BsS91CYL.js +1 -0
  153. package/static/_app/immutable/chunks/BspZqrRM.js +1 -0
  154. package/static/_app/immutable/chunks/BtCnVYZw.js +1 -0
  155. package/static/_app/immutable/chunks/BtEQkMu_.js +1 -0
  156. package/static/_app/immutable/chunks/BtOb2qkB.js +1 -0
  157. package/static/_app/immutable/chunks/BthQWCQV.js +1 -0
  158. package/static/_app/immutable/chunks/BtjpZpjN.js +1 -0
  159. package/static/_app/immutable/chunks/BtqSS_iP.js +1 -0
  160. package/static/_app/immutable/chunks/BtvRca6l.js +1 -0
  161. package/static/_app/immutable/chunks/Buea-lGh.js +1 -0
  162. package/static/_app/immutable/chunks/Bv_4Rxtq.js +1 -0
  163. package/static/_app/immutable/chunks/BvzEVeQv.js +1 -0
  164. package/static/_app/immutable/chunks/Bw305WKR.js +1 -0
  165. package/static/_app/immutable/chunks/BxgE0vQu.js +1 -0
  166. package/static/_app/immutable/chunks/ByZADglo.js +7 -0
  167. package/static/_app/immutable/chunks/BzJJZx-M.js +1 -0
  168. package/static/_app/immutable/chunks/BzadFaiy.js +162 -0
  169. package/static/_app/immutable/chunks/C-HG3fhB.js +1 -0
  170. package/static/_app/immutable/chunks/C-SQnVFl.js +1 -0
  171. package/static/_app/immutable/chunks/C-sUppwS.js +1 -0
  172. package/static/_app/immutable/chunks/C0HS_06l.js +1 -0
  173. package/static/_app/immutable/chunks/C0hk2d4L.js +1 -0
  174. package/static/_app/immutable/chunks/C151Ov-r.js +1 -0
  175. package/static/_app/immutable/chunks/C28nlFVT.js +1 -0
  176. package/static/_app/immutable/chunks/C2t-YnRu.js +1 -0
  177. package/static/_app/immutable/chunks/C39BiMTA.js +1 -0
  178. package/static/_app/immutable/chunks/C3B-1QV4.js +1 -0
  179. package/static/_app/immutable/chunks/C3Wv6jpd.js +1 -0
  180. package/static/_app/immutable/chunks/C3mMm8J8.js +1 -0
  181. package/static/_app/immutable/chunks/C47S-Tmv.js +1 -0
  182. package/static/_app/immutable/chunks/C4EeE6gA.js +1 -0
  183. package/static/_app/immutable/chunks/C4IJs8-o.js +1 -0
  184. package/static/_app/immutable/chunks/C4gqWexZ.js +1 -0
  185. package/static/_app/immutable/chunks/C5YyOfLZ.js +1 -0
  186. package/static/_app/immutable/chunks/C7zT0LnQ.js +1 -0
  187. package/static/_app/immutable/chunks/C8M2exoo.js +1 -0
  188. package/static/_app/immutable/chunks/C8SIHLmM.js +1 -0
  189. package/static/_app/immutable/chunks/C8lEn-DE.js +1 -0
  190. package/static/_app/immutable/chunks/C98Dy4si.js +1 -0
  191. package/static/_app/immutable/chunks/C9E63BpL.js +1 -0
  192. package/static/_app/immutable/chunks/C9XAeP06.js +1 -0
  193. package/static/_app/immutable/chunks/C9dUb6Cb.js +1 -0
  194. package/static/_app/immutable/chunks/C9oPPf7i.js +1 -0
  195. package/static/_app/immutable/chunks/C9tS-k6U.js +1 -0
  196. package/static/_app/immutable/chunks/CDVJQ6XC.js +1 -0
  197. package/static/_app/immutable/chunks/CDx5xZoG.js +1 -0
  198. package/static/_app/immutable/chunks/CEL-wOlO.js +1 -0
  199. package/static/_app/immutable/chunks/CEu0bR-o.js +1 -0
  200. package/static/_app/immutable/chunks/CF10PKvl.js +1 -0
  201. package/static/_app/immutable/chunks/CFHQjOhq.js +1 -0
  202. package/static/_app/immutable/chunks/CG6Dc4jp.js +1 -0
  203. package/static/_app/immutable/chunks/CG8Ifv2g.js +1 -0
  204. package/static/_app/immutable/chunks/CH1njM8p.js +1 -0
  205. package/static/_app/immutable/chunks/CHBK5X1w.js +68 -0
  206. package/static/_app/immutable/chunks/CHLpvVh8.js +1 -0
  207. package/static/_app/immutable/chunks/CHM0blh-.js +1 -0
  208. package/static/_app/immutable/chunks/CI2Yzjad.js +64 -0
  209. package/static/_app/immutable/chunks/CIyB7iq8.js +1 -0
  210. package/static/_app/immutable/chunks/CIznanO1.js +1 -0
  211. package/static/_app/immutable/chunks/CJc9bBzg.js +1 -0
  212. package/static/_app/immutable/chunks/CKIfxQSi.js +1 -0
  213. package/static/_app/immutable/chunks/CLxacb5B.js +1 -0
  214. package/static/_app/immutable/chunks/CM4QnuZs.js +4 -0
  215. package/static/_app/immutable/chunks/CMTm3GFP.js +1 -0
  216. package/static/_app/immutable/chunks/CMjwMIkn.js +1 -0
  217. package/static/_app/immutable/chunks/CO1LY3CK.js +1 -0
  218. package/static/_app/immutable/chunks/COcwbKMJ.js +1 -0
  219. package/static/_app/immutable/chunks/COkxafJQ.js +1 -0
  220. package/static/_app/immutable/chunks/COt5Ahok.js +1 -0
  221. package/static/_app/immutable/chunks/CPTuQiBa.js +10 -0
  222. package/static/_app/immutable/chunks/CQ8jqdy-.js +1 -0
  223. package/static/_app/immutable/chunks/CS3Unz2-.js +1 -0
  224. package/static/_app/immutable/chunks/CSXwinHm.js +1 -0
  225. package/static/_app/immutable/chunks/CSt7grsY.js +267 -0
  226. package/static/_app/immutable/chunks/CTLgUaOw.js +15 -0
  227. package/static/_app/immutable/chunks/CTRr51gU.js +1 -0
  228. package/static/_app/immutable/chunks/CVF7vp9Z.js +1 -0
  229. package/static/_app/immutable/chunks/CVO1_9PV.js +1 -0
  230. package/static/_app/immutable/chunks/CVdnzihN.js +1 -0
  231. package/static/_app/immutable/chunks/CW8IKDeL.js +1 -0
  232. package/static/_app/immutable/chunks/CXQ1lKJR.js +1 -0
  233. package/static/_app/immutable/chunks/CXtECtnM.js +1 -0
  234. package/static/_app/immutable/chunks/CXuqG_J2.js +24 -0
  235. package/static/_app/immutable/chunks/CZhp0h8q.js +1 -0
  236. package/static/_app/immutable/chunks/CaGTHgeg.js +1 -0
  237. package/static/_app/immutable/chunks/CaL1vZnA.js +1 -0
  238. package/static/_app/immutable/chunks/CafNBF8u.js +1 -0
  239. package/static/_app/immutable/chunks/CbFg5uaA.js +1 -0
  240. package/static/_app/immutable/chunks/CbWomDEd.js +145 -0
  241. package/static/_app/immutable/chunks/CbfX1IO0.js +1 -0
  242. package/static/_app/immutable/chunks/CckKNcSY.js +1 -0
  243. package/static/_app/immutable/chunks/CeAyd5Ju.js +1 -0
  244. package/static/_app/immutable/chunks/Cehz00B_.js +36 -0
  245. package/static/_app/immutable/chunks/CenWIFCC.js +1 -0
  246. package/static/_app/immutable/chunks/CfMaDYuo.js +1 -0
  247. package/static/_app/immutable/chunks/CfQXZHmo.js +1 -0
  248. package/static/_app/immutable/chunks/Cg-RD9OK.js +1 -0
  249. package/static/_app/immutable/chunks/Ch6_qw5b.js +1 -0
  250. package/static/_app/immutable/chunks/ChMvpjG-.js +1 -0
  251. package/static/_app/immutable/chunks/ChOWTdG8.js +1 -0
  252. package/static/_app/immutable/chunks/Ci3HlJdq.js +1 -0
  253. package/static/_app/immutable/chunks/Cj5Yp3dK.js +1 -0
  254. package/static/_app/immutable/chunks/CjW8XjqM.js +1 -0
  255. package/static/_app/immutable/chunks/CjoLj4QM.js +1 -0
  256. package/static/_app/immutable/chunks/CkAYskLX.js +1 -0
  257. package/static/_app/immutable/chunks/CkByrt1z.js +1 -0
  258. package/static/_app/immutable/chunks/CkXjmgJE.js +1 -0
  259. package/static/_app/immutable/chunks/CklMAg4u.js +1 -0
  260. package/static/_app/immutable/chunks/CktI4lAE.js +1 -0
  261. package/static/_app/immutable/chunks/Cl8IGKIC.js +1 -0
  262. package/static/_app/immutable/chunks/CmIQRyeF.js +1 -0
  263. package/static/_app/immutable/chunks/CmKTTxBW.js +1 -0
  264. package/static/_app/immutable/chunks/Cmh6b_Ma.js +1 -0
  265. package/static/_app/immutable/chunks/CnnebwVN.js +1 -0
  266. package/static/_app/immutable/chunks/CnnmHF94.js +1 -0
  267. package/static/_app/immutable/chunks/CnsnAmq5.js +1 -0
  268. package/static/_app/immutable/chunks/Co6uUVPk.js +1 -0
  269. package/static/_app/immutable/chunks/CoDkCxhg.js +1 -0
  270. package/static/_app/immutable/chunks/CoP9XEcB.js +1 -0
  271. package/static/_app/immutable/chunks/Cp-IABpG.js +1 -0
  272. package/static/_app/immutable/chunks/Cq5zzVJU.js +1 -0
  273. package/static/_app/immutable/chunks/CquLrc37.js +1 -0
  274. package/static/_app/immutable/chunks/CsfeWuGM.js +1 -0
  275. package/static/_app/immutable/chunks/Csfq5Kiy.js +1 -0
  276. package/static/_app/immutable/chunks/CuPHTKiy.js +1 -0
  277. package/static/_app/immutable/chunks/Cuk6v7N8.js +1 -0
  278. package/static/_app/immutable/chunks/CvQeaAIM.js +1 -0
  279. package/static/_app/immutable/chunks/Cvjx9yec.js +1 -0
  280. package/static/_app/immutable/chunks/CwdUHN22.js +10 -0
  281. package/static/_app/immutable/chunks/CwoSXNpI.js +1 -0
  282. package/static/_app/immutable/chunks/CxGSJlkm.js +1 -0
  283. package/static/_app/immutable/chunks/CxLEBnE3.js +1 -0
  284. package/static/_app/immutable/chunks/CxbxFI8M.js +1 -0
  285. package/static/_app/immutable/chunks/CyktbL80.js +1 -0
  286. package/static/_app/immutable/chunks/CylS5w8V.js +1 -0
  287. package/static/_app/immutable/chunks/CzTSHFRz.js +1 -0
  288. package/static/_app/immutable/chunks/D-2ljcwZ.js +1 -0
  289. package/static/_app/immutable/chunks/D0YGMca9.js +1 -0
  290. package/static/_app/immutable/chunks/D0h_xhSm.js +1 -0
  291. package/static/_app/immutable/chunks/D0r3Knsf.js +1 -0
  292. package/static/_app/immutable/chunks/D17OF-Vu.js +1 -0
  293. package/static/_app/immutable/chunks/D1j8_8rp.js +1 -0
  294. package/static/_app/immutable/chunks/D2qRk260.js +1 -0
  295. package/static/_app/immutable/chunks/D3lLCCz7.js +1 -0
  296. package/static/_app/immutable/chunks/D4_iv3hh.js +1 -0
  297. package/static/_app/immutable/chunks/D4h5O-jR.js +1 -0
  298. package/static/_app/immutable/chunks/D5-asLiD.js +1 -0
  299. package/static/_app/immutable/chunks/D53aC0YG.js +1 -0
  300. package/static/_app/immutable/chunks/D5KoaKCx.js +1 -0
  301. package/static/_app/immutable/chunks/D5qUzPtI.js +24 -0
  302. package/static/_app/immutable/chunks/D6tSezzf.js +2 -0
  303. package/static/_app/immutable/chunks/D7o27uSR.js +1 -0
  304. package/static/_app/immutable/chunks/D7oLnXFd.js +1 -0
  305. package/static/_app/immutable/chunks/D82EKSYY.js +1 -0
  306. package/static/_app/immutable/chunks/D87Tk5Gz.js +1 -0
  307. package/static/_app/immutable/chunks/D8_7TLub.js +1 -0
  308. package/static/_app/immutable/chunks/D93ZcfNL.js +1 -0
  309. package/static/_app/immutable/chunks/D97Zzqfu.js +1 -0
  310. package/static/_app/immutable/chunks/DAi9KRSo.js +1 -0
  311. package/static/_app/immutable/chunks/DBpX0yWo.js +1 -0
  312. package/static/_app/immutable/chunks/DDfwx6bG.js +1 -0
  313. package/static/_app/immutable/chunks/DFQXde-d.js +1 -0
  314. package/static/_app/immutable/chunks/DFWUc33u.js +1 -0
  315. package/static/_app/immutable/chunks/DFXneXwc.js +1 -0
  316. package/static/_app/immutable/chunks/DGztddWO.js +1 -0
  317. package/static/_app/immutable/chunks/DH5Ifo-i.js +1 -0
  318. package/static/_app/immutable/chunks/DHCkPAjA.js +1 -0
  319. package/static/_app/immutable/chunks/DHJKELXO.js +1 -0
  320. package/static/_app/immutable/chunks/DHLdr2oY.js +61 -0
  321. package/static/_app/immutable/chunks/DHQR4-dF.js +1 -0
  322. package/static/_app/immutable/chunks/DHfvhpat.js +220 -0
  323. package/static/_app/immutable/chunks/DID_Ax9Y.js +1 -0
  324. package/static/_app/immutable/chunks/DM8c43g1.js +1 -0
  325. package/static/_app/immutable/chunks/DMzUqQB5.js +1 -0
  326. package/static/_app/immutable/chunks/DNstp7By.js +1 -0
  327. package/static/_app/immutable/chunks/DPfMkruS.js +1 -0
  328. package/static/_app/immutable/chunks/DPrxUVm_.js +1 -0
  329. package/static/_app/immutable/chunks/DQyhUUbL.js +1 -0
  330. package/static/_app/immutable/chunks/DR4elm4u.js +1 -0
  331. package/static/_app/immutable/chunks/DRg8JJMk.js +1 -0
  332. package/static/_app/immutable/chunks/DRw_LuNl.js +1 -0
  333. package/static/_app/immutable/chunks/DU1UobuO.js +1 -0
  334. package/static/_app/immutable/chunks/DUszq2jm.js +1 -0
  335. package/static/_app/immutable/chunks/DV7GczEv.js +1 -0
  336. package/static/_app/immutable/chunks/DVFEvuxE.js +1 -0
  337. package/static/_app/immutable/chunks/DVMEJ2y_.js +1 -0
  338. package/static/_app/immutable/chunks/DVP7Iy08.js +1 -0
  339. package/static/_app/immutable/chunks/DVxCFoDh.js +1 -0
  340. package/static/_app/immutable/chunks/DWedfzmr.js +1 -0
  341. package/static/_app/immutable/chunks/DWrx1Km3.js +1 -0
  342. package/static/_app/immutable/chunks/DX6XiGOO.js +1 -0
  343. package/static/_app/immutable/chunks/DXbdFlpD.js +1 -0
  344. package/static/_app/immutable/chunks/DXmwc3jG.js +1 -0
  345. package/static/_app/immutable/chunks/DXvB9xmW.js +1 -0
  346. package/static/_app/immutable/chunks/DYoxhk2S.js +1 -0
  347. package/static/_app/immutable/chunks/DZf3V79B.js +1 -0
  348. package/static/_app/immutable/chunks/DZxFcAj9.js +1 -0
  349. package/static/_app/immutable/chunks/D_Q5rh1f.js +1 -0
  350. package/static/_app/immutable/chunks/Da5cRb03.js +1 -0
  351. package/static/_app/immutable/chunks/DaZJ10kq.js +1 -0
  352. package/static/_app/immutable/chunks/DcOAMOlN.js +13 -0
  353. package/static/_app/immutable/chunks/DcaNXYhu.js +1 -0
  354. package/static/_app/immutable/chunks/DctEUaEs.js +122 -0
  355. package/static/_app/immutable/chunks/Dd19v3D-.js +1 -0
  356. package/static/_app/immutable/chunks/DdkO51Og.js +1 -0
  357. package/static/_app/immutable/chunks/Ddpm2sMN.js +2 -0
  358. package/static/_app/immutable/chunks/Ddv68eIx.js +1 -0
  359. package/static/_app/immutable/chunks/Des-eS-w.js +1 -0
  360. package/static/_app/immutable/chunks/Df6bDoY_.js +1 -0
  361. package/static/_app/immutable/chunks/Dg5xB15N.js +1 -0
  362. package/static/_app/immutable/chunks/DhXJpUyf.js +261 -0
  363. package/static/_app/immutable/chunks/DjeNoAoh.js +1 -0
  364. package/static/_app/immutable/chunks/DkFqJrB1.js +1 -0
  365. package/static/_app/immutable/chunks/DkwncUOv.js +1 -0
  366. package/static/_app/immutable/chunks/DmOB1nMW.js +60 -0
  367. package/static/_app/immutable/chunks/DnULxvSX.js +1 -0
  368. package/static/_app/immutable/chunks/Dntbqd40.js +1 -0
  369. package/static/_app/immutable/chunks/DpBBTLWw.js +1 -0
  370. package/static/_app/immutable/chunks/Dpen1YoG.js +1 -0
  371. package/static/_app/immutable/chunks/DqQDbK_p.js +1 -0
  372. package/static/_app/immutable/chunks/DqwNpetd.js +1 -0
  373. package/static/_app/immutable/chunks/Dr0tKAg9.js +1 -0
  374. package/static/_app/immutable/chunks/DsOJ9woJ.js +1 -0
  375. package/static/_app/immutable/chunks/Dspwwk_N.js +1 -0
  376. package/static/_app/immutable/chunks/DsqENSWP.js +1 -0
  377. package/static/_app/immutable/chunks/Dv7Oe6Be.js +1 -0
  378. package/static/_app/immutable/chunks/DvCA51Ri.js +1 -0
  379. package/static/_app/immutable/chunks/Dx-B1_4e.js +1 -0
  380. package/static/_app/immutable/chunks/DxNHbxmM.js +1 -0
  381. package/static/_app/immutable/chunks/DxSwrfjg.js +1 -0
  382. package/static/_app/immutable/chunks/DyxjwDmM.js +1 -0
  383. package/static/_app/immutable/chunks/E3gJ1_iC.js +1 -0
  384. package/static/_app/immutable/chunks/FixhtMGQ.js +1 -0
  385. package/static/_app/immutable/chunks/Gi6I4Gst.js +1 -0
  386. package/static/_app/immutable/chunks/GsRaNv29.js +1 -0
  387. package/static/_app/immutable/chunks/IF9eRakj.js +1 -0
  388. package/static/_app/immutable/chunks/IeuSbFQv.js +1 -0
  389. package/static/_app/immutable/chunks/JSbxStMO.js +1 -0
  390. package/static/_app/immutable/chunks/KBP0Pl-D.js +1 -0
  391. package/static/_app/immutable/chunks/L9t79GZl.js +1 -0
  392. package/static/_app/immutable/chunks/Lsu8CQWQ.js +1 -0
  393. package/static/_app/immutable/chunks/MzD3tlZU.js +1 -0
  394. package/static/_app/immutable/chunks/P80f7IUj.js +1 -0
  395. package/static/_app/immutable/chunks/Pmp26Uib.js +1 -0
  396. package/static/_app/immutable/chunks/QIJgUcNo.js +1 -0
  397. package/static/_app/immutable/chunks/U2OjavRo.js +160 -0
  398. package/static/_app/immutable/chunks/VCDPK7BO.js +1 -0
  399. package/static/_app/immutable/chunks/VOosw3JB.js +1 -0
  400. package/static/_app/immutable/chunks/YqXBG_HV.js +1 -0
  401. package/static/_app/immutable/chunks/Yzrsuije.js +1 -0
  402. package/static/_app/immutable/chunks/Z4qYLg5o.js +249 -0
  403. package/static/_app/immutable/chunks/_ykCGR6B.js +1 -0
  404. package/static/_app/immutable/chunks/bCR0ucgS.js +1 -0
  405. package/static/_app/immutable/chunks/bN70gL4F.js +1 -0
  406. package/static/_app/immutable/chunks/bWB8K6-D.js +5 -0
  407. package/static/_app/immutable/chunks/brMvHLvt.js +1 -0
  408. package/static/_app/immutable/chunks/d_IM0gte.js +139 -0
  409. package/static/_app/immutable/chunks/dwOrl1Do.js +1 -0
  410. package/static/_app/immutable/chunks/fKv21gyL.js +1 -0
  411. package/static/_app/immutable/chunks/fbvUeNLU.js +1 -0
  412. package/static/_app/immutable/chunks/fuZLfV_i.js +1 -0
  413. package/static/_app/immutable/chunks/g9-lgVsj.js +1 -0
  414. package/static/_app/immutable/chunks/gcz8RCvz.js +1 -0
  415. package/static/_app/immutable/chunks/ghzVJG2J.js +3 -0
  416. package/static/_app/immutable/chunks/hJgmCMqR.js +1 -0
  417. package/static/_app/immutable/chunks/hegEt444.js +1 -0
  418. package/static/_app/immutable/chunks/huq_gnMY.js +1 -0
  419. package/static/_app/immutable/chunks/k_qm7-4y.js +1 -0
  420. package/static/_app/immutable/chunks/lXgVvXCa.js +1 -0
  421. package/static/_app/immutable/chunks/m17aaUwq.js +1 -0
  422. package/static/_app/immutable/chunks/mWjccvbQ.js +1 -0
  423. package/static/_app/immutable/chunks/mjskCLCv.js +1 -0
  424. package/static/_app/immutable/chunks/n2N0HUVH.js +1 -0
  425. package/static/_app/immutable/chunks/nnazh41B.js +1 -0
  426. package/static/_app/immutable/chunks/oC1Mvi0U.js +89 -0
  427. package/static/_app/immutable/chunks/pwnRazgM.js +1 -0
  428. package/static/_app/immutable/chunks/qR_TM3YX.js +1 -0
  429. package/static/_app/immutable/chunks/qdsjHGoJ.js +1 -0
  430. package/static/_app/immutable/chunks/rBDgyNy3.js +1 -0
  431. package/static/_app/immutable/chunks/rGO070M0.js +1 -0
  432. package/static/_app/immutable/chunks/sDksUvMU.js +1 -0
  433. package/static/_app/immutable/chunks/tddw2aQM.js +112 -0
  434. package/static/_app/immutable/chunks/u5AG7uiY.js +1 -0
  435. package/static/_app/immutable/chunks/uYugtg8r.js +1 -0
  436. package/static/_app/immutable/chunks/vGWfd6FD.js +1 -0
  437. package/static/_app/immutable/chunks/wDzz0qaB.js +1 -0
  438. package/static/_app/immutable/entry/app.dIuL6Sx2.js +2 -0
  439. package/static/_app/immutable/entry/start.CPRrpmQQ.js +1 -0
  440. package/static/_app/immutable/nodes/0.C05hyQv4.js +31 -0
  441. package/static/_app/immutable/nodes/1.DNR70oez.js +1 -0
  442. package/static/_app/immutable/nodes/10.B2cLmMC7.js +10 -0
  443. package/static/_app/immutable/nodes/11.DJhRDO9i.js +10 -0
  444. package/static/_app/immutable/nodes/12.EQZXcF2X.js +15 -0
  445. package/static/_app/immutable/nodes/13.Cmr6DJCN.js +10 -0
  446. package/static/_app/immutable/nodes/14.C_0-G1-G.js +30 -0
  447. package/static/_app/immutable/nodes/15.CQpP4DKr.js +27 -0
  448. package/static/_app/immutable/nodes/16.X30_YaDj.js +6 -0
  449. package/static/_app/immutable/nodes/17.CFfybSgG.js +14 -0
  450. package/static/_app/immutable/nodes/2.BAngx7Bz.js +1 -0
  451. package/static/_app/immutable/nodes/3.DXKIOrMy.js +13 -0
  452. package/static/_app/immutable/nodes/4.DbkQP2wh.js +20 -0
  453. package/static/_app/immutable/nodes/5.ITF8-ndt.js +16 -0
  454. package/static/_app/immutable/nodes/6.c4AJxCzT.js +22 -0
  455. package/static/_app/immutable/nodes/7.BIY7aMPw.js +49 -0
  456. package/static/_app/immutable/nodes/8.z-z4LZ_8.js +17 -0
  457. package/static/_app/immutable/nodes/9.CSPrnU3x.js +4 -0
  458. package/static/_app/version.json +1 -0
  459. package/static/config.json +10 -0
  460. package/static/index.html +48 -0
  461. package/static/logo.png +0 -0
  462. package/static/manifest.json +23 -0
  463. package/static/sw.js +80 -0
@@ -0,0 +1,249 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CM4QnuZs.js","./DDfwx6bG.js","./BVNfpfKI.js","./huq_gnMY.js","./ChOWTdG8.js","./CIyB7iq8.js","./DvCA51Ri.js","./5J0xJHOV.js","./CwdUHN22.js","./BbxtiRj7.js","./BzadFaiy.js","./CTLgUaOw.js","./D2qRk260.js","./BtEQkMu_.js","./CaL1vZnA.js","./DmOB1nMW.js","./B7xXCP9k.js","./Dr0tKAg9.js","./FixhtMGQ.js","./U2OjavRo.js","./DpBBTLWw.js","./qR_TM3YX.js","./CSt7grsY.js","./pwnRazgM.js","./Gi6I4Gst.js","./DX6XiGOO.js","./Ddpm2sMN.js","./BpQpoErY.js","./DjeNoAoh.js","./CmKTTxBW.js","./ByZADglo.js","./BHpy7Gm-.js","./CI2Yzjad.js","./CbWomDEd.js","./Lsu8CQWQ.js","./BJ7Hojwm.js","./CoP9XEcB.js","./-Dz179kp.js","./DHfvhpat.js","./Ch6_qw5b.js","./d_IM0gte.js","./DHLdr2oY.js","./CHBK5X1w.js","./oC1Mvi0U.js","./CPTuQiBa.js","./CXuqG_J2.js","./BgCckEu3.js","./DctEUaEs.js","./Cehz00B_.js","./D5qUzPtI.js"])))=>i.map(i=>d[i]);
2
+ import{_ as lt}from"./DpBBTLWw.js";import{p as dr}from"./tddw2aQM.js";var go={name:"mermaid",version:"11.12.3",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.23",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}};function ng(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ET(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){var n=!1;try{n=this instanceof i}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Ai={exports:{}},ag=Ai.exports,mo;function sg(){return mo||(mo=1,(function(e,t){(function(r,i){e.exports=i()})(ag,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",u="month",f="quarter",d="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,b={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(T){var L=["th","st","nd","rd"],S=T%100;return"["+T+(L[(S-20)%10]||L[S]||L[0])+"]"}},_=function(T,L,S){var M=String(T);return!M||M.length>=L?T:""+Array(L+1-M.length).join(S)+T},k={s:_,z:function(T){var L=-T.utcOffset(),S=Math.abs(L),M=Math.floor(S/60),$=S%60;return(L<=0?"+":"-")+_(M,2,"0")+":"+_($,2,"0")},m:function T(L,S){if(L.date()<S.date())return-T(S,L);var M=12*(S.year()-L.year())+(S.month()-L.month()),$=L.clone().add(M,u),W=S-$<0,G=L.clone().add(M+(W?-1:1),u);return+(-(M+(S-$)/(W?$-G:G-$))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:u,y:d,w:h,d:c,D:g,h:l,m:o,s,ms:a,Q:f}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},C="en",B={};B[C]=b;var v="$isDayjsObject",E=function(T){return T instanceof R||!(!T||!T[v])},P=function T(L,S,M){var $;if(!L)return C;if(typeof L=="string"){var W=L.toLowerCase();B[W]&&($=W),S&&(B[W]=S,$=W);var G=L.split("-");if(!$&&G.length>1)return T(G[0])}else{var et=L.name;B[et]=L,$=et}return!M&&$&&(C=$),$||!M&&C},D=function(T,L){if(E(T))return T.clone();var S=typeof L=="object"?L:{};return S.date=T,S.args=arguments,new R(S)},F=k;F.l=P,F.i=E,F.w=function(T,L){return D(T,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var R=(function(){function T(S){this.$L=P(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[v]=!0}var L=T.prototype;return L.parse=function(S){this.$d=(function(M){var $=M.date,W=M.utc;if($===null)return new Date(NaN);if(F.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var G=$.match(y);if(G){var et=G[2]-1||0,Z=(G[7]||"0").substring(0,3);return W?new Date(Date.UTC(G[1],et,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Z)):new Date(G[1],et,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Z)}}return new Date($)})(S),this.init()},L.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},L.$utils=function(){return F},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(S,M){var $=D(S);return this.startOf(M)<=$&&$<=this.endOf(M)},L.isAfter=function(S,M){return D(S)<this.startOf(M)},L.isBefore=function(S,M){return this.endOf(M)<D(S)},L.$g=function(S,M,$){return F.u(S)?this[M]:this.set($,S)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(S,M){var $=this,W=!!F.u(M)||M,G=F.p(S),et=function(pe,xt){var ge=F.w($.$u?Date.UTC($.$y,xt,pe):new Date($.$y,xt,pe),$);return W?ge:ge.endOf(c)},Z=function(pe,xt){return F.w($.toDate()[pe].apply($.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(xt)),$)},tt=this.$W,at=this.$M,ct=this.$D,At="set"+(this.$u?"UTC":"");switch(G){case d:return W?et(1,0):et(31,11);case u:return W?et(1,at):et(0,at+1);case h:var Ct=this.$locale().weekStart||0,de=(tt<Ct?tt+7:tt)-Ct;return et(W?ct-de:ct+(6-de),at);case c:case g:return Z(At+"Hours",0);case l:return Z(At+"Minutes",1);case o:return Z(At+"Seconds",2);case s:return Z(At+"Milliseconds",3);default:return this.clone()}},L.endOf=function(S){return this.startOf(S,!1)},L.$set=function(S,M){var $,W=F.p(S),G="set"+(this.$u?"UTC":""),et=($={},$[c]=G+"Date",$[g]=G+"Date",$[u]=G+"Month",$[d]=G+"FullYear",$[l]=G+"Hours",$[o]=G+"Minutes",$[s]=G+"Seconds",$[a]=G+"Milliseconds",$)[W],Z=W===c?this.$D+(M-this.$W):M;if(W===u||W===d){var tt=this.clone().set(g,1);tt.$d[et](Z),tt.init(),this.$d=tt.set(g,Math.min(this.$D,tt.daysInMonth())).$d}else et&&this.$d[et](Z);return this.init(),this},L.set=function(S,M){return this.clone().$set(S,M)},L.get=function(S){return this[F.p(S)]()},L.add=function(S,M){var $,W=this;S=Number(S);var G=F.p(M),et=function(at){var ct=D(W);return F.w(ct.date(ct.date()+Math.round(at*S)),W)};if(G===u)return this.set(u,this.$M+S);if(G===d)return this.set(d,this.$y+S);if(G===c)return et(1);if(G===h)return et(7);var Z=($={},$[o]=i,$[l]=n,$[s]=r,$)[G]||1,tt=this.$d.getTime()+S*Z;return F.w(tt,this)},L.subtract=function(S,M){return this.add(-1*S,M)},L.format=function(S){var M=this,$=this.$locale();if(!this.isValid())return $.invalidDate||m;var W=S||"YYYY-MM-DDTHH:mm:ssZ",G=F.z(this),et=this.$H,Z=this.$m,tt=this.$M,at=$.weekdays,ct=$.months,At=$.meridiem,Ct=function(xt,ge,Lr,bi){return xt&&(xt[ge]||xt(M,W))||Lr[ge].slice(0,bi)},de=function(xt){return F.s(et%12||12,xt,"0")},pe=At||function(xt,ge,Lr){var bi=xt<12?"AM":"PM";return Lr?bi.toLowerCase():bi};return W.replace(x,(function(xt,ge){return ge||(function(Lr){switch(Lr){case"YY":return String(M.$y).slice(-2);case"YYYY":return F.s(M.$y,4,"0");case"M":return tt+1;case"MM":return F.s(tt+1,2,"0");case"MMM":return Ct($.monthsShort,tt,ct,3);case"MMMM":return Ct(ct,tt);case"D":return M.$D;case"DD":return F.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return Ct($.weekdaysMin,M.$W,at,2);case"ddd":return Ct($.weekdaysShort,M.$W,at,3);case"dddd":return at[M.$W];case"H":return String(et);case"HH":return F.s(et,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return pe(et,Z,!0);case"A":return pe(et,Z,!1);case"m":return String(Z);case"mm":return F.s(Z,2,"0");case"s":return String(M.$s);case"ss":return F.s(M.$s,2,"0");case"SSS":return F.s(M.$ms,3,"0");case"Z":return G}return null})(xt)||G.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(S,M,$){var W,G=this,et=F.p(M),Z=D(S),tt=(Z.utcOffset()-this.utcOffset())*i,at=this-Z,ct=function(){return F.m(G,Z)};switch(et){case d:W=ct()/12;break;case u:W=ct();break;case f:W=ct()/3;break;case h:W=(at-tt)/6048e5;break;case c:W=(at-tt)/864e5;break;case l:W=at/n;break;case o:W=at/i;break;case s:W=at/r;break;default:W=at}return $?W:F.a(W)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return B[this.$L]},L.locale=function(S,M){if(!S)return this.$L;var $=this.clone(),W=P(S,M,!0);return W&&($.$L=W),$},L.clone=function(){return F.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},T})(),O=R.prototype;return D.prototype=O,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",u],["$y",d],["$D",g]].forEach((function(T){O[T[1]]=function(L){return this.$g(L,T[0],T[1])}})),D.extend=function(T,L){return T.$i||(T(L,R,D),T.$i=!0),D},D.locale=P,D.isDayjs=E,D.unix=function(T){return D(1e3*T)},D.en=B[C],D.Ls=B,D.p={},D}))})(Ai)),Ai.exports}var og=sg();const lg=ng(og);var Hl=Object.defineProperty,p=(e,t)=>Hl(e,"name",{value:t,configurable:!0}),cg=(e,t)=>{for(var r in t)Hl(e,r,{get:t[r],enumerable:!0})},ie={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},A={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},fs=p(function(e="fatal"){let t=ie.fatal;typeof e=="string"?e.toLowerCase()in ie&&(t=ie[e]):typeof e=="number"&&(t=e),A.trace=()=>{},A.debug=()=>{},A.info=()=>{},A.warn=()=>{},A.error=()=>{},A.fatal=()=>{},t<=ie.fatal&&(A.fatal=console.error?console.error.bind(console,It("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",It("FATAL"))),t<=ie.error&&(A.error=console.error?console.error.bind(console,It("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",It("ERROR"))),t<=ie.warn&&(A.warn=console.warn?console.warn.bind(console,It("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",It("WARN"))),t<=ie.info&&(A.info=console.info?console.info.bind(console,It("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",It("INFO"))),t<=ie.debug&&(A.debug=console.debug?console.debug.bind(console,It("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",It("DEBUG"))),t<=ie.trace&&(A.trace=console.debug?console.debug.bind(console,It("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",It("TRACE")))},"setLogLevel"),It=p(e=>`%c${lg().format("ss.SSS")} : ${e} : `,"format");const Fi={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Fi.hue2rgb(a,n,e+1/3)*255;case"g":return Fi.hue2rgb(a,n,e)*255;case"b":return Fi.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},hg={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},ug={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},J={channel:Fi,lang:hg,unit:ug},me={};for(let e=0;e<=255;e++)me[e]=J.unit.dec2hex(e);const wt={ALL:0,RGB:1,HSL:2};class fg{constructor(){this.type=wt.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=wt.ALL}is(t){return this.type===t}}class dg{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new fg}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=wt.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=J.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=J.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=J.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=J.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=J.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=J.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(wt.HSL)&&r!==void 0?r:(this._ensureHSL(),J.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(wt.HSL)&&r!==void 0?r:(this._ensureHSL(),J.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(wt.HSL)&&r!==void 0?r:(this._ensureHSL(),J.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(wt.RGB)&&r!==void 0?r:(this._ensureRGB(),J.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(wt.RGB)&&r!==void 0?r:(this._ensureRGB(),J.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(wt.RGB)&&r!==void 0?r:(this._ensureRGB(),J.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(wt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(wt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(wt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(wt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(wt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(wt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Ln=new dg({r:0,g:0,b:0,a:0},"transparent"),rr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(rr.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return Ln.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${me[Math.round(t)]}${me[Math.round(r)]}${me[Math.round(i)]}${me[Math.round(n*255)]}`:`#${me[Math.round(t)]}${me[Math.round(r)]}${me[Math.round(i)]}`}},Fe={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:e=>{const t=e.match(Fe.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return J.channel.clamp.h(parseFloat(r)*.9);case"rad":return J.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return J.channel.clamp.h(parseFloat(r)*360)}}return J.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Fe.re);if(!r)return;const[,i,n,a,s,o]=r;return Ln.set({h:Fe._hue2deg(i),s:J.channel.clamp.s(parseFloat(n)),l:J.channel.clamp.l(parseFloat(a)),a:s?J.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${J.lang.round(t)}, ${J.lang.round(r)}%, ${J.lang.round(i)}%, ${n})`:`hsl(${J.lang.round(t)}, ${J.lang.round(r)}%, ${J.lang.round(i)}%)`}},jr={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:e=>{e=e.toLowerCase();const t=jr.colors[e];if(t)return rr.parse(t)},stringify:e=>{const t=rr.stringify(e);for(const r in jr.colors)if(jr.colors[r]===t)return r}},Or={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Or.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return Ln.set({r:J.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:J.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:J.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?J.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${J.lang.round(t)}, ${J.lang.round(r)}, ${J.lang.round(i)}, ${J.lang.round(n)})`:`rgb(${J.lang.round(t)}, ${J.lang.round(r)}, ${J.lang.round(i)})`}},Jt={format:{keyword:jr,hex:rr,rgb:Or,rgba:Or,hsl:Fe,hsla:Fe},parse:e=>{if(typeof e!="string")return e;const t=rr.parse(e)||Or.parse(e)||Fe.parse(e)||jr.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(wt.HSL)||e.data.r===void 0?Fe.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Or.stringify(e):rr.stringify(e)},jl=(e,t)=>{const r=Jt.parse(e);for(const i in t)r[i]=J.channel.clamp[i](t[i]);return Jt.stringify(r)},Yr=(e,t,r=0,i=1)=>{if(typeof e!="number")return jl(e,{a:t});const n=Ln.set({r:J.channel.clamp.r(e),g:J.channel.clamp.g(t),b:J.channel.clamp.b(r),a:J.channel.clamp.a(i)});return Jt.stringify(n)},pg=e=>{const{r:t,g:r,b:i}=Jt.parse(e),n=.2126*J.channel.toLinear(t)+.7152*J.channel.toLinear(r)+.0722*J.channel.toLinear(i);return J.lang.round(n)},gg=e=>pg(e)>=.5,ci=e=>!gg(e),Yl=(e,t,r)=>{const i=Jt.parse(e),n=i[t],a=J.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Jt.stringify(i)},z=(e,t)=>Yl(e,"l",t),U=(e,t)=>Yl(e,"l",-t),w=(e,t)=>{const r=Jt.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return jl(e,i)},mg=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=Jt.parse(e),{r:o,g:l,b:c,a:h}=Jt.parse(t),u=r/100,f=u*2-1,d=s-h,m=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,y=1-m,x=i*m+o*y,b=n*m+l*y,_=a*m+c*y,k=s*u+h*(1-u);return Yr(x,b,_,k)},I=(e,t=100)=>{const r=Jt.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,mg(r,e,t)};var Gl=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Gr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yg=/\s*%%.*\n/gm,ar,Vl=(ar=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(ar,"UnknownDiagramError"),ar),Ne={},ds=p(function(e,t){e=e.replace(Gl,"").replace(Gr,"").replace(yg,`
3
+ `);for(const[r,{detector:i}]of Object.entries(Ne))if(i(e,t))return r;throw new Vl(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),ma=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)Ul(t,r,i)},"registerLazyLoadedDiagrams"),Ul=p((e,t,r)=>{Ne[e]&&A.warn(`Detector with key ${e} already exists. Overwriting.`),Ne[e]={detector:t,loader:r},A.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),xg=p(e=>Ne[e].loader,"getDiagramLoader"),ya=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>ya(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=ya(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),gt=ya,$n="#ffffff",Mn="#f2f2f2",Lt=p((e,t)=>t?w(e,{s:-40,l:10}):w(e,{s:-40,l:-10}),"mkBorder"),sr,bg=(sr=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(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?U(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||this.actorBorder,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||U(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(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||z(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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||U(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||U(this.mainBkg,10)):(this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,5)),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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=U(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=U(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||I(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||U(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||w(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||w(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(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.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ci(this.quadrant1Fill)?z(this.quadrant1Fill):U(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?U(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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=U(this.git0,25),this.git1=U(this.git1,25),this.git2=U(this.git2,25),this.git3=U(this.git3,25),this.git4=U(this.git4,25),this.git5=U(this.git5,25),this.git6=U(this.git6,25),this.git7=U(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||$n,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mn}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(sr,"Theme"),sr),_g=p(e=>{const t=new bg;return t.calculate(e),t},"getThemeVariables"),or,Cg=(or=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(I("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Yr(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=U("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=U(this.sectionBkgColor,10),this.taskBorderColor=Yr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Yr(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||z(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||U(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=z(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=z(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=z(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||I(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ci(this.quadrant1Fill)?z(this.quadrant1Fill):U(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},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?U(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.secondaryColor,20),this.git1=z(this.pie2||this.secondaryColor,20),this.git2=z(this.pie3||this.tertiaryColor,20),this.git3=z(this.pie4||w(this.primaryColor,{h:-30}),20),this.git4=z(this.pie5||w(this.primaryColor,{h:-60}),20),this.git5=z(this.pie6||w(this.primaryColor,{h:-90}),10),this.git6=z(this.pie7||w(this.primaryColor,{h:60}),10),this.git7=z(this.pie8||w(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||z(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||z(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(or,"Theme"),or),wg=p(e=>{const t=new Cg;return t.calculate(e),t},"getThemeVariables"),lr,kg=(lr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=w(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(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="rgba(232,232,232, 0.8)",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="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="#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.vertLineColor="calculated",this.sectionBkgColor=Yr(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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||U(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||U(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=U(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||U(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||w(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||I(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||I(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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=z(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||z(this.primaryColor,1),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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||w(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||w(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||w(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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ci(this.quadrant1Fill)?z(this.quadrant1Fill):U(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.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=U(this.git0,25),this.git1=U(this.git1,25),this.git2=U(this.git2,25),this.git3=U(this.git3,25),this.git4=U(this.git4,25),this.git5=U(this.git5,25),this.git6=U(this.git6,25),this.git7=U(this.git7,25)),this.gitInv0=this.gitInv0||U(I(this.git0),25),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||$n,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mn}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(lr,"Theme"),lr),vg=p(e=>{const t=new kg;return t.calculate(e),t},"getThemeVariables"),cr,Sg=(cr=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=z("#cde498",10),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.primaryColor),this.lineColor=I(this.background),this.textColor=I(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="calculated",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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=U(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||U(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||U(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=U(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||U(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||w(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,s:-30,l:-(8+t*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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,20),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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{l:-30}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||w(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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ci(this.quadrant1Fill)?z(this.quadrant1Fill):U(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.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=U(this.git0,25),this.git1=U(this.git1,25),this.git2=U(this.git2,25),this.git3=U(this.git3,25),this.git4=U(this.git4,25),this.git5=U(this.git5,25),this.git6=U(this.git6,25),this.git7=U(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||$n,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mn}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(cr,"Theme"),cr),Tg=p(e=>{const t=new Sg;return t.calculate(e),t},"getThemeVariables"),hr,Bg=(hr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=z(this.contrast,55),this.background="#ffffff",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(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=this.actorBorder,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=z(this.contrast,55),this.border2=this.contrast,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||I(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||U(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{l:-(8+t*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=z(this.contrast,30),this.sectionBkgColor2=z(this.contrast,30),this.taskBorderColor=U(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=z(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=U(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ci(this.quadrant1Fill)?z(this.quadrant1Fill):U(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},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=U(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||w(this.primaryColor,{h:-30}),this.git4=this.pie5||w(this.primaryColor,{h:-60}),this.git5=this.pie6||w(this.primaryColor,{h:-90}),this.git6=this.pie7||w(this.primaryColor,{h:60}),this.git7=this.pie8||w(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||$n,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mn}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(hr,"Theme"),hr),Lg=p(e=>{const t=new Bg;return t.calculate(e),t},"getThemeVariables"),oe={base:{getThemeVariables:_g},dark:{getThemeVariables:wg},default:{getThemeVariables:vg},forest:{getThemeVariables:Tg},neutral:{getThemeVariables:Lg}},Ut={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,inheritDir:!1},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,maxLabelWidth:360,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!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,nodeSpacing:140,rankSpacing:80,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,showDataLabel:!1,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,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},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},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",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","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Xl={...Ut,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:oe.default.getThemeVariables(),sequence:{...Ut.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ut.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ut.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ut.pie,useWidth:984},xyChart:{...Ut.xyChart,useWidth:void 0},requirement:{...Ut.requirement,useWidth:void 0},packet:{...Ut.packet},radar:{...Ut.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Zl=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Zl(e[i],"")]:[...r,t+i],[]),"keyify"),$g=new Set(Zl(Xl,"")),Kl=Xl,Yi=p(e=>{if(A.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Yi(t));return}for(const t of Object.keys(e)){if(A.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!$g.has(t)||e[t]==null){A.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){A.debug("sanitizing object",t),Yi(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(A.debug("sanitizing css option",t),e[t]=Mg(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}A.debug("After sanitization",e)}},"sanitizeDirective"),Mg=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),pr=Object.freeze(Kl),Et=gt({},pr),Gi,ze=[],Vr=gt({},pr),An=p((e,t)=>{let r=gt({},e),i={};for(const n of t)tc(n),i=gt(i,n);if(r=gt(r,i),i.theme&&i.theme in oe){const n=gt({},Gi),a=gt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in oe&&(r.themeVariables=oe[r.theme].getThemeVariables(a))}return Vr=r,ec(Vr),Vr},"updateCurrentConfig"),Ag=p(e=>(Et=gt({},pr),Et=gt(Et,e),e.theme&&oe[e.theme]&&(Et.themeVariables=oe[e.theme].getThemeVariables(e.themeVariables)),An(Et,ze),Et),"setSiteConfig"),Fg=p(e=>{Gi=gt({},e)},"saveConfigFromInitialize"),Eg=p(e=>(Et=gt(Et,e),An(Et,ze),Et),"updateSiteConfig"),Ql=p(()=>gt({},Et),"getSiteConfig"),Jl=p(e=>(ec(e),gt(Vr,e),vt()),"setConfig"),vt=p(()=>gt({},Vr),"getConfig"),tc=p(e=>{e&&(["secure",...Et.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(A.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&tc(e[t])}))},"sanitize"),Dg=p(e=>{Yi(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),ze.push(e),An(Et,ze)},"addDirective"),Vi=p((e=Et)=>{ze=[],An(e,ze)},"reset"),Og={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},yo={},Pg=p(e=>{yo[e]||(A.warn(Og[e]),yo[e]=!0)},"issueWarning"),ec=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Pg("LAZY_LOAD_DEPRECATED")},"checkConfig"),DT=p(()=>{let e={};Gi&&(e=gt(e,Gi));for(const t of ze)e=gt(e,t);return e},"getUserDefinedConfig"),hi=/<br\s*\/?>/gi,Rg=p(e=>e?nc(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Ig=(()=>{let e=!1;return()=>{e||(rc(),e=!0)}})();function rc(){const e="data-temp-href-target";dr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),dr.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(rc,"setupDompurifyHooks");var ic=p(e=>(Ig(),dr.sanitize(e)),"removeScript"),xo=p((e,t)=>{if(t.flowchart?.htmlLabels!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=ic(e):r!=="loose"&&(e=nc(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Wg(e))}return e},"sanitizeMore"),Nt=p((e,t)=>e&&(t.dompurifyConfig?e=dr.sanitize(xo(e,t),t.dompurifyConfig).toString():e=dr.sanitize(xo(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Ng=p((e,t)=>typeof e=="string"?Nt(e,t):e.flat().map(r=>Nt(r,t)),"sanitizeTextOrArray"),zg=p(e=>hi.test(e),"hasBreaks"),qg=p(e=>e.split(hi),"splitBreaks"),Wg=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),nc=p(e=>e.replace(hi,"#br#"),"breakToPlaceholder"),Hg=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),yt=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),jg=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Yg=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),bo=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],s=t[i+1];Gg(a,s)&&(n=a+","+s,i++,r.pop())}r.push(Vg(n))}return r.join("")},"parseGenericTypes"),xa=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Gg=p((e,t)=>{const r=xa(e,"~"),i=xa(t,"~");return r===1&&i===1},"shouldCombineSets"),Vg=p(e=>{const t=xa(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),_o=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),ba=/\$\$(.*)\$\$/g,gr=p(e=>(e.match(ba)?.length??0)>0,"hasKatex"),OT=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await ps(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),Ug=p(async(e,t)=>{if(!gr(e))return e;if(!(_o()||t.legacyMathML||t.forceLegacyMathML))return e.replace(ba,"MathML is unsupported in this environment.");{const{default:r}=await lt(async()=>{const{default:n}=await import("./DhXJpUyf.js");return{default:n}},[],import.meta.url),i=t.forceLegacyMathML||!_o()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(hi).map(n=>gr(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(ba,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),ps=p(async(e,t)=>Nt(await Ug(e,t),t),"renderKatexSanitized"),wr={getRows:Rg,sanitizeText:Nt,sanitizeTextOrArray:Ng,hasBreaks:zg,splitBreaks:qg,lineBreakRegex:hi,removeScript:ic,getUrl:Hg,evaluate:yt,getMax:jg,getMin:Yg},Xg=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Zg=p(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),ac=p(function(e,t,r,i){const n=Zg(t,r,i);Xg(e,n)},"configureSvgSize"),Kg=p(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,s=n.height;A.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;A.info(`Graph bounds: ${o}x${l}`,e),o=a+r*2,l=s+r*2,A.info(`Calculated bounds: ${o}x${l}`),ac(t,l,o,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Ei={},Qg=p((e,t,r)=>{let i="";return e in Ei&&Ei[e]?i=Ei[e](r):A.warn(`No theme found for ${e}`),` & {
4
+ font-family: ${r.fontFamily};
5
+ font-size: ${r.fontSize};
6
+ fill: ${r.textColor}
7
+ }
8
+ @keyframes edge-animation-frame {
9
+ from {
10
+ stroke-dashoffset: 0;
11
+ }
12
+ }
13
+ @keyframes dash {
14
+ to {
15
+ stroke-dashoffset: 0;
16
+ }
17
+ }
18
+ & .edge-animation-slow {
19
+ stroke-dasharray: 9,5 !important;
20
+ stroke-dashoffset: 900;
21
+ animation: dash 50s linear infinite;
22
+ stroke-linecap: round;
23
+ }
24
+ & .edge-animation-fast {
25
+ stroke-dasharray: 9,5 !important;
26
+ stroke-dashoffset: 900;
27
+ animation: dash 20s linear infinite;
28
+ stroke-linecap: round;
29
+ }
30
+ /* Classes common for multiple diagrams */
31
+
32
+ & .error-icon {
33
+ fill: ${r.errorBkgColor};
34
+ }
35
+ & .error-text {
36
+ fill: ${r.errorTextColor};
37
+ stroke: ${r.errorTextColor};
38
+ }
39
+
40
+ & .edge-thickness-normal {
41
+ stroke-width: 1px;
42
+ }
43
+ & .edge-thickness-thick {
44
+ stroke-width: 3.5px
45
+ }
46
+ & .edge-pattern-solid {
47
+ stroke-dasharray: 0;
48
+ }
49
+ & .edge-thickness-invisible {
50
+ stroke-width: 0;
51
+ fill: none;
52
+ }
53
+ & .edge-pattern-dashed{
54
+ stroke-dasharray: 3;
55
+ }
56
+ .edge-pattern-dotted {
57
+ stroke-dasharray: 2;
58
+ }
59
+
60
+ & .marker {
61
+ fill: ${r.lineColor};
62
+ stroke: ${r.lineColor};
63
+ }
64
+ & .marker.cross {
65
+ stroke: ${r.lineColor};
66
+ }
67
+
68
+ & svg {
69
+ font-family: ${r.fontFamily};
70
+ font-size: ${r.fontSize};
71
+ }
72
+ & p {
73
+ margin: 0
74
+ }
75
+
76
+ ${i}
77
+
78
+ ${t}
79
+ `},"getStyles"),Jg=p((e,t)=>{t!==void 0&&(Ei[e]=t)},"addStylesForDiagram"),t0=Qg,sc={};cg(sc,{clear:()=>e0,getAccDescription:()=>a0,getAccTitle:()=>i0,getDiagramTitle:()=>o0,setAccDescription:()=>n0,setAccTitle:()=>r0,setDiagramTitle:()=>s0});var gs="",ms="",ys="",xs=p(e=>Nt(e,vt()),"sanitizeText"),e0=p(()=>{gs="",ys="",ms=""},"clear"),r0=p(e=>{gs=xs(e).replace(/^\s+/g,"")},"setAccTitle"),i0=p(()=>gs,"getAccTitle"),n0=p(e=>{ys=xs(e).replace(/\n\s+/g,`
80
+ `)},"setAccDescription"),a0=p(()=>ys,"getAccDescription"),s0=p(e=>{ms=xs(e)},"setDiagramTitle"),o0=p(()=>ms,"getDiagramTitle"),Co=A,l0=fs,st=vt,PT=Jl,RT=pr,bs=p(e=>Nt(e,st()),"sanitizeText"),c0=Kg,h0=p(()=>sc,"getCommonDb"),Ui={},Xi=p((e,t,r)=>{Ui[e]&&Co.warn(`Diagram with id ${e} already registered. Overwriting.`),Ui[e]=t,r&&Ul(e,r),Jg(e,t.styles),t.injectUtils?.(Co,l0,st,bs,c0,h0(),()=>{})},"registerDiagram"),_a=p(e=>{if(e in Ui)return Ui[e];throw new u0(e)},"getDiagram"),ur,u0=(ur=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p(ur,"DiagramNotFoundError"),ur),f0={value:()=>{}};function oc(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Di(r)}function Di(e){this._=e}function d0(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Di.prototype=oc.prototype={constructor:Di,on:function(e,t){var r=this._,i=d0(e+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=p0(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=wo(r[n],e.name,t);else if(t==null)for(n in r)r[n]=wo(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Di(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function p0(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function wo(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=f0,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ca="http://www.w3.org/1999/xhtml";const ko={svg:"http://www.w3.org/2000/svg",xhtml:Ca,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fn(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ko.hasOwnProperty(t)?{space:ko[t],local:e}:e}function g0(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Ca&&t.documentElement.namespaceURI===Ca?t.createElement(e):t.createElementNS(r,e)}}function m0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function lc(e){var t=Fn(e);return(t.local?m0:g0)(t)}function y0(){}function _s(e){return e==null?y0:function(){return this.querySelector(e)}}function x0(e){typeof e!="function"&&(e=_s(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=new Array(s),l,c,h=0;h<s;++h)(l=a[h])&&(c=e.call(l,l.__data__,h,a))&&("__data__"in l&&(c.__data__=l.__data__),o[h]=c);return new Rt(i,this._parents)}function b0(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _0(){return[]}function cc(e){return e==null?_0:function(){return this.querySelectorAll(e)}}function C0(e){return function(){return b0(e.apply(this,arguments))}}function w0(e){typeof e=="function"?e=C0(e):e=cc(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var s=t[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(i.push(e.call(l,l.__data__,c,s)),n.push(l));return new Rt(i,n)}function hc(e){return function(){return this.matches(e)}}function uc(e){return function(t){return t.matches(e)}}var k0=Array.prototype.find;function v0(e){return function(){return k0.call(this.children,e)}}function S0(){return this.firstElementChild}function T0(e){return this.select(e==null?S0:v0(typeof e=="function"?e:uc(e)))}var B0=Array.prototype.filter;function L0(){return Array.from(this.children)}function $0(e){return function(){return B0.call(this.children,e)}}function M0(e){return this.selectAll(e==null?L0:$0(typeof e=="function"?e:uc(e)))}function A0(e){typeof e!="function"&&(e=hc(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new Rt(i,this._parents)}function fc(e){return new Array(e.length)}function F0(){return new Rt(this._enter||this._groups.map(fc),this._parents)}function Zi(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Zi.prototype={constructor:Zi,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function E0(e){return function(){return e}}function D0(e,t,r,i,n,a){for(var s=0,o,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],i[s]=o):r[s]=new Zi(e,a[s]);for(;s<l;++s)(o=t[s])&&(n[s]=o)}function O0(e,t,r,i,n,a,s){var o,l,c=new Map,h=t.length,u=a.length,f=new Array(h),d;for(o=0;o<h;++o)(l=t[o])&&(f[o]=d=s.call(l,l.__data__,o,t)+"",c.has(d)?n[o]=l:c.set(d,l));for(o=0;o<u;++o)d=s.call(e,a[o],o,a)+"",(l=c.get(d))?(i[o]=l,l.__data__=a[o],c.delete(d)):r[o]=new Zi(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&c.get(f[o])===l&&(n[o]=l)}function P0(e){return e.__data__}function R0(e,t){if(!arguments.length)return Array.from(this,P0);var r=t?O0:D0,i=this._parents,n=this._groups;typeof e!="function"&&(e=E0(e));for(var a=n.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],u=n[c],f=u.length,d=I0(e.call(h,h&&h.__data__,c,i)),g=d.length,m=o[c]=new Array(g),y=s[c]=new Array(g),x=l[c]=new Array(f);r(h,u,m,y,x,d,t);for(var b=0,_=0,k,C;b<g;++b)if(k=m[b]){for(b>=_&&(_=b+1);!(C=y[_])&&++_<g;);k._next=C||null}}return s=new Rt(s,i),s._enter=o,s._exit=l,s}function I0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N0(){return new Rt(this._exit||this._groups.map(fc),this._parents)}function z0(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function q0(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,s=Math.min(n,a),o=new Array(n),l=0;l<s;++l)for(var c=r[l],h=i[l],u=c.length,f=o[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<n;++l)o[l]=r[l];return new Rt(o,this._parents)}function W0(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],s;--n>=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function H0(e){e||(e=j0);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var s=r[a],o=s.length,l=n[a]=new Array(o),c,h=0;h<o;++h)(c=s[h])&&(l[h]=c);l.sort(t)}return new Rt(n,this._parents).order()}function j0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Y0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function G0(){return Array.from(this)}function V0(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var s=i[n];if(s)return s}return null}function U0(){let e=0;for(const t of this)++e;return e}function X0(){return!this.node()}function Z0(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,s=n.length,o;a<s;++a)(o=n[a])&&e.call(o,o.__data__,a,n);return this}function K0(e){return function(){this.removeAttribute(e)}}function Q0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function J0(e,t){return function(){this.setAttribute(e,t)}}function tm(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function em(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function rm(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function im(e,t){var r=Fn(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Q0:K0:typeof t=="function"?r.local?rm:em:r.local?tm:J0)(r,t))}function dc(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function nm(e){return function(){this.style.removeProperty(e)}}function am(e,t,r){return function(){this.style.setProperty(e,t,r)}}function sm(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function om(e,t,r){return arguments.length>1?this.each((t==null?nm:typeof t=="function"?sm:am)(e,t,r??"")):mr(this.node(),e)}function mr(e,t){return e.style.getPropertyValue(t)||dc(e).getComputedStyle(e,null).getPropertyValue(t)}function lm(e){return function(){delete this[e]}}function cm(e,t){return function(){this[e]=t}}function hm(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function um(e,t){return arguments.length>1?this.each((t==null?lm:typeof t=="function"?hm:cm)(e,t)):this.node()[e]}function pc(e){return e.trim().split(/^|\s+/)}function Cs(e){return e.classList||new gc(e)}function gc(e){this._node=e,this._names=pc(e.getAttribute("class")||"")}gc.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function mc(e,t){for(var r=Cs(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function yc(e,t){for(var r=Cs(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function fm(e){return function(){mc(this,e)}}function dm(e){return function(){yc(this,e)}}function pm(e,t){return function(){(t.apply(this,arguments)?mc:yc)(this,e)}}function gm(e,t){var r=pc(e+"");if(arguments.length<2){for(var i=Cs(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?pm:t?fm:dm)(r,t))}function mm(){this.textContent=""}function ym(e){return function(){this.textContent=e}}function xm(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function bm(e){return arguments.length?this.each(e==null?mm:(typeof e=="function"?xm:ym)(e)):this.node().textContent}function _m(){this.innerHTML=""}function Cm(e){return function(){this.innerHTML=e}}function wm(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function km(e){return arguments.length?this.each(e==null?_m:(typeof e=="function"?wm:Cm)(e)):this.node().innerHTML}function vm(){this.nextSibling&&this.parentNode.appendChild(this)}function Sm(){return this.each(vm)}function Tm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bm(){return this.each(Tm)}function Lm(e){var t=typeof e=="function"?e:lc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $m(){return null}function Mm(e,t){var r=typeof e=="function"?e:lc(e),i=t==null?$m:typeof t=="function"?t:_s(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Am(){var e=this.parentNode;e&&e.removeChild(this)}function Fm(){return this.each(Am)}function Em(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Dm(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Om(e){return this.select(e?Dm:Em)}function Pm(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Rm(e){return function(t){e.call(this,t,this.__data__)}}function Im(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function Nm(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function zm(e,t,r){return function(){var i=this.__on,n,a=Rm(t);if(i){for(var s=0,o=i.length;s<o;++s)if((n=i[s]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function qm(e,t,r){var i=Im(e+""),n,a=i.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,h;l<c;++l)for(n=0,h=o[l];n<a;++n)if((s=i[n]).type===h.type&&s.name===h.name)return h.value}return}for(o=t?zm:Nm,n=0;n<a;++n)this.each(o(i[n],t,r));return this}function xc(e,t,r){var i=dc(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function Wm(e,t){return function(){return xc(this,e,t)}}function Hm(e,t){return function(){return xc(this,e,t.apply(this,arguments))}}function jm(e,t){return this.each((typeof t=="function"?Hm:Wm)(e,t))}function*Ym(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,s;n<a;++n)(s=i[n])&&(yield s)}var bc=[null];function Rt(e,t){this._groups=e,this._parents=t}function ui(){return new Rt([[document.documentElement]],bc)}function Gm(){return this}Rt.prototype=ui.prototype={constructor:Rt,select:x0,selectAll:w0,selectChild:T0,selectChildren:M0,filter:A0,data:R0,enter:F0,exit:N0,join:z0,merge:q0,selection:Gm,order:W0,sort:H0,call:Y0,nodes:G0,node:V0,size:U0,empty:X0,each:Z0,attr:im,style:om,property:um,classed:gm,text:bm,html:km,raise:Sm,lower:Bm,append:Lm,insert:Mm,remove:Fm,clone:Om,datum:Pm,on:qm,dispatch:jm,[Symbol.iterator]:Ym};function it(e){return typeof e=="string"?new Rt([[document.querySelector(e)]],[document.documentElement]):new Rt([[e]],bc)}function ws(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _c(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function fi(){}var Zr=.7,Ki=1/Zr,ir="\\s*([+-]?\\d+)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vm=/^#([0-9a-f]{3,8})$/,Um=new RegExp(`^rgb\\(${ir},${ir},${ir}\\)$`),Xm=new RegExp(`^rgb\\(${Qt},${Qt},${Qt}\\)$`),Zm=new RegExp(`^rgba\\(${ir},${ir},${ir},${Kr}\\)$`),Km=new RegExp(`^rgba\\(${Qt},${Qt},${Qt},${Kr}\\)$`),Qm=new RegExp(`^hsl\\(${Kr},${Qt},${Qt}\\)$`),Jm=new RegExp(`^hsla\\(${Kr},${Qt},${Qt},${Kr}\\)$`),vo={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};ws(fi,Qr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:So,formatHex:So,formatHex8:ty,formatHsl:ey,formatRgb:To,toString:To});function So(){return this.rgb().formatHex()}function ty(){return this.rgb().formatHex8()}function ey(){return Cc(this).formatHsl()}function To(){return this.rgb().formatRgb()}function Qr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Bo(t):r===3?new Ot(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_i(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_i(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Um.exec(e))?new Ot(t[1],t[2],t[3],1):(t=Xm.exec(e))?new Ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Zm.exec(e))?_i(t[1],t[2],t[3],t[4]):(t=Km.exec(e))?_i(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qm.exec(e))?Mo(t[1],t[2]/100,t[3]/100,1):(t=Jm.exec(e))?Mo(t[1],t[2]/100,t[3]/100,t[4]):vo.hasOwnProperty(e)?Bo(vo[e]):e==="transparent"?new Ot(NaN,NaN,NaN,0):null}function Bo(e){return new Ot(e>>16&255,e>>8&255,e&255,1)}function _i(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ot(e,t,r,i)}function ry(e){return e instanceof fi||(e=Qr(e)),e?(e=e.rgb(),new Ot(e.r,e.g,e.b,e.opacity)):new Ot}function wa(e,t,r,i){return arguments.length===1?ry(e):new Ot(e,t,r,i??1)}function Ot(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}ws(Ot,wa,_c(fi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zr:Math.pow(Zr,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ot(Re(this.r),Re(this.g),Re(this.b),Qi(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:Lo,formatHex:Lo,formatHex8:iy,formatRgb:$o,toString:$o}));function Lo(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function iy(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee((isNaN(this.opacity)?1:this.opacity)*255)}`}function $o(){const e=Qi(this.opacity);return`${e===1?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${e===1?")":`, ${e})`}`}function Qi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ee(e){return e=Re(e),(e<16?"0":"")+e.toString(16)}function Mo(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ht(e,t,r,i)}function Cc(e){if(e instanceof Ht)return new Ht(e.h,e.s,e.l,e.opacity);if(e instanceof fi||(e=Qr(e)),!e)return new Ht;if(e instanceof Ht)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),s=NaN,o=a-n,l=(a+n)/2;return o?(t===a?s=(r-i)/o+(r<i)*6:r===a?s=(i-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+n:2-a-n,s*=60):o=l>0&&l<1?0:s,new Ht(s,o,l,e.opacity)}function ny(e,t,r,i){return arguments.length===1?Cc(e):new Ht(e,t,r,i??1)}function Ht(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}ws(Ht,ny,_c(fi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new Ht(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zr:Math.pow(Zr,e),new Ht(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Ot(ea(e>=240?e-240:e+120,n,i),ea(e,n,i),ea(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new Ht(Ao(this.h),Ci(this.s),Ci(this.l),Qi(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 e=Qi(this.opacity);return`${e===1?"hsl(":"hsla("}${Ao(this.h)}, ${Ci(this.s)*100}%, ${Ci(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ao(e){return e=(e||0)%360,e<0?e+360:e}function Ci(e){return Math.max(0,Math.min(1,e||0))}function ea(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ks=e=>()=>e;function wc(e,t){return function(r){return e+r*t}}function ay(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function IT(e,t){var r=t-e;return r?wc(e,r>180||r<-180?r-360*Math.round(r/360):r):ks(isNaN(e)?t:e)}function sy(e){return(e=+e)==1?kc:function(t,r){return r-t?ay(t,r,e):ks(isNaN(t)?r:t)}}function kc(e,t){var r=t-e;return r?wc(e,r):ks(isNaN(e)?t:e)}const Fo=(function e(t){var r=sy(t);function i(n,a){var s=r((n=wa(n)).r,(a=wa(a)).r),o=r(n.g,a.g),l=r(n.b,a.b),c=kc(n.opacity,a.opacity);return function(h){return n.r=s(h),n.g=o(h),n.b=l(h),n.opacity=c(h),n+""}}return i.gamma=e,i})(1);function ye(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var ka=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ra=new RegExp(ka.source,"g");function oy(e){return function(){return e}}function ly(e){return function(t){return e(t)+""}}function cy(e,t){var r=ka.lastIndex=ra.lastIndex=0,i,n,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(i=ka.exec(e))&&(n=ra.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(i=i[0])===(n=n[0])?o[s]?o[s]+=n:o[++s]=n:(o[++s]=null,l.push({i:s,x:ye(i,n)})),r=ra.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?ly(l[0].x):oy(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)o[(u=l[h]).i]=u.x(c);return o.join("")})}var Eo=180/Math.PI,va={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vc(e,t,r,i,n,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),e*i<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*Eo,skewX:Math.atan(l)*Eo,scaleX:s,scaleY:o}}var wi;function hy(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?va:vc(t.a,t.b,t.c,t.d,t.e,t.f)}function uy(e){return e==null||(wi||(wi=document.createElementNS("http://www.w3.org/2000/svg","g")),wi.setAttribute("transform",e),!(e=wi.transform.baseVal.consolidate()))?va:(e=e.matrix,vc(e.a,e.b,e.c,e.d,e.e,e.f))}function Sc(e,t,r,i){function n(c){return c.length?c.pop()+" ":""}function a(c,h,u,f,d,g){if(c!==u||h!==f){var m=d.push("translate(",null,t,null,r);g.push({i:m-4,x:ye(c,u)},{i:m-2,x:ye(h,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:ye(c,h)})):h&&u.push(n(u)+"rotate("+h+i)}function o(c,h,u,f){c!==h?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:ye(c,h)}):h&&u.push(n(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var m=d.push(n(d)+"scale(",null,",",null,")");g.push({i:m-4,x:ye(c,u)},{i:m-2,x:ye(h,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=e(c),h=e(h),a(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),o(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,m=f.length,y;++g<m;)u[(y=f[g]).i]=y.x(d);return u.join("")}}}var fy=Sc(hy,"px, ","px)","deg)"),dy=Sc(uy,", ",")",")"),yr=0,Pr=0,$r=0,Tc=1e3,Ji,Rr,tn=0,qe=0,En=0,Jr=typeof performance=="object"&&performance.now?performance:Date,Bc=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vs(){return qe||(Bc(py),qe=Jr.now()+En)}function py(){qe=0}function en(){this._call=this._time=this._next=null}en.prototype=Lc.prototype={constructor:en,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?vs():+r)+(t==null?0:+t),!this._next&&Rr!==this&&(Rr?Rr._next=this:Ji=this,Rr=this),this._call=e,this._time=r,Sa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sa())}};function Lc(e,t,r){var i=new en;return i.restart(e,t,r),i}function gy(){vs(),++yr;for(var e=Ji,t;e;)(t=qe-e._time)>=0&&e._call.call(void 0,t),e=e._next;--yr}function Do(){qe=(tn=Jr.now())+En,yr=Pr=0;try{gy()}finally{yr=0,yy(),qe=0}}function my(){var e=Jr.now(),t=e-tn;t>Tc&&(En-=t,tn=e)}function yy(){for(var e,t=Ji,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Ji=r);Rr=e,Sa(i)}function Sa(e){if(!yr){Pr&&(Pr=clearTimeout(Pr));var t=e-qe;t>24?(e<1/0&&(Pr=setTimeout(Do,e-Jr.now()-En)),$r&&($r=clearInterval($r))):($r||(tn=Jr.now(),$r=setInterval(my,Tc)),yr=1,Bc(Do))}}function Oo(e,t,r){var i=new en;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var xy=oc("start","end","cancel","interrupt"),by=[],$c=0,Po=1,Ta=2,Oi=3,Ro=4,Ba=5,Pi=6;function Dn(e,t,r,i,n,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;_y(e,r,{name:t,index:i,group:n,on:xy,tween:by,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:$c})}function Ss(e,t){var r=Vt(e,t);if(r.state>$c)throw new Error("too late; already scheduled");return r}function ee(e,t){var r=Vt(e,t);if(r.state>Oi)throw new Error("too late; already running");return r}function Vt(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function _y(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Lc(a,0,r.time);function a(c){r.state=Po,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var h,u,f,d;if(r.state!==Po)return l();for(h in i)if(d=i[h],d.name===r.name){if(d.state===Oi)return Oo(s);d.state===Ro?(d.state=Pi,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[h]):+h<t&&(d.state=Pi,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[h])}if(Oo(function(){r.state===Oi&&(r.state=Ro,r.timer.restart(o,r.delay,r.time),o(c))}),r.state=Ta,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Ta){for(r.state=Oi,n=new Array(f=r.tween.length),h=0,u=-1;h<f;++h)(d=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function o(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Ba,1),u=-1,f=n.length;++u<f;)n[u].call(e,h);r.state===Ba&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Pi,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function Cy(e,t){var r=e.__transition,i,n,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){a=!1;continue}n=i.state>Ta&&i.state<Ba,i.state=Pi,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function wy(e){return this.each(function(){Cy(this,e)})}function ky(e,t){var r,i;return function(){var n=ee(this,e),a=n.tween;if(a!==r){i=r=a;for(var s=0,o=i.length;s<o;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function vy(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=ee(this,e),s=a.tween;if(s!==i){n=(i=s).slice();for(var o={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=o;break}l===c&&n.push(o)}a.tween=n}}function Sy(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Vt(this.node(),r).tween,n=0,a=i.length,s;n<a;++n)if((s=i[n]).name===e)return s.value;return null}return this.each((t==null?ky:vy)(r,e,t))}function Ts(e,t,r){var i=e._id;return e.each(function(){var n=ee(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Vt(n,i).value[t]}}function Mc(e,t){var r;return(typeof t=="number"?ye:t instanceof Qr?Fo:(r=Qr(t))?(t=r,Fo):cy)(e,t)}function Ty(e){return function(){this.removeAttribute(e)}}function By(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ly(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttribute(e);return s===n?null:s===i?a:a=t(i=s,r)}}function $y(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===n?null:s===i?a:a=t(i=s,r)}}function My(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function Ay(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function Fy(e,t){var r=Fn(e),i=r==="transform"?dy:Mc;return this.attrTween(e,typeof t=="function"?(r.local?Ay:My)(r,i,Ts(this,"attr."+e,t)):t==null?(r.local?By:Ty)(r):(r.local?$y:Ly)(r,i,t))}function Ey(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Dy(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Oy(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Dy(e,a)),r}return n._value=t,n}function Py(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ey(e,a)),r}return n._value=t,n}function Ry(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Fn(e);return this.tween(r,(i.local?Oy:Py)(i,t))}function Iy(e,t){return function(){Ss(this,e).delay=+t.apply(this,arguments)}}function Ny(e,t){return t=+t,function(){Ss(this,e).delay=t}}function zy(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Iy:Ny)(t,e)):Vt(this.node(),t).delay}function qy(e,t){return function(){ee(this,e).duration=+t.apply(this,arguments)}}function Wy(e,t){return t=+t,function(){ee(this,e).duration=t}}function Hy(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qy:Wy)(t,e)):Vt(this.node(),t).duration}function jy(e,t){if(typeof t!="function")throw new Error;return function(){ee(this,e).ease=t}}function Yy(e){var t=this._id;return arguments.length?this.each(jy(t,e)):Vt(this.node(),t).ease}function Gy(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ee(this,e).ease=r}}function Vy(e){if(typeof e!="function")throw new Error;return this.each(Gy(this._id,e))}function Uy(e){typeof e!="function"&&(e=hc(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new ce(i,this._parents,this._name,this._id)}function Xy(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),s=new Array(i),o=0;o<a;++o)for(var l=t[o],c=r[o],h=l.length,u=s[o]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;o<i;++o)s[o]=t[o];return new ce(s,this._parents,this._name,this._id)}function Zy(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Ky(e,t,r){var i,n,a=Zy(t)?Ss:ee;return function(){var s=a(this,e),o=s.on;o!==i&&(n=(i=o).copy()).on(t,r),s.on=n}}function Qy(e,t){var r=this._id;return arguments.length<2?Vt(this.node(),r).on.on(e):this.each(Ky(r,e,t))}function Jy(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function tx(){return this.on("end.remove",Jy(this._id))}function ex(e){var t=this._name,r=this._id;typeof e!="function"&&(e=_s(e));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var o=i[s],l=o.length,c=a[s]=new Array(l),h,u,f=0;f<l;++f)(h=o[f])&&(u=e.call(h,h.__data__,f,o))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,Dn(c[f],t,r,f,c,Vt(h,r)));return new ce(a,this._parents,t,r)}function rx(e){var t=this._name,r=this._id;typeof e!="function"&&(e=cc(e));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o<n;++o)for(var l=i[o],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=e.call(h,h.__data__,u,l),d,g=Vt(h,r),m=0,y=f.length;m<y;++m)(d=f[m])&&Dn(d,t,r,m,f,g);a.push(f),s.push(h)}return new ce(a,s,t,r)}var ix=ui.prototype.constructor;function nx(){return new ix(this._groups,this._parents)}function ax(e,t){var r,i,n;return function(){var a=mr(this,e),s=(this.style.removeProperty(e),mr(this,e));return a===s?null:a===r&&s===i?n:n=t(r=a,i=s)}}function Ac(e){return function(){this.style.removeProperty(e)}}function sx(e,t,r){var i,n=r+"",a;return function(){var s=mr(this,e);return s===n?null:s===i?a:a=t(i=s,r)}}function ox(e,t,r){var i,n,a;return function(){var s=mr(this,e),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),mr(this,e))),s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o))}}function lx(e,t){var r,i,n,a="style."+t,s="end."+a,o;return function(){var l=ee(this,e),c=l.on,h=l.value[a]==null?o||(o=Ac(t)):void 0;(c!==r||n!==h)&&(i=(r=c).copy()).on(s,n=h),l.on=i}}function cx(e,t,r){var i=(e+="")=="transform"?fy:Mc;return t==null?this.styleTween(e,ax(e,i)).on("end.style."+e,Ac(e)):typeof t=="function"?this.styleTween(e,ox(e,i,Ts(this,"style."+e,t))).each(lx(this._id,e)):this.styleTween(e,sx(e,i,t),r).on("end.style."+e,null)}function hx(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function ux(e,t,r){var i,n;function a(){var s=t.apply(this,arguments);return s!==n&&(i=(n=s)&&hx(e,s,r)),i}return a._value=t,a}function fx(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,ux(e,t,r??""))}function dx(e){return function(){this.textContent=e}}function px(e){return function(){var t=e(this);this.textContent=t??""}}function gx(e){return this.tween("text",typeof e=="function"?px(Ts(this,"text",e)):dx(e==null?"":e+""))}function mx(e){return function(t){this.textContent=e.call(this,t)}}function yx(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&mx(n)),t}return i._value=e,i}function xx(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,yx(e))}function bx(){for(var e=this._name,t=this._id,r=Fc(),i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var h=Vt(l,t);Dn(l,e,r,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ce(i,this._parents,e,r)}function _x(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--n===0&&a()}};r.each(function(){var c=ee(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),n===0&&a()})}var Cx=0;function ce(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Fc(){return++Cx}var ne=ui.prototype;ce.prototype={constructor:ce,select:ex,selectAll:rx,selectChild:ne.selectChild,selectChildren:ne.selectChildren,filter:Uy,merge:Xy,selection:nx,transition:bx,call:ne.call,nodes:ne.nodes,node:ne.node,size:ne.size,empty:ne.empty,each:ne.each,on:Qy,attr:Fy,attrTween:Ry,style:cx,styleTween:fx,text:gx,textTween:xx,remove:tx,tween:Sy,delay:zy,duration:Hy,ease:Yy,easeVarying:Vy,end:_x,[Symbol.iterator]:ne[Symbol.iterator]};function wx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var kx={time:null,delay:0,duration:250,ease:wx};function vx(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Sx(e){var t,r;e instanceof ce?(t=e._id,e=e._name):(t=Fc(),(r=kx).time=vs(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&Dn(l,e,t,c,s,r||vx(l,t));return new ce(i,this._parents,e,t)}ui.prototype.interrupt=wy;ui.prototype.transition=Sx;const La=Math.PI,$a=2*La,$e=1e-6,Tx=$a-$e;function Ec(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Bx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ec;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class Lx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ec:Bx(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,s){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=i-t,c=n-r,h=s-t,u=o-r,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>$e)if(!(Math.abs(u*l-c*h)>$e)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-s,g=n-o,m=l*l+c*c,y=d*d+g*g,x=Math.sqrt(m),b=Math.sqrt(f),_=a*Math.tan((La-Math.acos((m+f-y)/(2*x*b)))/2),k=_/b,C=_/x;Math.abs(k-1)>$e&&this._append`L${t+k*h},${r+k*u}`,this._append`A${a},${a},0,0,${+(u*d>h*g)},${this._x1=t+C*l},${this._y1=r+C*c}`}}arc(t,r,i,n,a,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),c=t+o,h=r+l,u=1^s,f=s?n-a:a-n;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>$e||Math.abs(this._y1-h)>$e)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%$a+$a),f>Tx?this._append`A${i},${i},0,1,${u},${t-o},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>$e&&this._append`A${i},${i},0,${+(f>=La)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function Ke(e){return function(){return e}}const NT=Math.abs,zT=Math.atan2,qT=Math.cos,WT=Math.max,HT=Math.min,jT=Math.sin,YT=Math.sqrt,Io=1e-12,Bs=Math.PI,No=Bs/2,GT=2*Bs;function VT(e){return e>1?0:e<-1?Bs:Math.acos(e)}function UT(e){return e>=1?No:e<=-1?-No:Math.asin(e)}function $x(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Lx(t)}function Mx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Dc(e){this._context=e}Dc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function rn(e){return new Dc(e)}function Ax(e){return e[0]}function Fx(e){return e[1]}function Ex(e,t){var r=Ke(!0),i=null,n=rn,a=null,s=$x(o);e=typeof e=="function"?e:e===void 0?Ax:Ke(e),t=typeof t=="function"?t:t===void 0?Fx:Ke(t);function o(l){var c,h=(l=Mx(l)).length,u,f=!1,d;for(i==null&&(a=n(d=s())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,c,l),+t(u,c,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ke(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ke(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ke(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),o):i},o}class Oc{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Pc(e){return new Oc(e,!0)}function Rc(e){return new Oc(e,!1)}function _e(){}function nn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function On(e){this._context=e}On.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:nn(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:nn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ri(e){return new On(e)}function Ic(e){this._context=e}Ic.prototype={areaStart:_e,areaEnd:_e,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:nn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dx(e){return new Ic(e)}function Nc(e){this._context=e}Nc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:nn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ox(e){return new Nc(e)}function zc(e,t){this._basis=new On(e),this._beta=t}zc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,s=t[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*e[o]+(1-this._beta)*(i+l*a),this._beta*t[o]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Px=(function e(t){function r(i){return t===1?new On(i):new zc(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function an(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Ls(e,t){this._context=e,this._k=(1-t)/6}Ls.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:an(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:an(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qc=(function e(t){function r(i){return new Ls(i,t)}return r.tension=function(i){return e(+i)},r})(0);function $s(e,t){this._context=e,this._k=(1-t)/6}$s.prototype={areaStart:_e,areaEnd:_e,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:an(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rx=(function e(t){function r(i){return new $s(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Ms(e,t){this._context=e,this._k=(1-t)/6}Ms.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(e,t){switch(e=+e,t=+t,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:an(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ix=(function e(t){function r(i){return new Ms(i,t)}return r.tension=function(i){return e(+i)},r})(0);function As(e,t,r){var i=e._x1,n=e._y1,a=e._x2,s=e._y2;if(e._l01_a>Io){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Io){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/h,s=(s*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,n,a,s,e._x2,e._y2)}function Wc(e,t){this._context=e,this._alpha=t}Wc.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:As(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hc=(function e(t){function r(i){return t?new Wc(i,t):new Ls(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function jc(e,t){this._context=e,this._alpha=t}jc.prototype={areaStart:_e,areaEnd:_e,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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:As(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Nx=(function e(t){function r(i){return t?new jc(i,t):new $s(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Yc(e,t){this._context=e,this._alpha=t}Yc.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:As(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zx=(function e(t){function r(i){return t?new Yc(i,t):new Ms(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Gc(e){this._context=e}Gc.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qx(e){return new Gc(e)}function zo(e){return e<0?-1:1}function qo(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),s=(r-e._y1)/(n||i<0&&-0),o=(a*n+s*i)/(i+n);return(zo(a)+zo(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function Wo(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ia(e,t,r){var i=e._x0,n=e._y0,a=e._x1,s=e._y1,o=(a-i)/3;e._context.bezierCurveTo(i+o,n+o*t,a-o,s-o*r,a,s)}function sn(e){this._context=e}sn.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:ia(this,this._t0,Wo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ia(this,Wo(this,r=qo(this,e,t)),r);break;default:ia(this,this._t0,r=qo(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Vc(e){this._context=new Uc(e)}(Vc.prototype=Object.create(sn.prototype)).point=function(e,t){sn.prototype.point.call(this,t,e)};function Uc(e){this._context=e}Uc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function Xc(e){return new sn(e)}function Zc(e){return new Vc(e)}function Kc(e){this._context=e}Kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=Ho(e),n=Ho(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ho(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,s[t]-=i*s[t-1];for(n[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(s[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function Qc(e){return new Kc(e)}function Pn(e,t){this._context=e,this._t=t}Pn.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Jc(e){return new Pn(e,.5)}function th(e){return new Pn(e,0)}function eh(e){return new Pn(e,1)}function Ir(e,t,r){this.k=e,this.x=t,this.y=r}Ir.prototype={constructor:Ir,scale:function(e){return e===1?this:new Ir(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ir(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Ir.prototype;var Wx=p(e=>{const{securityLevel:t}=st();let r=it("body");if(t==="sandbox"){const a=it(`#i${e}`).node()?.contentDocument??document;r=it(a.body)}return r.select(`#${e}`)},"selectSvgElement");function Fs(e){return typeof e>"u"||e===null}p(Fs,"isNothing");function rh(e){return typeof e=="object"&&e!==null}p(rh,"isObject");function ih(e){return Array.isArray(e)?e:Fs(e)?[]:[e]}p(ih,"toArray");function nh(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}p(nh,"extend");function ah(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}p(ah,"repeat");function sh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}p(sh,"isNegativeZero");var Hx=Fs,jx=rh,Yx=ih,Gx=ah,Vx=sh,Ux=nh,mt={isNothing:Hx,isObject:jx,toArray:Yx,repeat:Gx,isNegativeZero:Vx,extend:Ux};function Es(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
81
+
82
+ `+e.mark.snippet),i+" "+r):i}p(Es,"formatError");function xr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Es(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}p(xr,"YAMLException$1");xr.prototype=Object.create(Error.prototype);xr.prototype.constructor=xr;xr.prototype.toString=p(function(t){return this.name+": "+Es(this,t)},"toString");var Dt=xr;function Ii(e,t,r,i,n){var a="",s="",o=Math.floor(n/2)-1;return i-t>o&&(a=" ... ",t=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+a.length}}p(Ii,"getLine");function Ni(e,t){return mt.repeat(" ",t-e.length)+e}p(Ni,"padStart");function oh(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,c,h=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=Ii(e.buffer,i[s-l],n[s-l],e.position-(i[s]-i[s-l]),u),o=mt.repeat(" ",t.indent)+Ni((e.line-l+1).toString(),h)+" | "+c.str+`
83
+ `+o;for(c=Ii(e.buffer,i[s],n[s],e.position,u),o+=mt.repeat(" ",t.indent)+Ni((e.line+1).toString(),h)+" | "+c.str+`
84
+ `,o+=mt.repeat("-",t.indent+h+3+c.pos)+`^
85
+ `,l=1;l<=t.linesAfter&&!(s+l>=n.length);l++)c=Ii(e.buffer,i[s+l],n[s+l],e.position-(i[s]-i[s+l]),u),o+=mt.repeat(" ",t.indent)+Ni((e.line+l+1).toString(),h)+" | "+c.str+`
86
+ `;return o.replace(/\n$/,"")}p(oh,"makeSnippet");var Xx=oh,Zx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kx=["scalar","sequence","mapping"];function lh(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(lh,"compileStyleAliases");function ch(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Zx.indexOf(r)===-1)throw new Dt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=lh(t.styleAliases||null),Kx.indexOf(this.kind)===-1)throw new Dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(ch,"Type$1");var St=ch;function Ma(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}p(Ma,"compileList");function hh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(hh,"compileMap");function on(e){return this.extend(e)}p(on,"Schema$1");on.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof St)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Dt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Dt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Dt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(on.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Ma(n,"implicit"),n.compiledExplicit=Ma(n,"explicit"),n.compiledTypeMap=hh(n.compiledImplicit,n.compiledExplicit),n},"extend");var Qx=on,Jx=new St("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),tb=new St("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),eb=new St("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),rb=new Qx({explicit:[Jx,tb,eb]});function uh(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(uh,"resolveYamlNull");function fh(){return null}p(fh,"constructYamlNull");function dh(e){return e===null}p(dh,"isNull");var ib=new St("tag:yaml.org,2002:null",{kind:"scalar",resolve:uh,construct:fh,predicate:dh,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function ph(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}p(ph,"resolveYamlBoolean");function gh(e){return e==="true"||e==="True"||e==="TRUE"}p(gh,"constructYamlBoolean");function mh(e){return Object.prototype.toString.call(e)==="[object Boolean]"}p(mh,"isBoolean");var nb=new St("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ph,construct:gh,predicate:mh,represent:{lowercase:p(function(e){return e?"true":"false"},"lowercase"),uppercase:p(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function yh(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}p(yh,"isHexCode");function xh(e){return 48<=e&&e<=55}p(xh,"isOctCode");function bh(e){return 48<=e&&e<=57}p(bh,"isDecCode");function _h(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!yh(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!xh(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!bh(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}p(_h,"resolveYamlInteger");function Ch(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}p(Ch,"constructYamlInteger");function wh(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!mt.isNegativeZero(e)}p(wh,"isInteger");var ab=new St("tag:yaml.org,2002:int",{kind:"scalar",resolve:_h,construct:Ch,predicate:wh,represent:{binary:p(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:p(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:p(function(e){return e.toString(10)},"decimal"),hexadecimal:p(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),sb=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kh(e){return!(e===null||!sb.test(e)||e[e.length-1]==="_")}p(kh,"resolveYamlFloat");function vh(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}p(vh,"constructYamlFloat");var ob=/^[-+]?[0-9]+e/;function Sh(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(mt.isNegativeZero(e))return"-0.0";return r=e.toString(10),ob.test(r)?r.replace("e",".e"):r}p(Sh,"representYamlFloat");function Th(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||mt.isNegativeZero(e))}p(Th,"isFloat");var lb=new St("tag:yaml.org,2002:float",{kind:"scalar",resolve:kh,construct:vh,predicate:Th,represent:Sh,defaultStyle:"lowercase"}),Bh=rb.extend({implicit:[ib,nb,ab,lb]}),cb=Bh,Lh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$h=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 Mh(e){return e===null?!1:Lh.exec(e)!==null||$h.exec(e)!==null}p(Mh,"resolveYamlTimestamp");function Ah(e){var t,r,i,n,a,s,o,l=0,c=null,h,u,f;if(t=Lh.exec(e),t===null&&(t=$h.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],u=+(t[11]||0),c=(h*60+u)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,a,s,o,l)),c&&f.setTime(f.getTime()-c),f}p(Ah,"constructYamlTimestamp");function Fh(e){return e.toISOString()}p(Fh,"representYamlTimestamp");var hb=new St("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Mh,construct:Ah,instanceOf:Date,represent:Fh});function Eh(e){return e==="<<"||e===null}p(Eh,"resolveYamlMerge");var ub=new St("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Eh}),Ds=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
87
+ \r`;function Dh(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=Ds;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}p(Dh,"resolveYamlBinary");function Oh(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=Ds,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}p(Oh,"constructYamlBinary");function Ph(e){var t="",r=0,i,n,a=e.length,s=Ds;for(i=0;i<a;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}p(Ph,"representYamlBinary");function Rh(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}p(Rh,"isBinary");var fb=new St("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dh,construct:Oh,predicate:Rh,represent:Ph}),db=Object.prototype.hasOwnProperty,pb=Object.prototype.toString;function Ih(e){if(e===null)return!0;var t=[],r,i,n,a,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,pb.call(n)!=="[object Object]")return!1;for(a in n)if(db.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}p(Ih,"resolveYamlOmap");function Nh(e){return e!==null?e:[]}p(Nh,"constructYamlOmap");var gb=new St("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ih,construct:Nh}),mb=Object.prototype.toString;function zh(e){if(e===null)return!0;var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],mb.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}p(zh,"resolveYamlPairs");function qh(e){if(e===null)return[];var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}p(qh,"constructYamlPairs");var yb=new St("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:zh,construct:qh}),xb=Object.prototype.hasOwnProperty;function Wh(e){if(e===null)return!0;var t,r=e;for(t in r)if(xb.call(r,t)&&r[t]!==null)return!1;return!0}p(Wh,"resolveYamlSet");function Hh(e){return e!==null?e:{}}p(Hh,"constructYamlSet");var bb=new St("tag:yaml.org,2002:set",{kind:"mapping",resolve:Wh,construct:Hh}),jh=cb.extend({implicit:[hb,ub],explicit:[fb,gb,yb,bb]}),Ce=Object.prototype.hasOwnProperty,ln=1,Yh=2,Gh=3,cn=4,na=1,_b=2,jo=3,Cb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wb=/[\x85\u2028\u2029]/,kb=/[,\[\]\{\}]/,Vh=/^(?:!|!!|![a-z\-]+!)$/i,Uh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Aa(e){return Object.prototype.toString.call(e)}p(Aa,"_class");function Yt(e){return e===10||e===13}p(Yt,"is_EOL");function be(e){return e===9||e===32}p(be,"is_WHITE_SPACE");function $t(e){return e===9||e===32||e===10||e===13}p($t,"is_WS_OR_EOL");function De(e){return e===44||e===91||e===93||e===123||e===125}p(De,"is_FLOW_INDICATOR");function Xh(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}p(Xh,"fromHexCode");function Zh(e){return e===120?2:e===117?4:e===85?8:0}p(Zh,"escapedHexLen");function Kh(e){return 48<=e&&e<=57?e-48:-1}p(Kh,"fromDecimalCode");function Fa(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
88
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}p(Fa,"simpleEscapeSequence");function Qh(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(Qh,"charFromCodepoint");var Jh=new Array(256),tu=new Array(256);for(Le=0;Le<256;Le++)Jh[Le]=Fa(Le)?1:0,tu[Le]=Fa(Le);var Le;function eu(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}p(eu,"State$1");function Os(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Xx(r),new Dt(t,r)}p(Os,"generateError");function V(e,t){throw Os(e,t)}p(V,"throwError");function ti(e,t){e.onWarning&&e.onWarning.call(null,Os(e,t))}p(ti,"throwWarning");var Yo={YAML:p(function(t,r,i){var n,a,s;t.version!==null&&V(t,"duplication of %YAML directive"),i.length!==1&&V(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&V(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&V(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ti(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var n,a;i.length!==2&&V(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Vh.test(n)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Ce.call(t.tagMap,n)&&V(t,'there is a previously declared suffix for "'+n+'" tag handle'),Uh.test(a)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{V(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function le(e,t,r,i){var n,a,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||V(e,"expected valid JSON character");else Cb.test(o)&&V(e,"the stream contains non-printable characters");e.result+=o}}p(le,"captureSegment");function Ea(e,t,r,i){var n,a,s,o;for(mt.isObject(r)||V(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],Ce.call(t,a)||(t[a]=r[a],i[a]=!0)}p(Ea,"mergeMappings");function Oe(e,t,r,i,n,a,s,o,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])&&V(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Aa(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Aa(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)Ea(e,t,a[c],r);else Ea(e,t,a,r);else!e.json&&!Ce.call(r,n)&&Ce.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,V(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,delete r[n];return t}p(Oe,"storeMappingPair");function Rn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):V(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(Rn,"readLineBreak");function ft(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;be(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Yt(n))for(Rn(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ti(e,"deficient indentation"),i}p(ft,"skipSeparationSpace");function di(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||$t(r)))}p(di,"testDocumentSeparator");function In(e,t){t===1?e.result+=" ":t>1&&(e.result+=mt.repeat(`
89
+ `,t-1))}p(In,"writeFoldedLines");function ru(e,t,r){var i,n,a,s,o,l,c,h,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),$t(d)||De(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=e.input.charCodeAt(e.position+1),$t(n)||r&&De(n)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),$t(n)||r&&De(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),$t(i))break}else{if(e.position===e.lineStart&&di(e)||r&&De(d))break;if(Yt(d))if(l=e.line,c=e.lineStart,h=e.lineIndent,ft(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=h;break}}o&&(le(e,a,s,!1),In(e,e.line-l),a=s=e.position,o=!1),be(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return le(e,a,s,!1),e.result?!0:(e.kind=u,e.result=f,!1)}p(ru,"readPlainScalar");function iu(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(le(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Yt(r)?(le(e,i,n,!0),In(e,ft(e,!1,t)),i=n=e.position):e.position===e.lineStart&&di(e)?V(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);V(e,"unexpected end of the stream within a single quoted scalar")}p(iu,"readSingleQuotedScalar");function nu(e,t){var r,i,n,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return le(e,r,e.position,!0),e.position++,!0;if(o===92){if(le(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),Yt(o))ft(e,!1,t);else if(o<256&&Jh[o])e.result+=tu[o],e.position++;else if((s=Zh(o))>0){for(n=s,a=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Xh(o))>=0?a=(a<<4)+s:V(e,"expected hexadecimal character");e.result+=Qh(a),e.position++}else V(e,"unknown escape sequence");r=i=e.position}else Yt(o)?(le(e,r,i,!0),In(e,ft(e,!1,t)),r=i=e.position):e.position===e.lineStart&&di(e)?V(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}V(e,"unexpected end of the stream within a double quoted scalar")}p(nu,"readDoubleQuotedScalar");function au(e,t){var r=!0,i,n,a,s=e.tag,o,l=e.anchor,c,h,u,f,d,g=Object.create(null),m,y,x,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,d=!1,o=[];else if(b===123)h=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(ft(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=o,!0;r?b===44&&V(e,"expected the node content, but found ','"):V(e,"missed comma between flow collection entries"),y=m=x=null,u=f=!1,b===63&&(c=e.input.charCodeAt(e.position+1),$t(c)&&(u=f=!0,e.position++,ft(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,We(e,t,ln,!1,!0),y=e.tag,m=e.result,ft(e,!0,t),b=e.input.charCodeAt(e.position),(f||e.line===i)&&b===58&&(u=!0,b=e.input.charCodeAt(++e.position),ft(e,!0,t),We(e,t,ln,!1,!0),x=e.result),d?Oe(e,o,g,y,m,x,i,n,a):u?o.push(Oe(e,null,g,y,m,x,i,n,a)):o.push(m),ft(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}V(e,"unexpected end of the stream within a flow collection")}p(au,"readFlowCollection");function su(e,t){var r,i,n=na,a=!1,s=!1,o=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)na===n?n=u===43?jo:_b:V(e,"repeat of a chomping mode identifier");else if((h=Kh(u))>=0)h===0?V(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?V(e,"repeat of an indentation width identifier"):(o=t+h-1,s=!0);else break;if(be(u)){do u=e.input.charCodeAt(++e.position);while(be(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Yt(u)&&u!==0)}for(;u!==0;){for(Rn(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),Yt(u)){l++;continue}if(e.lineIndent<o){n===jo?e.result+=mt.repeat(`
90
+ `,a?1+l:l):n===na&&a&&(e.result+=`
91
+ `);break}for(i?be(u)?(c=!0,e.result+=mt.repeat(`
92
+ `,a?1+l:l)):c?(c=!1,e.result+=mt.repeat(`
93
+ `,l+1)):l===0?a&&(e.result+=" "):e.result+=mt.repeat(`
94
+ `,l):e.result+=mt.repeat(`
95
+ `,a?1+l:l),a=!0,s=!0,l=0,r=e.position;!Yt(u)&&u!==0;)u=e.input.charCodeAt(++e.position);le(e,r,e.position,!1)}return!0}p(su,"readBlockScalar");function Da(e,t){var r,i=e.tag,n=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!$t(s))));){if(o=!0,e.position++,ft(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,We(e,t,Gh,!1,!0),a.push(e.result),ft(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)V(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}p(Da,"readBlockSequence");function ou(e,t,r){var i,n,a,s,o,l,c=e.tag,h=e.anchor,u={},f=Object.create(null),d=null,g=null,m=null,y=!1,x=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(b===63||b===58)&&$t(i))b===63?(y&&(Oe(e,u,f,d,g,null,s,o,l),d=g=m=null),x=!0,y=!0,n=!0):y?(y=!1,n=!0):V(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(s=e.line,o=e.lineStart,l=e.position,!We(e,r,Yh,!1,!0))break;if(e.line===a){for(b=e.input.charCodeAt(e.position);be(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),$t(b)||V(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Oe(e,u,f,d,g,null,s,o,l),d=g=m=null),x=!0,y=!1,n=!1,d=e.tag,g=e.result;else if(x)V(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(x)V(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),We(e,t,cn,!0,n)&&(y?g=e.result:m=e.result),y||(Oe(e,u,f,d,g,m,s,o,l),d=g=m=null),ft(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)V(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Oe(e,u,f,d,g,null,s,o,l),x&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),x}p(ou,"readBlockMapping");function lu(e){var t,r=!1,i=!1,n,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&V(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):V(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!$t(s);)s===33&&(i?V(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Vh.test(n)||V(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),kb.test(a)&&V(e,"tag suffix cannot contain flow indicator characters")}a&&!Uh.test(a)&&V(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{V(e,"tag name is malformed: "+a)}return r?e.tag=a:Ce.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:V(e,'undeclared tag handle "'+n+'"'),!0}p(lu,"readTagProperty");function cu(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&V(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$t(r)&&!De(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}p(cu,"readAnchorProperty");function hu(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!$t(i)&&!De(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ce.call(e.anchorMap,r)||V(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ft(e,!0,-1),!0}p(hu,"readAlias");function We(e,t,r,i,n){var a,s,o,l=1,c=!1,h=!1,u,f,d,g,m,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=cn===r||Gh===r,i&&ft(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;lu(e)||cu(e);)ft(e,!0,-1)?(c=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=c||n),(l===1||cn===r)&&(ln===r||Yh===r?m=t:m=t+1,y=e.position-e.lineStart,l===1?o&&(Da(e,y)||ou(e,y,m))||au(e,m)?h=!0:(s&&su(e,m)||iu(e,m)||nu(e,m)?h=!0:hu(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&V(e,"alias node should not have any properties")):ru(e,m,ln===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=o&&Da(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&V(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(g=e.implicitTypes[u],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ce.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){g=d[u];break}g||V(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&V(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):V(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}p(We,"composeNode");function uu(e){var t=e.position,r,i,n,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(ft(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!$t(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&V(e,"directive name must not be less than one character in length");s!==0;){for(;be(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Yt(s));break}if(Yt(s))break;for(r=e.position;s!==0&&!$t(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Rn(e),Ce.call(Yo,i)?Yo[i](e,i,n):ti(e,'unknown document directive "'+i+'"')}if(ft(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ft(e,!0,-1)):a&&V(e,"directives end mark is expected"),We(e,e.lineIndent-1,cn,!1,!0),ft(e,!0,-1),e.checkLineBreaks&&wb.test(e.input.slice(t,e.position))&&ti(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&di(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ft(e,!0,-1));return}if(e.position<e.length-1)V(e,"end of the stream or a document separator is expected");else return}p(uu,"readDocument");function Ps(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
96
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new eu(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,V(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)uu(r);return r.documents}p(Ps,"loadDocuments");function vb(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Ps(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}p(vb,"loadAll$1");function fu(e,t){var r=Ps(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Dt("expected a single document in the stream, but found more")}}p(fu,"load$1");var Sb=fu,Tb={load:Sb},du=Object.prototype.toString,pu=Object.prototype.hasOwnProperty,Rs=65279,Bb=9,ei=10,Lb=13,$b=32,Mb=33,Ab=34,Oa=35,Fb=37,Eb=38,Db=39,Ob=42,gu=44,Pb=45,hn=58,Rb=61,Ib=62,Nb=63,zb=64,mu=91,yu=93,qb=96,xu=123,Wb=124,bu=125,Bt={};Bt[0]="\\0";Bt[7]="\\a";Bt[8]="\\b";Bt[9]="\\t";Bt[10]="\\n";Bt[11]="\\v";Bt[12]="\\f";Bt[13]="\\r";Bt[27]="\\e";Bt[34]='\\"';Bt[92]="\\\\";Bt[133]="\\N";Bt[160]="\\_";Bt[8232]="\\L";Bt[8233]="\\P";var Hb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _u(e,t){var r,i,n,a,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&pu.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}p(_u,"compileStyleMap");function Cu(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Dt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+mt.repeat("0",i-t.length)+t}p(Cu,"encodeHex");var Yb=1,ri=2;function wu(e){this.schema=e.schema||jh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=_u(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ri:Yb,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(wu,"State");function Pa(e,t){for(var r=mt.repeat(" ",t),i=0,n=-1,a="",s,o=e.length;i<o;)n=e.indexOf(`
97
+ `,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
98
+ `&&(a+=r),a+=s;return a}p(Pa,"indentString");function un(e,t){return`
99
+ `+mt.repeat(" ",e.indent*t)}p(un,"generateNextLine");function ku(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}p(ku,"testImplicitResolving");function ii(e){return e===$b||e===Bb}p(ii,"isWhitespace");function br(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Rs||65536<=e&&e<=1114111}p(br,"isPrintable");function Ra(e){return br(e)&&e!==Rs&&e!==Lb&&e!==ei}p(Ra,"isNsCharOrWhitespace");function Ia(e,t,r){var i=Ra(e),n=i&&!ii(e);return(r?i:i&&e!==gu&&e!==mu&&e!==yu&&e!==xu&&e!==bu)&&e!==Oa&&!(t===hn&&!n)||Ra(t)&&!ii(t)&&e===Oa||t===hn&&n}p(Ia,"isPlainSafe");function vu(e){return br(e)&&e!==Rs&&!ii(e)&&e!==Pb&&e!==Nb&&e!==hn&&e!==gu&&e!==mu&&e!==yu&&e!==xu&&e!==bu&&e!==Oa&&e!==Eb&&e!==Ob&&e!==Mb&&e!==Wb&&e!==Rb&&e!==Ib&&e!==Db&&e!==Ab&&e!==Fb&&e!==zb&&e!==qb}p(vu,"isPlainSafeFirst");function Su(e){return!ii(e)&&e!==hn}p(Su,"isPlainSafeLast");function er(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}p(er,"codePointAt");function Is(e){var t=/^\n* /;return t.test(e)}p(Is,"needIndentIndicator");var Tu=1,Na=2,Bu=3,Lu=4,Je=5;function $u(e,t,r,i,n,a,s,o){var l,c=0,h=null,u=!1,f=!1,d=i!==-1,g=-1,m=vu(er(e,0))&&Su(er(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=er(e,l),!br(c))return Je;m=m&&Ia(c,h,o),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=er(e,l),c===ei)u=!0,d&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!br(c))return Je;m=m&&Ia(c,h,o),h=c}f=f||d&&l-g-1>i&&e[g+1]!==" "}return!u&&!f?m&&!s&&!n(e)?Tu:a===ri?Je:Na:r>9&&Is(e)?Je:s?a===ri?Je:Na:f?Lu:Bu}p($u,"chooseScalarStyle");function Mu(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===ri?'""':"''";if(!e.noCompatMode&&(Hb.indexOf(t)!==-1||jb.test(t)))return e.quotingType===ri?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return ku(e,c)}switch(p(l,"testAmbiguity"),$u(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,n)){case Tu:return t;case Na:return"'"+t.replace(/'/g,"''")+"'";case Bu:return"|"+za(t,e.indent)+qa(Pa(t,a));case Lu:return">"+za(t,e.indent)+qa(Pa(Au(t,s),a));case Je:return'"'+Fu(t)+'"';default:throw new Dt("impossible error: invalid scalar style")}})()}p(Mu,"writeScalar");function za(e,t){var r=Is(e)?String(t):"",i=e[e.length-1]===`
100
+ `,n=i&&(e[e.length-2]===`
101
+ `||e===`
102
+ `),a=n?"+":i?"":"-";return r+a+`
103
+ `}p(za,"blockHeader");function qa(e){return e[e.length-1]===`
104
+ `?e.slice(0,-1):e}p(qa,"dropEndingNewline");function Au(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var c=e.indexOf(`
105
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,Wa(e.slice(0,c),t)})(),n=e[0]===`
106
+ `||e[0]===" ",a,s;s=r.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",i+=o+(!n&&!a&&l!==""?`
107
+ `:"")+Wa(l,t),n=a}return i}p(Au,"foldString");function Wa(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,l="";i=r.exec(e);)o=i.index,o-n>t&&(a=s>n?s:o,l+=`
108
+ `+e.slice(n,a),n=a+1),s=o;return l+=`
109
+ `,e.length-n>t&&s>n?l+=e.slice(n,s)+`
110
+ `+e.slice(s+1):l+=e.slice(n),l.slice(1)}p(Wa,"foldLine");function Fu(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=er(e,n),i=Bt[r],!i&&br(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Cu(r);return t}p(Fu,"escapeString");function Eu(e,t,r){var i="",n=e.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(te(e,t,o,!1,!1)||typeof o>"u"&&te(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}p(Eu,"writeFlowSequence");function Ha(e,t,r,i){var n="",a=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(te(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&te(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=un(e,t)),e.dump&&ei===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}p(Ha,"writeBlockSequence");function Du(e,t,r){var i="",n=e.tag,a=Object.keys(r),s,o,l,c,h;for(s=0,o=a.length;s<o;s+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=a[s],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),te(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),te(e,t,c,!1,!1)&&(h+=e.dump,i+=h));e.tag=n,e.dump="{"+i+"}"}p(Du,"writeFlowMapping");function Ou(e,t,r,i){var n="",a=e.tag,s=Object.keys(r),o,l,c,h,u,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Dt("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!i||n!=="")&&(f+=un(e,t)),c=s[o],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),te(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&ei===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=un(e,t)),te(e,t+1,h,!0,u)&&(e.dump&&ei===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}p(Ou,"writeBlockMapping");function ja(e,t,r){var i,n,a,s,o,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,du.call(o.represent)==="[object Function]")i=o.represent(t,l);else if(pu.call(o.represent,l))i=o.represent[l](t,l);else throw new Dt("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}p(ja,"detectType");function te(e,t,r,i,n,a,s){e.tag=null,e.dump=r,ja(e,r,!1)||ja(e,r,!0);var o=du.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=o==="[object Object]"||o==="[object Array]",u,f;if(h&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Ou(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Du(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Ha(e,t-1,e.dump,n):Ha(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Eu(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Mu(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Dt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}p(te,"writeNode");function Pu(e,t){var r=[],i=[],n,a;for(fn(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}p(Pu,"getDuplicateReferences");function fn(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)fn(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)fn(e[i[n]],t,r)}p(fn,"inspectNode");function Gb(e,t){t=t||{};var r=new wu(t);r.noRefs||Pu(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),te(r,0,i,!0,!0)?r.dump+`
111
+ `:""}p(Gb,"dump$1");function Vb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}p(Vb,"renamed");var Ub=Bh,Xb=Tb.load;var kt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},Go={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Nr(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ut(e),t=ut(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}p(Nr,"calculateDeltaAndAngle");var ut=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Zb=p(e=>({x:p(function(t,r,i){let n=0;const a=ut(i[0]).x<ut(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(kt,e.arrowTypeStart)){const{angle:d,deltaX:g}=Nr(i[0],i[1]);n=kt[e.arrowTypeStart]*Math.cos(d)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(kt,e.arrowTypeEnd)){const{angle:d,deltaX:g}=Nr(i[i.length-1],i[i.length-2]);n=kt[e.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}const s=Math.abs(ut(t).x-ut(i[i.length-1]).x),o=Math.abs(ut(t).y-ut(i[i.length-1]).y),l=Math.abs(ut(t).x-ut(i[0]).x),c=Math.abs(ut(t).y-ut(i[0]).y),h=kt[e.arrowTypeStart],u=kt[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="right"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="right"?-1:1,n+=d}return ut(t).x+n},"x"),y:p(function(t,r,i){let n=0;const a=ut(i[0]).y<ut(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(kt,e.arrowTypeStart)){const{angle:d,deltaY:g}=Nr(i[0],i[1]);n=kt[e.arrowTypeStart]*Math.abs(Math.sin(d))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(kt,e.arrowTypeEnd)){const{angle:d,deltaY:g}=Nr(i[i.length-1],i[i.length-2]);n=kt[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}const s=Math.abs(ut(t).y-ut(i[i.length-1]).y),o=Math.abs(ut(t).x-ut(i[i.length-1]).x),l=Math.abs(ut(t).y-ut(i[0]).y),c=Math.abs(ut(t).x-ut(i[0]).x),h=kt[e.arrowTypeStart],u=kt[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="up"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="up"?-1:1,n+=d}return ut(t).y+n},"y")}),"getLineFunctionsWithOffset"),Ns=p(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),Kb=p(e=>{const{handDrawnSeed:t}=st();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),kr=p(e=>{const t=Qb([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Qb=p(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n?.trim())}),t},"styles2Map"),Ru=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),j=p(e=>{const{stylesArray:t}=kr(e),r=[],i=[],n=[],a=[];return t.forEach(s=>{const o=s[0];Ru(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),H=p((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=st(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=kr(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Jb(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),Jb=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),ki={},pt={},Vo;function t1(){return Vo||(Vo=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.BLANK_URL=pt.relativeFirstCharacters=pt.whitespaceEscapeCharsRegex=pt.urlSchemeRegex=pt.ctrlCharactersRegex=pt.htmlCtrlEntityRegex=pt.htmlEntitiesRegex=pt.invalidProtocolRegex=void 0,pt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,pt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,pt.htmlCtrlEntityRegex=/&(newline|tab);/gi,pt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,pt.urlSchemeRegex=/^.+(:|&colon;)/gim,pt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,pt.relativeFirstCharacters=[".","/"],pt.BLANK_URL="about:blank"),pt}var Uo;function e1(){if(Uo)return ki;Uo=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.sanitizeUrl=a;var e=t1();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var o=s.replace(e.ctrlCharactersRegex,"");return o.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(s){return URL.canParse(s)}function n(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return e.BLANK_URL;var o,l=n(s.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=n(l),o=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),u=h.match(e.urlSchemeRegex);if(!u)return c;var f=u[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(f))return e.BLANK_URL;var d=h.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return d;if(f==="http:"||f==="https:"){if(!i(d))return e.BLANK_URL;var g=new URL(d);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return d}return ki}var r1=e1(),Iu=typeof global=="object"&&global&&global.Object===Object&&global,i1=typeof self=="object"&&self&&self.Object===Object&&self,re=Iu||i1||Function("return this")(),dn=re.Symbol,Nu=Object.prototype,n1=Nu.hasOwnProperty,a1=Nu.toString,Mr=dn?dn.toStringTag:void 0;function s1(e){var t=n1.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var i=!0}catch{}var n=a1.call(e);return i&&(t?e[Mr]=r:delete e[Mr]),n}var o1=Object.prototype,l1=o1.toString;function c1(e){return l1.call(e)}var h1="[object Null]",u1="[object Undefined]",Xo=dn?dn.toStringTag:void 0;function vr(e){return e==null?e===void 0?u1:h1:Xo&&Xo in Object(e)?s1(e):c1(e)}function Ge(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var f1="[object AsyncFunction]",d1="[object Function]",p1="[object GeneratorFunction]",g1="[object Proxy]";function zs(e){if(!Ge(e))return!1;var t=vr(e);return t==d1||t==p1||t==f1||t==g1}var aa=re["__core-js_shared__"],Zo=(function(){var e=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function m1(e){return!!Zo&&Zo in e}var y1=Function.prototype,x1=y1.toString;function Ve(e){if(e!=null){try{return x1.call(e)}catch{}try{return e+""}catch{}}return""}var b1=/[\\^$.*+?()[\]{}|]/g,_1=/^\[object .+?Constructor\]$/,C1=Function.prototype,w1=Object.prototype,k1=C1.toString,v1=w1.hasOwnProperty,S1=RegExp("^"+k1.call(v1).replace(b1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T1(e){if(!Ge(e)||m1(e))return!1;var t=zs(e)?S1:_1;return t.test(Ve(e))}function B1(e,t){return e?.[t]}function Ue(e,t){var r=B1(e,t);return T1(r)?r:void 0}var ni=Ue(Object,"create");function L1(){this.__data__=ni?ni(null):{},this.size=0}function $1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var M1="__lodash_hash_undefined__",A1=Object.prototype,F1=A1.hasOwnProperty;function E1(e){var t=this.__data__;if(ni){var r=t[e];return r===M1?void 0:r}return F1.call(t,e)?t[e]:void 0}var D1=Object.prototype,O1=D1.hasOwnProperty;function P1(e){var t=this.__data__;return ni?t[e]!==void 0:O1.call(t,e)}var R1="__lodash_hash_undefined__";function I1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ni&&t===void 0?R1:t,this}function He(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}He.prototype.clear=L1;He.prototype.delete=$1;He.prototype.get=E1;He.prototype.has=P1;He.prototype.set=I1;function N1(){this.__data__=[],this.size=0}function Nn(e,t){return e===t||e!==e&&t!==t}function zn(e,t){for(var r=e.length;r--;)if(Nn(e[r][0],t))return r;return-1}var z1=Array.prototype,q1=z1.splice;function W1(e){var t=this.__data__,r=zn(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():q1.call(t,r,1),--this.size,!0}function H1(e){var t=this.__data__,r=zn(t,e);return r<0?void 0:t[r][1]}function j1(e){return zn(this.__data__,e)>-1}function Y1(e,t){var r=this.__data__,i=zn(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function fe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}fe.prototype.clear=N1;fe.prototype.delete=W1;fe.prototype.get=H1;fe.prototype.has=j1;fe.prototype.set=Y1;var ai=Ue(re,"Map");function G1(){this.size=0,this.__data__={hash:new He,map:new(ai||fe),string:new He}}function V1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var r=e.__data__;return V1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function U1(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function X1(e){return qn(this,e).get(e)}function Z1(e){return qn(this,e).has(e)}function K1(e,t){var r=qn(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function ve(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ve.prototype.clear=G1;ve.prototype.delete=U1;ve.prototype.get=X1;ve.prototype.has=Z1;ve.prototype.set=K1;var Q1="Expected a function";function pi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Q1);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=e.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(pi.Cache||ve),r}pi.Cache=ve;function J1(){this.__data__=new fe,this.size=0}function t2(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function e2(e){return this.__data__.get(e)}function r2(e){return this.__data__.has(e)}var i2=200;function n2(e,t){var r=this.__data__;if(r instanceof fe){var i=r.__data__;if(!ai||i.length<i2-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ve(i)}return r.set(e,t),this.size=r.size,this}function Sr(e){var t=this.__data__=new fe(e);this.size=t.size}Sr.prototype.clear=J1;Sr.prototype.delete=t2;Sr.prototype.get=e2;Sr.prototype.has=r2;Sr.prototype.set=n2;var pn=(function(){try{var e=Ue(Object,"defineProperty");return e({},"",{}),e}catch{}})();function qs(e,t,r){t=="__proto__"&&pn?pn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ya(e,t,r){(r!==void 0&&!Nn(e[t],r)||r===void 0&&!(t in e))&&qs(e,t,r)}function a2(e){return function(t,r,i){for(var n=-1,a=Object(t),s=i(t),o=s.length;o--;){var l=s[++n];if(r(a[l],l,a)===!1)break}return t}}var s2=a2(),zu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ko=zu&&typeof module=="object"&&module&&!module.nodeType&&module,o2=Ko&&Ko.exports===zu,Qo=o2?re.Buffer:void 0,Jo=Qo?Qo.allocUnsafe:void 0;function l2(e,t){if(t)return e.slice();var r=e.length,i=Jo?Jo(r):new e.constructor(r);return e.copy(i),i}var tl=re.Uint8Array;function c2(e){var t=new e.constructor(e.byteLength);return new tl(t).set(new tl(e)),t}function h2(e,t){var r=t?c2(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function u2(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var el=Object.create,f2=(function(){function e(){}return function(t){if(!Ge(t))return{};if(el)return el(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function qu(e,t){return function(r){return e(t(r))}}var Wu=qu(Object.getPrototypeOf,Object),d2=Object.prototype;function Wn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||d2;return e===r}function p2(e){return typeof e.constructor=="function"&&!Wn(e)?f2(Wu(e)):{}}function gi(e){return e!=null&&typeof e=="object"}var g2="[object Arguments]";function rl(e){return gi(e)&&vr(e)==g2}var Hu=Object.prototype,m2=Hu.hasOwnProperty,y2=Hu.propertyIsEnumerable,gn=rl((function(){return arguments})())?rl:function(e){return gi(e)&&m2.call(e,"callee")&&!y2.call(e,"callee")},mn=Array.isArray,x2=9007199254740991;function ju(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x2}function Hn(e){return e!=null&&ju(e.length)&&!zs(e)}function b2(e){return gi(e)&&Hn(e)}function _2(){return!1}var Yu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,il=Yu&&typeof module=="object"&&module&&!module.nodeType&&module,C2=il&&il.exports===Yu,nl=C2?re.Buffer:void 0,w2=nl?nl.isBuffer:void 0,Ws=w2||_2,k2="[object Object]",v2=Function.prototype,S2=Object.prototype,Gu=v2.toString,T2=S2.hasOwnProperty,B2=Gu.call(Object);function L2(e){if(!gi(e)||vr(e)!=k2)return!1;var t=Wu(e);if(t===null)return!0;var r=T2.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gu.call(r)==B2}var $2="[object Arguments]",M2="[object Array]",A2="[object Boolean]",F2="[object Date]",E2="[object Error]",D2="[object Function]",O2="[object Map]",P2="[object Number]",R2="[object Object]",I2="[object RegExp]",N2="[object Set]",z2="[object String]",q2="[object WeakMap]",W2="[object ArrayBuffer]",H2="[object DataView]",j2="[object Float32Array]",Y2="[object Float64Array]",G2="[object Int8Array]",V2="[object Int16Array]",U2="[object Int32Array]",X2="[object Uint8Array]",Z2="[object Uint8ClampedArray]",K2="[object Uint16Array]",Q2="[object Uint32Array]",ht={};ht[j2]=ht[Y2]=ht[G2]=ht[V2]=ht[U2]=ht[X2]=ht[Z2]=ht[K2]=ht[Q2]=!0;ht[$2]=ht[M2]=ht[W2]=ht[A2]=ht[H2]=ht[F2]=ht[E2]=ht[D2]=ht[O2]=ht[P2]=ht[R2]=ht[I2]=ht[N2]=ht[z2]=ht[q2]=!1;function J2(e){return gi(e)&&ju(e.length)&&!!ht[vr(e)]}function t_(e){return function(t){return e(t)}}var Vu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ur=Vu&&typeof module=="object"&&module&&!module.nodeType&&module,e_=Ur&&Ur.exports===Vu,sa=e_&&Iu.process,al=(function(){try{var e=Ur&&Ur.require&&Ur.require("util").types;return e||sa&&sa.binding&&sa.binding("util")}catch{}})(),sl=al&&al.isTypedArray,Hs=sl?t_(sl):J2;function Ga(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var r_=Object.prototype,i_=r_.hasOwnProperty;function n_(e,t,r){var i=e[t];(!(i_.call(e,t)&&Nn(i,r))||r===void 0&&!(t in e))&&qs(e,t,r)}function a_(e,t,r,i){var n=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;l===void 0&&(l=e[o]),n?qs(r,o,l):n_(r,o,l)}return r}function s_(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var o_=9007199254740991,l_=/^(?:0|[1-9]\d*)$/;function Uu(e,t){var r=typeof e;return t=t??o_,!!t&&(r=="number"||r!="symbol"&&l_.test(e))&&e>-1&&e%1==0&&e<t}var c_=Object.prototype,h_=c_.hasOwnProperty;function u_(e,t){var r=mn(e),i=!r&&gn(e),n=!r&&!i&&Ws(e),a=!r&&!i&&!n&&Hs(e),s=r||i||n||a,o=s?s_(e.length,String):[],l=o.length;for(var c in e)(t||h_.call(e,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Uu(c,l)))&&o.push(c);return o}function f_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var d_=Object.prototype,p_=d_.hasOwnProperty;function g_(e){if(!Ge(e))return f_(e);var t=Wn(e),r=[];for(var i in e)i=="constructor"&&(t||!p_.call(e,i))||r.push(i);return r}function Xu(e){return Hn(e)?u_(e,!0):g_(e)}function m_(e){return a_(e,Xu(e))}function y_(e,t,r,i,n,a,s){var o=Ga(e,r),l=Ga(t,r),c=s.get(l);if(c){Ya(e,r,c);return}var h=a?a(o,l,r+"",e,t,s):void 0,u=h===void 0;if(u){var f=mn(l),d=!f&&Ws(l),g=!f&&!d&&Hs(l);h=l,f||d||g?mn(o)?h=o:b2(o)?h=u2(o):d?(u=!1,h=l2(l,!0)):g?(u=!1,h=h2(l,!0)):h=[]:L2(l)||gn(l)?(h=o,gn(o)?h=m_(o):(!Ge(o)||zs(o))&&(h=p2(l))):u=!1}u&&(s.set(l,h),n(h,l,i,a,s),s.delete(l)),Ya(e,r,h)}function Zu(e,t,r,i,n){e!==t&&s2(t,function(a,s){if(n||(n=new Sr),Ge(a))y_(e,t,s,r,Zu,i,n);else{var o=i?i(Ga(e,s),a,s+"",e,t,n):void 0;o===void 0&&(o=a),Ya(e,s,o)}},Xu)}function Ku(e){return e}function x_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ol=Math.max;function b_(e,t,r){return t=ol(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=ol(i.length-t,0),s=Array(a);++n<a;)s[n]=i[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=i[n];return o[t]=r(s),x_(e,this,o)}}function __(e){return function(){return e}}var C_=pn?function(e,t){return pn(e,"toString",{configurable:!0,enumerable:!1,value:__(t),writable:!0})}:Ku,w_=800,k_=16,v_=Date.now;function S_(e){var t=0,r=0;return function(){var i=v_(),n=k_-(i-r);if(r=i,n>0){if(++t>=w_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var T_=S_(C_);function B_(e,t){return T_(b_(e,t,Ku),e+"")}function L_(e,t,r){if(!Ge(r))return!1;var i=typeof t;return(i=="number"?Hn(r)&&Uu(t,r.length):i=="string"&&t in r)?Nn(r[t],e):!1}function $_(e){return B_(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,s&&L_(r[0],r[1],s)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var o=r[i];o&&e(t,o,i,a)}return t})}var M_=$_(function(e,t,r){Zu(e,t,r)}),A_="​",F_={curveBasis:Ri,curveBasisClosed:Dx,curveBasisOpen:Ox,curveBumpX:Pc,curveBumpY:Rc,curveBundle:Px,curveCardinalClosed:Rx,curveCardinalOpen:Ix,curveCardinal:qc,curveCatmullRomClosed:Nx,curveCatmullRomOpen:zx,curveCatmullRom:Hc,curveLinear:rn,curveLinearClosed:qx,curveMonotoneX:Xc,curveMonotoneY:Zc,curveNatural:Qc,curveStep:Jc,curveStepAfter:eh,curveStepBefore:th},E_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,D_=p(function(e,t){const r=Qu(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(o=>o.args);Yi(s),i=gt(i,[...s])}else i=r.args;if(!i)return;let n=ds(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),Qu=p(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${E_.source})(?=[}][%]{2}).*
112
+ `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),A.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const n=[];for(;(i=Gr.exec(e))!==null;)if(i.index===Gr.lastIndex&&Gr.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const a=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:a,args:s})}return n.length===0?{type:e,args:null}:n.length===1?n[0]:n}catch(r){return A.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),O_=p(function(e){return e.replace(Gr,"")},"removeDirectives"),P_=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function js(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return F_[r]??t}p(js,"interpolateToCurve");function Ju(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?r1.sanitizeUrl(r):r}p(Ju,"formatUrl");var R_=p((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){A.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function Ys(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(Ys,"distance");function tf(e){let t,r=0;e.forEach(n=>{r+=Ys(n,t),t=n});const i=r/2;return Gs(e,i)}p(tf,"traverseEdge");function ef(e){return e.length===1?e[0]:tf(e)}p(ef,"calcLabelPosition");var ll=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Gs=p((e,t)=>{let r,i=t;for(const n of e){if(r){const a=Ys(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:ll((1-s)*r.x+s*n.x,5),y:ll((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),I_=p((e,t,r)=>{A.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Gs(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(t[0].x+n.x)/2,o.y=-Math.cos(s)*a+(t[0].y+n.y)/2,o},"calcCardinalityPosition");function rf(e,t,r){const i=structuredClone(r);A.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=Gs(i,n),s=10+e*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2),l}p(rf,"calcTerminalLabelPosition");function nf(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(nf,"getStylesFromArray");var cl=0,N_=p(()=>(cl++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cl),"generateId");function af(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(af,"makeRandomHex");var z_=p(e=>af(e.length),"random"),q_=p(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:""}},"getTextObj"),W_=p(function(e,t){const r=t.text.replace(wr.lineBreakRegex," "),[,i]=jn(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),H_=pi((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),wr.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,o)=>{const l=he(`${s} `,r),c=he(a,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=j_(s,t,"-",r);n.push(a,...f),a=d}else c+l>=t?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),j_=pi((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let s="";return n.forEach((o,l)=>{const c=`${s}${o}`;if(he(c,i)>=t){const u=l+1,f=n.length===u,d=`${c}${r}`;a.push(f?c:d),s=""}else s=c}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function sf(e,t){return Vs(e,t).height}p(sf,"calculateTextHeight");function he(e,t){return Vs(e,t).width}p(he,"calculateTextWidth");var Vs=pi((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=jn(r),s=["sans-serif",i],o=e.split(wr.lineBreakRegex),l=[],c=it("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const f of s){let d=0;const g={width:0,height:0,lineHeight:0};for(const m of o){const y=q_();y.text=m||A_;const x=W_(h,y).style("font-size",a).style("font-weight",n).style("font-family",f),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),d=Math.round(b.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}l.push(g)}h.remove();const u=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[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),fr,Y_=(fr=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},p(fr,"InitIDGenerator"),fr),vi,G_=p(function(e){return vi=vi||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),vi.innerHTML=e,unescape(vi.textContent)},"entityDecode");function Us(e){return"str"in e}p(Us,"isDetailedError");var V_=p((e,t,r,i)=>{if(!i)return;const n=e.node()?.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),jn=p(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Xs(e,t){return M_({},e,t)}p(Xs,"cleanAndMerge");var jt={assignWithDepth:gt,wrapLabel:H_,calculateTextHeight:sf,calculateTextWidth:he,calculateTextDimensions:Vs,cleanAndMerge:Xs,detectInit:D_,detectDirective:Qu,isSubstringInArray:P_,interpolateToCurve:js,calcLabelPosition:ef,calcCardinalityPosition:I_,calcTerminalLabelPosition:rf,formatUrl:Ju,getStylesFromArray:nf,generateId:N_,random:z_,runFunc:R_,entityDecode:G_,insertTitle:V_,isLabelCoordinateInPath:of,parseFontSize:jn,InitIDGenerator:Y_},U_=p(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Xe=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),XT=p((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Tt(e){return e??null}p(Tt,"handleUndefinedAttr");function of(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}p(of,"isLabelCoordinateInPath");const X_=Object.freeze({left:0,top:0,width:16,height:16}),yn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lf=Object.freeze({...X_,...yn}),Z_=Object.freeze({...lf,body:"",hidden:!1}),K_=Object.freeze({width:null,height:null}),Q_=Object.freeze({...K_,...yn}),J_=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const o=n.pop(),l=n.pop(),c={provider:n.length>0?n[0]:i,prefix:l,name:o};return oa(c)?c:null}const a=n[0],s=a.split("-");if(s.length>1){const o={provider:i,prefix:s.shift(),name:s.join("-")};return oa(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:a};return oa(o,r)?o:null}return null},oa=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function tC(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function hl(e,t){const r=tC(e,t);for(const i in Z_)i in yn?i in e&&!(i in r)&&(r[i]=yn[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function eC(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const o=i[s]&&i[s].parent,l=o&&a(o);l&&(n[s]=[o].concat(l))}return n[s]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function ul(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function s(o){a=hl(i[o]||n[o],a)}return s(t),r.forEach(s),hl(e,a)}function rC(e,t){if(e.icons[t])return ul(e,t,[]);const r=eC(e,[t])[t];return r?ul(e,t,r):null}const iC=/(-?[0-9.]*[0-9]+[0-9.]*)/g,nC=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fl(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(iC);if(i===null||!i.length)return e;const n=[];let a=i.shift(),s=nC.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?n.push(a):n.push(Math.ceil(o*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}function aC(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const s=e.indexOf(">",a);if(s===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function sC(e,t){return e?"<defs>"+e+"</defs>"+t:t}function oC(e,t,r){const i=aC(e);return sC(i.defs,t+i.content+r)}const lC=e=>e==="unset"||e==="undefined"||e==="none";function cC(e,t){const r={...lf,...e},i={...Q_,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(m=>{const y=[],x=m.hFlip,b=m.vFlip;let _=m.rotate;x?b?_+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):b&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let k;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:k=n.height/2+n.top,y.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:k=n.width/2+n.left,y.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}_%2===1&&(n.left!==n.top&&(k=n.left,n.left=n.top,n.top=k),n.width!==n.height&&(k=n.width,n.width=n.height,n.height=k)),y.length&&(a=oC(a,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=i.width,o=i.height,l=n.width,c=n.height;let h,u;s===null?(u=o===null?"1em":o==="auto"?c:o,h=fl(u,l/c)):(h=s==="auto"?l:s,u=o===null?fl(h,c/l):o==="auto"?c:o);const f={},d=(m,y)=>{lC(y)||(f[m]=y.toString())};d("width",h),d("height",u);const g=[n.left,n.top,l,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const hC=/\sid="(\S+)"/g,dl=new Map;function uC(e){e=e.replace(/[0-9]+$/,"")||"a";const t=dl.get(e)||0;return dl.set(e,t+1),t?`${e}${t}`:e}function fC(e){const t=[];let r;for(;r=hC.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=uC(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function dC(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Zs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ze=Zs();function cf(e){Ze=e}var Xr={exec:()=>null};function nt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Mt.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var pC=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Mt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},gC=/^(?:[ \t]*(?:\n|$))+/,mC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ks=/(?:[*+-]|\d{1,9}[.)])/,hf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uf=nt(hf).replace(/bull/g,Ks).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),bC=nt(hf).replace(/bull/g,Ks).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Qs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_C=/^[^\n]+/,Js=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,CC=nt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Js).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wC=nt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ks).getRegex(),Yn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",to=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,kC=nt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",to).replace("tag",Yn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ff=nt(Qs).replace("hr",mi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yn).getRegex(),vC=nt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ff).getRegex(),eo={blockquote:vC,code:mC,def:CC,fences:yC,heading:xC,hr:mi,html:kC,lheading:uf,list:wC,newline:gC,paragraph:ff,table:Xr,text:_C},pl=nt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yn).getRegex(),SC={...eo,lheading:bC,table:pl,paragraph:nt(Qs).replace("hr",mi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yn).getRegex()},TC={...eo,html:nt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",to).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nt(Qs).replace("hr",mi).replace("heading",` *#{1,6} *[^
113
+ ]`).replace("lheading",uf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},BC=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,LC=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,df=/^( {2,}|\\)\n(?!\s*$)/,$C=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Gn=/[\p{P}\p{S}]/u,ro=/[\s\p{P}\p{S}]/u,pf=/[^\s\p{P}\p{S}]/u,MC=nt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ro).getRegex(),gf=/(?!~)[\p{P}\p{S}]/u,AC=/(?!~)[\s\p{P}\p{S}]/u,FC=/(?:[^\s\p{P}\p{S}]|~)/u,EC=nt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",pC?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),mf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,DC=nt(mf,"u").replace(/punct/g,Gn).getRegex(),OC=nt(mf,"u").replace(/punct/g,gf).getRegex(),yf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",PC=nt(yf,"gu").replace(/notPunctSpace/g,pf).replace(/punctSpace/g,ro).replace(/punct/g,Gn).getRegex(),RC=nt(yf,"gu").replace(/notPunctSpace/g,FC).replace(/punctSpace/g,AC).replace(/punct/g,gf).getRegex(),IC=nt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,pf).replace(/punctSpace/g,ro).replace(/punct/g,Gn).getRegex(),NC=nt(/\\(punct)/,"gu").replace(/punct/g,Gn).getRegex(),zC=nt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),qC=nt(to).replace("(?:-->|$)","-->").getRegex(),WC=nt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",qC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,HC=nt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xf=nt(/^!?\[(label)\]\[(ref)\]/).replace("label",xn).replace("ref",Js).getRegex(),bf=nt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Js).getRegex(),jC=nt("reflink|nolink(?!\\()","g").replace("reflink",xf).replace("nolink",bf).getRegex(),gl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,io={_backpedal:Xr,anyPunctuation:NC,autolink:zC,blockSkip:EC,br:df,code:LC,del:Xr,emStrongLDelim:DC,emStrongRDelimAst:PC,emStrongRDelimUnd:IC,escape:BC,link:HC,nolink:bf,punctuation:MC,reflink:xf,reflinkSearch:jC,tag:WC,text:$C,url:Xr},YC={...io,link:nt(/^!?\[(label)\]\((.*?)\)/).replace("label",xn).getRegex(),reflink:nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xn).getRegex()},Va={...io,emStrongRDelimAst:RC,emStrongLDelim:OC,url:nt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gl).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:nt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gl).getRegex()},GC={...Va,br:nt(df).replace("{2,}","*").getRegex(),text:nt(Va.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Si={normal:eo,gfm:SC,pedantic:TC},Ar={normal:io,gfm:Va,breaks:GC,pedantic:YC},VC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ml=e=>VC[e];function Xt(e,t){if(t){if(Mt.escapeTest.test(e))return e.replace(Mt.escapeReplace,ml)}else if(Mt.escapeTestNoEncode.test(e))return e.replace(Mt.escapeReplaceNoEncode,ml);return e}function yl(e){try{e=encodeURI(e).replace(Mt.percentDecode,"%")}catch{return null}return e}function xl(e,t){let r=e.replace(Mt.findPipe,(a,s,o)=>{let l=!1,c=s;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(Mt.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(Mt.slashPipe,"|");return i}function Fr(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function UC(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function bl(e,t,r,i,n){let a=t.href,s=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function XC(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
114
+ `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(`
115
+ `)}var bn=class{options;rules;lexer;constructor(t){this.options=t||Ze}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Fr(i,`
116
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=XC(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=Fr(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Fr(r[0],`
117
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Fr(r[0],`
118
+ `).split(`
119
+ `),n="",a="",s=[];for(;i.length>0;){let o=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),o=!0;else if(!o)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
120
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
121
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
122
+ ${h}`:h,a=a?`${a}
123
+ ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,i.length===0)break;let d=s.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let g=d,m=g.raw+`
124
+ `+i.join(`
125
+ `),y=this.blockquote(m);s[s.length-1]=y,n=n.substring(0,n.length-g.raw.length)+y.raw,a=a.substring(0,a.length-g.text.length)+y.text;break}else if(d?.type==="list"){let g=d,m=g.raw+`
126
+ `+i.join(`
127
+ `),y=this.list(m);s[s.length-1]=y,n=n.substring(0,n.length-d.raw.length)+y.raw,a=a.substring(0,a.length-g.raw.length)+y.raw,i=m.substring(s.at(-1).raw.length).split(`
128
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let s=this.rules.other.listItemRegex(i),o=!1;for(;t;){let c=!1,h="",u="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let f=r[2].split(`
129
+ `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),d=t.split(`
130
+ `,1)[0],g=!f.trim(),m=0;if(this.options.pedantic?(m=2,u=f.trimStart()):g?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=f.slice(m),m+=r[1].length),g&&this.rules.other.blankLine.test(d)&&(h+=d+`
131
+ `,t=t.substring(d.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(m),_=this.rules.other.hrRegex(m),k=this.rules.other.fencesBeginRegex(m),C=this.rules.other.headingBeginRegex(m),B=this.rules.other.htmlBeginRegex(m);for(;t;){let v=t.split(`
132
+ `,1)[0],E;if(d=v,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),E=d):E=d.replace(this.rules.other.tabCharGlobal," "),k.test(d)||C.test(d)||B.test(d)||b.test(d)||_.test(d))break;if(E.search(this.rules.other.nonSpaceChar)>=m||!d.trim())u+=`
133
+ `+E.slice(m);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||C.test(f)||_.test(f))break;u+=`
134
+ `+d}!g&&!d.trim()&&(g=!0),h+=v+`
135
+ `,t=t.substring(v.length+1),f=E.slice(m)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let y=null,x;this.options.gfm&&(y=this.rules.other.listIsTask.exec(u),y&&(x=y[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:x,loose:!1,text:u,tokens:[]}),a.raw+=h}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let h=a.items[c].tokens.filter(f=>f.type==="space"),u=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=u}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=xl(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
136
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<i.length;o++)s.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:s.align[o]});for(let o of a)s.rows.push(xl(o,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
137
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=Fr(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=UC(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),bl(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return bl(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,s,o,l=a,c=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(n=h.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){l+=o;continue}else if((n[5]||n[6])&&a%3&&!((a+o)%3)){c+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+c);let u=[...n[0]][0].length,f=t.slice(0,a+n.index+u+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,n;if(r[2]==="@")i=r[0],n="mailto:"+i;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);i=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},qt=class Ua{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ze,this.options.tokenizer=this.options.tokenizer||new bn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Mt,block:Si.normal,inline:Ar.normal};this.options.pedantic?(r.block=Si.pedantic,r.inline=Ar.pedantic):this.options.gfm&&(r.block=Si.gfm,this.options.breaks?r.inline=Ar.breaks:r.inline=Ar.gfm),this.tokenizer.rules=r}static get rules(){return{block:Si,inline:Ar}}static lex(t,r){return new Ua(r).lex(t)}static lexInline(t,r){return new Ua(r).inlineTokens(t)}lex(t){t=t.replace(Mt.carriageReturn,`
138
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(Mt.tabCharGlobal," ").replace(Mt.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(s=>(n=s.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let s=r.at(-1);n.raw.length===1&&s!==void 0?s.raw+=`
139
+ `:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
140
+ `)?"":`
141
+ `)+n.raw,s.text+=`
142
+ `+n.text,this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
143
+ `)?"":`
144
+ `)+n.raw,s.text+=`
145
+ `+n.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let s=r.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
146
+ `)?"":`
147
+ `)+n.raw,s.text+=`
148
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n),i=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
149
+ `)?"":`
150
+ `)+n.raw,s.text+=`
151
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,o)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,u=t.slice(1),f;this.options.extensions.startInline.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},_n=class{options;parser;constructor(t){this.options=t||Ze}space(t){return""}code({text:t,lang:r,escaped:i}){let n=(r||"").match(Mt.notSpaceStart)?.[0],a=t.replace(Mt.endingNewline,"")+`
152
+ `;return n?'<pre><code class="language-'+Xt(n)+'">'+(i?a:Xt(a,!0))+`</code></pre>
153
+ `:"<pre><code>"+(i?a:Xt(a,!0))+`</code></pre>
154
+ `}blockquote({tokens:t}){return`<blockquote>
155
+ ${this.parser.parse(t)}</blockquote>
156
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
157
+ `}hr(t){return`<hr>
158
+ `}list(t){let r=t.ordered,i=t.start,n="";for(let o=0;o<t.items.length;o++){let l=t.items[o];n+=this.listitem(l)}let a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
159
+ `+n+"</"+a+`>
160
+ `}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+Xt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
161
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
162
+ `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
163
+ <thead>
164
+ `+r+`</thead>
165
+ `+n+`</table>
166
+ `}tablerow({text:t}){return`<tr>
167
+ ${t}</tr>
168
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
169
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Xt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=yl(t);if(a===null)return n;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+Xt(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=yl(t);if(a===null)return Xt(i);t=a;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${Xt(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Xt(t.text)}},no=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Wt=class Xa{options;renderer;textRenderer;constructor(t){this.options=t||Ze,this.options.renderer=this.options.renderer||new _n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new no}static parse(t,r){return new Xa(r).parse(t)}static parseInline(t,r){return new Xa(r).parseInline(t)}parse(t,r=!0){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let o=a,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){i+=l||"";continue}}let s=a;switch(s.type){case"space":{i+=this.renderer.space(s);continue}case"hr":{i+=this.renderer.hr(s);continue}case"heading":{i+=this.renderer.heading(s);continue}case"code":{i+=this.renderer.code(s);continue}case"table":{i+=this.renderer.table(s);continue}case"blockquote":{i+=this.renderer.blockquote(s);continue}case"list":{i+=this.renderer.list(s);continue}case"html":{i+=this.renderer.html(s);continue}case"def":{i+=this.renderer.def(s);continue}case"paragraph":{i+=this.renderer.paragraph(s);continue}case"text":{let o=s,l=this.renderer.text(o);for(;n+1<t.length&&t[n+1].type==="text";)o=t[++n],l+=`
170
+ `+this.renderer.text(o);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(t,r=this.renderer){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=o||"";continue}}let s=a;switch(s.type){case"escape":{i+=r.text(s);break}case"html":{i+=r.html(s);break}case"link":{i+=r.link(s);break}case"image":{i+=r.image(s);break}case"strong":{i+=r.strong(s);break}case"em":{i+=r.em(s);break}case"codespan":{i+=r.codespan(s);break}case"br":{i+=r.br(s);break}case"del":{i+=r.del(s);break}case"text":{i+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},zr=class{options;block;constructor(t){this.options=t||Ze}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?qt.lex:qt.lexInline}provideParser(){return this.block?Wt.parse:Wt.parseInline}},ZC=class{defaults=Zs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Wt;Renderer=_n;TextRenderer=no;Lexer=qt;Tokenizer=bn;Hooks=zr;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":{let a=n;for(let s of a.header)i=i.concat(this.walkTokens(s.tokens,r));for(let s of a.rows)for(let o of s)i=i.concat(this.walkTokens(o.tokens,r));break}case"list":{let a=n;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let o=a[s].flat(1/0);i=i.concat(this.walkTokens(o,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new _n(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new bn(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new zr;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],c=a[o];zr.passThroughHooks.has(s)?a[o]=h=>{if(this.defaults.async&&zr.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,h);return c.call(a,f)})();let u=l.call(a,h);return c.call(a,u)}:a[o]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,h);return f===!1&&(f=await c.apply(a,h)),f})();let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return qt.lex(t,r??this.defaults)}parser(t,r){return Wt.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():t?qt.lex:qt.lexInline)(o,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?Wt.parse:Wt.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():t?qt.lex:qt.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():t?Wt.parse:Wt.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,r){return i=>{if(i.message+=`
171
+ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Xt(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},je=new ZC;function ot(e,t){return je.parse(e,t)}ot.options=ot.setOptions=function(e){return je.setOptions(e),ot.defaults=je.defaults,cf(ot.defaults),ot};ot.getDefaults=Zs;ot.defaults=Ze;ot.use=function(...e){return je.use(...e),ot.defaults=je.defaults,cf(ot.defaults),ot};ot.walkTokens=function(e,t){return je.walkTokens(e,t)};ot.parseInline=je.parseInline;ot.Parser=Wt;ot.parser=Wt.parse;ot.Renderer=_n;ot.TextRenderer=no;ot.Lexer=qt;ot.lexer=qt.lex;ot.Tokenizer=bn;ot.Hooks=zr;ot.parse=ot;ot.options;ot.setOptions;ot.use;ot.walkTokens;ot.parseInline;Wt.parse;qt.lex;function _f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(h){var u,f;return(f=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):o},[]);if(n.length){var a=new RegExp(`
172
+ [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(o){return o.replace(a,`
173
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(o,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=o;typeof o=="string"&&o.includes(`
174
+ `)&&(u=String(o).split(`
175
+ `).map(function(f,d){return d===0?f:""+h+f}).join(`
176
+ `)),s+=u+i[l+1]}),s}var KC={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Za=new Map,Cf=new Map,QC=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(A.debug("Registering icon pack:",t.name),"loader"in t)Cf.set(t.name,t.loader);else if("icons"in t)Za.set(t.name,t.icons);else throw A.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),wf=p(async(e,t)=>{const r=J_(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=Za.get(i);if(!n){const s=Cf.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},Za.set(i,n)}catch(o){throw A.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=rC(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),JC=p(async e=>{try{return await wf(e),!0}catch{return!1}},"isIconAvailable"),yi=p(async(e,t,r)=>{let i;try{i=await wf(e,t?.fallbackPrefix)}catch(s){A.error(s),i=KC}const n=cC(i,t),a=dC(fC(n.body),{...n.attributes,...r});return Nt(a,vt())},"getIconSVG");function kf(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
177
+ `).replace(/\n{2,}/g,`
178
+ `),n=_f(i);return t===!1?n.replace(/ /g,"&nbsp;"):n}p(kf,"preprocessMarkdown");function vf(e,t={}){const r=kf(e,t),i=ot.lexer(r),n=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
179
+ `).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&n[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{s(c,o.type)}):o.type==="html"&&n[a].push({content:o.text,type:"normal"})}return p(s,"processNode"),i.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?n[a].push({content:o.text,type:"normal"}):n[a].push({content:o.raw,type:"normal"})}),n}p(vf,"markdownToLines");function Sf(e,{markdownAutoWrap:t}={}){const r=ot.lexer(e);function i(n){return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${n.tokens?.map(i).join("")}</strong>`:n.type==="em"?`<em>${n.tokens?.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${n.tokens?.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(A.warn(`Unsupported markdown: ${n.type}`),n.raw)}return p(i,"output"),r.map(i).join("")}p(Sf,"markdownToHTML");function Tf(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(Tf,"splitTextToChars");function Bf(e,t){const r=Tf(t.content);return ao(e,[],r,t.type)}p(Bf,"splitWordToFitWidth");function ao(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,s=[...t,n];return e([{content:s.join(""),type:i}])?ao(e,s,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(ao,"splitWordToFitWidthRecursion");function Lf(e,t){if(e.some(({content:r})=>r.includes(`
180
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Cn(e,t)}p(Lf,"splitLineToFitWidth");function Cn(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))return Cn(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[o,l]=Bf(t,a);r.push([o]),l.content&&e.unshift(l)}return Cn(e,t,r)}p(Cn,"splitLineToFitWidthRecursion");function Ka(e,t){t&&e.attr("style",t)}p(Ka,"applyStyle");async function $f(e,t,r,i,n=!1,a=vt()){const s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const o=s.append("xhtml:div"),l=gr(t.label)?await ps(t.label.replace(wr.lineBreakRegex,`
181
+ `),a):Nt(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),Ka(h,t.labelStyle),h.attr("class",`${c} ${i}`),Ka(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),s.node()}p($f,"addHtmlSpan");function Vn(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}p(Vn,"createTspan");function Mf(e,t,r){const i=e.append("text"),n=Vn(i,1,t);Un(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}p(Mf,"computeWidthOfText");function tw(e,t,r){const i=e.append("text"),n=Vn(i,1,t);Un(n,[{content:r,type:"normal"}]);const a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}p(tw,"computeDimensionOfText");function Af(e,t,r,i=!1){const a=t.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),o=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const h=p(f=>Mf(a,1.1,f)<=e,"checkWidth"),u=h(c)?[c]:Lf(c,h);for(const f of u){const d=Vn(o,l,1.1);Un(d,f),l++}}if(i){const c=o.node().getBBox(),h=2;return s.attr("x",c.x-h).attr("y",c.y-h).attr("width",c.width+2*h).attr("height",c.height+2*h),a.node()}else return o.node()}p(Af,"createFormattedText");function Un(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(r.content):n.text(" "+r.content)})}p(Un,"updateTextContentAndStyles");async function Ff(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await JC(o)?await yi(o,void 0,{class:"label-icon"}):`<i class='${Nt(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(Ff,"replaceIconSubstring");var Se=p(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>{if(A.debug("XYZ createText",t,r,i,n,a,s,"addSvgBackground: ",l),a){const h=Sf(t,c),u=await Ff(Xe(h),c),f=t.replace(/\\\\/g,"\\"),d={isNode:s,label:gr(t)?f:u,labelStyle:r.replace("fill:","color:")};return await $f(e,d,o,n,l,c)}else{const h=t.replace(/<br\s*\/?>/g,"<br/>"),u=vf(h.replace("<br>","<br/>"),c),f=Af(o,e,u,t?l:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");it(f).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");it(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");it(f).select("text").attr("style",g)}return f}},"createText");function la(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of e){const[c,h]=l;l[0]=(c-i)*s-(h-n)*o+i,l[1]=(c-i)*o+(h-n)*s+n}}}function ew(e,t){return e[0]===t[0]&&e[1]===t[1]}function rw(e,t,r,i=1){const n=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,o=[0,0];if(n)for(const c of s)la(c,o,n);const l=(function(c,h,u){const f=[];for(const b of c){const _=[...b];ew(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}const d=[];h=Math.max(h,.1);const g=[];for(const b of f)for(let _=0;_<b.length-1;_++){const k=b[_],C=b[_+1];if(k[1]!==C[1]){const B=Math.min(k[1],C[1]);g.push({ymin:B,ymax:Math.max(k[1],C[1]),x:B===k[1]?k[0]:C[0],islope:(C[0]-k[0])/(C[1]-k[1])})}}if(g.sort(((b,_)=>b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.x<_.x?-1:b.x>_.x?1:b.ymax===_.ymax?0:(b.ymax-_.ymax)/Math.abs(b.ymax-_.ymax))),!g.length)return d;let m=[],y=g[0].ymin,x=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_<g.length&&!(g[_].ymin>y);_++)b=_;g.splice(0,b+1).forEach((_=>{m.push({s:y,edge:_})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(u!==1||x%h==0)&&m.length>1)for(let b=0;b<m.length;b+=2){const _=b+1;if(_>=m.length)break;const k=m[b].edge,C=m[_].edge;d.push([[Math.round(k.x),y],[Math.round(C.x),y]])}y+=u,m.forEach((b=>{b.edge.x=b.edge.x+u*b.edge.islope})),x++}return d})(s,a,i);if(n){for(const c of s)la(c,o,-n);(function(c,h,u){const f=[];c.forEach((d=>f.push(...d))),la(f,h,u)})(l,o,-n)}return l}function xi(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),rw(e,n,i,a||1)}class so{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=xi(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function Xn(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class iw extends so{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=xi(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[c,h]of n)Xn([c,h])&&s.push([[c[0]-o,c[1]+l],[...h]],[[c[0]+o,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class nw extends so{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class aw{constructor(t){this.helper=t}fillPolygons(t,r){const i=xi(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n/4;for(const o of t){const l=Xn(o),c=l/n,h=Math.ceil(c)-1,u=l-h*n,f=(o[0][0]+o[1][0])/2-n/4,d=Math.min(o[0][1],o[1][1]);for(let g=0;g<h;g++){const m=d+u+g*n,y=f-s+2*Math.random()*s,x=m-s+2*Math.random()*s,b=this.helper.ellipse(y,x,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class sw{constructor(t){this.helper=t}fillPolygons(t,r){const i=xi(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach((s=>{const o=Xn(s),l=Math.floor(o/(i+n)),c=(o+n-l*(i+n))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let d=0;d<l;d++){const g=d*(i+n),m=g+i,y=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],x=[h[0]+m*Math.cos(f)+c*Math.cos(f),h[1]+m*Math.sin(f)+c*Math.sin(f)];a.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r))}})),a}}class ow{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=xi(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((a=>{const s=Xn(a),o=Math.round(s/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<o;u++){const f=2*u*r,d=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],x=[m[0]+g*Math.cos(h+Math.PI/4),m[1]+g*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],i))}})),n}}const Ft={};class lw{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const cw=0,ca=1,_l=2,Ti={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function ha(e,t){return e.type===t}function oo(e){const t=[],r=(function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:cw,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:ca,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:_l,text:""},o})(e);let i="BOD",n=0,a=r[n];for(;!ha(a,_l);){let s=0;const o=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return oo("M0,0"+e);n++,s=Ti[a.text],i=a.text}else ha(a,ca)?s=Ti[i]:(n++,s=Ti[a.text],i=a.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let l=n;l<n+s;l++){const c=r[l];if(!ha(c,ca))throw new Error("Param not a number: "+i+","+c.text);o[o.length]=+c.text}if(typeof Ti[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:o};t.push(l),n+=s,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Ef(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,r]=o,[i,n]=o;break;case"m":t+=o[0],r+=o[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{const l=o.map(((c,h)=>h%2?c+r:c+t));a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{const l=o.map(((c,h)=>h%2?c+r:c+t));a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{const l=o.map(((c,h)=>h%2?c+r:c+t));a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function Df(e){const t=[];let r="",i=0,n=0,a=0,s=0,o=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,n]=h,[a,s]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],n=h[5],o=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,n]});break;case"V":n=h[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-o),f=n+(n-l)):(u=i,f=n),t.push({key:"C",data:[u,f,...h]}),o=h[0],l=h[1],i=h[2],n=h[3];break}case"T":{const[u,f]=h;let d=0,g=0;r==="Q"||r==="T"?(d=i+(i-o),g=n+(n-l)):(d=i,g=n);const m=i+2*(d-i)/3,y=n+2*(g-n)/3,x=u+2*(d-u)/3,b=f+2*(g-f)/3;t.push({key:"C",data:[m,y,x,b,u,f]}),o=d,l=g,i=u,n=f;break}case"Q":{const[u,f,d,g]=h,m=i+2*(u-i)/3,y=n+2*(f-n)/3,x=d+2*(u-d)/3,b=g+2*(f-g)/3;t.push({key:"C",data:[m,y,x,b,d,g]}),o=u,l=f,i=d,n=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),d=h[2],g=h[3],m=h[4],y=h[5],x=h[6];u===0||f===0?(t.push({key:"C",data:[i,n,y,x,y,x]}),i=y,n=x):(i!==y||n!==x)&&(Of(i,n,y,x,u,f,d,g,m).forEach((function(b){t.push({key:"C",data:b})})),i=y,n=x);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=s}r=c}return t}function Er(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Of(e,t,r,i,n,a,s,o,l,c){const h=(u=s,Math.PI*u/180);var u;let f=[],d=0,g=0,m=0,y=0;if(c)[d,g,m,y]=c;else{[e,t]=Er(e,t,-h),[r,i]=Er(r,i,-h);const O=(e-r)/2,T=(t-i)/2;let L=O*O/(n*n)+T*T/(a*a);L>1&&(L=Math.sqrt(L),n*=L,a*=L);const S=n*n,M=a*a,$=S*M-S*T*T-M*O*O,W=S*T*T+M*O*O,G=(o===l?-1:1)*Math.sqrt(Math.abs($/W));m=G*n*T/a+(e+r)/2,y=G*-a*O/n+(t+i)/2,d=Math.asin(parseFloat(((t-y)/a).toFixed(9))),g=Math.asin(parseFloat(((i-y)/a).toFixed(9))),e<m&&(d=Math.PI-d),r<m&&(g=Math.PI-g),d<0&&(d=2*Math.PI+d),g<0&&(g=2*Math.PI+g),l&&d>g&&(d-=2*Math.PI),!l&&g>d&&(g-=2*Math.PI)}let x=g-d;if(Math.abs(x)>120*Math.PI/180){const O=g,T=r,L=i;g=l&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=Of(r=m+n*Math.cos(g),i=y+a*Math.sin(g),T,L,n,a,s,0,l,[g,O,m,y])}x=g-d;const b=Math.cos(d),_=Math.sin(d),k=Math.cos(g),C=Math.sin(g),B=Math.tan(x/4),v=4/3*n*B,E=4/3*a*B,P=[e,t],D=[e+v*_,t-E*b],F=[r+v*C,i-E*k],R=[r,i];if(D[0]=2*P[0]-D[0],D[1]=2*P[1]-D[1],c)return[D,F,R].concat(f);{f=[D,F,R].concat(f);const O=[];for(let T=0;T<f.length;T+=3){const L=Er(f[T][0],f[T][1],h),S=Er(f[T+1][0],f[T+1][1],h),M=Er(f[T+2][0],f[T+2][1],h);O.push([L[0],L[1],S[0],S[1],M[0],M[1]])}return O}}const hw={randOffset:function(e,t){return Q(e,t)},randOffsetWithRange:function(e,t,r){return wn(e,t,r)},ellipse:function(e,t,r,i,n){const a=Rf(r,i,n);return Qa(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return we(e,t,r,i,n,!0)}};function Pf(e,t,r,i,n){return{type:"path",ops:we(e,t,r,i,n)}}function zi(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...we(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...we(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?Pf(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function uw(e,t,r,i,n){return(function(a,s){return zi(a,!0,s)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function Cl(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Bi(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Bi(r[0],1.5*(1+.22*t.roughness),vl(t));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=Bi(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Bi(s,1.5*(1+.22*t.roughness),vl(t));for(const c of o)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&n.push(c)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function Rf(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let s=Math.abs(e/2),o=Math.abs(t/2);const l=1-r.curveFitting;return s+=Q(s*l,r),o+=Q(o*l,r),{increment:a,rx:s,ry:o}}function Qa(e,t,r,i){const[n,a]=Sl(i.increment,e,t,i.rx,i.ry,1,i.increment*wn(.1,wn(.4,1,r),r),r);let s=kn(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=Sl(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=kn(o,null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function wl(e,t,r,i,n,a,s,o,l){const c=e,h=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=Q(.01*u,l),f+=Q(.01*f,l);let d=n,g=a;for(;d<0;)d+=2*Math.PI,g+=2*Math.PI;g-d>2*Math.PI&&(d=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-d)/2),x=Tl(y,c,h,u,f,d,g,1,l);if(!l.disableMultiStroke){const b=Tl(y,c,h,u,f,d,g,1.5,l);x.push(...b)}return s&&(o?x.push(...we(c,h,c+u*Math.cos(d),h+f*Math.sin(d),l),...we(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:x}}function kl(e,t){const r=Df(Ef(oo(e))),i=[];let n=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...we(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{const[l,c,h,u,f,d]=o;i.push(...fw(l,c,h,u,f,d,a,t)),a=[f,d];break}case"Z":i.push(...we(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function ua(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Q(n,t),i[0][1]+Q(n,t)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[i[s][0]+Q(n,t),i[s][1]+Q(n,t)]})}}return{type:"fillPath",ops:r}}function Qe(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!Ft[n])switch(n){case"zigzag":Ft[n]||(Ft[n]=new iw(i));break;case"cross-hatch":Ft[n]||(Ft[n]=new nw(i));break;case"dots":Ft[n]||(Ft[n]=new aw(i));break;case"dashed":Ft[n]||(Ft[n]=new sw(i));break;case"zigzag-line":Ft[n]||(Ft[n]=new ow(i));break;default:n="hachure",Ft[n]||(Ft[n]=new so(i))}return Ft[n]})(t,hw).fillPolygons(e,t)}function vl(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function If(e){return e.randomizer||(e.randomizer=new lw(e.seed||0)),e.randomizer.next()}function wn(e,t,r,i=1){return r.roughness*i*(If(r)*(t-e)+e)}function Q(e,t,r=1){return wn(-e,e,t,r)}function we(e,t,r,i,n,a=!1){const s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=Ja(e,t,r,i,n,!0,!1);if(s)return o;const l=Ja(e,t,r,i,n,!0,!0);return o.concat(l)}function Ja(e,t,r,i,n,a,s){const o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>o&&(h=l/10);const u=h/2,f=.2+.2*If(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=Q(d,n,c),g=Q(g,n,c);const m=[],y=()=>Q(u,n,c),x=()=>Q(h,n,c),b=n.preserveVertices;return s?m.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):m.push({op:"move",data:[e+(b?0:Q(h,n,c)),t+(b?0:Q(h,n,c))]}),s?m.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),g+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),g+t+2*(i-t)*f+y(),r+(b?0:y()),i+(b?0:y())]}):m.push({op:"bcurveTo",data:[d+e+(r-e)*f+x(),g+t+(i-t)*f+x(),d+e+2*(r-e)*f+x(),g+t+2*(i-t)*f+x(),r+(b?0:x()),i+(b?0:x())]}),m}function Bi(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Q(t,r),e[0][1]+Q(t,r)]),i.push([e[0][0]+Q(t,r),e[0][1]+Q(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Q(t,r),e[n][1]+Q(t,r)]),n===e.length-1&&i.push([e[n][0]+Q(t,r),e[n][1]+Q(t,r)]);return kn(i,null,r)}function kn(e,t,r){const i=e.length,n=[];if(i>3){const a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let o=1;o+2<i;o++){const l=e[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*e[o+1][0]-s*e[o-1][0])/6,l[1]+(s*e[o+1][1]-s*e[o-1][1])/6],a[2]=[e[o+1][0]+(s*e[o][0]-s*e[o+2][0])/6,e[o+1][1]+(s*e[o][1]-s*e[o+2][1])/6],a[3]=[e[o+1][0],e[o+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...Ja(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function Sl(e,t,r,i,n,a,s,o){const l=[],c=[];if(o.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+n*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+n*Math.sin(0)]),c.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const h=Q(.5,o)-Math.PI/2;c.push([Q(a,o)+t+.9*i*Math.cos(h-e),Q(a,o)+r+.9*n*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=e){const d=[Q(a,o)+t+i*Math.cos(f),Q(a,o)+r+n*Math.sin(f)];l.push(d),c.push(d)}c.push([Q(a,o)+t+i*Math.cos(h+2*Math.PI+.5*s),Q(a,o)+r+n*Math.sin(h+2*Math.PI+.5*s)]),c.push([Q(a,o)+t+.98*i*Math.cos(h+s),Q(a,o)+r+.98*n*Math.sin(h+s)]),c.push([Q(a,o)+t+.9*i*Math.cos(h+.5*s),Q(a,o)+r+.9*n*Math.sin(h+.5*s)])}return[c,l]}function Tl(e,t,r,i,n,a,s,o,l){const c=a+Q(.1,l),h=[];h.push([Q(o,l)+t+.9*i*Math.cos(c-e),Q(o,l)+r+.9*n*Math.sin(c-e)]);for(let u=c;u<=s;u+=e)h.push([Q(o,l)+t+i*Math.cos(u),Q(o,l)+r+n*Math.sin(u)]);return h.push([t+i*Math.cos(s),r+n*Math.sin(s)]),h.push([t+i*Math.cos(s),r+n*Math.sin(s)]),kn(h,null,l)}function fw(e,t,r,i,n,a,s,o){const l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let h=[0,0];const u=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let d=0;d<u;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:Q(c[0],o)),s[1]+(f?0:Q(c[0],o))]}),h=f?[n,a]:[n+Q(c[d],o),a+Q(c[d],o)],l.push({op:"bcurveTo",data:[e+Q(c[d],o),t+Q(c[d],o),r+Q(c[d],o),i+Q(c[d],o),h[0],h[1]]});return l}function Dr(e){return[...e]}function Bl(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(Dr(e[0]),Dr(e[1]),Dr(e[2]),Dr(e[2]));else{const n=[];n.push(e[0],e[0]);for(let o=1;o<e.length;o++)n.push(e[o]),o===e.length-1&&n.push(e[o]);const a=[],s=1-t;i.push(Dr(n[0]));for(let o=1;o+2<n.length;o++){const l=n[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*n[o+1][0]-s*n[o-1][0])/6,l[1]+(s*n[o+1][1]-s*n[o-1][1])/6],a[2]=[n[o+1][0]+(s*n[o][0]-s*n[o+2][0])/6,n[o+1][1]+(s*n[o][1]-s*n[o+2][1])/6],a[3]=[n[o+1][0],n[o+1][1]],i.push(a[1],a[2],a[3])}}return i}function qi(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function dw(e,t,r){const i=qi(t,r);if(i===0)return qi(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),qi(e,Me(t,r,n))}function Me(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function ts(e,t,r,i){const n=i||[];if((function(o,l){const c=o[l+0],h=o[l+1],u=o[l+2],f=o[l+3];let d=3*h[0]-2*c[0]-f[0];d*=d;let g=3*h[1]-2*c[1]-f[1];g*=g;let m=3*u[0]-2*f[0]-c[0];m*=m;let y=3*u[1]-2*f[1]-c[1];return y*=y,d<m&&(d=m),g<y&&(g=y),d+g})(e,t)<r){const o=e[t+0];n.length?(a=n[n.length-1],s=o,Math.sqrt(qi(a,s))>1&&n.push(o)):n.push(o),n.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],f=Me(l,c,.5),d=Me(c,h,.5),g=Me(h,u,.5),m=Me(f,d,.5),y=Me(d,g,.5),x=Me(m,y,.5);ts([l,f,m,x],0,r,n),ts([x,y,g,u],0,r,n)}var a,s;return n}function pw(e,t){return vn(e,0,e.length,t)}function vn(e,t,r,i,n){const a=n||[],s=e[t],o=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=dw(e[h],s,o);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(vn(e,t,c+1,i,a),vn(e,c,r,i,a)):(a.length||a.push(s),a.push(o)),a}function fa(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)ts(e,3*a,t,i);return r&&r>0?vn(i,0,i.length,r):i}const Pt="none";class Sn{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const s=this._o(a);return this._d("line",[Pf(t,r,i,n,s)],s)}rectangle(t,r,i,n,a){const s=this._o(a),o=[],l=uw(t,r,i,n,s);if(s.fill){const c=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];s.fillStyle==="solid"?o.push(ua([c],s)):o.push(Qe([c],s))}return s.stroke!==Pt&&o.push(l),this._d("rectangle",o,s)}ellipse(t,r,i,n,a){const s=this._o(a),o=[],l=Rf(i,n,s),c=Qa(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=Qa(t,r,s,l).opset;h.type="fillPath",o.push(h)}else o.push(Qe([c.estimatedPoints],s));return s.stroke!==Pt&&o.push(c.opset),this._d("ellipse",o,s)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[zi(t,!1,i)],i)}arc(t,r,i,n,a,s,o=!1,l){const c=this._o(l),h=[],u=wl(t,r,i,n,a,s,o,!0,c);if(o&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const d=wl(t,r,i,n,a,s,!0,!1,f);d.type="fillPath",h.push(d)}else h.push((function(f,d,g,m,y,x,b){const _=f,k=d;let C=Math.abs(g/2),B=Math.abs(m/2);C+=Q(.01*C,b),B+=Q(.01*B,b);let v=y,E=x;for(;v<0;)v+=2*Math.PI,E+=2*Math.PI;E-v>2*Math.PI&&(v=0,E=2*Math.PI);const P=(E-v)/b.curveStepCount,D=[];for(let F=v;F<=E;F+=P)D.push([_+C*Math.cos(F),k+B*Math.sin(F)]);return D.push([_+C*Math.cos(E),k+B*Math.sin(E)]),D.push([_,k]),Qe([D],b)})(t,r,i,n,a,s,c));return c.stroke!==Pt&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),n=[],a=Cl(t,i);if(i.fill&&i.fill!==Pt)if(i.fillStyle==="solid"){const s=Cl(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=t;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...fa(Bl([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):s.push(...fa(Bl(c),10,(1+i.roughness)/2))}s.length&&n.push(Qe([s],i))}return i.stroke!==Pt&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=zi(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(ua([t],i)):n.push(Qe([t],i))),i.stroke!==Pt&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==Pt,s=i.stroke!==Pt,o=!!(i.simplification&&i.simplification<1),l=(function(h,u,f){const d=Df(Ef(oo(h))),g=[];let m=[],y=[0,0],x=[];const b=()=>{x.length>=4&&m.push(...fa(x,u)),x=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:C,data:B}of d)switch(C){case"M":_(),y=[B[0],B[1]],m.push(y);break;case"L":b(),m.push([B[0],B[1]]);break;case"C":if(!x.length){const v=m.length?m[m.length-1]:y;x.push([v[0],v[1]])}x.push([B[0],B[1]]),x.push([B[2],B[3]]),x.push([B[4],B[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(_(),!f)return g;const k=[];for(const C of g){const B=pw(C,f);B.length&&k.push(B)}return k})(t,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),c=kl(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const h=kl(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(ua(l,i));else n.push(Qe(l,i));return s&&(o?l.forEach((h=>{n.push(zi(h,!1,i))})):n.push(c)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map((s=>+s.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Pt};break;case"fillPath":s={d:this.opsToPath(a),stroke:Pt,strokeWidth:0,fill:i.fill||Pt};break;case"fillSketch":s=this.fillSketch(a,i)}s&&n.push(s)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Pt,strokeWidth:i,fill:Pt}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class gw{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Sn(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const o=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,o),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const s=typeof i=="number"&&i>=0?a.data.map((o=>+o.toFixed(i))):a.data;switch(a.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s),s}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s),s}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s),s}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,s,o=!1,l){const c=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const Li="http://www.w3.org/2000/svg";class mw{constructor(t,r){this.svg=t,this.gen=new Sn(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Li,"g"),s=t.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=n.createElementNS(Li,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(Li,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,o,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(Li,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s)}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s)}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,s,o=!1,l){const c=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var q={canvas:(e,t)=>new gw(e,t),svg:(e,t)=>new mw(e,t),generator:e=>new Sn(e),newSeed:()=>Sn.newSeed()},K=p(async(e,t,r)=>{let i;const n=t.useHtmlLabels||yt(st()?.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",Tt(t.labelStyle));let o;t.label===void 0?o="":o=typeof t.label=="string"?t.label:t.label[0];const l=await Se(s,Nt(Xe(o),st()),{useHtmlLabels:n,width:t.width||st().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const h=(t?.padding??0)/2;if(n){const u=l.children[0],f=it(l),d=u.getElementsByTagName("img");if(d){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(m=>new Promise(y=>{function x(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=st().fontSize?st().fontSize:window.getComputedStyle(document.body).fontSize,_=5,[k=Kl.fontSize]=jn(b),C=k*_+"px";m.style.minWidth=C,m.style.maxWidth=C}else m.style.width="100%";y(m)}p(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}return n?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:h,label:s}},"labelHelper"),da=p(async(e,t,r)=>{const i=r.useHtmlLabels||yt(st()?.flowchart?.htmlLabels),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Se(n,Nt(Xe(t),st()),{useHtmlLabels:i,width:r.width||st()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(yt(st()?.flowchart?.htmlLabels)){const l=a.children[0],c=it(a);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:o,label:n}},"insertLabel"),Y=p((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),X=p((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function rt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(rt,"createPathFromPoints");function ke(e,t,r,i,n,a){const s=[],l=r-e,c=i-t,h=l/a,u=2*Math.PI/h,f=t+c/2;for(let d=0;d<=50;d++){const g=d/50,m=e+g*l,y=f+n*Math.sin(u*(m-e));s.push({x:m,y})}return s}p(ke,"generateFullSineWavePoints");function si(e,t,r,i,n,a){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}p(si,"generateCirclePoints");var yw=p((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,s=e.width/2,o=e.height/2,l,c;return Math.abs(a)*s>Math.abs(n)*o?(a<0&&(o=-o),l=a===0?0:o*n/a,c=o):(n<0&&(s=-s),l=s,c=n===0?0:s*a/n),{x:r+l,y:i+c}},"intersectRect"),Tr=yw;function Nf(e,t){t&&e.attr("style",t)}p(Nf,"applyStyle");async function zf(e){const t=it(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=st();let n=e.label;e.label&&gr(e.label)&&(n=await ps(e.label.replace(wr.lineBreakRegex,`
182
+ `),i));const s='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>";return r.html(Nt(s,i)),Nf(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}p(zf,"addHtmlLabel");var xw=p(async(e,t,r,i)=>{let n=e||"";if(typeof n=="object"&&(n=n[0]),yt(st().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),A.info("vertexText"+n);const a={isNode:i,label:Xe(n).replace(/fa[blrs]?:fa-[\w-]+/g,o=>`<i class='${o.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await zf(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof n=="string"?s=n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?s=n:s=[];for(const o of s){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=o.trim(),a.appendChild(l)}return a}},"createLabel"),Pe=xw,Te=p((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),qf=p(async(e,t)=>{A.info("Creating subgraph rect for ",t.id,t);const r=st(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=j(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=yt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),g=await Se(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0});let m=g.getBBox();if(yt(r.flowchart.htmlLabels)){const v=g.children[0],E=it(g);m=v.getBoundingClientRect(),E.attr("width",m.width),E.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,_=t.y-x/2;A.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const v=q.svg(u),E=H(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),P=v.path(Te(b,_,y,x,0),E);k=u.insert(()=>(A.debug("Rough node insert CXC",P),P),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:C}=Ns(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+C})`),o){const v=d.select("span");v&&v.attr("style",o)}const B=k.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=m.height-t.padding/2,t.intersect=function(v){return Tr(t,v)},{cluster:u,labelBBox:m}},"rect"),bw=p((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(o){return Tr(t,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),_w=p(async(e,t)=>{const r=st(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let f=c.append("rect");const d=u.node().appendChild(await Pe(t.label,t.labelStyle,void 0,!0));let g=d.getBBox();if(yt(r.flowchart.htmlLabels)){const P=d.children[0],D=it(d);g=P.getBoundingClientRect(),D.attr("width",g.width),D.attr("height",g.height)}const m=0*t.padding,y=m/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+m;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+m,_=t.height+m-g.height-6,k=t.x-x/2,C=t.y-b/2;t.width=x;const B=t.y-t.height/2-y+g.height+2;let v;if(t.look==="handDrawn"){const P=t.cssClasses.includes("statediagram-cluster-alt"),D=q.svg(c),F=t.rx||t.ry?D.path(Te(k,C,x,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:n}):D.rectangle(k,C,x,b,{seed:n});v=c.insert(()=>F,":first-child");const R=D.rectangle(k,B,x,_,{fill:P?a:s,fillStyle:P?"hachure":"solid",stroke:l,seed:n});v=c.insert(()=>F,":first-child"),f=c.insert(()=>R)}else v=h.insert("rect",":first-child"),v.attr("class","outer").attr("x",k).attr("y",C).attr("width",x).attr("height",b).attr("data-look",t.look),f.attr("class","inner").attr("x",k).attr("y",B).attr("width",x).attr("height",_);u.attr("transform",`translate(${t.x-g.width/2}, ${C+1-(yt(r.flowchart.htmlLabels)?0:3)})`);const E=v.node().getBBox();return t.height=E.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(P){return Tr(t,P)},{cluster:c,labelBBox:g}},"roundedWithTitle"),Cw=p(async(e,t)=>{A.info("Creating subgraph rect for ",t.id,t);const r=st(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=j(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=yt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),g=await Se(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let m=g.getBBox();if(yt(r.flowchart.htmlLabels)){const v=g.children[0],E=it(g);m=v.getBoundingClientRect(),E.attr("width",m.width),E.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,_=t.y-x/2;A.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const v=q.svg(u),E=H(t,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),P=v.path(Te(b,_,y,x,t.rx),E);k=u.insert(()=>(A.debug("Rough node insert CXC",P),P),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:C}=Ns(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+C})`),o){const v=d.select("span");v&&v.attr("style",o)}const B=k.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=m.height-t.padding/2,t.intersect=function(v){return Tr(t,v)},{cluster:u,labelBBox:m}},"kanbanSection"),ww=p((e,t)=>{const r=st(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),o=s.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,f=t.y-h/2;t.width=c;let d;if(t.look==="handDrawn"){const y=q.svg(s).rectangle(u,f,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=s.insert(()=>y,":first-child")}else d=o.insert("rect",":first-child"),d.attr("class","divider").attr("x",u).attr("y",f).attr("width",c).attr("height",h).attr("data-look",t.look);const g=d.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return Tr(t,m)},{cluster:s,labelBBox:{}}},"divider"),kw=qf,vw={rect:qf,squareRect:kw,roundedWithTitle:_w,noteGroup:bw,divider:ww,kanbanSection:Cw},Wf=new Map,Sw=p(async(e,t)=>{const r=t.shape||"rect",i=await vw[r](e,t);return Wf.set(t.id,i),i},"insertCluster"),eB=p(()=>{Wf=new Map},"clear");function Hf(e,t){return e.intersect(t)}p(Hf,"intersectNode");var Tw=Hf;function jf(e,t,r,i){var n=e.x,a=e.y,s=n-i.x,o=a-i.y,l=Math.sqrt(t*t*o*o+r*r*s*s),c=Math.abs(t*r*s/l);i.x<n&&(c=-c);var h=Math.abs(t*r*o/l);return i.y<a&&(h=-h),{x:n+c,y:a+h}}p(jf,"intersectEllipse");var Yf=jf;function Gf(e,t,r){return Yf(e,t,t,r)}p(Gf,"intersectCircle");var Bw=Gf;function Vf(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,o=n*r.x+a*r.y+s,l=n*i.x+a*i.y+s,c=1e-6;if(o!==0&&l!==0&&es(o,l))return;const h=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=h*e.x+u*e.y+f,g=h*t.x+u*t.y+f;if(Math.abs(d)<c&&Math.abs(g)<c&&es(d,g))return;const m=n*u-h*a;if(m===0)return;const y=Math.abs(m/2);let x=a*f-u*s;const b=x<0?(x-y)/m:(x+y)/m;x=h*s-n*f;const _=x<0?(x-y)/m:(x+y)/m;return{x:b,y:_}}}p(Vf,"intersectLine");function es(e,t){return e*t>0}p(es,"sameSign");var Lw=Vf;function Uf(e,t,r){let i=e.x,n=e.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){s=Math.min(s,h.x),o=Math.min(o,h.y)}):(s=Math.min(s,t.x),o=Math.min(o,t.y));let l=i-e.width/2-s,c=n-e.height/2-o;for(let h=0;h<t.length;h++){let u=t[h],f=t[h<t.length-1?h+1:0],d=Lw(e,r,{x:l+u.x,y:c+u.y},{x:l+f.x,y:c+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,d=h.y-r.y,g=Math.sqrt(f*f+d*d),m=u.x-r.x,y=u.y-r.y,x=Math.sqrt(m*m+y*y);return g<x?-1:g===x?0:1}),a[0]):e}p(Uf,"intersectPolygon");var $w=Uf,N={node:Tw,circle:Bw,ellipse:Yf,polygon:$w,rect:Tr};function Xf(e,t){const{labelStyles:r}=j(t);t.labelStyle=r;const i=X(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=1,{cssStyles:o}=t,l=q.svg(a),c=H(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,s*2,c),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",Tt(o)),Y(t,u),t.intersect=function(f){return A.info("Circle intersect",t,s,f),N.circle(t,s,f)},a}p(Xf,"anchor");function rs(e,t,r,i,n,a,s){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,g=f/a,m=Math.sqrt(d**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*a*Math.sin(h)*(s?-1:1),b=c-y*n*Math.cos(h)*(s?-1:1),_=Math.atan2((t-b)/a,(e-x)/n);let C=Math.atan2((i-b)/a,(r-x)/n)-_;s&&C<0&&(C+=2*Math.PI),!s&&C>0&&(C-=2*Math.PI);const B=[];for(let v=0;v<20;v++){const E=v/19,P=_+E*C,D=x+n*Math.cos(P),F=b+a*Math.sin(P);B.push({x:D,y:F})}return B}p(rs,"generateArcPoints");async function Zf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.width+t.padding+20,o=a.height+t.padding,l=o/2,c=l/(2.5+o/50),{cssStyles:h}=t,u=[{x:s/2,y:-o/2},{x:-s/2,y:-o/2},...rs(-s/2,-o/2,-s/2,o/2,c,l,!1),{x:s/2,y:o/2},...rs(s/2,o/2,s/2,-o/2,c,l,!0)],f=q.svg(n),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=rt(u),m=f.path(g,d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${c/2}, 0)`),Y(t,y),t.intersect=function(x){return N.polygon(t,u,x)},n}p(Zf,"bowTieRect");function Be(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}p(Be,"insertPolygonShape");async function Kf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.height+t.padding,o=12,l=a.width+t.padding+o,c=0,h=l,u=-s,f=0,d=[{x:c+o,y:u},{x:h,y:u},{x:h,y:f},{x:c,y:f},{x:c,y:u+o},{x:c+o,y:u}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=q.svg(n),x=H(t,{}),b=rt(d),_=y.path(b,x);g=n.insert(()=>_,":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),m&&g.attr("style",m)}else g=Be(n,l,s,d);return i&&g.attr("style",i),Y(t,g),t.intersect=function(y){return N.polygon(t,d,y)},n}p(Kf,"card");function Qf(e,t){const{nodeStyles:r}=j(t);t.label="";const i=e.insert("g").attr("class",X(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=q.svg(i),l=H(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=rt(s),h=o.path(c,l),u=i.insert(()=>h,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return N.polygon(t,s,f)},i}p(Qf,"choice");async function lo(e,t,r){const{labelStyles:i,nodeStyles:n}=j(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:o}=await K(e,t,X(t)),l=r?.padding??o,c=s.width/2+l;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=q.svg(a),d=H(t,{}),g=f.circle(0,0,c*2,d);h=a.insert(()=>g,":first-child"),h.attr("class","basic label-container").attr("style",Tt(u))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return Y(t,h),t.calcIntersect=function(f,d){const g=f.width/2;return N.circle(f,g,d)},t.intersect=function(f){return A.info("Circle intersect",t,c,f),N.circle(t,c,f)},a}p(lo,"circle");function Jf(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},o={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
183
+ M ${n.x},${n.y} L ${s.x},${s.y}`}p(Jf,"createLine");function td(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",X(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:s}=t,o=q.svg(n),l=H(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=o.circle(0,0,a*2,l),h=Jf(a),u=o.path(h,l),f=n.insert(()=>c,":first-child");return f.insert(()=>u),s&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),Y(t,f),t.intersect=function(d){return A.info("crossedCircle intersect",t,{radius:a,point:d}),N.circle(t,a,d)},n}p(td,"crossedCircle");function ae(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}p(ae,"generateCirclePoints");async function ed(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...ae(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...ae(o/2+c*2,-c,c,20,-180,-270),...ae(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...ae(o/2,l/2,c,20,0,90)],f=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...ae(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...ae(o/2+o*.1,-c,c,20,-180,-270),...ae(o/2+o*.1,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...ae(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],d=q.svg(n),g=H(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=rt(u).replace("Z",""),x=d.path(y,g),b=rt(f),_=d.path(b,{...g}),k=n.insert("g",":first-child");return k.insert(()=>_,":first-child").attr("stroke-opacity",0),k.insert(()=>x,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Y(t,k),t.intersect=function(C){return N.polygon(t,f,C)},n}p(ed,"curlyBraceLeft");function se(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:d,y:g})}return s}p(se,"generateCirclePoints");async function rd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...se(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...se(o/2+c*2,-c,c,20,-180,-270),...se(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...se(o/2,l/2,c,20,0,90)],f=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...se(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...se(o/2+c*2,-c,c,20,-180,-270),...se(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...se(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],d=q.svg(n),g=H(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=rt(u).replace("Z",""),x=d.path(y,g),b=rt(f),_=d.path(b,{...g}),k=n.insert("g",":first-child");return k.insert(()=>_,":first-child").attr("stroke-opacity",0),k.insert(()=>x,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Y(t,k),t.intersect=function(C){return N.polygon(t,f,C)},n}p(rd,"curlyBraceRight");function bt(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}p(bt,"generateCirclePoints");async function id(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...bt(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...bt(o/2+c*2,-c,c,20,-180,-270),...bt(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...bt(o/2,l/2,c,20,0,90)],f=[...bt(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...bt(-o/2-c/2,-c,c,20,0,90),...bt(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...bt(-o/2+c+c/2,l/2,c,30,-180,-270)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...bt(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...bt(o/2+c*2,-c,c,20,-180,-270),...bt(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...bt(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...bt(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...bt(-o/2-c/2,-c,c,20,0,90),...bt(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...bt(-o/2+c+c/2,l/2,c,30,-180,-270)],g=q.svg(n),m=H(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=rt(u).replace("Z",""),b=g.path(x,m),k=rt(f).replace("Z",""),C=g.path(k,m),B=rt(d),v=g.path(B,{...m}),E=n.insert("g",":first-child");return E.insert(()=>v,":first-child").attr("stroke-opacity",0),E.insert(()=>b,":first-child"),E.insert(()=>C,":first-child"),E.attr("class","text"),h&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(${c-c/4}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Y(t,E),t.intersect=function(P){return N.polygon(t,d,P)},n}p(id,"curlyBraces");async function nd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=80,o=20,l=Math.max(s,(a.width+(t.padding??0)*2)*1.25,t?.width??0),c=Math.max(o,a.height+(t.padding??0)*2,t?.height??0),h=c/2,{cssStyles:u}=t,f=q.svg(n),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=l,m=c,y=g-h,x=m/4,b=[{x:y,y:0},{x,y:0},{x:0,y:m/2},{x,y:m},{x:y,y:m},...si(-y,-m/2,h,50,270,90)],_=rt(b),k=f.path(_,d),C=n.insert(()=>k,":first-child");return C.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),C.attr("transform",`translate(${-l/2}, ${-c/2})`),Y(t,C),t.intersect=function(B){return N.polygon(t,b,B)},n}p(nd,"curvedTrapezoid");var Mw=p((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),Aw=p((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Fw=p((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function ad(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+t.padding,t.width??0),l=o/2,c=l/(2.5+o/50),h=Math.max(a.height+c+t.padding,t.height??0);let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=q.svg(n),g=Aw(0,0,o,h,l,c),m=Fw(0,c,o,h,l,c),y=d.path(g,H(t,{})),x=d.path(m,H(t,{fill:"none"}));u=n.insert(()=>x,":first-child"),u=n.insert(()=>y,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{const d=Mw(0,0,o,h,l,c);u=n.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",Tt(f)).attr("style",i)}return u.attr("label-offset-y",c),u.attr("transform",`translate(${-o/2}, ${-(h/2+c)})`),Y(t,u),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(d){const g=N.rect(t,d),m=g.x-(t.x??0);if(l!=0&&(Math.abs(m)<(t.width??0)/2||Math.abs(m)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let y=c*c*(1-m*m/(l*l));y>0&&(y=Math.sqrt(y)),y=c-y,d.y-(t.y??0)>0&&(y=-y),g.y+=y}return g},n}p(ad,"cylinder");async function sd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=a.width+t.padding,l=a.height+t.padding,c=l*.2,h=-o/2,u=-l/2-c/2,{cssStyles:f}=t,d=q.svg(n),g=H(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u+c},{x:-h,y:u+c},{x:-h,y:-u},{x:h,y:-u},{x:h,y:u},{x:-h,y:u},{x:-h,y:u+c}],y=d.polygon(m.map(b=>[b.x,b.y]),g),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),s.attr("transform",`translate(${h+(t.padding??0)/2-(a.x-(a.left??0))}, ${u+c+(t.padding??0)/2-(a.y-(a.top??0))})`),Y(t,x),t.intersect=function(b){return N.rect(t,b)},n}p(sd,"dividedRectangle");async function od(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s}=await K(e,t,X(t)),l=a.width/2+s+5,c=a.width/2+s;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=q.svg(n),d=H(t,{roughness:.2,strokeWidth:2.5}),g=H(t,{roughness:.2,strokeWidth:1.5}),m=f.circle(0,0,l*2,d),y=f.circle(0,0,c*2,g);h=n.insert("g",":first-child"),h.attr("class",Tt(t.cssClasses)).attr("style",Tt(u)),h.node()?.appendChild(m),h.node()?.appendChild(y)}else{h=n.insert("g",":first-child");const f=h.insert("circle",":first-child"),d=h.insert("circle");h.attr("class","basic label-container").attr("style",i),f.attr("class","outer-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0),d.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return Y(t,h),t.intersect=function(f){return A.info("DoubleCircle intersect",t,l,f),N.circle(t,l,f)},n}p(od,"doublecircle");function ld(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=j(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",X(t)).attr("id",t.domId??t.id),s=7,{cssStyles:o}=t,l=q.svg(a),{nodeBorder:c}=r,h=H(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,s*2,h),f=a.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${c} !important;`),o&&o.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Y(t,f),t.intersect=function(d){return A.info("filledCircle intersect",t,{radius:s,point:d}),N.circle(t,s,d)},a}p(ld,"filledCircle");async function cd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=a.width+(t.padding??0),l=o+a.height,c=o+a.height,h=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:u}=t,f=q.svg(n),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=rt(h),m=f.path(g,d),y=n.insert(()=>m,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),t.width=o,t.height=l,Y(t,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-l/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(x){return A.info("Triangle intersect",t,h,x),N.polygon(t,h,x)},n}p(cd,"flippedTriangle");function hd(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=j(t);t.label="";const s=e.insert("g").attr("class",X(t)).attr("id",t.domId??t.id),{cssStyles:o}=t;let l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const h=-1*l/2,u=-1*c/2,f=q.svg(s),d=H(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=f.rectangle(h,u,l,c,d),m=s.insert(()=>g,":first-child");o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",a),Y(t,m);const y=i?.padding??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(x){return N.rect(t,x)},s}p(hd,"forkJoin");async function ud(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const n=80,a=50,{shapeSvg:s,bbox:o}=await K(e,t,X(t)),l=Math.max(n,o.width+(t.padding??0)*2,t?.width??0),c=Math.max(a,o.height+(t.padding??0)*2,t?.height??0),h=c/2,{cssStyles:u}=t,f=q.svg(s),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=[{x:-l/2,y:-c/2},{x:l/2-h,y:-c/2},...si(-l/2+h,0,h,50,90,270),{x:l/2-h,y:c/2},{x:-l/2,y:c/2}],m=rt(g),y=f.path(m,d),x=s.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),Y(t,x),t.intersect=function(b){return A.info("Pill intersect",t,{radius:h,point:b}),N.polygon(t,g,b)},s}p(ud,"halfRoundedRectangle");async function fd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.height+(t.padding??0),o=a.width+(t.padding??0)*2.5,{cssStyles:l}=t,c=q.svg(n),h=H(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=o/2;const f=u/6;u=u+f;const d=s/2,g=d/2,m=u-g,y=[{x:-m,y:-d},{x:0,y:-d},{x:m,y:-d},{x:u,y:0},{x:m,y:d},{x:0,y:d},{x:-m,y:d},{x:-u,y:0}],x=rt(y),b=c.path(x,h),_=n.insert(()=>b,":first-child");return _.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),t.width=o,t.height=s,Y(t,_),t.intersect=function(k){return N.polygon(t,y,k)},n}p(fd,"hexagon");async function dd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await K(e,t,X(t)),a=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:o}=t,l=q.svg(n),c=H(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],u=rt(h),f=l.path(u,c),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container"),o&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-s/2})`),Y(t,d),t.intersect=function(g){return A.info("Pill intersect",t,{points:h}),N.polygon(t,h,g)},n}p(dd,"hourglass");async function pd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=j(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await K(e,t,"icon-shape default"),f=t.pos==="t",d=o,g=o,{nodeBorder:m}=r,{stylesMap:y}=kr(t),x=-g/2,b=-d/2,_=t.label?8:0,k=q.svg(c),C=H(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const B=k.rectangle(x,b,g,d,C),v=Math.max(g,h.width),E=d+h.height+_,P=k.rectangle(-v/2,-E/2,v,E,{...C,fill:"transparent",stroke:"none"}),D=c.insert(()=>B,":first-child"),F=c.insert(()=>P);if(t.icon){const R=c.append("g");R.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const O=R.node().getBBox(),T=O.width,L=O.height,S=O.x,M=O.y;R.attr("transform",`translate(${-T/2-S},${f?h.height/2+_/2-L/2-M:-h.height/2-_/2-L/2-M})`),R.attr("style",`color: ${y.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-E/2:E/2-h.height})`),D.attr("transform",`translate(0,${f?h.height/2+_/2:-h.height/2-_/2})`),Y(t,F),t.intersect=function(R){if(A.info("iconSquare intersect",t,R),!t.label)return N.rect(t,R);const O=t.x??0,T=t.y??0,L=t.height??0;let S=[];return f?S=[{x:O-h.width/2,y:T-L/2},{x:O+h.width/2,y:T-L/2},{x:O+h.width/2,y:T-L/2+h.height+_},{x:O+g/2,y:T-L/2+h.height+_},{x:O+g/2,y:T+L/2},{x:O-g/2,y:T+L/2},{x:O-g/2,y:T-L/2+h.height+_},{x:O-h.width/2,y:T-L/2+h.height+_}]:S=[{x:O-g/2,y:T-L/2},{x:O+g/2,y:T-L/2},{x:O+g/2,y:T-L/2+d},{x:O+h.width/2,y:T-L/2+d},{x:O+h.width/2/2,y:T+L/2},{x:O-h.width/2,y:T+L/2},{x:O-h.width/2,y:T-L/2+d},{x:O-g/2,y:T-L/2+d}],N.polygon(t,S,R)},c}p(pd,"icon");async function gd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=j(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await K(e,t,"icon-shape default"),f=20,d=t.label?8:0,g=t.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=kr(t),b=q.svg(c),_=H(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const k=x.get("fill");_.stroke=k??y;const C=c.append("g");t.icon&&C.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const B=C.node().getBBox(),v=B.width,E=B.height,P=B.x,D=B.y,F=Math.max(v,E)*Math.SQRT2+f*2,R=b.circle(0,0,F,_),O=Math.max(F,h.width),T=F+h.height+d,L=b.rectangle(-O/2,-T/2,O,T,{..._,fill:"transparent",stroke:"none"}),S=c.insert(()=>R,":first-child"),M=c.insert(()=>L);return C.attr("transform",`translate(${-v/2-P},${g?h.height/2+d/2-E/2-D:-h.height/2-d/2-E/2-D})`),C.attr("style",`color: ${x.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-T/2:T/2-h.height})`),S.attr("transform",`translate(0,${g?h.height/2+d/2:-h.height/2-d/2})`),Y(t,M),t.intersect=function($){return A.info("iconSquare intersect",t,$),N.rect(t,$)},c}p(gd,"iconCircle");async function md(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=j(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await K(e,t,"icon-shape default"),d=t.pos==="t",g=o+u*2,m=o+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=kr(t),_=-m/2,k=-g/2,C=t.label?8:0,B=q.svg(c),v=H(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=b.get("fill");v.stroke=E??x;const P=B.path(Te(_,k,m,g,5),v),D=Math.max(m,h.width),F=g+h.height+C,R=B.rectangle(-D/2,-F/2,D,F,{...v,fill:"transparent",stroke:"none"}),O=c.insert(()=>P,":first-child").attr("class","icon-shape2"),T=c.insert(()=>R);if(t.icon){const L=c.append("g");L.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const S=L.node().getBBox(),M=S.width,$=S.height,W=S.x,G=S.y;L.attr("transform",`translate(${-M/2-W},${d?h.height/2+C/2-$/2-G:-h.height/2-C/2-$/2-G})`),L.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-F/2:F/2-h.height})`),O.attr("transform",`translate(0,${d?h.height/2+C/2:-h.height/2-C/2})`),Y(t,T),t.intersect=function(L){if(A.info("iconSquare intersect",t,L),!t.label)return N.rect(t,L);const S=t.x??0,M=t.y??0,$=t.height??0;let W=[];return d?W=[{x:S-h.width/2,y:M-$/2},{x:S+h.width/2,y:M-$/2},{x:S+h.width/2,y:M-$/2+h.height+C},{x:S+m/2,y:M-$/2+h.height+C},{x:S+m/2,y:M+$/2},{x:S-m/2,y:M+$/2},{x:S-m/2,y:M-$/2+h.height+C},{x:S-h.width/2,y:M-$/2+h.height+C}]:W=[{x:S-m/2,y:M-$/2},{x:S+m/2,y:M-$/2},{x:S+m/2,y:M-$/2+g},{x:S+h.width/2,y:M-$/2+g},{x:S+h.width/2/2,y:M+$/2},{x:S-h.width/2,y:M+$/2},{x:S-h.width/2,y:M-$/2+g},{x:S-m/2,y:M-$/2+g}],N.polygon(t,W,L)},c}p(md,"iconRounded");async function yd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=j(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await K(e,t,"icon-shape default"),d=t.pos==="t",g=o+u*2,m=o+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=kr(t),_=-m/2,k=-g/2,C=t.label?8:0,B=q.svg(c),v=H(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=b.get("fill");v.stroke=E??x;const P=B.path(Te(_,k,m,g,.1),v),D=Math.max(m,h.width),F=g+h.height+C,R=B.rectangle(-D/2,-F/2,D,F,{...v,fill:"transparent",stroke:"none"}),O=c.insert(()=>P,":first-child"),T=c.insert(()=>R);if(t.icon){const L=c.append("g");L.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const S=L.node().getBBox(),M=S.width,$=S.height,W=S.x,G=S.y;L.attr("transform",`translate(${-M/2-W},${d?h.height/2+C/2-$/2-G:-h.height/2-C/2-$/2-G})`),L.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-F/2:F/2-h.height})`),O.attr("transform",`translate(0,${d?h.height/2+C/2:-h.height/2-C/2})`),Y(t,T),t.intersect=function(L){if(A.info("iconSquare intersect",t,L),!t.label)return N.rect(t,L);const S=t.x??0,M=t.y??0,$=t.height??0;let W=[];return d?W=[{x:S-h.width/2,y:M-$/2},{x:S+h.width/2,y:M-$/2},{x:S+h.width/2,y:M-$/2+h.height+C},{x:S+m/2,y:M-$/2+h.height+C},{x:S+m/2,y:M+$/2},{x:S-m/2,y:M+$/2},{x:S-m/2,y:M-$/2+h.height+C},{x:S-h.width/2,y:M-$/2+h.height+C}]:W=[{x:S-m/2,y:M-$/2},{x:S+m/2,y:M-$/2},{x:S+m/2,y:M-$/2+g},{x:S+h.width/2,y:M-$/2+g},{x:S+h.width/2/2,y:M+$/2},{x:S-h.width/2,y:M+$/2},{x:S-h.width/2,y:M-$/2+g},{x:S-m/2,y:M-$/2+g}],N.polygon(t,W,L)},c}p(yd,"iconSquare");async function xd(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:s}=j(t);t.labelStyle=s;const o=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const l=Math.max(t.label?o??0:0,t?.assetWidth??n),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(c,o??0);const{shapeSvg:u,bbox:f,label:d}=await K(e,t,"image-shape default"),g=t.pos==="t",m=-c/2,y=-h/2,x=t.label?8:0,b=q.svg(u),_=H(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const k=b.rectangle(m,y,c,h,_),C=Math.max(c,f.width),B=h+f.height+x,v=b.rectangle(-C/2,-B/2,C,B,{..._,fill:"none",stroke:"none"}),E=u.insert(()=>k,":first-child"),P=u.insert(()=>v);if(t.img){const D=u.append("image");D.attr("href",t.img),D.attr("width",c),D.attr("height",h),D.attr("preserveAspectRatio","none"),D.attr("transform",`translate(${-c/2},${g?B/2-h:-B/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-h/2-f.height/2-x/2:h/2-f.height/2+x/2})`),E.attr("transform",`translate(0,${g?f.height/2+x/2:-f.height/2-x/2})`),Y(t,P),t.intersect=function(D){if(A.info("iconSquare intersect",t,D),!t.label)return N.rect(t,D);const F=t.x??0,R=t.y??0,O=t.height??0;let T=[];return g?T=[{x:F-f.width/2,y:R-O/2},{x:F+f.width/2,y:R-O/2},{x:F+f.width/2,y:R-O/2+f.height+x},{x:F+c/2,y:R-O/2+f.height+x},{x:F+c/2,y:R+O/2},{x:F-c/2,y:R+O/2},{x:F-c/2,y:R-O/2+f.height+x},{x:F-f.width/2,y:R-O/2+f.height+x}]:T=[{x:F-c/2,y:R-O/2},{x:F+c/2,y:R-O/2},{x:F+c/2,y:R-O/2+h},{x:F+f.width/2,y:R-O/2+h},{x:F+f.width/2/2,y:R+O/2},{x:F-f.width/2,y:R+O/2},{x:F-f.width/2,y:R-O/2+h},{x:F-c/2,y:R-O/2+h}],N.polygon(t,T,D)},u}p(xd,"imageSquare");async function bd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),o=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=[{x:0,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:-3*o/6,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=q.svg(n),f=H(t,{}),d=rt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=Be(n,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,Y(t,c),t.intersect=function(u){return N.polygon(t,l,u)},n}p(bd,"inv_trapezoid");async function Zn(e,t,r){const{labelStyles:i,nodeStyles:n}=j(t);t.labelStyle=i;const{shapeSvg:a,bbox:s}=await K(e,t,X(t)),o=Math.max(s.width+r.labelPaddingX*2,t?.width||0),l=Math.max(s.height+r.labelPaddingY*2,t?.height||0),c=-o/2,h=-l/2;let u,{rx:f,ry:d}=t;const{cssStyles:g}=t;if(r?.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const m=q.svg(a),y=H(t,{}),x=f||d?m.path(Te(c,h,o,l,f||0),y):m.rectangle(c,h,o,l,y);u=a.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",Tt(g))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",Tt(f)).attr("ry",Tt(d)).attr("x",c).attr("y",h).attr("width",o).attr("height",l);return Y(t,u),t.calcIntersect=function(m,y){return N.rect(m,y)},t.intersect=function(m){return N.rect(t,m)},a}p(Zn,"drawRect");async function _d(e,t){const{shapeSvg:r,bbox:i,label:n}=await K(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Y(t,a),t.intersect=function(l){return N.rect(t,l)},r}p(_d,"labelRect");async function Cd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),o=Math.max(a.height+(t.padding??0),t?.height??0),l=[{x:0,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:-(3*o)/6,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=q.svg(n),f=H(t,{}),d=rt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=Be(n,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,Y(t,c),t.intersect=function(u){return N.polygon(t,l,u)},n}p(Cd,"lean_left");async function wd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),o=Math.max(a.height+(t.padding??0),t?.height??0),l=[{x:-3*o/6,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:0,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=q.svg(n),f=H(t,{}),d=rt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=Be(n,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,Y(t,c),t.intersect=function(u){return N.polygon(t,l,u)},n}p(wd,"lean_right");function kd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",X(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(35,t?.width??0),o=Math.max(35,t?.height??0),l=7,c=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],h=q.svg(n),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=rt(c),d=h.path(f,u),g=n.insert(()=>d,":first-child");return a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${s/2},${-o})`),Y(t,g),t.intersect=function(m){return A.info("lightningBolt intersect",t,m),N.polygon(t,c,m)},n}p(kd,"lightningBolt");var Ew=p((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Dw=p((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Ow=p((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function vd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0),t.width??0),l=o/2,c=l/(2.5+o/50),h=Math.max(a.height+c+(t.padding??0),t.height??0),u=h*.1;let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=q.svg(n),m=Dw(0,0,o,h,l,c,u),y=Ow(0,c,o,h,l,c),x=H(t,{}),b=g.path(m,x),_=g.path(y,x);n.insert(()=>_,":first-child").attr("class","line"),f=n.insert(()=>b,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{const g=Ew(0,0,o,h,l,c,u);f=n.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Tt(d)).attr("style",i)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-o/2}, ${-(h/2+c)})`),Y(t,f),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),t.intersect=function(g){const m=N.rect(t,g),y=m.x-(t.x??0);if(l!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-y*y/(l*l));x>0&&(x=Math.sqrt(x)),x=c-x,g.y-(t.y??0)>0&&(x=-x),m.y+=x}return m},n}p(vd,"linedCylinder");async function Sd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,h=l+c,{cssStyles:u}=t,f=q.svg(n),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=[{x:-o/2-o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:h/2},...ke(-o/2-o/2*.1,h/2,o/2+o/2*.1,h/2,c,.8),{x:o/2+o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:-h/2},{x:-o/2,y:-h/2},{x:-o/2,y:h/2*1.1},{x:-o/2,y:-h/2}],m=f.polygon(g.map(x=>[x.x,x.y]),d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)+o/2*.1/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Y(t,y),t.intersect=function(x){return N.polygon(t,g,x)},n}p(Sd,"linedWaveEdgedRect");async function Td(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=5,h=-o/2,u=-l/2,{cssStyles:f}=t,d=q.svg(n),g=H(t,{}),m=[{x:h-c,y:u+c},{x:h-c,y:u+l+c},{x:h+o-c,y:u+l+c},{x:h+o-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u+l-c},{x:h+o+c,y:u+l-c},{x:h+o+c,y:u-c},{x:h+c,y:u-c},{x:h+c,y:u},{x:h,y:u},{x:h,y:u+c}],y=[{x:h,y:u+c},{x:h+o-c,y:u+c},{x:h+o-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u},{x:h,y:u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=rt(m),b=d.path(x,g),_=rt(y),k=d.path(_,{...g,fill:"none"}),C=n.insert(()=>k,":first-child");return C.insert(()=>b,":first-child"),C.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(a.width/2)-c-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),Y(t,C),t.intersect=function(B){return N.polygon(t,m,B)},n}p(Td,"multiRect");async function Bd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,h=l+c,u=-o/2,f=-h/2,d=5,{cssStyles:g}=t,m=ke(u-d,f+h+d,u+o-d,f+h+d,c,.8),y=m?.[m.length-1],x=[{x:u-d,y:f+d},{x:u-d,y:f+h+d},...m,{x:u+o-d,y:y.y-d},{x:u+o,y:y.y-d},{x:u+o,y:y.y-2*d},{x:u+o+d,y:y.y-2*d},{x:u+o+d,y:f-d},{x:u+d,y:f-d},{x:u+d,y:f},{x:u,y:f},{x:u,y:f+d}],b=[{x:u,y:f+d},{x:u+o-d,y:f+d},{x:u+o-d,y:y.y-d},{x:u+o,y:y.y-d},{x:u+o,y:f},{x:u,y:f}],_=q.svg(n),k=H(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const C=rt(x),B=_.path(C,k),v=rt(b),E=_.path(v,k),P=n.insert(()=>B,":first-child");return P.insert(()=>E),P.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),P.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-c/2-(a.y-(a.top??0))})`),Y(t,P),t.intersect=function(D){return N.polygon(t,x,D)},n}p(Bd,"multiWaveEdgedRectangle");async function Ld(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=j(t);t.labelStyle=i,t.useHtmlLabels||vt().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await K(e,t,X(t)),c=Math.max(o.width+(t.padding??0)*2,t?.width??0),h=Math.max(o.height+(t.padding??0)*2,t?.height??0),u=-c/2,f=-h/2,{cssStyles:d}=t,g=q.svg(s),m=H(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=g.rectangle(u,f,c,h,m),x=s.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Y(t,x),t.intersect=function(b){return N.rect(t,b)},s}p(Ld,"note");var Pw=p((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function $d(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.width+t.padding,o=a.height+t.padding,l=s+o,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=q.svg(n),g=H(t,{}),m=Pw(0,0,l),y=d.path(m,g);u=n.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),f&&u.attr("style",f)}else u=Be(n,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),Y(t,u),t.calcIntersect=function(d,g){const m=d.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],x=N.polygon(d,y,g);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}p($d,"question");async function Md(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0),t?.width??0),l=Math.max(a.height+(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=h/2,f=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],{cssStyles:d}=t,g=q.svg(n),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=rt(f),x=g.path(y,m),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-u/2},0)`),s.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Y(t,b),t.intersect=function(_){return N.polygon(t,f,_)},n}p(Md,"rect_left_inv_arrow");async function Ad(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=o.node().appendChild(await Pe(c,t.labelStyle,!0,!0));let u={width:0,height:0};if(yt(st()?.flowchart?.htmlLabels)){const E=h.children[0],P=it(h);u=E.getBoundingClientRect(),P.attr("width",u.width),P.attr("height",u.height)}A.info("Text 2",l);const f=l||[],d=h.getBBox(),g=o.node().appendChild(await Pe(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0)),m=g.children[0],y=it(g);u=m.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height);const x=(t.padding||0)/2;it(g).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+x+5)+")"),it(h).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const b=u.width+(t.padding||0),_=u.height+(t.padding||0),k=-u.width/2-x,C=-u.height/2-x;let B,v;if(t.look==="handDrawn"){const E=q.svg(a),P=H(t,{}),D=E.path(Te(k,C,b,_,t.rx||0),P),F=E.line(-u.width/2-x,-u.height/2-x+d.height+x,u.width/2+x,-u.height/2-x+d.height+x,P);v=a.insert(()=>(A.debug("Rough node insert CXC",D),F),":first-child"),B=a.insert(()=>(A.debug("Rough node insert CXC",D),D),":first-child")}else B=s.insert("rect",":first-child"),v=s.insert("line"),B.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),v.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+d.height+x).attr("y2",-u.height/2-x+d.height+x);return Y(t,B),t.intersect=function(E){return N.rect(t,E)},a}p(Ad,"rectWithTitle");function qr(e,t,r,i,n,a,s){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,g=f/a,m=Math.sqrt(d**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*a*Math.sin(h)*(s?-1:1),b=c-y*n*Math.cos(h)*(s?-1:1),_=Math.atan2((t-b)/a,(e-x)/n);let C=Math.atan2((i-b)/a,(r-x)/n)-_;s&&C<0&&(C+=2*Math.PI),!s&&C>0&&(C-=2*Math.PI);const B=[];for(let v=0;v<20;v++){const E=v/19,P=_+E*C,D=x+n*Math.cos(P),F=b+a*Math.sin(P);B.push({x:D,y:F})}return B}p(qr,"generateArcPoints");async function Fd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=t?.padding??0,o=t?.padding??0,l=(t?.width?t?.width:a.width)+s*2,c=(t?.height?t?.height:a.height)+o*2,h=t.radius||5,u=t.taper||5,{cssStyles:f}=t,d=q.svg(n),g=H(t,{});t.stroke&&(g.stroke=t.stroke),t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-l/2+u,y:-c/2},{x:l/2-u,y:-c/2},...qr(l/2-u,-c/2,l/2,-c/2+u,h,h,!0),{x:l/2,y:-c/2+u},{x:l/2,y:c/2-u},...qr(l/2,c/2-u,l/2-u,c/2,h,h,!0),{x:l/2-u,y:c/2},{x:-l/2+u,y:c/2},...qr(-l/2+u,c/2,-l/2,c/2-u,h,h,!0),{x:-l/2,y:c/2-u},{x:-l/2,y:-c/2+u},...qr(-l/2,-c/2+u,-l/2+u,-c/2,h,h,!0)],y=rt(m),x=d.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),Y(t,b),t.intersect=function(_){return N.polygon(t,m,_)},n}p(Fd,"roundedRect");async function Ed(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=t?.padding??0,l=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=-a.width/2-o,u=-a.height/2-o,{cssStyles:f}=t,d=q.svg(n),g=H(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u},{x:h+l+8,y:u},{x:h+l+8,y:u+c},{x:h-8,y:u+c},{x:h-8,y:u},{x:h,y:u},{x:h,y:u+c}],y=d.polygon(m.map(b=>[b.x,b.y]),g),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container").attr("style",Tt(f)),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),s.attr("transform",`translate(${-l/2+4+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-(a.y-(a.top??0))})`),Y(t,x),t.intersect=function(b){return N.rect(t,b)},n}p(Ed,"shadedProcess");async function Dd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=-o/2,h=-l/2,{cssStyles:u}=t,f=q.svg(n),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=[{x:c,y:h},{x:c,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-l/2}],m=rt(g),y=f.path(m,d),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),x.attr("transform",`translate(0, ${l/4})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(a.x-(a.left??0))}, ${-l/4+(t.padding??0)-(a.y-(a.top??0))})`),Y(t,x),t.intersect=function(b){return N.polygon(t,g,b)},n}p(Dd,"slopedRect");async function Od(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return Zn(e,t,r)}p(Od,"squareRect");async function Pd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.height+t.padding,o=a.width+s/4+t.padding,l=s/2,{cssStyles:c}=t,h=q.svg(n),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=[{x:-o/2+l,y:-s/2},{x:o/2-l,y:-s/2},...si(-o/2+l,0,l,50,90,270),{x:o/2-l,y:s/2},...si(o/2-l,0,l,50,270,450)],d=rt(f),g=h.path(d,u),m=n.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),Y(t,m),t.intersect=function(y){return N.polygon(t,f,y)},n}p(Pd,"stadium");async function Rd(e,t){return Zn(e,t,{rx:5,ry:5})}p(Rd,"state");function Id(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=j(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:s,stateBorder:o,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),h=q.svg(c),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=h.circle(0,0,14,{...u,stroke:s,strokeWidth:2}),d=o??l,g=h.circle(0,0,5,{...u,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),m=c.insert(()=>f,":first-child");return m.insert(()=>g),a&&m.selectAll("path").attr("style",a),n&&m.selectAll("path").attr("style",n),Y(t,m),t.intersect=function(y){return N.circle(t,7,y)},c}p(Id,"stateEnd");function Nd(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const o=q.svg(n).circle(0,0,14,Kb(i));a=n.insert(()=>o),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Y(t,a),t.intersect=function(s){return N.circle(t,7,s)},n}p(Nd,"stateStart");async function zd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=(t?.padding||0)/2,o=a.width+t.padding,l=a.height+t.padding,c=-a.width/2-s,h=-a.height/2-s,u=[{x:0,y:0},{x:o,y:0},{x:o,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const f=q.svg(n),d=H(t,{}),g=f.rectangle(c-8,h,o+16,l,d),m=f.line(c,h,c,h+l,d),y=f.line(c+o,h,c+o,h+l,d);n.insert(()=>m,":first-child"),n.insert(()=>y,":first-child");const x=n.insert(()=>g,":first-child"),{cssStyles:b}=t;x.attr("class","basic label-container").attr("style",Tt(b)),Y(t,x)}else{const f=Be(n,o,l,u);i&&f.attr("style",i),Y(t,f)}return t.intersect=function(f){return N.polygon(t,u,f)},n}p(zd,"subroutine");async function qd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),o=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=-s/2,c=-o/2,h=.2*o,u=.2*o,{cssStyles:f}=t,d=q.svg(n),g=H(t,{}),m=[{x:l-h/2,y:c},{x:l+s+h/2,y:c},{x:l+s+h/2,y:c+o},{x:l-h/2,y:c+o}],y=[{x:l+s-h/2,y:c+o},{x:l+s+h/2,y:c+o},{x:l+s+h/2,y:c+o-u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=rt(m),b=d.path(x,g),_=rt(y),k=d.path(_,{...g,fillStyle:"solid"}),C=n.insert(()=>k,":first-child");return C.insert(()=>b,":first-child"),C.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),Y(t,C),t.intersect=function(B){return N.polygon(t,m,B)},n}p(qd,"taggedRect");async function Wd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,h=.2*o,u=.2*l,f=l+c,{cssStyles:d}=t,g=q.svg(n),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-o/2-o/2*.1,y:f/2},...ke(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,c,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],x=-o/2+o/2*.1,b=-f/2-u*.4,_=[{x:x+o-h,y:(b+l)*1.4},{x:x+o,y:b+l-u},{x:x+o,y:(b+l)*.9},...ke(x+o,(b+l)*1.3,x+o-h,(b+l)*1.5,-l*.03,.5)],k=rt(y),C=g.path(k,m),B=rt(_),v=g.path(B,{...m,fillStyle:"solid"}),E=n.insert(()=>v,":first-child");return E.insert(()=>C,":first-child"),E.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Y(t,E),t.intersect=function(P){return N.polygon(t,y,P)},n}p(Wd,"taggedWaveEdgedRectangle");async function Hd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=Math.max(a.width+t.padding,t?.width||0),o=Math.max(a.height+t.padding,t?.height||0),l=-s/2,c=-o/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",s).attr("height",o),Y(t,h),t.intersect=function(u){return N.rect(t,u)},n}p(Hd,"text");var Rw=p((e,t,r,i,n,a)=>`M${e},${t}
184
+ a${n},${a} 0,0,1 0,${-i}
185
+ l${r},0
186
+ a${n},${a} 0,0,1 0,${i}
187
+ M${r},${-i}
188
+ a${n},${a} 0,0,0 0,${i}
189
+ l${-r},0`,"createCylinderPathD"),Iw=p((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Nw=p((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function jd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s,halfPadding:o}=await K(e,t,X(t)),l=t.look==="neo"?o*2:o,c=a.height+l,h=c/2,u=h/(2.5+c/50),f=a.width+u+l,{cssStyles:d}=t;let g;if(t.look==="handDrawn"){const m=q.svg(n),y=Iw(0,0,f,c,u,h),x=Nw(0,0,f,c,u,h),b=m.path(y,H(t,{})),_=m.path(x,H(t,{fill:"none"}));g=n.insert(()=>_,":first-child"),g=n.insert(()=>b,":first-child"),g.attr("class","basic label-container"),d&&g.attr("style",d)}else{const m=Rw(0,0,f,c,u,h);g=n.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Tt(d)).attr("style",i),g.attr("class","basic label-container"),d&&g.selectAll("path").attr("style",d),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-f/2}, ${c/2} )`),s.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Y(t,g),t.intersect=function(m){const y=N.rect(t,m),x=y.y-(t.y??0);if(h!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-u)){let b=u*u*(1-x*x/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=u-b,m.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},n}p(jd,"tiltedCylinder");async function Yd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=a.width+t.padding,o=a.height+t.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=q.svg(n),f=H(t,{}),d=rt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=Be(n,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,Y(t,c),t.intersect=function(u){return N.polygon(t,l,u)},n}p(Yd,"trapezoid");async function Gd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=60,o=20,l=Math.max(s,a.width+(t.padding??0)*2,t?.width??0),c=Math.max(o,a.height+(t.padding??0)*2,t?.height??0),{cssStyles:h}=t,u=q.svg(n),f=H(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],g=rt(d),m=u.path(g,f),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),Y(t,y),t.intersect=function(x){return N.polygon(t,d,x)},n}p(Gd,"trapezoidalPentagon");async function Vd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=yt(st().flowchart?.htmlLabels),l=a.width+(t.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],{cssStyles:f}=t,d=q.svg(n),g=H(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=rt(u),y=d.path(m,g),x=n.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=l,t.height=c,Y(t,x),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return A.info("Triangle intersect",t,u,b),N.polygon(t,u,b)},n}p(Vd,"triangle");async function Ud(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/8,h=l+c,{cssStyles:u}=t,d=70-o,g=d>0?d/2:0,m=q.svg(n),y=H(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:-o/2-g,y:h/2},...ke(-o/2-g,h/2,o/2+g,h/2,c,.8),{x:o/2+g,y:-h/2},{x:-o/2-g,y:-h/2}],b=rt(x),_=m.path(b,y),k=n.insert(()=>_,":first-child");return k.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c-(a.y-(a.top??0))})`),Y(t,k),t.intersect=function(C){return N.polygon(t,x,C)},n}p(Ud,"waveEdgedRectangle");async function Xd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await K(e,t,X(t)),s=100,o=50,l=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=l/c;let u=l,f=c;u>f*h?f=u/h:u=f*h,u=Math.max(u,s),f=Math.max(f,o);const d=Math.min(f*.2,f/4),g=f+d*2,{cssStyles:m}=t,y=q.svg(n),x=H(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-u/2,y:g/2},...ke(-u/2,g/2,u/2,g/2,d,1),{x:u/2,y:-g/2},...ke(u/2,-g/2,-u/2,-g/2,d,-1)],_=rt(b),k=y.path(_,x),C=n.insert(()=>k,":first-child");return C.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),Y(t,C),t.intersect=function(B){return N.polygon(t,b,B)},n}p(Xd,"waveRectangle");async function Zd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await K(e,t,X(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=5,h=-o/2,u=-l/2,{cssStyles:f}=t,d=q.svg(n),g=H(t,{}),m=[{x:h-c,y:u-c},{x:h-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u-c}],y=`M${h-c},${u-c} L${h+o},${u-c} L${h+o},${u+l} L${h-c},${u+l} L${h-c},${u-c}
190
+ M${h-c},${u} L${h+o},${u}
191
+ M${h},${u-c} L${h},${u+l}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=d.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("transform",`translate(${c/2}, ${c/2})`),b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),Y(t,b),t.intersect=function(_){return N.polygon(t,m,_)},n}p(Zd,"windowPane");async function co(e,t){const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:Z}=vt(),{background:tt}=Z,at={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${tt}`]};await co(e,at)}const i=vt();t.useHtmlLabels=i.htmlLabels;let n=i.er?.diagramPadding??10,a=i.er?.entityPadding??6;const{cssStyles:s}=t,{labelStyles:o,nodeStyles:l}=j(t);if(r.attributes.length===0&&t.label){const Z={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5};he(t.label,i)+Z.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const tt=await Zn(e,t,Z);if(!yt(i.htmlLabels)){const at=tt.select("text"),ct=at.node()?.getBBox();at.attr("transform",`translate(${-ct.width/2}, 0)`)}return tt}i.htmlLabels||(n*=1.25,a*=1.25);let c=X(t);c||(c="node default");const h=e.insert("g").attr("class",c).attr("id",t.domId||t.id),u=await tr(h,t.label??"",i,0,0,["name"],o);u.height+=a;let f=0;const d=[],g=[];let m=0,y=0,x=0,b=0,_=!0,k=!0;for(const Z of r.attributes){const tt=await tr(h,Z.type,i,0,f,["attribute-type"],o);m=Math.max(m,tt.width+n);const at=await tr(h,Z.name,i,0,f,["attribute-name"],o);y=Math.max(y,at.width+n);const ct=await tr(h,Z.keys.join(),i,0,f,["attribute-keys"],o);x=Math.max(x,ct.width+n);const At=await tr(h,Z.comment,i,0,f,["attribute-comment"],o);b=Math.max(b,At.width+n);const Ct=Math.max(tt.height,at.height,ct.height,At.height)+a;g.push({yOffset:f,rowHeight:Ct}),f+=Ct}let C=4;x<=n&&(_=!1,x=0,C--),b<=n&&(k=!1,b=0,C--);const B=h.node().getBBox();if(u.width+n*2-(m+y+x+b)>0){const Z=u.width+n*2-(m+y+x+b);m+=Z/C,y+=Z/C,x>0&&(x+=Z/C),b>0&&(b+=Z/C)}const v=m+y+x+b,E=q.svg(h),P=H(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let D=0;g.length>0&&(D=g.reduce((Z,tt)=>Z+(tt?.rowHeight??0),0));const F=Math.max(B.width+n*2,t?.width||0,v),R=Math.max((D??0)+u.height,t?.height||0),O=-F/2,T=-R/2;h.selectAll("g:not(:first-child)").each((Z,tt,at)=>{const ct=it(at[tt]),At=ct.attr("transform");let Ct=0,de=0;if(At){const xt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(At);xt&&(Ct=parseFloat(xt[1]),de=parseFloat(xt[2]),ct.attr("class").includes("attribute-name")?Ct+=m:ct.attr("class").includes("attribute-keys")?Ct+=m+y:ct.attr("class").includes("attribute-comment")&&(Ct+=m+y+x))}ct.attr("transform",`translate(${O+n/2+Ct}, ${de+T+u.height+a/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(T+a/2)+")");const L=E.rectangle(O,T,F,R,P),S=h.insert(()=>L,":first-child").attr("style",s.join("")),{themeVariables:M}=vt(),{rowEven:$,rowOdd:W,nodeBorder:G}=M;d.push(0);for(const[Z,tt]of g.entries()){const ct=(Z+1)%2===0&&tt.yOffset!==0,At=E.rectangle(O,u.height+T+tt?.yOffset,F,tt?.rowHeight,{...P,fill:ct?$:W,stroke:G});h.insert(()=>At,"g.label").attr("style",s.join("")).attr("class",`row-rect-${ct?"even":"odd"}`)}let et=E.line(O,u.height+T,F+O,u.height+T,P);h.insert(()=>et).attr("class","divider"),et=E.line(m+O,u.height+T,m+O,R+T,P),h.insert(()=>et).attr("class","divider"),_&&(et=E.line(m+y+O,u.height+T,m+y+O,R+T,P),h.insert(()=>et).attr("class","divider")),k&&(et=E.line(m+y+x+O,u.height+T,m+y+x+O,R+T,P),h.insert(()=>et).attr("class","divider"));for(const Z of d)et=E.line(O,u.height+T+Z,F+O,u.height+T+Z,P),h.insert(()=>et).attr("class","divider");if(Y(t,S),l&&t.look!=="handDrawn"){const tt=l.split(";")?.filter(at=>at.includes("stroke"))?.map(at=>`${at}`).join("; ");h.selectAll("path").attr("style",tt??""),h.selectAll(".row-rect-even path").attr("style",l)}return t.intersect=function(Z){return N.rect(t,Z)},h}p(co,"erBox");async function tr(e,t,r,i=0,n=0,a=[],s=""){const o=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);t!==bo(t)&&(t=bo(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=o.node().appendChild(await Se(o,t,{width:he(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(yt(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=it(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}p(tr,"addText");async function Kd(e,t,r,i,n=r.class.padding??12){const a=i?0:3,s=e.insert("g").attr("class",X(t)).attr("id",t.domId||t.id);let o=null,l=null,c=null,h=null,u=0,f=0,d=0;if(o=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await Wr(o,{text:`«${b}»`},0),u=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Wr(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,c=s.insert("g").attr("class","members-group text");let m=0;for(const b of t.members){const _=await Wr(c,b,m,[b.parseClassifier()]);m+=_+a}d=c.node().getBBox().height,d<=0&&(d=n/2),h=s.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const _=await Wr(h,b,y,[b.parseClassifier()]);y+=_+a}let x=s.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),x=s.node().getBBox(),c.attr("transform",`translate(0, ${u+f+n*2})`),x=s.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),x=s.node().getBBox(),{shapeSvg:s,bbox:x}}p(Kd,"textHelper");async function Wr(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=vt();let s="useHtmlLabels"in t?t.useHtmlLabels:yt(a.htmlLabels)??!0,o="";"text"in t?o=t.text:o=t.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),gr(o)&&(s=!0);const l=await Se(n,bs(Xe(o)),{width:he(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let c,h=1;if(s){const u=l.children[0],f=it(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(m=>new Promise(y=>{function x(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,k=parseInt(b,10)*5+"px";m.style.minWidth=k,m.style.maxWidth=k}else m.style.width="100%";y(m)}p(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{i.includes("font-weight: bolder")&&it(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=o[0]+o.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),o[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}p(Wr,"addText");async function Qd(e,t){const r=st(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??yt(r.htmlLabels)??!0,s=t;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:o,bbox:l}=await Kd(e,t,r,a,n),{labelStyles:c,nodeStyles:h}=j(t);t.labelStyle=c,t.cssStyles=s.styles||"";const u=s.styles?.join(";")||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const f=s.members.length===0&&s.methods.length===0&&!r.class?.hideEmptyMembersBox,d=q.svg(o),g=H(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=l.width;let y=l.height;s.members.length===0&&s.methods.length===0?y+=n:s.members.length>0&&s.methods.length===0&&(y+=n*2);const x=-m/2,b=-y/2,_=d.rectangle(x-i,b-i-(f?i:s.members.length===0&&s.methods.length===0?-i/2:0),m+2*i,y+2*i+(f?i*2:s.members.length===0&&s.methods.length===0?-i:0),g),k=o.insert(()=>_,":first-child");k.attr("class","basic label-container");const C=k.node().getBBox();o.selectAll(".text").each((P,D,F)=>{const R=it(F[D]),O=R.attr("transform");let T=0;if(O){const $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);$&&(T=parseFloat($[2]))}let L=T+b+i-(f?i:s.members.length===0&&s.methods.length===0?-i/2:0);a||(L-=4);let S=x;(R.attr("class").includes("label-group")||R.attr("class").includes("annotation-group"))&&(S=-R.node()?.getBBox().width/2||0,o.selectAll("text").each(function(M,$,W){window.getComputedStyle(W[$]).textAnchor==="middle"&&(S=0)})),R.attr("transform",`translate(${S}, ${L})`)});const B=o.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,v=o.select(".label-group").node().getBBox().height-(f?i/2:0)||0,E=o.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(s.members.length>0||s.methods.length>0||f){const P=d.line(C.x,B+v+b+i,C.x+C.width,B+v+b+i,g);o.insert(()=>P).attr("class","divider").attr("style",u)}if(f||s.members.length>0||s.methods.length>0){const P=d.line(C.x,B+v+E+b+n*2+i,C.x+C.width,B+v+E+b+i+n*2,g);o.insert(()=>P).attr("class","divider").attr("style",u)}if(s.look!=="handDrawn"&&o.selectAll("path").attr("style",u),k.select(":nth-child(2)").attr("style",u),o.selectAll(".divider").select("path").attr("style",u),t.labelStyle?o.selectAll("span").attr("style",t.labelStyle):o.selectAll("span").attr("style",u),!a){const P=RegExp(/color\s*:\s*([^;]*)/),D=P.exec(u);if(D){const F=D[0].replace("color","fill");o.selectAll("tspan").attr("style",F)}else if(c){const F=P.exec(c);if(F){const R=F[0].replace("color","fill");o.selectAll("tspan").attr("style",R)}}}return Y(t,k),t.intersect=function(P){return N.rect(t,P)},o}p(Qd,"classBox");async function Jd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const n=t,a=t,s=20,o=20,l="verifyMethod"in t,c=X(t),h=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let u;l?u=await Zt(h,`&lt;&lt;${n.type}&gt;&gt;`,0,t.labelStyle):u=await Zt(h,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let f=u;const d=await Zt(h,n.name,f,t.labelStyle+"; font-weight: bold;");if(f+=d+o,l){const B=await Zt(h,`${n.requirementId?`ID: ${n.requirementId}`:""}`,f,t.labelStyle);f+=B;const v=await Zt(h,`${n.text?`Text: ${n.text}`:""}`,f,t.labelStyle);f+=v;const E=await Zt(h,`${n.risk?`Risk: ${n.risk}`:""}`,f,t.labelStyle);f+=E,await Zt(h,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,f,t.labelStyle)}else{const B=await Zt(h,`${a.type?`Type: ${a.type}`:""}`,f,t.labelStyle);f+=B,await Zt(h,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,f,t.labelStyle)}const g=(h.node()?.getBBox().width??200)+s,m=(h.node()?.getBBox().height??200)+s,y=-g/2,x=-m/2,b=q.svg(h),_=H(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const k=b.rectangle(y,x,g,m,_),C=h.insert(()=>k,":first-child");if(C.attr("class","basic label-container").attr("style",i),h.selectAll(".label").each((B,v,E)=>{const P=it(E[v]),D=P.attr("transform");let F=0,R=0;if(D){const S=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(D);S&&(F=parseFloat(S[1]),R=parseFloat(S[2]))}const O=R-m/2;let T=y+s/2;(v===0||v===1)&&(T=F),P.attr("transform",`translate(${T}, ${O+s})`)}),f>u+d+o){const B=b.line(y,x+u+d+o,y+g,x+u+d+o,_);h.insert(()=>B).attr("style",i)}return Y(t,C),t.intersect=function(B){return N.rect(t,B)},h}p(Jd,"requirementBox");async function Zt(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=st(),s=a.htmlLabels??!0,o=await Se(n,bs(Xe(t)),{width:he(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a);let l;if(s){const c=o.children[0],h=it(o);l=c.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{const c=o.children[0];for(const h of c.children)h.textContent=h.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&h.setAttribute("style",i);l=o.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}p(Zt,"addText");var zw=p(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function tp(e,t,{config:r}){const{labelStyles:i,nodeStyles:n}=j(t);t.labelStyle=i||"";const a=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:o,bbox:l,label:c}=await K(e,t,X(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(u=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await da(f,"ticket"in t&&t.ticket||"",d):{label:g,bbox:m}=await da(o,"ticket"in t&&t.ticket||"",d);const{label:y,bbox:x}=await da(o,"assigned"in t&&t.assigned||"",d);t.width=s;const b=10,_=t?.width||0,k=Math.max(m.height,x.height)/2,C=Math.max(l.height+b*2,t?.height||0)+k,B=-_/2,v=-C/2;c.attr("transform","translate("+(h-_/2)+", "+(-k-l.height/2)+")"),g.attr("transform","translate("+(h-_/2)+", "+(-k+l.height/2)+")"),y.attr("transform","translate("+(h+_/2-x.width-2*a)+", "+(-k+l.height/2)+")");let E;const{rx:P,ry:D}=t,{cssStyles:F}=t;if(t.look==="handDrawn"){const R=q.svg(o),O=H(t,{}),T=P||D?R.path(Te(B,v,_,C,P||0),O):R.rectangle(B,v,_,C,O);E=o.insert(()=>T,":first-child"),E.attr("class","basic label-container").attr("style",F||null)}else{E=o.insert("rect",":first-child"),E.attr("class","basic label-container __APA__").attr("style",n).attr("rx",P??5).attr("ry",D??5).attr("x",B).attr("y",v).attr("width",_).attr("height",C);const R="priority"in t&&t.priority;if(R){const O=o.append("line"),T=B+2,L=v+Math.floor((P??0)/2),S=v+C-Math.floor((P??0)/2);O.attr("x1",T).attr("y1",L).attr("x2",T).attr("y2",S).attr("stroke-width","4").attr("stroke",zw(R))}}return Y(t,E),t.height=C,t.intersect=function(R){return N.rect(t,R)},o}p(tp,"kanbanItem");async function ep(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await K(e,t,X(t)),l=a.width+10*s,c=a.height+8*s,h=.15*l,{cssStyles:u}=t,f=a.width+20,d=a.height+20,g=Math.max(l,f),m=Math.max(c,d);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const x=`M0 0
192
+ a${h},${h} 1 0,0 ${g*.25},${-1*m*.1}
193
+ a${h},${h} 1 0,0 ${g*.25},0
194
+ a${h},${h} 1 0,0 ${g*.25},0
195
+ a${h},${h} 1 0,0 ${g*.25},${m*.1}
196
+
197
+ a${h},${h} 1 0,0 ${g*.15},${m*.33}
198
+ a${h*.8},${h*.8} 1 0,0 0,${m*.34}
199
+ a${h},${h} 1 0,0 ${-1*g*.15},${m*.33}
200
+
201
+ a${h},${h} 1 0,0 ${-1*g*.25},${m*.15}
202
+ a${h},${h} 1 0,0 ${-1*g*.25},0
203
+ a${h},${h} 1 0,0 ${-1*g*.25},0
204
+ a${h},${h} 1 0,0 ${-1*g*.25},${-1*m*.15}
205
+
206
+ a${h},${h} 1 0,0 ${-1*g*.1},${-1*m*.33}
207
+ a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
208
+ a${h},${h} 1 0,0 ${g*.1},${-1*m*.33}
209
+ H0 V0 Z`;if(t.look==="handDrawn"){const b=q.svg(n),_=H(t,{}),k=b.path(x,_);y=n.insert(()=>k,":first-child"),y.attr("class","basic label-container").attr("style",Tt(u))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return y.attr("transform",`translate(${-g/2}, ${-m/2})`),Y(t,y),t.calcIntersect=function(b,_){return N.rect(b,_)},t.intersect=function(b){return A.info("Bang intersect",t,b),N.rect(t,b)},n}p(ep,"bang");async function rp(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await K(e,t,X(t)),l=a.width+2*s,c=a.height+2*s,h=.15*l,u=.25*l,f=.35*l,d=.2*l,{cssStyles:g}=t;let m;const y=`M0 0
210
+ a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
211
+ a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
212
+ a${u},${u} 1 0,1 ${l*.35},${l*.2}
213
+
214
+ a${h},${h} 1 0,1 ${l*.15},${c*.35}
215
+ a${d},${d} 1 0,1 ${-1*l*.15},${c*.65}
216
+
217
+ a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
218
+ a${f},${f} 1 0,1 ${-1*l*.5},0
219
+ a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
220
+
221
+ a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
222
+ a${d},${d} 1 0,1 ${l*.1},${-1*c*.65}
223
+ H0 V0 Z`;if(t.look==="handDrawn"){const x=q.svg(n),b=H(t,{}),_=x.path(y,b);m=n.insert(()=>_,":first-child"),m.attr("class","basic label-container").attr("style",Tt(g))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),Y(t,m),t.calcIntersect=function(x,b){return N.rect(x,b)},t.intersect=function(x){return A.info("Cloud intersect",t,x),N.rect(t,x)},n}p(rp,"cloud");async function ip(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await K(e,t,X(t)),l=a.width+8*s,c=a.height+2*s,h=5,u=`
224
+ M${-l/2} ${c/2-h}
225
+ v${-c+2*h}
226
+ q0,-${h} ${h},-${h}
227
+ h${l-2*h}
228
+ q${h},0 ${h},${h}
229
+ v${c-2*h}
230
+ q0,${h} -${h},${h}
231
+ h${-l+2*h}
232
+ q-${h},0 -${h},-${h}
233
+ Z
234
+ `,f=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),Y(t,f),t.calcIntersect=function(d,g){return N.rect(d,g)},t.intersect=function(d){return N.rect(t,d)},n}p(ip,"defaultMindmapNode");async function np(e,t){const r={padding:t.padding??0};return lo(e,t,r)}p(np,"mindmapCircle");var qw=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Od},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Fd},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Pd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:zd},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ad},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:lo},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ep},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:rp},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:$d},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:fd},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:wd},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Cd},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Yd},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:bd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:od},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Hd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Kf},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Ed},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Nd},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Id},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:hd},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:dd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ed},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:rd},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:id},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:kd},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Ud},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:ud},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:jd},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:vd},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:nd},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:sd},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Vd},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Zd},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ld},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Gd},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:cd},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Dd},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Bd},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Td},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Zf},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:td},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Wd},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:qd},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Xd},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Md},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Sd}],Ww=p(()=>{const t=[...Object.entries({state:Rd,choice:Qf,note:Ld,rectWithTitle:Ad,labelRect:_d,iconSquare:yd,iconCircle:gd,icon:pd,iconRounded:md,imageSquare:xd,anchor:Xf,kanbanItem:tp,mindmapCircle:np,defaultMindmapNode:ip,classBox:Qd,erBox:co,requirementBox:Jd}),...qw.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),ap=Ww();function Hw(e){return e in ap}p(Hw,"isValidShape");var Kn=new Map;async function sp(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?ap[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),Kn.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}p(sp,"insertNode");var rB=p((e,t)=>{Kn.set(t.id,e)},"setNodeElem"),iB=p(()=>{Kn.clear()},"clear"),nB=p(e=>{const t=Kn.get(e.id);A.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),jw=p((e,t,r,i,n,a)=>{t.arrowTypeStart&&Ll(e,"start",t.arrowTypeStart,r,i,n,a),t.arrowTypeEnd&&Ll(e,"end",t.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),Yw={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ll=p((e,t,r,i,n,a,s)=>{const o=Yw[r];if(!o){A.warn(`Unknown arrow type: ${r}`);return}const l=o.type,h=`${n}_${a}-${l}${t==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const u=s.replace(/[^\dA-Za-z]/g,"_"),f=`${h}_${u}`;if(!document.getElementById(f)){const d=document.getElementById(h);if(d){const g=d.cloneNode(!0);g.id=f,g.querySelectorAll("path, circle, line").forEach(y=>{y.setAttribute("stroke",s),o.fill&&y.setAttribute("fill",s)}),d.parentNode?.appendChild(g)}}e.attr(`marker-${t}`,`url(${i}#${f})`)}else e.attr(`marker-${t}`,`url(${i}#${h})`)},"addEdgeMarker"),Tn=new Map,_t=new Map,aB=p(()=>{Tn.clear(),_t.clear()},"clear"),$i=p(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Gw=p(async(e,t)=>{let r=yt(st().flowchart.htmlLabels);const{labelStyles:i}=j(t);t.labelStyle=i;const n=await Se(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});A.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",t.id);s.node().appendChild(n);let o=n.getBBox();if(r){const c=n.children[0],h=it(n);o=c.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Tn.set(t.id,a),t.width=o.width,t.height=o.height;let l;if(t.startLabelLeft){const c=await Pe(t.startLabelLeft,$i(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),_t.get(t.id)||_t.set(t.id,{}),_t.get(t.id).startLeft=h,Hr(l,t.startLabelLeft)}if(t.startLabelRight){const c=await Pe(t.startLabelRight,$i(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=h.node().appendChild(c),u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),_t.get(t.id)||_t.set(t.id,{}),_t.get(t.id).startRight=h,Hr(l,t.startLabelRight)}if(t.endLabelLeft){const c=await Pe(t.endLabelLeft,$i(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(c),_t.get(t.id)||_t.set(t.id,{}),_t.get(t.id).endLeft=h,Hr(l,t.endLabelLeft)}if(t.endLabelRight){const c=await Pe(t.endLabelRight,$i(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(c),_t.get(t.id)||_t.set(t.id,{}),_t.get(t.id).endRight=h,Hr(l,t.endLabelRight)}return n},"insertEdgeLabel");function Hr(e,t){st().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(Hr,"setTerminalWidth");var Vw=p((e,t)=>{A.debug("Moving label abc88 ",e.id,e.label,Tn.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=st(),{subGraphTitleTotalMargin:n}=Ns(i);if(e.label){const a=Tn.get(e.id);let s=e.x,o=e.y;if(r){const l=jt.calcLabelPosition(r);A.debug("Moving label "+e.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+n/2})`)}if(e.startLabelLeft){const a=_t.get(e.id).startLeft;let s=e.x,o=e.y;if(r){const l=jt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.startLabelRight){const a=_t.get(e.id).startRight;let s=e.x,o=e.y;if(r){const l=jt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelLeft){const a=_t.get(e.id).endLeft;let s=e.x,o=e.y;if(r){const l=jt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelRight){const a=_t.get(e.id).endRight;let s=e.x,o=e.y;if(r){const l=jt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),Uw=p((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),s=e.width/2,o=e.height/2;return n>=s||a>=o},"outsideNode"),Xw=p((e,t,r)=>{A.debug(`intersection calc abc89:
235
+ outsidePoint: ${JSON.stringify(t)}
236
+ insidePoint : ${JSON.stringify(r)}
237
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),s=e.width/2;let o=r.x<t.x?s-a:s+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*s>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;o=h*u/c;const f={x:r.x<t.x?r.x+o:r.x-h+o,y:r.y<t.y?r.y+c-u:r.y-c+u};return o===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),A.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${o}`,f),f}else{r.x<t.x?o=t.x-s-i:o=i-s-t.x;let u=c*o/h,f=r.x<t.x?r.x+h-o:r.x-h+o,d=r.y<t.y?r.y+u:r.y-u;return A.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${o}`,{_x:f,_y:d}),o===0&&(f=t.x,d=t.y),h===0&&(f=t.x),c===0&&(d=t.y),{x:f,y:d}}},"intersection"),$l=p((e,t)=>{A.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(A.info("abc88 checking point",a,t),!Uw(t,a)&&!n){const s=Xw(t,i,a);A.debug("abc88 inside",a,i,s),A.debug("abc88 intersection",s,t);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?A.warn("abc88 no intersect",s,r):r.push(s),n=!0}else A.warn("abc88 outside",a,i),i=a,n||r.push(a)}),A.debug("returning points",r),r},"cutPathAtIntersect");function op(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],s=e[i+1];(n.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(op,"extractCornerPoints");var Ml=p(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:t.x-s*i,y:t.y-s*n}},"findAdjacentPoint"),Zw=p(function(e){const{cornerPointPositions:t}=op(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],s=e[i],o=Ml(n,s,5),l=Ml(a,s,5),c=l.x-o.x,h=l.y-o.y;r.push(o);const u=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){A.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;s.x===o.x?f={x:c<0?o.x-d+u:o.x+d-u,y:h<0?o.y-u:o.y+u}:f={x:c<0?o.x-u:o.x+u,y:h<0?o.y-d+u:o.y+d-u}}else A.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),Kw=p((e,t,r)=>{const i=e-t-r,n=2,a=2,s=n+a,o=Math.floor(i/s),l=Array(o).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),Qw=p(function(e,t,r,i,n,a,s,o=!1){const{handDrawnSeed:l}=st();let c=t.points,h=!1;const u=n;var f=a;const d=[];for(const T in t.cssCompiledStyles)Ru(T)||d.push(t.cssCompiledStyles[T]);A.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!o&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),A.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],f,f.intersect(c[c.length-1])),c.push(f.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&(A.info("to cluster abc88",r.get(t.toCluster)),c=$l(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(A.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=$l(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=c.filter(T=>!Number.isNaN(T.y));m=Zw(m);let y=Ri;switch(y=rn,t.curve){case"linear":y=rn;break;case"basis":y=Ri;break;case"cardinal":y=qc;break;case"bumpX":y=Pc;break;case"bumpY":y=Rc;break;case"catmullRom":y=Hc;break;case"monotoneX":y=Xc;break;case"monotoneY":y=Zc;break;case"natural":y=Qc;break;case"step":y=Jc;break;case"stepAfter":y=eh;break;case"stepBefore":y=th;break;default:y=Ri}const{x,y:b}=Zb(t),_=Ex().x(x).y(b).curve(y);let k;switch(t.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(t.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let C,B=t.curve==="rounded"?lp(cp(m,t),5):_(m);const v=Array.isArray(t.style)?t.style:[t.style];let E=v.find(T=>T?.startsWith("stroke:")),P=!1;if(t.look==="handDrawn"){const T=q.svg(e);Object.assign([],m);const L=T.path(B,{roughness:.3,seed:l});k+=" transition",C=it(L).select("path").attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")).attr("style",v?v.reduce((M,$)=>M+";"+$,""):"");let S=C.attr("d");C.attr("d",S),e.node().appendChild(C.node())}else{const T=d.join(";"),L=v?v.reduce((Z,tt)=>Z+tt+";",""):"";let S="";t.animate&&(S=" edge-animation-fast"),t.animation&&(S=" edge-animation-"+t.animation);const M=(T?T+";"+L+";":L)+";"+(v?v.reduce((Z,tt)=>Z+";"+tt,""):"");C=e.append("path").attr("d",B).attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")+(S??"")).attr("style",M),E=M.match(/stroke:([^;]+)/)?.[1],P=t.animate===!0||!!t.animation||T.includes("animation");const $=C.node(),W=typeof $.getTotalLength=="function"?$.getTotalLength():0,G=Go[t.arrowTypeStart]||0,et=Go[t.arrowTypeEnd]||0;if(t.look==="neo"&&!P){const tt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Kw(W,G,et):`0 ${G} ${W-G-et} ${et}`}; stroke-dashoffset: 0;`;C.attr("style",tt+C.attr("style"))}}C.attr("data-edge",!0),C.attr("data-et","edge"),C.attr("data-id",t.id),C.attr("data-points",g),t.showPoints&&m.forEach(T=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",T.x).attr("cy",T.y)});let D="";(st().flowchart.arrowMarkerAbsolute||st().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),A.info("arrowTypeStart",t.arrowTypeStart),A.info("arrowTypeEnd",t.arrowTypeEnd),jw(C,t,D,s,i,E);const F=Math.floor(c.length/2),R=c[F];jt.isLabelCoordinateInPath(R,C.attr("d"))||(h=!0);let O={};return h&&(O.updatedPath=c),O.originalPath=t.points,O},"insertEdge");function lp(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const s=e[a],o=e[a-1],l=e[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const c=s.x-o.x,h=s.y-o.y,u=l.x-s.x,f=l.y-s.y,d=Math.hypot(c,h),g=Math.hypot(u,f);if(d<n||g<n){r+=`L${s.x},${s.y}`;continue}const m=c/d,y=h/d,x=u/g,b=f/g,_=m*x+y*b,k=Math.max(-1,Math.min(1,_)),C=Math.acos(k);if(C<n||Math.abs(Math.PI-C)<n){r+=`L${s.x},${s.y}`;continue}const B=Math.min(t/Math.sin(C/2),d/2,g/2),v=s.x-m*B,E=s.y-y*B,P=s.x+x*B,D=s.y+b*B;r+=`L${v},${E}`,r+=`Q${s.x},${s.y} ${P},${D}`}}return r}p(lp,"generateRoundedPath");function is(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(is,"calculateDeltaAndAngle");function cp(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&kt[t.arrowTypeStart]){const n=kt[t.arrowTypeStart],a=e[0],s=e[1],{angle:o}=is(a,s),l=n*Math.cos(o),c=n*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+c}const i=e.length;if(i>=2&&kt[t.arrowTypeEnd]){const n=kt[t.arrowTypeEnd],a=e[i-1],s=e[i-2],{angle:o}=is(s,a),l=n*Math.cos(o),c=n*Math.sin(o);r[i-1].x=a.x-l,r[i-1].y=a.y-c}return r}p(cp,"applyMarkerOffsetsToPoints");var Jw=p((e,t,r,i)=>{t.forEach(n=>{gk[n](e,r,i)})},"insertMarkers"),tk=p((e,t,r)=>{A.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),ek=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),rk=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),ik=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),nk=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ak=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),sk=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),ok=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),lk=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ck=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),hk=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),uk=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),fk=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),dk=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
238
+ L20,10
239
+ M20,10
240
+ L0,20`)},"requirement_arrow"),pk=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),gk={extension:tk,composition:ek,aggregation:rk,dependency:ik,lollipop:nk,point:ak,circle:sk,cross:ok,barb:lk,only_one:ck,zero_or_one:hk,one_or_more:uk,zero_or_more:fk,requirement_arrow:dk,requirement_contains:pk},mk=Jw,yk={common:wr,getConfig:vt,insertCluster:Sw,insertEdge:Qw,insertEdgeLabel:Gw,insertMarkers:mk,insertNode:sp,interpolateToCurve:js,labelHelper:K,log:A,positionEdgeLabel:Vw},oi={},hp=p(e=>{for(const t of e)oi[t.name]=t},"registerLayoutLoaders"),xk=p(()=>{hp([{name:"dagre",loader:p(async()=>await lt(()=>import("./CM4QnuZs.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:p(async()=>await lt(()=>import("./DvCA51Ri.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");xk();var sB=p(async(e,t)=>{if(!(e.layoutAlgorithm in oi))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=oi[e.layoutAlgorithm];return(await r.loader()).render(e,t,yk,{algorithm:r.algorithm})},"render"),oB=p((e="",{fallback:t="dagre"}={})=>{if(e in oi)return e;if(t in oi)return A.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),up="comm",fp="rule",dp="decl",bk="@import",_k="@namespace",Ck="@keyframes",wk="@layer",pp=Math.abs,ho=String.fromCharCode;function gp(e){return e.trim()}function Wi(e,t,r){return e.replace(t,r)}function kk(e,t,r){return e.indexOf(t,r)}function nr(e,t){return e.charCodeAt(t)|0}function _r(e,t,r){return e.slice(t,r)}function Kt(e){return e.length}function vk(e){return e.length}function Mi(e,t){return t.push(e),e}var Qn=1,Cr=1,mp=0,zt=0,dt=0,Br="";function uo(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Qn,column:Cr,length:s,return:"",siblings:o}}function Sk(){return dt}function Tk(){return dt=zt>0?nr(Br,--zt):0,Cr--,dt===10&&(Cr=1,Qn--),dt}function Gt(){return dt=zt<mp?nr(Br,zt++):0,Cr++,dt===10&&(Cr=1,Qn++),dt}function xe(){return nr(Br,zt)}function Hi(){return zt}function Jn(e,t){return _r(Br,e,t)}function li(e){switch(e){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 Bk(e){return Qn=Cr=1,mp=Kt(Br=e),zt=0,[]}function Lk(e){return Br="",e}function pa(e){return gp(Jn(zt-1,ns(e===91?e+2:e===40?e+1:e)))}function $k(e){for(;(dt=xe())&&dt<33;)Gt();return li(e)>2||li(dt)>3?"":" "}function Mk(e,t){for(;--t&&Gt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return Jn(e,Hi()+(t<6&&xe()==32&&Gt()==32))}function ns(e){for(;Gt();)switch(dt){case e:return zt;case 34:case 39:e!==34&&e!==39&&ns(dt);break;case 40:e===41&&ns(e);break;case 92:Gt();break}return zt}function Ak(e,t){for(;Gt()&&e+dt!==57;)if(e+dt===84&&xe()===47)break;return"/*"+Jn(t,zt-1)+"*"+ho(e===47?e:Gt())}function Fk(e){for(;!li(xe());)Gt();return Jn(e,zt)}function Ek(e){return Lk(ji("",null,null,null,[""],e=Bk(e),0,[0],e))}function ji(e,t,r,i,n,a,s,o,l){for(var c=0,h=0,u=s,f=0,d=0,g=0,m=1,y=1,x=1,b=0,_="",k=n,C=a,B=i,v=_;y;)switch(g=b,b=Gt()){case 40:if(g!=108&&nr(v,u-1)==58){kk(v+=Wi(pa(b),"&","&\f"),"&\f",pp(c?o[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:v+=pa(b);break;case 9:case 10:case 13:case 32:v+=$k(g);break;case 92:v+=Mk(Hi()-1,7);continue;case 47:switch(xe()){case 42:case 47:Mi(Dk(Ak(Gt(),Hi()),t,r,l),l),(li(g||1)==5||li(xe()||1)==5)&&Kt(v)&&_r(v,-1,void 0)!==" "&&(v+=" ");break;default:v+="/"}break;case 123*m:o[c++]=Kt(v)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(v=Wi(v,/\f/g,"")),d>0&&(Kt(v)-u||m===0&&g===47)&&Mi(d>32?Fl(v+";",i,r,u-1,l):Fl(Wi(v," ","")+";",i,r,u-2,l),l);break;case 59:v+=";";default:if(Mi(B=Al(v,t,r,c,h,n,o,_,k=[],C=[],u,a),a),b===123)if(h===0)ji(v,t,B,B,k,a,u,o,C);else{switch(f){case 99:if(nr(v,3)===110)break;case 108:if(nr(v,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ji(e,B,B,i&&Mi(Al(e,B,B,0,0,n,o,_,n,k=[],u,C),C),n,C,u,o,i?k:C):ji(v,B,B,B,[""],C,0,o,C)}}c=h=d=0,m=x=1,_=v="",u=s;break;case 58:u=1+Kt(v),d=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Tk()==125)continue}switch(v+=ho(b),b*m){case 38:x=h>0?1:(v+="\f",-1);break;case 44:o[c++]=(Kt(v)-1)*x,x=1;break;case 64:xe()===45&&(v+=pa(Gt())),f=xe(),h=u=Kt(_=v+=Fk(Hi())),b++;break;case 45:g===45&&Kt(v)==2&&(m=0)}}return a}function Al(e,t,r,i,n,a,s,o,l,c,h,u){for(var f=n-1,d=n===0?a:[""],g=vk(d),m=0,y=0,x=0;m<i;++m)for(var b=0,_=_r(e,f+1,f=pp(y=s[m])),k=e;b<g;++b)(k=gp(y>0?d[b]+" "+_:Wi(_,/&\f/g,d[b])))&&(l[x++]=k);return uo(e,t,r,n===0?fp:o,l,c,h,u)}function Dk(e,t,r,i){return uo(e,t,r,up,ho(Sk()),_r(e,2,-2),0,i)}function Fl(e,t,r,i,n){return uo(e,t,r,dp,_r(e,0,i),_r(e,i+1,-1),i,n)}function as(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Ok(e,t,r,i){switch(e.type){case wk:if(e.children.length)break;case bk:case _k:case dp:return e.return=e.return||e.value;case up:return"";case Ck:return e.return=e.value+"{"+as(e.children,i)+"}";case fp:if(!Kt(e.value=e.props.join(",")))return""}return Kt(r=as(e.children,i))?e.return=e.value+"{"+r+"}":""}var Pk=qu(Object.keys,Object),Rk=Object.prototype,Ik=Rk.hasOwnProperty;function Nk(e){if(!Wn(e))return Pk(e);var t=[];for(var r in Object(e))Ik.call(e,r)&&r!="constructor"&&t.push(r);return t}var ss=Ue(re,"DataView"),os=Ue(re,"Promise"),ls=Ue(re,"Set"),cs=Ue(re,"WeakMap"),El="[object Map]",zk="[object Object]",Dl="[object Promise]",Ol="[object Set]",Pl="[object WeakMap]",Rl="[object DataView]",qk=Ve(ss),Wk=Ve(ai),Hk=Ve(os),jk=Ve(ls),Yk=Ve(cs),Ae=vr;(ss&&Ae(new ss(new ArrayBuffer(1)))!=Rl||ai&&Ae(new ai)!=El||os&&Ae(os.resolve())!=Dl||ls&&Ae(new ls)!=Ol||cs&&Ae(new cs)!=Pl)&&(Ae=function(e){var t=vr(e),r=t==zk?e.constructor:void 0,i=r?Ve(r):"";if(i)switch(i){case qk:return Rl;case Wk:return El;case Hk:return Dl;case jk:return Ol;case Yk:return Pl}return t});var Gk="[object Map]",Vk="[object Set]",Uk=Object.prototype,Xk=Uk.hasOwnProperty;function Il(e){if(e==null)return!0;if(Hn(e)&&(mn(e)||typeof e=="string"||typeof e.splice=="function"||Ws(e)||Hs(e)||gn(e)))return!e.length;var t=Ae(e);if(t==Gk||t==Vk)return!e.size;if(Wn(e))return!Nk(e).length;for(var r in e)if(Xk.call(e,r))return!1;return!0}var yp="c4",Zk=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Kk=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CwdUHN22.js");return{diagram:t}},__vite__mapDeps([8,9]),import.meta.url);return{id:yp,diagram:e}},"loader"),Qk={id:yp,detector:Zk,loader:Kk},Jk=Qk,xp="flowchart",tv=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),ev=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BzadFaiy.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:xp,diagram:e}},"loader"),rv={id:xp,detector:tv,loader:ev},iv=rv,bp="flowchart-v2",nv=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),av=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BzadFaiy.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:bp,diagram:e}},"loader"),sv={id:bp,detector:nv,loader:av},ov=sv,_p="er",lv=p(e=>/^\s*erDiagram/.test(e),"detector"),cv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./DmOB1nMW.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:_p,diagram:e}},"loader"),hv={id:_p,detector:lv,loader:cv},uv=hv,Cp="gitGraph",fv=p(e=>/^\s*gitGraph/.test(e),"detector"),dv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./B7xXCP9k.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,20,21,2,4,5]),import.meta.url);return{id:Cp,diagram:e}},"loader"),pv={id:Cp,detector:fv,loader:dv},gv=pv,wp="gantt",mv=p(e=>/^\s*gantt/.test(e),"detector"),yv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CSt7grsY.js");return{diagram:t}},__vite__mapDeps([22,23,24,25]),import.meta.url);return{id:wp,diagram:e}},"loader"),xv={id:wp,detector:mv,loader:yv},bv=xv,kp="info",_v=p(e=>/^\s*info/.test(e),"detector"),Cv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./Ddpm2sMN.js");return{diagram:t}},__vite__mapDeps([26,19,20,21,2,4,5]),import.meta.url);return{id:kp,diagram:e}},"loader"),wv={id:kp,detector:_v,loader:Cv},vp="pie",kv=p(e=>/^\s*pie/.test(e),"detector"),vv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BpQpoErY.js");return{diagram:t}},__vite__mapDeps([27,17,19,20,21,2,4,5,28,29,24]),import.meta.url);return{id:vp,diagram:e}},"loader"),Sv={id:vp,detector:kv,loader:vv},Sp="quadrantChart",Tv=p(e=>/^\s*quadrantChart/.test(e),"detector"),Bv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./ByZADglo.js");return{diagram:t}},__vite__mapDeps([30,23,24,25]),import.meta.url);return{id:Sp,diagram:e}},"loader"),Lv={id:Sp,detector:Tv,loader:Bv},$v=Lv,Tp="xychart",Mv=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Av=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BHpy7Gm-.js");return{diagram:t}},__vite__mapDeps([31,24,29,23,25]),import.meta.url);return{id:Tp,diagram:e}},"loader"),Fv={id:Tp,detector:Mv,loader:Av},Ev=Fv,Bp="requirement",Dv=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),Ov=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CI2Yzjad.js");return{diagram:t}},__vite__mapDeps([32,12,13]),import.meta.url);return{id:Bp,diagram:e}},"loader"),Pv={id:Bp,detector:Dv,loader:Ov},Rv=Pv,Lp="sequence",Iv=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Nv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CbWomDEd.js");return{diagram:t}},__vite__mapDeps([33,9,18]),import.meta.url);return{id:Lp,diagram:e}},"loader"),zv={id:Lp,detector:Iv,loader:Nv},qv=zv,$p="class",Wv=p((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),Hv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./Lsu8CQWQ.js");return{diagram:t}},__vite__mapDeps([34,35,11,12,13]),import.meta.url);return{id:$p,diagram:e}},"loader"),jv={id:$p,detector:Wv,loader:Hv},Yv=jv,Mp="classDiagram",Gv=p((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),Vv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CoP9XEcB.js");return{diagram:t}},__vite__mapDeps([36,35,11,12,13]),import.meta.url);return{id:Mp,diagram:e}},"loader"),Uv={id:Mp,detector:Gv,loader:Vv},Xv=Uv,Ap="state",Zv=p((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),Kv=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./-Dz179kp.js");return{diagram:t}},__vite__mapDeps([37,38,12,13,1,2,3,4]),import.meta.url);return{id:Ap,diagram:e}},"loader"),Qv={id:Ap,detector:Zv,loader:Kv},Jv=Qv,Fp="stateDiagram",tS=p((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./Ch6_qw5b.js");return{diagram:t}},__vite__mapDeps([39,38,12,13]),import.meta.url);return{id:Fp,diagram:e}},"loader"),rS={id:Fp,detector:tS,loader:eS},iS=rS,Ep="journey",nS=p(e=>/^\s*journey/.test(e),"detector"),aS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./d_IM0gte.js");return{diagram:t}},__vite__mapDeps([40,9,11,28]),import.meta.url);return{id:Ep,diagram:e}},"loader"),sS={id:Ep,detector:nS,loader:aS},oS=sS,lS=p((e,t,r)=>{A.debug(`rendering svg for syntax error
241
+ `);const i=Wx(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),ac(i,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 ${r}`)},"draw"),Dp={draw:lS},cS=Dp,hS={db:{},renderer:Dp,parser:{parse:p(()=>{},"parse")}},uS=hS,Op="flowchart-elk",fS=p((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),dS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BzadFaiy.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:Op,diagram:e}},"loader"),pS={id:Op,detector:fS,loader:dS},gS=pS,Pp="timeline",mS=p(e=>/^\s*timeline/.test(e),"detector"),yS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./DHLdr2oY.js");return{diagram:t}},__vite__mapDeps([41,28]),import.meta.url);return{id:Pp,diagram:e}},"loader"),xS={id:Pp,detector:mS,loader:yS},bS=xS,Rp="mindmap",_S=p(e=>/^\s*mindmap/.test(e),"detector"),CS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CHBK5X1w.js");return{diagram:t}},__vite__mapDeps([42,12,13]),import.meta.url);return{id:Rp,diagram:e}},"loader"),wS={id:Rp,detector:_S,loader:CS},kS=wS,Ip="kanban",vS=p(e=>/^\s*kanban/.test(e),"detector"),SS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./oC1Mvi0U.js");return{diagram:t}},__vite__mapDeps([43,11]),import.meta.url);return{id:Ip,diagram:e}},"loader"),TS={id:Ip,detector:vS,loader:SS},BS=TS,Np="sankey",LS=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),$S=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CPTuQiBa.js");return{diagram:t}},__vite__mapDeps([44,29,24]),import.meta.url);return{id:Np,diagram:e}},"loader"),MS={id:Np,detector:LS,loader:$S},AS=MS,zp="packet",FS=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),ES=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./CXuqG_J2.js");return{diagram:t}},__vite__mapDeps([45,17,19,20,21,2,4,5]),import.meta.url);return{id:zp,diagram:e}},"loader"),DS={id:zp,detector:FS,loader:ES},qp="radar",OS=p(e=>/^\s*radar-beta/.test(e),"detector"),PS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./BgCckEu3.js");return{diagram:t}},__vite__mapDeps([46,17,19,20,21,2,4,5]),import.meta.url);return{id:qp,diagram:e}},"loader"),RS={id:qp,detector:OS,loader:PS},Wp="block",IS=p(e=>/^\s*block(-beta)?/.test(e),"detector"),NS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./DctEUaEs.js");return{diagram:t}},__vite__mapDeps([47,11,5,2,1,14]),import.meta.url);return{id:Wp,diagram:e}},"loader"),zS={id:Wp,detector:IS,loader:NS},qS=zS,Hp="architecture",WS=p(e=>/^\s*architecture/.test(e),"detector"),HS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./Cehz00B_.js");return{diagram:t}},__vite__mapDeps([48,17,19,20,21,2,4,5,7]),import.meta.url);return{id:Hp,diagram:e}},"loader"),jS={id:Hp,detector:WS,loader:HS},YS=jS,jp="treemap",GS=p(e=>/^\s*treemap/.test(e),"detector"),VS=p(async()=>{const{diagram:e}=await lt(async()=>{const{diagram:t}=await import("./D5qUzPtI.js");return{diagram:t}},__vite__mapDeps([49,13,17,19,20,21,2,4,5,25,29,24]),import.meta.url);return{id:jp,diagram:e}},"loader"),US={id:jp,detector:GS,loader:VS},Nl=!1,ta=p(()=>{Nl||(Nl=!0,Xi("error",uS,e=>e.toLowerCase().trim()==="error"),Xi("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{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")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),ma(gS,kS,YS),ma(Jk,BS,Xv,Yv,uv,bv,wv,Sv,Rv,qv,ov,iv,bS,gv,iS,Jv,oS,$v,AS,DS,Ev,qS,RS,US))},"addDiagrams"),XS=p(async()=>{A.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ne).map(async([r,{detector:i,loader:n}])=>{if(n)try{_a(r)}catch{try{const{diagram:a,id:s}=await n();Xi(s,a,i)}catch(a){throw A.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ne[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){A.error(`Failed to load ${t.length} external diagrams`);for(const r of t)A.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),ZS="graphics-document document";function Yp(e,t){e.attr("role",ZS),t!==""&&e.attr("aria-roledescription",t)}p(Yp,"setA11yDiagramInfo");function Gp(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}p(Gp,"addSVGa11yTitleDescription");var Ie,hs=(Ie=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){const i=vt(),n=ds(t,i);t=U_(t)+`
242
+ `;try{_a(n)}catch{const c=xg(n);if(!c)throw new Vl(`Diagram ${n} not found.`);const{id:h,diagram:u}=await c();Xi(h,u)}const{db:a,parser:s,renderer:o,init:l}=_a(n);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(t),new Ie(n,t,a,s,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(Ie,"Diagram"),Ie),zl=[],KS=p(()=>{zl.forEach(e=>{e()}),zl=[]},"attachFunctions"),QS=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Vp(e){const t=e.match(Gl);if(!t)return{text:e,metadata:{}};let r=Xb(t[1],{schema:Ub})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}p(Vp,"extractFrontMatter");var JS=p(e=>e.replace(/\r\n?/g,`
243
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),tT=p(e=>{const{text:t,metadata:r}=Vp(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),eT=p(e=>{const t=jt.detectInit(e)??{},r=jt.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:O_(e),directive:t}},"processDirectives");function fo(e){const t=JS(e),r=tT(t),i=eT(r.text),n=Xs(r.config,i.directive);return e=QS(i.text),{code:e,title:r.title,config:n}}p(fo,"preprocessDiagram");function Up(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(Up,"toBase64");var rT=5e4,iT="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",nT="sandbox",aT="loose",sT="http://www.w3.org/2000/svg",oT="http://www.w3.org/1999/xlink",lT="http://www.w3.org/1999/xhtml",cT="100%",hT="100%",uT="border:0;margin:0;",fT="margin:0",dT="allow-top-navigation-by-user-activation allow-popups",pT='The "iframe" tag is not supported by your browser.',gT=["foreignobject"],mT=["dominant-baseline"];function po(e){const t=fo(e);return Vi(),Dg(t.config??{}),t}p(po,"processAndSetConfigs");async function Xp(e,t){ta();try{const{code:r,config:i}=po(e);return{diagramType:(await Kp(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}p(Xp,"parse");var ql=p((e,t,r=[])=>`
244
+ .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),yT=p((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
245
+ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
246
+ :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
247
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(o=>{Il(o.styles)||s.forEach(l=>{r+=ql(o.id,l,o.styles)}),Il(o.textStyles)||(r+=ql(o.id,"tspan",(o?.textStyles||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),xT=p((e,t,r,i)=>{const n=yT(e,r),a=t0(t,n,e.themeVariables);return as(Ek(`${i}{${a}}`),Ok)},"createUserStyles"),bT=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Xe(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),_T=p((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":hT,i=Up(`<body style="${fT}">${e}</body>`);return`<iframe style="width:${cT};height:${r};${uT}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${dT}">
248
+ ${pT}
249
+ </iframe>`},"putIntoIFrame"),Wl=p((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",sT);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function us(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(us,"sandboxedIframe");var CT=p((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),wT=p(async function(e,t,r){ta();const i=po(t);t=i.code;const n=vt();A.debug(n),t.length>(n?.maxTextSize??rT)&&(t=iT);const a="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=p(()=>{const O=it(f?o:c).node();O&&"remove"in O&&O.remove()},"removeTempElements");let u=it("body");const f=n.securityLevel===nT,d=n.securityLevel===aT,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const R=us(it(r),s);u=it(R.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=it(r);Wl(u,e,l,`font-family: ${g}`,oT)}else{if(CT(document,e,l,s),f){const R=us(it("body"),s);u=it(R.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=it("body");Wl(u,e,l)}let m,y;try{m=await hs.fromText(t,{title:i.title})}catch(R){if(n.suppressErrorRendering)throw h(),R;m=await hs.fromText("error"),y=R}const x=u.select(c).node(),b=m.type,_=x.firstChild,k=_.firstChild,C=m.renderer.getClasses?.(t,m),B=xT(n,b,C,a),v=document.createElement("style");v.innerHTML=B,_.insertBefore(v,k);try{await m.renderer.draw(t,e,go.version,m)}catch(R){throw n.suppressErrorRendering?h():cS.draw(t,e,go.version),R}const E=u.select(`${c} svg`),P=m.db.getAccTitle?.(),D=m.db.getAccDescription?.();Qp(b,E,P,D),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",lT);let F=u.select(c).node().innerHTML;if(A.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),F=bT(F,f,yt(n.arrowMarkerAbsolute)),f){const R=u.select(c+" svg").node();F=_T(F,R)}else d||(F=dr.sanitize(F,{ADD_TAGS:gT,ADD_ATTR:mT,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(KS(),y)throw y;return h(),{diagramType:b,svg:F,bindFunctions:m.db.bindFunctions}},"render");function Zp(e={}){const t=gt({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Fg(t),t?.theme&&t.theme in oe?t.themeVariables=oe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=oe.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Ag(t):Ql();fs(r.logLevel),ta()}p(Zp,"initialize");var Kp=p((e,t={})=>{const{code:r}=fo(e);return hs.fromText(r,t)},"getDiagramFromText");function Qp(e,t,r,i){Yp(t,e),Gp(t,r,i,t.attr("id"))}p(Qp,"addA11yInfo");var Ye=Object.freeze({render:wT,parse:Xp,getDiagramFromText:Kp,initialize:Zp,getConfig:vt,setConfig:Jl,getSiteConfig:Ql,updateSiteConfig:Eg,reset:p(()=>{Vi()},"reset"),globalReset:p(()=>{Vi(pr)},"globalReset"),defaultConfig:pr});fs(vt().logLevel);Vi(vt());var kT=p((e,t,r)=>{A.warn(e),Us(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Jp=p(async function(e={querySelector:".mermaid"}){try{await vT(e)}catch(t){if(Us(t)&&A.error(t.str),ue.parseError&&ue.parseError(t),!e.suppressErrors)throw A.error("Use the suppressErrors option to suppress these errors"),t}},"run"),vT=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Ye.getConfig();A.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");A.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(A.debug("Start On Load: "+i?.startOnLoad),Ye.updateSiteConfig({startOnLoad:i?.startOnLoad}));const a=new jt.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(n)){if(A.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;s=l.innerHTML,s=_f(jt.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=jt.detectInit(s);h&&A.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await ig(c,s,l);l.innerHTML=u,e&&await e(c),f&&f(l)}catch(u){kT(u,o,ue.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),tg=p(function(e){Ye.initialize(e)},"initialize"),ST=p(async function(e,t,r){A.warn("mermaid.init is deprecated. Please use run instead."),e&&tg(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Jp(i)},"init"),TT=p(async(e,{lazyLoad:t=!0}={})=>{ta(),ma(...e),t===!1&&await XS()},"registerExternalDiagrams"),eg=p(function(){if(ue.startOnLoad){const{startOnLoad:e}=Ye.getConfig();e&&ue.run().catch(t=>A.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",eg,!1);var BT=p(function(e){ue.parseError=e},"setParseErrorHandler"),Bn=[],ga=!1,rg=p(async()=>{if(!ga){for(ga=!0;Bn.length>0;){const e=Bn.shift();if(e)try{await e()}catch(t){A.error("Error executing queue",t)}}ga=!1}},"executeQueue"),LT=p(async(e,t)=>new Promise((r,i)=>{const n=p(()=>new Promise((a,s)=>{Ye.parse(e,t).then(o=>{a(o),r(o)},o=>{A.error("Error parsing",o),ue.parseError?.(o),s(o),i(o)})}),"performCall");Bn.push(n),rg().catch(i)}),"parse"),ig=p((e,t,r)=>new Promise((i,n)=>{const a=p(()=>new Promise((s,o)=>{Ye.render(e,t,r).then(l=>{s(l),i(l)},l=>{A.error("Error parsing",l),ue.parseError?.(l),o(l),n(l)})}),"performCall");Bn.push(a),rg().catch(n)}),"render"),$T=p(()=>Object.keys(Ne).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),ue={startOnLoad:!0,mermaidAPI:Ye,parse:LT,render:ig,init:ST,run:Jp,registerExternalDiagrams:TT,registerLayoutLoaders:hp,initialize:tg,parseError:void 0,contentLoaded:eg,setParseErrorHandler:BT,detectType:ds,registerIconPacks:QC,getRegisteredDiagramsMetadata:$T},MT=ue;const lB=Object.freeze(Object.defineProperty({__proto__:null,default:MT},Symbol.toStringTag,{value:"Module"}));export{UT as $,RT as A,Yr as B,Jt as C,cg as D,c0 as E,Xs as F,Kl as G,vt as H,z_ as I,Ub as J,Wx as K,go as L,$x as M,Bs as N,qT as O,jT as P,Ke as Q,No as R,Io as S,GT as T,J as U,YT as V,HT as W,NT as X,zT as Y,WT as Z,p as _,i0 as a,Ru as a$,VT as a0,vg as a1,gr as a2,OT as a3,jn as a4,A_ as a5,Hg as a6,ps as a7,bo as a8,Ex as a9,Y as aA,rB as aB,Qw as aC,Vw as aD,Gw as aE,tw as aF,Mx as aG,DT as aH,ng as aI,yi as aJ,QC as aK,KC as aL,Ge as aM,L_ as aN,Xu as aO,Nn as aP,Hn as aQ,mn as aR,Ku as aS,Uu as aT,n_ as aU,ks as aV,ye as aW,Qr as aX,Fo as aY,cy as aZ,j as a_,Ri as aa,N_ as ab,Kg as ac,ci as ad,z as ae,U as af,sc as ag,Sw as ah,sp as ai,nB as aj,Zb as ak,yt as al,Se as am,Ns as an,Ff as ao,Xe as ap,nf as aq,B_ as ar,b2 as as,__ as at,zs as au,Il as av,mk as aw,iB as ax,aB as ay,eB as az,r0 as b,Ot as b0,ry as b1,ws as b2,_c as b3,fi as b4,kc as b5,IT as b6,lg as b7,T_ as b8,b_ as b9,ls as bA,$_ as bB,Wn as bC,ET as bD,lB as bE,s2 as ba,qs as bb,t_ as bc,M_ as bd,gi as be,vr as bf,dn as bg,u_ as bh,Nk as bi,pi as bj,gn as bk,a_ as bl,Wu as bm,c2 as bn,h2 as bo,Ae as bp,al as bq,u2 as br,Ws as bs,l2 as bt,p2 as bu,Sr as bv,ve as bw,tl as bx,Hs as by,ju as bz,st as c,it as d,ac as e,gt as f,a0 as g,he as h,Nt as i,r1 as j,wr as k,A as l,sf as m,hi as n,PT as o,oB as p,s0 as q,sB as r,n0 as s,o0 as t,jt as u,Xb as v,H_ as w,Hw as x,XT as y,e0 as z};