@wzh-/ai-chat-example 1.0.0 → 1.0.1

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 (809) hide show
  1. package/dist/_basePickBy-CkZky1V-.js +135 -0
  2. package/dist/_baseUniq-f11MNaXe.js +573 -0
  3. package/dist/abap--jVlqvLx.js +2 -0
  4. package/dist/actionscript-3-N1AoJtTA.js +2 -0
  5. package/dist/ada-CYGINLea.js +2 -0
  6. package/dist/ai-chat-example.css +3 -0
  7. package/dist/andromeeda-CvsZnG9k.js +2 -0
  8. package/dist/angular-html-C5vmpet2.js +14 -0
  9. package/dist/angular-html-CLTv4jM9.js +5 -0
  10. package/dist/angular-ts-BKqJWrwt.js +19 -0
  11. package/dist/apache-D6X-_dyJ.js +2 -0
  12. package/dist/apex-C7VgAgAE.js +2 -0
  13. package/dist/apl-BcJs32yU.js +15 -0
  14. package/dist/applescript-DN64Su6U.js +2 -0
  15. package/dist/ara-Dm1jHrgg.js +2 -0
  16. package/dist/arc-Dh_0vvHo.js +78 -0
  17. package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
  18. package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
  19. package/dist/array-CkdOJbdT.js +5 -0
  20. package/dist/asciidoc-BpqtqRF5.js +2 -0
  21. package/dist/asm-DUGlKYIq.js +2 -0
  22. package/dist/astro-q-huTQEP.js +16 -0
  23. package/dist/aurora-x-DwOih-un.js +2 -0
  24. package/dist/awk-DcnVbJrN.js +2 -0
  25. package/dist/ayu-dark-Bd-89MKE.js +2 -0
  26. package/dist/ballerina-BQVdQd9X.js +2 -0
  27. package/dist/bash-DI_p7w58.js +2 -0
  28. package/dist/bat-juB1J52r.js +2 -0
  29. package/dist/beancount-ThxIlRc3.js +2 -0
  30. package/dist/berry-qC18BfC_.js +2 -0
  31. package/dist/bibtex-CahMDY_0.js +2 -0
  32. package/dist/bicep-CHLBKS47.js +2 -0
  33. package/dist/blade-Ckff5WJQ.js +19 -0
  34. package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
  35. package/dist/bsl-BTNab0FD.js +3 -0
  36. package/dist/c-BYDGkYzS.js +2 -0
  37. package/dist/c-CX6yudYR.js +2 -0
  38. package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
  39. package/dist/cadence-DA5J9-Di.js +2 -0
  40. package/dist/cairo-DUZgbTPW.js +3 -0
  41. package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
  42. package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
  43. package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
  44. package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
  45. package/dist/channel-BrxVk5HC.js +3 -0
  46. package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
  47. package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
  48. package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
  49. package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
  50. package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
  51. package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
  52. package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
  53. package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
  54. package/dist/chunk-DNh5sLlG.js +18 -0
  55. package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
  56. package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
  57. package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
  58. package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
  59. package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
  60. package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
  61. package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
  62. package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
  63. package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
  64. package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
  65. package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
  66. package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
  67. package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
  68. package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
  69. package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
  70. package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
  71. package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
  72. package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
  73. package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
  74. package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
  75. package/dist/clarity-CsFOkG3c.js +2 -0
  76. package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
  77. package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
  78. package/dist/clojure-u1TZmmdQ.js +2 -0
  79. package/dist/clone-BRioDvRr.js +7 -0
  80. package/dist/cmake-CA3Lfsq7.js +2 -0
  81. package/dist/cmake-K1k8HMYR.js +2 -0
  82. package/dist/cobol-DhzLzJib.js +10 -0
  83. package/dist/codeowners-l4eSxhtA.js +2 -0
  84. package/dist/codeql-5CeQaktT.js +2 -0
  85. package/dist/coffee-P21KTKMu.js +3 -0
  86. package/dist/common-lisp-BVttGbYJ.js +2 -0
  87. package/dist/coq-CZjzQDnb.js +2 -0
  88. package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
  89. package/dist/cpp-C6JyDxZu.js +16 -0
  90. package/dist/cpp-GAIEvywS.js +6 -0
  91. package/dist/crystal-BJfcoGS4.js +16 -0
  92. package/dist/csharp-BbUwciq4.js +2 -0
  93. package/dist/csharp-JE-9ns6W.js +2 -0
  94. package/dist/css-Crp0iO_o.js +2 -0
  95. package/dist/css-Cy-fypCV.js +2 -0
  96. package/dist/csv-DJ7xG4PY.js +2 -0
  97. package/dist/csv-DtT8LmMi.js +2 -0
  98. package/dist/cue-BwjaQTCz.js +2 -0
  99. package/dist/cypher-B7e06enY.js +2 -0
  100. package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
  101. package/dist/d-q60wkid4.js +2 -0
  102. package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
  103. package/dist/dagre-DtvXp3zQ.js +1395 -0
  104. package/dist/dark-plus-D_fA88xf.js +2 -0
  105. package/dist/dart-DjkWvBgr.js +2 -0
  106. package/dist/dax-lueLIZQI.js +2 -0
  107. package/dist/defaultLocale-CoJOMwPq.js +177 -0
  108. package/dist/desktop-DaphHKD5.js +2 -0
  109. package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
  110. package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
  111. package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
  112. package/dist/diff-COB48_rb.js +2 -0
  113. package/dist/diff-DlXnqUMK.js +2 -0
  114. package/dist/dist-CrnZo_23.js +49 -0
  115. package/dist/docker-DZKmuwpA.js +2 -0
  116. package/dist/dotenv-hmNahw-8.js +2 -0
  117. package/dist/dracula-ddM3a7au.js +2 -0
  118. package/dist/dracula-soft-vfA-TA_S.js +2 -0
  119. package/dist/dream-maker-Cxa2a8FY.js +2 -0
  120. package/dist/edge-Dm7HQa9N.js +12 -0
  121. package/dist/elixir-BkvHyCNd.js +5 -0
  122. package/dist/elm-rz9wTSrn.js +4 -0
  123. package/dist/emacs-lisp-w5URnZPZ.js +2 -0
  124. package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
  125. package/dist/erb-DyrwQYVz.js +25 -0
  126. package/dist/erlang-DLFKZs5N.js +3 -0
  127. package/dist/everforest-dark-DAPtv4yI.js +2 -0
  128. package/dist/everforest-light-nQzYm8GO.js +2 -0
  129. package/dist/fennel-CJDNJZTU.js +2 -0
  130. package/dist/fish-BkYaLI4-.js +2 -0
  131. package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
  132. package/dist/fluent-DShra35H.js +2 -0
  133. package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
  134. package/dist/fortran-free-form-CgbOAJnm.js +2 -0
  135. package/dist/fortran-free-form-Js8JrQQE.js +2 -0
  136. package/dist/fsharp-CtWO0jvL.js +3 -0
  137. package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
  138. package/dist/gdresource-CgyXKpe4.js +8 -0
  139. package/dist/gdscript-DnurdQnh.js +2 -0
  140. package/dist/gdscript-STdmRKv-.js +2 -0
  141. package/dist/gdshader-Bs2s6cSB.js +2 -0
  142. package/dist/gdshader-YiVaPq6D.js +2 -0
  143. package/dist/genie-BppkvzZC.js +2 -0
  144. package/dist/gherkin-Bp4zdWMb.js +2 -0
  145. package/dist/git-commit--0GGwZNa.js +3 -0
  146. package/dist/git-rebase-orw-bSIZ.js +3 -0
  147. package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
  148. package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
  149. package/dist/github-dark-CMN1tZPn.js +2 -0
  150. package/dist/github-dark-DxCf_Qaz.js +2 -0
  151. package/dist/github-dark-default-DVCJut02.js +2 -0
  152. package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
  153. package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
  154. package/dist/github-light-CfdX7txK.js +2 -0
  155. package/dist/github-light-Y8g-VxKq.js +2 -0
  156. package/dist/github-light-default-BNGkGE--.js +2 -0
  157. package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
  158. package/dist/gleam-Lw0tKp8T.js +2 -0
  159. package/dist/glimmer-js-C6E6wJv0.js +12 -0
  160. package/dist/glimmer-ts-C6GgTGNO.js +12 -0
  161. package/dist/glsl-D8_YBRKT.js +3 -0
  162. package/dist/glsl-rwn_QCp2.js +3 -0
  163. package/dist/gnuplot-BeA3etmO.js +2 -0
  164. package/dist/go-BhDDN9y4.js +2 -0
  165. package/dist/go-xfE7BrfS.js +2 -0
  166. package/dist/graphlib-BZdVmxO6.js +223 -0
  167. package/dist/graphql-DQHhbQm2.js +6 -0
  168. package/dist/graphql-DoBLseH6.js +12 -0
  169. package/dist/groovy-C5-mv4io.js +2 -0
  170. package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
  171. package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
  172. package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
  173. package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
  174. package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
  175. package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
  176. package/dist/hack-DEAxoi73.js +10 -0
  177. package/dist/haml-BG2d3iX4.js +4 -0
  178. package/dist/haml-mA656Lm7.js +8 -0
  179. package/dist/handlebars-CO5xAxJ3.js +12 -0
  180. package/dist/haskell-Hsexh2aP.js +2 -0
  181. package/dist/haxe-BJVSeYxy.js +2 -0
  182. package/dist/haxe-CD_Rs3P5.js +2 -0
  183. package/dist/hcl-D098sJ_J.js +2 -0
  184. package/dist/hjson-BwXHX5r6.js +2 -0
  185. package/dist/hlsl-B0pnUVYG.js +2 -0
  186. package/dist/hlsl-Dt9-unql.js +2 -0
  187. package/dist/houston-C7hMWO_I.js +2 -0
  188. package/dist/html-DFCxtjnd.js +4 -0
  189. package/dist/html-DKSj3FeM.js +8 -0
  190. package/dist/html-derivative-BCRkrTcD.js +5 -0
  191. package/dist/html-derivative-C-vidKoA.js +3 -0
  192. package/dist/http-CYP1tEDW.js +17 -0
  193. package/dist/hurl-BJexUSKz.js +15 -0
  194. package/dist/hxml-XfuSEjM-.js +3 -0
  195. package/dist/hy-DPQ04rHt.js +2 -0
  196. package/dist/imba-Bgu2n5Mo.js +2 -0
  197. package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
  198. package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
  199. package/dist/ini-g9mZnyrk.js +2 -0
  200. package/dist/init-CBay3kgM.js +13 -0
  201. package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
  202. package/dist/isEmpty-CCym_WUL.js +32 -0
  203. package/dist/java-CUbPyze1.js +2 -0
  204. package/dist/java-DIOGgqAD.js +2 -0
  205. package/dist/javascript-9-JPeKdm.js +2 -0
  206. package/dist/javascript-De1qhUaI.js +2 -0
  207. package/dist/jinja-CVFxFRh6.js +5 -0
  208. package/dist/jison-0X6LppGq.js +3 -0
  209. package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
  210. package/dist/js/chat-example.es.js +39220 -0
  211. package/dist/js/chat-example.umd.js +2989 -0
  212. package/dist/json-DJtYdWQK.js +2 -0
  213. package/dist/json-fcFpRaf3.js +2 -0
  214. package/dist/json5-CPTZJOmf.js +2 -0
  215. package/dist/jsonc-CYrayg0k.js +2 -0
  216. package/dist/jsonl-Bsv7LjJ3.js +2 -0
  217. package/dist/jsonnet-B7LkHJxg.js +2 -0
  218. package/dist/jssm-BopKGZKg.js +2 -0
  219. package/dist/jsx-Bf3Nk9Di.js +2 -0
  220. package/dist/jsx-qo0JNHpZ.js +2 -0
  221. package/dist/julia-ChGs-n_c.js +17 -0
  222. package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
  223. package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
  224. package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
  225. package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
  226. package/dist/katex-BcWXJDMd.js +22097 -0
  227. package/dist/katex-K1dsczyg.js +2 -0
  228. package/dist/kdl-BbokxoZ9.js +2 -0
  229. package/dist/kotlin-3dXKmwyJ.js +2 -0
  230. package/dist/kusto-Os6_yHEz.js +2 -0
  231. package/dist/laserwave-8RcN1zf8.js +2 -0
  232. package/dist/latex-BnWZlY4q.js +4 -0
  233. package/dist/lean--0Wr4Cy4.js +2 -0
  234. package/dist/less-B4ybD-7s.js +2 -0
  235. package/dist/less-Cb54jO7u.js +2 -0
  236. package/dist/light-plus-CP_iZQDF.js +2 -0
  237. package/dist/line-EpckC7pZ.js +30 -0
  238. package/dist/linear-DjVN4o4U.js +250 -0
  239. package/dist/liquid-pc5Mduds.js +12 -0
  240. package/dist/llvm-ILH_SX7E.js +2 -0
  241. package/dist/log-DwO_GzA0.js +2 -0
  242. package/dist/logo-B4FeRowR.js +2 -0
  243. package/dist/lua-0TqNbT8C.js +3 -0
  244. package/dist/lua-6pXga3HV.js +3 -0
  245. package/dist/luau-DsUEyLJN.js +2 -0
  246. package/dist/make-p6NYc19I.js +2 -0
  247. package/dist/markdown-CCRtgC0b.js +2 -0
  248. package/dist/markdown-LaaQ4Eua.js +2 -0
  249. package/dist/marked.esm-D9xINNve.js +1384 -0
  250. package/dist/marko-D8uDUUEs.js +12 -0
  251. package/dist/material-theme-D__z84-n.js +2 -0
  252. package/dist/material-theme-darker-CWC5BoMv.js +2 -0
  253. package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
  254. package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
  255. package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
  256. package/dist/math-CJAnbPum.js +8 -0
  257. package/dist/matlab-CL0oMGfq.js +2 -0
  258. package/dist/mdc-Ki3KnB5U.js +13 -0
  259. package/dist/mdx-BTufVkNP.js +2 -0
  260. package/dist/mermaid-FCjIh1A7.js +2 -0
  261. package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
  262. package/dist/mermaid.core-Ra1JFCui.js +895 -0
  263. package/dist/min-dark-B4KRMcN3.js +2 -0
  264. package/dist/min-light-BQVJODr0.js +2 -0
  265. package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
  266. package/dist/mipsasm-Cn6AQ4lM.js +2 -0
  267. package/dist/mojo-C9IiQhp4.js +2 -0
  268. package/dist/monokai-vDwMMRi4.js +2 -0
  269. package/dist/move-BdizQ4_I.js +2 -0
  270. package/dist/narrat-BP2kx-u2.js +2 -0
  271. package/dist/nextflow-CyRmCGOe.js +2 -0
  272. package/dist/nginx-B46vdQ9n.js +4 -0
  273. package/dist/night-owl-DmjkOa5g.js +2 -0
  274. package/dist/nim-BxQNx10D.js +19 -0
  275. package/dist/nix-qPhlsqZI.js +2 -0
  276. package/dist/nord-sjxbvIbg.js +2 -0
  277. package/dist/nushell-puA-1bCW.js +2 -0
  278. package/dist/objective-c-D-qDLNy5.js +2 -0
  279. package/dist/objective-cpp-CFxSAM6p.js +2 -0
  280. package/dist/ocaml-CsLB7SWJ.js +2 -0
  281. package/dist/one-dark-pro-BHH-VjFD.js +2 -0
  282. package/dist/one-light-BqE6erWk.js +2 -0
  283. package/dist/openscad-DJCIQfnJ.js +2 -0
  284. package/dist/ordinal-CYQpsShT.js +61 -0
  285. package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
  286. package/dist/pascal-CPg9_ZFN.js +2 -0
  287. package/dist/path-esxOUfAH.js +79 -0
  288. package/dist/perl-D1bDaADZ.js +15 -0
  289. package/dist/php-BX51InqL.js +9 -0
  290. package/dist/php-D5tmU8Cr.js +16 -0
  291. package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
  292. package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
  293. package/dist/pkl-BQQ96hvn.js +2 -0
  294. package/dist/plastic-BrNUBdSC.js +2 -0
  295. package/dist/plsql-Co7Bxe7U.js +2 -0
  296. package/dist/po-BqzJCro7.js +2 -0
  297. package/dist/poimandres-C_AK8TlO.js +2 -0
  298. package/dist/polar-CtdYIPEe.js +2 -0
  299. package/dist/postcss-ChqFKb46.js +2 -0
  300. package/dist/postcss-ainQkoyY.js +2 -0
  301. package/dist/powerquery-CDugc1w-.js +2 -0
  302. package/dist/powershell-j5X-IA59.js +2 -0
  303. package/dist/prisma-Cyl7YhUw.js +2 -0
  304. package/dist/prolog-DELKnUYf.js +2 -0
  305. package/dist/proto-C4A_gDBY.js +2 -0
  306. package/dist/pug-BcLlS7Yb.js +10 -0
  307. package/dist/puppet-DFC9LyFj.js +2 -0
  308. package/dist/purescript-eECq7_n2.js +2 -0
  309. package/dist/python-BhdCuCld.js +2 -0
  310. package/dist/python-CuBu5pyY.js +2 -0
  311. package/dist/qml-MD0NqqIl.js +3 -0
  312. package/dist/qmldir-BpJII-Ze.js +2 -0
  313. package/dist/qss-CpMcemMc.js +2 -0
  314. package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
  315. package/dist/r-CQeHOO4c.js +2 -0
  316. package/dist/r-D90zdkbN.js +2 -0
  317. package/dist/racket-COTs6Zfi.js +2 -0
  318. package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
  319. package/dist/raku-DfOtwMUC.js +2 -0
  320. package/dist/razor-eRwFWsjJ.js +10 -0
  321. package/dist/red-CWGFZsim.js +2 -0
  322. package/dist/reg-BX5DwoEA.js +2 -0
  323. package/dist/regexp-Ca0eDBa2.js +2 -0
  324. package/dist/regexp-Cap8fK_2.js +2 -0
  325. package/dist/rel-CzXuLSk3.js +2 -0
  326. package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
  327. package/dist/riscv-DnFIiqh3.js +2 -0
  328. package/dist/rose-pine-C4v2iQVe.js +2 -0
  329. package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
  330. package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
  331. package/dist/rosmsg-D02ul3fM.js +2 -0
  332. package/dist/rst-DFmSdXGd.js +34 -0
  333. package/dist/ruby-BAEFomR0.js +20 -0
  334. package/dist/ruby-DDMUvAvC.js +28 -0
  335. package/dist/rust-s3hBbfQg.js +2 -0
  336. package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
  337. package/dist/sas-TjtLSnOp.js +3 -0
  338. package/dist/sass-v3HeJ9Fl.js +2 -0
  339. package/dist/scala-BTIBM_Vn.js +2 -0
  340. package/dist/scheme-C4NQMf7a.js +2 -0
  341. package/dist/scss-C-bthdG1.js +3 -0
  342. package/dist/scss-D-6-mg-f.js +3 -0
  343. package/dist/sdbl-BA3l-JrH.js +2 -0
  344. package/dist/sdbl-gc7zIVWR.js +2 -0
  345. package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
  346. package/dist/shaderlab-BRlB5fpk.js +3 -0
  347. package/dist/shellscript-BQ8mKDAF.js +2 -0
  348. package/dist/shellscript-DZa_4vvb.js +2 -0
  349. package/dist/shellsession-CIlmlgbR.js +3 -0
  350. package/dist/slack-dark-DhXO5DWr.js +2 -0
  351. package/dist/slack-ochin-aAGl4PPH.js +2 -0
  352. package/dist/smalltalk-DbwVUw_i.js +2 -0
  353. package/dist/snazzy-light-B4S5mk83.js +2 -0
  354. package/dist/solarized-dark-Dexkq3Fm.js +2 -0
  355. package/dist/solarized-light-I-Bzy8UC.js +2 -0
  356. package/dist/solidity-SMk0TJDc.js +2 -0
  357. package/dist/soy-DwSCrzEF.js +5 -0
  358. package/dist/sparql-D9kVSpEx.js +3 -0
  359. package/dist/splunk-DXXu2r7r.js +2 -0
  360. package/dist/sql-Bi3LyNPb.js +2 -0
  361. package/dist/sql-D0eLHBiZ.js +2 -0
  362. package/dist/src-B-SBGd0A.js +1975 -0
  363. package/dist/ssh-config-DyVcFTfI.js +2 -0
  364. package/dist/stata-DkEObyNb.js +3 -0
  365. package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
  366. package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
  367. package/dist/stylus-BKTuFHcX.js +2 -0
  368. package/dist/stylus-DEHALDNh.js +2 -0
  369. package/dist/svelte-KFuclcR6.js +12 -0
  370. package/dist/swift-Cenptrnf.js +2 -0
  371. package/dist/synthwave-84-BRkDuVE-.js +2 -0
  372. package/dist/system-verilog-Cvgukx4v.js +2 -0
  373. package/dist/systemd-BepdslJQ.js +2 -0
  374. package/dist/talonscript-Q98m-VXh.js +2 -0
  375. package/dist/tasl-uebrX98X.js +2 -0
  376. package/dist/tcl-B1Ny4XFf.js +2 -0
  377. package/dist/templ-C5mtYbb_.js +10 -0
  378. package/dist/terraform-0mA5ERTe.js +2 -0
  379. package/dist/tex-B4uYy1vC.js +3 -0
  380. package/dist/tex-BoVFa1ir.js +3 -0
  381. package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
  382. package/dist/tokyo-night-D0mU3-u8.js +2 -0
  383. package/dist/toml-vMAjra5M.js +2 -0
  384. package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
  385. package/dist/ts-tags-DRdTXGhb.js +38 -0
  386. package/dist/tsv-BnmbkntZ.js +2 -0
  387. package/dist/tsx-BaaPsUbd.js +2 -0
  388. package/dist/tsx-C0w0w5St.js +2 -0
  389. package/dist/turtle-4UWi_qX6.js +2 -0
  390. package/dist/turtle-BRmolh-6.js +2 -0
  391. package/dist/twig-cEhAbahS.js +33 -0
  392. package/dist/typescript-4YtK2JL4.js +2 -0
  393. package/dist/typescript-CmJ8D0yY.js +2 -0
  394. package/dist/typespec-CILw3zvZ.js +2 -0
  395. package/dist/typst-CLajFw6q.js +2 -0
  396. package/dist/v-MJV2RQvK.js +2 -0
  397. package/dist/vala-Dc1TiHw1.js +2 -0
  398. package/dist/vb-CoJdNmGs.js +2 -0
  399. package/dist/verilog-C7aVmiO0.js +2 -0
  400. package/dist/vesper-Cvcqyrim.js +2 -0
  401. package/dist/vhdl-CYQvzAG1.js +2 -0
  402. package/dist/viml-DOyjiDI8.js +2 -0
  403. package/dist/vitesse-black-CUYJaB5b.js +2 -0
  404. package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
  405. package/dist/vitesse-light-JU98KqVa.js +2 -0
  406. package/dist/vue-B3C4YeUK.js +8 -0
  407. package/dist/vue-DMpjAWNv.js +20 -0
  408. package/dist/vue-html-BIZN50ug.js +13 -0
  409. package/dist/vue-vine-DxezWcjL.js +22 -0
  410. package/dist/vyper-JU_r7Ch6.js +2 -0
  411. package/dist/wasm-DJ1S--fN.js +2 -0
  412. package/dist/wasm-eLFiAU8u.js +2 -0
  413. package/dist/wenyan-CqkzmyWz.js +2 -0
  414. package/dist/wgsl-gV62iTnF.js +2 -0
  415. package/dist/wikitext-BfUl8La4.js +2 -0
  416. package/dist/wit-kp_bCf2U.js +2 -0
  417. package/dist/wolfram-aPsN9AKt.js +2 -0
  418. package/dist/xml-BglBgo29.js +3 -0
  419. package/dist/xml-BxRdgEAX.js +3 -0
  420. package/dist/xsl-Cni90e0k.js +4 -0
  421. package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
  422. package/dist/yaml-DQRfaSRo.js +2 -0
  423. package/dist/yaml-P2kjOPvW.js +2 -0
  424. package/dist/zenscript-BuY4FX-t.js +2 -0
  425. package/dist/zig-CGDGjytz.js +2 -0
  426. package/package.json +10 -6
  427. package/.vscode/extensions.json +0 -3
  428. package/.vscode/settings.json +0 -6
  429. package/auto-imports.d.ts +0 -73
  430. package/components.d.ts +0 -312
  431. package/components.json +0 -21
  432. package/index.html +0 -13
  433. package/src/App.vue +0 -68
  434. package/src/components/ChatConversation/ChatConversation.vue +0 -97
  435. package/src/components/ChatConversation/index.ts +0 -1
  436. package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
  437. package/src/components/ChatPromptInputProvider/index.ts +0 -1
  438. package/src/components/ai-elements/artifact/Artifact.vue +0 -23
  439. package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
  440. package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
  441. package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
  442. package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
  443. package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
  444. package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
  445. package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
  446. package/src/components/ai-elements/artifact/index.ts +0 -8
  447. package/src/components/ai-elements/canvas/Canvas.vue +0 -37
  448. package/src/components/ai-elements/canvas/index.ts +0 -1
  449. package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
  450. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
  451. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
  452. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
  453. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
  454. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
  455. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
  456. package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
  457. package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
  458. package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
  459. package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
  460. package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
  461. package/src/components/ai-elements/checkpoint/index.ts +0 -3
  462. package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
  463. package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
  464. package/src/components/ai-elements/code-block/context.ts +0 -7
  465. package/src/components/ai-elements/code-block/index.ts +0 -2
  466. package/src/components/ai-elements/code-block/utils.ts +0 -46
  467. package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
  468. package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
  469. package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
  470. package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
  471. package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
  472. package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
  473. package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
  474. package/src/components/ai-elements/confirmation/context.ts +0 -46
  475. package/src/components/ai-elements/confirmation/index.ts +0 -7
  476. package/src/components/ai-elements/connection/Connection.vue +0 -36
  477. package/src/components/ai-elements/connection/index.ts +0 -1
  478. package/src/components/ai-elements/context/Context.vue +0 -29
  479. package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
  480. package/src/components/ai-elements/context/ContextContent.vue +0 -20
  481. package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
  482. package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
  483. package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
  484. package/src/components/ai-elements/context/ContextIcon.vue +0 -62
  485. package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
  486. package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
  487. package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
  488. package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
  489. package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
  490. package/src/components/ai-elements/context/context.ts +0 -23
  491. package/src/components/ai-elements/context/index.ts +0 -12
  492. package/src/components/ai-elements/controls/Controls.vue +0 -25
  493. package/src/components/ai-elements/controls/index.ts +0 -1
  494. package/src/components/ai-elements/conversation/Conversation.vue +0 -37
  495. package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
  496. package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
  497. package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
  498. package/src/components/ai-elements/conversation/index.ts +0 -4
  499. package/src/components/ai-elements/edge/Animated.vue +0 -91
  500. package/src/components/ai-elements/edge/Temporary.vue +0 -28
  501. package/src/components/ai-elements/edge/index.ts +0 -2
  502. package/src/components/ai-elements/image/Image.vue +0 -29
  503. package/src/components/ai-elements/image/index.ts +0 -1
  504. package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
  505. package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
  506. package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
  507. package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
  508. package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
  509. package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
  510. package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
  511. package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
  512. package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
  513. package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
  514. package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
  515. package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
  516. package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
  517. package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
  518. package/src/components/ai-elements/inline-citation/index.ts +0 -14
  519. package/src/components/ai-elements/loader/Loader.vue +0 -23
  520. package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
  521. package/src/components/ai-elements/loader/index.ts +0 -2
  522. package/src/components/ai-elements/message/Message.vue +0 -27
  523. package/src/components/ai-elements/message/MessageAction.vue +0 -45
  524. package/src/components/ai-elements/message/MessageActions.vue +0 -19
  525. package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
  526. package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
  527. package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
  528. package/src/components/ai-elements/message/MessageBranch.vue +0 -66
  529. package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
  530. package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
  531. package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
  532. package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
  533. package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
  534. package/src/components/ai-elements/message/MessageContent.vue +0 -26
  535. package/src/components/ai-elements/message/MessageResponse.vue +0 -42
  536. package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
  537. package/src/components/ai-elements/message/context.ts +0 -22
  538. package/src/components/ai-elements/message/index.ts +0 -15
  539. package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
  540. package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
  541. package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
  542. package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
  543. package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
  544. package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
  545. package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
  546. package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
  547. package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
  548. package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
  549. package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
  550. package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
  551. package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
  552. package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
  553. package/src/components/ai-elements/model-selector/index.ts +0 -14
  554. package/src/components/ai-elements/node/Node.vue +0 -31
  555. package/src/components/ai-elements/node/NodeAction.vue +0 -9
  556. package/src/components/ai-elements/node/NodeContent.vue +0 -15
  557. package/src/components/ai-elements/node/NodeDescription.vue +0 -9
  558. package/src/components/ai-elements/node/NodeFooter.vue +0 -15
  559. package/src/components/ai-elements/node/NodeHeader.vue +0 -15
  560. package/src/components/ai-elements/node/NodeTitle.vue +0 -9
  561. package/src/components/ai-elements/node/index.ts +0 -7
  562. package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
  563. package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
  564. package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
  565. package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
  566. package/src/components/ai-elements/open-in-chat/context.ts +0 -20
  567. package/src/components/ai-elements/open-in-chat/index.ts +0 -9
  568. package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
  569. package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
  570. package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
  571. package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
  572. package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
  573. package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
  574. package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
  575. package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
  576. package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
  577. package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
  578. package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
  579. package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
  580. package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
  581. package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
  582. package/src/components/ai-elements/panel/Panel.vue +0 -28
  583. package/src/components/ai-elements/panel/index.ts +0 -1
  584. package/src/components/ai-elements/plan/Plan.vue +0 -32
  585. package/src/components/ai-elements/plan/PlanAction.vue +0 -9
  586. package/src/components/ai-elements/plan/PlanContent.vue +0 -12
  587. package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
  588. package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
  589. package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
  590. package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
  591. package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
  592. package/src/components/ai-elements/plan/context.ts +0 -20
  593. package/src/components/ai-elements/plan/index.ts +0 -8
  594. package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
  595. package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
  596. package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
  597. package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
  598. package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
  599. package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
  600. package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
  601. package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
  602. package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
  603. package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
  604. package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
  605. package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
  606. package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
  607. package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
  608. package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
  609. package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
  610. package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
  611. package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
  612. package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
  613. package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
  614. package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
  615. package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
  616. package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
  617. package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
  618. package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
  619. package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
  620. package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
  621. package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
  622. package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
  623. package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
  624. package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
  625. package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
  626. package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
  627. package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
  628. package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
  629. package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
  630. package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
  631. package/src/components/ai-elements/prompt-input/context.ts +0 -223
  632. package/src/components/ai-elements/prompt-input/index.ts +0 -39
  633. package/src/components/ai-elements/prompt-input/types.ts +0 -28
  634. package/src/components/ai-elements/queue/Queue.vue +0 -21
  635. package/src/components/ai-elements/queue/QueueItem.vue +0 -21
  636. package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
  637. package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
  638. package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
  639. package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
  640. package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
  641. package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
  642. package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
  643. package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
  644. package/src/components/ai-elements/queue/QueueList.vue +0 -22
  645. package/src/components/ai-elements/queue/QueueSection.vue +0 -26
  646. package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
  647. package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
  648. package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
  649. package/src/components/ai-elements/queue/index.ts +0 -15
  650. package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
  651. package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
  652. package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
  653. package/src/components/ai-elements/reasoning/context.ts +0 -19
  654. package/src/components/ai-elements/reasoning/index.ts +0 -3
  655. package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
  656. package/src/components/ai-elements/shimmer/index.ts +0 -1
  657. package/src/components/ai-elements/sources/Source.vue +0 -26
  658. package/src/components/ai-elements/sources/Sources.vue +0 -17
  659. package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
  660. package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
  661. package/src/components/ai-elements/sources/index.ts +0 -4
  662. package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
  663. package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
  664. package/src/components/ai-elements/suggestion/index.ts +0 -2
  665. package/src/components/ai-elements/task/Task.vue +0 -32
  666. package/src/components/ai-elements/task/TaskContent.vue +0 -27
  667. package/src/components/ai-elements/task/TaskItem.vue +0 -16
  668. package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
  669. package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
  670. package/src/components/ai-elements/task/index.ts +0 -5
  671. package/src/components/ai-elements/tool/Tool.vue +0 -18
  672. package/src/components/ai-elements/tool/ToolContent.vue +0 -23
  673. package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
  674. package/src/components/ai-elements/tool/ToolInput.vue +0 -32
  675. package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
  676. package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
  677. package/src/components/ai-elements/tool/index.ts +0 -5
  678. package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
  679. package/src/components/ai-elements/toolbar/index.ts +0 -1
  680. package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
  681. package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
  682. package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
  683. package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
  684. package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
  685. package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
  686. package/src/components/ai-elements/web-preview/context.ts +0 -25
  687. package/src/components/ai-elements/web-preview/index.ts +0 -7
  688. package/src/components/ui/alert/Alert.vue +0 -21
  689. package/src/components/ui/alert/AlertDescription.vue +0 -17
  690. package/src/components/ui/alert/AlertTitle.vue +0 -17
  691. package/src/components/ui/alert/index.ts +0 -24
  692. package/src/components/ui/avatar/Avatar.vue +0 -18
  693. package/src/components/ui/avatar/AvatarFallback.vue +0 -21
  694. package/src/components/ui/avatar/AvatarImage.vue +0 -16
  695. package/src/components/ui/avatar/index.ts +0 -3
  696. package/src/components/ui/badge/Badge.vue +0 -26
  697. package/src/components/ui/badge/index.ts +0 -26
  698. package/src/components/ui/button/Button.vue +0 -29
  699. package/src/components/ui/button/index.ts +0 -38
  700. package/src/components/ui/button-group/ButtonGroup.vue +0 -22
  701. package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
  702. package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
  703. package/src/components/ui/button-group/index.ts +0 -25
  704. package/src/components/ui/card/Card.vue +0 -22
  705. package/src/components/ui/card/CardAction.vue +0 -17
  706. package/src/components/ui/card/CardContent.vue +0 -17
  707. package/src/components/ui/card/CardDescription.vue +0 -17
  708. package/src/components/ui/card/CardFooter.vue +0 -17
  709. package/src/components/ui/card/CardHeader.vue +0 -17
  710. package/src/components/ui/card/CardTitle.vue +0 -17
  711. package/src/components/ui/card/index.ts +0 -7
  712. package/src/components/ui/carousel/Carousel.vue +0 -53
  713. package/src/components/ui/carousel/CarouselContent.vue +0 -33
  714. package/src/components/ui/carousel/CarouselItem.vue +0 -24
  715. package/src/components/ui/carousel/CarouselNext.vue +0 -41
  716. package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
  717. package/src/components/ui/carousel/index.ts +0 -10
  718. package/src/components/ui/carousel/interface.ts +0 -26
  719. package/src/components/ui/carousel/useCarousel.ts +0 -56
  720. package/src/components/ui/collapsible/Collapsible.vue +0 -19
  721. package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
  722. package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
  723. package/src/components/ui/collapsible/index.ts +0 -3
  724. package/src/components/ui/command/Command.vue +0 -87
  725. package/src/components/ui/command/CommandDialog.vue +0 -31
  726. package/src/components/ui/command/CommandEmpty.vue +0 -27
  727. package/src/components/ui/command/CommandGroup.vue +0 -45
  728. package/src/components/ui/command/CommandInput.vue +0 -39
  729. package/src/components/ui/command/CommandItem.vue +0 -76
  730. package/src/components/ui/command/CommandList.vue +0 -25
  731. package/src/components/ui/command/CommandSeparator.vue +0 -21
  732. package/src/components/ui/command/CommandShortcut.vue +0 -17
  733. package/src/components/ui/command/index.ts +0 -25
  734. package/src/components/ui/dialog/Dialog.vue +0 -19
  735. package/src/components/ui/dialog/DialogClose.vue +0 -15
  736. package/src/components/ui/dialog/DialogContent.vue +0 -53
  737. package/src/components/ui/dialog/DialogDescription.vue +0 -23
  738. package/src/components/ui/dialog/DialogFooter.vue +0 -15
  739. package/src/components/ui/dialog/DialogHeader.vue +0 -17
  740. package/src/components/ui/dialog/DialogOverlay.vue +0 -21
  741. package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
  742. package/src/components/ui/dialog/DialogTitle.vue +0 -23
  743. package/src/components/ui/dialog/DialogTrigger.vue +0 -15
  744. package/src/components/ui/dialog/index.ts +0 -10
  745. package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
  746. package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
  747. package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
  748. package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
  749. package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
  750. package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
  751. package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
  752. package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
  753. package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
  754. package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
  755. package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
  756. package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
  757. package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
  758. package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
  759. package/src/components/ui/dropdown-menu/index.ts +0 -16
  760. package/src/components/ui/hover-card/HoverCard.vue +0 -19
  761. package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
  762. package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
  763. package/src/components/ui/hover-card/index.ts +0 -3
  764. package/src/components/ui/input/Input.vue +0 -33
  765. package/src/components/ui/input/index.ts +0 -1
  766. package/src/components/ui/input-group/InputGroup.vue +0 -37
  767. package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
  768. package/src/components/ui/input-group/InputGroupButton.vue +0 -21
  769. package/src/components/ui/input-group/InputGroupInput.vue +0 -19
  770. package/src/components/ui/input-group/InputGroupText.vue +0 -19
  771. package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
  772. package/src/components/ui/input-group/index.ts +0 -59
  773. package/src/components/ui/progress/Progress.vue +0 -38
  774. package/src/components/ui/progress/index.ts +0 -1
  775. package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
  776. package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
  777. package/src/components/ui/scroll-area/index.ts +0 -2
  778. package/src/components/ui/select/Select.vue +0 -19
  779. package/src/components/ui/select/SelectContent.vue +0 -51
  780. package/src/components/ui/select/SelectGroup.vue +0 -15
  781. package/src/components/ui/select/SelectItem.vue +0 -44
  782. package/src/components/ui/select/SelectItemText.vue +0 -15
  783. package/src/components/ui/select/SelectLabel.vue +0 -17
  784. package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
  785. package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
  786. package/src/components/ui/select/SelectSeparator.vue +0 -19
  787. package/src/components/ui/select/SelectTrigger.vue +0 -33
  788. package/src/components/ui/select/SelectValue.vue +0 -15
  789. package/src/components/ui/select/index.ts +0 -11
  790. package/src/components/ui/separator/Separator.vue +0 -29
  791. package/src/components/ui/separator/index.ts +0 -1
  792. package/src/components/ui/textarea/Textarea.vue +0 -28
  793. package/src/components/ui/textarea/index.ts +0 -1
  794. package/src/components/ui/tooltip/Tooltip.vue +0 -19
  795. package/src/components/ui/tooltip/TooltipContent.vue +0 -34
  796. package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
  797. package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
  798. package/src/components/ui/tooltip/index.ts +0 -4
  799. package/src/composables/useChat.ts +0 -46
  800. package/src/index.ts +0 -3
  801. package/src/lib/utils.ts +0 -7
  802. package/src/main.ts +0 -5
  803. package/src/request/index.ts +0 -41
  804. package/src/style.css +0 -120
  805. package/tsconfig.app.json +0 -25
  806. package/tsconfig.json +0 -13
  807. package/tsconfig.node.json +0 -26
  808. package/vite.config.ts +0 -26
  809. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,2515 @@
1
+ import { _ as setLogLevel, g as log, h as __name, m as __export } from "./src-B-SBGd0A.js";
2
+ var Channel = {
3
+ min: {
4
+ r: 0,
5
+ g: 0,
6
+ b: 0,
7
+ s: 0,
8
+ l: 0,
9
+ a: 0
10
+ },
11
+ max: {
12
+ r: 255,
13
+ g: 255,
14
+ b: 255,
15
+ h: 360,
16
+ s: 100,
17
+ l: 100,
18
+ a: 1
19
+ },
20
+ clamp: {
21
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
22
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
23
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ h: (e) => e % 360,
25
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
26
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
27
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
28
+ },
29
+ toLinear: (e) => {
30
+ let t = e / 255;
31
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
32
+ },
33
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
34
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
35
+ if (!t) return n * 2.55;
36
+ e /= 360, t /= 100, n /= 100;
37
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
38
+ switch (r) {
39
+ case "r": return Channel.hue2rgb(o, a, e + 1 / 3) * 255;
40
+ case "g": return Channel.hue2rgb(o, a, e) * 255;
41
+ case "b": return Channel.hue2rgb(o, a, e - 1 / 3) * 255;
42
+ }
43
+ },
44
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
45
+ e /= 255, t /= 255, n /= 255;
46
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
47
+ if (r === "l") return o * 100;
48
+ if (i === a) return 0;
49
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
50
+ if (r === "s") return c * 100;
51
+ switch (i) {
52
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
53
+ case t: return ((n - e) / s + 2) * 60;
54
+ case n: return ((e - t) / s + 4) * 60;
55
+ default: return -1;
56
+ }
57
+ }
58
+ }, utils_default = {
59
+ channel: Channel,
60
+ lang: {
61
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
62
+ round: (e) => Math.round(e * 1e10) / 1e10
63
+ },
64
+ unit: { dec2hex: (e) => {
65
+ let t = Math.round(e).toString(16);
66
+ return t.length > 1 ? t : `0${t}`;
67
+ } }
68
+ }, DEC2HEX = {};
69
+ for (let e = 0; e <= 255; e++) DEC2HEX[e] = utils_default.unit.dec2hex(e);
70
+ var TYPE = {
71
+ ALL: 0,
72
+ RGB: 1,
73
+ HSL: 2
74
+ }, type_default = class {
75
+ constructor() {
76
+ this.type = TYPE.ALL;
77
+ }
78
+ get() {
79
+ return this.type;
80
+ }
81
+ set(e) {
82
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
83
+ this.type = e;
84
+ }
85
+ reset() {
86
+ this.type = TYPE.ALL;
87
+ }
88
+ is(e) {
89
+ return this.type === e;
90
+ }
91
+ }, reusable_default = new class {
92
+ constructor(e, t) {
93
+ this.color = t, this.changed = !1, this.data = e, this.type = new type_default();
94
+ }
95
+ set(e, t) {
96
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = TYPE.ALL, this;
97
+ }
98
+ _ensureHSL() {
99
+ let e = this.data, { h: t, s: n, l: r } = e;
100
+ t === void 0 && (e.h = utils_default.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = utils_default.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = utils_default.channel.rgb2hsl(e, "l"));
101
+ }
102
+ _ensureRGB() {
103
+ let e = this.data, { r: t, g: n, b: r } = e;
104
+ t === void 0 && (e.r = utils_default.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = utils_default.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = utils_default.channel.hsl2rgb(e, "b"));
105
+ }
106
+ get r() {
107
+ let e = this.data, t = e.r;
108
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "r"));
109
+ }
110
+ get g() {
111
+ let e = this.data, t = e.g;
112
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "g"));
113
+ }
114
+ get b() {
115
+ let e = this.data, t = e.b;
116
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "b"));
117
+ }
118
+ get h() {
119
+ let e = this.data, t = e.h;
120
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "h"));
121
+ }
122
+ get s() {
123
+ let e = this.data, t = e.s;
124
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "s"));
125
+ }
126
+ get l() {
127
+ let e = this.data, t = e.l;
128
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "l"));
129
+ }
130
+ get a() {
131
+ return this.data.a;
132
+ }
133
+ set r(e) {
134
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.r = e;
135
+ }
136
+ set g(e) {
137
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.g = e;
138
+ }
139
+ set b(e) {
140
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.b = e;
141
+ }
142
+ set h(e) {
143
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.h = e;
144
+ }
145
+ set s(e) {
146
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.s = e;
147
+ }
148
+ set l(e) {
149
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.l = e;
150
+ }
151
+ set a(e) {
152
+ this.changed = !0, this.data.a = e;
153
+ }
154
+ }({
155
+ r: 0,
156
+ g: 0,
157
+ b: 0,
158
+ a: 0
159
+ }, "transparent"), Hex = {
160
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
161
+ parse: (e) => {
162
+ if (e.charCodeAt(0) !== 35) return;
163
+ let t = e.match(Hex.re);
164
+ if (!t) return;
165
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
166
+ return reusable_default.set({
167
+ r: (r >> c * (d + 3) & f) * s,
168
+ g: (r >> c * (d + 2) & f) * s,
169
+ b: (r >> c * (d + 1) & f) * s,
170
+ a: a ? (r & f) * s / 255 : 1
171
+ }, e);
172
+ },
173
+ stringify: (e) => {
174
+ let { r: t, g: n, b: r, a: i } = e;
175
+ return i < 1 ? `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}${DEC2HEX[Math.round(i * 255)]}` : `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}`;
176
+ }
177
+ }, hex_default = Hex, HSL = {
178
+ 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,
179
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
180
+ _hue2deg: (e) => {
181
+ let t = e.match(HSL.hueRe);
182
+ if (t) {
183
+ let [, e, n] = t;
184
+ switch (n) {
185
+ case "grad": return utils_default.channel.clamp.h(parseFloat(e) * .9);
186
+ case "rad": return utils_default.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
187
+ case "turn": return utils_default.channel.clamp.h(parseFloat(e) * 360);
188
+ }
189
+ }
190
+ return utils_default.channel.clamp.h(parseFloat(e));
191
+ },
192
+ parse: (e) => {
193
+ let t = e.charCodeAt(0);
194
+ if (t !== 104 && t !== 72) return;
195
+ let n = e.match(HSL.re);
196
+ if (!n) return;
197
+ let [, r, i, o, s, c] = n;
198
+ return reusable_default.set({
199
+ h: HSL._hue2deg(r),
200
+ s: utils_default.channel.clamp.s(parseFloat(i)),
201
+ l: utils_default.channel.clamp.l(parseFloat(o)),
202
+ a: s ? utils_default.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
203
+ }, e);
204
+ },
205
+ stringify: (e) => {
206
+ let { h: t, s: n, l: r, a: i } = e;
207
+ return i < 1 ? `hsla(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%, ${i})` : `hsl(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%)`;
208
+ }
209
+ }, hsl_default = HSL, Keyword = {
210
+ colors: {
211
+ aliceblue: "#f0f8ff",
212
+ antiquewhite: "#faebd7",
213
+ aqua: "#00ffff",
214
+ aquamarine: "#7fffd4",
215
+ azure: "#f0ffff",
216
+ beige: "#f5f5dc",
217
+ bisque: "#ffe4c4",
218
+ black: "#000000",
219
+ blanchedalmond: "#ffebcd",
220
+ blue: "#0000ff",
221
+ blueviolet: "#8a2be2",
222
+ brown: "#a52a2a",
223
+ burlywood: "#deb887",
224
+ cadetblue: "#5f9ea0",
225
+ chartreuse: "#7fff00",
226
+ chocolate: "#d2691e",
227
+ coral: "#ff7f50",
228
+ cornflowerblue: "#6495ed",
229
+ cornsilk: "#fff8dc",
230
+ crimson: "#dc143c",
231
+ cyanaqua: "#00ffff",
232
+ darkblue: "#00008b",
233
+ darkcyan: "#008b8b",
234
+ darkgoldenrod: "#b8860b",
235
+ darkgray: "#a9a9a9",
236
+ darkgreen: "#006400",
237
+ darkgrey: "#a9a9a9",
238
+ darkkhaki: "#bdb76b",
239
+ darkmagenta: "#8b008b",
240
+ darkolivegreen: "#556b2f",
241
+ darkorange: "#ff8c00",
242
+ darkorchid: "#9932cc",
243
+ darkred: "#8b0000",
244
+ darksalmon: "#e9967a",
245
+ darkseagreen: "#8fbc8f",
246
+ darkslateblue: "#483d8b",
247
+ darkslategray: "#2f4f4f",
248
+ darkslategrey: "#2f4f4f",
249
+ darkturquoise: "#00ced1",
250
+ darkviolet: "#9400d3",
251
+ deeppink: "#ff1493",
252
+ deepskyblue: "#00bfff",
253
+ dimgray: "#696969",
254
+ dimgrey: "#696969",
255
+ dodgerblue: "#1e90ff",
256
+ firebrick: "#b22222",
257
+ floralwhite: "#fffaf0",
258
+ forestgreen: "#228b22",
259
+ fuchsia: "#ff00ff",
260
+ gainsboro: "#dcdcdc",
261
+ ghostwhite: "#f8f8ff",
262
+ gold: "#ffd700",
263
+ goldenrod: "#daa520",
264
+ gray: "#808080",
265
+ green: "#008000",
266
+ greenyellow: "#adff2f",
267
+ grey: "#808080",
268
+ honeydew: "#f0fff0",
269
+ hotpink: "#ff69b4",
270
+ indianred: "#cd5c5c",
271
+ indigo: "#4b0082",
272
+ ivory: "#fffff0",
273
+ khaki: "#f0e68c",
274
+ lavender: "#e6e6fa",
275
+ lavenderblush: "#fff0f5",
276
+ lawngreen: "#7cfc00",
277
+ lemonchiffon: "#fffacd",
278
+ lightblue: "#add8e6",
279
+ lightcoral: "#f08080",
280
+ lightcyan: "#e0ffff",
281
+ lightgoldenrodyellow: "#fafad2",
282
+ lightgray: "#d3d3d3",
283
+ lightgreen: "#90ee90",
284
+ lightgrey: "#d3d3d3",
285
+ lightpink: "#ffb6c1",
286
+ lightsalmon: "#ffa07a",
287
+ lightseagreen: "#20b2aa",
288
+ lightskyblue: "#87cefa",
289
+ lightslategray: "#778899",
290
+ lightslategrey: "#778899",
291
+ lightsteelblue: "#b0c4de",
292
+ lightyellow: "#ffffe0",
293
+ lime: "#00ff00",
294
+ limegreen: "#32cd32",
295
+ linen: "#faf0e6",
296
+ magenta: "#ff00ff",
297
+ maroon: "#800000",
298
+ mediumaquamarine: "#66cdaa",
299
+ mediumblue: "#0000cd",
300
+ mediumorchid: "#ba55d3",
301
+ mediumpurple: "#9370db",
302
+ mediumseagreen: "#3cb371",
303
+ mediumslateblue: "#7b68ee",
304
+ mediumspringgreen: "#00fa9a",
305
+ mediumturquoise: "#48d1cc",
306
+ mediumvioletred: "#c71585",
307
+ midnightblue: "#191970",
308
+ mintcream: "#f5fffa",
309
+ mistyrose: "#ffe4e1",
310
+ moccasin: "#ffe4b5",
311
+ navajowhite: "#ffdead",
312
+ navy: "#000080",
313
+ oldlace: "#fdf5e6",
314
+ olive: "#808000",
315
+ olivedrab: "#6b8e23",
316
+ orange: "#ffa500",
317
+ orangered: "#ff4500",
318
+ orchid: "#da70d6",
319
+ palegoldenrod: "#eee8aa",
320
+ palegreen: "#98fb98",
321
+ paleturquoise: "#afeeee",
322
+ palevioletred: "#db7093",
323
+ papayawhip: "#ffefd5",
324
+ peachpuff: "#ffdab9",
325
+ peru: "#cd853f",
326
+ pink: "#ffc0cb",
327
+ plum: "#dda0dd",
328
+ powderblue: "#b0e0e6",
329
+ purple: "#800080",
330
+ rebeccapurple: "#663399",
331
+ red: "#ff0000",
332
+ rosybrown: "#bc8f8f",
333
+ royalblue: "#4169e1",
334
+ saddlebrown: "#8b4513",
335
+ salmon: "#fa8072",
336
+ sandybrown: "#f4a460",
337
+ seagreen: "#2e8b57",
338
+ seashell: "#fff5ee",
339
+ sienna: "#a0522d",
340
+ silver: "#c0c0c0",
341
+ skyblue: "#87ceeb",
342
+ slateblue: "#6a5acd",
343
+ slategray: "#708090",
344
+ slategrey: "#708090",
345
+ snow: "#fffafa",
346
+ springgreen: "#00ff7f",
347
+ tan: "#d2b48c",
348
+ teal: "#008080",
349
+ thistle: "#d8bfd8",
350
+ transparent: "#00000000",
351
+ turquoise: "#40e0d0",
352
+ violet: "#ee82ee",
353
+ wheat: "#f5deb3",
354
+ white: "#ffffff",
355
+ whitesmoke: "#f5f5f5",
356
+ yellow: "#ffff00",
357
+ yellowgreen: "#9acd32"
358
+ },
359
+ parse: (e) => {
360
+ e = e.toLowerCase();
361
+ let t = Keyword.colors[e];
362
+ if (t) return hex_default.parse(t);
363
+ },
364
+ stringify: (e) => {
365
+ let t = hex_default.stringify(e);
366
+ for (let e in Keyword.colors) if (Keyword.colors[e] === t) return e;
367
+ }
368
+ }, keyword_default = Keyword, RGB = {
369
+ 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,
370
+ parse: (e) => {
371
+ let t = e.charCodeAt(0);
372
+ if (t !== 114 && t !== 82) return;
373
+ let n = e.match(RGB.re);
374
+ if (!n) return;
375
+ let [, r, i, o, s, c, u, d, f] = n;
376
+ return reusable_default.set({
377
+ r: utils_default.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
378
+ g: utils_default.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
379
+ b: utils_default.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
380
+ a: d ? utils_default.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
381
+ }, e);
382
+ },
383
+ stringify: (e) => {
384
+ let { r: t, g: n, b: r, a: i } = e;
385
+ return i < 1 ? `rgba(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)}, ${utils_default.lang.round(i)})` : `rgb(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)})`;
386
+ }
387
+ }, rgb_default = RGB, color_default = {
388
+ format: {
389
+ keyword: keyword_default,
390
+ hex: hex_default,
391
+ rgb: rgb_default,
392
+ rgba: rgb_default,
393
+ hsl: hsl_default,
394
+ hsla: hsl_default
395
+ },
396
+ parse: (e) => {
397
+ if (typeof e != "string") return e;
398
+ let t = hex_default.parse(e) || rgb_default.parse(e) || hsl_default.parse(e) || keyword_default.parse(e);
399
+ if (t) return t;
400
+ throw Error(`Unsupported color format: "${e}"`);
401
+ },
402
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(TYPE.HSL) || e.data.r === void 0 ? hsl_default.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? rgb_default.stringify(e) : hex_default.stringify(e)
403
+ }, change_default = (e, t) => {
404
+ let n = color_default.parse(e);
405
+ for (let e in t) n[e] = utils_default.channel.clamp[e](t[e]);
406
+ return color_default.stringify(n);
407
+ }, rgba_default = (e, t, n = 0, r = 1) => {
408
+ if (typeof e != "number") return change_default(e, { a: t });
409
+ let i = reusable_default.set({
410
+ r: utils_default.channel.clamp.r(e),
411
+ g: utils_default.channel.clamp.g(t),
412
+ b: utils_default.channel.clamp.b(n),
413
+ a: utils_default.channel.clamp.a(r)
414
+ });
415
+ return color_default.stringify(i);
416
+ }, luminance_default = (e) => {
417
+ let { r: t, g: n, b: r } = color_default.parse(e), i = .2126 * utils_default.channel.toLinear(t) + .7152 * utils_default.channel.toLinear(n) + .0722 * utils_default.channel.toLinear(r);
418
+ return utils_default.lang.round(i);
419
+ }, is_light_default = (e) => luminance_default(e) >= .5, is_dark_default = (e) => !is_light_default(e), adjust_channel_default = (e, t, n) => {
420
+ let r = color_default.parse(e), i = r[t], o = utils_default.channel.clamp[t](i + n);
421
+ return i !== o && (r[t] = o), color_default.stringify(r);
422
+ }, lighten_default = (e, t) => adjust_channel_default(e, "l", t), darken_default = (e, t) => adjust_channel_default(e, "l", -t), adjust_default = (e, t) => {
423
+ let n = color_default.parse(e), r = {};
424
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
425
+ return change_default(e, r);
426
+ }, mix_default = (e, t, n = 50) => {
427
+ let { r, g: i, b: a, a: o } = color_default.parse(e), { r: s, g: c, b: l, a: u } = color_default.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, h = 1 - m;
428
+ return rgba_default(r * m + s * h, i * m + c * h, a * m + l * h, o * d + u * (1 - d));
429
+ }, invert_default = (e, t = 100) => {
430
+ let n = color_default.parse(e);
431
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mix_default(n, e, t);
432
+ }, { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object, { freeze, seal, create } = Object, { apply, construct } = typeof Reflect < "u" && Reflect;
433
+ freeze ||= function(e) {
434
+ return e;
435
+ }, seal ||= function(e) {
436
+ return e;
437
+ }, apply ||= function(e, t) {
438
+ var n = [...arguments].slice(2);
439
+ return e.apply(t, n);
440
+ }, construct ||= function(e) {
441
+ return new e(...[...arguments].slice(1));
442
+ };
443
+ var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
444
+ function unapply(e) {
445
+ return function(t) {
446
+ t instanceof RegExp && (t.lastIndex = 0);
447
+ var n = [...arguments].slice(1);
448
+ return apply(e, t, n);
449
+ };
450
+ }
451
+ function unconstruct(e) {
452
+ return function() {
453
+ return construct(e, [...arguments]);
454
+ };
455
+ }
456
+ function addToSet(e, t) {
457
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
458
+ setPrototypeOf && setPrototypeOf(e, null);
459
+ let r = t.length;
460
+ for (; r--;) {
461
+ let i = t[r];
462
+ if (typeof i == "string") {
463
+ let e = n(i);
464
+ e !== i && (isFrozen(t) || (t[r] = e), i = e);
465
+ }
466
+ e[i] = !0;
467
+ }
468
+ return e;
469
+ }
470
+ function cleanArray(e) {
471
+ for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
472
+ return e;
473
+ }
474
+ function clone(e) {
475
+ let t = create(null);
476
+ for (let [n, r] of entries(e)) objectHasOwnProperty(e, n) && (Array.isArray(r) ? t[n] = cleanArray(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = clone(r) : t[n] = r);
477
+ return t;
478
+ }
479
+ function lookupGetter(e, t) {
480
+ for (; e !== null;) {
481
+ let n = getOwnPropertyDescriptor(e, t);
482
+ if (n) {
483
+ if (n.get) return unapply(n.get);
484
+ if (typeof n.value == "function") return unapply(n.value);
485
+ }
486
+ e = getPrototypeOf(e);
487
+ }
488
+ function n() {
489
+ return null;
490
+ }
491
+ return n;
492
+ }
493
+ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), svg$1 = freeze(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
494
+ "feBlend",
495
+ "feColorMatrix",
496
+ "feComponentTransfer",
497
+ "feComposite",
498
+ "feConvolveMatrix",
499
+ "feDiffuseLighting",
500
+ "feDisplacementMap",
501
+ "feDistantLight",
502
+ "feDropShadow",
503
+ "feFlood",
504
+ "feFuncA",
505
+ "feFuncB",
506
+ "feFuncG",
507
+ "feFuncR",
508
+ "feGaussianBlur",
509
+ "feImage",
510
+ "feMerge",
511
+ "feMergeNode",
512
+ "feMorphology",
513
+ "feOffset",
514
+ "fePointLight",
515
+ "feSpecularLighting",
516
+ "feSpotLight",
517
+ "feTile",
518
+ "feTurbulence"
519
+ ]), svgDisallowed = freeze([
520
+ "animate",
521
+ "color-profile",
522
+ "cursor",
523
+ "discard",
524
+ "font-face",
525
+ "font-face-format",
526
+ "font-face-name",
527
+ "font-face-src",
528
+ "font-face-uri",
529
+ "foreignobject",
530
+ "hatch",
531
+ "hatchpath",
532
+ "mesh",
533
+ "meshgradient",
534
+ "meshpatch",
535
+ "meshrow",
536
+ "missing-glyph",
537
+ "script",
538
+ "set",
539
+ "solidcolor",
540
+ "unknown",
541
+ "use"
542
+ ]), mathMl$1 = freeze(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), mathMlDisallowed = freeze([
543
+ "maction",
544
+ "maligngroup",
545
+ "malignmark",
546
+ "mlongdiv",
547
+ "mscarries",
548
+ "mscarry",
549
+ "msgroup",
550
+ "mstack",
551
+ "msline",
552
+ "msrow",
553
+ "semantics",
554
+ "annotation",
555
+ "annotation-xml",
556
+ "mprescripts",
557
+ "none"
558
+ ]), text = freeze(["#text"]), html = freeze(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), svg = freeze(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), mathMl = freeze(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), xml = freeze([
559
+ "xlink:href",
560
+ "xml:id",
561
+ "xlink:title",
562
+ "xml:space",
563
+ "xmlns:xlink"
564
+ ]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), EXPRESSIONS = /* @__PURE__ */ Object.freeze({
565
+ __proto__: null,
566
+ ARIA_ATTR,
567
+ ATTR_WHITESPACE,
568
+ CUSTOM_ELEMENT,
569
+ DATA_ATTR,
570
+ DOCTYPE_NAME,
571
+ ERB_EXPR,
572
+ IS_ALLOWED_URI,
573
+ IS_SCRIPT_OR_DATA,
574
+ MUSTACHE_EXPR,
575
+ TMPLIT_EXPR
576
+ }), NODE_TYPE = {
577
+ element: 1,
578
+ attribute: 2,
579
+ text: 3,
580
+ cdataSection: 4,
581
+ entityReference: 5,
582
+ entityNode: 6,
583
+ progressingInstruction: 7,
584
+ comment: 8,
585
+ document: 9,
586
+ documentType: 10,
587
+ documentFragment: 11,
588
+ notation: 12
589
+ }, getGlobal = function() {
590
+ return typeof window > "u" ? null : window;
591
+ }, _createTrustedTypesPolicy = function(e, t) {
592
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
593
+ let n = null, r = "data-tt-policy-suffix";
594
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
595
+ let i = "dompurify" + (n ? "#" + n : "");
596
+ try {
597
+ return e.createPolicy(i, {
598
+ createHTML(e) {
599
+ return e;
600
+ },
601
+ createScriptURL(e) {
602
+ return e;
603
+ }
604
+ });
605
+ } catch {
606
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
607
+ }
608
+ }, _createHooksMap = function() {
609
+ return {
610
+ afterSanitizeAttributes: [],
611
+ afterSanitizeElements: [],
612
+ afterSanitizeShadowDOM: [],
613
+ beforeSanitizeAttributes: [],
614
+ beforeSanitizeElements: [],
615
+ beforeSanitizeShadowDOM: [],
616
+ uponSanitizeAttribute: [],
617
+ uponSanitizeElement: [],
618
+ uponSanitizeShadowNode: []
619
+ };
620
+ };
621
+ function createDOMPurify() {
622
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
623
+ if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
624
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = lookupGetter(m, "cloneNode"), Wt = lookupGetter(m, "remove"), Gt = lookupGetter(m, "nextSibling"), Kt = lookupGetter(m, "childNodes"), g = lookupGetter(m, "parentNode");
625
+ if (typeof o == "function") {
626
+ let e = n.createElement("template");
627
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
628
+ }
629
+ let _, v = "", { implementation: y, createNodeIterator: qt, createDocumentFragment: Jt, getElementsByTagName: Yt } = n, { importNode: Xt } = r, b = _createHooksMap();
630
+ t.isSupported = typeof entries == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
631
+ let { MUSTACHE_EXPR: x, ERB_EXPR: Zt, TMPLIT_EXPR: Qt, DATA_ATTR: $t, ARIA_ATTR: en, IS_SCRIPT_OR_DATA: tn, ATTR_WHITESPACE: nn, CUSTOM_ELEMENT: rn } = EXPRESSIONS, { IS_ALLOWED_URI: an } = EXPRESSIONS, S = null, on = addToSet({}, [
632
+ ...html$1,
633
+ ...svg$1,
634
+ ...svgFilters,
635
+ ...mathMl$1,
636
+ ...text
637
+ ]), C = null, sn = addToSet({}, [
638
+ ...html,
639
+ ...svg,
640
+ ...mathMl,
641
+ ...xml
642
+ ]), w = Object.seal(create(null, {
643
+ tagNameCheck: {
644
+ writable: !0,
645
+ configurable: !1,
646
+ enumerable: !0,
647
+ value: null
648
+ },
649
+ attributeNameCheck: {
650
+ writable: !0,
651
+ configurable: !1,
652
+ enumerable: !0,
653
+ value: null
654
+ },
655
+ allowCustomizedBuiltInElements: {
656
+ writable: !0,
657
+ configurable: !1,
658
+ enumerable: !0,
659
+ value: !1
660
+ }
661
+ })), T = null, E = null, D = Object.seal(create(null, {
662
+ tagCheck: {
663
+ writable: !0,
664
+ configurable: !1,
665
+ enumerable: !0,
666
+ value: null
667
+ },
668
+ attributeCheck: {
669
+ writable: !0,
670
+ configurable: !1,
671
+ enumerable: !0,
672
+ value: null
673
+ }
674
+ })), cn = !0, O = !0, ln = !1, un = !0, k = !1, A = !0, j = !1, M = !1, N = !1, P = !1, F = !1, I = !1, dn = !0, fn = !1, L = !0, R = !1, z = {}, B = null, pn = addToSet({}, [
675
+ "annotation-xml",
676
+ "audio",
677
+ "colgroup",
678
+ "desc",
679
+ "foreignobject",
680
+ "head",
681
+ "iframe",
682
+ "math",
683
+ "mi",
684
+ "mn",
685
+ "mo",
686
+ "ms",
687
+ "mtext",
688
+ "noembed",
689
+ "noframes",
690
+ "noscript",
691
+ "plaintext",
692
+ "script",
693
+ "style",
694
+ "svg",
695
+ "template",
696
+ "thead",
697
+ "title",
698
+ "video",
699
+ "xmp"
700
+ ]), mn = null, hn = addToSet({}, [
701
+ "audio",
702
+ "video",
703
+ "img",
704
+ "source",
705
+ "image",
706
+ "track"
707
+ ]), gn = null, _n = addToSet({}, [
708
+ "alt",
709
+ "class",
710
+ "for",
711
+ "id",
712
+ "label",
713
+ "name",
714
+ "pattern",
715
+ "placeholder",
716
+ "role",
717
+ "summary",
718
+ "title",
719
+ "value",
720
+ "style",
721
+ "xmlns"
722
+ ]), V = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", W = U, vn = !1, yn = null, bn = addToSet({}, [
723
+ V,
724
+ H,
725
+ U
726
+ ], stringToString), G = addToSet({}, [
727
+ "mi",
728
+ "mo",
729
+ "mn",
730
+ "ms",
731
+ "mtext"
732
+ ]), K = addToSet({}, ["annotation-xml"]), xn = addToSet({}, [
733
+ "title",
734
+ "style",
735
+ "font",
736
+ "a",
737
+ "script"
738
+ ]), q = null, Sn = ["application/xhtml+xml", "text/html"], J = null, Y = null, Cn = n.createElement("form"), wn = function(e) {
739
+ return e instanceof RegExp || e instanceof Function;
740
+ }, Tn = function() {
741
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
742
+ if (!(Y && Y === e)) {
743
+ if ((!e || typeof e != "object") && (e = {}), e = clone(e), q = Sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? stringToString : stringToLowerCase, S = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, J) : on, C = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, J) : sn, yn = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : bn, gn = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(_n), e.ADD_URI_SAFE_ATTR, J) : _n, mn = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(hn), e.ADD_DATA_URI_TAGS, J) : hn, B = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, J) : pn, T = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, J) : clone({}), E = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, J) : clone({}), z = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, cn = e.ALLOW_ARIA_ATTR !== !1, O = e.ALLOW_DATA_ATTR !== !1, ln = e.ALLOW_UNKNOWN_PROTOCOLS || !1, un = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = e.SAFE_FOR_TEMPLATES || !1, A = e.SAFE_FOR_XML !== !1, j = e.WHOLE_DOCUMENT || !1, P = e.RETURN_DOM || !1, F = e.RETURN_DOM_FRAGMENT || !1, I = e.RETURN_TRUSTED_TYPE || !1, N = e.FORCE_BODY || !1, dn = e.SANITIZE_DOM !== !1, fn = e.SANITIZE_NAMED_PROPS || !1, L = e.KEEP_CONTENT !== !1, R = e.IN_PLACE || !1, an = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, W = e.NAMESPACE || U, G = e.MATHML_TEXT_INTEGRATION_POINTS || G, K = e.HTML_INTEGRATION_POINTS || K, w = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (w.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (w.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (O = !1), F && (P = !0), z && (S = addToSet({}, text), C = [], z.html === !0 && (addToSet(S, html$1), addToSet(C, html)), z.svg === !0 && (addToSet(S, svg$1), addToSet(C, svg), addToSet(C, xml)), z.svgFilters === !0 && (addToSet(S, svgFilters), addToSet(C, svg), addToSet(C, xml)), z.mathMl === !0 && (addToSet(S, mathMl$1), addToSet(C, mathMl), addToSet(C, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? D.tagCheck = e.ADD_TAGS : (S === on && (S = clone(S)), addToSet(S, e.ADD_TAGS, J))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? D.attributeCheck = e.ADD_ATTR : (C === sn && (C = clone(C)), addToSet(C, e.ADD_ATTR, J))), e.ADD_URI_SAFE_ATTR && addToSet(gn, e.ADD_URI_SAFE_ATTR, J), e.FORBID_CONTENTS && (B === pn && (B = clone(B)), addToSet(B, e.FORBID_CONTENTS, J)), e.ADD_FORBID_CONTENTS && (B === pn && (B = clone(B)), addToSet(B, e.ADD_FORBID_CONTENTS, J)), L && (S["#text"] = !0), j && addToSet(S, [
744
+ "html",
745
+ "head",
746
+ "body"
747
+ ]), S.table && (addToSet(S, ["tbody"]), delete T.tbody), e.TRUSTED_TYPES_POLICY) {
748
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
749
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
750
+ _ = e.TRUSTED_TYPES_POLICY, v = _.createHTML("");
751
+ } else _ === void 0 && (_ = _createTrustedTypesPolicy(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
752
+ freeze && freeze(e), Y = e;
753
+ }
754
+ }, En = addToSet({}, [
755
+ ...svg$1,
756
+ ...svgFilters,
757
+ ...svgDisallowed
758
+ ]), Dn = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), On = function(e) {
759
+ let t = g(e);
760
+ (!t || !t.tagName) && (t = {
761
+ namespaceURI: W,
762
+ tagName: "template"
763
+ });
764
+ let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
765
+ return yn[e.namespaceURI] ? e.namespaceURI === H ? t.namespaceURI === U ? n === "svg" : t.namespaceURI === V ? n === "svg" && (r === "annotation-xml" || G[r]) : !!En[n] : e.namespaceURI === V ? t.namespaceURI === U ? n === "math" : t.namespaceURI === H ? n === "math" && K[r] : !!Dn[n] : e.namespaceURI === U ? t.namespaceURI === H && !K[r] || t.namespaceURI === V && !G[r] ? !1 : !Dn[n] && (xn[n] || !En[n]) : !!(q === "application/xhtml+xml" && yn[e.namespaceURI]) : !1;
766
+ }, X = function(e) {
767
+ arrayPush(t.removed, { element: e });
768
+ try {
769
+ g(e).removeChild(e);
770
+ } catch {
771
+ Wt(e);
772
+ }
773
+ }, Z = function(e, n) {
774
+ try {
775
+ arrayPush(t.removed, {
776
+ attribute: n.getAttributeNode(e),
777
+ from: n
778
+ });
779
+ } catch {
780
+ arrayPush(t.removed, {
781
+ attribute: null,
782
+ from: n
783
+ });
784
+ }
785
+ if (n.removeAttribute(e), e === "is") if (P || F) try {
786
+ X(n);
787
+ } catch {}
788
+ else try {
789
+ n.setAttribute(e, "");
790
+ } catch {}
791
+ }, kn = function(e) {
792
+ let t = null, r = null;
793
+ if (N) e = "<remove></remove>" + e;
794
+ else {
795
+ let t = stringMatch(e, /^[\r\n\t ]+/);
796
+ r = t && t[0];
797
+ }
798
+ q === "application/xhtml+xml" && W === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
799
+ let i = _ ? _.createHTML(e) : e;
800
+ if (W === U) try {
801
+ t = new f().parseFromString(i, q);
802
+ } catch {}
803
+ if (!t || !t.documentElement) {
804
+ t = y.createDocument(W, "template", null);
805
+ try {
806
+ t.documentElement.innerHTML = vn ? v : i;
807
+ } catch {}
808
+ }
809
+ let a = t.body || t.documentElement;
810
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), W === U ? Yt.call(t, j ? "html" : "body")[0] : j ? t.documentElement : a;
811
+ }, An = function(e) {
812
+ return qt.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
813
+ }, Q = function(e) {
814
+ return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
815
+ }, jn = function(e) {
816
+ return typeof s == "function" && e instanceof s;
817
+ };
818
+ function $(e, n, r) {
819
+ arrayForEach(e, (e) => {
820
+ e.call(t, n, r, Y);
821
+ });
822
+ }
823
+ let Mn = function(e) {
824
+ let n = null;
825
+ if ($(b.beforeSanitizeElements, e, null), Q(e)) return X(e), !0;
826
+ let r = J(e.nodeName);
827
+ if ($(b.uponSanitizeElement, e, {
828
+ tagName: r,
829
+ allowedTags: S
830
+ }), A && e.hasChildNodes() && !jn(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || A && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), !0;
831
+ if (!(D.tagCheck instanceof Function && D.tagCheck(r)) && (!S[r] || T[r])) {
832
+ if (!T[r] && Pn(r) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r))) return !1;
833
+ if (L && !B[r]) {
834
+ let t = g(e) || e.parentNode, n = Kt(e) || e.childNodes;
835
+ if (n && t) {
836
+ let r = n.length;
837
+ for (let i = r - 1; i >= 0; --i) {
838
+ let r = h(n[i], !0);
839
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Gt(e));
840
+ }
841
+ }
842
+ }
843
+ return X(e), !0;
844
+ }
845
+ return e instanceof c && !On(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (k && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
846
+ x,
847
+ Zt,
848
+ Qt
849
+ ], (e) => {
850
+ n = stringReplace(n, e, " ");
851
+ }), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(b.afterSanitizeElements, e, null), !1);
852
+ }, Nn = function(e, t, r) {
853
+ if (dn && (t === "id" || t === "name") && (r in n || r in Cn)) return !1;
854
+ if (!(O && !E[t] && regExpTest($t, t)) && !(cn && regExpTest(en, t)) && !(D.attributeCheck instanceof Function && D.attributeCheck(t, e))) {
855
+ if (!C[t] || E[t]) {
856
+ if (!(Pn(e) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, e) || w.tagNameCheck instanceof Function && w.tagNameCheck(e)) && (w.attributeNameCheck instanceof RegExp && regExpTest(w.attributeNameCheck, t) || w.attributeNameCheck instanceof Function && w.attributeNameCheck(t, e)) || t === "is" && w.allowCustomizedBuiltInElements && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r)))) return !1;
857
+ } else if (!gn[t] && !regExpTest(an, stringReplace(r, nn, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && mn[e]) && !(ln && !regExpTest(tn, stringReplace(r, nn, ""))) && r) return !1;
858
+ }
859
+ return !0;
860
+ }, Pn = function(e) {
861
+ return e !== "annotation-xml" && stringMatch(e, rn);
862
+ }, Fn = function(e) {
863
+ $(b.beforeSanitizeAttributes, e, null);
864
+ let { attributes: n } = e;
865
+ if (!n || Q(e)) return;
866
+ let r = {
867
+ attrName: "",
868
+ attrValue: "",
869
+ keepAttr: !0,
870
+ allowedAttributes: C,
871
+ forceKeepAttr: void 0
872
+ }, i = n.length;
873
+ for (; i--;) {
874
+ let { name: a, namespaceURI: o, value: s } = n[i], c = J(a), l = s, u = a === "value" ? l : stringTrim(l);
875
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(b.uponSanitizeAttribute, e, r), u = r.attrValue, fn && (c === "id" || c === "name") && (Z(a, e), u = "user-content-" + u), A && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
876
+ Z(a, e);
877
+ continue;
878
+ }
879
+ if (c === "attributename" && stringMatch(u, "href")) {
880
+ Z(a, e);
881
+ continue;
882
+ }
883
+ if (r.forceKeepAttr) continue;
884
+ if (!r.keepAttr) {
885
+ Z(a, e);
886
+ continue;
887
+ }
888
+ if (!un && regExpTest(/\/>/i, u)) {
889
+ Z(a, e);
890
+ continue;
891
+ }
892
+ k && arrayForEach([
893
+ x,
894
+ Zt,
895
+ Qt
896
+ ], (e) => {
897
+ u = stringReplace(u, e, " ");
898
+ });
899
+ let d = J(e.nodeName);
900
+ if (!Nn(d, c, u)) {
901
+ Z(a, e);
902
+ continue;
903
+ }
904
+ if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
905
+ case "TrustedHTML":
906
+ u = _.createHTML(u);
907
+ break;
908
+ case "TrustedScriptURL":
909
+ u = _.createScriptURL(u);
910
+ break;
911
+ }
912
+ if (u !== l) try {
913
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Q(e) ? X(e) : arrayPop(t.removed);
914
+ } catch {
915
+ Z(a, e);
916
+ }
917
+ }
918
+ $(b.afterSanitizeAttributes, e, null);
919
+ }, In = function e(t) {
920
+ let n = null, r = An(t);
921
+ for ($(b.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) $(b.uponSanitizeShadowNode, n, null), Mn(n), Fn(n), n.content instanceof a && e(n.content);
922
+ $(b.afterSanitizeShadowDOM, t, null);
923
+ };
924
+ return t.sanitize = function(e) {
925
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
926
+ if (vn = !e, vn && (e = "<!-->"), typeof e != "string" && !jn(e)) if (typeof e.toString == "function") {
927
+ if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
928
+ } else throw typeErrorCreate("toString is not a function");
929
+ if (!t.isSupported) return e;
930
+ if (M || Tn(n), t.removed = [], typeof e == "string" && (R = !1), R) {
931
+ if (e.nodeName) {
932
+ let t = J(e.nodeName);
933
+ if (!S[t] || T[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
934
+ }
935
+ } else if (e instanceof s) i = kn("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
936
+ else {
937
+ if (!P && !k && !j && e.indexOf("<") === -1) return _ && I ? _.createHTML(e) : e;
938
+ if (i = kn(e), !i) return P ? null : I ? v : "";
939
+ }
940
+ i && N && X(i.firstChild);
941
+ let u = An(R ? e : i);
942
+ for (; c = u.nextNode();) Mn(c), Fn(c), c.content instanceof a && In(c.content);
943
+ if (R) return e;
944
+ if (P) {
945
+ if (F) for (l = Jt.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
946
+ else l = i;
947
+ return (C.shadowroot || C.shadowrootmode) && (l = Xt.call(r, l, !0)), l;
948
+ }
949
+ let d = j ? i.outerHTML : i.innerHTML;
950
+ return j && S["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), k && arrayForEach([
951
+ x,
952
+ Zt,
953
+ Qt
954
+ ], (e) => {
955
+ d = stringReplace(d, e, " ");
956
+ }), _ && I ? _.createHTML(d) : d;
957
+ }, t.setConfig = function() {
958
+ Tn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), M = !0;
959
+ }, t.clearConfig = function() {
960
+ Y = null, M = !1;
961
+ }, t.isValidAttribute = function(e, t, n) {
962
+ return Y || Tn({}), Nn(J(e), J(t), n);
963
+ }, t.addHook = function(e, t) {
964
+ typeof t == "function" && arrayPush(b[e], t);
965
+ }, t.removeHook = function(e, t) {
966
+ if (t !== void 0) {
967
+ let n = arrayLastIndexOf(b[e], t);
968
+ return n === -1 ? void 0 : arraySplice(b[e], n, 1)[0];
969
+ }
970
+ return arrayPop(b[e]);
971
+ }, t.removeHooks = function(e) {
972
+ b[e] = [];
973
+ }, t.removeAllHooks = function() {
974
+ b = _createHooksMap();
975
+ }, t;
976
+ }
977
+ var purify = createDOMPurify(), frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
978
+ static #e = __name(this, "UnknownDiagramError");
979
+ constructor(e) {
980
+ super(e), this.name = "UnknownDiagramError";
981
+ }
982
+ }, detectors = {}, detectType = /* @__PURE__ */ __name(function(e, t) {
983
+ e = e.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
984
+ for (let [n, { detector: r }] of Object.entries(detectors)) if (r(e, t)) return n;
985
+ throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`);
986
+ }, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...e) => {
987
+ for (let { id: t, detector: n, loader: r } of e) addDetector(t, n, r);
988
+ }, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((e, n, r) => {
989
+ detectors[e] && log.warn(`Detector with key ${e} already exists. Overwriting.`), detectors[e] = {
990
+ detector: n,
991
+ loader: r
992
+ }, log.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
993
+ }, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((e) => detectors[e].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
994
+ let i = {
995
+ depth: n,
996
+ clobber: r
997
+ };
998
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => assignWithDepth(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
999
+ e.includes(t) || e.push(t);
1000
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1001
+ typeof t[i] == "object" && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = assignWithDepth(e[i], t[i], {
1002
+ depth: n - 1,
1003
+ clobber: r
1004
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1005
+ }), e);
1006
+ }, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((e, t) => t ? adjust_default(e, {
1007
+ s: -40,
1008
+ l: 10
1009
+ }) : adjust_default(e, {
1010
+ s: -40,
1011
+ l: -10
1012
+ }), "mkBorder"), Theme = class {
1013
+ static #e = __name(this, "Theme");
1014
+ constructor() {
1015
+ 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";
1016
+ }
1017
+ updateColors() {
1018
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
1019
+ h: 180,
1020
+ l: 5
1021
+ }), 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, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
1022
+ h: 210,
1023
+ l: 150
1024
+ }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 75);
1025
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 25);
1026
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1027
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1028
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1029
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1030
+ let e = this.darkMode ? -4 : -1;
1031
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || adjust_default(this.mainBkg, {
1032
+ h: 180,
1033
+ s: -15,
1034
+ l: e * (5 + t * 3)
1035
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || adjust_default(this.mainBkg, {
1036
+ h: 180,
1037
+ s: -15,
1038
+ l: e * (8 + t * 3)
1039
+ });
1040
+ 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, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1041
+ h: 60,
1042
+ l: -10
1043
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1044
+ h: -60,
1045
+ l: -10
1046
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1047
+ h: 120,
1048
+ l: 0
1049
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1050
+ h: 60,
1051
+ l: -20
1052
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1053
+ h: -60,
1054
+ l: -20
1055
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1056
+ h: 120,
1057
+ l: -10
1058
+ }), 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 = {
1059
+ axisColor: this.radar?.axisColor || this.lineColor,
1060
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1061
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1062
+ curveOpacity: this.radar?.curveOpacity || .5,
1063
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1064
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1065
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1066
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1067
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1068
+ legendFontSize: this.radar?.legendFontSize || 12
1069
+ }, 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, {
1070
+ r: 5,
1071
+ g: 5,
1072
+ b: 5
1073
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1074
+ r: 10,
1075
+ g: 10,
1076
+ b: 10
1077
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1078
+ r: 15,
1079
+ g: 15,
1080
+ b: 15
1081
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1082
+ r: -5,
1083
+ g: -5,
1084
+ b: -5
1085
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1086
+ r: -10,
1087
+ g: -10,
1088
+ b: -10
1089
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1090
+ r: -15,
1091
+ g: -15,
1092
+ b: -15
1093
+ }), 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 = {
1094
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1095
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1096
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1097
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1098
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1099
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1100
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1101
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1102
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1103
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1104
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1105
+ }, 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, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), 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;
1106
+ }
1107
+ calculate(e) {
1108
+ if (typeof e != "object") {
1109
+ this.updateColors();
1110
+ return;
1111
+ }
1112
+ let t = Object.keys(e);
1113
+ t.forEach((t) => {
1114
+ this[t] = e[t];
1115
+ }), this.updateColors(), t.forEach((t) => {
1116
+ this[t] = e[t];
1117
+ });
1118
+ }
1119
+ }, getThemeVariables = /* @__PURE__ */ __name((e) => {
1120
+ let t = new Theme();
1121
+ return t.calculate(e), t;
1122
+ }, "getThemeVariables"), Theme2 = class {
1123
+ static #e = __name(this, "Theme");
1124
+ constructor() {
1125
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), 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, .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";
1126
+ }
1127
+ updateColors() {
1128
+ 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, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
1129
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1130
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10);
1131
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1132
+ h: 30,
1133
+ s: -30,
1134
+ l: -(-10 + e * 4)
1135
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1136
+ h: 30,
1137
+ s: -30,
1138
+ l: -(-7 + e * 4)
1139
+ });
1140
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1141
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1142
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1143
+ 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, {
1144
+ r: 5,
1145
+ g: 5,
1146
+ b: 5
1147
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1148
+ r: 10,
1149
+ g: 10,
1150
+ b: 10
1151
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1152
+ r: 15,
1153
+ g: 15,
1154
+ b: 15
1155
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1156
+ r: -5,
1157
+ g: -5,
1158
+ b: -5
1159
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1160
+ r: -10,
1161
+ g: -10,
1162
+ b: -10
1163
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1164
+ r: -15,
1165
+ g: -15,
1166
+ b: -15
1167
+ }), 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 = {
1168
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1169
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1170
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1171
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1172
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1173
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1174
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1175
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1176
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1177
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1178
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1179
+ }, this.packet = {
1180
+ startByteColor: this.primaryTextColor,
1181
+ endByteColor: this.primaryTextColor,
1182
+ labelColor: this.primaryTextColor,
1183
+ titleColor: this.primaryTextColor,
1184
+ blockStrokeColor: this.primaryTextColor,
1185
+ blockFillColor: this.background
1186
+ }, this.radar = {
1187
+ axisColor: this.radar?.axisColor || this.lineColor,
1188
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1189
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1190
+ curveOpacity: this.radar?.curveOpacity || .5,
1191
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1192
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1193
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1194
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1195
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1196
+ legendFontSize: this.radar?.legendFontSize || 12
1197
+ }, 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, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 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";
1198
+ }
1199
+ calculate(e) {
1200
+ if (typeof e != "object") {
1201
+ this.updateColors();
1202
+ return;
1203
+ }
1204
+ let t = Object.keys(e);
1205
+ t.forEach((t) => {
1206
+ this[t] = e[t];
1207
+ }), this.updateColors(), t.forEach((t) => {
1208
+ this[t] = e[t];
1209
+ });
1210
+ }
1211
+ }, getThemeVariables2 = /* @__PURE__ */ __name((e) => {
1212
+ let t = new Theme2();
1213
+ return t.calculate(e), t;
1214
+ }, "getThemeVariables"), Theme3 = class {
1215
+ static #e = __name(this, "Theme");
1216
+ constructor() {
1217
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), 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, .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();
1218
+ }
1219
+ updateColors() {
1220
+ 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, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1221
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1222
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1223
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1224
+ h: 30,
1225
+ l: -(5 + e * 5)
1226
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1227
+ h: 30,
1228
+ l: -(7 + e * 5)
1229
+ });
1230
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1231
+ this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
1232
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1233
+ }
1234
+ 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, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1235
+ h: 60,
1236
+ l: -20
1237
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1238
+ h: -60,
1239
+ l: -40
1240
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1241
+ h: 120,
1242
+ l: -40
1243
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1244
+ h: 60,
1245
+ l: -40
1246
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1247
+ h: -90,
1248
+ l: -40
1249
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1250
+ h: 120,
1251
+ l: -30
1252
+ }), 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, {
1253
+ r: 5,
1254
+ g: 5,
1255
+ b: 5
1256
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1257
+ r: 10,
1258
+ g: 10,
1259
+ b: 10
1260
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1261
+ r: 15,
1262
+ g: 15,
1263
+ b: 15
1264
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1265
+ r: -5,
1266
+ g: -5,
1267
+ b: -5
1268
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1269
+ r: -10,
1270
+ g: -10,
1271
+ b: -10
1272
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1273
+ r: -15,
1274
+ g: -15,
1275
+ b: -15
1276
+ }), 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 = {
1277
+ axisColor: this.radar?.axisColor || this.lineColor,
1278
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1279
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1280
+ curveOpacity: this.radar?.curveOpacity || .5,
1281
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1282
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1283
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1284
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1285
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1286
+ legendFontSize: this.radar?.legendFontSize || 12
1287
+ }, this.xyChart = {
1288
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1289
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1290
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1291
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1292
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1293
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1294
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1295
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1296
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1297
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1298
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1299
+ }, 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, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), 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;
1300
+ }
1301
+ calculate(e) {
1302
+ if (Object.keys(this).forEach((e) => {
1303
+ this[e] === "calculated" && (this[e] = void 0);
1304
+ }), typeof e != "object") {
1305
+ this.updateColors();
1306
+ return;
1307
+ }
1308
+ let t = Object.keys(e);
1309
+ t.forEach((t) => {
1310
+ this[t] = e[t];
1311
+ }), this.updateColors(), t.forEach((t) => {
1312
+ this[t] = e[t];
1313
+ });
1314
+ }
1315
+ }, getThemeVariables3 = /* @__PURE__ */ __name((e) => {
1316
+ let t = new Theme3();
1317
+ return t.calculate(e), t;
1318
+ }, "getThemeVariables"), Theme4 = class {
1319
+ static #e = __name(this, "Theme");
1320
+ constructor() {
1321
+ 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";
1322
+ }
1323
+ updateColors() {
1324
+ 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, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1325
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1326
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1327
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1328
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1329
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1330
+ h: 30,
1331
+ s: -30,
1332
+ l: -(5 + e * 5)
1333
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1334
+ h: 30,
1335
+ s: -30,
1336
+ l: -(8 + e * 5)
1337
+ });
1338
+ 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, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
1339
+ h: 40,
1340
+ l: -40
1341
+ }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1342
+ h: 60,
1343
+ l: -10
1344
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1345
+ h: -60,
1346
+ l: -10
1347
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1348
+ h: 120,
1349
+ l: 0
1350
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1351
+ h: 60,
1352
+ l: -50
1353
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1354
+ h: -60,
1355
+ l: -50
1356
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1357
+ h: 120,
1358
+ l: -50
1359
+ }), 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, {
1360
+ r: 5,
1361
+ g: 5,
1362
+ b: 5
1363
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1364
+ r: 10,
1365
+ g: 10,
1366
+ b: 10
1367
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1368
+ r: 15,
1369
+ g: 15,
1370
+ b: 15
1371
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1372
+ r: -5,
1373
+ g: -5,
1374
+ b: -5
1375
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1376
+ r: -10,
1377
+ g: -10,
1378
+ b: -10
1379
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1380
+ r: -15,
1381
+ g: -15,
1382
+ b: -15
1383
+ }), 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 = {
1384
+ startByteColor: this.primaryTextColor,
1385
+ endByteColor: this.primaryTextColor,
1386
+ labelColor: this.primaryTextColor,
1387
+ titleColor: this.primaryTextColor,
1388
+ blockStrokeColor: this.primaryTextColor,
1389
+ blockFillColor: this.mainBkg
1390
+ }, this.radar = {
1391
+ axisColor: this.radar?.axisColor || this.lineColor,
1392
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1393
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1394
+ curveOpacity: this.radar?.curveOpacity || .5,
1395
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1396
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1397
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1398
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1399
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1400
+ legendFontSize: this.radar?.legendFontSize || 12
1401
+ }, this.xyChart = {
1402
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1403
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1404
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1405
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1406
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1407
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1408
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1409
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1410
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1411
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1412
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1413
+ }, 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, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), 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;
1414
+ }
1415
+ calculate(e) {
1416
+ if (typeof e != "object") {
1417
+ this.updateColors();
1418
+ return;
1419
+ }
1420
+ let t = Object.keys(e);
1421
+ t.forEach((t) => {
1422
+ this[t] = e[t];
1423
+ }), this.updateColors(), t.forEach((t) => {
1424
+ this[t] = e[t];
1425
+ });
1426
+ }
1427
+ }, getThemeVariables4 = /* @__PURE__ */ __name((e) => {
1428
+ let t = new Theme4();
1429
+ return t.calculate(e), t;
1430
+ }, "getThemeVariables"), Theme5 = class {
1431
+ static #e = __name(this, "Theme");
1432
+ constructor() {
1433
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), 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";
1434
+ }
1435
+ updateColors() {
1436
+ 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";
1437
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1438
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1439
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1440
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1441
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, { l: -(8 + e * 5) });
1442
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = 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, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
1443
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1444
+ this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1445
+ r: 5,
1446
+ g: 5,
1447
+ b: 5
1448
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1449
+ r: 10,
1450
+ g: 10,
1451
+ b: 10
1452
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1453
+ r: 15,
1454
+ g: 15,
1455
+ b: 15
1456
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1457
+ r: -5,
1458
+ g: -5,
1459
+ b: -5
1460
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1461
+ r: -10,
1462
+ g: -10,
1463
+ b: -10
1464
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1465
+ r: -15,
1466
+ g: -15,
1467
+ b: -15
1468
+ }), 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 = {
1469
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1470
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1471
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1472
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1473
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1474
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1475
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1476
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1477
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1478
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1479
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1480
+ }, this.radar = {
1481
+ axisColor: this.radar?.axisColor || this.lineColor,
1482
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1483
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1484
+ curveOpacity: this.radar?.curveOpacity || .5,
1485
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1486
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1487
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1488
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1489
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1490
+ legendFontSize: this.radar?.legendFontSize || 12
1491
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = 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, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 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;
1492
+ }
1493
+ calculate(e) {
1494
+ if (typeof e != "object") {
1495
+ this.updateColors();
1496
+ return;
1497
+ }
1498
+ let t = Object.keys(e);
1499
+ t.forEach((t) => {
1500
+ this[t] = e[t];
1501
+ }), this.updateColors(), t.forEach((t) => {
1502
+ this[t] = e[t];
1503
+ });
1504
+ }
1505
+ }, themes_default = {
1506
+ base: { getThemeVariables },
1507
+ dark: { getThemeVariables: getThemeVariables2 },
1508
+ default: { getThemeVariables: getThemeVariables3 },
1509
+ forest: { getThemeVariables: getThemeVariables4 },
1510
+ neutral: { getThemeVariables: /* @__PURE__ */ __name((e) => {
1511
+ let t = new Theme5();
1512
+ return t.calculate(e), t;
1513
+ }, "getThemeVariables") }
1514
+ }, config_schema_default = {
1515
+ flowchart: {
1516
+ useMaxWidth: !0,
1517
+ titleTopMargin: 25,
1518
+ subGraphTitleMargin: {
1519
+ top: 0,
1520
+ bottom: 0
1521
+ },
1522
+ diagramPadding: 8,
1523
+ htmlLabels: !0,
1524
+ nodeSpacing: 50,
1525
+ rankSpacing: 50,
1526
+ curve: "basis",
1527
+ padding: 15,
1528
+ defaultRenderer: "dagre-wrapper",
1529
+ wrappingWidth: 200,
1530
+ inheritDir: !1
1531
+ },
1532
+ sequence: {
1533
+ useMaxWidth: !0,
1534
+ hideUnusedParticipants: !1,
1535
+ activationWidth: 10,
1536
+ diagramMarginX: 50,
1537
+ diagramMarginY: 10,
1538
+ actorMargin: 50,
1539
+ width: 150,
1540
+ height: 65,
1541
+ boxMargin: 10,
1542
+ boxTextMargin: 5,
1543
+ noteMargin: 10,
1544
+ messageMargin: 35,
1545
+ messageAlign: "center",
1546
+ mirrorActors: !0,
1547
+ forceMenus: !1,
1548
+ bottomMarginAdj: 1,
1549
+ rightAngles: !1,
1550
+ showSequenceNumbers: !1,
1551
+ actorFontSize: 14,
1552
+ actorFontFamily: "\"Open Sans\", sans-serif",
1553
+ actorFontWeight: 400,
1554
+ noteFontSize: 14,
1555
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1556
+ noteFontWeight: 400,
1557
+ noteAlign: "center",
1558
+ messageFontSize: 16,
1559
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1560
+ messageFontWeight: 400,
1561
+ wrap: !1,
1562
+ wrapPadding: 10,
1563
+ labelBoxWidth: 50,
1564
+ labelBoxHeight: 20
1565
+ },
1566
+ gantt: {
1567
+ useMaxWidth: !0,
1568
+ titleTopMargin: 25,
1569
+ barHeight: 20,
1570
+ barGap: 4,
1571
+ topPadding: 50,
1572
+ rightPadding: 75,
1573
+ leftPadding: 75,
1574
+ gridLineStartPadding: 35,
1575
+ fontSize: 11,
1576
+ sectionFontSize: 11,
1577
+ numberSectionStyles: 4,
1578
+ axisFormat: "%Y-%m-%d",
1579
+ topAxis: !1,
1580
+ displayMode: "",
1581
+ weekday: "sunday"
1582
+ },
1583
+ journey: {
1584
+ useMaxWidth: !0,
1585
+ diagramMarginX: 50,
1586
+ diagramMarginY: 10,
1587
+ leftMargin: 150,
1588
+ maxLabelWidth: 360,
1589
+ width: 150,
1590
+ height: 50,
1591
+ boxMargin: 10,
1592
+ boxTextMargin: 5,
1593
+ noteMargin: 10,
1594
+ messageMargin: 35,
1595
+ messageAlign: "center",
1596
+ bottomMarginAdj: 1,
1597
+ rightAngles: !1,
1598
+ taskFontSize: 14,
1599
+ taskFontFamily: "\"Open Sans\", sans-serif",
1600
+ taskMargin: 50,
1601
+ activationWidth: 10,
1602
+ textPlacement: "fo",
1603
+ actorColours: [
1604
+ "#8FBC8F",
1605
+ "#7CFC00",
1606
+ "#00FFFF",
1607
+ "#20B2AA",
1608
+ "#B0E0E6",
1609
+ "#FFFFE0"
1610
+ ],
1611
+ sectionFills: [
1612
+ "#191970",
1613
+ "#8B008B",
1614
+ "#4B0082",
1615
+ "#2F4F4F",
1616
+ "#800000",
1617
+ "#8B4513",
1618
+ "#00008B"
1619
+ ],
1620
+ sectionColours: ["#fff"],
1621
+ titleColor: "",
1622
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1623
+ titleFontSize: "4ex"
1624
+ },
1625
+ class: {
1626
+ useMaxWidth: !0,
1627
+ titleTopMargin: 25,
1628
+ arrowMarkerAbsolute: !1,
1629
+ dividerMargin: 10,
1630
+ padding: 5,
1631
+ textHeight: 10,
1632
+ defaultRenderer: "dagre-wrapper",
1633
+ htmlLabels: !1,
1634
+ hideEmptyMembersBox: !1
1635
+ },
1636
+ state: {
1637
+ useMaxWidth: !0,
1638
+ titleTopMargin: 25,
1639
+ dividerMargin: 10,
1640
+ sizeUnit: 5,
1641
+ padding: 8,
1642
+ textHeight: 10,
1643
+ titleShift: -15,
1644
+ noteMargin: 10,
1645
+ forkWidth: 70,
1646
+ forkHeight: 7,
1647
+ miniPadding: 2,
1648
+ fontSizeFactor: 5.02,
1649
+ fontSize: 24,
1650
+ labelHeight: 16,
1651
+ edgeLengthFactor: "20",
1652
+ compositTitleSize: 35,
1653
+ radius: 5,
1654
+ defaultRenderer: "dagre-wrapper"
1655
+ },
1656
+ er: {
1657
+ useMaxWidth: !0,
1658
+ titleTopMargin: 25,
1659
+ diagramPadding: 20,
1660
+ layoutDirection: "TB",
1661
+ minEntityWidth: 100,
1662
+ minEntityHeight: 75,
1663
+ entityPadding: 15,
1664
+ nodeSpacing: 140,
1665
+ rankSpacing: 80,
1666
+ stroke: "gray",
1667
+ fill: "honeydew",
1668
+ fontSize: 12
1669
+ },
1670
+ pie: {
1671
+ useMaxWidth: !0,
1672
+ textPosition: .75
1673
+ },
1674
+ quadrantChart: {
1675
+ useMaxWidth: !0,
1676
+ chartWidth: 500,
1677
+ chartHeight: 500,
1678
+ titleFontSize: 20,
1679
+ titlePadding: 10,
1680
+ quadrantPadding: 5,
1681
+ xAxisLabelPadding: 5,
1682
+ yAxisLabelPadding: 5,
1683
+ xAxisLabelFontSize: 16,
1684
+ yAxisLabelFontSize: 16,
1685
+ quadrantLabelFontSize: 16,
1686
+ quadrantTextTopPadding: 5,
1687
+ pointTextPadding: 5,
1688
+ pointLabelFontSize: 12,
1689
+ pointRadius: 5,
1690
+ xAxisPosition: "top",
1691
+ yAxisPosition: "left",
1692
+ quadrantInternalBorderStrokeWidth: 1,
1693
+ quadrantExternalBorderStrokeWidth: 2
1694
+ },
1695
+ xyChart: {
1696
+ useMaxWidth: !0,
1697
+ width: 700,
1698
+ height: 500,
1699
+ titleFontSize: 20,
1700
+ titlePadding: 10,
1701
+ showDataLabel: !1,
1702
+ showTitle: !0,
1703
+ xAxis: {
1704
+ $ref: "#/$defs/XYChartAxisConfig",
1705
+ showLabel: !0,
1706
+ labelFontSize: 14,
1707
+ labelPadding: 5,
1708
+ showTitle: !0,
1709
+ titleFontSize: 16,
1710
+ titlePadding: 5,
1711
+ showTick: !0,
1712
+ tickLength: 5,
1713
+ tickWidth: 2,
1714
+ showAxisLine: !0,
1715
+ axisLineWidth: 2
1716
+ },
1717
+ yAxis: {
1718
+ $ref: "#/$defs/XYChartAxisConfig",
1719
+ showLabel: !0,
1720
+ labelFontSize: 14,
1721
+ labelPadding: 5,
1722
+ showTitle: !0,
1723
+ titleFontSize: 16,
1724
+ titlePadding: 5,
1725
+ showTick: !0,
1726
+ tickLength: 5,
1727
+ tickWidth: 2,
1728
+ showAxisLine: !0,
1729
+ axisLineWidth: 2
1730
+ },
1731
+ chartOrientation: "vertical",
1732
+ plotReservedSpacePercent: 50
1733
+ },
1734
+ requirement: {
1735
+ useMaxWidth: !0,
1736
+ rect_fill: "#f9f9f9",
1737
+ text_color: "#333",
1738
+ rect_border_size: "0.5px",
1739
+ rect_border_color: "#bbb",
1740
+ rect_min_width: 200,
1741
+ rect_min_height: 200,
1742
+ fontSize: 14,
1743
+ rect_padding: 10,
1744
+ line_height: 20
1745
+ },
1746
+ mindmap: {
1747
+ useMaxWidth: !0,
1748
+ padding: 10,
1749
+ maxNodeWidth: 200,
1750
+ layoutAlgorithm: "cose-bilkent"
1751
+ },
1752
+ kanban: {
1753
+ useMaxWidth: !0,
1754
+ padding: 8,
1755
+ sectionWidth: 200,
1756
+ ticketBaseUrl: ""
1757
+ },
1758
+ timeline: {
1759
+ useMaxWidth: !0,
1760
+ diagramMarginX: 50,
1761
+ diagramMarginY: 10,
1762
+ leftMargin: 150,
1763
+ width: 150,
1764
+ height: 50,
1765
+ boxMargin: 10,
1766
+ boxTextMargin: 5,
1767
+ noteMargin: 10,
1768
+ messageMargin: 35,
1769
+ messageAlign: "center",
1770
+ bottomMarginAdj: 1,
1771
+ rightAngles: !1,
1772
+ taskFontSize: 14,
1773
+ taskFontFamily: "\"Open Sans\", sans-serif",
1774
+ taskMargin: 50,
1775
+ activationWidth: 10,
1776
+ textPlacement: "fo",
1777
+ actorColours: [
1778
+ "#8FBC8F",
1779
+ "#7CFC00",
1780
+ "#00FFFF",
1781
+ "#20B2AA",
1782
+ "#B0E0E6",
1783
+ "#FFFFE0"
1784
+ ],
1785
+ sectionFills: [
1786
+ "#191970",
1787
+ "#8B008B",
1788
+ "#4B0082",
1789
+ "#2F4F4F",
1790
+ "#800000",
1791
+ "#8B4513",
1792
+ "#00008B"
1793
+ ],
1794
+ sectionColours: ["#fff"],
1795
+ disableMulticolor: !1
1796
+ },
1797
+ gitGraph: {
1798
+ useMaxWidth: !0,
1799
+ titleTopMargin: 25,
1800
+ diagramPadding: 8,
1801
+ nodeLabel: {
1802
+ width: 75,
1803
+ height: 100,
1804
+ x: -25,
1805
+ y: 0
1806
+ },
1807
+ mainBranchName: "main",
1808
+ mainBranchOrder: 0,
1809
+ showCommitLabel: !0,
1810
+ showBranches: !0,
1811
+ rotateCommitLabel: !0,
1812
+ parallelCommits: !1,
1813
+ arrowMarkerAbsolute: !1
1814
+ },
1815
+ c4: {
1816
+ useMaxWidth: !0,
1817
+ diagramMarginX: 50,
1818
+ diagramMarginY: 10,
1819
+ c4ShapeMargin: 50,
1820
+ c4ShapePadding: 20,
1821
+ width: 216,
1822
+ height: 60,
1823
+ boxMargin: 10,
1824
+ c4ShapeInRow: 4,
1825
+ nextLinePaddingX: 0,
1826
+ c4BoundaryInRow: 2,
1827
+ personFontSize: 14,
1828
+ personFontFamily: "\"Open Sans\", sans-serif",
1829
+ personFontWeight: "normal",
1830
+ external_personFontSize: 14,
1831
+ external_personFontFamily: "\"Open Sans\", sans-serif",
1832
+ external_personFontWeight: "normal",
1833
+ systemFontSize: 14,
1834
+ systemFontFamily: "\"Open Sans\", sans-serif",
1835
+ systemFontWeight: "normal",
1836
+ external_systemFontSize: 14,
1837
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
1838
+ external_systemFontWeight: "normal",
1839
+ system_dbFontSize: 14,
1840
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
1841
+ system_dbFontWeight: "normal",
1842
+ external_system_dbFontSize: 14,
1843
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
1844
+ external_system_dbFontWeight: "normal",
1845
+ system_queueFontSize: 14,
1846
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
1847
+ system_queueFontWeight: "normal",
1848
+ external_system_queueFontSize: 14,
1849
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
1850
+ external_system_queueFontWeight: "normal",
1851
+ boundaryFontSize: 14,
1852
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
1853
+ boundaryFontWeight: "normal",
1854
+ messageFontSize: 12,
1855
+ messageFontFamily: "\"Open Sans\", sans-serif",
1856
+ messageFontWeight: "normal",
1857
+ containerFontSize: 14,
1858
+ containerFontFamily: "\"Open Sans\", sans-serif",
1859
+ containerFontWeight: "normal",
1860
+ external_containerFontSize: 14,
1861
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
1862
+ external_containerFontWeight: "normal",
1863
+ container_dbFontSize: 14,
1864
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
1865
+ container_dbFontWeight: "normal",
1866
+ external_container_dbFontSize: 14,
1867
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
1868
+ external_container_dbFontWeight: "normal",
1869
+ container_queueFontSize: 14,
1870
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
1871
+ container_queueFontWeight: "normal",
1872
+ external_container_queueFontSize: 14,
1873
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
1874
+ external_container_queueFontWeight: "normal",
1875
+ componentFontSize: 14,
1876
+ componentFontFamily: "\"Open Sans\", sans-serif",
1877
+ componentFontWeight: "normal",
1878
+ external_componentFontSize: 14,
1879
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
1880
+ external_componentFontWeight: "normal",
1881
+ component_dbFontSize: 14,
1882
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
1883
+ component_dbFontWeight: "normal",
1884
+ external_component_dbFontSize: 14,
1885
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
1886
+ external_component_dbFontWeight: "normal",
1887
+ component_queueFontSize: 14,
1888
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
1889
+ component_queueFontWeight: "normal",
1890
+ external_component_queueFontSize: 14,
1891
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
1892
+ external_component_queueFontWeight: "normal",
1893
+ wrap: !0,
1894
+ wrapPadding: 10,
1895
+ person_bg_color: "#08427B",
1896
+ person_border_color: "#073B6F",
1897
+ external_person_bg_color: "#686868",
1898
+ external_person_border_color: "#8A8A8A",
1899
+ system_bg_color: "#1168BD",
1900
+ system_border_color: "#3C7FC0",
1901
+ system_db_bg_color: "#1168BD",
1902
+ system_db_border_color: "#3C7FC0",
1903
+ system_queue_bg_color: "#1168BD",
1904
+ system_queue_border_color: "#3C7FC0",
1905
+ external_system_bg_color: "#999999",
1906
+ external_system_border_color: "#8A8A8A",
1907
+ external_system_db_bg_color: "#999999",
1908
+ external_system_db_border_color: "#8A8A8A",
1909
+ external_system_queue_bg_color: "#999999",
1910
+ external_system_queue_border_color: "#8A8A8A",
1911
+ container_bg_color: "#438DD5",
1912
+ container_border_color: "#3C7FC0",
1913
+ container_db_bg_color: "#438DD5",
1914
+ container_db_border_color: "#3C7FC0",
1915
+ container_queue_bg_color: "#438DD5",
1916
+ container_queue_border_color: "#3C7FC0",
1917
+ external_container_bg_color: "#B3B3B3",
1918
+ external_container_border_color: "#A6A6A6",
1919
+ external_container_db_bg_color: "#B3B3B3",
1920
+ external_container_db_border_color: "#A6A6A6",
1921
+ external_container_queue_bg_color: "#B3B3B3",
1922
+ external_container_queue_border_color: "#A6A6A6",
1923
+ component_bg_color: "#85BBF0",
1924
+ component_border_color: "#78A8D8",
1925
+ component_db_bg_color: "#85BBF0",
1926
+ component_db_border_color: "#78A8D8",
1927
+ component_queue_bg_color: "#85BBF0",
1928
+ component_queue_border_color: "#78A8D8",
1929
+ external_component_bg_color: "#CCCCCC",
1930
+ external_component_border_color: "#BFBFBF",
1931
+ external_component_db_bg_color: "#CCCCCC",
1932
+ external_component_db_border_color: "#BFBFBF",
1933
+ external_component_queue_bg_color: "#CCCCCC",
1934
+ external_component_queue_border_color: "#BFBFBF"
1935
+ },
1936
+ sankey: {
1937
+ useMaxWidth: !0,
1938
+ width: 600,
1939
+ height: 400,
1940
+ linkColor: "gradient",
1941
+ nodeAlignment: "justify",
1942
+ showValues: !0,
1943
+ prefix: "",
1944
+ suffix: ""
1945
+ },
1946
+ block: {
1947
+ useMaxWidth: !0,
1948
+ padding: 8
1949
+ },
1950
+ packet: {
1951
+ useMaxWidth: !0,
1952
+ rowHeight: 32,
1953
+ bitWidth: 32,
1954
+ bitsPerRow: 32,
1955
+ showBits: !0,
1956
+ paddingX: 5,
1957
+ paddingY: 5
1958
+ },
1959
+ architecture: {
1960
+ useMaxWidth: !0,
1961
+ padding: 40,
1962
+ iconSize: 80,
1963
+ fontSize: 16
1964
+ },
1965
+ radar: {
1966
+ useMaxWidth: !0,
1967
+ width: 600,
1968
+ height: 600,
1969
+ marginTop: 50,
1970
+ marginRight: 50,
1971
+ marginBottom: 50,
1972
+ marginLeft: 50,
1973
+ axisScaleFactor: 1,
1974
+ axisLabelFactor: 1.05,
1975
+ curveTension: .17
1976
+ },
1977
+ theme: "default",
1978
+ look: "classic",
1979
+ handDrawnSeed: 0,
1980
+ layout: "dagre",
1981
+ maxTextSize: 5e4,
1982
+ maxEdges: 500,
1983
+ darkMode: !1,
1984
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
1985
+ logLevel: 5,
1986
+ securityLevel: "strict",
1987
+ startOnLoad: !0,
1988
+ arrowMarkerAbsolute: !1,
1989
+ secure: [
1990
+ "secure",
1991
+ "securityLevel",
1992
+ "startOnLoad",
1993
+ "maxTextSize",
1994
+ "suppressErrorRendering",
1995
+ "maxEdges"
1996
+ ],
1997
+ legacyMathML: !1,
1998
+ forceLegacyMathML: !1,
1999
+ deterministicIds: !1,
2000
+ fontSize: 16,
2001
+ markdownAutoWrap: !0,
2002
+ suppressErrorRendering: !1
2003
+ }, config = {
2004
+ ...config_schema_default,
2005
+ deterministicIDSeed: void 0,
2006
+ elk: {
2007
+ mergeEdges: !1,
2008
+ nodePlacementStrategy: "BRANDES_KOEPF",
2009
+ forceNodeModelOrder: !1,
2010
+ considerModelOrder: "NODES_AND_EDGES"
2011
+ },
2012
+ themeCSS: void 0,
2013
+ themeVariables: themes_default.default.getThemeVariables(),
2014
+ sequence: {
2015
+ ...config_schema_default.sequence,
2016
+ messageFont: /* @__PURE__ */ __name(function() {
2017
+ return {
2018
+ fontFamily: this.messageFontFamily,
2019
+ fontSize: this.messageFontSize,
2020
+ fontWeight: this.messageFontWeight
2021
+ };
2022
+ }, "messageFont"),
2023
+ noteFont: /* @__PURE__ */ __name(function() {
2024
+ return {
2025
+ fontFamily: this.noteFontFamily,
2026
+ fontSize: this.noteFontSize,
2027
+ fontWeight: this.noteFontWeight
2028
+ };
2029
+ }, "noteFont"),
2030
+ actorFont: /* @__PURE__ */ __name(function() {
2031
+ return {
2032
+ fontFamily: this.actorFontFamily,
2033
+ fontSize: this.actorFontSize,
2034
+ fontWeight: this.actorFontWeight
2035
+ };
2036
+ }, "actorFont")
2037
+ },
2038
+ class: { hideEmptyMembersBox: !1 },
2039
+ gantt: {
2040
+ ...config_schema_default.gantt,
2041
+ tickInterval: void 0,
2042
+ useWidth: void 0
2043
+ },
2044
+ c4: {
2045
+ ...config_schema_default.c4,
2046
+ useWidth: void 0,
2047
+ personFont: /* @__PURE__ */ __name(function() {
2048
+ return {
2049
+ fontFamily: this.personFontFamily,
2050
+ fontSize: this.personFontSize,
2051
+ fontWeight: this.personFontWeight
2052
+ };
2053
+ }, "personFont"),
2054
+ flowchart: {
2055
+ ...config_schema_default.flowchart,
2056
+ inheritDir: !1
2057
+ },
2058
+ external_personFont: /* @__PURE__ */ __name(function() {
2059
+ return {
2060
+ fontFamily: this.external_personFontFamily,
2061
+ fontSize: this.external_personFontSize,
2062
+ fontWeight: this.external_personFontWeight
2063
+ };
2064
+ }, "external_personFont"),
2065
+ systemFont: /* @__PURE__ */ __name(function() {
2066
+ return {
2067
+ fontFamily: this.systemFontFamily,
2068
+ fontSize: this.systemFontSize,
2069
+ fontWeight: this.systemFontWeight
2070
+ };
2071
+ }, "systemFont"),
2072
+ external_systemFont: /* @__PURE__ */ __name(function() {
2073
+ return {
2074
+ fontFamily: this.external_systemFontFamily,
2075
+ fontSize: this.external_systemFontSize,
2076
+ fontWeight: this.external_systemFontWeight
2077
+ };
2078
+ }, "external_systemFont"),
2079
+ system_dbFont: /* @__PURE__ */ __name(function() {
2080
+ return {
2081
+ fontFamily: this.system_dbFontFamily,
2082
+ fontSize: this.system_dbFontSize,
2083
+ fontWeight: this.system_dbFontWeight
2084
+ };
2085
+ }, "system_dbFont"),
2086
+ external_system_dbFont: /* @__PURE__ */ __name(function() {
2087
+ return {
2088
+ fontFamily: this.external_system_dbFontFamily,
2089
+ fontSize: this.external_system_dbFontSize,
2090
+ fontWeight: this.external_system_dbFontWeight
2091
+ };
2092
+ }, "external_system_dbFont"),
2093
+ system_queueFont: /* @__PURE__ */ __name(function() {
2094
+ return {
2095
+ fontFamily: this.system_queueFontFamily,
2096
+ fontSize: this.system_queueFontSize,
2097
+ fontWeight: this.system_queueFontWeight
2098
+ };
2099
+ }, "system_queueFont"),
2100
+ external_system_queueFont: /* @__PURE__ */ __name(function() {
2101
+ return {
2102
+ fontFamily: this.external_system_queueFontFamily,
2103
+ fontSize: this.external_system_queueFontSize,
2104
+ fontWeight: this.external_system_queueFontWeight
2105
+ };
2106
+ }, "external_system_queueFont"),
2107
+ containerFont: /* @__PURE__ */ __name(function() {
2108
+ return {
2109
+ fontFamily: this.containerFontFamily,
2110
+ fontSize: this.containerFontSize,
2111
+ fontWeight: this.containerFontWeight
2112
+ };
2113
+ }, "containerFont"),
2114
+ external_containerFont: /* @__PURE__ */ __name(function() {
2115
+ return {
2116
+ fontFamily: this.external_containerFontFamily,
2117
+ fontSize: this.external_containerFontSize,
2118
+ fontWeight: this.external_containerFontWeight
2119
+ };
2120
+ }, "external_containerFont"),
2121
+ container_dbFont: /* @__PURE__ */ __name(function() {
2122
+ return {
2123
+ fontFamily: this.container_dbFontFamily,
2124
+ fontSize: this.container_dbFontSize,
2125
+ fontWeight: this.container_dbFontWeight
2126
+ };
2127
+ }, "container_dbFont"),
2128
+ external_container_dbFont: /* @__PURE__ */ __name(function() {
2129
+ return {
2130
+ fontFamily: this.external_container_dbFontFamily,
2131
+ fontSize: this.external_container_dbFontSize,
2132
+ fontWeight: this.external_container_dbFontWeight
2133
+ };
2134
+ }, "external_container_dbFont"),
2135
+ container_queueFont: /* @__PURE__ */ __name(function() {
2136
+ return {
2137
+ fontFamily: this.container_queueFontFamily,
2138
+ fontSize: this.container_queueFontSize,
2139
+ fontWeight: this.container_queueFontWeight
2140
+ };
2141
+ }, "container_queueFont"),
2142
+ external_container_queueFont: /* @__PURE__ */ __name(function() {
2143
+ return {
2144
+ fontFamily: this.external_container_queueFontFamily,
2145
+ fontSize: this.external_container_queueFontSize,
2146
+ fontWeight: this.external_container_queueFontWeight
2147
+ };
2148
+ }, "external_container_queueFont"),
2149
+ componentFont: /* @__PURE__ */ __name(function() {
2150
+ return {
2151
+ fontFamily: this.componentFontFamily,
2152
+ fontSize: this.componentFontSize,
2153
+ fontWeight: this.componentFontWeight
2154
+ };
2155
+ }, "componentFont"),
2156
+ external_componentFont: /* @__PURE__ */ __name(function() {
2157
+ return {
2158
+ fontFamily: this.external_componentFontFamily,
2159
+ fontSize: this.external_componentFontSize,
2160
+ fontWeight: this.external_componentFontWeight
2161
+ };
2162
+ }, "external_componentFont"),
2163
+ component_dbFont: /* @__PURE__ */ __name(function() {
2164
+ return {
2165
+ fontFamily: this.component_dbFontFamily,
2166
+ fontSize: this.component_dbFontSize,
2167
+ fontWeight: this.component_dbFontWeight
2168
+ };
2169
+ }, "component_dbFont"),
2170
+ external_component_dbFont: /* @__PURE__ */ __name(function() {
2171
+ return {
2172
+ fontFamily: this.external_component_dbFontFamily,
2173
+ fontSize: this.external_component_dbFontSize,
2174
+ fontWeight: this.external_component_dbFontWeight
2175
+ };
2176
+ }, "external_component_dbFont"),
2177
+ component_queueFont: /* @__PURE__ */ __name(function() {
2178
+ return {
2179
+ fontFamily: this.component_queueFontFamily,
2180
+ fontSize: this.component_queueFontSize,
2181
+ fontWeight: this.component_queueFontWeight
2182
+ };
2183
+ }, "component_queueFont"),
2184
+ external_component_queueFont: /* @__PURE__ */ __name(function() {
2185
+ return {
2186
+ fontFamily: this.external_component_queueFontFamily,
2187
+ fontSize: this.external_component_queueFontSize,
2188
+ fontWeight: this.external_component_queueFontWeight
2189
+ };
2190
+ }, "external_component_queueFont"),
2191
+ boundaryFont: /* @__PURE__ */ __name(function() {
2192
+ return {
2193
+ fontFamily: this.boundaryFontFamily,
2194
+ fontSize: this.boundaryFontSize,
2195
+ fontWeight: this.boundaryFontWeight
2196
+ };
2197
+ }, "boundaryFont"),
2198
+ messageFont: /* @__PURE__ */ __name(function() {
2199
+ return {
2200
+ fontFamily: this.messageFontFamily,
2201
+ fontSize: this.messageFontSize,
2202
+ fontWeight: this.messageFontWeight
2203
+ };
2204
+ }, "messageFont")
2205
+ },
2206
+ pie: {
2207
+ ...config_schema_default.pie,
2208
+ useWidth: 984
2209
+ },
2210
+ xyChart: {
2211
+ ...config_schema_default.xyChart,
2212
+ useWidth: void 0
2213
+ },
2214
+ requirement: {
2215
+ ...config_schema_default.requirement,
2216
+ useWidth: void 0
2217
+ },
2218
+ packet: { ...config_schema_default.packet },
2219
+ radar: { ...config_schema_default.radar },
2220
+ treemap: {
2221
+ useMaxWidth: !0,
2222
+ padding: 10,
2223
+ diagramPadding: 8,
2224
+ showValues: !0,
2225
+ nodeWidth: 100,
2226
+ nodeHeight: 40,
2227
+ borderWidth: 1,
2228
+ valueFontSize: 12,
2229
+ labelFontSize: 14,
2230
+ valueFormat: ","
2231
+ }
2232
+ }, keyify = /* @__PURE__ */ __name((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2233
+ ...n,
2234
+ t + r,
2235
+ ...keyify(e[r], "")
2236
+ ] : [...n, t + r], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((e) => {
2237
+ if (log.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2238
+ if (Array.isArray(e)) {
2239
+ e.forEach((e) => sanitizeDirective(e));
2240
+ return;
2241
+ }
2242
+ for (let n of Object.keys(e)) {
2243
+ if (log.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !configKeys.has(n) || e[n] == null) {
2244
+ log.debug("sanitize deleting key: ", n), delete e[n];
2245
+ continue;
2246
+ }
2247
+ if (typeof e[n] == "object") {
2248
+ log.debug("sanitizing object", n), sanitizeDirective(e[n]);
2249
+ continue;
2250
+ }
2251
+ for (let r of [
2252
+ "themeCSS",
2253
+ "fontFamily",
2254
+ "altFontFamily"
2255
+ ]) n.includes(r) && (log.debug("sanitizing css option", n), e[n] = sanitizeCss(e[n]));
2256
+ }
2257
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2258
+ let n = e.themeVariables[t];
2259
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2260
+ }
2261
+ log.debug("After sanitization", e);
2262
+ }
2263
+ }, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((e) => {
2264
+ let t = 0, n = 0;
2265
+ for (let r of e) {
2266
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2267
+ r === "{" ? t++ : r === "}" && n++;
2268
+ }
2269
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2270
+ }, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((e, t) => {
2271
+ let n = assignWithDepth_default({}, e), r = {};
2272
+ for (let e of t) sanitize(e), r = assignWithDepth_default(r, e);
2273
+ if (n = assignWithDepth_default(n, r), r.theme && r.theme in themes_default) {
2274
+ let e = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, r.themeVariables);
2275
+ n.theme && n.theme in themes_default && (n.themeVariables = themes_default[n.theme].getThemeVariables(e));
2276
+ }
2277
+ return currentConfig = n, checkConfig(currentConfig), currentConfig;
2278
+ }, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, e), e.theme && themes_default[e.theme] && (siteConfig.themeVariables = themes_default[e.theme].getThemeVariables(e.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((e) => {
2279
+ configFromInitialize = assignWithDepth_default({}, e);
2280
+ }, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default(siteConfig, e), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((e) => (checkConfig(e), assignWithDepth_default(currentConfig, e), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((e) => {
2281
+ e && (["secure", ...siteConfig.secure ?? []].forEach((n) => {
2282
+ Object.hasOwn(e, n) && (log.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
2283
+ }), Object.keys(e).forEach((t) => {
2284
+ t.startsWith("__") && delete e[t];
2285
+ }), Object.keys(e).forEach((t) => {
2286
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && sanitize(e[t]);
2287
+ }));
2288
+ }, "sanitize"), addDirective = /* @__PURE__ */ __name((e) => {
2289
+ sanitizeDirective(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
2290
+ ...e.themeVariables,
2291
+ fontFamily: e.fontFamily
2292
+ }), directives.push(e), updateCurrentConfig(siteConfig, directives);
2293
+ }, "addDirective"), reset = /* @__PURE__ */ __name((e = siteConfig) => {
2294
+ directives = [], updateCurrentConfig(e, directives);
2295
+ }, "reset"), ConfigWarning = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((e) => {
2296
+ issuedWarnings[e] || (log.warn(ConfigWarning[e]), issuedWarnings[e] = !0);
2297
+ }, "issueWarning"), checkConfig = /* @__PURE__ */ __name((e) => {
2298
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2299
+ }, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
2300
+ let e = {};
2301
+ configFromInitialize && (e = assignWithDepth_default(e, configFromInitialize));
2302
+ for (let t of directives) e = assignWithDepth_default(e, t);
2303
+ return e;
2304
+ }, "getUserDefinedConfig"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((e) => e ? breakToPlaceholder(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
2305
+ let e = !1;
2306
+ return () => {
2307
+ e ||= (setupDompurifyHooks(), !0);
2308
+ };
2309
+ })();
2310
+ function setupDompurifyHooks() {
2311
+ let e = "data-temp-href-target";
2312
+ purify.addHook("beforeSanitizeAttributes", (t) => {
2313
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
2314
+ }), purify.addHook("afterSanitizeAttributes", (t) => {
2315
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
2316
+ });
2317
+ }
2318
+ __name(setupDompurifyHooks, "setupDompurifyHooks");
2319
+ var removeScript = /* @__PURE__ */ __name((e) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(e)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((e, t) => {
2320
+ if (t.flowchart?.htmlLabels !== !1) {
2321
+ let n = t.securityLevel;
2322
+ n === "antiscript" || n === "strict" ? e = removeScript(e) : n !== "loose" && (e = breakToPlaceholder(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = placeholderToBreak(e));
2323
+ }
2324
+ return e;
2325
+ }, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((e, t) => e && (e = t.dompurifyConfig ? purify.sanitize(sanitizeMore(e, t), t.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((e, t) => typeof e == "string" ? sanitizeText(e, t) : e.flat().map((e) => sanitizeText(e, t)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((e) => lineBreakRegex.test(e), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((e) => e.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((e) => e.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((e) => {
2326
+ let t = "";
2327
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2328
+ }, "getUrl"), evaluate = /* @__PURE__ */ __name((e) => !(e === !1 || [
2329
+ "false",
2330
+ "null",
2331
+ "0"
2332
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), getMax = /* @__PURE__ */ __name(function(...e) {
2333
+ let t = e.filter((e) => !isNaN(e));
2334
+ return Math.max(...t);
2335
+ }, "getMax"), getMin = /* @__PURE__ */ __name(function(...e) {
2336
+ let t = e.filter((e) => !isNaN(e));
2337
+ return Math.min(...t);
2338
+ }, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(e) {
2339
+ let t = e.split(/(,)/), n = [];
2340
+ for (let e = 0; e < t.length; e++) {
2341
+ let r = t[e];
2342
+ if (r === "," && e > 0 && e + 1 < t.length) {
2343
+ let i = t[e - 1], a = t[e + 1];
2344
+ shouldCombineSets(i, a) && (r = i + "," + a, e++, n.pop());
2345
+ }
2346
+ n.push(processSet(r));
2347
+ }
2348
+ return n.join("");
2349
+ }, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((e, t) => {
2350
+ let n = countOccurrence(e, "~"), r = countOccurrence(t, "~");
2351
+ return n === 1 && r === 1;
2352
+ }, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((e) => {
2353
+ let t = countOccurrence(e, "~"), n = !1;
2354
+ if (t <= 1) return e;
2355
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
2356
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
2357
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2358
+ return n && r.unshift("~"), r.join("");
2359
+ }, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((e) => (e.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (e, t) => {
2360
+ let n = document.createElement("div");
2361
+ n.innerHTML = await renderKatexSanitized(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
2362
+ let r = {
2363
+ width: n.clientWidth,
2364
+ height: n.clientHeight
2365
+ };
2366
+ return n.remove(), r;
2367
+ }, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (e, t) => {
2368
+ if (!hasKatex(e)) return e;
2369
+ if (!(isMathMLSupported() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(katexRegex, "MathML is unsupported in this environment.");
2370
+ {
2371
+ let { default: n } = await import("./katex-K1dsczyg.js"), r = t.forceLegacyMathML || !isMathMLSupported() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2372
+ return e.split(lineBreakRegex).map((e) => hasKatex(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(katexRegex, (e, t) => n.renderToString(t, {
2373
+ throwOnError: !0,
2374
+ displayMode: !0,
2375
+ output: r
2376
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2377
+ }
2378
+ return e.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2379
+ }, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (e, t) => sanitizeText(await renderKatexUnsanitized(e, t), t), "renderKatexSanitized"), common_default = {
2380
+ getRows,
2381
+ sanitizeText,
2382
+ sanitizeTextOrArray,
2383
+ hasBreaks,
2384
+ splitBreaks,
2385
+ lineBreakRegex,
2386
+ removeScript,
2387
+ getUrl,
2388
+ evaluate,
2389
+ getMax,
2390
+ getMin
2391
+ }, d3Attrs = /* @__PURE__ */ __name(function(e, t) {
2392
+ for (let n of t) e.attr(n[0], n[1]);
2393
+ }, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(e, t, n) {
2394
+ let r = /* @__PURE__ */ new Map();
2395
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2396
+ }, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(e, t, n, r) {
2397
+ d3Attrs(e, calculateSvgSizeAttrs(t, n, r));
2398
+ }, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(e, n, r, i) {
2399
+ let a = n.node().getBBox(), o = a.width, s = a.height;
2400
+ log.info(`SVG bounds: ${o}x${s}`, a);
2401
+ let c = 0, l = 0;
2402
+ log.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, log.info(`Calculated bounds: ${c}x${l}`), configureSvgSize(n, l, c, i);
2403
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2404
+ n.attr("viewBox", u);
2405
+ }, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((e, n, r) => {
2406
+ let i = "";
2407
+ return e in themes && themes[e] ? i = themes[e](r) : log.warn(`No theme found for ${e}`), ` & {
2408
+ font-family: ${r.fontFamily};
2409
+ font-size: ${r.fontSize};
2410
+ fill: ${r.textColor}
2411
+ }
2412
+ @keyframes edge-animation-frame {
2413
+ from {
2414
+ stroke-dashoffset: 0;
2415
+ }
2416
+ }
2417
+ @keyframes dash {
2418
+ to {
2419
+ stroke-dashoffset: 0;
2420
+ }
2421
+ }
2422
+ & .edge-animation-slow {
2423
+ stroke-dasharray: 9,5 !important;
2424
+ stroke-dashoffset: 900;
2425
+ animation: dash 50s linear infinite;
2426
+ stroke-linecap: round;
2427
+ }
2428
+ & .edge-animation-fast {
2429
+ stroke-dasharray: 9,5 !important;
2430
+ stroke-dashoffset: 900;
2431
+ animation: dash 20s linear infinite;
2432
+ stroke-linecap: round;
2433
+ }
2434
+ /* Classes common for multiple diagrams */
2435
+
2436
+ & .error-icon {
2437
+ fill: ${r.errorBkgColor};
2438
+ }
2439
+ & .error-text {
2440
+ fill: ${r.errorTextColor};
2441
+ stroke: ${r.errorTextColor};
2442
+ }
2443
+
2444
+ & .edge-thickness-normal {
2445
+ stroke-width: 1px;
2446
+ }
2447
+ & .edge-thickness-thick {
2448
+ stroke-width: 3.5px
2449
+ }
2450
+ & .edge-pattern-solid {
2451
+ stroke-dasharray: 0;
2452
+ }
2453
+ & .edge-thickness-invisible {
2454
+ stroke-width: 0;
2455
+ fill: none;
2456
+ }
2457
+ & .edge-pattern-dashed{
2458
+ stroke-dasharray: 3;
2459
+ }
2460
+ .edge-pattern-dotted {
2461
+ stroke-dasharray: 2;
2462
+ }
2463
+
2464
+ & .marker {
2465
+ fill: ${r.lineColor};
2466
+ stroke: ${r.lineColor};
2467
+ }
2468
+ & .marker.cross {
2469
+ stroke: ${r.lineColor};
2470
+ }
2471
+
2472
+ & svg {
2473
+ font-family: ${r.fontFamily};
2474
+ font-size: ${r.fontSize};
2475
+ }
2476
+ & p {
2477
+ margin: 0
2478
+ }
2479
+
2480
+ ${i}
2481
+
2482
+ ${n}
2483
+ `;
2484
+ }, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((e, t) => {
2485
+ t !== void 0 && (themes[e] = t);
2486
+ }, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
2487
+ __export(commonDb_exports, {
2488
+ clear: () => clear,
2489
+ getAccDescription: () => getAccDescription,
2490
+ getAccTitle: () => getAccTitle,
2491
+ getDiagramTitle: () => getDiagramTitle,
2492
+ setAccDescription: () => setAccDescription,
2493
+ setAccTitle: () => setAccTitle,
2494
+ setDiagramTitle: () => setDiagramTitle
2495
+ });
2496
+ var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
2497
+ accTitle = "", accDescription = "", diagramTitle = "";
2498
+ }, "clear"), setAccTitle = /* @__PURE__ */ __name((e) => {
2499
+ accTitle = sanitizeText2(e).replace(/^\s+/g, "");
2500
+ }, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((e) => {
2501
+ accDescription = sanitizeText2(e).replace(/\n\s+/g, "\n");
2502
+ }, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((e) => {
2503
+ diagramTitle = sanitizeText2(e);
2504
+ }, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((e, t, n) => {
2505
+ diagrams[e] && log2.warn(`Diagram with id ${e} already registered. Overwriting.`), diagrams[e] = t, n && addDetector(e, n), addStylesForDiagram(e, t.styles), t.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
2506
+ }, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((e) => {
2507
+ if (e in diagrams) return diagrams[e];
2508
+ throw new DiagramNotFoundError(e);
2509
+ }, "getDiagram"), DiagramNotFoundError = class extends Error {
2510
+ static #e = __name(this, "DiagramNotFoundError");
2511
+ constructor(e) {
2512
+ super(`Diagram ${e} not found.`);
2513
+ }
2514
+ };
2515
+ export { is_dark_default as $, parseGenericTypes as A, setAccTitle as B, getDiagramTitle as C, getUserDefinedConfig as D, getUrl as E, sanitizeDirective as F, setupGraphViewbox as G, setConfig2 as H, sanitizeText as I, themes_default as J, setupGraphViewbox2 as K, sanitizeText3 as L, registerLazyLoadedDiagrams as M, renderKatexSanitized as N, hasKatex as O, reset as P, lighten_default as Q, saveConfigFromInitialize as R, getDiagramLoader as S, getThemeVariables3 as T, setDiagramTitle as U, setConfig as V, setSiteConfig as W, purify as X, updateSiteConfig as Y, darken_default as Z, getAccDescription as _, clear as a, getConfig2 as b, configureSvgSize as c, defaultConfig_default as d, rgba_default as et, detectType as f, frontMatterRegex as g, evaluate as h, calculateMathMLDimensions as i, registerDiagram as j, lineBreakRegex as k, defaultConfig as l, directiveRegex as m, addDirective as n, utils_default as nt, commonDb_exports as o, detectors as p, styles_default as q, assignWithDepth_default as r, common_default as s, UnknownDiagramError as t, color_default as tt, defaultConfig2 as u, getAccTitle as v, getSiteConfig as w, getDiagram as x, getConfig as y, setAccDescription as z };