@marimo-team/islands 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. package/dist/{fullscreen-blsKUrtN.js → Combination-De9yoNY5.js} +132 -69
  2. package/dist/{ConnectedDataExplorerComponent-DJEUH6Bb.js → ConnectedDataExplorerComponent-DuvpJOKp.js} +45 -44
  3. package/dist/{ImageComparisonComponent-D4Tv9QzJ.js → ImageComparisonComponent--etUl2pp.js} +2 -2
  4. package/dist/{_baseIsEqual-CN4oFUZ4.js → _baseIsEqual-BFlyFUxC.js} +1 -1
  5. package/dist/{_basePickBy-CzSvE_-f.js → _basePickBy-gCCvtjgp.js} +3 -3
  6. package/dist/{_baseProperty-DbbUiyUD.js → _baseProperty-BuqBC0Ie.js} +5 -5
  7. package/dist/{_baseUniq-DwoC-LVO.js → _baseUniq-CKN9mEDq.js} +5 -5
  8. package/dist/any-language-editor-Du2Q_6IK.js +156 -0
  9. package/dist/apl-CUm2DGqh.js +4 -0
  10. package/dist/{arc-B1iVbHTB.js → arc-C_O2hc-b.js} +2 -2
  11. package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +21 -0
  12. package/dist/{architectureDiagram-W76B3OCA-CoBORy6u.js → architectureDiagram-W76B3OCA-CrK99pJi.js} +38 -37
  13. package/dist/asciiarmor-lqJ78U01.js +4 -0
  14. package/dist/asn1-CjwpSTlW.js +4 -0
  15. package/dist/assets/__vite-browser-external-DHoMWs4M.js +1 -0
  16. package/dist/assets/{worker-vPn7gxWj.js → worker-B6tH8gPO.js} +3 -3
  17. package/dist/{blockDiagram-QIGZ2CNN-0yzoLIar.js → blockDiagram-QIGZ2CNN-BJOEyO6w.js} +47 -46
  18. package/dist/brainfuck-ClvDI1dq.js +4 -0
  19. package/dist/{button-DcnBVpVa.js → button-ADXOb_gX.js} +27 -27
  20. package/dist/{c4Diagram-FPNF74CW-CKsIA_DD.js → c4Diagram-FPNF74CW-7Pz_X9wF.js} +12 -11
  21. package/dist/{channel-3LVvQZcD.js → channel-X-wRUxX6.js} +1 -1
  22. package/dist/{check-D7ifz5op.js → check-COlaG7Ss.js} +1 -1
  23. package/dist/{chunk-3AY6CYHV-B2C-aVc3.js → chunk-3AY6CYHV-BQH2fFpA.js} +10 -10
  24. package/dist/{chunk-4BX2VUAB-DEd4VI9L.js → chunk-4BX2VUAB-D-QtDCKM.js} +1 -1
  25. package/dist/{chunk-4KMFLZZN-DnvP3O4K.js → chunk-4KMFLZZN-BirZvvJS.js} +13 -13
  26. package/dist/{chunk-55IACEB6-BcCzwOOl.js → chunk-55IACEB6-DjtPYZKs.js} +1 -1
  27. package/dist/{chunk-6OXUPJBA-eNAAfJ3Q.js → chunk-6OXUPJBA-CTnnqlzw.js} +7 -7
  28. package/dist/{chunk-7GE3RBXV-CSAeQvLz.js → chunk-7GE3RBXV-CT47hCrL.js} +1 -1
  29. package/dist/{chunk-ABZYJK2D-CZcb_1iM.js → chunk-ABZYJK2D-B6ZsU6SR.js} +484 -1039
  30. package/dist/{chunk-BN7GFLIU-pBc5O5Rh.js → chunk-BN7GFLIU-DYWEsrG4.js} +1 -1
  31. package/dist/{chunk-CVBHYZKI-CivHZg9P.js → chunk-CVBHYZKI-BuzDGXz0.js} +1 -1
  32. package/dist/{chunk-CXMOBAN2-Dd0E6qb0.js → chunk-CXMOBAN2-Bas2S5w1.js} +6 -6
  33. package/dist/{chunk-EXTU4WIE-GQ2ZWfJo.js → chunk-EXTU4WIE-DXwNSukz.js} +2 -2
  34. package/dist/{chunk-FMBD7UC4-C6YcisV6.js → chunk-FMBD7UC4-CYKEpuPr.js} +1 -1
  35. package/dist/{chunk-JA3XYJ7Z-DYeQaT57.js → chunk-JA3XYJ7Z-DcxfkcDC.js} +4 -4
  36. package/dist/{chunk-JEIROHC2-B-EZMP4V.js → chunk-JEIROHC2-C01ZIcIG.js} +1 -1
  37. package/dist/{chunk-K7UQS3LO-DENzlS-M.js → chunk-K7UQS3LO-CmbT97MV.js} +7 -7
  38. package/dist/{chunk-KMC2YHZD-SckhHdEh.js → chunk-KMC2YHZD-D64m-1E1.js} +1 -1
  39. package/dist/{chunk-QN33PNHL-Cjq5b604.js → chunk-QN33PNHL-DjB0j8Dr.js} +2 -2
  40. package/dist/{chunk-QYVHNE3D-CNUuivie.js → chunk-QYVHNE3D-VA4W4oxG.js} +2 -2
  41. package/dist/{chunk-QZHKN3VN-DugEU_bA.js → chunk-QZHKN3VN-KT0fl3Em.js} +1 -1
  42. package/dist/{chunk-S3R3BYOJ-itCT6Vif.js → chunk-S3R3BYOJ-C5zmcMvn.js} +6 -6
  43. package/dist/{chunk-T44TD3VJ-BLdfTX8J.js → chunk-T44TD3VJ-BMOgu-Hk.js} +1 -1
  44. package/dist/{chunk-TVAH2DTR-BOnwF9d8.js → chunk-TVAH2DTR-eKm8SKnH.js} +6 -6
  45. package/dist/{chunk-TZMSLE5B-DGs66AlL.js → chunk-TZMSLE5B-CQxFRiI2.js} +3 -3
  46. package/dist/{chunk-WFRQ32O7-CPsipkmJ.js → chunk-WFRQ32O7-Dg51o277.js} +1 -1
  47. package/dist/{chunk-WFWHJNB7-Cmed18Pk.js → chunk-WFWHJNB7-DVLO98ge.js} +1 -1
  48. package/dist/{chunk-XRWGC2XP-DH5GDaY8.js → chunk-XRWGC2XP-UNFKdWQh.js} +1 -1
  49. package/dist/{chunk-ZPAFE4SF-DPDwaqZm.js → chunk-ZPAFE4SF-DbCSwfLK.js} +1 -1
  50. package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +40 -0
  51. package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +40 -0
  52. package/dist/{click-outside-container-CL_FkgGY.js → click-outside-container-2BH589Bq.js} +2 -2
  53. package/dist/{clike-DYfRWWXk.js → clike-CytFO-kN.js} +1 -1
  54. package/dist/clojure-8GefCgPe.js +4 -0
  55. package/dist/{clone-Msbhmn2a.js → clone-CCgVUJ6x.js} +1 -1
  56. package/dist/cmake-yAhT9H0F.js +4 -0
  57. package/dist/cobol-BmltueOY.js +4 -0
  58. package/dist/coffeescript-C7KEQBcH.js +4 -0
  59. package/dist/commonlisp-CNbiJRU-.js +4 -0
  60. package/dist/{constants-BCOEQoEQ.js → constants-BaCMVd12.js} +3 -3
  61. package/dist/{copy-BkZ8PkBM.js → copy-GNcK40wy.js} +2 -2
  62. package/dist/{cose-bilkent-S5V4N54A-BZnbwyVD.js → cose-bilkent-S5V4N54A-BnvuJG6Y.js} +3 -3
  63. package/dist/crystal-OdjZZ8bc.js +4 -0
  64. package/dist/css-DhTxMmL_.js +5 -0
  65. package/dist/cypher-CgN8E3YI.js +4 -0
  66. package/dist/d-g41sJcBC.js +4 -0
  67. package/dist/{dagre-5GWH7T2D-BGaiSZZO.js → dagre-5GWH7T2D-rn7tZYaQ.js} +37 -36
  68. package/dist/{dagre-pyfDIOWJ.js → dagre-Bghq6VKO.js} +13 -13
  69. package/dist/{data-grid-overlay-editor-867aBz0Y.js → data-grid-overlay-editor-B4_Caieu.js} +4 -4
  70. package/dist/{diagram-N5W7TBWH-CzLE0jZB.js → diagram-N5W7TBWH-lbF94o-g.js} +41 -40
  71. package/dist/{diagram-QEK2KX5R-AGS60xEZ.js → diagram-QEK2KX5R-CKBhSzsO.js} +35 -34
  72. package/dist/{diagram-S2PKOQOG-BxRoG6yW.js → diagram-S2PKOQOG-161_1f53.js} +35 -34
  73. package/dist/diff-ViRYYhhg.js +4 -0
  74. package/dist/{dist-PGgOcwbF.js → dist-28HYzERB.js} +2 -2
  75. package/dist/{dist-CfQHSIQC.js → dist-4dtbqf8A.js} +3 -3
  76. package/dist/{dist-CYhQCVru.js → dist-71jYYbWP.js} +2 -2
  77. package/dist/{dist-Cacac5HV.js → dist-B8Pbw5ln.js} +2 -2
  78. package/dist/{dist-z_iuDES7.js → dist-BAqp4Vtl.js} +1 -1
  79. package/dist/{dist-RwqAqkpG.js → dist-BBhmkni2.js} +1 -1
  80. package/dist/{dist-DMxl6Qbu.js → dist-BNRdMfJH.js} +2 -2
  81. package/dist/{dist-Doiq_KIP.js → dist-BSyYM1Gi.js} +6 -6
  82. package/dist/{dist-NUdHX0XE.js → dist-BYHiiJB-.js} +2 -2
  83. package/dist/{dist-B0YD1aXi.js → dist-B_wjJqqS.js} +2 -2
  84. package/dist/{dist-DBhEu3-F.js → dist-BaPjLM6s.js} +1 -1
  85. package/dist/dist-BfJO8Bm9.js +12 -0
  86. package/dist/{dist-BFkr6kAQ.js → dist-BqdQPWpQ.js} +2 -2
  87. package/dist/{dist-DlHkZUnY.js → dist-C2IEc8og.js} +5 -5
  88. package/dist/{dist-DS6nuHYK.js → dist-C9-uHBqC.js} +1 -1
  89. package/dist/{dist-B1Dv8Sdk.js → dist-CJb8EiFO.js} +3 -3
  90. package/dist/dist-CLuF3AtO.js +6 -0
  91. package/dist/{dist-CId4IPXu.js → dist-CNAkUyxv.js} +1 -1
  92. package/dist/{dist-RdxOJbBw.js → dist-CNvMOZu9.js} +2 -2
  93. package/dist/{dist-C7zhQ7K0.js → dist-CPNnKuPh.js} +1 -1
  94. package/dist/{dist-ivwkJchV.js → dist-CTIyD_KU.js} +3 -3
  95. package/dist/dist-CU04U4NL.js +10 -0
  96. package/dist/{dist-D-3fICwh.js → dist-CWh5ZwcC.js} +2 -2
  97. package/dist/{dist-d5NxvX2s.js → dist-CWqB4bg8.js} +3 -3
  98. package/dist/{dist-biZ846D9.js → dist-CtOeHDJp.js} +5 -5
  99. package/dist/{dist-BL2DSY0P.js → dist-Cw0F6l-7.js} +1 -1
  100. package/dist/{dist-wHVprCkn.js → dist-CwZcC4om.js} +1 -1
  101. package/dist/dist-DNUT6b47.js +6 -0
  102. package/dist/{dist-CZq5-ZyD.js → dist-Da046MhT.js} +1 -1
  103. package/dist/{dist-reo2kYlN.js → dist-DaTVdKJa.js} +2 -2
  104. package/dist/dist-DbAb2sY7.js +6 -0
  105. package/dist/dist-DiDFQ2Rk.js +6 -0
  106. package/dist/{dist-BpzZrRd6.js → dist-DlK420ke.js} +1 -1
  107. package/dist/{dist-CvyfRaIr.js → dist-Drf3cyIW.js} +3 -3
  108. package/dist/{dist-2Ne-33Xy.js → dist-DxESp2-T.js} +3 -3
  109. package/dist/{dist-CkvGMBAS.js → dist-DzJem5xc.js} +1 -1
  110. package/dist/{dist-y8uoXYaE.js → dist-O0zVziwn.js} +3 -3
  111. package/dist/dist-SNAyAOJ-.js +6 -0
  112. package/dist/{dist-BhVFggab.js → dist-_4cudra1.js} +3 -3
  113. package/dist/dist-cbW5xJNV.js +6 -0
  114. package/dist/dist-h8eGLSbK.js +10 -0
  115. package/dist/{dist-CBhnQKQ4.js → dist-xLN9qCAp.js} +3 -3
  116. package/dist/{dockerfile-sZMPcXVY.js → dockerfile-Cmlcqk35.js} +1 -1
  117. package/dist/dtd-RplB6hDg.js +4 -0
  118. package/dist/dylan-BX8KJufP.js +4 -0
  119. package/dist/ecl-CWtLaNMH.js +4 -0
  120. package/dist/eiffel-C-mlZPMn.js +4 -0
  121. package/dist/elm-CWp06vcb.js +4 -0
  122. package/dist/{erDiagram-AWTI2OKA-CTxzb-U8.js → erDiagram-AWTI2OKA-BU7Qig7n.js} +30 -29
  123. package/dist/erlang-pfp22AZM.js +4 -0
  124. package/dist/error-banner-BAWlXn49.js +1012 -0
  125. package/dist/{esm-CAWW9sum.js → esm-AtKNNGYO.js} +1 -1
  126. package/dist/esm-B2pocBPL.js +26 -0
  127. package/dist/{esm-BdiY4QsX.js → esm-Oo8OvZ6m.js} +110 -110
  128. package/dist/{esm-YY5zh7KV.js → esm-YVnxJqkD.js} +20 -20
  129. package/dist/{factor-CRFTmP_a.js → factor-BZnBK3CG.js} +1 -1
  130. package/dist/factor-CEn53jua.js +5 -0
  131. package/dist/{flowDiagram-PVAE7QVJ-Dck2hiJe.js → flowDiagram-PVAE7QVJ-JKJebWeY.js} +39 -38
  132. package/dist/{formats-BnqXUb1V.js → formats-DOEuF6TR.js} +8 -8
  133. package/dist/forth-CL8vu_y8.js +4 -0
  134. package/dist/fortran-DsmXkYtE.js +4 -0
  135. package/dist/{ganttDiagram-OWAHRB6G-AWzfzpup.js → ganttDiagram-OWAHRB6G-BvWRfg05.js} +17 -16
  136. package/dist/gas-mYt9Rtlx.js +4 -0
  137. package/dist/gherkin-DHNCKBNj.js +4 -0
  138. package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +21 -0
  139. package/dist/{gitGraphDiagram-NY62KEGX-GyNboWSV.js → gitGraphDiagram-NY62KEGX-VEJJBf5L.js} +35 -34
  140. package/dist/{glide-data-editor-DHuN8kQ8.js → glide-data-editor-Bne10icG.js} +87 -85
  141. package/dist/{graphlib-hb3zmtVD.js → graphlib-DRS8CrjA.js} +5 -5
  142. package/dist/groovy-DzRtOS5a.js +4 -0
  143. package/dist/haskell-Bl9iT_Mp.js +4 -0
  144. package/dist/haxe-DqA0ED6k.js +5 -0
  145. package/dist/{hotkeys-Ct2T3e9O.js → hotkeys-DVxFjl2s.js} +12 -0
  146. package/dist/idl-WU2hil4i.js +4 -0
  147. package/dist/info-63CPKGFF-CG-xzUJo.js +21 -0
  148. package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +45 -0
  149. package/dist/invariant-D3JoRb4I.js +6 -0
  150. package/dist/{isEmpty--odfYjh1.js → isEmpty-Do_v2sls.js} +2 -2
  151. package/dist/{isSymbol-Cb1f2HgO.js → isSymbol-CtkA8Y0a.js} +1 -1
  152. package/dist/javascript-QY2BGJeV.js +5 -0
  153. package/dist/jinja2-Czleq7Sk.js +4 -0
  154. package/dist/{journeyDiagram-BIP6EPQ6-TmXYCUbT.js → journeyDiagram-BIP6EPQ6-CsgEQgxh.js} +10 -9
  155. package/dist/julia-Dru3Qi0y.js +4 -0
  156. package/dist/{kanban-definition-6OIFK2YF-B6ozleHo.js → kanban-definition-6OIFK2YF-Bi8Ete2P.js} +42 -41
  157. package/dist/{katex-mPzRsXEy.js → katex-C-g3rKKt.js} +1 -1
  158. package/dist/{label-VVRKZmrP.js → label-BiVIU_wb.js} +245 -243
  159. package/dist/{line-C6-zz71o.js → line-B7-GoF1m.js} +3 -3
  160. package/dist/{linear-iebAbJVD.js → linear-DeGGALuc.js} +4 -4
  161. package/dist/livescript-Dxqi_HLT.js +4 -0
  162. package/dist/{loader-CM0VALo9.js → loader-BBqwtZWj.js} +3 -3
  163. package/dist/lua-ByH1cUQZ.js +4 -0
  164. package/dist/main.js +11785 -11529
  165. package/dist/mathematica-CWJIFuES.js +4 -0
  166. package/dist/mbox-qhPIGaUI.js +4 -0
  167. package/dist/{memoize-DYoRBSLn.js → memoize-D7eDkf3R.js} +1 -1
  168. package/dist/{merge-BjuR6j_w.js → merge-C_6cGM6o.js} +1 -1
  169. package/dist/{mermaid-YPPMBmhk.js → mermaid-BmtvsZ2m.js} +323 -321
  170. package/dist/{mermaid-parser.core-BLkyTSZj.js → mermaid-parser.core-geyG_6o0.js} +8 -8
  171. package/dist/{mhchem-Dw7wvXtr.js → mhchem-OhAaJ0fA.js} +1 -1
  172. package/dist/{min-B_i2ahn4.js → min-Dwa_NbP6.js} +7 -7
  173. package/dist/{mindmap-definition-Q6HEUPPD-F6-JnXwq.js → mindmap-definition-Q6HEUPPD-B-wmX1oG.js} +29 -28
  174. package/dist/mirc-yYcXhXBY.js +4 -0
  175. package/dist/mllike-BfT_Nl9x.js +6 -0
  176. package/dist/modelica-lVDtz1Rm.js +4 -0
  177. package/dist/mscgen-DvwdD1QJ.js +6 -0
  178. package/dist/mumps-BiY3GwKd.js +4 -0
  179. package/dist/{now-CwRqw0nS.js → now-DumxsrcX.js} +1 -1
  180. package/dist/{nsis-BWJEeUyS.js → nsis-D4bLR_Y1.js} +1 -1
  181. package/dist/nsis-Dk18Sq_4.js +5 -0
  182. package/dist/ntriples-Cj-8VqKF.js +4 -0
  183. package/dist/{number-overlay-editor-CeyruAX4.js → number-overlay-editor-D6r-48ka.js} +2 -2
  184. package/dist/octave-BgFAaYjU.js +4 -0
  185. package/dist/once-3OSMKEsL.js +74 -0
  186. package/dist/{ordinal-BXk5xAj2.js → ordinal-DpEbSVPc.js} +1 -1
  187. package/dist/oz-IsEG1I1m.js +4 -0
  188. package/dist/packet-HUATNLJX-Cafuo3IG.js +21 -0
  189. package/dist/pascal-BVf7FtIE.js +4 -0
  190. package/dist/perl-BM0-y4mZ.js +4 -0
  191. package/dist/pie-WTHONI2E-BE0pHBwB.js +21 -0
  192. package/dist/{pieDiagram-ADFJNKIX-C5dSQVCn.js → pieDiagram-ADFJNKIX-C3GvPNUL.js} +40 -39
  193. package/dist/pig-CLBjzQmc.js +4 -0
  194. package/dist/powershell-B_qvE33J.js +4 -0
  195. package/dist/{precisionRound-DbP73hkf.js → precisionRound-7YYJq2rW.js} +1 -1
  196. package/dist/properties-CUTpsH2y.js +4 -0
  197. package/dist/protobuf-DqCP8a-0.js +4 -0
  198. package/dist/pug-BvexKkw4.js +5 -0
  199. package/dist/{pug-PJh82u1M.js → pug-Dv3gE36O.js} +1 -1
  200. package/dist/puppet-CoIi0R3f.js +4 -0
  201. package/dist/purify.es-CrfFzTyi.js +536 -0
  202. package/dist/python-C-11-YMh.js +5 -0
  203. package/dist/q-CCVgEip7.js +4 -0
  204. package/dist/{quadrantDiagram-LMRXKWRM-DlahxNiy.js → quadrantDiagram-LMRXKWRM-DPXwGNVa.js} +8 -7
  205. package/dist/r-CIdR0Sfs.js +4 -0
  206. package/dist/radar-NJJJXTRR-0adgjw0u.js +21 -0
  207. package/dist/{range-DxfkexCE.js → range-CIbLpsrs.js} +3 -3
  208. package/dist/{react-plotly-D_IAfR8f.js → react-plotly-DYyvxcRD.js} +1 -1
  209. package/dist/{requirementDiagram-4UW4RH46-DTkinyvU.js → requirementDiagram-4UW4RH46-Cs3Hqnm0.js} +24 -23
  210. package/dist/rpm-Dwvm039g.js +5 -0
  211. package/dist/ruby-DpTnO5gb.js +4 -0
  212. package/dist/{sankeyDiagram-GR3RE2ED-CsLnEnnq.js → sankeyDiagram-GR3RE2ED-Be1d_Xf7.js} +7 -6
  213. package/dist/sas-CK9boxgv.js +4 -0
  214. package/dist/scheme-Y1aYL-Qq.js +4 -0
  215. package/dist/{sequenceDiagram-C3RYC4MD-BdEOR6SC.js → sequenceDiagram-C3RYC4MD-lbtovKTa.js} +14 -13
  216. package/dist/shell-D3eXGsHd.js +4 -0
  217. package/dist/sieve-BdwSFdWJ.js +4 -0
  218. package/dist/{slides-component-2bbal1YJ.js → slides-component-BoeQU7-s.js} +999 -998
  219. package/dist/smalltalk-BTYJquCm.js +4 -0
  220. package/dist/sparql-CYF0g4Cc.js +4 -0
  221. package/dist/{src-DZkaBUmt.js → src-BTqT1mA1.js} +1 -1
  222. package/dist/{stateDiagram-KXAO66HF-DQLH2jhP.js → stateDiagram-KXAO66HF-BmbR-Rol.js} +40 -39
  223. package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +39 -0
  224. package/dist/{step-IHYrujTc.js → step-2RJrMSSG.js} +1 -1
  225. package/dist/stex-CyWhoWHt.js +5 -0
  226. package/dist/style.css +1 -1
  227. package/dist/stylus-BBiKaI2h.js +4 -0
  228. package/dist/swift-COb15qFR.js +4 -0
  229. package/dist/tcl-Jik1LXu9.js +4 -0
  230. package/dist/textile-BFHPD3wr.js +4 -0
  231. package/dist/{time-CFkXkVrt.js → time-BB30r1tK.js} +4 -4
  232. package/dist/{timeline-definition-XQNQX7LJ-bToVq14i.js → timeline-definition-XQNQX7LJ-1mv5caPW.js} +16 -15
  233. package/dist/{toNumber-EFF1Z9T1.js → toNumber-D3Ystr3y.js} +2 -2
  234. package/dist/{toString-C2mCkasT.js → toString-CbuxCRDG.js} +2 -2
  235. package/dist/toml-Brp9fBXs.js +4 -0
  236. package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +21 -0
  237. package/dist/troff-CcZRW4vg.js +4 -0
  238. package/dist/ttcn-Bz_6ifRd.js +4 -0
  239. package/dist/ttcn-cfg-v-yi2rKc.js +4 -0
  240. package/dist/turtle-CDOsZYhB.js +4 -0
  241. package/dist/{types-CRXV0KD5.js → types-BPohCsA7.js} +141 -210
  242. package/dist/{useAsyncData-uMVTsDI9.js → useAsyncData-DHBqeb9a.js} +3 -2
  243. package/dist/{useDateFormatter-Dcz7jstn.js → useDateFormatter-BkbjKw83.js} +9 -9
  244. package/dist/useIframeCapabilities-BEvvwlwt.js +46 -0
  245. package/dist/{useTheme-NbEx-ZNV.js → useTheme-CnMbo-iq.js} +23 -23
  246. package/dist/vb-CL7fRwRw.js +4 -0
  247. package/dist/vbscript-CR2xfxpw.js +4 -0
  248. package/dist/{vega-component-hegVmfuS.js → vega-component-BfFcXZxw.js} +40 -39
  249. package/dist/{vega-loader.browser.module-DcW8jnKp.js → vega-loader.browser.module-CFMtdrNw.js} +3 -3
  250. package/dist/velocity-CfuZoxPt.js +4 -0
  251. package/dist/verilog-CySTkzw_.js +4 -0
  252. package/dist/vhdl-Dvcd8KHW.js +4 -0
  253. package/dist/webidl-tbJt7sKk.js +4 -0
  254. package/dist/xquery-DJQVztyc.js +4 -0
  255. package/dist/{xychartDiagram-6GGTOJPD-C7Bhm_yt.js → xychartDiagram-6GGTOJPD-njc-naaw.js} +23 -22
  256. package/dist/yacas-BbgBReEH.js +4 -0
  257. package/dist/z80-DPyb8VGz.js +4 -0
  258. package/package.json +10 -6
  259. package/src/components/app-config/ai-config.tsx +1 -3
  260. package/src/components/app-config/common.tsx +14 -0
  261. package/src/components/app-config/data-form.tsx +282 -0
  262. package/src/components/app-config/user-config-form.tsx +36 -223
  263. package/src/components/chat/acp/__tests__/state.test.ts +75 -2
  264. package/src/components/chat/acp/agent-panel.tsx +143 -89
  265. package/src/components/chat/acp/blocks.tsx +77 -34
  266. package/src/components/chat/acp/state.ts +5 -1
  267. package/src/components/chat/acp/thread.tsx +12 -1
  268. package/src/components/chat/chat-panel.tsx +38 -5
  269. package/src/components/chat/chat-utils.ts +5 -1
  270. package/src/components/chat/markdown-renderer.css +1 -0
  271. package/src/components/chat/tool-call-accordion.tsx +7 -1
  272. package/src/components/data-table/charts/__tests__/storage.test.ts +12 -6
  273. package/src/components/data-table/charts/charts.tsx +8 -2
  274. package/src/components/data-table/charts/storage.ts +1 -1
  275. package/src/components/data-table/column-wrapping/feature.ts +2 -0
  276. package/src/components/data-table/columns.tsx +10 -2
  277. package/src/components/data-table/renderers.tsx +3 -2
  278. package/src/components/editor/Output.tsx +28 -24
  279. package/src/components/editor/actions/useCellActionButton.tsx +20 -4
  280. package/src/components/editor/ai/add-cell-with-ai.tsx +17 -3
  281. package/src/components/editor/ai/ai-completion-editor.tsx +79 -32
  282. package/src/components/editor/ai/completion-handlers.tsx +26 -7
  283. package/src/components/editor/cell/StagedAICell.tsx +81 -12
  284. package/src/components/editor/cell/code/cell-editor.tsx +2 -3
  285. package/src/components/editor/cell/useRunCells.ts +62 -30
  286. package/src/components/editor/chrome/panels/cache-panel.tsx +2 -2
  287. package/src/components/editor/chrome/panels/packages-panel.tsx +1 -1
  288. package/src/components/editor/chrome/state.ts +1 -1
  289. package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -0
  290. package/src/components/editor/chrome/wrapper/minimap.tsx +2 -0
  291. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +108 -0
  292. package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
  293. package/src/components/editor/code/readonly-diff.tsx +49 -0
  294. package/src/components/editor/columns/storage.ts +1 -1
  295. package/src/components/editor/errors/fix-mode.ts +6 -1
  296. package/src/components/editor/inputs/Inputs.styles.ts +1 -1
  297. package/src/components/editor/output/CalloutOutput.tsx +1 -1
  298. package/src/components/editor/output/HtmlOutput.tsx +3 -2
  299. package/src/components/editor/output/JsonOutput.tsx +6 -1
  300. package/src/components/editor/output/MarimoTracebackOutput.tsx +59 -45
  301. package/src/components/editor/output/__tests__/HtmlOutput.test.tsx +134 -0
  302. package/src/components/editor/output/__tests__/traceback.test.tsx +8 -1
  303. package/src/components/editor/output/useWrapText.ts +6 -1
  304. package/src/components/editor/package-alert.tsx +34 -32
  305. package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +5 -2
  306. package/src/components/home/state.ts +3 -2
  307. package/src/components/scratchpad/scratchpad-history.ts +6 -1
  308. package/src/components/slides/slides-component.tsx +25 -21
  309. package/src/components/ui/confirmation-button.tsx +1 -1
  310. package/src/components/ui/context-menu.tsx +14 -4
  311. package/src/components/ui/dropdown-menu.tsx +14 -4
  312. package/src/components/ui/fullscreen.tsx +115 -1
  313. package/src/components/ui/popover.tsx +11 -3
  314. package/src/components/ui/range-slider.tsx +1 -1
  315. package/src/components/ui/select.tsx +7 -3
  316. package/src/components/ui/slider.tsx +1 -1
  317. package/src/components/ui/tooltip.tsx +10 -3
  318. package/src/core/ai/__tests__/staged-cells.test.ts +189 -64
  319. package/src/core/ai/config.ts +6 -2
  320. package/src/core/ai/context/providers/__tests__/__snapshots__/cell-output.test.ts.snap +17 -0
  321. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +194 -10
  322. package/src/core/ai/context/providers/cell-output.ts +170 -112
  323. package/src/core/ai/context/providers/tables.ts +2 -2
  324. package/src/core/ai/staged-cells.ts +32 -16
  325. package/src/core/ai/state.ts +2 -1
  326. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +556 -0
  327. package/src/core/ai/tools/__tests__/registry.test.ts +12 -4
  328. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +450 -0
  329. package/src/core/ai/tools/__tests__/utils.test.ts +87 -0
  330. package/src/core/ai/tools/base.ts +31 -8
  331. package/src/core/ai/tools/edit-notebook-tool.ts +239 -0
  332. package/src/core/ai/tools/registry.ts +13 -6
  333. package/src/core/ai/tools/run-cells-tool.ts +233 -0
  334. package/src/core/ai/tools/sample-tool.ts +10 -8
  335. package/src/core/ai/tools/utils.ts +23 -0
  336. package/src/core/cells/__tests__/cells.test.ts +19 -1
  337. package/src/core/cells/__tests__/session.test.ts +20 -3
  338. package/src/core/cells/cells.ts +12 -7
  339. package/src/core/cells/session.ts +1 -1
  340. package/src/core/codemirror/ai/resources.ts +13 -2
  341. package/src/core/codemirror/copilot/state.ts +4 -2
  342. package/src/core/codemirror/language/__tests__/extension.test.ts +10 -2
  343. package/src/core/codemirror/language/languages/markdown.ts +16 -153
  344. package/src/core/codemirror/language/languages/python.ts +12 -7
  345. package/src/core/codemirror/language/languages/sql/sql-mode.ts +6 -1
  346. package/src/core/codemirror/language/languages/sql/sql.ts +20 -293
  347. package/src/core/codemirror/language/panel/markdown.tsx +2 -1
  348. package/src/core/codemirror/language/panel/panel.tsx +1 -1
  349. package/src/core/codemirror/lsp/federated-lsp.ts +1 -1
  350. package/src/core/codemirror/lsp/transports.ts +7 -13
  351. package/src/core/config/config-schema.ts +4 -1
  352. package/src/core/hotkeys/hotkeys.ts +12 -0
  353. package/src/core/lsp/__tests__/transport.test.ts +233 -0
  354. package/src/core/lsp/transport.ts +139 -0
  355. package/src/core/rtc/state.ts +6 -1
  356. package/src/core/vscode/is-in-vscode.ts +9 -0
  357. package/src/core/wasm/store.ts +1 -1
  358. package/src/css/app/Cell.css +31 -0
  359. package/src/css/globals.css +5 -0
  360. package/src/hooks/useIframeCapabilities.ts +14 -0
  361. package/src/hooks/useLocalStorage.ts +1 -1
  362. package/src/plugins/core/RenderHTML.tsx +65 -5
  363. package/src/plugins/core/__test__/RenderHTML.test.ts +25 -23
  364. package/src/plugins/core/__test__/renderHTML-sanitization.test.tsx +131 -0
  365. package/src/plugins/core/__test__/sanitize.test.ts +465 -0
  366. package/src/plugins/core/registerReactComponent.tsx +14 -1
  367. package/src/plugins/core/sanitize.ts +76 -0
  368. package/src/plugins/impl/DataTablePlugin.tsx +1 -0
  369. package/src/plugins/impl/FileBrowserPlugin.tsx +1 -3
  370. package/src/plugins/impl/FileUploadPlugin.tsx +1 -3
  371. package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +8 -1
  372. package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +6 -0
  373. package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +8 -1
  374. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +3 -0
  375. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +9 -2
  376. package/src/plugins/impl/plotly/parse-from-template.ts +1 -1
  377. package/src/utils/__tests__/arrays.test.ts +42 -0
  378. package/src/utils/__tests__/capabilities.test.ts +453 -0
  379. package/src/utils/__tests__/formatting.test.ts +13 -13
  380. package/src/utils/__tests__/local-storage.test.ts +1 -1
  381. package/src/utils/__tests__/storage.test.ts +21 -21
  382. package/src/utils/arrays.ts +25 -0
  383. package/src/utils/capabilities.ts +114 -0
  384. package/src/utils/numbers.ts +2 -2
  385. package/src/utils/{storage.ts → storage/jotai.ts} +16 -4
  386. package/src/utils/storage/storage.ts +57 -0
  387. package/src/utils/{localStorage.ts → storage/typed.ts} +22 -12
  388. package/dist/any-language-editor-CEXn1vFs.js +0 -156
  389. package/dist/apl-DuVfHsPc.js +0 -4
  390. package/dist/architecture-O4VJ6CD3-lp-opOaL.js +0 -21
  391. package/dist/asciiarmor-qIVWsi4F.js +0 -4
  392. package/dist/asn1-BjPqARr7.js +0 -4
  393. package/dist/assets/__vite-browser-external-lX-sn9m2.js +0 -1
  394. package/dist/brainfuck-DPGTVfkE.js +0 -4
  395. package/dist/classDiagram-KNZD7YFC-azuS_99k.js +0 -39
  396. package/dist/classDiagram-v2-RKCZMP56-CQpyQQOR.js +0 -39
  397. package/dist/clojure-ATksAecl.js +0 -4
  398. package/dist/cmake-CWylaz2C.js +0 -4
  399. package/dist/cobol-BiLLCZIQ.js +0 -4
  400. package/dist/coffeescript-Ca4jipi8.js +0 -4
  401. package/dist/commonlisp-BwFjyEC7.js +0 -4
  402. package/dist/crystal-BhUsQHbh.js +0 -4
  403. package/dist/css-Cf4wlIyV.js +0 -5
  404. package/dist/cypher-Dj8Hzgxa.js +0 -4
  405. package/dist/d-DZI7tbTy.js +0 -4
  406. package/dist/diff-WQISUHG5.js +0 -4
  407. package/dist/dist-BawZu0ix.js +0 -10
  408. package/dist/dist-BiOF7987.js +0 -6
  409. package/dist/dist-Cs3McXEj.js +0 -6
  410. package/dist/dist-D3aaithT.js +0 -6
  411. package/dist/dist-DELcMSpJ.js +0 -6
  412. package/dist/dist-Dgts3WXd.js +0 -6
  413. package/dist/dist-DtpUiDG_.js +0 -6
  414. package/dist/dist-ZjnJq_jD.js +0 -10
  415. package/dist/dist-mof3iuBu.js +0 -12
  416. package/dist/dtd-B2M8dhfC.js +0 -4
  417. package/dist/dylan-CU3Vt8SC.js +0 -4
  418. package/dist/ecl-B8ESAVq4.js +0 -4
  419. package/dist/eiffel-DDfMIKeA.js +0 -4
  420. package/dist/elm-Bj6rj8jf.js +0 -4
  421. package/dist/erlang-BxyshZUq.js +0 -4
  422. package/dist/error-banner-npbEfanI.js +0 -1012
  423. package/dist/esm-svAVli9f.js +0 -26
  424. package/dist/factor-CYk6XT8r.js +0 -5
  425. package/dist/forth-fcoJkd-f.js +0 -4
  426. package/dist/fortran-IxZHu4wc.js +0 -4
  427. package/dist/gas-B8rmKcim.js +0 -4
  428. package/dist/gherkin-BTm-jIdJ.js +0 -4
  429. package/dist/gitGraph-ZV4HHKMB-DFg_OLQb.js +0 -21
  430. package/dist/groovy-01kRHFMD.js +0 -4
  431. package/dist/haskell-B3PhE05w.js +0 -4
  432. package/dist/haxe-DEoAm8oA.js +0 -5
  433. package/dist/idl-DsDJU9cV.js +0 -4
  434. package/dist/info-63CPKGFF-D3DZmDBa.js +0 -21
  435. package/dist/infoDiagram-STP46IZ2-ec08vi_U.js +0 -44
  436. package/dist/javascript-gwczVhuU.js +0 -5
  437. package/dist/jinja2-AkZRdFk3.js +0 -4
  438. package/dist/julia-_s6qe3bf.js +0 -4
  439. package/dist/livescript-CwPHQdv5.js +0 -4
  440. package/dist/lua-s7nRxkCP.js +0 -4
  441. package/dist/mathematica-Ci36yd1q.js +0 -4
  442. package/dist/mbox-DbOYMNCO.js +0 -4
  443. package/dist/mirc-VmNe8AwF.js +0 -4
  444. package/dist/mllike-BdD7SJEa.js +0 -6
  445. package/dist/modelica-BA4VqzC3.js +0 -4
  446. package/dist/mscgen-DF-5WHJm.js +0 -6
  447. package/dist/mumps-c_Uia_QN.js +0 -4
  448. package/dist/nsis-BAANGODV.js +0 -5
  449. package/dist/ntriples-Bslqh2Ki.js +0 -4
  450. package/dist/octave-DYn5ltia.js +0 -4
  451. package/dist/oz-B_N-StZq.js +0 -4
  452. package/dist/packet-HUATNLJX-CkqjFdAv.js +0 -21
  453. package/dist/pascal-DU4CtAUu.js +0 -4
  454. package/dist/perl-Bae6k32u.js +0 -4
  455. package/dist/pie-WTHONI2E-D0rWwX5P.js +0 -21
  456. package/dist/pig-DSIxUEgX.js +0 -4
  457. package/dist/powershell-31lcPgIF.js +0 -4
  458. package/dist/properties-lmYbntDG.js +0 -4
  459. package/dist/protobuf-BTYoCEpV.js +0 -4
  460. package/dist/pug-DMFM7zzO.js +0 -5
  461. package/dist/puppet-B0ub07d-.js +0 -4
  462. package/dist/python-C4jT87Nt.js +0 -5
  463. package/dist/q-YbPYlqRI.js +0 -4
  464. package/dist/r-OfNu6HAI.js +0 -4
  465. package/dist/radar-NJJJXTRR-Bxqv4O5a.js +0 -21
  466. package/dist/rpm-D_3b5peD.js +0 -5
  467. package/dist/ruby-CehsJy_T.js +0 -4
  468. package/dist/sas-DwQHzPoF.js +0 -4
  469. package/dist/scheme-B6ArxiQu.js +0 -4
  470. package/dist/shell-AHmQgDfc.js +0 -4
  471. package/dist/sieve-CgodKOcx.js +0 -4
  472. package/dist/smalltalk-BeFzDkbo.js +0 -4
  473. package/dist/sparql-BWxq-Lnx.js +0 -4
  474. package/dist/stateDiagram-v2-UMBNRL4Z-D9v8fKjF.js +0 -38
  475. package/dist/stex-Dvaq0qsm.js +0 -5
  476. package/dist/stylus-Ge0ofWlZ.js +0 -4
  477. package/dist/swift-CjQfbVxV.js +0 -4
  478. package/dist/tcl-CAGDF11K.js +0 -4
  479. package/dist/textile-CrXreJtf.js +0 -4
  480. package/dist/toml-AdLXKwEi.js +0 -4
  481. package/dist/treemap-75Q7IDZK-Da9Jv6a_.js +0 -21
  482. package/dist/troff-C-LaM2ex.js +0 -4
  483. package/dist/ttcn-DTclUi6T.js +0 -4
  484. package/dist/ttcn-cfg-BtBPbmLX.js +0 -4
  485. package/dist/turtle-BODDDg5O.js +0 -4
  486. package/dist/vb-Cb1HQHii.js +0 -4
  487. package/dist/vbscript-CpXOP4wZ.js +0 -4
  488. package/dist/velocity-Dz0rBQIk.js +0 -4
  489. package/dist/verilog-6Di9aLKw.js +0 -4
  490. package/dist/vhdl-BRNesXYc.js +0 -4
  491. package/dist/webidl-BpRNYIYn.js +0 -4
  492. package/dist/xquery-DXWcJ7b6.js +0 -4
  493. package/dist/yacas-DbSARPz4.js +0 -4
  494. package/dist/z80-DzslPj_l.js +0 -4
  495. package/src/core/codemirror/language/__tests__/ast.test.ts +0 -124
  496. package/src/core/codemirror/language/utils/ast.ts +0 -84
  497. package/src/core/codemirror/language/utils/quotes.ts +0 -18
  498. /package/dist/{_arrayReduce-CVwxyrBP.js → _arrayReduce-Cd9xQjbl.js} +0 -0
  499. /package/dist/{_baseSlice-OgpvpOOJ.js → _baseSlice-CE9WsQZm.js} +0 -0
  500. /package/dist/{_hasUnicode-BgIggCqE.js → _hasUnicode-DkEebvtD.js} +0 -0
  501. /package/dist/{apl-CEHentF4.js → apl-aGhy11IM.js} +0 -0
  502. /package/dist/{array-aAxy08hN.js → array-DYSXIreg.js} +0 -0
  503. /package/dist/{asciiarmor-DURYiCS0.js → asciiarmor-DJKJ3Gkn.js} +0 -0
  504. /package/dist/{asn1-ETAiEoXY.js → asn1-C6f5IeNs.js} +0 -0
  505. /package/dist/{asterisk-DTpbbXPb.js → asterisk-DB1poX9_.js} +0 -0
  506. /package/dist/{brainfuck-BWQep-SA.js → brainfuck-Ch9vjun0.js} +0 -0
  507. /package/dist/{chunk-57QY23SG-0TxCfmy_.js → chunk-57QY23SG-BpXU7ph4.js} +0 -0
  508. /package/dist/{clike-bzZTreP4.js → clike-Bc2PZzZQ.js} +0 -0
  509. /package/dist/{clojure-BzFapDkA.js → clojure-B_lpr3zt.js} +0 -0
  510. /package/dist/{cmake-DvlbIC8x.js → cmake-DaocNF4I.js} +0 -0
  511. /package/dist/{cobol-BrEI4cPR.js → cobol-suTPtt7c.js} +0 -0
  512. /package/dist/{coffeescript-B6cvu8mO.js → coffeescript-CPLIvtqJ.js} +0 -0
  513. /package/dist/{colors-Cr_mZ2aH.js → colors-BXlG8Lmz.js} +0 -0
  514. /package/dist/{common-keywords-WqQm7W8t.js → common-keywords-Bhll7O3b.js} +0 -0
  515. /package/dist/{commonlisp-BIT8PQqi.js → commonlisp-BqM3qFK7.js} +0 -0
  516. /package/dist/{crystal-B_UcPArT.js → crystal-AsSFu4ke.js} +0 -0
  517. /package/dist/{css-dHbnt_zl.js → css-Df7Sdeyh.js} +0 -0
  518. /package/dist/{cypher-Dh3FOpL7.js → cypher-CaVKL6Gu.js} +0 -0
  519. /package/dist/{cytoscape.esm-BTpRoPd2.js → cytoscape.esm-BFEMljQI.js} +0 -0
  520. /package/dist/{d-CQD1IHee.js → d-DCGWK7NQ.js} +0 -0
  521. /package/dist/{defaultLocale-BAgEOGks.js → defaultLocale-CYgZlqDF.js} +0 -0
  522. /package/dist/{defaultLocale-471SYAPk.js → defaultLocale-Cto8YOmX.js} +0 -0
  523. /package/dist/{diff-CpF_IDx0.js → diff-CsxOM4Tr.js} +0 -0
  524. /package/dist/{dist-CK8Gj3GX.js → dist-C76MUPD3.js} +0 -0
  525. /package/dist/{dtd-DYoNpy6c.js → dtd-Dwr0Jmks.js} +0 -0
  526. /package/dist/{duckdb-keywords-CdIsl9L0.js → duckdb-keywords-7wAWf848.js} +0 -0
  527. /package/dist/{dylan-Bc_2G1E-.js → dylan-A7-ZBSey.js} +0 -0
  528. /package/dist/{ebnf-jGVT_YpN.js → ebnf-9_SaGDUz.js} +0 -0
  529. /package/dist/{ecl-UIU-P-Ar.js → ecl-BzJVIQDc.js} +0 -0
  530. /package/dist/{eiffel-C90Oyuix.js → eiffel-CO9eC_Op.js} +0 -0
  531. /package/dist/{elm-B9fWSySj.js → elm-CVAWj8SB.js} +0 -0
  532. /package/dist/{emotion-is-prop-valid.esm-BHMWayAG.js → emotion-is-prop-valid.esm-C3Yi5GQt.js} +0 -0
  533. /package/dist/{erlang-Ccff0UAn.js → erlang-DWbZP546.js} +0 -0
  534. /package/dist/{fcl-CGR8NxAg.js → fcl-CM9t2iay.js} +0 -0
  535. /package/dist/{forth-U1ROGcBY.js → forth-BTYqUuu3.js} +0 -0
  536. /package/dist/{fortran-3nOkjDmc.js → fortran-DgAjHcCq.js} +0 -0
  537. /package/dist/{gas-B_4H5FzV.js → gas-BjDSWPZd.js} +0 -0
  538. /package/dist/{gherkin-B0eru5Uz.js → gherkin-ClRqqpKv.js} +0 -0
  539. /package/dist/{groovy-dqjtZUVf.js → groovy-BzNjnc8x.js} +0 -0
  540. /package/dist/{haskell-DFzCCQzo.js → haskell-DLdk34Jq.js} +0 -0
  541. /package/dist/{haxe-Da8Pj5RT.js → haxe-l6gaY_IS.js} +0 -0
  542. /package/dist/{http-1HACL_9s.js → http-6Qg7z_h2.js} +0 -0
  543. /package/dist/{idl-D3NXs5iM.js → idl-hlWT4D26.js} +0 -0
  544. /package/dist/{init-D6eDd7H0.js → init-tZ42Torz.js} +0 -0
  545. /package/dist/{isArrayLikeObject-BlvK28do.js → isArrayLikeObject-DU5MCuQM.js} +0 -0
  546. /package/dist/{javascript-BfCTmOnk.js → javascript-DGukg1sB.js} +0 -0
  547. /package/dist/{jinja2-gBHAxUdF.js → jinja2-DI5k_Er3.js} +0 -0
  548. /package/dist/{julia-bG-6nJ-_.js → julia-BvDZDiIT.js} +0 -0
  549. /package/dist/{katex-mkWmhPUh.js → katex-DgfMWJY9.js} +0 -0
  550. /package/dist/{livescript-BlsRC8UJ.js → livescript-2YMQfkfI.js} +0 -0
  551. /package/dist/{lua-BbDC0_5w.js → lua-DIUrQRfA.js} +0 -0
  552. /package/dist/{main-Czi9-LVy.js → main-BMTpe7M0.js} +0 -0
  553. /package/dist/{marked.esm-DJM8la36.js → marked.esm-DkVwEwtO.js} +0 -0
  554. /package/dist/{math-C7wLpe9K.js → math-qsHyz2Eo.js} +0 -0
  555. /package/dist/{mathematica-YZTe3-PF.js → mathematica-Dqmg_BwL.js} +0 -0
  556. /package/dist/{mbox-CY5idp08.js → mbox-Cng-P-F1.js} +0 -0
  557. /package/dist/{mirc-CbQuFZKk.js → mirc-CNDqOVhQ.js} +0 -0
  558. /package/dist/{mllike-DsbHMX-5.js → mllike-C1n2UDyX.js} +0 -0
  559. /package/dist/{modelica-CQuvsOQk.js → modelica-QqQC2pFj.js} +0 -0
  560. /package/dist/{mscgen-LIpBP9VR.js → mscgen-C3fl8uhp.js} +0 -0
  561. /package/dist/{mumps-Ct5NXoaG.js → mumps-BeCUbMej.js} +0 -0
  562. /package/dist/{nginx-Dvc62C8z.js → nginx-ejv7DsBz.js} +0 -0
  563. /package/dist/{node-sql-parser-BqKV-TpL.js → node-sql-parser-CoPWN4hn.js} +0 -0
  564. /package/dist/{ntriples-jVkxWUuv.js → ntriples-CUgUpcma.js} +0 -0
  565. /package/dist/{octave-jGOImUB0.js → octave-BD652tGl.js} +0 -0
  566. /package/dist/{oz-Y0FKDMS2.js → oz-DrRsFa0K.js} +0 -0
  567. /package/dist/{pascal-BaLtPWWB.js → pascal-hpcx9sVn.js} +0 -0
  568. /package/dist/{path-VDkDgx1I.js → path-Bbv2tLY1.js} +0 -0
  569. /package/dist/{perl-CjfE0JLo.js → perl-DW8XHeFc.js} +0 -0
  570. /package/dist/{pig-DE4epV99.js → pig-Cv7Nxbfo.js} +0 -0
  571. /package/dist/{powershell-BZx53Ujw.js → powershell-Dr7WZMDU.js} +0 -0
  572. /package/dist/{prop-types-0wNc-99T.js → prop-types-Bd16OEUP.js} +0 -0
  573. /package/dist/{properties-CLyCG5C-.js → properties-D-qJDXAM.js} +0 -0
  574. /package/dist/{protobuf-BjBBs_V4.js → protobuf-B48QZbd3.js} +0 -0
  575. /package/dist/{puppet-ZImLuomA.js → puppet-15JDyiY2.js} +0 -0
  576. /package/dist/{python-C9YN71pR.js → python-DWkQA94h.js} +0 -0
  577. /package/dist/{q-CMoUHJ5Q.js → q-BzRpKgfd.js} +0 -0
  578. /package/dist/{r-DILmKWWW.js → r-dcNRe_Q8.js} +0 -0
  579. /package/dist/{range-PcytnUSJ.js → range-CQvYp_qE.js} +0 -0
  580. /package/dist/{rpm-fpIsm1Kr.js → rpm-Djl3Dsf1.js} +0 -0
  581. /package/dist/{ruby-BuiQI41h.js → ruby-Dd2CZTip.js} +0 -0
  582. /package/dist/{sas-C76sJ1zF.js → sas-DYF5_Iqu.js} +0 -0
  583. /package/dist/{scheme-DHjM-txv.js → scheme-YtWcji1H.js} +0 -0
  584. /package/dist/{shell--7NmGJ9p.js → shell-C3uC3Y0Z.js} +0 -0
  585. /package/dist/{sieve-DaPvBv1M.js → sieve-DHB17sQG.js} +0 -0
  586. /package/dist/{simple-mode-BP3Jd4vf.js → simple-mode-BMmwP_vI.js} +0 -0
  587. /package/dist/{smalltalk-KPvwrjCs.js → smalltalk-Y5v1Np3H.js} +0 -0
  588. /package/dist/{solr-PvZUtEDb.js → solr-DvRJLlRD.js} +0 -0
  589. /package/dist/{sparql-CXSUIQer.js → sparql-BEt3GJwM.js} +0 -0
  590. /package/dist/{spreadsheet-DPJdGPkx.js → spreadsheet-Dp4B9_rc.js} +0 -0
  591. /package/dist/{sql-Dp4ZLSIa.js → sql-DBsUs8nQ.js} +0 -0
  592. /package/dist/{stex-CeXW4zzk.js → stex-C6-x52ei.js} +0 -0
  593. /package/dist/{stylus-BXcmrg9w.js → stylus-DroA8via.js} +0 -0
  594. /package/dist/{swift-DD8I7hKP.js → swift-DR0x1ESK.js} +0 -0
  595. /package/dist/{tcl-B9Lp4GtA.js → tcl-BeuTFc_c.js} +0 -0
  596. /package/dist/{textile-qdiY0teq.js → textile-C0ikhHN3.js} +0 -0
  597. /package/dist/{tiddlywiki-t32lkubq.js → tiddlywiki-C_2Nvsgu.js} +0 -0
  598. /package/dist/{tiki-B0qKrSMl.js → tiki-CKQlhmQQ.js} +0 -0
  599. /package/dist/{timer-CzOhIJuk.js → timer-CcUhugb0.js} +0 -0
  600. /package/dist/{toml-eSl4PUAH.js → toml-BqNUJWRI.js} +0 -0
  601. /package/dist/{treemap-BpgMKHv-.js → treemap-BYLUKIzA.js} +0 -0
  602. /package/dist/{troff-105XJOEu.js → troff-DkK0f2ZH.js} +0 -0
  603. /package/dist/{tslib.es6-DofFyd9S.js → tslib.es6-3ZL768sZ.js} +0 -0
  604. /package/dist/{ttcn-1_BxDcM8.js → ttcn-Bf8vrg-_.js} +0 -0
  605. /package/dist/{ttcn-cfg-Cn_XgXiw.js → ttcn-cfg-DjCKzd95.js} +0 -0
  606. /package/dist/{turtle-BI6LyfEu.js → turtle-SSc84S9m.js} +0 -0
  607. /package/dist/{vb-BecoBfmr.js → vb-CQ6DC3cL.js} +0 -0
  608. /package/dist/{vbscript-De-zpA4i.js → vbscript-Dw0gFssg.js} +0 -0
  609. /package/dist/{velocity-DhlYJTrD.js → velocity-BvJQyBmj.js} +0 -0
  610. /package/dist/{verilog-BDZgxDOW.js → verilog-CKGAvQjj.js} +0 -0
  611. /package/dist/{vhdl-CV0OKTbp.js → vhdl-B40_x6fM.js} +0 -0
  612. /package/dist/{webidl-BOM1Fs0O.js → webidl-Bi9hczCv.js} +0 -0
  613. /package/dist/{xquery-CltP_CGh.js → xquery-DwWUXvP3.js} +0 -0
  614. /package/dist/{yacas-Dch4E2Dg.js → yacas-ClUs0mmH.js} +0 -0
  615. /package/dist/{z80-B5Yly27o.js → z80-DPC4UGzR.js} +0 -0
  616. /package/dist/{zod-ChY6miG5.js → zod-mAEs2ITo.js} +0 -0
@@ -1,5 +1,6 @@
1
- import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-DZkaBUmt.js";
2
- let is_dark_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, lighten_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, purify, updateSiteConfig, darken_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, rgba_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, utils_default, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, color_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
1
+ import { t as purify } from "./purify.es-CrfFzTyi.js";
2
+ import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-BTqT1mA1.js";
3
+ let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
3
4
  let __tla = (async () => {
4
5
  var _a, _b, _c, _d, _e, _f, _g;
5
6
  let Channel, DEC2HEX;
@@ -22,46 +23,46 @@ let __tla = (async () => {
22
23
  a: 1
23
24
  },
24
25
  clamp: {
25
- r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
- g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
27
- b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
28
- h: (e) => e % 360,
29
- s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
30
- l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
31
- a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
26
+ r: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
27
+ g: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
28
+ b: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
29
+ h: (u) => u % 360,
30
+ s: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
31
+ l: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
32
+ a: (u) => u >= 1 ? 1 : u < 0 ? 0 : u
32
33
  },
33
- toLinear: (e) => {
34
- let t = e / 255;
35
- return e > 0.03928 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92;
34
+ toLinear: (u) => {
35
+ let z = u / 255;
36
+ return u > 0.03928 ? ((z + 0.055) / 1.055) ** 2.4 : z / 12.92;
36
37
  },
37
- 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),
38
- hsl2rgb: ({ h: e, s: t, l: n }, r) => {
39
- if (!t) return n * 2.55;
40
- e /= 360, t /= 100, n /= 100;
41
- let a = n < 0.5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
42
- switch (r) {
38
+ hue2rgb: (u, z, B) => (B < 0 && (B += 1), B > 1 && --B, B < 1 / 6 ? u + (z - u) * 6 * B : B < 1 / 2 ? z : B < 2 / 3 ? u + (z - u) * (2 / 3 - B) * 6 : u),
39
+ hsl2rgb: ({ h: u, s: z, l: B }, V) => {
40
+ if (!z) return B * 2.55;
41
+ u /= 360, z /= 100, B /= 100;
42
+ let H = B < 0.5 ? B * (1 + z) : B + z - B * z, W = 2 * B - H;
43
+ switch (V) {
43
44
  case "r":
44
- return Channel.hue2rgb(o, a, e + 1 / 3) * 255;
45
+ return Channel.hue2rgb(W, H, u + 1 / 3) * 255;
45
46
  case "g":
46
- return Channel.hue2rgb(o, a, e) * 255;
47
+ return Channel.hue2rgb(W, H, u) * 255;
47
48
  case "b":
48
- return Channel.hue2rgb(o, a, e - 1 / 3) * 255;
49
+ return Channel.hue2rgb(W, H, u - 1 / 3) * 255;
49
50
  }
50
51
  },
51
- rgb2hsl: ({ r: e, g: t, b: n }, r) => {
52
- e /= 255, t /= 255, n /= 255;
53
- let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
54
- if (r === "l") return o * 100;
55
- if (i === a) return 0;
56
- let s = i - a, c = o > 0.5 ? s / (2 - i - a) : s / (i + a);
57
- if (r === "s") return c * 100;
58
- switch (i) {
59
- case e:
60
- return ((t - n) / s + (t < n ? 6 : 0)) * 60;
61
- case t:
62
- return ((n - e) / s + 2) * 60;
63
- case n:
64
- return ((e - t) / s + 4) * 60;
52
+ rgb2hsl: ({ r: u, g: z, b: B }, V) => {
53
+ u /= 255, z /= 255, B /= 255;
54
+ let H = Math.max(u, z, B), U = Math.min(u, z, B), W = (H + U) / 2;
55
+ if (V === "l") return W * 100;
56
+ if (H === U) return 0;
57
+ let G = H - U, K = W > 0.5 ? G / (2 - H - U) : G / (H + U);
58
+ if (V === "s") return K * 100;
59
+ switch (H) {
60
+ case u:
61
+ return ((z - B) / G + (z < B ? 6 : 0)) * 60;
62
+ case z:
63
+ return ((B - u) / G + 2) * 60;
64
+ case B:
65
+ return ((u - z) / G + 4) * 60;
65
66
  default:
66
67
  return -1;
67
68
  }
@@ -70,19 +71,19 @@ let __tla = (async () => {
70
71
  utils_default = {
71
72
  channel: Channel,
72
73
  lang: {
73
- clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
74
- round: (e) => Math.round(e * 1e10) / 1e10
74
+ clamp: (u, z, B) => z > B ? Math.min(z, Math.max(B, u)) : Math.min(B, Math.max(z, u)),
75
+ round: (u) => Math.round(u * 1e10) / 1e10
75
76
  },
76
77
  unit: {
77
- dec2hex: (e) => {
78
- let t = Math.round(e).toString(16);
79
- return t.length > 1 ? t : `0${t}`;
78
+ dec2hex: (u) => {
79
+ let z = Math.round(u).toString(16);
80
+ return z.length > 1 ? z : `0${z}`;
80
81
  }
81
82
  }
82
83
  };
83
84
  DEC2HEX = {};
84
- for (let e = 0; e <= 255; e++) DEC2HEX[e] = utils_default.unit.dec2hex(e);
85
- let TYPE, type_default, reusable_default, Hex, hex_default, HSL, hsl_default, Keyword, keyword_default, RGB, rgb_default, change_default, luminance_default, is_light_default, adjust_channel_default, adjust_default, mix_default, invert_default, entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor, freeze, seal, create, apply, construct;
85
+ for (let u = 0; u <= 255; u++) DEC2HEX[u] = utils_default.unit.dec2hex(u);
86
+ let TYPE, type_default, reusable_default, Hex, hex_default, HSL, hsl_default, Keyword, keyword_default, RGB, rgb_default, change_default, luminance_default, is_light_default, adjust_channel_default, adjust_default, mix_default, invert_default, anyCommentRegex, addDetector, assignWithDepth, oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorEven, mkBorder, Theme, getThemeVariables, Theme2, getThemeVariables2, Theme3, Theme4, getThemeVariables4, Theme5, config_schema_default, config, keyify, configKeys, sanitizeCss, siteConfig, configFromInitialize, directives, currentConfig, updateCurrentConfig, sanitize, ConfigWarning, issuedWarnings, issueWarning, checkConfig, getRows, setupDompurifyHooksIfNotSetup;
86
87
  TYPE = {
87
88
  ALL: 0,
88
89
  RGB: 1,
@@ -95,79 +96,79 @@ let __tla = (async () => {
95
96
  get() {
96
97
  return this.type;
97
98
  }
98
- set(e) {
99
- if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
100
- this.type = e;
99
+ set(u) {
100
+ if (this.type && this.type !== u) throw Error("Cannot change both RGB and HSL channels at the same time");
101
+ this.type = u;
101
102
  }
102
103
  reset() {
103
104
  this.type = TYPE.ALL;
104
105
  }
105
- is(e) {
106
- return this.type === e;
106
+ is(u) {
107
+ return this.type === u;
107
108
  }
108
109
  };
109
110
  reusable_default = new class {
110
- constructor(e, t) {
111
- this.color = t, this.changed = false, this.data = e, this.type = new type_default();
111
+ constructor(u, z) {
112
+ this.color = z, this.changed = false, this.data = u, this.type = new type_default();
112
113
  }
113
- set(e, t) {
114
- return this.color = t, this.changed = false, this.data = e, this.type.type = TYPE.ALL, this;
114
+ set(u, z) {
115
+ return this.color = z, this.changed = false, this.data = u, this.type.type = TYPE.ALL, this;
115
116
  }
116
117
  _ensureHSL() {
117
- let e = this.data, { h: t, s: n, l: r } = e;
118
- 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"));
118
+ let u = this.data, { h: z, s: B, l: V } = u;
119
+ z === void 0 && (u.h = utils_default.channel.rgb2hsl(u, "h")), B === void 0 && (u.s = utils_default.channel.rgb2hsl(u, "s")), V === void 0 && (u.l = utils_default.channel.rgb2hsl(u, "l"));
119
120
  }
120
121
  _ensureRGB() {
121
- let e = this.data, { r: t, g: n, b: r } = e;
122
- 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"));
122
+ let u = this.data, { r: z, g: B, b: V } = u;
123
+ z === void 0 && (u.r = utils_default.channel.hsl2rgb(u, "r")), B === void 0 && (u.g = utils_default.channel.hsl2rgb(u, "g")), V === void 0 && (u.b = utils_default.channel.hsl2rgb(u, "b"));
123
124
  }
124
125
  get r() {
125
- let e = this.data, t = e.r;
126
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "r"));
126
+ let u = this.data, z = u.r;
127
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "r"));
127
128
  }
128
129
  get g() {
129
- let e = this.data, t = e.g;
130
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "g"));
130
+ let u = this.data, z = u.g;
131
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "g"));
131
132
  }
132
133
  get b() {
133
- let e = this.data, t = e.b;
134
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "b"));
134
+ let u = this.data, z = u.b;
135
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "b"));
135
136
  }
136
137
  get h() {
137
- let e = this.data, t = e.h;
138
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "h"));
138
+ let u = this.data, z = u.h;
139
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "h"));
139
140
  }
140
141
  get s() {
141
- let e = this.data, t = e.s;
142
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "s"));
142
+ let u = this.data, z = u.s;
143
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "s"));
143
144
  }
144
145
  get l() {
145
- let e = this.data, t = e.l;
146
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "l"));
146
+ let u = this.data, z = u.l;
147
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "l"));
147
148
  }
148
149
  get a() {
149
150
  return this.data.a;
150
151
  }
151
- set r(e) {
152
- this.type.set(TYPE.RGB), this.changed = true, this.data.r = e;
152
+ set r(u) {
153
+ this.type.set(TYPE.RGB), this.changed = true, this.data.r = u;
153
154
  }
154
- set g(e) {
155
- this.type.set(TYPE.RGB), this.changed = true, this.data.g = e;
155
+ set g(u) {
156
+ this.type.set(TYPE.RGB), this.changed = true, this.data.g = u;
156
157
  }
157
- set b(e) {
158
- this.type.set(TYPE.RGB), this.changed = true, this.data.b = e;
158
+ set b(u) {
159
+ this.type.set(TYPE.RGB), this.changed = true, this.data.b = u;
159
160
  }
160
- set h(e) {
161
- this.type.set(TYPE.HSL), this.changed = true, this.data.h = e;
161
+ set h(u) {
162
+ this.type.set(TYPE.HSL), this.changed = true, this.data.h = u;
162
163
  }
163
- set s(e) {
164
- this.type.set(TYPE.HSL), this.changed = true, this.data.s = e;
164
+ set s(u) {
165
+ this.type.set(TYPE.HSL), this.changed = true, this.data.s = u;
165
166
  }
166
- set l(e) {
167
- this.type.set(TYPE.HSL), this.changed = true, this.data.l = e;
167
+ set l(u) {
168
+ this.type.set(TYPE.HSL), this.changed = true, this.data.l = u;
168
169
  }
169
- set a(e) {
170
- this.changed = true, this.data.a = e;
170
+ set a(u) {
171
+ this.changed = true, this.data.a = u;
171
172
  }
172
173
  }({
173
174
  r: 0,
@@ -177,58 +178,58 @@ let __tla = (async () => {
177
178
  }, "transparent");
178
179
  Hex = {
179
180
  re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
180
- parse: (e) => {
181
- if (e.charCodeAt(0) !== 35) return;
182
- let t = e.match(Hex.re);
183
- if (!t) return;
184
- 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;
181
+ parse: (u) => {
182
+ if (u.charCodeAt(0) !== 35) return;
183
+ let z = u.match(Hex.re);
184
+ if (!z) return;
185
+ let B = z[1], V = parseInt(B, 16), H = B.length, U = H % 4 == 0, W = H > 4, G = W ? 1 : 17, K = W ? 8 : 4, q = U ? 0 : -1, X = W ? 255 : 15;
185
186
  return reusable_default.set({
186
- r: (r >> c * (d + 3) & f) * s,
187
- g: (r >> c * (d + 2) & f) * s,
188
- b: (r >> c * (d + 1) & f) * s,
189
- a: a ? (r & f) * s / 255 : 1
190
- }, e);
187
+ r: (V >> K * (q + 3) & X) * G,
188
+ g: (V >> K * (q + 2) & X) * G,
189
+ b: (V >> K * (q + 1) & X) * G,
190
+ a: U ? (V & X) * G / 255 : 1
191
+ }, u);
191
192
  },
192
- stringify: (e) => {
193
- let { r: t, g: n, b: r, a: i } = e;
194
- 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)]}`;
193
+ stringify: (u) => {
194
+ let { r: z, g: B, b: V, a: H } = u;
195
+ return H < 1 ? `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}${DEC2HEX[Math.round(H * 255)]}` : `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}`;
195
196
  }
196
197
  };
197
198
  hex_default = Hex;
198
199
  HSL = {
199
200
  re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
200
201
  hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
201
- _hue2deg: (e) => {
202
- let t = e.match(HSL.hueRe);
203
- if (t) {
204
- let [, e2, n] = t;
205
- switch (n) {
202
+ _hue2deg: (u) => {
203
+ let z = u.match(HSL.hueRe);
204
+ if (z) {
205
+ let [, u2, B] = z;
206
+ switch (B) {
206
207
  case "grad":
207
- return utils_default.channel.clamp.h(parseFloat(e2) * 0.9);
208
+ return utils_default.channel.clamp.h(parseFloat(u2) * 0.9);
208
209
  case "rad":
209
- return utils_default.channel.clamp.h(parseFloat(e2) * 180 / Math.PI);
210
+ return utils_default.channel.clamp.h(parseFloat(u2) * 180 / Math.PI);
210
211
  case "turn":
211
- return utils_default.channel.clamp.h(parseFloat(e2) * 360);
212
+ return utils_default.channel.clamp.h(parseFloat(u2) * 360);
212
213
  }
213
214
  }
214
- return utils_default.channel.clamp.h(parseFloat(e));
215
+ return utils_default.channel.clamp.h(parseFloat(u));
215
216
  },
216
- parse: (e) => {
217
- let t = e.charCodeAt(0);
218
- if (t !== 104 && t !== 72) return;
219
- let n = e.match(HSL.re);
220
- if (!n) return;
221
- let [, r, i, o, s, c] = n;
217
+ parse: (u) => {
218
+ let z = u.charCodeAt(0);
219
+ if (z !== 104 && z !== 72) return;
220
+ let B = u.match(HSL.re);
221
+ if (!B) return;
222
+ let [, V, H, U, G, K] = B;
222
223
  return reusable_default.set({
223
- h: HSL._hue2deg(r),
224
- s: utils_default.channel.clamp.s(parseFloat(i)),
225
- l: utils_default.channel.clamp.l(parseFloat(o)),
226
- a: s ? utils_default.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
227
- }, e);
224
+ h: HSL._hue2deg(V),
225
+ s: utils_default.channel.clamp.s(parseFloat(H)),
226
+ l: utils_default.channel.clamp.l(parseFloat(U)),
227
+ a: G ? utils_default.channel.clamp.a(K ? parseFloat(G) / 100 : parseFloat(G)) : 1
228
+ }, u);
228
229
  },
229
- stringify: (e) => {
230
- let { h: t, s: n, l: r, a: i } = e;
231
- 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)}%)`;
230
+ stringify: (u) => {
231
+ let { h: z, s: B, l: V, a: H } = u;
232
+ return H < 1 ? `hsla(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%, ${H})` : `hsl(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%)`;
232
233
  }
233
234
  };
234
235
  hsl_default = HSL;
@@ -382,35 +383,35 @@ let __tla = (async () => {
382
383
  yellow: "#ffff00",
383
384
  yellowgreen: "#9acd32"
384
385
  },
385
- parse: (e) => {
386
- e = e.toLowerCase();
387
- let t = Keyword.colors[e];
388
- if (t) return hex_default.parse(t);
386
+ parse: (u) => {
387
+ u = u.toLowerCase();
388
+ let z = Keyword.colors[u];
389
+ if (z) return hex_default.parse(z);
389
390
  },
390
- stringify: (e) => {
391
- let t = hex_default.stringify(e);
392
- for (let e2 in Keyword.colors) if (Keyword.colors[e2] === t) return e2;
391
+ stringify: (u) => {
392
+ let z = hex_default.stringify(u);
393
+ for (let u2 in Keyword.colors) if (Keyword.colors[u2] === z) return u2;
393
394
  }
394
395
  };
395
396
  keyword_default = Keyword;
396
397
  RGB = {
397
398
  re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
398
- parse: (e) => {
399
- let t = e.charCodeAt(0);
400
- if (t !== 114 && t !== 82) return;
401
- let n = e.match(RGB.re);
402
- if (!n) return;
403
- let [, r, i, o, s, c, u, d, f] = n;
399
+ parse: (u) => {
400
+ let z = u.charCodeAt(0);
401
+ if (z !== 114 && z !== 82) return;
402
+ let B = u.match(RGB.re);
403
+ if (!B) return;
404
+ let [, V, H, U, G, K, q, Y, X] = B;
404
405
  return reusable_default.set({
405
- r: utils_default.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
406
- g: utils_default.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
407
- b: utils_default.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
408
- a: d ? utils_default.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
409
- }, e);
406
+ r: utils_default.channel.clamp.r(H ? parseFloat(V) * 2.55 : parseFloat(V)),
407
+ g: utils_default.channel.clamp.g(G ? parseFloat(U) * 2.55 : parseFloat(U)),
408
+ b: utils_default.channel.clamp.b(q ? parseFloat(K) * 2.55 : parseFloat(K)),
409
+ a: Y ? utils_default.channel.clamp.a(X ? parseFloat(Y) / 100 : parseFloat(Y)) : 1
410
+ }, u);
410
411
  },
411
- stringify: (e) => {
412
- let { r: t, g: n, b: r, a: i } = e;
413
- 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)})`;
412
+ stringify: (u) => {
413
+ let { r: z, g: B, b: V, a: H } = u;
414
+ return H < 1 ? `rgba(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)}, ${utils_default.lang.round(H)})` : `rgb(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)})`;
414
415
  }
415
416
  };
416
417
  rgb_default = RGB;
@@ -423,656 +424,101 @@ let __tla = (async () => {
423
424
  hsl: hsl_default,
424
425
  hsla: hsl_default
425
426
  },
426
- parse: (e) => {
427
- if (typeof e != "string") return e;
428
- let t = hex_default.parse(e) || rgb_default.parse(e) || hsl_default.parse(e) || keyword_default.parse(e);
429
- if (t) return t;
430
- throw Error(`Unsupported color format: "${e}"`);
427
+ parse: (u) => {
428
+ if (typeof u != "string") return u;
429
+ let z = hex_default.parse(u) || rgb_default.parse(u) || hsl_default.parse(u) || keyword_default.parse(u);
430
+ if (z) return z;
431
+ throw Error(`Unsupported color format: "${u}"`);
431
432
  },
432
- 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)
433
+ stringify: (u) => !u.changed && u.color ? u.color : u.type.is(TYPE.HSL) || u.data.r === void 0 ? hsl_default.stringify(u) : u.a < 1 || !Number.isInteger(u.r) || !Number.isInteger(u.g) || !Number.isInteger(u.b) ? rgb_default.stringify(u) : hex_default.stringify(u)
433
434
  };
434
- change_default = (e, t) => {
435
- let n = color_default.parse(e);
436
- for (let e2 in t) n[e2] = utils_default.channel.clamp[e2](t[e2]);
437
- return color_default.stringify(n);
435
+ change_default = (u, z) => {
436
+ let B = color_default.parse(u);
437
+ for (let u2 in z) B[u2] = utils_default.channel.clamp[u2](z[u2]);
438
+ return color_default.stringify(B);
438
439
  };
439
- rgba_default = (e, t, n = 0, r = 1) => {
440
- if (typeof e != "number") return change_default(e, {
441
- a: t
440
+ rgba_default = (u, z, B = 0, V = 1) => {
441
+ if (typeof u != "number") return change_default(u, {
442
+ a: z
442
443
  });
443
- let i = reusable_default.set({
444
- r: utils_default.channel.clamp.r(e),
445
- g: utils_default.channel.clamp.g(t),
446
- b: utils_default.channel.clamp.b(n),
447
- a: utils_default.channel.clamp.a(r)
444
+ let H = reusable_default.set({
445
+ r: utils_default.channel.clamp.r(u),
446
+ g: utils_default.channel.clamp.g(z),
447
+ b: utils_default.channel.clamp.b(B),
448
+ a: utils_default.channel.clamp.a(V)
448
449
  });
449
- return color_default.stringify(i);
450
+ return color_default.stringify(H);
450
451
  };
451
- luminance_default = (e) => {
452
- let { r: t, g: n, b: r } = color_default.parse(e), i = 0.2126 * utils_default.channel.toLinear(t) + 0.7152 * utils_default.channel.toLinear(n) + 0.0722 * utils_default.channel.toLinear(r);
453
- return utils_default.lang.round(i);
452
+ luminance_default = (u) => {
453
+ let { r: z, g: B, b: V } = color_default.parse(u), H = 0.2126 * utils_default.channel.toLinear(z) + 0.7152 * utils_default.channel.toLinear(B) + 0.0722 * utils_default.channel.toLinear(V);
454
+ return utils_default.lang.round(H);
454
455
  };
455
- is_light_default = (e) => luminance_default(e) >= 0.5;
456
- is_dark_default = (e) => !is_light_default(e);
457
- adjust_channel_default = (e, t, n) => {
458
- let r = color_default.parse(e), i = r[t], o = utils_default.channel.clamp[t](i + n);
459
- return i !== o && (r[t] = o), color_default.stringify(r);
456
+ is_light_default = (u) => luminance_default(u) >= 0.5;
457
+ is_dark_default = (u) => !is_light_default(u);
458
+ adjust_channel_default = (u, z, B) => {
459
+ let V = color_default.parse(u), H = V[z], U = utils_default.channel.clamp[z](H + B);
460
+ return H !== U && (V[z] = U), color_default.stringify(V);
460
461
  };
461
- lighten_default = (e, t) => adjust_channel_default(e, "l", t);
462
- darken_default = (e, t) => adjust_channel_default(e, "l", -t);
463
- adjust_default = (e, t) => {
464
- let n = color_default.parse(e), r = {};
465
- for (let e2 in t) t[e2] && (r[e2] = n[e2] + t[e2]);
466
- return change_default(e, r);
462
+ lighten_default = (u, z) => adjust_channel_default(u, "l", z);
463
+ darken_default = (u, z) => adjust_channel_default(u, "l", -z);
464
+ adjust_default = (u, z) => {
465
+ let B = color_default.parse(u), V = {};
466
+ for (let u2 in z) z[u2] && (V[u2] = B[u2] + z[u2]);
467
+ return change_default(u, V);
467
468
  };
468
- mix_default = (e, t, n = 50) => {
469
- 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;
470
- return rgba_default(r * m + s * h, i * m + c * h, a * m + l * h, o * d + u * (1 - d));
469
+ mix_default = (u, z, B = 50) => {
470
+ let { r: V, g: H, b: U, a: W } = color_default.parse(u), { r: G, g: K, b: q, a: J } = color_default.parse(z), Y = B / 100, X = Y * 2 - 1, Z = W - J, Q = ((X * Z === -1 ? X : (X + Z) / (1 + X * Z)) + 1) / 2, $ = 1 - Q;
471
+ return rgba_default(V * Q + G * $, H * Q + K * $, U * Q + q * $, W * Y + J * (1 - Y));
471
472
  };
472
- invert_default = (e, t = 100) => {
473
- let n = color_default.parse(e);
474
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mix_default(n, e, t);
473
+ invert_default = (u, z = 100) => {
474
+ let B = color_default.parse(u);
475
+ return B.r = 255 - B.r, B.g = 255 - B.g, B.b = 255 - B.b, mix_default(B, u, z);
475
476
  };
476
- ({ entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object);
477
- ({ freeze, seal, create } = Object);
478
- ({ apply, construct } = typeof Reflect < "u" && Reflect);
479
- freeze || (freeze = function(e) {
480
- return e;
481
- }), seal || (seal = function(e) {
482
- return e;
483
- }), apply || (apply = function(e, t, n) {
484
- return e.apply(t, n);
485
- }), construct || (construct = function(e, t) {
486
- return new e(...t);
487
- });
488
- 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);
489
- function unapply(e) {
490
- return function(t) {
491
- t instanceof RegExp && (t.lastIndex = 0);
492
- var n = [
493
- ...arguments
494
- ].slice(1);
495
- return apply(e, t, n);
496
- };
497
- }
498
- function unconstruct(e) {
499
- return function() {
500
- return construct(e, [
501
- ...arguments
502
- ]);
503
- };
504
- }
505
- function addToSet(e, t) {
506
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
507
- setPrototypeOf && setPrototypeOf(e, null);
508
- let r = t.length;
509
- for (; r--; ) {
510
- let i = t[r];
511
- if (typeof i == "string") {
512
- let e2 = n(i);
513
- e2 !== i && (isFrozen(t) || (t[r] = e2), i = e2);
514
- }
515
- e[i] = true;
516
- }
517
- return e;
518
- }
519
- function cleanArray(e) {
520
- for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
521
- return e;
522
- }
523
- function clone(e) {
524
- let t = create(null);
525
- 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);
526
- return t;
527
- }
528
- function lookupGetter(e, t) {
529
- for (; e !== null; ) {
530
- let n2 = getOwnPropertyDescriptor(e, t);
531
- if (n2) {
532
- if (n2.get) return unapply(n2.get);
533
- if (typeof n2.value == "function") return unapply(n2.value);
534
- }
535
- e = getPrototypeOf(e);
536
- }
537
- function n() {
538
- return null;
539
- }
540
- return n;
541
- }
542
- var html$1 = freeze("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.section.select.shadow.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("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.filter.font.g.glyph.glyphref.hkern.image.line.lineargradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
543
- "feBlend",
544
- "feColorMatrix",
545
- "feComponentTransfer",
546
- "feComposite",
547
- "feConvolveMatrix",
548
- "feDiffuseLighting",
549
- "feDisplacementMap",
550
- "feDistantLight",
551
- "feDropShadow",
552
- "feFlood",
553
- "feFuncA",
554
- "feFuncB",
555
- "feFuncG",
556
- "feFuncR",
557
- "feGaussianBlur",
558
- "feImage",
559
- "feMerge",
560
- "feMergeNode",
561
- "feMorphology",
562
- "feOffset",
563
- "fePointLight",
564
- "feSpecularLighting",
565
- "feSpotLight",
566
- "feTile",
567
- "feTurbulence"
568
- ]), svgDisallowed = freeze([
569
- "animate",
570
- "color-profile",
571
- "cursor",
572
- "discard",
573
- "font-face",
574
- "font-face-format",
575
- "font-face-name",
576
- "font-face-src",
577
- "font-face-uri",
578
- "foreignobject",
579
- "hatch",
580
- "hatchpath",
581
- "mesh",
582
- "meshgradient",
583
- "meshpatch",
584
- "meshrow",
585
- "missing-glyph",
586
- "script",
587
- "set",
588
- "solidcolor",
589
- "unknown",
590
- "use"
591
- ]), mathMl$1 = freeze("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([
592
- "maction",
593
- "maligngroup",
594
- "malignmark",
595
- "mlongdiv",
596
- "mscarries",
597
- "mscarry",
598
- "msgroup",
599
- "mstack",
600
- "msline",
601
- "msrow",
602
- "semantics",
603
- "annotation",
604
- "annotation-xml",
605
- "mprescripts",
606
- "none"
607
- ]), text = freeze([
608
- "#text"
609
- ]), html = freeze("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.face.for.headers.height.hidden.high.href.hreflang.id.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.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), svg = freeze("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), mathMl = freeze("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([
610
- "xlink:href",
611
- "xml:id",
612
- "xlink:title",
613
- "xml:space",
614
- "xmlns:xlink"
615
- ]), 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 = Object.freeze({
616
- __proto__: null,
617
- ARIA_ATTR,
618
- ATTR_WHITESPACE,
619
- CUSTOM_ELEMENT,
620
- DATA_ATTR,
621
- DOCTYPE_NAME,
622
- ERB_EXPR,
623
- IS_ALLOWED_URI,
624
- IS_SCRIPT_OR_DATA,
625
- MUSTACHE_EXPR,
626
- TMPLIT_EXPR
627
- }), NODE_TYPE = {
628
- element: 1,
629
- attribute: 2,
630
- text: 3,
631
- cdataSection: 4,
632
- entityReference: 5,
633
- entityNode: 6,
634
- progressingInstruction: 7,
635
- comment: 8,
636
- document: 9,
637
- documentType: 10,
638
- documentFragment: 11,
639
- notation: 12
640
- }, getGlobal = function() {
641
- return typeof window > "u" ? null : window;
642
- }, _createTrustedTypesPolicy = function(e, t) {
643
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
644
- let n = null, r = "data-tt-policy-suffix";
645
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
646
- let i = "dompurify" + (n ? "#" + n : "");
647
- try {
648
- return e.createPolicy(i, {
649
- createHTML(e2) {
650
- return e2;
651
- },
652
- createScriptURL(e2) {
653
- return e2;
654
- }
655
- });
656
- } catch {
657
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
658
- }
659
- }, _createHooksMap = function() {
660
- return {
661
- afterSanitizeAttributes: [],
662
- afterSanitizeElements: [],
663
- afterSanitizeShadowDOM: [],
664
- beforeSanitizeAttributes: [],
665
- beforeSanitizeElements: [],
666
- beforeSanitizeShadowDOM: [],
667
- uponSanitizeAttribute: [],
668
- uponSanitizeElement: [],
669
- uponSanitizeShadowNode: []
670
- };
671
- };
672
- function createDOMPurify() {
673
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e2) => createDOMPurify(e2);
674
- if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = false, t;
675
- 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"), Gt = lookupGetter(m, "remove"), Kt = lookupGetter(m, "nextSibling"), qt = lookupGetter(m, "childNodes"), g = lookupGetter(m, "parentNode");
676
- if (typeof o == "function") {
677
- let e2 = n.createElement("template");
678
- e2.content && e2.content.ownerDocument && (n = e2.content.ownerDocument);
679
- }
680
- let _, v = "", { implementation: y, createNodeIterator: Jt, createDocumentFragment: Yt, getElementsByTagName: Xt } = n, { importNode: Zt } = r, b = _createHooksMap();
681
- t.isSupported = typeof entries == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
682
- let { MUSTACHE_EXPR: x, ERB_EXPR: S, 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, C = null, on = addToSet({}, [
683
- ...html$1,
684
- ...svg$1,
685
- ...svgFilters,
686
- ...mathMl$1,
687
- ...text
688
- ]), w = null, sn = addToSet({}, [
689
- ...html,
690
- ...svg,
691
- ...mathMl,
692
- ...xml
693
- ]), T = Object.seal(create(null, {
694
- tagNameCheck: {
695
- writable: true,
696
- configurable: false,
697
- enumerable: true,
698
- value: null
699
- },
700
- attributeNameCheck: {
701
- writable: true,
702
- configurable: false,
703
- enumerable: true,
704
- value: null
705
- },
706
- allowCustomizedBuiltInElements: {
707
- writable: true,
708
- configurable: false,
709
- enumerable: true,
710
- value: false
711
- }
712
- })), E = null, D = null, cn = true, O = true, ln = false, un = true, k = false, A = true, j = false, dn = false, fn = false, M = false, N = false, P = false, pn = true, mn = false, F = true, I = false, L = {}, R = null, hn = addToSet({}, [
713
- "annotation-xml",
714
- "audio",
715
- "colgroup",
716
- "desc",
717
- "foreignobject",
718
- "head",
719
- "iframe",
720
- "math",
721
- "mi",
722
- "mn",
723
- "mo",
724
- "ms",
725
- "mtext",
726
- "noembed",
727
- "noframes",
728
- "noscript",
729
- "plaintext",
730
- "script",
731
- "style",
732
- "svg",
733
- "template",
734
- "thead",
735
- "title",
736
- "video",
737
- "xmp"
738
- ]), gn = null, _n = addToSet({}, [
739
- "audio",
740
- "video",
741
- "img",
742
- "source",
743
- "image",
744
- "track"
745
- ]), z = null, vn = addToSet({}, [
746
- "alt",
747
- "class",
748
- "for",
749
- "id",
750
- "label",
751
- "name",
752
- "pattern",
753
- "placeholder",
754
- "role",
755
- "summary",
756
- "title",
757
- "value",
758
- "style",
759
- "xmlns"
760
- ]), B = "http://www.w3.org/1998/Math/MathML", V = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", U = H, W = false, G = null, yn = addToSet({}, [
761
- B,
762
- V,
763
- H
764
- ], stringToString), K = addToSet({}, [
765
- "mi",
766
- "mo",
767
- "mn",
768
- "ms",
769
- "mtext"
770
- ]), q = addToSet({}, [
771
- "annotation-xml"
772
- ]), bn = addToSet({}, [
773
- "title",
774
- "style",
775
- "font",
776
- "a",
777
- "script"
778
- ]), J = null, xn = [
779
- "application/xhtml+xml",
780
- "text/html"
781
- ], Y = null, X = null, Sn = n.createElement("form"), Cn = function(e2) {
782
- return e2 instanceof RegExp || e2 instanceof Function;
783
- }, wn = function() {
784
- let e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
785
- if (!(X && X === e2)) {
786
- if ((!e2 || typeof e2 != "object") && (e2 = {}), e2 = clone(e2), J = xn.indexOf(e2.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e2.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? stringToString : stringToLowerCase, C = objectHasOwnProperty(e2, "ALLOWED_TAGS") ? addToSet({}, e2.ALLOWED_TAGS, Y) : on, w = objectHasOwnProperty(e2, "ALLOWED_ATTR") ? addToSet({}, e2.ALLOWED_ATTR, Y) : sn, G = objectHasOwnProperty(e2, "ALLOWED_NAMESPACES") ? addToSet({}, e2.ALLOWED_NAMESPACES, stringToString) : yn, z = objectHasOwnProperty(e2, "ADD_URI_SAFE_ATTR") ? addToSet(clone(vn), e2.ADD_URI_SAFE_ATTR, Y) : vn, gn = objectHasOwnProperty(e2, "ADD_DATA_URI_TAGS") ? addToSet(clone(_n), e2.ADD_DATA_URI_TAGS, Y) : _n, R = objectHasOwnProperty(e2, "FORBID_CONTENTS") ? addToSet({}, e2.FORBID_CONTENTS, Y) : hn, E = objectHasOwnProperty(e2, "FORBID_TAGS") ? addToSet({}, e2.FORBID_TAGS, Y) : clone({}), D = objectHasOwnProperty(e2, "FORBID_ATTR") ? addToSet({}, e2.FORBID_ATTR, Y) : clone({}), L = objectHasOwnProperty(e2, "USE_PROFILES") ? e2.USE_PROFILES : false, cn = e2.ALLOW_ARIA_ATTR !== false, O = e2.ALLOW_DATA_ATTR !== false, ln = e2.ALLOW_UNKNOWN_PROTOCOLS || false, un = e2.ALLOW_SELF_CLOSE_IN_ATTR !== false, k = e2.SAFE_FOR_TEMPLATES || false, A = e2.SAFE_FOR_XML !== false, j = e2.WHOLE_DOCUMENT || false, M = e2.RETURN_DOM || false, N = e2.RETURN_DOM_FRAGMENT || false, P = e2.RETURN_TRUSTED_TYPE || false, fn = e2.FORCE_BODY || false, pn = e2.SANITIZE_DOM !== false, mn = e2.SANITIZE_NAMED_PROPS || false, F = e2.KEEP_CONTENT !== false, I = e2.IN_PLACE || false, an = e2.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, U = e2.NAMESPACE || H, K = e2.MATHML_TEXT_INTEGRATION_POINTS || K, q = e2.HTML_INTEGRATION_POINTS || q, T = e2.CUSTOM_ELEMENT_HANDLING || {}, e2.CUSTOM_ELEMENT_HANDLING && Cn(e2.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e2.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e2.CUSTOM_ELEMENT_HANDLING && Cn(e2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e2.CUSTOM_ELEMENT_HANDLING && typeof e2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (O = false), N && (M = true), L && (C = addToSet({}, text), w = [], L.html === true && (addToSet(C, html$1), addToSet(w, html)), L.svg === true && (addToSet(C, svg$1), addToSet(w, svg), addToSet(w, xml)), L.svgFilters === true && (addToSet(C, svgFilters), addToSet(w, svg), addToSet(w, xml)), L.mathMl === true && (addToSet(C, mathMl$1), addToSet(w, mathMl), addToSet(w, xml))), e2.ADD_TAGS && (C === on && (C = clone(C)), addToSet(C, e2.ADD_TAGS, Y)), e2.ADD_ATTR && (w === sn && (w = clone(w)), addToSet(w, e2.ADD_ATTR, Y)), e2.ADD_URI_SAFE_ATTR && addToSet(z, e2.ADD_URI_SAFE_ATTR, Y), e2.FORBID_CONTENTS && (R === hn && (R = clone(R)), addToSet(R, e2.FORBID_CONTENTS, Y)), F && (C["#text"] = true), j && addToSet(C, [
787
- "html",
788
- "head",
789
- "body"
790
- ]), C.table && (addToSet(C, [
791
- "tbody"
792
- ]), delete E.tbody), e2.TRUSTED_TYPES_POLICY) {
793
- if (typeof e2.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
794
- if (typeof e2.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
795
- _ = e2.TRUSTED_TYPES_POLICY, v = _.createHTML("");
796
- } else _ === void 0 && (_ = _createTrustedTypesPolicy(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
797
- freeze && freeze(e2), X = e2;
798
- }
799
- }, Tn = addToSet({}, [
800
- ...svg$1,
801
- ...svgFilters,
802
- ...svgDisallowed
803
- ]), En = addToSet({}, [
804
- ...mathMl$1,
805
- ...mathMlDisallowed
806
- ]), Dn = function(e2) {
807
- let t2 = g(e2);
808
- (!t2 || !t2.tagName) && (t2 = {
809
- namespaceURI: U,
810
- tagName: "template"
811
- });
812
- let n2 = stringToLowerCase(e2.tagName), r2 = stringToLowerCase(t2.tagName);
813
- return G[e2.namespaceURI] ? e2.namespaceURI === V ? t2.namespaceURI === H ? n2 === "svg" : t2.namespaceURI === B ? n2 === "svg" && (r2 === "annotation-xml" || K[r2]) : !!Tn[n2] : e2.namespaceURI === B ? t2.namespaceURI === H ? n2 === "math" : t2.namespaceURI === V ? n2 === "math" && q[r2] : !!En[n2] : e2.namespaceURI === H ? t2.namespaceURI === V && !q[r2] || t2.namespaceURI === B && !K[r2] ? false : !En[n2] && (bn[n2] || !Tn[n2]) : !!(J === "application/xhtml+xml" && G[e2.namespaceURI]) : false;
814
- }, Z = function(e2) {
815
- arrayPush(t.removed, {
816
- element: e2
817
- });
818
- try {
819
- g(e2).removeChild(e2);
820
- } catch {
821
- Gt(e2);
822
- }
823
- }, Q = function(e2, n2) {
824
- try {
825
- arrayPush(t.removed, {
826
- attribute: n2.getAttributeNode(e2),
827
- from: n2
828
- });
829
- } catch {
830
- arrayPush(t.removed, {
831
- attribute: null,
832
- from: n2
833
- });
834
- }
835
- if (n2.removeAttribute(e2), e2 === "is") if (M || N) try {
836
- Z(n2);
837
- } catch {
838
- }
839
- else try {
840
- n2.setAttribute(e2, "");
841
- } catch {
842
- }
843
- }, On = function(e2) {
844
- let t2 = null, r2 = null;
845
- if (fn) e2 = "<remove></remove>" + e2;
846
- else {
847
- let t3 = stringMatch(e2, /^[\r\n\t ]+/);
848
- r2 = t3 && t3[0];
849
- }
850
- J === "application/xhtml+xml" && U === H && (e2 = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e2 + "</body></html>");
851
- let i2 = _ ? _.createHTML(e2) : e2;
852
- if (U === H) try {
853
- t2 = new f().parseFromString(i2, J);
854
- } catch {
855
- }
856
- if (!t2 || !t2.documentElement) {
857
- t2 = y.createDocument(U, "template", null);
858
- try {
859
- t2.documentElement.innerHTML = W ? v : i2;
860
- } catch {
861
- }
862
- }
863
- let a2 = t2.body || t2.documentElement;
864
- return e2 && r2 && a2.insertBefore(n.createTextNode(r2), a2.childNodes[0] || null), U === H ? Xt.call(t2, j ? "html" : "body")[0] : j ? t2.documentElement : a2;
865
- }, kn = function(e2) {
866
- return Jt.call(e2.ownerDocument || e2, e2, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
867
- }, An = function(e2) {
868
- return e2 instanceof d && (typeof e2.nodeName != "string" || typeof e2.textContent != "string" || typeof e2.removeChild != "function" || !(e2.attributes instanceof u) || typeof e2.removeAttribute != "function" || typeof e2.setAttribute != "function" || typeof e2.namespaceURI != "string" || typeof e2.insertBefore != "function" || typeof e2.hasChildNodes != "function");
869
- }, jn = function(e2) {
870
- return typeof s == "function" && e2 instanceof s;
871
- };
872
- function $(e2, n2, r2) {
873
- arrayForEach(e2, (e3) => {
874
- e3.call(t, n2, r2, X);
875
- });
876
- }
877
- let Mn = function(e2) {
878
- let n2 = null;
879
- if ($(b.beforeSanitizeElements, e2, null), An(e2)) return Z(e2), true;
880
- let r2 = Y(e2.nodeName);
881
- if ($(b.uponSanitizeElement, e2, {
882
- tagName: r2,
883
- allowedTags: C
884
- }), A && e2.hasChildNodes() && !jn(e2.firstElementChild) && regExpTest(/<[/\w!]/g, e2.innerHTML) && regExpTest(/<[/\w!]/g, e2.textContent) || e2.nodeType === NODE_TYPE.progressingInstruction || A && e2.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e2.data)) return Z(e2), true;
885
- if (!C[r2] || E[r2]) {
886
- if (!E[r2] && Pn(r2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2))) return false;
887
- if (F && !R[r2]) {
888
- let t2 = g(e2) || e2.parentNode, n3 = qt(e2) || e2.childNodes;
889
- if (n3 && t2) {
890
- let r3 = n3.length;
891
- for (let i2 = r3 - 1; i2 >= 0; --i2) {
892
- let r4 = h(n3[i2], true);
893
- r4.__removalCount = (e2.__removalCount || 0) + 1, t2.insertBefore(r4, Kt(e2));
894
- }
895
- }
896
- }
897
- return Z(e2), true;
898
- }
899
- return e2 instanceof c && !Dn(e2) || (r2 === "noscript" || r2 === "noembed" || r2 === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e2.innerHTML) ? (Z(e2), true) : (k && e2.nodeType === NODE_TYPE.text && (n2 = e2.textContent, arrayForEach([
900
- x,
901
- S,
902
- Qt
903
- ], (e3) => {
904
- n2 = stringReplace(n2, e3, " ");
905
- }), e2.textContent !== n2 && (arrayPush(t.removed, {
906
- element: e2.cloneNode()
907
- }), e2.textContent = n2)), $(b.afterSanitizeElements, e2, null), false);
908
- }, Nn = function(e2, t2, r2) {
909
- if (pn && (t2 === "id" || t2 === "name") && (r2 in n || r2 in Sn)) return false;
910
- if (!(O && !D[t2] && regExpTest($t, t2)) && !(cn && regExpTest(en, t2))) {
911
- if (!w[t2] || D[t2]) {
912
- if (!(Pn(e2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, e2) || T.tagNameCheck instanceof Function && T.tagNameCheck(e2)) && (T.attributeNameCheck instanceof RegExp && regExpTest(T.attributeNameCheck, t2) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(t2)) || t2 === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2)))) return false;
913
- } else if (!z[t2] && !regExpTest(an, stringReplace(r2, nn, "")) && !((t2 === "src" || t2 === "xlink:href" || t2 === "href") && e2 !== "script" && stringIndexOf(r2, "data:") === 0 && gn[e2]) && !(ln && !regExpTest(tn, stringReplace(r2, nn, ""))) && r2) return false;
914
- }
915
- return true;
916
- }, Pn = function(e2) {
917
- return e2 !== "annotation-xml" && stringMatch(e2, rn);
918
- }, Fn = function(e2) {
919
- $(b.beforeSanitizeAttributes, e2, null);
920
- let { attributes: n2 } = e2;
921
- if (!n2 || An(e2)) return;
922
- let r2 = {
923
- attrName: "",
924
- attrValue: "",
925
- keepAttr: true,
926
- allowedAttributes: w,
927
- forceKeepAttr: void 0
928
- }, i2 = n2.length;
929
- for (; i2--; ) {
930
- let { name: a2, namespaceURI: o2, value: s2 } = n2[i2], c2 = Y(a2), l2 = s2, u2 = a2 === "value" ? l2 : stringTrim(l2);
931
- if (r2.attrName = c2, r2.attrValue = u2, r2.keepAttr = true, r2.forceKeepAttr = void 0, $(b.uponSanitizeAttribute, e2, r2), u2 = r2.attrValue, mn && (c2 === "id" || c2 === "name") && (Q(a2, e2), u2 = "user-content-" + u2), A && regExpTest(/((--!?|])>)|<\/(style|title)/i, u2)) {
932
- Q(a2, e2);
933
- continue;
934
- }
935
- if (r2.forceKeepAttr) continue;
936
- if (!r2.keepAttr) {
937
- Q(a2, e2);
938
- continue;
939
- }
940
- if (!un && regExpTest(/\/>/i, u2)) {
941
- Q(a2, e2);
942
- continue;
943
- }
944
- k && arrayForEach([
945
- x,
946
- S,
947
- Qt
948
- ], (e3) => {
949
- u2 = stringReplace(u2, e3, " ");
950
- });
951
- let d2 = Y(e2.nodeName);
952
- if (!Nn(d2, c2, u2)) {
953
- Q(a2, e2);
954
- continue;
955
- }
956
- if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o2) switch (p.getAttributeType(d2, c2)) {
957
- case "TrustedHTML":
958
- u2 = _.createHTML(u2);
959
- break;
960
- case "TrustedScriptURL":
961
- u2 = _.createScriptURL(u2);
962
- break;
963
- }
964
- if (u2 !== l2) try {
965
- o2 ? e2.setAttributeNS(o2, a2, u2) : e2.setAttribute(a2, u2), An(e2) ? Z(e2) : arrayPop(t.removed);
966
- } catch {
967
- Q(a2, e2);
968
- }
969
- }
970
- $(b.afterSanitizeAttributes, e2, null);
971
- }, In = function e2(t2) {
972
- let n2 = null, r2 = kn(t2);
973
- for ($(b.beforeSanitizeShadowDOM, t2, null); n2 = r2.nextNode(); ) $(b.uponSanitizeShadowNode, n2, null), Mn(n2), Fn(n2), n2.content instanceof a && e2(n2.content);
974
- $(b.afterSanitizeShadowDOM, t2, null);
975
- };
976
- return t.sanitize = function(e2) {
977
- let n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i2 = null, o2 = null, c2 = null, l2 = null;
978
- if (W = !e2, W && (e2 = "<!-->"), typeof e2 != "string" && !jn(e2)) if (typeof e2.toString == "function") {
979
- if (e2 = e2.toString(), typeof e2 != "string") throw typeErrorCreate("dirty is not a string, aborting");
980
- } else throw typeErrorCreate("toString is not a function");
981
- if (!t.isSupported) return e2;
982
- if (dn || wn(n2), t.removed = [], typeof e2 == "string" && (I = false), I) {
983
- if (e2.nodeName) {
984
- let t2 = Y(e2.nodeName);
985
- if (!C[t2] || E[t2]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
986
- }
987
- } else if (e2 instanceof s) i2 = On("<!---->"), o2 = i2.ownerDocument.importNode(e2, true), o2.nodeType === NODE_TYPE.element && o2.nodeName === "BODY" || o2.nodeName === "HTML" ? i2 = o2 : i2.appendChild(o2);
988
- else {
989
- if (!M && !k && !j && e2.indexOf("<") === -1) return _ && P ? _.createHTML(e2) : e2;
990
- if (i2 = On(e2), !i2) return M ? null : P ? v : "";
991
- }
992
- i2 && fn && Z(i2.firstChild);
993
- let u2 = kn(I ? e2 : i2);
994
- for (; c2 = u2.nextNode(); ) Mn(c2), Fn(c2), c2.content instanceof a && In(c2.content);
995
- if (I) return e2;
996
- if (M) {
997
- if (N) for (l2 = Yt.call(i2.ownerDocument); i2.firstChild; ) l2.appendChild(i2.firstChild);
998
- else l2 = i2;
999
- return (w.shadowroot || w.shadowrootmode) && (l2 = Zt.call(r, l2, true)), l2;
1000
- }
1001
- let d2 = j ? i2.outerHTML : i2.innerHTML;
1002
- return j && C["!doctype"] && i2.ownerDocument && i2.ownerDocument.doctype && i2.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i2.ownerDocument.doctype.name) && (d2 = "<!DOCTYPE " + i2.ownerDocument.doctype.name + ">\n" + d2), k && arrayForEach([
1003
- x,
1004
- S,
1005
- Qt
1006
- ], (e3) => {
1007
- d2 = stringReplace(d2, e3, " ");
1008
- }), _ && P ? _.createHTML(d2) : d2;
1009
- }, t.setConfig = function() {
1010
- wn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), dn = true;
1011
- }, t.clearConfig = function() {
1012
- X = null, dn = false;
1013
- }, t.isValidAttribute = function(e2, t2, n2) {
1014
- return X || wn({}), Nn(Y(e2), Y(t2), n2);
1015
- }, t.addHook = function(e2, t2) {
1016
- typeof t2 == "function" && arrayPush(b[e2], t2);
1017
- }, t.removeHook = function(e2, t2) {
1018
- if (t2 !== void 0) {
1019
- let n2 = arrayLastIndexOf(b[e2], t2);
1020
- return n2 === -1 ? void 0 : arraySplice(b[e2], n2, 1)[0];
1021
- }
1022
- return arrayPop(b[e2]);
1023
- }, t.removeHooks = function(e2) {
1024
- b[e2] = [];
1025
- }, t.removeAllHooks = function() {
1026
- b = _createHooksMap();
1027
- }, t;
1028
- }
1029
- let anyCommentRegex, addDetector, assignWithDepth, oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorEven, mkBorder, Theme, getThemeVariables, Theme2, getThemeVariables2, Theme3, Theme4, getThemeVariables4, Theme5, config_schema_default, config, keyify, configKeys, sanitizeCss, siteConfig, configFromInitialize, directives, currentConfig, updateCurrentConfig, sanitize, ConfigWarning, issuedWarnings, issueWarning, checkConfig, getRows, setupDompurifyHooksIfNotSetup;
1030
- purify = createDOMPurify();
1031
477
  frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;
1032
478
  directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;
1033
479
  anyCommentRegex = /\s*%%.*\n/gm;
1034
480
  UnknownDiagramError = (_a = class extends Error {
1035
- constructor(e) {
1036
- super(e), this.name = "UnknownDiagramError";
481
+ constructor(u) {
482
+ super(u), this.name = "UnknownDiagramError";
1037
483
  }
1038
484
  }, __name(_a, "UnknownDiagramError"), _a);
1039
485
  detectors = {};
1040
- detectType = __name(function(e, t) {
1041
- e = e.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
1042
- for (let [n, { detector: r }] of Object.entries(detectors)) if (r(e, t)) return n;
1043
- throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`);
486
+ detectType = __name(function(u, z) {
487
+ u = u.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
488
+ for (let [B, { detector: V }] of Object.entries(detectors)) if (V(u, z)) return B;
489
+ throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${u}`);
1044
490
  }, "detectType");
1045
- registerLazyLoadedDiagrams = __name((...e) => {
1046
- for (let { id: t, detector: n, loader: r } of e) addDetector(t, n, r);
491
+ registerLazyLoadedDiagrams = __name((...u) => {
492
+ for (let { id: z, detector: B, loader: V } of u) addDetector(z, B, V);
1047
493
  }, "registerLazyLoadedDiagrams");
1048
- addDetector = __name((e, n, r) => {
1049
- detectors[e] && log.warn(`Detector with key ${e} already exists. Overwriting.`), detectors[e] = {
1050
- detector: n,
1051
- loader: r
1052
- }, log.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
494
+ addDetector = __name((u, z, V) => {
495
+ detectors[u] && log.warn(`Detector with key ${u} already exists. Overwriting.`), detectors[u] = {
496
+ detector: z,
497
+ loader: V
498
+ }, log.debug(`Detector with key ${u} added${V ? " with loader" : ""}`);
1053
499
  }, "addDetector");
1054
- getDiagramLoader = __name((e) => detectors[e].loader, "getDiagramLoader");
1055
- assignWithDepth = __name((e, t, { depth: n = 2, clobber: r = false } = {}) => {
1056
- let i = {
1057
- depth: n,
1058
- clobber: r
500
+ getDiagramLoader = __name((u) => detectors[u].loader, "getDiagramLoader");
501
+ assignWithDepth = __name((u, z, { depth: B = 2, clobber: V = false } = {}) => {
502
+ let H = {
503
+ depth: B,
504
+ clobber: V
1059
505
  };
1060
- return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t2) => assignWithDepth(e, t2, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t2) => {
1061
- e.includes(t2) || e.push(t2);
1062
- }), 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((i2) => {
1063
- typeof t[i2] == "object" && (e[i2] === void 0 || typeof e[i2] == "object") ? (e[i2] === void 0 && (e[i2] = Array.isArray(t[i2]) ? [] : {}), e[i2] = assignWithDepth(e[i2], t[i2], {
1064
- depth: n - 1,
1065
- clobber: r
1066
- })) : (r || typeof e[i2] != "object" && typeof t[i2] != "object") && (e[i2] = t[i2]);
1067
- }), e);
506
+ return Array.isArray(z) && !Array.isArray(u) ? (z.forEach((z2) => assignWithDepth(u, z2, H)), u) : Array.isArray(z) && Array.isArray(u) ? (z.forEach((z2) => {
507
+ u.includes(z2) || u.push(z2);
508
+ }), u) : u === void 0 || B <= 0 ? typeof u == "object" && u && typeof z == "object" ? Object.assign(u, z) : z : (z !== void 0 && typeof u == "object" && typeof z == "object" && Object.keys(z).forEach((H2) => {
509
+ typeof z[H2] == "object" && (u[H2] === void 0 || typeof u[H2] == "object") ? (u[H2] === void 0 && (u[H2] = Array.isArray(z[H2]) ? [] : {}), u[H2] = assignWithDepth(u[H2], z[H2], {
510
+ depth: B - 1,
511
+ clobber: V
512
+ })) : (V || typeof u[H2] != "object" && typeof z[H2] != "object") && (u[H2] = z[H2]);
513
+ }), u);
1068
514
  }, "assignWithDepth");
1069
515
  assignWithDepth_default = assignWithDepth;
1070
516
  oldAttributeBackgroundColorOdd = "#ffffff";
1071
517
  oldAttributeBackgroundColorEven = "#f2f2f2";
1072
- mkBorder = __name((e, t) => t ? adjust_default(e, {
518
+ mkBorder = __name((u, z) => z ? adjust_default(u, {
1073
519
  s: -40,
1074
520
  l: 10
1075
- }) : adjust_default(e, {
521
+ }) : adjust_default(u, {
1076
522
  s: -40,
1077
523
  l: -10
1078
524
  }), "mkBorder");
@@ -1106,21 +552,21 @@ let __tla = (async () => {
1106
552
  h: 300
1107
553
  }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
1108
554
  h: 330
1109
- }), this.darkMode) for (let e2 = 0; e2 < this.THEME_COLOR_LIMIT; e2++) this["cScale" + e2] = darken_default(this["cScale" + e2], 75);
1110
- else for (let e2 = 0; e2 < this.THEME_COLOR_LIMIT; e2++) this["cScale" + e2] = darken_default(this["cScale" + e2], 25);
1111
- for (let e2 = 0; e2 < this.THEME_COLOR_LIMIT; e2++) this["cScaleInv" + e2] = this["cScaleInv" + e2] || invert_default(this["cScale" + e2]);
1112
- for (let e2 = 0; e2 < this.THEME_COLOR_LIMIT; e2++) this.darkMode ? this["cScalePeer" + e2] = this["cScalePeer" + e2] || lighten_default(this["cScale" + e2], 10) : this["cScalePeer" + e2] = this["cScalePeer" + e2] || darken_default(this["cScale" + e2], 10);
555
+ }), this.darkMode) for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 75);
556
+ else for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 25);
557
+ for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleInv" + u2] = this["cScaleInv" + u2] || invert_default(this["cScale" + u2]);
558
+ for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this.darkMode ? this["cScalePeer" + u2] = this["cScalePeer" + u2] || lighten_default(this["cScale" + u2], 10) : this["cScalePeer" + u2] = this["cScalePeer" + u2] || darken_default(this["cScale" + u2], 10);
1113
559
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1114
- for (let e2 = 0; e2 < this.THEME_COLOR_LIMIT; e2++) this["cScaleLabel" + e2] = this["cScaleLabel" + e2] || this.scaleLabelColor;
1115
- let e = this.darkMode ? -4 : -1;
1116
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || adjust_default(this.mainBkg, {
560
+ for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleLabel" + u2] = this["cScaleLabel" + u2] || this.scaleLabelColor;
561
+ let u = this.darkMode ? -4 : -1;
562
+ for (let z = 0; z < 5; z++) this["surface" + z] = this["surface" + z] || adjust_default(this.mainBkg, {
1117
563
  h: 180,
1118
564
  s: -15,
1119
- l: e * (5 + t * 3)
1120
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || adjust_default(this.mainBkg, {
565
+ l: u * (5 + z * 3)
566
+ }), this["surfacePeer" + z] = this["surfacePeer" + z] || adjust_default(this.mainBkg, {
1121
567
  h: 180,
1122
568
  s: -15,
1123
- l: e * (8 + t * 3)
569
+ l: u * (8 + z * 3)
1124
570
  });
1125
571
  this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, {
1126
572
  h: 64
@@ -1217,22 +663,22 @@ let __tla = (async () => {
1217
663
  h: 120
1218
664
  }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1219
665
  }
1220
- calculate(e) {
1221
- if (typeof e != "object") {
666
+ calculate(u) {
667
+ if (typeof u != "object") {
1222
668
  this.updateColors();
1223
669
  return;
1224
670
  }
1225
- let t = Object.keys(e);
1226
- t.forEach((t2) => {
1227
- this[t2] = e[t2];
1228
- }), this.updateColors(), t.forEach((t2) => {
1229
- this[t2] = e[t2];
671
+ let z = Object.keys(u);
672
+ z.forEach((z2) => {
673
+ this[z2] = u[z2];
674
+ }), this.updateColors(), z.forEach((z2) => {
675
+ this[z2] = u[z2];
1230
676
  });
1231
677
  }
1232
678
  }, __name(_b, "Theme"), _b);
1233
- getThemeVariables = __name((e) => {
1234
- let t = new Theme();
1235
- return t.calculate(e), t;
679
+ getThemeVariables = __name((u) => {
680
+ let z = new Theme();
681
+ return z.calculate(u), z;
1236
682
  }, "getThemeVariables");
1237
683
  Theme2 = (_c = class {
1238
684
  constructor() {
@@ -1273,20 +719,20 @@ let __tla = (async () => {
1273
719
  }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
1274
720
  h: 330
1275
721
  });
1276
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1277
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10);
1278
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
722
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
723
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10);
724
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1279
725
  h: 30,
1280
726
  s: -30,
1281
- l: -(-10 + e * 4)
1282
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
727
+ l: -(-10 + u * 4)
728
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1283
729
  h: 30,
1284
730
  s: -30,
1285
- l: -(-7 + e * 4)
731
+ l: -(-7 + u * 4)
1286
732
  });
1287
733
  this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1288
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1289
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
734
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
735
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
1290
736
  this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1291
737
  r: 5,
1292
738
  g: 5,
@@ -1353,22 +799,22 @@ let __tla = (async () => {
1353
799
  h: 120
1354
800
  }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1355
801
  }
1356
- calculate(e) {
1357
- if (typeof e != "object") {
802
+ calculate(u) {
803
+ if (typeof u != "object") {
1358
804
  this.updateColors();
1359
805
  return;
1360
806
  }
1361
- let t = Object.keys(e);
1362
- t.forEach((t2) => {
1363
- this[t2] = e[t2];
1364
- }), this.updateColors(), t.forEach((t2) => {
1365
- this[t2] = e[t2];
807
+ let z = Object.keys(u);
808
+ z.forEach((z2) => {
809
+ this[z2] = u[z2];
810
+ }), this.updateColors(), z.forEach((z2) => {
811
+ this[z2] = u[z2];
1366
812
  });
1367
813
  }
1368
814
  }, __name(_c, "Theme"), _c);
1369
- getThemeVariables2 = __name((e) => {
1370
- let t = new Theme2();
1371
- return t.calculate(e), t;
815
+ getThemeVariables2 = __name((u) => {
816
+ let z = new Theme2();
817
+ return z.calculate(u), z;
1372
818
  }, "getThemeVariables");
1373
819
  Theme3 = (_d = class {
1374
820
  constructor() {
@@ -1399,20 +845,20 @@ let __tla = (async () => {
1399
845
  }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
1400
846
  h: 330
1401
847
  }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1402
- 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);
1403
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], {
848
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
849
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
1404
850
  h: 180
1405
851
  });
1406
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
852
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1407
853
  h: 30,
1408
- l: -(5 + e * 5)
1409
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
854
+ l: -(5 + u * 5)
855
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1410
856
  h: 30,
1411
- l: -(7 + e * 5)
857
+ l: -(7 + u * 5)
1412
858
  });
1413
859
  if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1414
860
  this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
1415
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
861
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.labelTextColor;
1416
862
  }
1417
863
  this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
1418
864
  h: 64
@@ -1511,24 +957,24 @@ let __tla = (async () => {
1511
957
  h: 120
1512
958
  }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1513
959
  }
1514
- calculate(e) {
1515
- if (Object.keys(this).forEach((e2) => {
1516
- this[e2] === "calculated" && (this[e2] = void 0);
1517
- }), typeof e != "object") {
960
+ calculate(u) {
961
+ if (Object.keys(this).forEach((u2) => {
962
+ this[u2] === "calculated" && (this[u2] = void 0);
963
+ }), typeof u != "object") {
1518
964
  this.updateColors();
1519
965
  return;
1520
966
  }
1521
- let t = Object.keys(e);
1522
- t.forEach((t2) => {
1523
- this[t2] = e[t2];
1524
- }), this.updateColors(), t.forEach((t2) => {
1525
- this[t2] = e[t2];
967
+ let z = Object.keys(u);
968
+ z.forEach((z2) => {
969
+ this[z2] = u[z2];
970
+ }), this.updateColors(), z.forEach((z2) => {
971
+ this[z2] = u[z2];
1526
972
  });
1527
973
  }
1528
974
  }, __name(_d, "Theme"), _d);
1529
- getThemeVariables3 = __name((e) => {
1530
- let t = new Theme3();
1531
- return t.calculate(e), t;
975
+ getThemeVariables3 = __name((u) => {
976
+ let z = new Theme3();
977
+ return z.calculate(u), z;
1532
978
  }, "getThemeVariables");
1533
979
  Theme4 = (_e = class {
1534
980
  constructor() {
@@ -1555,20 +1001,20 @@ let __tla = (async () => {
1555
1001
  }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
1556
1002
  h: 330
1557
1003
  }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1558
- 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);
1559
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], {
1004
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
1005
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
1560
1006
  h: 180
1561
1007
  });
1562
1008
  this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1563
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1564
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1009
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
1010
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1565
1011
  h: 30,
1566
1012
  s: -30,
1567
- l: -(5 + e * 5)
1568
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1013
+ l: -(5 + u * 5)
1014
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1569
1015
  h: 30,
1570
1016
  s: -30,
1571
- l: -(8 + e * 5)
1017
+ l: -(8 + u * 5)
1572
1018
  });
1573
1019
  this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
1574
1020
  h: 64
@@ -1673,22 +1119,22 @@ let __tla = (async () => {
1673
1119
  h: 120
1674
1120
  }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1675
1121
  }
1676
- calculate(e) {
1677
- if (typeof e != "object") {
1122
+ calculate(u) {
1123
+ if (typeof u != "object") {
1678
1124
  this.updateColors();
1679
1125
  return;
1680
1126
  }
1681
- let t = Object.keys(e);
1682
- t.forEach((t2) => {
1683
- this[t2] = e[t2];
1684
- }), this.updateColors(), t.forEach((t2) => {
1685
- this[t2] = e[t2];
1127
+ let z = Object.keys(u);
1128
+ z.forEach((z2) => {
1129
+ this[z2] = u[z2];
1130
+ }), this.updateColors(), z.forEach((z2) => {
1131
+ this[z2] = u[z2];
1686
1132
  });
1687
1133
  }
1688
1134
  }, __name(_e, "Theme"), _e);
1689
- getThemeVariables4 = __name((e) => {
1690
- let t = new Theme4();
1691
- return t.calculate(e), t;
1135
+ getThemeVariables4 = __name((u) => {
1136
+ let z = new Theme4();
1137
+ return z.calculate(u), z;
1692
1138
  }, "getThemeVariables");
1693
1139
  Theme5 = (_f = class {
1694
1140
  constructor() {
@@ -1699,14 +1145,14 @@ let __tla = (async () => {
1699
1145
  updateColors() {
1700
1146
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
1701
1147
  this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1702
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1703
- 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);
1148
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
1149
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this.darkMode ? this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10) : this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 10);
1704
1150
  this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1705
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1706
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1707
- l: -(5 + e * 5)
1708
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1709
- l: -(8 + e * 5)
1151
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
1152
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
1153
+ l: -(5 + u * 5)
1154
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
1155
+ l: -(8 + u * 5)
1710
1156
  });
1711
1157
  this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
1712
1158
  h: 64
@@ -1721,7 +1167,7 @@ let __tla = (async () => {
1721
1167
  }), this.fillType7 = adjust_default(this.secondaryColor, {
1722
1168
  h: 128
1723
1169
  });
1724
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1170
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
1725
1171
  this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1726
1172
  r: 5,
1727
1173
  g: 5,
@@ -1781,16 +1227,16 @@ let __tla = (async () => {
1781
1227
  h: 120
1782
1228
  }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1783
1229
  }
1784
- calculate(e) {
1785
- if (typeof e != "object") {
1230
+ calculate(u) {
1231
+ if (typeof u != "object") {
1786
1232
  this.updateColors();
1787
1233
  return;
1788
1234
  }
1789
- let t = Object.keys(e);
1790
- t.forEach((t2) => {
1791
- this[t2] = e[t2];
1792
- }), this.updateColors(), t.forEach((t2) => {
1793
- this[t2] = e[t2];
1235
+ let z = Object.keys(u);
1236
+ z.forEach((z2) => {
1237
+ this[z2] = u[z2];
1238
+ }), this.updateColors(), z.forEach((z2) => {
1239
+ this[z2] = u[z2];
1794
1240
  });
1795
1241
  }
1796
1242
  }, __name(_f, "Theme"), _f);
@@ -1808,9 +1254,9 @@ let __tla = (async () => {
1808
1254
  getThemeVariables: getThemeVariables4
1809
1255
  },
1810
1256
  neutral: {
1811
- getThemeVariables: __name((e) => {
1812
- let t = new Theme5();
1813
- return t.calculate(e), t;
1257
+ getThemeVariables: __name((u) => {
1258
+ let z = new Theme5();
1259
+ return z.calculate(u), z;
1814
1260
  }, "getThemeVariables")
1815
1261
  }
1816
1262
  };
@@ -2544,224 +1990,224 @@ let __tla = (async () => {
2544
1990
  valueFormat: ","
2545
1991
  }
2546
1992
  };
2547
- keyify = __name((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2548
- ...n,
2549
- t + r,
2550
- ...keyify(e[r], "")
1993
+ keyify = __name((u, z = "") => Object.keys(u).reduce((B, V) => Array.isArray(u[V]) ? B : typeof u[V] == "object" && u[V] !== null ? [
1994
+ ...B,
1995
+ z + V,
1996
+ ...keyify(u[V], "")
2551
1997
  ] : [
2552
- ...n,
2553
- t + r
1998
+ ...B,
1999
+ z + V
2554
2000
  ], []), "keyify");
2555
2001
  configKeys = new Set(keyify(config, ""));
2556
2002
  defaultConfig_default = config;
2557
- sanitizeDirective = __name((e) => {
2558
- if (log.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2559
- if (Array.isArray(e)) {
2560
- e.forEach((e2) => sanitizeDirective(e2));
2003
+ sanitizeDirective = __name((u) => {
2004
+ if (log.debug("sanitizeDirective called with", u), !(typeof u != "object" || !u)) {
2005
+ if (Array.isArray(u)) {
2006
+ u.forEach((u2) => sanitizeDirective(u2));
2561
2007
  return;
2562
2008
  }
2563
- for (let n of Object.keys(e)) {
2564
- if (log.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !configKeys.has(n) || e[n] == null) {
2565
- log.debug("sanitize deleting key: ", n), delete e[n];
2009
+ for (let z of Object.keys(u)) {
2010
+ if (log.debug("Checking key", z), z.startsWith("__") || z.includes("proto") || z.includes("constr") || !configKeys.has(z) || u[z] == null) {
2011
+ log.debug("sanitize deleting key: ", z), delete u[z];
2566
2012
  continue;
2567
2013
  }
2568
- if (typeof e[n] == "object") {
2569
- log.debug("sanitizing object", n), sanitizeDirective(e[n]);
2014
+ if (typeof u[z] == "object") {
2015
+ log.debug("sanitizing object", z), sanitizeDirective(u[z]);
2570
2016
  continue;
2571
2017
  }
2572
- for (let r of [
2018
+ for (let V of [
2573
2019
  "themeCSS",
2574
2020
  "fontFamily",
2575
2021
  "altFontFamily"
2576
- ]) n.includes(r) && (log.debug("sanitizing css option", n), e[n] = sanitizeCss(e[n]));
2022
+ ]) z.includes(V) && (log.debug("sanitizing css option", z), u[z] = sanitizeCss(u[z]));
2577
2023
  }
2578
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2579
- let n = e.themeVariables[t];
2580
- (n == null ? void 0 : n.match) && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2024
+ if (u.themeVariables) for (let z of Object.keys(u.themeVariables)) {
2025
+ let B = u.themeVariables[z];
2026
+ (B == null ? void 0 : B.match) && !B.match(/^[\d "#%(),.;A-Za-z]+$/) && (u.themeVariables[z] = "");
2581
2027
  }
2582
- log.debug("After sanitization", e);
2028
+ log.debug("After sanitization", u);
2583
2029
  }
2584
2030
  }, "sanitizeDirective");
2585
- sanitizeCss = __name((e) => {
2586
- let t = 0, n = 0;
2587
- for (let r of e) {
2588
- if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2589
- r === "{" ? t++ : r === "}" && n++;
2031
+ sanitizeCss = __name((u) => {
2032
+ let z = 0, B = 0;
2033
+ for (let V of u) {
2034
+ if (z < B) return "{ /* ERROR: Unbalanced CSS */ }";
2035
+ V === "{" ? z++ : V === "}" && B++;
2590
2036
  }
2591
- return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2037
+ return z === B ? u : "{ /* ERROR: Unbalanced CSS */ }";
2592
2038
  }, "sanitizeCss");
2593
2039
  defaultConfig = Object.freeze(defaultConfig_default);
2594
2040
  siteConfig = assignWithDepth_default({}, defaultConfig);
2595
2041
  directives = [];
2596
2042
  currentConfig = assignWithDepth_default({}, defaultConfig);
2597
- updateCurrentConfig = __name((e, t) => {
2598
- let n = assignWithDepth_default({}, e), r = {};
2599
- for (let e2 of t) sanitize(e2), r = assignWithDepth_default(r, e2);
2600
- if (n = assignWithDepth_default(n, r), r.theme && r.theme in themes_default) {
2601
- let e2 = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, r.themeVariables);
2602
- n.theme && n.theme in themes_default && (n.themeVariables = themes_default[n.theme].getThemeVariables(e2));
2043
+ updateCurrentConfig = __name((u, z) => {
2044
+ let B = assignWithDepth_default({}, u), V = {};
2045
+ for (let u2 of z) sanitize(u2), V = assignWithDepth_default(V, u2);
2046
+ if (B = assignWithDepth_default(B, V), V.theme && V.theme in themes_default) {
2047
+ let u2 = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, V.themeVariables);
2048
+ B.theme && B.theme in themes_default && (B.themeVariables = themes_default[B.theme].getThemeVariables(u2));
2603
2049
  }
2604
- return currentConfig = n, checkConfig(currentConfig), currentConfig;
2050
+ return currentConfig = B, checkConfig(currentConfig), currentConfig;
2605
2051
  }, "updateCurrentConfig");
2606
- setSiteConfig = __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");
2607
- saveConfigFromInitialize = __name((e) => {
2608
- configFromInitialize = assignWithDepth_default({}, e);
2052
+ setSiteConfig = __name((u) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, u), u.theme && themes_default[u.theme] && (siteConfig.themeVariables = themes_default[u.theme].getThemeVariables(u.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig");
2053
+ saveConfigFromInitialize = __name((u) => {
2054
+ configFromInitialize = assignWithDepth_default({}, u);
2609
2055
  }, "saveConfigFromInitialize");
2610
- updateSiteConfig = __name((e) => (siteConfig = assignWithDepth_default(siteConfig, e), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig");
2056
+ updateSiteConfig = __name((u) => (siteConfig = assignWithDepth_default(siteConfig, u), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig");
2611
2057
  getSiteConfig = __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig");
2612
- setConfig = __name((e) => (checkConfig(e), assignWithDepth_default(currentConfig, e), getConfig()), "setConfig");
2058
+ setConfig = __name((u) => (checkConfig(u), assignWithDepth_default(currentConfig, u), getConfig()), "setConfig");
2613
2059
  getConfig = __name(() => assignWithDepth_default({}, currentConfig), "getConfig");
2614
- sanitize = __name((e) => {
2615
- e && ([
2060
+ sanitize = __name((u) => {
2061
+ u && ([
2616
2062
  "secure",
2617
2063
  ...siteConfig.secure ?? []
2618
- ].forEach((n) => {
2619
- Object.hasOwn(e, n) && (log.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
2620
- }), Object.keys(e).forEach((t) => {
2621
- t.startsWith("__") && delete e[t];
2622
- }), Object.keys(e).forEach((t) => {
2623
- 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]);
2064
+ ].forEach((z) => {
2065
+ Object.hasOwn(u, z) && (log.debug(`Denied attempt to modify a secure key ${z}`, u[z]), delete u[z]);
2066
+ }), Object.keys(u).forEach((z) => {
2067
+ z.startsWith("__") && delete u[z];
2068
+ }), Object.keys(u).forEach((z) => {
2069
+ typeof u[z] == "string" && (u[z].includes("<") || u[z].includes(">") || u[z].includes("url(data:")) && delete u[z], typeof u[z] == "object" && sanitize(u[z]);
2624
2070
  }));
2625
2071
  }, "sanitize");
2626
- addDirective = __name((e) => {
2072
+ addDirective = __name((u) => {
2627
2073
  var _a2;
2628
- sanitizeDirective(e), e.fontFamily && !((_a2 = e.themeVariables) == null ? void 0 : _a2.fontFamily) && (e.themeVariables = {
2629
- ...e.themeVariables,
2630
- fontFamily: e.fontFamily
2631
- }), directives.push(e), updateCurrentConfig(siteConfig, directives);
2074
+ sanitizeDirective(u), u.fontFamily && !((_a2 = u.themeVariables) == null ? void 0 : _a2.fontFamily) && (u.themeVariables = {
2075
+ ...u.themeVariables,
2076
+ fontFamily: u.fontFamily
2077
+ }), directives.push(u), updateCurrentConfig(siteConfig, directives);
2632
2078
  }, "addDirective");
2633
- reset = __name((e = siteConfig) => {
2634
- directives = [], updateCurrentConfig(e, directives);
2079
+ reset = __name((u = siteConfig) => {
2080
+ directives = [], updateCurrentConfig(u, directives);
2635
2081
  }, "reset");
2636
2082
  ConfigWarning = {
2637
2083
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
2638
2084
  };
2639
2085
  issuedWarnings = {};
2640
- issueWarning = __name((e) => {
2641
- issuedWarnings[e] || (log.warn(ConfigWarning[e]), issuedWarnings[e] = true);
2086
+ issueWarning = __name((u) => {
2087
+ issuedWarnings[u] || (log.warn(ConfigWarning[u]), issuedWarnings[u] = true);
2642
2088
  }, "issueWarning");
2643
- checkConfig = __name((e) => {
2644
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2089
+ checkConfig = __name((u) => {
2090
+ u && (u.lazyLoadedDiagrams || u.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2645
2091
  }, "checkConfig");
2646
2092
  getUserDefinedConfig = __name(() => {
2647
- let e = {};
2648
- configFromInitialize && (e = assignWithDepth_default(e, configFromInitialize));
2649
- for (let t of directives) e = assignWithDepth_default(e, t);
2650
- return e;
2093
+ let u = {};
2094
+ configFromInitialize && (u = assignWithDepth_default(u, configFromInitialize));
2095
+ for (let z of directives) u = assignWithDepth_default(u, z);
2096
+ return u;
2651
2097
  }, "getUserDefinedConfig");
2652
2098
  lineBreakRegex = /<br\s*\/?>/gi;
2653
- getRows = __name((e) => e ? breakToPlaceholder(e).replace(/\\n/g, "#br#").split("#br#") : [
2099
+ getRows = __name((u) => u ? breakToPlaceholder(u).replace(/\\n/g, "#br#").split("#br#") : [
2654
2100
  ""
2655
2101
  ], "getRows");
2656
2102
  setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
2657
- let e = false;
2103
+ let u = false;
2658
2104
  return () => {
2659
- e || (e = (setupDompurifyHooks(), true));
2105
+ u || (u = (setupDompurifyHooks(), true));
2660
2106
  };
2661
2107
  })();
2662
2108
  function setupDompurifyHooks() {
2663
- let e = "data-temp-href-target";
2664
- purify.addHook("beforeSanitizeAttributes", (t) => {
2665
- t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
2666
- }), purify.addHook("afterSanitizeAttributes", (t) => {
2667
- t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
2109
+ let z = "data-temp-href-target";
2110
+ purify.addHook("beforeSanitizeAttributes", (u) => {
2111
+ u.tagName === "A" && u.hasAttribute("target") && u.setAttribute(z, u.getAttribute("target") ?? "");
2112
+ }), purify.addHook("afterSanitizeAttributes", (u) => {
2113
+ u.tagName === "A" && u.hasAttribute(z) && (u.setAttribute("target", u.getAttribute(z) ?? ""), u.removeAttribute(z), u.getAttribute("target") === "_blank" && u.setAttribute("rel", "noopener"));
2668
2114
  });
2669
2115
  }
2670
2116
  __name(setupDompurifyHooks, "setupDompurifyHooks");
2671
2117
  let removeScript, sanitizeMore, sanitizeTextOrArray, hasBreaks, splitBreaks, placeholderToBreak, breakToPlaceholder, getMax, getMin, countOccurrence, shouldCombineSets, processSet, isMathMLSupported, katexRegex, renderKatexUnsanitized, d3Attrs, calculateSvgSizeAttrs, themes, getStyles, addStylesForDiagram;
2672
- removeScript = __name((e) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(e)), "removeScript");
2673
- sanitizeMore = __name((e, t) => {
2118
+ removeScript = __name((z) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(z)), "removeScript");
2119
+ sanitizeMore = __name((u, z) => {
2674
2120
  var _a2;
2675
- if (((_a2 = t.flowchart) == null ? void 0 : _a2.htmlLabels) !== false) {
2676
- let n = t.securityLevel;
2677
- 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));
2121
+ if (((_a2 = z.flowchart) == null ? void 0 : _a2.htmlLabels) !== false) {
2122
+ let B = z.securityLevel;
2123
+ B === "antiscript" || B === "strict" ? u = removeScript(u) : B !== "loose" && (u = breakToPlaceholder(u), u = u.replace(/</g, "&lt;").replace(/>/g, "&gt;"), u = u.replace(/=/g, "&equals;"), u = placeholderToBreak(u));
2678
2124
  }
2679
- return e;
2125
+ return u;
2680
2126
  }, "sanitizeMore");
2681
- sanitizeText = __name((e, t) => e && (e = t.dompurifyConfig ? purify.sanitize(sanitizeMore(e, t), t.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(e, t), {
2127
+ sanitizeText = __name((z, B) => z && (z = B.dompurifyConfig ? purify.sanitize(sanitizeMore(z, B), B.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(z, B), {
2682
2128
  FORBID_TAGS: [
2683
2129
  "style"
2684
2130
  ]
2685
- }).toString(), e), "sanitizeText");
2686
- sanitizeTextOrArray = __name((e, t) => typeof e == "string" ? sanitizeText(e, t) : e.flat().map((e2) => sanitizeText(e2, t)), "sanitizeTextOrArray");
2687
- hasBreaks = __name((e) => lineBreakRegex.test(e), "hasBreaks");
2688
- splitBreaks = __name((e) => e.split(lineBreakRegex), "splitBreaks");
2689
- placeholderToBreak = __name((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak");
2690
- breakToPlaceholder = __name((e) => e.replace(lineBreakRegex, "#br#"), "breakToPlaceholder");
2691
- getUrl = __name((e) => {
2692
- let t = "";
2693
- return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2131
+ }).toString(), z), "sanitizeText");
2132
+ sanitizeTextOrArray = __name((u, z) => typeof u == "string" ? sanitizeText(u, z) : u.flat().map((u2) => sanitizeText(u2, z)), "sanitizeTextOrArray");
2133
+ hasBreaks = __name((u) => lineBreakRegex.test(u), "hasBreaks");
2134
+ splitBreaks = __name((u) => u.split(lineBreakRegex), "splitBreaks");
2135
+ placeholderToBreak = __name((u) => u.replace(/#br#/g, "<br/>"), "placeholderToBreak");
2136
+ breakToPlaceholder = __name((u) => u.replace(lineBreakRegex, "#br#"), "breakToPlaceholder");
2137
+ getUrl = __name((u) => {
2138
+ let z = "";
2139
+ return u && (z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, z = CSS.escape(z)), z;
2694
2140
  }, "getUrl");
2695
- evaluate = __name((e) => !(e === false || [
2141
+ evaluate = __name((u) => !(u === false || [
2696
2142
  "false",
2697
2143
  "null",
2698
2144
  "0"
2699
- ].includes(String(e).trim().toLowerCase())), "evaluate");
2700
- getMax = __name(function(...e) {
2701
- let t = e.filter((e2) => !isNaN(e2));
2702
- return Math.max(...t);
2145
+ ].includes(String(u).trim().toLowerCase())), "evaluate");
2146
+ getMax = __name(function(...u) {
2147
+ let z = u.filter((u2) => !isNaN(u2));
2148
+ return Math.max(...z);
2703
2149
  }, "getMax");
2704
- getMin = __name(function(...e) {
2705
- let t = e.filter((e2) => !isNaN(e2));
2706
- return Math.min(...t);
2150
+ getMin = __name(function(...u) {
2151
+ let z = u.filter((u2) => !isNaN(u2));
2152
+ return Math.min(...z);
2707
2153
  }, "getMin");
2708
- parseGenericTypes = __name(function(e) {
2709
- let t = e.split(/(,)/), n = [];
2710
- for (let e2 = 0; e2 < t.length; e2++) {
2711
- let r = t[e2];
2712
- if (r === "," && e2 > 0 && e2 + 1 < t.length) {
2713
- let i = t[e2 - 1], a = t[e2 + 1];
2714
- shouldCombineSets(i, a) && (r = i + "," + a, e2++, n.pop());
2154
+ parseGenericTypes = __name(function(u) {
2155
+ let z = u.split(/(,)/), B = [];
2156
+ for (let u2 = 0; u2 < z.length; u2++) {
2157
+ let V = z[u2];
2158
+ if (V === "," && u2 > 0 && u2 + 1 < z.length) {
2159
+ let H = z[u2 - 1], U = z[u2 + 1];
2160
+ shouldCombineSets(H, U) && (V = H + "," + U, u2++, B.pop());
2715
2161
  }
2716
- n.push(processSet(r));
2162
+ B.push(processSet(V));
2717
2163
  }
2718
- return n.join("");
2164
+ return B.join("");
2719
2165
  }, "parseGenericTypes");
2720
- countOccurrence = __name((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence");
2721
- shouldCombineSets = __name((e, t) => {
2722
- let n = countOccurrence(e, "~"), r = countOccurrence(t, "~");
2723
- return n === 1 && r === 1;
2166
+ countOccurrence = __name((u, z) => Math.max(0, u.split(z).length - 1), "countOccurrence");
2167
+ shouldCombineSets = __name((u, z) => {
2168
+ let B = countOccurrence(u, "~"), V = countOccurrence(z, "~");
2169
+ return B === 1 && V === 1;
2724
2170
  }, "shouldCombineSets");
2725
- processSet = __name((e) => {
2726
- let t = countOccurrence(e, "~"), n = false;
2727
- if (t <= 1) return e;
2728
- t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = true);
2729
- let r = [
2730
- ...e
2731
- ], i = r.indexOf("~"), a = r.lastIndexOf("~");
2732
- for (; i !== -1 && a !== -1 && i !== a; ) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2733
- return n && r.unshift("~"), r.join("");
2171
+ processSet = __name((u) => {
2172
+ let z = countOccurrence(u, "~"), B = false;
2173
+ if (z <= 1) return u;
2174
+ z % 2 != 0 && u.startsWith("~") && (u = u.substring(1), B = true);
2175
+ let V = [
2176
+ ...u
2177
+ ], H = V.indexOf("~"), U = V.lastIndexOf("~");
2178
+ for (; H !== -1 && U !== -1 && H !== U; ) V[H] = "<", V[U] = ">", H = V.indexOf("~"), U = V.lastIndexOf("~");
2179
+ return B && V.unshift("~"), V.join("");
2734
2180
  }, "processSet");
2735
2181
  isMathMLSupported = __name(() => window.MathMLElement !== void 0, "isMathMLSupported");
2736
2182
  katexRegex = /\$\$(.*)\$\$/g;
2737
- hasKatex = __name((e) => {
2183
+ hasKatex = __name((u) => {
2738
2184
  var _a2;
2739
- return (((_a2 = e.match(katexRegex)) == null ? void 0 : _a2.length) ?? 0) > 0;
2185
+ return (((_a2 = u.match(katexRegex)) == null ? void 0 : _a2.length) ?? 0) > 0;
2740
2186
  }, "hasKatex");
2741
- calculateMathMLDimensions = __name(async (e, t) => {
2187
+ calculateMathMLDimensions = __name(async (u, z) => {
2742
2188
  var _a2;
2743
- let n = document.createElement("div");
2744
- n.innerHTML = await renderKatexSanitized(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", (_a2 = document.querySelector("body")) == null ? void 0 : _a2.insertAdjacentElement("beforeend", n);
2745
- let r = {
2746
- width: n.clientWidth,
2747
- height: n.clientHeight
2189
+ let B = document.createElement("div");
2190
+ B.innerHTML = await renderKatexSanitized(u, z), B.id = "katex-temp", B.style.visibility = "hidden", B.style.position = "absolute", B.style.top = "0", (_a2 = document.querySelector("body")) == null ? void 0 : _a2.insertAdjacentElement("beforeend", B);
2191
+ let V = {
2192
+ width: B.clientWidth,
2193
+ height: B.clientHeight
2748
2194
  };
2749
- return n.remove(), r;
2195
+ return B.remove(), V;
2750
2196
  }, "calculateMathMLDimensions");
2751
- renderKatexUnsanitized = __name(async (e, t) => {
2752
- if (!hasKatex(e)) return e;
2753
- if (!(isMathMLSupported() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(katexRegex, "MathML is unsupported in this environment.");
2197
+ renderKatexUnsanitized = __name(async (u, z) => {
2198
+ if (!hasKatex(u)) return u;
2199
+ if (!(isMathMLSupported() || z.legacyMathML || z.forceLegacyMathML)) return u.replace(katexRegex, "MathML is unsupported in this environment.");
2754
2200
  {
2755
- let { default: n } = await import("./katex-mPzRsXEy.js"), r = t.forceLegacyMathML || !isMathMLSupported() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2756
- return e.split(lineBreakRegex).map((e2) => hasKatex(e2) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e2}</div>` : `<div>${e2}</div>`).join("").replace(katexRegex, (e2, t2) => n.renderToString(t2, {
2201
+ let { default: B } = await import("./katex-C-g3rKKt.js"), V = z.forceLegacyMathML || !isMathMLSupported() && z.legacyMathML ? "htmlAndMathml" : "mathml";
2202
+ return u.split(lineBreakRegex).map((u2) => hasKatex(u2) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${u2}</div>` : `<div>${u2}</div>`).join("").replace(katexRegex, (u2, z2) => B.renderToString(z2, {
2757
2203
  throwOnError: true,
2758
2204
  displayMode: true,
2759
- output: r
2205
+ output: V
2760
2206
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2761
2207
  }
2762
- return e.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2208
+ return u.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2763
2209
  }, "renderKatexUnsanitized");
2764
- renderKatexSanitized = __name(async (e, t) => sanitizeText(await renderKatexUnsanitized(e, t), t), "renderKatexSanitized");
2210
+ renderKatexSanitized = __name(async (u, z) => sanitizeText(await renderKatexUnsanitized(u, z), z), "renderKatexSanitized");
2765
2211
  common_default = {
2766
2212
  getRows,
2767
2213
  sanitizeText,
@@ -2775,31 +2221,31 @@ let __tla = (async () => {
2775
2221
  getMax,
2776
2222
  getMin
2777
2223
  };
2778
- d3Attrs = __name(function(e, t) {
2779
- for (let n of t) e.attr(n[0], n[1]);
2224
+ d3Attrs = __name(function(u, z) {
2225
+ for (let B of z) u.attr(B[0], B[1]);
2780
2226
  }, "d3Attrs");
2781
- calculateSvgSizeAttrs = __name(function(e, t, n) {
2782
- let r = /* @__PURE__ */ new Map();
2783
- return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2227
+ calculateSvgSizeAttrs = __name(function(u, z, B) {
2228
+ let V = /* @__PURE__ */ new Map();
2229
+ return B ? (V.set("width", "100%"), V.set("style", `max-width: ${z}px;`)) : (V.set("height", u), V.set("width", z)), V;
2784
2230
  }, "calculateSvgSizeAttrs");
2785
- configureSvgSize = __name(function(e, t, n, r) {
2786
- d3Attrs(e, calculateSvgSizeAttrs(t, n, r));
2231
+ configureSvgSize = __name(function(u, z, B, V) {
2232
+ d3Attrs(u, calculateSvgSizeAttrs(z, B, V));
2787
2233
  }, "configureSvgSize");
2788
- setupGraphViewbox = __name(function(e, n, r, i) {
2789
- let a = n.node().getBBox(), o = a.width, s = a.height;
2790
- log.info(`SVG bounds: ${o}x${s}`, a);
2791
- let c = 0, l = 0;
2792
- 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);
2793
- let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2794
- n.attr("viewBox", u);
2234
+ setupGraphViewbox = __name(function(u, z, V, H) {
2235
+ let U = z.node().getBBox(), W = U.width, G = U.height;
2236
+ log.info(`SVG bounds: ${W}x${G}`, U);
2237
+ let K = 0, q = 0;
2238
+ log.info(`Graph bounds: ${K}x${q}`, u), K = W + V * 2, q = G + V * 2, log.info(`Calculated bounds: ${K}x${q}`), configureSvgSize(z, q, K, H);
2239
+ let J = `${U.x - V} ${U.y - V} ${U.width + 2 * V} ${U.height + 2 * V}`;
2240
+ z.attr("viewBox", J);
2795
2241
  }, "setupGraphViewbox");
2796
2242
  themes = {};
2797
- getStyles = __name((e, n, r) => {
2798
- let i = "";
2799
- return e in themes && themes[e] ? i = themes[e](r) : log.warn(`No theme found for ${e}`), ` & {
2800
- font-family: ${r.fontFamily};
2801
- font-size: ${r.fontSize};
2802
- fill: ${r.textColor}
2243
+ getStyles = __name((u, z, V) => {
2244
+ let H = "";
2245
+ return u in themes && themes[u] ? H = themes[u](V) : log.warn(`No theme found for ${u}`), ` & {
2246
+ font-family: ${V.fontFamily};
2247
+ font-size: ${V.fontSize};
2248
+ fill: ${V.textColor}
2803
2249
  }
2804
2250
  @keyframes edge-animation-frame {
2805
2251
  from {
@@ -2826,11 +2272,11 @@ let __tla = (async () => {
2826
2272
  /* Classes common for multiple diagrams */
2827
2273
 
2828
2274
  & .error-icon {
2829
- fill: ${r.errorBkgColor};
2275
+ fill: ${V.errorBkgColor};
2830
2276
  }
2831
2277
  & .error-text {
2832
- fill: ${r.errorTextColor};
2833
- stroke: ${r.errorTextColor};
2278
+ fill: ${V.errorTextColor};
2279
+ stroke: ${V.errorTextColor};
2834
2280
  }
2835
2281
 
2836
2282
  & .edge-thickness-normal {
@@ -2854,28 +2300,28 @@ let __tla = (async () => {
2854
2300
  }
2855
2301
 
2856
2302
  & .marker {
2857
- fill: ${r.lineColor};
2858
- stroke: ${r.lineColor};
2303
+ fill: ${V.lineColor};
2304
+ stroke: ${V.lineColor};
2859
2305
  }
2860
2306
  & .marker.cross {
2861
- stroke: ${r.lineColor};
2307
+ stroke: ${V.lineColor};
2862
2308
  }
2863
2309
 
2864
2310
  & svg {
2865
- font-family: ${r.fontFamily};
2866
- font-size: ${r.fontSize};
2311
+ font-family: ${V.fontFamily};
2312
+ font-size: ${V.fontSize};
2867
2313
  }
2868
2314
  & p {
2869
2315
  margin: 0
2870
2316
  }
2871
2317
 
2872
- ${i}
2318
+ ${H}
2873
2319
 
2874
- ${n}
2320
+ ${z}
2875
2321
  `;
2876
2322
  }, "getStyles");
2877
- addStylesForDiagram = __name((e, t) => {
2878
- t !== void 0 && (themes[e] = t);
2323
+ addStylesForDiagram = __name((u, z) => {
2324
+ z !== void 0 && (themes[u] = z);
2879
2325
  }, "addStylesForDiagram");
2880
2326
  styles_default = getStyles;
2881
2327
  commonDb_exports = {};
@@ -2892,20 +2338,20 @@ let __tla = (async () => {
2892
2338
  accTitle = "";
2893
2339
  diagramTitle = "";
2894
2340
  accDescription = "";
2895
- sanitizeText2 = __name((e) => sanitizeText(e, getConfig()), "sanitizeText");
2341
+ sanitizeText2 = __name((u) => sanitizeText(u, getConfig()), "sanitizeText");
2896
2342
  clear = __name(() => {
2897
2343
  accTitle = "", accDescription = "", diagramTitle = "";
2898
2344
  }, "clear");
2899
- setAccTitle = __name((e) => {
2900
- accTitle = sanitizeText2(e).replace(/^\s+/g, "");
2345
+ setAccTitle = __name((u) => {
2346
+ accTitle = sanitizeText2(u).replace(/^\s+/g, "");
2901
2347
  }, "setAccTitle");
2902
2348
  getAccTitle = __name(() => accTitle, "getAccTitle");
2903
- setAccDescription = __name((e) => {
2904
- accDescription = sanitizeText2(e).replace(/\n\s+/g, "\n");
2349
+ setAccDescription = __name((u) => {
2350
+ accDescription = sanitizeText2(u).replace(/\n\s+/g, "\n");
2905
2351
  }, "setAccDescription");
2906
2352
  getAccDescription = __name(() => accDescription, "getAccDescription");
2907
- setDiagramTitle = __name((e) => {
2908
- diagramTitle = sanitizeText2(e);
2353
+ setDiagramTitle = __name((u) => {
2354
+ diagramTitle = sanitizeText2(u);
2909
2355
  }, "setDiagramTitle");
2910
2356
  getDiagramTitle = __name(() => diagramTitle, "getDiagramTitle");
2911
2357
  log2 = log;
@@ -2913,27 +2359,27 @@ let __tla = (async () => {
2913
2359
  getConfig2 = getConfig;
2914
2360
  setConfig2 = setConfig;
2915
2361
  defaultConfig2 = defaultConfig;
2916
- sanitizeText3 = __name((e) => sanitizeText(e, getConfig2()), "sanitizeText");
2362
+ sanitizeText3 = __name((u) => sanitizeText(u, getConfig2()), "sanitizeText");
2917
2363
  setupGraphViewbox2 = setupGraphViewbox;
2918
2364
  getCommonDb = __name(() => commonDb_exports, "getCommonDb");
2919
2365
  diagrams = {};
2920
- registerDiagram = __name((e, t, n) => {
2366
+ registerDiagram = __name((u, z, B) => {
2921
2367
  var _a2;
2922
- diagrams[e] && log2.warn(`Diagram with id ${e} already registered. Overwriting.`), diagrams[e] = t, n && addDetector(e, n), addStylesForDiagram(e, t.styles), (_a2 = t.injectUtils) == null ? void 0 : _a2.call(t, log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {
2368
+ diagrams[u] && log2.warn(`Diagram with id ${u} already registered. Overwriting.`), diagrams[u] = z, B && addDetector(u, B), addStylesForDiagram(u, z.styles), (_a2 = z.injectUtils) == null ? void 0 : _a2.call(z, log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {
2923
2369
  });
2924
2370
  }, "registerDiagram");
2925
- getDiagram = __name((e) => {
2926
- if (e in diagrams) return diagrams[e];
2927
- throw new DiagramNotFoundError(e);
2371
+ getDiagram = __name((u) => {
2372
+ if (u in diagrams) return diagrams[u];
2373
+ throw new DiagramNotFoundError(u);
2928
2374
  }, "getDiagram");
2929
2375
  DiagramNotFoundError = (_g = class extends Error {
2930
- constructor(e) {
2931
- super(`Diagram ${e} not found.`);
2376
+ constructor(u) {
2377
+ super(`Diagram ${u} not found.`);
2932
2378
  }
2933
2379
  }, __name(_g, "DiagramNotFoundError"), _g);
2934
2380
  })();
2935
2381
  export {
2936
- is_dark_default as $,
2382
+ rgba_default as $,
2937
2383
  parseGenericTypes as A,
2938
2384
  setAccTitle as B,
2939
2385
  getDiagramTitle as C,
@@ -2950,23 +2396,23 @@ export {
2950
2396
  renderKatexSanitized as N,
2951
2397
  hasKatex as O,
2952
2398
  reset as P,
2953
- lighten_default as Q,
2399
+ is_dark_default as Q,
2954
2400
  saveConfigFromInitialize as R,
2955
2401
  getDiagramLoader as S,
2956
2402
  getThemeVariables3 as T,
2957
2403
  setDiagramTitle as U,
2958
2404
  setConfig as V,
2959
2405
  setSiteConfig as W,
2960
- purify as X,
2406
+ darken_default as X,
2961
2407
  updateSiteConfig as Y,
2962
- darken_default as Z,
2408
+ lighten_default as Z,
2963
2409
  getAccDescription as _,
2964
2410
  __tla,
2965
2411
  clear as a,
2966
2412
  getConfig2 as b,
2967
2413
  configureSvgSize as c,
2968
2414
  defaultConfig_default as d,
2969
- rgba_default as et,
2415
+ color_default as et,
2970
2416
  detectType as f,
2971
2417
  frontMatterRegex as g,
2972
2418
  evaluate as h,
@@ -2976,14 +2422,13 @@ export {
2976
2422
  defaultConfig as l,
2977
2423
  directiveRegex as m,
2978
2424
  addDirective as n,
2979
- utils_default as nt,
2980
2425
  commonDb_exports as o,
2981
2426
  detectors as p,
2982
2427
  styles_default as q,
2983
2428
  assignWithDepth_default as r,
2984
2429
  common_default as s,
2985
2430
  UnknownDiagramError as t,
2986
- color_default as tt,
2431
+ utils_default as tt,
2987
2432
  defaultConfig2 as u,
2988
2433
  getAccTitle as v,
2989
2434
  getSiteConfig as w,