docmedown 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,3836 @@
1
+ import { h as e, m as t } from "./src-D_hsMyeP.mjs";
2
+ import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
+ //#region node_modules/khroma/dist/utils/channel.js
4
+ var i = {
5
+ min: {
6
+ r: 0,
7
+ g: 0,
8
+ b: 0,
9
+ s: 0,
10
+ l: 0,
11
+ a: 0
12
+ },
13
+ max: {
14
+ r: 255,
15
+ g: 255,
16
+ b: 255,
17
+ h: 360,
18
+ s: 100,
19
+ l: 100,
20
+ a: 1
21
+ },
22
+ clamp: {
23
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
+ h: (e) => e % 360,
27
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
30
+ },
31
+ toLinear: (e) => {
32
+ let t = e / 255;
33
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
34
+ },
35
+ 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),
36
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
37
+ if (!t) return n * 2.55;
38
+ e /= 360, t /= 100, n /= 100;
39
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
40
+ switch (r) {
41
+ case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
42
+ case "g": return i.hue2rgb(o, a, e) * 255;
43
+ case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
44
+ }
45
+ },
46
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
47
+ e /= 255, t /= 255, n /= 255;
48
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
49
+ if (r === "l") return o * 100;
50
+ if (i === a) return 0;
51
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
52
+ if (r === "s") return c * 100;
53
+ switch (i) {
54
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
55
+ case t: return ((n - e) / s + 2) * 60;
56
+ case n: return ((e - t) / s + 4) * 60;
57
+ default: return -1;
58
+ }
59
+ }
60
+ }, a = {
61
+ channel: i,
62
+ lang: {
63
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
64
+ round: (e) => Math.round(e * 1e10) / 1e10
65
+ },
66
+ unit: { dec2hex: (e) => {
67
+ let t = Math.round(e).toString(16);
68
+ return t.length > 1 ? t : `0${t}`;
69
+ } }
70
+ }, o = {};
71
+ for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
72
+ var s = {
73
+ ALL: 0,
74
+ RGB: 1,
75
+ HSL: 2
76
+ }, c = class {
77
+ constructor() {
78
+ this.type = s.ALL;
79
+ }
80
+ get() {
81
+ return this.type;
82
+ }
83
+ set(e) {
84
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
85
+ this.type = e;
86
+ }
87
+ reset() {
88
+ this.type = s.ALL;
89
+ }
90
+ is(e) {
91
+ return this.type === e;
92
+ }
93
+ }, l = new class {
94
+ constructor(e, t) {
95
+ this.color = t, this.changed = !1, this.data = e, this.type = new c();
96
+ }
97
+ set(e, t) {
98
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
99
+ }
100
+ _ensureHSL() {
101
+ let e = this.data, { h: t, s: n, l: r } = e;
102
+ 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"));
103
+ }
104
+ _ensureRGB() {
105
+ let e = this.data, { r: t, g: n, b: r } = e;
106
+ 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"));
107
+ }
108
+ get r() {
109
+ let e = this.data, t = e.r;
110
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
111
+ }
112
+ get g() {
113
+ let e = this.data, t = e.g;
114
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
115
+ }
116
+ get b() {
117
+ let e = this.data, t = e.b;
118
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
119
+ }
120
+ get h() {
121
+ let e = this.data, t = e.h;
122
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
123
+ }
124
+ get s() {
125
+ let e = this.data, t = e.s;
126
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
127
+ }
128
+ get l() {
129
+ let e = this.data, t = e.l;
130
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
131
+ }
132
+ get a() {
133
+ return this.data.a;
134
+ }
135
+ set r(e) {
136
+ this.type.set(s.RGB), this.changed = !0, this.data.r = e;
137
+ }
138
+ set g(e) {
139
+ this.type.set(s.RGB), this.changed = !0, this.data.g = e;
140
+ }
141
+ set b(e) {
142
+ this.type.set(s.RGB), this.changed = !0, this.data.b = e;
143
+ }
144
+ set h(e) {
145
+ this.type.set(s.HSL), this.changed = !0, this.data.h = e;
146
+ }
147
+ set s(e) {
148
+ this.type.set(s.HSL), this.changed = !0, this.data.s = e;
149
+ }
150
+ set l(e) {
151
+ this.type.set(s.HSL), this.changed = !0, this.data.l = e;
152
+ }
153
+ set a(e) {
154
+ this.changed = !0, this.data.a = e;
155
+ }
156
+ }({
157
+ r: 0,
158
+ g: 0,
159
+ b: 0,
160
+ a: 0
161
+ }, "transparent"), u = {
162
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
163
+ parse: (e) => {
164
+ if (e.charCodeAt(0) !== 35) return;
165
+ let t = e.match(u.re);
166
+ if (!t) return;
167
+ 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;
168
+ return l.set({
169
+ r: (r >> c * (d + 3) & f) * s,
170
+ g: (r >> c * (d + 2) & f) * s,
171
+ b: (r >> c * (d + 1) & f) * s,
172
+ a: a ? (r & f) * s / 255 : 1
173
+ }, e);
174
+ },
175
+ stringify: (e) => {
176
+ let { r: t, g: n, b: r, a: i } = e;
177
+ 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)]}`;
178
+ }
179
+ }, d = {
180
+ 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,
181
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
182
+ _hue2deg: (e) => {
183
+ let t = e.match(d.hueRe);
184
+ if (t) {
185
+ let [, e, n] = t;
186
+ switch (n) {
187
+ case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
188
+ case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
+ case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
190
+ }
191
+ }
192
+ return a.channel.clamp.h(parseFloat(e));
193
+ },
194
+ parse: (e) => {
195
+ let t = e.charCodeAt(0);
196
+ if (t !== 104 && t !== 72) return;
197
+ let n = e.match(d.re);
198
+ if (!n) return;
199
+ let [, r, i, o, s, c] = n;
200
+ return l.set({
201
+ h: d._hue2deg(r),
202
+ s: a.channel.clamp.s(parseFloat(i)),
203
+ l: a.channel.clamp.l(parseFloat(o)),
204
+ a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
205
+ }, e);
206
+ },
207
+ stringify: (e) => {
208
+ let { h: t, s: n, l: r, a: i } = e;
209
+ 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)}%)`;
210
+ }
211
+ }, f = {
212
+ colors: {
213
+ aliceblue: "#f0f8ff",
214
+ antiquewhite: "#faebd7",
215
+ aqua: "#00ffff",
216
+ aquamarine: "#7fffd4",
217
+ azure: "#f0ffff",
218
+ beige: "#f5f5dc",
219
+ bisque: "#ffe4c4",
220
+ black: "#000000",
221
+ blanchedalmond: "#ffebcd",
222
+ blue: "#0000ff",
223
+ blueviolet: "#8a2be2",
224
+ brown: "#a52a2a",
225
+ burlywood: "#deb887",
226
+ cadetblue: "#5f9ea0",
227
+ chartreuse: "#7fff00",
228
+ chocolate: "#d2691e",
229
+ coral: "#ff7f50",
230
+ cornflowerblue: "#6495ed",
231
+ cornsilk: "#fff8dc",
232
+ crimson: "#dc143c",
233
+ cyanaqua: "#00ffff",
234
+ darkblue: "#00008b",
235
+ darkcyan: "#008b8b",
236
+ darkgoldenrod: "#b8860b",
237
+ darkgray: "#a9a9a9",
238
+ darkgreen: "#006400",
239
+ darkgrey: "#a9a9a9",
240
+ darkkhaki: "#bdb76b",
241
+ darkmagenta: "#8b008b",
242
+ darkolivegreen: "#556b2f",
243
+ darkorange: "#ff8c00",
244
+ darkorchid: "#9932cc",
245
+ darkred: "#8b0000",
246
+ darksalmon: "#e9967a",
247
+ darkseagreen: "#8fbc8f",
248
+ darkslateblue: "#483d8b",
249
+ darkslategray: "#2f4f4f",
250
+ darkslategrey: "#2f4f4f",
251
+ darkturquoise: "#00ced1",
252
+ darkviolet: "#9400d3",
253
+ deeppink: "#ff1493",
254
+ deepskyblue: "#00bfff",
255
+ dimgray: "#696969",
256
+ dimgrey: "#696969",
257
+ dodgerblue: "#1e90ff",
258
+ firebrick: "#b22222",
259
+ floralwhite: "#fffaf0",
260
+ forestgreen: "#228b22",
261
+ fuchsia: "#ff00ff",
262
+ gainsboro: "#dcdcdc",
263
+ ghostwhite: "#f8f8ff",
264
+ gold: "#ffd700",
265
+ goldenrod: "#daa520",
266
+ gray: "#808080",
267
+ green: "#008000",
268
+ greenyellow: "#adff2f",
269
+ grey: "#808080",
270
+ honeydew: "#f0fff0",
271
+ hotpink: "#ff69b4",
272
+ indianred: "#cd5c5c",
273
+ indigo: "#4b0082",
274
+ ivory: "#fffff0",
275
+ khaki: "#f0e68c",
276
+ lavender: "#e6e6fa",
277
+ lavenderblush: "#fff0f5",
278
+ lawngreen: "#7cfc00",
279
+ lemonchiffon: "#fffacd",
280
+ lightblue: "#add8e6",
281
+ lightcoral: "#f08080",
282
+ lightcyan: "#e0ffff",
283
+ lightgoldenrodyellow: "#fafad2",
284
+ lightgray: "#d3d3d3",
285
+ lightgreen: "#90ee90",
286
+ lightgrey: "#d3d3d3",
287
+ lightpink: "#ffb6c1",
288
+ lightsalmon: "#ffa07a",
289
+ lightseagreen: "#20b2aa",
290
+ lightskyblue: "#87cefa",
291
+ lightslategray: "#778899",
292
+ lightslategrey: "#778899",
293
+ lightsteelblue: "#b0c4de",
294
+ lightyellow: "#ffffe0",
295
+ lime: "#00ff00",
296
+ limegreen: "#32cd32",
297
+ linen: "#faf0e6",
298
+ magenta: "#ff00ff",
299
+ maroon: "#800000",
300
+ mediumaquamarine: "#66cdaa",
301
+ mediumblue: "#0000cd",
302
+ mediumorchid: "#ba55d3",
303
+ mediumpurple: "#9370db",
304
+ mediumseagreen: "#3cb371",
305
+ mediumslateblue: "#7b68ee",
306
+ mediumspringgreen: "#00fa9a",
307
+ mediumturquoise: "#48d1cc",
308
+ mediumvioletred: "#c71585",
309
+ midnightblue: "#191970",
310
+ mintcream: "#f5fffa",
311
+ mistyrose: "#ffe4e1",
312
+ moccasin: "#ffe4b5",
313
+ navajowhite: "#ffdead",
314
+ navy: "#000080",
315
+ oldlace: "#fdf5e6",
316
+ olive: "#808000",
317
+ olivedrab: "#6b8e23",
318
+ orange: "#ffa500",
319
+ orangered: "#ff4500",
320
+ orchid: "#da70d6",
321
+ palegoldenrod: "#eee8aa",
322
+ palegreen: "#98fb98",
323
+ paleturquoise: "#afeeee",
324
+ palevioletred: "#db7093",
325
+ papayawhip: "#ffefd5",
326
+ peachpuff: "#ffdab9",
327
+ peru: "#cd853f",
328
+ pink: "#ffc0cb",
329
+ plum: "#dda0dd",
330
+ powderblue: "#b0e0e6",
331
+ purple: "#800080",
332
+ rebeccapurple: "#663399",
333
+ red: "#ff0000",
334
+ rosybrown: "#bc8f8f",
335
+ royalblue: "#4169e1",
336
+ saddlebrown: "#8b4513",
337
+ salmon: "#fa8072",
338
+ sandybrown: "#f4a460",
339
+ seagreen: "#2e8b57",
340
+ seashell: "#fff5ee",
341
+ sienna: "#a0522d",
342
+ silver: "#c0c0c0",
343
+ skyblue: "#87ceeb",
344
+ slateblue: "#6a5acd",
345
+ slategray: "#708090",
346
+ slategrey: "#708090",
347
+ snow: "#fffafa",
348
+ springgreen: "#00ff7f",
349
+ tan: "#d2b48c",
350
+ teal: "#008080",
351
+ thistle: "#d8bfd8",
352
+ transparent: "#00000000",
353
+ turquoise: "#40e0d0",
354
+ violet: "#ee82ee",
355
+ wheat: "#f5deb3",
356
+ white: "#ffffff",
357
+ whitesmoke: "#f5f5f5",
358
+ yellow: "#ffff00",
359
+ yellowgreen: "#9acd32"
360
+ },
361
+ parse: (e) => {
362
+ e = e.toLowerCase();
363
+ let t = f.colors[e];
364
+ if (t) return u.parse(t);
365
+ },
366
+ stringify: (e) => {
367
+ let t = u.stringify(e);
368
+ for (let e in f.colors) if (f.colors[e] === t) return e;
369
+ }
370
+ }, p = {
371
+ 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,
372
+ parse: (e) => {
373
+ let t = e.charCodeAt(0);
374
+ if (t !== 114 && t !== 82) return;
375
+ let n = e.match(p.re);
376
+ if (!n) return;
377
+ let [, r, i, o, s, c, u, d, f] = n;
378
+ return l.set({
379
+ r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
+ g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
381
+ b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
382
+ a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
383
+ }, e);
384
+ },
385
+ stringify: (e) => {
386
+ let { r: t, g: n, b: r, a: i } = e;
387
+ 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)})`;
388
+ }
389
+ }, m = {
390
+ format: {
391
+ keyword: f,
392
+ hex: u,
393
+ rgb: p,
394
+ rgba: p,
395
+ hsl: d,
396
+ hsla: d
397
+ },
398
+ parse: (e) => {
399
+ if (typeof e != "string") return e;
400
+ let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
401
+ if (t) return t;
402
+ throw Error(`Unsupported color format: "${e}"`);
403
+ },
404
+ 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)
405
+ }, h = (e, t) => {
406
+ let n = m.parse(e);
407
+ for (let e in t) n[e] = a.channel.clamp[e](t[e]);
408
+ return m.stringify(n);
409
+ }, g = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return h(e, { a: t });
411
+ let i = l.set({
412
+ r: a.channel.clamp.r(e),
413
+ g: a.channel.clamp.g(t),
414
+ b: a.channel.clamp.b(n),
415
+ a: a.channel.clamp.a(r)
416
+ });
417
+ return m.stringify(i);
418
+ }, ee = (e) => {
419
+ 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);
420
+ return a.lang.round(i);
421
+ }, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
422
+ let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
423
+ return i !== o && (r[t] = o), m.stringify(r);
424
+ }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
425
+ let n = m.parse(e), r = {};
426
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
+ return h(e, r);
428
+ }, S = (e, t, n = 50) => {
429
+ 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, ee = 1 - h;
430
+ return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
431
+ }, C = (e, t = 100) => {
432
+ let n = m.parse(e);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, S(n, e, t);
434
+ };
435
+ //#endregion
436
+ //#region node_modules/dompurify/dist/purify.es.mjs
437
+ function ne(e, t) {
438
+ (t == null || t > e.length) && (t = e.length);
439
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
+ return r;
441
+ }
442
+ function re(e) {
443
+ if (Array.isArray(e)) return e;
444
+ }
445
+ function ie(e, t) {
446
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
+ if (n != null) {
448
+ var r, i, a, o, s = [], c = !0, l = !1;
449
+ try {
450
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
451
+ } catch (e) {
452
+ l = !0, i = e;
453
+ } finally {
454
+ try {
455
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
456
+ } finally {
457
+ if (l) throw i;
458
+ }
459
+ }
460
+ return s;
461
+ }
462
+ }
463
+ function ae() {
464
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
+ }
466
+ function oe(e, t) {
467
+ return re(e) || ie(e, t) || se(e, t) || ae();
468
+ }
469
+ function se(e, t) {
470
+ if (e) {
471
+ if (typeof e == "string") return ne(e, t);
472
+ var n = {}.toString.call(e).slice(8, -1);
473
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ne(e, t) : void 0;
474
+ }
475
+ }
476
+ var ce = Object.entries, le = Object.setPrototypeOf, ue = Object.isFrozen, de = Object.getPrototypeOf, fe = Object.getOwnPropertyDescriptor, w = Object.freeze, T = Object.seal, pe = Object.create, me = typeof Reflect < "u" && Reflect, he = me.apply, ge = me.construct;
477
+ w ||= function(e) {
478
+ return e;
479
+ }, T ||= function(e) {
480
+ return e;
481
+ }, he ||= function(e, t) {
482
+ var n = [...arguments].slice(2);
483
+ return e.apply(t, n);
484
+ }, ge ||= function(e) {
485
+ return new e(...[...arguments].slice(1));
486
+ };
487
+ var _e = k(Array.prototype.forEach), ve = k(Array.prototype.lastIndexOf), ye = k(Array.prototype.pop), be = k(Array.prototype.push), xe = k(Array.prototype.splice), Se = Array.isArray, Ce = k(String.prototype.toLowerCase), we = k(String.prototype.toString), Te = k(String.prototype.match), Ee = k(String.prototype.replace), De = k(String.prototype.indexOf), Oe = k(String.prototype.trim), E = k(Number.prototype.toString), ke = k(Boolean.prototype.toString), Ae = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), je = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), D = k(Object.prototype.hasOwnProperty), Me = k(Object.prototype.toString), O = k(RegExp.prototype.test), Ne = Pe(TypeError);
488
+ function k(e) {
489
+ return function(t) {
490
+ t instanceof RegExp && (t.lastIndex = 0);
491
+ var n = [...arguments].slice(1);
492
+ return he(e, t, n);
493
+ };
494
+ }
495
+ function Pe(e) {
496
+ return function() {
497
+ return ge(e, [...arguments]);
498
+ };
499
+ }
500
+ function A(e, t) {
501
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
502
+ if (le && le(e, null), !Se(t)) return e;
503
+ let r = t.length;
504
+ for (; r--;) {
505
+ let i = t[r];
506
+ if (typeof i == "string") {
507
+ let e = n(i);
508
+ e !== i && (ue(t) || (t[r] = e), i = e);
509
+ }
510
+ e[i] = !0;
511
+ }
512
+ return e;
513
+ }
514
+ function Fe(e) {
515
+ for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
516
+ return e;
517
+ }
518
+ function j(e) {
519
+ let t = pe(null);
520
+ for (let r of ce(e)) {
521
+ var n = oe(r, 2);
522
+ let i = n[0], a = n[1];
523
+ D(e, i) && (t[i] = Se(a) ? Fe(a) : a && typeof a == "object" && a.constructor === Object ? j(a) : a);
524
+ }
525
+ return t;
526
+ }
527
+ function Ie(e) {
528
+ switch (typeof e) {
529
+ case "string": return e;
530
+ case "number": return E(e);
531
+ case "boolean": return ke(e);
532
+ case "bigint": return Ae ? Ae(e) : "0";
533
+ case "symbol": return je ? je(e) : "Symbol()";
534
+ case "undefined": return Me(e);
535
+ case "function":
536
+ case "object": {
537
+ if (e === null) return Me(e);
538
+ let t = e, n = M(t, "toString");
539
+ if (typeof n == "function") {
540
+ let e = n(t);
541
+ return typeof e == "string" ? e : Me(e);
542
+ }
543
+ return Me(e);
544
+ }
545
+ default: return Me(e);
546
+ }
547
+ }
548
+ function M(e, t) {
549
+ for (; e !== null;) {
550
+ let n = fe(e, t);
551
+ if (n) {
552
+ if (n.get) return k(n.get);
553
+ if (typeof n.value == "function") return k(n.value);
554
+ }
555
+ e = de(e);
556
+ }
557
+ function n() {
558
+ return null;
559
+ }
560
+ return n;
561
+ }
562
+ function Le(e) {
563
+ try {
564
+ return O(e, ""), !0;
565
+ } catch {
566
+ return !1;
567
+ }
568
+ }
569
+ var Re = w(/* @__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(".")), ze = w(/* @__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.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Be = w([
570
+ "feBlend",
571
+ "feColorMatrix",
572
+ "feComponentTransfer",
573
+ "feComposite",
574
+ "feConvolveMatrix",
575
+ "feDiffuseLighting",
576
+ "feDisplacementMap",
577
+ "feDistantLight",
578
+ "feDropShadow",
579
+ "feFlood",
580
+ "feFuncA",
581
+ "feFuncB",
582
+ "feFuncG",
583
+ "feFuncR",
584
+ "feGaussianBlur",
585
+ "feImage",
586
+ "feMerge",
587
+ "feMergeNode",
588
+ "feMorphology",
589
+ "feOffset",
590
+ "fePointLight",
591
+ "feSpecularLighting",
592
+ "feSpotLight",
593
+ "feTile",
594
+ "feTurbulence"
595
+ ]), Ve = w([
596
+ "animate",
597
+ "color-profile",
598
+ "cursor",
599
+ "discard",
600
+ "font-face",
601
+ "font-face-format",
602
+ "font-face-name",
603
+ "font-face-src",
604
+ "font-face-uri",
605
+ "foreignobject",
606
+ "hatch",
607
+ "hatchpath",
608
+ "mesh",
609
+ "meshgradient",
610
+ "meshpatch",
611
+ "meshrow",
612
+ "missing-glyph",
613
+ "script",
614
+ "set",
615
+ "solidcolor",
616
+ "unknown",
617
+ "use"
618
+ ]), He = w(/* @__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(".")), Ue = w([
619
+ "maction",
620
+ "maligngroup",
621
+ "malignmark",
622
+ "mlongdiv",
623
+ "mscarries",
624
+ "mscarry",
625
+ "msgroup",
626
+ "mstack",
627
+ "msline",
628
+ "msrow",
629
+ "semantics",
630
+ "annotation",
631
+ "annotation-xml",
632
+ "mprescripts",
633
+ "none"
634
+ ]), We = w(["#text"]), Ge = w(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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".split(".")), Ke = w(/* @__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.dominant-baseline.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.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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(".")), qe = w(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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(".")), Je = w([
635
+ "xlink:href",
636
+ "xml:id",
637
+ "xlink:title",
638
+ "xml:space",
639
+ "xmlns:xlink"
640
+ ]), Ye = T(/{{[\w\W]*|^[\w\W]*}}/g), Xe = T(/<%[\w\W]*|^[\w\W]*%>/g), Ze = T(/\${[\w\W]*/g), Qe = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = T(/^aria-[\-\w]+$/), et = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = T(/^(?:\w+script|data):/i), nt = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = T(/^html$/i), it = T(/^[a-z][.\w]*(-[.\w]+)+$/i), at = T(/<[/\w!]/g), ot = T(/<[/\w]/g), st = T(/<\/no(script|embed|frames)/i), ct = T(/\/>/i), N = {
641
+ element: 1,
642
+ attribute: 2,
643
+ text: 3,
644
+ cdataSection: 4,
645
+ entityReference: 5,
646
+ entityNode: 6,
647
+ processingInstruction: 7,
648
+ comment: 8,
649
+ document: 9,
650
+ documentType: 10,
651
+ documentFragment: 11,
652
+ notation: 12
653
+ }, lt = [
654
+ "style",
655
+ "script",
656
+ "xmp",
657
+ "iframe",
658
+ "noembed",
659
+ "noframes",
660
+ "plaintext",
661
+ "noscript"
662
+ ], ut = w(A({}, lt)), dt = function() {
663
+ let e = {};
664
+ return _e(lt, (t) => {
665
+ e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
666
+ }), w(e);
667
+ }(), ft = function() {
668
+ return typeof window > "u" ? null : window;
669
+ }, pt = function(e, t) {
670
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
671
+ let n = null, r = "data-tt-policy-suffix";
672
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
673
+ let i = "dompurify" + (n ? "#" + n : "");
674
+ try {
675
+ return e.createPolicy(i, {
676
+ createHTML(e) {
677
+ return e;
678
+ },
679
+ createScriptURL(e) {
680
+ return e;
681
+ }
682
+ });
683
+ } catch {
684
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
685
+ }
686
+ }, mt = function() {
687
+ return {
688
+ afterSanitizeAttributes: [],
689
+ afterSanitizeElements: [],
690
+ afterSanitizeShadowDOM: [],
691
+ beforeSanitizeAttributes: [],
692
+ beforeSanitizeElements: [],
693
+ beforeSanitizeShadowDOM: [],
694
+ uponSanitizeAttribute: [],
695
+ uponSanitizeElement: [],
696
+ uponSanitizeShadowNode: []
697
+ };
698
+ }, ht = function(e, t, n, r) {
699
+ return D(e, t) && Se(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
700
+ }, gt = function(e, t, n) {
701
+ let r = D(e, t) ? e[t] : void 0;
702
+ return r && typeof r == "object" ? j(r) : n();
703
+ };
704
+ function _t() {
705
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ft(), t = (e) => _t(e);
706
+ if (t.version = "3.4.14", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
707
+ let n = e.document, r = n, i = r.currentScript;
708
+ e.DocumentFragment;
709
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
710
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
711
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null, y = o && o.prototype ? M(o.prototype, "ownerDocument") : null, b = function(e) {
712
+ return _ ? _(e) : e.nodeType;
713
+ }, x = function(e) {
714
+ return v ? v(e) : e.nodeName;
715
+ };
716
+ if (typeof a == "function") {
717
+ let e = n.createElement("template");
718
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
719
+ }
720
+ let S, C = "", ne, re = !1, ie = 0, ae = function() {
721
+ if (ie > 0) throw Ne("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
722
+ }, oe = function(e) {
723
+ ae(), ie++;
724
+ try {
725
+ return S.createHTML(e);
726
+ } finally {
727
+ ie--;
728
+ }
729
+ }, se = function(e) {
730
+ ae(), ie++;
731
+ try {
732
+ return S.createScriptURL(e);
733
+ } finally {
734
+ ie--;
735
+ }
736
+ }, le = function() {
737
+ return re ||= (ne = pt(u, i), !0), ne;
738
+ }, ue = n, de = ue.implementation, fe = ue.createNodeIterator, me = ue.createDocumentFragment, he = ue.getElementsByTagName, ge = r.importNode, E = mt();
739
+ t.isSupported = typeof ce == "function" && typeof g == "function" && de && de.createHTMLDocument !== void 0;
740
+ let ke = Ye, Ae = Xe, je = Ze, Me = Qe, k = $e, Pe = tt, Fe = nt, lt = it, vt = et, P = null, F = A({}, [
741
+ ...Re,
742
+ ...ze,
743
+ ...Be,
744
+ ...He,
745
+ ...We
746
+ ]), I = null, L = A({}, [
747
+ ...Ge,
748
+ ...Ke,
749
+ ...qe,
750
+ ...Je
751
+ ]), R = Object.seal(pe(null, {
752
+ tagNameCheck: {
753
+ writable: !0,
754
+ configurable: !1,
755
+ enumerable: !0,
756
+ value: null
757
+ },
758
+ attributeNameCheck: {
759
+ writable: !0,
760
+ configurable: !1,
761
+ enumerable: !0,
762
+ value: null
763
+ },
764
+ allowCustomizedBuiltInElements: {
765
+ writable: !0,
766
+ configurable: !1,
767
+ enumerable: !0,
768
+ value: !1
769
+ }
770
+ })), yt = null, bt = null, z = Object.seal(pe(null, {
771
+ tagCheck: {
772
+ writable: !0,
773
+ configurable: !1,
774
+ enumerable: !0,
775
+ value: null
776
+ },
777
+ attributeCheck: {
778
+ writable: !0,
779
+ configurable: !1,
780
+ enumerable: !0,
781
+ value: null
782
+ }
783
+ })), xt = !0, St = !0, Ct = !1, wt = !0, B = !1, Tt = !0, Et = !1, Dt = !1, Ot = null, kt = null, At = !1, jt = !1, Mt = !1, Nt = !1, Pt = !0, Ft = !1, It = "user-content-", Lt = !0, V = !1, H = {}, U = null, Rt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), zt = null, Bt = A({}, [
784
+ "audio",
785
+ "video",
786
+ "img",
787
+ "source",
788
+ "image",
789
+ "track"
790
+ ]), Vt = null, Ht = A({}, [
791
+ "alt",
792
+ "class",
793
+ "for",
794
+ "id",
795
+ "label",
796
+ "name",
797
+ "pattern",
798
+ "placeholder",
799
+ "role",
800
+ "summary",
801
+ "title",
802
+ "value",
803
+ "style",
804
+ "xmlns"
805
+ ]), W = "http://www.w3.org/1998/Math/MathML", Ut = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, q = !1, Wt = null, Gt = A({}, [
806
+ W,
807
+ Ut,
808
+ G
809
+ ], we), Kt = w([
810
+ "mi",
811
+ "mo",
812
+ "mn",
813
+ "ms",
814
+ "mtext"
815
+ ]), qt = A({}, Kt), Jt = w(["annotation-xml"]), Yt = A({}, Jt), Xt = A({}, [
816
+ "title",
817
+ "style",
818
+ "font",
819
+ "a",
820
+ "script"
821
+ ]), Zt = null, Qt = ["application/xhtml+xml", "text/html"], J = null, $t = null, en = n.createElement("form"), tn = function(e) {
822
+ return e instanceof RegExp || e instanceof Function;
823
+ }, nn = function() {
824
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
825
+ if ($t && $t === e) return;
826
+ (!e || typeof e != "object") && (e = {}), e = j(e), Zt = Qt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Zt === "application/xhtml+xml" ? we : Ce, P = ht(e, "ALLOWED_TAGS", F, { transform: J }), I = ht(e, "ALLOWED_ATTR", L, { transform: J }), Wt = ht(e, "ALLOWED_NAMESPACES", Gt, { transform: we }), Vt = ht(e, "ADD_URI_SAFE_ATTR", Ht, {
827
+ transform: J,
828
+ base: Ht
829
+ }), zt = ht(e, "ADD_DATA_URI_TAGS", Bt, {
830
+ transform: J,
831
+ base: Bt
832
+ }), U = ht(e, "FORBID_CONTENTS", Rt, { transform: J }), yt = ht(e, "FORBID_TAGS", j({}), { transform: J }), bt = ht(e, "FORBID_ATTR", j({}), { transform: J }), H = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, xt = e.ALLOW_ARIA_ATTR !== !1, St = e.ALLOW_DATA_ATTR !== !1, Ct = e.ALLOW_UNKNOWN_PROTOCOLS || !1, wt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, Tt = e.SAFE_FOR_XML !== !1, Et = e.WHOLE_DOCUMENT || !1, jt = e.RETURN_DOM || !1, Mt = e.RETURN_DOM_FRAGMENT || !1, Nt = e.RETURN_TRUSTED_TYPE || !1, At = e.FORCE_BODY || !1, Pt = e.SANITIZE_DOM !== !1, Ft = e.SANITIZE_NAMED_PROPS || !1, Lt = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, vt = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, qt = gt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, Kt)), Yt = gt(e, "HTML_INTEGRATION_POINTS", () => A({}, Jt));
833
+ let t = gt(e, "CUSTOM_ELEMENT_HANDLING", () => pe(null));
834
+ if (R = pe(null), D(t, "tagNameCheck") && tn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), T(R), B && (St = !1), Mt && (jt = !0), H && (P = A({}, We), I = pe(null), H.html === !0 && (A(P, Re), A(I, Ge)), H.svg === !0 && (A(P, ze), A(I, Ke), A(I, Je)), H.svgFilters === !0 && (A(P, Be), A(I, Ke), A(I, Je)), H.mathMl === !0 && (A(P, He), A(I, qe), A(I, Je))), z.tagCheck = null, z.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (P === F && (P = j(P)), A(P, e.ADD_TAGS, J))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (I === L && (I = j(I)), A(I, e.ADD_ATTR, J))), D(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === Rt && (U = j(U)), A(U, e.ADD_FORBID_CONTENTS, J)), Lt && (P["#text"] = !0), Et && A(P, [
835
+ "html",
836
+ "head",
837
+ "body"
838
+ ]), P.table && (A(P, ["tbody"]), delete yt.tbody), e.TRUSTED_TYPES_POLICY) {
839
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
840
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
841
+ let t = S;
842
+ S = e.TRUSTED_TYPES_POLICY;
843
+ try {
844
+ C = oe("");
845
+ } catch (e) {
846
+ throw S = t, e;
847
+ }
848
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = le()), S && typeof C == "string" && (C = oe("")));
849
+ w && w(e), $t = e;
850
+ }, rn = A({}, [
851
+ ...ze,
852
+ ...Be,
853
+ ...Ve
854
+ ]), an = A({}, [...He, ...Ue]), on = function(e, t, n) {
855
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === W ? e === "svg" && (n === "annotation-xml" || qt[n]) : !!rn[e];
856
+ }, sn = function(e, t, n) {
857
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Ut ? e === "math" && Yt[n] : !!an[e];
858
+ }, cn = function(e, t, n) {
859
+ return t.namespaceURI === Ut && !Yt[n] || t.namespaceURI === W && !qt[n] ? !1 : !an[e] && (Xt[e] || !rn[e]);
860
+ }, ln = function(e) {
861
+ let t = g(e);
862
+ (!t || !t.tagName) && (t = {
863
+ namespaceURI: K,
864
+ tagName: "template"
865
+ });
866
+ let n = Ce(e.tagName), r = Ce(t.tagName);
867
+ return Wt[e.namespaceURI] ? e.namespaceURI === Ut ? on(n, t, r) : e.namespaceURI === W ? sn(n, t, r) : e.namespaceURI === G ? cn(n, t, r) : !!(Zt === "application/xhtml+xml" && Wt[e.namespaceURI]) : !1;
868
+ }, Y = function(e) {
869
+ be(t.removed, { element: e });
870
+ try {
871
+ g(e).removeChild(e);
872
+ } catch {
873
+ if (p(e), !g(e)) throw Ne("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
874
+ }
875
+ }, un = function(e, t, n) {
876
+ try {
877
+ e.removeAttributeNode(t);
878
+ } catch {
879
+ try {
880
+ e.removeAttribute(n);
881
+ } catch {}
882
+ }
883
+ }, dn = function(e) {
884
+ pn(e);
885
+ let t = h(e);
886
+ if (t) {
887
+ let e = [];
888
+ _e(t, (t) => {
889
+ be(e, t);
890
+ }), _e(e, (e) => {
891
+ try {
892
+ p(e);
893
+ } catch {}
894
+ });
895
+ }
896
+ let n = te(e);
897
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
898
+ let r = n[t], i = r && r.name;
899
+ typeof i == "string" && un(e, r, i);
900
+ }
901
+ }, X = function(e, n, r) {
902
+ if (!r) try {
903
+ r = n.getAttributeNode(e);
904
+ } catch {
905
+ r = null;
906
+ }
907
+ be(t.removed, {
908
+ attribute: r || null,
909
+ from: n
910
+ });
911
+ try {
912
+ r ? n.removeAttributeNode(r) : n.removeAttribute(e);
913
+ } catch {
914
+ try {
915
+ n.removeAttribute(e);
916
+ } catch {}
917
+ }
918
+ if (e === "is") {
919
+ if (jt || Mt) try {
920
+ Y(n);
921
+ } catch {}
922
+ else try {
923
+ n.setAttribute(e, "");
924
+ } catch {}
925
+ }
926
+ }, fn = function(e) {
927
+ let t = te(e);
928
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
929
+ let r = t[n], i = r && r.name;
930
+ typeof i != "string" || I[J(i)] || un(e, r, i);
931
+ }
932
+ }, pn = function(e) {
933
+ let t = [e];
934
+ for (; t.length > 0;) {
935
+ let e = t.pop();
936
+ b(e) === N.element && fn(e);
937
+ let n = h(e);
938
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
939
+ }
940
+ }, mn = function(e, t) {
941
+ return Tt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
942
+ }, hn = function(e) {
943
+ if (!Tt) return;
944
+ let t = [e];
945
+ for (; t.length > 0;) {
946
+ let e = t.pop(), n = b(e);
947
+ if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
948
+ try {
949
+ p(e);
950
+ } catch {}
951
+ continue;
952
+ }
953
+ if (n === N.element) {
954
+ let t = e, n = J(x(e));
955
+ try {
956
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
957
+ } catch {}
958
+ }
959
+ let r = h(e);
960
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
961
+ }
962
+ }, Z = function(e) {
963
+ let t = null, r = null;
964
+ if (At) e = "<remove></remove>" + e;
965
+ else {
966
+ let t = Te(e, /^[\r\n\t ]+/);
967
+ r = t && t[0];
968
+ }
969
+ Zt === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
970
+ let i = S ? oe(e) : e;
971
+ if (K === G) try {
972
+ t = new l().parseFromString(i, Zt);
973
+ } catch {}
974
+ if (!t || !t.documentElement) {
975
+ t = de.createDocument(K, "template", null);
976
+ try {
977
+ t.documentElement.innerHTML = q ? C : i;
978
+ } catch {}
979
+ }
980
+ let a = t.body || t.documentElement;
981
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? he.call(t, Et ? "html" : "body")[0] : Et ? t.documentElement : a;
982
+ }, gn = function(e) {
983
+ let t = y ? y(e) : e.ownerDocument;
984
+ return fe.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
985
+ }, _n = function(e) {
986
+ return e = Ee(e, ke, " "), e = Ee(e, Ae, " "), e = Ee(e, je, " "), e;
987
+ }, vn = function(e) {
988
+ e.normalize();
989
+ let t = y ? y(e) : e.ownerDocument, n = fe.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
990
+ for (; r;) r.data = _n(r.data), r = n.nextNode();
991
+ let i = e.querySelectorAll?.call(e, "template");
992
+ i && _e(i, (e) => {
993
+ bn(e.content) && vn(e.content);
994
+ });
995
+ }, yn = function(e) {
996
+ let t = v ? v(e) : null;
997
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
998
+ }, bn = function(e) {
999
+ if (!_ || typeof e != "object" || !e) return !1;
1000
+ try {
1001
+ return _(e) === N.documentFragment;
1002
+ } catch {
1003
+ return !1;
1004
+ }
1005
+ }, Q = function(e) {
1006
+ if (!_ || typeof e != "object" || !e) return !1;
1007
+ try {
1008
+ return typeof _(e) == "number";
1009
+ } catch {
1010
+ return !1;
1011
+ }
1012
+ };
1013
+ function $(e, n, r) {
1014
+ e.length !== 0 && _e(e, (e) => {
1015
+ e.call(t, n, r, $t);
1016
+ });
1017
+ }
1018
+ let xn = function(e, t) {
1019
+ return !!(Tt && e.hasChildNodes() && !Q(e.firstElementChild) && O(at, e.textContent) && O(at, e.innerHTML) || Tt && e.namespaceURI === G && ut[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && O(dt[t], e.textContent)) || e.nodeType === N.processingInstruction || Tt && e.nodeType === N.comment && O(ot, e.data));
1020
+ }, Sn = function(e, t) {
1021
+ return e instanceof RegExp ? O(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1022
+ }, Cn = function(e, t, n) {
1023
+ if (!yt[t] && kn(t) && Sn(R.tagNameCheck, t)) return !1;
1024
+ if (Lt && !U[t]) {
1025
+ let t = g(e), r = h(e);
1026
+ if (r && t) {
1027
+ let i = r.length;
1028
+ for (let a = i - 1; a >= 0; --a) {
1029
+ let i = e === n ? f(r[a], !0) : r[a];
1030
+ t.insertBefore(i, m(e));
1031
+ }
1032
+ }
1033
+ }
1034
+ return Y(e), !0;
1035
+ }, wn = function(e, t, n, r) {
1036
+ return e.length === 0 ? t : t === n || t === r ? j(t) : t;
1037
+ }, Tn = function(e, t) {
1038
+ return e === t || g(e) !== null ? !1 : (V && pn(e), !0);
1039
+ }, En = function(e, n) {
1040
+ if ($(E.beforeSanitizeElements, e, null), Tn(e, n)) return !0;
1041
+ if (yn(e)) return Y(e), !0;
1042
+ let r = J(x(e));
1043
+ if (P = wn(E.uponSanitizeElement, P, F, Ot), $(E.uponSanitizeElement, e, {
1044
+ tagName: r,
1045
+ allowedTags: P
1046
+ }), Tn(e, n)) return !0;
1047
+ if (xn(e, r)) return Y(e), !0;
1048
+ if (yt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !P[r]) {
1049
+ let t = Cn(e, r, n);
1050
+ return t === !1 && $(E.afterSanitizeElements, e, null), t;
1051
+ }
1052
+ if (b(e) === N.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(st, e.innerHTML)) return Y(e), !0;
1053
+ if (B && e.nodeType === N.text) {
1054
+ let n = _n(e.textContent);
1055
+ e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1056
+ }
1057
+ return $(E.afterSanitizeElements, e, null), !1;
1058
+ }, Dn = function(e, t, r) {
1059
+ if (bt[t] || mn(t, e) || Pt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
1060
+ let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
1061
+ return St && O(Me, t) || xt && O(k, t) ? !0 : i ? Vt[t] || O(vt, Ee(r, Fe, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && zt[e] || Ct && !O(Pe, Ee(r, Fe, "")) ? !0 : !r : kn(e) && Sn(R.tagNameCheck, e) && Sn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Sn(R.tagNameCheck, r);
1062
+ }, On = A({}, [
1063
+ "annotation-xml",
1064
+ "color-profile",
1065
+ "font-face",
1066
+ "font-face-format",
1067
+ "font-face-name",
1068
+ "font-face-src",
1069
+ "font-face-uri",
1070
+ "missing-glyph"
1071
+ ]), kn = function(e) {
1072
+ return !On[Ce(e)] && O(lt, e);
1073
+ }, An = function(e, t, n, r) {
1074
+ if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1075
+ case "TrustedHTML": return oe(r);
1076
+ case "TrustedScriptURL": return se(r);
1077
+ }
1078
+ return r;
1079
+ }, jn = function(e, n, r, i) {
1080
+ try {
1081
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), yn(e) ? Y(e) : ye(t.removed);
1082
+ } catch {
1083
+ X(n, e);
1084
+ }
1085
+ }, Mn = function(e) {
1086
+ $(E.beforeSanitizeAttributes, e, null);
1087
+ let t = e.attributes;
1088
+ if (!t || yn(e)) return;
1089
+ I = wn(E.uponSanitizeAttribute, I, L, kt);
1090
+ let n = {
1091
+ attrName: "",
1092
+ attrValue: "",
1093
+ keepAttr: !0,
1094
+ allowedAttributes: I,
1095
+ forceKeepAttr: void 0
1096
+ }, r = t.length, i = J(e.nodeName);
1097
+ for (; r--;) {
1098
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
1099
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(E.uponSanitizeAttribute, e, n), d = n.attrValue, Ft && (l === "id" || l === "name") && De(d, It) !== 0 && (X(o, e, a), d = It + d), Tt && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1100
+ X(o, e, a);
1101
+ continue;
1102
+ }
1103
+ if (l === "attributename" && Te(d, "href")) {
1104
+ X(o, e, a);
1105
+ continue;
1106
+ }
1107
+ if (!n.forceKeepAttr) {
1108
+ if (!n.keepAttr) {
1109
+ X(o, e, a);
1110
+ continue;
1111
+ }
1112
+ if (!wt && O(ct, d)) {
1113
+ X(o, e, a);
1114
+ continue;
1115
+ }
1116
+ if (B && (d = _n(d)), !Dn(i, l, d)) {
1117
+ X(o, e, a);
1118
+ continue;
1119
+ }
1120
+ d = An(i, l, s, d), d !== u && jn(e, o, s, d);
1121
+ }
1122
+ }
1123
+ $(E.afterSanitizeAttributes, e, null);
1124
+ }, Nn = function(e) {
1125
+ let t = null, n = gn(e);
1126
+ for ($(E.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(E.uponSanitizeShadowNode, t, null), En(t, e), Mn(t), bn(t.content) && Nn(t.content), b(t) === N.element) {
1127
+ let e = ee(t);
1128
+ bn(e) && (Pn(e), Nn(e));
1129
+ }
1130
+ $(E.afterSanitizeShadowDOM, e, null);
1131
+ }, Pn = function(e) {
1132
+ let t = [{
1133
+ node: e,
1134
+ shadow: null
1135
+ }];
1136
+ for (; t.length > 0;) {
1137
+ let e = t.pop();
1138
+ if (e.shadow) {
1139
+ Nn(e.shadow);
1140
+ continue;
1141
+ }
1142
+ let n = e.node, r = b(n) === N.element, i = h(n);
1143
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1144
+ node: i[e],
1145
+ shadow: null
1146
+ });
1147
+ if (r) {
1148
+ let e = v ? v(n) : null;
1149
+ if (typeof e == "string" && J(e) === "template") {
1150
+ let e = n.content;
1151
+ bn(e) && t.push({
1152
+ node: e,
1153
+ shadow: null
1154
+ });
1155
+ }
1156
+ }
1157
+ if (r) {
1158
+ let e = ee(n);
1159
+ bn(e) && t.push({
1160
+ node: null,
1161
+ shadow: e
1162
+ }, {
1163
+ node: e,
1164
+ shadow: null
1165
+ });
1166
+ }
1167
+ }
1168
+ };
1169
+ return t.sanitize = function(e) {
1170
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1171
+ if (q = !e, q && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = Ie(e), typeof e != "string")) throw Ne("dirty is not a string, aborting");
1172
+ if (!t.isSupported) return e;
1173
+ Dt ? (P = Ot, I = kt) : nn(n), (E.uponSanitizeElement.length > 0 || E.uponSanitizeAttribute.length > 0) && (P = j(P)), E.uponSanitizeAttribute.length > 0 && (I = j(I)), t.removed = [];
1174
+ let c = V && typeof e != "string" && Q(e);
1175
+ if (c) {
1176
+ hn(e);
1177
+ let t = x(e);
1178
+ if (typeof t == "string") {
1179
+ let n = J(t);
1180
+ if (!P[n] || yt[n]) throw dn(e), Ne("root node is forbidden and cannot be sanitized in-place");
1181
+ }
1182
+ if (yn(e)) throw dn(e), Ne("root node is clobbered and cannot be sanitized in-place");
1183
+ try {
1184
+ Pn(e);
1185
+ } catch (t) {
1186
+ throw dn(e), t;
1187
+ }
1188
+ } else if (Q(e)) i = Z("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Pn(a);
1189
+ else {
1190
+ if (!jt && !B && !Et && e.indexOf("<") === -1) return S && Nt ? oe(e) : e;
1191
+ if (i = Z(e), !i) return jt ? null : Nt ? C : "";
1192
+ }
1193
+ i && At && Y(i.firstChild);
1194
+ let l = c ? e : i;
1195
+ try {
1196
+ let e = gn(l);
1197
+ for (; o = e.nextNode();) En(o, l), Mn(o), bn(o.content) && Nn(o.content);
1198
+ } catch (n) {
1199
+ throw c && (dn(e), _e(t.removed, (e) => {
1200
+ e.element && pn(e.element);
1201
+ })), n;
1202
+ }
1203
+ if (c) return _e(t.removed, (e) => {
1204
+ e.element && pn(e.element);
1205
+ }), B && vn(e), e;
1206
+ if (jt) {
1207
+ if (B && vn(i), Mt) for (s = me.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1208
+ else s = i;
1209
+ return (I.shadowroot || I.shadowrootmode) && (s = ge.call(r, s, !0)), s;
1210
+ }
1211
+ let u = Et ? i.outerHTML : i.innerHTML;
1212
+ return Et && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && O(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = _n(u)), S && Nt ? oe(u) : u;
1213
+ }, t.setConfig = function() {
1214
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1215
+ nn(e), Dt = !0, Ot = P, kt = I;
1216
+ }, t.clearConfig = function() {
1217
+ $t = null, Dt = !1, Ot = null, kt = null, S = ne, C = "";
1218
+ }, t.isValidAttribute = function(e, t, n) {
1219
+ $t || nn({});
1220
+ let r = J(e), i = J(t);
1221
+ return Dn(r, i, n);
1222
+ }, t.addHook = function(e, t) {
1223
+ typeof t == "function" && D(E, e) && be(E[e], t);
1224
+ }, t.removeHook = function(e, t) {
1225
+ if (D(E, e)) {
1226
+ if (t !== void 0) {
1227
+ let n = ve(E[e], t);
1228
+ return n === -1 ? void 0 : xe(E[e], n, 1)[0];
1229
+ }
1230
+ return ye(E[e]);
1231
+ }
1232
+ }, t.removeHooks = function(e) {
1233
+ D(E, e) && (E[e] = []);
1234
+ }, t.removeAllHooks = function() {
1235
+ E = mt();
1236
+ }, t;
1237
+ }
1238
+ var vt = _t(), P = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1239
+ let r = { depth: n };
1240
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => P(e, t, r)), e;
1241
+ if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1242
+ e.includes(t) || e.push(t);
1243
+ }), e;
1244
+ if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1245
+ if (t != null && typeof e == "object" && typeof t == "object") {
1246
+ let r = e;
1247
+ Object.entries(t).forEach(([t, i]) => {
1248
+ if (typeof i == "object") {
1249
+ if (i === null) return;
1250
+ Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1251
+ value: void 0,
1252
+ writable: !0,
1253
+ enumerable: !0,
1254
+ configurable: !0
1255
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = P(r[t], i, { depth: n - 1 }));
1256
+ } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1257
+ value: i,
1258
+ writable: !0,
1259
+ enumerable: !0,
1260
+ configurable: !0
1261
+ }));
1262
+ });
1263
+ }
1264
+ return e;
1265
+ }, "assignWithDepth"), F = P, I = "#ffffff", L = "#f2f2f2", R = /* @__PURE__ */ n((e, t) => t ? x(e, {
1266
+ s: -40,
1267
+ l: 10
1268
+ }) : x(e, {
1269
+ s: -40,
1270
+ l: -10
1271
+ }), "mkBorder"), yt = class {
1272
+ static {
1273
+ n(this, "Theme");
1274
+ }
1275
+ constructor() {
1276
+ this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1277
+ }
1278
+ updateColors() {
1279
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1280
+ h: 180,
1281
+ l: 5
1282
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1283
+ h: 210,
1284
+ l: 150
1285
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1286
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1287
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1288
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1289
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1290
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1291
+ let e = this.darkMode ? -4 : -1;
1292
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1293
+ h: 180,
1294
+ s: -15,
1295
+ l: e * (5 + t * 3)
1296
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1297
+ h: 180,
1298
+ s: -15,
1299
+ l: e * (8 + t * 3)
1300
+ });
1301
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1302
+ h: 60,
1303
+ l: -10
1304
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1305
+ h: -60,
1306
+ l: -10
1307
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1308
+ h: 120,
1309
+ l: 0
1310
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1311
+ h: 60,
1312
+ l: -20
1313
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1314
+ h: -60,
1315
+ l: -20
1316
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1317
+ h: 120,
1318
+ l: -10
1319
+ }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1320
+ h: 60,
1321
+ l: -30
1322
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1323
+ h: -60,
1324
+ l: -30
1325
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1326
+ h: 60,
1327
+ l: -30
1328
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1329
+ h: 120,
1330
+ l: -30
1331
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1332
+ h: 120,
1333
+ l: -30
1334
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1335
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1336
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1337
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1338
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1339
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1340
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1341
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1342
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1343
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1344
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1345
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1346
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1347
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1348
+ textColor: this.cynefin?.textColor || this.textColor,
1349
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1350
+ }, this.radar = {
1351
+ axisColor: this.radar?.axisColor || this.lineColor,
1352
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1353
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1354
+ curveOpacity: this.radar?.curveOpacity || .5,
1355
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1356
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1357
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1358
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1359
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1360
+ legendFontSize: this.radar?.legendFontSize || 12
1361
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1362
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1363
+ axisColor: this.wardley?.axisColor || this.lineColor,
1364
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1365
+ gridColor: this.wardley?.gridColor || this.gridColor,
1366
+ componentFill: this.wardley?.componentFill || this.background,
1367
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1368
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1369
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1370
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1371
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1372
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1373
+ annotationFill: this.wardley?.annotationFill || this.background
1374
+ }, 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 || x(this.primaryColor, {
1375
+ r: 5,
1376
+ g: 5,
1377
+ b: 5
1378
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1379
+ r: 10,
1380
+ g: 10,
1381
+ b: 10
1382
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1383
+ r: 15,
1384
+ g: 15,
1385
+ b: 15
1386
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1387
+ r: -5,
1388
+ g: -5,
1389
+ b: -5
1390
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1391
+ r: -10,
1392
+ g: -10,
1393
+ b: -10
1394
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1395
+ r: -15,
1396
+ g: -15,
1397
+ b: -15
1398
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1399
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1400
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1401
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1402
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1403
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1404
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1405
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1406
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1407
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1408
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1409
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1410
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1411
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1412
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1413
+ }
1414
+ calculate(e) {
1415
+ if (typeof e != "object") {
1416
+ this.updateColors();
1417
+ return;
1418
+ }
1419
+ let t = Object.keys(e);
1420
+ t.forEach((t) => {
1421
+ this[t] = e[t];
1422
+ }), this.updateColors(), t.forEach((t) => {
1423
+ this[t] = e[t];
1424
+ });
1425
+ }
1426
+ }, bt = /* @__PURE__ */ n((e) => {
1427
+ let t = new yt();
1428
+ return t.calculate(e), t;
1429
+ }, "getThemeVariables"), z = class {
1430
+ static {
1431
+ n(this, "Theme");
1432
+ }
1433
+ constructor() {
1434
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1435
+ }
1436
+ updateColors() {
1437
+ this.secondBkg = y(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 = y(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(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 = C(this.doneTaskBkgColor), 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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
1438
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1439
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1440
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1441
+ h: 30,
1442
+ s: -30,
1443
+ l: -(-10 + e * 4)
1444
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1445
+ h: 30,
1446
+ s: -30,
1447
+ l: -(-7 + e * 4)
1448
+ });
1449
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1450
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1451
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1452
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, 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";
1453
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1454
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1455
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1456
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1457
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1458
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1459
+ cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1460
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1461
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1462
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1463
+ complexBg: this.cynefin?.complexBg || "#1B5E20",
1464
+ complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1465
+ chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1466
+ clearBg: this.cynefin?.clearBg || "#F57F17",
1467
+ confusionBg: this.cynefin?.confusionBg || "#4A148C",
1468
+ textColor: this.cynefin?.textColor || this.textColor,
1469
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1470
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1471
+ r: 5,
1472
+ g: 5,
1473
+ b: 5
1474
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1475
+ r: 10,
1476
+ g: 10,
1477
+ b: 10
1478
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1479
+ r: 15,
1480
+ g: 15,
1481
+ b: 15
1482
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1483
+ r: -5,
1484
+ g: -5,
1485
+ b: -5
1486
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1487
+ r: -10,
1488
+ g: -10,
1489
+ b: -10
1490
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1491
+ r: -15,
1492
+ g: -15,
1493
+ b: -15
1494
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1495
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1496
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1497
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1498
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1499
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1500
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1501
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1502
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1503
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1504
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1505
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1506
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1507
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1508
+ }, this.packet = {
1509
+ startByteColor: this.primaryTextColor,
1510
+ endByteColor: this.primaryTextColor,
1511
+ labelColor: this.primaryTextColor,
1512
+ titleColor: this.primaryTextColor,
1513
+ blockStrokeColor: this.primaryTextColor,
1514
+ blockFillColor: this.background
1515
+ }, this.radar = {
1516
+ axisColor: this.radar?.axisColor || this.lineColor,
1517
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1518
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1519
+ curveOpacity: this.radar?.curveOpacity || .5,
1520
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1521
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1522
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1523
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1524
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1525
+ legendFontSize: this.radar?.legendFontSize || 12
1526
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1527
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1528
+ axisColor: this.wardley?.axisColor || this.lineColor,
1529
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1530
+ gridColor: this.wardley?.gridColor || this.gridColor,
1531
+ componentFill: this.wardley?.componentFill || this.mainBkg,
1532
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1533
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1534
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1535
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1536
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1537
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1538
+ annotationFill: this.wardley?.annotationFill || this.mainBkg
1539
+ }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1540
+ }
1541
+ calculate(e) {
1542
+ if (typeof e != "object") {
1543
+ this.updateColors();
1544
+ return;
1545
+ }
1546
+ let t = Object.keys(e);
1547
+ t.forEach((t) => {
1548
+ this[t] = e[t];
1549
+ }), this.updateColors(), t.forEach((t) => {
1550
+ this[t] = e[t];
1551
+ });
1552
+ }
1553
+ }, xt = /* @__PURE__ */ n((e) => {
1554
+ let t = new z();
1555
+ return t.calculate(e), t;
1556
+ }, "getThemeVariables"), St = class {
1557
+ static {
1558
+ n(this, "Theme");
1559
+ }
1560
+ constructor() {
1561
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = R(this.primaryColor, this.darkMode), 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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#FBFBFF", 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 = g(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", 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.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1562
+ }
1563
+ updateColors() {
1564
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1565
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1566
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1567
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1568
+ h: 30,
1569
+ l: -(5 + e * 5)
1570
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1571
+ h: 30,
1572
+ l: -(7 + e * 5)
1573
+ });
1574
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1575
+ this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
1576
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1577
+ }
1578
+ 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 = this.border1, 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1579
+ h: 60,
1580
+ l: -20
1581
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1582
+ h: -60,
1583
+ l: -40
1584
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1585
+ h: 120,
1586
+ l: -40
1587
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1588
+ h: 60,
1589
+ l: -40
1590
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1591
+ h: -90,
1592
+ l: -40
1593
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1594
+ h: 120,
1595
+ l: -30
1596
+ }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1597
+ h: 60,
1598
+ l: -30
1599
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1600
+ h: -60,
1601
+ l: -30
1602
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1603
+ h: 60,
1604
+ l: -30
1605
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1606
+ h: 120,
1607
+ l: -30
1608
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1609
+ h: 120,
1610
+ l: -30
1611
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1612
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1613
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1614
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1615
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1616
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1617
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1618
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1619
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1620
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1621
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1622
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1623
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1624
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1625
+ textColor: this.cynefin?.textColor || this.textColor,
1626
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1627
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1628
+ r: 5,
1629
+ g: 5,
1630
+ b: 5
1631
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1632
+ r: 10,
1633
+ g: 10,
1634
+ b: 10
1635
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1636
+ r: 15,
1637
+ g: 15,
1638
+ b: 15
1639
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1640
+ r: -5,
1641
+ g: -5,
1642
+ b: -5
1643
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1644
+ r: -10,
1645
+ g: -10,
1646
+ b: -10
1647
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1648
+ r: -15,
1649
+ g: -15,
1650
+ b: -15
1651
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1652
+ axisColor: this.radar?.axisColor || this.lineColor,
1653
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1654
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1655
+ curveOpacity: this.radar?.curveOpacity || .5,
1656
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1657
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1658
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1659
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1660
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1661
+ legendFontSize: this.radar?.legendFontSize || 12
1662
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1663
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1664
+ axisColor: this.wardley?.axisColor || this.lineColor,
1665
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1666
+ gridColor: this.wardley?.gridColor || this.gridColor,
1667
+ componentFill: this.wardley?.componentFill || this.background,
1668
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1669
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1670
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1671
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1672
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1673
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1674
+ annotationFill: this.wardley?.annotationFill || this.background
1675
+ }, this.xyChart = {
1676
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1677
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1678
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1679
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1680
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1681
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1682
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1683
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1684
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1685
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1686
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1687
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1688
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1689
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(C(this.git0), 25), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1690
+ }
1691
+ calculate(e) {
1692
+ if (Object.keys(this).forEach((e) => {
1693
+ this[e] === "calculated" && (this[e] = void 0);
1694
+ }), typeof e != "object") {
1695
+ this.updateColors();
1696
+ return;
1697
+ }
1698
+ let t = Object.keys(e);
1699
+ t.forEach((t) => {
1700
+ this[t] = e[t];
1701
+ }), this.updateColors(), t.forEach((t) => {
1702
+ this[t] = e[t];
1703
+ });
1704
+ }
1705
+ }, Ct = /* @__PURE__ */ n((e) => {
1706
+ let t = new St();
1707
+ return t.calculate(e), t;
1708
+ }, "getThemeVariables"), wt = class {
1709
+ static {
1710
+ n(this, "Theme");
1711
+ }
1712
+ constructor() {
1713
+ 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 = y("#cde498", 10), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.primaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1714
+ }
1715
+ updateColors() {
1716
+ this.actorBorder = b(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1717
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1718
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1719
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1720
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1721
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1722
+ h: 30,
1723
+ s: -30,
1724
+ l: -(5 + e * 5)
1725
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1726
+ h: 30,
1727
+ s: -30,
1728
+ l: -(8 + e * 5)
1729
+ });
1730
+ 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 || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
1731
+ h: 40,
1732
+ l: -40
1733
+ }), this.pie7 = this.pie7 || x(this.primaryColor, {
1734
+ h: 60,
1735
+ l: -10
1736
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1737
+ h: -60,
1738
+ l: -10
1739
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1740
+ h: 120,
1741
+ l: 0
1742
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1743
+ h: 60,
1744
+ l: -50
1745
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1746
+ h: -60,
1747
+ l: -50
1748
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1749
+ h: 120,
1750
+ l: -50
1751
+ }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1752
+ h: 60,
1753
+ l: -30
1754
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1755
+ h: -60,
1756
+ l: -30
1757
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1758
+ h: 60,
1759
+ l: -30
1760
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1761
+ h: 120,
1762
+ l: -30
1763
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1764
+ h: 120,
1765
+ l: -30
1766
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1767
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1768
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1769
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1770
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1771
+ cliffColor: this.cynefin?.cliffColor || "#8B4513",
1772
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1773
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1774
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1775
+ complexBg: this.cynefin?.complexBg || "#C8E6C9",
1776
+ complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1777
+ chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1778
+ clearBg: this.cynefin?.clearBg || "#FFF9C4",
1779
+ confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1780
+ textColor: this.cynefin?.textColor || this.textColor,
1781
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1782
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1783
+ r: 5,
1784
+ g: 5,
1785
+ b: 5
1786
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1787
+ r: 10,
1788
+ g: 10,
1789
+ b: 10
1790
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1791
+ r: 15,
1792
+ g: 15,
1793
+ b: 15
1794
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1795
+ r: -5,
1796
+ g: -5,
1797
+ b: -5
1798
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1799
+ r: -10,
1800
+ g: -10,
1801
+ b: -10
1802
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1803
+ r: -15,
1804
+ g: -15,
1805
+ b: -15
1806
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1807
+ startByteColor: this.primaryTextColor,
1808
+ endByteColor: this.primaryTextColor,
1809
+ labelColor: this.primaryTextColor,
1810
+ titleColor: this.primaryTextColor,
1811
+ blockStrokeColor: this.primaryTextColor,
1812
+ blockFillColor: this.mainBkg
1813
+ }, this.radar = {
1814
+ axisColor: this.radar?.axisColor || this.lineColor,
1815
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1816
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1817
+ curveOpacity: this.radar?.curveOpacity || .5,
1818
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1819
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1820
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1821
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1822
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1823
+ legendFontSize: this.radar?.legendFontSize || 12
1824
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1825
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1826
+ axisColor: this.wardley?.axisColor || this.lineColor,
1827
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1828
+ gridColor: this.wardley?.gridColor || this.gridColor,
1829
+ componentFill: this.wardley?.componentFill || this.background,
1830
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1831
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1832
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1833
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1834
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1835
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1836
+ annotationFill: this.wardley?.annotationFill || this.background
1837
+ }, this.xyChart = {
1838
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1839
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1840
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1841
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1842
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1843
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1844
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1845
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1846
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1847
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1848
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1849
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1850
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1851
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1852
+ }
1853
+ calculate(e) {
1854
+ if (typeof e != "object") {
1855
+ this.updateColors();
1856
+ return;
1857
+ }
1858
+ let t = Object.keys(e);
1859
+ t.forEach((t) => {
1860
+ this[t] = e[t];
1861
+ }), this.updateColors(), t.forEach((t) => {
1862
+ this[t] = e[t];
1863
+ });
1864
+ }
1865
+ }, B = /* @__PURE__ */ n((e) => {
1866
+ let t = new wt();
1867
+ return t.calculate(e), t;
1868
+ }, "getThemeVariables"), Tt = class {
1869
+ static {
1870
+ n(this, "Theme");
1871
+ }
1872
+ constructor() {
1873
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(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.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1874
+ }
1875
+ updateColors() {
1876
+ this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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";
1877
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1878
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1879
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1880
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1881
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) });
1882
+ 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 = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(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 = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
1883
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1884
+ 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";
1885
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1886
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1887
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1888
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1889
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1890
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1891
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1892
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1893
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1894
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1895
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1896
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1897
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1898
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1899
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1900
+ textColor: this.cynefin?.textColor || this.textColor,
1901
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1902
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1903
+ r: 5,
1904
+ g: 5,
1905
+ b: 5
1906
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1907
+ r: 10,
1908
+ g: 10,
1909
+ b: 10
1910
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1911
+ r: 15,
1912
+ g: 15,
1913
+ b: 15
1914
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1915
+ r: -5,
1916
+ g: -5,
1917
+ b: -5
1918
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1919
+ r: -10,
1920
+ g: -10,
1921
+ b: -10
1922
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1923
+ r: -15,
1924
+ g: -15,
1925
+ b: -15
1926
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1927
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1928
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1929
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1930
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1931
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1932
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1933
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1934
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1935
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1936
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1937
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1938
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1939
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1940
+ }, this.radar = {
1941
+ axisColor: this.radar?.axisColor || this.lineColor,
1942
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1943
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1944
+ curveOpacity: this.radar?.curveOpacity || .5,
1945
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1946
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1947
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1948
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1949
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1950
+ legendFontSize: this.radar?.legendFontSize || 12
1951
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1952
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1953
+ axisColor: this.wardley?.axisColor || this.lineColor,
1954
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1955
+ gridColor: this.wardley?.gridColor || this.gridColor,
1956
+ componentFill: this.wardley?.componentFill || this.background,
1957
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1958
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1959
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1960
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1961
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1962
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1963
+ annotationFill: this.wardley?.annotationFill || this.background
1964
+ }, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1965
+ }
1966
+ calculate(e) {
1967
+ if (typeof e != "object") {
1968
+ this.updateColors();
1969
+ return;
1970
+ }
1971
+ let t = Object.keys(e);
1972
+ t.forEach((t) => {
1973
+ this[t] = e[t];
1974
+ }), this.updateColors(), t.forEach((t) => {
1975
+ this[t] = e[t];
1976
+ });
1977
+ }
1978
+ }, Et = /* @__PURE__ */ n((e) => {
1979
+ let t = new Tt();
1980
+ return t.calculate(e), t;
1981
+ }, "getThemeVariables"), Dt = class {
1982
+ static {
1983
+ n(this, "Theme");
1984
+ }
1985
+ constructor() {
1986
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1987
+ }
1988
+ updateColors() {
1989
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1990
+ h: 180,
1991
+ l: 5
1992
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1993
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1994
+ h: 180,
1995
+ l: 5
1996
+ });
1997
+ if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", 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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, {
1998
+ h: 210,
1999
+ l: 150
2000
+ }), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2001
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2002
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2003
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2004
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2005
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2006
+ let r = this.darkMode ? -4 : -1;
2007
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2008
+ h: 180,
2009
+ s: -15,
2010
+ l: r * (5 + e * 3)
2011
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2012
+ h: 180,
2013
+ s: -15,
2014
+ l: r * (8 + e * 3)
2015
+ });
2016
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2017
+ h: 60,
2018
+ l: -10
2019
+ }), this.pie8 = this.pie8 || x(e, {
2020
+ h: -60,
2021
+ l: -10
2022
+ }), this.pie9 = this.pie9 || x(e, {
2023
+ h: 120,
2024
+ l: 0
2025
+ }), this.pie10 = this.pie10 || x(e, {
2026
+ h: 60,
2027
+ l: -20
2028
+ }), this.pie11 = this.pie11 || x(e, {
2029
+ h: -60,
2030
+ l: -20
2031
+ }), this.pie12 = this.pie12 || x(e, {
2032
+ h: 120,
2033
+ l: -10
2034
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2035
+ r: 5,
2036
+ g: 5,
2037
+ b: 5
2038
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2039
+ r: 10,
2040
+ g: 10,
2041
+ b: 10
2042
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2043
+ r: 15,
2044
+ g: 15,
2045
+ b: 15
2046
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2047
+ r: -5,
2048
+ g: -5,
2049
+ b: -5
2050
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2051
+ r: -10,
2052
+ g: -10,
2053
+ b: -10
2054
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2055
+ r: -15,
2056
+ g: -15,
2057
+ b: -15
2058
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2059
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2060
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2061
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2062
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2063
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2064
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2065
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2066
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2067
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2068
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2069
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2070
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2071
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2072
+ }
2073
+ calculate(e) {
2074
+ if (typeof e != "object") {
2075
+ this.updateColors();
2076
+ return;
2077
+ }
2078
+ let t = Object.keys(e);
2079
+ t.forEach((t) => {
2080
+ this[t] = e[t];
2081
+ }), this.updateColors(), t.forEach((t) => {
2082
+ this[t] = e[t];
2083
+ });
2084
+ }
2085
+ }, Ot = /* @__PURE__ */ n((e) => {
2086
+ let t = new Dt();
2087
+ return t.calculate(e), t;
2088
+ }, "getThemeVariables"), kt = class {
2089
+ static {
2090
+ n(this, "Theme");
2091
+ }
2092
+ constructor() {
2093
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
2094
+ }
2095
+ updateColors() {
2096
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2097
+ h: 180,
2098
+ l: 5
2099
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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.border1, 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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(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 || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", 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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2100
+ h: 210,
2101
+ l: 150
2102
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2103
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2104
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2105
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2106
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2107
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2108
+ let e = this.darkMode ? -4 : -1;
2109
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2110
+ h: 180,
2111
+ s: -15,
2112
+ l: e * (5 + t * 3)
2113
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2114
+ h: 180,
2115
+ s: -15,
2116
+ l: e * (8 + t * 3)
2117
+ });
2118
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2119
+ h: 60,
2120
+ l: -10
2121
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2122
+ h: -60,
2123
+ l: -10
2124
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2125
+ h: 120,
2126
+ l: 0
2127
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2128
+ h: 60,
2129
+ l: -20
2130
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2131
+ h: -60,
2132
+ l: -20
2133
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2134
+ h: 120,
2135
+ l: -10
2136
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2137
+ r: 5,
2138
+ g: 5,
2139
+ b: 5
2140
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2141
+ r: 10,
2142
+ g: 10,
2143
+ b: 10
2144
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2145
+ r: 15,
2146
+ g: 15,
2147
+ b: 15
2148
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2149
+ r: -5,
2150
+ g: -5,
2151
+ b: -5
2152
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2153
+ r: -10,
2154
+ g: -10,
2155
+ b: -10
2156
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2157
+ r: -15,
2158
+ g: -15,
2159
+ b: -15
2160
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2161
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2162
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2163
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2164
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2165
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2166
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2167
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2168
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2169
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2170
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2171
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2172
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2173
+ }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2174
+ }
2175
+ calculate(e) {
2176
+ if (typeof e != "object") {
2177
+ this.updateColors();
2178
+ return;
2179
+ }
2180
+ let t = Object.keys(e);
2181
+ t.forEach((t) => {
2182
+ this[t] = e[t];
2183
+ }), this.updateColors(), t.forEach((t) => {
2184
+ this[t] = e[t];
2185
+ });
2186
+ }
2187
+ }, At = /* @__PURE__ */ n((e) => {
2188
+ let t = new kt();
2189
+ return t.calculate(e), t;
2190
+ }, "getThemeVariables"), jt = class {
2191
+ static {
2192
+ n(this, "Theme");
2193
+ }
2194
+ constructor() {
2195
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = R("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
2196
+ }
2197
+ updateColors() {
2198
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2199
+ h: 180,
2200
+ l: 5
2201
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2202
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2203
+ h: 180,
2204
+ l: 5
2205
+ });
2206
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, 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.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
2207
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2208
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2209
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2210
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2211
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2212
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2213
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2214
+ let r = this.darkMode ? -4 : -1;
2215
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2216
+ h: 180,
2217
+ s: -15,
2218
+ l: r * (5 + e * 3)
2219
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2220
+ h: 180,
2221
+ s: -15,
2222
+ l: r * (8 + e * 3)
2223
+ });
2224
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2225
+ h: 60,
2226
+ l: -10
2227
+ }), this.pie8 = this.pie8 || x(e, {
2228
+ h: -60,
2229
+ l: -10
2230
+ }), this.pie9 = this.pie9 || x(e, {
2231
+ h: 120,
2232
+ l: 0
2233
+ }), this.pie10 = this.pie10 || x(e, {
2234
+ h: 60,
2235
+ l: -20
2236
+ }), this.pie11 = this.pie11 || x(e, {
2237
+ h: -60,
2238
+ l: -20
2239
+ }), this.pie12 = this.pie12 || x(e, {
2240
+ h: 120,
2241
+ l: -10
2242
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2243
+ r: 5,
2244
+ g: 5,
2245
+ b: 5
2246
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2247
+ r: 10,
2248
+ g: 10,
2249
+ b: 10
2250
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2251
+ r: 15,
2252
+ g: 15,
2253
+ b: 15
2254
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2255
+ r: -5,
2256
+ g: -5,
2257
+ b: -5
2258
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2259
+ r: -10,
2260
+ g: -10,
2261
+ b: -10
2262
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2263
+ r: -15,
2264
+ g: -15,
2265
+ b: -15
2266
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2267
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2268
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2269
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2270
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2271
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2272
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2273
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2274
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2275
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2276
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2277
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2278
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2279
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2280
+ }
2281
+ calculate(e) {
2282
+ if (typeof e != "object") {
2283
+ this.updateColors();
2284
+ return;
2285
+ }
2286
+ let t = Object.keys(e);
2287
+ t.forEach((t) => {
2288
+ this[t] = e[t];
2289
+ }), this.updateColors(), t.forEach((t) => {
2290
+ this[t] = e[t];
2291
+ });
2292
+ }
2293
+ }, Mt = /* @__PURE__ */ n((e) => {
2294
+ let t = new jt();
2295
+ return t.calculate(e), t;
2296
+ }, "getThemeVariables"), Nt = class {
2297
+ static {
2298
+ n(this, "Theme");
2299
+ }
2300
+ constructor() {
2301
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2302
+ }
2303
+ updateColors() {
2304
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2305
+ h: 180,
2306
+ l: 5
2307
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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.border1, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, 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.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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2308
+ h: 210,
2309
+ l: 150
2310
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2311
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2312
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2313
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2314
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2315
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2316
+ let e = this.darkMode ? -4 : -1;
2317
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2318
+ h: 180,
2319
+ s: -15,
2320
+ l: e * (5 + t * 3)
2321
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2322
+ h: 180,
2323
+ s: -15,
2324
+ l: e * (8 + t * 3)
2325
+ });
2326
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2327
+ h: 60,
2328
+ l: -10
2329
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2330
+ h: -60,
2331
+ l: -10
2332
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2333
+ h: 120,
2334
+ l: 0
2335
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2336
+ h: 60,
2337
+ l: -20
2338
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2339
+ h: -60,
2340
+ l: -20
2341
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2342
+ h: 120,
2343
+ l: -10
2344
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2345
+ r: 5,
2346
+ g: 5,
2347
+ b: 5
2348
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2349
+ r: 10,
2350
+ g: 10,
2351
+ b: 10
2352
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2353
+ r: 15,
2354
+ g: 15,
2355
+ b: 15
2356
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2357
+ r: -5,
2358
+ g: -5,
2359
+ b: -5
2360
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2361
+ r: -10,
2362
+ g: -10,
2363
+ b: -10
2364
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2365
+ r: -15,
2366
+ g: -15,
2367
+ b: -15
2368
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2369
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2370
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2371
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2372
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2373
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2374
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2375
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2376
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2377
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2378
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2379
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2380
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2381
+ }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2382
+ }
2383
+ calculate(e) {
2384
+ if (typeof e != "object") {
2385
+ this.updateColors();
2386
+ return;
2387
+ }
2388
+ let t = Object.keys(e);
2389
+ t.forEach((t) => {
2390
+ this[t] = e[t];
2391
+ }), this.updateColors(), t.forEach((t) => {
2392
+ this[t] = e[t];
2393
+ });
2394
+ }
2395
+ }, Pt = /* @__PURE__ */ n((e) => {
2396
+ let t = new Nt();
2397
+ return t.calculate(e), t;
2398
+ }, "getThemeVariables"), Ft = class {
2399
+ static {
2400
+ n(this, "Theme");
2401
+ }
2402
+ constructor() {
2403
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2404
+ "#E879F9",
2405
+ "#2DD4BF",
2406
+ "#FB923C",
2407
+ "#22D3EE",
2408
+ "#4ADE80",
2409
+ "#A78BFA",
2410
+ "#F87171",
2411
+ "#FACC15",
2412
+ "#818CF8",
2413
+ "#A3E635 ",
2414
+ "#38BDF8",
2415
+ "#FB7185"
2416
+ ], this.bkgColorArray = [
2417
+ "#FDF4FF",
2418
+ "#F0FDFA",
2419
+ "#FFF7ED",
2420
+ "#ECFEFF",
2421
+ "#F0FDF4",
2422
+ "#F5F3FF",
2423
+ "#FEF2F2",
2424
+ "#FEFCE8",
2425
+ "#EEF2FF",
2426
+ "#F7FEE7",
2427
+ "#F0F9FF",
2428
+ "#FFF1F2"
2429
+ ], this.filterColor = "#000000";
2430
+ }
2431
+ updateColors() {
2432
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2433
+ h: 180,
2434
+ l: 5
2435
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2436
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2437
+ h: 180,
2438
+ l: 5
2439
+ });
2440
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", 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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2441
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2442
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2443
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2444
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2445
+ let r = this.darkMode ? -4 : -1;
2446
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2447
+ h: 180,
2448
+ s: -15,
2449
+ l: r * (5 + e * 3)
2450
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2451
+ h: 180,
2452
+ s: -15,
2453
+ l: r * (8 + e * 3)
2454
+ });
2455
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2456
+ h: 60,
2457
+ l: -10
2458
+ }), this.pie8 = this.pie8 || x(e, {
2459
+ h: -60,
2460
+ l: -10
2461
+ }), this.pie9 = this.pie9 || x(e, {
2462
+ h: 120,
2463
+ l: 0
2464
+ }), this.pie10 = this.pie10 || x(e, {
2465
+ h: 60,
2466
+ l: -20
2467
+ }), this.pie11 = this.pie11 || x(e, {
2468
+ h: -60,
2469
+ l: -20
2470
+ }), this.pie12 = this.pie12 || x(e, {
2471
+ h: 120,
2472
+ l: -10
2473
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2474
+ r: 5,
2475
+ g: 5,
2476
+ b: 5
2477
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2478
+ r: 10,
2479
+ g: 10,
2480
+ b: 10
2481
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2482
+ r: 15,
2483
+ g: 15,
2484
+ b: 15
2485
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2486
+ r: -5,
2487
+ g: -5,
2488
+ b: -5
2489
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2490
+ r: -10,
2491
+ g: -10,
2492
+ b: -10
2493
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2494
+ r: -15,
2495
+ g: -15,
2496
+ b: -15
2497
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2498
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2499
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2500
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2501
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2502
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2503
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2504
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2505
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2506
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2507
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2508
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2509
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2510
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2511
+ }
2512
+ calculate(e) {
2513
+ if (typeof e != "object") {
2514
+ this.updateColors();
2515
+ return;
2516
+ }
2517
+ let t = Object.keys(e);
2518
+ t.forEach((t) => {
2519
+ this[t] = e[t];
2520
+ }), this.updateColors(), t.forEach((t) => {
2521
+ this[t] = e[t];
2522
+ });
2523
+ }
2524
+ }, It = /* @__PURE__ */ n((e) => {
2525
+ let t = new Ft();
2526
+ return t.calculate(e), t;
2527
+ }, "getThemeVariables"), Lt = class {
2528
+ static {
2529
+ n(this, "Theme");
2530
+ }
2531
+ constructor() {
2532
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2533
+ "#E879F9",
2534
+ "#2DD4BF",
2535
+ "#FB923C",
2536
+ "#22D3EE",
2537
+ "#4ADE80",
2538
+ "#A78BFA",
2539
+ "#F87171",
2540
+ "#FACC15",
2541
+ "#818CF8",
2542
+ "#A3E635 ",
2543
+ "#38BDF8",
2544
+ "#FB7185"
2545
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2546
+ }
2547
+ updateColors() {
2548
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2549
+ h: 180,
2550
+ l: 5
2551
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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.border1, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", 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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2552
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
2553
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2554
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2555
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2556
+ let e = this.darkMode ? -4 : -1;
2557
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2558
+ h: 180,
2559
+ s: -15,
2560
+ l: e * (5 + t * 3)
2561
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2562
+ h: 180,
2563
+ s: -15,
2564
+ l: e * (8 + t * 3)
2565
+ });
2566
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2567
+ h: 60,
2568
+ l: -10
2569
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2570
+ h: -60,
2571
+ l: -10
2572
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2573
+ h: 120,
2574
+ l: 0
2575
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2576
+ h: 60,
2577
+ l: -20
2578
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2579
+ h: -60,
2580
+ l: -20
2581
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2582
+ h: 120,
2583
+ l: -10
2584
+ }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2585
+ r: 5,
2586
+ g: 5,
2587
+ b: 5
2588
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2589
+ r: 10,
2590
+ g: 10,
2591
+ b: 10
2592
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2593
+ r: 15,
2594
+ g: 15,
2595
+ b: 15
2596
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2597
+ r: -5,
2598
+ g: -5,
2599
+ b: -5
2600
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2601
+ r: -10,
2602
+ g: -10,
2603
+ b: -10
2604
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2605
+ r: -15,
2606
+ g: -15,
2607
+ b: -15
2608
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2609
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2610
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2611
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2612
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2613
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2614
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2615
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2616
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2617
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2618
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2619
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2620
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2621
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2622
+ }
2623
+ calculate(e) {
2624
+ if (typeof e != "object") {
2625
+ this.updateColors();
2626
+ return;
2627
+ }
2628
+ let t = Object.keys(e);
2629
+ t.forEach((t) => {
2630
+ this[t] = e[t];
2631
+ }), this.updateColors(), t.forEach((t) => {
2632
+ this[t] = e[t];
2633
+ });
2634
+ }
2635
+ }, V = {
2636
+ base: { getThemeVariables: bt },
2637
+ dark: { getThemeVariables: xt },
2638
+ default: { getThemeVariables: Ct },
2639
+ forest: { getThemeVariables: B },
2640
+ neutral: { getThemeVariables: Et },
2641
+ neo: { getThemeVariables: Ot },
2642
+ "neo-dark": { getThemeVariables: At },
2643
+ redux: { getThemeVariables: Mt },
2644
+ "redux-dark": { getThemeVariables: Pt },
2645
+ "redux-color": { getThemeVariables: It },
2646
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2647
+ let t = new Lt();
2648
+ return t.calculate(e), t;
2649
+ }, "getThemeVariables") }
2650
+ }, H = {
2651
+ flowchart: {
2652
+ useMaxWidth: !0,
2653
+ titleTopMargin: 25,
2654
+ subGraphTitleMargin: {
2655
+ top: 0,
2656
+ bottom: 0
2657
+ },
2658
+ diagramPadding: 8,
2659
+ htmlLabels: null,
2660
+ nodeSpacing: 50,
2661
+ rankSpacing: 50,
2662
+ curve: "basis",
2663
+ padding: 15,
2664
+ defaultRenderer: "dagre-wrapper",
2665
+ wrappingWidth: 200,
2666
+ inheritDir: !1
2667
+ },
2668
+ swimlane: {
2669
+ useMaxWidth: !0,
2670
+ lineHops: "arc",
2671
+ ignoreCrossLaneEdges: !0,
2672
+ optimizeRanksByCrossings: !0,
2673
+ automaticLaneOrdering: !1
2674
+ },
2675
+ sequence: {
2676
+ useMaxWidth: !0,
2677
+ hideUnusedParticipants: !1,
2678
+ activationWidth: 10,
2679
+ diagramMarginX: 50,
2680
+ diagramMarginY: 10,
2681
+ actorMargin: 50,
2682
+ width: 150,
2683
+ height: 65,
2684
+ boxMargin: 10,
2685
+ boxTextMargin: 5,
2686
+ noteMargin: 10,
2687
+ messageMargin: 35,
2688
+ messageAlign: "center",
2689
+ mirrorActors: !0,
2690
+ forceMenus: !1,
2691
+ bottomMarginAdj: 1,
2692
+ rightAngles: !1,
2693
+ showSequenceNumbers: !1,
2694
+ actorFontSize: 14,
2695
+ actorFontFamily: "\"Open Sans\", sans-serif",
2696
+ actorFontWeight: 400,
2697
+ noteFontSize: 14,
2698
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2699
+ noteFontWeight: 400,
2700
+ noteAlign: "center",
2701
+ messageFontSize: 16,
2702
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2703
+ messageFontWeight: 400,
2704
+ wrap: !1,
2705
+ wrapPadding: 10,
2706
+ labelBoxWidth: 50,
2707
+ labelBoxHeight: 20
2708
+ },
2709
+ gantt: {
2710
+ useMaxWidth: !0,
2711
+ titleTopMargin: 25,
2712
+ barHeight: 20,
2713
+ barGap: 4,
2714
+ topPadding: 50,
2715
+ rightPadding: 75,
2716
+ leftPadding: 75,
2717
+ gridLineStartPadding: 35,
2718
+ fontSize: 11,
2719
+ sectionFontSize: 11,
2720
+ numberSectionStyles: 4,
2721
+ axisFormat: "%Y-%m-%d",
2722
+ topAxis: !1,
2723
+ displayMode: "",
2724
+ weekday: "sunday"
2725
+ },
2726
+ journey: {
2727
+ useMaxWidth: !0,
2728
+ diagramMarginX: 50,
2729
+ diagramMarginY: 10,
2730
+ leftMargin: 150,
2731
+ maxLabelWidth: 360,
2732
+ width: 150,
2733
+ height: 50,
2734
+ boxMargin: 10,
2735
+ boxTextMargin: 5,
2736
+ noteMargin: 10,
2737
+ messageMargin: 35,
2738
+ messageAlign: "center",
2739
+ bottomMarginAdj: 1,
2740
+ rightAngles: !1,
2741
+ taskFontSize: 14,
2742
+ taskFontFamily: "\"Open Sans\", sans-serif",
2743
+ taskMargin: 50,
2744
+ activationWidth: 10,
2745
+ textPlacement: "fo",
2746
+ actorColours: [
2747
+ "#8FBC8F",
2748
+ "#7CFC00",
2749
+ "#00FFFF",
2750
+ "#20B2AA",
2751
+ "#B0E0E6",
2752
+ "#FFFFE0"
2753
+ ],
2754
+ sectionFills: [
2755
+ "#191970",
2756
+ "#8B008B",
2757
+ "#4B0082",
2758
+ "#2F4F4F",
2759
+ "#800000",
2760
+ "#8B4513",
2761
+ "#00008B"
2762
+ ],
2763
+ sectionColours: ["#fff"],
2764
+ titleColor: "",
2765
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2766
+ titleFontSize: "4ex"
2767
+ },
2768
+ class: {
2769
+ useMaxWidth: !0,
2770
+ titleTopMargin: 25,
2771
+ arrowMarkerAbsolute: !1,
2772
+ dividerMargin: 10,
2773
+ padding: 5,
2774
+ textHeight: 10,
2775
+ defaultRenderer: "dagre-wrapper",
2776
+ htmlLabels: !1,
2777
+ hideEmptyMembersBox: !1,
2778
+ hierarchicalNamespaces: !0
2779
+ },
2780
+ state: {
2781
+ useMaxWidth: !0,
2782
+ titleTopMargin: 25,
2783
+ dividerMargin: 10,
2784
+ sizeUnit: 5,
2785
+ padding: 8,
2786
+ textHeight: 10,
2787
+ titleShift: -15,
2788
+ noteMargin: 10,
2789
+ forkWidth: 70,
2790
+ forkHeight: 7,
2791
+ miniPadding: 2,
2792
+ fontSizeFactor: 5.02,
2793
+ fontSize: 24,
2794
+ labelHeight: 16,
2795
+ edgeLengthFactor: "20",
2796
+ compositTitleSize: 35,
2797
+ radius: 5,
2798
+ defaultRenderer: "dagre-wrapper"
2799
+ },
2800
+ er: {
2801
+ useMaxWidth: !0,
2802
+ titleTopMargin: 25,
2803
+ diagramPadding: 20,
2804
+ layoutDirection: "TB",
2805
+ minEntityWidth: 100,
2806
+ minEntityHeight: 75,
2807
+ entityPadding: 15,
2808
+ nodeSpacing: 140,
2809
+ rankSpacing: 80,
2810
+ stroke: "gray",
2811
+ fill: "honeydew",
2812
+ fontSize: 12
2813
+ },
2814
+ pie: {
2815
+ useMaxWidth: !0,
2816
+ textPosition: .75,
2817
+ donutHole: 0,
2818
+ legendPosition: "right",
2819
+ highlightSlice: ""
2820
+ },
2821
+ quadrantChart: {
2822
+ useMaxWidth: !0,
2823
+ chartWidth: 500,
2824
+ chartHeight: 500,
2825
+ titleFontSize: 20,
2826
+ titlePadding: 10,
2827
+ quadrantPadding: 5,
2828
+ xAxisLabelPadding: 5,
2829
+ yAxisLabelPadding: 5,
2830
+ xAxisLabelFontSize: 16,
2831
+ yAxisLabelFontSize: 16,
2832
+ quadrantLabelFontSize: 16,
2833
+ quadrantTextTopPadding: 5,
2834
+ pointTextPadding: 5,
2835
+ pointLabelFontSize: 12,
2836
+ pointRadius: 5,
2837
+ xAxisPosition: "top",
2838
+ yAxisPosition: "left",
2839
+ quadrantInternalBorderStrokeWidth: 1,
2840
+ quadrantExternalBorderStrokeWidth: 2
2841
+ },
2842
+ xyChart: {
2843
+ useMaxWidth: !0,
2844
+ width: 700,
2845
+ height: 500,
2846
+ titleFontSize: 20,
2847
+ titlePadding: 10,
2848
+ showDataLabel: !1,
2849
+ showDataLabelOutsideBar: !1,
2850
+ showTitle: !0,
2851
+ showLegend: !0,
2852
+ legendFontSize: 14,
2853
+ legendPadding: 10,
2854
+ xAxis: {
2855
+ $ref: "#/$defs/XYChartAxisConfig",
2856
+ showLabel: !0,
2857
+ labelFontSize: 14,
2858
+ labelPadding: 5,
2859
+ showTitle: !0,
2860
+ titleFontSize: 16,
2861
+ titlePadding: 5,
2862
+ showTick: !0,
2863
+ tickLength: 5,
2864
+ tickWidth: 2,
2865
+ showAxisLine: !0,
2866
+ axisLineWidth: 2,
2867
+ labelRotation: 0
2868
+ },
2869
+ yAxis: {
2870
+ $ref: "#/$defs/XYChartAxisConfig",
2871
+ showLabel: !0,
2872
+ labelFontSize: 14,
2873
+ labelPadding: 5,
2874
+ showTitle: !0,
2875
+ titleFontSize: 16,
2876
+ titlePadding: 5,
2877
+ showTick: !0,
2878
+ tickLength: 5,
2879
+ tickWidth: 2,
2880
+ showAxisLine: !0,
2881
+ axisLineWidth: 2,
2882
+ labelRotation: 0
2883
+ },
2884
+ chartOrientation: "vertical",
2885
+ plotReservedSpacePercent: 50
2886
+ },
2887
+ requirement: {
2888
+ useMaxWidth: !0,
2889
+ rect_fill: "#f9f9f9",
2890
+ text_color: "#333",
2891
+ rect_border_size: "0.5px",
2892
+ rect_border_color: "#bbb",
2893
+ rect_min_width: 200,
2894
+ rect_min_height: 200,
2895
+ fontSize: 14,
2896
+ rect_padding: 10,
2897
+ line_height: 20
2898
+ },
2899
+ mindmap: {
2900
+ useMaxWidth: !0,
2901
+ padding: 10,
2902
+ maxNodeWidth: 200,
2903
+ layoutAlgorithm: "cose-bilkent"
2904
+ },
2905
+ ishikawa: {
2906
+ useMaxWidth: !0,
2907
+ diagramPadding: 20
2908
+ },
2909
+ kanban: {
2910
+ useMaxWidth: !0,
2911
+ padding: 8,
2912
+ sectionWidth: 200,
2913
+ ticketBaseUrl: ""
2914
+ },
2915
+ timeline: {
2916
+ useMaxWidth: !0,
2917
+ diagramMarginX: 50,
2918
+ diagramMarginY: 10,
2919
+ leftMargin: 150,
2920
+ width: 150,
2921
+ height: 50,
2922
+ boxMargin: 10,
2923
+ boxTextMargin: 5,
2924
+ noteMargin: 10,
2925
+ messageMargin: 35,
2926
+ messageAlign: "center",
2927
+ bottomMarginAdj: 1,
2928
+ rightAngles: !1,
2929
+ taskFontSize: 14,
2930
+ taskFontFamily: "\"Open Sans\", sans-serif",
2931
+ taskMargin: 50,
2932
+ activationWidth: 10,
2933
+ textPlacement: "fo",
2934
+ actorColours: [
2935
+ "#8FBC8F",
2936
+ "#7CFC00",
2937
+ "#00FFFF",
2938
+ "#20B2AA",
2939
+ "#B0E0E6",
2940
+ "#FFFFE0"
2941
+ ],
2942
+ sectionFills: [
2943
+ "#191970",
2944
+ "#8B008B",
2945
+ "#4B0082",
2946
+ "#2F4F4F",
2947
+ "#800000",
2948
+ "#8B4513",
2949
+ "#00008B"
2950
+ ],
2951
+ sectionColours: ["#fff"],
2952
+ disableMulticolor: !1
2953
+ },
2954
+ gitGraph: {
2955
+ useMaxWidth: !0,
2956
+ titleTopMargin: 25,
2957
+ diagramPadding: 8,
2958
+ nodeLabel: {
2959
+ width: 75,
2960
+ height: 100,
2961
+ x: -25,
2962
+ y: 0
2963
+ },
2964
+ mainBranchName: "main",
2965
+ mainBranchOrder: 0,
2966
+ showCommitLabel: !0,
2967
+ showBranches: !0,
2968
+ rotateCommitLabel: !0,
2969
+ parallelCommits: !1,
2970
+ arrowMarkerAbsolute: !1
2971
+ },
2972
+ c4: {
2973
+ useMaxWidth: !0,
2974
+ diagramMarginX: 50,
2975
+ diagramMarginY: 10,
2976
+ c4ShapeMargin: 50,
2977
+ c4ShapePadding: 20,
2978
+ width: 216,
2979
+ height: 60,
2980
+ boxMargin: 10,
2981
+ c4ShapeInRow: 4,
2982
+ nextLinePaddingX: 0,
2983
+ c4BoundaryInRow: 2,
2984
+ personFontSize: 14,
2985
+ personFontFamily: "\"Open Sans\", sans-serif",
2986
+ personFontWeight: "normal",
2987
+ external_personFontSize: 14,
2988
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2989
+ external_personFontWeight: "normal",
2990
+ systemFontSize: 14,
2991
+ systemFontFamily: "\"Open Sans\", sans-serif",
2992
+ systemFontWeight: "normal",
2993
+ external_systemFontSize: 14,
2994
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2995
+ external_systemFontWeight: "normal",
2996
+ system_dbFontSize: 14,
2997
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2998
+ system_dbFontWeight: "normal",
2999
+ external_system_dbFontSize: 14,
3000
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
3001
+ external_system_dbFontWeight: "normal",
3002
+ system_queueFontSize: 14,
3003
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
3004
+ system_queueFontWeight: "normal",
3005
+ external_system_queueFontSize: 14,
3006
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
3007
+ external_system_queueFontWeight: "normal",
3008
+ boundaryFontSize: 14,
3009
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
3010
+ boundaryFontWeight: "normal",
3011
+ messageFontSize: 12,
3012
+ messageFontFamily: "\"Open Sans\", sans-serif",
3013
+ messageFontWeight: "normal",
3014
+ containerFontSize: 14,
3015
+ containerFontFamily: "\"Open Sans\", sans-serif",
3016
+ containerFontWeight: "normal",
3017
+ external_containerFontSize: 14,
3018
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
3019
+ external_containerFontWeight: "normal",
3020
+ container_dbFontSize: 14,
3021
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
3022
+ container_dbFontWeight: "normal",
3023
+ external_container_dbFontSize: 14,
3024
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
3025
+ external_container_dbFontWeight: "normal",
3026
+ container_queueFontSize: 14,
3027
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
3028
+ container_queueFontWeight: "normal",
3029
+ external_container_queueFontSize: 14,
3030
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
3031
+ external_container_queueFontWeight: "normal",
3032
+ componentFontSize: 14,
3033
+ componentFontFamily: "\"Open Sans\", sans-serif",
3034
+ componentFontWeight: "normal",
3035
+ external_componentFontSize: 14,
3036
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
3037
+ external_componentFontWeight: "normal",
3038
+ component_dbFontSize: 14,
3039
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
3040
+ component_dbFontWeight: "normal",
3041
+ external_component_dbFontSize: 14,
3042
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
3043
+ external_component_dbFontWeight: "normal",
3044
+ component_queueFontSize: 14,
3045
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
3046
+ component_queueFontWeight: "normal",
3047
+ external_component_queueFontSize: 14,
3048
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
3049
+ external_component_queueFontWeight: "normal",
3050
+ wrap: !0,
3051
+ wrapPadding: 10,
3052
+ person_bg_color: "#08427B",
3053
+ person_border_color: "#073B6F",
3054
+ external_person_bg_color: "#686868",
3055
+ external_person_border_color: "#8A8A8A",
3056
+ system_bg_color: "#1168BD",
3057
+ system_border_color: "#3C7FC0",
3058
+ system_db_bg_color: "#1168BD",
3059
+ system_db_border_color: "#3C7FC0",
3060
+ system_queue_bg_color: "#1168BD",
3061
+ system_queue_border_color: "#3C7FC0",
3062
+ external_system_bg_color: "#999999",
3063
+ external_system_border_color: "#8A8A8A",
3064
+ external_system_db_bg_color: "#999999",
3065
+ external_system_db_border_color: "#8A8A8A",
3066
+ external_system_queue_bg_color: "#999999",
3067
+ external_system_queue_border_color: "#8A8A8A",
3068
+ container_bg_color: "#438DD5",
3069
+ container_border_color: "#3C7FC0",
3070
+ container_db_bg_color: "#438DD5",
3071
+ container_db_border_color: "#3C7FC0",
3072
+ container_queue_bg_color: "#438DD5",
3073
+ container_queue_border_color: "#3C7FC0",
3074
+ external_container_bg_color: "#B3B3B3",
3075
+ external_container_border_color: "#A6A6A6",
3076
+ external_container_db_bg_color: "#B3B3B3",
3077
+ external_container_db_border_color: "#A6A6A6",
3078
+ external_container_queue_bg_color: "#B3B3B3",
3079
+ external_container_queue_border_color: "#A6A6A6",
3080
+ component_bg_color: "#85BBF0",
3081
+ component_border_color: "#78A8D8",
3082
+ component_db_bg_color: "#85BBF0",
3083
+ component_db_border_color: "#78A8D8",
3084
+ component_queue_bg_color: "#85BBF0",
3085
+ component_queue_border_color: "#78A8D8",
3086
+ external_component_bg_color: "#CCCCCC",
3087
+ external_component_border_color: "#BFBFBF",
3088
+ external_component_db_bg_color: "#CCCCCC",
3089
+ external_component_db_border_color: "#BFBFBF",
3090
+ external_component_queue_bg_color: "#CCCCCC",
3091
+ external_component_queue_border_color: "#BFBFBF"
3092
+ },
3093
+ sankey: {
3094
+ useMaxWidth: !0,
3095
+ width: 600,
3096
+ height: 400,
3097
+ linkColor: "gradient",
3098
+ nodeAlignment: "justify",
3099
+ showValues: !0,
3100
+ prefix: "",
3101
+ suffix: "",
3102
+ nodeWidth: 10,
3103
+ nodePadding: 12,
3104
+ labelStyle: "legacy"
3105
+ },
3106
+ block: {
3107
+ useMaxWidth: !0,
3108
+ padding: 8
3109
+ },
3110
+ packet: {
3111
+ useMaxWidth: !0,
3112
+ rowHeight: 32,
3113
+ bitWidth: 32,
3114
+ bitsPerRow: 32,
3115
+ showBits: !0,
3116
+ paddingX: 5,
3117
+ paddingY: 5
3118
+ },
3119
+ treeView: {
3120
+ useMaxWidth: !0,
3121
+ rowIndent: 10,
3122
+ paddingX: 5,
3123
+ paddingY: 5,
3124
+ lineThickness: 1,
3125
+ showIcons: !1,
3126
+ defaultIconPack: "",
3127
+ filenameIcons: {},
3128
+ extensionIcons: {}
3129
+ },
3130
+ architecture: {
3131
+ useMaxWidth: !0,
3132
+ padding: 40,
3133
+ iconSize: 80,
3134
+ fontSize: 16,
3135
+ randomize: !1,
3136
+ nodeSeparation: 75,
3137
+ idealEdgeLengthMultiplier: 1.5,
3138
+ edgeElasticity: .45,
3139
+ numIter: 2500,
3140
+ seed: 1
3141
+ },
3142
+ eventmodeling: {
3143
+ useMaxWidth: !0,
3144
+ padding: 30,
3145
+ rowHeight: 32
3146
+ },
3147
+ radar: {
3148
+ useMaxWidth: !0,
3149
+ width: 600,
3150
+ height: 600,
3151
+ marginTop: 50,
3152
+ marginRight: 50,
3153
+ marginBottom: 50,
3154
+ marginLeft: 50,
3155
+ axisScaleFactor: 1,
3156
+ axisLabelFactor: 1.05,
3157
+ curveTension: .17
3158
+ },
3159
+ venn: {
3160
+ useMaxWidth: !0,
3161
+ width: 800,
3162
+ height: 450,
3163
+ padding: 8,
3164
+ useDebugLayout: !1
3165
+ },
3166
+ cynefin: {
3167
+ useMaxWidth: !0,
3168
+ width: 800,
3169
+ height: 600,
3170
+ padding: 40,
3171
+ showDomainDescriptions: !0,
3172
+ boundaryAmplitude: 8,
3173
+ seed: 0
3174
+ },
3175
+ theme: "default",
3176
+ look: "classic",
3177
+ handDrawnSeed: 0,
3178
+ layout: "dagre",
3179
+ maxTextSize: 5e4,
3180
+ maxEdges: 500,
3181
+ darkMode: !1,
3182
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3183
+ logLevel: 5,
3184
+ securityLevel: "strict",
3185
+ startOnLoad: !0,
3186
+ arrowMarkerAbsolute: !1,
3187
+ secure: [
3188
+ "secure",
3189
+ "securityLevel",
3190
+ "startOnLoad",
3191
+ "maxTextSize",
3192
+ "suppressErrorRendering",
3193
+ "maxEdges"
3194
+ ],
3195
+ legacyMathML: !1,
3196
+ forceLegacyMathML: !1,
3197
+ deterministicIds: !1,
3198
+ fontSize: 16,
3199
+ markdownAutoWrap: !0,
3200
+ suppressErrorRendering: !1
3201
+ }, U = {
3202
+ ...H,
3203
+ deterministicIDSeed: void 0,
3204
+ elk: {
3205
+ mergeEdges: !1,
3206
+ nodePlacementStrategy: "BRANDES_KOEPF",
3207
+ nodePlacementAlignment: "NONE",
3208
+ forceNodeModelOrder: !1,
3209
+ considerModelOrder: "NODES_AND_EDGES",
3210
+ keepEntryNodeOnTop: !1
3211
+ },
3212
+ themeCSS: void 0,
3213
+ themeVariables: V.default.getThemeVariables(),
3214
+ sequence: {
3215
+ ...H.sequence,
3216
+ messageFont: /* @__PURE__ */ n(function() {
3217
+ return {
3218
+ fontFamily: this.messageFontFamily,
3219
+ fontSize: this.messageFontSize,
3220
+ fontWeight: this.messageFontWeight
3221
+ };
3222
+ }, "messageFont"),
3223
+ noteFont: /* @__PURE__ */ n(function() {
3224
+ return {
3225
+ fontFamily: this.noteFontFamily,
3226
+ fontSize: this.noteFontSize,
3227
+ fontWeight: this.noteFontWeight
3228
+ };
3229
+ }, "noteFont"),
3230
+ actorFont: /* @__PURE__ */ n(function() {
3231
+ return {
3232
+ fontFamily: this.actorFontFamily,
3233
+ fontSize: this.actorFontSize,
3234
+ fontWeight: this.actorFontWeight
3235
+ };
3236
+ }, "actorFont")
3237
+ },
3238
+ class: {
3239
+ defaultRenderer: "dagre-wrapper",
3240
+ hideEmptyMembersBox: !1,
3241
+ hierarchicalNamespaces: !0
3242
+ },
3243
+ gantt: {
3244
+ ...H.gantt,
3245
+ tickInterval: void 0,
3246
+ useWidth: void 0
3247
+ },
3248
+ c4: {
3249
+ ...H.c4,
3250
+ useWidth: void 0,
3251
+ personFont: /* @__PURE__ */ n(function() {
3252
+ return {
3253
+ fontFamily: this.personFontFamily,
3254
+ fontSize: this.personFontSize,
3255
+ fontWeight: this.personFontWeight
3256
+ };
3257
+ }, "personFont"),
3258
+ flowchart: {
3259
+ ...H.flowchart,
3260
+ inheritDir: !1
3261
+ },
3262
+ external_personFont: /* @__PURE__ */ n(function() {
3263
+ return {
3264
+ fontFamily: this.external_personFontFamily,
3265
+ fontSize: this.external_personFontSize,
3266
+ fontWeight: this.external_personFontWeight
3267
+ };
3268
+ }, "external_personFont"),
3269
+ systemFont: /* @__PURE__ */ n(function() {
3270
+ return {
3271
+ fontFamily: this.systemFontFamily,
3272
+ fontSize: this.systemFontSize,
3273
+ fontWeight: this.systemFontWeight
3274
+ };
3275
+ }, "systemFont"),
3276
+ external_systemFont: /* @__PURE__ */ n(function() {
3277
+ return {
3278
+ fontFamily: this.external_systemFontFamily,
3279
+ fontSize: this.external_systemFontSize,
3280
+ fontWeight: this.external_systemFontWeight
3281
+ };
3282
+ }, "external_systemFont"),
3283
+ system_dbFont: /* @__PURE__ */ n(function() {
3284
+ return {
3285
+ fontFamily: this.system_dbFontFamily,
3286
+ fontSize: this.system_dbFontSize,
3287
+ fontWeight: this.system_dbFontWeight
3288
+ };
3289
+ }, "system_dbFont"),
3290
+ external_system_dbFont: /* @__PURE__ */ n(function() {
3291
+ return {
3292
+ fontFamily: this.external_system_dbFontFamily,
3293
+ fontSize: this.external_system_dbFontSize,
3294
+ fontWeight: this.external_system_dbFontWeight
3295
+ };
3296
+ }, "external_system_dbFont"),
3297
+ system_queueFont: /* @__PURE__ */ n(function() {
3298
+ return {
3299
+ fontFamily: this.system_queueFontFamily,
3300
+ fontSize: this.system_queueFontSize,
3301
+ fontWeight: this.system_queueFontWeight
3302
+ };
3303
+ }, "system_queueFont"),
3304
+ external_system_queueFont: /* @__PURE__ */ n(function() {
3305
+ return {
3306
+ fontFamily: this.external_system_queueFontFamily,
3307
+ fontSize: this.external_system_queueFontSize,
3308
+ fontWeight: this.external_system_queueFontWeight
3309
+ };
3310
+ }, "external_system_queueFont"),
3311
+ containerFont: /* @__PURE__ */ n(function() {
3312
+ return {
3313
+ fontFamily: this.containerFontFamily,
3314
+ fontSize: this.containerFontSize,
3315
+ fontWeight: this.containerFontWeight
3316
+ };
3317
+ }, "containerFont"),
3318
+ external_containerFont: /* @__PURE__ */ n(function() {
3319
+ return {
3320
+ fontFamily: this.external_containerFontFamily,
3321
+ fontSize: this.external_containerFontSize,
3322
+ fontWeight: this.external_containerFontWeight
3323
+ };
3324
+ }, "external_containerFont"),
3325
+ container_dbFont: /* @__PURE__ */ n(function() {
3326
+ return {
3327
+ fontFamily: this.container_dbFontFamily,
3328
+ fontSize: this.container_dbFontSize,
3329
+ fontWeight: this.container_dbFontWeight
3330
+ };
3331
+ }, "container_dbFont"),
3332
+ external_container_dbFont: /* @__PURE__ */ n(function() {
3333
+ return {
3334
+ fontFamily: this.external_container_dbFontFamily,
3335
+ fontSize: this.external_container_dbFontSize,
3336
+ fontWeight: this.external_container_dbFontWeight
3337
+ };
3338
+ }, "external_container_dbFont"),
3339
+ container_queueFont: /* @__PURE__ */ n(function() {
3340
+ return {
3341
+ fontFamily: this.container_queueFontFamily,
3342
+ fontSize: this.container_queueFontSize,
3343
+ fontWeight: this.container_queueFontWeight
3344
+ };
3345
+ }, "container_queueFont"),
3346
+ external_container_queueFont: /* @__PURE__ */ n(function() {
3347
+ return {
3348
+ fontFamily: this.external_container_queueFontFamily,
3349
+ fontSize: this.external_container_queueFontSize,
3350
+ fontWeight: this.external_container_queueFontWeight
3351
+ };
3352
+ }, "external_container_queueFont"),
3353
+ componentFont: /* @__PURE__ */ n(function() {
3354
+ return {
3355
+ fontFamily: this.componentFontFamily,
3356
+ fontSize: this.componentFontSize,
3357
+ fontWeight: this.componentFontWeight
3358
+ };
3359
+ }, "componentFont"),
3360
+ external_componentFont: /* @__PURE__ */ n(function() {
3361
+ return {
3362
+ fontFamily: this.external_componentFontFamily,
3363
+ fontSize: this.external_componentFontSize,
3364
+ fontWeight: this.external_componentFontWeight
3365
+ };
3366
+ }, "external_componentFont"),
3367
+ component_dbFont: /* @__PURE__ */ n(function() {
3368
+ return {
3369
+ fontFamily: this.component_dbFontFamily,
3370
+ fontSize: this.component_dbFontSize,
3371
+ fontWeight: this.component_dbFontWeight
3372
+ };
3373
+ }, "component_dbFont"),
3374
+ external_component_dbFont: /* @__PURE__ */ n(function() {
3375
+ return {
3376
+ fontFamily: this.external_component_dbFontFamily,
3377
+ fontSize: this.external_component_dbFontSize,
3378
+ fontWeight: this.external_component_dbFontWeight
3379
+ };
3380
+ }, "external_component_dbFont"),
3381
+ component_queueFont: /* @__PURE__ */ n(function() {
3382
+ return {
3383
+ fontFamily: this.component_queueFontFamily,
3384
+ fontSize: this.component_queueFontSize,
3385
+ fontWeight: this.component_queueFontWeight
3386
+ };
3387
+ }, "component_queueFont"),
3388
+ external_component_queueFont: /* @__PURE__ */ n(function() {
3389
+ return {
3390
+ fontFamily: this.external_component_queueFontFamily,
3391
+ fontSize: this.external_component_queueFontSize,
3392
+ fontWeight: this.external_component_queueFontWeight
3393
+ };
3394
+ }, "external_component_queueFont"),
3395
+ boundaryFont: /* @__PURE__ */ n(function() {
3396
+ return {
3397
+ fontFamily: this.boundaryFontFamily,
3398
+ fontSize: this.boundaryFontSize,
3399
+ fontWeight: this.boundaryFontWeight
3400
+ };
3401
+ }, "boundaryFont"),
3402
+ messageFont: /* @__PURE__ */ n(function() {
3403
+ return {
3404
+ fontFamily: this.messageFontFamily,
3405
+ fontSize: this.messageFontSize,
3406
+ fontWeight: this.messageFontWeight
3407
+ };
3408
+ }, "messageFont")
3409
+ },
3410
+ pie: {
3411
+ ...H.pie,
3412
+ useWidth: 984
3413
+ },
3414
+ xyChart: {
3415
+ ...H.xyChart,
3416
+ useWidth: void 0
3417
+ },
3418
+ requirement: {
3419
+ ...H.requirement,
3420
+ useWidth: void 0
3421
+ },
3422
+ packet: { ...H.packet },
3423
+ eventmodeling: { ...H.eventmodeling },
3424
+ treeView: {
3425
+ ...H.treeView,
3426
+ useWidth: void 0
3427
+ },
3428
+ radar: { ...H.radar },
3429
+ railroad: {
3430
+ ...H.railroad,
3431
+ fontSize: void 0,
3432
+ fontFamily: void 0,
3433
+ terminalFill: void 0,
3434
+ terminalStroke: void 0,
3435
+ terminalTextColor: void 0,
3436
+ nonTerminalFill: void 0,
3437
+ nonTerminalStroke: void 0,
3438
+ nonTerminalTextColor: void 0,
3439
+ lineColor: void 0,
3440
+ markerFill: void 0,
3441
+ commentFill: void 0,
3442
+ commentStroke: void 0,
3443
+ commentTextColor: void 0,
3444
+ specialFill: void 0,
3445
+ specialStroke: void 0,
3446
+ ruleNameColor: void 0
3447
+ },
3448
+ ishikawa: { ...H.ishikawa },
3449
+ sankey: {
3450
+ ...H.sankey,
3451
+ nodeColors: void 0
3452
+ },
3453
+ treemap: {
3454
+ useMaxWidth: !0,
3455
+ padding: 10,
3456
+ diagramPadding: 8,
3457
+ showValues: !0,
3458
+ nodeWidth: 100,
3459
+ nodeHeight: 40,
3460
+ borderWidth: 1,
3461
+ valueFontSize: 12,
3462
+ labelFontSize: 14,
3463
+ valueFormat: ","
3464
+ },
3465
+ venn: { ...H.venn },
3466
+ cynefin: { ...H.cynefin }
3467
+ }, Rt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3468
+ ...n,
3469
+ t + r,
3470
+ ...Rt(e[r], "")
3471
+ ] : [...n, t + r], []), "keyify"), zt = new Set(Rt(U, "")), Bt = U, Vt = {
3472
+ nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3473
+ filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3474
+ extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3475
+ }, Ht = /* @__PURE__ */ n((e, n) => {
3476
+ for (let r of Object.keys(e)) {
3477
+ let i = e[r];
3478
+ (r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (t.debug("sanitize deleting dictionary entry:", r, i), delete e[r]);
3479
+ }
3480
+ }, "sanitizeDictionaryConfig"), W = /* @__PURE__ */ n((e) => {
3481
+ if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3482
+ if (Array.isArray(e)) {
3483
+ e.forEach((e) => W(e));
3484
+ return;
3485
+ }
3486
+ for (let n of Object.keys(e)) {
3487
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !zt.has(n) || e[n] == null) {
3488
+ t.debug("sanitize deleting key: ", n), delete e[n];
3489
+ continue;
3490
+ }
3491
+ if (typeof e[n] == "object") {
3492
+ let r = Vt[n];
3493
+ r ? Ht(e[n], r) : (t.debug("sanitizing object", n), W(e[n]));
3494
+ continue;
3495
+ }
3496
+ for (let r of [
3497
+ "themeCSS",
3498
+ "fontFamily",
3499
+ "altFontFamily"
3500
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Ut(e[n]));
3501
+ }
3502
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3503
+ let n = e.themeVariables[t];
3504
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3505
+ }
3506
+ t.debug("After sanitization", e);
3507
+ }
3508
+ }, "sanitizeDirective"), Ut = /* @__PURE__ */ n((e) => {
3509
+ let t = 0, n = 0;
3510
+ for (let r of e) {
3511
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3512
+ r === "{" ? t++ : r === "}" && n++;
3513
+ }
3514
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3515
+ }, "sanitizeCss"), G = Object.freeze(Bt), K = /* @__PURE__ */ n((e) => !(e === !1 || [
3516
+ "false",
3517
+ "null",
3518
+ "0"
3519
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), q = F({}, G), Wt, Gt = [], Kt = F({}, G), qt = /* @__PURE__ */ n((e, t) => {
3520
+ let n = F({}, e), r = {};
3521
+ for (let e of t) $t(e), r = F(r, e);
3522
+ if (n = F(n, r), r.theme && r.theme in V) {
3523
+ let e = F(F({}, Wt).themeVariables || {}, r.themeVariables);
3524
+ n.theme && n.theme in V && (n.themeVariables = V[n.theme].getThemeVariables(e));
3525
+ }
3526
+ return Kt = n, on(Kt), Kt;
3527
+ }, "updateCurrentConfig"), Jt = /* @__PURE__ */ n((e) => (q = F({}, G), q = F(q, e), e.theme && V[e.theme] && (q.themeVariables = V[e.theme].getThemeVariables(e.themeVariables)), qt(q, Gt), q), "setSiteConfig"), Yt = /* @__PURE__ */ n((e) => {
3528
+ Wt = F({}, e);
3529
+ }, "saveConfigFromInitialize"), Xt = /* @__PURE__ */ n((e) => (q = F(q, e), qt(q, Gt), q), "updateSiteConfig"), Zt = /* @__PURE__ */ n(() => F({}, q), "getSiteConfig"), Qt = /* @__PURE__ */ n((e) => (qt(Kt, [e]), J()), "setConfig"), J = /* @__PURE__ */ n(() => F({}, Kt), "getConfig"), $t = /* @__PURE__ */ n((e) => {
3530
+ e && (["secure", ...q.secure ?? []].forEach((n) => {
3531
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3532
+ }), Object.keys(e).forEach((t) => {
3533
+ t.startsWith("__") && delete e[t];
3534
+ }), Object.keys(e).forEach((t) => {
3535
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && $t(e[t]);
3536
+ }));
3537
+ }, "sanitize"), en = /* @__PURE__ */ n((e) => {
3538
+ W(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3539
+ ...e.themeVariables,
3540
+ fontFamily: e.fontFamily
3541
+ }), Gt.push(e), qt(q, Gt);
3542
+ }, "addDirective"), tn = /* @__PURE__ */ n((e = q) => {
3543
+ Gt = [], qt(e, Gt);
3544
+ }, "reset"), nn = {
3545
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3546
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3547
+ }, rn = {}, an = /* @__PURE__ */ n((e) => {
3548
+ rn[e] || (t.warn(nn[e]), rn[e] = !0);
3549
+ }, "issueWarning"), on = /* @__PURE__ */ n((e) => {
3550
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && an("LAZY_LOAD_DEPRECATED");
3551
+ }, "checkConfig"), sn = /* @__PURE__ */ n(() => {
3552
+ let e = {};
3553
+ Wt && (e = F(e, Wt));
3554
+ for (let t of Gt) e = F(e, t);
3555
+ return e;
3556
+ }, "getUserDefinedConfig"), cn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && an("FLOWCHART_HTML_LABELS_DEPRECATED"), K(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), ln = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, Y = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, un = /\s*%%.*\n/gm, dn = class extends Error {
3557
+ static {
3558
+ n(this, "UnknownDiagramError");
3559
+ }
3560
+ constructor(e) {
3561
+ super(e), this.name = "UnknownDiagramError";
3562
+ }
3563
+ }, X = {}, fn = /* @__PURE__ */ n(function(e, t) {
3564
+ e = e.replace(ln, "").replace(Y, "").replace(un, "\n");
3565
+ for (let [n, { detector: r }] of Object.entries(X)) if (r(e, t)) return n;
3566
+ throw new dn(`No diagram type detected matching given configuration for text: ${e}`);
3567
+ }, "detectType"), pn = /* @__PURE__ */ n((...e) => {
3568
+ for (let { id: t, detector: n, loader: r } of e) mn(t, n, r);
3569
+ }, "registerLazyLoadedDiagrams"), mn = /* @__PURE__ */ n((e, n, r) => {
3570
+ X[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), X[e] = {
3571
+ detector: n,
3572
+ loader: r
3573
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
3574
+ }, "addDetector"), hn = /* @__PURE__ */ n((e) => X[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, gn = /* @__PURE__ */ n((e) => e ? wn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), _n = /* @__PURE__ */ (() => {
3575
+ let e = !1;
3576
+ return () => {
3577
+ e ||= (vn(), !0);
3578
+ };
3579
+ })();
3580
+ function vn() {
3581
+ let e = "data-temp-href-target";
3582
+ vt.addHook("beforeSanitizeAttributes", (t) => {
3583
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3584
+ }), vt.addHook("afterSanitizeAttributes", (t) => {
3585
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3586
+ });
3587
+ }
3588
+ n(vn, "setupDompurifyHooks");
3589
+ var yn = /* @__PURE__ */ n((e) => (_n(), vt.sanitize(e)), "removeScript"), bn = /* @__PURE__ */ n((e, t) => {
3590
+ if (cn(t)) {
3591
+ let n = t.securityLevel;
3592
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = yn(e) : n !== "loose" && (e = wn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Cn(e));
3593
+ }
3594
+ return e;
3595
+ }, "sanitizeMore"), Q = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? vt.sanitize(bn(e, t), t.dompurifyConfig).toString() : vt.sanitize(bn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), $ = /* @__PURE__ */ n((e, t) => typeof e == "string" ? Q(e, t) : e.flat().map((e) => Q(e, t)), "sanitizeTextOrArray"), xn = /* @__PURE__ */ n((e) => Z.test(e), "hasBreaks"), Sn = /* @__PURE__ */ n((e) => e.split(Z), "splitBreaks"), Cn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), wn = /* @__PURE__ */ n((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), Tn = /* @__PURE__ */ n((e) => {
3596
+ let t = "";
3597
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3598
+ }, "getUrl"), En = /* @__PURE__ */ n(function(...e) {
3599
+ let t = e.filter((e) => !isNaN(e));
3600
+ return Math.max(...t);
3601
+ }, "getMax"), Dn = /* @__PURE__ */ n(function(...e) {
3602
+ let t = e.filter((e) => !isNaN(e));
3603
+ return Math.min(...t);
3604
+ }, "getMin"), On = /* @__PURE__ */ n(function(e) {
3605
+ let t = e.split(/(,)/), n = [];
3606
+ for (let e = 0; e < t.length; e++) {
3607
+ let r = t[e];
3608
+ if (r === "," && e > 0 && e + 1 < t.length) {
3609
+ let i = t[e - 1], a = t[e + 1];
3610
+ An(i, a) && (r = i + "," + a, e++, n.pop());
3611
+ }
3612
+ n.push(jn(r));
3613
+ }
3614
+ return n.join("");
3615
+ }, "parseGenericTypes"), kn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), An = /* @__PURE__ */ n((e, t) => {
3616
+ let n = kn(e, "~"), r = kn(t, "~");
3617
+ return n === 1 && r === 1;
3618
+ }, "shouldCombineSets"), jn = /* @__PURE__ */ n((e) => {
3619
+ let t = kn(e, "~"), n = !1;
3620
+ if (t <= 1) return e;
3621
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3622
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3623
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3624
+ return n && r.unshift("~"), r.join("");
3625
+ }, "processSet"), Mn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Nn = /\$\$(.*?)\$\$/g, Pn = /* @__PURE__ */ n((e) => (e.match(Nn)?.length ?? 0) > 0, "hasKatex"), Fn = /* @__PURE__ */ n(async (e, t) => {
3626
+ let n = document.createElement("div");
3627
+ n.innerHTML = await Ln(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3628
+ let r = {
3629
+ width: n.clientWidth,
3630
+ height: n.clientHeight
3631
+ };
3632
+ return n.remove(), r;
3633
+ }, "calculateMathMLDimensions"), In = /* @__PURE__ */ n(async (e, t) => {
3634
+ if (!Pn(e)) return e;
3635
+ if (!(Mn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Nn, "MathML is unsupported in this environment.");
3636
+ {
3637
+ let { default: n } = await import("./docmedown.mjs").then((e) => e.t), r = t.forceLegacyMathML || !Mn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3638
+ return e.split(Z).map((e) => Pn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Nn, (e, t) => n.renderToString(t, {
3639
+ throwOnError: !0,
3640
+ displayMode: !0,
3641
+ output: r
3642
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3643
+ }
3644
+ }, "renderKatexUnsanitized"), Ln = /* @__PURE__ */ n(async (e, t) => Q(await In(e, t), t), "renderKatexSanitized"), Rn = {
3645
+ getRows: gn,
3646
+ sanitizeText: Q,
3647
+ sanitizeTextOrArray: $,
3648
+ hasBreaks: xn,
3649
+ splitBreaks: Sn,
3650
+ lineBreakRegex: Z,
3651
+ removeScript: yn,
3652
+ getUrl: Tn,
3653
+ evaluate: K,
3654
+ getMax: En,
3655
+ getMin: Dn
3656
+ }, zn = /* @__PURE__ */ n(function(e, t) {
3657
+ for (let n of t) e.attr(n[0], n[1]);
3658
+ }, "d3Attrs"), Bn = /* @__PURE__ */ n(function(e, t, n) {
3659
+ let r = /* @__PURE__ */ new Map();
3660
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3661
+ }, "calculateSvgSizeAttrs"), Vn = /* @__PURE__ */ n(function(e, t, n, r) {
3662
+ zn(e, Bn(t, n, r));
3663
+ }, "configureSvgSize"), Hn = /* @__PURE__ */ n(function(e, n, r, i) {
3664
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3665
+ t.info(`SVG bounds: ${o}x${s}`, a);
3666
+ let c = 0, l = 0;
3667
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Vn(n, l, c, i);
3668
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3669
+ n.attr("viewBox", u);
3670
+ }, "setupGraphViewbox"), Un = {};
3671
+ function Wn(e) {
3672
+ return [...e.cssRules].map((e) => e.cssText).join("\n");
3673
+ }
3674
+ n(Wn, "cssStyleSheetToString");
3675
+ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
3676
+ let a = "";
3677
+ return e in Un && Un[e] ? a = Un[e]({
3678
+ ...r,
3679
+ svgId: i
3680
+ }) : t.warn(`No theme found for ${e}`), `& {
3681
+ font-family: ${r.fontFamily};
3682
+ font-size: ${r.fontSize};
3683
+ fill: ${r.textColor}
3684
+ }
3685
+ @keyframes edge-animation-frame {
3686
+ from {
3687
+ stroke-dashoffset: 0;
3688
+ }
3689
+ }
3690
+ @keyframes dash {
3691
+ to {
3692
+ stroke-dashoffset: 0;
3693
+ }
3694
+ }
3695
+ & .edge-animation-slow {
3696
+ stroke-dasharray: 9,5 !important;
3697
+ stroke-dashoffset: 900;
3698
+ animation: dash 50s linear infinite;
3699
+ stroke-linecap: round;
3700
+ }
3701
+ & .edge-animation-fast {
3702
+ stroke-dasharray: 9,5 !important;
3703
+ stroke-dashoffset: 900;
3704
+ animation: dash 20s linear infinite;
3705
+ stroke-linecap: round;
3706
+ }
3707
+ /* Classes common for multiple diagrams */
3708
+
3709
+ & .error-icon {
3710
+ fill: ${r.errorBkgColor};
3711
+ }
3712
+ & .error-text {
3713
+ fill: ${r.errorTextColor};
3714
+ stroke: ${r.errorTextColor};
3715
+ }
3716
+
3717
+ & .edge-thickness-normal {
3718
+ stroke-width: ${r.strokeWidth ?? 1}px;
3719
+ }
3720
+ & .edge-thickness-thick {
3721
+ stroke-width: 3.5px
3722
+ }
3723
+ & .edge-pattern-solid {
3724
+ stroke-dasharray: 0;
3725
+ }
3726
+ & .edge-thickness-invisible {
3727
+ stroke-width: 0;
3728
+ fill: none;
3729
+ }
3730
+ & .edge-pattern-dashed{
3731
+ stroke-dasharray: 3;
3732
+ }
3733
+ .edge-pattern-dotted {
3734
+ stroke-dasharray: 2;
3735
+ }
3736
+
3737
+ & .marker {
3738
+ fill: ${r.lineColor};
3739
+ stroke: ${r.lineColor};
3740
+ }
3741
+ & .marker.cross {
3742
+ stroke: ${r.lineColor};
3743
+ }
3744
+
3745
+ & svg {
3746
+ font-family: ${r.fontFamily};
3747
+ font-size: ${r.fontSize};
3748
+ }
3749
+ & p {
3750
+ margin: 0
3751
+ }
3752
+
3753
+ ${a}
3754
+ .node .neo-node {
3755
+ stroke: ${r.nodeBorder};
3756
+ }
3757
+
3758
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3759
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3760
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3761
+ }
3762
+ [data-look="neo"].swimlane.cluster rect {
3763
+ filter: none;
3764
+ }
3765
+
3766
+
3767
+ [data-look="neo"].node path {
3768
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3769
+ stroke-width: ${r.strokeWidth ?? 1}px;
3770
+ }
3771
+
3772
+ [data-look="neo"].node .outer-path {
3773
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3774
+ }
3775
+
3776
+ [data-look="neo"].node .neo-line path {
3777
+ stroke: ${r.nodeBorder};
3778
+ filter: none;
3779
+ }
3780
+
3781
+ [data-look="neo"].node circle{
3782
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3783
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3784
+ }
3785
+
3786
+ [data-look="neo"].node circle .state-start{
3787
+ fill: #000000;
3788
+ }
3789
+
3790
+ [data-look="neo"].icon-shape .icon {
3791
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3792
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3793
+ }
3794
+
3795
+ [data-look="neo"].icon-shape .icon-neo path {
3796
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3797
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3798
+ }
3799
+
3800
+ ${n}
3801
+ `;
3802
+ }, "getStyles"), Kn = /* @__PURE__ */ n((e, t) => {
3803
+ t !== void 0 && (Un[e] = t);
3804
+ }, "addStylesForDiagram"), qn = Gn, Jn = {};
3805
+ r(Jn, {
3806
+ clear: () => $n,
3807
+ getAccDescription: () => rr,
3808
+ getAccTitle: () => tr,
3809
+ getDiagramTitle: () => ar,
3810
+ setAccDescription: () => nr,
3811
+ setAccTitle: () => er,
3812
+ setDiagramTitle: () => ir
3813
+ });
3814
+ var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ n((e) => Q(e, J()), "sanitizeText"), $n = /* @__PURE__ */ n(() => {
3815
+ Yn = "", Zn = "", Xn = "";
3816
+ }, "clear"), er = /* @__PURE__ */ n((e) => {
3817
+ Yn = Qn(e).replace(/^\s+/g, "");
3818
+ }, "setAccTitle"), tr = /* @__PURE__ */ n(() => Yn, "getAccTitle"), nr = /* @__PURE__ */ n((e) => {
3819
+ Zn = Qn(e).replace(/\n\s+/g, "\n");
3820
+ }, "setAccDescription"), rr = /* @__PURE__ */ n(() => Zn, "getAccDescription"), ir = /* @__PURE__ */ n((e) => {
3821
+ Xn = Qn(e);
3822
+ }, "setDiagramTitle"), ar = /* @__PURE__ */ n(() => Xn, "getDiagramTitle"), or = t, sr = e, cr = J, lr = Qt, ur = G, dr = /* @__PURE__ */ n((e) => Q(e, cr()), "sanitizeText"), fr = Hn, pr = /* @__PURE__ */ n(() => Jn, "getCommonDb"), mr = {}, hr = /* @__PURE__ */ n((e, t, n) => {
3823
+ mr[e] && or.warn(`Diagram with id ${e} already registered. Overwriting.`), mr[e] = t, n && mn(e, n), Kn(e, t.styles), t.injectUtils?.(or, sr, cr, dr, fr, pr(), () => {});
3824
+ }, "registerDiagram"), gr = /* @__PURE__ */ n((e) => {
3825
+ if (e in mr) return mr[e];
3826
+ throw new _r(e);
3827
+ }, "getDiagram"), _r = class extends Error {
3828
+ static {
3829
+ n(this, "DiagramNotFoundError");
3830
+ }
3831
+ constructor(e) {
3832
+ super(`Diagram ${e} not found.`);
3833
+ }
3834
+ };
3835
+ //#endregion
3836
+ export { vt as $, Pn as A, dr as B, hn as C, Ct as D, Zt as E, Ln as F, lr as G, nr as H, tn as I, Hn as J, ir as K, Ut as L, On as M, hr as N, Tn as O, pn as P, Xt as Q, W as R, gr as S, cn as T, er as U, Yt as V, Qt as W, qn as X, fr as Y, V as Z, ln as _, $n as a, m as at, J as b, Vn as c, ur as d, b as et, Bt as f, K as g, Y as h, Fn as i, g as it, Z as j, sn as k, Wn as l, X as m, en as n, v as nt, Jn as o, a as ot, fn as p, Jt as q, F as r, _ as rt, Rn as s, dn as t, y as tt, G as u, rr as v, ar as w, cr as x, tr as y, Q as z };