@pi-outpost/embed 0.32.4 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
  2. package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
  3. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
  4. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
  6. package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
  7. package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
  8. package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
  9. package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
  10. package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
  11. package/dist/channel-BjC1TKrU.cjs +1 -0
  12. package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
  13. package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
  14. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
  15. package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
  16. package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
  17. package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
  18. package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
  19. package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
  20. package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
  21. package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
  22. package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
  23. package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
  24. package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
  25. package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
  26. package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
  27. package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
  28. package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
  29. package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
  30. package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
  31. package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
  32. package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
  33. package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
  34. package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
  35. package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
  36. package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
  37. package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
  38. package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
  39. package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
  40. package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
  41. package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
  42. package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
  43. package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
  44. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
  45. package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
  46. package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
  47. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
  48. package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
  49. package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
  50. package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
  51. package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
  52. package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
  53. package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
  54. package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
  55. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
  56. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
  57. package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
  58. package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
  59. package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
  60. package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
  61. package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
  62. package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
  63. package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
  64. package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
  65. package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
  66. package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
  67. package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
  68. package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
  69. package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
  70. package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
  71. package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
  72. package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
  73. package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
  74. package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
  75. package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
  76. package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
  77. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
  78. package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
  79. package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
  80. package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
  81. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
  82. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
  83. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
  84. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
  85. package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
  86. package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
  87. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
  88. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
  89. package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
  90. package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
  91. package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
  92. package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
  93. package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
  94. package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
  95. package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
  96. package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
  97. package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
  98. package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
  99. package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
  100. package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
  101. package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
  102. package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
  103. package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
  104. package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
  105. package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
  106. package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
  107. package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
  108. package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
  109. package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
  110. package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
  111. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
  112. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
  113. package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
  114. package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
  115. package/dist/pi-outpost-embed.cjs +9 -10
  116. package/dist/pi-outpost-embed.js +2833 -2786
  117. package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
  118. package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
  119. package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
  120. package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
  121. package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
  122. package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
  123. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
  124. package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
  125. package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
  126. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
  127. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
  128. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
  129. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
  130. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
  131. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
  132. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
  133. package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
  134. package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
  135. package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
  136. package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
  137. package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
  138. package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
  139. package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
  140. package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
  141. package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
  142. package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
  143. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
  144. package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
  145. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
  146. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
  147. package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
  148. package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
  149. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
  150. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
  151. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
  152. package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
  153. package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
  154. package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
  155. package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
  156. package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
  157. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
  158. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
  159. package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
  160. package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
  161. package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
  162. package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
  163. package/package.json +2 -2
  164. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
  165. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
  166. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
  167. package/dist/channel-DcrLLvcO.cjs +0 -1
  168. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
  169. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
  170. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
  171. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
  172. package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
  173. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
  174. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
  175. package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
  176. package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
  177. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
  178. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
  179. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
  180. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
  181. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
  182. package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
  183. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
  184. package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
  185. package/dist/conversationHistory-BmpdU77I.cjs +0 -286
  186. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
  187. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
  188. package/dist/dagre-BMKbPnPh.js +0 -1934
  189. package/dist/dagre-EEW2OxRU.cjs +0 -1
  190. package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
  191. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
  192. package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
  193. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
  194. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
  195. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
  196. package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
  197. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
  198. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
  199. package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
  200. package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
  201. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
  202. package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
  203. package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
  204. package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
  205. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
  206. package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
  207. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
  208. package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
  209. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
  210. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
  211. package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
  212. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
  213. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
  214. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
  215. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
  216. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
  217. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
  218. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
  219. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
  220. package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
  221. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
  222. package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
  223. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
  224. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
  225. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
  226. package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
  227. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
  228. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
  229. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
  230. package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
  231. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
  232. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
  233. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
  234. package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
@@ -402,12 +402,12 @@ var s = {
402
402
  throw Error(`Unsupported color format: "${e}"`);
403
403
  },
404
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) => {
405
+ }, ee = (e, t) => {
406
406
  let n = m.parse(e);
407
407
  for (let e in t) n[e] = a.channel.clamp[e](t[e]);
408
408
  return m.stringify(n);
409
- }, g = (e, t, n = 0, r = 1) => {
410
- if (typeof e != "number") return h(e, { a: t });
409
+ }, h = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return ee(e, { a: t });
411
411
  let i = l.set({
412
412
  r: a.channel.clamp.r(e),
413
413
  g: a.channel.clamp.g(t),
@@ -415,39 +415,45 @@ var s = {
415
415
  a: a.channel.clamp.a(r)
416
416
  });
417
417
  return m.stringify(i);
418
- }, ee = (e) => {
418
+ }, g = (e) => {
419
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
420
  return a.lang.round(i);
421
- }, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
421
+ }, te = (e) => g(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
422
422
  let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
423
423
  return i !== o && (r[t] = o), m.stringify(r);
424
424
  }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
425
425
  let n = m.parse(e), r = {};
426
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) => {
427
+ return ee(e, r);
428
+ }, ne = (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, ee = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - ee;
430
+ return h(r * ee + s * g, i * ee + c * g, a * ee + l * g, o * d + u * (1 - d));
431
+ }, S = (e, t = 100) => {
432
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);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
434
  };
435
435
  //#endregion
436
436
  //#region ../node_modules/dompurify/dist/purify.es.mjs
437
- function ne(e, t) {
437
+ function re(e, t) {
438
+ this.v = e, this.k = t;
439
+ }
440
+ function ie(e, t) {
438
441
  (t == null || t > e.length) && (t = e.length);
439
442
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
443
  return r;
441
444
  }
442
- function re(e) {
445
+ function ae(e) {
443
446
  if (Array.isArray(e)) return e;
444
447
  }
445
- function ie(e, t) {
448
+ function oe(e, t) {
446
449
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
450
  if (n != null) {
448
451
  var r, i, a, o, s = [], c = !0, l = !1;
449
452
  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);
453
+ if (a = (n = n.call(e)).next, t === 0) {
454
+ if (Object(n) !== n) return;
455
+ c = !1;
456
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
451
457
  } catch (e) {
452
458
  l = !0, i = e;
453
459
  } finally {
@@ -460,113 +466,164 @@ function ie(e, t) {
460
466
  return s;
461
467
  }
462
468
  }
463
- function ae() {
469
+ function se() {
464
470
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
471
  }
466
- function oe(e, t) {
467
- return re(e) || ie(e, t) || se(e, t) || ae();
472
+ function ce(e, t) {
473
+ return ae(e) || oe(e, t) || le(e, t) || se();
468
474
  }
469
- function se(e, t) {
475
+ function le(e, t) {
470
476
  if (e) {
471
- if (typeof e == "string") return ne(e, t);
477
+ if (typeof e == "string") return ie(e, t);
472
478
  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;
479
+ 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) ? ie(e, t) : void 0;
474
480
  }
475
481
  }
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) {
482
+ function ue(e) {
483
+ var t, n;
484
+ function r(t, n) {
485
+ try {
486
+ var a = e[t](n), o = a.value, s = o instanceof re;
487
+ Promise.resolve(s ? o.v : o).then(function(n) {
488
+ if (s) {
489
+ var c = t === "return" && o.k ? t : "next";
490
+ if (!o.k || n.done) return r(c, n);
491
+ n = e[c](n).value;
492
+ }
493
+ i(!!a.done, n);
494
+ }, function(e) {
495
+ r("throw", e);
496
+ });
497
+ } catch (e) {
498
+ i(2, e);
499
+ }
500
+ }
501
+ function i(e, i) {
502
+ e === 2 ? t.reject(i) : t.resolve({
503
+ value: i,
504
+ done: e
505
+ }), (t = t.next) ? r(t.key, t.arg) : n = null;
506
+ }
507
+ this._invoke = function(e, i) {
508
+ return new Promise(function(a, o) {
509
+ var s = {
510
+ key: e,
511
+ arg: i,
512
+ resolve: a,
513
+ reject: o,
514
+ next: null
515
+ };
516
+ n ? n = n.next = s : (t = n = s, r(e, i));
517
+ });
518
+ }, typeof e.return != "function" && (this.return = void 0);
519
+ }
520
+ ue.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
521
+ return this;
522
+ }, ue.prototype.next = function(e) {
523
+ return this._invoke("next", e);
524
+ }, ue.prototype.throw = function(e) {
525
+ return this._invoke("throw", e);
526
+ }, ue.prototype.return = function(e) {
527
+ return this._invoke("return", e);
528
+ };
529
+ var de = Object.entries, fe = Object.setPrototypeOf, pe = Object.isFrozen, me = Object.getPrototypeOf, he = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, ge = Object.create, _e = typeof Reflect < "u" && Reflect, ve = _e.apply, T = _e.construct;
530
+ C ||= function(e) {
478
531
  return e;
479
- }, T ||= function(e) {
532
+ }, w ||= function(e) {
480
533
  return e;
481
- }, he ||= function(e, t) {
534
+ }, ve ||= function(e, t) {
482
535
  var n = [...arguments].slice(2);
483
536
  return e.apply(t, n);
484
- }, ge ||= function(e) {
537
+ }, T ||= function(e) {
485
538
  return new e(...[...arguments].slice(1));
486
539
  };
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) {
540
+ var ye = O(Array.prototype.forEach);
541
+ Array.prototype.indexOf;
542
+ var be = O(Array.prototype.lastIndexOf), xe = O(Array.prototype.pop), Se = O(Array.prototype.push);
543
+ Array.prototype.slice;
544
+ var Ce = O(Array.prototype.splice), we = Array.isArray, Te = O(String.prototype.toLowerCase), Ee = O(String.prototype.toString), De = O(String.prototype.match), Oe = O(String.prototype.replace), ke = O(String.prototype.indexOf), Ae = O(String.prototype.trim), je = O(Number.prototype.toString), Me = O(Boolean.prototype.toString), Ne = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Pe = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Fe = O(Object.prototype.toString), D = O(RegExp.prototype.test), Ie = Le(TypeError);
545
+ function O(e) {
489
546
  return function(t) {
490
547
  t instanceof RegExp && (t.lastIndex = 0);
491
548
  var n = [...arguments].slice(1);
492
- return he(e, t, n);
549
+ return ve(e, t, n);
493
550
  };
494
551
  }
495
- function Pe(e) {
552
+ function Le(e) {
496
553
  return function() {
497
- return ge(e, [...arguments]);
554
+ return T(e, [...arguments]);
498
555
  };
499
556
  }
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;
557
+ function k(e, t) {
558
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Te;
559
+ if (fe && fe(e, null), !we(t)) return e;
503
560
  let r = t.length;
504
561
  for (; r--;) {
505
562
  let i = t[r];
506
563
  if (typeof i == "string") {
507
564
  let e = n(i);
508
- e !== i && (ue(t) || (t[r] = e), i = e);
565
+ e !== i && (pe(t) || (t[r] = e), i = e);
509
566
  }
510
567
  e[i] = !0;
511
568
  }
512
569
  return e;
513
570
  }
514
- function Fe(e) {
515
- for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
571
+ function Re(e) {
572
+ for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
516
573
  return e;
517
574
  }
518
- function j(e) {
519
- let t = pe(null);
520
- for (let r of ce(e)) {
521
- var n = oe(r, 2);
575
+ function A(e) {
576
+ let t = ge(null);
577
+ for (let r of de(e)) {
578
+ var n = ce(r, 2);
522
579
  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);
580
+ E(e, i) && (t[i] = we(a) ? Re(a) : a && typeof a == "object" && a.constructor === Object ? A(a) : a);
524
581
  }
525
582
  return t;
526
583
  }
527
- function Ie(e) {
584
+ function ze(e) {
528
585
  switch (typeof e) {
529
586
  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);
587
+ case "number": return je(e);
588
+ case "boolean": return Me(e);
589
+ case "bigint": return Ne ? Ne(e) : "0";
590
+ case "symbol": return Pe ? Pe(e) : "Symbol()";
591
+ case "undefined": return Fe(e);
535
592
  case "function":
536
593
  case "object": {
537
- if (e === null) return Me(e);
538
- let t = e, n = M(t, "toString");
594
+ if (e === null) return Fe(e);
595
+ let t = e, n = j(t, "toString");
539
596
  if (typeof n == "function") {
540
597
  let e = n(t);
541
- return typeof e == "string" ? e : Me(e);
598
+ return typeof e == "string" ? e : Fe(e);
542
599
  }
543
- return Me(e);
600
+ return Fe(e);
544
601
  }
545
- default: return Me(e);
602
+ default: return Fe(e);
546
603
  }
547
604
  }
548
- function M(e, t) {
605
+ function j(e, t) {
549
606
  for (; e !== null;) {
550
- let n = fe(e, t);
607
+ let n = he(e, t);
551
608
  if (n) {
552
- if (n.get) return k(n.get);
553
- if (typeof n.value == "function") return k(n.value);
609
+ if (n.get) return O(n.get);
610
+ if (typeof n.value == "function") return O(n.value);
554
611
  }
555
- e = de(e);
612
+ e = me(e);
556
613
  }
557
614
  function n() {
558
615
  return null;
559
616
  }
560
617
  return n;
561
618
  }
562
- function Le(e) {
619
+ function Be(e) {
563
620
  try {
564
- return O(e, ""), !0;
621
+ return D(e, ""), !0;
565
622
  } catch {
566
623
  return !1;
567
624
  }
568
625
  }
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([
626
+ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), He = C(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Ue = C([
570
627
  "feBlend",
571
628
  "feColorMatrix",
572
629
  "feComponentTransfer",
@@ -592,7 +649,7 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
592
649
  "feSpotLight",
593
650
  "feTile",
594
651
  "feTurbulence"
595
- ]), Ve = w([
652
+ ]), We = C([
596
653
  "animate",
597
654
  "color-profile",
598
655
  "cursor",
@@ -615,7 +672,7 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
615
672
  "solidcolor",
616
673
  "unknown",
617
674
  "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([
675
+ ]), Ge = C(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ke = C([
619
676
  "maction",
620
677
  "maligngroup",
621
678
  "malignmark",
@@ -631,13 +688,13 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
631
688
  "annotation-xml",
632
689
  "mprescripts",
633
690
  "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([
691
+ ]), qe = C(["#text"]), Je = C(/* @__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(".")), Ye = C(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.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(".")), Xe = C(/* @__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(".")), Ze = C([
635
692
  "xlink:href",
636
693
  "xml:id",
637
694
  "xlink:title",
638
695
  "xml:space",
639
696
  "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 = {
697
+ ]), Qe = w(/{{[\w\W]*|^[\w\W]*}}/g), $e = w(/<%[\w\W]*|^[\w\W]*%>/g), et = w(/\${[\w\W]*/g), tt = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), nt = w(/^aria-[\-\w]+$/), rt = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), it = w(/^(?:\w+script|data):/i), at = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ot = w(/^html$/i), st = w(/^[a-z][.\w]*(-[.\w]+)+$/i), ct = w(/<[/\w!]/g), lt = w(/<[/\w]/g), ut = w(/<\/no(script|embed|frames)/i), dt = w(/\/>/i), M = {
641
698
  element: 1,
642
699
  attribute: 2,
643
700
  text: 3,
@@ -650,7 +707,7 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
650
707
  documentType: 10,
651
708
  documentFragment: 11,
652
709
  notation: 12
653
- }, lt = [
710
+ }, ft = [
654
711
  "style",
655
712
  "script",
656
713
  "xmp",
@@ -659,14 +716,14 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
659
716
  "noframes",
660
717
  "plaintext",
661
718
  "noscript"
662
- ], ut = w(A({}, lt)), dt = function() {
719
+ ], pt = C(k({}, ft)), mt = function() {
663
720
  let e = {};
664
- return _e(lt, (t) => {
665
- e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
666
- }), w(e);
667
- }(), ft = function() {
721
+ return ye(ft, (t) => {
722
+ e[t] = w(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
723
+ }), C(e);
724
+ }(), ht = function() {
668
725
  return typeof window > "u" ? null : window;
669
- }, pt = function(e, t) {
726
+ }, gt = function(e, t) {
670
727
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
671
728
  let n = null, r = "data-tt-policy-suffix";
672
729
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -683,7 +740,7 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
683
740
  } catch {
684
741
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
685
742
  }
686
- }, mt = function() {
743
+ }, _t = function() {
687
744
  return {
688
745
  afterSanitizeAttributes: [],
689
746
  afterSanitizeElements: [],
@@ -695,60 +752,60 @@ var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
695
752
  uponSanitizeElement: [],
696
753
  uponSanitizeShadowNode: []
697
754
  };
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();
755
+ }, N = function(e, t, n, r) {
756
+ return E(e, t) && we(e[t]) ? k(r.base ? A(r.base) : {}, e[t], r.transform) : n;
757
+ }, vt = function(e, t, n) {
758
+ let r = E(e, t) ? e[t] : void 0;
759
+ return r && typeof r == "object" ? A(r) : n();
703
760
  };
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;
761
+ function yt() {
762
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ht(), t = (e) => yt(e);
763
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
707
764
  let n = e.document, r = n, i = r.currentScript;
708
765
  e.DocumentFragment;
709
766
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
710
767
  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;
768
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = j(d, "cloneNode"), p = j(d, "remove"), m = j(d, "removeAttributeNode"), ee = j(d, "nextSibling"), h = j(d, "childNodes"), g = j(d, "parentNode"), te = j(d, "shadowRoot"), _ = j(d, "attributes"), v = o && o.prototype ? j(o.prototype, "nodeType") : null, y = o && o.prototype ? j(o.prototype, "nodeName") : null, b = o && o.prototype ? j(o.prototype, "ownerDocument") : null, x = function(e) {
769
+ return v ? v(e) : e.nodeType;
770
+ }, ne = function(e) {
771
+ return y ? y(e) : e.nodeName;
715
772
  };
716
773
  if (typeof a == "function") {
717
774
  let e = n.createElement("template");
718
775
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
719
776
  }
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++;
777
+ let S, re = "", ie, ae = !1, oe = 0, se = function() {
778
+ if (oe > 0) throw Ie("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.");
779
+ }, ce = function(e) {
780
+ se(), oe++;
724
781
  try {
725
782
  return S.createHTML(e);
726
783
  } finally {
727
- ie--;
784
+ oe--;
728
785
  }
729
- }, se = function(e) {
730
- ae(), ie++;
786
+ }, le = function(e) {
787
+ se(), oe++;
731
788
  try {
732
789
  return S.createScriptURL(e);
733
790
  } finally {
734
- ie--;
791
+ oe--;
735
792
  }
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,
793
+ }, ue = function() {
794
+ return ae ||= (ie = gt(u, i), !0), ie;
795
+ }, fe = n, pe = fe.implementation, me = fe.createNodeIterator, he = fe.createDocumentFragment, _e = fe.getElementsByTagName, ve = r.importNode, T = _t();
796
+ t.isSupported = typeof de == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
797
+ let je = Qe, Me = $e, Ne = et, Pe = tt, Fe = nt, O = it, Le = at, Re = st, ft = rt, P = null, bt = k({}, [
798
+ ...Ve,
744
799
  ...He,
745
- ...We
746
- ]), I = null, L = A({}, [
800
+ ...Ue,
747
801
  ...Ge,
748
- ...Ke,
749
- ...qe,
750
- ...Je
751
- ]), R = Object.seal(pe(null, {
802
+ ...qe
803
+ ]), F = null, xt = k({}, [
804
+ ...Je,
805
+ ...Ye,
806
+ ...Xe,
807
+ ...Ze
808
+ ]), I = Object.seal(ge(null, {
752
809
  tagNameCheck: {
753
810
  writable: !0,
754
811
  configurable: !1,
@@ -767,7 +824,7 @@ function _t() {
767
824
  enumerable: !0,
768
825
  value: !1
769
826
  }
770
- })), yt = null, bt = null, z = Object.seal(pe(null, {
827
+ })), St = null, Ct = null, L = Object.seal(ge(null, {
771
828
  tagCheck: {
772
829
  writable: !0,
773
830
  configurable: !1,
@@ -780,14 +837,14 @@ function _t() {
780
837
  enumerable: !0,
781
838
  value: null
782
839
  }
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({}, [
840
+ })), wt = !0, Tt = !0, Et = !1, Dt = !0, R = !1, z = !0, B = !1, V = !1, H = null, U = null, Ot = !1, W = !1, kt = !1, At = !1, jt = !0, Mt = !1, Nt = "user-content-", Pt = !0, Ft = !1, It = {}, Lt = null, Rt = k({}, /* @__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 = k({}, [
784
841
  "audio",
785
842
  "video",
786
843
  "img",
787
844
  "source",
788
845
  "image",
789
846
  "track"
790
- ]), Vt = null, Ht = A({}, [
847
+ ]), Vt = null, Ht = k({}, [
791
848
  "alt",
792
849
  "class",
793
850
  "for",
@@ -802,101 +859,101 @@ function _t() {
802
859
  "value",
803
860
  "style",
804
861
  "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,
862
+ ]), Ut = "http://www.w3.org/1998/Math/MathML", Wt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Gt = G, Kt = !1, qt = null, Jt = k({}, [
807
863
  Ut,
864
+ Wt,
808
865
  G
809
- ], we), Kt = w([
866
+ ], Ee), K = C([
810
867
  "mi",
811
868
  "mo",
812
869
  "mn",
813
870
  "ms",
814
871
  "mtext"
815
- ]), qt = A({}, Kt), Jt = w(["annotation-xml"]), Yt = A({}, Jt), Xt = A({}, [
872
+ ]), q = k({}, K), Yt = C(["annotation-xml"]), Xt = k({}, Yt), Zt = k({}, [
816
873
  "title",
817
874
  "style",
818
875
  "font",
819
876
  "a",
820
877
  "script"
821
- ]), Zt = null, Qt = ["application/xhtml+xml", "text/html"], J = null, $t = null, en = n.createElement("form"), tn = function(e) {
878
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, en = null, tn = n.createElement("form"), nn = function(e) {
822
879
  return e instanceof RegExp || e instanceof Function;
823
- }, nn = function() {
880
+ }, rn = function() {
824
881
  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, {
882
+ if (en && en === e) return;
883
+ (!e || typeof e != "object") && (e = {}), e = A(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? Ee : Te, P = N(e, "ALLOWED_TAGS", bt, { transform: J }), F = N(e, "ALLOWED_ATTR", xt, { transform: J }), qt = N(e, "ALLOWED_NAMESPACES", Jt, { transform: Ee }), Vt = N(e, "ADD_URI_SAFE_ATTR", Ht, {
827
884
  transform: J,
828
885
  base: Ht
829
- }), zt = ht(e, "ADD_DATA_URI_TAGS", Bt, {
886
+ }), zt = N(e, "ADD_DATA_URI_TAGS", Bt, {
830
887
  transform: J,
831
888
  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, [
889
+ }), Lt = N(e, "FORBID_CONTENTS", Rt, { transform: J }), St = N(e, "FORBID_TAGS", A({}), { transform: J }), Ct = N(e, "FORBID_ATTR", A({}), { transform: J }), It = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, wt = e.ALLOW_ARIA_ATTR !== !1, Tt = e.ALLOW_DATA_ATTR !== !1, Et = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = e.SAFE_FOR_TEMPLATES || !1, z = e.SAFE_FOR_XML !== !1, B = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, kt = e.RETURN_DOM_FRAGMENT || !1, At = e.RETURN_TRUSTED_TYPE || !1, Ot = e.FORCE_BODY || !1, jt = e.SANITIZE_DOM !== !1, Mt = e.SANITIZE_NAMED_PROPS || !1, Pt = e.KEEP_CONTENT !== !1, Ft = e.IN_PLACE || !1, ft = Be(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : rt, Gt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = vt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => k({}, K)), Xt = vt(e, "HTML_INTEGRATION_POINTS", () => k({}, Yt));
890
+ let t = vt(e, "CUSTOM_ELEMENT_HANDLING", () => ge(null));
891
+ if (I = ge(null), E(t, "tagNameCheck") && nn(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && nn(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(I), R && (Tt = !1), kt && (W = !0), It && (P = k({}, qe), F = ge(null), It.html === !0 && (k(P, Ve), k(F, Je)), It.svg === !0 && (k(P, He), k(F, Ye), k(F, Ze)), It.svgFilters === !0 && (k(P, Ue), k(F, Ye), k(F, Ze)), It.mathMl === !0 && (k(P, Ge), k(F, Xe), k(F, Ze))), L.tagCheck = null, L.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? L.tagCheck = e.ADD_TAGS : we(e.ADD_TAGS) && (P === bt && (P = A(P)), k(P, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? L.attributeCheck = e.ADD_ATTR : we(e.ADD_ATTR) && (F === xt && (F = A(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_FORBID_CONTENTS") && we(e.ADD_FORBID_CONTENTS) && (Lt === Rt && (Lt = A(Lt)), k(Lt, e.ADD_FORBID_CONTENTS, J)), Pt && (P["#text"] = !0), B && k(P, [
835
892
  "html",
836
893
  "head",
837
894
  "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.");
895
+ ]), P.table && (k(P, ["tbody"]), delete St.tbody), e.TRUSTED_TYPES_POLICY) {
896
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ie("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
897
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ie("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
841
898
  let t = S;
842
899
  S = e.TRUSTED_TYPES_POLICY;
843
900
  try {
844
- C = oe("");
901
+ re = ce("");
845
902
  } catch (e) {
846
903
  throw S = t, e;
847
904
  }
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];
905
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, re = "") : (S === void 0 && (S = ue()), S && typeof re == "string" && (re = ce("")));
906
+ C && C(e), en = e;
907
+ }, an = k({}, [
908
+ ...He,
909
+ ...Ue,
910
+ ...We
911
+ ]), on = k({}, [...Ge, ...Ke]), sn = function(e, t, n) {
912
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Ut ? e === "svg" && (n === "annotation-xml" || q[n]) : !!an[e];
858
913
  }, 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) {
914
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Wt ? e === "math" && Xt[n] : !!on[e];
915
+ }, ln = function(e, t, n) {
916
+ return t.namespaceURI === Wt && !Xt[n] || t.namespaceURI === Ut && !q[n] ? !1 : !on[e] && (Zt[e] || !an[e]);
917
+ }, un = function(e) {
861
918
  let t = g(e);
862
919
  (!t || !t.tagName) && (t = {
863
- namespaceURI: K,
920
+ namespaceURI: Gt,
864
921
  tagName: "template"
865
922
  });
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;
923
+ let n = Te(e.tagName), r = Te(t.tagName);
924
+ return qt[e.namespaceURI] ? e.namespaceURI === Wt ? sn(n, t, r) : e.namespaceURI === Ut ? cn(n, t, r) : e.namespaceURI === G ? ln(n, t, r) : !!(Qt === "application/xhtml+xml" && qt[e.namespaceURI]) : !1;
868
925
  }, Y = function(e) {
869
- be(t.removed, { element: e });
926
+ Se(t.removed, { element: e });
870
927
  try {
871
928
  g(e).removeChild(e);
872
929
  } 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");
930
+ if (p(e), !g(e)) throw Ie("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
874
931
  }
875
- }, un = function(e, t, n) {
932
+ }, dn = function(e, t, n) {
876
933
  try {
877
- e.removeAttributeNode(t);
934
+ m(e, t);
878
935
  } catch {
879
936
  try {
880
937
  e.removeAttribute(n);
881
938
  } catch {}
882
939
  }
883
- }, dn = function(e) {
884
- pn(e);
940
+ }, fn = function(e) {
941
+ Z(e);
885
942
  let t = h(e);
886
943
  if (t) {
887
944
  let e = [];
888
- _e(t, (t) => {
889
- be(e, t);
890
- }), _e(e, (e) => {
945
+ ye(t, (t) => {
946
+ Se(e, t);
947
+ }), ye(e, (e) => {
891
948
  try {
892
949
  p(e);
893
950
  } catch {}
894
951
  });
895
952
  }
896
- let n = te(e);
953
+ let n = _(e);
897
954
  if (n) for (let t = n.length - 1; t >= 0; --t) {
898
955
  let r = n[t], i = r && r.name;
899
- typeof i == "string" && un(e, r, i);
956
+ typeof i == "string" && dn(e, r, i);
900
957
  }
901
958
  }, X = function(e, n, r) {
902
959
  if (!r) try {
@@ -904,54 +961,54 @@ function _t() {
904
961
  } catch {
905
962
  r = null;
906
963
  }
907
- be(t.removed, {
964
+ Se(t.removed, {
908
965
  attribute: r || null,
909
966
  from: n
910
967
  });
911
968
  try {
912
- r ? n.removeAttributeNode(r) : n.removeAttribute(e);
969
+ r ? m(n, r) : n.removeAttribute(e);
913
970
  } catch {
914
971
  try {
915
972
  n.removeAttribute(e);
916
973
  } catch {}
917
974
  }
918
975
  if (e === "is") {
919
- if (jt || Mt) try {
976
+ if (W || kt) try {
920
977
  Y(n);
921
978
  } catch {}
922
979
  else try {
923
980
  n.setAttribute(e, "");
924
981
  } catch {}
925
982
  }
926
- }, fn = function(e) {
927
- let t = te(e);
983
+ }, pn = function(e) {
984
+ let t = _(e);
928
985
  if (t) for (let n = t.length - 1; n >= 0; --n) {
929
986
  let r = t[n], i = r && r.name;
930
- typeof i != "string" || I[J(i)] || un(e, r, i);
987
+ typeof i != "string" || F[J(i)] || dn(e, r, i);
931
988
  }
932
- }, pn = function(e) {
989
+ }, Z = function(e) {
933
990
  let t = [e];
934
991
  for (; t.length > 0;) {
935
992
  let e = t.pop();
936
- b(e) === N.element && fn(e);
993
+ x(e) === M.element && pn(e);
937
994
  let n = h(e);
938
995
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
939
996
  }
940
997
  }, mn = function(e, t) {
941
- return Tt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
998
+ return z ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
942
999
  }, hn = function(e) {
943
- if (!Tt) return;
1000
+ if (!z) return;
944
1001
  let t = [e];
945
1002
  for (; t.length > 0;) {
946
- let e = t.pop(), n = b(e);
947
- if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
1003
+ let e = t.pop(), n = x(e);
1004
+ if (n === M.processingInstruction || n === M.comment && D(lt, e.data)) {
948
1005
  try {
949
1006
  p(e);
950
1007
  } catch {}
951
1008
  continue;
952
1009
  }
953
- if (n === N.element) {
954
- let t = e, n = J(x(e));
1010
+ if (n === M.element) {
1011
+ let t = e, n = J(ne(e));
955
1012
  try {
956
1013
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
957
1014
  } catch {}
@@ -959,107 +1016,107 @@ function _t() {
959
1016
  let r = h(e);
960
1017
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
961
1018
  }
962
- }, Z = function(e) {
1019
+ }, gn = function(e) {
963
1020
  let t = null, r = null;
964
- if (At) e = "<remove></remove>" + e;
1021
+ if (Ot) e = "<remove></remove>" + e;
965
1022
  else {
966
- let t = Te(e, /^[\r\n\t ]+/);
1023
+ let t = De(e, /^[\r\n\t ]+/);
967
1024
  r = t && t[0];
968
1025
  }
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);
1026
+ Qt === "application/xhtml+xml" && Gt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1027
+ let i = S ? ce(e) : e;
1028
+ if (Gt === G) try {
1029
+ t = new l().parseFromString(i, Qt);
973
1030
  } catch {}
974
1031
  if (!t || !t.documentElement) {
975
- t = de.createDocument(K, "template", null);
1032
+ t = pe.createDocument(Gt, "template", null);
976
1033
  try {
977
- t.documentElement.innerHTML = q ? C : i;
1034
+ t.documentElement.innerHTML = Kt ? re : i;
978
1035
  } catch {}
979
1036
  }
980
1037
  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);
1038
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Gt === G ? _e.call(t, B ? "html" : "body")[0] : B ? t.documentElement : a;
985
1039
  }, _n = function(e) {
986
- return e = Ee(e, ke, " "), e = Ee(e, Ae, " "), e = Ee(e, je, " "), e;
1040
+ let t = b ? b(e) : e.ownerDocument;
1041
+ return me.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
987
1042
  }, vn = function(e) {
1043
+ return e = Oe(e, je, " "), e = Oe(e, Me, " "), e = Oe(e, Ne, " "), e;
1044
+ }, yn = function(e) {
988
1045
  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();
1046
+ let t = b ? b(e) : e.ownerDocument, n = me.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
1047
+ for (; r;) r.data = vn(r.data), r = n.nextNode();
991
1048
  let i = e.querySelectorAll?.call(e, "template");
992
- i && _e(i, (e) => {
993
- bn(e.content) && vn(e.content);
1049
+ i && ye(i, (e) => {
1050
+ xn(e.content) && yn(e.content);
994
1051
  });
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
1052
  }, bn = function(e) {
999
- if (!_ || typeof e != "object" || !e) return !1;
1053
+ let t = y ? y(e) : null;
1054
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== h(e);
1055
+ }, xn = function(e) {
1056
+ if (!v || typeof e != "object" || !e) return !1;
1000
1057
  try {
1001
- return _(e) === N.documentFragment;
1058
+ return v(e) === M.documentFragment;
1002
1059
  } catch {
1003
1060
  return !1;
1004
1061
  }
1005
1062
  }, Q = function(e) {
1006
- if (!_ || typeof e != "object" || !e) return !1;
1063
+ if (!v || typeof e != "object" || !e) return !1;
1007
1064
  try {
1008
- return typeof _(e) == "number";
1065
+ return typeof v(e) == "number";
1009
1066
  } catch {
1010
1067
  return !1;
1011
1068
  }
1012
1069
  };
1013
1070
  function $(e, n, r) {
1014
- e.length !== 0 && _e(e, (e) => {
1015
- e.call(t, n, r, $t);
1071
+ e.length !== 0 && ye(e, (e) => {
1072
+ e.call(t, n, r, en);
1016
1073
  });
1017
1074
  }
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]) {
1075
+ let Sn = function(e, t) {
1076
+ return !!(z && e.hasChildNodes() && !Q(e.firstElementChild) && D(ct, e.textContent) && D(ct, e.innerHTML) || z && e.namespaceURI === G && pt[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && D(mt[t], e.textContent)) || e.nodeType === M.processingInstruction || z && e.nodeType === M.comment && D(lt, e.data));
1077
+ }, Cn = function(e, t) {
1078
+ return e instanceof RegExp ? D(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1079
+ }, wn = function(e, t, n) {
1080
+ if (!St[t] && An(t) && Cn(I.tagNameCheck, t)) return !1;
1081
+ if (Pt && !Lt[t]) {
1025
1082
  let t = g(e), r = h(e);
1026
1083
  if (r && t) {
1027
1084
  let i = r.length;
1028
1085
  for (let a = i - 1; a >= 0; --a) {
1029
1086
  let i = e === n ? f(r[a], !0) : r[a];
1030
- t.insertBefore(i, m(e));
1087
+ t.insertBefore(i, ee(e));
1031
1088
  }
1032
1089
  }
1033
1090
  }
1034
1091
  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, {
1092
+ }, Tn = function(e, t, n, r) {
1093
+ return e.length === 0 ? t : t === n || t === r ? A(t) : t;
1094
+ }, En = function(e, t) {
1095
+ return e === t || g(e) !== null ? !1 : (Ft && Z(e), !0);
1096
+ }, Dn = function(e, n) {
1097
+ if ($(T.beforeSanitizeElements, e, null), En(e, n)) return !0;
1098
+ if (bn(e)) return Y(e), !0;
1099
+ let r = J(ne(e));
1100
+ if (P = Tn(T.uponSanitizeElement, P, bt, H), $(T.uponSanitizeElement, e, {
1044
1101
  tagName: r,
1045
1102
  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;
1103
+ }), En(e, n)) return !0;
1104
+ if (Sn(e, r)) return Y(e), !0;
1105
+ if (St[r] || !(L.tagCheck instanceof Function && L.tagCheck(r)) && !P[r]) {
1106
+ let t = wn(e, r, n);
1107
+ return t === !1 && ($(T.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
1051
1108
  }
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);
1109
+ if (x(e) === M.element && !un(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(ut, e.innerHTML)) return Y(e), !0;
1110
+ if (R && e.nodeType === M.text) {
1111
+ let n = vn(e.textContent);
1112
+ e.textContent !== n && (Se(t.removed, { element: e.cloneNode() }), e.textContent = n);
1056
1113
  }
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({}, [
1114
+ return $(T.afterSanitizeElements, e, null), En(e, n);
1115
+ }, On = function(e, t, r) {
1116
+ if (Ct[t] || mn(t, e) || jt && (t === "id" || t === "name") && (r in n || r in tn)) return !1;
1117
+ let i = F[t] || L.attributeCheck instanceof Function && L.attributeCheck(t, e);
1118
+ return Tt && D(Pe, t) || wt && D(Fe, t) ? !0 : i ? Vt[t] || D(ft, Oe(r, Le, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ke(r, "data:") === 0 && zt[e] || Et && !D(O, Oe(r, Le, "")) ? !0 : !r : An(e) && Cn(I.tagNameCheck, e) && Cn(I.attributeNameCheck, t, e) || t === "is" && I.allowCustomizedBuiltInElements && Cn(I.tagNameCheck, r);
1119
+ }, kn = k({}, [
1063
1120
  "annotation-xml",
1064
1121
  "color-profile",
1065
1122
  "font-face",
@@ -1068,67 +1125,67 @@ function _t() {
1068
1125
  "font-face-src",
1069
1126
  "font-face-uri",
1070
1127
  "missing-glyph"
1071
- ]), kn = function(e) {
1072
- return !On[Ce(e)] && O(lt, e);
1073
- }, An = function(e, t, n, r) {
1128
+ ]), An = function(e) {
1129
+ return !kn[Te(e)] && D(Re, e);
1130
+ }, jn = function(e, t, n, r) {
1074
1131
  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);
1132
+ case "TrustedHTML": return ce(r);
1133
+ case "TrustedScriptURL": return le(r);
1077
1134
  }
1078
1135
  return r;
1079
- }, jn = function(e, n, r, i) {
1136
+ }, Mn = function(e, t, n, r) {
1080
1137
  try {
1081
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), yn(e) ? Y(e) : ye(t.removed);
1138
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !bn(e) || (Y(e), !1);
1082
1139
  } catch {
1083
- X(n, e);
1140
+ return X(t, e), !1;
1084
1141
  }
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 = {
1142
+ }, Nn = function(e, n) {
1143
+ if ($(T.beforeSanitizeAttributes, e, null), En(e, n)) return;
1144
+ let r = e.attributes;
1145
+ if (!r || bn(e)) return;
1146
+ F = Tn(T.uponSanitizeAttribute, F, xt, U);
1147
+ let i = {
1091
1148
  attrName: "",
1092
1149
  attrValue: "",
1093
1150
  keepAttr: !0,
1094
- allowedAttributes: I,
1151
+ allowedAttributes: F,
1095
1152
  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);
1153
+ }, a = r.length, o = J(e.nodeName);
1154
+ for (; a--;) {
1155
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : Ae(d), p = !1;
1156
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(T.uponSanitizeAttribute, e, i), f = i.attrValue, Mt && (u === "id" || u === "name") && ke(f, Nt) !== 0 && (X(s, e, n), f = Nt + f, p = !0), z && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
1157
+ X(s, e, n);
1101
1158
  continue;
1102
1159
  }
1103
- if (l === "attributename" && Te(d, "href")) {
1104
- X(o, e, a);
1160
+ if (u === "attributename" && De(f, "href")) {
1161
+ X(s, e, n);
1105
1162
  continue;
1106
1163
  }
1107
- if (!n.forceKeepAttr) {
1108
- if (!n.keepAttr) {
1109
- X(o, e, a);
1164
+ if (!i.forceKeepAttr) {
1165
+ if (!i.keepAttr) {
1166
+ X(s, e, n);
1110
1167
  continue;
1111
1168
  }
1112
- if (!wt && O(ct, d)) {
1113
- X(o, e, a);
1169
+ if (!Dt && D(dt, f)) {
1170
+ X(s, e, n);
1114
1171
  continue;
1115
1172
  }
1116
- if (B && (d = _n(d)), !Dn(i, l, d)) {
1117
- X(o, e, a);
1173
+ if (R && (f = vn(f)), !On(o, u, f)) {
1174
+ X(s, e, n);
1118
1175
  continue;
1119
1176
  }
1120
- d = An(i, l, s, d), d !== u && jn(e, o, s, d);
1177
+ f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && xe(t.removed);
1121
1178
  }
1122
1179
  }
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);
1180
+ $(T.afterSanitizeAttributes, e, null), En(e, n);
1131
1181
  }, Pn = function(e) {
1182
+ let t = null, n = _n(e);
1183
+ for ($(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(T.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), xn(t.content) && Pn(t.content), x(t) === M.element) {
1184
+ let e = te(t);
1185
+ xn(e) && (Fn(e), Pn(e));
1186
+ }
1187
+ $(T.afterSanitizeShadowDOM, e, null);
1188
+ }, Fn = function(e) {
1132
1189
  let t = [{
1133
1190
  node: e,
1134
1191
  shadow: null
@@ -1136,27 +1193,27 @@ function _t() {
1136
1193
  for (; t.length > 0;) {
1137
1194
  let e = t.pop();
1138
1195
  if (e.shadow) {
1139
- Nn(e.shadow);
1196
+ Pn(e.shadow);
1140
1197
  continue;
1141
1198
  }
1142
- let n = e.node, r = b(n) === N.element, i = h(n);
1199
+ let n = e.node, r = x(n) === M.element, i = h(n);
1143
1200
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1144
1201
  node: i[e],
1145
1202
  shadow: null
1146
1203
  });
1147
1204
  if (r) {
1148
- let e = v ? v(n) : null;
1205
+ let e = y ? y(n) : null;
1149
1206
  if (typeof e == "string" && J(e) === "template") {
1150
1207
  let e = n.content;
1151
- bn(e) && t.push({
1208
+ xn(e) && t.push({
1152
1209
  node: e,
1153
1210
  shadow: null
1154
1211
  });
1155
1212
  }
1156
1213
  }
1157
1214
  if (r) {
1158
- let e = ee(n);
1159
- bn(e) && t.push({
1215
+ let e = te(n);
1216
+ xn(e) && t.push({
1160
1217
  node: null,
1161
1218
  shadow: e
1162
1219
  }, {
@@ -1168,76 +1225,137 @@ function _t() {
1168
1225
  };
1169
1226
  return t.sanitize = function(e) {
1170
1227
  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");
1228
+ if (Kt = !e, Kt && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = ze(e), typeof e != "string")) throw Ie("dirty is not a string, aborting");
1172
1229
  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);
1230
+ V ? (P = H, F = U) : rn(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (P = A(P)), T.uponSanitizeAttribute.length > 0 && (F = A(F)), t.removed = [];
1231
+ let c = Ft && typeof e != "string" && Q(e);
1175
1232
  if (c) {
1176
1233
  hn(e);
1177
- let t = x(e);
1234
+ let t = ne(e);
1178
1235
  if (typeof t == "string") {
1179
1236
  let n = J(t);
1180
- if (!P[n] || yt[n]) throw dn(e), Ne("root node is forbidden and cannot be sanitized in-place");
1237
+ if (!P[n] || St[n]) throw fn(e), Ie("root node is forbidden and cannot be sanitized in-place");
1181
1238
  }
1182
- if (yn(e)) throw dn(e), Ne("root node is clobbered and cannot be sanitized in-place");
1239
+ if (bn(e)) throw fn(e), Ie("root node is clobbered and cannot be sanitized in-place");
1183
1240
  try {
1184
- Pn(e);
1241
+ Fn(e);
1185
1242
  } catch (t) {
1186
- throw dn(e), t;
1243
+ throw fn(e), t;
1187
1244
  }
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);
1245
+ } else if (Q(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
1189
1246
  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 : "";
1247
+ if (!W && !R && !B && e.indexOf("<") === -1) return S && At ? ce(e) : e;
1248
+ if (i = gn(e), !i) return W ? null : At ? re : "";
1192
1249
  }
1193
- i && At && Y(i.firstChild);
1250
+ i && Ot && Y(i.firstChild);
1194
1251
  let l = c ? e : i;
1195
1252
  try {
1196
- let e = gn(l);
1197
- for (; o = e.nextNode();) En(o, l), Mn(o), bn(o.content) && Nn(o.content);
1253
+ let e = _n(l);
1254
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), xn(o.content) && Pn(o.content);
1198
1255
  } catch (n) {
1199
- throw c && (dn(e), _e(t.removed, (e) => {
1200
- e.element && pn(e.element);
1256
+ throw c && (fn(e), ye(t.removed, (e) => {
1257
+ e.element && Z(e.element);
1201
1258
  })), n;
1202
1259
  }
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);
1260
+ if (c) {
1261
+ let n = !1;
1262
+ if (ye(t.removed, (t) => {
1263
+ t.element && (t.element === e && (n = !0), Z(t.element));
1264
+ }), n) throw Ie("a node selected for removal could not be safely returned; refusing to sanitize in place");
1265
+ return R && yn(e), e;
1266
+ }
1267
+ if (W) {
1268
+ if (R && yn(i), kt) for (s = he.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1208
1269
  else s = i;
1209
- return (I.shadowroot || I.shadowrootmode) && (s = ge.call(r, s, !0)), s;
1270
+ return (F.shadowroot || F.shadowrootmode) && (s = ve.call(r, s, !0)), s;
1210
1271
  }
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;
1272
+ let u = B ? i.outerHTML : i.innerHTML;
1273
+ return B && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(ot, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), R && (u = vn(u)), S && At ? ce(u) : u;
1213
1274
  }, t.setConfig = function() {
1214
1275
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1215
- nn(e), Dt = !0, Ot = P, kt = I;
1276
+ rn(e), V = !0, H = P, U = F;
1216
1277
  }, t.clearConfig = function() {
1217
- $t = null, Dt = !1, Ot = null, kt = null, S = ne, C = "";
1278
+ en = null, V = !1, H = null, U = null, S = ie, re = "";
1218
1279
  }, t.isValidAttribute = function(e, t, n) {
1219
- $t || nn({});
1280
+ en || rn({});
1220
1281
  let r = J(e), i = J(t);
1221
- return Dn(r, i, n);
1282
+ return On(r, i, n);
1222
1283
  }, t.addHook = function(e, t) {
1223
- typeof t == "function" && D(E, e) && be(E[e], t);
1284
+ typeof t == "function" && E(T, e) && Se(T[e], t);
1224
1285
  }, t.removeHook = function(e, t) {
1225
- if (D(E, e)) {
1286
+ if (E(T, e)) {
1226
1287
  if (t !== void 0) {
1227
- let n = ve(E[e], t);
1228
- return n === -1 ? void 0 : xe(E[e], n, 1)[0];
1288
+ let n = be(T[e], t);
1289
+ return n === -1 ? void 0 : Ce(T[e], n, 1)[0];
1229
1290
  }
1230
- return ye(E[e]);
1291
+ return xe(T[e]);
1231
1292
  }
1232
1293
  }, t.removeHooks = function(e) {
1233
- D(E, e) && (E[e] = []);
1294
+ E(T, e) && (T[e] = []);
1234
1295
  }, t.removeAllHooks = function() {
1235
- E = mt();
1296
+ T = _t();
1236
1297
  }, t;
1237
1298
  }
1238
- var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1299
+ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, F = /\s/, xt = /* @__PURE__ */ e((e) => {
1300
+ let t = "", n = 0, r = 0;
1301
+ for (; r < e.length;) {
1302
+ let i = e.indexOf("%%", r);
1303
+ if (i === -1) break;
1304
+ let a = e.indexOf("\n", i);
1305
+ if (a === -1) break;
1306
+ let o = i;
1307
+ for (; o > n && F.test(e[o - 1]);) o--;
1308
+ t += e.slice(n, o) + "\n", n = a + 1, r = n;
1309
+ }
1310
+ return t + e.slice(n);
1311
+ }, "stripAnyComments"), I = /* @__PURE__ */ e((e) => e === "\n" || e === "\r", "isLineBreak"), St = /* @__PURE__ */ e((e, t) => {
1312
+ let n = -1;
1313
+ for (let r = t; r < e.length && F.test(e[r]); r++) I(e[r]) && (n = r);
1314
+ return n;
1315
+ }, "lastLineBreakInWhitespaceRun"), Ct = /* @__PURE__ */ e((t) => {
1316
+ let n = 0;
1317
+ for (; n < t.length && F.test(t[n]) && !I(t[n]);) n++;
1318
+ let r = t.slice(0, n);
1319
+ if (!t.startsWith("---", n)) return;
1320
+ let i = [];
1321
+ for (let e = n + 3; e < t.length && F.test(t[e]); e++) I(t[e]) && i.push(e);
1322
+ if (i.length === 0) return;
1323
+ let a = `${r}---`, o = /* @__PURE__ */ e((e) => I(t[e]) && t.startsWith(a, e + 1) ? St(t, e + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
1324
+ for (let e = s; e < t.length; e++) o(e) !== -1 && (c = e);
1325
+ if (c === -1) return;
1326
+ let l = i[0];
1327
+ for (let e of i) e < c && (l = e);
1328
+ let u = l + 1;
1329
+ for (let e = u; e <= c; e++) {
1330
+ let n = o(e);
1331
+ if (n !== -1) return {
1332
+ indent: r,
1333
+ body: t.slice(u, e),
1334
+ length: n + 1
1335
+ };
1336
+ }
1337
+ }, "matchFrontMatter"), L = class extends Error {
1338
+ static {
1339
+ e(this, "UnknownDiagramError");
1340
+ }
1341
+ constructor(e) {
1342
+ super(e), this.name = "UnknownDiagramError";
1343
+ }
1344
+ }, wt = {}, Tt = /* @__PURE__ */ e(function(e, t) {
1345
+ let n = Ct(e);
1346
+ e = xt((n ? e.slice(n.length) : e).replace(bt, ""));
1347
+ for (let [n, { detector: r }] of Object.entries(wt)) if (r(e, t)) return n;
1348
+ throw new L(`No diagram type detected matching given configuration for text: ${e}`);
1349
+ }, "detectType"), Et = /* @__PURE__ */ e((...e) => {
1350
+ for (let { id: t, detector: n, loader: r } of e) Dt(t, n, r);
1351
+ }, "registerLazyLoadedDiagrams"), Dt = /* @__PURE__ */ e((e, t, n) => {
1352
+ wt[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), wt[e] = {
1353
+ detector: t,
1354
+ loader: n
1355
+ }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
1356
+ }, "addDetector"), R = /* @__PURE__ */ e((e) => wt[e].loader, "getDiagramLoader"), z = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1239
1357
  let r = { depth: n };
1240
- if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => P(e, t, r)), e;
1358
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => z(e, t, r)), e;
1241
1359
  if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1242
1360
  e.includes(t) || e.push(t);
1243
1361
  }), e;
@@ -1252,7 +1370,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1252
1370
  writable: !0,
1253
1371
  enumerable: !0,
1254
1372
  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 }));
1373
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = z(r[t], i, { depth: n - 1 }));
1256
1374
  } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1257
1375
  value: i,
1258
1376
  writable: !0,
@@ -1262,13 +1380,16 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1262
1380
  });
1263
1381
  }
1264
1382
  return e;
1265
- }, "assignWithDepth"), F = P, I = "#ffffff", L = "#f2f2f2", R = /* @__PURE__ */ e((e, t) => t ? x(e, {
1383
+ }, "assignWithDepth"), B = z, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ e((e, t) => t ? x(e, {
1266
1384
  s: -40,
1267
1385
  l: 10
1268
1386
  }) : x(e, {
1269
1387
  s: -40,
1270
1388
  l: -10
1271
- }), "mkBorder"), yt = class {
1389
+ }), "mkBorder"), Ot = /* @__PURE__ */ e((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), W = /* @__PURE__ */ e((e, t) => Ot(e) && Ot(t) ? {
1390
+ ...e,
1391
+ ...t
1392
+ } : t, "applyOverride"), kt = class {
1272
1393
  static {
1273
1394
  e(this, "Theme");
1274
1395
  }
@@ -1279,12 +1400,12 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1279
1400
  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
1401
  h: 180,
1281
1402
  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, {
1403
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(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
1404
  h: 210,
1284
1405
  l: 150
1285
1406
  }), 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
1407
  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]);
1408
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1288
1409
  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
1410
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1290
1411
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
@@ -1409,7 +1530,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1409
1530
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1410
1531
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1411
1532
  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;
1533
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1413
1534
  }
1414
1535
  calculate(e) {
1415
1536
  if (typeof e != "object") {
@@ -1420,22 +1541,22 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1420
1541
  t.forEach((t) => {
1421
1542
  this[t] = e[t];
1422
1543
  }), this.updateColors(), t.forEach((t) => {
1423
- this[t] = e[t];
1424
- });
1544
+ this[t] = W(this[t], e[t]);
1545
+ }), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
1425
1546
  }
1426
- }, bt = /* @__PURE__ */ e((e) => {
1427
- let t = new yt();
1547
+ }, At = /* @__PURE__ */ e((e) => {
1548
+ let t = new kt();
1428
1549
  return t.calculate(e), t;
1429
- }, "getThemeVariables"), z = class {
1550
+ }, "getThemeVariables"), jt = class {
1430
1551
  static {
1431
1552
  e(this, "Theme");
1432
1553
  }
1433
1554
  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";
1555
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = h(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 = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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
1556
  }
1436
1557
  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]);
1558
+ 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 = S(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 });
1559
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1439
1560
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1440
1561
  for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1441
1562
  h: 30,
@@ -1536,7 +1657,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1536
1657
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1537
1658
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1538
1659
  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";
1660
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.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
1661
  }
1541
1662
  calculate(e) {
1542
1663
  if (typeof e != "object") {
@@ -1547,18 +1668,18 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1547
1668
  t.forEach((t) => {
1548
1669
  this[t] = e[t];
1549
1670
  }), this.updateColors(), t.forEach((t) => {
1550
- this[t] = e[t];
1671
+ this[t] = W(this[t], e[t]);
1551
1672
  });
1552
1673
  }
1553
- }, xt = /* @__PURE__ */ e((e) => {
1554
- let t = new z();
1674
+ }, Mt = /* @__PURE__ */ e((e) => {
1675
+ let t = new jt();
1555
1676
  return t.calculate(e), t;
1556
- }, "getThemeVariables"), St = class {
1677
+ }, "getThemeVariables"), Nt = class {
1557
1678
  static {
1558
1679
  e(this, "Theme");
1559
1680
  }
1560
1681
  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();
1682
+ 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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(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 = h(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
1683
  }
1563
1684
  updateColors() {
1564
1685
  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);
@@ -1572,10 +1693,10 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1572
1693
  l: -(7 + e * 5)
1573
1694
  });
1574
1695
  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);
1696
+ this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1576
1697
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1577
1698
  }
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, {
1699
+ 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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
1700
  h: 60,
1580
1701
  l: -20
1581
1702
  }), this.pie8 = this.pie8 || x(this.primaryColor, {
@@ -1686,7 +1807,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1686
1807
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1687
1808
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1688
1809
  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;
1810
+ }, 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(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1690
1811
  }
1691
1812
  calculate(e) {
1692
1813
  if (Object.keys(this).forEach((e) => {
@@ -1699,18 +1820,18 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1699
1820
  t.forEach((t) => {
1700
1821
  this[t] = e[t];
1701
1822
  }), this.updateColors(), t.forEach((t) => {
1702
- this[t] = e[t];
1823
+ this[t] = W(this[t], e[t]);
1703
1824
  });
1704
1825
  }
1705
- }, Ct = /* @__PURE__ */ e((e) => {
1706
- let t = new St();
1826
+ }, Pt = /* @__PURE__ */ e((e) => {
1827
+ let t = new Nt();
1707
1828
  return t.calculate(e), t;
1708
- }, "getThemeVariables"), wt = class {
1829
+ }, "getThemeVariables"), Ft = class {
1709
1830
  static {
1710
1831
  e(this, "Theme");
1711
1832
  }
1712
1833
  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))";
1834
+ 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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.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
1835
  }
1715
1836
  updateColors() {
1716
1837
  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);
@@ -1727,7 +1848,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1727
1848
  s: -30,
1728
1849
  l: -(8 + e * 5)
1729
1850
  });
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, {
1851
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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
1852
  h: 40,
1732
1853
  l: -40
1733
1854
  }), this.pie7 = this.pie7 || x(this.primaryColor, {
@@ -1848,7 +1969,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1848
1969
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1849
1970
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1850
1971
  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;
1972
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1852
1973
  }
1853
1974
  calculate(e) {
1854
1975
  if (typeof e != "object") {
@@ -1859,27 +1980,27 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1859
1980
  t.forEach((t) => {
1860
1981
  this[t] = e[t];
1861
1982
  }), this.updateColors(), t.forEach((t) => {
1862
- this[t] = e[t];
1983
+ this[t] = W(this[t], e[t]);
1863
1984
  });
1864
1985
  }
1865
- }, B = /* @__PURE__ */ e((e) => {
1866
- let t = new wt();
1986
+ }, It = /* @__PURE__ */ e((e) => {
1987
+ let t = new Ft();
1867
1988
  return t.calculate(e), t;
1868
- }, "getThemeVariables"), Tt = class {
1989
+ }, "getThemeVariables"), Lt = class {
1869
1990
  static {
1870
1991
  e(this, "Theme");
1871
1992
  }
1872
1993
  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))";
1994
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.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
1995
  }
1875
1996
  updateColors() {
1876
1997
  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]);
1998
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1878
1999
  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
2000
  this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1880
2001
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1881
2002
  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 });
2003
+ 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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
2004
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1884
2005
  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
2006
  for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
@@ -1961,7 +2082,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1961
2082
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1962
2083
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1963
2084
  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;
2085
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1965
2086
  }
1966
2087
  calculate(e) {
1967
2088
  if (typeof e != "object") {
@@ -1972,24 +2093,24 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1972
2093
  t.forEach((t) => {
1973
2094
  this[t] = e[t];
1974
2095
  }), this.updateColors(), t.forEach((t) => {
1975
- this[t] = e[t];
2096
+ this[t] = W(this[t], e[t]);
1976
2097
  });
1977
2098
  }
1978
- }, Et = /* @__PURE__ */ e((e) => {
1979
- let t = new Tt();
2099
+ }, Rt = /* @__PURE__ */ e((e) => {
2100
+ let t = new Lt();
1980
2101
  return t.calculate(e), t;
1981
- }, "getThemeVariables"), Dt = class {
2102
+ }, "getThemeVariables"), zt = class {
1982
2103
  static {
1983
2104
  e(this, "Theme");
1984
2105
  }
1985
2106
  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";
2107
+ 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 = U(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
2108
  }
1988
2109
  updateColors() {
1989
2110
  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
2111
  h: 180,
1991
2112
  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;
2113
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
1993
2114
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1994
2115
  h: 180,
1995
2116
  l: 5
@@ -1999,7 +2120,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1999
2120
  l: 150
2000
2121
  }), 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
2122
  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]);
2123
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2003
2124
  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
2125
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2005
2126
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
@@ -2068,7 +2189,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2068
2189
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2069
2190
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2070
2191
  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;
2192
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2072
2193
  }
2073
2194
  calculate(e) {
2074
2195
  if (typeof e != "object") {
@@ -2079,29 +2200,29 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2079
2200
  t.forEach((t) => {
2080
2201
  this[t] = e[t];
2081
2202
  }), this.updateColors(), t.forEach((t) => {
2082
- this[t] = e[t];
2203
+ this[t] = W(this[t], e[t]);
2083
2204
  });
2084
2205
  }
2085
- }, Ot = /* @__PURE__ */ e((e) => {
2086
- let t = new Dt();
2206
+ }, Bt = /* @__PURE__ */ e((e) => {
2207
+ let t = new zt();
2087
2208
  return t.calculate(e), t;
2088
- }, "getThemeVariables"), kt = class {
2209
+ }, "getThemeVariables"), Vt = class {
2089
2210
  static {
2090
2211
  e(this, "Theme");
2091
2212
  }
2092
2213
  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";
2214
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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
2215
  }
2095
2216
  updateColors() {
2096
2217
  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
2218
  h: 180,
2098
2219
  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, {
2220
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(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 || this.secondBkg, 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
2221
  h: 210,
2101
2222
  l: 150
2102
2223
  }), 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
2224
  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]);
2225
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2105
2226
  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
2227
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2107
2228
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
@@ -2170,7 +2291,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2170
2291
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2171
2292
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2172
2293
  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;
2294
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2174
2295
  }
2175
2296
  calculate(e) {
2176
2297
  if (typeof e != "object") {
@@ -2181,24 +2302,24 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2181
2302
  t.forEach((t) => {
2182
2303
  this[t] = e[t];
2183
2304
  }), this.updateColors(), t.forEach((t) => {
2184
- this[t] = e[t];
2305
+ this[t] = W(this[t], e[t]);
2185
2306
  });
2186
2307
  }
2187
- }, At = /* @__PURE__ */ e((e) => {
2188
- let t = new kt();
2308
+ }, Ht = /* @__PURE__ */ e((e) => {
2309
+ let t = new Vt();
2189
2310
  return t.calculate(e), t;
2190
- }, "getThemeVariables"), jt = class {
2311
+ }, "getThemeVariables"), Ut = class {
2191
2312
  static {
2192
2313
  e(this, "Theme");
2193
2314
  }
2194
2315
  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";
2316
+ 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 = U("#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
2317
  }
2197
2318
  updateColors() {
2198
2319
  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
2320
  h: 180,
2200
2321
  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;
2322
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
2202
2323
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2203
2324
  h: 180,
2204
2325
  l: 5
@@ -2207,7 +2328,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2207
2328
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2208
2329
  if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2209
2330
  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]);
2331
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2211
2332
  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
2333
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2213
2334
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
@@ -2276,7 +2397,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2276
2397
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2277
2398
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2278
2399
  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;
2400
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2280
2401
  }
2281
2402
  calculate(e) {
2282
2403
  if (typeof e != "object") {
@@ -2287,29 +2408,29 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2287
2408
  t.forEach((t) => {
2288
2409
  this[t] = e[t];
2289
2410
  }), this.updateColors(), t.forEach((t) => {
2290
- this[t] = e[t];
2411
+ this[t] = W(this[t], e[t]);
2291
2412
  });
2292
2413
  }
2293
- }, Mt = /* @__PURE__ */ e((e) => {
2294
- let t = new jt();
2414
+ }, Wt = /* @__PURE__ */ e((e) => {
2415
+ let t = new Ut();
2295
2416
  return t.calculate(e), t;
2296
- }, "getThemeVariables"), Nt = class {
2417
+ }, "getThemeVariables"), G = class {
2297
2418
  static {
2298
2419
  e(this, "Theme");
2299
2420
  }
2300
2421
  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";
2422
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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
2423
  }
2303
2424
  updateColors() {
2304
2425
  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
2426
  h: 180,
2306
2427
  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, {
2428
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(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 || this.secondBkg, 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
2429
  h: 210,
2309
2430
  l: 150
2310
2431
  }), 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
2432
  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]);
2433
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2313
2434
  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
2435
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2315
2436
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
@@ -2378,7 +2499,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2378
2499
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2379
2500
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2380
2501
  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;
2502
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2382
2503
  }
2383
2504
  calculate(e) {
2384
2505
  if (typeof e != "object") {
@@ -2389,18 +2510,18 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2389
2510
  t.forEach((t) => {
2390
2511
  this[t] = e[t];
2391
2512
  }), this.updateColors(), t.forEach((t) => {
2392
- this[t] = e[t];
2513
+ this[t] = W(this[t], e[t]);
2393
2514
  });
2394
2515
  }
2395
- }, Pt = /* @__PURE__ */ e((e) => {
2396
- let t = new Nt();
2516
+ }, Gt = /* @__PURE__ */ e((e) => {
2517
+ let t = new G();
2397
2518
  return t.calculate(e), t;
2398
- }, "getThemeVariables"), Ft = class {
2519
+ }, "getThemeVariables"), Kt = class {
2399
2520
  static {
2400
2521
  e(this, "Theme");
2401
2522
  }
2402
2523
  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 = [
2524
+ 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 = U("#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.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
2525
  "#E879F9",
2405
2526
  "#2DD4BF",
2406
2527
  "#FB923C",
@@ -2426,51 +2547,38 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2426
2547
  "#F7FEE7",
2427
2548
  "#F0F9FF",
2428
2549
  "#FFF1F2"
2429
- ], this.filterColor = "#000000";
2550
+ ], this.usecaseActorBorder = "#A78BFA", this.usecaseActorBkg = "#F5F3FF", this.usecaseBorder = "#2DD4BF", this.usecaseBkg = "#F0FDFA", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseBoundaryBkg = "#FAFAFC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#000000";
2430
2551
  }
2431
2552
  updateColors() {
2432
2553
  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
2554
  h: 180,
2434
2555
  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, {
2556
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
2557
+ let e = "#ECECFE", t = x(e, {
2437
2558
  h: 180,
2438
2559
  l: 5
2439
2560
  });
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]);
2561
+ 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#FFFFFF", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#F9F9FB", this.compositeTitleBackground = this.compositeTitleBackground || "#F9F9FB", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || "white";
2562
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2442
2563
  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
2564
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2444
2565
  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;
2566
+ let n = this.darkMode ? -4 : -1;
2446
2567
  for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2447
2568
  h: 180,
2448
2569
  s: -15,
2449
- l: r * (5 + e * 3)
2570
+ l: n * (5 + e * 3)
2450
2571
  }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2451
2572
  h: 180,
2452
2573
  s: -15,
2453
- l: r * (8 + e * 3)
2574
+ l: n * (8 + e * 3)
2454
2575
  });
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, {
2576
+ this.classText = this.classText || this.textColor;
2577
+ for (let e = 0; e < 8; e++) this["fillType" + e] = this["fillType" + e] || this.bkgColorArray[e];
2578
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2579
+ 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";
2580
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2581
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2474
2582
  r: 5,
2475
2583
  g: 5,
2476
2584
  b: 5
@@ -2507,7 +2615,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2507
2615
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2508
2616
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2509
2617
  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;
2618
+ }, 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 || "#E9E9F1", this.git2 = this.git2 || t, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2511
2619
  }
2512
2620
  calculate(e) {
2513
2621
  if (typeof e != "object") {
@@ -2518,18 +2626,18 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2518
2626
  t.forEach((t) => {
2519
2627
  this[t] = e[t];
2520
2628
  }), this.updateColors(), t.forEach((t) => {
2521
- this[t] = e[t];
2629
+ this[t] = W(this[t], e[t]);
2522
2630
  });
2523
2631
  }
2524
- }, It = /* @__PURE__ */ e((e) => {
2525
- let t = new Ft();
2632
+ }, qt = /* @__PURE__ */ e((e) => {
2633
+ let t = new Kt();
2526
2634
  return t.calculate(e), t;
2527
- }, "getThemeVariables"), Lt = class {
2635
+ }, "getThemeVariables"), Jt = class {
2528
2636
  static {
2529
2637
  e(this, "Theme");
2530
2638
  }
2531
2639
  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 = [
2640
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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
2641
  "#E879F9",
2534
2642
  "#2DD4BF",
2535
2643
  "#FB923C",
@@ -2542,14 +2650,14 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2542
2650
  "#A3E635 ",
2543
2651
  "#38BDF8",
2544
2652
  "#FB7185"
2545
- ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2653
+ ], this.bkgColorArray = [], this.usecaseActorBorder = "#A78BFA", this.usecaseBorder = "#2DD4BF", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#FFFFFF";
2546
2654
  }
2547
2655
  updateColors() {
2548
2656
  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
2657
  h: 180,
2550
2658
  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]);
2659
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || this.secondBkg, 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#16141F", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || "#16141F", this.altBackground = this.altBackground || "#16141F", this.compositeTitleBackground = this.compositeTitleBackground || "#16141F", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || this.background;
2660
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2553
2661
  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
2662
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2555
2663
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
@@ -2563,25 +2671,22 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2563
2671
  s: -15,
2564
2672
  l: e * (8 + t * 3)
2565
2673
  });
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, {
2674
+ this.classText = this.classText || this.textColor, [
2675
+ "#701a75",
2676
+ "#134e4a",
2677
+ "#7c2d12",
2678
+ "#581c87",
2679
+ "#14532d",
2680
+ "#4c1d95",
2681
+ "#7f1d1d",
2682
+ "#713f12"
2683
+ ].forEach((e, t) => {
2684
+ this["fillType" + t] = this["fillType" + t] || e;
2685
+ });
2686
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2687
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || "#28253D", 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";
2688
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2689
+ 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
2690
  r: 5,
2586
2691
  g: 5,
2587
2692
  b: 5
@@ -2618,7 +2723,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2618
2723
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2619
2724
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2620
2725
  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;
2726
+ }, 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 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2622
2727
  }
2623
2728
  calculate(e) {
2624
2729
  if (typeof e != "object") {
@@ -2629,27 +2734,29 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2629
2734
  t.forEach((t) => {
2630
2735
  this[t] = e[t];
2631
2736
  }), this.updateColors(), t.forEach((t) => {
2632
- this[t] = e[t];
2737
+ this[t] = W(this[t], e[t]);
2633
2738
  });
2634
2739
  }
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 },
2740
+ }, K = {
2741
+ base: { getThemeVariables: At },
2742
+ dark: { getThemeVariables: Mt },
2743
+ default: { getThemeVariables: Pt },
2744
+ forest: { getThemeVariables: It },
2745
+ neutral: { getThemeVariables: Rt },
2746
+ neo: { getThemeVariables: Bt },
2747
+ "neo-dark": { getThemeVariables: Ht },
2748
+ redux: { getThemeVariables: Wt },
2749
+ "redux-dark": { getThemeVariables: Gt },
2750
+ "redux-color": { getThemeVariables: qt },
2646
2751
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
2647
- let t = new Lt();
2752
+ let t = new Jt();
2648
2753
  return t.calculate(e), t;
2649
2754
  }, "getThemeVariables") }
2650
- }, H = {
2755
+ }, q = {
2651
2756
  flowchart: {
2652
2757
  useMaxWidth: !0,
2758
+ theme: "redux-color",
2759
+ look: "neo",
2653
2760
  titleTopMargin: 25,
2654
2761
  subGraphTitleMargin: {
2655
2762
  top: 0,
@@ -2661,19 +2768,35 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2661
2768
  rankSpacing: 50,
2662
2769
  curve: "basis",
2663
2770
  padding: 15,
2664
- defaultRenderer: "dagre-wrapper",
2665
- wrappingWidth: 200,
2771
+ wrappingWidth: 120,
2772
+ minNodeWidth: 120,
2666
2773
  inheritDir: !1
2667
2774
  },
2668
2775
  swimlane: {
2669
2776
  useMaxWidth: !0,
2777
+ theme: "redux-color",
2778
+ look: "neo",
2779
+ layout: "swimlane",
2670
2780
  lineHops: "arc",
2671
2781
  ignoreCrossLaneEdges: !0,
2672
2782
  optimizeRanksByCrossings: !0,
2673
2783
  automaticLaneOrdering: !1
2674
2784
  },
2785
+ agentflow: {
2786
+ useMaxWidth: !0,
2787
+ theme: "redux-color",
2788
+ look: "neo",
2789
+ titleTopMargin: 25,
2790
+ diagramPadding: 8,
2791
+ nodeSpacing: 50,
2792
+ rankSpacing: 50,
2793
+ wrappingWidth: 120,
2794
+ minNodeWidth: 120
2795
+ },
2675
2796
  sequence: {
2676
2797
  useMaxWidth: !0,
2798
+ theme: "redux-color",
2799
+ look: "neo",
2677
2800
  hideUnusedParticipants: !1,
2678
2801
  activationWidth: 10,
2679
2802
  diagramMarginX: 50,
@@ -2767,18 +2890,24 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2767
2890
  },
2768
2891
  class: {
2769
2892
  useMaxWidth: !0,
2893
+ theme: "redux-color",
2894
+ look: "neo",
2770
2895
  titleTopMargin: 25,
2771
2896
  arrowMarkerAbsolute: !1,
2772
2897
  dividerMargin: 10,
2773
2898
  padding: 5,
2774
2899
  textHeight: 10,
2775
- defaultRenderer: "dagre-wrapper",
2776
2900
  htmlLabels: !1,
2777
2901
  hideEmptyMembersBox: !1,
2778
2902
  hierarchicalNamespaces: !0
2779
2903
  },
2780
2904
  state: {
2781
2905
  useMaxWidth: !0,
2906
+ theme: "redux-color",
2907
+ look: "neo",
2908
+ layout: "elk",
2909
+ wrappingWidth: 120,
2910
+ minNodeWidth: 120,
2782
2911
  titleTopMargin: 25,
2783
2912
  dividerMargin: 10,
2784
2913
  sizeUnit: 5,
@@ -2794,11 +2923,12 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2794
2923
  labelHeight: 16,
2795
2924
  edgeLengthFactor: "20",
2796
2925
  compositTitleSize: 35,
2797
- radius: 5,
2798
- defaultRenderer: "dagre-wrapper"
2926
+ radius: 5
2799
2927
  },
2800
2928
  er: {
2801
2929
  useMaxWidth: !0,
2930
+ theme: "redux-color",
2931
+ look: "neo",
2802
2932
  titleTopMargin: 25,
2803
2933
  diagramPadding: 20,
2804
2934
  layoutDirection: "TB",
@@ -2886,6 +3016,8 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
2886
3016
  },
2887
3017
  requirement: {
2888
3018
  useMaxWidth: !0,
3019
+ theme: "redux-color",
3020
+ look: "neo",
2889
3021
  rect_fill: "#f9f9f9",
2890
3022
  text_color: "#333",
2891
3023
  rect_border_size: "0.5px",
@@ -3113,6 +3245,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3113
3245
  bitWidth: 32,
3114
3246
  bitsPerRow: 32,
3115
3247
  showBits: !0,
3248
+ bitOrder: "ascending",
3116
3249
  paddingX: 5,
3117
3250
  paddingY: 5
3118
3251
  },
@@ -3156,8 +3289,27 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3156
3289
  axisLabelFactor: 1.05,
3157
3290
  curveTension: .17
3158
3291
  },
3292
+ usecase: {
3293
+ useMaxWidth: !0,
3294
+ theme: "redux-color",
3295
+ look: "neo",
3296
+ wrappingWidth: 120,
3297
+ minNodeWidth: 120,
3298
+ actorFontSize: 14,
3299
+ actorFontFamily: "\"Open Sans\", sans-serif",
3300
+ actorFontWeight: "normal",
3301
+ usecaseFontSize: 12,
3302
+ usecaseFontFamily: "\"Open Sans\", sans-serif",
3303
+ usecaseFontWeight: "normal",
3304
+ nodeSpacing: 50,
3305
+ rankSpacing: 50,
3306
+ diagramPadding: 20,
3307
+ colorScheme: "role"
3308
+ },
3159
3309
  venn: {
3160
3310
  useMaxWidth: !0,
3311
+ theme: "redux-color",
3312
+ look: "neo",
3161
3313
  width: 800,
3162
3314
  height: 450,
3163
3315
  padding: 8,
@@ -3175,7 +3327,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3175
3327
  theme: "default",
3176
3328
  look: "classic",
3177
3329
  handDrawnSeed: 0,
3178
- layout: "dagre",
3330
+ layout: "elk",
3179
3331
  maxTextSize: 5e4,
3180
3332
  maxEdges: 500,
3181
3333
  darkMode: !1,
@@ -3198,21 +3350,28 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3198
3350
  fontSize: 16,
3199
3351
  markdownAutoWrap: !0,
3200
3352
  suppressErrorRendering: !1
3201
- }, U = {
3202
- ...H,
3353
+ }, Yt = {
3354
+ ...q,
3203
3355
  deterministicIDSeed: void 0,
3204
3356
  elk: {
3205
3357
  mergeEdges: !1,
3206
- nodePlacementStrategy: "BRANDES_KOEPF",
3207
- nodePlacementAlignment: "NONE",
3358
+ straightenEdges: !0,
3359
+ lineHops: !0,
3360
+ preset: "default",
3361
+ nodePlacementStrategy: void 0,
3362
+ layeringStrategy: void 0,
3363
+ cycleBreakingStrategy: void 0,
3364
+ layeringLayerBound: 4,
3365
+ nodePlacementAlignment: void 0,
3208
3366
  forceNodeModelOrder: !1,
3209
3367
  considerModelOrder: "NODES_AND_EDGES",
3210
- keepEntryNodeOnTop: !1
3368
+ keepEntryNodeOnTop: !1,
3369
+ orientFeedbackEdges: !0
3211
3370
  },
3212
3371
  themeCSS: void 0,
3213
- themeVariables: V.default.getThemeVariables(),
3372
+ themeVariables: K.default.getThemeVariables(),
3214
3373
  sequence: {
3215
- ...H.sequence,
3374
+ ...q.sequence,
3216
3375
  messageFont: /* @__PURE__ */ e(function() {
3217
3376
  return {
3218
3377
  fontFamily: this.messageFontFamily,
@@ -3236,17 +3395,19 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3236
3395
  }, "actorFont")
3237
3396
  },
3238
3397
  class: {
3239
- defaultRenderer: "dagre-wrapper",
3398
+ theme: q.class?.theme,
3399
+ look: q.class?.look,
3400
+ layout: q.class?.layout,
3240
3401
  hideEmptyMembersBox: !1,
3241
3402
  hierarchicalNamespaces: !0
3242
3403
  },
3243
3404
  gantt: {
3244
- ...H.gantt,
3405
+ ...q.gantt,
3245
3406
  tickInterval: void 0,
3246
3407
  useWidth: void 0
3247
3408
  },
3248
3409
  c4: {
3249
- ...H.c4,
3410
+ ...q.c4,
3250
3411
  useWidth: void 0,
3251
3412
  personFont: /* @__PURE__ */ e(function() {
3252
3413
  return {
@@ -3256,7 +3417,7 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3256
3417
  };
3257
3418
  }, "personFont"),
3258
3419
  flowchart: {
3259
- ...H.flowchart,
3420
+ ...q.flowchart,
3260
3421
  inheritDir: !1
3261
3422
  },
3262
3423
  external_personFont: /* @__PURE__ */ e(function() {
@@ -3408,26 +3569,27 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3408
3569
  }, "messageFont")
3409
3570
  },
3410
3571
  pie: {
3411
- ...H.pie,
3572
+ ...q.pie,
3412
3573
  useWidth: 984
3413
3574
  },
3414
3575
  xyChart: {
3415
- ...H.xyChart,
3576
+ ...q.xyChart,
3416
3577
  useWidth: void 0
3417
3578
  },
3418
3579
  requirement: {
3419
- ...H.requirement,
3580
+ ...q.requirement,
3420
3581
  useWidth: void 0
3421
3582
  },
3422
- packet: { ...H.packet },
3423
- eventmodeling: { ...H.eventmodeling },
3583
+ packet: { ...q.packet },
3584
+ eventmodeling: { ...q.eventmodeling },
3424
3585
  treeView: {
3425
- ...H.treeView,
3586
+ ...q.treeView,
3426
3587
  useWidth: void 0
3427
3588
  },
3428
- radar: { ...H.radar },
3589
+ radar: { ...q.radar },
3590
+ usecase: { ...q.usecase },
3429
3591
  railroad: {
3430
- ...H.railroad,
3592
+ ...q.railroad,
3431
3593
  fontSize: void 0,
3432
3594
  fontFamily: void 0,
3433
3595
  terminalFill: void 0,
@@ -3445,9 +3607,9 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3445
3607
  specialStroke: void 0,
3446
3608
  ruleNameColor: void 0
3447
3609
  },
3448
- ishikawa: { ...H.ishikawa },
3610
+ ishikawa: { ...q.ishikawa },
3449
3611
  sankey: {
3450
- ...H.sankey,
3612
+ ...q.sankey,
3451
3613
  nodeColors: void 0
3452
3614
  },
3453
3615
  treemap: {
@@ -3462,42 +3624,51 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3462
3624
  labelFontSize: 14,
3463
3625
  valueFormat: ","
3464
3626
  },
3465
- venn: { ...H.venn },
3466
- cynefin: { ...H.cynefin }
3467
- }, Rt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3627
+ venn: { ...q.venn },
3628
+ cynefin: { ...q.cynefin }
3629
+ }, Xt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3468
3630
  ...n,
3469
3631
  t + r,
3470
- ...Rt(e[r], "")
3471
- ] : [...n, t + r], []), "keyify"), zt = new Set(Rt(U, "")), Bt = U, Vt = {
3632
+ ...Xt(e[r], "")
3633
+ ] : [...n, t + r], []), "keyify"), Zt = new Set(Xt(Yt, "")), Qt = Yt, $t = {
3634
+ "flowchart-v2": "flowchart",
3635
+ "flowchart-elk": "flowchart",
3636
+ classDiagram: "class",
3637
+ stateDiagram: "state",
3638
+ xychart: "xyChart",
3639
+ railroadAbnf: "railroad",
3640
+ railroadEbnf: "railroad",
3641
+ railroadPeg: "railroad"
3642
+ }, J = /* @__PURE__ */ e((e) => $t[e] ?? e, "getDiagramConfigKey"), en = {
3472
3643
  nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3473
3644
  filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3474
3645
  extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3475
- }, Ht = /* @__PURE__ */ e((e, t) => {
3646
+ }, tn = /* @__PURE__ */ e((e, t) => {
3476
3647
  for (let n of Object.keys(e)) {
3477
3648
  let i = e[n];
3478
3649
  (n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
3479
3650
  }
3480
- }, "sanitizeDictionaryConfig"), W = /* @__PURE__ */ e((e) => {
3651
+ }, "sanitizeDictionaryConfig"), nn = /* @__PURE__ */ e((e) => {
3481
3652
  if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3482
3653
  if (Array.isArray(e)) {
3483
- e.forEach((e) => W(e));
3654
+ e.forEach((e) => nn(e));
3484
3655
  return;
3485
3656
  }
3486
3657
  for (let t of Object.keys(e)) {
3487
- if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !zt.has(t) || e[t] == null) {
3658
+ if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Zt.has(t) || e[t] == null) {
3488
3659
  r.debug("sanitize deleting key: ", t), delete e[t];
3489
3660
  continue;
3490
3661
  }
3491
3662
  if (typeof e[t] == "object") {
3492
- let n = Vt[t];
3493
- n ? Ht(e[t], n) : (r.debug("sanitizing object", t), W(e[t]));
3663
+ let n = en[t];
3664
+ n ? tn(e[t], n) : (r.debug("sanitizing object", t), nn(e[t]));
3494
3665
  continue;
3495
3666
  }
3496
3667
  for (let n of [
3497
3668
  "themeCSS",
3498
3669
  "fontFamily",
3499
3670
  "altFontFamily"
3500
- ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Ut(e[t]));
3671
+ ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = rn(e[t]));
3501
3672
  }
3502
3673
  if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3503
3674
  let n = e.themeVariables[t];
@@ -3505,176 +3676,185 @@ var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
3505
3676
  }
3506
3677
  r.debug("After sanitization", e);
3507
3678
  }
3508
- }, "sanitizeDirective"), Ut = /* @__PURE__ */ e((e) => {
3679
+ }, "sanitizeDirective"), rn = /* @__PURE__ */ e((e) => {
3509
3680
  let t = 0, n = 0;
3510
3681
  for (let r of e) {
3511
3682
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3512
3683
  r === "{" ? t++ : r === "}" && n++;
3513
3684
  }
3514
3685
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3515
- }, "sanitizeCss"), G = Object.freeze(Bt), K = /* @__PURE__ */ e((e) => !(e === !1 || [
3686
+ }, "sanitizeCss"), an = Object.freeze(Qt), on = [
3687
+ "theme",
3688
+ "look",
3689
+ "layout"
3690
+ ], sn = /* @__PURE__ */ new Set([
3691
+ "classic",
3692
+ "handDrawn",
3693
+ "neo"
3694
+ ]), cn = /* @__PURE__ */ e((e, t) => e === "theme" ? t === "null" || Object.hasOwn(K, t) : e !== "look" || sn.has(t), "isUsableAppearance"), ln = /* @__PURE__ */ e((e, t, n) => {
3695
+ if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && cn(n, e));
3696
+ }, "readAppearance"), un = /* @__PURE__ */ e((e) => !(e === !1 || [
3516
3697
  "false",
3517
3698
  "null",
3518
3699
  "0"
3519
- ].includes(String(e).trim().toLowerCase())), "evaluate"), q = F({}, G), Wt, Gt = [], Kt = F({}, G), qt = /* @__PURE__ */ e((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__ */ e((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__ */ e((e) => {
3528
- Wt = F({}, e);
3529
- }, "saveConfigFromInitialize"), Xt = /* @__PURE__ */ e((e) => (q = F(q, e), qt(q, Gt), q), "updateSiteConfig"), Zt = /* @__PURE__ */ e(() => F({}, q), "getSiteConfig"), Qt = /* @__PURE__ */ e((e) => (qt(Kt, [e]), J()), "setConfig"), J = /* @__PURE__ */ e(() => F({}, Kt), "getConfig"), $t = /* @__PURE__ */ e((e) => {
3530
- e && (["secure", ...q.secure ?? []].forEach((t) => {
3700
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), Y = B({}, an), dn, fn = {}, X = [], pn = B({}, an), Z, mn = /* @__PURE__ */ e((e, t) => {
3701
+ if (!Z) return;
3702
+ let n = [
3703
+ t,
3704
+ ...[...X].reverse(),
3705
+ fn,
3706
+ an
3707
+ ], r = e[Z];
3708
+ for (let t of on) for (let i of n) {
3709
+ let n = ln(i, Z, t);
3710
+ if (n !== void 0) {
3711
+ e[t] = n, r?.[t] !== void 0 && (r[t] = n);
3712
+ break;
3713
+ }
3714
+ }
3715
+ }, "resolveAppearance"), hn = /* @__PURE__ */ e((e, t) => {
3716
+ let n = B({}, e), r = {};
3717
+ for (let e of t) $(e), r = B(r, e);
3718
+ if (n = B(n, r), mn(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(K, n.theme)) {
3719
+ let e = B(B({}, dn).themeVariables || {}, r.themeVariables);
3720
+ n.themeVariables = K[n.theme].getThemeVariables(e);
3721
+ }
3722
+ return pn = n, Dn(pn), pn;
3723
+ }, "updateCurrentConfig"), gn = /* @__PURE__ */ e((e) => {
3724
+ Z = e === void 0 ? void 0 : J(e), hn(Y, X);
3725
+ }, "setDiagramConfigScope"), _n = /* @__PURE__ */ e((e) => (Y = B({}, an), Y = B(Y, e), fn = B({}, e), e.theme && Object.hasOwn(K, e.theme) && (Y.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), hn(Y, X), Y), "setSiteConfig"), vn = /* @__PURE__ */ e((e) => {
3726
+ dn = B({}, e);
3727
+ }, "saveConfigFromInitialize"), yn = /* @__PURE__ */ e((e) => (Y = B(Y, e), fn = B(fn, e), hn(Y, X), Y), "updateSiteConfig"), bn = /* @__PURE__ */ e(() => B({}, Y), "getSiteConfig"), xn = /* @__PURE__ */ e((e) => (hn(pn, [e]), Q()), "setConfig"), Q = /* @__PURE__ */ e(() => B({}, pn), "getConfig"), $ = /* @__PURE__ */ e((e) => {
3728
+ e && (["secure", ...Y.secure ?? []].forEach((t) => {
3531
3729
  Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3532
3730
  }), Object.keys(e).forEach((t) => {
3533
3731
  t.startsWith("__") && delete e[t];
3534
3732
  }), 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]);
3733
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && $(e[t]);
3536
3734
  }));
3537
- }, "sanitize"), en = /* @__PURE__ */ e((e) => {
3538
- W(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3735
+ }, "sanitize"), Sn = /* @__PURE__ */ e((e) => {
3736
+ nn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3539
3737
  ...e.themeVariables,
3540
3738
  fontFamily: e.fontFamily
3541
- }), Gt.push(e), qt(q, Gt);
3542
- }, "addDirective"), tn = /* @__PURE__ */ e((e = q) => {
3543
- Gt = [], qt(e, Gt);
3544
- }, "reset"), nn = {
3739
+ }), X.push(e), hn(Y, X);
3740
+ }, "addDirective"), Cn = /* @__PURE__ */ e((e = Y) => {
3741
+ X = [], Z = void 0, hn(e, X);
3742
+ }, "reset"), wn = {
3545
3743
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3546
3744
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3547
- }, rn = {}, an = /* @__PURE__ */ e((e) => {
3548
- rn[e] || (r.warn(nn[e]), rn[e] = !0);
3549
- }, "issueWarning"), on = /* @__PURE__ */ e((e) => {
3550
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && an("LAZY_LOAD_DEPRECATED");
3551
- }, "checkConfig"), sn = /* @__PURE__ */ e(() => {
3745
+ }, Tn = {}, En = /* @__PURE__ */ e((e) => {
3746
+ Tn[e] || (r.warn(wn[e]), Tn[e] = !0);
3747
+ }, "issueWarning"), Dn = /* @__PURE__ */ e((e) => {
3748
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && En("LAZY_LOAD_DEPRECATED");
3749
+ }, "checkConfig"), On = /* @__PURE__ */ e(() => {
3552
3750
  let e = {};
3553
- Wt && (e = F(e, Wt));
3554
- for (let t of Gt) e = F(e, t);
3751
+ dn && (e = B(e, dn));
3752
+ for (let t of X) e = B(e, t);
3555
3753
  return e;
3556
- }, "getUserDefinedConfig"), cn = /* @__PURE__ */ e((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
- e(this, "UnknownDiagramError");
3559
- }
3560
- constructor(e) {
3561
- super(e), this.name = "UnknownDiagramError";
3562
- }
3563
- }, X = {}, fn = /* @__PURE__ */ e(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__ */ e((...e) => {
3568
- for (let { id: t, detector: n, loader: r } of e) mn(t, n, r);
3569
- }, "registerLazyLoadedDiagrams"), mn = /* @__PURE__ */ e((e, t, n) => {
3570
- X[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), X[e] = {
3571
- detector: t,
3572
- loader: n
3573
- }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
3574
- }, "addDetector"), hn = /* @__PURE__ */ e((e) => X[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, gn = /* @__PURE__ */ e((e) => e ? wn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), _n = /* @__PURE__ */ (() => {
3754
+ }, "getUserDefinedConfig"), kn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && En("FLOWCHART_HTML_LABELS_DEPRECATED"), un(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), An = /<\/?br\s*\/?>/gi, jn = new RegExp(An.source, "i"), Mn = /* @__PURE__ */ e((e) => e ? Hn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Nn = /* @__PURE__ */ (() => {
3575
3755
  let e = !1;
3576
3756
  return () => {
3577
- e ||= (vn(), !0);
3757
+ e ||= (Pn(), !0);
3578
3758
  };
3579
3759
  })();
3580
- function vn() {
3760
+ function Pn() {
3581
3761
  let e = "data-temp-href-target";
3582
- vt.addHook("beforeSanitizeAttributes", (t) => {
3762
+ P.addHook("beforeSanitizeAttributes", (t) => {
3583
3763
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3584
- }), vt.addHook("afterSanitizeAttributes", (t) => {
3764
+ }), P.addHook("afterSanitizeAttributes", (t) => {
3585
3765
  t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3586
3766
  });
3587
3767
  }
3588
- e(vn, "setupDompurifyHooks");
3589
- var yn = /* @__PURE__ */ e((e) => (_n(), vt.sanitize(e)), "removeScript"), bn = /* @__PURE__ */ e((e, t) => {
3590
- if (cn(t)) {
3768
+ e(Pn, "setupDompurifyHooks");
3769
+ var Fn = /* @__PURE__ */ e((e) => (Nn(), P.sanitize(e)), "removeScript"), In = /* @__PURE__ */ e((e, t) => {
3770
+ if (kn(t)) {
3591
3771
  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));
3772
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = Fn(e) : n !== "loose" && (e = Hn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Vn(e));
3593
3773
  }
3594
3774
  return e;
3595
- }, "sanitizeMore"), Q = /* @__PURE__ */ e((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__ */ e((e, t) => typeof e == "string" ? Q(e, t) : e.flat().map((e) => Q(e, t)), "sanitizeTextOrArray"), xn = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), Sn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), Cn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), wn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), Tn = /* @__PURE__ */ e((e) => {
3775
+ }, "sanitizeMore"), Ln = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(In(e, t), t.dompurifyConfig).toString() : P.sanitize(In(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Rn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? Ln(e, t) : e.flat().map((e) => Ln(e, t)), "sanitizeTextOrArray"), zn = /* @__PURE__ */ e((e) => jn.test(e), "hasBreaks"), Bn = /* @__PURE__ */ e((e) => e.split(An), "splitBreaks"), Vn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Hn = /* @__PURE__ */ e((e) => e.replace(An, "#br#"), "breakToPlaceholder"), Un = /* @__PURE__ */ e((e) => {
3596
3776
  let t = "";
3597
3777
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3598
- }, "getUrl"), En = /* @__PURE__ */ e(function(...e) {
3778
+ }, "getUrl"), Wn = /* @__PURE__ */ e(function(...e) {
3599
3779
  let t = e.filter((e) => !isNaN(e));
3600
3780
  return Math.max(...t);
3601
- }, "getMax"), Dn = /* @__PURE__ */ e(function(...e) {
3781
+ }, "getMax"), Gn = /* @__PURE__ */ e(function(...e) {
3602
3782
  let t = e.filter((e) => !isNaN(e));
3603
3783
  return Math.min(...t);
3604
- }, "getMin"), On = /* @__PURE__ */ e(function(e) {
3784
+ }, "getMin"), Kn = /* @__PURE__ */ e(function(e) {
3605
3785
  let t = e.split(/(,)/), n = [];
3606
3786
  for (let e = 0; e < t.length; e++) {
3607
3787
  let r = t[e];
3608
3788
  if (r === "," && e > 0 && e + 1 < t.length) {
3609
3789
  let i = t[e - 1], a = t[e + 1];
3610
- An(i, a) && (r = i + "," + a, e++, n.pop());
3790
+ Jn(i, a) && (r = i + "," + a, e++, n.pop());
3611
3791
  }
3612
- n.push(jn(r));
3792
+ n.push(Yn(r));
3613
3793
  }
3614
3794
  return n.join("");
3615
- }, "parseGenericTypes"), kn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), An = /* @__PURE__ */ e((e, t) => {
3616
- let n = kn(e, "~"), r = kn(t, "~");
3795
+ }, "parseGenericTypes"), qn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Jn = /* @__PURE__ */ e((e, t) => {
3796
+ let n = qn(e, "~"), r = qn(t, "~");
3617
3797
  return n === 1 && r === 1;
3618
- }, "shouldCombineSets"), jn = /* @__PURE__ */ e((e) => {
3619
- let t = kn(e, "~"), n = !1;
3798
+ }, "shouldCombineSets"), Yn = /* @__PURE__ */ e((e) => {
3799
+ let t = qn(e, "~"), n = !1;
3620
3800
  if (t <= 1) return e;
3621
3801
  t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3622
3802
  let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3623
3803
  for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3624
3804
  return n && r.unshift("~"), r.join("");
3625
- }, "processSet"), Mn = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), Nn = /\$\$(.*?)\$\$/g, Pn = /* @__PURE__ */ e((e) => (e.match(Nn)?.length ?? 0) > 0, "hasKatex"), Fn = /* @__PURE__ */ e(async (e, t) => {
3805
+ }, "processSet"), Xn = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), Zn = /\$\$(.*?)\$\$/g, Qn = /* @__PURE__ */ e((e) => (e.match(Zn)?.length ?? 0) > 0, "hasKatex"), $n = /* @__PURE__ */ e(async (e, t) => {
3626
3806
  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);
3807
+ n.innerHTML = await tr(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
3808
  let r = {
3629
3809
  width: n.clientWidth,
3630
3810
  height: n.clientHeight
3631
3811
  };
3632
3812
  return n.remove(), r;
3633
- }, "calculateMathMLDimensions"), In = /* @__PURE__ */ e(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.");
3813
+ }, "calculateMathMLDimensions"), er = /* @__PURE__ */ e(async (e, t) => {
3814
+ if (!Qn(e)) return e;
3815
+ if (!(Xn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Zn, "MathML is unsupported in this environment.");
3636
3816
  {
3637
- let { default: n } = await import("./katex-ohtLbxXc.js"), 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, {
3817
+ let { default: n } = await import("./katex-ohtLbxXc.js"), r = t.forceLegacyMathML || !Xn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3818
+ return e.split(An).map((e) => Qn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Zn, (e, t) => n.renderToString(t, {
3639
3819
  throwOnError: !0,
3640
3820
  displayMode: !0,
3641
3821
  output: r
3642
3822
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3643
3823
  }
3644
- }, "renderKatexUnsanitized"), Ln = /* @__PURE__ */ e(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__ */ e(function(e, t) {
3824
+ }, "renderKatexUnsanitized"), tr = /* @__PURE__ */ e(async (e, t) => Ln(await er(e, t), t), "renderKatexSanitized"), nr = {
3825
+ getRows: Mn,
3826
+ sanitizeText: Ln,
3827
+ sanitizeTextOrArray: Rn,
3828
+ hasBreaks: zn,
3829
+ splitBreaks: Bn,
3830
+ lineBreakRegex: An,
3831
+ removeScript: Fn,
3832
+ getUrl: Un,
3833
+ evaluate: un,
3834
+ getMax: Wn,
3835
+ getMin: Gn
3836
+ }, rr = /* @__PURE__ */ e(function(e, t) {
3657
3837
  for (let n of t) e.attr(n[0], n[1]);
3658
- }, "d3Attrs"), Bn = /* @__PURE__ */ e(function(e, t, n) {
3838
+ }, "d3Attrs"), ir = /* @__PURE__ */ e(function(e, t, n) {
3659
3839
  let r = /* @__PURE__ */ new Map();
3660
3840
  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__ */ e(function(e, t, n, r) {
3662
- zn(e, Bn(t, n, r));
3663
- }, "configureSvgSize"), Hn = /* @__PURE__ */ e(function(e, t, n, i) {
3841
+ }, "calculateSvgSizeAttrs"), ar = /* @__PURE__ */ e(function(e, t, n, r) {
3842
+ rr(e, ir(t, n, r));
3843
+ }, "configureSvgSize"), or = /* @__PURE__ */ e(function(e, t, n, i) {
3664
3844
  let a = t.node().getBBox(), o = a.width, s = a.height;
3665
3845
  r.info(`SVG bounds: ${o}x${s}`, a);
3666
3846
  let c = 0, l = 0;
3667
- r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), Vn(t, l, c, i);
3847
+ r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), ar(t, l, c, i);
3668
3848
  let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
3669
3849
  t.attr("viewBox", u);
3670
- }, "setupGraphViewbox"), Un = {};
3671
- function Wn(e) {
3850
+ }, "setupGraphViewbox"), sr = {};
3851
+ function cr(e) {
3672
3852
  return [...e.cssRules].map((e) => e.cssText).join("\n");
3673
3853
  }
3674
- e(Wn, "cssStyleSheetToString");
3675
- var Gn = /* @__PURE__ */ e((e, t, n, i) => {
3854
+ e(cr, "cssStyleSheetToString");
3855
+ var lr = /* @__PURE__ */ e((e, t, n, i) => {
3676
3856
  let a = "";
3677
- return e in Un && Un[e] ? a = Un[e]({
3857
+ return e in sr && sr[e] ? a = sr[e]({
3678
3858
  ...n,
3679
3859
  svgId: i
3680
3860
  }) : r.warn(`No theme found for ${e}`), `& {
@@ -3799,32 +3979,32 @@ var Gn = /* @__PURE__ */ e((e, t, n, i) => {
3799
3979
 
3800
3980
  ${t}
3801
3981
  `;
3802
- }, "getStyles"), Kn = /* @__PURE__ */ e((e, t) => {
3803
- t !== void 0 && (Un[e] = t);
3804
- }, "addStylesForDiagram"), qn = Gn, Jn = {};
3805
- t(Jn, {
3806
- clear: () => $n,
3807
- getAccDescription: () => rr,
3808
- getAccTitle: () => tr,
3809
- getDiagramTitle: () => ar,
3810
- setAccDescription: () => nr,
3811
- setAccTitle: () => er,
3812
- setDiagramTitle: () => ir
3982
+ }, "getStyles"), ur = /* @__PURE__ */ e((e, t) => {
3983
+ t !== void 0 && (sr[e] = t);
3984
+ }, "addStylesForDiagram"), dr = lr, fr = {};
3985
+ t(fr, {
3986
+ clear: () => _r,
3987
+ getAccDescription: () => xr,
3988
+ getAccTitle: () => yr,
3989
+ getDiagramTitle: () => Cr,
3990
+ setAccDescription: () => br,
3991
+ setAccTitle: () => vr,
3992
+ setDiagramTitle: () => Sr
3813
3993
  });
3814
- var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ e((e) => Q(e, J()), "sanitizeText"), $n = /* @__PURE__ */ e(() => {
3815
- Yn = "", Zn = "", Xn = "";
3816
- }, "clear"), er = /* @__PURE__ */ e((e) => {
3817
- Yn = Qn(e).replace(/^\s+/g, "");
3818
- }, "setAccTitle"), tr = /* @__PURE__ */ e(() => Yn, "getAccTitle"), nr = /* @__PURE__ */ e((e) => {
3819
- Zn = Qn(e).replace(/\n\s+/g, "\n");
3820
- }, "setAccDescription"), rr = /* @__PURE__ */ e(() => Zn, "getAccDescription"), ir = /* @__PURE__ */ e((e) => {
3821
- Xn = Qn(e);
3822
- }, "setDiagramTitle"), ar = /* @__PURE__ */ e(() => Xn, "getDiagramTitle"), or = r, sr = n, cr = J, lr = Qt, ur = G, dr = /* @__PURE__ */ e((e) => Q(e, cr()), "sanitizeText"), fr = Hn, pr = /* @__PURE__ */ e(() => Jn, "getCommonDb"), mr = {}, hr = /* @__PURE__ */ e((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__ */ e((e) => {
3825
- if (e in mr) return mr[e];
3826
- throw new _r(e);
3827
- }, "getDiagram"), _r = class extends Error {
3994
+ var pr = "", mr = "", hr = "", gr = /* @__PURE__ */ e((e) => Ln(e, Q()), "sanitizeText"), _r = /* @__PURE__ */ e(() => {
3995
+ pr = "", hr = "", mr = "";
3996
+ }, "clear"), vr = /* @__PURE__ */ e((e) => {
3997
+ pr = gr(e).replace(/^\s+/g, "");
3998
+ }, "setAccTitle"), yr = /* @__PURE__ */ e(() => pr, "getAccTitle"), br = /* @__PURE__ */ e((e) => {
3999
+ hr = gr(e).replace(/\n\s+/g, "\n");
4000
+ }, "setAccDescription"), xr = /* @__PURE__ */ e(() => hr, "getAccDescription"), Sr = /* @__PURE__ */ e((e) => {
4001
+ mr = gr(e);
4002
+ }, "setDiagramTitle"), Cr = /* @__PURE__ */ e(() => mr, "getDiagramTitle"), wr = r, Tr = n, Er = Q, Dr = xn, Or = an, kr = /* @__PURE__ */ e((e) => Ln(e, Er()), "sanitizeText"), Ar = or, jr = /* @__PURE__ */ e(() => fr, "getCommonDb"), Mr = {}, Nr = /* @__PURE__ */ e((e, t, n) => {
4003
+ Mr[e] && wr.warn(`Diagram with id ${e} already registered. Overwriting.`), Mr[e] = t, n && Dt(e, n), ur(e, t.styles), t.injectUtils?.(wr, Tr, Er, kr, Ar, jr(), () => {});
4004
+ }, "registerDiagram"), Pr = /* @__PURE__ */ e((e) => {
4005
+ if (e in Mr) return Mr[e];
4006
+ throw new Fr(e);
4007
+ }, "getDiagram"), Fr = class extends Error {
3828
4008
  static {
3829
4009
  e(this, "DiagramNotFoundError");
3830
4010
  }
@@ -3833,4 +4013,4 @@ var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ e((e) => Q(e, J()), "sanitiz
3833
4013
  }
3834
4014
  };
3835
4015
  //#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 };
4016
+ export { yn as $, An as A, kr as B, Cr as C, Un as D, Pt as E, tr as F, Dr as G, br as H, Cn as I, _n as J, gn as K, rn as L, Kn as M, Nr as N, On as O, Et as P, K as Q, nn as R, R as S, bn as T, vr as U, vn as V, xn as W, Ar as X, or as Y, dr as Z, xr as _, _r as a, h as at, Er as b, ar as c, Or as d, P as et, Qt as f, un as g, bt as h, $n as i, _ as it, Ct as j, Qn as k, cr as l, wt as m, Sn as n, y as nt, fr as o, m as ot, Tt as p, Sr as q, B as r, v as rt, nr as s, a as st, L as t, b as tt, an as u, yr as v, kn as w, Pr as x, Q as y, Ln as z };