@marimo-team/islands 0.23.17-dev9 → 0.24.1-dev0

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 (633) hide show
  1. package/dist/{ConnectedDataExplorerComponent-f9vLjQiF.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
  2. package/dist/{ErrorBoundary-DhLqwSWA.js → ErrorBoundary-BniTEhHn.js} +7 -7
  3. package/dist/{ImageComparisonComponent-C3y7L3eJ.js → ImageComparisonComponent-B7b8DcJI.js} +42 -31
  4. package/dist/{Plot-YQOuVIei.js → Plot-eTseCFf_.js} +4 -4
  5. package/dist/_initCloneObject-DNUst5Cg.js +91 -0
  6. package/dist/abnfDiagram-N423BO3Z-DA4j92-C.js +112 -0
  7. package/dist/{any-language-editor-DifE-fl7.js → any-language-editor-LHl8ZmVN.js} +26 -26
  8. package/dist/apl-Cwo7GIH7.js +4 -0
  9. package/dist/{arc-CTIpFoOn.js → arc-9nABupDE.js} +2 -2
  10. package/dist/architecture-TIHT7OUA-DxLlkuAK.js +5 -0
  11. package/dist/{architectureDiagram-VXUJARFQ-DXwkyAaM.js → architectureDiagram-T3A2C74G-BBlBK1Oh.js} +327 -214
  12. package/dist/{arrays-sEtDRoG4.js → arrays-C56grfjL.js} +1 -1
  13. package/dist/asciiarmor-jrfEZ3j_.js +4 -0
  14. package/dist/asn1-BNEiJ4nQ.js +4 -0
  15. package/dist/assets/__vite-browser-external-DUz7vvG0.js +1 -0
  16. package/dist/assets/{worker-CDEKsBgX.js → worker-Cl1KJG2_.js} +2 -2
  17. package/dist/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
  18. package/dist/brainfuck-BCunvTbd.js +4 -0
  19. package/dist/{button-BSm8IXRU.js → button-Dr2uAwhT.js} +9 -7
  20. package/dist/{c4Diagram-YG6GDRKO-B6dZC_oU.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
  21. package/dist/{capabilities-C6OQ5YBO.js → capabilities-BilXeZ7p.js} +2 -2
  22. package/dist/{channel-BN070S0F.js → channel-CuV_jmG4.js} +1 -1
  23. package/dist/chat-ui-o-tATfmW.js +8619 -0
  24. package/dist/{check-DP7U0H0G.js → check-58HHfHKy.js} +1 -1
  25. package/dist/chunk-2GRJ4B5K-DRayWnnu.js +68 -0
  26. package/dist/{chunk-QZHKN3VN-Dym5BS7y.js → chunk-2Q5K7J3B-BSLyFOHa.js} +1 -1
  27. package/dist/chunk-3NCLNEKW-BPlp8K7N.js +11 -0
  28. package/dist/chunk-4I5QYGJK-CYJC3pkC.js +260 -0
  29. package/dist/chunk-5FCAYU7R-C3cMIeyz.js +24 -0
  30. package/dist/{chunk-5FQGJX7Z-B9WoXK1R.js → chunk-5FQGJX7Z-BRZ_XYUw.js} +6 -6
  31. package/dist/chunk-5HE753X5-D2jFCVXb.js +34 -0
  32. package/dist/chunk-5JV3BV7I-B7tzprBU.js +50 -0
  33. package/dist/{chunk-DI55MBZ5-D4Y8yV8B.js → chunk-5RXB4S5H-DcCPfb0q.js} +373 -327
  34. package/dist/chunk-5TONJI2A-LRqbgPte.js +59 -0
  35. package/dist/{chunk-FMBD7UC4-quJmebXa.js → chunk-5VM5RSS4-ChXEBudA.js} +1 -1
  36. package/dist/chunk-6Q2QTUOP-zcnb3OaV.js +503 -0
  37. package/dist/{chunk-HN2XXSSU-Bv0QkeMr.js → chunk-7BUUIJ7U-CkIbJNZo.js} +32 -25
  38. package/dist/chunk-7Z6QIM7H-1j-x7ddW.js +606 -0
  39. package/dist/{chunk-FRFDVMJY-BHBqN-vD.js → chunk-BIQX33UG-B-BYk6sM.js} +3 -3
  40. package/dist/chunk-Bfp04NdC.js +25 -0
  41. package/dist/chunk-CQNSW5MT-DBXDKSOU.js +34 -0
  42. package/dist/{chunk-4F5CHEZ2-VlodlEGo.js → chunk-CYSBUYHQ-Cv-vKQV-.js} +1 -1
  43. package/dist/{chunk-SJTYNZTY-DnXoKWpW.js → chunk-EMLP6XTP-DCtMkXLF.js} +1 -1
  44. package/dist/{chunk-B4BG7PRW-B_z2FEHm.js → chunk-GF5L2VYU-esTxzELH.js} +878 -636
  45. package/dist/chunk-I66GZJ75-9xAsFrdW.js +3744 -0
  46. package/dist/chunk-J7OUQ5F2-CbNBTlFM.js +81 -0
  47. package/dist/chunk-JG7HCLWE-CZIm6axg.js +59 -0
  48. package/dist/{flowDiagram-NV44I4VS-BRhSg-ro.js → chunk-JQJVKLGR-ZALkKVji.js} +1019 -1001
  49. package/dist/{chunk-4BX2VUAB-iU5lQTDI.js → chunk-JWPE2WC7-C_Daz-Oc.js} +1 -1
  50. package/dist/{chunk-QN33PNHL-DPBNNzpR.js → chunk-KBJHAD2P-B7m9DztL.js} +3 -2
  51. package/dist/chunk-KEIR6QF5-aP6TmWQ-.js +21095 -0
  52. package/dist/{chunk-UMXZTB3W-D1uHz8MN.js → chunk-MOZMSUNE-BQi-ggQx.js} +7 -4
  53. package/dist/{chunk-S3R3BYOJ-BdgLc8AM.js → chunk-NSK5VX7P-BmmoJBbx.js} +320 -29
  54. package/dist/chunk-OSBZ3O6U-BcrmpSY_.js +22 -0
  55. package/dist/{chunk-TQ3KTPDO-CsDx6v37.js → chunk-QBLGF6JB-BACuPUWb.js} +3 -3
  56. package/dist/chunk-QR6OTTB3-C4L1dLRd.js +3762 -0
  57. package/dist/{chunk-B2363JML-zL3VngtH.js → chunk-R7FJI6CG-BYAXJpIb.js} +3 -3
  58. package/dist/chunk-RYQCIY6F-poA0Ugpr.js +243 -0
  59. package/dist/chunk-U6XO7XAA-I8tCjTeT.js +60 -0
  60. package/dist/chunk-UBXNYLIW-C8LueN5Q.js +34 -0
  61. package/dist/{chunk-ATLVNIR6-qFiszptQ.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
  62. package/dist/{chunk-JA3XYJ7Z-CY4CRbV5.js → chunk-WRU74C26-DLgw-V0j.js} +262 -451
  63. package/dist/chunk-XXDRQBXY-Dzcp3rUR.js +9 -0
  64. package/dist/chunk-Y2CYZVJY-DX3DSigL.js +13 -0
  65. package/dist/{chunk-PL6DKKU2-CAHKc95s.js → chunk-YOTPTUD7-C8qfgaz5.js} +5 -5
  66. package/dist/{chunk-MI3HLSF2-HGWI-8Pg.js → chunk-ZIRB5QZD-_JX1DzEJ.js} +12 -8
  67. package/dist/classDiagram-JCYQIIEL-D8A6ZyXv.js +32 -0
  68. package/dist/classDiagram-v2-OCEON4UE-DIdYl-t3.js +32 -0
  69. package/dist/{click-outside-container-BSIeYt4y.js → click-outside-container-BZNsAj09.js} +2 -2
  70. package/dist/{clike-7lgyEYRk.js → clike-CWndBX_M.js} +1 -1
  71. package/dist/clojure-2X0Rfij9.js +4 -0
  72. package/dist/cmake-DEwzCy9U.js +4 -0
  73. package/dist/cobol-Ck4eCoAB.js +4 -0
  74. package/dist/{code-block-37QAKDTI-MSxEjskJ.js → code-block-37QAKDTI-B4pWe5MI.js} +4 -4
  75. package/dist/coffeescript-bB1IDwhg.js +4 -0
  76. package/dist/{common-C3f0slQQ.js → common-CDI91x0c.js} +797 -804
  77. package/dist/commonlisp-BDYrVBNC.js +4 -0
  78. package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
  79. package/dist/{copy-DNq8q3zw.js → copy-C7ZKMKox.js} +5 -5
  80. package/dist/{cose-bilkent-S5V4N54A-BYj0aL7z.js → cose-bilkent-JH36ORCC-D6iQzSi6.js} +6 -5
  81. package/dist/crystal-BSoiVUiH.js +4 -0
  82. package/dist/css-w1h9i21f.js +4 -0
  83. package/dist/cynefin-VYW2F7L2-DnZOHyNF.js +5 -0
  84. package/dist/cynefinDiagram-MW4NZA55-B1GNPS2u.js +367 -0
  85. package/dist/cypher-B4xzuKGP.js +4 -0
  86. package/dist/{cytoscape.esm-Dr8XzXWK.js → cytoscape.esm-BPa26Dup.js} +393 -334
  87. package/dist/d-D50Bz34p.js +4 -0
  88. package/dist/{dagre-By_QsQgc.js → dagre-ThTNj8pe.js} +60 -45
  89. package/dist/dagre-VZM6K2ZE-DEs5dfXA.js +343 -0
  90. package/dist/{data-grid-overlay-editor-BWRG2b_o.js → data-grid-overlay-editor-Ci7TXVf5.js} +5 -5
  91. package/dist/{debounce-BOD3DbfP.js → debounce-D784bpms.js} +2 -2
  92. package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-CMezyvMc.js} +26 -26
  93. package/dist/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
  94. package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
  95. package/dist/{diagram-S2PKOQOG-CGh4OMEV.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
  96. package/dist/{diagram-PSM6KHXK-D4ftnaua.js → diagram-Q27KOJAE-NPRzyGtd.js} +68 -63
  97. package/dist/diagram-UB23O5K3-Dogz4itg.js +236 -0
  98. package/dist/diff-BMdzfXq-.js +4 -0
  99. package/dist/{dist-BTdrwBWP.js → dist-72nb8Uag.js} +3 -3
  100. package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
  101. package/dist/{dist-BOMbzyb3.js → dist-Awj73yUw.js} +3 -3
  102. package/dist/{dist-w_gWE5Wf.js → dist-B0Ctcrt9.js} +1 -1
  103. package/dist/{dist-BO5HRiTf.js → dist-B1Donbpk.js} +2 -2
  104. package/dist/dist-BC6wzWNb.js +5 -0
  105. package/dist/{dist-De-GlSAs.js → dist-BJ2IUa0l.js} +15 -9
  106. package/dist/dist-BMd_RcOy.js +5 -0
  107. package/dist/dist-BZEWjN6r.js +5 -0
  108. package/dist/{dist-BP39XM8u.js → dist-B_K4AAkc.js} +1 -1
  109. package/dist/dist-BeuGjR3n.js +6 -0
  110. package/dist/dist-BfDQCUe6.js +5 -0
  111. package/dist/dist-BhNblTOV.js +8 -0
  112. package/dist/{dist-BPF0gTRZ.js → dist-C0ifRfXi.js} +1 -1
  113. package/dist/{dist-pqIwD8VD.js → dist-C3mEki35.js} +2 -2
  114. package/dist/{dist-LpLXa9Lb.js → dist-CNfV2vDI.js} +2 -2
  115. package/dist/{dist-DviUBLUp.js → dist-COcQ5Vyc.js} +4 -4
  116. package/dist/dist-CRCm4Fuo.js +5 -0
  117. package/dist/{dist-4lVIWUT3.js → dist-CSZpLb9d.js} +1 -1
  118. package/dist/{dist-BIEt-mlF.js → dist-CWswQBvu.js} +1 -1
  119. package/dist/{dist-D3bdsa1d.js → dist-CXYro_Nw.js} +4 -4
  120. package/dist/{dist-CRmSjkLP.js → dist-Ckfsc8C3.js} +2 -2
  121. package/dist/{dist-CSlJrrAw.js → dist-Cyq6Pxtv.js} +1 -1
  122. package/dist/{dist-JGehap7K.js → dist-D-BWPyoX.js} +5 -5
  123. package/dist/{dist-BCX980mU.js → dist-D-YB6j-O.js} +2 -2
  124. package/dist/{dist-DgjbnqTg.js → dist-D1vYHETp.js} +2 -2
  125. package/dist/{dist-BpeiYpG2.js → dist-D9-ePb6D.js} +2 -2
  126. package/dist/dist-DBPEbGkd.js +8 -0
  127. package/dist/{dist-C2_4pjuS.js → dist-DC409ROm.js} +1 -1
  128. package/dist/{dist-BdqCKQ1O.js → dist-DJRUd9aM.js} +2 -2
  129. package/dist/{dist-DaXJPX8F.js → dist-DLvxZEAK.js} +2 -2
  130. package/dist/dist-DSsl8IAI.js +5 -0
  131. package/dist/{dist-3NCqaWjt.js → dist-D_ulymry.js} +2 -2
  132. package/dist/{dist-DZwp8lro.js → dist-DgY27bJ4.js} +3 -3
  133. package/dist/{dist-BwhXBwMd.js → dist-DiwVZiK7.js} +1 -1
  134. package/dist/{dist-DwqBJ014.js → dist-DnYHhW6c.js} +2 -2
  135. package/dist/dist-Dx0kkrek.js +5 -0
  136. package/dist/{dist-DsoKosxi.js → dist-HaLHv0k5.js} +2 -3
  137. package/dist/dist-NKA1TU8a.js +6 -0
  138. package/dist/dist-ZFcsIdHj.js +8 -0
  139. package/dist/{dist-C18MUWTj.js → dist-iZ8-rtUy.js} +2 -2
  140. package/dist/{dist-DIlxLFXG.js → dist-j30bBjjN.js} +15 -15
  141. package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
  142. package/dist/{dist-CFSb_Frm.js → dist-sxRUVPmt.js} +1 -1
  143. package/dist/dist-uA2RbGmY.js +5 -0
  144. package/dist/{dist-B2jmQKKx.js → dist-xVU82Nq7.js} +2 -2
  145. package/dist/dist-zSCo-xCB.js +8 -0
  146. package/dist/{dockerfile-B82Pkz_V.js → dockerfile-DImRFUlA.js} +1 -1
  147. package/dist/dtd-B9dCT0pu.js +4 -0
  148. package/dist/dylan-DLghDyuR.js +4 -0
  149. package/dist/ebnfDiagram-BXEA7PRR-CqRWkG7L.js +129 -0
  150. package/dist/ecl-w0qdPHDB.js +4 -0
  151. package/dist/eiffel-C5AWRCNP.js +4 -0
  152. package/dist/elm-CT8FZrOm.js +4 -0
  153. package/dist/{erDiagram-Q2GNP2WA-BcKAHFqF.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
  154. package/dist/erlang-DPD-9M5g.js +4 -0
  155. package/dist/{error-banner-B_GQfxxD.js → error-banner-BwCLtmkH.js} +6 -6
  156. package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
  157. package/dist/{esm-DKOv6P2M.js → esm-Dusmf6uu.js} +105 -105
  158. package/dist/{esm-DzZVaNH4.js → esm-QLUgkqzZ.js} +6 -6
  159. package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
  160. package/dist/{extends-w2_S44bV.js → extends-iFBneQO_.js} +9 -9
  161. package/dist/{factor-Bq2mGIHt.js → factor-BonZgUGg.js} +1 -1
  162. package/dist/factor-rFfeJu3r.js +4 -0
  163. package/dist/flowDiagram-UKHOOZJN-DqIE8_b3.js +21 -0
  164. package/dist/{formats-Dwq1THhr.js → formats-HSfYlcA8.js} +7 -7
  165. package/dist/forth-C-3AyQx4.js +4 -0
  166. package/dist/fortran-BSN9TeT7.js +4 -0
  167. package/dist/ganttDiagram-PKOTCBZU-Bc9puoXb.js +2207 -0
  168. package/dist/gas-DwmuvQpB.js +4 -0
  169. package/dist/gherkin-gmCjL-Sn.js +4 -0
  170. package/dist/{gitGraph-G5XIXVHT-BjTx0kww.js → gitGraph-TEB2WS4Q-DVzLmQHc.js} +2 -3
  171. package/dist/gitGraphDiagram-DS77QQ5N-CqKr-Dfg.js +766 -0
  172. package/dist/{glide-data-editor-B9K6-MJe.js → glide-data-editor-BI2i_IEE.js} +18 -18
  173. package/dist/graphlib-DMVIRZap.js +614 -0
  174. package/dist/groovy-DCjvesOy.js +4 -0
  175. package/dist/hasIn-synBnXn4.js +119 -0
  176. package/dist/haskell-C1p0D9L8.js +4 -0
  177. package/dist/haxe-q-fgv0zr.js +5 -0
  178. package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-BOiFHx3u.js} +7535 -3056
  179. package/dist/idl-Bmg4bsnK.js +4 -0
  180. package/dist/{info-VBDWY6EO-CA67FznA.js → info-DKCQHKI2-BxOTqQHM.js} +2 -3
  181. package/dist/infoDiagram-6WML65LV-B869X2KY.js +37 -0
  182. package/dist/{input-C5K4VBvB.js → input-BRE2a7Ay.js} +13 -13
  183. package/dist/{_baseFor-4jw-lnCC.js → isArrayLikeObject-CBUaLibE.js} +96 -29
  184. package/dist/{isEmpty-CJJMn-QP.js → isEmpty-CgME6WRV.js} +15 -15
  185. package/dist/{isSymbol-CoUCgMCM.js → isSymbol-Ch3GYg4S.js} +1 -1
  186. package/dist/ishikawaDiagram-WSZJBQD7-BrOMFBYy.js +731 -0
  187. package/dist/javascript-BY5QZ-eN.js +4 -0
  188. package/dist/{journeyDiagram-XKPGCS4Q-DEal0aT1.js → journeyDiagram-NVQOT4AX-CTwHlsTm.js} +124 -123
  189. package/dist/{jsx-runtime-DebpN0FN.js → jsx-runtime-Dp_oQwaf.js} +1 -1
  190. package/dist/julia-DbR1YalK.js +4 -0
  191. package/dist/{kanban-definition-3W4ZIXB7-Dl90wENN.js → kanban-definition-27J2QSJJ-CKowzO9_.js} +51 -45
  192. package/dist/{katex-C4t-BmrK.js → katex-Ci33kJVq.js} +1 -1
  193. package/dist/{katex-Bld7b-fk.js → katex-Dp22h6yO.js} +2871 -3002
  194. package/dist/{label-DjoYwqmj.js → label-CMh2d8pJ.js} +6 -6
  195. package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
  196. package/dist/{linear-H_vsH9ao.js → linear-6pDlrp1I.js} +4 -4
  197. package/dist/livescript-BDUooIeL.js +4 -0
  198. package/dist/{loader-DX-IDS7n.js → loader-DTnbNSVZ.js} +11 -11
  199. package/dist/lua-CswAWSkH.js +4 -0
  200. package/dist/main.js +747 -752
  201. package/dist/map-BQ_Xp80D.js +137 -0
  202. package/dist/mathematica-Bw7v11B5.js +4 -0
  203. package/dist/mbox-j35IMz1j.js +4 -0
  204. package/dist/merge-CDbSrd9f.js +69 -0
  205. package/dist/mermaid-4DMBBIKO-BZSpTmcx.js +6 -0
  206. package/dist/mermaid-DpAz2sTy.js +1265 -0
  207. package/dist/mermaid-parser.core-BQzz3_BI.js +87 -0
  208. package/dist/{mhchem-EGhUZR1V.js → mhchem-BDHjke3h.js} +1 -1
  209. package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-Cr4NxAt3.js} +1 -1
  210. package/dist/{mindmap-definition-VGOIOE7T-CCDupjWW.js → mindmap-definition-FAOFIHXS-CTsi-HFj.js} +126 -80
  211. package/dist/mirc-Ba_RHVXO.js +4 -0
  212. package/dist/mllike-DbTP2dPp.js +6 -0
  213. package/dist/modelica-lpT3V1X6.js +4 -0
  214. package/dist/mscgen-BN4ZSJMx.js +6 -0
  215. package/dist/mumps-uI5g1A0g.js +4 -0
  216. package/dist/{node-sql-parser-v1Vi-Fft.js → node-sql-parser-BaLGWQe1.js} +1 -1
  217. package/dist/{now-Ch98bJO_.js → now-sFWt-GLC.js} +2 -2
  218. package/dist/{nsis-i9_sgigf.js → nsis-C68fFq_o.js} +1 -1
  219. package/dist/nsis-Df56GiRg.js +4 -0
  220. package/dist/ntriples-B3LWuG7W.js +4 -0
  221. package/dist/{number-overlay-editor-Ck_mc_gT.js → number-overlay-editor-CeBHRJvI.js} +3 -3
  222. package/dist/octave-CovfQgOx.js +4 -0
  223. package/dist/{once-B60G2fuJ.js → once-Boutk_9X.js} +1 -1
  224. package/dist/{ordinal-Bkv2-veX.js → ordinal-Bdajf2BE.js} +1 -1
  225. package/dist/oz-DQQAvVFb.js +4 -0
  226. package/dist/{packet-DYOGHKS2-Bkgofxf3.js → packet-7NZHBO7P-BG8whXXH.js} +2 -3
  227. package/dist/pascal-xz94P9sf.js +4 -0
  228. package/dist/pegDiagram-VL7TDLO6-CNpT8Sqz.js +124 -0
  229. package/dist/perl-aEWKE-1n.js +4 -0
  230. package/dist/pick-CaEWivSF.js +47 -0
  231. package/dist/{pie-VRWISCQL-B1AMhN_7.js → pie-RZYD4A2V-Cc_QhFbT.js} +2 -3
  232. package/dist/pieDiagram-7S7Q4E2Y-Ct8jRpe_.js +219 -0
  233. package/dist/pig-DB6DOZl7.js +4 -0
  234. package/dist/powershell-DM5saUx1.js +4 -0
  235. package/dist/{precisionRound-CnHPY_5v.js → precisionRound-BOoJTbDj.js} +1 -1
  236. package/dist/{process-output-bVfbcx5_.js → process-output-HrsM52f8.js} +7 -7
  237. package/dist/properties-BGjYQuGo.js +4 -0
  238. package/dist/protobuf-BPpEyPud.js +4 -0
  239. package/dist/{pug-BhE2JRSg.js → pug-DFPPZ3LA.js} +1 -1
  240. package/dist/pug-uJzB88ft.js +4 -0
  241. package/dist/puppet-oIm2d_Lg.js +4 -0
  242. package/dist/{purify.es-EnR5yhgI.js → purify.es-DR5PNXwx.js} +160 -155
  243. package/dist/python-WE57eUzD.js +4 -0
  244. package/dist/q-CR8xPodo.js +4 -0
  245. package/dist/{quadrantDiagram-AYHSOK5B-BqDB9tUC.js → quadrantDiagram-CIZ2JOQS-B5n_xFcF.js} +429 -401
  246. package/dist/r-CJdmQZNj.js +4 -0
  247. package/dist/{radar-ZZBFDIW7-C2b7A32s.js → radar-I7S5WNFK-OhUkecXA.js} +2 -3
  248. package/dist/railroad-3IZDKUUU-1CmOpo1B.js +5 -0
  249. package/dist/railroad-abnf-AHOZXSZD-DmH4lsDS.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-CzK0md4e.js +5 -0
  251. package/dist/railroad-peg-LSFZ7HO6-DOklooKz.js +5 -0
  252. package/dist/railroadDiagram-AXF67PYL-BbUWbtf8.js +100 -0
  253. package/dist/{react-DA-nE2FX.js → react-DhGsCS90.js} +1 -1
  254. package/dist/{react-dom-BTJzcVJ9.js → react-dom-CmENFV8Q.js} +2 -2
  255. package/dist/{react-vega-BazDALhI.js → react-vega-zyfTF9SY.js} +8036 -4796
  256. package/dist/{requirementDiagram-UZGBJVZJ-KbVt8SPH.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
  257. package/dist/{reveal-component-CbOaZYQI.js → reveal-component-jN-3ZqwN.js} +27 -28
  258. package/dist/rough.esm-lGyFQ0B-.js +1363 -0
  259. package/dist/rpm-Cm5K4RH9.js +5 -0
  260. package/dist/ruby-ArsuTozQ.js +4 -0
  261. package/dist/sankeyDiagram-W5VNT64P-D82rYiAG.js +942 -0
  262. package/dist/sas-DShligrE.js +4 -0
  263. package/dist/scheme-kDLirQL7.js +4 -0
  264. package/dist/sequenceDiagram-SI44F4Z6-DgVKU1s5.js +4281 -0
  265. package/dist/shell-CVQuWP_N.js +4 -0
  266. package/dist/sieve-BW-ePwnq.js +4 -0
  267. package/dist/sizeCapture-X5ZJPWSS-BQgxHTji.js +48 -0
  268. package/dist/smalltalk-DI4aAXxY.js +4 -0
  269. package/dist/sparql-B2sp0oiz.js +4 -0
  270. package/dist/{spec-CQKL_D3i.js → spec-BL1GSUUF.js} +4 -4
  271. package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
  272. package/dist/{stateDiagram-FKZM4ZOC-ByOvQf2n.js → stateDiagram-OKZ733FA-Cc9BchXz.js} +61 -58
  273. package/dist/stateDiagram-v2-UEYNNEHI-Dd4Tuw6F.js +32 -0
  274. package/dist/{step-BqHnkgWE.js → step-BqVgkWtk.js} +1 -1
  275. package/dist/stex-D2rme5UG.js +4 -0
  276. package/dist/{strings-DIy9NAmg.js → strings-DMLVGXRo.js} +305 -305
  277. package/dist/style.css +1 -1
  278. package/dist/stylus-xxO-85eO.js +4 -0
  279. package/dist/swift-Ctg533nZ.js +4 -0
  280. package/dist/swimlanes-SLNWSIFB-BHvhO5uv.js +5564 -0
  281. package/dist/swimlanesDiagram-ULZ7WXOC-aI_zgQ8O.js +33 -0
  282. package/dist/{swiper-component-CEdAYjb7.js → swiper-component-Cx0cRWLk.js} +6 -6
  283. package/dist/tcl-phm9c5Nd.js +4 -0
  284. package/dist/textile-CphjAg90.js +4 -0
  285. package/dist/{time-Bb4A7I6a.js → time-DAJu9fnj.js} +4 -4
  286. package/dist/timeline-definition-Z64GVDOM-BAHuDYyA.js +1107 -0
  287. package/dist/{timer-BpI_FKSA.js → timer-aIIabkbI.js} +1 -1
  288. package/dist/{toDate-CqhBWjvO.js → toDate-BGM7kFtQ.js} +6 -6
  289. package/dist/toml-BUuMK772.js +4 -0
  290. package/dist/{tooltip-f-qR0iUx.js → tooltip-BtUxZT5h.js} +7 -7
  291. package/dist/treeView-QDETBFTQ-DsLN_c8p.js +5 -0
  292. package/dist/{treemap-GDKQZRPO-SDux0AV8.js → treemap-6X3UGDF4-K1bi3LJm.js} +2 -3
  293. package/dist/troff-lCtc05A3.js +4 -0
  294. package/dist/ttcn-CcykzBcW.js +4 -0
  295. package/dist/ttcn-cfg-C-XYdqpE.js +4 -0
  296. package/dist/turtle-CpfVZs8G.js +4 -0
  297. package/dist/{types-DicH9Oi0.js → types-DT8UHI5w.js} +1 -1
  298. package/dist/{use-vega-container-remeasure-DGNrIQSk.js → use-vega-container-remeasure-B7OD7yUY.js} +3 -3
  299. package/dist/{useAsyncData-CYOQb1EW.js → useAsyncData-CDcbh-Qv.js} +5 -5
  300. package/dist/{useDateFormatter-Bt2qr_XS.js → useDateFormatter-B_vTzxpm.js} +4 -4
  301. package/dist/{useDeepCompareMemoize-CSHQeQEI.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
  302. package/dist/{useIframeCapabilities-kA09ykNq.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
  303. package/dist/{useLifecycle-CMJGqBaY.js → useLifecycle-Bw4wRj_O.js} +7 -7
  304. package/dist/{useTheme-DYfby65G.js → useTheme-BzEXeAR5.js} +8 -7
  305. package/dist/vb-VOIzXwm9.js +4 -0
  306. package/dist/vbscript-D0WfcnVk.js +4 -0
  307. package/dist/{vega-component-C7nO5zcf.js → vega-component-CJug-VdR.js} +24 -24
  308. package/dist/{vega-embed-container-DAQAMjiO.js → vega-embed-container-BRjjqRGz.js} +9 -9
  309. package/dist/{vega-loader.browser-DmpxCJqx.js → vega-loader.browser-CGb-2Kwi.js} +106 -113
  310. package/dist/velocity-CCrc5n-0.js +4 -0
  311. package/dist/vennDiagram-T6HMQDX7-CTyzMewS.js +1913 -0
  312. package/dist/verilog-BLFhaDBH.js +4 -0
  313. package/dist/vhdl-DjuqPE9b.js +4 -0
  314. package/dist/wardley-OPB4EBWU-CP99MvU1.js +5 -0
  315. package/dist/wardleyDiagram-T6FBY63Y-vcno_rbk.js +669 -0
  316. package/dist/webidl-Cc7RrfeK.js +4 -0
  317. package/dist/xquery-BiCRLnNG.js +4 -0
  318. package/dist/{xychartDiagram-PRI3JC2R-BSkNxYNw.js → xychartDiagram-ELKLHX3M-DyFDERhM.js} +417 -353
  319. package/dist/yacas-CWcjav-O.js +4 -0
  320. package/dist/z80-DpYS2lE7.js +4 -0
  321. package/dist/{zod-BUcyXSdR.js → zod-BFY2SnzC.js} +42 -43
  322. package/package.json +7 -7
  323. package/src/__mocks__/requests.ts +5 -0
  324. package/src/components/ai/ai-model-dropdown.tsx +2 -2
  325. package/src/components/app-config/user-config-form.tsx +26 -0
  326. package/src/components/chat/__tests__/capabilities-popover.test.tsx +38 -0
  327. package/src/components/chat/__tests__/chat-abort.test.ts +51 -0
  328. package/src/components/chat/__tests__/use-chat-controller-id.test.tsx +39 -0
  329. package/src/components/chat/capabilities-popover.tsx +68 -0
  330. package/src/components/chat/chat-abort.ts +44 -0
  331. package/src/components/chat/chat-display.tsx +17 -0
  332. package/src/components/chat/chat-panel.tsx +107 -50
  333. package/src/components/chat/chat-utils.ts +1 -1
  334. package/src/components/chat/use-chat-controller-id.ts +24 -0
  335. package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
  336. package/src/components/data-table/charts/schemas.ts +5 -2
  337. package/src/components/datasets/__tests__/icons.test.ts +21 -0
  338. package/src/components/datasets/icons.tsx +10 -0
  339. package/src/components/datasources/__tests__/components.test.tsx +29 -0
  340. package/src/components/datasources/components.tsx +8 -3
  341. package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +35 -0
  342. package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +61 -0
  343. package/src/components/editor/actions/export-dialog/export-command.ts +4 -9
  344. package/src/components/editor/actions/export-dialog/format-notice.tsx +28 -0
  345. package/src/components/editor/actions/export-dialog/state.ts +23 -5
  346. package/src/components/editor/actions/export-dialog/use-export-dialog.ts +3 -13
  347. package/src/components/editor/actions/useConfigActions.tsx +24 -0
  348. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -2
  349. package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
  350. package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
  351. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +2 -2
  352. package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +114 -2
  353. package/src/core/__tests__/mode.test.ts +85 -0
  354. package/src/core/ai/__tests__/config.test.tsx +96 -0
  355. package/src/core/ai/config.ts +16 -22
  356. package/src/core/ai/constants.ts +7 -0
  357. package/src/core/ai/staged-cells.ts +3 -0
  358. package/src/core/ai/state.ts +10 -0
  359. package/src/core/codemirror/__tests__/setup.test.ts +1 -1
  360. package/src/core/codemirror/cm.ts +2 -2
  361. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +85 -6
  362. package/src/core/codemirror/code-lens/extension.ts +144 -47
  363. package/src/core/codemirror/find-replace/search-highlight.ts +8 -3
  364. package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
  365. package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
  366. package/src/core/codemirror/theme/__tests__/light.test.ts +59 -123
  367. package/src/core/codemirror/theme/dark.ts +6 -5
  368. package/src/core/codemirror/theme/light.ts +6 -4
  369. package/src/core/config/__tests__/config-schema.test.ts +2 -0
  370. package/src/core/config/config-schema.ts +1 -0
  371. package/src/core/config/feature-flag.tsx +0 -2
  372. package/src/core/dom/outline.ts +25 -2
  373. package/src/core/hotkeys/hotkeys.ts +2 -0
  374. package/src/core/mode.ts +11 -9
  375. package/src/core/network/__tests__/api.test.ts +132 -17
  376. package/src/core/network/__tests__/export-filename.test.ts +43 -0
  377. package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
  378. package/src/core/network/api.ts +47 -12
  379. package/src/core/network/export-filename.ts +37 -0
  380. package/src/core/network/markdown-export.ts +19 -0
  381. package/src/core/network/requests-network.ts +29 -5
  382. package/src/core/network/types.ts +4 -0
  383. package/src/css/app/codemirror.css +11 -7
  384. package/src/css/globals.css +8 -0
  385. package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
  386. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
  387. package/src/plugins/impl/chat/chat-ui.tsx +51 -3
  388. package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
  389. package/src/plugins/impl/data-frames/schema.ts +4 -1
  390. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +20 -1
  391. package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +58 -0
  392. package/src/stories/theme.stories.tsx +71 -1
  393. package/dist/_baseUniq-B_2Hw7zG.js +0 -380
  394. package/dist/apl-e1B5LPEL.js +0 -4
  395. package/dist/architecture-7HQA4BMR-DHUrQjL4.js +0 -6
  396. package/dist/asciiarmor-B-gwgesP.js +0 -4
  397. package/dist/asn1-DF2ckRB4.js +0 -4
  398. package/dist/assets/__vite-browser-external-DltVXDv7.js +0 -1
  399. package/dist/blockDiagram-VD42YOAC-CIOjvxeD.js +0 -3131
  400. package/dist/brainfuck-4G-7_gq_.js +0 -4
  401. package/dist/chat-ui-DsZJj75A.js +0 -8369
  402. package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
  403. package/dist/chunk-ABZYJK2D-BxBDji1u.js +0 -2438
  404. package/dist/chunk-BNovOVIE.js +0 -28
  405. package/dist/chunk-CVBHYZKI-CwazXVlJ.js +0 -13
  406. package/dist/chunk-DR5Q36YT-5Yp2GWwR.js +0 -137
  407. package/dist/chunk-EXTU4WIE-BQPBhApE.js +0 -10
  408. package/dist/chunk-JZLCHNYA-DWIR9m5O.js +0 -4901
  409. package/dist/chunk-N4CR4FBY-Bw2HcMNc.js +0 -65
  410. package/dist/chunk-QXUST7PY-DtC2t9Mk.js +0 -498
  411. package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
  412. package/dist/chunk-TZMSLE5B-BzSHcq-K.js +0 -63
  413. package/dist/classDiagram-2ON5EDUG-BiQPjMNY.js +0 -30
  414. package/dist/classDiagram-v2-WZHVMYZB-YHdR8fqM.js +0 -30
  415. package/dist/clojure-CUybM11R.js +0 -4
  416. package/dist/clone-Q4Fqwn6q.js +0 -9
  417. package/dist/cmake-BPjGcuDL.js +0 -4
  418. package/dist/cobol-BETk_nb6.js +0 -4
  419. package/dist/coffeescript-CManZxXL.js +0 -4
  420. package/dist/commonlisp-DWkn7GW8.js +0 -4
  421. package/dist/crystal-CCbg5EUH.js +0 -4
  422. package/dist/css-By8eo-XS.js +0 -4
  423. package/dist/cypher-DwfHg3nP.js +0 -4
  424. package/dist/d-Brs1wNbw.js +0 -4
  425. package/dist/dagre-6UL2VRFP-DpYjBqQs.js +0 -296
  426. package/dist/diagram-QEK2KX5R-DVlUOgs1.js +0 -228
  427. package/dist/diff-DJIRmJ1g.js +0 -4
  428. package/dist/dist-5o9uz19x.js +0 -5
  429. package/dist/dist-BpDH0DEP.js +0 -5
  430. package/dist/dist-BpXhbQXO.js +0 -8
  431. package/dist/dist-ByadAk_L.js +0 -5
  432. package/dist/dist-CK0g7JvP.js +0 -8
  433. package/dist/dist-CfzCtiq2.js +0 -5
  434. package/dist/dist-D8JtVFrW.js +0 -8
  435. package/dist/dist-DK2Oocpu.js +0 -6
  436. package/dist/dist-DnSu977r.js +0 -5
  437. package/dist/dist-UmxJm6sW.js +0 -8
  438. package/dist/dist-aYSBQSyM.js +0 -5
  439. package/dist/dist-kkZ1Ztlh.js +0 -6
  440. package/dist/dist-ngPczwNi.js +0 -5
  441. package/dist/dist-wQRyxyTV.js +0 -5
  442. package/dist/dtd-Dyiazv4N.js +0 -4
  443. package/dist/dylan-D8Fcw7NA.js +0 -4
  444. package/dist/ecl-CjKp8Vii.js +0 -4
  445. package/dist/eiffel-K9ViOX5r.js +0 -4
  446. package/dist/elm-B5NVtRco.js +0 -4
  447. package/dist/erlang-BnLzgk7R.js +0 -4
  448. package/dist/factor-C7f9Jz5R.js +0 -4
  449. package/dist/flatten-Bbw7g6-K.js +0 -8
  450. package/dist/forth-rGM8jLao.js +0 -4
  451. package/dist/fortran-B3acSe0i.js +0 -4
  452. package/dist/ganttDiagram-JELNMOA3-CXXCN7LN.js +0 -2170
  453. package/dist/gas-Bb1Vmv_N.js +0 -4
  454. package/dist/gherkin-C9Lyidgd.js +0 -4
  455. package/dist/gitGraphDiagram-V2S2FVAM-BOlkMSqK.js +0 -652
  456. package/dist/graphlib-Ns7y5crs.js +0 -359
  457. package/dist/groovy-DQk6XcGH.js +0 -4
  458. package/dist/hasIn-Deg7jl_j.js +0 -108
  459. package/dist/haskell-mV0Vw9gv.js +0 -4
  460. package/dist/haxe-DqxN89zH.js +0 -5
  461. package/dist/idl-ya8W561J.js +0 -4
  462. package/dist/infoDiagram-HS3SLOUP-D3TyKnL_.js +0 -30
  463. package/dist/javascript-CgqgptVu.js +0 -4
  464. package/dist/julia-CFQ-HusI.js +0 -4
  465. package/dist/livescript-D__3TmDo.js +0 -4
  466. package/dist/lua-Bytcgj_W.js +0 -4
  467. package/dist/main-B1Jo_8pC.js +0 -4321
  468. package/dist/mathematica-DJhvVKvl.js +0 -4
  469. package/dist/mbox-IGHPCjfR.js +0 -4
  470. package/dist/memoize-BOtf2yFf.js +0 -17
  471. package/dist/merge-Be1CqGnU.js +0 -222
  472. package/dist/mermaid-4DMBBIKO-FXbOziy9.js +0 -6
  473. package/dist/mermaid-hv6IckVw.js +0 -1100
  474. package/dist/mermaid-parser.core-DoivvxPd.js +0 -54
  475. package/dist/min-Dtgc8txR.js +0 -38
  476. package/dist/mirc-tcwvVugm.js +0 -4
  477. package/dist/mllike-Dx91i62r.js +0 -6
  478. package/dist/modelica-_SRt-yU5.js +0 -4
  479. package/dist/mscgen-GZrGS9gt.js +0 -6
  480. package/dist/mumps-Cv3ygyod.js +0 -4
  481. package/dist/nsis-BU7GeGbI.js +0 -4
  482. package/dist/ntriples-CL-FCYXb.js +0 -4
  483. package/dist/octave-Dc6_3DIu.js +0 -4
  484. package/dist/oz-DpUAJCXf.js +0 -4
  485. package/dist/pascal-B17mncXs.js +0 -4
  486. package/dist/perl-BTpK97q9.js +0 -4
  487. package/dist/pick-D1Qo8s2C.js +0 -43
  488. package/dist/pieDiagram-ADFJNKIX-JvXG_6hk.js +0 -170
  489. package/dist/pig-CFb638Ap.js +0 -4
  490. package/dist/powershell-Cxo-_2A5.js +0 -4
  491. package/dist/properties-BPgT1xTB.js +0 -4
  492. package/dist/protobuf-BgHBaIIK.js +0 -4
  493. package/dist/pug-25-oS0SG.js +0 -4
  494. package/dist/puppet-DarIr20S.js +0 -4
  495. package/dist/python-BqmOsBsi.js +0 -4
  496. package/dist/q-D3QJCTup.js +0 -4
  497. package/dist/r-Cz_yBX4z.js +0 -4
  498. package/dist/rpm-DGOtYwAI.js +0 -5
  499. package/dist/ruby-DBZu4rPc.js +0 -4
  500. package/dist/sankeyDiagram-TZEHDZUN-DgkF38jx.js +0 -892
  501. package/dist/sas-Dd1D9qTq.js +0 -4
  502. package/dist/scheme-BmDjvTHX.js +0 -4
  503. package/dist/sequenceDiagram-WL72ISMW-BDmx9n95.js +0 -3652
  504. package/dist/shell-BL8zFSaj.js +0 -4
  505. package/dist/sieve-BAx2WqUP.js +0 -4
  506. package/dist/smalltalk-CYRzF7VV.js +0 -4
  507. package/dist/sparql-YWaDRO4A.js +0 -4
  508. package/dist/stateDiagram-v2-4FDKWEC3-C3xqeavR.js +0 -29
  509. package/dist/stex-B5O-env2.js +0 -4
  510. package/dist/stylus-lYsyLFc1.js +0 -4
  511. package/dist/swift-ClQz9z1n.js +0 -4
  512. package/dist/tcl-B3jhsfqY.js +0 -4
  513. package/dist/textile-Cb1Dw7Aq.js +0 -4
  514. package/dist/timeline-definition-IT6M3QCI-CkD_trIn.js +0 -856
  515. package/dist/toml-nHZhetdO.js +0 -4
  516. package/dist/troff-DuJAGWKH.js +0 -4
  517. package/dist/ttcn-BxrcwP21.js +0 -4
  518. package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
  519. package/dist/turtle-zCq949as.js +0 -4
  520. package/dist/vb-De5hElus.js +0 -4
  521. package/dist/vbscript-Cypcpv4F.js +0 -4
  522. package/dist/velocity-Di7l-yhe.js +0 -4
  523. package/dist/verilog-Bzi-S3g2.js +0 -4
  524. package/dist/vhdl-B0ZZITaW.js +0 -4
  525. package/dist/webidl-0sviiRcN.js +0 -4
  526. package/dist/xquery-B4qMVWaB.js +0 -4
  527. package/dist/yacas-Jt25Fuv8.js +0 -4
  528. package/dist/z80-CrcbYzmp.js +0 -4
  529. /package/dist/{apl-99A7dLQe.js → apl-CMUKiT2b.js} +0 -0
  530. /package/dist/{array-O78LT16Y.js → array-CEIRxyh3.js} +0 -0
  531. /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-C_r6K6db.js} +0 -0
  532. /package/dist/{asn1-CMrcTsT4.js → asn1-DnlnCQTu.js} +0 -0
  533. /package/dist/{asterisk-CqykImq7.js → asterisk-DaVJJDnV.js} +0 -0
  534. /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-CtQoQVkV.js} +0 -0
  535. /package/dist/{clike-CE0fXfM_.js → clike-CIAs0ABt.js} +0 -0
  536. /package/dist/{clojure-QkBEMU-g.js → clojure-C6tKQYjD.js} +0 -0
  537. /package/dist/{cmake-CU1jX7Mo.js → cmake-D-nfcg14.js} +0 -0
  538. /package/dist/{cobol-DMOKzzky.js → cobol-DYTC58p9.js} +0 -0
  539. /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-DctDWA58.js} +0 -0
  540. /package/dist/{colors-DmiH1bIH.js → colors-DR_aHfmQ.js} +0 -0
  541. /package/dist/{common-keywords-D3nPJNQP.js → common-keywords-FBrXPTcz.js} +0 -0
  542. /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-BmvTqU5y.js} +0 -0
  543. /package/dist/{crystal-Dy55yoYG.js → crystal-BPIK2UMa.js} +0 -0
  544. /package/dist/{css-CNU8w3HJ.js → css-CDo_Lwzn.js} +0 -0
  545. /package/dist/{cypher-q47DGzK7.js → cypher-KztbD63v.js} +0 -0
  546. /package/dist/{d-jEkaLvxX.js → d-HXBWOoe9.js} +0 -0
  547. /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-DMZFeDB8.js} +0 -0
  548. /package/dist/{diff-vb2-unFN.js → diff-B9rWZH0m.js} +0 -0
  549. /package/dist/{dtd-C9kR-bXa.js → dtd-LtAMP5y8.js} +0 -0
  550. /package/dist/{duckdb-keywords-B6HYCMOT.js → duckdb-keywords-CvJhR_Yd.js} +0 -0
  551. /package/dist/{dylan-BLckrK-V.js → dylan-DXMK92pf.js} +0 -0
  552. /package/dist/{ebnf-Cnp3L9jg.js → ebnf-2D4Ctp3y.js} +0 -0
  553. /package/dist/{ecl-CEsf6XVg.js → ecl-Dqq8ser2.js} +0 -0
  554. /package/dist/{eiffel-2KGZNzx6.js → eiffel-ChExWBDx.js} +0 -0
  555. /package/dist/{elm-D2s3K5wF.js → elm-BMBz2xbZ.js} +0 -0
  556. /package/dist/{emotion-is-prop-valid.esm-DdVSF4FD.js → emotion-is-prop-valid.esm-_z-EwK5u.js} +0 -0
  557. /package/dist/{erlang-0PMFOndk.js → erlang-CGSDzg9P.js} +0 -0
  558. /package/dist/{fcl-D9nccAWI.js → fcl-Ccj8Z5Xd.js} +0 -0
  559. /package/dist/{forth-DG89iUsu.js → forth-vTkfR0aY.js} +0 -0
  560. /package/dist/{fortran-ytKsAVvu.js → fortran-CF4LAVFn.js} +0 -0
  561. /package/dist/{gas-Cg2Fm0N2.js → gas-mMFbQ2x4.js} +0 -0
  562. /package/dist/{gherkin-B87FEnZ-.js → gherkin-DLS1q0XM.js} +0 -0
  563. /package/dist/{groovy-Dcs08AWD.js → groovy-Zt6CNPxV.js} +0 -0
  564. /package/dist/{haskell-cwkOuhx6.js → haskell-kVOgzpVy.js} +0 -0
  565. /package/dist/{haxe-DWEo4q10.js → haxe-Bo21F6gc.js} +0 -0
  566. /package/dist/{http-B8jdG64J.js → http-_DVAYWoR.js} +0 -0
  567. /package/dist/{idl-WWQwDcRV.js → idl-B865GSM-.js} +0 -0
  568. /package/dist/{init-DNBbYZd_.js → init-TaqZJsBY.js} +0 -0
  569. /package/dist/{invariant-wRzNXIsJ.js → invariant-hOqqBz8A.js} +0 -0
  570. /package/dist/{javascript-BeR74dxD.js → javascript-CSLuHpxZ.js} +0 -0
  571. /package/dist/{julia-UlvCUYGL.js → julia-BCOLeQif.js} +0 -0
  572. /package/dist/{livescript-GPmFcmYV.js → livescript-DqUzLZFs.js} +0 -0
  573. /package/dist/{lua-DYoT_0zM.js → lua-D0ciLwkO.js} +0 -0
  574. /package/dist/{math-CBNc2Ib0.js → math-CTnb-N1W.js} +0 -0
  575. /package/dist/{mathematica-DSFIQlbG.js → mathematica-DujD1RDf.js} +0 -0
  576. /package/dist/{mbox-ej8lFMdL.js → mbox-8OkSQMDn.js} +0 -0
  577. /package/dist/{mirc-CAdIdvHQ.js → mirc-D47x8yRQ.js} +0 -0
  578. /package/dist/{mllike-CjTB1lHF.js → mllike-Dcfw-g6D.js} +0 -0
  579. /package/dist/{modelica-BB68FYMa.js → modelica-BHtr9gKR.js} +0 -0
  580. /package/dist/{mscgen-BkbzgGGI.js → mscgen-uZedQc_A.js} +0 -0
  581. /package/dist/{mumps-Cu-28E9F.js → mumps-Bc9QS1-K.js} +0 -0
  582. /package/dist/{nginx-C1ofKPst.js → nginx-DasThI7R.js} +0 -0
  583. /package/dist/{ntriples-D9cQiZxZ.js → ntriples-Clpn9Mrg.js} +0 -0
  584. /package/dist/{objects-De59twF-.js → objects-UzwQd5gx.js} +0 -0
  585. /package/dist/{octave-BvtAnPX0.js → octave-DA2esRWi.js} +0 -0
  586. /package/dist/{oz-COaVHk2E.js → oz-D8i-brWx.js} +0 -0
  587. /package/dist/{pascal-BFpqVD2x.js → pascal-Dt1a0CeN.js} +0 -0
  588. /package/dist/{path-DwWbhZFI.js → path-7gr7eZmp.js} +0 -0
  589. /package/dist/{perl-DaiORxHP.js → perl-CXy9EfRp.js} +0 -0
  590. /package/dist/{pig-DFzRhmsF.js → pig-DnXnrjQg.js} +0 -0
  591. /package/dist/{powershell-BG2LQNKN.js → powershell-BYE6u-Qk.js} +0 -0
  592. /package/dist/{properties-CqJJR5QY.js → properties-DlhyusaK.js} +0 -0
  593. /package/dist/{protobuf-WwDYV1yY.js → protobuf-DoMSrsPi.js} +0 -0
  594. /package/dist/{puppet-QNY3w_uN.js → puppet-DGi4idFA.js} +0 -0
  595. /package/dist/{python-4QrQ3Ugi.js → python-CYhALYh0.js} +0 -0
  596. /package/dist/{q-DhwXuxE2.js → q-Cs_qWJkU.js} +0 -0
  597. /package/dist/{r-Df-nkR25.js → r-DWJSQl1c.js} +0 -0
  598. /package/dist/{range-BOiA8qqU.js → range-Bieq5MNc.js} +0 -0
  599. /package/dist/{rpm-Cokue07s.js → rpm-DIip1m0n.js} +0 -0
  600. /package/dist/{ruby-DrYcL3qF.js → ruby-NgZGoa7Q.js} +0 -0
  601. /package/dist/{sas-CoiPirA5.js → sas-DEKzCzM2.js} +0 -0
  602. /package/dist/{scheme-CwFLjzHv.js → scheme-CBrGar2n.js} +0 -0
  603. /package/dist/{semaphore-C8rmHdhj.js → semaphore-P832H4YT.js} +0 -0
  604. /package/dist/{shell-BFV-R24I.js → shell-D7XFPOM_.js} +0 -0
  605. /package/dist/{sieve-CxwXF5T9.js → sieve-BOxOVQ18.js} +0 -0
  606. /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-D-FXBgPn.js} +0 -0
  607. /package/dist/{smalltalk-QivVOCtX.js → smalltalk-DYK-HkUK.js} +0 -0
  608. /package/dist/{solr-BLvysN-c.js → solr-RZ9uTl59.js} +0 -0
  609. /package/dist/{sparql-nKsFk8j7.js → sparql-CU1uk9Py.js} +0 -0
  610. /package/dist/{spreadsheet-BWc8C2FT.js → spreadsheet-BNNUNXA2.js} +0 -0
  611. /package/dist/{sql-CWfUjlV1.js → sql-B4x8IkwU.js} +0 -0
  612. /package/dist/{stex-DtMAhV4-.js → stex-DIvyJfNO.js} +0 -0
  613. /package/dist/{stylus-BLKQAycn.js → stylus-BokZhKWB.js} +0 -0
  614. /package/dist/{swift-CJoKqiKj.js → swift-TlA42tbT.js} +0 -0
  615. /package/dist/{tcl-YTeYFNUc.js → tcl-C-m7N_9k.js} +0 -0
  616. /package/dist/{textile-C6rKQqMQ.js → textile-BWOWG894.js} +0 -0
  617. /package/dist/{tiddlywiki-ZXwTHGNT.js → tiddlywiki-DI0mF2WJ.js} +0 -0
  618. /package/dist/{tiki-C628O_u4.js → tiki-2HU6XLLn.js} +0 -0
  619. /package/dist/{toml-DxlPGbRy.js → toml-GapOS-6U.js} +0 -0
  620. /package/dist/{treemap-DY3NBr79.js → treemap-CQJ0bIDy.js} +0 -0
  621. /package/dist/{troff-DFCfH7Ku.js → troff-ChPXSGgg.js} +0 -0
  622. /package/dist/{ttcn-DAW-ERVP.js → ttcn-CGf_ktUb.js} +0 -0
  623. /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-E0kw_vEm.js} +0 -0
  624. /package/dist/{turtle-BneV2f8L.js → turtle-DDIYttZr.js} +0 -0
  625. /package/dist/{vb-D973Vxxh.js → vb-DsGz8YA-.js} +0 -0
  626. /package/dist/{vbscript-Dckaq3YO.js → vbscript-BfQcpKZn.js} +0 -0
  627. /package/dist/{velocity-DKty-GUC.js → velocity-BMi53hPb.js} +0 -0
  628. /package/dist/{verilog-aNaK_biA.js → verilog-B_WDxmCB.js} +0 -0
  629. /package/dist/{vhdl-CQuehnQy.js → vhdl-C52-TT0z.js} +0 -0
  630. /package/dist/{webidl-Bhg8vaMr.js → webidl-Cnphjlul.js} +0 -0
  631. /package/dist/{xquery-D2q16GaM.js → xquery-X_kWyOft.js} +0 -0
  632. /package/dist/{yacas-DHGOHnNa.js → yacas-Dpp9zAZ5.js} +0 -0
  633. /package/dist/{z80-BPhTmO22.js → z80-BZLZAthF.js} +0 -0
@@ -1,2438 +0,0 @@
1
- import { t as purify } from "./purify.es-EnR5yhgI.js";
2
- import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-DV3ha_nA.js";
3
- let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
4
- let __tla = (async () => {
5
- var _a, _b, _c, _d, _e, _f, _g;
6
- let Channel, DEC2HEX;
7
- Channel = {
8
- min: {
9
- r: 0,
10
- g: 0,
11
- b: 0,
12
- s: 0,
13
- l: 0,
14
- a: 0
15
- },
16
- max: {
17
- r: 255,
18
- g: 255,
19
- b: 255,
20
- h: 360,
21
- s: 100,
22
- l: 100,
23
- a: 1
24
- },
25
- clamp: {
26
- r: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
27
- g: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
28
- b: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
29
- h: (u) => u % 360,
30
- s: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
31
- l: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
32
- a: (u) => u >= 1 ? 1 : u < 0 ? 0 : u
33
- },
34
- toLinear: (u) => {
35
- let z = u / 255;
36
- return u > 0.03928 ? ((z + 0.055) / 1.055) ** 2.4 : z / 12.92;
37
- },
38
- hue2rgb: (u, z, B) => (B < 0 && (B += 1), B > 1 && --B, B < 1 / 6 ? u + (z - u) * 6 * B : B < 1 / 2 ? z : B < 2 / 3 ? u + (z - u) * (2 / 3 - B) * 6 : u),
39
- hsl2rgb: ({ h: u, s: z, l: B }, V) => {
40
- if (!z) return B * 2.55;
41
- u /= 360, z /= 100, B /= 100;
42
- let H = B < 0.5 ? B * (1 + z) : B + z - B * z, W = 2 * B - H;
43
- switch (V) {
44
- case "r":
45
- return Channel.hue2rgb(W, H, u + 1 / 3) * 255;
46
- case "g":
47
- return Channel.hue2rgb(W, H, u) * 255;
48
- case "b":
49
- return Channel.hue2rgb(W, H, u - 1 / 3) * 255;
50
- }
51
- },
52
- rgb2hsl: ({ r: u, g: z, b: B }, V) => {
53
- u /= 255, z /= 255, B /= 255;
54
- let H = Math.max(u, z, B), U = Math.min(u, z, B), W = (H + U) / 2;
55
- if (V === "l") return W * 100;
56
- if (H === U) return 0;
57
- let G = H - U, K = W > 0.5 ? G / (2 - H - U) : G / (H + U);
58
- if (V === "s") return K * 100;
59
- switch (H) {
60
- case u:
61
- return ((z - B) / G + (z < B ? 6 : 0)) * 60;
62
- case z:
63
- return ((B - u) / G + 2) * 60;
64
- case B:
65
- return ((u - z) / G + 4) * 60;
66
- default:
67
- return -1;
68
- }
69
- }
70
- };
71
- utils_default = {
72
- channel: Channel,
73
- lang: {
74
- clamp: (u, z, B) => z > B ? Math.min(z, Math.max(B, u)) : Math.min(B, Math.max(z, u)),
75
- round: (u) => Math.round(u * 1e10) / 1e10
76
- },
77
- unit: {
78
- dec2hex: (u) => {
79
- let z = Math.round(u).toString(16);
80
- return z.length > 1 ? z : `0${z}`;
81
- }
82
- }
83
- };
84
- DEC2HEX = {};
85
- for (let u = 0; u <= 255; u++) DEC2HEX[u] = utils_default.unit.dec2hex(u);
86
- let TYPE, type_default, reusable_default, Hex, hex_default, HSL, hsl_default, Keyword, keyword_default, RGB, rgb_default, change_default, luminance_default, is_light_default, adjust_channel_default, adjust_default, mix_default, invert_default, anyCommentRegex, addDetector, assignWithDepth, oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorEven, mkBorder, Theme, getThemeVariables, Theme2, getThemeVariables2, Theme3, Theme4, getThemeVariables4, Theme5, config_schema_default, config, keyify, configKeys, sanitizeCss, siteConfig, configFromInitialize, directives, currentConfig, updateCurrentConfig, sanitize, ConfigWarning, issuedWarnings, issueWarning, checkConfig, getRows, setupDompurifyHooksIfNotSetup;
87
- TYPE = {
88
- ALL: 0,
89
- RGB: 1,
90
- HSL: 2
91
- };
92
- type_default = class {
93
- constructor() {
94
- this.type = TYPE.ALL;
95
- }
96
- get() {
97
- return this.type;
98
- }
99
- set(u) {
100
- if (this.type && this.type !== u) throw Error("Cannot change both RGB and HSL channels at the same time");
101
- this.type = u;
102
- }
103
- reset() {
104
- this.type = TYPE.ALL;
105
- }
106
- is(u) {
107
- return this.type === u;
108
- }
109
- };
110
- reusable_default = new class {
111
- constructor(u, z) {
112
- this.color = z, this.changed = false, this.data = u, this.type = new type_default();
113
- }
114
- set(u, z) {
115
- return this.color = z, this.changed = false, this.data = u, this.type.type = TYPE.ALL, this;
116
- }
117
- _ensureHSL() {
118
- let u = this.data, { h: z, s: B, l: V } = u;
119
- z === void 0 && (u.h = utils_default.channel.rgb2hsl(u, "h")), B === void 0 && (u.s = utils_default.channel.rgb2hsl(u, "s")), V === void 0 && (u.l = utils_default.channel.rgb2hsl(u, "l"));
120
- }
121
- _ensureRGB() {
122
- let u = this.data, { r: z, g: B, b: V } = u;
123
- z === void 0 && (u.r = utils_default.channel.hsl2rgb(u, "r")), B === void 0 && (u.g = utils_default.channel.hsl2rgb(u, "g")), V === void 0 && (u.b = utils_default.channel.hsl2rgb(u, "b"));
124
- }
125
- get r() {
126
- let u = this.data, z = u.r;
127
- return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "r"));
128
- }
129
- get g() {
130
- let u = this.data, z = u.g;
131
- return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "g"));
132
- }
133
- get b() {
134
- let u = this.data, z = u.b;
135
- return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "b"));
136
- }
137
- get h() {
138
- let u = this.data, z = u.h;
139
- return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "h"));
140
- }
141
- get s() {
142
- let u = this.data, z = u.s;
143
- return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "s"));
144
- }
145
- get l() {
146
- let u = this.data, z = u.l;
147
- return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "l"));
148
- }
149
- get a() {
150
- return this.data.a;
151
- }
152
- set r(u) {
153
- this.type.set(TYPE.RGB), this.changed = true, this.data.r = u;
154
- }
155
- set g(u) {
156
- this.type.set(TYPE.RGB), this.changed = true, this.data.g = u;
157
- }
158
- set b(u) {
159
- this.type.set(TYPE.RGB), this.changed = true, this.data.b = u;
160
- }
161
- set h(u) {
162
- this.type.set(TYPE.HSL), this.changed = true, this.data.h = u;
163
- }
164
- set s(u) {
165
- this.type.set(TYPE.HSL), this.changed = true, this.data.s = u;
166
- }
167
- set l(u) {
168
- this.type.set(TYPE.HSL), this.changed = true, this.data.l = u;
169
- }
170
- set a(u) {
171
- this.changed = true, this.data.a = u;
172
- }
173
- }({
174
- r: 0,
175
- g: 0,
176
- b: 0,
177
- a: 0
178
- }, "transparent");
179
- Hex = {
180
- re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
181
- parse: (u) => {
182
- if (u.charCodeAt(0) !== 35) return;
183
- let z = u.match(Hex.re);
184
- if (!z) return;
185
- let B = z[1], V = parseInt(B, 16), H = B.length, U = H % 4 == 0, W = H > 4, G = W ? 1 : 17, K = W ? 8 : 4, q = U ? 0 : -1, X = W ? 255 : 15;
186
- return reusable_default.set({
187
- r: (V >> K * (q + 3) & X) * G,
188
- g: (V >> K * (q + 2) & X) * G,
189
- b: (V >> K * (q + 1) & X) * G,
190
- a: U ? (V & X) * G / 255 : 1
191
- }, u);
192
- },
193
- stringify: (u) => {
194
- let { r: z, g: B, b: V, a: H } = u;
195
- return H < 1 ? `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}${DEC2HEX[Math.round(H * 255)]}` : `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}`;
196
- }
197
- };
198
- hex_default = Hex;
199
- HSL = {
200
- re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
201
- hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
202
- _hue2deg: (u) => {
203
- let z = u.match(HSL.hueRe);
204
- if (z) {
205
- let [, u2, B] = z;
206
- switch (B) {
207
- case "grad":
208
- return utils_default.channel.clamp.h(parseFloat(u2) * 0.9);
209
- case "rad":
210
- return utils_default.channel.clamp.h(parseFloat(u2) * 180 / Math.PI);
211
- case "turn":
212
- return utils_default.channel.clamp.h(parseFloat(u2) * 360);
213
- }
214
- }
215
- return utils_default.channel.clamp.h(parseFloat(u));
216
- },
217
- parse: (u) => {
218
- let z = u.charCodeAt(0);
219
- if (z !== 104 && z !== 72) return;
220
- let B = u.match(HSL.re);
221
- if (!B) return;
222
- let [, V, H, U, G, K] = B;
223
- return reusable_default.set({
224
- h: HSL._hue2deg(V),
225
- s: utils_default.channel.clamp.s(parseFloat(H)),
226
- l: utils_default.channel.clamp.l(parseFloat(U)),
227
- a: G ? utils_default.channel.clamp.a(K ? parseFloat(G) / 100 : parseFloat(G)) : 1
228
- }, u);
229
- },
230
- stringify: (u) => {
231
- let { h: z, s: B, l: V, a: H } = u;
232
- return H < 1 ? `hsla(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%, ${H})` : `hsl(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%)`;
233
- }
234
- };
235
- hsl_default = HSL;
236
- Keyword = {
237
- colors: {
238
- aliceblue: "#f0f8ff",
239
- antiquewhite: "#faebd7",
240
- aqua: "#00ffff",
241
- aquamarine: "#7fffd4",
242
- azure: "#f0ffff",
243
- beige: "#f5f5dc",
244
- bisque: "#ffe4c4",
245
- black: "#000000",
246
- blanchedalmond: "#ffebcd",
247
- blue: "#0000ff",
248
- blueviolet: "#8a2be2",
249
- brown: "#a52a2a",
250
- burlywood: "#deb887",
251
- cadetblue: "#5f9ea0",
252
- chartreuse: "#7fff00",
253
- chocolate: "#d2691e",
254
- coral: "#ff7f50",
255
- cornflowerblue: "#6495ed",
256
- cornsilk: "#fff8dc",
257
- crimson: "#dc143c",
258
- cyanaqua: "#00ffff",
259
- darkblue: "#00008b",
260
- darkcyan: "#008b8b",
261
- darkgoldenrod: "#b8860b",
262
- darkgray: "#a9a9a9",
263
- darkgreen: "#006400",
264
- darkgrey: "#a9a9a9",
265
- darkkhaki: "#bdb76b",
266
- darkmagenta: "#8b008b",
267
- darkolivegreen: "#556b2f",
268
- darkorange: "#ff8c00",
269
- darkorchid: "#9932cc",
270
- darkred: "#8b0000",
271
- darksalmon: "#e9967a",
272
- darkseagreen: "#8fbc8f",
273
- darkslateblue: "#483d8b",
274
- darkslategray: "#2f4f4f",
275
- darkslategrey: "#2f4f4f",
276
- darkturquoise: "#00ced1",
277
- darkviolet: "#9400d3",
278
- deeppink: "#ff1493",
279
- deepskyblue: "#00bfff",
280
- dimgray: "#696969",
281
- dimgrey: "#696969",
282
- dodgerblue: "#1e90ff",
283
- firebrick: "#b22222",
284
- floralwhite: "#fffaf0",
285
- forestgreen: "#228b22",
286
- fuchsia: "#ff00ff",
287
- gainsboro: "#dcdcdc",
288
- ghostwhite: "#f8f8ff",
289
- gold: "#ffd700",
290
- goldenrod: "#daa520",
291
- gray: "#808080",
292
- green: "#008000",
293
- greenyellow: "#adff2f",
294
- grey: "#808080",
295
- honeydew: "#f0fff0",
296
- hotpink: "#ff69b4",
297
- indianred: "#cd5c5c",
298
- indigo: "#4b0082",
299
- ivory: "#fffff0",
300
- khaki: "#f0e68c",
301
- lavender: "#e6e6fa",
302
- lavenderblush: "#fff0f5",
303
- lawngreen: "#7cfc00",
304
- lemonchiffon: "#fffacd",
305
- lightblue: "#add8e6",
306
- lightcoral: "#f08080",
307
- lightcyan: "#e0ffff",
308
- lightgoldenrodyellow: "#fafad2",
309
- lightgray: "#d3d3d3",
310
- lightgreen: "#90ee90",
311
- lightgrey: "#d3d3d3",
312
- lightpink: "#ffb6c1",
313
- lightsalmon: "#ffa07a",
314
- lightseagreen: "#20b2aa",
315
- lightskyblue: "#87cefa",
316
- lightslategray: "#778899",
317
- lightslategrey: "#778899",
318
- lightsteelblue: "#b0c4de",
319
- lightyellow: "#ffffe0",
320
- lime: "#00ff00",
321
- limegreen: "#32cd32",
322
- linen: "#faf0e6",
323
- magenta: "#ff00ff",
324
- maroon: "#800000",
325
- mediumaquamarine: "#66cdaa",
326
- mediumblue: "#0000cd",
327
- mediumorchid: "#ba55d3",
328
- mediumpurple: "#9370db",
329
- mediumseagreen: "#3cb371",
330
- mediumslateblue: "#7b68ee",
331
- mediumspringgreen: "#00fa9a",
332
- mediumturquoise: "#48d1cc",
333
- mediumvioletred: "#c71585",
334
- midnightblue: "#191970",
335
- mintcream: "#f5fffa",
336
- mistyrose: "#ffe4e1",
337
- moccasin: "#ffe4b5",
338
- navajowhite: "#ffdead",
339
- navy: "#000080",
340
- oldlace: "#fdf5e6",
341
- olive: "#808000",
342
- olivedrab: "#6b8e23",
343
- orange: "#ffa500",
344
- orangered: "#ff4500",
345
- orchid: "#da70d6",
346
- palegoldenrod: "#eee8aa",
347
- palegreen: "#98fb98",
348
- paleturquoise: "#afeeee",
349
- palevioletred: "#db7093",
350
- papayawhip: "#ffefd5",
351
- peachpuff: "#ffdab9",
352
- peru: "#cd853f",
353
- pink: "#ffc0cb",
354
- plum: "#dda0dd",
355
- powderblue: "#b0e0e6",
356
- purple: "#800080",
357
- rebeccapurple: "#663399",
358
- red: "#ff0000",
359
- rosybrown: "#bc8f8f",
360
- royalblue: "#4169e1",
361
- saddlebrown: "#8b4513",
362
- salmon: "#fa8072",
363
- sandybrown: "#f4a460",
364
- seagreen: "#2e8b57",
365
- seashell: "#fff5ee",
366
- sienna: "#a0522d",
367
- silver: "#c0c0c0",
368
- skyblue: "#87ceeb",
369
- slateblue: "#6a5acd",
370
- slategray: "#708090",
371
- slategrey: "#708090",
372
- snow: "#fffafa",
373
- springgreen: "#00ff7f",
374
- tan: "#d2b48c",
375
- teal: "#008080",
376
- thistle: "#d8bfd8",
377
- transparent: "#00000000",
378
- turquoise: "#40e0d0",
379
- violet: "#ee82ee",
380
- wheat: "#f5deb3",
381
- white: "#ffffff",
382
- whitesmoke: "#f5f5f5",
383
- yellow: "#ffff00",
384
- yellowgreen: "#9acd32"
385
- },
386
- parse: (u) => {
387
- u = u.toLowerCase();
388
- let z = Keyword.colors[u];
389
- if (z) return hex_default.parse(z);
390
- },
391
- stringify: (u) => {
392
- let z = hex_default.stringify(u);
393
- for (let u2 in Keyword.colors) if (Keyword.colors[u2] === z) return u2;
394
- }
395
- };
396
- keyword_default = Keyword;
397
- RGB = {
398
- re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
399
- parse: (u) => {
400
- let z = u.charCodeAt(0);
401
- if (z !== 114 && z !== 82) return;
402
- let B = u.match(RGB.re);
403
- if (!B) return;
404
- let [, V, H, U, G, K, q, Y, X] = B;
405
- return reusable_default.set({
406
- r: utils_default.channel.clamp.r(H ? parseFloat(V) * 2.55 : parseFloat(V)),
407
- g: utils_default.channel.clamp.g(G ? parseFloat(U) * 2.55 : parseFloat(U)),
408
- b: utils_default.channel.clamp.b(q ? parseFloat(K) * 2.55 : parseFloat(K)),
409
- a: Y ? utils_default.channel.clamp.a(X ? parseFloat(Y) / 100 : parseFloat(Y)) : 1
410
- }, u);
411
- },
412
- stringify: (u) => {
413
- let { r: z, g: B, b: V, a: H } = u;
414
- return H < 1 ? `rgba(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)}, ${utils_default.lang.round(H)})` : `rgb(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)})`;
415
- }
416
- };
417
- rgb_default = RGB;
418
- color_default = {
419
- format: {
420
- keyword: keyword_default,
421
- hex: hex_default,
422
- rgb: rgb_default,
423
- rgba: rgb_default,
424
- hsl: hsl_default,
425
- hsla: hsl_default
426
- },
427
- parse: (u) => {
428
- if (typeof u != "string") return u;
429
- let z = hex_default.parse(u) || rgb_default.parse(u) || hsl_default.parse(u) || keyword_default.parse(u);
430
- if (z) return z;
431
- throw Error(`Unsupported color format: "${u}"`);
432
- },
433
- stringify: (u) => !u.changed && u.color ? u.color : u.type.is(TYPE.HSL) || u.data.r === void 0 ? hsl_default.stringify(u) : u.a < 1 || !Number.isInteger(u.r) || !Number.isInteger(u.g) || !Number.isInteger(u.b) ? rgb_default.stringify(u) : hex_default.stringify(u)
434
- };
435
- change_default = (u, z) => {
436
- let B = color_default.parse(u);
437
- for (let u2 in z) B[u2] = utils_default.channel.clamp[u2](z[u2]);
438
- return color_default.stringify(B);
439
- };
440
- rgba_default = (u, z, B = 0, V = 1) => {
441
- if (typeof u != "number") return change_default(u, {
442
- a: z
443
- });
444
- let H = reusable_default.set({
445
- r: utils_default.channel.clamp.r(u),
446
- g: utils_default.channel.clamp.g(z),
447
- b: utils_default.channel.clamp.b(B),
448
- a: utils_default.channel.clamp.a(V)
449
- });
450
- return color_default.stringify(H);
451
- };
452
- luminance_default = (u) => {
453
- let { r: z, g: B, b: V } = color_default.parse(u), H = 0.2126 * utils_default.channel.toLinear(z) + 0.7152 * utils_default.channel.toLinear(B) + 0.0722 * utils_default.channel.toLinear(V);
454
- return utils_default.lang.round(H);
455
- };
456
- is_light_default = (u) => luminance_default(u) >= 0.5;
457
- is_dark_default = (u) => !is_light_default(u);
458
- adjust_channel_default = (u, z, B) => {
459
- let V = color_default.parse(u), H = V[z], U = utils_default.channel.clamp[z](H + B);
460
- return H !== U && (V[z] = U), color_default.stringify(V);
461
- };
462
- lighten_default = (u, z) => adjust_channel_default(u, "l", z);
463
- darken_default = (u, z) => adjust_channel_default(u, "l", -z);
464
- adjust_default = (u, z) => {
465
- let B = color_default.parse(u), V = {};
466
- for (let u2 in z) z[u2] && (V[u2] = B[u2] + z[u2]);
467
- return change_default(u, V);
468
- };
469
- mix_default = (u, z, B = 50) => {
470
- let { r: V, g: H, b: U, a: W } = color_default.parse(u), { r: G, g: K, b: q, a: J } = color_default.parse(z), Y = B / 100, X = Y * 2 - 1, Z = W - J, Q = ((X * Z === -1 ? X : (X + Z) / (1 + X * Z)) + 1) / 2, $ = 1 - Q;
471
- return rgba_default(V * Q + G * $, H * Q + K * $, U * Q + q * $, W * Y + J * (1 - Y));
472
- };
473
- invert_default = (u, z = 100) => {
474
- let B = color_default.parse(u);
475
- return B.r = 255 - B.r, B.g = 255 - B.g, B.b = 255 - B.b, mix_default(B, u, z);
476
- };
477
- frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;
478
- directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;
479
- anyCommentRegex = /\s*%%.*\n/gm;
480
- UnknownDiagramError = (_a = class extends Error {
481
- constructor(u) {
482
- super(u), this.name = "UnknownDiagramError";
483
- }
484
- }, __name(_a, "UnknownDiagramError"), _a);
485
- detectors = {};
486
- detectType = __name(function(u, z) {
487
- u = u.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
488
- for (let [B, { detector: V }] of Object.entries(detectors)) if (V(u, z)) return B;
489
- throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${u}`);
490
- }, "detectType");
491
- registerLazyLoadedDiagrams = __name((...u) => {
492
- for (let { id: z, detector: B, loader: V } of u) addDetector(z, B, V);
493
- }, "registerLazyLoadedDiagrams");
494
- addDetector = __name((u, z, V) => {
495
- detectors[u] && log.warn(`Detector with key ${u} already exists. Overwriting.`), detectors[u] = {
496
- detector: z,
497
- loader: V
498
- }, log.debug(`Detector with key ${u} added${V ? " with loader" : ""}`);
499
- }, "addDetector");
500
- getDiagramLoader = __name((u) => detectors[u].loader, "getDiagramLoader");
501
- assignWithDepth = __name((u, z, { depth: B = 2, clobber: V = false } = {}) => {
502
- let H = {
503
- depth: B,
504
- clobber: V
505
- };
506
- return Array.isArray(z) && !Array.isArray(u) ? (z.forEach((z2) => assignWithDepth(u, z2, H)), u) : Array.isArray(z) && Array.isArray(u) ? (z.forEach((z2) => {
507
- u.includes(z2) || u.push(z2);
508
- }), u) : u === void 0 || B <= 0 ? typeof u == "object" && u && typeof z == "object" ? Object.assign(u, z) : z : (z !== void 0 && typeof u == "object" && typeof z == "object" && Object.keys(z).forEach((H2) => {
509
- typeof z[H2] == "object" && (u[H2] === void 0 || typeof u[H2] == "object") ? (u[H2] === void 0 && (u[H2] = Array.isArray(z[H2]) ? [] : {}), u[H2] = assignWithDepth(u[H2], z[H2], {
510
- depth: B - 1,
511
- clobber: V
512
- })) : (V || typeof u[H2] != "object" && typeof z[H2] != "object") && (u[H2] = z[H2]);
513
- }), u);
514
- }, "assignWithDepth");
515
- assignWithDepth_default = assignWithDepth;
516
- oldAttributeBackgroundColorOdd = "#ffffff";
517
- oldAttributeBackgroundColorEven = "#f2f2f2";
518
- mkBorder = __name((u, z) => z ? adjust_default(u, {
519
- s: -40,
520
- l: 10
521
- }) : adjust_default(u, {
522
- s: -40,
523
- l: -10
524
- }), "mkBorder");
525
- Theme = (_b = class {
526
- constructor() {
527
- this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px";
528
- }
529
- updateColors() {
530
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
531
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, {
532
- h: -120
533
- }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
534
- h: 180,
535
- l: 5
536
- }), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 || adjust_default(this.primaryColor, {
537
- h: 30
538
- }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, {
539
- h: 60
540
- }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, {
541
- h: 90
542
- }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, {
543
- h: 120
544
- }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, {
545
- h: 150
546
- }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
547
- h: 210,
548
- l: 150
549
- }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, {
550
- h: 270
551
- }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, {
552
- h: 300
553
- }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
554
- h: 330
555
- }), this.darkMode) for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 75);
556
- else for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 25);
557
- for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleInv" + u2] = this["cScaleInv" + u2] || invert_default(this["cScale" + u2]);
558
- for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this.darkMode ? this["cScalePeer" + u2] = this["cScalePeer" + u2] || lighten_default(this["cScale" + u2], 10) : this["cScalePeer" + u2] = this["cScalePeer" + u2] || darken_default(this["cScale" + u2], 10);
559
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
560
- for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleLabel" + u2] = this["cScaleLabel" + u2] || this.scaleLabelColor;
561
- let u = this.darkMode ? -4 : -1;
562
- for (let z = 0; z < 5; z++) this["surface" + z] = this["surface" + z] || adjust_default(this.mainBkg, {
563
- h: 180,
564
- s: -15,
565
- l: u * (5 + z * 3)
566
- }), this["surfacePeer" + z] = this["surfacePeer" + z] || adjust_default(this.mainBkg, {
567
- h: 180,
568
- s: -15,
569
- l: u * (8 + z * 3)
570
- });
571
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, {
572
- h: 64
573
- }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, {
574
- h: 64
575
- }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, {
576
- h: -64
577
- }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, {
578
- h: -64
579
- }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, {
580
- h: 128
581
- }), this.fillType7 = this.fillType7 || adjust_default(this.secondaryColor, {
582
- h: 128
583
- }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, {
584
- l: -10
585
- }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, {
586
- l: -10
587
- }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
588
- l: -10
589
- }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
590
- h: 60,
591
- l: -10
592
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
593
- h: -60,
594
- l: -10
595
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
596
- h: 120,
597
- l: 0
598
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
599
- h: 60,
600
- l: -20
601
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
602
- h: -60,
603
- l: -20
604
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
605
- h: 120,
606
- l: -10
607
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.radar = {
608
- axisColor: ((_a2 = this.radar) == null ? void 0 : _a2.axisColor) || this.lineColor,
609
- axisStrokeWidth: ((_b2 = this.radar) == null ? void 0 : _b2.axisStrokeWidth) || 2,
610
- axisLabelFontSize: ((_c2 = this.radar) == null ? void 0 : _c2.axisLabelFontSize) || 12,
611
- curveOpacity: ((_d2 = this.radar) == null ? void 0 : _d2.curveOpacity) || 0.5,
612
- curveStrokeWidth: ((_e2 = this.radar) == null ? void 0 : _e2.curveStrokeWidth) || 2,
613
- graticuleColor: ((_f2 = this.radar) == null ? void 0 : _f2.graticuleColor) || "#DEDEDE",
614
- graticuleStrokeWidth: ((_g2 = this.radar) == null ? void 0 : _g2.graticuleStrokeWidth) || 1,
615
- graticuleOpacity: ((_h = this.radar) == null ? void 0 : _h.graticuleOpacity) || 0.3,
616
- legendBoxSize: ((_i = this.radar) == null ? void 0 : _i.legendBoxSize) || 12,
617
- legendFontSize: ((_j = this.radar) == null ? void 0 : _j.legendFontSize) || 12
618
- }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
619
- r: 5,
620
- g: 5,
621
- b: 5
622
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
623
- r: 10,
624
- g: 10,
625
- b: 10
626
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
627
- r: 15,
628
- g: 15,
629
- b: 15
630
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
631
- r: -5,
632
- g: -5,
633
- b: -5
634
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
635
- r: -10,
636
- g: -10,
637
- b: -10
638
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
639
- r: -15,
640
- g: -15,
641
- b: -15
642
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
643
- backgroundColor: ((_k = this.xyChart) == null ? void 0 : _k.backgroundColor) || this.background,
644
- titleColor: ((_l = this.xyChart) == null ? void 0 : _l.titleColor) || this.primaryTextColor,
645
- xAxisTitleColor: ((_m = this.xyChart) == null ? void 0 : _m.xAxisTitleColor) || this.primaryTextColor,
646
- xAxisLabelColor: ((_n = this.xyChart) == null ? void 0 : _n.xAxisLabelColor) || this.primaryTextColor,
647
- xAxisTickColor: ((_o = this.xyChart) == null ? void 0 : _o.xAxisTickColor) || this.primaryTextColor,
648
- xAxisLineColor: ((_p = this.xyChart) == null ? void 0 : _p.xAxisLineColor) || this.primaryTextColor,
649
- yAxisTitleColor: ((_q = this.xyChart) == null ? void 0 : _q.yAxisTitleColor) || this.primaryTextColor,
650
- yAxisLabelColor: ((_r = this.xyChart) == null ? void 0 : _r.yAxisLabelColor) || this.primaryTextColor,
651
- yAxisTickColor: ((_s = this.xyChart) == null ? void 0 : _s.yAxisTickColor) || this.primaryTextColor,
652
- yAxisLineColor: ((_t = this.xyChart) == null ? void 0 : _t.yAxisLineColor) || this.primaryTextColor,
653
- plotColorPalette: ((_u = this.xyChart) == null ? void 0 : _u.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
654
- }, 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 ? darken_default(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 || adjust_default(this.primaryColor, {
655
- h: -30
656
- }), this.git4 = this.git4 || adjust_default(this.primaryColor, {
657
- h: -60
658
- }), this.git5 = this.git5 || adjust_default(this.primaryColor, {
659
- h: -90
660
- }), this.git6 = this.git6 || adjust_default(this.primaryColor, {
661
- h: 60
662
- }), this.git7 = this.git7 || adjust_default(this.primaryColor, {
663
- h: 120
664
- }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
665
- }
666
- calculate(u) {
667
- if (typeof u != "object") {
668
- this.updateColors();
669
- return;
670
- }
671
- let z = Object.keys(u);
672
- z.forEach((z2) => {
673
- this[z2] = u[z2];
674
- }), this.updateColors(), z.forEach((z2) => {
675
- this[z2] = u[z2];
676
- });
677
- }
678
- }, __name(_b, "Theme"), _b);
679
- getThemeVariables = __name((u) => {
680
- let z = new Theme();
681
- return z.calculate(u), z;
682
- }, "getThemeVariables");
683
- Theme2 = (_c = class {
684
- constructor() {
685
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, {
686
- h: -160
687
- }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, 0.25), this.arrowheadColor = "calculated", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(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 || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
688
- }
689
- updateColors() {
690
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
691
- this.secondBkg = lighten_default(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 = lighten_default(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = lighten_default(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = this.darkTextColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
692
- h: 64
693
- }), this.fillType3 = adjust_default(this.secondaryColor, {
694
- h: 64
695
- }), this.fillType4 = adjust_default(this.primaryColor, {
696
- h: -64
697
- }), this.fillType5 = adjust_default(this.secondaryColor, {
698
- h: -64
699
- }), this.fillType6 = adjust_default(this.primaryColor, {
700
- h: 128
701
- }), this.fillType7 = adjust_default(this.secondaryColor, {
702
- h: 128
703
- }), 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 || adjust_default(this.primaryColor, {
704
- h: 30
705
- }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, {
706
- h: 60
707
- }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, {
708
- h: 90
709
- }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, {
710
- h: 120
711
- }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, {
712
- h: 150
713
- }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
714
- h: 210
715
- }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, {
716
- h: 270
717
- }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, {
718
- h: 300
719
- }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
720
- h: 330
721
- });
722
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
723
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10);
724
- for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
725
- h: 30,
726
- s: -30,
727
- l: -(-10 + u * 4)
728
- }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
729
- h: 30,
730
- s: -30,
731
- l: -(-7 + u * 4)
732
- });
733
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
734
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
735
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
736
- this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
737
- r: 5,
738
- g: 5,
739
- b: 5
740
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
741
- r: 10,
742
- g: 10,
743
- b: 10
744
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
745
- r: 15,
746
- g: 15,
747
- b: 15
748
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
749
- r: -5,
750
- g: -5,
751
- b: -5
752
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
753
- r: -10,
754
- g: -10,
755
- b: -10
756
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
757
- r: -15,
758
- g: -15,
759
- b: -15
760
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
761
- backgroundColor: ((_a2 = this.xyChart) == null ? void 0 : _a2.backgroundColor) || this.background,
762
- titleColor: ((_b2 = this.xyChart) == null ? void 0 : _b2.titleColor) || this.primaryTextColor,
763
- xAxisTitleColor: ((_c2 = this.xyChart) == null ? void 0 : _c2.xAxisTitleColor) || this.primaryTextColor,
764
- xAxisLabelColor: ((_d2 = this.xyChart) == null ? void 0 : _d2.xAxisLabelColor) || this.primaryTextColor,
765
- xAxisTickColor: ((_e2 = this.xyChart) == null ? void 0 : _e2.xAxisTickColor) || this.primaryTextColor,
766
- xAxisLineColor: ((_f2 = this.xyChart) == null ? void 0 : _f2.xAxisLineColor) || this.primaryTextColor,
767
- yAxisTitleColor: ((_g2 = this.xyChart) == null ? void 0 : _g2.yAxisTitleColor) || this.primaryTextColor,
768
- yAxisLabelColor: ((_h = this.xyChart) == null ? void 0 : _h.yAxisLabelColor) || this.primaryTextColor,
769
- yAxisTickColor: ((_i = this.xyChart) == null ? void 0 : _i.yAxisTickColor) || this.primaryTextColor,
770
- yAxisLineColor: ((_j = this.xyChart) == null ? void 0 : _j.yAxisLineColor) || this.primaryTextColor,
771
- plotColorPalette: ((_k = this.xyChart) == null ? void 0 : _k.plotColorPalette) || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
772
- }, this.packet = {
773
- startByteColor: this.primaryTextColor,
774
- endByteColor: this.primaryTextColor,
775
- labelColor: this.primaryTextColor,
776
- titleColor: this.primaryTextColor,
777
- blockStrokeColor: this.primaryTextColor,
778
- blockFillColor: this.background
779
- }, this.radar = {
780
- axisColor: ((_l = this.radar) == null ? void 0 : _l.axisColor) || this.lineColor,
781
- axisStrokeWidth: ((_m = this.radar) == null ? void 0 : _m.axisStrokeWidth) || 2,
782
- axisLabelFontSize: ((_n = this.radar) == null ? void 0 : _n.axisLabelFontSize) || 12,
783
- curveOpacity: ((_o = this.radar) == null ? void 0 : _o.curveOpacity) || 0.5,
784
- curveStrokeWidth: ((_p = this.radar) == null ? void 0 : _p.curveStrokeWidth) || 2,
785
- graticuleColor: ((_q = this.radar) == null ? void 0 : _q.graticuleColor) || "#DEDEDE",
786
- graticuleStrokeWidth: ((_r = this.radar) == null ? void 0 : _r.graticuleStrokeWidth) || 1,
787
- graticuleOpacity: ((_s = this.radar) == null ? void 0 : _s.graticuleOpacity) || 0.3,
788
- legendBoxSize: ((_t = this.radar) == null ? void 0 : _t.legendBoxSize) || 12,
789
- legendFontSize: ((_u = this.radar) == null ? void 0 : _u.legendFontSize) || 12
790
- }, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, {
791
- h: -30
792
- }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, {
793
- h: -60
794
- }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, {
795
- h: -90
796
- }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, {
797
- h: 60
798
- }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, {
799
- h: 120
800
- }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
801
- }
802
- calculate(u) {
803
- if (typeof u != "object") {
804
- this.updateColors();
805
- return;
806
- }
807
- let z = Object.keys(u);
808
- z.forEach((z2) => {
809
- this[z2] = u[z2];
810
- }), this.updateColors(), z.forEach((z2) => {
811
- this[z2] = u[z2];
812
- });
813
- }
814
- }, __name(_c, "Theme"), _c);
815
- getThemeVariables2 = __name((u) => {
816
- let z = new Theme2();
817
- return z.calculate(u), z;
818
- }, "getThemeVariables");
819
- Theme3 = (_d = class {
820
- constructor() {
821
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, {
822
- h: 120
823
- }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, {
824
- h: -160
825
- }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = rgba_default(102, 102, 255, 0.49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
826
- }
827
- updateColors() {
828
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
829
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, {
830
- h: 30
831
- }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, {
832
- h: 60
833
- }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, {
834
- h: 90
835
- }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, {
836
- h: 120
837
- }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, {
838
- h: 150
839
- }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
840
- h: 210
841
- }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, {
842
- h: 270
843
- }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, {
844
- h: 300
845
- }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
846
- h: 330
847
- }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
848
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
849
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
850
- h: 180
851
- });
852
- for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
853
- h: 30,
854
- l: -(5 + u * 5)
855
- }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
856
- h: 30,
857
- l: -(7 + u * 5)
858
- });
859
- if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
860
- this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
861
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.labelTextColor;
862
- }
863
- 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 = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, {
864
- h: 64
865
- }), this.fillType3 = adjust_default(this.secondaryColor, {
866
- h: 64
867
- }), this.fillType4 = adjust_default(this.primaryColor, {
868
- h: -64
869
- }), this.fillType5 = adjust_default(this.secondaryColor, {
870
- h: -64
871
- }), this.fillType6 = adjust_default(this.primaryColor, {
872
- h: 128
873
- }), this.fillType7 = adjust_default(this.secondaryColor, {
874
- h: 128
875
- }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, {
876
- l: -40
877
- }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, {
878
- l: -10
879
- }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, {
880
- l: -30
881
- }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
882
- l: -20
883
- }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
884
- h: 60,
885
- l: -20
886
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
887
- h: -60,
888
- l: -40
889
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
890
- h: 120,
891
- l: -40
892
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
893
- h: 60,
894
- l: -40
895
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
896
- h: -90,
897
- l: -40
898
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
899
- h: 120,
900
- l: -30
901
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
902
- r: 5,
903
- g: 5,
904
- b: 5
905
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
906
- r: 10,
907
- g: 10,
908
- b: 10
909
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
910
- r: 15,
911
- g: 15,
912
- b: 15
913
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
914
- r: -5,
915
- g: -5,
916
- b: -5
917
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
918
- r: -10,
919
- g: -10,
920
- b: -10
921
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
922
- r: -15,
923
- g: -15,
924
- b: -15
925
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
926
- axisColor: ((_a2 = this.radar) == null ? void 0 : _a2.axisColor) || this.lineColor,
927
- axisStrokeWidth: ((_b2 = this.radar) == null ? void 0 : _b2.axisStrokeWidth) || 2,
928
- axisLabelFontSize: ((_c2 = this.radar) == null ? void 0 : _c2.axisLabelFontSize) || 12,
929
- curveOpacity: ((_d2 = this.radar) == null ? void 0 : _d2.curveOpacity) || 0.5,
930
- curveStrokeWidth: ((_e2 = this.radar) == null ? void 0 : _e2.curveStrokeWidth) || 2,
931
- graticuleColor: ((_f2 = this.radar) == null ? void 0 : _f2.graticuleColor) || "#DEDEDE",
932
- graticuleStrokeWidth: ((_g2 = this.radar) == null ? void 0 : _g2.graticuleStrokeWidth) || 1,
933
- graticuleOpacity: ((_h = this.radar) == null ? void 0 : _h.graticuleOpacity) || 0.3,
934
- legendBoxSize: ((_i = this.radar) == null ? void 0 : _i.legendBoxSize) || 12,
935
- legendFontSize: ((_j = this.radar) == null ? void 0 : _j.legendFontSize) || 12
936
- }, this.xyChart = {
937
- backgroundColor: ((_k = this.xyChart) == null ? void 0 : _k.backgroundColor) || this.background,
938
- titleColor: ((_l = this.xyChart) == null ? void 0 : _l.titleColor) || this.primaryTextColor,
939
- xAxisTitleColor: ((_m = this.xyChart) == null ? void 0 : _m.xAxisTitleColor) || this.primaryTextColor,
940
- xAxisLabelColor: ((_n = this.xyChart) == null ? void 0 : _n.xAxisLabelColor) || this.primaryTextColor,
941
- xAxisTickColor: ((_o = this.xyChart) == null ? void 0 : _o.xAxisTickColor) || this.primaryTextColor,
942
- xAxisLineColor: ((_p = this.xyChart) == null ? void 0 : _p.xAxisLineColor) || this.primaryTextColor,
943
- yAxisTitleColor: ((_q = this.xyChart) == null ? void 0 : _q.yAxisTitleColor) || this.primaryTextColor,
944
- yAxisLabelColor: ((_r = this.xyChart) == null ? void 0 : _r.yAxisLabelColor) || this.primaryTextColor,
945
- yAxisTickColor: ((_s = this.xyChart) == null ? void 0 : _s.yAxisTickColor) || this.primaryTextColor,
946
- yAxisLineColor: ((_t = this.xyChart) == null ? void 0 : _t.yAxisLineColor) || this.primaryTextColor,
947
- plotColorPalette: ((_u = this.xyChart) == null ? void 0 : _u.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
948
- }, 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 || adjust_default(this.primaryColor, {
949
- h: -30
950
- }), this.git4 = this.git4 || adjust_default(this.primaryColor, {
951
- h: -60
952
- }), this.git5 = this.git5 || adjust_default(this.primaryColor, {
953
- h: -90
954
- }), this.git6 = this.git6 || adjust_default(this.primaryColor, {
955
- h: 60
956
- }), this.git7 = this.git7 || adjust_default(this.primaryColor, {
957
- h: 120
958
- }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
959
- }
960
- calculate(u) {
961
- if (Object.keys(this).forEach((u2) => {
962
- this[u2] === "calculated" && (this[u2] = void 0);
963
- }), typeof u != "object") {
964
- this.updateColors();
965
- return;
966
- }
967
- let z = Object.keys(u);
968
- z.forEach((z2) => {
969
- this[z2] = u[z2];
970
- }), this.updateColors(), z.forEach((z2) => {
971
- this[z2] = u[z2];
972
- });
973
- }
974
- }, __name(_d, "Theme"), _d);
975
- getThemeVariables3 = __name((u) => {
976
- let z = new Theme3();
977
- return z.calculate(u), z;
978
- }, "getThemeVariables");
979
- Theme4 = (_e = class {
980
- constructor() {
981
- 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 = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
982
- }
983
- updateColors() {
984
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
985
- this.actorBorder = darken_default(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, {
986
- h: 30
987
- }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, {
988
- h: 60
989
- }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, {
990
- h: 90
991
- }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, {
992
- h: 120
993
- }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, {
994
- h: 150
995
- }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
996
- h: 210
997
- }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, {
998
- h: 270
999
- }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, {
1000
- h: 300
1001
- }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
1002
- h: 330
1003
- }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1004
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
1005
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
1006
- h: 180
1007
- });
1008
- this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1009
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
1010
- for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1011
- h: 30,
1012
- s: -30,
1013
- l: -(5 + u * 5)
1014
- }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1015
- h: 30,
1016
- s: -30,
1017
- l: -(8 + u * 5)
1018
- });
1019
- 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 || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, {
1020
- h: 64
1021
- }), this.fillType3 = adjust_default(this.secondaryColor, {
1022
- h: 64
1023
- }), this.fillType4 = adjust_default(this.primaryColor, {
1024
- h: -64
1025
- }), this.fillType5 = adjust_default(this.secondaryColor, {
1026
- h: -64
1027
- }), this.fillType6 = adjust_default(this.primaryColor, {
1028
- h: 128
1029
- }), this.fillType7 = adjust_default(this.secondaryColor, {
1030
- h: 128
1031
- }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, {
1032
- l: -30
1033
- }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, {
1034
- l: -30
1035
- }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
1036
- h: 40,
1037
- l: -40
1038
- }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1039
- h: 60,
1040
- l: -10
1041
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1042
- h: -60,
1043
- l: -10
1044
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1045
- h: 120,
1046
- l: 0
1047
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1048
- h: 60,
1049
- l: -50
1050
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1051
- h: -60,
1052
- l: -50
1053
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1054
- h: 120,
1055
- l: -50
1056
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1057
- r: 5,
1058
- g: 5,
1059
- b: 5
1060
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1061
- r: 10,
1062
- g: 10,
1063
- b: 10
1064
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1065
- r: 15,
1066
- g: 15,
1067
- b: 15
1068
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1069
- r: -5,
1070
- g: -5,
1071
- b: -5
1072
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1073
- r: -10,
1074
- g: -10,
1075
- b: -10
1076
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1077
- r: -15,
1078
- g: -15,
1079
- b: -15
1080
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
1081
- startByteColor: this.primaryTextColor,
1082
- endByteColor: this.primaryTextColor,
1083
- labelColor: this.primaryTextColor,
1084
- titleColor: this.primaryTextColor,
1085
- blockStrokeColor: this.primaryTextColor,
1086
- blockFillColor: this.mainBkg
1087
- }, this.radar = {
1088
- axisColor: ((_a2 = this.radar) == null ? void 0 : _a2.axisColor) || this.lineColor,
1089
- axisStrokeWidth: ((_b2 = this.radar) == null ? void 0 : _b2.axisStrokeWidth) || 2,
1090
- axisLabelFontSize: ((_c2 = this.radar) == null ? void 0 : _c2.axisLabelFontSize) || 12,
1091
- curveOpacity: ((_d2 = this.radar) == null ? void 0 : _d2.curveOpacity) || 0.5,
1092
- curveStrokeWidth: ((_e2 = this.radar) == null ? void 0 : _e2.curveStrokeWidth) || 2,
1093
- graticuleColor: ((_f2 = this.radar) == null ? void 0 : _f2.graticuleColor) || "#DEDEDE",
1094
- graticuleStrokeWidth: ((_g2 = this.radar) == null ? void 0 : _g2.graticuleStrokeWidth) || 1,
1095
- graticuleOpacity: ((_h = this.radar) == null ? void 0 : _h.graticuleOpacity) || 0.3,
1096
- legendBoxSize: ((_i = this.radar) == null ? void 0 : _i.legendBoxSize) || 12,
1097
- legendFontSize: ((_j = this.radar) == null ? void 0 : _j.legendFontSize) || 12
1098
- }, this.xyChart = {
1099
- backgroundColor: ((_k = this.xyChart) == null ? void 0 : _k.backgroundColor) || this.background,
1100
- titleColor: ((_l = this.xyChart) == null ? void 0 : _l.titleColor) || this.primaryTextColor,
1101
- xAxisTitleColor: ((_m = this.xyChart) == null ? void 0 : _m.xAxisTitleColor) || this.primaryTextColor,
1102
- xAxisLabelColor: ((_n = this.xyChart) == null ? void 0 : _n.xAxisLabelColor) || this.primaryTextColor,
1103
- xAxisTickColor: ((_o = this.xyChart) == null ? void 0 : _o.xAxisTickColor) || this.primaryTextColor,
1104
- xAxisLineColor: ((_p = this.xyChart) == null ? void 0 : _p.xAxisLineColor) || this.primaryTextColor,
1105
- yAxisTitleColor: ((_q = this.xyChart) == null ? void 0 : _q.yAxisTitleColor) || this.primaryTextColor,
1106
- yAxisLabelColor: ((_r = this.xyChart) == null ? void 0 : _r.yAxisLabelColor) || this.primaryTextColor,
1107
- yAxisTickColor: ((_s = this.xyChart) == null ? void 0 : _s.yAxisTickColor) || this.primaryTextColor,
1108
- yAxisLineColor: ((_t = this.xyChart) == null ? void 0 : _t.yAxisLineColor) || this.primaryTextColor,
1109
- plotColorPalette: ((_u = this.xyChart) == null ? void 0 : _u.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1110
- }, 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 || adjust_default(this.primaryColor, {
1111
- h: -30
1112
- }), this.git4 = this.git4 || adjust_default(this.primaryColor, {
1113
- h: -60
1114
- }), this.git5 = this.git5 || adjust_default(this.primaryColor, {
1115
- h: -90
1116
- }), this.git6 = this.git6 || adjust_default(this.primaryColor, {
1117
- h: 60
1118
- }), this.git7 = this.git7 || adjust_default(this.primaryColor, {
1119
- h: 120
1120
- }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1121
- }
1122
- calculate(u) {
1123
- if (typeof u != "object") {
1124
- this.updateColors();
1125
- return;
1126
- }
1127
- let z = Object.keys(u);
1128
- z.forEach((z2) => {
1129
- this[z2] = u[z2];
1130
- }), this.updateColors(), z.forEach((z2) => {
1131
- this[z2] = u[z2];
1132
- });
1133
- }
1134
- }, __name(_e, "Theme"), _e);
1135
- getThemeVariables4 = __name((u) => {
1136
- let z = new Theme4();
1137
- return z.calculate(u), z;
1138
- }, "getThemeVariables");
1139
- Theme5 = (_f = class {
1140
- constructor() {
1141
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, {
1142
- h: -160
1143
- }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1144
- }
1145
- updateColors() {
1146
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
1147
- this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1148
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
1149
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this.darkMode ? this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10) : this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 10);
1150
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1151
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
1152
- for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1153
- l: -(5 + u * 5)
1154
- }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1155
- l: -(8 + u * 5)
1156
- });
1157
- 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 = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(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 = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(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 = adjust_default(this.primaryColor, {
1158
- h: 64
1159
- }), this.fillType3 = adjust_default(this.secondaryColor, {
1160
- h: 64
1161
- }), this.fillType4 = adjust_default(this.primaryColor, {
1162
- h: -64
1163
- }), this.fillType5 = adjust_default(this.secondaryColor, {
1164
- h: -64
1165
- }), this.fillType6 = adjust_default(this.primaryColor, {
1166
- h: 128
1167
- }), this.fillType7 = adjust_default(this.secondaryColor, {
1168
- h: 128
1169
- });
1170
- for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
1171
- this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1172
- r: 5,
1173
- g: 5,
1174
- b: 5
1175
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1176
- r: 10,
1177
- g: 10,
1178
- b: 10
1179
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1180
- r: 15,
1181
- g: 15,
1182
- b: 15
1183
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1184
- r: -5,
1185
- g: -5,
1186
- b: -5
1187
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1188
- r: -10,
1189
- g: -10,
1190
- b: -10
1191
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1192
- r: -15,
1193
- g: -15,
1194
- b: -15
1195
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1196
- backgroundColor: ((_a2 = this.xyChart) == null ? void 0 : _a2.backgroundColor) || this.background,
1197
- titleColor: ((_b2 = this.xyChart) == null ? void 0 : _b2.titleColor) || this.primaryTextColor,
1198
- xAxisTitleColor: ((_c2 = this.xyChart) == null ? void 0 : _c2.xAxisTitleColor) || this.primaryTextColor,
1199
- xAxisLabelColor: ((_d2 = this.xyChart) == null ? void 0 : _d2.xAxisLabelColor) || this.primaryTextColor,
1200
- xAxisTickColor: ((_e2 = this.xyChart) == null ? void 0 : _e2.xAxisTickColor) || this.primaryTextColor,
1201
- xAxisLineColor: ((_f2 = this.xyChart) == null ? void 0 : _f2.xAxisLineColor) || this.primaryTextColor,
1202
- yAxisTitleColor: ((_g2 = this.xyChart) == null ? void 0 : _g2.yAxisTitleColor) || this.primaryTextColor,
1203
- yAxisLabelColor: ((_h = this.xyChart) == null ? void 0 : _h.yAxisLabelColor) || this.primaryTextColor,
1204
- yAxisTickColor: ((_i = this.xyChart) == null ? void 0 : _i.yAxisTickColor) || this.primaryTextColor,
1205
- yAxisLineColor: ((_j = this.xyChart) == null ? void 0 : _j.yAxisLineColor) || this.primaryTextColor,
1206
- plotColorPalette: ((_k = this.xyChart) == null ? void 0 : _k.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1207
- }, this.radar = {
1208
- axisColor: ((_l = this.radar) == null ? void 0 : _l.axisColor) || this.lineColor,
1209
- axisStrokeWidth: ((_m = this.radar) == null ? void 0 : _m.axisStrokeWidth) || 2,
1210
- axisLabelFontSize: ((_n = this.radar) == null ? void 0 : _n.axisLabelFontSize) || 12,
1211
- curveOpacity: ((_o = this.radar) == null ? void 0 : _o.curveOpacity) || 0.5,
1212
- curveStrokeWidth: ((_p = this.radar) == null ? void 0 : _p.curveStrokeWidth) || 2,
1213
- graticuleColor: ((_q = this.radar) == null ? void 0 : _q.graticuleColor) || "#DEDEDE",
1214
- graticuleStrokeWidth: ((_r = this.radar) == null ? void 0 : _r.graticuleStrokeWidth) || 1,
1215
- graticuleOpacity: ((_s = this.radar) == null ? void 0 : _s.graticuleOpacity) || 0.3,
1216
- legendBoxSize: ((_t = this.radar) == null ? void 0 : _t.legendBoxSize) || 12,
1217
- legendFontSize: ((_u = this.radar) == null ? void 0 : _u.legendFontSize) || 12
1218
- }, 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 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, {
1219
- h: -30
1220
- }), this.git4 = this.pie5 || adjust_default(this.primaryColor, {
1221
- h: -60
1222
- }), this.git5 = this.pie6 || adjust_default(this.primaryColor, {
1223
- h: -90
1224
- }), this.git6 = this.pie7 || adjust_default(this.primaryColor, {
1225
- h: 60
1226
- }), this.git7 = this.pie8 || adjust_default(this.primaryColor, {
1227
- h: 120
1228
- }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1229
- }
1230
- calculate(u) {
1231
- if (typeof u != "object") {
1232
- this.updateColors();
1233
- return;
1234
- }
1235
- let z = Object.keys(u);
1236
- z.forEach((z2) => {
1237
- this[z2] = u[z2];
1238
- }), this.updateColors(), z.forEach((z2) => {
1239
- this[z2] = u[z2];
1240
- });
1241
- }
1242
- }, __name(_f, "Theme"), _f);
1243
- themes_default = {
1244
- base: {
1245
- getThemeVariables
1246
- },
1247
- dark: {
1248
- getThemeVariables: getThemeVariables2
1249
- },
1250
- default: {
1251
- getThemeVariables: getThemeVariables3
1252
- },
1253
- forest: {
1254
- getThemeVariables: getThemeVariables4
1255
- },
1256
- neutral: {
1257
- getThemeVariables: __name((u) => {
1258
- let z = new Theme5();
1259
- return z.calculate(u), z;
1260
- }, "getThemeVariables")
1261
- }
1262
- };
1263
- config_schema_default = {
1264
- flowchart: {
1265
- useMaxWidth: true,
1266
- titleTopMargin: 25,
1267
- subGraphTitleMargin: {
1268
- top: 0,
1269
- bottom: 0
1270
- },
1271
- diagramPadding: 8,
1272
- htmlLabels: true,
1273
- nodeSpacing: 50,
1274
- rankSpacing: 50,
1275
- curve: "basis",
1276
- padding: 15,
1277
- defaultRenderer: "dagre-wrapper",
1278
- wrappingWidth: 200,
1279
- inheritDir: false
1280
- },
1281
- sequence: {
1282
- useMaxWidth: true,
1283
- hideUnusedParticipants: false,
1284
- activationWidth: 10,
1285
- diagramMarginX: 50,
1286
- diagramMarginY: 10,
1287
- actorMargin: 50,
1288
- width: 150,
1289
- height: 65,
1290
- boxMargin: 10,
1291
- boxTextMargin: 5,
1292
- noteMargin: 10,
1293
- messageMargin: 35,
1294
- messageAlign: "center",
1295
- mirrorActors: true,
1296
- forceMenus: false,
1297
- bottomMarginAdj: 1,
1298
- rightAngles: false,
1299
- showSequenceNumbers: false,
1300
- actorFontSize: 14,
1301
- actorFontFamily: '"Open Sans", sans-serif',
1302
- actorFontWeight: 400,
1303
- noteFontSize: 14,
1304
- noteFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
1305
- noteFontWeight: 400,
1306
- noteAlign: "center",
1307
- messageFontSize: 16,
1308
- messageFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
1309
- messageFontWeight: 400,
1310
- wrap: false,
1311
- wrapPadding: 10,
1312
- labelBoxWidth: 50,
1313
- labelBoxHeight: 20
1314
- },
1315
- gantt: {
1316
- useMaxWidth: true,
1317
- titleTopMargin: 25,
1318
- barHeight: 20,
1319
- barGap: 4,
1320
- topPadding: 50,
1321
- rightPadding: 75,
1322
- leftPadding: 75,
1323
- gridLineStartPadding: 35,
1324
- fontSize: 11,
1325
- sectionFontSize: 11,
1326
- numberSectionStyles: 4,
1327
- axisFormat: "%Y-%m-%d",
1328
- topAxis: false,
1329
- displayMode: "",
1330
- weekday: "sunday"
1331
- },
1332
- journey: {
1333
- useMaxWidth: true,
1334
- diagramMarginX: 50,
1335
- diagramMarginY: 10,
1336
- leftMargin: 150,
1337
- maxLabelWidth: 360,
1338
- width: 150,
1339
- height: 50,
1340
- boxMargin: 10,
1341
- boxTextMargin: 5,
1342
- noteMargin: 10,
1343
- messageMargin: 35,
1344
- messageAlign: "center",
1345
- bottomMarginAdj: 1,
1346
- rightAngles: false,
1347
- taskFontSize: 14,
1348
- taskFontFamily: '"Open Sans", sans-serif',
1349
- taskMargin: 50,
1350
- activationWidth: 10,
1351
- textPlacement: "fo",
1352
- actorColours: [
1353
- "#8FBC8F",
1354
- "#7CFC00",
1355
- "#00FFFF",
1356
- "#20B2AA",
1357
- "#B0E0E6",
1358
- "#FFFFE0"
1359
- ],
1360
- sectionFills: [
1361
- "#191970",
1362
- "#8B008B",
1363
- "#4B0082",
1364
- "#2F4F4F",
1365
- "#800000",
1366
- "#8B4513",
1367
- "#00008B"
1368
- ],
1369
- sectionColours: [
1370
- "#fff"
1371
- ],
1372
- titleColor: "",
1373
- titleFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
1374
- titleFontSize: "4ex"
1375
- },
1376
- class: {
1377
- useMaxWidth: true,
1378
- titleTopMargin: 25,
1379
- arrowMarkerAbsolute: false,
1380
- dividerMargin: 10,
1381
- padding: 5,
1382
- textHeight: 10,
1383
- defaultRenderer: "dagre-wrapper",
1384
- htmlLabels: false,
1385
- hideEmptyMembersBox: false
1386
- },
1387
- state: {
1388
- useMaxWidth: true,
1389
- titleTopMargin: 25,
1390
- dividerMargin: 10,
1391
- sizeUnit: 5,
1392
- padding: 8,
1393
- textHeight: 10,
1394
- titleShift: -15,
1395
- noteMargin: 10,
1396
- forkWidth: 70,
1397
- forkHeight: 7,
1398
- miniPadding: 2,
1399
- fontSizeFactor: 5.02,
1400
- fontSize: 24,
1401
- labelHeight: 16,
1402
- edgeLengthFactor: "20",
1403
- compositTitleSize: 35,
1404
- radius: 5,
1405
- defaultRenderer: "dagre-wrapper"
1406
- },
1407
- er: {
1408
- useMaxWidth: true,
1409
- titleTopMargin: 25,
1410
- diagramPadding: 20,
1411
- layoutDirection: "TB",
1412
- minEntityWidth: 100,
1413
- minEntityHeight: 75,
1414
- entityPadding: 15,
1415
- nodeSpacing: 140,
1416
- rankSpacing: 80,
1417
- stroke: "gray",
1418
- fill: "honeydew",
1419
- fontSize: 12
1420
- },
1421
- pie: {
1422
- useMaxWidth: true,
1423
- textPosition: 0.75
1424
- },
1425
- quadrantChart: {
1426
- useMaxWidth: true,
1427
- chartWidth: 500,
1428
- chartHeight: 500,
1429
- titleFontSize: 20,
1430
- titlePadding: 10,
1431
- quadrantPadding: 5,
1432
- xAxisLabelPadding: 5,
1433
- yAxisLabelPadding: 5,
1434
- xAxisLabelFontSize: 16,
1435
- yAxisLabelFontSize: 16,
1436
- quadrantLabelFontSize: 16,
1437
- quadrantTextTopPadding: 5,
1438
- pointTextPadding: 5,
1439
- pointLabelFontSize: 12,
1440
- pointRadius: 5,
1441
- xAxisPosition: "top",
1442
- yAxisPosition: "left",
1443
- quadrantInternalBorderStrokeWidth: 1,
1444
- quadrantExternalBorderStrokeWidth: 2
1445
- },
1446
- xyChart: {
1447
- useMaxWidth: true,
1448
- width: 700,
1449
- height: 500,
1450
- titleFontSize: 20,
1451
- titlePadding: 10,
1452
- showDataLabel: false,
1453
- showTitle: true,
1454
- xAxis: {
1455
- $ref: "#/$defs/XYChartAxisConfig",
1456
- showLabel: true,
1457
- labelFontSize: 14,
1458
- labelPadding: 5,
1459
- showTitle: true,
1460
- titleFontSize: 16,
1461
- titlePadding: 5,
1462
- showTick: true,
1463
- tickLength: 5,
1464
- tickWidth: 2,
1465
- showAxisLine: true,
1466
- axisLineWidth: 2
1467
- },
1468
- yAxis: {
1469
- $ref: "#/$defs/XYChartAxisConfig",
1470
- showLabel: true,
1471
- labelFontSize: 14,
1472
- labelPadding: 5,
1473
- showTitle: true,
1474
- titleFontSize: 16,
1475
- titlePadding: 5,
1476
- showTick: true,
1477
- tickLength: 5,
1478
- tickWidth: 2,
1479
- showAxisLine: true,
1480
- axisLineWidth: 2
1481
- },
1482
- chartOrientation: "vertical",
1483
- plotReservedSpacePercent: 50
1484
- },
1485
- requirement: {
1486
- useMaxWidth: true,
1487
- rect_fill: "#f9f9f9",
1488
- text_color: "#333",
1489
- rect_border_size: "0.5px",
1490
- rect_border_color: "#bbb",
1491
- rect_min_width: 200,
1492
- rect_min_height: 200,
1493
- fontSize: 14,
1494
- rect_padding: 10,
1495
- line_height: 20
1496
- },
1497
- mindmap: {
1498
- useMaxWidth: true,
1499
- padding: 10,
1500
- maxNodeWidth: 200,
1501
- layoutAlgorithm: "cose-bilkent"
1502
- },
1503
- kanban: {
1504
- useMaxWidth: true,
1505
- padding: 8,
1506
- sectionWidth: 200,
1507
- ticketBaseUrl: ""
1508
- },
1509
- timeline: {
1510
- useMaxWidth: true,
1511
- diagramMarginX: 50,
1512
- diagramMarginY: 10,
1513
- leftMargin: 150,
1514
- width: 150,
1515
- height: 50,
1516
- boxMargin: 10,
1517
- boxTextMargin: 5,
1518
- noteMargin: 10,
1519
- messageMargin: 35,
1520
- messageAlign: "center",
1521
- bottomMarginAdj: 1,
1522
- rightAngles: false,
1523
- taskFontSize: 14,
1524
- taskFontFamily: '"Open Sans", sans-serif',
1525
- taskMargin: 50,
1526
- activationWidth: 10,
1527
- textPlacement: "fo",
1528
- actorColours: [
1529
- "#8FBC8F",
1530
- "#7CFC00",
1531
- "#00FFFF",
1532
- "#20B2AA",
1533
- "#B0E0E6",
1534
- "#FFFFE0"
1535
- ],
1536
- sectionFills: [
1537
- "#191970",
1538
- "#8B008B",
1539
- "#4B0082",
1540
- "#2F4F4F",
1541
- "#800000",
1542
- "#8B4513",
1543
- "#00008B"
1544
- ],
1545
- sectionColours: [
1546
- "#fff"
1547
- ],
1548
- disableMulticolor: false
1549
- },
1550
- gitGraph: {
1551
- useMaxWidth: true,
1552
- titleTopMargin: 25,
1553
- diagramPadding: 8,
1554
- nodeLabel: {
1555
- width: 75,
1556
- height: 100,
1557
- x: -25,
1558
- y: 0
1559
- },
1560
- mainBranchName: "main",
1561
- mainBranchOrder: 0,
1562
- showCommitLabel: true,
1563
- showBranches: true,
1564
- rotateCommitLabel: true,
1565
- parallelCommits: false,
1566
- arrowMarkerAbsolute: false
1567
- },
1568
- c4: {
1569
- useMaxWidth: true,
1570
- diagramMarginX: 50,
1571
- diagramMarginY: 10,
1572
- c4ShapeMargin: 50,
1573
- c4ShapePadding: 20,
1574
- width: 216,
1575
- height: 60,
1576
- boxMargin: 10,
1577
- c4ShapeInRow: 4,
1578
- nextLinePaddingX: 0,
1579
- c4BoundaryInRow: 2,
1580
- personFontSize: 14,
1581
- personFontFamily: '"Open Sans", sans-serif',
1582
- personFontWeight: "normal",
1583
- external_personFontSize: 14,
1584
- external_personFontFamily: '"Open Sans", sans-serif',
1585
- external_personFontWeight: "normal",
1586
- systemFontSize: 14,
1587
- systemFontFamily: '"Open Sans", sans-serif',
1588
- systemFontWeight: "normal",
1589
- external_systemFontSize: 14,
1590
- external_systemFontFamily: '"Open Sans", sans-serif',
1591
- external_systemFontWeight: "normal",
1592
- system_dbFontSize: 14,
1593
- system_dbFontFamily: '"Open Sans", sans-serif',
1594
- system_dbFontWeight: "normal",
1595
- external_system_dbFontSize: 14,
1596
- external_system_dbFontFamily: '"Open Sans", sans-serif',
1597
- external_system_dbFontWeight: "normal",
1598
- system_queueFontSize: 14,
1599
- system_queueFontFamily: '"Open Sans", sans-serif',
1600
- system_queueFontWeight: "normal",
1601
- external_system_queueFontSize: 14,
1602
- external_system_queueFontFamily: '"Open Sans", sans-serif',
1603
- external_system_queueFontWeight: "normal",
1604
- boundaryFontSize: 14,
1605
- boundaryFontFamily: '"Open Sans", sans-serif',
1606
- boundaryFontWeight: "normal",
1607
- messageFontSize: 12,
1608
- messageFontFamily: '"Open Sans", sans-serif',
1609
- messageFontWeight: "normal",
1610
- containerFontSize: 14,
1611
- containerFontFamily: '"Open Sans", sans-serif',
1612
- containerFontWeight: "normal",
1613
- external_containerFontSize: 14,
1614
- external_containerFontFamily: '"Open Sans", sans-serif',
1615
- external_containerFontWeight: "normal",
1616
- container_dbFontSize: 14,
1617
- container_dbFontFamily: '"Open Sans", sans-serif',
1618
- container_dbFontWeight: "normal",
1619
- external_container_dbFontSize: 14,
1620
- external_container_dbFontFamily: '"Open Sans", sans-serif',
1621
- external_container_dbFontWeight: "normal",
1622
- container_queueFontSize: 14,
1623
- container_queueFontFamily: '"Open Sans", sans-serif',
1624
- container_queueFontWeight: "normal",
1625
- external_container_queueFontSize: 14,
1626
- external_container_queueFontFamily: '"Open Sans", sans-serif',
1627
- external_container_queueFontWeight: "normal",
1628
- componentFontSize: 14,
1629
- componentFontFamily: '"Open Sans", sans-serif',
1630
- componentFontWeight: "normal",
1631
- external_componentFontSize: 14,
1632
- external_componentFontFamily: '"Open Sans", sans-serif',
1633
- external_componentFontWeight: "normal",
1634
- component_dbFontSize: 14,
1635
- component_dbFontFamily: '"Open Sans", sans-serif',
1636
- component_dbFontWeight: "normal",
1637
- external_component_dbFontSize: 14,
1638
- external_component_dbFontFamily: '"Open Sans", sans-serif',
1639
- external_component_dbFontWeight: "normal",
1640
- component_queueFontSize: 14,
1641
- component_queueFontFamily: '"Open Sans", sans-serif',
1642
- component_queueFontWeight: "normal",
1643
- external_component_queueFontSize: 14,
1644
- external_component_queueFontFamily: '"Open Sans", sans-serif',
1645
- external_component_queueFontWeight: "normal",
1646
- wrap: true,
1647
- wrapPadding: 10,
1648
- person_bg_color: "#08427B",
1649
- person_border_color: "#073B6F",
1650
- external_person_bg_color: "#686868",
1651
- external_person_border_color: "#8A8A8A",
1652
- system_bg_color: "#1168BD",
1653
- system_border_color: "#3C7FC0",
1654
- system_db_bg_color: "#1168BD",
1655
- system_db_border_color: "#3C7FC0",
1656
- system_queue_bg_color: "#1168BD",
1657
- system_queue_border_color: "#3C7FC0",
1658
- external_system_bg_color: "#999999",
1659
- external_system_border_color: "#8A8A8A",
1660
- external_system_db_bg_color: "#999999",
1661
- external_system_db_border_color: "#8A8A8A",
1662
- external_system_queue_bg_color: "#999999",
1663
- external_system_queue_border_color: "#8A8A8A",
1664
- container_bg_color: "#438DD5",
1665
- container_border_color: "#3C7FC0",
1666
- container_db_bg_color: "#438DD5",
1667
- container_db_border_color: "#3C7FC0",
1668
- container_queue_bg_color: "#438DD5",
1669
- container_queue_border_color: "#3C7FC0",
1670
- external_container_bg_color: "#B3B3B3",
1671
- external_container_border_color: "#A6A6A6",
1672
- external_container_db_bg_color: "#B3B3B3",
1673
- external_container_db_border_color: "#A6A6A6",
1674
- external_container_queue_bg_color: "#B3B3B3",
1675
- external_container_queue_border_color: "#A6A6A6",
1676
- component_bg_color: "#85BBF0",
1677
- component_border_color: "#78A8D8",
1678
- component_db_bg_color: "#85BBF0",
1679
- component_db_border_color: "#78A8D8",
1680
- component_queue_bg_color: "#85BBF0",
1681
- component_queue_border_color: "#78A8D8",
1682
- external_component_bg_color: "#CCCCCC",
1683
- external_component_border_color: "#BFBFBF",
1684
- external_component_db_bg_color: "#CCCCCC",
1685
- external_component_db_border_color: "#BFBFBF",
1686
- external_component_queue_bg_color: "#CCCCCC",
1687
- external_component_queue_border_color: "#BFBFBF"
1688
- },
1689
- sankey: {
1690
- useMaxWidth: true,
1691
- width: 600,
1692
- height: 400,
1693
- linkColor: "gradient",
1694
- nodeAlignment: "justify",
1695
- showValues: true,
1696
- prefix: "",
1697
- suffix: ""
1698
- },
1699
- block: {
1700
- useMaxWidth: true,
1701
- padding: 8
1702
- },
1703
- packet: {
1704
- useMaxWidth: true,
1705
- rowHeight: 32,
1706
- bitWidth: 32,
1707
- bitsPerRow: 32,
1708
- showBits: true,
1709
- paddingX: 5,
1710
- paddingY: 5
1711
- },
1712
- architecture: {
1713
- useMaxWidth: true,
1714
- padding: 40,
1715
- iconSize: 80,
1716
- fontSize: 16
1717
- },
1718
- radar: {
1719
- useMaxWidth: true,
1720
- width: 600,
1721
- height: 600,
1722
- marginTop: 50,
1723
- marginRight: 50,
1724
- marginBottom: 50,
1725
- marginLeft: 50,
1726
- axisScaleFactor: 1,
1727
- axisLabelFactor: 1.05,
1728
- curveTension: 0.17
1729
- },
1730
- theme: "default",
1731
- look: "classic",
1732
- handDrawnSeed: 0,
1733
- layout: "dagre",
1734
- maxTextSize: 5e4,
1735
- maxEdges: 500,
1736
- darkMode: false,
1737
- fontFamily: '"trebuchet ms", verdana, arial, sans-serif;',
1738
- logLevel: 5,
1739
- securityLevel: "strict",
1740
- startOnLoad: true,
1741
- arrowMarkerAbsolute: false,
1742
- secure: [
1743
- "secure",
1744
- "securityLevel",
1745
- "startOnLoad",
1746
- "maxTextSize",
1747
- "suppressErrorRendering",
1748
- "maxEdges"
1749
- ],
1750
- legacyMathML: false,
1751
- forceLegacyMathML: false,
1752
- deterministicIds: false,
1753
- fontSize: 16,
1754
- markdownAutoWrap: true,
1755
- suppressErrorRendering: false
1756
- };
1757
- config = {
1758
- ...config_schema_default,
1759
- deterministicIDSeed: void 0,
1760
- elk: {
1761
- mergeEdges: false,
1762
- nodePlacementStrategy: "BRANDES_KOEPF",
1763
- forceNodeModelOrder: false,
1764
- considerModelOrder: "NODES_AND_EDGES"
1765
- },
1766
- themeCSS: void 0,
1767
- themeVariables: themes_default.default.getThemeVariables(),
1768
- sequence: {
1769
- ...config_schema_default.sequence,
1770
- messageFont: __name(function() {
1771
- return {
1772
- fontFamily: this.messageFontFamily,
1773
- fontSize: this.messageFontSize,
1774
- fontWeight: this.messageFontWeight
1775
- };
1776
- }, "messageFont"),
1777
- noteFont: __name(function() {
1778
- return {
1779
- fontFamily: this.noteFontFamily,
1780
- fontSize: this.noteFontSize,
1781
- fontWeight: this.noteFontWeight
1782
- };
1783
- }, "noteFont"),
1784
- actorFont: __name(function() {
1785
- return {
1786
- fontFamily: this.actorFontFamily,
1787
- fontSize: this.actorFontSize,
1788
- fontWeight: this.actorFontWeight
1789
- };
1790
- }, "actorFont")
1791
- },
1792
- class: {
1793
- hideEmptyMembersBox: false
1794
- },
1795
- gantt: {
1796
- ...config_schema_default.gantt,
1797
- tickInterval: void 0,
1798
- useWidth: void 0
1799
- },
1800
- c4: {
1801
- ...config_schema_default.c4,
1802
- useWidth: void 0,
1803
- personFont: __name(function() {
1804
- return {
1805
- fontFamily: this.personFontFamily,
1806
- fontSize: this.personFontSize,
1807
- fontWeight: this.personFontWeight
1808
- };
1809
- }, "personFont"),
1810
- flowchart: {
1811
- ...config_schema_default.flowchart,
1812
- inheritDir: false
1813
- },
1814
- external_personFont: __name(function() {
1815
- return {
1816
- fontFamily: this.external_personFontFamily,
1817
- fontSize: this.external_personFontSize,
1818
- fontWeight: this.external_personFontWeight
1819
- };
1820
- }, "external_personFont"),
1821
- systemFont: __name(function() {
1822
- return {
1823
- fontFamily: this.systemFontFamily,
1824
- fontSize: this.systemFontSize,
1825
- fontWeight: this.systemFontWeight
1826
- };
1827
- }, "systemFont"),
1828
- external_systemFont: __name(function() {
1829
- return {
1830
- fontFamily: this.external_systemFontFamily,
1831
- fontSize: this.external_systemFontSize,
1832
- fontWeight: this.external_systemFontWeight
1833
- };
1834
- }, "external_systemFont"),
1835
- system_dbFont: __name(function() {
1836
- return {
1837
- fontFamily: this.system_dbFontFamily,
1838
- fontSize: this.system_dbFontSize,
1839
- fontWeight: this.system_dbFontWeight
1840
- };
1841
- }, "system_dbFont"),
1842
- external_system_dbFont: __name(function() {
1843
- return {
1844
- fontFamily: this.external_system_dbFontFamily,
1845
- fontSize: this.external_system_dbFontSize,
1846
- fontWeight: this.external_system_dbFontWeight
1847
- };
1848
- }, "external_system_dbFont"),
1849
- system_queueFont: __name(function() {
1850
- return {
1851
- fontFamily: this.system_queueFontFamily,
1852
- fontSize: this.system_queueFontSize,
1853
- fontWeight: this.system_queueFontWeight
1854
- };
1855
- }, "system_queueFont"),
1856
- external_system_queueFont: __name(function() {
1857
- return {
1858
- fontFamily: this.external_system_queueFontFamily,
1859
- fontSize: this.external_system_queueFontSize,
1860
- fontWeight: this.external_system_queueFontWeight
1861
- };
1862
- }, "external_system_queueFont"),
1863
- containerFont: __name(function() {
1864
- return {
1865
- fontFamily: this.containerFontFamily,
1866
- fontSize: this.containerFontSize,
1867
- fontWeight: this.containerFontWeight
1868
- };
1869
- }, "containerFont"),
1870
- external_containerFont: __name(function() {
1871
- return {
1872
- fontFamily: this.external_containerFontFamily,
1873
- fontSize: this.external_containerFontSize,
1874
- fontWeight: this.external_containerFontWeight
1875
- };
1876
- }, "external_containerFont"),
1877
- container_dbFont: __name(function() {
1878
- return {
1879
- fontFamily: this.container_dbFontFamily,
1880
- fontSize: this.container_dbFontSize,
1881
- fontWeight: this.container_dbFontWeight
1882
- };
1883
- }, "container_dbFont"),
1884
- external_container_dbFont: __name(function() {
1885
- return {
1886
- fontFamily: this.external_container_dbFontFamily,
1887
- fontSize: this.external_container_dbFontSize,
1888
- fontWeight: this.external_container_dbFontWeight
1889
- };
1890
- }, "external_container_dbFont"),
1891
- container_queueFont: __name(function() {
1892
- return {
1893
- fontFamily: this.container_queueFontFamily,
1894
- fontSize: this.container_queueFontSize,
1895
- fontWeight: this.container_queueFontWeight
1896
- };
1897
- }, "container_queueFont"),
1898
- external_container_queueFont: __name(function() {
1899
- return {
1900
- fontFamily: this.external_container_queueFontFamily,
1901
- fontSize: this.external_container_queueFontSize,
1902
- fontWeight: this.external_container_queueFontWeight
1903
- };
1904
- }, "external_container_queueFont"),
1905
- componentFont: __name(function() {
1906
- return {
1907
- fontFamily: this.componentFontFamily,
1908
- fontSize: this.componentFontSize,
1909
- fontWeight: this.componentFontWeight
1910
- };
1911
- }, "componentFont"),
1912
- external_componentFont: __name(function() {
1913
- return {
1914
- fontFamily: this.external_componentFontFamily,
1915
- fontSize: this.external_componentFontSize,
1916
- fontWeight: this.external_componentFontWeight
1917
- };
1918
- }, "external_componentFont"),
1919
- component_dbFont: __name(function() {
1920
- return {
1921
- fontFamily: this.component_dbFontFamily,
1922
- fontSize: this.component_dbFontSize,
1923
- fontWeight: this.component_dbFontWeight
1924
- };
1925
- }, "component_dbFont"),
1926
- external_component_dbFont: __name(function() {
1927
- return {
1928
- fontFamily: this.external_component_dbFontFamily,
1929
- fontSize: this.external_component_dbFontSize,
1930
- fontWeight: this.external_component_dbFontWeight
1931
- };
1932
- }, "external_component_dbFont"),
1933
- component_queueFont: __name(function() {
1934
- return {
1935
- fontFamily: this.component_queueFontFamily,
1936
- fontSize: this.component_queueFontSize,
1937
- fontWeight: this.component_queueFontWeight
1938
- };
1939
- }, "component_queueFont"),
1940
- external_component_queueFont: __name(function() {
1941
- return {
1942
- fontFamily: this.external_component_queueFontFamily,
1943
- fontSize: this.external_component_queueFontSize,
1944
- fontWeight: this.external_component_queueFontWeight
1945
- };
1946
- }, "external_component_queueFont"),
1947
- boundaryFont: __name(function() {
1948
- return {
1949
- fontFamily: this.boundaryFontFamily,
1950
- fontSize: this.boundaryFontSize,
1951
- fontWeight: this.boundaryFontWeight
1952
- };
1953
- }, "boundaryFont"),
1954
- messageFont: __name(function() {
1955
- return {
1956
- fontFamily: this.messageFontFamily,
1957
- fontSize: this.messageFontSize,
1958
- fontWeight: this.messageFontWeight
1959
- };
1960
- }, "messageFont")
1961
- },
1962
- pie: {
1963
- ...config_schema_default.pie,
1964
- useWidth: 984
1965
- },
1966
- xyChart: {
1967
- ...config_schema_default.xyChart,
1968
- useWidth: void 0
1969
- },
1970
- requirement: {
1971
- ...config_schema_default.requirement,
1972
- useWidth: void 0
1973
- },
1974
- packet: {
1975
- ...config_schema_default.packet
1976
- },
1977
- radar: {
1978
- ...config_schema_default.radar
1979
- },
1980
- treemap: {
1981
- useMaxWidth: true,
1982
- padding: 10,
1983
- diagramPadding: 8,
1984
- showValues: true,
1985
- nodeWidth: 100,
1986
- nodeHeight: 40,
1987
- borderWidth: 1,
1988
- valueFontSize: 12,
1989
- labelFontSize: 14,
1990
- valueFormat: ","
1991
- }
1992
- };
1993
- keyify = __name((u, z = "") => Object.keys(u).reduce((B, V) => Array.isArray(u[V]) ? B : typeof u[V] == "object" && u[V] !== null ? [
1994
- ...B,
1995
- z + V,
1996
- ...keyify(u[V], "")
1997
- ] : [
1998
- ...B,
1999
- z + V
2000
- ], []), "keyify");
2001
- configKeys = new Set(keyify(config, ""));
2002
- defaultConfig_default = config;
2003
- sanitizeDirective = __name((u) => {
2004
- if (log.debug("sanitizeDirective called with", u), !(typeof u != "object" || !u)) {
2005
- if (Array.isArray(u)) {
2006
- u.forEach((u2) => sanitizeDirective(u2));
2007
- return;
2008
- }
2009
- for (let z of Object.keys(u)) {
2010
- if (log.debug("Checking key", z), z.startsWith("__") || z.includes("proto") || z.includes("constr") || !configKeys.has(z) || u[z] == null) {
2011
- log.debug("sanitize deleting key: ", z), delete u[z];
2012
- continue;
2013
- }
2014
- if (typeof u[z] == "object") {
2015
- log.debug("sanitizing object", z), sanitizeDirective(u[z]);
2016
- continue;
2017
- }
2018
- for (let V of [
2019
- "themeCSS",
2020
- "fontFamily",
2021
- "altFontFamily"
2022
- ]) z.includes(V) && (log.debug("sanitizing css option", z), u[z] = sanitizeCss(u[z]));
2023
- }
2024
- if (u.themeVariables) for (let z of Object.keys(u.themeVariables)) {
2025
- let B = u.themeVariables[z];
2026
- (B == null ? void 0 : B.match) && !B.match(/^[\d "#%(),.;A-Za-z]+$/) && (u.themeVariables[z] = "");
2027
- }
2028
- log.debug("After sanitization", u);
2029
- }
2030
- }, "sanitizeDirective");
2031
- sanitizeCss = __name((u) => {
2032
- let z = 0, B = 0;
2033
- for (let V of u) {
2034
- if (z < B) return "{ /* ERROR: Unbalanced CSS */ }";
2035
- V === "{" ? z++ : V === "}" && B++;
2036
- }
2037
- return z === B ? u : "{ /* ERROR: Unbalanced CSS */ }";
2038
- }, "sanitizeCss");
2039
- defaultConfig = Object.freeze(defaultConfig_default);
2040
- siteConfig = assignWithDepth_default({}, defaultConfig);
2041
- directives = [];
2042
- currentConfig = assignWithDepth_default({}, defaultConfig);
2043
- updateCurrentConfig = __name((u, z) => {
2044
- let B = assignWithDepth_default({}, u), V = {};
2045
- for (let u2 of z) sanitize(u2), V = assignWithDepth_default(V, u2);
2046
- if (B = assignWithDepth_default(B, V), V.theme && V.theme in themes_default) {
2047
- let u2 = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, V.themeVariables);
2048
- B.theme && B.theme in themes_default && (B.themeVariables = themes_default[B.theme].getThemeVariables(u2));
2049
- }
2050
- return currentConfig = B, checkConfig(currentConfig), currentConfig;
2051
- }, "updateCurrentConfig");
2052
- setSiteConfig = __name((u) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, u), u.theme && themes_default[u.theme] && (siteConfig.themeVariables = themes_default[u.theme].getThemeVariables(u.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig");
2053
- saveConfigFromInitialize = __name((u) => {
2054
- configFromInitialize = assignWithDepth_default({}, u);
2055
- }, "saveConfigFromInitialize");
2056
- updateSiteConfig = __name((u) => (siteConfig = assignWithDepth_default(siteConfig, u), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig");
2057
- getSiteConfig = __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig");
2058
- setConfig = __name((u) => (checkConfig(u), assignWithDepth_default(currentConfig, u), getConfig()), "setConfig");
2059
- getConfig = __name(() => assignWithDepth_default({}, currentConfig), "getConfig");
2060
- sanitize = __name((u) => {
2061
- u && ([
2062
- "secure",
2063
- ...siteConfig.secure ?? []
2064
- ].forEach((z) => {
2065
- Object.hasOwn(u, z) && (log.debug(`Denied attempt to modify a secure key ${z}`, u[z]), delete u[z]);
2066
- }), Object.keys(u).forEach((z) => {
2067
- z.startsWith("__") && delete u[z];
2068
- }), Object.keys(u).forEach((z) => {
2069
- typeof u[z] == "string" && (u[z].includes("<") || u[z].includes(">") || u[z].includes("url(data:")) && delete u[z], typeof u[z] == "object" && sanitize(u[z]);
2070
- }));
2071
- }, "sanitize");
2072
- addDirective = __name((u) => {
2073
- var _a2;
2074
- sanitizeDirective(u), u.fontFamily && !((_a2 = u.themeVariables) == null ? void 0 : _a2.fontFamily) && (u.themeVariables = {
2075
- ...u.themeVariables,
2076
- fontFamily: u.fontFamily
2077
- }), directives.push(u), updateCurrentConfig(siteConfig, directives);
2078
- }, "addDirective");
2079
- reset = __name((u = siteConfig) => {
2080
- directives = [], updateCurrentConfig(u, directives);
2081
- }, "reset");
2082
- ConfigWarning = {
2083
- LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
2084
- };
2085
- issuedWarnings = {};
2086
- issueWarning = __name((u) => {
2087
- issuedWarnings[u] || (log.warn(ConfigWarning[u]), issuedWarnings[u] = true);
2088
- }, "issueWarning");
2089
- checkConfig = __name((u) => {
2090
- u && (u.lazyLoadedDiagrams || u.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2091
- }, "checkConfig");
2092
- getUserDefinedConfig = __name(() => {
2093
- let u = {};
2094
- configFromInitialize && (u = assignWithDepth_default(u, configFromInitialize));
2095
- for (let z of directives) u = assignWithDepth_default(u, z);
2096
- return u;
2097
- }, "getUserDefinedConfig");
2098
- lineBreakRegex = /<br\s*\/?>/gi;
2099
- getRows = __name((u) => u ? breakToPlaceholder(u).replace(/\\n/g, "#br#").split("#br#") : [
2100
- ""
2101
- ], "getRows");
2102
- setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
2103
- let u = false;
2104
- return () => {
2105
- u || (u = (setupDompurifyHooks(), true));
2106
- };
2107
- })();
2108
- function setupDompurifyHooks() {
2109
- let z = "data-temp-href-target";
2110
- purify.addHook("beforeSanitizeAttributes", (u) => {
2111
- u.tagName === "A" && u.hasAttribute("target") && u.setAttribute(z, u.getAttribute("target") ?? "");
2112
- }), purify.addHook("afterSanitizeAttributes", (u) => {
2113
- u.tagName === "A" && u.hasAttribute(z) && (u.setAttribute("target", u.getAttribute(z) ?? ""), u.removeAttribute(z), u.getAttribute("target") === "_blank" && u.setAttribute("rel", "noopener"));
2114
- });
2115
- }
2116
- __name(setupDompurifyHooks, "setupDompurifyHooks");
2117
- let removeScript, sanitizeMore, sanitizeTextOrArray, hasBreaks, splitBreaks, placeholderToBreak, breakToPlaceholder, getMax, getMin, countOccurrence, shouldCombineSets, processSet, isMathMLSupported, katexRegex, renderKatexUnsanitized, d3Attrs, calculateSvgSizeAttrs, themes, getStyles, addStylesForDiagram;
2118
- removeScript = __name((z) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(z)), "removeScript");
2119
- sanitizeMore = __name((u, z) => {
2120
- var _a2;
2121
- if (((_a2 = z.flowchart) == null ? void 0 : _a2.htmlLabels) !== false) {
2122
- let B = z.securityLevel;
2123
- B === "antiscript" || B === "strict" ? u = removeScript(u) : B !== "loose" && (u = breakToPlaceholder(u), u = u.replace(/</g, "&lt;").replace(/>/g, "&gt;"), u = u.replace(/=/g, "&equals;"), u = placeholderToBreak(u));
2124
- }
2125
- return u;
2126
- }, "sanitizeMore");
2127
- sanitizeText = __name((z, B) => z && (z = B.dompurifyConfig ? purify.sanitize(sanitizeMore(z, B), B.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(z, B), {
2128
- FORBID_TAGS: [
2129
- "style"
2130
- ]
2131
- }).toString(), z), "sanitizeText");
2132
- sanitizeTextOrArray = __name((u, z) => typeof u == "string" ? sanitizeText(u, z) : u.flat().map((u2) => sanitizeText(u2, z)), "sanitizeTextOrArray");
2133
- hasBreaks = __name((u) => lineBreakRegex.test(u), "hasBreaks");
2134
- splitBreaks = __name((u) => u.split(lineBreakRegex), "splitBreaks");
2135
- placeholderToBreak = __name((u) => u.replace(/#br#/g, "<br/>"), "placeholderToBreak");
2136
- breakToPlaceholder = __name((u) => u.replace(lineBreakRegex, "#br#"), "breakToPlaceholder");
2137
- getUrl = __name((u) => {
2138
- let z = "";
2139
- return u && (z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, z = CSS.escape(z)), z;
2140
- }, "getUrl");
2141
- evaluate = __name((u) => !(u === false || [
2142
- "false",
2143
- "null",
2144
- "0"
2145
- ].includes(String(u).trim().toLowerCase())), "evaluate");
2146
- getMax = __name(function(...u) {
2147
- let z = u.filter((u2) => !isNaN(u2));
2148
- return Math.max(...z);
2149
- }, "getMax");
2150
- getMin = __name(function(...u) {
2151
- let z = u.filter((u2) => !isNaN(u2));
2152
- return Math.min(...z);
2153
- }, "getMin");
2154
- parseGenericTypes = __name(function(u) {
2155
- let z = u.split(/(,)/), B = [];
2156
- for (let u2 = 0; u2 < z.length; u2++) {
2157
- let V = z[u2];
2158
- if (V === "," && u2 > 0 && u2 + 1 < z.length) {
2159
- let H = z[u2 - 1], U = z[u2 + 1];
2160
- shouldCombineSets(H, U) && (V = H + "," + U, u2++, B.pop());
2161
- }
2162
- B.push(processSet(V));
2163
- }
2164
- return B.join("");
2165
- }, "parseGenericTypes");
2166
- countOccurrence = __name((u, z) => Math.max(0, u.split(z).length - 1), "countOccurrence");
2167
- shouldCombineSets = __name((u, z) => {
2168
- let B = countOccurrence(u, "~"), V = countOccurrence(z, "~");
2169
- return B === 1 && V === 1;
2170
- }, "shouldCombineSets");
2171
- processSet = __name((u) => {
2172
- let z = countOccurrence(u, "~"), B = false;
2173
- if (z <= 1) return u;
2174
- z % 2 != 0 && u.startsWith("~") && (u = u.substring(1), B = true);
2175
- let V = [
2176
- ...u
2177
- ], H = V.indexOf("~"), U = V.lastIndexOf("~");
2178
- for (; H !== -1 && U !== -1 && H !== U; ) V[H] = "<", V[U] = ">", H = V.indexOf("~"), U = V.lastIndexOf("~");
2179
- return B && V.unshift("~"), V.join("");
2180
- }, "processSet");
2181
- isMathMLSupported = __name(() => window.MathMLElement !== void 0, "isMathMLSupported");
2182
- katexRegex = /\$\$(.*)\$\$/g;
2183
- hasKatex = __name((u) => {
2184
- var _a2;
2185
- return (((_a2 = u.match(katexRegex)) == null ? void 0 : _a2.length) ?? 0) > 0;
2186
- }, "hasKatex");
2187
- calculateMathMLDimensions = __name(async (u, z) => {
2188
- var _a2;
2189
- let B = document.createElement("div");
2190
- B.innerHTML = await renderKatexSanitized(u, z), B.id = "katex-temp", B.style.visibility = "hidden", B.style.position = "absolute", B.style.top = "0", (_a2 = document.querySelector("body")) == null ? void 0 : _a2.insertAdjacentElement("beforeend", B);
2191
- let V = {
2192
- width: B.clientWidth,
2193
- height: B.clientHeight
2194
- };
2195
- return B.remove(), V;
2196
- }, "calculateMathMLDimensions");
2197
- renderKatexUnsanitized = __name(async (u, z) => {
2198
- if (!hasKatex(u)) return u;
2199
- if (!(isMathMLSupported() || z.legacyMathML || z.forceLegacyMathML)) return u.replace(katexRegex, "MathML is unsupported in this environment.");
2200
- {
2201
- let { default: B } = await import("./katex-C4t-BmrK.js"), V = z.forceLegacyMathML || !isMathMLSupported() && z.legacyMathML ? "htmlAndMathml" : "mathml";
2202
- return u.split(lineBreakRegex).map((u2) => hasKatex(u2) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${u2}</div>` : `<div>${u2}</div>`).join("").replace(katexRegex, (u2, z2) => B.renderToString(z2, {
2203
- throwOnError: true,
2204
- displayMode: true,
2205
- output: V
2206
- }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2207
- }
2208
- return u.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2209
- }, "renderKatexUnsanitized");
2210
- renderKatexSanitized = __name(async (u, z) => sanitizeText(await renderKatexUnsanitized(u, z), z), "renderKatexSanitized");
2211
- common_default = {
2212
- getRows,
2213
- sanitizeText,
2214
- sanitizeTextOrArray,
2215
- hasBreaks,
2216
- splitBreaks,
2217
- lineBreakRegex,
2218
- removeScript,
2219
- getUrl,
2220
- evaluate,
2221
- getMax,
2222
- getMin
2223
- };
2224
- d3Attrs = __name(function(u, z) {
2225
- for (let B of z) u.attr(B[0], B[1]);
2226
- }, "d3Attrs");
2227
- calculateSvgSizeAttrs = __name(function(u, z, B) {
2228
- let V = /* @__PURE__ */ new Map();
2229
- return B ? (V.set("width", "100%"), V.set("style", `max-width: ${z}px;`)) : (V.set("height", u), V.set("width", z)), V;
2230
- }, "calculateSvgSizeAttrs");
2231
- configureSvgSize = __name(function(u, z, B, V) {
2232
- d3Attrs(u, calculateSvgSizeAttrs(z, B, V));
2233
- }, "configureSvgSize");
2234
- setupGraphViewbox = __name(function(u, z, V, H) {
2235
- let U = z.node().getBBox(), W = U.width, G = U.height;
2236
- log.info(`SVG bounds: ${W}x${G}`, U);
2237
- let K = 0, q = 0;
2238
- log.info(`Graph bounds: ${K}x${q}`, u), K = W + V * 2, q = G + V * 2, log.info(`Calculated bounds: ${K}x${q}`), configureSvgSize(z, q, K, H);
2239
- let J = `${U.x - V} ${U.y - V} ${U.width + 2 * V} ${U.height + 2 * V}`;
2240
- z.attr("viewBox", J);
2241
- }, "setupGraphViewbox");
2242
- themes = {};
2243
- getStyles = __name((u, z, V) => {
2244
- let H = "";
2245
- return u in themes && themes[u] ? H = themes[u](V) : log.warn(`No theme found for ${u}`), ` & {
2246
- font-family: ${V.fontFamily};
2247
- font-size: ${V.fontSize};
2248
- fill: ${V.textColor}
2249
- }
2250
- @keyframes edge-animation-frame {
2251
- from {
2252
- stroke-dashoffset: 0;
2253
- }
2254
- }
2255
- @keyframes dash {
2256
- to {
2257
- stroke-dashoffset: 0;
2258
- }
2259
- }
2260
- & .edge-animation-slow {
2261
- stroke-dasharray: 9,5 !important;
2262
- stroke-dashoffset: 900;
2263
- animation: dash 50s linear infinite;
2264
- stroke-linecap: round;
2265
- }
2266
- & .edge-animation-fast {
2267
- stroke-dasharray: 9,5 !important;
2268
- stroke-dashoffset: 900;
2269
- animation: dash 20s linear infinite;
2270
- stroke-linecap: round;
2271
- }
2272
- /* Classes common for multiple diagrams */
2273
-
2274
- & .error-icon {
2275
- fill: ${V.errorBkgColor};
2276
- }
2277
- & .error-text {
2278
- fill: ${V.errorTextColor};
2279
- stroke: ${V.errorTextColor};
2280
- }
2281
-
2282
- & .edge-thickness-normal {
2283
- stroke-width: 1px;
2284
- }
2285
- & .edge-thickness-thick {
2286
- stroke-width: 3.5px
2287
- }
2288
- & .edge-pattern-solid {
2289
- stroke-dasharray: 0;
2290
- }
2291
- & .edge-thickness-invisible {
2292
- stroke-width: 0;
2293
- fill: none;
2294
- }
2295
- & .edge-pattern-dashed{
2296
- stroke-dasharray: 3;
2297
- }
2298
- .edge-pattern-dotted {
2299
- stroke-dasharray: 2;
2300
- }
2301
-
2302
- & .marker {
2303
- fill: ${V.lineColor};
2304
- stroke: ${V.lineColor};
2305
- }
2306
- & .marker.cross {
2307
- stroke: ${V.lineColor};
2308
- }
2309
-
2310
- & svg {
2311
- font-family: ${V.fontFamily};
2312
- font-size: ${V.fontSize};
2313
- }
2314
- & p {
2315
- margin: 0
2316
- }
2317
-
2318
- ${H}
2319
-
2320
- ${z}
2321
- `;
2322
- }, "getStyles");
2323
- addStylesForDiagram = __name((u, z) => {
2324
- z !== void 0 && (themes[u] = z);
2325
- }, "addStylesForDiagram");
2326
- styles_default = getStyles;
2327
- commonDb_exports = {};
2328
- __export(commonDb_exports, {
2329
- clear: () => clear,
2330
- getAccDescription: () => getAccDescription,
2331
- getAccTitle: () => getAccTitle,
2332
- getDiagramTitle: () => getDiagramTitle,
2333
- setAccDescription: () => setAccDescription,
2334
- setAccTitle: () => setAccTitle,
2335
- setDiagramTitle: () => setDiagramTitle
2336
- });
2337
- let accTitle, diagramTitle, accDescription, sanitizeText2, log2, setLogLevel2, getCommonDb, diagrams, DiagramNotFoundError;
2338
- accTitle = "";
2339
- diagramTitle = "";
2340
- accDescription = "";
2341
- sanitizeText2 = __name((u) => sanitizeText(u, getConfig()), "sanitizeText");
2342
- clear = __name(() => {
2343
- accTitle = "", accDescription = "", diagramTitle = "";
2344
- }, "clear");
2345
- setAccTitle = __name((u) => {
2346
- accTitle = sanitizeText2(u).replace(/^\s+/g, "");
2347
- }, "setAccTitle");
2348
- getAccTitle = __name(() => accTitle, "getAccTitle");
2349
- setAccDescription = __name((u) => {
2350
- accDescription = sanitizeText2(u).replace(/\n\s+/g, "\n");
2351
- }, "setAccDescription");
2352
- getAccDescription = __name(() => accDescription, "getAccDescription");
2353
- setDiagramTitle = __name((u) => {
2354
- diagramTitle = sanitizeText2(u);
2355
- }, "setDiagramTitle");
2356
- getDiagramTitle = __name(() => diagramTitle, "getDiagramTitle");
2357
- log2 = log;
2358
- setLogLevel2 = setLogLevel;
2359
- getConfig2 = getConfig;
2360
- setConfig2 = setConfig;
2361
- defaultConfig2 = defaultConfig;
2362
- sanitizeText3 = __name((u) => sanitizeText(u, getConfig2()), "sanitizeText");
2363
- setupGraphViewbox2 = setupGraphViewbox;
2364
- getCommonDb = __name(() => commonDb_exports, "getCommonDb");
2365
- diagrams = {};
2366
- registerDiagram = __name((u, z, B) => {
2367
- var _a2;
2368
- diagrams[u] && log2.warn(`Diagram with id ${u} already registered. Overwriting.`), diagrams[u] = z, B && addDetector(u, B), addStylesForDiagram(u, z.styles), (_a2 = z.injectUtils) == null ? void 0 : _a2.call(z, log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {
2369
- });
2370
- }, "registerDiagram");
2371
- getDiagram = __name((u) => {
2372
- if (u in diagrams) return diagrams[u];
2373
- throw new DiagramNotFoundError(u);
2374
- }, "getDiagram");
2375
- DiagramNotFoundError = (_g = class extends Error {
2376
- constructor(u) {
2377
- super(`Diagram ${u} not found.`);
2378
- }
2379
- }, __name(_g, "DiagramNotFoundError"), _g);
2380
- })();
2381
- export {
2382
- rgba_default as $,
2383
- parseGenericTypes as A,
2384
- setAccTitle as B,
2385
- getDiagramTitle as C,
2386
- getUserDefinedConfig as D,
2387
- getUrl as E,
2388
- sanitizeDirective as F,
2389
- setupGraphViewbox as G,
2390
- setConfig2 as H,
2391
- sanitizeText as I,
2392
- themes_default as J,
2393
- setupGraphViewbox2 as K,
2394
- sanitizeText3 as L,
2395
- registerLazyLoadedDiagrams as M,
2396
- renderKatexSanitized as N,
2397
- hasKatex as O,
2398
- reset as P,
2399
- is_dark_default as Q,
2400
- saveConfigFromInitialize as R,
2401
- getDiagramLoader as S,
2402
- getThemeVariables3 as T,
2403
- setDiagramTitle as U,
2404
- setConfig as V,
2405
- setSiteConfig as W,
2406
- darken_default as X,
2407
- updateSiteConfig as Y,
2408
- lighten_default as Z,
2409
- getAccDescription as _,
2410
- __tla,
2411
- clear as a,
2412
- getConfig2 as b,
2413
- configureSvgSize as c,
2414
- defaultConfig_default as d,
2415
- color_default as et,
2416
- detectType as f,
2417
- frontMatterRegex as g,
2418
- evaluate as h,
2419
- calculateMathMLDimensions as i,
2420
- registerDiagram as j,
2421
- lineBreakRegex as k,
2422
- defaultConfig as l,
2423
- directiveRegex as m,
2424
- addDirective as n,
2425
- commonDb_exports as o,
2426
- detectors as p,
2427
- styles_default as q,
2428
- assignWithDepth_default as r,
2429
- common_default as s,
2430
- UnknownDiagramError as t,
2431
- utils_default as tt,
2432
- defaultConfig2 as u,
2433
- getAccTitle as v,
2434
- getSiteConfig as w,
2435
- getDiagram as x,
2436
- getConfig as y,
2437
- setAccDescription as z
2438
- };