mio-previewer 0.2.74 → 0.2.77

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 (277) hide show
  1. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  2. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  3. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  4. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  5. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  6. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  7. package/dist/arc-C78br9Yj.cjs +1 -0
  8. package/dist/arc-vLgDTVZZ.js +80 -0
  9. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  10. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  11. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  12. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  13. package/dist/array-CApNbSU9.js +6 -0
  14. package/dist/array-DZSRzHA_.cjs +1 -0
  15. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  16. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  17. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  18. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  19. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  20. package/dist/channel-BWHkpgVD.cjs +1 -0
  21. package/dist/channel-JT7eWw2w.js +5 -0
  22. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  23. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  24. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  25. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  26. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  27. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  28. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  29. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  30. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  31. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  32. package/dist/chunk-BNMv73og.cjs +1 -0
  33. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  34. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  35. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  36. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  37. package/dist/chunk-Dbv0sNQl.js +20 -0
  38. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  39. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  40. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  41. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  42. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  43. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  44. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  45. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  46. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  47. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  48. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  49. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  50. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  51. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  52. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  53. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  54. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  55. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  56. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  57. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  58. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  59. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  60. package/dist/clone-B0KDIkSS.js +8 -0
  61. package/dist/clone-wvtBTB6v.cjs +1 -0
  62. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  63. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  64. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  65. package/dist/custom-D-TzPpWT.js +5281 -0
  66. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  67. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  68. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  69. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  70. package/dist/dagre-BfAHSwtP.js +1472 -0
  71. package/dist/dagre-Buvkww-e.cjs +1 -0
  72. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  73. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  74. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  75. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  76. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  77. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  78. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  79. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  80. package/dist/dist-DC-lM4uX.cjs +1 -0
  81. package/dist/dist-zNcLEPGR.js +51 -0
  82. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  83. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  84. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  85. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  86. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  87. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  88. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  89. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  90. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  91. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  92. package/dist/graphlib-C3tPLMbC.js +225 -0
  93. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  94. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  95. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  96. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  97. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  98. package/dist/init-07zIhv_j.cjs +1 -0
  99. package/dist/init-Bwwdo3M6.js +15 -0
  100. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  101. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  102. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  103. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  104. package/dist/katex-6UpFeIdV.cjs +261 -0
  105. package/dist/katex-BHcJffnM.js +22112 -0
  106. package/dist/line-DYhVGH2B.js +34 -0
  107. package/dist/line-DdNAPGaw.cjs +1 -0
  108. package/dist/linear-n4_iirEu.js +289 -0
  109. package/dist/linear-rQLpRrSH.cjs +1 -0
  110. package/dist/loadCss-D6257oR0.js +8 -0
  111. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  112. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  113. package/dist/markdown-it-D-hH4G7k.js +173 -0
  114. package/dist/math-G8rF7UWn.cjs +1 -0
  115. package/dist/math-H49DsxYR.js +10 -0
  116. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  117. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  118. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  119. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  120. package/dist/mio-previewer.cjs.js +11 -21
  121. package/dist/mio-previewer.css +2 -9
  122. package/dist/mio-previewer.es.js +4915 -6147
  123. package/dist/ordinal-C55HfHHp.js +65 -0
  124. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  125. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  126. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  127. package/dist/path-DNvJyUE8.js +85 -0
  128. package/dist/path-Kklx0M1v.cjs +1 -0
  129. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  130. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  131. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  132. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  133. package/dist/plugins/custom.cjs.js +1 -1
  134. package/dist/plugins/custom.es.js +2 -85
  135. package/dist/plugins/markdown-it.cjs.js +1 -3
  136. package/dist/plugins/markdown-it.es.js +2 -173
  137. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  138. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  139. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  140. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  141. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  142. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  143. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  144. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  145. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  146. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  147. package/dist/src-BMjps4Ui.cjs +1 -0
  148. package/dist/src-BuisGndr.js +2149 -0
  149. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  150. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  151. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  152. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  153. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  154. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  155. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  156. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  157. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  158. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  159. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  160. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  161. package/package.json +2 -2
  162. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  163. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  164. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  165. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  166. package/dist/arc-B-QGG8RZ.cjs +0 -1
  167. package/dist/arc-djW14lrn.js +0 -83
  168. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  169. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  170. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  171. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  172. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  173. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  174. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  175. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  176. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  177. package/dist/channel-D_ITz6Jy.cjs +0 -1
  178. package/dist/channel-sXy9EduO.js +0 -5
  179. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  180. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  181. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  182. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  183. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  184. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  185. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  186. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  187. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  188. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  189. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  190. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  191. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  192. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  193. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  194. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  195. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  196. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  198. package/dist/clone-DOYxaT_d.js +0 -8
  199. package/dist/clone-DSlm33NG.cjs +0 -1
  200. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  201. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  202. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  203. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  204. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  205. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  206. package/dist/defaultLocale-D7EN2tov.js +0 -171
  207. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  208. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  209. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  210. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  211. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  212. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  213. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  214. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  215. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  216. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  217. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  218. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  219. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  220. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  221. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  222. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  223. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  224. package/dist/graph-DEnt0OtZ.js +0 -247
  225. package/dist/graph-Dgcjs2XL.cjs +0 -1
  226. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  227. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  228. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  229. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  230. package/dist/init-CHZsXQcr.cjs +0 -1
  231. package/dist/init-DjUOC4st.js +0 -16
  232. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  233. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  234. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  235. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  236. package/dist/katex-CmGeg_OO.js +0 -11692
  237. package/dist/katex-DEiiRhcn.cjs +0 -261
  238. package/dist/layout-BDNzBIaA.cjs +0 -1
  239. package/dist/layout-DTBfbHzy.js +0 -1324
  240. package/dist/linear-BRl2UYUr.cjs +0 -1
  241. package/dist/linear-CwbXkgvF.js +0 -259
  242. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  243. package/dist/loadCss-DS0Fuaxe.js +0 -8
  244. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  245. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  246. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  247. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  248. package/dist/ordinal-CagbB1m8.cjs +0 -1
  249. package/dist/ordinal-DfAQgscy.js +0 -61
  250. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  251. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  252. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  253. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  254. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  255. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  256. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  257. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  258. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  259. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  260. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  261. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  262. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  263. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  264. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  265. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  266. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  267. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  268. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  269. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  270. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  271. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  272. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  273. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  274. package/dist/viewer-CZUSHxhf.js +0 -19131
  275. package/dist/viewer-Canph5Zx.cjs +0 -305
  276. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  277. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,2518 @@
1
+ import { _ as e, g as t, h as n, m as r } from "./src-BuisGndr.js";
2
+ //#region node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.js
3
+ var i = {
4
+ min: {
5
+ r: 0,
6
+ g: 0,
7
+ b: 0,
8
+ s: 0,
9
+ l: 0,
10
+ a: 0
11
+ },
12
+ max: {
13
+ r: 255,
14
+ g: 255,
15
+ b: 255,
16
+ h: 360,
17
+ s: 100,
18
+ l: 100,
19
+ a: 1
20
+ },
21
+ clamp: {
22
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
23
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ h: (e) => e % 360,
26
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
27
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
29
+ },
30
+ toLinear: (e) => {
31
+ let t = e / 255;
32
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
33
+ },
34
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
35
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
36
+ if (!t) return n * 2.55;
37
+ e /= 360, t /= 100, n /= 100;
38
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
39
+ switch (r) {
40
+ case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
41
+ case "g": return i.hue2rgb(o, a, e) * 255;
42
+ case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
43
+ }
44
+ },
45
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
46
+ e /= 255, t /= 255, n /= 255;
47
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
48
+ if (r === "l") return o * 100;
49
+ if (i === a) return 0;
50
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
51
+ if (r === "s") return c * 100;
52
+ switch (i) {
53
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
54
+ case t: return ((n - e) / s + 2) * 60;
55
+ case n: return ((e - t) / s + 4) * 60;
56
+ default: return -1;
57
+ }
58
+ }
59
+ }, a = {
60
+ channel: i,
61
+ lang: {
62
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
63
+ round: (e) => Math.round(e * 1e10) / 1e10
64
+ },
65
+ unit: { dec2hex: (e) => {
66
+ let t = Math.round(e).toString(16);
67
+ return t.length > 1 ? t : `0${t}`;
68
+ } }
69
+ }, o = {};
70
+ for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
71
+ var s = {
72
+ ALL: 0,
73
+ RGB: 1,
74
+ HSL: 2
75
+ }, c = class {
76
+ constructor() {
77
+ this.type = s.ALL;
78
+ }
79
+ get() {
80
+ return this.type;
81
+ }
82
+ set(e) {
83
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
84
+ this.type = e;
85
+ }
86
+ reset() {
87
+ this.type = s.ALL;
88
+ }
89
+ is(e) {
90
+ return this.type === e;
91
+ }
92
+ }, l = new class {
93
+ constructor(e, t) {
94
+ this.color = t, this.changed = !1, this.data = e, this.type = new c();
95
+ }
96
+ set(e, t) {
97
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
98
+ }
99
+ _ensureHSL() {
100
+ let e = this.data, { h: t, s: n, l: r } = e;
101
+ t === void 0 && (e.h = a.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = a.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = a.channel.rgb2hsl(e, "l"));
102
+ }
103
+ _ensureRGB() {
104
+ let e = this.data, { r: t, g: n, b: r } = e;
105
+ t === void 0 && (e.r = a.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = a.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = a.channel.hsl2rgb(e, "b"));
106
+ }
107
+ get r() {
108
+ let e = this.data, t = e.r;
109
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
110
+ }
111
+ get g() {
112
+ let e = this.data, t = e.g;
113
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
114
+ }
115
+ get b() {
116
+ let e = this.data, t = e.b;
117
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
118
+ }
119
+ get h() {
120
+ let e = this.data, t = e.h;
121
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
122
+ }
123
+ get s() {
124
+ let e = this.data, t = e.s;
125
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
126
+ }
127
+ get l() {
128
+ let e = this.data, t = e.l;
129
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
130
+ }
131
+ get a() {
132
+ return this.data.a;
133
+ }
134
+ set r(e) {
135
+ this.type.set(s.RGB), this.changed = !0, this.data.r = e;
136
+ }
137
+ set g(e) {
138
+ this.type.set(s.RGB), this.changed = !0, this.data.g = e;
139
+ }
140
+ set b(e) {
141
+ this.type.set(s.RGB), this.changed = !0, this.data.b = e;
142
+ }
143
+ set h(e) {
144
+ this.type.set(s.HSL), this.changed = !0, this.data.h = e;
145
+ }
146
+ set s(e) {
147
+ this.type.set(s.HSL), this.changed = !0, this.data.s = e;
148
+ }
149
+ set l(e) {
150
+ this.type.set(s.HSL), this.changed = !0, this.data.l = e;
151
+ }
152
+ set a(e) {
153
+ this.changed = !0, this.data.a = e;
154
+ }
155
+ }({
156
+ r: 0,
157
+ g: 0,
158
+ b: 0,
159
+ a: 0
160
+ }, "transparent"), u = {
161
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
162
+ parse: (e) => {
163
+ if (e.charCodeAt(0) !== 35) return;
164
+ let t = e.match(u.re);
165
+ if (!t) return;
166
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
167
+ return l.set({
168
+ r: (r >> c * (d + 3) & f) * s,
169
+ g: (r >> c * (d + 2) & f) * s,
170
+ b: (r >> c * (d + 1) & f) * s,
171
+ a: a ? (r & f) * s / 255 : 1
172
+ }, e);
173
+ },
174
+ stringify: (e) => {
175
+ let { r: t, g: n, b: r, a: i } = e;
176
+ return i < 1 ? `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i * 255)]}` : `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`;
177
+ }
178
+ }, d = {
179
+ 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,
180
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
181
+ _hue2deg: (e) => {
182
+ let t = e.match(d.hueRe);
183
+ if (t) {
184
+ let [, e, n] = t;
185
+ switch (n) {
186
+ case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
187
+ case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
188
+ case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
189
+ }
190
+ }
191
+ return a.channel.clamp.h(parseFloat(e));
192
+ },
193
+ parse: (e) => {
194
+ let t = e.charCodeAt(0);
195
+ if (t !== 104 && t !== 72) return;
196
+ let n = e.match(d.re);
197
+ if (!n) return;
198
+ let [, r, i, o, s, c] = n;
199
+ return l.set({
200
+ h: d._hue2deg(r),
201
+ s: a.channel.clamp.s(parseFloat(i)),
202
+ l: a.channel.clamp.l(parseFloat(o)),
203
+ a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
204
+ }, e);
205
+ },
206
+ stringify: (e) => {
207
+ let { h: t, s: n, l: r, a: i } = e;
208
+ return i < 1 ? `hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})` : `hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`;
209
+ }
210
+ }, f = {
211
+ colors: {
212
+ aliceblue: "#f0f8ff",
213
+ antiquewhite: "#faebd7",
214
+ aqua: "#00ffff",
215
+ aquamarine: "#7fffd4",
216
+ azure: "#f0ffff",
217
+ beige: "#f5f5dc",
218
+ bisque: "#ffe4c4",
219
+ black: "#000000",
220
+ blanchedalmond: "#ffebcd",
221
+ blue: "#0000ff",
222
+ blueviolet: "#8a2be2",
223
+ brown: "#a52a2a",
224
+ burlywood: "#deb887",
225
+ cadetblue: "#5f9ea0",
226
+ chartreuse: "#7fff00",
227
+ chocolate: "#d2691e",
228
+ coral: "#ff7f50",
229
+ cornflowerblue: "#6495ed",
230
+ cornsilk: "#fff8dc",
231
+ crimson: "#dc143c",
232
+ cyanaqua: "#00ffff",
233
+ darkblue: "#00008b",
234
+ darkcyan: "#008b8b",
235
+ darkgoldenrod: "#b8860b",
236
+ darkgray: "#a9a9a9",
237
+ darkgreen: "#006400",
238
+ darkgrey: "#a9a9a9",
239
+ darkkhaki: "#bdb76b",
240
+ darkmagenta: "#8b008b",
241
+ darkolivegreen: "#556b2f",
242
+ darkorange: "#ff8c00",
243
+ darkorchid: "#9932cc",
244
+ darkred: "#8b0000",
245
+ darksalmon: "#e9967a",
246
+ darkseagreen: "#8fbc8f",
247
+ darkslateblue: "#483d8b",
248
+ darkslategray: "#2f4f4f",
249
+ darkslategrey: "#2f4f4f",
250
+ darkturquoise: "#00ced1",
251
+ darkviolet: "#9400d3",
252
+ deeppink: "#ff1493",
253
+ deepskyblue: "#00bfff",
254
+ dimgray: "#696969",
255
+ dimgrey: "#696969",
256
+ dodgerblue: "#1e90ff",
257
+ firebrick: "#b22222",
258
+ floralwhite: "#fffaf0",
259
+ forestgreen: "#228b22",
260
+ fuchsia: "#ff00ff",
261
+ gainsboro: "#dcdcdc",
262
+ ghostwhite: "#f8f8ff",
263
+ gold: "#ffd700",
264
+ goldenrod: "#daa520",
265
+ gray: "#808080",
266
+ green: "#008000",
267
+ greenyellow: "#adff2f",
268
+ grey: "#808080",
269
+ honeydew: "#f0fff0",
270
+ hotpink: "#ff69b4",
271
+ indianred: "#cd5c5c",
272
+ indigo: "#4b0082",
273
+ ivory: "#fffff0",
274
+ khaki: "#f0e68c",
275
+ lavender: "#e6e6fa",
276
+ lavenderblush: "#fff0f5",
277
+ lawngreen: "#7cfc00",
278
+ lemonchiffon: "#fffacd",
279
+ lightblue: "#add8e6",
280
+ lightcoral: "#f08080",
281
+ lightcyan: "#e0ffff",
282
+ lightgoldenrodyellow: "#fafad2",
283
+ lightgray: "#d3d3d3",
284
+ lightgreen: "#90ee90",
285
+ lightgrey: "#d3d3d3",
286
+ lightpink: "#ffb6c1",
287
+ lightsalmon: "#ffa07a",
288
+ lightseagreen: "#20b2aa",
289
+ lightskyblue: "#87cefa",
290
+ lightslategray: "#778899",
291
+ lightslategrey: "#778899",
292
+ lightsteelblue: "#b0c4de",
293
+ lightyellow: "#ffffe0",
294
+ lime: "#00ff00",
295
+ limegreen: "#32cd32",
296
+ linen: "#faf0e6",
297
+ magenta: "#ff00ff",
298
+ maroon: "#800000",
299
+ mediumaquamarine: "#66cdaa",
300
+ mediumblue: "#0000cd",
301
+ mediumorchid: "#ba55d3",
302
+ mediumpurple: "#9370db",
303
+ mediumseagreen: "#3cb371",
304
+ mediumslateblue: "#7b68ee",
305
+ mediumspringgreen: "#00fa9a",
306
+ mediumturquoise: "#48d1cc",
307
+ mediumvioletred: "#c71585",
308
+ midnightblue: "#191970",
309
+ mintcream: "#f5fffa",
310
+ mistyrose: "#ffe4e1",
311
+ moccasin: "#ffe4b5",
312
+ navajowhite: "#ffdead",
313
+ navy: "#000080",
314
+ oldlace: "#fdf5e6",
315
+ olive: "#808000",
316
+ olivedrab: "#6b8e23",
317
+ orange: "#ffa500",
318
+ orangered: "#ff4500",
319
+ orchid: "#da70d6",
320
+ palegoldenrod: "#eee8aa",
321
+ palegreen: "#98fb98",
322
+ paleturquoise: "#afeeee",
323
+ palevioletred: "#db7093",
324
+ papayawhip: "#ffefd5",
325
+ peachpuff: "#ffdab9",
326
+ peru: "#cd853f",
327
+ pink: "#ffc0cb",
328
+ plum: "#dda0dd",
329
+ powderblue: "#b0e0e6",
330
+ purple: "#800080",
331
+ rebeccapurple: "#663399",
332
+ red: "#ff0000",
333
+ rosybrown: "#bc8f8f",
334
+ royalblue: "#4169e1",
335
+ saddlebrown: "#8b4513",
336
+ salmon: "#fa8072",
337
+ sandybrown: "#f4a460",
338
+ seagreen: "#2e8b57",
339
+ seashell: "#fff5ee",
340
+ sienna: "#a0522d",
341
+ silver: "#c0c0c0",
342
+ skyblue: "#87ceeb",
343
+ slateblue: "#6a5acd",
344
+ slategray: "#708090",
345
+ slategrey: "#708090",
346
+ snow: "#fffafa",
347
+ springgreen: "#00ff7f",
348
+ tan: "#d2b48c",
349
+ teal: "#008080",
350
+ thistle: "#d8bfd8",
351
+ transparent: "#00000000",
352
+ turquoise: "#40e0d0",
353
+ violet: "#ee82ee",
354
+ wheat: "#f5deb3",
355
+ white: "#ffffff",
356
+ whitesmoke: "#f5f5f5",
357
+ yellow: "#ffff00",
358
+ yellowgreen: "#9acd32"
359
+ },
360
+ parse: (e) => {
361
+ e = e.toLowerCase();
362
+ let t = f.colors[e];
363
+ if (t) return u.parse(t);
364
+ },
365
+ stringify: (e) => {
366
+ let t = u.stringify(e);
367
+ for (let e in f.colors) if (f.colors[e] === t) return e;
368
+ }
369
+ }, p = {
370
+ 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,
371
+ parse: (e) => {
372
+ let t = e.charCodeAt(0);
373
+ if (t !== 114 && t !== 82) return;
374
+ let n = e.match(p.re);
375
+ if (!n) return;
376
+ let [, r, i, o, s, c, u, d, f] = n;
377
+ return l.set({
378
+ r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
379
+ g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
380
+ b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
381
+ a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
382
+ }, e);
383
+ },
384
+ stringify: (e) => {
385
+ let { r: t, g: n, b: r, a: i } = e;
386
+ return i < 1 ? `rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})` : `rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`;
387
+ }
388
+ }, m = {
389
+ format: {
390
+ keyword: f,
391
+ hex: u,
392
+ rgb: p,
393
+ rgba: p,
394
+ hsl: d,
395
+ hsla: d
396
+ },
397
+ parse: (e) => {
398
+ if (typeof e != "string") return e;
399
+ let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
400
+ if (t) return t;
401
+ throw Error(`Unsupported color format: "${e}"`);
402
+ },
403
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(s.HSL) || e.data.r === void 0 ? d.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? p.stringify(e) : u.stringify(e)
404
+ }, h = (e, t) => {
405
+ let n = m.parse(e);
406
+ for (let e in t) n[e] = a.channel.clamp[e](t[e]);
407
+ return m.stringify(n);
408
+ }, ee = (e, t, n = 0, r = 1) => {
409
+ if (typeof e != "number") return h(e, { a: t });
410
+ let i = l.set({
411
+ r: a.channel.clamp.r(e),
412
+ g: a.channel.clamp.g(t),
413
+ b: a.channel.clamp.b(n),
414
+ a: a.channel.clamp.a(r)
415
+ });
416
+ return m.stringify(i);
417
+ }, te = (e) => {
418
+ let { r: t, g: n, b: r } = m.parse(e), i = .2126 * a.channel.toLinear(t) + .7152 * a.channel.toLinear(n) + .0722 * a.channel.toLinear(r);
419
+ return a.lang.round(i);
420
+ }, ne = (e) => te(e) >= .5, g = (e) => !ne(e), _ = (e, t, n) => {
421
+ let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
422
+ return i !== o && (r[t] = o), m.stringify(r);
423
+ }, v = (e, t) => _(e, "l", t), y = (e, t) => _(e, "l", -t), b = (e, t) => {
424
+ let n = m.parse(e), r = {};
425
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
426
+ return h(e, r);
427
+ }, re = (e, t, n = 50) => {
428
+ let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, h = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, te = 1 - h;
429
+ return ee(r * h + s * te, i * h + c * te, a * h + l * te, o * d + u * (1 - d));
430
+ }, x = (e, t = 100) => {
431
+ let n = m.parse(e);
432
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, re(n, e, t);
433
+ }, { entries: ie, setPrototypeOf: ae, isFrozen: S, getPrototypeOf: oe, getOwnPropertyDescriptor: se } = Object, { freeze: C, seal: w, create: ce } = Object, { apply: le, construct: ue } = typeof Reflect < "u" && Reflect;
434
+ C ||= function(e) {
435
+ return e;
436
+ }, w ||= function(e) {
437
+ return e;
438
+ }, le ||= function(e, t) {
439
+ var n = [...arguments].slice(2);
440
+ return e.apply(t, n);
441
+ }, ue ||= function(e) {
442
+ return new e(...[...arguments].slice(1));
443
+ };
444
+ var de = D(Array.prototype.forEach), fe = D(Array.prototype.lastIndexOf), pe = D(Array.prototype.pop), me = D(Array.prototype.push), he = D(Array.prototype.splice), ge = D(String.prototype.toLowerCase), _e = D(String.prototype.toString), ve = D(String.prototype.match), ye = D(String.prototype.replace), be = D(String.prototype.indexOf), xe = D(String.prototype.trim), T = D(Object.prototype.hasOwnProperty), E = D(RegExp.prototype.test), Se = Ce(TypeError);
445
+ function D(e) {
446
+ return function(t) {
447
+ t instanceof RegExp && (t.lastIndex = 0);
448
+ var n = [...arguments].slice(1);
449
+ return le(e, t, n);
450
+ };
451
+ }
452
+ function Ce(e) {
453
+ return function() {
454
+ return ue(e, [...arguments]);
455
+ };
456
+ }
457
+ function O(e, t) {
458
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ge;
459
+ ae && ae(e, null);
460
+ let r = t.length;
461
+ for (; r--;) {
462
+ let i = t[r];
463
+ if (typeof i == "string") {
464
+ let e = n(i);
465
+ e !== i && (S(t) || (t[r] = e), i = e);
466
+ }
467
+ e[i] = !0;
468
+ }
469
+ return e;
470
+ }
471
+ function we(e) {
472
+ for (let t = 0; t < e.length; t++) T(e, t) || (e[t] = null);
473
+ return e;
474
+ }
475
+ function k(e) {
476
+ let t = ce(null);
477
+ for (let [n, r] of ie(e)) T(e, n) && (Array.isArray(r) ? t[n] = we(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = k(r) : t[n] = r);
478
+ return t;
479
+ }
480
+ function Te(e, t) {
481
+ for (; e !== null;) {
482
+ let n = se(e, t);
483
+ if (n) {
484
+ if (n.get) return D(n.get);
485
+ if (typeof n.value == "function") return D(n.value);
486
+ }
487
+ e = oe(e);
488
+ }
489
+ function n() {
490
+ return null;
491
+ }
492
+ return n;
493
+ }
494
+ var Ee = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), De = C(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.slot.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Oe = C([
495
+ "feBlend",
496
+ "feColorMatrix",
497
+ "feComponentTransfer",
498
+ "feComposite",
499
+ "feConvolveMatrix",
500
+ "feDiffuseLighting",
501
+ "feDisplacementMap",
502
+ "feDistantLight",
503
+ "feDropShadow",
504
+ "feFlood",
505
+ "feFuncA",
506
+ "feFuncB",
507
+ "feFuncG",
508
+ "feFuncR",
509
+ "feGaussianBlur",
510
+ "feImage",
511
+ "feMerge",
512
+ "feMergeNode",
513
+ "feMorphology",
514
+ "feOffset",
515
+ "fePointLight",
516
+ "feSpecularLighting",
517
+ "feSpotLight",
518
+ "feTile",
519
+ "feTurbulence"
520
+ ]), ke = C([
521
+ "animate",
522
+ "color-profile",
523
+ "cursor",
524
+ "discard",
525
+ "font-face",
526
+ "font-face-format",
527
+ "font-face-name",
528
+ "font-face-src",
529
+ "font-face-uri",
530
+ "foreignobject",
531
+ "hatch",
532
+ "hatchpath",
533
+ "mesh",
534
+ "meshgradient",
535
+ "meshpatch",
536
+ "meshrow",
537
+ "missing-glyph",
538
+ "script",
539
+ "set",
540
+ "solidcolor",
541
+ "unknown",
542
+ "use"
543
+ ]), Ae = C(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), je = C([
544
+ "maction",
545
+ "maligngroup",
546
+ "malignmark",
547
+ "mlongdiv",
548
+ "mscarries",
549
+ "mscarry",
550
+ "msgroup",
551
+ "mstack",
552
+ "msline",
553
+ "msrow",
554
+ "semantics",
555
+ "annotation",
556
+ "annotation-xml",
557
+ "mprescripts",
558
+ "none"
559
+ ]), Me = C(["#text"]), Ne = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), Pe = C(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Fe = C(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ie = C([
560
+ "xlink:href",
561
+ "xml:id",
562
+ "xlink:title",
563
+ "xml:space",
564
+ "xmlns:xlink"
565
+ ]), Le = w(/\{\{[\w\W]*|[\w\W]*\}\}/gm), A = w(/<%[\w\W]*|[\w\W]*%>/gm), Re = w(/\$\{[\w\W]*/gm), j = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), ze = w(/^aria-[\-\w]+$/), Be = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), M = w(/^(?:\w+script|data):/i), Ve = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), He = w(/^html$/i), Ue = w(/^[a-z][.\w]*(-[.\w]+)+$/i), We = /* @__PURE__ */ Object.freeze({
566
+ __proto__: null,
567
+ ARIA_ATTR: ze,
568
+ ATTR_WHITESPACE: Ve,
569
+ CUSTOM_ELEMENT: Ue,
570
+ DATA_ATTR: j,
571
+ DOCTYPE_NAME: He,
572
+ ERB_EXPR: A,
573
+ IS_ALLOWED_URI: Be,
574
+ IS_SCRIPT_OR_DATA: M,
575
+ MUSTACHE_EXPR: Le,
576
+ TMPLIT_EXPR: Re
577
+ }), Ge = {
578
+ element: 1,
579
+ attribute: 2,
580
+ text: 3,
581
+ cdataSection: 4,
582
+ entityReference: 5,
583
+ entityNode: 6,
584
+ progressingInstruction: 7,
585
+ comment: 8,
586
+ document: 9,
587
+ documentType: 10,
588
+ documentFragment: 11,
589
+ notation: 12
590
+ }, Ke = function() {
591
+ return typeof window > "u" ? null : window;
592
+ }, qe = function(e, t) {
593
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
594
+ let n = null, r = "data-tt-policy-suffix";
595
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
596
+ let i = "dompurify" + (n ? "#" + n : "");
597
+ try {
598
+ return e.createPolicy(i, {
599
+ createHTML(e) {
600
+ return e;
601
+ },
602
+ createScriptURL(e) {
603
+ return e;
604
+ }
605
+ });
606
+ } catch {
607
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
608
+ }
609
+ }, Je = function() {
610
+ return {
611
+ afterSanitizeAttributes: [],
612
+ afterSanitizeElements: [],
613
+ afterSanitizeShadowDOM: [],
614
+ beforeSanitizeAttributes: [],
615
+ beforeSanitizeElements: [],
616
+ beforeSanitizeShadowDOM: [],
617
+ uponSanitizeAttribute: [],
618
+ uponSanitizeElement: [],
619
+ uponSanitizeShadowNode: []
620
+ };
621
+ };
622
+ function Ye() {
623
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke(), t = (e) => Ye(e);
624
+ if (t.version = "3.2.7", t.removed = [], !e || !e.document || e.document.nodeType !== Ge.document || !e.Element) return t.isSupported = !1, t;
625
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = Te(m, "cloneNode"), ee = Te(m, "remove"), te = Te(m, "nextSibling"), ne = Te(m, "childNodes"), g = Te(m, "parentNode");
626
+ if (typeof o == "function") {
627
+ let e = n.createElement("template");
628
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
629
+ }
630
+ let _, v = "", { implementation: y, createNodeIterator: b, createDocumentFragment: re, getElementsByTagName: x } = n, { importNode: ae } = r, S = Je();
631
+ t.isSupported = typeof ie == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
632
+ let { MUSTACHE_EXPR: oe, ERB_EXPR: se, TMPLIT_EXPR: w, DATA_ATTR: le, ARIA_ATTR: ue, IS_SCRIPT_OR_DATA: D, ATTR_WHITESPACE: Ce, CUSTOM_ELEMENT: we } = We, { IS_ALLOWED_URI: Le } = We, A = null, Re = O({}, [
633
+ ...Ee,
634
+ ...De,
635
+ ...Oe,
636
+ ...Ae,
637
+ ...Me
638
+ ]), j = null, ze = O({}, [
639
+ ...Ne,
640
+ ...Pe,
641
+ ...Fe,
642
+ ...Ie
643
+ ]), M = Object.seal(ce(null, {
644
+ tagNameCheck: {
645
+ writable: !0,
646
+ configurable: !1,
647
+ enumerable: !0,
648
+ value: null
649
+ },
650
+ attributeNameCheck: {
651
+ writable: !0,
652
+ configurable: !1,
653
+ enumerable: !0,
654
+ value: null
655
+ },
656
+ allowCustomizedBuiltInElements: {
657
+ writable: !0,
658
+ configurable: !1,
659
+ enumerable: !0,
660
+ value: !1
661
+ }
662
+ })), Ve = null, Ue = null, N = !0, Xe = !0, Ze = !1, Qe = !0, P = !1, F = !0, I = !1, $e = !1, et = !1, L = !1, R = !1, z = !1, tt = !0, nt = !1, B = !0, rt = !1, V = {}, H = null, it = O({}, [
663
+ "annotation-xml",
664
+ "audio",
665
+ "colgroup",
666
+ "desc",
667
+ "foreignobject",
668
+ "head",
669
+ "iframe",
670
+ "math",
671
+ "mi",
672
+ "mn",
673
+ "mo",
674
+ "ms",
675
+ "mtext",
676
+ "noembed",
677
+ "noframes",
678
+ "noscript",
679
+ "plaintext",
680
+ "script",
681
+ "style",
682
+ "svg",
683
+ "template",
684
+ "thead",
685
+ "title",
686
+ "video",
687
+ "xmp"
688
+ ]), at = null, ot = O({}, [
689
+ "audio",
690
+ "video",
691
+ "img",
692
+ "source",
693
+ "image",
694
+ "track"
695
+ ]), st = null, ct = O({}, [
696
+ "alt",
697
+ "class",
698
+ "for",
699
+ "id",
700
+ "label",
701
+ "name",
702
+ "pattern",
703
+ "placeholder",
704
+ "role",
705
+ "summary",
706
+ "title",
707
+ "value",
708
+ "style",
709
+ "xmlns"
710
+ ]), lt = "http://www.w3.org/1998/Math/MathML", U = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, ut = !1, dt = null, ft = O({}, [
711
+ lt,
712
+ U,
713
+ W
714
+ ], _e), K = O({}, [
715
+ "mi",
716
+ "mo",
717
+ "mn",
718
+ "ms",
719
+ "mtext"
720
+ ]), pt = O({}, ["annotation-xml"]), mt = O({}, [
721
+ "title",
722
+ "style",
723
+ "font",
724
+ "a",
725
+ "script"
726
+ ]), q = null, ht = ["application/xhtml+xml", "text/html"], J = null, Y = null, gt = n.createElement("form"), _t = function(e) {
727
+ return e instanceof RegExp || e instanceof Function;
728
+ }, vt = function() {
729
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
730
+ if (!(Y && Y === e)) {
731
+ if ((!e || typeof e != "object") && (e = {}), e = k(e), q = ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? _e : ge, A = T(e, "ALLOWED_TAGS") ? O({}, e.ALLOWED_TAGS, J) : Re, j = T(e, "ALLOWED_ATTR") ? O({}, e.ALLOWED_ATTR, J) : ze, dt = T(e, "ALLOWED_NAMESPACES") ? O({}, e.ALLOWED_NAMESPACES, _e) : ft, st = T(e, "ADD_URI_SAFE_ATTR") ? O(k(ct), e.ADD_URI_SAFE_ATTR, J) : ct, at = T(e, "ADD_DATA_URI_TAGS") ? O(k(ot), e.ADD_DATA_URI_TAGS, J) : ot, H = T(e, "FORBID_CONTENTS") ? O({}, e.FORBID_CONTENTS, J) : it, Ve = T(e, "FORBID_TAGS") ? O({}, e.FORBID_TAGS, J) : k({}), Ue = T(e, "FORBID_ATTR") ? O({}, e.FORBID_ATTR, J) : k({}), V = T(e, "USE_PROFILES") ? e.USE_PROFILES : !1, N = e.ALLOW_ARIA_ATTR !== !1, Xe = e.ALLOW_DATA_ATTR !== !1, Ze = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Qe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, F = e.SAFE_FOR_XML !== !1, I = e.WHOLE_DOCUMENT || !1, L = e.RETURN_DOM || !1, R = e.RETURN_DOM_FRAGMENT || !1, z = e.RETURN_TRUSTED_TYPE || !1, et = e.FORCE_BODY || !1, tt = e.SANITIZE_DOM !== !1, nt = e.SANITIZE_NAMED_PROPS || !1, B = e.KEEP_CONTENT !== !1, rt = e.IN_PLACE || !1, Le = e.ALLOWED_URI_REGEXP || Be, G = e.NAMESPACE || W, K = e.MATHML_TEXT_INTEGRATION_POINTS || K, pt = e.HTML_INTEGRATION_POINTS || pt, M = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Xe = !1), R && (L = !0), V && (A = O({}, Me), j = [], V.html === !0 && (O(A, Ee), O(j, Ne)), V.svg === !0 && (O(A, De), O(j, Pe), O(j, Ie)), V.svgFilters === !0 && (O(A, Oe), O(j, Pe), O(j, Ie)), V.mathMl === !0 && (O(A, Ae), O(j, Fe), O(j, Ie))), e.ADD_TAGS && (A === Re && (A = k(A)), O(A, e.ADD_TAGS, J)), e.ADD_ATTR && (j === ze && (j = k(j)), O(j, e.ADD_ATTR, J)), e.ADD_URI_SAFE_ATTR && O(st, e.ADD_URI_SAFE_ATTR, J), e.FORBID_CONTENTS && (H === it && (H = k(H)), O(H, e.FORBID_CONTENTS, J)), B && (A["#text"] = !0), I && O(A, [
732
+ "html",
733
+ "head",
734
+ "body"
735
+ ]), A.table && (O(A, ["tbody"]), delete Ve.tbody), e.TRUSTED_TYPES_POLICY) {
736
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
737
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
738
+ _ = e.TRUSTED_TYPES_POLICY, v = _.createHTML("");
739
+ } else _ === void 0 && (_ = qe(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
740
+ C && C(e), Y = e;
741
+ }
742
+ }, yt = O({}, [
743
+ ...De,
744
+ ...Oe,
745
+ ...ke
746
+ ]), bt = O({}, [...Ae, ...je]), xt = function(e) {
747
+ let t = g(e);
748
+ (!t || !t.tagName) && (t = {
749
+ namespaceURI: G,
750
+ tagName: "template"
751
+ });
752
+ let n = ge(e.tagName), r = ge(t.tagName);
753
+ return dt[e.namespaceURI] ? e.namespaceURI === U ? t.namespaceURI === W ? n === "svg" : t.namespaceURI === lt ? n === "svg" && (r === "annotation-xml" || K[r]) : !!yt[n] : e.namespaceURI === lt ? t.namespaceURI === W ? n === "math" : t.namespaceURI === U ? n === "math" && pt[r] : !!bt[n] : e.namespaceURI === W ? t.namespaceURI === U && !pt[r] || t.namespaceURI === lt && !K[r] ? !1 : !bt[n] && (mt[n] || !yt[n]) : !!(q === "application/xhtml+xml" && dt[e.namespaceURI]) : !1;
754
+ }, X = function(e) {
755
+ me(t.removed, { element: e });
756
+ try {
757
+ g(e).removeChild(e);
758
+ } catch {
759
+ ee(e);
760
+ }
761
+ }, Z = function(e, n) {
762
+ try {
763
+ me(t.removed, {
764
+ attribute: n.getAttributeNode(e),
765
+ from: n
766
+ });
767
+ } catch {
768
+ me(t.removed, {
769
+ attribute: null,
770
+ from: n
771
+ });
772
+ }
773
+ if (n.removeAttribute(e), e === "is") if (L || R) try {
774
+ X(n);
775
+ } catch {}
776
+ else try {
777
+ n.setAttribute(e, "");
778
+ } catch {}
779
+ }, St = function(e) {
780
+ let t = null, r = null;
781
+ if (et) e = "<remove></remove>" + e;
782
+ else {
783
+ let t = ve(e, /^[\r\n\t ]+/);
784
+ r = t && t[0];
785
+ }
786
+ q === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
787
+ let i = _ ? _.createHTML(e) : e;
788
+ if (G === W) try {
789
+ t = new f().parseFromString(i, q);
790
+ } catch {}
791
+ if (!t || !t.documentElement) {
792
+ t = y.createDocument(G, "template", null);
793
+ try {
794
+ t.documentElement.innerHTML = ut ? v : i;
795
+ } catch {}
796
+ }
797
+ let a = t.body || t.documentElement;
798
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? x.call(t, I ? "html" : "body")[0] : I ? t.documentElement : a;
799
+ }, Ct = function(e) {
800
+ return b.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
801
+ }, wt = function(e) {
802
+ return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
803
+ }, Tt = function(e) {
804
+ return typeof s == "function" && e instanceof s;
805
+ };
806
+ function Q(e, n, r) {
807
+ de(e, (e) => {
808
+ e.call(t, n, r, Y);
809
+ });
810
+ }
811
+ let Et = function(e) {
812
+ let n = null;
813
+ if (Q(S.beforeSanitizeElements, e, null), wt(e)) return X(e), !0;
814
+ let r = J(e.nodeName);
815
+ if (Q(S.uponSanitizeElement, e, {
816
+ tagName: r,
817
+ allowedTags: A
818
+ }), F && e.hasChildNodes() && !Tt(e.firstElementChild) && E(/<[/\w!]/g, e.innerHTML) && E(/<[/\w!]/g, e.textContent) || e.nodeType === Ge.progressingInstruction || F && e.nodeType === Ge.comment && E(/<[/\w]/g, e.data)) return X(e), !0;
819
+ if (!A[r] || Ve[r]) {
820
+ if (!Ve[r] && $(r) && (M.tagNameCheck instanceof RegExp && E(M.tagNameCheck, r) || M.tagNameCheck instanceof Function && M.tagNameCheck(r))) return !1;
821
+ if (B && !H[r]) {
822
+ let t = g(e) || e.parentNode, n = ne(e) || e.childNodes;
823
+ if (n && t) {
824
+ let r = n.length;
825
+ for (let i = r - 1; i >= 0; --i) {
826
+ let r = h(n[i], !0);
827
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, te(e));
828
+ }
829
+ }
830
+ }
831
+ return X(e), !0;
832
+ }
833
+ return e instanceof c && !xt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && E(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (P && e.nodeType === Ge.text && (n = e.textContent, de([
834
+ oe,
835
+ se,
836
+ w
837
+ ], (e) => {
838
+ n = ye(n, e, " ");
839
+ }), e.textContent !== n && (me(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(S.afterSanitizeElements, e, null), !1);
840
+ }, Dt = function(e, t, r) {
841
+ if (tt && (t === "id" || t === "name") && (r in n || r in gt)) return !1;
842
+ if (!(Xe && !Ue[t] && E(le, t)) && !(N && E(ue, t))) {
843
+ if (!j[t] || Ue[t]) {
844
+ if (!($(e) && (M.tagNameCheck instanceof RegExp && E(M.tagNameCheck, e) || M.tagNameCheck instanceof Function && M.tagNameCheck(e)) && (M.attributeNameCheck instanceof RegExp && E(M.attributeNameCheck, t) || M.attributeNameCheck instanceof Function && M.attributeNameCheck(t, e)) || t === "is" && M.allowCustomizedBuiltInElements && (M.tagNameCheck instanceof RegExp && E(M.tagNameCheck, r) || M.tagNameCheck instanceof Function && M.tagNameCheck(r)))) return !1;
845
+ } else if (!st[t] && !E(Le, ye(r, Ce, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && be(r, "data:") === 0 && at[e]) && !(Ze && !E(D, ye(r, Ce, ""))) && r) return !1;
846
+ }
847
+ return !0;
848
+ }, $ = function(e) {
849
+ return e !== "annotation-xml" && ve(e, we);
850
+ }, Ot = function(e) {
851
+ Q(S.beforeSanitizeAttributes, e, null);
852
+ let { attributes: n } = e;
853
+ if (!n || wt(e)) return;
854
+ let r = {
855
+ attrName: "",
856
+ attrValue: "",
857
+ keepAttr: !0,
858
+ allowedAttributes: j,
859
+ forceKeepAttr: void 0
860
+ }, i = n.length;
861
+ for (; i--;) {
862
+ let { name: a, namespaceURI: o, value: s } = n[i], c = J(a), l = s, u = a === "value" ? l : xe(l);
863
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(S.uponSanitizeAttribute, e, r), u = r.attrValue, nt && (c === "id" || c === "name") && (Z(a, e), u = "user-content-" + u), F && E(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
864
+ Z(a, e);
865
+ continue;
866
+ }
867
+ if (c === "attributename" && ve(u, "href")) {
868
+ Z(a, e);
869
+ continue;
870
+ }
871
+ if (r.forceKeepAttr) continue;
872
+ if (!r.keepAttr) {
873
+ Z(a, e);
874
+ continue;
875
+ }
876
+ if (!Qe && E(/\/>/i, u)) {
877
+ Z(a, e);
878
+ continue;
879
+ }
880
+ P && de([
881
+ oe,
882
+ se,
883
+ w
884
+ ], (e) => {
885
+ u = ye(u, e, " ");
886
+ });
887
+ let d = J(e.nodeName);
888
+ if (!Dt(d, c, u)) {
889
+ Z(a, e);
890
+ continue;
891
+ }
892
+ if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
893
+ case "TrustedHTML":
894
+ u = _.createHTML(u);
895
+ break;
896
+ case "TrustedScriptURL":
897
+ u = _.createScriptURL(u);
898
+ break;
899
+ }
900
+ if (u !== l) try {
901
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), wt(e) ? X(e) : pe(t.removed);
902
+ } catch {
903
+ Z(a, e);
904
+ }
905
+ }
906
+ Q(S.afterSanitizeAttributes, e, null);
907
+ }, kt = function e(t) {
908
+ let n = null, r = Ct(t);
909
+ for (Q(S.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) Q(S.uponSanitizeShadowNode, n, null), Et(n), Ot(n), n.content instanceof a && e(n.content);
910
+ Q(S.afterSanitizeShadowDOM, t, null);
911
+ };
912
+ return t.sanitize = function(e) {
913
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
914
+ if (ut = !e, ut && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
915
+ if (e = e.toString(), typeof e != "string") throw Se("dirty is not a string, aborting");
916
+ } else throw Se("toString is not a function");
917
+ if (!t.isSupported) return e;
918
+ if ($e || vt(n), t.removed = [], typeof e == "string" && (rt = !1), rt) {
919
+ if (e.nodeName) {
920
+ let t = J(e.nodeName);
921
+ if (!A[t] || Ve[t]) throw Se("root node is forbidden and cannot be sanitized in-place");
922
+ }
923
+ } else if (e instanceof s) i = St("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === Ge.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
924
+ else {
925
+ if (!L && !P && !I && e.indexOf("<") === -1) return _ && z ? _.createHTML(e) : e;
926
+ if (i = St(e), !i) return L ? null : z ? v : "";
927
+ }
928
+ i && et && X(i.firstChild);
929
+ let u = Ct(rt ? e : i);
930
+ for (; c = u.nextNode();) Et(c), Ot(c), c.content instanceof a && kt(c.content);
931
+ if (rt) return e;
932
+ if (L) {
933
+ if (R) for (l = re.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
934
+ else l = i;
935
+ return (j.shadowroot || j.shadowrootmode) && (l = ae.call(r, l, !0)), l;
936
+ }
937
+ let d = I ? i.outerHTML : i.innerHTML;
938
+ return I && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && E(He, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), P && de([
939
+ oe,
940
+ se,
941
+ w
942
+ ], (e) => {
943
+ d = ye(d, e, " ");
944
+ }), _ && z ? _.createHTML(d) : d;
945
+ }, t.setConfig = function() {
946
+ vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), $e = !0;
947
+ }, t.clearConfig = function() {
948
+ Y = null, $e = !1;
949
+ }, t.isValidAttribute = function(e, t, n) {
950
+ return Y || vt({}), Dt(J(e), J(t), n);
951
+ }, t.addHook = function(e, t) {
952
+ typeof t == "function" && me(S[e], t);
953
+ }, t.removeHook = function(e, t) {
954
+ if (t !== void 0) {
955
+ let n = fe(S[e], t);
956
+ return n === -1 ? void 0 : he(S[e], n, 1)[0];
957
+ }
958
+ return pe(S[e]);
959
+ }, t.removeHooks = function(e) {
960
+ S[e] = [];
961
+ }, t.removeAllHooks = function() {
962
+ S = Je();
963
+ }, t;
964
+ }
965
+ var N = Ye(), Xe = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Ze = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Qe = /\s*%%.*\n/gm, P = class extends Error {
966
+ static {
967
+ n(this, "UnknownDiagramError");
968
+ }
969
+ constructor(e) {
970
+ super(e), this.name = "UnknownDiagramError";
971
+ }
972
+ }, F = {}, I = /* @__PURE__ */ n(function(e, t) {
973
+ e = e.replace(Xe, "").replace(Ze, "").replace(Qe, "\n");
974
+ for (let [n, { detector: r }] of Object.entries(F)) if (r(e, t)) return n;
975
+ throw new P(`No diagram type detected matching given configuration for text: ${e}`);
976
+ }, "detectType"), $e = /* @__PURE__ */ n((...e) => {
977
+ for (let { id: t, detector: n, loader: r } of e) et(t, n, r);
978
+ }, "registerLazyLoadedDiagrams"), et = /* @__PURE__ */ n((e, n, r) => {
979
+ F[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), F[e] = {
980
+ detector: n,
981
+ loader: r
982
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
983
+ }, "addDetector"), L = /* @__PURE__ */ n((e) => F[e].loader, "getDiagramLoader"), R = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
984
+ let i = {
985
+ depth: n,
986
+ clobber: r
987
+ };
988
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => R(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
989
+ e.includes(t) || e.push(t);
990
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
991
+ typeof t[i] == "object" && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = R(e[i], t[i], {
992
+ depth: n - 1,
993
+ clobber: r
994
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
995
+ }), e);
996
+ }, "assignWithDepth"), z = R, tt = "#ffffff", nt = "#f2f2f2", B = /* @__PURE__ */ n((e, t) => t ? b(e, {
997
+ s: -40,
998
+ l: 10
999
+ }) : b(e, {
1000
+ s: -40,
1001
+ l: -10
1002
+ }), "mkBorder"), rt = class {
1003
+ static {
1004
+ n(this, "Theme");
1005
+ }
1006
+ constructor() {
1007
+ 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";
1008
+ }
1009
+ updateColors() {
1010
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || b(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || b(this.primaryColor, {
1011
+ h: 180,
1012
+ l: 5
1013
+ }), this.primaryBorderColor = this.primaryBorderColor || B(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || B(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || B(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || B(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || x(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || x(this.tertiaryColor), this.lineColor = this.lineColor || x(this.background), this.arrowheadColor = this.arrowheadColor || x(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 ? y(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 || y(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || x(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 || v(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || v(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || v(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 || b(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || b(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || b(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || b(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || b(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || b(this.primaryColor, {
1014
+ h: 210,
1015
+ l: 150
1016
+ }), this.cScale9 = this.cScale9 || b(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || b(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || b(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = y(this["cScale" + e], 75);
1017
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = y(this["cScale" + e], 25);
1018
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e]);
1019
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || v(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1020
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1021
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1022
+ let e = this.darkMode ? -4 : -1;
1023
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || b(this.mainBkg, {
1024
+ h: 180,
1025
+ s: -15,
1026
+ l: e * (5 + t * 3)
1027
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || b(this.mainBkg, {
1028
+ h: 180,
1029
+ s: -15,
1030
+ l: e * (8 + t * 3)
1031
+ });
1032
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || b(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || b(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || b(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || b(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || b(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || b(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 || b(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || b(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || b(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || b(this.primaryColor, {
1033
+ h: 60,
1034
+ l: -10
1035
+ }), this.pie8 = this.pie8 || b(this.primaryColor, {
1036
+ h: -60,
1037
+ l: -10
1038
+ }), this.pie9 = this.pie9 || b(this.primaryColor, {
1039
+ h: 120,
1040
+ l: 0
1041
+ }), this.pie10 = this.pie10 || b(this.primaryColor, {
1042
+ h: 60,
1043
+ l: -20
1044
+ }), this.pie11 = this.pie11 || b(this.primaryColor, {
1045
+ h: -60,
1046
+ l: -20
1047
+ }), this.pie12 = this.pie12 || b(this.primaryColor, {
1048
+ h: 120,
1049
+ l: -10
1050
+ }), 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 = {
1051
+ axisColor: this.radar?.axisColor || this.lineColor,
1052
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1053
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1054
+ curveOpacity: this.radar?.curveOpacity || .5,
1055
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1056
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1057
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1058
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1059
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1060
+ legendFontSize: this.radar?.legendFontSize || 12
1061
+ }, 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 || b(this.primaryColor, {
1062
+ r: 5,
1063
+ g: 5,
1064
+ b: 5
1065
+ }), this.quadrant3Fill = this.quadrant3Fill || b(this.primaryColor, {
1066
+ r: 10,
1067
+ g: 10,
1068
+ b: 10
1069
+ }), this.quadrant4Fill = this.quadrant4Fill || b(this.primaryColor, {
1070
+ r: 15,
1071
+ g: 15,
1072
+ b: 15
1073
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || b(this.primaryTextColor, {
1074
+ r: -5,
1075
+ g: -5,
1076
+ b: -5
1077
+ }), this.quadrant3TextFill = this.quadrant3TextFill || b(this.primaryTextColor, {
1078
+ r: -10,
1079
+ g: -10,
1080
+ b: -10
1081
+ }), this.quadrant4TextFill = this.quadrant4TextFill || b(this.primaryTextColor, {
1082
+ r: -15,
1083
+ g: -15,
1084
+ b: -15
1085
+ }), this.quadrantPointFill = this.quadrantPointFill || g(this.quadrant1Fill) ? v(this.quadrant1Fill) : y(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 = {
1086
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1087
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1088
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1089
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1090
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1091
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1092
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1093
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1094
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1095
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1096
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1097
+ }, 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 ? y(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 || b(this.primaryColor, { h: -30 }), this.git4 = this.git4 || b(this.primaryColor, { h: -60 }), this.git5 = this.git5 || b(this.primaryColor, { h: -90 }), this.git6 = this.git6 || b(this.primaryColor, { h: 60 }), this.git7 = this.git7 || b(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = v(this.git0, 25), this.git1 = v(this.git1, 25), this.git2 = v(this.git2, 25), this.git3 = v(this.git3, 25), this.git4 = v(this.git4, 25), this.git5 = v(this.git5, 25), this.git6 = v(this.git6, 25), this.git7 = v(this.git7, 25)) : (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)), this.gitInv0 = this.gitInv0 || x(this.git0), this.gitInv1 = this.gitInv1 || x(this.git1), this.gitInv2 = this.gitInv2 || x(this.git2), this.gitInv3 = this.gitInv3 || x(this.git3), this.gitInv4 = this.gitInv4 || x(this.git4), this.gitInv5 = this.gitInv5 || x(this.git5), this.gitInv6 = this.gitInv6 || x(this.git6), this.gitInv7 = this.gitInv7 || x(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 || tt, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || nt;
1098
+ }
1099
+ calculate(e) {
1100
+ if (typeof e != "object") {
1101
+ this.updateColors();
1102
+ return;
1103
+ }
1104
+ let t = Object.keys(e);
1105
+ t.forEach((t) => {
1106
+ this[t] = e[t];
1107
+ }), this.updateColors(), t.forEach((t) => {
1108
+ this[t] = e[t];
1109
+ });
1110
+ }
1111
+ }, V = /* @__PURE__ */ n((e) => {
1112
+ let t = new rt();
1113
+ return t.calculate(e), t;
1114
+ }, "getThemeVariables"), H = class {
1115
+ static {
1116
+ n(this, "Theme");
1117
+ }
1118
+ constructor() {
1119
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = v(this.primaryColor, 16), this.tertiaryColor = b(this.primaryColor, { h: -160 }), this.primaryBorderColor = x(this.background), this.secondaryBorderColor = B(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = B(this.tertiaryColor, this.darkMode), this.primaryTextColor = x(this.primaryColor), this.secondaryTextColor = x(this.secondaryColor), this.tertiaryTextColor = x(this.tertiaryColor), this.lineColor = x(this.background), this.textColor = x(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = v(x("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = ee(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 = y("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = y(this.sectionBkgColor, 10), this.taskBorderColor = ee(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = ee(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 || v(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
1120
+ }
1121
+ updateColors() {
1122
+ this.secondBkg = v(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 = v(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 = v(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 = b(this.primaryColor, { h: 64 }), this.fillType3 = b(this.secondaryColor, { h: 64 }), this.fillType4 = b(this.primaryColor, { h: -64 }), this.fillType5 = b(this.secondaryColor, { h: -64 }), this.fillType6 = b(this.primaryColor, { h: 128 }), this.fillType7 = b(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 || b(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || b(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || b(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || b(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || b(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || b(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || b(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || b(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || b(this.primaryColor, { h: 330 });
1123
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e]);
1124
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || v(this["cScale" + e], 10);
1125
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || b(this.mainBkg, {
1126
+ h: 30,
1127
+ s: -30,
1128
+ l: -(-10 + e * 4)
1129
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || b(this.mainBkg, {
1130
+ h: 30,
1131
+ s: -30,
1132
+ l: -(-7 + e * 4)
1133
+ });
1134
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1135
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1136
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1137
+ 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 || b(this.primaryColor, {
1138
+ r: 5,
1139
+ g: 5,
1140
+ b: 5
1141
+ }), this.quadrant3Fill = this.quadrant3Fill || b(this.primaryColor, {
1142
+ r: 10,
1143
+ g: 10,
1144
+ b: 10
1145
+ }), this.quadrant4Fill = this.quadrant4Fill || b(this.primaryColor, {
1146
+ r: 15,
1147
+ g: 15,
1148
+ b: 15
1149
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || b(this.primaryTextColor, {
1150
+ r: -5,
1151
+ g: -5,
1152
+ b: -5
1153
+ }), this.quadrant3TextFill = this.quadrant3TextFill || b(this.primaryTextColor, {
1154
+ r: -10,
1155
+ g: -10,
1156
+ b: -10
1157
+ }), this.quadrant4TextFill = this.quadrant4TextFill || b(this.primaryTextColor, {
1158
+ r: -15,
1159
+ g: -15,
1160
+ b: -15
1161
+ }), this.quadrantPointFill = this.quadrantPointFill || g(this.quadrant1Fill) ? v(this.quadrant1Fill) : y(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 = {
1162
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1163
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1164
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1165
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1166
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1167
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1168
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1169
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1170
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1171
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1172
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1173
+ }, this.packet = {
1174
+ startByteColor: this.primaryTextColor,
1175
+ endByteColor: this.primaryTextColor,
1176
+ labelColor: this.primaryTextColor,
1177
+ titleColor: this.primaryTextColor,
1178
+ blockStrokeColor: this.primaryTextColor,
1179
+ blockFillColor: this.background
1180
+ }, this.radar = {
1181
+ axisColor: this.radar?.axisColor || this.lineColor,
1182
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1183
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1184
+ curveOpacity: this.radar?.curveOpacity || .5,
1185
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1186
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1187
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1188
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1189
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1190
+ legendFontSize: this.radar?.legendFontSize || 12
1191
+ }, 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 ? y(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = v(this.secondaryColor, 20), this.git1 = v(this.pie2 || this.secondaryColor, 20), this.git2 = v(this.pie3 || this.tertiaryColor, 20), this.git3 = v(this.pie4 || b(this.primaryColor, { h: -30 }), 20), this.git4 = v(this.pie5 || b(this.primaryColor, { h: -60 }), 20), this.git5 = v(this.pie6 || b(this.primaryColor, { h: -90 }), 10), this.git6 = v(this.pie7 || b(this.primaryColor, { h: 60 }), 10), this.git7 = v(this.pie8 || b(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || x(this.git0), this.gitInv1 = this.gitInv1 || x(this.git1), this.gitInv2 = this.gitInv2 || x(this.git2), this.gitInv3 = this.gitInv3 || x(this.git3), this.gitInv4 = this.gitInv4 || x(this.git4), this.gitInv5 = this.gitInv5 || x(this.git5), this.gitInv6 = this.gitInv6 || x(this.git6), this.gitInv7 = this.gitInv7 || x(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || x(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || x(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 || v(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || v(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1192
+ }
1193
+ calculate(e) {
1194
+ if (typeof e != "object") {
1195
+ this.updateColors();
1196
+ return;
1197
+ }
1198
+ let t = Object.keys(e);
1199
+ t.forEach((t) => {
1200
+ this[t] = e[t];
1201
+ }), this.updateColors(), t.forEach((t) => {
1202
+ this[t] = e[t];
1203
+ });
1204
+ }
1205
+ }, it = /* @__PURE__ */ n((e) => {
1206
+ let t = new H();
1207
+ return t.calculate(e), t;
1208
+ }, "getThemeVariables"), at = class {
1209
+ static {
1210
+ n(this, "Theme");
1211
+ }
1212
+ constructor() {
1213
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = b(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = b(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.primaryColor, this.darkMode), this.secondaryBorderColor = B(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = B(this.tertiaryColor, this.darkMode), this.primaryTextColor = x(this.primaryColor), this.secondaryTextColor = x(this.secondaryColor), this.tertiaryTextColor = x(this.tertiaryColor), this.lineColor = x(this.background), this.textColor = x(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 = ee(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();
1214
+ }
1215
+ updateColors() {
1216
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || b(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || b(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || b(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || b(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || b(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || b(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || b(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || b(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || b(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || y(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || y(this.tertiaryColor, 40);
1217
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = y(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 25);
1218
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || b(this["cScale" + e], { h: 180 });
1219
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || b(this.mainBkg, {
1220
+ h: 30,
1221
+ l: -(5 + e * 5)
1222
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || b(this.mainBkg, {
1223
+ h: 30,
1224
+ l: -(7 + e * 5)
1225
+ });
1226
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1227
+ this.cScaleLabel0 = this.cScaleLabel0 || x(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || x(this.labelTextColor);
1228
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1229
+ }
1230
+ 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 = v(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 || v(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || v(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 = b(this.primaryColor, { h: 64 }), this.fillType3 = b(this.secondaryColor, { h: 64 }), this.fillType4 = b(this.primaryColor, { h: -64 }), this.fillType5 = b(this.secondaryColor, { h: -64 }), this.fillType6 = b(this.primaryColor, { h: 128 }), this.fillType7 = b(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || b(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || b(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || b(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || b(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || b(this.primaryColor, {
1231
+ h: 60,
1232
+ l: -20
1233
+ }), this.pie8 = this.pie8 || b(this.primaryColor, {
1234
+ h: -60,
1235
+ l: -40
1236
+ }), this.pie9 = this.pie9 || b(this.primaryColor, {
1237
+ h: 120,
1238
+ l: -40
1239
+ }), this.pie10 = this.pie10 || b(this.primaryColor, {
1240
+ h: 60,
1241
+ l: -40
1242
+ }), this.pie11 = this.pie11 || b(this.primaryColor, {
1243
+ h: -90,
1244
+ l: -40
1245
+ }), this.pie12 = this.pie12 || b(this.primaryColor, {
1246
+ h: 120,
1247
+ l: -30
1248
+ }), 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 || b(this.primaryColor, {
1249
+ r: 5,
1250
+ g: 5,
1251
+ b: 5
1252
+ }), this.quadrant3Fill = this.quadrant3Fill || b(this.primaryColor, {
1253
+ r: 10,
1254
+ g: 10,
1255
+ b: 10
1256
+ }), this.quadrant4Fill = this.quadrant4Fill || b(this.primaryColor, {
1257
+ r: 15,
1258
+ g: 15,
1259
+ b: 15
1260
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || b(this.primaryTextColor, {
1261
+ r: -5,
1262
+ g: -5,
1263
+ b: -5
1264
+ }), this.quadrant3TextFill = this.quadrant3TextFill || b(this.primaryTextColor, {
1265
+ r: -10,
1266
+ g: -10,
1267
+ b: -10
1268
+ }), this.quadrant4TextFill = this.quadrant4TextFill || b(this.primaryTextColor, {
1269
+ r: -15,
1270
+ g: -15,
1271
+ b: -15
1272
+ }), this.quadrantPointFill = this.quadrantPointFill || g(this.quadrant1Fill) ? v(this.quadrant1Fill) : y(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 = {
1273
+ axisColor: this.radar?.axisColor || this.lineColor,
1274
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1275
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1276
+ curveOpacity: this.radar?.curveOpacity || .5,
1277
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1278
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1279
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1280
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1281
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1282
+ legendFontSize: this.radar?.legendFontSize || 12
1283
+ }, this.xyChart = {
1284
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1285
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1286
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1287
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1288
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1289
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1290
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1291
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1292
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1293
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1294
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1295
+ }, 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 || b(this.primaryColor, { h: -30 }), this.git4 = this.git4 || b(this.primaryColor, { h: -60 }), this.git5 = this.git5 || b(this.primaryColor, { h: -90 }), this.git6 = this.git6 || b(this.primaryColor, { h: 60 }), this.git7 = this.git7 || b(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = v(this.git0, 25), this.git1 = v(this.git1, 25), this.git2 = v(this.git2, 25), this.git3 = v(this.git3, 25), this.git4 = v(this.git4, 25), this.git5 = v(this.git5, 25), this.git6 = v(this.git6, 25), this.git7 = v(this.git7, 25)) : (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)), this.gitInv0 = this.gitInv0 || y(x(this.git0), 25), this.gitInv1 = this.gitInv1 || x(this.git1), this.gitInv2 = this.gitInv2 || x(this.git2), this.gitInv3 = this.gitInv3 || x(this.git3), this.gitInv4 = this.gitInv4 || x(this.git4), this.gitInv5 = this.gitInv5 || x(this.git5), this.gitInv6 = this.gitInv6 || x(this.git6), this.gitInv7 = this.gitInv7 || x(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || x(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || x(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 || tt, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || nt;
1296
+ }
1297
+ calculate(e) {
1298
+ if (Object.keys(this).forEach((e) => {
1299
+ this[e] === "calculated" && (this[e] = void 0);
1300
+ }), typeof e != "object") {
1301
+ this.updateColors();
1302
+ return;
1303
+ }
1304
+ let t = Object.keys(e);
1305
+ t.forEach((t) => {
1306
+ this[t] = e[t];
1307
+ }), this.updateColors(), t.forEach((t) => {
1308
+ this[t] = e[t];
1309
+ });
1310
+ }
1311
+ }, ot = /* @__PURE__ */ n((e) => {
1312
+ let t = new at();
1313
+ return t.calculate(e), t;
1314
+ }, "getThemeVariables"), st = class {
1315
+ static {
1316
+ n(this, "Theme");
1317
+ }
1318
+ constructor() {
1319
+ 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 = v("#cde498", 10), this.primaryBorderColor = B(this.primaryColor, this.darkMode), this.secondaryBorderColor = B(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = B(this.tertiaryColor, this.darkMode), this.primaryTextColor = x(this.primaryColor), this.secondaryTextColor = x(this.secondaryColor), this.tertiaryTextColor = x(this.primaryColor), this.lineColor = x(this.background), this.textColor = x(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";
1320
+ }
1321
+ updateColors() {
1322
+ this.actorBorder = y(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 || b(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || b(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || b(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || b(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || b(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || b(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || b(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || b(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || b(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || y(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || y(this.tertiaryColor, 40);
1323
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = y(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 25);
1324
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || b(this["cScale" + e], { h: 180 });
1325
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1326
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1327
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || b(this.mainBkg, {
1328
+ h: 30,
1329
+ s: -30,
1330
+ l: -(5 + e * 5)
1331
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || b(this.mainBkg, {
1332
+ h: 30,
1333
+ s: -30,
1334
+ l: -(8 + e * 5)
1335
+ });
1336
+ 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 || v(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || v(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 = b(this.primaryColor, { h: 64 }), this.fillType3 = b(this.secondaryColor, { h: 64 }), this.fillType4 = b(this.primaryColor, { h: -64 }), this.fillType5 = b(this.secondaryColor, { h: -64 }), this.fillType6 = b(this.primaryColor, { h: 128 }), this.fillType7 = b(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 || b(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || b(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || b(this.tertiaryColor, {
1337
+ h: 40,
1338
+ l: -40
1339
+ }), this.pie7 = this.pie7 || b(this.primaryColor, {
1340
+ h: 60,
1341
+ l: -10
1342
+ }), this.pie8 = this.pie8 || b(this.primaryColor, {
1343
+ h: -60,
1344
+ l: -10
1345
+ }), this.pie9 = this.pie9 || b(this.primaryColor, {
1346
+ h: 120,
1347
+ l: 0
1348
+ }), this.pie10 = this.pie10 || b(this.primaryColor, {
1349
+ h: 60,
1350
+ l: -50
1351
+ }), this.pie11 = this.pie11 || b(this.primaryColor, {
1352
+ h: -60,
1353
+ l: -50
1354
+ }), this.pie12 = this.pie12 || b(this.primaryColor, {
1355
+ h: 120,
1356
+ l: -50
1357
+ }), 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 || b(this.primaryColor, {
1358
+ r: 5,
1359
+ g: 5,
1360
+ b: 5
1361
+ }), this.quadrant3Fill = this.quadrant3Fill || b(this.primaryColor, {
1362
+ r: 10,
1363
+ g: 10,
1364
+ b: 10
1365
+ }), this.quadrant4Fill = this.quadrant4Fill || b(this.primaryColor, {
1366
+ r: 15,
1367
+ g: 15,
1368
+ b: 15
1369
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || b(this.primaryTextColor, {
1370
+ r: -5,
1371
+ g: -5,
1372
+ b: -5
1373
+ }), this.quadrant3TextFill = this.quadrant3TextFill || b(this.primaryTextColor, {
1374
+ r: -10,
1375
+ g: -10,
1376
+ b: -10
1377
+ }), this.quadrant4TextFill = this.quadrant4TextFill || b(this.primaryTextColor, {
1378
+ r: -15,
1379
+ g: -15,
1380
+ b: -15
1381
+ }), this.quadrantPointFill = this.quadrantPointFill || g(this.quadrant1Fill) ? v(this.quadrant1Fill) : y(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 = {
1382
+ startByteColor: this.primaryTextColor,
1383
+ endByteColor: this.primaryTextColor,
1384
+ labelColor: this.primaryTextColor,
1385
+ titleColor: this.primaryTextColor,
1386
+ blockStrokeColor: this.primaryTextColor,
1387
+ blockFillColor: this.mainBkg
1388
+ }, this.radar = {
1389
+ axisColor: this.radar?.axisColor || this.lineColor,
1390
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1391
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1392
+ curveOpacity: this.radar?.curveOpacity || .5,
1393
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1394
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1395
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1396
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1397
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1398
+ legendFontSize: this.radar?.legendFontSize || 12
1399
+ }, this.xyChart = {
1400
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1401
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1402
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1403
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1404
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1405
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1406
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1407
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1408
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1409
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1410
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1411
+ }, 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 || b(this.primaryColor, { h: -30 }), this.git4 = this.git4 || b(this.primaryColor, { h: -60 }), this.git5 = this.git5 || b(this.primaryColor, { h: -90 }), this.git6 = this.git6 || b(this.primaryColor, { h: 60 }), this.git7 = this.git7 || b(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = v(this.git0, 25), this.git1 = v(this.git1, 25), this.git2 = v(this.git2, 25), this.git3 = v(this.git3, 25), this.git4 = v(this.git4, 25), this.git5 = v(this.git5, 25), this.git6 = v(this.git6, 25), this.git7 = v(this.git7, 25)) : (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)), this.gitInv0 = this.gitInv0 || x(this.git0), this.gitInv1 = this.gitInv1 || x(this.git1), this.gitInv2 = this.gitInv2 || x(this.git2), this.gitInv3 = this.gitInv3 || x(this.git3), this.gitInv4 = this.gitInv4 || x(this.git4), this.gitInv5 = this.gitInv5 || x(this.git5), this.gitInv6 = this.gitInv6 || x(this.git6), this.gitInv7 = this.gitInv7 || x(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || x(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || x(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 || tt, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || nt;
1412
+ }
1413
+ calculate(e) {
1414
+ if (typeof e != "object") {
1415
+ this.updateColors();
1416
+ return;
1417
+ }
1418
+ let t = Object.keys(e);
1419
+ t.forEach((t) => {
1420
+ this[t] = e[t];
1421
+ }), this.updateColors(), t.forEach((t) => {
1422
+ this[t] = e[t];
1423
+ });
1424
+ }
1425
+ }, ct = /* @__PURE__ */ n((e) => {
1426
+ let t = new st();
1427
+ return t.calculate(e), t;
1428
+ }, "getThemeVariables"), lt = class {
1429
+ static {
1430
+ n(this, "Theme");
1431
+ }
1432
+ constructor() {
1433
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = v(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = b(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.primaryColor, this.darkMode), this.secondaryBorderColor = B(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = B(this.tertiaryColor, this.darkMode), this.primaryTextColor = x(this.primaryColor), this.secondaryTextColor = x(this.secondaryColor), this.tertiaryTextColor = x(this.tertiaryColor), this.lineColor = x(this.background), this.textColor = x(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 || v(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1434
+ }
1435
+ updateColors() {
1436
+ this.secondBkg = v(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = v(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";
1437
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e]);
1438
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || v(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1439
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1440
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1441
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || b(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || b(this.mainBkg, { l: -(8 + e * 5) });
1442
+ 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 = v(this.contrast, 30), this.sectionBkgColor2 = v(this.contrast, 30), this.taskBorderColor = y(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 = v(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = y(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 = b(this.primaryColor, { h: 64 }), this.fillType3 = b(this.secondaryColor, { h: 64 }), this.fillType4 = b(this.primaryColor, { h: -64 }), this.fillType5 = b(this.secondaryColor, { h: -64 }), this.fillType6 = b(this.primaryColor, { h: 128 }), this.fillType7 = b(this.secondaryColor, { h: 128 });
1443
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1444
+ 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 || b(this.primaryColor, {
1445
+ r: 5,
1446
+ g: 5,
1447
+ b: 5
1448
+ }), this.quadrant3Fill = this.quadrant3Fill || b(this.primaryColor, {
1449
+ r: 10,
1450
+ g: 10,
1451
+ b: 10
1452
+ }), this.quadrant4Fill = this.quadrant4Fill || b(this.primaryColor, {
1453
+ r: 15,
1454
+ g: 15,
1455
+ b: 15
1456
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || b(this.primaryTextColor, {
1457
+ r: -5,
1458
+ g: -5,
1459
+ b: -5
1460
+ }), this.quadrant3TextFill = this.quadrant3TextFill || b(this.primaryTextColor, {
1461
+ r: -10,
1462
+ g: -10,
1463
+ b: -10
1464
+ }), this.quadrant4TextFill = this.quadrant4TextFill || b(this.primaryTextColor, {
1465
+ r: -15,
1466
+ g: -15,
1467
+ b: -15
1468
+ }), this.quadrantPointFill = this.quadrantPointFill || g(this.quadrant1Fill) ? v(this.quadrant1Fill) : y(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 = {
1469
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1470
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1471
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1472
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1473
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1474
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1475
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1476
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1477
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1478
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1479
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1480
+ }, this.radar = {
1481
+ axisColor: this.radar?.axisColor || this.lineColor,
1482
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1483
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1484
+ curveOpacity: this.radar?.curveOpacity || .5,
1485
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1486
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1487
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1488
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1489
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1490
+ legendFontSize: this.radar?.legendFontSize || 12
1491
+ }, 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 = y(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || b(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || b(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || b(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || b(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || b(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || x(this.git0), this.gitInv1 = this.gitInv1 || x(this.git1), this.gitInv2 = this.gitInv2 || x(this.git2), this.gitInv3 = this.gitInv3 || x(this.git3), this.gitInv4 = this.gitInv4 || x(this.git4), this.gitInv5 = this.gitInv5 || x(this.git5), this.gitInv6 = this.gitInv6 || x(this.git6), this.gitInv7 = this.gitInv7 || x(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 || tt, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || nt;
1492
+ }
1493
+ calculate(e) {
1494
+ if (typeof e != "object") {
1495
+ this.updateColors();
1496
+ return;
1497
+ }
1498
+ let t = Object.keys(e);
1499
+ t.forEach((t) => {
1500
+ this[t] = e[t];
1501
+ }), this.updateColors(), t.forEach((t) => {
1502
+ this[t] = e[t];
1503
+ });
1504
+ }
1505
+ }, U = {
1506
+ base: { getThemeVariables: V },
1507
+ dark: { getThemeVariables: it },
1508
+ default: { getThemeVariables: ot },
1509
+ forest: { getThemeVariables: ct },
1510
+ neutral: { getThemeVariables: /* @__PURE__ */ n((e) => {
1511
+ let t = new lt();
1512
+ return t.calculate(e), t;
1513
+ }, "getThemeVariables") }
1514
+ }, W = {
1515
+ flowchart: {
1516
+ useMaxWidth: !0,
1517
+ titleTopMargin: 25,
1518
+ subGraphTitleMargin: {
1519
+ top: 0,
1520
+ bottom: 0
1521
+ },
1522
+ diagramPadding: 8,
1523
+ htmlLabels: !0,
1524
+ nodeSpacing: 50,
1525
+ rankSpacing: 50,
1526
+ curve: "basis",
1527
+ padding: 15,
1528
+ defaultRenderer: "dagre-wrapper",
1529
+ wrappingWidth: 200,
1530
+ inheritDir: !1
1531
+ },
1532
+ sequence: {
1533
+ useMaxWidth: !0,
1534
+ hideUnusedParticipants: !1,
1535
+ activationWidth: 10,
1536
+ diagramMarginX: 50,
1537
+ diagramMarginY: 10,
1538
+ actorMargin: 50,
1539
+ width: 150,
1540
+ height: 65,
1541
+ boxMargin: 10,
1542
+ boxTextMargin: 5,
1543
+ noteMargin: 10,
1544
+ messageMargin: 35,
1545
+ messageAlign: "center",
1546
+ mirrorActors: !0,
1547
+ forceMenus: !1,
1548
+ bottomMarginAdj: 1,
1549
+ rightAngles: !1,
1550
+ showSequenceNumbers: !1,
1551
+ actorFontSize: 14,
1552
+ actorFontFamily: "\"Open Sans\", sans-serif",
1553
+ actorFontWeight: 400,
1554
+ noteFontSize: 14,
1555
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1556
+ noteFontWeight: 400,
1557
+ noteAlign: "center",
1558
+ messageFontSize: 16,
1559
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1560
+ messageFontWeight: 400,
1561
+ wrap: !1,
1562
+ wrapPadding: 10,
1563
+ labelBoxWidth: 50,
1564
+ labelBoxHeight: 20
1565
+ },
1566
+ gantt: {
1567
+ useMaxWidth: !0,
1568
+ titleTopMargin: 25,
1569
+ barHeight: 20,
1570
+ barGap: 4,
1571
+ topPadding: 50,
1572
+ rightPadding: 75,
1573
+ leftPadding: 75,
1574
+ gridLineStartPadding: 35,
1575
+ fontSize: 11,
1576
+ sectionFontSize: 11,
1577
+ numberSectionStyles: 4,
1578
+ axisFormat: "%Y-%m-%d",
1579
+ topAxis: !1,
1580
+ displayMode: "",
1581
+ weekday: "sunday"
1582
+ },
1583
+ journey: {
1584
+ useMaxWidth: !0,
1585
+ diagramMarginX: 50,
1586
+ diagramMarginY: 10,
1587
+ leftMargin: 150,
1588
+ maxLabelWidth: 360,
1589
+ width: 150,
1590
+ height: 50,
1591
+ boxMargin: 10,
1592
+ boxTextMargin: 5,
1593
+ noteMargin: 10,
1594
+ messageMargin: 35,
1595
+ messageAlign: "center",
1596
+ bottomMarginAdj: 1,
1597
+ rightAngles: !1,
1598
+ taskFontSize: 14,
1599
+ taskFontFamily: "\"Open Sans\", sans-serif",
1600
+ taskMargin: 50,
1601
+ activationWidth: 10,
1602
+ textPlacement: "fo",
1603
+ actorColours: [
1604
+ "#8FBC8F",
1605
+ "#7CFC00",
1606
+ "#00FFFF",
1607
+ "#20B2AA",
1608
+ "#B0E0E6",
1609
+ "#FFFFE0"
1610
+ ],
1611
+ sectionFills: [
1612
+ "#191970",
1613
+ "#8B008B",
1614
+ "#4B0082",
1615
+ "#2F4F4F",
1616
+ "#800000",
1617
+ "#8B4513",
1618
+ "#00008B"
1619
+ ],
1620
+ sectionColours: ["#fff"],
1621
+ titleColor: "",
1622
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1623
+ titleFontSize: "4ex"
1624
+ },
1625
+ class: {
1626
+ useMaxWidth: !0,
1627
+ titleTopMargin: 25,
1628
+ arrowMarkerAbsolute: !1,
1629
+ dividerMargin: 10,
1630
+ padding: 5,
1631
+ textHeight: 10,
1632
+ defaultRenderer: "dagre-wrapper",
1633
+ htmlLabels: !1,
1634
+ hideEmptyMembersBox: !1
1635
+ },
1636
+ state: {
1637
+ useMaxWidth: !0,
1638
+ titleTopMargin: 25,
1639
+ dividerMargin: 10,
1640
+ sizeUnit: 5,
1641
+ padding: 8,
1642
+ textHeight: 10,
1643
+ titleShift: -15,
1644
+ noteMargin: 10,
1645
+ forkWidth: 70,
1646
+ forkHeight: 7,
1647
+ miniPadding: 2,
1648
+ fontSizeFactor: 5.02,
1649
+ fontSize: 24,
1650
+ labelHeight: 16,
1651
+ edgeLengthFactor: "20",
1652
+ compositTitleSize: 35,
1653
+ radius: 5,
1654
+ defaultRenderer: "dagre-wrapper"
1655
+ },
1656
+ er: {
1657
+ useMaxWidth: !0,
1658
+ titleTopMargin: 25,
1659
+ diagramPadding: 20,
1660
+ layoutDirection: "TB",
1661
+ minEntityWidth: 100,
1662
+ minEntityHeight: 75,
1663
+ entityPadding: 15,
1664
+ nodeSpacing: 140,
1665
+ rankSpacing: 80,
1666
+ stroke: "gray",
1667
+ fill: "honeydew",
1668
+ fontSize: 12
1669
+ },
1670
+ pie: {
1671
+ useMaxWidth: !0,
1672
+ textPosition: .75
1673
+ },
1674
+ quadrantChart: {
1675
+ useMaxWidth: !0,
1676
+ chartWidth: 500,
1677
+ chartHeight: 500,
1678
+ titleFontSize: 20,
1679
+ titlePadding: 10,
1680
+ quadrantPadding: 5,
1681
+ xAxisLabelPadding: 5,
1682
+ yAxisLabelPadding: 5,
1683
+ xAxisLabelFontSize: 16,
1684
+ yAxisLabelFontSize: 16,
1685
+ quadrantLabelFontSize: 16,
1686
+ quadrantTextTopPadding: 5,
1687
+ pointTextPadding: 5,
1688
+ pointLabelFontSize: 12,
1689
+ pointRadius: 5,
1690
+ xAxisPosition: "top",
1691
+ yAxisPosition: "left",
1692
+ quadrantInternalBorderStrokeWidth: 1,
1693
+ quadrantExternalBorderStrokeWidth: 2
1694
+ },
1695
+ xyChart: {
1696
+ useMaxWidth: !0,
1697
+ width: 700,
1698
+ height: 500,
1699
+ titleFontSize: 20,
1700
+ titlePadding: 10,
1701
+ showDataLabel: !1,
1702
+ showTitle: !0,
1703
+ xAxis: {
1704
+ $ref: "#/$defs/XYChartAxisConfig",
1705
+ showLabel: !0,
1706
+ labelFontSize: 14,
1707
+ labelPadding: 5,
1708
+ showTitle: !0,
1709
+ titleFontSize: 16,
1710
+ titlePadding: 5,
1711
+ showTick: !0,
1712
+ tickLength: 5,
1713
+ tickWidth: 2,
1714
+ showAxisLine: !0,
1715
+ axisLineWidth: 2
1716
+ },
1717
+ yAxis: {
1718
+ $ref: "#/$defs/XYChartAxisConfig",
1719
+ showLabel: !0,
1720
+ labelFontSize: 14,
1721
+ labelPadding: 5,
1722
+ showTitle: !0,
1723
+ titleFontSize: 16,
1724
+ titlePadding: 5,
1725
+ showTick: !0,
1726
+ tickLength: 5,
1727
+ tickWidth: 2,
1728
+ showAxisLine: !0,
1729
+ axisLineWidth: 2
1730
+ },
1731
+ chartOrientation: "vertical",
1732
+ plotReservedSpacePercent: 50
1733
+ },
1734
+ requirement: {
1735
+ useMaxWidth: !0,
1736
+ rect_fill: "#f9f9f9",
1737
+ text_color: "#333",
1738
+ rect_border_size: "0.5px",
1739
+ rect_border_color: "#bbb",
1740
+ rect_min_width: 200,
1741
+ rect_min_height: 200,
1742
+ fontSize: 14,
1743
+ rect_padding: 10,
1744
+ line_height: 20
1745
+ },
1746
+ mindmap: {
1747
+ useMaxWidth: !0,
1748
+ padding: 10,
1749
+ maxNodeWidth: 200,
1750
+ layoutAlgorithm: "cose-bilkent"
1751
+ },
1752
+ kanban: {
1753
+ useMaxWidth: !0,
1754
+ padding: 8,
1755
+ sectionWidth: 200,
1756
+ ticketBaseUrl: ""
1757
+ },
1758
+ timeline: {
1759
+ useMaxWidth: !0,
1760
+ diagramMarginX: 50,
1761
+ diagramMarginY: 10,
1762
+ leftMargin: 150,
1763
+ width: 150,
1764
+ height: 50,
1765
+ boxMargin: 10,
1766
+ boxTextMargin: 5,
1767
+ noteMargin: 10,
1768
+ messageMargin: 35,
1769
+ messageAlign: "center",
1770
+ bottomMarginAdj: 1,
1771
+ rightAngles: !1,
1772
+ taskFontSize: 14,
1773
+ taskFontFamily: "\"Open Sans\", sans-serif",
1774
+ taskMargin: 50,
1775
+ activationWidth: 10,
1776
+ textPlacement: "fo",
1777
+ actorColours: [
1778
+ "#8FBC8F",
1779
+ "#7CFC00",
1780
+ "#00FFFF",
1781
+ "#20B2AA",
1782
+ "#B0E0E6",
1783
+ "#FFFFE0"
1784
+ ],
1785
+ sectionFills: [
1786
+ "#191970",
1787
+ "#8B008B",
1788
+ "#4B0082",
1789
+ "#2F4F4F",
1790
+ "#800000",
1791
+ "#8B4513",
1792
+ "#00008B"
1793
+ ],
1794
+ sectionColours: ["#fff"],
1795
+ disableMulticolor: !1
1796
+ },
1797
+ gitGraph: {
1798
+ useMaxWidth: !0,
1799
+ titleTopMargin: 25,
1800
+ diagramPadding: 8,
1801
+ nodeLabel: {
1802
+ width: 75,
1803
+ height: 100,
1804
+ x: -25,
1805
+ y: 0
1806
+ },
1807
+ mainBranchName: "main",
1808
+ mainBranchOrder: 0,
1809
+ showCommitLabel: !0,
1810
+ showBranches: !0,
1811
+ rotateCommitLabel: !0,
1812
+ parallelCommits: !1,
1813
+ arrowMarkerAbsolute: !1
1814
+ },
1815
+ c4: {
1816
+ useMaxWidth: !0,
1817
+ diagramMarginX: 50,
1818
+ diagramMarginY: 10,
1819
+ c4ShapeMargin: 50,
1820
+ c4ShapePadding: 20,
1821
+ width: 216,
1822
+ height: 60,
1823
+ boxMargin: 10,
1824
+ c4ShapeInRow: 4,
1825
+ nextLinePaddingX: 0,
1826
+ c4BoundaryInRow: 2,
1827
+ personFontSize: 14,
1828
+ personFontFamily: "\"Open Sans\", sans-serif",
1829
+ personFontWeight: "normal",
1830
+ external_personFontSize: 14,
1831
+ external_personFontFamily: "\"Open Sans\", sans-serif",
1832
+ external_personFontWeight: "normal",
1833
+ systemFontSize: 14,
1834
+ systemFontFamily: "\"Open Sans\", sans-serif",
1835
+ systemFontWeight: "normal",
1836
+ external_systemFontSize: 14,
1837
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
1838
+ external_systemFontWeight: "normal",
1839
+ system_dbFontSize: 14,
1840
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
1841
+ system_dbFontWeight: "normal",
1842
+ external_system_dbFontSize: 14,
1843
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
1844
+ external_system_dbFontWeight: "normal",
1845
+ system_queueFontSize: 14,
1846
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
1847
+ system_queueFontWeight: "normal",
1848
+ external_system_queueFontSize: 14,
1849
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
1850
+ external_system_queueFontWeight: "normal",
1851
+ boundaryFontSize: 14,
1852
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
1853
+ boundaryFontWeight: "normal",
1854
+ messageFontSize: 12,
1855
+ messageFontFamily: "\"Open Sans\", sans-serif",
1856
+ messageFontWeight: "normal",
1857
+ containerFontSize: 14,
1858
+ containerFontFamily: "\"Open Sans\", sans-serif",
1859
+ containerFontWeight: "normal",
1860
+ external_containerFontSize: 14,
1861
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
1862
+ external_containerFontWeight: "normal",
1863
+ container_dbFontSize: 14,
1864
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
1865
+ container_dbFontWeight: "normal",
1866
+ external_container_dbFontSize: 14,
1867
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
1868
+ external_container_dbFontWeight: "normal",
1869
+ container_queueFontSize: 14,
1870
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
1871
+ container_queueFontWeight: "normal",
1872
+ external_container_queueFontSize: 14,
1873
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
1874
+ external_container_queueFontWeight: "normal",
1875
+ componentFontSize: 14,
1876
+ componentFontFamily: "\"Open Sans\", sans-serif",
1877
+ componentFontWeight: "normal",
1878
+ external_componentFontSize: 14,
1879
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
1880
+ external_componentFontWeight: "normal",
1881
+ component_dbFontSize: 14,
1882
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
1883
+ component_dbFontWeight: "normal",
1884
+ external_component_dbFontSize: 14,
1885
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
1886
+ external_component_dbFontWeight: "normal",
1887
+ component_queueFontSize: 14,
1888
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
1889
+ component_queueFontWeight: "normal",
1890
+ external_component_queueFontSize: 14,
1891
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
1892
+ external_component_queueFontWeight: "normal",
1893
+ wrap: !0,
1894
+ wrapPadding: 10,
1895
+ person_bg_color: "#08427B",
1896
+ person_border_color: "#073B6F",
1897
+ external_person_bg_color: "#686868",
1898
+ external_person_border_color: "#8A8A8A",
1899
+ system_bg_color: "#1168BD",
1900
+ system_border_color: "#3C7FC0",
1901
+ system_db_bg_color: "#1168BD",
1902
+ system_db_border_color: "#3C7FC0",
1903
+ system_queue_bg_color: "#1168BD",
1904
+ system_queue_border_color: "#3C7FC0",
1905
+ external_system_bg_color: "#999999",
1906
+ external_system_border_color: "#8A8A8A",
1907
+ external_system_db_bg_color: "#999999",
1908
+ external_system_db_border_color: "#8A8A8A",
1909
+ external_system_queue_bg_color: "#999999",
1910
+ external_system_queue_border_color: "#8A8A8A",
1911
+ container_bg_color: "#438DD5",
1912
+ container_border_color: "#3C7FC0",
1913
+ container_db_bg_color: "#438DD5",
1914
+ container_db_border_color: "#3C7FC0",
1915
+ container_queue_bg_color: "#438DD5",
1916
+ container_queue_border_color: "#3C7FC0",
1917
+ external_container_bg_color: "#B3B3B3",
1918
+ external_container_border_color: "#A6A6A6",
1919
+ external_container_db_bg_color: "#B3B3B3",
1920
+ external_container_db_border_color: "#A6A6A6",
1921
+ external_container_queue_bg_color: "#B3B3B3",
1922
+ external_container_queue_border_color: "#A6A6A6",
1923
+ component_bg_color: "#85BBF0",
1924
+ component_border_color: "#78A8D8",
1925
+ component_db_bg_color: "#85BBF0",
1926
+ component_db_border_color: "#78A8D8",
1927
+ component_queue_bg_color: "#85BBF0",
1928
+ component_queue_border_color: "#78A8D8",
1929
+ external_component_bg_color: "#CCCCCC",
1930
+ external_component_border_color: "#BFBFBF",
1931
+ external_component_db_bg_color: "#CCCCCC",
1932
+ external_component_db_border_color: "#BFBFBF",
1933
+ external_component_queue_bg_color: "#CCCCCC",
1934
+ external_component_queue_border_color: "#BFBFBF"
1935
+ },
1936
+ sankey: {
1937
+ useMaxWidth: !0,
1938
+ width: 600,
1939
+ height: 400,
1940
+ linkColor: "gradient",
1941
+ nodeAlignment: "justify",
1942
+ showValues: !0,
1943
+ prefix: "",
1944
+ suffix: ""
1945
+ },
1946
+ block: {
1947
+ useMaxWidth: !0,
1948
+ padding: 8
1949
+ },
1950
+ packet: {
1951
+ useMaxWidth: !0,
1952
+ rowHeight: 32,
1953
+ bitWidth: 32,
1954
+ bitsPerRow: 32,
1955
+ showBits: !0,
1956
+ paddingX: 5,
1957
+ paddingY: 5
1958
+ },
1959
+ architecture: {
1960
+ useMaxWidth: !0,
1961
+ padding: 40,
1962
+ iconSize: 80,
1963
+ fontSize: 16
1964
+ },
1965
+ radar: {
1966
+ useMaxWidth: !0,
1967
+ width: 600,
1968
+ height: 600,
1969
+ marginTop: 50,
1970
+ marginRight: 50,
1971
+ marginBottom: 50,
1972
+ marginLeft: 50,
1973
+ axisScaleFactor: 1,
1974
+ axisLabelFactor: 1.05,
1975
+ curveTension: .17
1976
+ },
1977
+ theme: "default",
1978
+ look: "classic",
1979
+ handDrawnSeed: 0,
1980
+ layout: "dagre",
1981
+ maxTextSize: 5e4,
1982
+ maxEdges: 500,
1983
+ darkMode: !1,
1984
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
1985
+ logLevel: 5,
1986
+ securityLevel: "strict",
1987
+ startOnLoad: !0,
1988
+ arrowMarkerAbsolute: !1,
1989
+ secure: [
1990
+ "secure",
1991
+ "securityLevel",
1992
+ "startOnLoad",
1993
+ "maxTextSize",
1994
+ "suppressErrorRendering",
1995
+ "maxEdges"
1996
+ ],
1997
+ legacyMathML: !1,
1998
+ forceLegacyMathML: !1,
1999
+ deterministicIds: !1,
2000
+ fontSize: 16,
2001
+ markdownAutoWrap: !0,
2002
+ suppressErrorRendering: !1
2003
+ }, G = {
2004
+ ...W,
2005
+ deterministicIDSeed: void 0,
2006
+ elk: {
2007
+ mergeEdges: !1,
2008
+ nodePlacementStrategy: "BRANDES_KOEPF",
2009
+ forceNodeModelOrder: !1,
2010
+ considerModelOrder: "NODES_AND_EDGES"
2011
+ },
2012
+ themeCSS: void 0,
2013
+ themeVariables: U.default.getThemeVariables(),
2014
+ sequence: {
2015
+ ...W.sequence,
2016
+ messageFont: /* @__PURE__ */ n(function() {
2017
+ return {
2018
+ fontFamily: this.messageFontFamily,
2019
+ fontSize: this.messageFontSize,
2020
+ fontWeight: this.messageFontWeight
2021
+ };
2022
+ }, "messageFont"),
2023
+ noteFont: /* @__PURE__ */ n(function() {
2024
+ return {
2025
+ fontFamily: this.noteFontFamily,
2026
+ fontSize: this.noteFontSize,
2027
+ fontWeight: this.noteFontWeight
2028
+ };
2029
+ }, "noteFont"),
2030
+ actorFont: /* @__PURE__ */ n(function() {
2031
+ return {
2032
+ fontFamily: this.actorFontFamily,
2033
+ fontSize: this.actorFontSize,
2034
+ fontWeight: this.actorFontWeight
2035
+ };
2036
+ }, "actorFont")
2037
+ },
2038
+ class: { hideEmptyMembersBox: !1 },
2039
+ gantt: {
2040
+ ...W.gantt,
2041
+ tickInterval: void 0,
2042
+ useWidth: void 0
2043
+ },
2044
+ c4: {
2045
+ ...W.c4,
2046
+ useWidth: void 0,
2047
+ personFont: /* @__PURE__ */ n(function() {
2048
+ return {
2049
+ fontFamily: this.personFontFamily,
2050
+ fontSize: this.personFontSize,
2051
+ fontWeight: this.personFontWeight
2052
+ };
2053
+ }, "personFont"),
2054
+ flowchart: {
2055
+ ...W.flowchart,
2056
+ inheritDir: !1
2057
+ },
2058
+ external_personFont: /* @__PURE__ */ n(function() {
2059
+ return {
2060
+ fontFamily: this.external_personFontFamily,
2061
+ fontSize: this.external_personFontSize,
2062
+ fontWeight: this.external_personFontWeight
2063
+ };
2064
+ }, "external_personFont"),
2065
+ systemFont: /* @__PURE__ */ n(function() {
2066
+ return {
2067
+ fontFamily: this.systemFontFamily,
2068
+ fontSize: this.systemFontSize,
2069
+ fontWeight: this.systemFontWeight
2070
+ };
2071
+ }, "systemFont"),
2072
+ external_systemFont: /* @__PURE__ */ n(function() {
2073
+ return {
2074
+ fontFamily: this.external_systemFontFamily,
2075
+ fontSize: this.external_systemFontSize,
2076
+ fontWeight: this.external_systemFontWeight
2077
+ };
2078
+ }, "external_systemFont"),
2079
+ system_dbFont: /* @__PURE__ */ n(function() {
2080
+ return {
2081
+ fontFamily: this.system_dbFontFamily,
2082
+ fontSize: this.system_dbFontSize,
2083
+ fontWeight: this.system_dbFontWeight
2084
+ };
2085
+ }, "system_dbFont"),
2086
+ external_system_dbFont: /* @__PURE__ */ n(function() {
2087
+ return {
2088
+ fontFamily: this.external_system_dbFontFamily,
2089
+ fontSize: this.external_system_dbFontSize,
2090
+ fontWeight: this.external_system_dbFontWeight
2091
+ };
2092
+ }, "external_system_dbFont"),
2093
+ system_queueFont: /* @__PURE__ */ n(function() {
2094
+ return {
2095
+ fontFamily: this.system_queueFontFamily,
2096
+ fontSize: this.system_queueFontSize,
2097
+ fontWeight: this.system_queueFontWeight
2098
+ };
2099
+ }, "system_queueFont"),
2100
+ external_system_queueFont: /* @__PURE__ */ n(function() {
2101
+ return {
2102
+ fontFamily: this.external_system_queueFontFamily,
2103
+ fontSize: this.external_system_queueFontSize,
2104
+ fontWeight: this.external_system_queueFontWeight
2105
+ };
2106
+ }, "external_system_queueFont"),
2107
+ containerFont: /* @__PURE__ */ n(function() {
2108
+ return {
2109
+ fontFamily: this.containerFontFamily,
2110
+ fontSize: this.containerFontSize,
2111
+ fontWeight: this.containerFontWeight
2112
+ };
2113
+ }, "containerFont"),
2114
+ external_containerFont: /* @__PURE__ */ n(function() {
2115
+ return {
2116
+ fontFamily: this.external_containerFontFamily,
2117
+ fontSize: this.external_containerFontSize,
2118
+ fontWeight: this.external_containerFontWeight
2119
+ };
2120
+ }, "external_containerFont"),
2121
+ container_dbFont: /* @__PURE__ */ n(function() {
2122
+ return {
2123
+ fontFamily: this.container_dbFontFamily,
2124
+ fontSize: this.container_dbFontSize,
2125
+ fontWeight: this.container_dbFontWeight
2126
+ };
2127
+ }, "container_dbFont"),
2128
+ external_container_dbFont: /* @__PURE__ */ n(function() {
2129
+ return {
2130
+ fontFamily: this.external_container_dbFontFamily,
2131
+ fontSize: this.external_container_dbFontSize,
2132
+ fontWeight: this.external_container_dbFontWeight
2133
+ };
2134
+ }, "external_container_dbFont"),
2135
+ container_queueFont: /* @__PURE__ */ n(function() {
2136
+ return {
2137
+ fontFamily: this.container_queueFontFamily,
2138
+ fontSize: this.container_queueFontSize,
2139
+ fontWeight: this.container_queueFontWeight
2140
+ };
2141
+ }, "container_queueFont"),
2142
+ external_container_queueFont: /* @__PURE__ */ n(function() {
2143
+ return {
2144
+ fontFamily: this.external_container_queueFontFamily,
2145
+ fontSize: this.external_container_queueFontSize,
2146
+ fontWeight: this.external_container_queueFontWeight
2147
+ };
2148
+ }, "external_container_queueFont"),
2149
+ componentFont: /* @__PURE__ */ n(function() {
2150
+ return {
2151
+ fontFamily: this.componentFontFamily,
2152
+ fontSize: this.componentFontSize,
2153
+ fontWeight: this.componentFontWeight
2154
+ };
2155
+ }, "componentFont"),
2156
+ external_componentFont: /* @__PURE__ */ n(function() {
2157
+ return {
2158
+ fontFamily: this.external_componentFontFamily,
2159
+ fontSize: this.external_componentFontSize,
2160
+ fontWeight: this.external_componentFontWeight
2161
+ };
2162
+ }, "external_componentFont"),
2163
+ component_dbFont: /* @__PURE__ */ n(function() {
2164
+ return {
2165
+ fontFamily: this.component_dbFontFamily,
2166
+ fontSize: this.component_dbFontSize,
2167
+ fontWeight: this.component_dbFontWeight
2168
+ };
2169
+ }, "component_dbFont"),
2170
+ external_component_dbFont: /* @__PURE__ */ n(function() {
2171
+ return {
2172
+ fontFamily: this.external_component_dbFontFamily,
2173
+ fontSize: this.external_component_dbFontSize,
2174
+ fontWeight: this.external_component_dbFontWeight
2175
+ };
2176
+ }, "external_component_dbFont"),
2177
+ component_queueFont: /* @__PURE__ */ n(function() {
2178
+ return {
2179
+ fontFamily: this.component_queueFontFamily,
2180
+ fontSize: this.component_queueFontSize,
2181
+ fontWeight: this.component_queueFontWeight
2182
+ };
2183
+ }, "component_queueFont"),
2184
+ external_component_queueFont: /* @__PURE__ */ n(function() {
2185
+ return {
2186
+ fontFamily: this.external_component_queueFontFamily,
2187
+ fontSize: this.external_component_queueFontSize,
2188
+ fontWeight: this.external_component_queueFontWeight
2189
+ };
2190
+ }, "external_component_queueFont"),
2191
+ boundaryFont: /* @__PURE__ */ n(function() {
2192
+ return {
2193
+ fontFamily: this.boundaryFontFamily,
2194
+ fontSize: this.boundaryFontSize,
2195
+ fontWeight: this.boundaryFontWeight
2196
+ };
2197
+ }, "boundaryFont"),
2198
+ messageFont: /* @__PURE__ */ n(function() {
2199
+ return {
2200
+ fontFamily: this.messageFontFamily,
2201
+ fontSize: this.messageFontSize,
2202
+ fontWeight: this.messageFontWeight
2203
+ };
2204
+ }, "messageFont")
2205
+ },
2206
+ pie: {
2207
+ ...W.pie,
2208
+ useWidth: 984
2209
+ },
2210
+ xyChart: {
2211
+ ...W.xyChart,
2212
+ useWidth: void 0
2213
+ },
2214
+ requirement: {
2215
+ ...W.requirement,
2216
+ useWidth: void 0
2217
+ },
2218
+ packet: { ...W.packet },
2219
+ radar: { ...W.radar },
2220
+ treemap: {
2221
+ useMaxWidth: !0,
2222
+ padding: 10,
2223
+ diagramPadding: 8,
2224
+ showValues: !0,
2225
+ nodeWidth: 100,
2226
+ nodeHeight: 40,
2227
+ borderWidth: 1,
2228
+ valueFontSize: 12,
2229
+ labelFontSize: 14,
2230
+ valueFormat: ","
2231
+ }
2232
+ }, ut = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2233
+ ...n,
2234
+ t + r,
2235
+ ...ut(e[r], "")
2236
+ ] : [...n, t + r], []), "keyify"), dt = new Set(ut(G, "")), ft = G, K = /* @__PURE__ */ n((e) => {
2237
+ if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2238
+ if (Array.isArray(e)) {
2239
+ e.forEach((e) => K(e));
2240
+ return;
2241
+ }
2242
+ for (let n of Object.keys(e)) {
2243
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !dt.has(n) || e[n] == null) {
2244
+ t.debug("sanitize deleting key: ", n), delete e[n];
2245
+ continue;
2246
+ }
2247
+ if (typeof e[n] == "object") {
2248
+ t.debug("sanitizing object", n), K(e[n]);
2249
+ continue;
2250
+ }
2251
+ for (let r of [
2252
+ "themeCSS",
2253
+ "fontFamily",
2254
+ "altFontFamily"
2255
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = pt(e[n]));
2256
+ }
2257
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2258
+ let n = e.themeVariables[t];
2259
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2260
+ }
2261
+ t.debug("After sanitization", e);
2262
+ }
2263
+ }, "sanitizeDirective"), pt = /* @__PURE__ */ n((e) => {
2264
+ let t = 0, n = 0;
2265
+ for (let r of e) {
2266
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2267
+ r === "{" ? t++ : r === "}" && n++;
2268
+ }
2269
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2270
+ }, "sanitizeCss"), mt = Object.freeze(ft), q = z({}, mt), ht, J = [], Y = z({}, mt), gt = /* @__PURE__ */ n((e, t) => {
2271
+ let n = z({}, e), r = {};
2272
+ for (let e of t) Z(e), r = z(r, e);
2273
+ if (n = z(n, r), r.theme && r.theme in U) {
2274
+ let e = z(z({}, ht).themeVariables || {}, r.themeVariables);
2275
+ n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
2276
+ }
2277
+ return Y = n, Et(Y), Y;
2278
+ }, "updateCurrentConfig"), _t = /* @__PURE__ */ n((e) => (q = z({}, mt), q = z(q, e), e.theme && U[e.theme] && (q.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), gt(q, J), q), "setSiteConfig"), vt = /* @__PURE__ */ n((e) => {
2279
+ ht = z({}, e);
2280
+ }, "saveConfigFromInitialize"), yt = /* @__PURE__ */ n((e) => (q = z(q, e), gt(q, J), q), "updateSiteConfig"), bt = /* @__PURE__ */ n(() => z({}, q), "getSiteConfig"), xt = /* @__PURE__ */ n((e) => (Et(e), z(Y, e), X()), "setConfig"), X = /* @__PURE__ */ n(() => z({}, Y), "getConfig"), Z = /* @__PURE__ */ n((e) => {
2281
+ e && (["secure", ...q.secure ?? []].forEach((n) => {
2282
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
2283
+ }), Object.keys(e).forEach((t) => {
2284
+ t.startsWith("__") && delete e[t];
2285
+ }), Object.keys(e).forEach((t) => {
2286
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Z(e[t]);
2287
+ }));
2288
+ }, "sanitize"), St = /* @__PURE__ */ n((e) => {
2289
+ K(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
2290
+ ...e.themeVariables,
2291
+ fontFamily: e.fontFamily
2292
+ }), J.push(e), gt(q, J);
2293
+ }, "addDirective"), Ct = /* @__PURE__ */ n((e = q) => {
2294
+ J = [], gt(e, J);
2295
+ }, "reset"), wt = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, Tt = {}, Q = /* @__PURE__ */ n((e) => {
2296
+ Tt[e] || (t.warn(wt[e]), Tt[e] = !0);
2297
+ }, "issueWarning"), Et = /* @__PURE__ */ n((e) => {
2298
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Q("LAZY_LOAD_DEPRECATED");
2299
+ }, "checkConfig"), Dt = /* @__PURE__ */ n(() => {
2300
+ let e = {};
2301
+ ht && (e = z(e, ht));
2302
+ for (let t of J) e = z(e, t);
2303
+ return e;
2304
+ }, "getUserDefinedConfig"), $ = /<br\s*\/?>/gi, Ot = /* @__PURE__ */ n((e) => e ? Rt(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), kt = /* @__PURE__ */ (() => {
2305
+ let e = !1;
2306
+ return () => {
2307
+ e ||= (At(), !0);
2308
+ };
2309
+ })();
2310
+ function At() {
2311
+ let e = "data-temp-href-target";
2312
+ N.addHook("beforeSanitizeAttributes", (t) => {
2313
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
2314
+ }), N.addHook("afterSanitizeAttributes", (t) => {
2315
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
2316
+ });
2317
+ }
2318
+ n(At, "setupDompurifyHooks");
2319
+ var jt = /* @__PURE__ */ n((e) => (kt(), N.sanitize(e)), "removeScript"), Mt = /* @__PURE__ */ n((e, t) => {
2320
+ if (t.flowchart?.htmlLabels !== !1) {
2321
+ let n = t.securityLevel;
2322
+ n === "antiscript" || n === "strict" ? e = jt(e) : n !== "loose" && (e = Rt(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Lt(e));
2323
+ }
2324
+ return e;
2325
+ }, "sanitizeMore"), Nt = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? N.sanitize(Mt(e, t), t.dompurifyConfig).toString() : N.sanitize(Mt(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Pt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? Nt(e, t) : e.flat().map((e) => Nt(e, t)), "sanitizeTextOrArray"), Ft = /* @__PURE__ */ n((e) => $.test(e), "hasBreaks"), It = /* @__PURE__ */ n((e) => e.split($), "splitBreaks"), Lt = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Rt = /* @__PURE__ */ n((e) => e.replace($, "#br#"), "breakToPlaceholder"), zt = /* @__PURE__ */ n((e) => {
2326
+ let t = "";
2327
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2328
+ }, "getUrl"), Bt = /* @__PURE__ */ n((e) => !(e === !1 || [
2329
+ "false",
2330
+ "null",
2331
+ "0"
2332
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), Vt = /* @__PURE__ */ n(function(...e) {
2333
+ let t = e.filter((e) => !isNaN(e));
2334
+ return Math.max(...t);
2335
+ }, "getMax"), Ht = /* @__PURE__ */ n(function(...e) {
2336
+ let t = e.filter((e) => !isNaN(e));
2337
+ return Math.min(...t);
2338
+ }, "getMin"), Ut = /* @__PURE__ */ n(function(e) {
2339
+ let t = e.split(/(,)/), n = [];
2340
+ for (let e = 0; e < t.length; e++) {
2341
+ let r = t[e];
2342
+ if (r === "," && e > 0 && e + 1 < t.length) {
2343
+ let i = t[e - 1], a = t[e + 1];
2344
+ Gt(i, a) && (r = i + "," + a, e++, n.pop());
2345
+ }
2346
+ n.push(Kt(r));
2347
+ }
2348
+ return n.join("");
2349
+ }, "parseGenericTypes"), Wt = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Gt = /* @__PURE__ */ n((e, t) => {
2350
+ let n = Wt(e, "~"), r = Wt(t, "~");
2351
+ return n === 1 && r === 1;
2352
+ }, "shouldCombineSets"), Kt = /* @__PURE__ */ n((e) => {
2353
+ let t = Wt(e, "~"), n = !1;
2354
+ if (t <= 1) return e;
2355
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
2356
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
2357
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2358
+ return n && r.unshift("~"), r.join("");
2359
+ }, "processSet"), qt = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Jt = /\$\$(.*)\$\$/g, Yt = /* @__PURE__ */ n((e) => (e.match(Jt)?.length ?? 0) > 0, "hasKatex"), Xt = /* @__PURE__ */ n(async (e, t) => {
2360
+ let n = document.createElement("div");
2361
+ n.innerHTML = await Qt(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
2362
+ let r = {
2363
+ width: n.clientWidth,
2364
+ height: n.clientHeight
2365
+ };
2366
+ return n.remove(), r;
2367
+ }, "calculateMathMLDimensions"), Zt = /* @__PURE__ */ n(async (e, t) => {
2368
+ if (!Yt(e)) return e;
2369
+ if (!(qt() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Jt, "MathML is unsupported in this environment.");
2370
+ {
2371
+ let { default: n } = await import("./katex-BHcJffnM.js").then((e) => e.n), r = t.forceLegacyMathML || !qt() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2372
+ return e.split($).map((e) => Yt(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Jt, (e, t) => n.renderToString(t, {
2373
+ throwOnError: !0,
2374
+ displayMode: !0,
2375
+ output: r
2376
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2377
+ }
2378
+ return e.replace(Jt, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2379
+ }, "renderKatexUnsanitized"), Qt = /* @__PURE__ */ n(async (e, t) => Nt(await Zt(e, t), t), "renderKatexSanitized"), $t = {
2380
+ getRows: Ot,
2381
+ sanitizeText: Nt,
2382
+ sanitizeTextOrArray: Pt,
2383
+ hasBreaks: Ft,
2384
+ splitBreaks: It,
2385
+ lineBreakRegex: $,
2386
+ removeScript: jt,
2387
+ getUrl: zt,
2388
+ evaluate: Bt,
2389
+ getMax: Vt,
2390
+ getMin: Ht
2391
+ }, en = /* @__PURE__ */ n(function(e, t) {
2392
+ for (let n of t) e.attr(n[0], n[1]);
2393
+ }, "d3Attrs"), tn = /* @__PURE__ */ n(function(e, t, n) {
2394
+ let r = /* @__PURE__ */ new Map();
2395
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2396
+ }, "calculateSvgSizeAttrs"), nn = /* @__PURE__ */ n(function(e, t, n, r) {
2397
+ en(e, tn(t, n, r));
2398
+ }, "configureSvgSize"), rn = /* @__PURE__ */ n(function(e, n, r, i) {
2399
+ let a = n.node().getBBox(), o = a.width, s = a.height;
2400
+ t.info(`SVG bounds: ${o}x${s}`, a);
2401
+ let c = 0, l = 0;
2402
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), nn(n, l, c, i);
2403
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2404
+ n.attr("viewBox", u);
2405
+ }, "setupGraphViewbox"), an = {}, on = /* @__PURE__ */ n((e, n, r) => {
2406
+ let i = "";
2407
+ return e in an && an[e] ? i = an[e](r) : t.warn(`No theme found for ${e}`), ` & {
2408
+ font-family: ${r.fontFamily};
2409
+ font-size: ${r.fontSize};
2410
+ fill: ${r.textColor}
2411
+ }
2412
+ @keyframes edge-animation-frame {
2413
+ from {
2414
+ stroke-dashoffset: 0;
2415
+ }
2416
+ }
2417
+ @keyframes dash {
2418
+ to {
2419
+ stroke-dashoffset: 0;
2420
+ }
2421
+ }
2422
+ & .edge-animation-slow {
2423
+ stroke-dasharray: 9,5 !important;
2424
+ stroke-dashoffset: 900;
2425
+ animation: dash 50s linear infinite;
2426
+ stroke-linecap: round;
2427
+ }
2428
+ & .edge-animation-fast {
2429
+ stroke-dasharray: 9,5 !important;
2430
+ stroke-dashoffset: 900;
2431
+ animation: dash 20s linear infinite;
2432
+ stroke-linecap: round;
2433
+ }
2434
+ /* Classes common for multiple diagrams */
2435
+
2436
+ & .error-icon {
2437
+ fill: ${r.errorBkgColor};
2438
+ }
2439
+ & .error-text {
2440
+ fill: ${r.errorTextColor};
2441
+ stroke: ${r.errorTextColor};
2442
+ }
2443
+
2444
+ & .edge-thickness-normal {
2445
+ stroke-width: 1px;
2446
+ }
2447
+ & .edge-thickness-thick {
2448
+ stroke-width: 3.5px
2449
+ }
2450
+ & .edge-pattern-solid {
2451
+ stroke-dasharray: 0;
2452
+ }
2453
+ & .edge-thickness-invisible {
2454
+ stroke-width: 0;
2455
+ fill: none;
2456
+ }
2457
+ & .edge-pattern-dashed{
2458
+ stroke-dasharray: 3;
2459
+ }
2460
+ .edge-pattern-dotted {
2461
+ stroke-dasharray: 2;
2462
+ }
2463
+
2464
+ & .marker {
2465
+ fill: ${r.lineColor};
2466
+ stroke: ${r.lineColor};
2467
+ }
2468
+ & .marker.cross {
2469
+ stroke: ${r.lineColor};
2470
+ }
2471
+
2472
+ & svg {
2473
+ font-family: ${r.fontFamily};
2474
+ font-size: ${r.fontSize};
2475
+ }
2476
+ & p {
2477
+ margin: 0
2478
+ }
2479
+
2480
+ ${i}
2481
+
2482
+ ${n}
2483
+ `;
2484
+ }, "getStyles"), sn = /* @__PURE__ */ n((e, t) => {
2485
+ t !== void 0 && (an[e] = t);
2486
+ }, "addStylesForDiagram"), cn = on, ln = {};
2487
+ r(ln, {
2488
+ clear: () => mn,
2489
+ getAccDescription: () => vn,
2490
+ getAccTitle: () => gn,
2491
+ getDiagramTitle: () => bn,
2492
+ setAccDescription: () => _n,
2493
+ setAccTitle: () => hn,
2494
+ setDiagramTitle: () => yn
2495
+ });
2496
+ var un = "", dn = "", fn = "", pn = /* @__PURE__ */ n((e) => Nt(e, X()), "sanitizeText"), mn = /* @__PURE__ */ n(() => {
2497
+ un = "", fn = "", dn = "";
2498
+ }, "clear"), hn = /* @__PURE__ */ n((e) => {
2499
+ un = pn(e).replace(/^\s+/g, "");
2500
+ }, "setAccTitle"), gn = /* @__PURE__ */ n(() => un, "getAccTitle"), _n = /* @__PURE__ */ n((e) => {
2501
+ fn = pn(e).replace(/\n\s+/g, "\n");
2502
+ }, "setAccDescription"), vn = /* @__PURE__ */ n(() => fn, "getAccDescription"), yn = /* @__PURE__ */ n((e) => {
2503
+ dn = pn(e);
2504
+ }, "setDiagramTitle"), bn = /* @__PURE__ */ n(() => dn, "getDiagramTitle"), xn = t, Sn = e, Cn = X, wn = xt, Tn = mt, En = /* @__PURE__ */ n((e) => Nt(e, Cn()), "sanitizeText"), Dn = rn, On = /* @__PURE__ */ n(() => ln, "getCommonDb"), kn = {}, An = /* @__PURE__ */ n((e, t, n) => {
2505
+ kn[e] && xn.warn(`Diagram with id ${e} already registered. Overwriting.`), kn[e] = t, n && et(e, n), sn(e, t.styles), t.injectUtils?.(xn, Sn, Cn, En, Dn, On(), () => {});
2506
+ }, "registerDiagram"), jn = /* @__PURE__ */ n((e) => {
2507
+ if (e in kn) return kn[e];
2508
+ throw new Mn(e);
2509
+ }, "getDiagram"), Mn = class extends Error {
2510
+ static {
2511
+ n(this, "DiagramNotFoundError");
2512
+ }
2513
+ constructor(e) {
2514
+ super(`Diagram ${e} not found.`);
2515
+ }
2516
+ };
2517
+ //#endregion
2518
+ export { g as $, Ut as A, hn as B, bn as C, Dt as D, zt as E, K as F, rn as G, wn as H, Nt as I, U as J, Dn as K, En as L, $e as M, Qt as N, Yt as O, Ct as P, v as Q, vt as R, L as S, ot as T, yn as U, xt as V, _t as W, N as X, yt as Y, y as Z, vn as _, mn as a, Cn as b, nn as c, ft as d, ee as et, I as f, Xe as g, Bt as h, Xt as i, An as j, $ as k, mt as l, Ze as m, St as n, a as nt, ln as o, F as p, cn as q, z as r, $t as s, P as t, m as tt, Tn as u, gn as v, bt as w, jn as x, X as y, _n as z };