@dayinxisheng/zreadbrow 1.11.0 → 1.17.3

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 (417) hide show
  1. package/bin/zreadbrow.js +14 -2
  2. package/dist/public/assets/AIPanel-C-YfdAam.js +40 -0
  3. package/dist/public/assets/MermaidBlock-CPVuAdRJ.js +1 -0
  4. package/dist/public/assets/MermaidViewerModal-BRk7-q4K.js +33 -0
  5. package/dist/public/assets/ReferenceModal-B916Di7q.js +52 -0
  6. package/dist/public/assets/SettingsModal-CTBLFFSS.js +23 -0
  7. package/dist/public/assets/_baseUniq-m7cimItk.js +1 -0
  8. package/dist/public/assets/abap-BdImnpbu.js +1 -0
  9. package/dist/public/assets/actionscript-3-CoDkCxhg.js +1 -0
  10. package/dist/public/assets/ada-bCR0ucgS.js +1 -0
  11. package/dist/public/assets/andromeeda-C4gqWexZ.js +1 -0
  12. package/dist/public/assets/angular-html-CU67Zn6k.js +1 -0
  13. package/dist/public/assets/angular-ts-BwZT4LLn.js +1 -0
  14. package/dist/public/assets/apache-Pmp26Uib.js +1 -0
  15. package/dist/public/assets/apex-D8_7TLub.js +1 -0
  16. package/dist/public/assets/apl-dKokRX4l.js +1 -0
  17. package/dist/public/assets/applescript-Co6uUVPk.js +1 -0
  18. package/dist/public/assets/ara-BRHolxvo.js +1 -0
  19. package/dist/public/assets/architectureDiagram-Q4EWVU46-DtqSqMGf.js +36 -0
  20. package/dist/public/assets/asciidoc-Ve4PFQV2.js +1 -0
  21. package/dist/public/assets/asm-D_Q5rh1f.js +1 -0
  22. package/dist/public/assets/astro-CbQHKStN.js +1 -0
  23. package/dist/public/assets/aurora-x-D-2ljcwZ.js +1 -0
  24. package/dist/public/assets/awk-DMzUqQB5.js +1 -0
  25. package/dist/public/assets/ayu-dark-DYE7WIF3.js +1 -0
  26. package/dist/public/assets/ayu-light-BA47KaF1.js +1 -0
  27. package/dist/public/assets/ayu-mirage-32ctXXKs.js +1 -0
  28. package/dist/public/assets/ballerina-BFfxhgS-.js +1 -0
  29. package/dist/public/assets/bat-BkioyH1T.js +1 -0
  30. package/dist/public/assets/beancount-k_qm7-4y.js +1 -0
  31. package/dist/public/assets/berry-uYugtg8r.js +1 -0
  32. package/dist/public/assets/bibtex-CHM0blh-.js +1 -0
  33. package/dist/public/assets/bicep-Bmn6On1c.js +1 -0
  34. package/dist/public/assets/bird2-DPOp833l.js +1 -0
  35. package/dist/public/assets/blade-D4QpJJKB.js +1 -0
  36. package/dist/public/assets/{blockDiagram-DXYQGD6D-3nHn8zf8.js → blockDiagram-DXYQGD6D-CgFuSL-z.js} +5 -5
  37. package/dist/public/assets/bsl-BO_Y6i37.js +1 -0
  38. package/dist/public/assets/c-BIGW1oBm.js +1 -0
  39. package/dist/public/assets/c3-eo99z4R2.js +1 -0
  40. package/dist/public/assets/{c4Diagram-AHTNJAMY-C_avfzvA.js → c4Diagram-AHTNJAMY-CUE7rn2p.js} +1 -1
  41. package/dist/public/assets/cadence-Bv_4Rxtq.js +1 -0
  42. package/dist/public/assets/cairo-KRGpt6FW.js +1 -0
  43. package/dist/public/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  44. package/dist/public/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  45. package/dist/public/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  46. package/dist/public/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  47. package/dist/public/assets/chunk-4BX2VUAB-zMHqNRcr.js +1 -0
  48. package/dist/public/assets/{chunk-4TB4RGXK-CtC9TRDU.js → chunk-4TB4RGXK-BpV3pxqF.js} +1 -1
  49. package/dist/public/assets/chunk-55IACEB6-1YjEpZd0.js +1 -0
  50. package/dist/public/assets/chunk-EDXVE4YY-CeBjdSJX.js +1 -0
  51. package/dist/public/assets/{chunk-FMBD7UC4-5FxcCMNb.js → chunk-FMBD7UC4-oyXy72V1.js} +1 -1
  52. package/dist/public/assets/{chunk-OYMX7WX6-l29TJ9n4.js → chunk-OYMX7WX6-CQB5A9wm.js} +1 -1
  53. package/dist/public/assets/chunk-QZHKN3VN-C6V5KhDH.js +1 -0
  54. package/dist/public/assets/chunk-YZCP3GAM-Cvl0MM85.js +1 -0
  55. package/dist/public/assets/clarity-D53aC0YG.js +1 -0
  56. package/dist/public/assets/classDiagram-6PBFFD2Q-DHxKXnDK.js +1 -0
  57. package/dist/public/assets/classDiagram-v2-HSJHXN6E-DHxKXnDK.js +1 -0
  58. package/dist/public/assets/clojure-P80f7IUj.js +1 -0
  59. package/dist/public/assets/clone-B_44hGXQ.js +1 -0
  60. package/dist/public/assets/cmake-D1j8_8rp.js +1 -0
  61. package/dist/public/assets/cobol-nwyudZeR.js +1 -0
  62. package/dist/public/assets/codeowners-Bp6g37R7.js +1 -0
  63. package/dist/public/assets/codeql-DsOJ9woJ.js +1 -0
  64. package/dist/public/assets/coffee-Ch7k5sss.js +1 -0
  65. package/dist/public/assets/common-lisp-Cg-RD9OK.js +1 -0
  66. package/dist/public/assets/coq-DkFqJrB1.js +1 -0
  67. package/dist/public/assets/cose-bilkent-S5V4N54A-tP2GUtP-.js +1 -0
  68. package/dist/public/assets/cpp-CofmeUqb.js +1 -0
  69. package/dist/public/assets/crystal-tKQVLTB8.js +1 -0
  70. package/dist/public/assets/csharp-COcwbKMJ.js +1 -0
  71. package/dist/public/assets/css-DPfMkruS.js +1 -0
  72. package/dist/public/assets/csv-fuZLfV_i.js +1 -0
  73. package/dist/public/assets/cue-D82EKSYY.js +1 -0
  74. package/dist/public/assets/cypher-COkxafJQ.js +1 -0
  75. package/dist/public/assets/d-85-TOEBH.js +1 -0
  76. package/dist/public/assets/dagre-KV5264BT-Evq-yC-H.js +4 -0
  77. package/dist/public/assets/dark-plus-C3mMm8J8.js +1 -0
  78. package/dist/public/assets/dart-CF10PKvl.js +1 -0
  79. package/dist/public/assets/dax-CEL-wOlO.js +1 -0
  80. package/dist/public/assets/desktop-BmXAJ9_W.js +1 -0
  81. package/dist/public/assets/diagram-5BDNPKRD-C9IEP2hE.js +10 -0
  82. package/dist/public/assets/diagram-G4DWMVQ6-BCLMvrx-.js +24 -0
  83. package/dist/public/assets/diagram-MMDJMWI5-DxJ3dga5.js +43 -0
  84. package/dist/public/assets/diagram-TYMM5635-BOJIcEla.js +24 -0
  85. package/dist/public/assets/diff-D97Zzqfu.js +1 -0
  86. package/dist/public/assets/docker-BcOcwvcX.js +1 -0
  87. package/dist/public/assets/dotenv-Da5cRb03.js +1 -0
  88. package/dist/public/assets/dracula-BzJJZx-M.js +1 -0
  89. package/dist/public/assets/dracula-soft-BXkSAIEj.js +1 -0
  90. package/dist/public/assets/dream-maker-BtqSS_iP.js +1 -0
  91. package/dist/public/assets/edge-BkV0erSs.js +1 -0
  92. package/dist/public/assets/elixir-CDX3lj18.js +1 -0
  93. package/dist/public/assets/elm-DbKCFpqz.js +1 -0
  94. package/dist/public/assets/emacs-lisp-C9XAeP06.js +1 -0
  95. package/dist/public/assets/{erDiagram-SMLLAGMA-BDyPv2cw.js → erDiagram-SMLLAGMA-aXA9Q1fI.js} +4 -4
  96. package/dist/public/assets/erb-B12qg9BL.js +1 -0
  97. package/dist/public/assets/erlang-DsQrWhSR.js +1 -0
  98. package/dist/public/assets/everforest-dark-BgDCqdQA.js +1 -0
  99. package/dist/public/assets/everforest-light-C8M2exoo.js +1 -0
  100. package/dist/public/assets/fennel-BYunw83y.js +1 -0
  101. package/dist/public/assets/fish-BvzEVeQv.js +1 -0
  102. package/dist/public/assets/{flowDiagram-DWJPFMVM-Br4kn9xF.js → flowDiagram-DWJPFMVM-BjEk7JcK.js} +4 -4
  103. package/dist/public/assets/fluent-C4IJs8-o.js +1 -0
  104. package/dist/public/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  105. package/dist/public/assets/fortran-free-form-BxgE0vQu.js +1 -0
  106. package/dist/public/assets/fsharp-CXgrBDvD.js +1 -0
  107. package/dist/public/assets/ganttDiagram-T4ZO3ILL-D3u7X5y3.js +292 -0
  108. package/dist/public/assets/gdresource-BOOCDP_w.js +1 -0
  109. package/dist/public/assets/gdscript-C5YyOfLZ.js +1 -0
  110. package/dist/public/assets/gdshader-DkwncUOv.js +1 -0
  111. package/dist/public/assets/genie-D0YGMca9.js +1 -0
  112. package/dist/public/assets/gherkin-DyxjwDmM.js +1 -0
  113. package/dist/public/assets/git-commit-F4YmCXRG.js +1 -0
  114. package/dist/public/assets/git-rebase-r7XF79zn.js +1 -0
  115. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-oEcGoRSk.js +106 -0
  116. package/dist/public/assets/github-dark-DHJKELXO.js +1 -0
  117. package/dist/public/assets/github-dark-default-Cuk6v7N8.js +1 -0
  118. package/dist/public/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  119. package/dist/public/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  120. package/dist/public/assets/github-light-DAi9KRSo.js +1 -0
  121. package/dist/public/assets/github-light-default-D7oLnXFd.js +1 -0
  122. package/dist/public/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  123. package/dist/public/assets/gleam-BspZqrRM.js +1 -0
  124. package/dist/public/assets/glimmer-js-Rg0-pVw9.js +1 -0
  125. package/dist/public/assets/glimmer-ts-U6CK756n.js +1 -0
  126. package/dist/public/assets/glsl-DplSGwfg.js +1 -0
  127. package/dist/public/assets/gn-n2N0HUVH.js +1 -0
  128. package/dist/public/assets/gnuplot-DdkO51Og.js +1 -0
  129. package/dist/public/assets/go-CxLEBnE3.js +1 -0
  130. package/dist/public/assets/graph-lVZ_cjbT.js +1 -0
  131. package/dist/public/assets/graphql-ChdNCCLP.js +1 -0
  132. package/dist/public/assets/groovy-gcz8RCvz.js +1 -0
  133. package/dist/public/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  134. package/dist/public/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  135. package/dist/public/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  136. package/dist/public/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  137. package/dist/public/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  138. package/dist/public/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  139. package/dist/public/assets/hack-CaT9iCJl.js +1 -0
  140. package/dist/public/assets/haml-B8DHNrY2.js +1 -0
  141. package/dist/public/assets/handlebars-BL8al0AC.js +1 -0
  142. package/dist/public/assets/haskell-Df6bDoY_.js +1 -0
  143. package/dist/public/assets/haxe-CzTSHFRz.js +1 -0
  144. package/dist/public/assets/hcl-BWvSN4gD.js +1 -0
  145. package/dist/public/assets/highlighted-body-OFNGDK62-DkdBx1s2.js +1 -0
  146. package/dist/public/assets/hjson-D5-asLiD.js +1 -0
  147. package/dist/public/assets/hlsl-D3lLCCz7.js +1 -0
  148. package/dist/public/assets/horizon-BUw7H-hv.js +1 -0
  149. package/dist/public/assets/horizon-bright-Cn-bp-IR.js +1 -0
  150. package/dist/public/assets/houston-DnULxvSX.js +1 -0
  151. package/dist/public/assets/html-GMplVEZG.js +1 -0
  152. package/dist/public/assets/html-derivative-BFtXZ54Q.js +1 -0
  153. package/dist/public/assets/http-jrhK8wxY.js +1 -0
  154. package/dist/public/assets/hurl-irOxFIW8.js +1 -0
  155. package/dist/public/assets/hxml-Bvhsp5Yf.js +1 -0
  156. package/dist/public/assets/hy-DFXneXwc.js +1 -0
  157. package/dist/public/assets/imba-DGztddWO.js +1 -0
  158. package/dist/public/assets/index-BmQ-wOlB.js +482 -0
  159. package/dist/public/assets/index-F37uDERb.css +1 -0
  160. package/dist/public/assets/infoDiagram-42DDH7IO-C28F97oa.js +2 -0
  161. package/dist/public/assets/ini-BEwlwnbL.js +1 -0
  162. package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-DfjfB3Z9.js → ishikawaDiagram-UXIWVN3A-D59D4ZGk.js} +5 -5
  163. package/dist/public/assets/java-CylS5w8V.js +1 -0
  164. package/dist/public/assets/javascript-wDzz0qaB.js +1 -0
  165. package/dist/public/assets/jinja-4LBKfQ-Z.js +1 -0
  166. package/dist/public/assets/jison-wvAkD_A8.js +1 -0
  167. package/dist/public/assets/{journeyDiagram-VCZTEJTY-Cv4XDTnO.js → journeyDiagram-VCZTEJTY-DshaLFkN.js} +6 -6
  168. package/dist/public/assets/json-Cp-IABpG.js +1 -0
  169. package/dist/public/assets/json5-C9tS-k6U.js +1 -0
  170. package/dist/public/assets/jsonc-Des-eS-w.js +1 -0
  171. package/dist/public/assets/jsonl-DcaNXYhu.js +1 -0
  172. package/dist/public/assets/jsonnet-DFQXde-d.js +1 -0
  173. package/dist/public/assets/jssm-C2t-YnRu.js +1 -0
  174. package/dist/public/assets/jsx-g9-lgVsj.js +1 -0
  175. package/dist/public/assets/julia-CxzCAyBv.js +1 -0
  176. package/dist/public/assets/just-Cw27pwNe.js +1 -0
  177. package/dist/public/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  178. package/dist/public/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  179. package/dist/public/assets/kanagawa-wave-DWedfzmr.js +1 -0
  180. package/dist/public/assets/{kanban-definition-6JOO6SKY-DVuIyZC8.js → kanban-definition-6JOO6SKY-C2g7cjfd.js} +7 -7
  181. package/dist/public/assets/kdl-DV7GczEv.js +1 -0
  182. package/dist/public/assets/kotlin-BdnUsdx6.js +1 -0
  183. package/dist/public/assets/kusto-DZf3V79B.js +1 -0
  184. package/dist/public/assets/laserwave-DUszq2jm.js +1 -0
  185. package/dist/public/assets/latex-CWtU0Tv5.js +1 -0
  186. package/dist/public/assets/layout-CnqOUuXe.js +1 -0
  187. package/dist/public/assets/lean-BZvkOJ9d.js +1 -0
  188. package/dist/public/assets/less-B1dDrJ26.js +1 -0
  189. package/dist/public/assets/light-plus-B7mTdjB0.js +1 -0
  190. package/dist/public/assets/liquid-DYVedYrR.js +1 -0
  191. package/dist/public/assets/llvm-DjAJT7YJ.js +1 -0
  192. package/dist/public/assets/log-2UxHyX5q.js +1 -0
  193. package/dist/public/assets/logo-BtOb2qkB.js +1 -0
  194. package/dist/public/assets/lua-BaeVxFsk.js +1 -0
  195. package/dist/public/assets/luau-C-HG3fhB.js +1 -0
  196. package/dist/public/assets/make-CHLpvVh8.js +1 -0
  197. package/dist/public/assets/markdown-Cvjx9yec.js +1 -0
  198. package/dist/public/assets/marko-CnJfTvn9.js +1 -0
  199. package/dist/public/assets/material-theme-D5KoaKCx.js +1 -0
  200. package/dist/public/assets/material-theme-darker-BfHTSMKl.js +1 -0
  201. package/dist/public/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  202. package/dist/public/assets/material-theme-ocean-CyktbL80.js +1 -0
  203. package/dist/public/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  204. package/dist/public/assets/matlab-D7o27uSR.js +1 -0
  205. package/dist/public/assets/mdc-BMNejdWA.js +1 -0
  206. package/dist/public/assets/mdx-Cmh6b_Ma.js +1 -0
  207. package/dist/public/assets/mermaid-CF-QbALk.js +309 -0
  208. package/dist/public/assets/mermaid-mWjccvbQ.js +1 -0
  209. package/dist/public/assets/min-DIoUV2Ll.js +1 -0
  210. package/dist/public/assets/min-dark-CafNBF8u.js +1 -0
  211. package/dist/public/assets/min-light-CTRr51gU.js +1 -0
  212. package/dist/public/assets/{mindmap-definition-QFDTVHPH-CKXc6pGW.js → mindmap-definition-QFDTVHPH-Cuart2gs.js} +3 -3
  213. package/dist/public/assets/mipsasm-CKIfxQSi.js +1 -0
  214. package/dist/public/assets/mojo-rZm6bMo-.js +1 -0
  215. package/dist/public/assets/monokai-D4h5O-jR.js +1 -0
  216. package/dist/public/assets/moonbit-_H4v1dQx.js +1 -0
  217. package/dist/public/assets/move-IF9eRakj.js +1 -0
  218. package/dist/public/assets/narrat-DRg8JJMk.js +1 -0
  219. package/dist/public/assets/nextflow-Zz6hmt5N.js +1 -0
  220. package/dist/public/assets/nextflow-groovy-BeH2EWoN.js +1 -0
  221. package/dist/public/assets/nginx-BpAMiNFr.js +1 -0
  222. package/dist/public/assets/night-owl-C39BiMTA.js +1 -0
  223. package/dist/public/assets/night-owl-light-CMTm3GFP.js +1 -0
  224. package/dist/public/assets/nim-CVrawwO9.js +1 -0
  225. package/dist/public/assets/nix-CwoSXNpI.js +1 -0
  226. package/dist/public/assets/nord-Ddv68eIx.js +1 -0
  227. package/dist/public/assets/nushell-Cz2AlsmD.js +1 -0
  228. package/dist/public/assets/objective-c-DXmwc3jG.js +1 -0
  229. package/dist/public/assets/objective-cpp-CLxacb5B.js +1 -0
  230. package/dist/public/assets/ocaml-C0hk2d4L.js +1 -0
  231. package/dist/public/assets/odin-BBf5iR-q.js +1 -0
  232. package/dist/public/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  233. package/dist/public/assets/one-light-C3Wv6jpd.js +1 -0
  234. package/dist/public/assets/openscad-C4EeE6gA.js +1 -0
  235. package/dist/public/assets/pascal-D93ZcfNL.js +1 -0
  236. package/dist/public/assets/perl-C0TMdlhV.js +1 -0
  237. package/dist/public/assets/php-Dhbhpdrm.js +1 -0
  238. package/dist/public/assets/pieDiagram-DEJITSTG-DDYdBumO.js +30 -0
  239. package/dist/public/assets/pkl-u5AG7uiY.js +1 -0
  240. package/dist/public/assets/plastic-3e1v2bzS.js +1 -0
  241. package/dist/public/assets/plsql-ChMvpjG-.js +1 -0
  242. package/dist/public/assets/po-BTJTHyun.js +1 -0
  243. package/dist/public/assets/poimandres-CS3Unz2-.js +1 -0
  244. package/dist/public/assets/polar-C0HS_06l.js +1 -0
  245. package/dist/public/assets/postcss-CXtECtnM.js +1 -0
  246. package/dist/public/assets/powerquery-CEu0bR-o.js +1 -0
  247. package/dist/public/assets/powershell-Dpen1YoG.js +1 -0
  248. package/dist/public/assets/prisma-Dd19v3D-.js +1 -0
  249. package/dist/public/assets/prolog-CbFg5uaA.js +1 -0
  250. package/dist/public/assets/proto-C7zT0LnQ.js +1 -0
  251. package/dist/public/assets/pug-CGlum2m_.js +1 -0
  252. package/dist/public/assets/puppet-BMWR74SV.js +1 -0
  253. package/dist/public/assets/purescript-CklMAg4u.js +1 -0
  254. package/dist/public/assets/python-B6aJPvgy.js +1 -0
  255. package/dist/public/assets/qml-3beO22l8.js +1 -0
  256. package/dist/public/assets/qmldir-C8lEn-DE.js +1 -0
  257. package/dist/public/assets/qss-IeuSbFQv.js +1 -0
  258. package/dist/public/assets/{quadrantDiagram-34T5L4WZ-DybJJDPI.js → quadrantDiagram-34T5L4WZ-1M4jQ4aT.js} +2 -2
  259. package/dist/public/assets/r-Dspwwk_N.js +1 -0
  260. package/dist/public/assets/racket-BqYA7rlc.js +1 -0
  261. package/dist/public/assets/raku-DXvB9xmW.js +1 -0
  262. package/dist/public/assets/razor-Uh8Bk_45.js +1 -0
  263. package/dist/public/assets/red-bN70gL4F.js +1 -0
  264. package/dist/public/assets/reg-C-SQnVFl.js +1 -0
  265. package/dist/public/assets/regexp-CDVJQ6XC.js +1 -0
  266. package/dist/public/assets/rel-C3B-1QV4.js +1 -0
  267. package/dist/public/assets/{requirementDiagram-MS252O5E-Bf2NfnQO.js → requirementDiagram-MS252O5E-cbWppHFa.js} +3 -3
  268. package/dist/public/assets/riscv-BM1_JUlF.js +1 -0
  269. package/dist/public/assets/ron-D8l8udqQ.js +1 -0
  270. package/dist/public/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  271. package/dist/public/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  272. package/dist/public/assets/rose-pine-qdsjHGoJ.js +1 -0
  273. package/dist/public/assets/rosmsg-BJDFO7_C.js +1 -0
  274. package/dist/public/assets/rst-BrH8l1NY.js +1 -0
  275. package/dist/public/assets/ruby-Dw2BHqvy.js +1 -0
  276. package/dist/public/assets/rust-B1yitclQ.js +1 -0
  277. package/dist/public/assets/sankeyDiagram-XADWPNL6-4D4rvcjw.js +10 -0
  278. package/dist/public/assets/sas-cz2c8ADy.js +1 -0
  279. package/dist/public/assets/sass-Cj5Yp3dK.js +1 -0
  280. package/dist/public/assets/scala-C151Ov-r.js +1 -0
  281. package/dist/public/assets/scheme-C98Dy4si.js +1 -0
  282. package/dist/public/assets/scss-OYdSNvt2.js +1 -0
  283. package/dist/public/assets/sdbl-DVxCFoDh.js +1 -0
  284. package/dist/public/assets/{sequenceDiagram-FGHM5R23-BKsfKx1K.js → sequenceDiagram-FGHM5R23-ComC2-Sc.js} +1 -1
  285. package/dist/public/assets/shaderlab-Dg9Lc6iA.js +1 -0
  286. package/dist/public/assets/shellscript-Yzrsuije.js +1 -0
  287. package/dist/public/assets/shellsession-BADoaaVG.js +1 -0
  288. package/dist/public/assets/slack-dark-BthQWCQV.js +1 -0
  289. package/dist/public/assets/slack-ochin-DqwNpetd.js +1 -0
  290. package/dist/public/assets/smalltalk-BERRCDM3.js +1 -0
  291. package/dist/public/assets/snazzy-light-Bw305WKR.js +1 -0
  292. package/dist/public/assets/solarized-dark-DXbdFlpD.js +1 -0
  293. package/dist/public/assets/solarized-light-L9t79GZl.js +1 -0
  294. package/dist/public/assets/solidity-rGO070M0.js +1 -0
  295. package/dist/public/assets/soy-Brmx7dQM.js +1 -0
  296. package/dist/public/assets/sparql-rVzFXLq3.js +1 -0
  297. package/dist/public/assets/splunk-BtCnVYZw.js +1 -0
  298. package/dist/public/assets/sql-BLtJtn59.js +1 -0
  299. package/dist/public/assets/ssh-config-_ykCGR6B.js +1 -0
  300. package/dist/public/assets/stata-BH5u7GGu.js +1 -0
  301. package/dist/public/assets/stateDiagram-FHFEXIEX-8nR4RqyL.js +1 -0
  302. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-sni4Ws2p.js +1 -0
  303. package/dist/public/assets/stylus-BEDo0Tqx.js +1 -0
  304. package/dist/public/assets/surrealql-Bq5Q-fJD.js +1 -0
  305. package/dist/public/assets/svelte-C_ipcX3V.js +1 -0
  306. package/dist/public/assets/swift-D82vCrfD.js +1 -0
  307. package/dist/public/assets/synthwave-84-CbfX1IO0.js +1 -0
  308. package/dist/public/assets/system-verilog-CnnmHF94.js +1 -0
  309. package/dist/public/assets/systemd-4A_iFExJ.js +1 -0
  310. package/dist/public/assets/talonscript-CkByrt1z.js +1 -0
  311. package/dist/public/assets/tasl-QIJgUcNo.js +1 -0
  312. package/dist/public/assets/tcl-dwOrl1Do.js +1 -0
  313. package/dist/public/assets/templ-P3uqSqPl.js +1 -0
  314. package/dist/public/assets/terraform-BETggiCN.js +1 -0
  315. package/dist/public/assets/tex-idrVyKtj.js +1 -0
  316. package/dist/public/assets/{timeline-definition-GMOUNBTQ-DvnJe1xm.js → timeline-definition-GMOUNBTQ-CWEAkGhb.js} +4 -4
  317. package/dist/public/assets/tokyo-night-hegEt444.js +1 -0
  318. package/dist/public/assets/toml-vGWfd6FD.js +1 -0
  319. package/dist/public/assets/ts-tags-zn1MmPIZ.js +1 -0
  320. package/dist/public/assets/tsv-B_m7g4N7.js +1 -0
  321. package/dist/public/assets/tsx-COt5Ahok.js +1 -0
  322. package/dist/public/assets/turtle-BsS91CYL.js +1 -0
  323. package/dist/public/assets/twig-DNn4PbVi.js +1 -0
  324. package/dist/public/assets/typescript-BPQ3VLAy.js +1 -0
  325. package/dist/public/assets/typespec-BGHnOYBU.js +1 -0
  326. package/dist/public/assets/typst-DHCkPAjA.js +1 -0
  327. package/dist/public/assets/v-BcVCzyr7.js +1 -0
  328. package/dist/public/assets/vala-CsfeWuGM.js +1 -0
  329. package/dist/public/assets/vb-D17OF-Vu.js +1 -0
  330. package/dist/public/assets/vennDiagram-DHZGUBPP-BCUB4Y59.js +34 -0
  331. package/dist/public/assets/verilog-BQ8w6xss.js +1 -0
  332. package/dist/public/assets/vesper-DU1UobuO.js +1 -0
  333. package/dist/public/assets/vhdl-CeAyd5Ju.js +1 -0
  334. package/dist/public/assets/viml-CJc9bBzg.js +1 -0
  335. package/dist/public/assets/vitesse-black-Bkuqu6BP.js +1 -0
  336. package/dist/public/assets/vitesse-dark-D0r3Knsf.js +1 -0
  337. package/dist/public/assets/vitesse-light-CVO1_9PV.js +1 -0
  338. package/dist/public/assets/vue-DN_0RTcg.js +1 -0
  339. package/dist/public/assets/vue-html-AaS7Mt5G.js +1 -0
  340. package/dist/public/assets/vue-vine-CQOfvN7w.js +1 -0
  341. package/dist/public/assets/vyper-CDx5xZoG.js +1 -0
  342. package/dist/public/assets/{wardley-RL74JXVD-D2KKM-ae.js → wardley-RL74JXVD-fcUo-Wrg.js} +1 -1
  343. package/dist/public/assets/{wardleyDiagram-NUSXRM2D-CgU6PntZ.js → wardleyDiagram-NUSXRM2D-q0nyo3Bx.js} +2 -2
  344. package/dist/public/assets/wasm-CG6Dc4jp.js +1 -0
  345. package/dist/public/assets/wasm-MzD3tlZU.js +1 -0
  346. package/dist/public/assets/wenyan-BV7otONQ.js +1 -0
  347. package/dist/public/assets/wgsl-Dx-B1_4e.js +1 -0
  348. package/dist/public/assets/wikitext-BhOHFoWU.js +1 -0
  349. package/dist/public/assets/wit-5i3qLPDT.js +1 -0
  350. package/dist/public/assets/wolfram-lXgVvXCa.js +1 -0
  351. package/dist/public/assets/xml-sdJ4AIDG.js +1 -0
  352. package/dist/public/assets/xsl-CtQFsRM5.js +1 -0
  353. package/dist/public/assets/xychartDiagram-5P7HB3ND-tZNDsxpi.js +7 -0
  354. package/dist/public/assets/yaml-Buea-lGh.js +1 -0
  355. package/dist/public/assets/zenscript-DVFEvuxE.js +1 -0
  356. package/dist/public/assets/zig-VOosw3JB.js +1 -0
  357. package/dist/public/index.html +3 -2
  358. package/dist/server/index.js +1 -1
  359. package/dist/server/middleware/errorHandler.js +1 -1
  360. package/dist/server/middleware/requestId.js +1 -0
  361. package/dist/server/routes/ai.js +1 -1
  362. package/dist/server/routes/config.js +1 -1
  363. package/dist/server/routes/files.js +1 -1
  364. package/dist/server/routes/projects.js +1 -1
  365. package/dist/server/routes/scan.js +1 -1
  366. package/dist/server/routes/search.js +1 -1
  367. package/dist/server/routes/wiki.js +1 -1
  368. package/dist/server/services/ai.js +1 -1
  369. package/dist/server/services/cache.js +1 -0
  370. package/dist/server/services/config.js +1 -1
  371. package/dist/server/services/jieba.js +1 -0
  372. package/dist/server/services/logger.js +1 -1
  373. package/dist/server/services/scanner.js +1 -1
  374. package/dist/server/services/search-db.js +1 -0
  375. package/dist/server/services/search-index.js +1 -0
  376. package/dist/server/services/search-query.js +1 -0
  377. package/dist/server/services/tokenizer.js +1 -0
  378. package/dist/server/services/wiki-loader.js +1 -1
  379. package/dist/server/services/wire-reader.js +1 -1
  380. package/package.json +7 -2
  381. package/dist/public/assets/_baseUniq-CIRdfd93.js +0 -1
  382. package/dist/public/assets/arc-B4HYSrvA.js +0 -1
  383. package/dist/public/assets/architectureDiagram-Q4EWVU46-0_RoxIgJ.js +0 -36
  384. package/dist/public/assets/channel-C_s5gQOv.js +0 -1
  385. package/dist/public/assets/chunk-4BX2VUAB-BMX7hm6-.js +0 -1
  386. package/dist/public/assets/chunk-55IACEB6-4D0opfow.js +0 -1
  387. package/dist/public/assets/chunk-EDXVE4YY-BTYCYeSV.js +0 -1
  388. package/dist/public/assets/chunk-QZHKN3VN-g-pg8y3p.js +0 -1
  389. package/dist/public/assets/chunk-YZCP3GAM-BxtZpO--.js +0 -1
  390. package/dist/public/assets/classDiagram-6PBFFD2Q-CCnUlGd6.js +0 -1
  391. package/dist/public/assets/classDiagram-v2-HSJHXN6E-CCnUlGd6.js +0 -1
  392. package/dist/public/assets/clone-BS2Igb5a.js +0 -1
  393. package/dist/public/assets/cose-bilkent-S5V4N54A-5D-AKbEI.js +0 -1
  394. package/dist/public/assets/dagre-KV5264BT-Bl_Le1O-.js +0 -4
  395. package/dist/public/assets/defaultLocale-DX6XiGOO.js +0 -1
  396. package/dist/public/assets/diagram-5BDNPKRD-CzudIMvW.js +0 -10
  397. package/dist/public/assets/diagram-G4DWMVQ6-DNJC7zTX.js +0 -24
  398. package/dist/public/assets/diagram-MMDJMWI5-ClyZac9f.js +0 -43
  399. package/dist/public/assets/diagram-TYMM5635-C2VtQrAC.js +0 -24
  400. package/dist/public/assets/ganttDiagram-T4ZO3ILL-CCZKa7FC.js +0 -292
  401. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-CN-Jq39o.js +0 -106
  402. package/dist/public/assets/graph-D5eDsOmP.js +0 -1
  403. package/dist/public/assets/index-BWRrOkja.js +0 -642
  404. package/dist/public/assets/index-BjF0IeXr.css +0 -1
  405. package/dist/public/assets/infoDiagram-42DDH7IO-Be00z2FM.js +0 -2
  406. package/dist/public/assets/init-Gi6I4Gst.js +0 -1
  407. package/dist/public/assets/layout-De98Fcvm.js +0 -1
  408. package/dist/public/assets/linear-DfyVEr5l.js +0 -1
  409. package/dist/public/assets/min-DAsKehOd.js +0 -1
  410. package/dist/public/assets/ordinal-Cboi1Yqb.js +0 -1
  411. package/dist/public/assets/pieDiagram-DEJITSTG-CEFpX8n7.js +0 -30
  412. package/dist/public/assets/sankeyDiagram-XADWPNL6-dcULupfk.js +0 -10
  413. package/dist/public/assets/stateDiagram-FHFEXIEX-CC3CoOpe.js +0 -1
  414. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-zQUzTqNB.js +0 -1
  415. package/dist/public/assets/vennDiagram-DHZGUBPP-CzmFX1Iv.js +0 -34
  416. package/dist/public/assets/xychartDiagram-5P7HB3ND-CU6AHPc5.js +0 -7
  417. package/dist/server/services/search.js +0 -1
@@ -1,642 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-Bl_Le1O-.js","assets/graph-D5eDsOmP.js","assets/_baseUniq-CIRdfd93.js","assets/layout-De98Fcvm.js","assets/min-DAsKehOd.js","assets/clone-BS2Igb5a.js","assets/cose-bilkent-S5V4N54A-5D-AKbEI.js","assets/cytoscape.esm-DxGcaOPV.js","assets/c4Diagram-AHTNJAMY-C_avfzvA.js","assets/chunk-YZCP3GAM-BxtZpO--.js","assets/flowDiagram-DWJPFMVM-Br4kn9xF.js","assets/chunk-FMBD7UC4-5FxcCMNb.js","assets/chunk-55IACEB6-4D0opfow.js","assets/chunk-EDXVE4YY-BTYCYeSV.js","assets/channel-C_s5gQOv.js","assets/erDiagram-SMLLAGMA-BDyPv2cw.js","assets/gitGraphDiagram-UUTBAWPF-CN-Jq39o.js","assets/chunk-4BX2VUAB-BMX7hm6-.js","assets/chunk-QZHKN3VN-g-pg8y3p.js","assets/wardley-RL74JXVD-D2KKM-ae.js","assets/ganttDiagram-T4ZO3ILL-CCZKa7FC.js","assets/linear-DfyVEr5l.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-Be00z2FM.js","assets/pieDiagram-DEJITSTG-CEFpX8n7.js","assets/arc-B4HYSrvA.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-DybJJDPI.js","assets/xychartDiagram-5P7HB3ND-CU6AHPc5.js","assets/requirementDiagram-MS252O5E-Bf2NfnQO.js","assets/sequenceDiagram-FGHM5R23-BKsfKx1K.js","assets/classDiagram-6PBFFD2Q-CCnUlGd6.js","assets/chunk-4TB4RGXK-CtC9TRDU.js","assets/classDiagram-v2-HSJHXN6E-CCnUlGd6.js","assets/stateDiagram-FHFEXIEX-CC3CoOpe.js","assets/chunk-OYMX7WX6-l29TJ9n4.js","assets/stateDiagram-v2-QKLJ7IA2-zQUzTqNB.js","assets/journeyDiagram-VCZTEJTY-Cv4XDTnO.js","assets/timeline-definition-GMOUNBTQ-DvnJe1xm.js","assets/mindmap-definition-QFDTVHPH-CKXc6pGW.js","assets/kanban-definition-6JOO6SKY-DVuIyZC8.js","assets/sankeyDiagram-XADWPNL6-dcULupfk.js","assets/diagram-TYMM5635-C2VtQrAC.js","assets/diagram-MMDJMWI5-ClyZac9f.js","assets/blockDiagram-DXYQGD6D-3nHn8zf8.js","assets/diagram-5BDNPKRD-CzudIMvW.js","assets/architectureDiagram-Q4EWVU46-0_RoxIgJ.js","assets/diagram-G4DWMVQ6-DNJC7zTX.js","assets/wardleyDiagram-NUSXRM2D-CgU6PntZ.js"])))=>i.map(i=>d[i]);
2
- var C5=Object.defineProperty;var k5=(t,e,r)=>e in t?C5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ge=(t,e,r)=>k5(t,typeof e!="symbol"?e+"":e,r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var yh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function QZ(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var fp={exports:{}},ul={},pp={exports:{}},te={};/**
3
- * @license React
4
- * react.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var mC;function b5(){if(mC)return te;mC=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function m(j){return j===null||typeof j!="object"?null:(j=f&&j[f]||j["@@iterator"],typeof j=="function"?j:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function k(j,tt,N){this.props=j,this.context=tt,this.refs=C,this.updater=N||p}k.prototype.isReactComponent={},k.prototype.setState=function(j,tt){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,tt,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function b(){}b.prototype=k.prototype;function w(j,tt,N){this.props=j,this.context=tt,this.refs=C,this.updater=N||p}var S=w.prototype=new b;S.constructor=w,x(S,k.prototype),S.isPureReactComponent=!0;var A=Array.isArray,F=Object.prototype.hasOwnProperty,E={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function P(j,tt,N){var ct,lt={},mt=null,St=null;if(tt!=null)for(ct in tt.ref!==void 0&&(St=tt.ref),tt.key!==void 0&&(mt=""+tt.key),tt)F.call(tt,ct)&&!B.hasOwnProperty(ct)&&(lt[ct]=tt[ct]);var Tt=arguments.length-2;if(Tt===1)lt.children=N;else if(1<Tt){for(var Dt=Array(Tt),xt=0;xt<Tt;xt++)Dt[xt]=arguments[xt+2];lt.children=Dt}if(j&&j.defaultProps)for(ct in Tt=j.defaultProps,Tt)lt[ct]===void 0&&(lt[ct]=Tt[ct]);return{$$typeof:t,type:j,key:mt,ref:St,props:lt,_owner:E.current}}function q(j,tt){return{$$typeof:t,type:j.type,key:tt,ref:j.ref,props:j.props,_owner:j._owner}}function R(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function $(j){var tt={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(N){return tt[N]})}var H=/\/+/g;function Q(j,tt){return typeof j=="object"&&j!==null&&j.key!=null?$(""+j.key):tt.toString(36)}function V(j,tt,N,ct,lt){var mt=typeof j;(mt==="undefined"||mt==="boolean")&&(j=null);var St=!1;if(j===null)St=!0;else switch(mt){case"string":case"number":St=!0;break;case"object":switch(j.$$typeof){case t:case e:St=!0}}if(St)return St=j,lt=lt(St),j=ct===""?"."+Q(St,0):ct,A(lt)?(N="",j!=null&&(N=j.replace(H,"$&/")+"/"),V(lt,tt,N,"",function(xt){return xt})):lt!=null&&(R(lt)&&(lt=q(lt,N+(!lt.key||St&&St.key===lt.key?"":(""+lt.key).replace(H,"$&/")+"/")+j)),tt.push(lt)),1;if(St=0,ct=ct===""?".":ct+":",A(j))for(var Tt=0;Tt<j.length;Tt++){mt=j[Tt];var Dt=ct+Q(mt,Tt);St+=V(mt,tt,N,Dt,lt)}else if(Dt=m(j),typeof Dt=="function")for(j=Dt.call(j),Tt=0;!(mt=j.next()).done;)mt=mt.value,Dt=ct+Q(mt,Tt++),St+=V(mt,tt,N,Dt,lt);else if(mt==="object")throw tt=String(j),Error("Objects are not valid as a React child (found: "+(tt==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":tt)+"). If you meant to render a collection of children, use an array instead.");return St}function W(j,tt,N){if(j==null)return j;var ct=[],lt=0;return V(j,ct,"","",function(mt){return tt.call(N,mt,lt++)}),ct}function U(j){if(j._status===-1){var tt=j._result;tt=tt(),tt.then(function(N){(j._status===0||j._status===-1)&&(j._status=1,j._result=N)},function(N){(j._status===0||j._status===-1)&&(j._status=2,j._result=N)}),j._status===-1&&(j._status=0,j._result=tt)}if(j._status===1)return j._result.default;throw j._result}var X={current:null},D={transition:null},J={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:D,ReactCurrentOwner:E};function O(){throw Error("act(...) is not supported in production builds of React.")}return te.Children={map:W,forEach:function(j,tt,N){W(j,function(){tt.apply(this,arguments)},N)},count:function(j){var tt=0;return W(j,function(){tt++}),tt},toArray:function(j){return W(j,function(tt){return tt})||[]},only:function(j){if(!R(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},te.Component=k,te.Fragment=r,te.Profiler=i,te.PureComponent=w,te.StrictMode=n,te.Suspense=u,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,te.act=O,te.cloneElement=function(j,tt,N){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ct=x({},j.props),lt=j.key,mt=j.ref,St=j._owner;if(tt!=null){if(tt.ref!==void 0&&(mt=tt.ref,St=E.current),tt.key!==void 0&&(lt=""+tt.key),j.type&&j.type.defaultProps)var Tt=j.type.defaultProps;for(Dt in tt)F.call(tt,Dt)&&!B.hasOwnProperty(Dt)&&(ct[Dt]=tt[Dt]===void 0&&Tt!==void 0?Tt[Dt]:tt[Dt])}var Dt=arguments.length-2;if(Dt===1)ct.children=N;else if(1<Dt){Tt=Array(Dt);for(var xt=0;xt<Dt;xt++)Tt[xt]=arguments[xt+2];ct.children=Tt}return{$$typeof:t,type:j.type,key:lt,ref:mt,props:ct,_owner:St}},te.createContext=function(j){return j={$$typeof:s,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:o,_context:j},j.Consumer=j},te.createElement=P,te.createFactory=function(j){var tt=P.bind(null,j);return tt.type=j,tt},te.createRef=function(){return{current:null}},te.forwardRef=function(j){return{$$typeof:l,render:j}},te.isValidElement=R,te.lazy=function(j){return{$$typeof:d,_payload:{_status:-1,_result:j},_init:U}},te.memo=function(j,tt){return{$$typeof:h,type:j,compare:tt===void 0?null:tt}},te.startTransition=function(j){var tt=D.transition;D.transition={};try{j()}finally{D.transition=tt}},te.unstable_act=O,te.useCallback=function(j,tt){return X.current.useCallback(j,tt)},te.useContext=function(j){return X.current.useContext(j)},te.useDebugValue=function(){},te.useDeferredValue=function(j){return X.current.useDeferredValue(j)},te.useEffect=function(j,tt){return X.current.useEffect(j,tt)},te.useId=function(){return X.current.useId()},te.useImperativeHandle=function(j,tt,N){return X.current.useImperativeHandle(j,tt,N)},te.useInsertionEffect=function(j,tt){return X.current.useInsertionEffect(j,tt)},te.useLayoutEffect=function(j,tt){return X.current.useLayoutEffect(j,tt)},te.useMemo=function(j,tt){return X.current.useMemo(j,tt)},te.useReducer=function(j,tt,N){return X.current.useReducer(j,tt,N)},te.useRef=function(j){return X.current.useRef(j)},te.useState=function(j){return X.current.useState(j)},te.useSyncExternalStore=function(j,tt,N){return X.current.useSyncExternalStore(j,tt,N)},te.useTransition=function(){return X.current.useTransition()},te.version="18.3.1",te}var yC;function vy(){return yC||(yC=1,pp.exports=b5()),pp.exports}/**
11
- * @license React
12
- * react-jsx-runtime.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var xC;function v5(){if(xC)return ul;xC=1;var t=vy(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(l,u,h){var d,f={},m=null,p=null;h!==void 0&&(m=""+h),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(p=u.ref);for(d in u)n.call(u,d)&&!o.hasOwnProperty(d)&&(f[d]=u[d]);if(l&&l.defaultProps)for(d in u=l.defaultProps,u)f[d]===void 0&&(f[d]=u[d]);return{$$typeof:e,type:l,key:m,ref:p,props:f,_owner:i.current}}return ul.Fragment=r,ul.jsx=s,ul.jsxs=s,ul}var CC;function w5(){return CC||(CC=1,fp.exports=v5()),fp.exports}var L=w5(),nt=vy();const Ie=tr(nt);var Mu={},gp={exports:{}},Yr={},mp={exports:{}},yp={};/**
19
- * @license React
20
- * scheduler.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var kC;function S5(){return kC||(kC=1,(function(t){function e(D,J){var O=D.length;D.push(J);t:for(;0<O;){var j=O-1>>>1,tt=D[j];if(0<i(tt,J))D[j]=J,D[O]=tt,O=j;else break t}}function r(D){return D.length===0?null:D[0]}function n(D){if(D.length===0)return null;var J=D[0],O=D.pop();if(O!==J){D[0]=O;t:for(var j=0,tt=D.length,N=tt>>>1;j<N;){var ct=2*(j+1)-1,lt=D[ct],mt=ct+1,St=D[mt];if(0>i(lt,O))mt<tt&&0>i(St,lt)?(D[j]=St,D[mt]=O,j=mt):(D[j]=lt,D[ct]=O,j=ct);else if(mt<tt&&0>i(St,O))D[j]=St,D[mt]=O,j=mt;else break t}}return J}function i(D,J){var O=D.sortIndex-J.sortIndex;return O!==0?O:D.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],h=[],d=1,f=null,m=3,p=!1,x=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(D){for(var J=r(h);J!==null;){if(J.callback===null)n(h);else if(J.startTime<=D)n(h),J.sortIndex=J.expirationTime,e(u,J);else break;J=r(h)}}function A(D){if(C=!1,S(D),!x)if(r(u)!==null)x=!0,U(F);else{var J=r(h);J!==null&&X(A,J.startTime-D)}}function F(D,J){x=!1,C&&(C=!1,b(P),P=-1),p=!0;var O=m;try{for(S(J),f=r(u);f!==null&&(!(f.expirationTime>J)||D&&!$());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var tt=j(f.expirationTime<=J);J=t.unstable_now(),typeof tt=="function"?f.callback=tt:f===r(u)&&n(u),S(J)}else n(u);f=r(u)}if(f!==null)var N=!0;else{var ct=r(h);ct!==null&&X(A,ct.startTime-J),N=!1}return N}finally{f=null,m=O,p=!1}}var E=!1,B=null,P=-1,q=5,R=-1;function $(){return!(t.unstable_now()-R<q)}function H(){if(B!==null){var D=t.unstable_now();R=D;var J=!0;try{J=B(!0,D)}finally{J?Q():(E=!1,B=null)}}else E=!1}var Q;if(typeof w=="function")Q=function(){w(H)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,W=V.port2;V.port1.onmessage=H,Q=function(){W.postMessage(null)}}else Q=function(){k(H,0)};function U(D){B=D,E||(E=!0,Q())}function X(D,J){P=k(function(){D(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(D){D.callback=null},t.unstable_continueExecution=function(){x||p||(x=!0,U(F))},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<D?Math.floor(1e3/D):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(D){switch(m){case 1:case 2:case 3:var J=3;break;default:J=m}var O=m;m=J;try{return D()}finally{m=O}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var O=m;m=D;try{return J()}finally{m=O}},t.unstable_scheduleCallback=function(D,J,O){var j=t.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?j+O:j):O=j,D){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=O+tt,D={id:d++,callback:J,priorityLevel:D,startTime:O,expirationTime:tt,sortIndex:-1},O>j?(D.sortIndex=O,e(h,D),r(u)===null&&D===r(h)&&(C?(b(P),P=-1):C=!0,X(A,O-j))):(D.sortIndex=tt,e(u,D),x||p||(x=!0,U(F))),D},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(D){var J=m;return function(){var O=m;m=J;try{return D.apply(this,arguments)}finally{m=O}}}})(yp)),yp}var bC;function T5(){return bC||(bC=1,mp.exports=S5()),mp.exports}/**
27
- * @license React
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var vC;function _5(){if(vC)return Yr;vC=1;var t=vy(),e=T5();function r(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,g=1;g<arguments.length;g++)c+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(a,c){s(a,c),s(a+"Capture",c)}function s(a,c){for(i[a]=c,a=0;a<c.length;a++)n.add(c[a])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function m(a){return u.call(f,a)?!0:u.call(d,a)?!1:h.test(a)?f[a]=!0:(d[a]=!0,!1)}function p(a,c,g,y){if(g!==null&&g.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return y?!1:g!==null?!g.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function x(a,c,g,y){if(c===null||typeof c>"u"||p(a,c,g,y))return!0;if(y)return!1;if(g!==null)switch(g.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function C(a,c,g,y,v,_,M){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=y,this.attributeNamespace=v,this.mustUseProperty=g,this.propertyName=a,this.type=c,this.sanitizeURL=_,this.removeEmptyString=M}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){k[a]=new C(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var c=a[0];k[c]=new C(c,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){k[a]=new C(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){k[a]=new C(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){k[a]=new C(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){k[a]=new C(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){k[a]=new C(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){k[a]=new C(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){k[a]=new C(a,5,!1,a.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function w(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var c=a.replace(b,w);k[c]=new C(c,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var c=a.replace(b,w);k[c]=new C(c,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var c=a.replace(b,w);k[c]=new C(c,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){k[a]=new C(a,1,!1,a.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){k[a]=new C(a,1,!1,a.toLowerCase(),null,!0,!0)});function S(a,c,g,y){var v=k.hasOwnProperty(c)?k[c]:null;(v!==null?v.type!==0:y||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(x(c,g,v,y)&&(g=null),y||v===null?m(c)&&(g===null?a.removeAttribute(c):a.setAttribute(c,""+g)):v.mustUseProperty?a[v.propertyName]=g===null?v.type===3?!1:"":g:(c=v.attributeName,y=v.attributeNamespace,g===null?a.removeAttribute(c):(v=v.type,g=v===3||v===4&&g===!0?"":""+g,y?a.setAttributeNS(y,c,g):a.setAttribute(c,g))))}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),E=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),$=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),D=Symbol.iterator;function J(a){return a===null||typeof a!="object"?null:(a=D&&a[D]||a["@@iterator"],typeof a=="function"?a:null)}var O=Object.assign,j;function tt(a){if(j===void 0)try{throw Error()}catch(g){var c=g.stack.trim().match(/\n( *(at )?)/);j=c&&c[1]||""}return`
35
- `+j+a}var N=!1;function ct(a,c){if(!a||N)return"";N=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(it){var y=it}Reflect.construct(a,[],c)}else{try{c.call()}catch(it){y=it}a.call(c.prototype)}else{try{throw Error()}catch(it){y=it}a()}}catch(it){if(it&&y&&typeof it.stack=="string"){for(var v=it.stack.split(`
36
- `),_=y.stack.split(`
37
- `),M=v.length-1,z=_.length-1;1<=M&&0<=z&&v[M]!==_[z];)z--;for(;1<=M&&0<=z;M--,z--)if(v[M]!==_[z]){if(M!==1||z!==1)do if(M--,z--,0>z||v[M]!==_[z]){var Y=`
38
- `+v[M].replace(" at new "," at ");return a.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",a.displayName)),Y}while(1<=M&&0<=z);break}}}finally{N=!1,Error.prepareStackTrace=g}return(a=a?a.displayName||a.name:"")?tt(a):""}function lt(a){switch(a.tag){case 5:return tt(a.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return a=ct(a.type,!1),a;case 11:return a=ct(a.type.render,!1),a;case 1:return a=ct(a.type,!0),a;default:return""}}function mt(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case B:return"Fragment";case E:return"Portal";case q:return"Profiler";case P:return"StrictMode";case Q:return"Suspense";case V:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case $:return(a.displayName||"Context")+".Consumer";case R:return(a._context.displayName||"Context")+".Provider";case H:var c=a.render;return a=a.displayName,a||(a=c.displayName||c.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case W:return c=a.displayName||null,c!==null?c:mt(a.type)||"Memo";case U:c=a._payload,a=a._init;try{return mt(a(c))}catch{}}return null}function St(a){var c=a.type;switch(a.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=c.render,a=a.displayName||a.name||"",c.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mt(c);case 8:return c===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Tt(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Dt(a){var c=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function xt(a){var c=Dt(a)?"checked":"value",g=Object.getOwnPropertyDescriptor(a.constructor.prototype,c),y=""+a[c];if(!a.hasOwnProperty(c)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var v=g.get,_=g.set;return Object.defineProperty(a,c,{configurable:!0,get:function(){return v.call(this)},set:function(M){y=""+M,_.call(this,M)}}),Object.defineProperty(a,c,{enumerable:g.enumerable}),{getValue:function(){return y},setValue:function(M){y=""+M},stopTracking:function(){a._valueTracker=null,delete a[c]}}}}function Lt(a){a._valueTracker||(a._valueTracker=xt(a))}function re(a){if(!a)return!1;var c=a._valueTracker;if(!c)return!0;var g=c.getValue(),y="";return a&&(y=Dt(a)?a.checked?"true":"false":a.value),a=y,a!==g?(c.setValue(a),!0):!1}function Qt(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ye(a,c){var g=c.checked;return O({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??a._wrapperState.initialChecked})}function ke(a,c){var g=c.defaultValue==null?"":c.defaultValue,y=c.checked!=null?c.checked:c.defaultChecked;g=Tt(c.value!=null?c.value:g),a._wrapperState={initialChecked:y,initialValue:g,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function qe(a,c){c=c.checked,c!=null&&S(a,"checked",c,!1)}function jr(a,c){qe(a,c);var g=Tt(c.value),y=c.type;if(g!=null)y==="number"?(g===0&&a.value===""||a.value!=g)&&(a.value=""+g):a.value!==""+g&&(a.value=""+g);else if(y==="submit"||y==="reset"){a.removeAttribute("value");return}c.hasOwnProperty("value")?zr(a,c.type,g):c.hasOwnProperty("defaultValue")&&zr(a,c.type,Tt(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(a.defaultChecked=!!c.defaultChecked)}function Me(a,c,g){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var y=c.type;if(!(y!=="submit"&&y!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+a._wrapperState.initialValue,g||c===a.value||(a.value=c),a.defaultValue=c}g=a.name,g!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,g!==""&&(a.name=g)}function zr(a,c,g){(c!=="number"||Qt(a.ownerDocument)!==a)&&(g==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+g&&(a.defaultValue=""+g))}var We=Array.isArray;function Br(a,c,g,y){if(a=a.options,c){c={};for(var v=0;v<g.length;v++)c["$"+g[v]]=!0;for(g=0;g<a.length;g++)v=c.hasOwnProperty("$"+a[g].value),a[g].selected!==v&&(a[g].selected=v),v&&y&&(a[g].defaultSelected=!0)}else{for(g=""+Tt(g),c=null,v=0;v<a.length;v++){if(a[v].value===g){a[v].selected=!0,y&&(a[v].defaultSelected=!0);return}c!==null||a[v].disabled||(c=a[v])}c!==null&&(c.selected=!0)}}function Ar(a,c){if(c.dangerouslySetInnerHTML!=null)throw Error(r(91));return O({},c,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Yn(a,c){var g=c.value;if(g==null){if(g=c.children,c=c.defaultValue,g!=null){if(c!=null)throw Error(r(92));if(We(g)){if(1<g.length)throw Error(r(93));g=g[0]}c=g}c==null&&(c=""),g=c}a._wrapperState={initialValue:Tt(g)}}function mr(a,c){var g=Tt(c.value),y=Tt(c.defaultValue);g!=null&&(g=""+g,g!==a.value&&(a.value=g),c.defaultValue==null&&a.defaultValue!==g&&(a.defaultValue=g)),y!=null&&(a.defaultValue=""+y)}function Be(a){var c=a.textContent;c===a._wrapperState.initialValue&&c!==""&&c!==null&&(a.value=c)}function at(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ut(a,c){return a==null||a==="http://www.w3.org/1999/xhtml"?at(c):a==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var bt,$t=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,g,y,v){MSApp.execUnsafeLocalFunction(function(){return a(c,g,y,v)})}:a})(function(a,c){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=c;else{for(bt=bt||document.createElement("div"),bt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=bt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}});function Xt(a,c){if(c){var g=a.firstChild;if(g&&g===a.lastChild&&g.nodeType===3){g.nodeValue=c;return}}a.textContent=c}var Te={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];Object.keys(Te).forEach(function(a){Ge.forEach(function(c){c=c+a.charAt(0).toUpperCase()+a.substring(1),Te[c]=Te[a]})});function Oe(a,c,g){return c==null||typeof c=="boolean"||c===""?"":g||typeof c!="number"||c===0||Te.hasOwnProperty(a)&&Te[a]?(""+c).trim():c+"px"}function He(a,c){a=a.style;for(var g in c)if(c.hasOwnProperty(g)){var y=g.indexOf("--")===0,v=Oe(g,c[g],y);g==="float"&&(g="cssFloat"),y?a.setProperty(g,v):a[g]=v}}var me=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(a,c){if(c){if(me[a]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function Xe(a,c){if(a.indexOf("-")===-1)return typeof c.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var De=null;function yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var xe=null,hr=null,Gn=null;function Ln(a){if(a=Xs(a)){if(typeof xe!="function")throw Error(r(280));var c=a.stateNode;c&&(c=Gc(c),xe(a.stateNode,a.type,c))}}function ko(a){hr?Gn?Gn.push(a):Gn=[a]:hr=a}function bo(){if(hr){var a=hr,c=Gn;if(Gn=hr=null,Ln(a),c)for(a=0;a<c.length;a++)Ln(c[a])}}function be(a,c){return a(c)}function fi(){}var Ts=!1;function _s(a,c,g){if(Ts)return a(c,g);Ts=!0;try{return be(a,c,g)}finally{Ts=!1,(hr!==null||Gn!==null)&&(fi(),bo())}}function pi(a,c){var g=a.stateNode;if(g===null)return null;var y=Gc(g);if(y===null)return null;g=y[c];t:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(a=a.type,y=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!y;break t;default:a=!1}if(a)return null;if(g&&typeof g!="function")throw Error(r(231,c,typeof g));return g}var la=!1;if(l)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){la=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{la=!1}function Id(a,c,g,y,v,_,M,z,Y){var it=Array.prototype.slice.call(arguments,3);try{c.apply(g,it)}catch(ft){this.onError(ft)}}var xr=!1,pn=null,vo=!1,ca=null,Ls={onError:function(a){xr=!0,pn=a}};function Lc(a,c,g,y,v,_,M,z,Y){xr=!1,pn=null,Id.apply(Ls,arguments)}function En(a,c,g,y,v,_,M,z,Y){if(Lc.apply(this,arguments),xr){if(xr){var it=pn;xr=!1,pn=null}else throw Error(r(198));vo||(vo=!0,ca=it)}}function Xn(a){var c=a,g=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,(c.flags&4098)!==0&&(g=c.return),a=c.return;while(a)}return c.tag===3?g:null}function Es(a){if(a.tag===13){var c=a.memoizedState;if(c===null&&(a=a.alternate,a!==null&&(c=a.memoizedState)),c!==null)return c.dehydrated}return null}function Bs(a){if(Xn(a)!==a)throw Error(r(188))}function Ec(a){var c=a.alternate;if(!c){if(c=Xn(a),c===null)throw Error(r(188));return c!==a?null:a}for(var g=a,y=c;;){var v=g.return;if(v===null)break;var _=v.alternate;if(_===null){if(y=v.return,y!==null){g=y;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===g)return Bs(v),a;if(_===y)return Bs(v),c;_=_.sibling}throw Error(r(188))}if(g.return!==y.return)g=v,y=_;else{for(var M=!1,z=v.child;z;){if(z===g){M=!0,g=v,y=_;break}if(z===y){M=!0,y=v,g=_;break}z=z.sibling}if(!M){for(z=_.child;z;){if(z===g){M=!0,g=_,y=v;break}if(z===y){M=!0,y=_,g=v;break}z=z.sibling}if(!M)throw Error(r(189))}}if(g.alternate!==y)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?a:c}function Bc(a){return a=Ec(a),a!==null?Rt(a):null}function Rt(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var c=Rt(a);if(c!==null)return c;a=a.sibling}return null}var G=e.unstable_scheduleCallback,gt=e.unstable_cancelCallback,Bt=e.unstable_shouldYield,ve=e.unstable_requestPaint,Jt=e.unstable_now,$e=e.unstable_getCurrentPriorityLevel,ar=e.unstable_ImmediatePriority,gn=e.unstable_UserBlockingPriority,Bn=e.unstable_NormalPriority,As=e.unstable_LowPriority,Ke=e.unstable_IdlePriority,wo=null,en=null;function OA(a){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(wo,a,void 0,(a.current.flags&128)===128)}catch{}}var An=Math.clz32?Math.clz32:PA,NA=Math.log,RA=Math.LN2;function PA(a){return a>>>=0,a===0?32:31-(NA(a)/RA|0)|0}var Ac=64,Fc=4194304;function Fs(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Ic(a,c){var g=a.pendingLanes;if(g===0)return 0;var y=0,v=a.suspendedLanes,_=a.pingedLanes,M=g&268435455;if(M!==0){var z=M&~v;z!==0?y=Fs(z):(_&=M,_!==0&&(y=Fs(_)))}else M=g&~v,M!==0?y=Fs(M):_!==0&&(y=Fs(_));if(y===0)return 0;if(c!==0&&c!==y&&(c&v)===0&&(v=y&-y,_=c&-c,v>=_||v===16&&(_&4194240)!==0))return c;if((y&4)!==0&&(y|=g&16),c=a.entangledLanes,c!==0)for(a=a.entanglements,c&=y;0<c;)g=31-An(c),v=1<<g,y|=a[g],c&=~v;return y}function DA(a,c){switch(a){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $A(a,c){for(var g=a.suspendedLanes,y=a.pingedLanes,v=a.expirationTimes,_=a.pendingLanes;0<_;){var M=31-An(_),z=1<<M,Y=v[M];Y===-1?((z&g)===0||(z&y)!==0)&&(v[M]=DA(z,c)):Y<=c&&(a.expiredLanes|=z),_&=~z}}function Md(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function Yx(){var a=Ac;return Ac<<=1,(Ac&4194240)===0&&(Ac=64),a}function Od(a){for(var c=[],g=0;31>g;g++)c.push(a);return c}function Is(a,c,g){a.pendingLanes|=c,c!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,c=31-An(c),a[c]=g}function jA(a,c){var g=a.pendingLanes&~c;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=c,a.mutableReadLanes&=c,a.entangledLanes&=c,c=a.entanglements;var y=a.eventTimes;for(a=a.expirationTimes;0<g;){var v=31-An(g),_=1<<v;c[v]=0,y[v]=-1,a[v]=-1,g&=~_}}function Nd(a,c){var g=a.entangledLanes|=c;for(a=a.entanglements;g;){var y=31-An(g),v=1<<y;v&c|a[y]&c&&(a[y]|=c),g&=~v}}var pe=0;function Gx(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var Xx,Rd,Kx,Qx,Zx,Pd=!1,Mc=[],Di=null,$i=null,ji=null,Ms=new Map,Os=new Map,zi=[],zA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Jx(a,c){switch(a){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":Ms.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(c.pointerId)}}function Ns(a,c,g,y,v,_){return a===null||a.nativeEvent!==_?(a={blockedOn:c,domEventName:g,eventSystemFlags:y,nativeEvent:_,targetContainers:[v]},c!==null&&(c=Xs(c),c!==null&&Rd(c)),a):(a.eventSystemFlags|=y,c=a.targetContainers,v!==null&&c.indexOf(v)===-1&&c.push(v),a)}function qA(a,c,g,y,v){switch(c){case"focusin":return Di=Ns(Di,a,c,g,y,v),!0;case"dragenter":return $i=Ns($i,a,c,g,y,v),!0;case"mouseover":return ji=Ns(ji,a,c,g,y,v),!0;case"pointerover":var _=v.pointerId;return Ms.set(_,Ns(Ms.get(_)||null,a,c,g,y,v)),!0;case"gotpointercapture":return _=v.pointerId,Os.set(_,Ns(Os.get(_)||null,a,c,g,y,v)),!0}return!1}function t0(a){var c=So(a.target);if(c!==null){var g=Xn(c);if(g!==null){if(c=g.tag,c===13){if(c=Es(g),c!==null){a.blockedOn=c,Zx(a.priority,function(){Kx(g)});return}}else if(c===3&&g.stateNode.current.memoizedState.isDehydrated){a.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Oc(a){if(a.blockedOn!==null)return!1;for(var c=a.targetContainers;0<c.length;){var g=$d(a.domEventName,a.eventSystemFlags,c[0],a.nativeEvent);if(g===null){g=a.nativeEvent;var y=new g.constructor(g.type,g);De=y,g.target.dispatchEvent(y),De=null}else return c=Xs(g),c!==null&&Rd(c),a.blockedOn=g,!1;c.shift()}return!0}function e0(a,c,g){Oc(a)&&g.delete(c)}function WA(){Pd=!1,Di!==null&&Oc(Di)&&(Di=null),$i!==null&&Oc($i)&&($i=null),ji!==null&&Oc(ji)&&(ji=null),Ms.forEach(e0),Os.forEach(e0)}function Rs(a,c){a.blockedOn===c&&(a.blockedOn=null,Pd||(Pd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,WA)))}function Ps(a){function c(v){return Rs(v,a)}if(0<Mc.length){Rs(Mc[0],a);for(var g=1;g<Mc.length;g++){var y=Mc[g];y.blockedOn===a&&(y.blockedOn=null)}}for(Di!==null&&Rs(Di,a),$i!==null&&Rs($i,a),ji!==null&&Rs(ji,a),Ms.forEach(c),Os.forEach(c),g=0;g<zi.length;g++)y=zi[g],y.blockedOn===a&&(y.blockedOn=null);for(;0<zi.length&&(g=zi[0],g.blockedOn===null);)t0(g),g.blockedOn===null&&zi.shift()}var ua=A.ReactCurrentBatchConfig,Nc=!0;function HA(a,c,g,y){var v=pe,_=ua.transition;ua.transition=null;try{pe=1,Dd(a,c,g,y)}finally{pe=v,ua.transition=_}}function UA(a,c,g,y){var v=pe,_=ua.transition;ua.transition=null;try{pe=4,Dd(a,c,g,y)}finally{pe=v,ua.transition=_}}function Dd(a,c,g,y){if(Nc){var v=$d(a,c,g,y);if(v===null)rf(a,c,y,Rc,g),Jx(a,y);else if(qA(v,a,c,g,y))y.stopPropagation();else if(Jx(a,y),c&4&&-1<zA.indexOf(a)){for(;v!==null;){var _=Xs(v);if(_!==null&&Xx(_),_=$d(a,c,g,y),_===null&&rf(a,c,y,Rc,g),_===v)break;v=_}v!==null&&y.stopPropagation()}else rf(a,c,y,null,g)}}var Rc=null;function $d(a,c,g,y){if(Rc=null,a=yr(y),a=So(a),a!==null)if(c=Xn(a),c===null)a=null;else if(g=c.tag,g===13){if(a=Es(c),a!==null)return a;a=null}else if(g===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;a=null}else c!==a&&(a=null);return Rc=a,null}function r0(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case ar:return 1;case gn:return 4;case Bn:case As:return 16;case Ke:return 536870912;default:return 16}default:return 16}}var qi=null,jd=null,Pc=null;function n0(){if(Pc)return Pc;var a,c=jd,g=c.length,y,v="value"in qi?qi.value:qi.textContent,_=v.length;for(a=0;a<g&&c[a]===v[a];a++);var M=g-a;for(y=1;y<=M&&c[g-y]===v[_-y];y++);return Pc=v.slice(a,1<y?1-y:void 0)}function Dc(a){var c=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&c===13&&(a=13)):a=c,a===10&&(a=13),32<=a||a===13?a:0}function $c(){return!0}function i0(){return!1}function rn(a){function c(g,y,v,_,M){this._reactName=g,this._targetInst=v,this.type=y,this.nativeEvent=_,this.target=M,this.currentTarget=null;for(var z in a)a.hasOwnProperty(z)&&(g=a[z],this[z]=g?g(_):_[z]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?$c:i0,this.isPropagationStopped=i0,this}return O(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=$c)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=$c)},persist:function(){},isPersistent:$c}),c}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zd=rn(ha),Ds=O({},ha,{view:0,detail:0}),VA=rn(Ds),qd,Wd,$s,jc=O({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ud,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==$s&&($s&&a.type==="mousemove"?(qd=a.screenX-$s.screenX,Wd=a.screenY-$s.screenY):Wd=qd=0,$s=a),qd)},movementY:function(a){return"movementY"in a?a.movementY:Wd}}),o0=rn(jc),YA=O({},jc,{dataTransfer:0}),GA=rn(YA),XA=O({},Ds,{relatedTarget:0}),Hd=rn(XA),KA=O({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),QA=rn(KA),ZA=O({},ha,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),JA=rn(ZA),t3=O({},ha,{data:0}),a0=rn(t3),e3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i3(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=n3[a])?!!c[a]:!1}function Ud(){return i3}var o3=O({},Ds,{key:function(a){if(a.key){var c=e3[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=Dc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?r3[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ud,charCode:function(a){return a.type==="keypress"?Dc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Dc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),a3=rn(o3),s3=O({},jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s0=rn(s3),l3=O({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ud}),c3=rn(l3),u3=O({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),h3=rn(u3),d3=O({},jc,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),f3=rn(d3),p3=[9,13,27,32],Vd=l&&"CompositionEvent"in window,js=null;l&&"documentMode"in document&&(js=document.documentMode);var g3=l&&"TextEvent"in window&&!js,l0=l&&(!Vd||js&&8<js&&11>=js),c0=" ",u0=!1;function h0(a,c){switch(a){case"keyup":return p3.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d0(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var da=!1;function m3(a,c){switch(a){case"compositionend":return d0(c);case"keypress":return c.which!==32?null:(u0=!0,c0);case"textInput":return a=c.data,a===c0&&u0?null:a;default:return null}}function y3(a,c){if(da)return a==="compositionend"||!Vd&&h0(a,c)?(a=n0(),Pc=jd=qi=null,da=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return l0&&c.locale!=="ko"?null:c.data;default:return null}}var x3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function f0(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!x3[a.type]:c==="textarea"}function p0(a,c,g,y){ko(y),c=Uc(c,"onChange"),0<c.length&&(g=new zd("onChange","change",null,g,y),a.push({event:g,listeners:c}))}var zs=null,qs=null;function C3(a){I0(a,0)}function zc(a){var c=ya(a);if(re(c))return a}function k3(a,c){if(a==="change")return c}var g0=!1;if(l){var Yd;if(l){var Gd="oninput"in document;if(!Gd){var m0=document.createElement("div");m0.setAttribute("oninput","return;"),Gd=typeof m0.oninput=="function"}Yd=Gd}else Yd=!1;g0=Yd&&(!document.documentMode||9<document.documentMode)}function y0(){zs&&(zs.detachEvent("onpropertychange",x0),qs=zs=null)}function x0(a){if(a.propertyName==="value"&&zc(qs)){var c=[];p0(c,qs,a,yr(a)),_s(C3,c)}}function b3(a,c,g){a==="focusin"?(y0(),zs=c,qs=g,zs.attachEvent("onpropertychange",x0)):a==="focusout"&&y0()}function v3(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return zc(qs)}function w3(a,c){if(a==="click")return zc(c)}function S3(a,c){if(a==="input"||a==="change")return zc(c)}function T3(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var Fn=typeof Object.is=="function"?Object.is:T3;function Ws(a,c){if(Fn(a,c))return!0;if(typeof a!="object"||a===null||typeof c!="object"||c===null)return!1;var g=Object.keys(a),y=Object.keys(c);if(g.length!==y.length)return!1;for(y=0;y<g.length;y++){var v=g[y];if(!u.call(c,v)||!Fn(a[v],c[v]))return!1}return!0}function C0(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function k0(a,c){var g=C0(a);a=0;for(var y;g;){if(g.nodeType===3){if(y=a+g.textContent.length,a<=c&&y>=c)return{node:g,offset:c-a};a=y}t:{for(;g;){if(g.nextSibling){g=g.nextSibling;break t}g=g.parentNode}g=void 0}g=C0(g)}}function b0(a,c){return a&&c?a===c?!0:a&&a.nodeType===3?!1:c&&c.nodeType===3?b0(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):!1:!1}function v0(){for(var a=window,c=Qt();c instanceof a.HTMLIFrameElement;){try{var g=typeof c.contentWindow.location.href=="string"}catch{g=!1}if(g)a=c.contentWindow;else break;c=Qt(a.document)}return c}function Xd(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c&&(c==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||c==="textarea"||a.contentEditable==="true")}function _3(a){var c=v0(),g=a.focusedElem,y=a.selectionRange;if(c!==g&&g&&g.ownerDocument&&b0(g.ownerDocument.documentElement,g)){if(y!==null&&Xd(g)){if(c=y.start,a=y.end,a===void 0&&(a=c),"selectionStart"in g)g.selectionStart=c,g.selectionEnd=Math.min(a,g.value.length);else if(a=(c=g.ownerDocument||document)&&c.defaultView||window,a.getSelection){a=a.getSelection();var v=g.textContent.length,_=Math.min(y.start,v);y=y.end===void 0?_:Math.min(y.end,v),!a.extend&&_>y&&(v=y,y=_,_=v),v=k0(g,_);var M=k0(g,y);v&&M&&(a.rangeCount!==1||a.anchorNode!==v.node||a.anchorOffset!==v.offset||a.focusNode!==M.node||a.focusOffset!==M.offset)&&(c=c.createRange(),c.setStart(v.node,v.offset),a.removeAllRanges(),_>y?(a.addRange(c),a.extend(M.node,M.offset)):(c.setEnd(M.node,M.offset),a.addRange(c)))}}for(c=[],a=g;a=a.parentNode;)a.nodeType===1&&c.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<c.length;g++)a=c[g],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var L3=l&&"documentMode"in document&&11>=document.documentMode,fa=null,Kd=null,Hs=null,Qd=!1;function w0(a,c,g){var y=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Qd||fa==null||fa!==Qt(y)||(y=fa,"selectionStart"in y&&Xd(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Hs&&Ws(Hs,y)||(Hs=y,y=Uc(Kd,"onSelect"),0<y.length&&(c=new zd("onSelect","select",null,c,g),a.push({event:c,listeners:y}),c.target=fa)))}function qc(a,c){var g={};return g[a.toLowerCase()]=c.toLowerCase(),g["Webkit"+a]="webkit"+c,g["Moz"+a]="moz"+c,g}var pa={animationend:qc("Animation","AnimationEnd"),animationiteration:qc("Animation","AnimationIteration"),animationstart:qc("Animation","AnimationStart"),transitionend:qc("Transition","TransitionEnd")},Zd={},S0={};l&&(S0=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function Wc(a){if(Zd[a])return Zd[a];if(!pa[a])return a;var c=pa[a],g;for(g in c)if(c.hasOwnProperty(g)&&g in S0)return Zd[a]=c[g];return a}var T0=Wc("animationend"),_0=Wc("animationiteration"),L0=Wc("animationstart"),E0=Wc("transitionend"),B0=new Map,A0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wi(a,c){B0.set(a,c),o(c,[a])}for(var Jd=0;Jd<A0.length;Jd++){var tf=A0[Jd],E3=tf.toLowerCase(),B3=tf[0].toUpperCase()+tf.slice(1);Wi(E3,"on"+B3)}Wi(T0,"onAnimationEnd"),Wi(_0,"onAnimationIteration"),Wi(L0,"onAnimationStart"),Wi("dblclick","onDoubleClick"),Wi("focusin","onFocus"),Wi("focusout","onBlur"),Wi(E0,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Us="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),A3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Us));function F0(a,c,g){var y=a.type||"unknown-event";a.currentTarget=g,En(y,c,void 0,a),a.currentTarget=null}function I0(a,c){c=(c&4)!==0;for(var g=0;g<a.length;g++){var y=a[g],v=y.event;y=y.listeners;t:{var _=void 0;if(c)for(var M=y.length-1;0<=M;M--){var z=y[M],Y=z.instance,it=z.currentTarget;if(z=z.listener,Y!==_&&v.isPropagationStopped())break t;F0(v,z,it),_=Y}else for(M=0;M<y.length;M++){if(z=y[M],Y=z.instance,it=z.currentTarget,z=z.listener,Y!==_&&v.isPropagationStopped())break t;F0(v,z,it),_=Y}}}if(vo)throw a=ca,vo=!1,ca=null,a}function _e(a,c){var g=c[cf];g===void 0&&(g=c[cf]=new Set);var y=a+"__bubble";g.has(y)||(M0(c,a,2,!1),g.add(y))}function ef(a,c,g){var y=0;c&&(y|=4),M0(g,a,y,c)}var Hc="_reactListening"+Math.random().toString(36).slice(2);function Vs(a){if(!a[Hc]){a[Hc]=!0,n.forEach(function(g){g!=="selectionchange"&&(A3.has(g)||ef(g,!1,a),ef(g,!0,a))});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[Hc]||(c[Hc]=!0,ef("selectionchange",!1,c))}}function M0(a,c,g,y){switch(r0(c)){case 1:var v=HA;break;case 4:v=UA;break;default:v=Dd}g=v.bind(null,c,g,a),v=void 0,!la||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(v=!0),y?v!==void 0?a.addEventListener(c,g,{capture:!0,passive:v}):a.addEventListener(c,g,!0):v!==void 0?a.addEventListener(c,g,{passive:v}):a.addEventListener(c,g,!1)}function rf(a,c,g,y,v){var _=y;if((c&1)===0&&(c&2)===0&&y!==null)t:for(;;){if(y===null)return;var M=y.tag;if(M===3||M===4){var z=y.stateNode.containerInfo;if(z===v||z.nodeType===8&&z.parentNode===v)break;if(M===4)for(M=y.return;M!==null;){var Y=M.tag;if((Y===3||Y===4)&&(Y=M.stateNode.containerInfo,Y===v||Y.nodeType===8&&Y.parentNode===v))return;M=M.return}for(;z!==null;){if(M=So(z),M===null)return;if(Y=M.tag,Y===5||Y===6){y=_=M;continue t}z=z.parentNode}}y=y.return}_s(function(){var it=_,ft=yr(g),pt=[];t:{var dt=B0.get(a);if(dt!==void 0){var vt=zd,Et=a;switch(a){case"keypress":if(Dc(g)===0)break t;case"keydown":case"keyup":vt=a3;break;case"focusin":Et="focus",vt=Hd;break;case"focusout":Et="blur",vt=Hd;break;case"beforeblur":case"afterblur":vt=Hd;break;case"click":if(g.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":vt=o0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":vt=GA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":vt=c3;break;case T0:case _0:case L0:vt=QA;break;case E0:vt=h3;break;case"scroll":vt=VA;break;case"wheel":vt=f3;break;case"copy":case"cut":case"paste":vt=JA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":vt=s0}var Ft=(c&4)!==0,Ue=!Ft&&a==="scroll",et=Ft?dt!==null?dt+"Capture":null:dt;Ft=[];for(var K=it,rt;K!==null;){rt=K;var Ct=rt.stateNode;if(rt.tag===5&&Ct!==null&&(rt=Ct,et!==null&&(Ct=pi(K,et),Ct!=null&&Ft.push(Ys(K,Ct,rt)))),Ue)break;K=K.return}0<Ft.length&&(dt=new vt(dt,Et,null,g,ft),pt.push({event:dt,listeners:Ft}))}}if((c&7)===0){t:{if(dt=a==="mouseover"||a==="pointerover",vt=a==="mouseout"||a==="pointerout",dt&&g!==De&&(Et=g.relatedTarget||g.fromElement)&&(So(Et)||Et[gi]))break t;if((vt||dt)&&(dt=ft.window===ft?ft:(dt=ft.ownerDocument)?dt.defaultView||dt.parentWindow:window,vt?(Et=g.relatedTarget||g.toElement,vt=it,Et=Et?So(Et):null,Et!==null&&(Ue=Xn(Et),Et!==Ue||Et.tag!==5&&Et.tag!==6)&&(Et=null)):(vt=null,Et=it),vt!==Et)){if(Ft=o0,Ct="onMouseLeave",et="onMouseEnter",K="mouse",(a==="pointerout"||a==="pointerover")&&(Ft=s0,Ct="onPointerLeave",et="onPointerEnter",K="pointer"),Ue=vt==null?dt:ya(vt),rt=Et==null?dt:ya(Et),dt=new Ft(Ct,K+"leave",vt,g,ft),dt.target=Ue,dt.relatedTarget=rt,Ct=null,So(ft)===it&&(Ft=new Ft(et,K+"enter",Et,g,ft),Ft.target=rt,Ft.relatedTarget=Ue,Ct=Ft),Ue=Ct,vt&&Et)e:{for(Ft=vt,et=Et,K=0,rt=Ft;rt;rt=ga(rt))K++;for(rt=0,Ct=et;Ct;Ct=ga(Ct))rt++;for(;0<K-rt;)Ft=ga(Ft),K--;for(;0<rt-K;)et=ga(et),rt--;for(;K--;){if(Ft===et||et!==null&&Ft===et.alternate)break e;Ft=ga(Ft),et=ga(et)}Ft=null}else Ft=null;vt!==null&&O0(pt,dt,vt,Ft,!1),Et!==null&&Ue!==null&&O0(pt,Ue,Et,Ft,!0)}}t:{if(dt=it?ya(it):window,vt=dt.nodeName&&dt.nodeName.toLowerCase(),vt==="select"||vt==="input"&&dt.type==="file")var Nt=k3;else if(f0(dt))if(g0)Nt=S3;else{Nt=v3;var jt=b3}else(vt=dt.nodeName)&&vt.toLowerCase()==="input"&&(dt.type==="checkbox"||dt.type==="radio")&&(Nt=w3);if(Nt&&(Nt=Nt(a,it))){p0(pt,Nt,g,ft);break t}jt&&jt(a,dt,it),a==="focusout"&&(jt=dt._wrapperState)&&jt.controlled&&dt.type==="number"&&zr(dt,"number",dt.value)}switch(jt=it?ya(it):window,a){case"focusin":(f0(jt)||jt.contentEditable==="true")&&(fa=jt,Kd=it,Hs=null);break;case"focusout":Hs=Kd=fa=null;break;case"mousedown":Qd=!0;break;case"contextmenu":case"mouseup":case"dragend":Qd=!1,w0(pt,g,ft);break;case"selectionchange":if(L3)break;case"keydown":case"keyup":w0(pt,g,ft)}var zt;if(Vd)t:{switch(a){case"compositionstart":var Yt="onCompositionStart";break t;case"compositionend":Yt="onCompositionEnd";break t;case"compositionupdate":Yt="onCompositionUpdate";break t}Yt=void 0}else da?h0(a,g)&&(Yt="onCompositionEnd"):a==="keydown"&&g.keyCode===229&&(Yt="onCompositionStart");Yt&&(l0&&g.locale!=="ko"&&(da||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&da&&(zt=n0()):(qi=ft,jd="value"in qi?qi.value:qi.textContent,da=!0)),jt=Uc(it,Yt),0<jt.length&&(Yt=new a0(Yt,a,null,g,ft),pt.push({event:Yt,listeners:jt}),zt?Yt.data=zt:(zt=d0(g),zt!==null&&(Yt.data=zt)))),(zt=g3?m3(a,g):y3(a,g))&&(it=Uc(it,"onBeforeInput"),0<it.length&&(ft=new a0("onBeforeInput","beforeinput",null,g,ft),pt.push({event:ft,listeners:it}),ft.data=zt))}I0(pt,c)})}function Ys(a,c,g){return{instance:a,listener:c,currentTarget:g}}function Uc(a,c){for(var g=c+"Capture",y=[];a!==null;){var v=a,_=v.stateNode;v.tag===5&&_!==null&&(v=_,_=pi(a,g),_!=null&&y.unshift(Ys(a,_,v)),_=pi(a,c),_!=null&&y.push(Ys(a,_,v))),a=a.return}return y}function ga(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function O0(a,c,g,y,v){for(var _=c._reactName,M=[];g!==null&&g!==y;){var z=g,Y=z.alternate,it=z.stateNode;if(Y!==null&&Y===y)break;z.tag===5&&it!==null&&(z=it,v?(Y=pi(g,_),Y!=null&&M.unshift(Ys(g,Y,z))):v||(Y=pi(g,_),Y!=null&&M.push(Ys(g,Y,z)))),g=g.return}M.length!==0&&a.push({event:c,listeners:M})}var F3=/\r\n?/g,I3=/\u0000|\uFFFD/g;function N0(a){return(typeof a=="string"?a:""+a).replace(F3,`
39
- `).replace(I3,"")}function Vc(a,c,g){if(c=N0(c),N0(a)!==c&&g)throw Error(r(425))}function Yc(){}var nf=null,of=null;function af(a,c){return a==="textarea"||a==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var sf=typeof setTimeout=="function"?setTimeout:void 0,M3=typeof clearTimeout=="function"?clearTimeout:void 0,R0=typeof Promise=="function"?Promise:void 0,O3=typeof queueMicrotask=="function"?queueMicrotask:typeof R0<"u"?function(a){return R0.resolve(null).then(a).catch(N3)}:sf;function N3(a){setTimeout(function(){throw a})}function lf(a,c){var g=c,y=0;do{var v=g.nextSibling;if(a.removeChild(g),v&&v.nodeType===8)if(g=v.data,g==="/$"){if(y===0){a.removeChild(v),Ps(c);return}y--}else g!=="$"&&g!=="$?"&&g!=="$!"||y++;g=v}while(g);Ps(c)}function Hi(a){for(;a!=null;a=a.nextSibling){var c=a.nodeType;if(c===1||c===3)break;if(c===8){if(c=a.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return a}function P0(a){a=a.previousSibling;for(var c=0;a;){if(a.nodeType===8){var g=a.data;if(g==="$"||g==="$!"||g==="$?"){if(c===0)return a;c--}else g==="/$"&&c++}a=a.previousSibling}return null}var ma=Math.random().toString(36).slice(2),Kn="__reactFiber$"+ma,Gs="__reactProps$"+ma,gi="__reactContainer$"+ma,cf="__reactEvents$"+ma,R3="__reactListeners$"+ma,P3="__reactHandles$"+ma;function So(a){var c=a[Kn];if(c)return c;for(var g=a.parentNode;g;){if(c=g[gi]||g[Kn]){if(g=c.alternate,c.child!==null||g!==null&&g.child!==null)for(a=P0(a);a!==null;){if(g=a[Kn])return g;a=P0(a)}return c}a=g,g=a.parentNode}return null}function Xs(a){return a=a[Kn]||a[gi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function ya(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(r(33))}function Gc(a){return a[Gs]||null}var uf=[],xa=-1;function Ui(a){return{current:a}}function Le(a){0>xa||(a.current=uf[xa],uf[xa]=null,xa--)}function we(a,c){xa++,uf[xa]=a.current,a.current=c}var Vi={},Cr=Ui(Vi),qr=Ui(!1),To=Vi;function Ca(a,c){var g=a.type.contextTypes;if(!g)return Vi;var y=a.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var v={},_;for(_ in g)v[_]=c[_];return y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=c,a.__reactInternalMemoizedMaskedChildContext=v),v}function Wr(a){return a=a.childContextTypes,a!=null}function Xc(){Le(qr),Le(Cr)}function D0(a,c,g){if(Cr.current!==Vi)throw Error(r(168));we(Cr,c),we(qr,g)}function $0(a,c,g){var y=a.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return g;y=y.getChildContext();for(var v in y)if(!(v in c))throw Error(r(108,St(a)||"Unknown",v));return O({},g,y)}function Kc(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vi,To=Cr.current,we(Cr,a),we(qr,qr.current),!0}function j0(a,c,g){var y=a.stateNode;if(!y)throw Error(r(169));g?(a=$0(a,c,To),y.__reactInternalMemoizedMergedChildContext=a,Le(qr),Le(Cr),we(Cr,a)):Le(qr),we(qr,g)}var mi=null,Qc=!1,hf=!1;function z0(a){mi===null?mi=[a]:mi.push(a)}function D3(a){Qc=!0,z0(a)}function Yi(){if(!hf&&mi!==null){hf=!0;var a=0,c=pe;try{var g=mi;for(pe=1;a<g.length;a++){var y=g[a];do y=y(!0);while(y!==null)}mi=null,Qc=!1}catch(v){throw mi!==null&&(mi=mi.slice(a+1)),G(ar,Yi),v}finally{pe=c,hf=!1}}return null}var ka=[],ba=0,Zc=null,Jc=0,mn=[],yn=0,_o=null,yi=1,xi="";function Lo(a,c){ka[ba++]=Jc,ka[ba++]=Zc,Zc=a,Jc=c}function q0(a,c,g){mn[yn++]=yi,mn[yn++]=xi,mn[yn++]=_o,_o=a;var y=yi;a=xi;var v=32-An(y)-1;y&=~(1<<v),g+=1;var _=32-An(c)+v;if(30<_){var M=v-v%5;_=(y&(1<<M)-1).toString(32),y>>=M,v-=M,yi=1<<32-An(c)+v|g<<v|y,xi=_+a}else yi=1<<_|g<<v|y,xi=a}function df(a){a.return!==null&&(Lo(a,1),q0(a,1,0))}function ff(a){for(;a===Zc;)Zc=ka[--ba],ka[ba]=null,Jc=ka[--ba],ka[ba]=null;for(;a===_o;)_o=mn[--yn],mn[yn]=null,xi=mn[--yn],mn[yn]=null,yi=mn[--yn],mn[yn]=null}var nn=null,on=null,Ae=!1,In=null;function W0(a,c){var g=bn(5,null,null,0);g.elementType="DELETED",g.stateNode=c,g.return=a,c=a.deletions,c===null?(a.deletions=[g],a.flags|=16):c.push(g)}function H0(a,c){switch(a.tag){case 5:var g=a.type;return c=c.nodeType!==1||g.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(a.stateNode=c,nn=a,on=Hi(c.firstChild),!0):!1;case 6:return c=a.pendingProps===""||c.nodeType!==3?null:c,c!==null?(a.stateNode=c,nn=a,on=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(g=_o!==null?{id:yi,overflow:xi}:null,a.memoizedState={dehydrated:c,treeContext:g,retryLane:1073741824},g=bn(18,null,null,0),g.stateNode=c,g.return=a,a.child=g,nn=a,on=null,!0):!1;default:return!1}}function pf(a){return(a.mode&1)!==0&&(a.flags&128)===0}function gf(a){if(Ae){var c=on;if(c){var g=c;if(!H0(a,c)){if(pf(a))throw Error(r(418));c=Hi(g.nextSibling);var y=nn;c&&H0(a,c)?W0(y,g):(a.flags=a.flags&-4097|2,Ae=!1,nn=a)}}else{if(pf(a))throw Error(r(418));a.flags=a.flags&-4097|2,Ae=!1,nn=a}}}function U0(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;nn=a}function tu(a){if(a!==nn)return!1;if(!Ae)return U0(a),Ae=!0,!1;var c;if((c=a.tag!==3)&&!(c=a.tag!==5)&&(c=a.type,c=c!=="head"&&c!=="body"&&!af(a.type,a.memoizedProps)),c&&(c=on)){if(pf(a))throw V0(),Error(r(418));for(;c;)W0(a,c),c=Hi(c.nextSibling)}if(U0(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));t:{for(a=a.nextSibling,c=0;a;){if(a.nodeType===8){var g=a.data;if(g==="/$"){if(c===0){on=Hi(a.nextSibling);break t}c--}else g!=="$"&&g!=="$!"&&g!=="$?"||c++}a=a.nextSibling}on=null}}else on=nn?Hi(a.stateNode.nextSibling):null;return!0}function V0(){for(var a=on;a;)a=Hi(a.nextSibling)}function va(){on=nn=null,Ae=!1}function mf(a){In===null?In=[a]:In.push(a)}var $3=A.ReactCurrentBatchConfig;function Ks(a,c,g){if(a=g.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(r(309));var y=g.stateNode}if(!y)throw Error(r(147,a));var v=y,_=""+a;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===_?c.ref:(c=function(M){var z=v.refs;M===null?delete z[_]:z[_]=M},c._stringRef=_,c)}if(typeof a!="string")throw Error(r(284));if(!g._owner)throw Error(r(290,a))}return a}function eu(a,c){throw a=Object.prototype.toString.call(c),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":a))}function Y0(a){var c=a._init;return c(a._payload)}function G0(a){function c(et,K){if(a){var rt=et.deletions;rt===null?(et.deletions=[K],et.flags|=16):rt.push(K)}}function g(et,K){if(!a)return null;for(;K!==null;)c(et,K),K=K.sibling;return null}function y(et,K){for(et=new Map;K!==null;)K.key!==null?et.set(K.key,K):et.set(K.index,K),K=K.sibling;return et}function v(et,K){return et=eo(et,K),et.index=0,et.sibling=null,et}function _(et,K,rt){return et.index=rt,a?(rt=et.alternate,rt!==null?(rt=rt.index,rt<K?(et.flags|=2,K):rt):(et.flags|=2,K)):(et.flags|=1048576,K)}function M(et){return a&&et.alternate===null&&(et.flags|=2),et}function z(et,K,rt,Ct){return K===null||K.tag!==6?(K=sp(rt,et.mode,Ct),K.return=et,K):(K=v(K,rt),K.return=et,K)}function Y(et,K,rt,Ct){var Nt=rt.type;return Nt===B?ft(et,K,rt.props.children,Ct,rt.key):K!==null&&(K.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===U&&Y0(Nt)===K.type)?(Ct=v(K,rt.props),Ct.ref=Ks(et,K,rt),Ct.return=et,Ct):(Ct=Tu(rt.type,rt.key,rt.props,null,et.mode,Ct),Ct.ref=Ks(et,K,rt),Ct.return=et,Ct)}function it(et,K,rt,Ct){return K===null||K.tag!==4||K.stateNode.containerInfo!==rt.containerInfo||K.stateNode.implementation!==rt.implementation?(K=lp(rt,et.mode,Ct),K.return=et,K):(K=v(K,rt.children||[]),K.return=et,K)}function ft(et,K,rt,Ct,Nt){return K===null||K.tag!==7?(K=No(rt,et.mode,Ct,Nt),K.return=et,K):(K=v(K,rt),K.return=et,K)}function pt(et,K,rt){if(typeof K=="string"&&K!==""||typeof K=="number")return K=sp(""+K,et.mode,rt),K.return=et,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case F:return rt=Tu(K.type,K.key,K.props,null,et.mode,rt),rt.ref=Ks(et,null,K),rt.return=et,rt;case E:return K=lp(K,et.mode,rt),K.return=et,K;case U:var Ct=K._init;return pt(et,Ct(K._payload),rt)}if(We(K)||J(K))return K=No(K,et.mode,rt,null),K.return=et,K;eu(et,K)}return null}function dt(et,K,rt,Ct){var Nt=K!==null?K.key:null;if(typeof rt=="string"&&rt!==""||typeof rt=="number")return Nt!==null?null:z(et,K,""+rt,Ct);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case F:return rt.key===Nt?Y(et,K,rt,Ct):null;case E:return rt.key===Nt?it(et,K,rt,Ct):null;case U:return Nt=rt._init,dt(et,K,Nt(rt._payload),Ct)}if(We(rt)||J(rt))return Nt!==null?null:ft(et,K,rt,Ct,null);eu(et,rt)}return null}function vt(et,K,rt,Ct,Nt){if(typeof Ct=="string"&&Ct!==""||typeof Ct=="number")return et=et.get(rt)||null,z(K,et,""+Ct,Nt);if(typeof Ct=="object"&&Ct!==null){switch(Ct.$$typeof){case F:return et=et.get(Ct.key===null?rt:Ct.key)||null,Y(K,et,Ct,Nt);case E:return et=et.get(Ct.key===null?rt:Ct.key)||null,it(K,et,Ct,Nt);case U:var jt=Ct._init;return vt(et,K,rt,jt(Ct._payload),Nt)}if(We(Ct)||J(Ct))return et=et.get(rt)||null,ft(K,et,Ct,Nt,null);eu(K,Ct)}return null}function Et(et,K,rt,Ct){for(var Nt=null,jt=null,zt=K,Yt=K=0,cr=null;zt!==null&&Yt<rt.length;Yt++){zt.index>Yt?(cr=zt,zt=null):cr=zt.sibling;var ce=dt(et,zt,rt[Yt],Ct);if(ce===null){zt===null&&(zt=cr);break}a&&zt&&ce.alternate===null&&c(et,zt),K=_(ce,K,Yt),jt===null?Nt=ce:jt.sibling=ce,jt=ce,zt=cr}if(Yt===rt.length)return g(et,zt),Ae&&Lo(et,Yt),Nt;if(zt===null){for(;Yt<rt.length;Yt++)zt=pt(et,rt[Yt],Ct),zt!==null&&(K=_(zt,K,Yt),jt===null?Nt=zt:jt.sibling=zt,jt=zt);return Ae&&Lo(et,Yt),Nt}for(zt=y(et,zt);Yt<rt.length;Yt++)cr=vt(zt,et,Yt,rt[Yt],Ct),cr!==null&&(a&&cr.alternate!==null&&zt.delete(cr.key===null?Yt:cr.key),K=_(cr,K,Yt),jt===null?Nt=cr:jt.sibling=cr,jt=cr);return a&&zt.forEach(function(ro){return c(et,ro)}),Ae&&Lo(et,Yt),Nt}function Ft(et,K,rt,Ct){var Nt=J(rt);if(typeof Nt!="function")throw Error(r(150));if(rt=Nt.call(rt),rt==null)throw Error(r(151));for(var jt=Nt=null,zt=K,Yt=K=0,cr=null,ce=rt.next();zt!==null&&!ce.done;Yt++,ce=rt.next()){zt.index>Yt?(cr=zt,zt=null):cr=zt.sibling;var ro=dt(et,zt,ce.value,Ct);if(ro===null){zt===null&&(zt=cr);break}a&&zt&&ro.alternate===null&&c(et,zt),K=_(ro,K,Yt),jt===null?Nt=ro:jt.sibling=ro,jt=ro,zt=cr}if(ce.done)return g(et,zt),Ae&&Lo(et,Yt),Nt;if(zt===null){for(;!ce.done;Yt++,ce=rt.next())ce=pt(et,ce.value,Ct),ce!==null&&(K=_(ce,K,Yt),jt===null?Nt=ce:jt.sibling=ce,jt=ce);return Ae&&Lo(et,Yt),Nt}for(zt=y(et,zt);!ce.done;Yt++,ce=rt.next())ce=vt(zt,et,Yt,ce.value,Ct),ce!==null&&(a&&ce.alternate!==null&&zt.delete(ce.key===null?Yt:ce.key),K=_(ce,K,Yt),jt===null?Nt=ce:jt.sibling=ce,jt=ce);return a&&zt.forEach(function(x5){return c(et,x5)}),Ae&&Lo(et,Yt),Nt}function Ue(et,K,rt,Ct){if(typeof rt=="object"&&rt!==null&&rt.type===B&&rt.key===null&&(rt=rt.props.children),typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case F:t:{for(var Nt=rt.key,jt=K;jt!==null;){if(jt.key===Nt){if(Nt=rt.type,Nt===B){if(jt.tag===7){g(et,jt.sibling),K=v(jt,rt.props.children),K.return=et,et=K;break t}}else if(jt.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===U&&Y0(Nt)===jt.type){g(et,jt.sibling),K=v(jt,rt.props),K.ref=Ks(et,jt,rt),K.return=et,et=K;break t}g(et,jt);break}else c(et,jt);jt=jt.sibling}rt.type===B?(K=No(rt.props.children,et.mode,Ct,rt.key),K.return=et,et=K):(Ct=Tu(rt.type,rt.key,rt.props,null,et.mode,Ct),Ct.ref=Ks(et,K,rt),Ct.return=et,et=Ct)}return M(et);case E:t:{for(jt=rt.key;K!==null;){if(K.key===jt)if(K.tag===4&&K.stateNode.containerInfo===rt.containerInfo&&K.stateNode.implementation===rt.implementation){g(et,K.sibling),K=v(K,rt.children||[]),K.return=et,et=K;break t}else{g(et,K);break}else c(et,K);K=K.sibling}K=lp(rt,et.mode,Ct),K.return=et,et=K}return M(et);case U:return jt=rt._init,Ue(et,K,jt(rt._payload),Ct)}if(We(rt))return Et(et,K,rt,Ct);if(J(rt))return Ft(et,K,rt,Ct);eu(et,rt)}return typeof rt=="string"&&rt!==""||typeof rt=="number"?(rt=""+rt,K!==null&&K.tag===6?(g(et,K.sibling),K=v(K,rt),K.return=et,et=K):(g(et,K),K=sp(rt,et.mode,Ct),K.return=et,et=K),M(et)):g(et,K)}return Ue}var wa=G0(!0),X0=G0(!1),ru=Ui(null),nu=null,Sa=null,yf=null;function xf(){yf=Sa=nu=null}function Cf(a){var c=ru.current;Le(ru),a._currentValue=c}function kf(a,c,g){for(;a!==null;){var y=a.alternate;if((a.childLanes&c)!==c?(a.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),a===g)break;a=a.return}}function Ta(a,c){nu=a,yf=Sa=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&c)!==0&&(Hr=!0),a.firstContext=null)}function xn(a){var c=a._currentValue;if(yf!==a)if(a={context:a,memoizedValue:c,next:null},Sa===null){if(nu===null)throw Error(r(308));Sa=a,nu.dependencies={lanes:0,firstContext:a}}else Sa=Sa.next=a;return c}var Eo=null;function bf(a){Eo===null?Eo=[a]:Eo.push(a)}function K0(a,c,g,y){var v=c.interleaved;return v===null?(g.next=g,bf(c)):(g.next=v.next,v.next=g),c.interleaved=g,Ci(a,y)}function Ci(a,c){a.lanes|=c;var g=a.alternate;for(g!==null&&(g.lanes|=c),g=a,a=a.return;a!==null;)a.childLanes|=c,g=a.alternate,g!==null&&(g.childLanes|=c),g=a,a=a.return;return g.tag===3?g.stateNode:null}var Gi=!1;function vf(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q0(a,c){a=a.updateQueue,c.updateQueue===a&&(c.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ki(a,c){return{eventTime:a,lane:c,tag:0,payload:null,callback:null,next:null}}function Xi(a,c,g){var y=a.updateQueue;if(y===null)return null;if(y=y.shared,(le&2)!==0){var v=y.pending;return v===null?c.next=c:(c.next=v.next,v.next=c),y.pending=c,Ci(a,g)}return v=y.interleaved,v===null?(c.next=c,bf(y)):(c.next=v.next,v.next=c),y.interleaved=c,Ci(a,g)}function iu(a,c,g){if(c=c.updateQueue,c!==null&&(c=c.shared,(g&4194240)!==0)){var y=c.lanes;y&=a.pendingLanes,g|=y,c.lanes=g,Nd(a,g)}}function Z0(a,c){var g=a.updateQueue,y=a.alternate;if(y!==null&&(y=y.updateQueue,g===y)){var v=null,_=null;if(g=g.firstBaseUpdate,g!==null){do{var M={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};_===null?v=_=M:_=_.next=M,g=g.next}while(g!==null);_===null?v=_=c:_=_.next=c}else v=_=c;g={baseState:y.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:y.shared,effects:y.effects},a.updateQueue=g;return}a=g.lastBaseUpdate,a===null?g.firstBaseUpdate=c:a.next=c,g.lastBaseUpdate=c}function ou(a,c,g,y){var v=a.updateQueue;Gi=!1;var _=v.firstBaseUpdate,M=v.lastBaseUpdate,z=v.shared.pending;if(z!==null){v.shared.pending=null;var Y=z,it=Y.next;Y.next=null,M===null?_=it:M.next=it,M=Y;var ft=a.alternate;ft!==null&&(ft=ft.updateQueue,z=ft.lastBaseUpdate,z!==M&&(z===null?ft.firstBaseUpdate=it:z.next=it,ft.lastBaseUpdate=Y))}if(_!==null){var pt=v.baseState;M=0,ft=it=Y=null,z=_;do{var dt=z.lane,vt=z.eventTime;if((y&dt)===dt){ft!==null&&(ft=ft.next={eventTime:vt,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});t:{var Et=a,Ft=z;switch(dt=c,vt=g,Ft.tag){case 1:if(Et=Ft.payload,typeof Et=="function"){pt=Et.call(vt,pt,dt);break t}pt=Et;break t;case 3:Et.flags=Et.flags&-65537|128;case 0:if(Et=Ft.payload,dt=typeof Et=="function"?Et.call(vt,pt,dt):Et,dt==null)break t;pt=O({},pt,dt);break t;case 2:Gi=!0}}z.callback!==null&&z.lane!==0&&(a.flags|=64,dt=v.effects,dt===null?v.effects=[z]:dt.push(z))}else vt={eventTime:vt,lane:dt,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ft===null?(it=ft=vt,Y=pt):ft=ft.next=vt,M|=dt;if(z=z.next,z===null){if(z=v.shared.pending,z===null)break;dt=z,z=dt.next,dt.next=null,v.lastBaseUpdate=dt,v.shared.pending=null}}while(!0);if(ft===null&&(Y=pt),v.baseState=Y,v.firstBaseUpdate=it,v.lastBaseUpdate=ft,c=v.shared.interleaved,c!==null){v=c;do M|=v.lane,v=v.next;while(v!==c)}else _===null&&(v.shared.lanes=0);Fo|=M,a.lanes=M,a.memoizedState=pt}}function J0(a,c,g){if(a=c.effects,c.effects=null,a!==null)for(c=0;c<a.length;c++){var y=a[c],v=y.callback;if(v!==null){if(y.callback=null,y=g,typeof v!="function")throw Error(r(191,v));v.call(y)}}}var Qs={},Qn=Ui(Qs),Zs=Ui(Qs),Js=Ui(Qs);function Bo(a){if(a===Qs)throw Error(r(174));return a}function wf(a,c){switch(we(Js,c),we(Zs,a),we(Qn,Qs),a=c.nodeType,a){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:ut(null,"");break;default:a=a===8?c.parentNode:c,c=a.namespaceURI||null,a=a.tagName,c=ut(c,a)}Le(Qn),we(Qn,c)}function _a(){Le(Qn),Le(Zs),Le(Js)}function t1(a){Bo(Js.current);var c=Bo(Qn.current),g=ut(c,a.type);c!==g&&(we(Zs,a),we(Qn,g))}function Sf(a){Zs.current===a&&(Le(Qn),Le(Zs))}var Ne=Ui(0);function au(a){for(var c=a;c!==null;){if(c.tag===13){var g=c.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var Tf=[];function _f(){for(var a=0;a<Tf.length;a++)Tf[a]._workInProgressVersionPrimary=null;Tf.length=0}var su=A.ReactCurrentDispatcher,Lf=A.ReactCurrentBatchConfig,Ao=0,Re=null,er=null,sr=null,lu=!1,tl=!1,el=0,j3=0;function kr(){throw Error(r(321))}function Ef(a,c){if(c===null)return!1;for(var g=0;g<c.length&&g<a.length;g++)if(!Fn(a[g],c[g]))return!1;return!0}function Bf(a,c,g,y,v,_){if(Ao=_,Re=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,su.current=a===null||a.memoizedState===null?H3:U3,a=g(y,v),tl){_=0;do{if(tl=!1,el=0,25<=_)throw Error(r(301));_+=1,sr=er=null,c.updateQueue=null,su.current=V3,a=g(y,v)}while(tl)}if(su.current=hu,c=er!==null&&er.next!==null,Ao=0,sr=er=Re=null,lu=!1,c)throw Error(r(300));return a}function Af(){var a=el!==0;return el=0,a}function Zn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Re.memoizedState=sr=a:sr=sr.next=a,sr}function Cn(){if(er===null){var a=Re.alternate;a=a!==null?a.memoizedState:null}else a=er.next;var c=sr===null?Re.memoizedState:sr.next;if(c!==null)sr=c,er=a;else{if(a===null)throw Error(r(310));er=a,a={memoizedState:er.memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},sr===null?Re.memoizedState=sr=a:sr=sr.next=a}return sr}function rl(a,c){return typeof c=="function"?c(a):c}function Ff(a){var c=Cn(),g=c.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=a;var y=er,v=y.baseQueue,_=g.pending;if(_!==null){if(v!==null){var M=v.next;v.next=_.next,_.next=M}y.baseQueue=v=_,g.pending=null}if(v!==null){_=v.next,y=y.baseState;var z=M=null,Y=null,it=_;do{var ft=it.lane;if((Ao&ft)===ft)Y!==null&&(Y=Y.next={lane:0,action:it.action,hasEagerState:it.hasEagerState,eagerState:it.eagerState,next:null}),y=it.hasEagerState?it.eagerState:a(y,it.action);else{var pt={lane:ft,action:it.action,hasEagerState:it.hasEagerState,eagerState:it.eagerState,next:null};Y===null?(z=Y=pt,M=y):Y=Y.next=pt,Re.lanes|=ft,Fo|=ft}it=it.next}while(it!==null&&it!==_);Y===null?M=y:Y.next=z,Fn(y,c.memoizedState)||(Hr=!0),c.memoizedState=y,c.baseState=M,c.baseQueue=Y,g.lastRenderedState=y}if(a=g.interleaved,a!==null){v=a;do _=v.lane,Re.lanes|=_,Fo|=_,v=v.next;while(v!==a)}else v===null&&(g.lanes=0);return[c.memoizedState,g.dispatch]}function If(a){var c=Cn(),g=c.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=a;var y=g.dispatch,v=g.pending,_=c.memoizedState;if(v!==null){g.pending=null;var M=v=v.next;do _=a(_,M.action),M=M.next;while(M!==v);Fn(_,c.memoizedState)||(Hr=!0),c.memoizedState=_,c.baseQueue===null&&(c.baseState=_),g.lastRenderedState=_}return[_,y]}function e1(){}function r1(a,c){var g=Re,y=Cn(),v=c(),_=!Fn(y.memoizedState,v);if(_&&(y.memoizedState=v,Hr=!0),y=y.queue,Mf(o1.bind(null,g,y,a),[a]),y.getSnapshot!==c||_||sr!==null&&sr.memoizedState.tag&1){if(g.flags|=2048,nl(9,i1.bind(null,g,y,v,c),void 0,null),lr===null)throw Error(r(349));(Ao&30)!==0||n1(g,c,v)}return v}function n1(a,c,g){a.flags|=16384,a={getSnapshot:c,value:g},c=Re.updateQueue,c===null?(c={lastEffect:null,stores:null},Re.updateQueue=c,c.stores=[a]):(g=c.stores,g===null?c.stores=[a]:g.push(a))}function i1(a,c,g,y){c.value=g,c.getSnapshot=y,a1(c)&&s1(a)}function o1(a,c,g){return g(function(){a1(c)&&s1(a)})}function a1(a){var c=a.getSnapshot;a=a.value;try{var g=c();return!Fn(a,g)}catch{return!0}}function s1(a){var c=Ci(a,1);c!==null&&Rn(c,a,1,-1)}function l1(a){var c=Zn();return typeof a=="function"&&(a=a()),c.memoizedState=c.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:a},c.queue=a,a=a.dispatch=W3.bind(null,Re,a),[c.memoizedState,a]}function nl(a,c,g,y){return a={tag:a,create:c,destroy:g,deps:y,next:null},c=Re.updateQueue,c===null?(c={lastEffect:null,stores:null},Re.updateQueue=c,c.lastEffect=a.next=a):(g=c.lastEffect,g===null?c.lastEffect=a.next=a:(y=g.next,g.next=a,a.next=y,c.lastEffect=a)),a}function c1(){return Cn().memoizedState}function cu(a,c,g,y){var v=Zn();Re.flags|=a,v.memoizedState=nl(1|c,g,void 0,y===void 0?null:y)}function uu(a,c,g,y){var v=Cn();y=y===void 0?null:y;var _=void 0;if(er!==null){var M=er.memoizedState;if(_=M.destroy,y!==null&&Ef(y,M.deps)){v.memoizedState=nl(c,g,_,y);return}}Re.flags|=a,v.memoizedState=nl(1|c,g,_,y)}function u1(a,c){return cu(8390656,8,a,c)}function Mf(a,c){return uu(2048,8,a,c)}function h1(a,c){return uu(4,2,a,c)}function d1(a,c){return uu(4,4,a,c)}function f1(a,c){if(typeof c=="function")return a=a(),c(a),function(){c(null)};if(c!=null)return a=a(),c.current=a,function(){c.current=null}}function p1(a,c,g){return g=g!=null?g.concat([a]):null,uu(4,4,f1.bind(null,c,a),g)}function Of(){}function g1(a,c){var g=Cn();c=c===void 0?null:c;var y=g.memoizedState;return y!==null&&c!==null&&Ef(c,y[1])?y[0]:(g.memoizedState=[a,c],a)}function m1(a,c){var g=Cn();c=c===void 0?null:c;var y=g.memoizedState;return y!==null&&c!==null&&Ef(c,y[1])?y[0]:(a=a(),g.memoizedState=[a,c],a)}function y1(a,c,g){return(Ao&21)===0?(a.baseState&&(a.baseState=!1,Hr=!0),a.memoizedState=g):(Fn(g,c)||(g=Yx(),Re.lanes|=g,Fo|=g,a.baseState=!0),c)}function z3(a,c){var g=pe;pe=g!==0&&4>g?g:4,a(!0);var y=Lf.transition;Lf.transition={};try{a(!1),c()}finally{pe=g,Lf.transition=y}}function x1(){return Cn().memoizedState}function q3(a,c,g){var y=Ji(a);if(g={lane:y,action:g,hasEagerState:!1,eagerState:null,next:null},C1(a))k1(c,g);else if(g=K0(a,c,g,y),g!==null){var v=Ir();Rn(g,a,y,v),b1(g,c,y)}}function W3(a,c,g){var y=Ji(a),v={lane:y,action:g,hasEagerState:!1,eagerState:null,next:null};if(C1(a))k1(c,v);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=c.lastRenderedReducer,_!==null))try{var M=c.lastRenderedState,z=_(M,g);if(v.hasEagerState=!0,v.eagerState=z,Fn(z,M)){var Y=c.interleaved;Y===null?(v.next=v,bf(c)):(v.next=Y.next,Y.next=v),c.interleaved=v;return}}catch{}finally{}g=K0(a,c,v,y),g!==null&&(v=Ir(),Rn(g,a,y,v),b1(g,c,y))}}function C1(a){var c=a.alternate;return a===Re||c!==null&&c===Re}function k1(a,c){tl=lu=!0;var g=a.pending;g===null?c.next=c:(c.next=g.next,g.next=c),a.pending=c}function b1(a,c,g){if((g&4194240)!==0){var y=c.lanes;y&=a.pendingLanes,g|=y,c.lanes=g,Nd(a,g)}}var hu={readContext:xn,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},H3={readContext:xn,useCallback:function(a,c){return Zn().memoizedState=[a,c===void 0?null:c],a},useContext:xn,useEffect:u1,useImperativeHandle:function(a,c,g){return g=g!=null?g.concat([a]):null,cu(4194308,4,f1.bind(null,c,a),g)},useLayoutEffect:function(a,c){return cu(4194308,4,a,c)},useInsertionEffect:function(a,c){return cu(4,2,a,c)},useMemo:function(a,c){var g=Zn();return c=c===void 0?null:c,a=a(),g.memoizedState=[a,c],a},useReducer:function(a,c,g){var y=Zn();return c=g!==void 0?g(c):c,y.memoizedState=y.baseState=c,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:c},y.queue=a,a=a.dispatch=q3.bind(null,Re,a),[y.memoizedState,a]},useRef:function(a){var c=Zn();return a={current:a},c.memoizedState=a},useState:l1,useDebugValue:Of,useDeferredValue:function(a){return Zn().memoizedState=a},useTransition:function(){var a=l1(!1),c=a[0];return a=z3.bind(null,a[1]),Zn().memoizedState=a,[c,a]},useMutableSource:function(){},useSyncExternalStore:function(a,c,g){var y=Re,v=Zn();if(Ae){if(g===void 0)throw Error(r(407));g=g()}else{if(g=c(),lr===null)throw Error(r(349));(Ao&30)!==0||n1(y,c,g)}v.memoizedState=g;var _={value:g,getSnapshot:c};return v.queue=_,u1(o1.bind(null,y,_,a),[a]),y.flags|=2048,nl(9,i1.bind(null,y,_,g,c),void 0,null),g},useId:function(){var a=Zn(),c=lr.identifierPrefix;if(Ae){var g=xi,y=yi;g=(y&~(1<<32-An(y)-1)).toString(32)+g,c=":"+c+"R"+g,g=el++,0<g&&(c+="H"+g.toString(32)),c+=":"}else g=j3++,c=":"+c+"r"+g.toString(32)+":";return a.memoizedState=c},unstable_isNewReconciler:!1},U3={readContext:xn,useCallback:g1,useContext:xn,useEffect:Mf,useImperativeHandle:p1,useInsertionEffect:h1,useLayoutEffect:d1,useMemo:m1,useReducer:Ff,useRef:c1,useState:function(){return Ff(rl)},useDebugValue:Of,useDeferredValue:function(a){var c=Cn();return y1(c,er.memoizedState,a)},useTransition:function(){var a=Ff(rl)[0],c=Cn().memoizedState;return[a,c]},useMutableSource:e1,useSyncExternalStore:r1,useId:x1,unstable_isNewReconciler:!1},V3={readContext:xn,useCallback:g1,useContext:xn,useEffect:Mf,useImperativeHandle:p1,useInsertionEffect:h1,useLayoutEffect:d1,useMemo:m1,useReducer:If,useRef:c1,useState:function(){return If(rl)},useDebugValue:Of,useDeferredValue:function(a){var c=Cn();return er===null?c.memoizedState=a:y1(c,er.memoizedState,a)},useTransition:function(){var a=If(rl)[0],c=Cn().memoizedState;return[a,c]},useMutableSource:e1,useSyncExternalStore:r1,useId:x1,unstable_isNewReconciler:!1};function Mn(a,c){if(a&&a.defaultProps){c=O({},c),a=a.defaultProps;for(var g in a)c[g]===void 0&&(c[g]=a[g]);return c}return c}function Nf(a,c,g,y){c=a.memoizedState,g=g(y,c),g=g==null?c:O({},c,g),a.memoizedState=g,a.lanes===0&&(a.updateQueue.baseState=g)}var du={isMounted:function(a){return(a=a._reactInternals)?Xn(a)===a:!1},enqueueSetState:function(a,c,g){a=a._reactInternals;var y=Ir(),v=Ji(a),_=ki(y,v);_.payload=c,g!=null&&(_.callback=g),c=Xi(a,_,v),c!==null&&(Rn(c,a,v,y),iu(c,a,v))},enqueueReplaceState:function(a,c,g){a=a._reactInternals;var y=Ir(),v=Ji(a),_=ki(y,v);_.tag=1,_.payload=c,g!=null&&(_.callback=g),c=Xi(a,_,v),c!==null&&(Rn(c,a,v,y),iu(c,a,v))},enqueueForceUpdate:function(a,c){a=a._reactInternals;var g=Ir(),y=Ji(a),v=ki(g,y);v.tag=2,c!=null&&(v.callback=c),c=Xi(a,v,y),c!==null&&(Rn(c,a,y,g),iu(c,a,y))}};function v1(a,c,g,y,v,_,M){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(y,_,M):c.prototype&&c.prototype.isPureReactComponent?!Ws(g,y)||!Ws(v,_):!0}function w1(a,c,g){var y=!1,v=Vi,_=c.contextType;return typeof _=="object"&&_!==null?_=xn(_):(v=Wr(c)?To:Cr.current,y=c.contextTypes,_=(y=y!=null)?Ca(a,v):Vi),c=new c(g,_),a.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=du,a.stateNode=c,c._reactInternals=a,y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=v,a.__reactInternalMemoizedMaskedChildContext=_),c}function S1(a,c,g,y){a=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(g,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(g,y),c.state!==a&&du.enqueueReplaceState(c,c.state,null)}function Rf(a,c,g,y){var v=a.stateNode;v.props=g,v.state=a.memoizedState,v.refs={},vf(a);var _=c.contextType;typeof _=="object"&&_!==null?v.context=xn(_):(_=Wr(c)?To:Cr.current,v.context=Ca(a,_)),v.state=a.memoizedState,_=c.getDerivedStateFromProps,typeof _=="function"&&(Nf(a,c,_,g),v.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(c=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),c!==v.state&&du.enqueueReplaceState(v,v.state,null),ou(a,g,v,y),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308)}function La(a,c){try{var g="",y=c;do g+=lt(y),y=y.return;while(y);var v=g}catch(_){v=`
40
- Error generating stack: `+_.message+`
41
- `+_.stack}return{value:a,source:c,stack:v,digest:null}}function Pf(a,c,g){return{value:a,source:null,stack:g??null,digest:c??null}}function Df(a,c){try{console.error(c.value)}catch(g){setTimeout(function(){throw g})}}var Y3=typeof WeakMap=="function"?WeakMap:Map;function T1(a,c,g){g=ki(-1,g),g.tag=3,g.payload={element:null};var y=c.value;return g.callback=function(){Cu||(Cu=!0,Jf=y),Df(a,c)},g}function _1(a,c,g){g=ki(-1,g),g.tag=3;var y=a.type.getDerivedStateFromError;if(typeof y=="function"){var v=c.value;g.payload=function(){return y(v)},g.callback=function(){Df(a,c)}}var _=a.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(g.callback=function(){Df(a,c),typeof y!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})}),g}function L1(a,c,g){var y=a.pingCache;if(y===null){y=a.pingCache=new Y3;var v=new Set;y.set(c,v)}else v=y.get(c),v===void 0&&(v=new Set,y.set(c,v));v.has(g)||(v.add(g),a=s5.bind(null,a,c,g),c.then(a,a))}function E1(a){do{var c;if((c=a.tag===13)&&(c=a.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return a;a=a.return}while(a!==null);return null}function B1(a,c,g,y,v){return(a.mode&1)===0?(a===c?a.flags|=65536:(a.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(c=ki(-1,1),c.tag=2,Xi(g,c,1))),g.lanes|=1),a):(a.flags|=65536,a.lanes=v,a)}var G3=A.ReactCurrentOwner,Hr=!1;function Fr(a,c,g,y){c.child=a===null?X0(c,null,g,y):wa(c,a.child,g,y)}function A1(a,c,g,y,v){g=g.render;var _=c.ref;return Ta(c,v),y=Bf(a,c,g,y,_,v),g=Af(),a!==null&&!Hr?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~v,bi(a,c,v)):(Ae&&g&&df(c),c.flags|=1,Fr(a,c,y,v),c.child)}function F1(a,c,g,y,v){if(a===null){var _=g.type;return typeof _=="function"&&!ap(_)&&_.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(c.tag=15,c.type=_,I1(a,c,_,y,v)):(a=Tu(g.type,null,y,c,c.mode,v),a.ref=c.ref,a.return=c,c.child=a)}if(_=a.child,(a.lanes&v)===0){var M=_.memoizedProps;if(g=g.compare,g=g!==null?g:Ws,g(M,y)&&a.ref===c.ref)return bi(a,c,v)}return c.flags|=1,a=eo(_,y),a.ref=c.ref,a.return=c,c.child=a}function I1(a,c,g,y,v){if(a!==null){var _=a.memoizedProps;if(Ws(_,y)&&a.ref===c.ref)if(Hr=!1,c.pendingProps=y=_,(a.lanes&v)!==0)(a.flags&131072)!==0&&(Hr=!0);else return c.lanes=a.lanes,bi(a,c,v)}return $f(a,c,g,y,v)}function M1(a,c,g){var y=c.pendingProps,v=y.children,_=a!==null?a.memoizedState:null;if(y.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(Ba,an),an|=g;else{if((g&1073741824)===0)return a=_!==null?_.baseLanes|g:g,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:a,cachePool:null,transitions:null},c.updateQueue=null,we(Ba,an),an|=a,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=_!==null?_.baseLanes:g,we(Ba,an),an|=y}else _!==null?(y=_.baseLanes|g,c.memoizedState=null):y=g,we(Ba,an),an|=y;return Fr(a,c,v,g),c.child}function O1(a,c){var g=c.ref;(a===null&&g!==null||a!==null&&a.ref!==g)&&(c.flags|=512,c.flags|=2097152)}function $f(a,c,g,y,v){var _=Wr(g)?To:Cr.current;return _=Ca(c,_),Ta(c,v),g=Bf(a,c,g,y,_,v),y=Af(),a!==null&&!Hr?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~v,bi(a,c,v)):(Ae&&y&&df(c),c.flags|=1,Fr(a,c,g,v),c.child)}function N1(a,c,g,y,v){if(Wr(g)){var _=!0;Kc(c)}else _=!1;if(Ta(c,v),c.stateNode===null)pu(a,c),w1(c,g,y),Rf(c,g,y,v),y=!0;else if(a===null){var M=c.stateNode,z=c.memoizedProps;M.props=z;var Y=M.context,it=g.contextType;typeof it=="object"&&it!==null?it=xn(it):(it=Wr(g)?To:Cr.current,it=Ca(c,it));var ft=g.getDerivedStateFromProps,pt=typeof ft=="function"||typeof M.getSnapshotBeforeUpdate=="function";pt||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(z!==y||Y!==it)&&S1(c,M,y,it),Gi=!1;var dt=c.memoizedState;M.state=dt,ou(c,y,M,v),Y=c.memoizedState,z!==y||dt!==Y||qr.current||Gi?(typeof ft=="function"&&(Nf(c,g,ft,y),Y=c.memoizedState),(z=Gi||v1(c,g,z,y,dt,Y,it))?(pt||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(c.flags|=4194308)):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=Y),M.props=y,M.state=Y,M.context=it,y=z):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{M=c.stateNode,Q0(a,c),z=c.memoizedProps,it=c.type===c.elementType?z:Mn(c.type,z),M.props=it,pt=c.pendingProps,dt=M.context,Y=g.contextType,typeof Y=="object"&&Y!==null?Y=xn(Y):(Y=Wr(g)?To:Cr.current,Y=Ca(c,Y));var vt=g.getDerivedStateFromProps;(ft=typeof vt=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(z!==pt||dt!==Y)&&S1(c,M,y,Y),Gi=!1,dt=c.memoizedState,M.state=dt,ou(c,y,M,v);var Et=c.memoizedState;z!==pt||dt!==Et||qr.current||Gi?(typeof vt=="function"&&(Nf(c,g,vt,y),Et=c.memoizedState),(it=Gi||v1(c,g,it,y,dt,Et,Y)||!1)?(ft||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(y,Et,Y),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(y,Et,Y)),typeof M.componentDidUpdate=="function"&&(c.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof M.componentDidUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=Et),M.props=y,M.state=Et,M.context=Y,y=it):(typeof M.componentDidUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=1024),y=!1)}return jf(a,c,g,y,_,v)}function jf(a,c,g,y,v,_){O1(a,c);var M=(c.flags&128)!==0;if(!y&&!M)return v&&j0(c,g,!1),bi(a,c,_);y=c.stateNode,G3.current=c;var z=M&&typeof g.getDerivedStateFromError!="function"?null:y.render();return c.flags|=1,a!==null&&M?(c.child=wa(c,a.child,null,_),c.child=wa(c,null,z,_)):Fr(a,c,z,_),c.memoizedState=y.state,v&&j0(c,g,!0),c.child}function R1(a){var c=a.stateNode;c.pendingContext?D0(a,c.pendingContext,c.pendingContext!==c.context):c.context&&D0(a,c.context,!1),wf(a,c.containerInfo)}function P1(a,c,g,y,v){return va(),mf(v),c.flags|=256,Fr(a,c,g,y),c.child}var zf={dehydrated:null,treeContext:null,retryLane:0};function qf(a){return{baseLanes:a,cachePool:null,transitions:null}}function D1(a,c,g){var y=c.pendingProps,v=Ne.current,_=!1,M=(c.flags&128)!==0,z;if((z=M)||(z=a!==null&&a.memoizedState===null?!1:(v&2)!==0),z?(_=!0,c.flags&=-129):(a===null||a.memoizedState!==null)&&(v|=1),we(Ne,v&1),a===null)return gf(c),a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((c.mode&1)===0?c.lanes=1:a.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(M=y.children,a=y.fallback,_?(y=c.mode,_=c.child,M={mode:"hidden",children:M},(y&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=M):_=_u(M,y,0,null),a=No(a,y,g,null),_.return=c,a.return=c,_.sibling=a,c.child=_,c.child.memoizedState=qf(g),c.memoizedState=zf,a):Wf(c,M));if(v=a.memoizedState,v!==null&&(z=v.dehydrated,z!==null))return X3(a,c,M,y,z,v,g);if(_){_=y.fallback,M=c.mode,v=a.child,z=v.sibling;var Y={mode:"hidden",children:y.children};return(M&1)===0&&c.child!==v?(y=c.child,y.childLanes=0,y.pendingProps=Y,c.deletions=null):(y=eo(v,Y),y.subtreeFlags=v.subtreeFlags&14680064),z!==null?_=eo(z,_):(_=No(_,M,g,null),_.flags|=2),_.return=c,y.return=c,y.sibling=_,c.child=y,y=_,_=c.child,M=a.child.memoizedState,M=M===null?qf(g):{baseLanes:M.baseLanes|g,cachePool:null,transitions:M.transitions},_.memoizedState=M,_.childLanes=a.childLanes&~g,c.memoizedState=zf,y}return _=a.child,a=_.sibling,y=eo(_,{mode:"visible",children:y.children}),(c.mode&1)===0&&(y.lanes=g),y.return=c,y.sibling=null,a!==null&&(g=c.deletions,g===null?(c.deletions=[a],c.flags|=16):g.push(a)),c.child=y,c.memoizedState=null,y}function Wf(a,c){return c=_u({mode:"visible",children:c},a.mode,0,null),c.return=a,a.child=c}function fu(a,c,g,y){return y!==null&&mf(y),wa(c,a.child,null,g),a=Wf(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function X3(a,c,g,y,v,_,M){if(g)return c.flags&256?(c.flags&=-257,y=Pf(Error(r(422))),fu(a,c,M,y)):c.memoizedState!==null?(c.child=a.child,c.flags|=128,null):(_=y.fallback,v=c.mode,y=_u({mode:"visible",children:y.children},v,0,null),_=No(_,v,M,null),_.flags|=2,y.return=c,_.return=c,y.sibling=_,c.child=y,(c.mode&1)!==0&&wa(c,a.child,null,M),c.child.memoizedState=qf(M),c.memoizedState=zf,_);if((c.mode&1)===0)return fu(a,c,M,null);if(v.data==="$!"){if(y=v.nextSibling&&v.nextSibling.dataset,y)var z=y.dgst;return y=z,_=Error(r(419)),y=Pf(_,y,void 0),fu(a,c,M,y)}if(z=(M&a.childLanes)!==0,Hr||z){if(y=lr,y!==null){switch(M&-M){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(y.suspendedLanes|M))!==0?0:v,v!==0&&v!==_.retryLane&&(_.retryLane=v,Ci(a,v),Rn(y,a,v,-1))}return op(),y=Pf(Error(r(421))),fu(a,c,M,y)}return v.data==="$?"?(c.flags|=128,c.child=a.child,c=l5.bind(null,a),v._reactRetry=c,null):(a=_.treeContext,on=Hi(v.nextSibling),nn=c,Ae=!0,In=null,a!==null&&(mn[yn++]=yi,mn[yn++]=xi,mn[yn++]=_o,yi=a.id,xi=a.overflow,_o=c),c=Wf(c,y.children),c.flags|=4096,c)}function $1(a,c,g){a.lanes|=c;var y=a.alternate;y!==null&&(y.lanes|=c),kf(a.return,c,g)}function Hf(a,c,g,y,v){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:g,tailMode:v}:(_.isBackwards=c,_.rendering=null,_.renderingStartTime=0,_.last=y,_.tail=g,_.tailMode=v)}function j1(a,c,g){var y=c.pendingProps,v=y.revealOrder,_=y.tail;if(Fr(a,c,y.children,g),y=Ne.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(a!==null&&(a.flags&128)!==0)t:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&$1(a,g,c);else if(a.tag===19)$1(a,g,c);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===c)break t;for(;a.sibling===null;){if(a.return===null||a.return===c)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}y&=1}if(we(Ne,y),(c.mode&1)===0)c.memoizedState=null;else switch(v){case"forwards":for(g=c.child,v=null;g!==null;)a=g.alternate,a!==null&&au(a)===null&&(v=g),g=g.sibling;g=v,g===null?(v=c.child,c.child=null):(v=g.sibling,g.sibling=null),Hf(c,!1,v,g,_);break;case"backwards":for(g=null,v=c.child,c.child=null;v!==null;){if(a=v.alternate,a!==null&&au(a)===null){c.child=v;break}a=v.sibling,v.sibling=g,g=v,v=a}Hf(c,!0,g,null,_);break;case"together":Hf(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function pu(a,c){(c.mode&1)===0&&a!==null&&(a.alternate=null,c.alternate=null,c.flags|=2)}function bi(a,c,g){if(a!==null&&(c.dependencies=a.dependencies),Fo|=c.lanes,(g&c.childLanes)===0)return null;if(a!==null&&c.child!==a.child)throw Error(r(153));if(c.child!==null){for(a=c.child,g=eo(a,a.pendingProps),c.child=g,g.return=c;a.sibling!==null;)a=a.sibling,g=g.sibling=eo(a,a.pendingProps),g.return=c;g.sibling=null}return c.child}function K3(a,c,g){switch(c.tag){case 3:R1(c),va();break;case 5:t1(c);break;case 1:Wr(c.type)&&Kc(c);break;case 4:wf(c,c.stateNode.containerInfo);break;case 10:var y=c.type._context,v=c.memoizedProps.value;we(ru,y._currentValue),y._currentValue=v;break;case 13:if(y=c.memoizedState,y!==null)return y.dehydrated!==null?(we(Ne,Ne.current&1),c.flags|=128,null):(g&c.child.childLanes)!==0?D1(a,c,g):(we(Ne,Ne.current&1),a=bi(a,c,g),a!==null?a.sibling:null);we(Ne,Ne.current&1);break;case 19:if(y=(g&c.childLanes)!==0,(a.flags&128)!==0){if(y)return j1(a,c,g);c.flags|=128}if(v=c.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),we(Ne,Ne.current),y)break;return null;case 22:case 23:return c.lanes=0,M1(a,c,g)}return bi(a,c,g)}var z1,Uf,q1,W1;z1=function(a,c){for(var g=c.child;g!==null;){if(g.tag===5||g.tag===6)a.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===c)break;for(;g.sibling===null;){if(g.return===null||g.return===c)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},Uf=function(){},q1=function(a,c,g,y){var v=a.memoizedProps;if(v!==y){a=c.stateNode,Bo(Qn.current);var _=null;switch(g){case"input":v=Ye(a,v),y=Ye(a,y),_=[];break;case"select":v=O({},v,{value:void 0}),y=O({},y,{value:void 0}),_=[];break;case"textarea":v=Ar(a,v),y=Ar(a,y),_=[];break;default:typeof v.onClick!="function"&&typeof y.onClick=="function"&&(a.onclick=Yc)}ye(g,y);var M;g=null;for(it in v)if(!y.hasOwnProperty(it)&&v.hasOwnProperty(it)&&v[it]!=null)if(it==="style"){var z=v[it];for(M in z)z.hasOwnProperty(M)&&(g||(g={}),g[M]="")}else it!=="dangerouslySetInnerHTML"&&it!=="children"&&it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&it!=="autoFocus"&&(i.hasOwnProperty(it)?_||(_=[]):(_=_||[]).push(it,null));for(it in y){var Y=y[it];if(z=v!=null?v[it]:void 0,y.hasOwnProperty(it)&&Y!==z&&(Y!=null||z!=null))if(it==="style")if(z){for(M in z)!z.hasOwnProperty(M)||Y&&Y.hasOwnProperty(M)||(g||(g={}),g[M]="");for(M in Y)Y.hasOwnProperty(M)&&z[M]!==Y[M]&&(g||(g={}),g[M]=Y[M])}else g||(_||(_=[]),_.push(it,g)),g=Y;else it==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,z=z?z.__html:void 0,Y!=null&&z!==Y&&(_=_||[]).push(it,Y)):it==="children"?typeof Y!="string"&&typeof Y!="number"||(_=_||[]).push(it,""+Y):it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&(i.hasOwnProperty(it)?(Y!=null&&it==="onScroll"&&_e("scroll",a),_||z===Y||(_=[])):(_=_||[]).push(it,Y))}g&&(_=_||[]).push("style",g);var it=_;(c.updateQueue=it)&&(c.flags|=4)}},W1=function(a,c,g,y){g!==y&&(c.flags|=4)};function il(a,c){if(!Ae)switch(a.tailMode){case"hidden":c=a.tail;for(var g=null;c!==null;)c.alternate!==null&&(g=c),c=c.sibling;g===null?a.tail=null:g.sibling=null;break;case"collapsed":g=a.tail;for(var y=null;g!==null;)g.alternate!==null&&(y=g),g=g.sibling;y===null?c||a.tail===null?a.tail=null:a.tail.sibling=null:y.sibling=null}}function br(a){var c=a.alternate!==null&&a.alternate.child===a.child,g=0,y=0;if(c)for(var v=a.child;v!==null;)g|=v.lanes|v.childLanes,y|=v.subtreeFlags&14680064,y|=v.flags&14680064,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)g|=v.lanes|v.childLanes,y|=v.subtreeFlags,y|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=y,a.childLanes=g,c}function Q3(a,c,g){var y=c.pendingProps;switch(ff(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return br(c),null;case 1:return Wr(c.type)&&Xc(),br(c),null;case 3:return y=c.stateNode,_a(),Le(qr),Le(Cr),_f(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(a===null||a.child===null)&&(tu(c)?c.flags|=4:a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,In!==null&&(rp(In),In=null))),Uf(a,c),br(c),null;case 5:Sf(c);var v=Bo(Js.current);if(g=c.type,a!==null&&c.stateNode!=null)q1(a,c,g,y,v),a.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!y){if(c.stateNode===null)throw Error(r(166));return br(c),null}if(a=Bo(Qn.current),tu(c)){y=c.stateNode,g=c.type;var _=c.memoizedProps;switch(y[Kn]=c,y[Gs]=_,a=(c.mode&1)!==0,g){case"dialog":_e("cancel",y),_e("close",y);break;case"iframe":case"object":case"embed":_e("load",y);break;case"video":case"audio":for(v=0;v<Us.length;v++)_e(Us[v],y);break;case"source":_e("error",y);break;case"img":case"image":case"link":_e("error",y),_e("load",y);break;case"details":_e("toggle",y);break;case"input":ke(y,_),_e("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!_.multiple},_e("invalid",y);break;case"textarea":Yn(y,_),_e("invalid",y)}ye(g,_),v=null;for(var M in _)if(_.hasOwnProperty(M)){var z=_[M];M==="children"?typeof z=="string"?y.textContent!==z&&(_.suppressHydrationWarning!==!0&&Vc(y.textContent,z,a),v=["children",z]):typeof z=="number"&&y.textContent!==""+z&&(_.suppressHydrationWarning!==!0&&Vc(y.textContent,z,a),v=["children",""+z]):i.hasOwnProperty(M)&&z!=null&&M==="onScroll"&&_e("scroll",y)}switch(g){case"input":Lt(y),Me(y,_,!0);break;case"textarea":Lt(y),Be(y);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(y.onclick=Yc)}y=v,c.updateQueue=y,y!==null&&(c.flags|=4)}else{M=v.nodeType===9?v:v.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=at(g)),a==="http://www.w3.org/1999/xhtml"?g==="script"?(a=M.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof y.is=="string"?a=M.createElement(g,{is:y.is}):(a=M.createElement(g),g==="select"&&(M=a,y.multiple?M.multiple=!0:y.size&&(M.size=y.size))):a=M.createElementNS(a,g),a[Kn]=c,a[Gs]=y,z1(a,c,!1,!1),c.stateNode=a;t:{switch(M=Xe(g,y),g){case"dialog":_e("cancel",a),_e("close",a),v=y;break;case"iframe":case"object":case"embed":_e("load",a),v=y;break;case"video":case"audio":for(v=0;v<Us.length;v++)_e(Us[v],a);v=y;break;case"source":_e("error",a),v=y;break;case"img":case"image":case"link":_e("error",a),_e("load",a),v=y;break;case"details":_e("toggle",a),v=y;break;case"input":ke(a,y),v=Ye(a,y),_e("invalid",a);break;case"option":v=y;break;case"select":a._wrapperState={wasMultiple:!!y.multiple},v=O({},y,{value:void 0}),_e("invalid",a);break;case"textarea":Yn(a,y),v=Ar(a,y),_e("invalid",a);break;default:v=y}ye(g,v),z=v;for(_ in z)if(z.hasOwnProperty(_)){var Y=z[_];_==="style"?He(a,Y):_==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,Y!=null&&$t(a,Y)):_==="children"?typeof Y=="string"?(g!=="textarea"||Y!=="")&&Xt(a,Y):typeof Y=="number"&&Xt(a,""+Y):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(i.hasOwnProperty(_)?Y!=null&&_==="onScroll"&&_e("scroll",a):Y!=null&&S(a,_,Y,M))}switch(g){case"input":Lt(a),Me(a,y,!1);break;case"textarea":Lt(a),Be(a);break;case"option":y.value!=null&&a.setAttribute("value",""+Tt(y.value));break;case"select":a.multiple=!!y.multiple,_=y.value,_!=null?Br(a,!!y.multiple,_,!1):y.defaultValue!=null&&Br(a,!!y.multiple,y.defaultValue,!0);break;default:typeof v.onClick=="function"&&(a.onclick=Yc)}switch(g){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break t;case"img":y=!0;break t;default:y=!1}}y&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return br(c),null;case 6:if(a&&c.stateNode!=null)W1(a,c,a.memoizedProps,y);else{if(typeof y!="string"&&c.stateNode===null)throw Error(r(166));if(g=Bo(Js.current),Bo(Qn.current),tu(c)){if(y=c.stateNode,g=c.memoizedProps,y[Kn]=c,(_=y.nodeValue!==g)&&(a=nn,a!==null))switch(a.tag){case 3:Vc(y.nodeValue,g,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Vc(y.nodeValue,g,(a.mode&1)!==0)}_&&(c.flags|=4)}else y=(g.nodeType===9?g:g.ownerDocument).createTextNode(y),y[Kn]=c,c.stateNode=y}return br(c),null;case 13:if(Le(Ne),y=c.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Ae&&on!==null&&(c.mode&1)!==0&&(c.flags&128)===0)V0(),va(),c.flags|=98560,_=!1;else if(_=tu(c),y!==null&&y.dehydrated!==null){if(a===null){if(!_)throw Error(r(318));if(_=c.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Kn]=c}else va(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;br(c),_=!1}else In!==null&&(rp(In),In=null),_=!0;if(!_)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=g,c):(y=y!==null,y!==(a!==null&&a.memoizedState!==null)&&y&&(c.child.flags|=8192,(c.mode&1)!==0&&(a===null||(Ne.current&1)!==0?rr===0&&(rr=3):op())),c.updateQueue!==null&&(c.flags|=4),br(c),null);case 4:return _a(),Uf(a,c),a===null&&Vs(c.stateNode.containerInfo),br(c),null;case 10:return Cf(c.type._context),br(c),null;case 17:return Wr(c.type)&&Xc(),br(c),null;case 19:if(Le(Ne),_=c.memoizedState,_===null)return br(c),null;if(y=(c.flags&128)!==0,M=_.rendering,M===null)if(y)il(_,!1);else{if(rr!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(M=au(a),M!==null){for(c.flags|=128,il(_,!1),y=M.updateQueue,y!==null&&(c.updateQueue=y,c.flags|=4),c.subtreeFlags=0,y=g,g=c.child;g!==null;)_=g,a=y,_.flags&=14680066,M=_.alternate,M===null?(_.childLanes=0,_.lanes=a,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=M.childLanes,_.lanes=M.lanes,_.child=M.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=M.memoizedProps,_.memoizedState=M.memoizedState,_.updateQueue=M.updateQueue,_.type=M.type,a=M.dependencies,_.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),g=g.sibling;return we(Ne,Ne.current&1|2),c.child}a=a.sibling}_.tail!==null&&Jt()>Aa&&(c.flags|=128,y=!0,il(_,!1),c.lanes=4194304)}else{if(!y)if(a=au(M),a!==null){if(c.flags|=128,y=!0,g=a.updateQueue,g!==null&&(c.updateQueue=g,c.flags|=4),il(_,!0),_.tail===null&&_.tailMode==="hidden"&&!M.alternate&&!Ae)return br(c),null}else 2*Jt()-_.renderingStartTime>Aa&&g!==1073741824&&(c.flags|=128,y=!0,il(_,!1),c.lanes=4194304);_.isBackwards?(M.sibling=c.child,c.child=M):(g=_.last,g!==null?g.sibling=M:c.child=M,_.last=M)}return _.tail!==null?(c=_.tail,_.rendering=c,_.tail=c.sibling,_.renderingStartTime=Jt(),c.sibling=null,g=Ne.current,we(Ne,y?g&1|2:g&1),c):(br(c),null);case 22:case 23:return ip(),y=c.memoizedState!==null,a!==null&&a.memoizedState!==null!==y&&(c.flags|=8192),y&&(c.mode&1)!==0?(an&1073741824)!==0&&(br(c),c.subtreeFlags&6&&(c.flags|=8192)):br(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function Z3(a,c){switch(ff(c),c.tag){case 1:return Wr(c.type)&&Xc(),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return _a(),Le(qr),Le(Cr),_f(),a=c.flags,(a&65536)!==0&&(a&128)===0?(c.flags=a&-65537|128,c):null;case 5:return Sf(c),null;case 13:if(Le(Ne),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(r(340));va()}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return Le(Ne),null;case 4:return _a(),null;case 10:return Cf(c.type._context),null;case 22:case 23:return ip(),null;case 24:return null;default:return null}}var gu=!1,vr=!1,J3=typeof WeakSet=="function"?WeakSet:Set,_t=null;function Ea(a,c){var g=a.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(y){je(a,c,y)}else g.current=null}function Vf(a,c,g){try{g()}catch(y){je(a,c,y)}}var H1=!1;function t5(a,c){if(nf=Nc,a=v0(),Xd(a)){if("selectionStart"in a)var g={start:a.selectionStart,end:a.selectionEnd};else t:{g=(g=a.ownerDocument)&&g.defaultView||window;var y=g.getSelection&&g.getSelection();if(y&&y.rangeCount!==0){g=y.anchorNode;var v=y.anchorOffset,_=y.focusNode;y=y.focusOffset;try{g.nodeType,_.nodeType}catch{g=null;break t}var M=0,z=-1,Y=-1,it=0,ft=0,pt=a,dt=null;e:for(;;){for(var vt;pt!==g||v!==0&&pt.nodeType!==3||(z=M+v),pt!==_||y!==0&&pt.nodeType!==3||(Y=M+y),pt.nodeType===3&&(M+=pt.nodeValue.length),(vt=pt.firstChild)!==null;)dt=pt,pt=vt;for(;;){if(pt===a)break e;if(dt===g&&++it===v&&(z=M),dt===_&&++ft===y&&(Y=M),(vt=pt.nextSibling)!==null)break;pt=dt,dt=pt.parentNode}pt=vt}g=z===-1||Y===-1?null:{start:z,end:Y}}else g=null}g=g||{start:0,end:0}}else g=null;for(of={focusedElem:a,selectionRange:g},Nc=!1,_t=c;_t!==null;)if(c=_t,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,_t=a;else for(;_t!==null;){c=_t;try{var Et=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Et!==null){var Ft=Et.memoizedProps,Ue=Et.memoizedState,et=c.stateNode,K=et.getSnapshotBeforeUpdate(c.elementType===c.type?Ft:Mn(c.type,Ft),Ue);et.__reactInternalSnapshotBeforeUpdate=K}break;case 3:var rt=c.stateNode.containerInfo;rt.nodeType===1?rt.textContent="":rt.nodeType===9&&rt.documentElement&&rt.removeChild(rt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ct){je(c,c.return,Ct)}if(a=c.sibling,a!==null){a.return=c.return,_t=a;break}_t=c.return}return Et=H1,H1=!1,Et}function ol(a,c,g){var y=c.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var v=y=y.next;do{if((v.tag&a)===a){var _=v.destroy;v.destroy=void 0,_!==void 0&&Vf(c,g,_)}v=v.next}while(v!==y)}}function mu(a,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var g=c=c.next;do{if((g.tag&a)===a){var y=g.create;g.destroy=y()}g=g.next}while(g!==c)}}function Yf(a){var c=a.ref;if(c!==null){var g=a.stateNode;switch(a.tag){case 5:a=g;break;default:a=g}typeof c=="function"?c(a):c.current=a}}function U1(a){var c=a.alternate;c!==null&&(a.alternate=null,U1(c)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(c=a.stateNode,c!==null&&(delete c[Kn],delete c[Gs],delete c[cf],delete c[R3],delete c[P3])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function V1(a){return a.tag===5||a.tag===3||a.tag===4}function Y1(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||V1(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Gf(a,c,g){var y=a.tag;if(y===5||y===6)a=a.stateNode,c?g.nodeType===8?g.parentNode.insertBefore(a,c):g.insertBefore(a,c):(g.nodeType===8?(c=g.parentNode,c.insertBefore(a,g)):(c=g,c.appendChild(a)),g=g._reactRootContainer,g!=null||c.onclick!==null||(c.onclick=Yc));else if(y!==4&&(a=a.child,a!==null))for(Gf(a,c,g),a=a.sibling;a!==null;)Gf(a,c,g),a=a.sibling}function Xf(a,c,g){var y=a.tag;if(y===5||y===6)a=a.stateNode,c?g.insertBefore(a,c):g.appendChild(a);else if(y!==4&&(a=a.child,a!==null))for(Xf(a,c,g),a=a.sibling;a!==null;)Xf(a,c,g),a=a.sibling}var dr=null,On=!1;function Ki(a,c,g){for(g=g.child;g!==null;)G1(a,c,g),g=g.sibling}function G1(a,c,g){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(wo,g)}catch{}switch(g.tag){case 5:vr||Ea(g,c);case 6:var y=dr,v=On;dr=null,Ki(a,c,g),dr=y,On=v,dr!==null&&(On?(a=dr,g=g.stateNode,a.nodeType===8?a.parentNode.removeChild(g):a.removeChild(g)):dr.removeChild(g.stateNode));break;case 18:dr!==null&&(On?(a=dr,g=g.stateNode,a.nodeType===8?lf(a.parentNode,g):a.nodeType===1&&lf(a,g),Ps(a)):lf(dr,g.stateNode));break;case 4:y=dr,v=On,dr=g.stateNode.containerInfo,On=!0,Ki(a,c,g),dr=y,On=v;break;case 0:case 11:case 14:case 15:if(!vr&&(y=g.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){v=y=y.next;do{var _=v,M=_.destroy;_=_.tag,M!==void 0&&((_&2)!==0||(_&4)!==0)&&Vf(g,c,M),v=v.next}while(v!==y)}Ki(a,c,g);break;case 1:if(!vr&&(Ea(g,c),y=g.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=g.memoizedProps,y.state=g.memoizedState,y.componentWillUnmount()}catch(z){je(g,c,z)}Ki(a,c,g);break;case 21:Ki(a,c,g);break;case 22:g.mode&1?(vr=(y=vr)||g.memoizedState!==null,Ki(a,c,g),vr=y):Ki(a,c,g);break;default:Ki(a,c,g)}}function X1(a){var c=a.updateQueue;if(c!==null){a.updateQueue=null;var g=a.stateNode;g===null&&(g=a.stateNode=new J3),c.forEach(function(y){var v=c5.bind(null,a,y);g.has(y)||(g.add(y),y.then(v,v))})}}function Nn(a,c){var g=c.deletions;if(g!==null)for(var y=0;y<g.length;y++){var v=g[y];try{var _=a,M=c,z=M;t:for(;z!==null;){switch(z.tag){case 5:dr=z.stateNode,On=!1;break t;case 3:dr=z.stateNode.containerInfo,On=!0;break t;case 4:dr=z.stateNode.containerInfo,On=!0;break t}z=z.return}if(dr===null)throw Error(r(160));G1(_,M,v),dr=null,On=!1;var Y=v.alternate;Y!==null&&(Y.return=null),v.return=null}catch(it){je(v,c,it)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)K1(c,a),c=c.sibling}function K1(a,c){var g=a.alternate,y=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Nn(c,a),Jn(a),y&4){try{ol(3,a,a.return),mu(3,a)}catch(Ft){je(a,a.return,Ft)}try{ol(5,a,a.return)}catch(Ft){je(a,a.return,Ft)}}break;case 1:Nn(c,a),Jn(a),y&512&&g!==null&&Ea(g,g.return);break;case 5:if(Nn(c,a),Jn(a),y&512&&g!==null&&Ea(g,g.return),a.flags&32){var v=a.stateNode;try{Xt(v,"")}catch(Ft){je(a,a.return,Ft)}}if(y&4&&(v=a.stateNode,v!=null)){var _=a.memoizedProps,M=g!==null?g.memoizedProps:_,z=a.type,Y=a.updateQueue;if(a.updateQueue=null,Y!==null)try{z==="input"&&_.type==="radio"&&_.name!=null&&qe(v,_),Xe(z,M);var it=Xe(z,_);for(M=0;M<Y.length;M+=2){var ft=Y[M],pt=Y[M+1];ft==="style"?He(v,pt):ft==="dangerouslySetInnerHTML"?$t(v,pt):ft==="children"?Xt(v,pt):S(v,ft,pt,it)}switch(z){case"input":jr(v,_);break;case"textarea":mr(v,_);break;case"select":var dt=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!_.multiple;var vt=_.value;vt!=null?Br(v,!!_.multiple,vt,!1):dt!==!!_.multiple&&(_.defaultValue!=null?Br(v,!!_.multiple,_.defaultValue,!0):Br(v,!!_.multiple,_.multiple?[]:"",!1))}v[Gs]=_}catch(Ft){je(a,a.return,Ft)}}break;case 6:if(Nn(c,a),Jn(a),y&4){if(a.stateNode===null)throw Error(r(162));v=a.stateNode,_=a.memoizedProps;try{v.nodeValue=_}catch(Ft){je(a,a.return,Ft)}}break;case 3:if(Nn(c,a),Jn(a),y&4&&g!==null&&g.memoizedState.isDehydrated)try{Ps(c.containerInfo)}catch(Ft){je(a,a.return,Ft)}break;case 4:Nn(c,a),Jn(a);break;case 13:Nn(c,a),Jn(a),v=a.child,v.flags&8192&&(_=v.memoizedState!==null,v.stateNode.isHidden=_,!_||v.alternate!==null&&v.alternate.memoizedState!==null||(Zf=Jt())),y&4&&X1(a);break;case 22:if(ft=g!==null&&g.memoizedState!==null,a.mode&1?(vr=(it=vr)||ft,Nn(c,a),vr=it):Nn(c,a),Jn(a),y&8192){if(it=a.memoizedState!==null,(a.stateNode.isHidden=it)&&!ft&&(a.mode&1)!==0)for(_t=a,ft=a.child;ft!==null;){for(pt=_t=ft;_t!==null;){switch(dt=_t,vt=dt.child,dt.tag){case 0:case 11:case 14:case 15:ol(4,dt,dt.return);break;case 1:Ea(dt,dt.return);var Et=dt.stateNode;if(typeof Et.componentWillUnmount=="function"){y=dt,g=dt.return;try{c=y,Et.props=c.memoizedProps,Et.state=c.memoizedState,Et.componentWillUnmount()}catch(Ft){je(y,g,Ft)}}break;case 5:Ea(dt,dt.return);break;case 22:if(dt.memoizedState!==null){J1(pt);continue}}vt!==null?(vt.return=dt,_t=vt):J1(pt)}ft=ft.sibling}t:for(ft=null,pt=a;;){if(pt.tag===5){if(ft===null){ft=pt;try{v=pt.stateNode,it?(_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(z=pt.stateNode,Y=pt.memoizedProps.style,M=Y!=null&&Y.hasOwnProperty("display")?Y.display:null,z.style.display=Oe("display",M))}catch(Ft){je(a,a.return,Ft)}}}else if(pt.tag===6){if(ft===null)try{pt.stateNode.nodeValue=it?"":pt.memoizedProps}catch(Ft){je(a,a.return,Ft)}}else if((pt.tag!==22&&pt.tag!==23||pt.memoizedState===null||pt===a)&&pt.child!==null){pt.child.return=pt,pt=pt.child;continue}if(pt===a)break t;for(;pt.sibling===null;){if(pt.return===null||pt.return===a)break t;ft===pt&&(ft=null),pt=pt.return}ft===pt&&(ft=null),pt.sibling.return=pt.return,pt=pt.sibling}}break;case 19:Nn(c,a),Jn(a),y&4&&X1(a);break;case 21:break;default:Nn(c,a),Jn(a)}}function Jn(a){var c=a.flags;if(c&2){try{t:{for(var g=a.return;g!==null;){if(V1(g)){var y=g;break t}g=g.return}throw Error(r(160))}switch(y.tag){case 5:var v=y.stateNode;y.flags&32&&(Xt(v,""),y.flags&=-33);var _=Y1(a);Xf(a,_,v);break;case 3:case 4:var M=y.stateNode.containerInfo,z=Y1(a);Gf(a,z,M);break;default:throw Error(r(161))}}catch(Y){je(a,a.return,Y)}a.flags&=-3}c&4096&&(a.flags&=-4097)}function e5(a,c,g){_t=a,Q1(a)}function Q1(a,c,g){for(var y=(a.mode&1)!==0;_t!==null;){var v=_t,_=v.child;if(v.tag===22&&y){var M=v.memoizedState!==null||gu;if(!M){var z=v.alternate,Y=z!==null&&z.memoizedState!==null||vr;z=gu;var it=vr;if(gu=M,(vr=Y)&&!it)for(_t=v;_t!==null;)M=_t,Y=M.child,M.tag===22&&M.memoizedState!==null?tC(v):Y!==null?(Y.return=M,_t=Y):tC(v);for(;_!==null;)_t=_,Q1(_),_=_.sibling;_t=v,gu=z,vr=it}Z1(a)}else(v.subtreeFlags&8772)!==0&&_!==null?(_.return=v,_t=_):Z1(a)}}function Z1(a){for(;_t!==null;){var c=_t;if((c.flags&8772)!==0){var g=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:vr||mu(5,c);break;case 1:var y=c.stateNode;if(c.flags&4&&!vr)if(g===null)y.componentDidMount();else{var v=c.elementType===c.type?g.memoizedProps:Mn(c.type,g.memoizedProps);y.componentDidUpdate(v,g.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var _=c.updateQueue;_!==null&&J0(c,_,y);break;case 3:var M=c.updateQueue;if(M!==null){if(g=null,c.child!==null)switch(c.child.tag){case 5:g=c.child.stateNode;break;case 1:g=c.child.stateNode}J0(c,M,g)}break;case 5:var z=c.stateNode;if(g===null&&c.flags&4){g=z;var Y=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":Y.autoFocus&&g.focus();break;case"img":Y.src&&(g.src=Y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var it=c.alternate;if(it!==null){var ft=it.memoizedState;if(ft!==null){var pt=ft.dehydrated;pt!==null&&Ps(pt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}vr||c.flags&512&&Yf(c)}catch(dt){je(c,c.return,dt)}}if(c===a){_t=null;break}if(g=c.sibling,g!==null){g.return=c.return,_t=g;break}_t=c.return}}function J1(a){for(;_t!==null;){var c=_t;if(c===a){_t=null;break}var g=c.sibling;if(g!==null){g.return=c.return,_t=g;break}_t=c.return}}function tC(a){for(;_t!==null;){var c=_t;try{switch(c.tag){case 0:case 11:case 15:var g=c.return;try{mu(4,c)}catch(Y){je(c,g,Y)}break;case 1:var y=c.stateNode;if(typeof y.componentDidMount=="function"){var v=c.return;try{y.componentDidMount()}catch(Y){je(c,v,Y)}}var _=c.return;try{Yf(c)}catch(Y){je(c,_,Y)}break;case 5:var M=c.return;try{Yf(c)}catch(Y){je(c,M,Y)}}}catch(Y){je(c,c.return,Y)}if(c===a){_t=null;break}var z=c.sibling;if(z!==null){z.return=c.return,_t=z;break}_t=c.return}}var r5=Math.ceil,yu=A.ReactCurrentDispatcher,Kf=A.ReactCurrentOwner,kn=A.ReactCurrentBatchConfig,le=0,lr=null,Qe=null,fr=0,an=0,Ba=Ui(0),rr=0,al=null,Fo=0,xu=0,Qf=0,sl=null,Ur=null,Zf=0,Aa=1/0,vi=null,Cu=!1,Jf=null,Qi=null,ku=!1,Zi=null,bu=0,ll=0,tp=null,vu=-1,wu=0;function Ir(){return(le&6)!==0?Jt():vu!==-1?vu:vu=Jt()}function Ji(a){return(a.mode&1)===0?1:(le&2)!==0&&fr!==0?fr&-fr:$3.transition!==null?(wu===0&&(wu=Yx()),wu):(a=pe,a!==0||(a=window.event,a=a===void 0?16:r0(a.type)),a)}function Rn(a,c,g,y){if(50<ll)throw ll=0,tp=null,Error(r(185));Is(a,g,y),((le&2)===0||a!==lr)&&(a===lr&&((le&2)===0&&(xu|=g),rr===4&&to(a,fr)),Vr(a,y),g===1&&le===0&&(c.mode&1)===0&&(Aa=Jt()+500,Qc&&Yi()))}function Vr(a,c){var g=a.callbackNode;$A(a,c);var y=Ic(a,a===lr?fr:0);if(y===0)g!==null&&gt(g),a.callbackNode=null,a.callbackPriority=0;else if(c=y&-y,a.callbackPriority!==c){if(g!=null&&gt(g),c===1)a.tag===0?D3(rC.bind(null,a)):z0(rC.bind(null,a)),O3(function(){(le&6)===0&&Yi()}),g=null;else{switch(Gx(y)){case 1:g=ar;break;case 4:g=gn;break;case 16:g=Bn;break;case 536870912:g=Ke;break;default:g=Bn}g=uC(g,eC.bind(null,a))}a.callbackPriority=c,a.callbackNode=g}}function eC(a,c){if(vu=-1,wu=0,(le&6)!==0)throw Error(r(327));var g=a.callbackNode;if(Fa()&&a.callbackNode!==g)return null;var y=Ic(a,a===lr?fr:0);if(y===0)return null;if((y&30)!==0||(y&a.expiredLanes)!==0||c)c=Su(a,y);else{c=y;var v=le;le|=2;var _=iC();(lr!==a||fr!==c)&&(vi=null,Aa=Jt()+500,Mo(a,c));do try{o5();break}catch(z){nC(a,z)}while(!0);xf(),yu.current=_,le=v,Qe!==null?c=0:(lr=null,fr=0,c=rr)}if(c!==0){if(c===2&&(v=Md(a),v!==0&&(y=v,c=ep(a,v))),c===1)throw g=al,Mo(a,0),to(a,y),Vr(a,Jt()),g;if(c===6)to(a,y);else{if(v=a.current.alternate,(y&30)===0&&!n5(v)&&(c=Su(a,y),c===2&&(_=Md(a),_!==0&&(y=_,c=ep(a,_))),c===1))throw g=al,Mo(a,0),to(a,y),Vr(a,Jt()),g;switch(a.finishedWork=v,a.finishedLanes=y,c){case 0:case 1:throw Error(r(345));case 2:Oo(a,Ur,vi);break;case 3:if(to(a,y),(y&130023424)===y&&(c=Zf+500-Jt(),10<c)){if(Ic(a,0)!==0)break;if(v=a.suspendedLanes,(v&y)!==y){Ir(),a.pingedLanes|=a.suspendedLanes&v;break}a.timeoutHandle=sf(Oo.bind(null,a,Ur,vi),c);break}Oo(a,Ur,vi);break;case 4:if(to(a,y),(y&4194240)===y)break;for(c=a.eventTimes,v=-1;0<y;){var M=31-An(y);_=1<<M,M=c[M],M>v&&(v=M),y&=~_}if(y=v,y=Jt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*r5(y/1960))-y,10<y){a.timeoutHandle=sf(Oo.bind(null,a,Ur,vi),y);break}Oo(a,Ur,vi);break;case 5:Oo(a,Ur,vi);break;default:throw Error(r(329))}}}return Vr(a,Jt()),a.callbackNode===g?eC.bind(null,a):null}function ep(a,c){var g=sl;return a.current.memoizedState.isDehydrated&&(Mo(a,c).flags|=256),a=Su(a,c),a!==2&&(c=Ur,Ur=g,c!==null&&rp(c)),a}function rp(a){Ur===null?Ur=a:Ur.push.apply(Ur,a)}function n5(a){for(var c=a;;){if(c.flags&16384){var g=c.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var y=0;y<g.length;y++){var v=g[y],_=v.getSnapshot;v=v.value;try{if(!Fn(_(),v))return!1}catch{return!1}}}if(g=c.child,c.subtreeFlags&16384&&g!==null)g.return=c,c=g;else{if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function to(a,c){for(c&=~Qf,c&=~xu,a.suspendedLanes|=c,a.pingedLanes&=~c,a=a.expirationTimes;0<c;){var g=31-An(c),y=1<<g;a[g]=-1,c&=~y}}function rC(a){if((le&6)!==0)throw Error(r(327));Fa();var c=Ic(a,0);if((c&1)===0)return Vr(a,Jt()),null;var g=Su(a,c);if(a.tag!==0&&g===2){var y=Md(a);y!==0&&(c=y,g=ep(a,y))}if(g===1)throw g=al,Mo(a,0),to(a,c),Vr(a,Jt()),g;if(g===6)throw Error(r(345));return a.finishedWork=a.current.alternate,a.finishedLanes=c,Oo(a,Ur,vi),Vr(a,Jt()),null}function np(a,c){var g=le;le|=1;try{return a(c)}finally{le=g,le===0&&(Aa=Jt()+500,Qc&&Yi())}}function Io(a){Zi!==null&&Zi.tag===0&&(le&6)===0&&Fa();var c=le;le|=1;var g=kn.transition,y=pe;try{if(kn.transition=null,pe=1,a)return a()}finally{pe=y,kn.transition=g,le=c,(le&6)===0&&Yi()}}function ip(){an=Ba.current,Le(Ba)}function Mo(a,c){a.finishedWork=null,a.finishedLanes=0;var g=a.timeoutHandle;if(g!==-1&&(a.timeoutHandle=-1,M3(g)),Qe!==null)for(g=Qe.return;g!==null;){var y=g;switch(ff(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Xc();break;case 3:_a(),Le(qr),Le(Cr),_f();break;case 5:Sf(y);break;case 4:_a();break;case 13:Le(Ne);break;case 19:Le(Ne);break;case 10:Cf(y.type._context);break;case 22:case 23:ip()}g=g.return}if(lr=a,Qe=a=eo(a.current,null),fr=an=c,rr=0,al=null,Qf=xu=Fo=0,Ur=sl=null,Eo!==null){for(c=0;c<Eo.length;c++)if(g=Eo[c],y=g.interleaved,y!==null){g.interleaved=null;var v=y.next,_=g.pending;if(_!==null){var M=_.next;_.next=v,y.next=M}g.pending=y}Eo=null}return a}function nC(a,c){do{var g=Qe;try{if(xf(),su.current=hu,lu){for(var y=Re.memoizedState;y!==null;){var v=y.queue;v!==null&&(v.pending=null),y=y.next}lu=!1}if(Ao=0,sr=er=Re=null,tl=!1,el=0,Kf.current=null,g===null||g.return===null){rr=1,al=c,Qe=null;break}t:{var _=a,M=g.return,z=g,Y=c;if(c=fr,z.flags|=32768,Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var it=Y,ft=z,pt=ft.tag;if((ft.mode&1)===0&&(pt===0||pt===11||pt===15)){var dt=ft.alternate;dt?(ft.updateQueue=dt.updateQueue,ft.memoizedState=dt.memoizedState,ft.lanes=dt.lanes):(ft.updateQueue=null,ft.memoizedState=null)}var vt=E1(M);if(vt!==null){vt.flags&=-257,B1(vt,M,z,_,c),vt.mode&1&&L1(_,it,c),c=vt,Y=it;var Et=c.updateQueue;if(Et===null){var Ft=new Set;Ft.add(Y),c.updateQueue=Ft}else Et.add(Y);break t}else{if((c&1)===0){L1(_,it,c),op();break t}Y=Error(r(426))}}else if(Ae&&z.mode&1){var Ue=E1(M);if(Ue!==null){(Ue.flags&65536)===0&&(Ue.flags|=256),B1(Ue,M,z,_,c),mf(La(Y,z));break t}}_=Y=La(Y,z),rr!==4&&(rr=2),sl===null?sl=[_]:sl.push(_),_=M;do{switch(_.tag){case 3:_.flags|=65536,c&=-c,_.lanes|=c;var et=T1(_,Y,c);Z0(_,et);break t;case 1:z=Y;var K=_.type,rt=_.stateNode;if((_.flags&128)===0&&(typeof K.getDerivedStateFromError=="function"||rt!==null&&typeof rt.componentDidCatch=="function"&&(Qi===null||!Qi.has(rt)))){_.flags|=65536,c&=-c,_.lanes|=c;var Ct=_1(_,z,c);Z0(_,Ct);break t}}_=_.return}while(_!==null)}aC(g)}catch(Nt){c=Nt,Qe===g&&g!==null&&(Qe=g=g.return);continue}break}while(!0)}function iC(){var a=yu.current;return yu.current=hu,a===null?hu:a}function op(){(rr===0||rr===3||rr===2)&&(rr=4),lr===null||(Fo&268435455)===0&&(xu&268435455)===0||to(lr,fr)}function Su(a,c){var g=le;le|=2;var y=iC();(lr!==a||fr!==c)&&(vi=null,Mo(a,c));do try{i5();break}catch(v){nC(a,v)}while(!0);if(xf(),le=g,yu.current=y,Qe!==null)throw Error(r(261));return lr=null,fr=0,rr}function i5(){for(;Qe!==null;)oC(Qe)}function o5(){for(;Qe!==null&&!Bt();)oC(Qe)}function oC(a){var c=cC(a.alternate,a,an);a.memoizedProps=a.pendingProps,c===null?aC(a):Qe=c,Kf.current=null}function aC(a){var c=a;do{var g=c.alternate;if(a=c.return,(c.flags&32768)===0){if(g=Q3(g,c,an),g!==null){Qe=g;return}}else{if(g=Z3(g,c),g!==null){g.flags&=32767,Qe=g;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{rr=6,Qe=null;return}}if(c=c.sibling,c!==null){Qe=c;return}Qe=c=a}while(c!==null);rr===0&&(rr=5)}function Oo(a,c,g){var y=pe,v=kn.transition;try{kn.transition=null,pe=1,a5(a,c,g,y)}finally{kn.transition=v,pe=y}return null}function a5(a,c,g,y){do Fa();while(Zi!==null);if((le&6)!==0)throw Error(r(327));g=a.finishedWork;var v=a.finishedLanes;if(g===null)return null;if(a.finishedWork=null,a.finishedLanes=0,g===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0;var _=g.lanes|g.childLanes;if(jA(a,_),a===lr&&(Qe=lr=null,fr=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||ku||(ku=!0,uC(Bn,function(){return Fa(),null})),_=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||_){_=kn.transition,kn.transition=null;var M=pe;pe=1;var z=le;le|=4,Kf.current=null,t5(a,g),K1(g,a),_3(of),Nc=!!nf,of=nf=null,a.current=g,e5(g),ve(),le=z,pe=M,kn.transition=_}else a.current=g;if(ku&&(ku=!1,Zi=a,bu=v),_=a.pendingLanes,_===0&&(Qi=null),OA(g.stateNode),Vr(a,Jt()),c!==null)for(y=a.onRecoverableError,g=0;g<c.length;g++)v=c[g],y(v.value,{componentStack:v.stack,digest:v.digest});if(Cu)throw Cu=!1,a=Jf,Jf=null,a;return(bu&1)!==0&&a.tag!==0&&Fa(),_=a.pendingLanes,(_&1)!==0?a===tp?ll++:(ll=0,tp=a):ll=0,Yi(),null}function Fa(){if(Zi!==null){var a=Gx(bu),c=kn.transition,g=pe;try{if(kn.transition=null,pe=16>a?16:a,Zi===null)var y=!1;else{if(a=Zi,Zi=null,bu=0,(le&6)!==0)throw Error(r(331));var v=le;for(le|=4,_t=a.current;_t!==null;){var _=_t,M=_.child;if((_t.flags&16)!==0){var z=_.deletions;if(z!==null){for(var Y=0;Y<z.length;Y++){var it=z[Y];for(_t=it;_t!==null;){var ft=_t;switch(ft.tag){case 0:case 11:case 15:ol(8,ft,_)}var pt=ft.child;if(pt!==null)pt.return=ft,_t=pt;else for(;_t!==null;){ft=_t;var dt=ft.sibling,vt=ft.return;if(U1(ft),ft===it){_t=null;break}if(dt!==null){dt.return=vt,_t=dt;break}_t=vt}}}var Et=_.alternate;if(Et!==null){var Ft=Et.child;if(Ft!==null){Et.child=null;do{var Ue=Ft.sibling;Ft.sibling=null,Ft=Ue}while(Ft!==null)}}_t=_}}if((_.subtreeFlags&2064)!==0&&M!==null)M.return=_,_t=M;else t:for(;_t!==null;){if(_=_t,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:ol(9,_,_.return)}var et=_.sibling;if(et!==null){et.return=_.return,_t=et;break t}_t=_.return}}var K=a.current;for(_t=K;_t!==null;){M=_t;var rt=M.child;if((M.subtreeFlags&2064)!==0&&rt!==null)rt.return=M,_t=rt;else t:for(M=K;_t!==null;){if(z=_t,(z.flags&2048)!==0)try{switch(z.tag){case 0:case 11:case 15:mu(9,z)}}catch(Nt){je(z,z.return,Nt)}if(z===M){_t=null;break t}var Ct=z.sibling;if(Ct!==null){Ct.return=z.return,_t=Ct;break t}_t=z.return}}if(le=v,Yi(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(wo,a)}catch{}y=!0}return y}finally{pe=g,kn.transition=c}}return!1}function sC(a,c,g){c=La(g,c),c=T1(a,c,1),a=Xi(a,c,1),c=Ir(),a!==null&&(Is(a,1,c),Vr(a,c))}function je(a,c,g){if(a.tag===3)sC(a,a,g);else for(;c!==null;){if(c.tag===3){sC(c,a,g);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Qi===null||!Qi.has(y))){a=La(g,a),a=_1(c,a,1),c=Xi(c,a,1),a=Ir(),c!==null&&(Is(c,1,a),Vr(c,a));break}}c=c.return}}function s5(a,c,g){var y=a.pingCache;y!==null&&y.delete(c),c=Ir(),a.pingedLanes|=a.suspendedLanes&g,lr===a&&(fr&g)===g&&(rr===4||rr===3&&(fr&130023424)===fr&&500>Jt()-Zf?Mo(a,0):Qf|=g),Vr(a,c)}function lC(a,c){c===0&&((a.mode&1)===0?c=1:(c=Fc,Fc<<=1,(Fc&130023424)===0&&(Fc=4194304)));var g=Ir();a=Ci(a,c),a!==null&&(Is(a,c,g),Vr(a,g))}function l5(a){var c=a.memoizedState,g=0;c!==null&&(g=c.retryLane),lC(a,g)}function c5(a,c){var g=0;switch(a.tag){case 13:var y=a.stateNode,v=a.memoizedState;v!==null&&(g=v.retryLane);break;case 19:y=a.stateNode;break;default:throw Error(r(314))}y!==null&&y.delete(c),lC(a,g)}var cC;cC=function(a,c,g){if(a!==null)if(a.memoizedProps!==c.pendingProps||qr.current)Hr=!0;else{if((a.lanes&g)===0&&(c.flags&128)===0)return Hr=!1,K3(a,c,g);Hr=(a.flags&131072)!==0}else Hr=!1,Ae&&(c.flags&1048576)!==0&&q0(c,Jc,c.index);switch(c.lanes=0,c.tag){case 2:var y=c.type;pu(a,c),a=c.pendingProps;var v=Ca(c,Cr.current);Ta(c,g),v=Bf(null,c,y,a,v,g);var _=Af();return c.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Wr(y)?(_=!0,Kc(c)):_=!1,c.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,vf(c),v.updater=du,c.stateNode=v,v._reactInternals=c,Rf(c,y,a,g),c=jf(null,c,y,!0,_,g)):(c.tag=0,Ae&&_&&df(c),Fr(null,c,v,g),c=c.child),c;case 16:y=c.elementType;t:{switch(pu(a,c),a=c.pendingProps,v=y._init,y=v(y._payload),c.type=y,v=c.tag=h5(y),a=Mn(y,a),v){case 0:c=$f(null,c,y,a,g);break t;case 1:c=N1(null,c,y,a,g);break t;case 11:c=A1(null,c,y,a,g);break t;case 14:c=F1(null,c,y,Mn(y.type,a),g);break t}throw Error(r(306,y,""))}return c;case 0:return y=c.type,v=c.pendingProps,v=c.elementType===y?v:Mn(y,v),$f(a,c,y,v,g);case 1:return y=c.type,v=c.pendingProps,v=c.elementType===y?v:Mn(y,v),N1(a,c,y,v,g);case 3:t:{if(R1(c),a===null)throw Error(r(387));y=c.pendingProps,_=c.memoizedState,v=_.element,Q0(a,c),ou(c,y,null,g);var M=c.memoizedState;if(y=M.element,_.isDehydrated)if(_={element:y,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},c.updateQueue.baseState=_,c.memoizedState=_,c.flags&256){v=La(Error(r(423)),c),c=P1(a,c,y,g,v);break t}else if(y!==v){v=La(Error(r(424)),c),c=P1(a,c,y,g,v);break t}else for(on=Hi(c.stateNode.containerInfo.firstChild),nn=c,Ae=!0,In=null,g=X0(c,null,y,g),c.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(va(),y===v){c=bi(a,c,g);break t}Fr(a,c,y,g)}c=c.child}return c;case 5:return t1(c),a===null&&gf(c),y=c.type,v=c.pendingProps,_=a!==null?a.memoizedProps:null,M=v.children,af(y,v)?M=null:_!==null&&af(y,_)&&(c.flags|=32),O1(a,c),Fr(a,c,M,g),c.child;case 6:return a===null&&gf(c),null;case 13:return D1(a,c,g);case 4:return wf(c,c.stateNode.containerInfo),y=c.pendingProps,a===null?c.child=wa(c,null,y,g):Fr(a,c,y,g),c.child;case 11:return y=c.type,v=c.pendingProps,v=c.elementType===y?v:Mn(y,v),A1(a,c,y,v,g);case 7:return Fr(a,c,c.pendingProps,g),c.child;case 8:return Fr(a,c,c.pendingProps.children,g),c.child;case 12:return Fr(a,c,c.pendingProps.children,g),c.child;case 10:t:{if(y=c.type._context,v=c.pendingProps,_=c.memoizedProps,M=v.value,we(ru,y._currentValue),y._currentValue=M,_!==null)if(Fn(_.value,M)){if(_.children===v.children&&!qr.current){c=bi(a,c,g);break t}}else for(_=c.child,_!==null&&(_.return=c);_!==null;){var z=_.dependencies;if(z!==null){M=_.child;for(var Y=z.firstContext;Y!==null;){if(Y.context===y){if(_.tag===1){Y=ki(-1,g&-g),Y.tag=2;var it=_.updateQueue;if(it!==null){it=it.shared;var ft=it.pending;ft===null?Y.next=Y:(Y.next=ft.next,ft.next=Y),it.pending=Y}}_.lanes|=g,Y=_.alternate,Y!==null&&(Y.lanes|=g),kf(_.return,g,c),z.lanes|=g;break}Y=Y.next}}else if(_.tag===10)M=_.type===c.type?null:_.child;else if(_.tag===18){if(M=_.return,M===null)throw Error(r(341));M.lanes|=g,z=M.alternate,z!==null&&(z.lanes|=g),kf(M,g,c),M=_.sibling}else M=_.child;if(M!==null)M.return=_;else for(M=_;M!==null;){if(M===c){M=null;break}if(_=M.sibling,_!==null){_.return=M.return,M=_;break}M=M.return}_=M}Fr(a,c,v.children,g),c=c.child}return c;case 9:return v=c.type,y=c.pendingProps.children,Ta(c,g),v=xn(v),y=y(v),c.flags|=1,Fr(a,c,y,g),c.child;case 14:return y=c.type,v=Mn(y,c.pendingProps),v=Mn(y.type,v),F1(a,c,y,v,g);case 15:return I1(a,c,c.type,c.pendingProps,g);case 17:return y=c.type,v=c.pendingProps,v=c.elementType===y?v:Mn(y,v),pu(a,c),c.tag=1,Wr(y)?(a=!0,Kc(c)):a=!1,Ta(c,g),w1(c,y,v),Rf(c,y,v,g),jf(null,c,y,!0,a,g);case 19:return j1(a,c,g);case 22:return M1(a,c,g)}throw Error(r(156,c.tag))};function uC(a,c){return G(a,c)}function u5(a,c,g,y){this.tag=a,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(a,c,g,y){return new u5(a,c,g,y)}function ap(a){return a=a.prototype,!(!a||!a.isReactComponent)}function h5(a){if(typeof a=="function")return ap(a)?1:0;if(a!=null){if(a=a.$$typeof,a===H)return 11;if(a===W)return 14}return 2}function eo(a,c){var g=a.alternate;return g===null?(g=bn(a.tag,c,a.key,a.mode),g.elementType=a.elementType,g.type=a.type,g.stateNode=a.stateNode,g.alternate=a,a.alternate=g):(g.pendingProps=c,g.type=a.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=a.flags&14680064,g.childLanes=a.childLanes,g.lanes=a.lanes,g.child=a.child,g.memoizedProps=a.memoizedProps,g.memoizedState=a.memoizedState,g.updateQueue=a.updateQueue,c=a.dependencies,g.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},g.sibling=a.sibling,g.index=a.index,g.ref=a.ref,g}function Tu(a,c,g,y,v,_){var M=2;if(y=a,typeof a=="function")ap(a)&&(M=1);else if(typeof a=="string")M=5;else t:switch(a){case B:return No(g.children,v,_,c);case P:M=8,v|=8;break;case q:return a=bn(12,g,c,v|2),a.elementType=q,a.lanes=_,a;case Q:return a=bn(13,g,c,v),a.elementType=Q,a.lanes=_,a;case V:return a=bn(19,g,c,v),a.elementType=V,a.lanes=_,a;case X:return _u(g,v,_,c);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case R:M=10;break t;case $:M=9;break t;case H:M=11;break t;case W:M=14;break t;case U:M=16,y=null;break t}throw Error(r(130,a==null?a:typeof a,""))}return c=bn(M,g,c,v),c.elementType=a,c.type=y,c.lanes=_,c}function No(a,c,g,y){return a=bn(7,a,y,c),a.lanes=g,a}function _u(a,c,g,y){return a=bn(22,a,y,c),a.elementType=X,a.lanes=g,a.stateNode={isHidden:!1},a}function sp(a,c,g){return a=bn(6,a,null,c),a.lanes=g,a}function lp(a,c,g){return c=bn(4,a.children!==null?a.children:[],a.key,c),c.lanes=g,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}function d5(a,c,g,y,v){this.tag=c,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Od(0),this.expirationTimes=Od(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Od(0),this.identifierPrefix=y,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cp(a,c,g,y,v,_,M,z,Y){return a=new d5(a,c,g,z,Y),c===1?(c=1,_===!0&&(c|=8)):c=0,_=bn(3,null,null,c),a.current=_,_.stateNode=a,_.memoizedState={element:y,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},vf(_),a}function f5(a,c,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:y==null?null:""+y,children:a,containerInfo:c,implementation:g}}function hC(a){if(!a)return Vi;a=a._reactInternals;t:{if(Xn(a)!==a||a.tag!==1)throw Error(r(170));var c=a;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Wr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(c!==null);throw Error(r(171))}if(a.tag===1){var g=a.type;if(Wr(g))return $0(a,g,c)}return c}function dC(a,c,g,y,v,_,M,z,Y){return a=cp(g,y,!0,a,v,_,M,z,Y),a.context=hC(null),g=a.current,y=Ir(),v=Ji(g),_=ki(y,v),_.callback=c??null,Xi(g,_,v),a.current.lanes=v,Is(a,v,y),Vr(a,y),a}function Lu(a,c,g,y){var v=c.current,_=Ir(),M=Ji(v);return g=hC(g),c.context===null?c.context=g:c.pendingContext=g,c=ki(_,M),c.payload={element:a},y=y===void 0?null:y,y!==null&&(c.callback=y),a=Xi(v,c,M),a!==null&&(Rn(a,v,M,_),iu(a,v,M)),M}function Eu(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function fC(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var g=a.retryLane;a.retryLane=g!==0&&g<c?g:c}}function up(a,c){fC(a,c),(a=a.alternate)&&fC(a,c)}function p5(){return null}var pC=typeof reportError=="function"?reportError:function(a){console.error(a)};function hp(a){this._internalRoot=a}Bu.prototype.render=hp.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(r(409));Lu(a,c,null,null)},Bu.prototype.unmount=hp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;Io(function(){Lu(null,a,null,null)}),c[gi]=null}};function Bu(a){this._internalRoot=a}Bu.prototype.unstable_scheduleHydration=function(a){if(a){var c=Qx();a={blockedOn:null,target:a,priority:c};for(var g=0;g<zi.length&&c!==0&&c<zi[g].priority;g++);zi.splice(g,0,a),g===0&&t0(a)}};function dp(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Au(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function gC(){}function g5(a,c,g,y,v){if(v){if(typeof y=="function"){var _=y;y=function(){var it=Eu(M);_.call(it)}}var M=dC(c,y,a,0,null,!1,!1,"",gC);return a._reactRootContainer=M,a[gi]=M.current,Vs(a.nodeType===8?a.parentNode:a),Io(),M}for(;v=a.lastChild;)a.removeChild(v);if(typeof y=="function"){var z=y;y=function(){var it=Eu(Y);z.call(it)}}var Y=cp(a,0,!1,null,null,!1,!1,"",gC);return a._reactRootContainer=Y,a[gi]=Y.current,Vs(a.nodeType===8?a.parentNode:a),Io(function(){Lu(c,Y,g,y)}),Y}function Fu(a,c,g,y,v){var _=g._reactRootContainer;if(_){var M=_;if(typeof v=="function"){var z=v;v=function(){var Y=Eu(M);z.call(Y)}}Lu(c,M,a,v)}else M=g5(g,c,a,v,y);return Eu(M)}Xx=function(a){switch(a.tag){case 3:var c=a.stateNode;if(c.current.memoizedState.isDehydrated){var g=Fs(c.pendingLanes);g!==0&&(Nd(c,g|1),Vr(c,Jt()),(le&6)===0&&(Aa=Jt()+500,Yi()))}break;case 13:Io(function(){var y=Ci(a,1);if(y!==null){var v=Ir();Rn(y,a,1,v)}}),up(a,1)}},Rd=function(a){if(a.tag===13){var c=Ci(a,134217728);if(c!==null){var g=Ir();Rn(c,a,134217728,g)}up(a,134217728)}},Kx=function(a){if(a.tag===13){var c=Ji(a),g=Ci(a,c);if(g!==null){var y=Ir();Rn(g,a,c,y)}up(a,c)}},Qx=function(){return pe},Zx=function(a,c){var g=pe;try{return pe=a,c()}finally{pe=g}},xe=function(a,c,g){switch(c){case"input":if(jr(a,g),c=g.name,g.type==="radio"&&c!=null){for(g=a;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<g.length;c++){var y=g[c];if(y!==a&&y.form===a.form){var v=Gc(y);if(!v)throw Error(r(90));re(y),jr(y,v)}}}break;case"textarea":mr(a,g);break;case"select":c=g.value,c!=null&&Br(a,!!g.multiple,c,!1)}},be=np,fi=Io;var m5={usingClientEntryPoint:!1,Events:[Xs,ya,Gc,ko,bo,np]},cl={findFiberByHostInstance:So,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y5={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Bc(a),a===null?null:a.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||p5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{wo=Iu.inject(y5),en=Iu}catch{}}return Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m5,Yr.createPortal=function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dp(c))throw Error(r(200));return f5(a,c,null,g)},Yr.createRoot=function(a,c){if(!dp(a))throw Error(r(299));var g=!1,y="",v=pC;return c!=null&&(c.unstable_strictMode===!0&&(g=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onRecoverableError!==void 0&&(v=c.onRecoverableError)),c=cp(a,1,!1,null,null,g,!1,y,v),a[gi]=c.current,Vs(a.nodeType===8?a.parentNode:a),new hp(c)},Yr.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var c=a._reactInternals;if(c===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=Bc(c),a=a===null?null:a.stateNode,a},Yr.flushSync=function(a){return Io(a)},Yr.hydrate=function(a,c,g){if(!Au(c))throw Error(r(200));return Fu(null,a,c,!0,g)},Yr.hydrateRoot=function(a,c,g){if(!dp(a))throw Error(r(405));var y=g!=null&&g.hydratedSources||null,v=!1,_="",M=pC;if(g!=null&&(g.unstable_strictMode===!0&&(v=!0),g.identifierPrefix!==void 0&&(_=g.identifierPrefix),g.onRecoverableError!==void 0&&(M=g.onRecoverableError)),c=dC(c,null,a,1,g??null,v,!1,_,M),a[gi]=c.current,Vs(a),y)for(a=0;a<y.length;a++)g=y[a],v=g._getVersion,v=v(g._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[g,v]:c.mutableSourceEagerHydrationData.push(g,v);return new Bu(c)},Yr.render=function(a,c,g){if(!Au(c))throw Error(r(200));return Fu(null,a,c,!1,g)},Yr.unmountComponentAtNode=function(a){if(!Au(a))throw Error(r(40));return a._reactRootContainer?(Io(function(){Fu(null,null,a,!1,function(){a._reactRootContainer=null,a[gi]=null})}),!0):!1},Yr.unstable_batchedUpdates=np,Yr.unstable_renderSubtreeIntoContainer=function(a,c,g,y){if(!Au(g))throw Error(r(200));if(a==null||a._reactInternals===void 0)throw Error(r(38));return Fu(a,c,g,!1,y)},Yr.version="18.3.1-next-f1338f8080-20240426",Yr}var wC;function L5(){if(wC)return gp.exports;wC=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),gp.exports=_5(),gp.exports}var SC;function E5(){if(SC)return Mu;SC=1;var t=L5();return Mu.createRoot=t.createRoot,Mu.hydrateRoot=t.hydrateRoot,Mu}var B5=E5();const A5=tr(B5);class F5 extends Ie.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("ErrorBoundary caught an error:",e,r)}render(){var e,r;return this.state.hasError?L.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",color:"var(--text-primary)"},children:[L.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:":("}),L.jsx("h2",{style:{fontSize:"18px",fontWeight:600,marginBottom:"8px"},children:"出现了一些问题"}),L.jsx("p",{style:{fontSize:"14px",color:"var(--text-secondary)",marginBottom:"8px",maxWidth:"400px",textAlign:"center"},children:((e=this.state.error)==null?void 0:e.message)||"发生了未知错误"}),L.jsx("pre",{style:{fontSize:"12px",color:"var(--text-tertiary)",marginBottom:"20px",maxWidth:"600px",overflow:"auto",padding:"12px",background:"var(--bg-secondary)",borderRadius:"8px",border:"1px solid var(--border)",maxHeight:"150px",width:"100%"},children:(r=this.state.error)==null?void 0:r.stack}),L.jsx("button",{onClick:this.handleRetry,style:{padding:"8px 24px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--accent)",color:"var(--text-inverse)",fontSize:"14px",cursor:"pointer",fontWeight:500},children:"重试"})]}):this.props.children}}const I5="modulepreload",M5=function(t){return"/"+t},TC={},oe=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=s(r.map(h=>{if(h=M5(h),h in TC)return;TC[h]=!0;const d=h.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${f}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":I5,d||(m.as="script"),m.crossOrigin="",m.href=h,u&&m.setAttribute("nonce",u),document.head.appendChild(m),d)return new Promise((p,x)=>{m.addEventListener("load",p),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return e().catch(o)})},_C=t=>{let e;const r=new Set,n=(h,d)=>{const f=typeof h=="function"?h(e):h;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(p=>p(e,m))}},i=()=>e,l={setState:n,getState:i,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=e=t(n,i,l);return l},O5=(t=>t?_C(t):_C),N5=t=>t;function R5(t,e=N5){const r=Ie.useSyncExternalStore(t.subscribe,Ie.useCallback(()=>e(t.getState()),[t,e]),Ie.useCallback(()=>e(t.getInitialState()),[t,e]));return Ie.useDebugValue(r),r}const LC=t=>{const e=O5(t),r=n=>R5(e,n);return Object.assign(r,e),r},y2=(t=>t?LC(t):LC),P5="/api";async function _n(t,e){const n=await(await fetch(`${P5}${t}`,{headers:{"Content-Type":"application/json",...e==null?void 0:e.headers},...e})).json();if(!n.success)throw new Error(n.error.message);return n.data}async function D5(){return _n("/projects")}async function wy(t){return _n(`/wiki/${encodeURIComponent(t)}`)}async function Yl(t,e,r){return _n(`/wiki/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${encodeURIComponent(r)}`)}async function tm(t,e,r,n,i){return _n(`/wiki/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify({content:n,expectedMtime:i})})}async function x2(t,e){return _n(`/search/${encodeURIComponent(t)}?q=${encodeURIComponent(e)}`)}async function Pl(){return _n("/config")}async function El(t){return _n("/config",{method:"PUT",body:JSON.stringify(t)})}async function C2(t){return _n("/projects",{method:"POST",body:JSON.stringify({path:t})})}async function k2(t){return _n(`/projects/${encodeURIComponent(t)}`,{method:"DELETE"})}async function b2(){return _n("/scan",{method:"POST"})}async function em(){return _n("/scan/status")}async function v2(t,e,r){const n=new URLSearchParams({path:t});return e&&n.append("startLine",e.toString()),r&&n.append("endLine",r.toString()),_n(`/files/content?${n.toString()}`)}const w2=Object.freeze(Object.defineProperty({__proto__:null,addProject:C2,deleteProject:k2,getConfig:Pl,getFileContent:v2,getPage:Yl,getProjects:D5,getScanStatus:em,getWiki:wy,putPage:tm,searchProject:x2,triggerScan:b2,updateConfig:El},Symbol.toStringTag,{value:"Module"})),EC={projects:[],config:null,currentWiki:null,currentView:null,sidebarOpen:!0,settingsOpen:!1,searchOpen:!1,searchQuery:"",searchResults:[],expandedSections:[],expandedGroups:[],referenceOpen:!1,referenceData:null,mermaidViewerOpen:!1,mermaidViewerData:null,loadingWiki:!1,loadingPage:!1,loadingProjects:!1},kt=y2((t,e)=>({...EC,setProjects:r=>t({projects:r}),setConfig:r=>t({config:r}),setCurrentWiki:r=>t({currentWiki:r}),setCurrentView:r=>t({currentView:r}),setCurrentProject:r=>t(n=>({config:n.config?{...n.config,lastOpenedProject:r}:n.config})),toggleSidebar:()=>t(r=>({sidebarOpen:!r.sidebarOpen})),setSidebarOpen:r=>t({sidebarOpen:r}),toggleSettings:()=>t(r=>({settingsOpen:!r.settingsOpen})),setSettingsOpen:r=>t({settingsOpen:r}),toggleSearch:()=>t(r=>({searchOpen:!r.searchOpen})),setSearchOpen:r=>t(n=>({searchOpen:r,searchQuery:r?n.searchQuery:"",searchResults:r?n.searchResults:[]})),setSearchQuery:r=>t({searchQuery:r}),setSearchResults:r=>t({searchResults:r}),openReference:(r,n,i)=>t({referenceOpen:!0,referenceData:{filePath:r,startLine:n,endLine:i}}),closeReference:()=>t({referenceOpen:!1,referenceData:null}),openMermaidViewer:(r,n)=>t({mermaidViewerOpen:!0,mermaidViewerData:{svg:r,code:n}}),closeMermaidViewer:()=>t({mermaidViewerOpen:!1,mermaidViewerData:null}),toggleSection:r=>t(n=>({expandedSections:n.expandedSections.includes(r)?n.expandedSections.filter(i=>i!==r):[...n.expandedSections,r]})),toggleGroup:r=>t(n=>({expandedGroups:n.expandedGroups.includes(r)?n.expandedGroups.filter(i=>i!==r):[...n.expandedGroups,r]})),setExpandedSections:r=>t({expandedSections:r}),setExpandedGroups:r=>t({expandedGroups:r}),setLoadingWiki:r=>t({loadingWiki:r}),setLoadingPage:r=>t({loadingPage:r}),setLoadingProjects:r=>t({loadingProjects:r}),setEditMode:()=>t(r=>r.currentView?{currentView:{...r.currentView,mode:"edit",editContent:r.currentView.content,isDirty:!1}}:r),setReadMode:()=>t(r=>r.currentView?{currentView:{...r.currentView,mode:"read",editContent:null,isDirty:!1}}:r),updateEditContent:r=>t(n=>n.currentView?{currentView:{...n.currentView,editContent:r,isDirty:r!==n.currentView.content}}:n),savePage:async()=>{var i,o;const{currentView:r}=e();if(!r)return;const n=r.mode==="edit"?r.editContent:r.content;try{const{mtime:s}=await tm(r.projectId,r.version,r.slug,n,r.fileMtime??void 0);t(l=>({currentView:l.currentView?{...l.currentView,content:l.currentView.mode==="edit"?l.currentView.editContent:l.currentView.content,mode:"read",editContent:null,isDirty:!1,fileMtime:s,conflictData:null}:null}))}catch(s){if(!(((i=s==null?void 0:s.message)==null?void 0:i.includes("modified since load"))||((o=s==null?void 0:s.message)==null?void 0:o.includes("CONFLICT"))))throw s;if(r.mode==="read"){const h=await Yl(r.projectId,r.version,r.slug);t(d=>({currentView:d.currentView?{...d.currentView,content:h.content,fileMtime:h.mtime,conflictData:null}:null}));return}const u=await Yl(r.projectId,r.version,r.slug);t(h=>({currentView:h.currentView?{...h.currentView,conflictData:{serverContent:u.content,serverMtime:u.mtime}}:null}))}},resolveConflict:r=>{const{currentView:n}=e();n!=null&&n.conflictData&&t(r==="server"?i=>({currentView:i.currentView?{...i.currentView,editContent:i.currentView.conflictData.serverContent,fileMtime:i.currentView.conflictData.serverMtime,isDirty:!1,conflictData:null}:null}):i=>({currentView:i.currentView?{...i.currentView,fileMtime:i.currentView.conflictData.serverMtime,conflictData:null}:null}))},saveCalloutAction:async r=>{const{currentView:n}=e();if(!n)return;const{mtime:i}=await tm(n.projectId,n.version,n.slug,r,n.fileMtime??void 0);t(o=>({currentView:o.currentView?{...o.currentView,content:r,fileMtime:i}:null}))},reset:()=>t(EC)})),BC={aiPanelOpen:!1,aiPanelWidth:400,aiStatus:null,showInstallPrompt:!1,aiSessions:[],activeSessionId:null,aiMessages:[],aiStreaming:!1,aiConnected:!1,aiError:null},ie=y2(t=>({...BC,toggleAIPanel:()=>t(e=>({aiPanelOpen:!e.aiPanelOpen})),setAIPanelOpen:e=>t({aiPanelOpen:e}),setAIPanelWidth:e=>t({aiPanelWidth:e}),setAIStatus:e=>t({aiStatus:e}),setShowInstallPrompt:e=>t({showInstallPrompt:e}),setAISessions:e=>t({aiSessions:e}),setActiveSession:e=>t({activeSessionId:e}),setAIMessages:e=>t({aiMessages:e}),addMessage:e=>t(r=>({aiMessages:[...r.aiMessages,e]})),updateMessage:(e,r)=>t(n=>({aiMessages:n.aiMessages.map(i=>i.id===e?{...i,...r}:i)})),appendToMessage:(e,r,n)=>t(i=>({aiMessages:i.aiMessages.map(o=>{if(o.id!==e)return o;const s=o.content,l=s[r]||"";return{...o,content:{...s,[r]:l+n}}})})),setStreaming:e=>t({aiStreaming:e}),setConnected:e=>t({aiConnected:e}),setAIError:e=>t({aiError:e}),clearMessages:()=>t({aiMessages:[],aiStreaming:!1}),resetAI:()=>t(BC)})),$5=({size:t=16})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M6 9l6 6 6-6"})}),j5=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("path",{d:"M21 21l-4.35-4.35"})]}),z5=({size:t=18})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"12",cy:"12",r:"3"}),L.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),rm=({size:t=20})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),L.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),q5=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("path",{d:"M12 2L14.09 8.26L20 9.27L15.55 13.97L16.91 20L12 16.9L7.09 20L8.45 13.97L4 9.27L9.91 8.26L12 2Z"})}),W5=()=>{const t=kt(h=>h.projects),e=kt(h=>h.config),r=kt(h=>h.setCurrentProject),[n,i]=nt.useState(!1),o=nt.useRef(null),s=e==null?void 0:e.lastOpenedProject,l=t.find(h=>h.id===s);nt.useEffect(()=>{function h(d){o.current&&!o.current.contains(d.target)&&i(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const u=async h=>{r(h.id),i(!1);try{const{updateConfig:d}=await oe(async()=>{const{updateConfig:f}=await Promise.resolve().then(()=>w2);return{updateConfig:f}},void 0);await d({lastOpenedProject:h.id})}catch(d){console.error("Failed to persist project selection:",d)}};return t.length===0?L.jsx("span",{className:"text-[13px] text-content-tertiary",children:"暂无项目"}):L.jsxs("div",{ref:o,className:"relative",children:[L.jsxs("button",{onClick:()=>i(!n),className:`
42
- flex items-center gap-2
43
- px-3 py-1.5 min-w-[140px]
44
- border border-edge rounded-lg
45
- bg-surface-secondary text-content
46
- text-[13px] font-medium
47
- transition-colors duration-150
48
- hover:border-content-tertiary
49
- `,children:[L.jsx(rm,{size:14}),L.jsx("span",{className:"flex-1 text-left truncate",children:(l==null?void 0:l.name)||"选择项目"}),L.jsx($5,{size:14})]}),n&&L.jsx("div",{className:`
50
- absolute top-full left-0 mt-1
51
- min-w-[220px]
52
- bg-surface border border-edge
53
- rounded-lg shadow-lg
54
- z-50 overflow-hidden
55
- animate-fade-in
56
- `,children:t.map(h=>L.jsxs("button",{onClick:()=>u(h),className:`
57
- flex items-center gap-2 w-full
58
- px-3 py-2
59
- text-[13px] text-left
60
- transition-colors duration-150
61
- hover:bg-surface-hover
62
- ${h.id===s?"bg-accent-light text-accent-text":"text-content"}
63
- `,children:[L.jsx(rm,{size:14}),L.jsx("span",{className:"truncate",children:h.name})]},h.id))})]})},H5=()=>{const t=kt(i=>i.toggleSearch),e=kt(i=>i.toggleSettings),r=ie(i=>i.toggleAIPanel),n=ie(i=>i.aiPanelOpen);return L.jsxs("header",{className:`
64
- h-14 flex items-center justify-between
65
- px-5 border-b border-edge
66
- bg-surface-secondary/80 backdrop-blur-md
67
- shrink-0 z-10
68
- `,children:[L.jsxs("div",{className:"flex items-center gap-3",children:[L.jsxs("div",{className:"flex items-center gap-2.5 select-none",children:[L.jsx(rm,{size:20}),L.jsx("span",{className:"font-semibold text-[15px] text-content",children:"Zread Browser"})]}),L.jsx("div",{className:"w-px h-6 bg-edge"}),L.jsx(W5,{})]}),L.jsxs("button",{onClick:t,className:`
69
- flex items-center gap-2
70
- px-3.5 py-2 min-w-[200px]
71
- border border-edge rounded-lg
72
- bg-surface-secondary text-content-tertiary
73
- text-[13px]
74
- transition-colors duration-150
75
- hover:border-content-tertiary hover:text-content
76
- `,children:[L.jsx(j5,{size:14}),L.jsx("span",{className:"flex-1 text-left",children:"搜索..."}),L.jsx("kbd",{className:"text-[11px] px-1.5 py-0.5 rounded bg-surface-tertiary border border-edge-light font-mono",children:"⌘K"})]}),L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsxs("button",{onClick:r,"aria-pressed":n,className:`
77
- flex items-center gap-1.5 px-3 py-1.5
78
- rounded-lg border
79
- transition-all duration-150
80
- border-edge bg-surface-secondary text-content-tertiary
81
- hover:bg-surface-hover hover:text-content
82
- aria-pressed:border-accent
83
- aria-pressed:bg-accent-light
84
- aria-pressed:text-accent-text
85
- aria-pressed:hover:bg-accent-light
86
- `,title:"问问 AI",children:[L.jsx(q5,{size:14}),L.jsx("span",{className:"text-[13px] font-medium",children:"问问 AI"})]}),L.jsx("button",{onClick:e,className:`
87
- w-9 h-9
88
- flex items-center justify-center
89
- rounded-lg border border-edge
90
- bg-surface-secondary text-content-tertiary
91
- hover:bg-surface-hover hover:text-content
92
- transition-colors duration-150
93
- `,title:"设置",children:L.jsx(z5,{size:18})})]})]})},S2=({size:t=14,rotated:e})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`shrink-0 transition-transform duration-150 ${e?"rotate-90":""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})}),U5=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),L.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]}),V5=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),L.jsx("line",{x1:"14",y1:"3",x2:"14",y2:"21"})]});function Y5(t){const e=new Map;for(const n of t.pages){e.has(n.section)||e.set(n.section,{grouped:new Map,ungrouped:[]});const i=e.get(n.section);n.group?(i.grouped.has(n.group)||i.grouped.set(n.group,[]),i.grouped.get(n.group).push(n)):i.ungrouped.push(n)}const r=[];for(const[n,i]of e){const o=[];for(const[s,l]of i.grouped)o.push({name:s,pages:l});r.push({name:n,groups:o,ungroupedPages:i.ungrouped})}return{sections:r}}const T2=({page:t,isActive:e,onClick:r})=>{var m,p,x;const[n,i]=nt.useState(!1),[o,s]=nt.useState("bottom"),l=nt.useRef(null),u=nt.useRef(null),h=t.level==="Beginner"?"bg-accent-light text-accent-text border-accent/15":t.level==="Intermediate"?"bg-warning-light text-[#92400e] border-warning/15":"bg-danger-light text-[#991b1b] border-danger/15",d=nt.useCallback(()=>{l.current=setTimeout(()=>{var k;const C=(k=u.current)==null?void 0:k.getBoundingClientRect();if(C){const b=C.top;s(b>80?"top":"bottom")}i(!0)},300)},[]),f=nt.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null),i(!1)},[]);return L.jsxs("div",{className:"relative",children:[L.jsxs("button",{ref:u,onClick:r,"aria-selected":e,className:`
94
- relative flex items-center w-full
95
- pl-9 pr-2.5 py-[7px]
96
- text-[13px] text-content
97
- rounded-lg
98
- transition-colors duration-150
99
- hover:bg-surface-hover
100
- aria-selected:bg-accent-light
101
- aria-selected:text-accent-text
102
- aria-selected:hover:bg-accent-light
103
- `,onMouseEnter:d,onMouseLeave:f,children:[e&&L.jsx("div",{className:"absolute left-1 top-1/2 -translate-y-1/2 w-[3px] h-3/5 rounded-r-full bg-accent"}),L.jsx("span",{className:"truncate",children:t.title})]}),n&&L.jsxs("div",{className:`
104
- fixed z-[1000]
105
- bg-surface border border-edge
106
- rounded-lg shadow-lg
107
- p-2.5 min-w-[120px]
108
- pointer-events-none
109
- animate-fade-in
110
- `,style:{left:((m=u.current)==null?void 0:m.getBoundingClientRect().left)??0,top:o==="top"?(((p=u.current)==null?void 0:p.getBoundingClientRect().top)??0)-60:(((x=u.current)==null?void 0:x.getBoundingClientRect().bottom)??0)+8},children:[L.jsx("div",{className:"text-[13px] font-semibold text-content mb-1.5 leading-snug",children:t.title}),L.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium leading-snug border ${h}`,children:t.level})]})]})},G5=({name:t,pages:e,expanded:r,currentSlug:n,onToggle:i,onPageClick:o})=>L.jsxs("div",{children:[L.jsxs("button",{onClick:i,className:`
111
- flex items-center gap-1.5 w-full text-left
112
- pl-7 pr-2.5 py-1.5
113
- text-[13px] font-medium text-content-secondary
114
- rounded-lg
115
- transition-colors duration-150
116
- hover:bg-surface-hover
117
- `,children:[L.jsx(S2,{size:11,rotated:r}),L.jsx("span",{className:"flex-1 truncate",children:t}),L.jsx("span",{className:"text-[11px] text-content-muted",children:e.length})]}),r&&L.jsx("div",{children:e.map(s=>L.jsx(T2,{page:s,isActive:s.slug===n,onClick:()=>o(s)},s.slug))})]}),X5=({section:t,expanded:e,currentSlug:r,expandedGroups:n,onToggleSection:i,onToggleGroup:o,onPageClick:s})=>L.jsxs("div",{className:"mb-0.5",children:[L.jsxs("button",{onClick:i,className:`
118
- flex items-center gap-2 w-full text-left
119
- px-2.5 py-2
120
- text-[13px] font-semibold text-content
121
- rounded-lg
122
- transition-colors duration-150
123
- hover:bg-surface-hover
124
- `,children:[L.jsx(S2,{size:12,rotated:e}),L.jsx("span",{className:"flex-1 truncate",children:t.name})]}),e&&L.jsxs("div",{children:[t.groups.map(l=>L.jsx(G5,{name:l.name,pages:l.pages,expanded:n.includes(`${t.name}::${l.name}`),currentSlug:r,onToggle:()=>o(`${t.name}::${l.name}`),onPageClick:s},l.name)),t.ungroupedPages.map(l=>L.jsx(T2,{page:l,isActive:l.slug===r,onClick:()=>s(l)},l.slug))]})]}),K5=({section:t,isActive:e,currentSlug:r,onPageClick:n})=>{var x,C,k;const[i,o]=nt.useState(!1),[s,l]=nt.useState(!1),u=nt.useRef(null),h=nt.useRef(null),d=[...t.ungroupedPages,...t.groups.flatMap(b=>b.pages)],f=nt.useCallback(()=>{u.current=setTimeout(()=>{var w;const b=(w=h.current)==null?void 0:w.getBoundingClientRect();b&&l(window.innerHeight-b.bottom<200),o(!0)},200)},[]),m=nt.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null),o(!1)},[]),p=t.name.charAt(0).toUpperCase();return L.jsxs("div",{className:"relative",onMouseEnter:f,onMouseLeave:m,children:[L.jsx("button",{ref:h,className:`
125
- w-9 h-9 rounded-lg text-[13px] font-semibold
126
- flex items-center justify-center
127
- transition-colors duration-150 cursor-pointer
128
- ${e?"bg-accent-light text-accent-text":"text-content-tertiary hover:bg-surface-hover hover:text-content"}
129
- `,title:t.name,children:p}),i&&L.jsxs("div",{className:`
130
- fixed z-[1000]
131
- bg-surface border border-edge
132
- rounded-lg shadow-lg
133
- py-1.5 min-w-[180px] max-h-[400px] overflow-y-auto
134
- pointer-events-auto
135
- `,style:{left:(((x=h.current)==null?void 0:x.getBoundingClientRect().right)??0)+8,top:s?(((C=h.current)==null?void 0:C.getBoundingClientRect().bottom)??0)-Math.min(d.length*36+40,400):((k=h.current)==null?void 0:k.getBoundingClientRect().top)??0},onMouseEnter:()=>{u.current&&(clearTimeout(u.current),u.current=null)},onMouseLeave:m,children:[L.jsx("div",{className:"px-3 py-1.5 text-[11px] font-semibold text-content-muted uppercase tracking-wider",children:t.name}),t.groups.map(b=>L.jsxs("div",{children:[L.jsx("div",{className:"px-3 py-1 text-[11px] font-medium text-content-tertiary",children:b.name}),b.pages.map(w=>L.jsx("button",{onClick:()=>{n(w),o(!1)},className:`
136
- w-full text-left px-4 py-1.5 text-[12px] truncate
137
- transition-colors duration-100 cursor-pointer
138
- ${w.slug===r?"text-accent font-medium bg-accent-light":"text-content-secondary hover:bg-surface-hover hover:text-content"}
139
- `,children:w.title},w.slug))]},b.name)),t.ungroupedPages.map(b=>L.jsx("button",{onClick:()=>{n(b),o(!1)},className:`
140
- w-full text-left px-4 py-1.5 text-[12px] truncate
141
- transition-colors duration-100 cursor-pointer
142
- ${b.slug===r?"text-accent font-medium bg-accent-light":"text-content-secondary hover:bg-surface-hover hover:text-content"}
143
- `,children:b.title},b.slug))]})]})},Q5=()=>{const t=kt(k=>k.currentWiki),e=kt(k=>k.currentView),r=kt(k=>k.config),n=kt(k=>k.expandedSections),i=kt(k=>k.expandedGroups),o=kt(k=>k.toggleSection),s=kt(k=>k.toggleGroup),l=kt(k=>k.setCurrentView),u=kt(k=>k.setCurrentWiki),h=kt(k=>k.setLoadingWiki);kt(k=>k.setLoadingPage);const d=kt(k=>k.sidebarOpen),f=kt(k=>k.toggleSidebar),m=r==null?void 0:r.lastOpenedProject;nt.useEffect(()=>{if(!m){u(null),l(null);return}let k=!1;return h(!0),l(null),wy(m).then(b=>{k||u(b)}).catch(b=>{console.error("Failed to load wiki:",b),k||u(null)}).finally(()=>{k||h(!1)}),()=>{k=!0}},[m,u,l,h]);const p=nt.useMemo(()=>t?Y5(t):null,[t]);nt.useEffect(()=>{var k;if(p&&p.sections.length>0){const b=p.sections.map(F=>F.name),w=p.sections.flatMap(F=>F.groups.map(E=>`${F.name}::${E.name}`));kt.getState().setExpandedSections(b),kt.getState().setExpandedGroups(w);const S=p.sections[0],A=((k=S.groups[0])==null?void 0:k.pages[0])||S.ungroupedPages[0];A&&!C&&x(A)}},[p]);const x=async k=>{if(!m)return;const b=kt.getState().projects.find(S=>S.id===m),w=(b==null?void 0:b.currentVersion)||"latest";l({projectId:m,version:w,slug:k.slug,content:"",loading:!0,mode:"read",editContent:null,isDirty:!1,fileMtime:null,conflictData:null});try{const S=await Yl(m,w,k.slug);l({projectId:m,version:w,slug:k.slug,content:S.content,loading:!1,mode:"read",editContent:null,isDirty:!1,fileMtime:S.mtime,conflictData:null})}catch(S){l({projectId:m,version:w,slug:k.slug,content:"",loading:!1,error:S instanceof Error?S.message:"Failed to load page",mode:"read",editContent:null,isDirty:!1,fileMtime:null,conflictData:null})}},C=e==null?void 0:e.slug;return d?L.jsxs("aside",{className:"w-[260px] h-full border-r border-edge bg-surface-tertiary flex flex-col shrink-0 overflow-hidden shadow-[inset_-4px_0_12px_rgba(0,0,0,0.05)]",children:[L.jsxs("div",{className:`
144
- flex items-center justify-between
145
- px-4 py-3.5
146
- border-b border-edge
147
- text-[11px] font-semibold uppercase tracking-wider
148
- text-content-muted select-none
149
- `,children:[L.jsx("span",{children:"导航"}),L.jsx("button",{onClick:f,className:"p-1 rounded text-content-muted hover:text-content hover:bg-surface-hover transition-colors duration-150 cursor-pointer",title:"折叠导航",children:L.jsx(U5,{size:14})})]}),L.jsx("nav",{className:"flex-1 overflow-y-auto py-2 px-2",children:p?p.sections.length===0?L.jsx("div",{className:"px-4 py-6 text-center text-[13px] text-content-tertiary",children:"暂无内容"}):p.sections.map(k=>L.jsx(X5,{section:k,expanded:n.includes(k.name),currentSlug:C,expandedGroups:i,onToggleSection:()=>o(k.name),onToggleGroup:b=>s(b),onPageClick:x},k.name)):L.jsx("div",{className:"px-4 py-6 text-center text-[13px] text-content-tertiary",children:m?"加载中...":"请先选择一个项目"})})]}):L.jsxs("aside",{className:"w-[48px] h-full border-r border-edge bg-surface-tertiary flex flex-col shrink-0 items-center py-3 gap-1 shadow-[inset_-4px_0_12px_rgba(0,0,0,0.05)]",children:[L.jsx("button",{onClick:f,className:"p-2 rounded-lg text-content-tertiary hover:bg-surface-hover hover:text-content transition-colors duration-150 cursor-pointer",title:"展开导航",children:L.jsx(V5,{size:16})}),p==null?void 0:p.sections.map(k=>{const w=[...k.ungroupedPages,...k.groups.flatMap(S=>S.pages)].some(S=>S.slug===C);return L.jsx(K5,{section:k,isActive:w,currentSlug:C,onPageClick:S=>{x(S)}},k.name)})]})};function Z5(t,e){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const J5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eF={};function AC(t,e){return(eF.jsx?tF:J5).test(t)}const rF=/[ \t\n\f\r]/g;function nF(t){return typeof t=="object"?t.type==="text"?FC(t.value):!1:FC(t)}function FC(t){return t.replace(rF,"")===""}class hc{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}hc.prototype.normal={};hc.prototype.property={};hc.prototype.space=void 0;function _2(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new hc(r,n,e)}function nm(t){return t.toLowerCase()}class tn{constructor(e,r){this.attribute=r,this.property=e}}tn.prototype.attribute="";tn.prototype.booleanish=!1;tn.prototype.boolean=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.commaSeparated=!1;tn.prototype.defined=!1;tn.prototype.mustUseProperty=!1;tn.prototype.number=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.property="";tn.prototype.spaceSeparated=!1;tn.prototype.space=void 0;let iF=0;const Kt=na(),Ze=na(),im=na(),yt=na(),Se=na(),Ua=na(),cn=na();function na(){return 2**++iF}const om=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:Ze,commaOrSpaceSeparated:cn,commaSeparated:Ua,number:yt,overloadedBoolean:im,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),xp=Object.keys(om);class Sy extends tn{constructor(e,r,n,i){let o=-1;if(super(e,r),IC(this,"space",i),typeof n=="number")for(;++o<xp.length;){const s=xp[o];IC(this,xp[o],(n&om[s])===om[s])}}}Sy.prototype.defined=!0;function IC(t,e,r){r&&(t[e]=r)}function xs(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const o=new Sy(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,r[nm(n)]=n,r[nm(o.attribute)]=n}return new hc(e,r,t.space)}const L2=xs({properties:{ariaActiveDescendant:null,ariaAtomic:Ze,ariaAutoComplete:null,ariaBusy:Ze,ariaChecked:Ze,ariaColCount:yt,ariaColIndex:yt,ariaColSpan:yt,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Ze,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Ze,ariaFlowTo:Se,ariaGrabbed:Ze,ariaHasPopup:null,ariaHidden:Ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:yt,ariaLive:null,ariaModal:Ze,ariaMultiLine:Ze,ariaMultiSelectable:Ze,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:yt,ariaPressed:Ze,ariaReadOnly:Ze,ariaRelevant:null,ariaRequired:Ze,ariaRoleDescription:Se,ariaRowCount:yt,ariaRowIndex:yt,ariaRowSpan:yt,ariaSelected:Ze,ariaSetSize:yt,ariaSort:null,ariaValueMax:yt,ariaValueMin:yt,ariaValueNow:yt,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function E2(t,e){return e in t?t[e]:e}function B2(t,e){return E2(t,e.toLowerCase())}const oF=xs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:Se,autoFocus:Kt,autoPlay:Kt,blocking:Se,capture:null,charSet:null,checked:Kt,cite:null,className:Se,cols:yt,colSpan:null,content:null,contentEditable:Ze,controls:Kt,controlsList:Se,coords:yt|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:im,draggable:Ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:Se,height:yt,hidden:im,high:yt,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:Kt,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:Se,itemRef:Se,itemScope:Kt,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:yt,manifest:null,max:null,maxLength:yt,media:null,method:null,min:null,minLength:yt,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:yt,pattern:null,ping:Se,placeholder:null,playsInline:Kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:Se,required:Kt,reversed:Kt,rows:yt,rowSpan:yt,sandbox:Se,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shadowRootClonable:Kt,shadowRootDelegatesFocus:Kt,shadowRootMode:null,shape:null,size:yt,sizes:null,slot:null,span:yt,spellCheck:Ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yt,step:null,style:null,tabIndex:yt,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:Ze,width:yt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:yt,borderColor:null,bottomMargin:yt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:yt,leftMargin:yt,link:null,longDesc:null,lowSrc:null,marginHeight:yt,marginWidth:yt,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:yt,rules:null,scheme:null,scrolling:Ze,standby:null,summary:null,text:null,topMargin:yt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:yt,security:null,unselectable:null},space:"html",transform:B2}),aF=xs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cn,accentHeight:yt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yt,amplitude:yt,arabicForm:null,ascent:yt,attributeName:null,attributeType:null,azimuth:yt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yt,by:null,calcMode:null,capHeight:yt,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:yt,diffuseConstant:yt,direction:null,display:null,dur:null,divisor:yt,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:yt,enableBackground:null,end:null,event:null,exponent:yt,externalResourcesRequired:null,fill:null,fillOpacity:yt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yt,horizOriginX:yt,horizOriginY:yt,id:null,ideographic:yt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yt,k:yt,k1:yt,k2:yt,k3:yt,k4:yt,kernelMatrix:cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:yt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:yt,overlineThickness:yt,paintOrder:null,panose1:null,path:null,pathLength:yt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yt,pointsAtY:yt,pointsAtZ:yt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cn,rev:cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cn,requiredFeatures:cn,requiredFonts:cn,requiredFormats:cn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:yt,specularExponent:yt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yt,strikethroughThickness:yt,string:null,stroke:null,strokeDashArray:cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yt,strokeOpacity:yt,strokeWidth:null,style:null,surfaceScale:yt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cn,tabIndex:yt,tableValues:null,target:null,targetX:yt,targetY:yt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yt,underlineThickness:yt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yt,values:null,vAlphabetic:yt,vMathematical:yt,vectorEffect:null,vHanging:yt,vIdeographic:yt,version:null,vertAdvY:yt,vertOriginX:yt,vertOriginY:yt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:E2}),A2=xs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),F2=xs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:B2}),I2=xs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),sF={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lF=/[A-Z]/g,MC=/-[a-z]/g,cF=/^data[-\w.:]+$/i;function uF(t,e){const r=nm(e);let n=e,i=tn;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cF.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(MC,dF);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!MC.test(o)){let s=o.replace(lF,hF);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=Sy}return new i(n,e)}function hF(t){return"-"+t.toLowerCase()}function dF(t){return t.charAt(1).toUpperCase()}const fF=_2([L2,oF,A2,F2,I2],"html"),Ty=_2([L2,aF,A2,F2,I2],"svg");function pF(t){return t.join(" ").trim()}var Ia={},Cp,OC;function gF(){if(OC)return Cp;OC=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
150
- `,h="/",d="*",f="",m="comment",p="declaration";function x(k,b){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];b=b||{};var w=1,S=1;function A(V){var W=V.match(e);W&&(w+=W.length);var U=V.lastIndexOf(u);S=~U?V.length-U:S+V.length}function F(){var V={line:w,column:S};return function(W){return W.position=new E(V),q(),W}}function E(V){this.start=V,this.end={line:w,column:S},this.source=b.source}E.prototype.content=k;function B(V){var W=new Error(b.source+":"+w+":"+S+": "+V);if(W.reason=V,W.filename=b.source,W.line=w,W.column=S,W.source=k,!b.silent)throw W}function P(V){var W=V.exec(k);if(W){var U=W[0];return A(U),k=k.slice(U.length),W}}function q(){P(r)}function R(V){var W;for(V=V||[];W=$();)W!==!1&&V.push(W);return V}function $(){var V=F();if(!(h!=k.charAt(0)||d!=k.charAt(1))){for(var W=2;f!=k.charAt(W)&&(d!=k.charAt(W)||h!=k.charAt(W+1));)++W;if(W+=2,f===k.charAt(W-1))return B("End of comment missing");var U=k.slice(2,W-2);return S+=2,A(U),k=k.slice(W),S+=2,V({type:m,comment:U})}}function H(){var V=F(),W=P(n);if(W){if($(),!P(i))return B("property missing ':'");var U=P(o),X=V({type:p,property:C(W[0].replace(t,f)),value:U?C(U[0].replace(t,f)):f});return P(s),X}}function Q(){var V=[];R(V);for(var W;W=H();)W!==!1&&(V.push(W),R(V));return V}return q(),Q()}function C(k){return k?k.replace(l,f):f}return Cp=x,Cp}var NC;function mF(){if(NC)return Ia;NC=1;var t=Ia&&Ia.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=r;const e=t(gF());function r(n,i){let o=null;if(!n||typeof n!="string")return o;const s=(0,e.default)(n),l=typeof i=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;l?i(h,d,u):d&&(o=o||{},o[h]=d)}),o}return Ia}var hl={},RC;function yF(){if(RC)return hl;RC=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(h){return!h||r.test(h)||t.test(h)},s=function(h,d){return d.toUpperCase()},l=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),o(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(i,l):h=h.replace(n,l),h.replace(e,s))};return hl.camelCase=u,hl}var dl,PC;function xF(){if(PC)return dl;PC=1;var t=dl&&dl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(mF()),r=yF();function n(i,o){var s={};return!i||typeof i!="string"||(0,e.default)(i,function(l,u){l&&u&&(s[(0,r.camelCase)(l,o)]=u)}),s}return n.default=n,dl=n,dl}var CF=xF();const kF=tr(CF),M2=O2("end"),_y=O2("start");function O2(t){return e;function e(r){const n=r&&r.position&&r.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function bF(t){const e=_y(t),r=M2(t);if(e&&r)return{start:e,end:r}}function Dl(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?DC(t.position):"start"in t||"end"in t?DC(t):"line"in t||"column"in t?am(t):""}function am(t){return $C(t&&t.line)+":"+$C(t&&t.column)}function DC(t){return am(t&&t.start)+"-"+am(t&&t.end)}function $C(t){return t&&typeof t=="number"?t:1}class Lr extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof e=="string"?i=e:!o.cause&&e&&(s=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?o.ruleId=n:(o.source=n.slice(0,u),o.ruleId=n.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Dl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Lr.prototype.file="";Lr.prototype.name="";Lr.prototype.reason="";Lr.prototype.message="";Lr.prototype.stack="";Lr.prototype.column=void 0;Lr.prototype.line=void 0;Lr.prototype.ancestors=void 0;Lr.prototype.cause=void 0;Lr.prototype.fatal=void 0;Lr.prototype.place=void 0;Lr.prototype.ruleId=void 0;Lr.prototype.source=void 0;const Ly={}.hasOwnProperty,vF=new Map,wF=/[A-Z]/g,SF=new Set(["table","tbody","thead","tfoot","tr"]),TF=new Set(["td","th"]),N2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _F(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let n;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=OF(r,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=MF(r,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:n,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ty:fF,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},o=R2(i,t,void 0);return o&&typeof o!="string"?o:i.create(t,i.Fragment,{children:o||void 0},void 0)}function R2(t,e,r){if(e.type==="element")return LF(t,e,r);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return EF(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return AF(t,e,r);if(e.type==="mdxjsEsm")return BF(t,e);if(e.type==="root")return FF(t,e,r);if(e.type==="text")return IF(t,e)}function LF(t,e,r){const n=t.schema;let i=n;e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=Ty,t.schema=i),t.ancestors.push(e);const o=D2(t,e.tagName,!1),s=NF(t,e);let l=By(t,e);return SF.has(e.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!nF(u):!0})),P2(t,s,o,e),Ey(s,l),t.ancestors.pop(),t.schema=n,t.create(e,o,s,r)}function EF(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return n.type,t.evaluater.evaluateExpression(n.expression)}Gl(t,e.position)}function BF(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Gl(t,e.position)}function AF(t,e,r){const n=t.schema;let i=n;e.name==="svg"&&n.space==="html"&&(i=Ty,t.schema=i),t.ancestors.push(e);const o=e.name===null?t.Fragment:D2(t,e.name,!0),s=RF(t,e),l=By(t,e);return P2(t,s,o,e),Ey(s,l),t.ancestors.pop(),t.schema=n,t.create(e,o,s,r)}function FF(t,e,r){const n={};return Ey(n,By(t,e)),t.create(e,t.Fragment,n,r)}function IF(t,e){return e.value}function P2(t,e,r,n){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(e.node=n)}function Ey(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function MF(t,e,r){return n;function n(i,o,s,l){const h=Array.isArray(s.children)?r:e;return l?h(o,s,l):h(o,s)}}function OF(t,e){return r;function r(n,i,o,s){const l=Array.isArray(o.children),u=_y(n);return e(i,o,s,l,{columnNumber:u?u.column-1:void 0,fileName:t,lineNumber:u?u.line:void 0},void 0)}}function NF(t,e){const r={};let n,i;for(i in e.properties)if(i!=="children"&&Ly.call(e.properties,i)){const o=PF(t,i,e.properties[i]);if(o){const[s,l]=o;t.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&TF.has(e.tagName)?n=l:r[s]=l}}if(n){const o=r.style||(r.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function RF(t,e){const r={};for(const n of e.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&t.evaluater){const o=n.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(r,t.evaluater.evaluateExpression(l.argument))}else Gl(t,e.position);else{const i=n.name;let o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&t.evaluater){const l=n.value.data.estree.body[0];l.type,o=t.evaluater.evaluateExpression(l.expression)}else Gl(t,e.position);else o=n.value===null?!0:n.value;r[i]=o}return r}function By(t,e){const r=[];let n=-1;const i=t.passKeys?new Map:vF;for(;++n<e.children.length;){const o=e.children[n];let s;if(t.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const h=i.get(u)||0;s=u+"-"+h,i.set(u,h+1)}}const l=R2(t,o,s);l!==void 0&&r.push(l)}return r}function PF(t,e,r){const n=uF(t.schema,e);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?Z5(r):pF(r)),n.property==="style"){let i=typeof r=="object"?r:DF(t,String(r));return t.stylePropertyNameCase==="css"&&(i=$F(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&n.space?sF[n.property]||n.property:n.attribute,r]}}function DF(t,e){try{return kF(e,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const n=r,i=new Lr("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=N2+"#cannot-parse-style-attribute",i}}function D2(t,e,r){let n;if(!r)n={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let o=-1,s;for(;++o<i.length;){const l=AC(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=s}else n=AC(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(n.type==="Literal"){const i=n.value;return Ly.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(n);Gl(t)}function Gl(t,e){const r=new Lr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=N2+"#cannot-handle-mdx-estrees-without-createevaluater",r}function $F(t){const e={};let r;for(r in t)Ly.call(t,r)&&(e[jF(r)]=t[r]);return e}function jF(t){let e=t.replace(wF,zF);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function zF(t){return"-"+t.toLowerCase()}const kp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},qF={};function Ay(t,e){const r=qF,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return $2(t,n,i)}function $2(t,e,r){if(WF(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return jC(t.children,e,r)}return Array.isArray(t)?jC(t,e,r):""}function jC(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=$2(t[i],e,r);return n.join("")}function WF(t){return!!(t&&typeof t=="object")}const zC=document.createElement("i");function Fy(t){const e="&"+t+";";zC.innerHTML=e;const r=zC.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function hn(t,e,r,n){const i=t.length;let o=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(e,r),t.splice(...s);else for(r&&t.splice(e,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function wn(t,e){return t.length>0?(hn(t,t.length,0,e),t):e}const qC={}.hasOwnProperty;function j2(t){const e={};let r=-1;for(;++r<t.length;)HF(e,t[r]);return e}function HF(t,e){let r;for(r in e){const i=(qC.call(t,r)?t[r]:void 0)||(t[r]={}),o=e[r];let s;if(o)for(s in o){qC.call(i,s)||(i[s]=[]);const l=o[s];UF(i[s],Array.isArray(l)?l:l?[l]:[])}}}function UF(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);hn(t,0,0,n)}function z2(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function zn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Or=yo(/[A-Za-z]/),Tr=yo(/[\dA-Za-z]/),VF=yo(/[#-'*+\--9=?A-Z^-~]/);function xh(t){return t!==null&&(t<32||t===127)}const sm=yo(/\d/),YF=yo(/[\dA-Fa-f]/),GF=yo(/[!-/:-@[-`{-~]/);function qt(t){return t!==null&&t<-2}function Ce(t){return t!==null&&(t<0||t===32)}function ne(t){return t===-2||t===-1||t===32}const nd=yo(new RegExp("\\p{P}|\\p{S}","u")),Go=yo(/\s/);function yo(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Cs(t){const e=[];let r=-1,n=0,i=0;for(;++r<t.length;){const o=t.charCodeAt(r);let s="";if(o===37&&Tr(t.charCodeAt(r+1))&&Tr(t.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=t.charCodeAt(r+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="�"}else s=String.fromCharCode(o);s&&(e.push(t.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return e.join("")+t.slice(n)}function se(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(u){return ne(u)?(t.enter(r),l(u)):e(u)}function l(u){return ne(u)&&o++<i?(t.consume(u),l):(t.exit(r),e(u))}}const XF={tokenize:KF};function KF(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),se(t,e,"linePrefix")}function i(l){return t.enter("paragraph"),o(l)}function o(l){const u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(l)}function s(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return qt(l)?(t.consume(l),t.exit("chunkText"),o):(t.consume(l),s)}}const QF={tokenize:ZF},WC={tokenize:JF};function ZF(t){const e=this,r=[];let n=0,i,o,s;return l;function l(S){if(n<r.length){const A=r[n];return e.containerState=A[1],t.attempt(A[0].continuation,u,h)(S)}return h(S)}function u(S){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&w();const A=e.events.length;let F=A,E;for(;F--;)if(e.events[F][0]==="exit"&&e.events[F][1].type==="chunkFlow"){E=e.events[F][1].end;break}b(n);let B=A;for(;B<e.events.length;)e.events[B][1].end={...E},B++;return hn(e.events,F+1,0,e.events.slice(A)),e.events.length=B,h(S)}return l(S)}function h(S){if(n===r.length){if(!i)return m(S);if(i.currentConstruct&&i.currentConstruct.concrete)return x(S);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(WC,d,f)(S)}function d(S){return i&&w(),b(n),m(S)}function f(S){return e.parser.lazy[e.now().line]=n!==r.length,s=e.now().offset,x(S)}function m(S){return e.containerState={},t.attempt(WC,p,x)(S)}function p(S){return n++,r.push([e.currentConstruct,e.containerState]),m(S)}function x(S){if(S===null){i&&w(),b(0),t.consume(S);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),C(S)}function C(S){if(S===null){k(t.exit("chunkFlow"),!0),b(0),t.consume(S);return}return qt(S)?(t.consume(S),k(t.exit("chunkFlow")),n=0,e.interrupt=void 0,l):(t.consume(S),C)}function k(S,A){const F=e.sliceStream(S);if(A&&F.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(F),e.parser.lazy[S.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<s&&(!i.events[E][1].end||i.events[E][1].end.offset>s))return;const B=e.events.length;let P=B,q,R;for(;P--;)if(e.events[P][0]==="exit"&&e.events[P][1].type==="chunkFlow"){if(q){R=e.events[P][1].end;break}q=!0}for(b(n),E=B;E<e.events.length;)e.events[E][1].end={...R},E++;hn(e.events,P+1,0,e.events.slice(B)),e.events.length=E}}function b(S){let A=r.length;for(;A-- >S;){const F=r[A];e.containerState=F[1],F[0].exit.call(e,t)}r.length=S}function w(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function JF(t,e,r){return se(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function cs(t){if(t===null||Ce(t)||Go(t))return 1;if(nd(t))return 2}function id(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!n.includes(o)&&(e=o(e,r),n.push(o))}return e}const lm={name:"attention",resolveAll:tI,tokenize:eI};function tI(t,e){let r=-1,n,i,o,s,l,u,h,d;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const f={...t[n][1].end},m={...t[r][1].start};HC(f,-u),HC(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...t[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:m},o={type:u>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},t[n][1].end={...s.start},t[r][1].start={...l.end},h=[],t[n][1].end.offset-t[n][1].start.offset&&(h=wn(h,[["enter",t[n][1],e],["exit",t[n][1],e]])),h=wn(h,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",o,e]]),h=wn(h,id(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),h=wn(h,[["exit",o,e],["enter",l,e],["exit",l,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(d=2,h=wn(h,[["enter",t[r][1],e],["exit",t[r][1],e]])):d=0,hn(t,n-1,r-n+3,h),r=n+h.length-d-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function eI(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=cs(n);let o;return s;function s(u){return o=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===o)return t.consume(u),l;const h=t.exit("attentionSequence"),d=cs(u),f=!d||d===2&&i||r.includes(u),m=!i||i===2&&d||r.includes(n);return h._open=!!(o===42?f:f&&(i||!m)),h._close=!!(o===42?m:m&&(d||!f)),e(u)}}function HC(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const rI={name:"autolink",tokenize:nI};function nI(t,e,r){let n=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(p){return Or(p)?(t.consume(p),s):p===64?r(p):h(p)}function s(p){return p===43||p===45||p===46||Tr(p)?(n=1,l(p)):h(p)}function l(p){return p===58?(t.consume(p),n=0,u):(p===43||p===45||p===46||Tr(p))&&n++<32?(t.consume(p),l):(n=0,h(p))}function u(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||xh(p)?r(p):(t.consume(p),u)}function h(p){return p===64?(t.consume(p),d):VF(p)?(t.consume(p),h):r(p)}function d(p){return Tr(p)?f(p):r(p)}function f(p){return p===46?(t.consume(p),n=0,d):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):m(p)}function m(p){if((p===45||Tr(p))&&n++<63){const x=p===45?m:f;return t.consume(p),x}return r(p)}}const dc={partial:!0,tokenize:iI};function iI(t,e,r){return n;function n(o){return ne(o)?se(t,i,"linePrefix")(o):i(o)}function i(o){return o===null||qt(o)?e(o):r(o)}}const q2={continuation:{tokenize:aI},exit:sI,name:"blockQuote",tokenize:oI};function oI(t,e,r){const n=this;return i;function i(s){if(s===62){const l=n.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return r(s)}function o(s){return ne(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function aI(t,e,r){const n=this;return i;function i(s){return ne(s)?se(t,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(q2,e,r)(s)}}function sI(t){t.exit("blockQuote")}const W2={name:"characterEscape",tokenize:lI};function lI(t,e,r){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return GF(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(o)}}const H2={name:"characterReference",tokenize:cI};function cI(t,e,r){const n=this;let i=0,o,s;return l;function l(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),o=31,s=Tr,d(f))}function h(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=YF,d):(t.enter("characterReferenceValue"),o=7,s=sm,d(f))}function d(f){if(f===59&&i){const m=t.exit("characterReferenceValue");return s===Tr&&!Fy(n.sliceSerialize(m))?r(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(f)&&i++<o?(t.consume(f),d):r(f)}}const UC={partial:!0,tokenize:hI},VC={concrete:!0,name:"codeFenced",tokenize:uI};function uI(t,e,r){const n=this,i={partial:!0,tokenize:F};let o=0,s=0,l;return u;function u(E){return h(E)}function h(E){const B=n.events[n.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,l=E,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(E)}function d(E){return E===l?(s++,t.consume(E),d):s<3?r(E):(t.exit("codeFencedFenceSequence"),ne(E)?se(t,f,"whitespace")(E):f(E))}function f(E){return E===null||qt(E)?(t.exit("codeFencedFence"),n.interrupt?e(E):t.check(UC,C,A)(E)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||qt(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(E)):ne(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),se(t,p,"whitespace")(E)):E===96&&E===l?r(E):(t.consume(E),m)}function p(E){return E===null||qt(E)?f(E):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===null||qt(E)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(E)):E===96&&E===l?r(E):(t.consume(E),x)}function C(E){return t.attempt(i,A,k)(E)}function k(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),b}function b(E){return o>0&&ne(E)?se(t,w,"linePrefix",o+1)(E):w(E)}function w(E){return E===null||qt(E)?t.check(UC,C,A)(E):(t.enter("codeFlowValue"),S(E))}function S(E){return E===null||qt(E)?(t.exit("codeFlowValue"),w(E)):(t.consume(E),S)}function A(E){return t.exit("codeFenced"),e(E)}function F(E,B,P){let q=0;return R;function R(W){return E.enter("lineEnding"),E.consume(W),E.exit("lineEnding"),$}function $(W){return E.enter("codeFencedFence"),ne(W)?se(E,H,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):H(W)}function H(W){return W===l?(E.enter("codeFencedFenceSequence"),Q(W)):P(W)}function Q(W){return W===l?(q++,E.consume(W),Q):q>=s?(E.exit("codeFencedFenceSequence"),ne(W)?se(E,V,"whitespace")(W):V(W)):P(W)}function V(W){return W===null||qt(W)?(E.exit("codeFencedFence"),B(W)):P(W)}}}function hI(t,e,r){const n=this;return i;function i(s){return s===null?r(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}const bp={name:"codeIndented",tokenize:fI},dI={partial:!0,tokenize:pI};function fI(t,e,r){const n=this;return i;function i(h){return t.enter("codeIndented"),se(t,o,"linePrefix",5)(h)}function o(h){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(h):r(h)}function s(h){return h===null?u(h):qt(h)?t.attempt(dI,s,u)(h):(t.enter("codeFlowValue"),l(h))}function l(h){return h===null||qt(h)?(t.exit("codeFlowValue"),s(h)):(t.consume(h),l)}function u(h){return t.exit("codeIndented"),e(h)}}function pI(t,e,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):qt(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):se(t,o,"linePrefix",5)(s)}function o(s){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(s):qt(s)?i(s):r(s)}}const gI={name:"codeText",previous:yI,resolve:mI,tokenize:xI};function mI(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function yI(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xI(t,e,r){let n=0,i,o;return s;function s(f){return t.enter("codeText"),t.enter("codeTextSequence"),l(f)}function l(f){return f===96?(t.consume(f),n++,l):(t.exit("codeTextSequence"),u(f))}function u(f){return f===null?r(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),u):f===96?(o=t.enter("codeTextSequence"),i=0,d(f)):qt(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):(t.enter("codeTextData"),h(f))}function h(f){return f===null||f===32||f===96||qt(f)?(t.exit("codeTextData"),u(f)):(t.consume(f),h)}function d(f){return f===96?(t.consume(f),i++,d):i===n?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(o.type="codeTextData",h(f))}}class CI{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,r,n){const i=r||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&fl(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),fl(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),fl(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const r=this.left.splice(e,Number.POSITIVE_INFINITY);fl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);fl(this.left,r.reverse())}}}function fl(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function U2(t){const e={};let r=-1,n,i,o,s,l,u,h;const d=new CI(t);for(;++r<d.length;){for(;r in e;)r=e[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,kI(d,r)),r=e[r],h=!0);else if(n[1]._container){for(o=r,i=void 0;o--;)if(s=d.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...d.get(i)[1].start},l=d.slice(i,r),l.unshift(n),d.splice(i,r-i+1,l))}}return hn(t,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function kI(t,e){const r=t.get(e)[1],n=t.get(e)[2];let i=e-1;const o=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,u=[],h={};let d,f,m=-1,p=r,x=0,C=0;const k=[C];for(;p;){for(;t.get(++i)[1]!==p;);o.push(i),p._tokenizer||(d=n.sliceStream(p),p.next||d.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(C=m+1,k.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),m=k.length;m--;){const b=l.slice(k[m],k[m+1]),w=o.pop();u.push([w,w+b.length-1]),t.splice(w,2,b)}for(u.reverse(),m=-1;++m<u.length;)h[x+u[m][0]]=x+u[m][1],x+=u[m][1]-u[m][0]-1;return h}const bI={resolve:wI,tokenize:SI},vI={partial:!0,tokenize:TI};function wI(t){return U2(t),t}function SI(t,e){let r;return n;function n(l){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):qt(l)?t.check(vI,s,o)(l):(t.consume(l),i)}function o(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function s(l){return t.consume(l),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function TI(t,e,r){const n=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),se(t,o,"linePrefix")}function o(s){if(s===null||qt(s))return r(s);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(s):t.interrupt(n.parser.constructs.flow,r,e)(s)}}function V2(t,e,r,n,i,o,s,l,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return f;function f(b){return b===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(b),t.exit(o),m):b===null||b===32||b===41||xh(b)?r(b):(t.enter(n),t.enter(s),t.enter(l),t.enter("chunkString",{contentType:"string"}),C(b))}function m(b){return b===62?(t.enter(o),t.consume(b),t.exit(o),t.exit(i),t.exit(n),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(t.exit("chunkString"),t.exit(l),m(b)):b===null||b===60||qt(b)?r(b):(t.consume(b),b===92?x:p)}function x(b){return b===60||b===62||b===92?(t.consume(b),p):p(b)}function C(b){return!d&&(b===null||b===41||Ce(b))?(t.exit("chunkString"),t.exit(l),t.exit(s),t.exit(n),e(b)):d<h&&b===40?(t.consume(b),d++,C):b===41?(t.consume(b),d--,C):b===null||b===32||b===40||xh(b)?r(b):(t.consume(b),b===92?k:C)}function k(b){return b===40||b===41||b===92?(t.consume(b),C):C(b)}}function Y2(t,e,r,n,i,o){const s=this;let l=0,u;return h;function h(p){return t.enter(n),t.enter(i),t.consume(p),t.exit(i),t.enter(o),d}function d(p){return l>999||p===null||p===91||p===93&&!u||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?r(p):p===93?(t.exit(o),t.enter(i),t.consume(p),t.exit(i),t.exit(n),e):qt(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||qt(p)||l++>999?(t.exit("chunkString"),d(p)):(t.consume(p),u||(u=!ne(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(t.consume(p),l++,f):f(p)}}function G2(t,e,r,n,i,o){let s;return l;function l(m){return m===34||m===39||m===40?(t.enter(n),t.enter(i),t.consume(m),t.exit(i),s=m===40?41:m,u):r(m)}function u(m){return m===s?(t.enter(i),t.consume(m),t.exit(i),t.exit(n),e):(t.enter(o),h(m))}function h(m){return m===s?(t.exit(o),u(s)):m===null?r(m):qt(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),se(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===s||m===null||qt(m)?(t.exit("chunkString"),h(m)):(t.consume(m),m===92?f:d)}function f(m){return m===s||m===92?(t.consume(m),d):d(m)}}function $l(t,e){let r;return n;function n(i){return qt(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),r=!0,n):ne(i)?se(t,n,r?"linePrefix":"lineSuffix")(i):e(i)}}const _I={name:"definition",tokenize:EI},LI={partial:!0,tokenize:BI};function EI(t,e,r){const n=this;let i;return o;function o(p){return t.enter("definition"),s(p)}function s(p){return Y2.call(n,t,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=zn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),u):r(p)}function u(p){return Ce(p)?$l(t,h)(p):h(p)}function h(p){return V2(t,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return t.attempt(LI,f,f)(p)}function f(p){return ne(p)?se(t,m,"whitespace")(p):m(p)}function m(p){return p===null||qt(p)?(t.exit("definition"),n.parser.defined.push(i),e(p)):r(p)}}function BI(t,e,r){return n;function n(l){return Ce(l)?$l(t,i)(l):r(l)}function i(l){return G2(t,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return ne(l)?se(t,s,"whitespace")(l):s(l)}function s(l){return l===null||qt(l)?e(l):r(l)}}const AI={name:"hardBreakEscape",tokenize:FI};function FI(t,e,r){return n;function n(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return qt(o)?(t.exit("hardBreakEscape"),e(o)):r(o)}}const II={name:"headingAtx",resolve:MI,tokenize:OI};function MI(t,e){let r=t.length-2,n=3,i,o;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},o={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},hn(t,n,r-n+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function OI(t,e,r){let n=0;return i;function i(d){return t.enter("atxHeading"),o(d)}function o(d){return t.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&n++<6?(t.consume(d),s):d===null||Ce(d)?(t.exit("atxHeadingSequence"),l(d)):r(d)}function l(d){return d===35?(t.enter("atxHeadingSequence"),u(d)):d===null||qt(d)?(t.exit("atxHeading"),e(d)):ne(d)?se(t,l,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function u(d){return d===35?(t.consume(d),u):(t.exit("atxHeadingSequence"),l(d))}function h(d){return d===null||d===35||Ce(d)?(t.exit("atxHeadingText"),l(d)):(t.consume(d),h)}}const NI=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],YC=["pre","script","style","textarea"],RI={concrete:!0,name:"htmlFlow",resolveTo:$I,tokenize:jI},PI={partial:!0,tokenize:qI},DI={partial:!0,tokenize:zI};function $I(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function jI(t,e,r){const n=this;let i,o,s,l,u;return h;function h(N){return d(N)}function d(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),f}function f(N){return N===33?(t.consume(N),m):N===47?(t.consume(N),o=!0,C):N===63?(t.consume(N),i=3,n.interrupt?e:O):Or(N)?(t.consume(N),s=String.fromCharCode(N),k):r(N)}function m(N){return N===45?(t.consume(N),i=2,p):N===91?(t.consume(N),i=5,l=0,x):Or(N)?(t.consume(N),i=4,n.interrupt?e:O):r(N)}function p(N){return N===45?(t.consume(N),n.interrupt?e:O):r(N)}function x(N){const ct="CDATA[";return N===ct.charCodeAt(l++)?(t.consume(N),l===ct.length?n.interrupt?e:H:x):r(N)}function C(N){return Or(N)?(t.consume(N),s=String.fromCharCode(N),k):r(N)}function k(N){if(N===null||N===47||N===62||Ce(N)){const ct=N===47,lt=s.toLowerCase();return!ct&&!o&&YC.includes(lt)?(i=1,n.interrupt?e(N):H(N)):NI.includes(s.toLowerCase())?(i=6,ct?(t.consume(N),b):n.interrupt?e(N):H(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(N):o?w(N):S(N))}return N===45||Tr(N)?(t.consume(N),s+=String.fromCharCode(N),k):r(N)}function b(N){return N===62?(t.consume(N),n.interrupt?e:H):r(N)}function w(N){return ne(N)?(t.consume(N),w):R(N)}function S(N){return N===47?(t.consume(N),R):N===58||N===95||Or(N)?(t.consume(N),A):ne(N)?(t.consume(N),S):R(N)}function A(N){return N===45||N===46||N===58||N===95||Tr(N)?(t.consume(N),A):F(N)}function F(N){return N===61?(t.consume(N),E):ne(N)?(t.consume(N),F):S(N)}function E(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(t.consume(N),u=N,B):ne(N)?(t.consume(N),E):P(N)}function B(N){return N===u?(t.consume(N),u=null,q):N===null||qt(N)?r(N):(t.consume(N),B)}function P(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Ce(N)?F(N):(t.consume(N),P)}function q(N){return N===47||N===62||ne(N)?S(N):r(N)}function R(N){return N===62?(t.consume(N),$):r(N)}function $(N){return N===null||qt(N)?H(N):ne(N)?(t.consume(N),$):r(N)}function H(N){return N===45&&i===2?(t.consume(N),U):N===60&&i===1?(t.consume(N),X):N===62&&i===4?(t.consume(N),j):N===63&&i===3?(t.consume(N),O):N===93&&i===5?(t.consume(N),J):qt(N)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(PI,tt,Q)(N)):N===null||qt(N)?(t.exit("htmlFlowData"),Q(N)):(t.consume(N),H)}function Q(N){return t.check(DI,V,tt)(N)}function V(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),W}function W(N){return N===null||qt(N)?Q(N):(t.enter("htmlFlowData"),H(N))}function U(N){return N===45?(t.consume(N),O):H(N)}function X(N){return N===47?(t.consume(N),s="",D):H(N)}function D(N){if(N===62){const ct=s.toLowerCase();return YC.includes(ct)?(t.consume(N),j):H(N)}return Or(N)&&s.length<8?(t.consume(N),s+=String.fromCharCode(N),D):H(N)}function J(N){return N===93?(t.consume(N),O):H(N)}function O(N){return N===62?(t.consume(N),j):N===45&&i===2?(t.consume(N),O):H(N)}function j(N){return N===null||qt(N)?(t.exit("htmlFlowData"),tt(N)):(t.consume(N),j)}function tt(N){return t.exit("htmlFlow"),e(N)}}function zI(t,e,r){const n=this;return i;function i(s){return qt(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function qI(t,e,r){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(dc,e,r)}}const WI={name:"htmlText",tokenize:HI};function HI(t,e,r){const n=this;let i,o,s;return l;function l(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),u}function u(O){return O===33?(t.consume(O),h):O===47?(t.consume(O),F):O===63?(t.consume(O),S):Or(O)?(t.consume(O),P):r(O)}function h(O){return O===45?(t.consume(O),d):O===91?(t.consume(O),o=0,x):Or(O)?(t.consume(O),w):r(O)}function d(O){return O===45?(t.consume(O),p):r(O)}function f(O){return O===null?r(O):O===45?(t.consume(O),m):qt(O)?(s=f,X(O)):(t.consume(O),f)}function m(O){return O===45?(t.consume(O),p):f(O)}function p(O){return O===62?U(O):O===45?m(O):f(O)}function x(O){const j="CDATA[";return O===j.charCodeAt(o++)?(t.consume(O),o===j.length?C:x):r(O)}function C(O){return O===null?r(O):O===93?(t.consume(O),k):qt(O)?(s=C,X(O)):(t.consume(O),C)}function k(O){return O===93?(t.consume(O),b):C(O)}function b(O){return O===62?U(O):O===93?(t.consume(O),b):C(O)}function w(O){return O===null||O===62?U(O):qt(O)?(s=w,X(O)):(t.consume(O),w)}function S(O){return O===null?r(O):O===63?(t.consume(O),A):qt(O)?(s=S,X(O)):(t.consume(O),S)}function A(O){return O===62?U(O):S(O)}function F(O){return Or(O)?(t.consume(O),E):r(O)}function E(O){return O===45||Tr(O)?(t.consume(O),E):B(O)}function B(O){return qt(O)?(s=B,X(O)):ne(O)?(t.consume(O),B):U(O)}function P(O){return O===45||Tr(O)?(t.consume(O),P):O===47||O===62||Ce(O)?q(O):r(O)}function q(O){return O===47?(t.consume(O),U):O===58||O===95||Or(O)?(t.consume(O),R):qt(O)?(s=q,X(O)):ne(O)?(t.consume(O),q):U(O)}function R(O){return O===45||O===46||O===58||O===95||Tr(O)?(t.consume(O),R):$(O)}function $(O){return O===61?(t.consume(O),H):qt(O)?(s=$,X(O)):ne(O)?(t.consume(O),$):q(O)}function H(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(t.consume(O),i=O,Q):qt(O)?(s=H,X(O)):ne(O)?(t.consume(O),H):(t.consume(O),V)}function Q(O){return O===i?(t.consume(O),i=void 0,W):O===null?r(O):qt(O)?(s=Q,X(O)):(t.consume(O),Q)}function V(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||Ce(O)?q(O):(t.consume(O),V)}function W(O){return O===47||O===62||Ce(O)?q(O):r(O)}function U(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),e):r(O)}function X(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),D}function D(O){return ne(O)?se(t,J,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):J(O)}function J(O){return t.enter("htmlTextData"),s(O)}}const Iy={name:"labelEnd",resolveAll:GI,resolveTo:XI,tokenize:KI},UI={tokenize:QI},VI={tokenize:ZI},YI={tokenize:JI};function GI(t){let e=-1;const r=[];for(;++e<t.length;){const n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",e+=i}}return t.length!==r.length&&hn(t,0,t.length,r),t}function XI(t,e){let r=t.length,n=0,i,o,s,l;for(;r--;)if(i=t[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const u={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[o][1].start},end:{...t[s][1].end}},d={type:"labelText",start:{...t[o+n+2][1].end},end:{...t[s-2][1].start}};return l=[["enter",u,e],["enter",h,e]],l=wn(l,t.slice(o+1,o+n+3)),l=wn(l,[["enter",d,e]]),l=wn(l,id(e.parser.constructs.insideSpan.null,t.slice(o+n+4,s-3),e)),l=wn(l,[["exit",d,e],t[s-2],t[s-1],["exit",h,e]]),l=wn(l,t.slice(s+1)),l=wn(l,[["exit",u,e]]),hn(t,o,t.length,l),t}function KI(t,e,r){const n=this;let i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return l;function l(m){return o?o._inactive?f(m):(s=n.parser.defined.includes(zn(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelEnd"),u):r(m)}function u(m){return m===40?t.attempt(UI,d,s?d:f)(m):m===91?t.attempt(VI,d,s?h:f)(m):s?d(m):f(m)}function h(m){return t.attempt(YI,d,f)(m)}function d(m){return e(m)}function f(m){return o._balanced=!0,r(m)}}function QI(t,e,r){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Ce(f)?$l(t,o)(f):o(f)}function o(f){return f===41?d(f):V2(t,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ce(f)?$l(t,u)(f):d(f)}function l(f){return r(f)}function u(f){return f===34||f===39||f===40?G2(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function h(f){return Ce(f)?$l(t,d)(f):d(f)}function d(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):r(f)}}function ZI(t,e,r){const n=this;return i;function i(l){return Y2.call(n,t,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(zn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(l):r(l)}function s(l){return r(l)}}function JI(t,e,r){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):r(o)}}const tM={name:"labelStartImage",resolveAll:Iy.resolveAll,tokenize:eM};function eM(t,e,r){const n=this;return i;function i(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),o}function o(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),s):r(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):e(l)}}const rM={name:"labelStartLink",resolveAll:Iy.resolveAll,tokenize:nM};function nM(t,e,r){const n=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):e(s)}}const vp={name:"lineEnding",tokenize:iM};function iM(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),se(t,e,"linePrefix")}}const th={name:"thematicBreak",tokenize:oM};function oM(t,e,r){let n=0,i;return o;function o(h){return t.enter("thematicBreak"),s(h)}function s(h){return i=h,l(h)}function l(h){return h===i?(t.enter("thematicBreakSequence"),u(h)):n>=3&&(h===null||qt(h))?(t.exit("thematicBreak"),e(h)):r(h)}function u(h){return h===i?(t.consume(h),n++,u):(t.exit("thematicBreakSequence"),ne(h)?se(t,l,"whitespace")(h):l(h))}}const Xr={continuation:{tokenize:cM},exit:hM,name:"list",tokenize:lM},aM={partial:!0,tokenize:dM},sM={partial:!0,tokenize:uM};function lM(t,e,r){const n=this,i=n.events[n.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(p){const x=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:sm(p)){if(n.containerState.type||(n.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(th,r,h)(p):h(p);if(!n.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(p)}return r(p)}function u(p){return sm(p)&&++s<10?(t.consume(p),u):(!n.interrupt||s<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),h(p)):r(p)}function h(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,t.check(dc,n.interrupt?r:d,t.attempt(aM,m,f))}function d(p){return n.containerState.initialBlankLine=!0,o++,m(p)}function f(p){return ne(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),m):r(p)}function m(p){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function cM(t,e,r){const n=this;return n.containerState._closeFlow=void 0,t.check(dc,i,o);function i(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,se(t,e,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!ne(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(sM,e,s)(l))}function s(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,se(t,t.attempt(Xr,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function uM(t,e,r){const n=this;return se(t,i,"listItemIndent",n.containerState.size+1);function i(o){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?e(o):r(o)}}function hM(t){t.exit(this.containerState.type)}function dM(t,e,r){const n=this;return se(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=n.events[n.events.length-1];return!ne(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):r(o)}}const GC={name:"setextUnderline",resolveTo:fM,tokenize:pM};function fM(t,e){let r=t.length,n,i,o;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(i=r)}else t[r][1].type==="content"&&t.splice(r,1),!o&&t[r][1].type==="definition"&&(o=r);const s={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",s,e]),t.splice(o+1,0,["exit",t[n][1],e]),t[n][1].end={...t[o][1].end}):t[n][1]=s,t.push(["exit",s,e]),t}function pM(t,e,r){const n=this;let i;return o;function o(h){let d=n.events.length,f;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){f=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(t.enter("setextHeadingLine"),i=h,s(h)):r(h)}function s(h){return t.enter("setextHeadingLineSequence"),l(h)}function l(h){return h===i?(t.consume(h),l):(t.exit("setextHeadingLineSequence"),ne(h)?se(t,u,"lineSuffix")(h):u(h))}function u(h){return h===null||qt(h)?(t.exit("setextHeadingLine"),e(h)):r(h)}}const gM={tokenize:mM};function mM(t){const e=this,r=t.attempt(dc,n,t.attempt(this.parser.constructs.flowInitial,i,se(t,t.attempt(this.parser.constructs.flow,i,t.attempt(bI,i)),"linePrefix")));return r;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const yM={resolveAll:K2()},xM=X2("string"),CM=X2("text");function X2(t){return{resolveAll:K2(t==="text"?kM:void 0),tokenize:e};function e(r){const n=this,i=this.parser.constructs[t],o=r.attempt(i,s,l);return s;function s(d){return h(d)?o(d):l(d)}function l(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),u}function u(d){return h(d)?(r.exit("data"),o(d)):(r.consume(d),u)}function h(d){if(d===null)return!0;const f=i[d];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function K2(t){return e;function e(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(r,n):r}}function kM(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const n=t[r-1][1],i=e.sliceStream(n);let o=i.length,s=-1,l=0,u;for(;o--;){const h=i[o];if(typeof h=="string"){for(s=h.length;h.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(h===-2)u=!0,l++;else if(h!==-1){o++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(l=0),l){const h={type:r===t.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...h.start},n.start.offset===n.end.offset?Object.assign(n,h):(t.splice(r,0,["enter",h,e],["exit",h,e]),r+=2)}r++}return t}const bM={42:Xr,43:Xr,45:Xr,48:Xr,49:Xr,50:Xr,51:Xr,52:Xr,53:Xr,54:Xr,55:Xr,56:Xr,57:Xr,62:q2},vM={91:_I},wM={[-2]:bp,[-1]:bp,32:bp},SM={35:II,42:th,45:[GC,th],60:RI,61:GC,95:th,96:VC,126:VC},TM={38:H2,92:W2},_M={[-5]:vp,[-4]:vp,[-3]:vp,33:tM,38:H2,42:lm,60:[rI,WI],91:rM,92:[AI,W2],93:Iy,95:lm,96:gI},LM={null:[lm,yM]},EM={null:[42,95]},BM={null:[]},AM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:EM,contentInitial:vM,disable:BM,document:bM,flow:SM,flowInitial:wM,insideSpan:LM,string:TM,text:_M},Symbol.toStringTag,{value:"Module"}));function FM(t,e,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},o=[];let s=[],l=[];const u={attempt:B(F),check:B(E),consume:w,enter:S,exit:A,interrupt:B(E,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:t,previous:null,sliceSerialize:m,sliceStream:p,write:f};let d=e.tokenize.call(h,u);return e.resolveAll&&o.push(e),h;function f($){return s=wn(s,$),k(),s[s.length-1]!==null?[]:(P(e,0),h.events=id(o,h.events,h),h.events)}function m($,H){return MM(p($),H)}function p($){return IM(s,$)}function x(){const{_bufferIndex:$,_index:H,line:Q,column:V,offset:W}=n;return{_bufferIndex:$,_index:H,line:Q,column:V,offset:W}}function C($){i[$.line]=$.column,R()}function k(){let $;for(;n._index<s.length;){const H=s[n._index];if(typeof H=="string")for($=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===$&&n._bufferIndex<H.length;)b(H.charCodeAt(n._bufferIndex));else b(H)}}function b($){d=d($)}function w($){qt($)?(n.line++,n.column=1,n.offset+=$===-3?2:1,R()):$!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=$}function S($,H){const Q=H||{};return Q.type=$,Q.start=x(),h.events.push(["enter",Q,h]),l.push(Q),Q}function A($){const H=l.pop();return H.end=x(),h.events.push(["exit",H,h]),H}function F($,H){P($,H.from)}function E($,H){H.restore()}function B($,H){return Q;function Q(V,W,U){let X,D,J,O;return Array.isArray(V)?tt(V):"tokenize"in V?tt([V]):j(V);function j(mt){return St;function St(Tt){const Dt=Tt!==null&&mt[Tt],xt=Tt!==null&&mt.null,Lt=[...Array.isArray(Dt)?Dt:Dt?[Dt]:[],...Array.isArray(xt)?xt:xt?[xt]:[]];return tt(Lt)(Tt)}}function tt(mt){return X=mt,D=0,mt.length===0?U:N(mt[D])}function N(mt){return St;function St(Tt){return O=q(),J=mt,mt.partial||(h.currentConstruct=mt),mt.name&&h.parser.constructs.disable.null.includes(mt.name)?lt():mt.tokenize.call(H?Object.assign(Object.create(h),H):h,u,ct,lt)(Tt)}}function ct(mt){return $(J,O),W}function lt(mt){return O.restore(),++D<X.length?N(X[D]):U}}}function P($,H){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&hn(h.events,H,h.events.length-H,$.resolve(h.events.slice(H),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function q(){const $=x(),H=h.previous,Q=h.currentConstruct,V=h.events.length,W=Array.from(l);return{from:V,restore:U};function U(){n=$,h.previous=H,h.currentConstruct=Q,h.events.length=V,l=W,R()}}function R(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function IM(t,e){const r=e.start._index,n=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let s;if(r===i)s=[t[r].slice(n,o)];else{if(s=t.slice(r,i),n>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(n):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}function MM(t,e){let r=-1;const n=[];let i;for(;++r<t.length;){const o=t[r];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
151
- `;break}case-3:{s=`\r
152
- `;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function OM(t){const n={constructs:j2([AM,...(t||{}).extensions||[]]),content:i(XF),defined:[],document:i(QF),flow:i(gM),lazy:{},string:i(xM),text:i(CM)};return n;function i(o){return s;function s(l){return FM(n,o,l)}}}function NM(t){for(;!U2(t););return t}const XC=/[\0\t\n\r]/g;function RM(){let t=1,e="",r=!0,n;return i;function i(o,s,l){const u=[];let h,d,f,m,p;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,e="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(XC.lastIndex=f,h=XC.exec(o),m=h&&h.index!==void 0?h.index:o.length,p=o.charCodeAt(m),!h){e=o.slice(f);break}if(p===10&&f===m&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),f<m&&(u.push(o.slice(f,m)),t+=m-f),p){case 0:{u.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,u.push(-2);t++<d;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}f=m+1}return l&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}const PM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DM(t){return t.replace(PM,$M)}function $M(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),o=i===120||i===88;return z2(r.slice(o?2:1),o?16:10)}return Fy(r)||t}const Q2={}.hasOwnProperty;function jM(t,e,r){return e&&typeof e=="object"&&(r=e,e=void 0),zM(r)(NM(OM(r).document().write(RM()(t,e,!0))))}function zM(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(zr),autolinkProtocol:q,autolinkEmail:q,atxHeading:o(ke),blockQuote:o(xt),characterEscape:q,characterReference:q,codeFenced:o(Lt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Lt,s),codeText:o(re,s),codeTextData:q,data:q,codeFlowValue:q,definition:o(Qt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ye),hardBreakEscape:o(qe),hardBreakTrailing:o(qe),htmlFlow:o(jr,s),htmlFlowData:q,htmlText:o(jr,s),htmlTextData:q,image:o(Me),label:s,link:o(zr),listItem:o(Br),listItemValue:m,listOrdered:o(We,f),listUnordered:o(We),paragraph:o(Ar),reference:N,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ke),strong:o(Yn),thematicBreak:o(Be)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:Dt,autolinkProtocol:Tt,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:mt,characterReference:St,codeFenced:u(k),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:R,codeIndented:u(b),codeText:u(W),codeTextData:R,data:R,definition:u(),definitionDestinationString:A,definitionLabelString:w,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(H),hardBreakTrailing:u(H),htmlFlow:u(Q),htmlFlowData:R,htmlText:u(V),htmlTextData:R,image:u(X),label:J,labelText:D,lineEnding:$,link:u(U),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ct,resourceDestinationString:O,resourceTitleString:j,resource:tt,setextHeading:u(P),setextHeadingLineSequence:B,setextHeadingText:E,strong:u(),thematicBreak:u()}};Z2(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(at){let ut={type:"root",children:[]};const bt={stack:[ut],tokenStack:[],config:e,enter:l,exit:h,buffer:s,resume:d,data:r},$t=[];let Xt=-1;for(;++Xt<at.length;)if(at[Xt][1].type==="listOrdered"||at[Xt][1].type==="listUnordered")if(at[Xt][0]==="enter")$t.push(Xt);else{const Te=$t.pop();Xt=i(at,Te,Xt)}for(Xt=-1;++Xt<at.length;){const Te=e[at[Xt][0]];Q2.call(Te,at[Xt][1].type)&&Te[at[Xt][1].type].call(Object.assign({sliceSerialize:at[Xt][2].sliceSerialize},bt),at[Xt][1])}if(bt.tokenStack.length>0){const Te=bt.tokenStack[bt.tokenStack.length-1];(Te[1]||KC).call(bt,void 0,Te[0])}for(ut.position={start:no(at.length>0?at[0][1].start:{line:1,column:1,offset:0}),end:no(at.length>0?at[at.length-2][1].end:{line:1,column:1,offset:0})},Xt=-1;++Xt<e.transforms.length;)ut=e.transforms[Xt](ut)||ut;return ut}function i(at,ut,bt){let $t=ut-1,Xt=-1,Te=!1,Ge,Oe,He,me;for(;++$t<=bt;){const ye=at[$t];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?Xt++:Xt--,me=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Ge&&!me&&!Xt&&!He&&(He=$t),me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:me=void 0}if(!Xt&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||Xt===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Ge){let Xe=$t;for(Oe=void 0;Xe--;){const De=at[Xe];if(De[1].type==="lineEnding"||De[1].type==="lineEndingBlank"){if(De[0]==="exit")continue;Oe&&(at[Oe][1].type="lineEndingBlank",Te=!0),De[1].type="lineEnding",Oe=Xe}else if(!(De[1].type==="linePrefix"||De[1].type==="blockQuotePrefix"||De[1].type==="blockQuotePrefixWhitespace"||De[1].type==="blockQuoteMarker"||De[1].type==="listItemIndent"))break}He&&(!Oe||He<Oe)&&(Ge._spread=!0),Ge.end=Object.assign({},Oe?at[Oe][1].start:ye[1].end),at.splice(Oe||$t,0,["exit",Ge,ye[2]]),$t++,bt++}if(ye[1].type==="listItemPrefix"){const Xe={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Ge=Xe,at.splice($t,0,["enter",Xe,ye[2]]),$t++,bt++,He=void 0,me=!0}}}return at[ut][1]._spread=Te,bt}function o(at,ut){return bt;function bt($t){l.call(this,at($t),$t),ut&&ut.call(this,$t)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(at,ut,bt){this.stack[this.stack.length-1].children.push(at),this.stack.push(at),this.tokenStack.push([ut,bt||void 0]),at.position={start:no(ut.start),end:void 0}}function u(at){return ut;function ut(bt){at&&at.call(this,bt),h.call(this,bt)}}function h(at,ut){const bt=this.stack.pop(),$t=this.tokenStack.pop();if($t)$t[0].type!==at.type&&(ut?ut.call(this,at,$t[0]):($t[1]||KC).call(this,at,$t[0]));else throw new Error("Cannot close `"+at.type+"` ("+Dl({start:at.start,end:at.end})+"): it’s not open");bt.position.end=no(at.end)}function d(){return Ay(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(at){if(this.data.expectingFirstListItemValue){const ut=this.stack[this.stack.length-2];ut.start=Number.parseInt(this.sliceSerialize(at),10),this.data.expectingFirstListItemValue=void 0}}function p(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.lang=at}function x(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.meta=at}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at.replace(/(\r?\n|\r)$/g,"")}function w(at){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.label=ut,bt.identifier=zn(this.sliceSerialize(at)).toLowerCase()}function S(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.title=at}function A(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.url=at}function F(at){const ut=this.stack[this.stack.length-1];if(!ut.depth){const bt=this.sliceSerialize(at).length;ut.depth=bt}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function B(at){const ut=this.stack[this.stack.length-1];ut.depth=this.sliceSerialize(at).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function q(at){const bt=this.stack[this.stack.length-1].children;let $t=bt[bt.length-1];(!$t||$t.type!=="text")&&($t=mr(),$t.position={start:no(at.start),end:void 0},bt.push($t)),this.stack.push($t)}function R(at){const ut=this.stack.pop();ut.value+=this.sliceSerialize(at),ut.position.end=no(at.end)}function $(at){const ut=this.stack[this.stack.length-1];if(this.data.atHardBreak){const bt=ut.children[ut.children.length-1];bt.position.end=no(at.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ut.type)&&(q.call(this,at),R.call(this,at))}function H(){this.data.atHardBreak=!0}function Q(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function V(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function W(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function U(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=ut,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function X(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=ut,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function D(at){const ut=this.sliceSerialize(at),bt=this.stack[this.stack.length-2];bt.label=DM(ut),bt.identifier=zn(ut).toLowerCase()}function J(){const at=this.stack[this.stack.length-1],ut=this.resume(),bt=this.stack[this.stack.length-1];if(this.data.inReference=!0,bt.type==="link"){const $t=at.children;bt.children=$t}else bt.alt=ut}function O(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.url=at}function j(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.title=at}function tt(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ct(at){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.label=ut,bt.identifier=zn(this.sliceSerialize(at)).toLowerCase(),this.data.referenceType="full"}function lt(at){this.data.characterReferenceType=at.type}function mt(at){const ut=this.sliceSerialize(at),bt=this.data.characterReferenceType;let $t;bt?($t=z2(ut,bt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$t=Fy(ut);const Xt=this.stack[this.stack.length-1];Xt.value+=$t}function St(at){const ut=this.stack.pop();ut.position.end=no(at.end)}function Tt(at){R.call(this,at);const ut=this.stack[this.stack.length-1];ut.url=this.sliceSerialize(at)}function Dt(at){R.call(this,at);const ut=this.stack[this.stack.length-1];ut.url="mailto:"+this.sliceSerialize(at)}function xt(){return{type:"blockquote",children:[]}}function Lt(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function Qt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function ke(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function jr(){return{type:"html",value:""}}function Me(){return{type:"image",title:null,url:"",alt:null}}function zr(){return{type:"link",title:null,url:"",children:[]}}function We(at){return{type:"list",ordered:at.type==="listOrdered",start:null,spread:at._spread,children:[]}}function Br(at){return{type:"listItem",spread:at._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function Yn(){return{type:"strong",children:[]}}function mr(){return{type:"text",value:""}}function Be(){return{type:"thematicBreak"}}}function no(t){return{line:t.line,column:t.column,offset:t.offset}}function Z2(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?Z2(t,n):qM(t,n)}}function qM(t,e){let r;for(r in e)if(Q2.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function KC(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Dl({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Dl({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Dl({start:e.start,end:e.end})+") is still open")}function WM(t){const e=this;e.parser=r;function r(n){return jM(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function HM(t,e){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}function UM(t,e){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
153
- `}]}function VM(t,e){const r=e.value?e.value+`
154
- `:"",n={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o}function YM(t,e){const r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function GM(t,e){const r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function XM(t,e){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),i=Cs(n.toLowerCase()),o=t.footnoteOrder.indexOf(n);let s,l=t.footnoteCounts.get(n);l===void 0?(l=0,t.footnoteOrder.push(n),s=t.footnoteOrder.length):s=o+1,l+=1,t.footnoteCounts.set(n,l);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,h),t.applyData(e,h)}function KM(t,e){const r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function QM(t,e){if(t.options.allowDangerousHtml){const r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}function J2(t,e){const r=e.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];const i=t.all(e),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function ZM(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return J2(t,e);const i={src:Cs(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,o),t.applyData(e,o)}function JM(t,e){const r={src:Cs(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}function t4(t,e){const r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}function e4(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return J2(t,e);const i={href:Cs(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)}function r4(t,e){const r={href:Cs(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function n4(t,e,r){const n=t.all(e),i=r?i4(r):tw(e),o={},s=[];if(typeof e.checked=="boolean"){const d=n[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<n.length;){const d=n[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
155
- `}),d.type==="element"&&d.tagName==="p"&&!i?s.push(...d.children):s.push(d)}const u=n[n.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
156
- `});const h={type:"element",tagName:"li",properties:o,children:s};return t.patch(e,h),t.applyData(e,h)}function i4(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const r=t.children;let n=-1;for(;!e&&++n<r.length;)e=tw(r[n])}return e}function tw(t){const e=t.spread;return e??t.children.length>1}function o4(t,e){const r={},n=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,o),t.applyData(e,o)}function a4(t,e){const r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function s4(t,e){const r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}function l4(t,e){const r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function c4(t,e){const r=t.all(e),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},l=_y(e.children[1]),u=M2(e.children[e.children.length-1]);l&&u&&(s.position={start:l,end:u}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)}function u4(t,e,r){const n=r?r.children:void 0,o=(n?n.indexOf(e):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,l=s?s.length:e.children.length;let u=-1;const h=[];for(;++u<l;){const f=e.children[u],m={},p=s?s[u]:void 0;p&&(m.align=p);let x={type:"element",tagName:o,properties:m,children:[]};f&&(x.children=t.all(f),t.patch(f,x),x=t.applyData(f,x)),h.push(x)}const d={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,d),t.applyData(e,d)}function h4(t,e){const r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const QC=9,ZC=32;function d4(t){const e=String(t),r=/\r?\n|\r/g;let n=r.exec(e),i=0;const o=[];for(;n;)o.push(JC(e.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(e);return o.push(JC(e.slice(i),i>0,!1)),o.join("")}function JC(t,e,r){let n=0,i=t.length;if(e){let o=t.codePointAt(n);for(;o===QC||o===ZC;)n++,o=t.codePointAt(n)}if(r){let o=t.codePointAt(i-1);for(;o===QC||o===ZC;)i--,o=t.codePointAt(i-1)}return i>n?t.slice(n,i):""}function f4(t,e){const r={type:"text",value:d4(String(e.value))};return t.patch(e,r),t.applyData(e,r)}function p4(t,e){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}const g4={blockquote:HM,break:UM,code:VM,delete:YM,emphasis:GM,footnoteReference:XM,heading:KM,html:QM,imageReference:ZM,image:JM,inlineCode:t4,linkReference:e4,link:r4,listItem:n4,list:o4,paragraph:a4,root:s4,strong:l4,table:c4,tableCell:h4,tableRow:u4,text:f4,thematicBreak:p4,toml:Ou,yaml:Ou,definition:Ou,footnoteDefinition:Ou};function Ou(){}const ew=-1,od=0,jl=1,Ch=2,My=3,Oy=4,Ny=5,Ry=6,rw=7,nw=8,tk=typeof self=="object"?self:globalThis,m4=(t,e)=>{const r=(i,o)=>(t.set(o,i),i),n=i=>{if(t.has(i))return t.get(i);const[o,s]=e[i];switch(o){case od:case ew:return r(s,i);case jl:{const l=r([],i);for(const u of s)l.push(n(u));return l}case Ch:{const l=r({},i);for(const[u,h]of s)l[n(u)]=n(h);return l}case My:return r(new Date(s),i);case Oy:{const{source:l,flags:u}=s;return r(new RegExp(l,u),i)}case Ny:{const l=r(new Map,i);for(const[u,h]of s)l.set(n(u),n(h));return l}case Ry:{const l=r(new Set,i);for(const u of s)l.add(n(u));return l}case rw:{const{name:l,message:u}=s;return r(new tk[l](u),i)}case nw:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return r(new DataView(l),s)}}return r(new tk[o](s),i)};return n},ek=t=>m4(new Map,t)(0),Ma="",{toString:y4}={},{keys:x4}=Object,pl=t=>{const e=typeof t;if(e!=="object"||!t)return[od,e];const r=y4.call(t).slice(8,-1);switch(r){case"Array":return[jl,Ma];case"Object":return[Ch,Ma];case"Date":return[My,Ma];case"RegExp":return[Oy,Ma];case"Map":return[Ny,Ma];case"Set":return[Ry,Ma];case"DataView":return[jl,r]}return r.includes("Array")?[jl,r]:r.includes("Error")?[rw,r]:[Ch,r]},Nu=([t,e])=>t===od&&(e==="function"||e==="symbol"),C4=(t,e,r,n)=>{const i=(s,l)=>{const u=n.push(s)-1;return r.set(l,u),u},o=s=>{if(r.has(s))return r.get(s);let[l,u]=pl(s);switch(l){case od:{let d=s;switch(u){case"bigint":l=nw,d=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([ew],s)}return i([l,d],s)}case jl:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),i([u,[...m]],s)}const d=[],f=i([l,d],s);for(const m of s)d.push(o(m));return f}case Ch:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(e&&"toJSON"in s)return o(s.toJSON());const d=[],f=i([l,d],s);for(const m of x4(s))(t||!Nu(pl(s[m])))&&d.push([o(m),o(s[m])]);return f}case My:return i([l,s.toISOString()],s);case Oy:{const{source:d,flags:f}=s;return i([l,{source:d,flags:f}],s)}case Ny:{const d=[],f=i([l,d],s);for(const[m,p]of s)(t||!(Nu(pl(m))||Nu(pl(p))))&&d.push([o(m),o(p)]);return f}case Ry:{const d=[],f=i([l,d],s);for(const m of s)(t||!Nu(pl(m)))&&d.push(o(m));return f}}const{message:h}=s;return i([l,{name:u,message:h}],s)};return o},rk=(t,{json:e,lossy:r}={})=>{const n=[];return C4(!(e||r),!!e,new Map,n)(t),n},kh=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?ek(rk(t,e)):structuredClone(t):(t,e)=>ek(rk(t,e));function k4(t,e){const r=[{type:"text",value:"↩"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}function b4(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function v4(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||k4,n=t.options.footnoteBackLabel||b4,i=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[u]);if(!h)continue;const d=t.all(h),f=String(h.identifier).toUpperCase(),m=Cs(f.toLowerCase());let p=0;const x=[],C=t.footnoteCounts.get(f);for(;C!==void 0&&++p<=C;){x.length>0&&x.push({type:"text",value:" "});let w=typeof r=="string"?r:r(u,p);typeof w=="string"&&(w={type:"text",value:w}),x.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,p),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const w=k.children[k.children.length-1];w&&w.type==="text"?w.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else d.push(...x);const b={type:"element",tagName:"li",properties:{id:e+"fn-"+m},children:t.wrap(d,!0)};t.patch(h,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...kh(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
157
- `},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
158
- `}]}}const ad=(function(t){if(t==null)return _4;if(typeof t=="function")return sd(t);if(typeof t=="object")return Array.isArray(t)?w4(t):S4(t);if(typeof t=="string")return T4(t);throw new Error("Expected function, string, or object as test")});function w4(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=ad(t[r]);return sd(n);function n(...i){let o=-1;for(;++o<e.length;)if(e[o].apply(this,i))return!0;return!1}}function S4(t){const e=t;return sd(r);function r(n){const i=n;let o;for(o in t)if(i[o]!==e[o])return!1;return!0}}function T4(t){return sd(e);function e(r){return r&&r.type===t}}function sd(t){return e;function e(r,n,i){return!!(L4(r)&&t.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function _4(){return!0}function L4(t){return t!==null&&typeof t=="object"&&"type"in t}const iw=[],E4=!0,cm=!1,B4="skip";function ow(t,e,r,n){let i;typeof e=="function"&&typeof r!="function"?(n=r,r=e):i=e;const o=ad(i),s=n?-1:1;l(t,void 0,[])();function l(u,h,d){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=iw,x,C,k;if((!e||o(u,h,d[d.length-1]||void 0))&&(p=A4(r(u,d)),p[0]===cm))return p;if("children"in u&&u.children){const b=u;if(b.children&&p[0]!==B4)for(C=(n?b.children.length:-1)+s,k=d.concat(b);C>-1&&C<b.children.length;){const w=b.children[C];if(x=l(w,C,k)(),x[0]===cm)return x;C=typeof x[1]=="number"?x[1]:C+s}}return p}}}function A4(t){return Array.isArray(t)?t:typeof t=="number"?[E4,t]:t==null?iw:[t]}function Py(t,e,r,n){let i,o,s;typeof e=="function"&&typeof r!="function"?(o=void 0,s=e,i=r):(o=e,s=r,i=n),ow(t,o,l,i);function l(u,h){const d=h[h.length-1],f=d?d.children.indexOf(u):void 0;return s(u,f,d)}}const um={}.hasOwnProperty,F4={};function I4(t,e){const r=e||F4,n=new Map,i=new Map,o=new Map,s={...g4,...r.handlers},l={all:h,applyData:O4,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:u,options:r,patch:M4,wrap:R4};return Py(t,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?n:i,m=String(d.identifier).toUpperCase();f.has(m)||f.set(m,d)}}),l;function u(d,f){const m=d.type,p=l.handlers[m];if(um.call(l.handlers,m)&&p)return p(l,d,f);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in d){const{children:C,...k}=d,b=kh(k);return b.children=l.all(d),b}return kh(d)}return(l.options.unknownHandler||N4)(l,d,f)}function h(d){const f=[];if("children"in d){const m=d.children;let p=-1;for(;++p<m.length;){const x=l.one(m[p],d);if(x){if(p&&m[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=nk(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=nk(C.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function M4(t,e){t.position&&(e.position=bF(t))}function O4(t,e){let r=e;if(t&&t.data){const n=t.data.hName,i=t.data.hChildren,o=t.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,kh(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function N4(t,e){const r=e.data||{},n="value"in e&&!(um.call(r,"hProperties")||um.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function R4(t,e){const r=[];let n=-1;for(e&&r.push({type:"text",value:`
159
- `});++n<t.length;)n&&r.push({type:"text",value:`
160
- `}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
161
- `}),r}function nk(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function ik(t,e){const r=I4(t,e),n=r.one(t,void 0),i=v4(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
162
- `},i),o}function P4(t,e){return t&&"run"in t?async function(r,n){const i=ik(r,{file:n,...e});await t.run(i,n)}:function(r,n){return ik(r,{file:n,...t||e})}}function ok(t){if(t)throw t}var wp,ak;function D4(){if(ak)return wp;ak=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},o=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var d=t.call(h,"constructor"),f=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!f)return!1;var m;for(m in h);return typeof m>"u"||t.call(h,m)},s=function(h,d){r&&d.name==="__proto__"?r(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},l=function(h,d){if(d==="__proto__")if(t.call(h,d)){if(n)return n(h,d).value}else return;return h[d]};return wp=function u(){var h,d,f,m,p,x,C=arguments[0],k=1,b=arguments.length,w=!1;for(typeof C=="boolean"&&(w=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<b;++k)if(h=arguments[k],h!=null)for(d in h)f=l(C,d),m=l(h,d),C!==m&&(w&&m&&(o(m)||(p=i(m)))?(p?(p=!1,x=f&&i(f)?f:[]):x=f&&o(f)?f:{},s(C,{name:d,newValue:u(w,x,m)})):typeof m<"u"&&s(C,{name:d,newValue:m}));return C},wp}var $4=D4();const Sp=tr($4);function hm(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function j4(){const t=[],e={run:r,use:n};return e;function r(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(u,...h){const d=t[++o];let f=-1;if(u){s(u);return}for(;++f<i.length;)(h[f]===null||h[f]===void 0)&&(h[f]=i[f]);i=h,d?z4(d,l)(...h):s(null,...h)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function z4(t,e){let r;return n;function n(...s){const l=t.length>s.length;let u;l&&s.push(i);try{u=t.apply(this,s)}catch(h){const d=h;if(l&&r)throw d;return i(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(s,...l){r||(r=!0,e(s,...l))}function o(s){i(null,s)}}const ni={basename:q4,dirname:W4,extname:H4,join:U4,sep:"/"};function q4(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');fc(t);let r=0,n=-1,i=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let s=-1,l=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(t.codePointAt(i)===e.codePointAt(l--)?l<0&&(n=i):(l=-1,n=s));return r===n?n=s:n<0&&(n=t.length),t.slice(r,n)}function W4(t){if(fc(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function H4(t){fc(t);let e=t.length,r=-1,n=0,i=-1,o=0,s;for(;e--;){const l=t.codePointAt(e);if(l===47){if(s){n=e+1;break}continue}r<0&&(s=!0,r=e+1),l===46?i<0?i=e:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function U4(...t){let e=-1,r;for(;++e<t.length;)fc(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":V4(r)}function V4(t){fc(t);const e=t.codePointAt(0)===47;let r=Y4(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function Y4(t,e){let r="",n=0,i=-1,o=0,s=-1,l,u;for(;++s<=t.length;){if(s<t.length)l=t.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,s):r=t.slice(i+1,s),n=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return r}function fc(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const G4={cwd:X4};function X4(){return"/"}function dm(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function K4(t){if(typeof t=="string")t=new URL(t);else if(!dm(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Q4(t)}function Q4(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const Tp=["history","path","basename","stem","extname","dirname"];class aw{constructor(e){let r;e?dm(e)?r={path:e}:typeof e=="string"||Z4(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":G4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Tp.length;){const o=Tp[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)Tp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(e){Lp(e,"basename"),_p(e,"basename"),this.path=ni.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?ni.dirname(this.path):void 0}set dirname(e){sk(this.basename,"dirname"),this.path=ni.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?ni.extname(this.path):void 0}set extname(e){if(_p(e,"extname"),sk(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ni.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){dm(e)&&(e=K4(e)),Lp(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?ni.basename(this.path,this.extname):void 0}set stem(e){Lp(e,"stem"),_p(e,"stem"),this.path=ni.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new Lr(e,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function _p(t,e){if(t&&t.includes(ni.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+ni.sep+"`")}function Lp(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function sk(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function Z4(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const J4=(function(t){const n=this.constructor.prototype,i=n[t],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o}),tO={}.hasOwnProperty;class Dy extends J4{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j4()}copy(){const e=new Dy;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(Sp(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(Ap("data",this.frozen),this.namespace[e]=r,this):tO.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ap("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=Ru(e),n=this.parser||this.Parser;return Ep("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),Ep("process",this.parser||this.Parser),Bp("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){const l=Ru(e),u=n.parse(l);n.run(u,l,function(d,f,m){if(d||!f||!m)return h(d);const p=f,x=n.stringify(p,m);nO(x)?m.value=x:m.result=x,h(d,m)});function h(d,f){d||!f?s(d):o?o(f):r(void 0,f)}}}processSync(e){let r=!1,n;return this.freeze(),Ep("processSync",this.parser||this.Parser),Bp("processSync",this.compiler||this.Compiler),this.process(e,i),ck("processSync","process",r),n;function i(o,s){r=!0,ok(o),n=s}}run(e,r,n){lk(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,l){const u=Ru(r);i.run(e,u,h);function h(d,f,m){const p=f||e;d?l(d):s?s(p):n(void 0,p,m)}}}runSync(e,r){let n=!1,i;return this.run(e,r,o),ck("runSync","run",n),i;function o(s,l){ok(s),i=l,n=!0}}stringify(e,r){this.freeze();const n=Ru(r),i=this.compiler||this.Compiler;return Bp("stringify",i),lk(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(Ap("use",this.frozen),e!=null)if(typeof e=="function")u(e,r);else if(typeof e=="object")Array.isArray(e)?l(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...f]=h;u(d,f)}else s(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function s(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(h.plugins),h.settings&&(i.settings=Sp(!0,i.settings,h.settings))}function l(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const f=h[d];o(f)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,d){let f=-1,m=-1;for(;++f<n.length;)if(n[f][0]===h){m=f;break}if(m===-1)n.push([h,...d]);else if(d.length>0){let[p,...x]=d;const C=n[m][1];hm(C)&&hm(p)&&(p=Sp(!0,C,p)),n[m]=[h,p,...x]}}}}const eO=new Dy().freeze();function Ep(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Bp(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Ap(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lk(t){if(!hm(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function ck(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Ru(t){return rO(t)?t:new aw(t)}function rO(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function nO(t){return typeof t=="string"||iO(t)}function iO(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const oO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",uk=[],hk={allowDangerousHtml:!0},aO=/^(https?|ircs?|mailto|xmpp)$/i,sO=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lO(t){const e=cO(t),r=uO(t);return hO(e.runSync(e.parse(r),r),t)}function cO(t){const e=t.rehypePlugins||uk,r=t.remarkPlugins||uk,n=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...hk}:hk;return eO().use(WM).use(r).use(P4,n).use(e)}function uO(t){const e=t.children||"",r=new aw;return typeof e=="string"&&(r.value=e),r}function hO(t,e){const r=e.allowedElements,n=e.allowElement,i=e.components,o=e.disallowedElements,s=e.skipHtml,l=e.unwrapDisallowed,u=e.urlTransform||dO;for(const d of sO)Object.hasOwn(e,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+oO+d.id,void 0);return e.className&&(t={type:"element",tagName:"div",properties:{className:e.className},children:t.type==="root"?t.children:[t]}),Py(t,h),_F(t,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function h(d,f,m){if(d.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let p;for(p in kp)if(Object.hasOwn(kp,p)&&Object.hasOwn(d.properties,p)){const x=d.properties[p],C=kp[p];(C===null||C.includes(d.tagName))&&(d.properties[p]=u(String(x||""),p,d))}}if(d.type==="element"){let p=r?!r.includes(d.tagName):o?o.includes(d.tagName):!1;if(!p&&n&&typeof f=="number"&&(p=!n(d,f,m)),p&&m&&typeof f=="number")return l&&d.children?m.children.splice(f,1,...d.children):m.children.splice(f,1),f}}}function dO(t){const e=t.indexOf(":"),r=t.indexOf("?"),n=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||r!==-1&&e>r||n!==-1&&e>n||aO.test(t.slice(0,e))?t:""}function dk(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}function fO(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pO(t,e,r){const i=ad((r||{}).ignore||[]),o=gO(e);let s=-1;for(;++s<o.length;)ow(t,"text",l);function l(h,d){let f=-1,m;for(;++f<d.length;){const p=d[f],x=m?m.children:void 0;if(i(p,x?x.indexOf(p):void 0,m))return;m=p}if(m)return u(h,d)}function u(h,d){const f=d[d.length-1],m=o[s][0],p=o[s][1];let x=0;const k=f.children.indexOf(h);let b=!1,w=[];m.lastIndex=0;let S=m.exec(h.value);for(;S;){const A=S.index,F={index:S.index,input:S.input,stack:[...d,h]};let E=p(...S,F);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?m.lastIndex=A+1:(x!==A&&w.push({type:"text",value:h.value.slice(x,A)}),Array.isArray(E)?w.push(...E):E&&w.push(E),x=A+S[0].length,b=!0),!m.global)break;S=m.exec(h.value)}return b?(x<h.value.length&&w.push({type:"text",value:h.value.slice(x)}),f.children.splice(k,1,...w)):w=[h],k+w.length}}function gO(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let n=-1;for(;++n<r.length;){const i=r[n];e.push([mO(i[0]),yO(i[1])])}return e}function mO(t){return typeof t=="string"?new RegExp(fO(t),"g"):t}function yO(t){return typeof t=="function"?t:function(){return t}}const Fp="phrasing",Ip=["autolink","link","image","label"];function xO(){return{transforms:[TO],enter:{literalAutolink:kO,literalAutolinkEmail:Mp,literalAutolinkHttp:Mp,literalAutolinkWww:Mp},exit:{literalAutolink:SO,literalAutolinkEmail:wO,literalAutolinkHttp:bO,literalAutolinkWww:vO}}}function CO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fp,notInConstruct:Ip},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fp,notInConstruct:Ip},{character:":",before:"[ps]",after:"\\/",inConstruct:Fp,notInConstruct:Ip}]}}function kO(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Mp(t){this.config.enter.autolinkProtocol.call(this,t)}function bO(t){this.config.exit.autolinkProtocol.call(this,t)}function vO(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function wO(t){this.config.exit.autolinkEmail.call(this,t)}function SO(t){this.exit(t)}function TO(t){pO(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_O],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),LO]],{ignore:["link","linkReference"]})}function _O(t,e,r,n,i){let o="";if(!sw(i)||(/^w/i.test(e)&&(r=e+r,e="",o="http://"),!EO(r)))return!1;const s=BO(r+n);if(!s[0])return!1;const l={type:"link",title:null,url:o+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function LO(t,e,r,n){return!sw(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}function EO(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function BO(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],n=r.indexOf(")");const i=dk(t,"(");let o=dk(t,")");for(;n!==-1&&i>o;)t+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[t,r]}function sw(t,e){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Go(r)||nd(r))&&(!e||r!==47)}lw.peek=DO;function AO(){this.buffer()}function FO(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function IO(){this.buffer()}function MO(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function OO(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zn(this.sliceSerialize(t)).toLowerCase(),r.label=e}function NO(t){this.exit(t)}function RO(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zn(this.sliceSerialize(t)).toLowerCase(),r.label=e}function PO(t){this.exit(t)}function DO(){return"["}function lw(t,e,r,n){const i=r.createTracker(n);let o=i.move("[^");const s=r.enter("footnoteReference"),l=r.enter("reference");return o+=i.move(r.safe(r.associationId(t),{after:"]",before:o})),l(),s(),o+=i.move("]"),o}function $O(){return{enter:{gfmFootnoteCallString:AO,gfmFootnoteCall:FO,gfmFootnoteDefinitionLabelString:IO,gfmFootnoteDefinition:MO},exit:{gfmFootnoteCallString:OO,gfmFootnoteCall:NO,gfmFootnoteDefinitionLabelString:RO,gfmFootnoteDefinition:PO}}}function jO(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:r,footnoteReference:lw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,o,s){const l=o.createTracker(s);let u=l.move("[^");const h=o.enter("footnoteDefinition"),d=o.enter("label");return u+=l.move(o.safe(o.associationId(n),{before:u,after:"]"})),d(),u+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),u+=l.move((e?`
163
- `:" ")+o.indentLines(o.containerFlow(n,l.current()),e?cw:zO))),h(),u}}function zO(t,e,r){return e===0?t:cw(t,e,r)}function cw(t,e,r){return(r?"":" ")+t}const qO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];uw.peek=YO;function WO(){return{canContainEols:["delete"],enter:{strikethrough:UO},exit:{strikethrough:VO}}}function HO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qO}],handlers:{delete:uw}}}function UO(t){this.enter({type:"delete",children:[]},t)}function VO(t){this.exit(t)}function uw(t,e,r,n){const i=r.createTracker(n),o=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(t,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function YO(){return"~"}function GO(t){return t.length}function XO(t,e){const r=e||{},n=(r.align||[]).concat(),i=r.stringLength||GO,o=[],s=[],l=[],u=[];let h=0,d=-1;for(;++d<t.length;){const C=[],k=[];let b=-1;for(t[d].length>h&&(h=t[d].length);++b<t[d].length;){const w=KO(t[d][b]);if(r.alignDelimiters!==!1){const S=i(w);k[b]=S,(u[b]===void 0||S>u[b])&&(u[b]=S)}C.push(w)}s[d]=C,l[d]=k}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<h;)o[f]=fk(n[f]);else{const C=fk(n);for(;++f<h;)o[f]=C}f=-1;const m=[],p=[];for(;++f<h;){const C=o[f];let k="",b="";C===99?(k=":",b=":"):C===108?k=":":C===114&&(b=":");let w=r.alignDelimiters===!1?1:Math.max(1,u[f]-k.length-b.length);const S=k+"-".repeat(w)+b;r.alignDelimiters!==!1&&(w=k.length+w+b.length,w>u[f]&&(u[f]=w),p[f]=w),m[f]=S}s.splice(1,0,m),l.splice(1,0,p),d=-1;const x=[];for(;++d<s.length;){const C=s[d],k=l[d];f=-1;const b=[];for(;++f<h;){const w=C[f]||"";let S="",A="";if(r.alignDelimiters!==!1){const F=u[f]-(k[f]||0),E=o[f];E===114?S=" ".repeat(F):E===99?F%2?(S=" ".repeat(F/2+.5),A=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),A=S):A=" ".repeat(F)}r.delimiterStart!==!1&&!f&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||f)&&b.push(" "),r.alignDelimiters!==!1&&b.push(S),b.push(w),r.alignDelimiters!==!1&&b.push(A),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||f!==h-1)&&b.push("|")}x.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return x.join(`
164
- `)}function KO(t){return t==null?"":String(t)}function fk(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function QO(t,e,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const s=r.indentLines(r.containerFlow(t,o.current()),ZO);return i(),s}function ZO(t,e,r){return">"+(r?"":" ")+t}function JO(t,e){return pk(t,e.inConstruct,!0)&&!pk(t,e.notInConstruct,!1)}function pk(t,e,r){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return r;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}function gk(t,e,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
165
- `&&JO(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
166
- `}function tN(t,e){const r=String(t);let n=r.indexOf(e),i=n,o=0,s=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+e.length,n=r.indexOf(e,i);return s}function eN(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function rN(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function nN(t,e,r,n){const i=rN(r),o=t.value||"",s=i==="`"?"GraveAccent":"Tilde";if(eN(t,r)){const f=r.enter("codeIndented"),m=r.indentLines(o,iN);return f(),m}const l=r.createTracker(n),u=i.repeat(Math.max(tN(o,i)+1,3)),h=r.enter("codeFenced");let d=l.move(u);if(t.lang){const f=r.enter(`codeFencedLang${s}`);d+=l.move(r.safe(t.lang,{before:d,after:" ",encode:["`"],...l.current()})),f()}if(t.lang&&t.meta){const f=r.enter(`codeFencedMeta${s}`);d+=l.move(" "),d+=l.move(r.safe(t.meta,{before:d,after:`
167
- `,encode:["`"],...l.current()})),f()}return d+=l.move(`
168
- `),o&&(d+=l.move(o+`
169
- `)),d+=l.move(u),h(),d}function iN(t,e,r){return(r?"":" ")+t}function $y(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function oN(t,e,r,n){const i=$y(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition");let l=r.enter("label");const u=r.createTracker(n);let h=u.move("[");return h+=u.move(r.safe(r.associationId(t),{before:h,after:"]",...u.current()})),h+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(t.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=r.enter("destinationRaw"),h+=u.move(r.safe(t.url,{before:h,after:t.title?" ":`
170
- `,...u.current()}))),l(),t.title&&(l=r.enter(`title${o}`),h+=u.move(" "+i),h+=u.move(r.safe(t.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),s(),h}function aN(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Xl(t){return"&#x"+t.toString(16).toUpperCase()+";"}function bh(t,e,r){const n=cs(t),i=cs(e);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}hw.peek=sN;function hw(t,e,r,n){const i=aN(r),o=r.enter("emphasis"),s=r.createTracker(n),l=s.move(i);let u=s.move(r.containerPhrasing(t,{after:i,before:l,...s.current()}));const h=u.charCodeAt(0),d=bh(n.before.charCodeAt(n.before.length-1),h,i);d.inside&&(u=Xl(h)+u.slice(1));const f=u.charCodeAt(u.length-1),m=bh(n.after.charCodeAt(0),f,i);m.inside&&(u=u.slice(0,-1)+Xl(f));const p=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},l+u+p}function sN(t,e,r){return r.options.emphasis||"*"}function lN(t,e){let r=!1;return Py(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,cm}),!!((!t.depth||t.depth<3)&&Ay(t)&&(e.options.setext||r))}function cN(t,e,r,n){const i=Math.max(Math.min(6,t.depth||1),1),o=r.createTracker(n);if(lN(t,r)){const d=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(t,{...o.current(),before:`
171
- `,after:`
172
- `});return f(),d(),m+`
173
- `+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
174
- `))+1))}const s="#".repeat(i),l=r.enter("headingAtx"),u=r.enter("phrasing");o.move(s+" ");let h=r.containerPhrasing(t,{before:"# ",after:`
175
- `,...o.current()});return/^[\t ]/.test(h)&&(h=Xl(h.charCodeAt(0))+h.slice(1)),h=h?s+" "+h:s,r.options.closeAtx&&(h+=" "+s),u(),l(),h}dw.peek=uN;function dw(t){return t.value||""}function uN(){return"<"}fw.peek=hN;function fw(t,e,r,n){const i=$y(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let l=r.enter("label");const u=r.createTracker(n);let h=u.move("![");return h+=u.move(r.safe(t.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(t.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=r.enter("destinationRaw"),h+=u.move(r.safe(t.url,{before:h,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=r.enter(`title${o}`),h+=u.move(" "+i),h+=u.move(r.safe(t.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),h+=u.move(")"),s(),h}function hN(){return"!"}pw.peek=dN;function pw(t,e,r,n){const i=t.referenceType,o=r.enter("imageReference");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("![");const h=r.safe(t.alt,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(t),{before:u,after:"]",...l.current()});return s(),r.stack=d,o(),i==="full"||!h||h!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function dN(){return"!"}gw.peek=fN;function gw(t,e,r){let n=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const s=r.unsafe[o],l=r.compilePattern(s);let u;if(s.atBreak)for(;u=l.exec(n);){let h=u.index;n.charCodeAt(h)===10&&n.charCodeAt(h-1)===13&&h--,n=n.slice(0,h)+" "+n.slice(u.index+1)}}return i+n+i}function fN(){return"`"}function mw(t,e){const r=Ay(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}yw.peek=pN;function yw(t,e,r,n){const i=$y(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let l,u;if(mw(t,r)){const d=r.stack;r.stack=[],l=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(t,{before:f,after:">",...s.current()})),f+=s.move(">"),l(),r.stack=d,f}l=r.enter("link"),u=r.enter("label");let h=s.move("[");return h+=s.move(r.containerPhrasing(t,{before:h,after:"](",...s.current()})),h+=s.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=r.enter("destinationLiteral"),h+=s.move("<"),h+=s.move(r.safe(t.url,{before:h,after:">",...s.current()})),h+=s.move(">")):(u=r.enter("destinationRaw"),h+=s.move(r.safe(t.url,{before:h,after:t.title?" ":")",...s.current()}))),u(),t.title&&(u=r.enter(`title${o}`),h+=s.move(" "+i),h+=s.move(r.safe(t.title,{before:h,after:i,...s.current()})),h+=s.move(i),u()),h+=s.move(")"),l(),h}function pN(t,e,r){return mw(t,r)?"<":"["}xw.peek=gN;function xw(t,e,r,n){const i=t.referenceType,o=r.enter("linkReference");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("[");const h=r.containerPhrasing(t,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(t),{before:u,after:"]",...l.current()});return s(),r.stack=d,o(),i==="full"||!h||h!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function gN(){return"["}function jy(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function mN(t){const e=jy(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}function yN(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function Cw(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function xN(t,e,r,n){const i=r.enter("list"),o=r.bulletCurrent;let s=t.ordered?yN(r):jy(r);const l=t.ordered?s==="."?")":".":mN(r);let u=e&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!t.ordered){const d=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),Cw(r)===s&&d){let f=-1;for(;++f<t.children.length;){const m=t.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=l),r.bulletCurrent=s;const h=r.containerFlow(t,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),h}function CN(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function kN(t,e,r,n){const i=CN(r);let o=r.bulletCurrent||jy(r);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const l=r.createTracker(n);l.move(o+" ".repeat(s-o.length)),l.shift(s);const u=r.enter("listItem"),h=r.indentLines(r.containerFlow(t,l.current()),d);return u(),h;function d(f,m,p){return m?(p?"":" ".repeat(s))+f:(p?o:o+" ".repeat(s-o.length))+f}}function bN(t,e,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(t,n);return o(),i(),s}const vN=ad(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function wN(t,e,r,n){return(t.children.some(function(s){return vN(s)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}function SN(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}kw.peek=TN;function kw(t,e,r,n){const i=SN(r),o=r.enter("strong"),s=r.createTracker(n),l=s.move(i+i);let u=s.move(r.containerPhrasing(t,{after:i,before:l,...s.current()}));const h=u.charCodeAt(0),d=bh(n.before.charCodeAt(n.before.length-1),h,i);d.inside&&(u=Xl(h)+u.slice(1));const f=u.charCodeAt(u.length-1),m=bh(n.after.charCodeAt(0),f,i);m.inside&&(u=u.slice(0,-1)+Xl(f));const p=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},l+u+p}function TN(t,e,r){return r.options.strong||"*"}function _N(t,e,r,n){return r.safe(t.value,n)}function LN(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function EN(t,e,r){const n=(Cw(r)+(r.options.ruleSpaces?" ":"")).repeat(LN(r));return r.options.ruleSpaces?n.slice(0,-1):n}const bw={blockquote:QO,break:gk,code:nN,definition:oN,emphasis:hw,hardBreak:gk,heading:cN,html:dw,image:fw,imageReference:pw,inlineCode:gw,link:yw,linkReference:xw,list:xN,listItem:kN,paragraph:bN,root:wN,strong:kw,text:_N,thematicBreak:EN};function BN(){return{enter:{table:AN,tableData:mk,tableHeader:mk,tableRow:IN},exit:{codeText:MN,table:FN,tableData:Op,tableHeader:Op,tableRow:Op}}}function AN(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function FN(t){this.exit(t),this.data.inTable=void 0}function IN(t){this.enter({type:"tableRow",children:[]},t)}function Op(t){this.exit(t)}function mk(t){this.enter({type:"tableCell",children:[]},t)}function MN(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,ON));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function ON(t,e){return e==="|"?e:t}function NN(t){const e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,i=e.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
176
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:l}};function s(p,x,C,k){return h(d(p,C,k),p.align)}function l(p,x,C,k){const b=f(p,C,k),w=h([b]);return w.slice(0,w.indexOf(`
177
- `))}function u(p,x,C,k){const b=C.enter("tableCell"),w=C.enter("phrasing"),S=C.containerPhrasing(p,{...k,before:o,after:o});return w(),b(),S}function h(p,x){return XO(p,{align:x,alignDelimiters:n,padding:r,stringLength:i})}function d(p,x,C){const k=p.children;let b=-1;const w=[],S=x.enter("table");for(;++b<k.length;)w[b]=f(k[b],x,C);return S(),w}function f(p,x,C){const k=p.children;let b=-1;const w=[],S=x.enter("tableRow");for(;++b<k.length;)w[b]=u(k[b],p,x,C);return S(),w}function m(p,x,C){let k=bw.inlineCode(p,x,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function RN(){return{exit:{taskListCheckValueChecked:yk,taskListCheckValueUnchecked:yk,paragraph:DN}}}function PN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$N}}}function yk(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function DN(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=e.children;let o=-1,s;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){s=l;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function $N(t,e,r,n){const i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",l=r.createTracker(n);o&&l.move(s);let u=bw.listItem(t,e,r,{...n,...l.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(d){return d+s}}function jN(){return[xO(),$O(),WO(),BN(),RN()]}function zN(t){return{extensions:[CO(),jO(t),HO(),NN(t),PN()]}}const qN={tokenize:GN,partial:!0},vw={tokenize:XN,partial:!0},ww={tokenize:KN,partial:!0},Sw={tokenize:QN,partial:!0},WN={tokenize:ZN,partial:!0},Tw={name:"wwwAutolink",tokenize:VN,previous:Lw},_w={name:"protocolAutolink",tokenize:YN,previous:Ew},Ii={name:"emailAutolink",tokenize:UN,previous:Bw},li={};function HN(){return{text:li}}let Ro=48;for(;Ro<123;)li[Ro]=Ii,Ro++,Ro===58?Ro=65:Ro===91&&(Ro=97);li[43]=Ii;li[45]=Ii;li[46]=Ii;li[95]=Ii;li[72]=[Ii,_w];li[104]=[Ii,_w];li[87]=[Ii,Tw];li[119]=[Ii,Tw];function UN(t,e,r){const n=this;let i,o;return s;function s(f){return!fm(f)||!Bw.call(n,n.previous)||zy(n.events)?r(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(f))}function l(f){return fm(f)?(t.consume(f),l):f===64?(t.consume(f),u):r(f)}function u(f){return f===46?t.check(WN,d,h)(f):f===45||f===95||Tr(f)?(o=!0,t.consume(f),u):d(f)}function h(f){return t.consume(f),i=!0,u}function d(f){return o&&i&&Or(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):r(f)}}function VN(t,e,r){const n=this;return i;function i(s){return s!==87&&s!==119||!Lw.call(n,n.previous)||zy(n.events)?r(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(qN,t.attempt(vw,t.attempt(ww,o),r),r)(s))}function o(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function YN(t,e,r){const n=this;let i="",o=!1;return s;function s(f){return(f===72||f===104)&&Ew.call(n,n.previous)&&!zy(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),t.consume(f),l):r(f)}function l(f){if(Or(f)&&i.length<5)return i+=String.fromCodePoint(f),t.consume(f),l;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return t.consume(f),u}return r(f)}function u(f){return f===47?(t.consume(f),o?h:(o=!0,u)):r(f)}function h(f){return f===null||xh(f)||Ce(f)||Go(f)||nd(f)?r(f):t.attempt(vw,t.attempt(ww,d),r)(f)}function d(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}function GN(t,e,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,t.consume(s),i):s===46&&n===3?(t.consume(s),o):r(s)}function o(s){return s===null?r(s):e(s)}}function XN(t,e,r){let n,i,o;return s;function s(h){return h===46||h===95?t.check(Sw,u,l)(h):h===null||Ce(h)||Go(h)||h!==45&&nd(h)?u(h):(o=!0,t.consume(h),s)}function l(h){return h===95?n=!0:(i=n,n=void 0),t.consume(h),s}function u(h){return i||n||!o?r(h):e(h)}}function KN(t,e){let r=0,n=0;return i;function i(s){return s===40?(r++,t.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(Sw,e,o)(s):s===null||Ce(s)||Go(s)?e(s):(t.consume(s),i)}function o(s){return s===41&&n++,t.consume(s),i}}function QN(t,e,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),n):l===38?(t.consume(l),o):l===93?(t.consume(l),i):l===60||l===null||Ce(l)||Go(l)?e(l):r(l)}function i(l){return l===null||l===40||l===91||Ce(l)||Go(l)?e(l):n(l)}function o(l){return Or(l)?s(l):r(l)}function s(l){return l===59?(t.consume(l),n):Or(l)?(t.consume(l),s):r(l)}}function ZN(t,e,r){return n;function n(o){return t.consume(o),i}function i(o){return Tr(o)?r(o):e(o)}}function Lw(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ce(t)}function Ew(t){return!Or(t)}function Bw(t){return!(t===47||fm(t))}function fm(t){return t===43||t===45||t===46||t===95||Tr(t)}function zy(t){let e=t.length,r=!1;for(;e--;){const n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const JN={tokenize:sR,partial:!0};function tR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iR,continuation:{tokenize:oR},exit:aR}},text:{91:{name:"gfmFootnoteCall",tokenize:nR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eR,resolveTo:rR}}}}function eR(t,e,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!s||!s._balanced)return r(u);const h=zn(n.sliceSerialize({start:s.end,end:n.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}function rR(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[t[r+1],t[r+2],["enter",n,e],t[r+3],t[r+4],["enter",i,e],["exit",i,e],["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e],t[t.length-2],t[t.length-1],["exit",n,e]];return t.splice(r,t.length-r+1,...l),t}function nR(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o=0,s;return l;function l(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?r(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(f){if(o>999||f===93&&!s||f===null||f===91||Ce(f))return r(f);if(f===93){t.exit("chunkString");const m=t.exit("gfmFootnoteCallString");return i.includes(zn(n.sliceSerialize(m)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(f)}return Ce(f)||(s=!0),o++,t.consume(f),f===92?d:h}function d(f){return f===91||f===92||f===93?(t.consume(f),o++,h):h(f)}}function iR(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,s=0,l;return u;function u(x){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):r(x)}function d(x){if(s>999||x===93&&!l||x===null||x===91||Ce(x))return r(x);if(x===93){t.exit("chunkString");const C=t.exit("gfmFootnoteDefinitionLabelString");return o=zn(n.sliceSerialize(C)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),m}return Ce(x)||(l=!0),s++,t.consume(x),x===92?f:d}function f(x){return x===91||x===92||x===93?(t.consume(x),s++,d):d(x)}function m(x){return x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),i.includes(o)||i.push(o),se(t,p,"gfmFootnoteDefinitionWhitespace")):r(x)}function p(x){return e(x)}}function oR(t,e,r){return t.check(dc,e,t.attempt(JN,e,r))}function aR(t){t.exit("gfmFootnoteDefinition")}function sR(t,e,r){const n=this;return se(t,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(o):r(o)}}function lR(t){let r=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,l){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let h=u;for(;h--;)if(s[h][0]==="exit"&&s[h][1].type==="strikethroughSequenceTemporary"&&s[h][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[h][1].end.offset-s[h][1].start.offset){s[u][1].type="strikethroughSequence",s[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[h][1].start),end:Object.assign({},s[u][1].end)},f={type:"strikethroughText",start:Object.assign({},s[h][1].end),end:Object.assign({},s[u][1].start)},m=[["enter",d,l],["enter",s[h][1],l],["exit",s[h][1],l],["enter",f,l]],p=l.parser.constructs.insideSpan.null;p&&hn(m,m.length,0,id(p,s.slice(h+1,u),l)),hn(m,m.length,0,[["exit",f,l],["enter",s[u][1],l],["exit",s[u][1],l],["exit",d,l]]),hn(s,h-1,u-h+3,m),u=h+m.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function o(s,l,u){const h=this.previous,d=this.events;let f=0;return m;function m(x){return h===126&&d[d.length-1][1].type!=="characterEscape"?u(x):(s.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const C=cs(h);if(x===126)return f>1?u(x):(s.consume(x),f++,p);if(f<2&&!r)return u(x);const k=s.exit("strikethroughSequenceTemporary"),b=cs(x);return k._open=!b||b===2&&!!C,k._close=!C||C===2&&!!b,l(x)}}}class cR{constructor(){this.map=[]}add(e,r,n){uR(this,e,r,n)}consume(e){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(const o of i)e.push(o);i=n.pop()}this.map.length=0}}function uR(t,e,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=r,t.map[i][2].push(...n);return}i+=1}t.map.push([e,r,n])}}function hR(t,e){let r=!1;const n=[];for(;e<t.length;){const i=t[e];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function dR(){return{flow:{null:{name:"table",tokenize:fR,resolveAll:pR}}}}function fR(t,e,r){const n=this;let i=0,o=0,s;return l;function l(R){let $=n.events.length-1;for(;$>-1;){const V=n.events[$][1].type;if(V==="lineEnding"||V==="linePrefix")$--;else break}const H=$>-1?n.events[$][1].type:null,Q=H==="tableHead"||H==="tableRow"?E:u;return Q===E&&n.parser.lazy[n.now().line]?r(R):Q(R)}function u(R){return t.enter("tableHead"),t.enter("tableRow"),h(R)}function h(R){return R===124||(s=!0,o+=1),d(R)}function d(R){return R===null?r(R):qt(R)?o>1?(o=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),p):r(R):ne(R)?se(t,d,"whitespace")(R):(o+=1,s&&(s=!1,i+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),f(R)))}function f(R){return R===null||R===124||Ce(R)?(t.exit("data"),d(R)):(t.consume(R),R===92?m:f)}function m(R){return R===92||R===124?(t.consume(R),f):f(R)}function p(R){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(R):(t.enter("tableDelimiterRow"),s=!1,ne(R)?se(t,x,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):x(R))}function x(R){return R===45||R===58?k(R):R===124?(s=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),C):F(R)}function C(R){return ne(R)?se(t,k,"whitespace")(R):k(R)}function k(R){return R===58?(o+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),b):R===45?(o+=1,b(R)):R===null||qt(R)?A(R):F(R)}function b(R){return R===45?(t.enter("tableDelimiterFiller"),w(R)):F(R)}function w(R){return R===45?(t.consume(R),w):R===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),S):(t.exit("tableDelimiterFiller"),S(R))}function S(R){return ne(R)?se(t,A,"whitespace")(R):A(R)}function A(R){return R===124?x(R):R===null||qt(R)?!s||i!==o?F(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(R)):F(R)}function F(R){return r(R)}function E(R){return t.enter("tableRow"),B(R)}function B(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),B):R===null||qt(R)?(t.exit("tableRow"),e(R)):ne(R)?se(t,B,"whitespace")(R):(t.enter("data"),P(R))}function P(R){return R===null||R===124||Ce(R)?(t.exit("data"),B(R)):(t.consume(R),R===92?q:P)}function q(R){return R===92||R===124?(t.consume(R),P):P(R)}}function pR(t,e){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,h,d,f;const m=new cR;for(;++r<t.length;){const p=t[r],x=p[1];p[0]==="enter"?x.type==="tableHead"?(l=!1,u!==0&&(xk(m,e,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",h,e]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",d,e]])),i=x.type==="tableDelimiterRow"?2:d?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=Pu(m,e,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):x.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=Pu(m,e,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):x.type==="tableHead"?(l=!0,u=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=r,o[1]!==0?(s[0]=s[1],f=Pu(m,e,o,i,r,f)):s[1]!==0&&(f=Pu(m,e,s,i,r,f)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&xk(m,e,u,h,d),m.consume(e.events),r=-1;++r<e.events.length;){const p=e.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=hR(e.events,r))}return t}function Pu(t,e,r,n,i,o){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(o.end=Object.assign({},$a(e.events,r[0])),t.add(r[0],0,[["exit",o,e]]));const u=$a(e.events,r[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",o,e]]),r[2]!==0){const h=$a(e.events,r[2]),d=$a(e.events,r[3]),f={type:l,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",f,e]]),n!==2){const m=e.events[r[2]],p=e.events[r[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;t.add(x,C,[])}}t.add(r[3]+1,0,[["exit",f,e]])}return i!==void 0&&(o.end=Object.assign({},$a(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function xk(t,e,r,n,i){const o=[],s=$a(e.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,e])),n.end=Object.assign({},s),o.push(["exit",n,e]),t.add(r+1,0,o)}function $a(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}const gR={name:"tasklistCheck",tokenize:yR};function mR(){return{text:{91:gR}}}function yR(t,e,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),o)}function o(u){return Ce(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):r(u)}function l(u){return qt(u)?e(u):ne(u)?t.check({tokenize:xR},e,r)(u):r(u)}}function xR(t,e,r){return se(t,n,"whitespace");function n(i){return i===null?r(i):e(i)}}function CR(t){return j2([HN(),tR(),lR(t),dR(),mR()])}const kR={};function bR(t){const e=this,r=t||kR,n=e.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(CR(r)),o.push(jN()),s.push(zN(r))}var eh={exports:{}},vR=eh.exports,Ck;function wR(){return Ck||(Ck=1,(function(t,e){(function(r,n){t.exports=n()})(vR,(function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",l="minute",u="hour",h="day",d="week",f="month",m="quarter",p="year",x="date",C="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var W=["th","st","nd","rd"],U=V%100;return"["+V+(W[(U-20)%10]||W[U]||W[0])+"]"}},S=function(V,W,U){var X=String(V);return!X||X.length>=W?V:""+Array(W+1-X.length).join(U)+V},A={s:S,z:function(V){var W=-V.utcOffset(),U=Math.abs(W),X=Math.floor(U/60),D=U%60;return(W<=0?"+":"-")+S(X,2,"0")+":"+S(D,2,"0")},m:function V(W,U){if(W.date()<U.date())return-V(U,W);var X=12*(U.year()-W.year())+(U.month()-W.month()),D=W.clone().add(X,f),J=U-D<0,O=W.clone().add(X+(J?-1:1),f);return+(-(X+(U-D)/(J?D-O:O-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:f,y:p,w:d,d:h,D:x,h:u,m:l,s,ms:o,Q:m}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},F="en",E={};E[F]=w;var B="$isDayjsObject",P=function(V){return V instanceof H||!(!V||!V[B])},q=function V(W,U,X){var D;if(!W)return F;if(typeof W=="string"){var J=W.toLowerCase();E[J]&&(D=J),U&&(E[J]=U,D=J);var O=W.split("-");if(!D&&O.length>1)return V(O[0])}else{var j=W.name;E[j]=W,D=j}return!X&&D&&(F=D),D||!X&&F},R=function(V,W){if(P(V))return V.clone();var U=typeof W=="object"?W:{};return U.date=V,U.args=arguments,new H(U)},$=A;$.l=q,$.i=P,$.w=function(V,W){return R(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var H=(function(){function V(U){this.$L=q(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[B]=!0}var W=V.prototype;return W.parse=function(U){this.$d=(function(X){var D=X.date,J=X.utc;if(D===null)return new Date(NaN);if($.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var O=D.match(k);if(O){var j=O[2]-1||0,tt=(O[7]||"0").substring(0,3);return J?new Date(Date.UTC(O[1],j,O[3]||1,O[4]||0,O[5]||0,O[6]||0,tt)):new Date(O[1],j,O[3]||1,O[4]||0,O[5]||0,O[6]||0,tt)}}return new Date(D)})(U),this.init()},W.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},W.$utils=function(){return $},W.isValid=function(){return this.$d.toString()!==C},W.isSame=function(U,X){var D=R(U);return this.startOf(X)<=D&&D<=this.endOf(X)},W.isAfter=function(U,X){return R(U)<this.startOf(X)},W.isBefore=function(U,X){return this.endOf(X)<R(U)},W.$g=function(U,X,D){return $.u(U)?this[X]:this.set(D,U)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(U,X){var D=this,J=!!$.u(X)||X,O=$.p(U),j=function(Dt,xt){var Lt=$.w(D.$u?Date.UTC(D.$y,xt,Dt):new Date(D.$y,xt,Dt),D);return J?Lt:Lt.endOf(h)},tt=function(Dt,xt){return $.w(D.toDate()[Dt].apply(D.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(xt)),D)},N=this.$W,ct=this.$M,lt=this.$D,mt="set"+(this.$u?"UTC":"");switch(O){case p:return J?j(1,0):j(31,11);case f:return J?j(1,ct):j(0,ct+1);case d:var St=this.$locale().weekStart||0,Tt=(N<St?N+7:N)-St;return j(J?lt-Tt:lt+(6-Tt),ct);case h:case x:return tt(mt+"Hours",0);case u:return tt(mt+"Minutes",1);case l:return tt(mt+"Seconds",2);case s:return tt(mt+"Milliseconds",3);default:return this.clone()}},W.endOf=function(U){return this.startOf(U,!1)},W.$set=function(U,X){var D,J=$.p(U),O="set"+(this.$u?"UTC":""),j=(D={},D[h]=O+"Date",D[x]=O+"Date",D[f]=O+"Month",D[p]=O+"FullYear",D[u]=O+"Hours",D[l]=O+"Minutes",D[s]=O+"Seconds",D[o]=O+"Milliseconds",D)[J],tt=J===h?this.$D+(X-this.$W):X;if(J===f||J===p){var N=this.clone().set(x,1);N.$d[j](tt),N.init(),this.$d=N.set(x,Math.min(this.$D,N.daysInMonth())).$d}else j&&this.$d[j](tt);return this.init(),this},W.set=function(U,X){return this.clone().$set(U,X)},W.get=function(U){return this[$.p(U)]()},W.add=function(U,X){var D,J=this;U=Number(U);var O=$.p(X),j=function(ct){var lt=R(J);return $.w(lt.date(lt.date()+Math.round(ct*U)),J)};if(O===f)return this.set(f,this.$M+U);if(O===p)return this.set(p,this.$y+U);if(O===h)return j(1);if(O===d)return j(7);var tt=(D={},D[l]=n,D[u]=i,D[s]=r,D)[O]||1,N=this.$d.getTime()+U*tt;return $.w(N,this)},W.subtract=function(U,X){return this.add(-1*U,X)},W.format=function(U){var X=this,D=this.$locale();if(!this.isValid())return D.invalidDate||C;var J=U||"YYYY-MM-DDTHH:mm:ssZ",O=$.z(this),j=this.$H,tt=this.$m,N=this.$M,ct=D.weekdays,lt=D.months,mt=D.meridiem,St=function(xt,Lt,re,Qt){return xt&&(xt[Lt]||xt(X,J))||re[Lt].slice(0,Qt)},Tt=function(xt){return $.s(j%12||12,xt,"0")},Dt=mt||function(xt,Lt,re){var Qt=xt<12?"AM":"PM";return re?Qt.toLowerCase():Qt};return J.replace(b,(function(xt,Lt){return Lt||(function(re){switch(re){case"YY":return String(X.$y).slice(-2);case"YYYY":return $.s(X.$y,4,"0");case"M":return N+1;case"MM":return $.s(N+1,2,"0");case"MMM":return St(D.monthsShort,N,lt,3);case"MMMM":return St(lt,N);case"D":return X.$D;case"DD":return $.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return St(D.weekdaysMin,X.$W,ct,2);case"ddd":return St(D.weekdaysShort,X.$W,ct,3);case"dddd":return ct[X.$W];case"H":return String(j);case"HH":return $.s(j,2,"0");case"h":return Tt(1);case"hh":return Tt(2);case"a":return Dt(j,tt,!0);case"A":return Dt(j,tt,!1);case"m":return String(tt);case"mm":return $.s(tt,2,"0");case"s":return String(X.$s);case"ss":return $.s(X.$s,2,"0");case"SSS":return $.s(X.$ms,3,"0");case"Z":return O}return null})(xt)||O.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(U,X,D){var J,O=this,j=$.p(X),tt=R(U),N=(tt.utcOffset()-this.utcOffset())*n,ct=this-tt,lt=function(){return $.m(O,tt)};switch(j){case p:J=lt()/12;break;case f:J=lt();break;case m:J=lt()/3;break;case d:J=(ct-N)/6048e5;break;case h:J=(ct-N)/864e5;break;case u:J=ct/i;break;case l:J=ct/n;break;case s:J=ct/r;break;default:J=ct}return D?J:$.a(J)},W.daysInMonth=function(){return this.endOf(f).$D},W.$locale=function(){return E[this.$L]},W.locale=function(U,X){if(!U)return this.$L;var D=this.clone(),J=q(U,X,!0);return J&&(D.$L=J),D},W.clone=function(){return $.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},V})(),Q=H.prototype;return R.prototype=Q,[["$ms",o],["$s",s],["$m",l],["$H",u],["$W",h],["$M",f],["$y",p],["$D",x]].forEach((function(V){Q[V[1]]=function(W){return this.$g(W,V[0],V[1])}})),R.extend=function(V,W){return V.$i||(V(W,H,R),V.$i=!0),R},R.locale=q,R.isDayjs=P,R.unix=function(V){return R(1e3*V)},R.en=E[F],R.Ls=E,R.p={},R}))})(eh)),eh.exports}var SR=wR();const TR=tr(SR);var Aw=Object.defineProperty,T=(t,e)=>Aw(t,"name",{value:e,configurable:!0}),_R=(t,e)=>{for(var r in e)Aw(t,r,{get:e[r],enumerable:!0})},wi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ht={trace:T((...t)=>{},"trace"),debug:T((...t)=>{},"debug"),info:T((...t)=>{},"info"),warn:T((...t)=>{},"warn"),error:T((...t)=>{},"error"),fatal:T((...t)=>{},"fatal")},qy=T(function(t="fatal"){let e=wi.fatal;typeof t=="string"?t.toLowerCase()in wi&&(e=wi[t]):typeof t=="number"&&(e=t),ht.trace=()=>{},ht.debug=()=>{},ht.info=()=>{},ht.warn=()=>{},ht.error=()=>{},ht.fatal=()=>{},e<=wi.fatal&&(ht.fatal=console.error?console.error.bind(console,vn("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",vn("FATAL"))),e<=wi.error&&(ht.error=console.error?console.error.bind(console,vn("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",vn("ERROR"))),e<=wi.warn&&(ht.warn=console.warn?console.warn.bind(console,vn("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",vn("WARN"))),e<=wi.info&&(ht.info=console.info?console.info.bind(console,vn("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",vn("INFO"))),e<=wi.debug&&(ht.debug=console.debug?console.debug.bind(console,vn("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vn("DEBUG"))),e<=wi.trace&&(ht.trace=console.debug?console.debug.bind(console,vn("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vn("TRACE")))},"setLogLevel"),vn=T(t=>`%c${TR().format("ss.SSS")} : ${t} : `,"format");const rh={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,o=2*r-i;switch(n){case"r":return rh.hue2rgb(o,i,t+1/3)*255;case"g":return rh.hue2rgb(o,i,t)*255;case"b":return rh.hue2rgb(o,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),o=Math.min(t,e,r),s=(i+o)/2;if(n==="l")return s*100;if(i===o)return 0;const l=i-o,u=s>.5?l/(2-i-o):l/(i+o);if(n==="s")return u*100;switch(i){case t:return((e-r)/l+(e<r?6:0))*60;case e:return((r-t)/l+2)*60;case r:return((t-e)/l+4)*60;default:return-1}}},LR={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ER={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Gt={channel:rh,lang:LR,unit:ER},oo={};for(let t=0;t<=255;t++)oo[t]=Gt.unit.dec2hex(t);const wr={ALL:0,RGB:1,HSL:2};class BR{constructor(){this.type=wr.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=wr.ALL}is(e){return this.type===e}}class AR{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new BR}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=wr.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=Gt.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=Gt.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=Gt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=Gt.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=Gt.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=Gt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(wr.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(wr.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(wr.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(wr.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(wr.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(wr.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const ld=new AR({r:0,g:0,b:0,a:0},"transparent"),Va={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Va.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,o=i%4===0,s=i>4,l=s?1:17,u=s?8:4,h=o?0:-1,d=s?255:15;return ld.set({r:(n>>u*(h+3)&d)*l,g:(n>>u*(h+2)&d)*l,b:(n>>u*(h+1)&d)*l,a:o?(n&d)*l/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${oo[Math.round(e)]}${oo[Math.round(r)]}${oo[Math.round(n)]}${oo[Math.round(i*255)]}`:`#${oo[Math.round(e)]}${oo[Math.round(r)]}${oo[Math.round(n)]}`}},qo={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,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(qo.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return Gt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Gt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Gt.channel.clamp.h(parseFloat(r)*360)}}return Gt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(qo.re);if(!r)return;const[,n,i,o,s,l]=r;return ld.set({h:qo._hue2deg(n),s:Gt.channel.clamp.s(parseFloat(i)),l:Gt.channel.clamp.l(parseFloat(o)),a:s?Gt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${Gt.lang.round(e)}, ${Gt.lang.round(r)}%, ${Gt.lang.round(n)}%, ${i})`:`hsl(${Gt.lang.round(e)}, ${Gt.lang.round(r)}%, ${Gt.lang.round(n)}%)`}},zl={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=zl.colors[t];if(e)return Va.parse(e)},stringify:t=>{const e=Va.stringify(t);for(const r in zl.colors)if(zl.colors[r]===e)return r}},Bl={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,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(Bl.re);if(!r)return;const[,n,i,o,s,l,u,h,d]=r;return ld.set({r:Gt.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:Gt.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:Gt.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?Gt.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${Gt.lang.round(e)}, ${Gt.lang.round(r)}, ${Gt.lang.round(n)}, ${Gt.lang.round(i)})`:`rgb(${Gt.lang.round(e)}, ${Gt.lang.round(r)}, ${Gt.lang.round(n)})`}},ai={format:{keyword:zl,hex:Va,rgb:Bl,rgba:Bl,hsl:qo,hsla:qo},parse:t=>{if(typeof t!="string")return t;const e=Va.parse(t)||Bl.parse(t)||qo.parse(t)||zl.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(wr.HSL)||t.data.r===void 0?qo.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Bl.stringify(t):Va.stringify(t)},Fw=(t,e)=>{const r=ai.parse(t);for(const n in e)r[n]=Gt.channel.clamp[n](e[n]);return ai.stringify(r)},uo=(t,e,r=0,n=1)=>{if(typeof t!="number")return Fw(t,{a:e});const i=ld.set({r:Gt.channel.clamp.r(t),g:Gt.channel.clamp.g(e),b:Gt.channel.clamp.b(r),a:Gt.channel.clamp.a(n)});return ai.stringify(i)},FR=t=>{const{r:e,g:r,b:n}=ai.parse(t),i=.2126*Gt.channel.toLinear(e)+.7152*Gt.channel.toLinear(r)+.0722*Gt.channel.toLinear(n);return Gt.lang.round(i)},IR=t=>FR(t)>=.5,Un=t=>!IR(t),Iw=(t,e,r)=>{const n=ai.parse(t),i=n[e],o=Gt.channel.clamp[e](i+r);return i!==o&&(n[e]=o),ai.stringify(n)},st=(t,e)=>Iw(t,"l",e),ot=(t,e)=>Iw(t,"l",-e),I=(t,e)=>{const r=ai.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return Fw(t,n)},MR=(t,e,r=50)=>{const{r:n,g:i,b:o,a:s}=ai.parse(t),{r:l,g:u,b:h,a:d}=ai.parse(e),f=r/100,m=f*2-1,p=s-d,C=((m*p===-1?m:(m+p)/(1+m*p))+1)/2,k=1-C,b=n*C+l*k,w=i*C+u*k,S=o*C+h*k,A=s*f+d*(1-f);return uo(b,w,S,A)},Z=(t,e=100)=>{const r=ai.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,MR(r,t,e)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Mw,setPrototypeOf:kk,isFrozen:OR,getPrototypeOf:NR,getOwnPropertyDescriptor:RR}=Object;let{freeze:Pr,seal:Sn,create:nh}=Object,{apply:pm,construct:gm}=typeof Reflect<"u"&&Reflect;Pr||(Pr=function(e){return e});Sn||(Sn=function(e){return e});pm||(pm=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return e.apply(r,i)});gm||(gm=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new e(...n)});const Du=Dr(Array.prototype.forEach),PR=Dr(Array.prototype.lastIndexOf),bk=Dr(Array.prototype.pop),gl=Dr(Array.prototype.push),DR=Dr(Array.prototype.splice),ih=Dr(String.prototype.toLowerCase),Np=Dr(String.prototype.toString),Rp=Dr(String.prototype.match),ml=Dr(String.prototype.replace),$R=Dr(String.prototype.indexOf),jR=Dr(String.prototype.trim),un=Dr(Object.prototype.hasOwnProperty),Mr=Dr(RegExp.prototype.test),yl=zR(TypeError);function Dr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return pm(t,e,n)}}function zR(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return gm(t,r)}}function ee(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;kk&&kk(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const o=r(i);o!==i&&(OR(e)||(e[n]=o),i=o)}t[i]=!0}return t}function qR(t){for(let e=0;e<t.length;e++)un(t,e)||(t[e]=null);return t}function ti(t){const e=nh(null);for(const[r,n]of Mw(t))un(t,r)&&(Array.isArray(n)?e[r]=qR(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=ti(n):e[r]=n);return e}function xl(t,e){for(;t!==null;){const n=RR(t,e);if(n){if(n.get)return Dr(n.get);if(typeof n.value=="function")return Dr(n.value)}t=NR(t)}function r(){return null}return r}const vk=Pr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Pp=Pr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dp=Pr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),WR=Pr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$p=Pr(["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"]),HR=Pr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wk=Pr(["#text"]),Sk=Pr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),jp=Pr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tk=Pr(["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"]),$u=Pr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),UR=Sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),VR=Sn(/<%[\w\W]*|[\w\W]*%>/gm),YR=Sn(/\$\{[\w\W]*/gm),GR=Sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),XR=Sn(/^aria-[\-\w]+$/),Ow=Sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),KR=Sn(/^(?:\w+script|data):/i),QR=Sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nw=Sn(/^html$/i),ZR=Sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var _k=Object.freeze({__proto__:null,ARIA_ATTR:XR,ATTR_WHITESPACE:QR,CUSTOM_ELEMENT:ZR,DATA_ATTR:GR,DOCTYPE_NAME:Nw,ERB_EXPR:VR,IS_ALLOWED_URI:Ow,IS_SCRIPT_OR_DATA:KR,MUSTACHE_EXPR:UR,TMPLIT_EXPR:YR});const Cl={element:1,text:3,progressingInstruction:7,comment:8,document:9},JR=function(){return typeof window>"u"?null:window},tP=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Lk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rw(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JR();const e=Rt=>Rw(Rt);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Cl.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:h,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:p}=t,x=u.prototype,C=xl(x,"cloneNode"),k=xl(x,"remove"),b=xl(x,"nextSibling"),w=xl(x,"childNodes"),S=xl(x,"parentNode");if(typeof s=="function"){const Rt=r.createElement("template");Rt.content&&Rt.content.ownerDocument&&(r=Rt.content.ownerDocument)}let A,F="";const{implementation:E,createNodeIterator:B,createDocumentFragment:P,getElementsByTagName:q}=r,{importNode:R}=n;let $=Lk();e.isSupported=typeof Mw=="function"&&typeof S=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:Q,TMPLIT_EXPR:V,DATA_ATTR:W,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:J}=_k;let{IS_ALLOWED_URI:O}=_k,j=null;const tt=ee({},[...vk,...Pp,...Dp,...$p,...wk]);let N=null;const ct=ee({},[...Sk,...jp,...Tk,...$u]);let lt=Object.seal(nh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mt=null,St=null;const Tt=Object.seal(nh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Dt=!0,xt=!0,Lt=!1,re=!0,Qt=!1,Ye=!0,ke=!1,qe=!1,jr=!1,Me=!1,zr=!1,We=!1,Br=!0,Ar=!1;const Yn="user-content-";let mr=!0,Be=!1,at={},ut=null;const bt=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $t=null;const Xt=ee({},["audio","video","img","source","image","track"]);let Te=null;const Ge=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ye=me,Xe=!1,De=null;const yr=ee({},[Oe,He,me],Np);let xe=ee({},["mi","mo","mn","ms","mtext"]),hr=ee({},["annotation-xml"]);const Gn=ee({},["title","style","font","a","script"]);let Ln=null;const ko=["application/xhtml+xml","text/html"],bo="text/html";let be=null,fi=null;const Ts=r.createElement("form"),_s=function(G){return G instanceof RegExp||G instanceof Function},pi=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fi&&fi===G)){if((!G||typeof G!="object")&&(G={}),G=ti(G),Ln=ko.indexOf(G.PARSER_MEDIA_TYPE)===-1?bo:G.PARSER_MEDIA_TYPE,be=Ln==="application/xhtml+xml"?Np:ih,j=un(G,"ALLOWED_TAGS")?ee({},G.ALLOWED_TAGS,be):tt,N=un(G,"ALLOWED_ATTR")?ee({},G.ALLOWED_ATTR,be):ct,De=un(G,"ALLOWED_NAMESPACES")?ee({},G.ALLOWED_NAMESPACES,Np):yr,Te=un(G,"ADD_URI_SAFE_ATTR")?ee(ti(Ge),G.ADD_URI_SAFE_ATTR,be):Ge,$t=un(G,"ADD_DATA_URI_TAGS")?ee(ti(Xt),G.ADD_DATA_URI_TAGS,be):Xt,ut=un(G,"FORBID_CONTENTS")?ee({},G.FORBID_CONTENTS,be):bt,mt=un(G,"FORBID_TAGS")?ee({},G.FORBID_TAGS,be):ti({}),St=un(G,"FORBID_ATTR")?ee({},G.FORBID_ATTR,be):ti({}),at=un(G,"USE_PROFILES")?G.USE_PROFILES:!1,Dt=G.ALLOW_ARIA_ATTR!==!1,xt=G.ALLOW_DATA_ATTR!==!1,Lt=G.ALLOW_UNKNOWN_PROTOCOLS||!1,re=G.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qt=G.SAFE_FOR_TEMPLATES||!1,Ye=G.SAFE_FOR_XML!==!1,ke=G.WHOLE_DOCUMENT||!1,Me=G.RETURN_DOM||!1,zr=G.RETURN_DOM_FRAGMENT||!1,We=G.RETURN_TRUSTED_TYPE||!1,jr=G.FORCE_BODY||!1,Br=G.SANITIZE_DOM!==!1,Ar=G.SANITIZE_NAMED_PROPS||!1,mr=G.KEEP_CONTENT!==!1,Be=G.IN_PLACE||!1,O=G.ALLOWED_URI_REGEXP||Ow,ye=G.NAMESPACE||me,xe=G.MATHML_TEXT_INTEGRATION_POINTS||xe,hr=G.HTML_INTEGRATION_POINTS||hr,lt=G.CUSTOM_ELEMENT_HANDLING||{},G.CUSTOM_ELEMENT_HANDLING&&_s(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lt.tagNameCheck=G.CUSTOM_ELEMENT_HANDLING.tagNameCheck),G.CUSTOM_ELEMENT_HANDLING&&_s(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lt.attributeNameCheck=G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),G.CUSTOM_ELEMENT_HANDLING&&typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lt.allowCustomizedBuiltInElements=G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qt&&(xt=!1),zr&&(Me=!0),at&&(j=ee({},wk),N=nh(null),at.html===!0&&(ee(j,vk),ee(N,Sk)),at.svg===!0&&(ee(j,Pp),ee(N,jp),ee(N,$u)),at.svgFilters===!0&&(ee(j,Dp),ee(N,jp),ee(N,$u)),at.mathMl===!0&&(ee(j,$p),ee(N,Tk),ee(N,$u))),un(G,"ADD_TAGS")||(Tt.tagCheck=null),un(G,"ADD_ATTR")||(Tt.attributeCheck=null),G.ADD_TAGS&&(typeof G.ADD_TAGS=="function"?Tt.tagCheck=G.ADD_TAGS:(j===tt&&(j=ti(j)),ee(j,G.ADD_TAGS,be))),G.ADD_ATTR&&(typeof G.ADD_ATTR=="function"?Tt.attributeCheck=G.ADD_ATTR:(N===ct&&(N=ti(N)),ee(N,G.ADD_ATTR,be))),G.ADD_URI_SAFE_ATTR&&ee(Te,G.ADD_URI_SAFE_ATTR,be),G.FORBID_CONTENTS&&(ut===bt&&(ut=ti(ut)),ee(ut,G.FORBID_CONTENTS,be)),G.ADD_FORBID_CONTENTS&&(ut===bt&&(ut=ti(ut)),ee(ut,G.ADD_FORBID_CONTENTS,be)),mr&&(j["#text"]=!0),ke&&ee(j,["html","head","body"]),j.table&&(ee(j,["tbody"]),delete mt.tbody),G.TRUSTED_TYPES_POLICY){if(typeof G.TRUSTED_TYPES_POLICY.createHTML!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof G.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=G.TRUSTED_TYPES_POLICY,F=A.createHTML("")}else A===void 0&&(A=tP(p,i)),A!==null&&typeof F=="string"&&(F=A.createHTML(""));Pr&&Pr(G),fi=G}},la=ee({},[...Pp,...Dp,...WR]),Pi=ee({},[...$p,...HR]),Id=function(G){let gt=S(G);(!gt||!gt.tagName)&&(gt={namespaceURI:ye,tagName:"template"});const Bt=ih(G.tagName),ve=ih(gt.tagName);return De[G.namespaceURI]?G.namespaceURI===He?gt.namespaceURI===me?Bt==="svg":gt.namespaceURI===Oe?Bt==="svg"&&(ve==="annotation-xml"||xe[ve]):!!la[Bt]:G.namespaceURI===Oe?gt.namespaceURI===me?Bt==="math":gt.namespaceURI===He?Bt==="math"&&hr[ve]:!!Pi[Bt]:G.namespaceURI===me?gt.namespaceURI===He&&!hr[ve]||gt.namespaceURI===Oe&&!xe[ve]?!1:!Pi[Bt]&&(Gn[Bt]||!la[Bt]):!!(Ln==="application/xhtml+xml"&&De[G.namespaceURI]):!1},xr=function(G){gl(e.removed,{element:G});try{S(G).removeChild(G)}catch{k(G)}},pn=function(G,gt){try{gl(e.removed,{attribute:gt.getAttributeNode(G),from:gt})}catch{gl(e.removed,{attribute:null,from:gt})}if(gt.removeAttribute(G),G==="is")if(Me||zr)try{xr(gt)}catch{}else try{gt.setAttribute(G,"")}catch{}},vo=function(G){let gt=null,Bt=null;if(jr)G="<remove></remove>"+G;else{const $e=Rp(G,/^[\r\n\t ]+/);Bt=$e&&$e[0]}Ln==="application/xhtml+xml"&&ye===me&&(G='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+G+"</body></html>");const ve=A?A.createHTML(G):G;if(ye===me)try{gt=new m().parseFromString(ve,Ln)}catch{}if(!gt||!gt.documentElement){gt=E.createDocument(ye,"template",null);try{gt.documentElement.innerHTML=Xe?F:ve}catch{}}const Jt=gt.body||gt.documentElement;return G&&Bt&&Jt.insertBefore(r.createTextNode(Bt),Jt.childNodes[0]||null),ye===me?q.call(gt,ke?"html":"body")[0]:ke?gt.documentElement:Jt},ca=function(G){return B.call(G.ownerDocument||G,G,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ls=function(G){return G instanceof f&&(typeof G.nodeName!="string"||typeof G.textContent!="string"||typeof G.removeChild!="function"||!(G.attributes instanceof d)||typeof G.removeAttribute!="function"||typeof G.setAttribute!="function"||typeof G.namespaceURI!="string"||typeof G.insertBefore!="function"||typeof G.hasChildNodes!="function")},Lc=function(G){return typeof l=="function"&&G instanceof l};function En(Rt,G,gt){Du(Rt,Bt=>{Bt.call(e,G,gt,fi)})}const Xn=function(G){let gt=null;if(En($.beforeSanitizeElements,G,null),Ls(G))return xr(G),!0;const Bt=be(G.nodeName);if(En($.uponSanitizeElement,G,{tagName:Bt,allowedTags:j}),Ye&&G.hasChildNodes()&&!Lc(G.firstElementChild)&&Mr(/<[/\w!]/g,G.innerHTML)&&Mr(/<[/\w!]/g,G.textContent)||G.nodeType===Cl.progressingInstruction||Ye&&G.nodeType===Cl.comment&&Mr(/<[/\w]/g,G.data))return xr(G),!0;if(!(Tt.tagCheck instanceof Function&&Tt.tagCheck(Bt))&&(!j[Bt]||mt[Bt])){if(!mt[Bt]&&Bs(Bt)&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,Bt)||lt.tagNameCheck instanceof Function&&lt.tagNameCheck(Bt)))return!1;if(mr&&!ut[Bt]){const ve=S(G)||G.parentNode,Jt=w(G)||G.childNodes;if(Jt&&ve){const $e=Jt.length;for(let ar=$e-1;ar>=0;--ar){const gn=C(Jt[ar],!0);gn.__removalCount=(G.__removalCount||0)+1,ve.insertBefore(gn,b(G))}}}return xr(G),!0}return G instanceof u&&!Id(G)||(Bt==="noscript"||Bt==="noembed"||Bt==="noframes")&&Mr(/<\/no(script|embed|frames)/i,G.innerHTML)?(xr(G),!0):(Qt&&G.nodeType===Cl.text&&(gt=G.textContent,Du([H,Q,V],ve=>{gt=ml(gt,ve," ")}),G.textContent!==gt&&(gl(e.removed,{element:G.cloneNode()}),G.textContent=gt)),En($.afterSanitizeElements,G,null),!1)},Es=function(G,gt,Bt){if(St[gt]||Br&&(gt==="id"||gt==="name")&&(Bt in r||Bt in Ts))return!1;if(!(xt&&!St[gt]&&Mr(W,gt))){if(!(Dt&&Mr(U,gt))){if(!(Tt.attributeCheck instanceof Function&&Tt.attributeCheck(gt,G))){if(!N[gt]||St[gt]){if(!(Bs(G)&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,G)||lt.tagNameCheck instanceof Function&&lt.tagNameCheck(G))&&(lt.attributeNameCheck instanceof RegExp&&Mr(lt.attributeNameCheck,gt)||lt.attributeNameCheck instanceof Function&&lt.attributeNameCheck(gt,G))||gt==="is"&&lt.allowCustomizedBuiltInElements&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,Bt)||lt.tagNameCheck instanceof Function&&lt.tagNameCheck(Bt))))return!1}else if(!Te[gt]){if(!Mr(O,ml(Bt,D,""))){if(!((gt==="src"||gt==="xlink:href"||gt==="href")&&G!=="script"&&$R(Bt,"data:")===0&&$t[G])){if(!(Lt&&!Mr(X,ml(Bt,D,"")))){if(Bt)return!1}}}}}}}return!0},Bs=function(G){return G!=="annotation-xml"&&Rp(G,J)},Ec=function(G){En($.beforeSanitizeAttributes,G,null);const{attributes:gt}=G;if(!gt||Ls(G))return;const Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0};let ve=gt.length;for(;ve--;){const Jt=gt[ve],{name:$e,namespaceURI:ar,value:gn}=Jt,Bn=be($e),As=gn;let Ke=$e==="value"?As:jR(As);if(Bt.attrName=Bn,Bt.attrValue=Ke,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,En($.uponSanitizeAttribute,G,Bt),Ke=Bt.attrValue,Ar&&(Bn==="id"||Bn==="name")&&(pn($e,G),Ke=Yn+Ke),Ye&&Mr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ke)){pn($e,G);continue}if(Bn==="attributename"&&Rp(Ke,"href")){pn($e,G);continue}if(Bt.forceKeepAttr)continue;if(!Bt.keepAttr){pn($e,G);continue}if(!re&&Mr(/\/>/i,Ke)){pn($e,G);continue}Qt&&Du([H,Q,V],en=>{Ke=ml(Ke,en," ")});const wo=be(G.nodeName);if(!Es(wo,Bn,Ke)){pn($e,G);continue}if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ar)switch(p.getAttributeType(wo,Bn)){case"TrustedHTML":{Ke=A.createHTML(Ke);break}case"TrustedScriptURL":{Ke=A.createScriptURL(Ke);break}}if(Ke!==As)try{ar?G.setAttributeNS(ar,$e,Ke):G.setAttribute($e,Ke),Ls(G)?xr(G):bk(e.removed)}catch{pn($e,G)}}En($.afterSanitizeAttributes,G,null)},Bc=function Rt(G){let gt=null;const Bt=ca(G);for(En($.beforeSanitizeShadowDOM,G,null);gt=Bt.nextNode();)En($.uponSanitizeShadowNode,gt,null),Xn(gt),Ec(gt),gt.content instanceof o&&Rt(gt.content);En($.afterSanitizeShadowDOM,G,null)};return e.sanitize=function(Rt){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gt=null,Bt=null,ve=null,Jt=null;if(Xe=!Rt,Xe&&(Rt="<!-->"),typeof Rt!="string"&&!Lc(Rt))if(typeof Rt.toString=="function"){if(Rt=Rt.toString(),typeof Rt!="string")throw yl("dirty is not a string, aborting")}else throw yl("toString is not a function");if(!e.isSupported)return Rt;if(qe||pi(G),e.removed=[],typeof Rt=="string"&&(Be=!1),Be){if(Rt.nodeName){const gn=be(Rt.nodeName);if(!j[gn]||mt[gn])throw yl("root node is forbidden and cannot be sanitized in-place")}}else if(Rt instanceof l)gt=vo("<!---->"),Bt=gt.ownerDocument.importNode(Rt,!0),Bt.nodeType===Cl.element&&Bt.nodeName==="BODY"||Bt.nodeName==="HTML"?gt=Bt:gt.appendChild(Bt);else{if(!Me&&!Qt&&!ke&&Rt.indexOf("<")===-1)return A&&We?A.createHTML(Rt):Rt;if(gt=vo(Rt),!gt)return Me?null:We?F:""}gt&&jr&&xr(gt.firstChild);const $e=ca(Be?Rt:gt);for(;ve=$e.nextNode();)Xn(ve),Ec(ve),ve.content instanceof o&&Bc(ve.content);if(Be)return Rt;if(Me){if(zr)for(Jt=P.call(gt.ownerDocument);gt.firstChild;)Jt.appendChild(gt.firstChild);else Jt=gt;return(N.shadowroot||N.shadowrootmode)&&(Jt=R.call(n,Jt,!0)),Jt}let ar=ke?gt.outerHTML:gt.innerHTML;return ke&&j["!doctype"]&&gt.ownerDocument&&gt.ownerDocument.doctype&&gt.ownerDocument.doctype.name&&Mr(Nw,gt.ownerDocument.doctype.name)&&(ar="<!DOCTYPE "+gt.ownerDocument.doctype.name+`>
178
- `+ar),Qt&&Du([H,Q,V],gn=>{ar=ml(ar,gn," ")}),A&&We?A.createHTML(ar):ar},e.setConfig=function(){let Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pi(Rt),qe=!0},e.clearConfig=function(){fi=null,qe=!1},e.isValidAttribute=function(Rt,G,gt){fi||pi({});const Bt=be(Rt),ve=be(G);return Es(Bt,ve,gt)},e.addHook=function(Rt,G){typeof G=="function"&&gl($[Rt],G)},e.removeHook=function(Rt,G){if(G!==void 0){const gt=PR($[Rt],G);return gt===-1?void 0:DR($[Rt],gt,1)[0]}return bk($[Rt])},e.removeHooks=function(Rt){$[Rt]=[]},e.removeAllHooks=function(){$=Lk()},e}var us=Rw(),Pw=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ql=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,eP=/\s*%%.*\n/gm,Xa,Dw=(Xa=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},T(Xa,"UnknownDiagramError"),Xa),Xo={},Wy=T(function(t,e){t=t.replace(Pw,"").replace(ql,"").replace(eP,`
179
- `);for(const[r,{detector:n}]of Object.entries(Xo))if(n(t,e))return r;throw new Dw(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),mm=T((...t)=>{for(const{id:e,detector:r,loader:n}of t)$w(e,r,n)},"registerLazyLoadedDiagrams"),$w=T((t,e,r)=>{Xo[t]&&ht.warn(`Detector with key ${t} already exists. Overwriting.`),Xo[t]={detector:e,loader:r},ht.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),rP=T(t=>Xo[t].loader,"getDiagramLoader"),ym=T((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>ym(t,o,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&e[o]!==null&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=ym(t[o],e[o],{depth:r-1,clobber:n})):(n||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},"assignWithDepth"),ir=ym,ci="#ffffff",ui="#f2f2f2",Vt=T((t,e)=>e?I(t,{s:-40,l:10}):I(t,{s:-40,l:-10}),"mkBorder"),Ka,nP=(Ka=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m,p,x,C,k,b,w,S,A,F,E,B;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||st(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||ot(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ot(this.mainBkg,10)):(this.rowOdd=this.rowOdd||st(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||st(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let P=0;P<this.THEME_COLOR_LIMIT;P++)this["cScale"+P]=ot(this["cScale"+P],75);else for(let P=0;P<this.THEME_COLOR_LIMIT;P++)this["cScale"+P]=ot(this["cScale"+P],25);for(let P=0;P<this.THEME_COLOR_LIMIT;P++)this["cScaleInv"+P]=this["cScaleInv"+P]||Z(this["cScale"+P]);for(let P=0;P<this.THEME_COLOR_LIMIT;P++)this.darkMode?this["cScalePeer"+P]=this["cScalePeer"+P]||st(this["cScale"+P],10):this["cScalePeer"+P]=this["cScalePeer"+P]||ot(this["cScale"+P],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let P=0;P<this.THEME_COLOR_LIMIT;P++)this["cScaleLabel"+P]=this["cScaleLabel"+P]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let P=0;P<5;P++)this["surface"+P]=this["surface"+P]||I(this.mainBkg,{h:180,s:-15,l:e*(5+P*3)}),this["surfacePeer"+P]=this["surfacePeer"+P]||I(this.mainBkg,{h:180,s:-15,l:e*(8+P*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((u=this.radar)==null?void 0:u.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((f=this.radar)==null?void 0:f.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((m=this.xyChart)==null?void 0:m.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,dataLabelColor:((x=this.xyChart)==null?void 0:x.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((C=this.xyChart)==null?void 0:C.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((k=this.xyChart)==null?void 0:k.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((b=this.xyChart)==null?void 0:b.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((F=this.xyChart)==null?void 0:F.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((E=this.xyChart)==null?void 0:E.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(Ka,"Theme"),Ka),iP=T(t=>{const e=new nP;return e.calculate(t),e},"getThemeVariables"),Qa,oP=(Qa=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=st(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.lineColor=Z(this.background),this.textColor=Z(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=st(Z("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=ot("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=ot(this.sectionBkgColor,10),this.taskBorderColor=uo(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=uo(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||st(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ot(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var e,r,n,i,o,s,l,u,h,d,f,m,p,x,C,k,b,w,S,A,F,E;this.secondBkg=st(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=st(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=st(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=Z(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330});for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||Z(this["cScale"+B]);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScalePeer"+B]=this["cScalePeer"+B]||st(this["cScale"+B],10);for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,s:-30,l:-(-10+B*4)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,s:-30,l:-(-7+B*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["pie"+B]=this["cScale"+B];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let B=0;B<8;B++)this["venn"+(B+1)]=this["venn"+(B+1)]??st(this["cScale"+B],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((p=this.radar)==null?void 0:p.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((E=this.radar)==null?void 0:E.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=st(this.secondaryColor,20),this.git1=st(this.pie2||this.secondaryColor,20),this.git2=st(this.pie3||this.tertiaryColor,20),this.git3=st(this.pie4||I(this.primaryColor,{h:-30}),20),this.git4=st(this.pie5||I(this.primaryColor,{h:-60}),20),this.git5=st(this.pie6||I(this.primaryColor,{h:-90}),10),this.git6=st(this.pie7||I(this.primaryColor,{h:60}),10),this.git7=st(this.pie8||I(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Z(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||st(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||st(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(Qa,"Theme"),Qa),aP=T(t=>{const e=new oP;return e.calculate(t),e},"getThemeVariables"),Za,sP=(Za=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=I(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.lineColor=Z(this.background),this.textColor=Z(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=uo(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var e,r,n,i,o,s,l,u,h,d,f,m,p,x,C,k,b,w,S,A,F,E;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ot(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ot(this.tertiaryColor,40);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScale"+B]=ot(this["cScale"+B],10),this["cScalePeer"+B]=this["cScalePeer"+B]||ot(this["cScale"+B],25);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||I(this["cScale"+B],{h:180});for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,l:-(7+B*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Z(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Z(this.labelTextColor);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||st(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||st(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||I(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-30}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||I(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((p=this.xyChart)==null?void 0:p.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((k=this.xyChart)==null?void 0:k.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((b=this.xyChart)==null?void 0:b.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||ot(Z(this.git0),25),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(Za,"Theme"),Za),lP=T(t=>{const e=new sP;return e.calculate(t),e},"getThemeVariables"),Ja,cP=(Ja=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=st("#cde498",10),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.primaryColor),this.lineColor=Z(this.background),this.textColor=Z(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var e,r,n,i,o,s,l,u,h,d,f,m,p,x,C,k,b,w,S,A,F,E;this.actorBorder=ot(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ot(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ot(this.tertiaryColor,40);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScale"+B]=ot(this["cScale"+B],10),this["cScalePeer"+B]=this["cScalePeer"+B]||ot(this["cScale"+B],25);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||I(this["cScale"+B],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,s:-30,l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,s:-30,l:-(8+B*5)});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||st(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||st(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||I(this.primaryColor,{l:-30}),this.pie5=this.pie5||I(this.secondaryColor,{l:-30}),this.pie6=this.pie6||I(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((p=this.xyChart)==null?void 0:p.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((k=this.xyChart)==null?void 0:k.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((b=this.xyChart)==null?void 0:b.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(Ja,"Theme"),Ja),uP=T(t=>{const e=new cP;return e.calculate(t),e},"getThemeVariables"),ts,hP=(ts=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=st(this.contrast,55),this.background="#ffffff",this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.lineColor=Z(this.background),this.textColor=Z(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||st(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var e,r,n,i,o,s,l,u,h,d,f,m,p,x,C,k,b,w,S,A,F,E;this.secondBkg=st(this.contrast,55),this.border2=this.contrast,this.actorBorder=st(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";for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||Z(this["cScale"+B]);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this.darkMode?this["cScalePeer"+B]=this["cScalePeer"+B]||st(this["cScale"+B],10):this["cScalePeer"+B]=this["cScalePeer"+B]||ot(this["cScale"+B],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{l:-(8+B*5)});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=st(this.contrast,30),this.sectionBkgColor2=st(this.contrast,30),this.taskBorderColor=ot(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=st(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=ot(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128});for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["pie"+B]=this["cScale"+B];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";for(let B=0;B<8;B++)this["venn"+(B+1)]=this["venn"+(B+1)]??this["cScale"+B];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((p=this.radar)==null?void 0:p.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((E=this.radar)==null?void 0:E.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ot(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||I(this.primaryColor,{h:-30}),this.git4=this.pie5||I(this.primaryColor,{h:-60}),this.git5=this.pie6||I(this.primaryColor,{h:-90}),this.git6=this.pie7||I(this.primaryColor,{h:60}),this.git7=this.pie8||I(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(ts,"Theme"),ts),dP=T(t=>{const e=new hP;return e.calculate(t),e},"getThemeVariables"),es,fP=(es=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,s,l,u,h,d,f,m,p,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=I(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||st(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||I(e,{h:30}),this.cScale4=this.cScale4||I(e,{h:60}),this.cScale5=this.cScale5||I(e,{h:90}),this.cScale6=this.cScale6||I(e,{h:120}),this.cScale7=this.cScale7||I(e,{h:150}),this.cScale8=this.cScale8||I(e,{h:210,l:150}),this.cScale9=this.cScale9||I(e,{h:270}),this.cScale10=this.cScale10||I(e,{h:300}),this.cScale11=this.cScale11||I(e,{h:330}),this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=ot(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=ot(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Z(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||st(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(e,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(e,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(e,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(e,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(e,{h:60,l:-10}),this.pie8=this.pie8||I(e,{h:-60,l:-10}),this.pie9=this.pie9||I(e,{h:120,l:0}),this.pie10=this.pie10||I(e,{h:60,l:-20}),this.pie11=this.pie11||I(e,{h:-60,l:-20}),this.pie12=this.pie12||I(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||I(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(e,{h:-30}),this.git4=this.git4||I(e,{h:-60}),this.git5=this.git5||I(e,{h:-90}),this.git6=this.git6||I(e,{h:60}),this.git7=this.git7||I(e,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(es,"Theme"),es),pP=T(t=>{const e=new fP;return e.calculate(t),e},"getThemeVariables"),rs,gP=(rs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=st(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=st(Z("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Z(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||st(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=ot(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=ot(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Z(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||st(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||ot(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(rs,"Theme"),rs),mP=T(t=>{const e=new gP;return e.calculate(t),e},"getThemeVariables"),ns,yP=(ns=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Vt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,s,l,u,h,d,f,m,p,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=I(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||st(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=this.mainBkg;if(this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=ot(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=ot(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Z(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||st(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(e,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(e,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(e,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(e,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(e,{h:60,l:-10}),this.pie8=this.pie8||I(e,{h:-60,l:-10}),this.pie9=this.pie9||I(e,{h:120,l:0}),this.pie10=this.pie10||I(e,{h:60,l:-20}),this.pie11=this.pie11||I(e,{h:-60,l:-20}),this.pie12=this.pie12||I(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||I(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(e,{h:-30}),this.git4=this.git4||I(e,{h:-60}),this.git5=this.git5||I(e,{h:-90}),this.git6=this.git6||I(e,{h:60}),this.git7=this.git7||I(e,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(ns,"Theme"),ns),xP=T(t=>{const e=new yP;return e.calculate(t),e},"getThemeVariables"),is,CP=(is=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=st(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=st(Z("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Z(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||st(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=ot(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=ot(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Z(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||st(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||ot(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(is,"Theme"),is),kP=T(t=>{const e=new CP;return e.calculate(t),e},"getThemeVariables"),os,bP=(os=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,s,l,u,h,d,f,m,p,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=I(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||st(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Z(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||st(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(e,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(e,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(e,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(e,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(e,{h:60,l:-10}),this.pie8=this.pie8||I(e,{h:-60,l:-10}),this.pie9=this.pie9||I(e,{h:120,l:0}),this.pie10=this.pie10||I(e,{h:60,l:-20}),this.pie11=this.pie11||I(e,{h:-60,l:-20}),this.pie12=this.pie12||I(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||I(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(e,{h:-30}),this.git4=this.git4||I(e,{h:-60}),this.git5=this.git5||I(e,{h:-90}),this.git6=this.git6||I(e,{h:60}),this.git7=this.git7||I(e,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(os,"Theme"),os),vP=T(t=>{const e=new bP;return e.calculate(t),e},"getThemeVariables"),as,wP=(as=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=st(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Z(this.primaryColor),this.secondaryTextColor=Z(this.secondaryColor),this.tertiaryTextColor=Z(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=st(Z("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Z(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Z(this.tertiaryColor),this.lineColor=this.lineColor||Z(this.background),this.arrowheadColor=this.arrowheadColor||Z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ot(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Z(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||st(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Z(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||st(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||ot(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=ot(this["cScale"+p],75);const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||I(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?st(this.quadrant1Fill):ot(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ot(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)):(this.git0=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)),this.gitInv0=this.gitInv0||Z(this.git0),this.gitInv1=this.gitInv1||Z(this.git1),this.gitInv2=this.gitInv2||Z(this.git2),this.gitInv3=this.gitInv3||Z(this.git3),this.gitInv4=this.gitInv4||Z(this.git4),this.gitInv5=this.gitInv5||Z(this.git5),this.gitInv6=this.gitInv6||Z(this.git6),this.gitInv7=this.gitInv7||Z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},T(as,"Theme"),as),SP=T(t=>{const e=new wP;return e.calculate(t),e},"getThemeVariables"),Ei={base:{getThemeVariables:iP},dark:{getThemeVariables:aP},default:{getThemeVariables:lP},forest:{getThemeVariables:uP},neutral:{getThemeVariables:dP},neo:{getThemeVariables:pP},"neo-dark":{getThemeVariables:mP},redux:{getThemeVariables:xP},"redux-dark":{getThemeVariables:kP},"redux-color":{getThemeVariables:vP},"redux-dark-color":{getThemeVariables:SP}},sn={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},jw={...sn,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ei.default.getThemeVariables(),sequence:{...sn.sequence,messageFont:T(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:T(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:T(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...sn.gantt,tickInterval:void 0,useWidth:void 0},c4:{...sn.c4,useWidth:void 0,personFont:T(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...sn.flowchart,inheritDir:!1},external_personFont:T(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:T(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:T(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:T(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:T(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:T(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:T(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:T(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:T(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:T(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:T(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:T(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:T(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:T(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:T(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:T(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:T(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:T(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:T(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:T(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:T(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...sn.pie,useWidth:984},xyChart:{...sn.xyChart,useWidth:void 0},requirement:{...sn.requirement,useWidth:void 0},packet:{...sn.packet},treeView:{...sn.treeView,useWidth:void 0},radar:{...sn.radar},ishikawa:{...sn.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...sn.venn}},zw=T((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...zw(t[n],"")]:[...r,e+n],[]),"keyify"),TP=new Set(zw(jw,"")),qw=jw,vh=T(t=>{if(ht.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>vh(e));return}for(const e of Object.keys(t)){if(ht.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!TP.has(e)||t[e]==null){ht.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){ht.debug("sanitizing object",e),vh(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(ht.debug("sanitizing css option",e),t[e]=_P(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}ht.debug("After sanitization",t)}},"sanitizeDirective"),_P=T(t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?e++:n==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),hs=Object.freeze(qw),Mi=T(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Kr=ir({},hs),wh,Ko=[],Wl=ir({},hs),cd=T((t,e)=>{let r=ir({},t),n={};for(const i of e)Uw(i),n=ir(n,i);if(r=ir(r,n),n.theme&&n.theme in Ei){const i=ir({},wh),o=ir(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Ei&&(r.themeVariables=Ei[r.theme].getThemeVariables(o))}return Wl=r,Yw(Wl),Wl},"updateCurrentConfig"),LP=T(t=>(Kr=ir({},hs),Kr=ir(Kr,t),t.theme&&Ei[t.theme]&&(Kr.themeVariables=Ei[t.theme].getThemeVariables(t.themeVariables)),cd(Kr,Ko),Kr),"setSiteConfig"),EP=T(t=>{wh=ir({},t)},"saveConfigFromInitialize"),BP=T(t=>(Kr=ir(Kr,t),cd(Kr,Ko),Kr),"updateSiteConfig"),Ww=T(()=>ir({},Kr),"getSiteConfig"),Hw=T(t=>(Yw(t),ir(Wl,t),Pe()),"setConfig"),Pe=T(()=>ir({},Wl),"getConfig"),Uw=T(t=>{t&&(["secure",...Kr.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(ht.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Uw(t[e])}))},"sanitize"),AP=T(t=>{var e;vh(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Ko.push(t),cd(Kr,Ko)},"addDirective"),Sh=T((t=Kr)=>{Ko=[],cd(t,Ko)},"reset"),FP={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Ek={},Vw=T(t=>{Ek[t]||(ht.warn(FP[t]),Ek[t]=!0)},"issueWarning"),Yw=T(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Vw("LAZY_LOAD_DEPRECATED")},"checkConfig"),ZZ=T(()=>{let t={};wh&&(t=ir(t,wh));for(const e of Ko)t=ir(t,e);return t},"getUserDefinedConfig"),$r=T(t=>{var e,r;return((e=t.flowchart)==null?void 0:e.htmlLabels)!=null&&Vw("FLOWCHART_HTML_LABELS_DEPRECATED"),Mi(t.htmlLabels??((r=t.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),pc=/<br\s*\/?>/gi,IP=T(t=>t?Kw(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),MP=(()=>{let t=!1;return()=>{t||(Gw(),t=!0)}})();function Gw(){const t="data-temp-href-target";us.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),us.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}T(Gw,"setupDompurifyHooks");var Xw=T(t=>(MP(),us.sanitize(t)),"removeScript"),Bk=T((t,e)=>{if($r(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=Xw(t):r!=="loose"&&(t=Kw(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=PP(t))}return t},"sanitizeMore"),Hn=T((t,e)=>t&&(e.dompurifyConfig?t=us.sanitize(Bk(t,e),e.dompurifyConfig).toString():t=us.sanitize(Bk(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),OP=T((t,e)=>typeof t=="string"?Hn(t,e):t.flat().map(r=>Hn(r,e)),"sanitizeTextOrArray"),NP=T(t=>pc.test(t),"hasBreaks"),RP=T(t=>t.split(pc),"splitBreaks"),PP=T(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Kw=T(t=>t.replace(pc,"#br#"),"breakToPlaceholder"),DP=T(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),$P=T(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),jP=T(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Ak=T(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i===","&&n>0&&n+1<e.length){const o=e[n-1],s=e[n+1];zP(o,s)&&(i=o+","+s,n++,r.pop())}r.push(qP(i))}return r.join("")},"parseGenericTypes"),xm=T((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),zP=T((t,e)=>{const r=xm(t,"~"),n=xm(e,"~");return r===1&&n===1},"shouldCombineSets"),qP=T(t=>{const e=xm(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),o=n.lastIndexOf("~");for(;i!==-1&&o!==-1&&i!==o;)n[i]="<",n[o]=">",i=n.indexOf("~"),o=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),Fk=T(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Cm=/\$\$(.*)\$\$/g,Kl=T(t=>{var e;return(((e=t.match(Cm))==null?void 0:e.length)??0)>0},"hasKatex"),JZ=T(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Qw(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),WP=T(async(t,e)=>{if(!Kl(t))return t;if(!(Fk()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Cm,"MathML is unsupported in this environment.");{const{default:r}=await oe(async()=>{const{default:i}=await import("./katex-DkKDou_j.js");return{default:i}},[]),n=e.forceLegacyMathML||!Fk()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(pc).map(i=>Kl(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(Cm,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Qw=T(async(t,e)=>Hn(await WP(t,e),e),"renderKatexSanitized"),gc={getRows:IP,sanitizeText:Hn,sanitizeTextOrArray:OP,hasBreaks:NP,splitBreaks:RP,lineBreakRegex:pc,removeScript:Xw,getUrl:DP,evaluate:Mi,getMax:$P,getMin:jP},HP=T(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),UP=T(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),Zw=T(function(t,e,r,n){const i=UP(e,r,n);HP(t,i)},"configureSvgSize"),VP=T(function(t,e,r,n){const i=e.node().getBBox(),o=i.width,s=i.height;ht.info(`SVG bounds: ${o}x${s}`,i);let l=0,u=0;ht.info(`Graph bounds: ${l}x${u}`,t),l=o+r*2,u=s+r*2,ht.info(`Calculated bounds: ${l}x${u}`),Zw(e,u,l,n);const h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),oh={},YP=T((t,e,r,n)=>{let i="";return t in oh&&oh[t]?i=oh[t]({...r,svgId:n}):ht.warn(`No theme found for ${t}`),` & {
180
- font-family: ${r.fontFamily};
181
- font-size: ${r.fontSize};
182
- fill: ${r.textColor}
183
- }
184
- @keyframes edge-animation-frame {
185
- from {
186
- stroke-dashoffset: 0;
187
- }
188
- }
189
- @keyframes dash {
190
- to {
191
- stroke-dashoffset: 0;
192
- }
193
- }
194
- & .edge-animation-slow {
195
- stroke-dasharray: 9,5 !important;
196
- stroke-dashoffset: 900;
197
- animation: dash 50s linear infinite;
198
- stroke-linecap: round;
199
- }
200
- & .edge-animation-fast {
201
- stroke-dasharray: 9,5 !important;
202
- stroke-dashoffset: 900;
203
- animation: dash 20s linear infinite;
204
- stroke-linecap: round;
205
- }
206
- /* Classes common for multiple diagrams */
207
-
208
- & .error-icon {
209
- fill: ${r.errorBkgColor};
210
- }
211
- & .error-text {
212
- fill: ${r.errorTextColor};
213
- stroke: ${r.errorTextColor};
214
- }
215
-
216
- & .edge-thickness-normal {
217
- stroke-width: ${r.strokeWidth??1}px;
218
- }
219
- & .edge-thickness-thick {
220
- stroke-width: 3.5px
221
- }
222
- & .edge-pattern-solid {
223
- stroke-dasharray: 0;
224
- }
225
- & .edge-thickness-invisible {
226
- stroke-width: 0;
227
- fill: none;
228
- }
229
- & .edge-pattern-dashed{
230
- stroke-dasharray: 3;
231
- }
232
- .edge-pattern-dotted {
233
- stroke-dasharray: 2;
234
- }
235
-
236
- & .marker {
237
- fill: ${r.lineColor};
238
- stroke: ${r.lineColor};
239
- }
240
- & .marker.cross {
241
- stroke: ${r.lineColor};
242
- }
243
-
244
- & svg {
245
- font-family: ${r.fontFamily};
246
- font-size: ${r.fontSize};
247
- }
248
- & p {
249
- margin: 0
250
- }
251
-
252
- ${i}
253
- .node .neo-node {
254
- stroke: ${r.nodeBorder};
255
- }
256
-
257
- [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
258
- stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
259
- filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
260
- }
261
-
262
-
263
- [data-look="neo"].node path {
264
- stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
265
- stroke-width: ${r.strokeWidth??1}px;
266
- }
267
-
268
- [data-look="neo"].node .outer-path {
269
- filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
270
- }
271
-
272
- [data-look="neo"].node .neo-line path {
273
- stroke: ${r.nodeBorder};
274
- filter: none;
275
- }
276
-
277
- [data-look="neo"].node circle{
278
- stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
279
- filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
280
- }
281
-
282
- [data-look="neo"].node circle .state-start{
283
- fill: #000000;
284
- }
285
-
286
- [data-look="neo"].icon-shape .icon {
287
- fill: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
288
- filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
289
- }
290
-
291
- [data-look="neo"].icon-shape .icon-neo path {
292
- stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
293
- filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
294
- }
295
-
296
- ${e}
297
- `},"getStyles"),GP=T((t,e)=>{e!==void 0&&(oh[t]=e)},"addStylesForDiagram"),XP=YP,Jw={};_R(Jw,{clear:()=>KP,getAccDescription:()=>tD,getAccTitle:()=>ZP,getDiagramTitle:()=>rD,setAccDescription:()=>JP,setAccTitle:()=>QP,setDiagramTitle:()=>eD});var Hy="",Uy="",Vy="",Yy=T(t=>Hn(t,Pe()),"sanitizeText"),KP=T(()=>{Hy="",Vy="",Uy=""},"clear"),QP=T(t=>{Hy=Yy(t).replace(/^\s+/g,"")},"setAccTitle"),ZP=T(()=>Hy,"getAccTitle"),JP=T(t=>{Vy=Yy(t).replace(/\n\s+/g,`
298
- `)},"setAccDescription"),tD=T(()=>Vy,"getAccDescription"),eD=T(t=>{Uy=Yy(t)},"setDiagramTitle"),rD=T(()=>Uy,"getDiagramTitle"),Ik=ht,nD=qy,ue=Pe,tJ=Hw,eJ=hs,Gy=T(t=>Hn(t,ue()),"sanitizeText"),iD=VP,oD=T(()=>Jw,"getCommonDb"),Th={},_h=T((t,e,r)=>{var n;Th[t]&&Ik.warn(`Diagram with id ${t} already registered. Overwriting.`),Th[t]=e,r&&$w(t,r),GP(t,e.styles),(n=e.injectUtils)==null||n.call(e,Ik,nD,ue,Gy,iD,oD(),()=>{})},"registerDiagram"),km=T(t=>{if(t in Th)return Th[t];throw new aD(t)},"getDiagram"),ss,aD=(ss=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},T(ss,"DiagramNotFoundError"),ss),sD={value:()=>{}};function tS(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new ah(r)}function ah(t){this._=t}function lD(t,e){return t.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ah.prototype=tS.prototype={constructor:ah,on:function(t,e){var r=this._,n=lD(t+"",r),i,o=-1,s=n.length;if(arguments.length<2){for(;++o<s;)if((i=(t=n[o]).type)&&(i=cD(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=n[o]).type)r[i]=Mk(r[i],t.name,e);else if(e==null)for(i in r)r[i]=Mk(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ah(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,o;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],n=0,i=o.length;n<i;++n)o[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,o=n.length;i<o;++i)n[i].value.apply(e,r)}};function cD(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function Mk(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=sD,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}var bm="http://www.w3.org/1999/xhtml";const Ok={svg:"http://www.w3.org/2000/svg",xhtml:bm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ud(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Ok.hasOwnProperty(e)?{space:Ok[e],local:t}:t}function uD(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===bm&&e.documentElement.namespaceURI===bm?e.createElement(t):e.createElementNS(r,t)}}function hD(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function eS(t){var e=ud(t);return(e.local?hD:uD)(e)}function dD(){}function Xy(t){return t==null?dD:function(){return this.querySelector(t)}}function fD(t){typeof t!="function"&&(t=Xy(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var o=e[i],s=o.length,l=n[i]=new Array(s),u,h,d=0;d<s;++d)(u=o[d])&&(h=t.call(u,u.__data__,d,o))&&("__data__"in u&&(h.__data__=u.__data__),l[d]=h);return new fn(n,this._parents)}function pD(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function gD(){return[]}function rS(t){return t==null?gD:function(){return this.querySelectorAll(t)}}function mD(t){return function(){return pD(t.apply(this,arguments))}}function yD(t){typeof t=="function"?t=mD(t):t=rS(t);for(var e=this._groups,r=e.length,n=[],i=[],o=0;o<r;++o)for(var s=e[o],l=s.length,u,h=0;h<l;++h)(u=s[h])&&(n.push(t.call(u,u.__data__,h,s)),i.push(u));return new fn(n,i)}function nS(t){return function(){return this.matches(t)}}function iS(t){return function(e){return e.matches(t)}}var xD=Array.prototype.find;function CD(t){return function(){return xD.call(this.children,t)}}function kD(){return this.firstElementChild}function bD(t){return this.select(t==null?kD:CD(typeof t=="function"?t:iS(t)))}var vD=Array.prototype.filter;function wD(){return Array.from(this.children)}function SD(t){return function(){return vD.call(this.children,t)}}function TD(t){return this.selectAll(t==null?wD:SD(typeof t=="function"?t:iS(t)))}function _D(t){typeof t!="function"&&(t=nS(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var o=e[i],s=o.length,l=n[i]=[],u,h=0;h<s;++h)(u=o[h])&&t.call(u,u.__data__,h,o)&&l.push(u);return new fn(n,this._parents)}function oS(t){return new Array(t.length)}function LD(){return new fn(this._enter||this._groups.map(oS),this._parents)}function Lh(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Lh.prototype={constructor:Lh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ED(t){return function(){return t}}function BD(t,e,r,n,i,o){for(var s=0,l,u=e.length,h=o.length;s<h;++s)(l=e[s])?(l.__data__=o[s],n[s]=l):r[s]=new Lh(t,o[s]);for(;s<u;++s)(l=e[s])&&(i[s]=l)}function AD(t,e,r,n,i,o,s){var l,u,h=new Map,d=e.length,f=o.length,m=new Array(d),p;for(l=0;l<d;++l)(u=e[l])&&(m[l]=p=s.call(u,u.__data__,l,e)+"",h.has(p)?i[l]=u:h.set(p,u));for(l=0;l<f;++l)p=s.call(t,o[l],l,o)+"",(u=h.get(p))?(n[l]=u,u.__data__=o[l],h.delete(p)):r[l]=new Lh(t,o[l]);for(l=0;l<d;++l)(u=e[l])&&h.get(m[l])===u&&(i[l]=u)}function FD(t){return t.__data__}function ID(t,e){if(!arguments.length)return Array.from(this,FD);var r=e?AD:BD,n=this._parents,i=this._groups;typeof t!="function"&&(t=ED(t));for(var o=i.length,s=new Array(o),l=new Array(o),u=new Array(o),h=0;h<o;++h){var d=n[h],f=i[h],m=f.length,p=MD(t.call(d,d&&d.__data__,h,n)),x=p.length,C=l[h]=new Array(x),k=s[h]=new Array(x),b=u[h]=new Array(m);r(d,f,C,k,b,p,e);for(var w=0,S=0,A,F;w<x;++w)if(A=C[w]){for(w>=S&&(S=w+1);!(F=k[S])&&++S<x;);A._next=F||null}}return s=new fn(s,n),s._enter=l,s._exit=u,s}function MD(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function OD(){return new fn(this._exit||this._groups.map(oS),this._parents)}function ND(t,e,r){var n=this.enter(),i=this,o=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?o.remove():r(o),n&&i?n.merge(i).order():i}function RD(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,o=n.length,s=Math.min(i,o),l=new Array(i),u=0;u<s;++u)for(var h=r[u],d=n[u],f=h.length,m=l[u]=new Array(f),p,x=0;x<f;++x)(p=h[x]||d[x])&&(m[x]=p);for(;u<i;++u)l[u]=r[u];return new fn(l,this._parents)}function PD(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],i=n.length-1,o=n[i],s;--i>=0;)(s=n[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function DD(t){t||(t=$D);function e(f,m){return f&&m?t(f.__data__,m.__data__):!f-!m}for(var r=this._groups,n=r.length,i=new Array(n),o=0;o<n;++o){for(var s=r[o],l=s.length,u=i[o]=new Array(l),h,d=0;d<l;++d)(h=s[d])&&(u[d]=h);u.sort(e)}return new fn(i,this._parents).order()}function $D(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function jD(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zD(){return Array.from(this)}function qD(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,o=n.length;i<o;++i){var s=n[i];if(s)return s}return null}function WD(){let t=0;for(const e of this)++t;return t}function HD(){return!this.node()}function UD(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],o=0,s=i.length,l;o<s;++o)(l=i[o])&&t.call(l,l.__data__,o,i);return this}function VD(t){return function(){this.removeAttribute(t)}}function YD(t){return function(){this.removeAttributeNS(t.space,t.local)}}function GD(t,e){return function(){this.setAttribute(t,e)}}function XD(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function KD(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function QD(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function ZD(t,e){var r=ud(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?YD:VD:typeof e=="function"?r.local?QD:KD:r.local?XD:GD)(r,e))}function aS(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function JD(t){return function(){this.style.removeProperty(t)}}function t$(t,e,r){return function(){this.style.setProperty(t,e,r)}}function e$(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function r$(t,e,r){return arguments.length>1?this.each((e==null?JD:typeof e=="function"?e$:t$)(t,e,r??"")):ds(this.node(),t)}function ds(t,e){return t.style.getPropertyValue(e)||aS(t).getComputedStyle(t,null).getPropertyValue(e)}function n$(t){return function(){delete this[t]}}function i$(t,e){return function(){this[t]=e}}function o$(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function a$(t,e){return arguments.length>1?this.each((e==null?n$:typeof e=="function"?o$:i$)(t,e)):this.node()[t]}function sS(t){return t.trim().split(/^|\s+/)}function Ky(t){return t.classList||new lS(t)}function lS(t){this._node=t,this._names=sS(t.getAttribute("class")||"")}lS.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function cS(t,e){for(var r=Ky(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function uS(t,e){for(var r=Ky(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function s$(t){return function(){cS(this,t)}}function l$(t){return function(){uS(this,t)}}function c$(t,e){return function(){(e.apply(this,arguments)?cS:uS)(this,t)}}function u$(t,e){var r=sS(t+"");if(arguments.length<2){for(var n=Ky(this.node()),i=-1,o=r.length;++i<o;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?c$:e?s$:l$)(r,e))}function h$(){this.textContent=""}function d$(t){return function(){this.textContent=t}}function f$(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function p$(t){return arguments.length?this.each(t==null?h$:(typeof t=="function"?f$:d$)(t)):this.node().textContent}function g$(){this.innerHTML=""}function m$(t){return function(){this.innerHTML=t}}function y$(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function x$(t){return arguments.length?this.each(t==null?g$:(typeof t=="function"?y$:m$)(t)):this.node().innerHTML}function C$(){this.nextSibling&&this.parentNode.appendChild(this)}function k$(){return this.each(C$)}function b$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function v$(){return this.each(b$)}function w$(t){var e=typeof t=="function"?t:eS(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function S$(){return null}function T$(t,e){var r=typeof t=="function"?t:eS(t),n=e==null?S$:typeof e=="function"?e:Xy(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function _$(){var t=this.parentNode;t&&t.removeChild(this)}function L$(){return this.each(_$)}function E$(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function B$(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function A$(t){return this.select(t?B$:E$)}function F$(t){return arguments.length?this.property("__data__",t):this.node().__data__}function I$(t){return function(e){t.call(this,e,this.__data__)}}function M$(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function O$(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,o;r<i;++r)o=e[r],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++n]=o;++n?e.length=n:delete this.__on}}}function N$(t,e,r){return function(){var n=this.__on,i,o=I$(e);if(n){for(var s=0,l=n.length;s<l;++s)if((i=n[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=r),i.value=e;return}}this.addEventListener(t.type,o,r),i={type:t.type,name:t.name,value:e,listener:o,options:r},n?n.push(i):this.__on=[i]}}function R$(t,e,r){var n=M$(t+""),i,o=n.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,h=l.length,d;u<h;++u)for(i=0,d=l[u];i<o;++i)if((s=n[i]).type===d.type&&s.name===d.name)return d.value}return}for(l=e?N$:O$,i=0;i<o;++i)this.each(l(n[i],e,r));return this}function hS(t,e,r){var n=aS(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function P$(t,e){return function(){return hS(this,t,e)}}function D$(t,e){return function(){return hS(this,t,e.apply(this,arguments))}}function $$(t,e){return this.each((typeof e=="function"?D$:P$)(t,e))}function*j$(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,o=n.length,s;i<o;++i)(s=n[i])&&(yield s)}var dS=[null];function fn(t,e){this._groups=t,this._parents=e}function mc(){return new fn([[document.documentElement]],dS)}function z$(){return this}fn.prototype=mc.prototype={constructor:fn,select:fD,selectAll:yD,selectChild:bD,selectChildren:TD,filter:_D,data:ID,enter:LD,exit:OD,join:ND,merge:RD,selection:z$,order:PD,sort:DD,call:jD,nodes:zD,node:qD,size:WD,empty:HD,each:UD,attr:ZD,style:r$,property:a$,classed:u$,text:p$,html:x$,raise:k$,lower:v$,append:w$,insert:T$,remove:L$,clone:A$,datum:F$,on:R$,dispatch:$$,[Symbol.iterator]:j$};function Zt(t){return typeof t=="string"?new fn([[document.querySelector(t)]],[document.documentElement]):new fn([[t]],dS)}function Qy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function fS(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function yc(){}var Ql=.7,Eh=1/Ql,Ya="\\s*([+-]?\\d+)\\s*",Zl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",q$=/^#([0-9a-f]{3,8})$/,W$=new RegExp(`^rgb\\(${Ya},${Ya},${Ya}\\)$`),H$=new RegExp(`^rgb\\(${oi},${oi},${oi}\\)$`),U$=new RegExp(`^rgba\\(${Ya},${Ya},${Ya},${Zl}\\)$`),V$=new RegExp(`^rgba\\(${oi},${oi},${oi},${Zl}\\)$`),Y$=new RegExp(`^hsl\\(${Zl},${oi},${oi}\\)$`),G$=new RegExp(`^hsla\\(${Zl},${oi},${oi},${Zl}\\)$`),Nk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qy(yc,Jl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Rk,formatHex:Rk,formatHex8:X$,formatHsl:K$,formatRgb:Pk,toString:Pk});function Rk(){return this.rgb().formatHex()}function X$(){return this.rgb().formatHex8()}function K$(){return pS(this).formatHsl()}function Pk(){return this.rgb().formatRgb()}function Jl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=q$.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Dk(e):r===3?new Jr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ju(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ju(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=W$.exec(t))?new Jr(e[1],e[2],e[3],1):(e=H$.exec(t))?new Jr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=U$.exec(t))?ju(e[1],e[2],e[3],e[4]):(e=V$.exec(t))?ju(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Y$.exec(t))?zk(e[1],e[2]/100,e[3]/100,1):(e=G$.exec(t))?zk(e[1],e[2]/100,e[3]/100,e[4]):Nk.hasOwnProperty(t)?Dk(Nk[t]):t==="transparent"?new Jr(NaN,NaN,NaN,0):null}function Dk(t){return new Jr(t>>16&255,t>>8&255,t&255,1)}function ju(t,e,r,n){return n<=0&&(t=e=r=NaN),new Jr(t,e,r,n)}function Q$(t){return t instanceof yc||(t=Jl(t)),t?(t=t.rgb(),new Jr(t.r,t.g,t.b,t.opacity)):new Jr}function vm(t,e,r,n){return arguments.length===1?Q$(t):new Jr(t,e,r,n??1)}function Jr(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Qy(Jr,vm,fS(yc,{brighter(t){return t=t==null?Eh:Math.pow(Eh,t),new Jr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ql:Math.pow(Ql,t),new Jr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Jr(Vo(this.r),Vo(this.g),Vo(this.b),Bh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$k,formatHex:$k,formatHex8:Z$,formatRgb:jk,toString:jk}));function $k(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}`}function Z$(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}${Wo((isNaN(this.opacity)?1:this.opacity)*255)}`}function jk(){const t=Bh(this.opacity);return`${t===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${t===1?")":`, ${t})`}`}function Bh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wo(t){return t=Vo(t),(t<16?"0":"")+t.toString(16)}function zk(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new $n(t,e,r,n)}function pS(t){if(t instanceof $n)return new $n(t.h,t.s,t.l,t.opacity);if(t instanceof yc||(t=Jl(t)),!t)return new $n;if(t instanceof $n)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=NaN,l=o-i,u=(o+i)/2;return l?(e===o?s=(r-n)/l+(r<n)*6:r===o?s=(n-e)/l+2:s=(e-r)/l+4,l/=u<.5?o+i:2-o-i,s*=60):l=u>0&&u<1?0:s,new $n(s,l,u,t.opacity)}function J$(t,e,r,n){return arguments.length===1?pS(t):new $n(t,e,r,n??1)}function $n(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Qy($n,J$,fS(yc,{brighter(t){return t=t==null?Eh:Math.pow(Eh,t),new $n(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ql:Math.pow(Ql,t),new $n(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Jr(zp(t>=240?t-240:t+120,i,n),zp(t,i,n),zp(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new $n(qk(this.h),zu(this.s),zu(this.l),Bh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Bh(this.opacity);return`${t===1?"hsl(":"hsla("}${qk(this.h)}, ${zu(this.s)*100}%, ${zu(this.l)*100}%${t===1?")":`, ${t})`}`}}));function qk(t){return t=(t||0)%360,t<0?t+360:t}function zu(t){return Math.max(0,Math.min(1,t||0))}function zp(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Zy=t=>()=>t;function gS(t,e){return function(r){return t+r*e}}function t6(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function rJ(t,e){var r=e-t;return r?gS(t,r>180||r<-180?r-360*Math.round(r/360):r):Zy(isNaN(t)?e:t)}function e6(t){return(t=+t)==1?mS:function(e,r){return r-e?t6(e,r,t):Zy(isNaN(e)?r:e)}}function mS(t,e){var r=e-t;return r?gS(t,r):Zy(isNaN(t)?e:t)}const Wk=(function t(e){var r=e6(e);function n(i,o){var s=r((i=vm(i)).r,(o=vm(o)).r),l=r(i.g,o.g),u=r(i.b,o.b),h=mS(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=l(d),i.b=u(d),i.opacity=h(d),i+""}}return n.gamma=t,n})(1);function ao(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var wm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qp=new RegExp(wm.source,"g");function r6(t){return function(){return t}}function n6(t){return function(e){return t(e)+""}}function i6(t,e){var r=wm.lastIndex=qp.lastIndex=0,n,i,o,s=-1,l=[],u=[];for(t=t+"",e=e+"";(n=wm.exec(t))&&(i=qp.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:ao(n,i)})),r=qp.lastIndex;return r<e.length&&(o=e.slice(r),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?n6(u[0].x):r6(e):(e=u.length,function(h){for(var d=0,f;d<e;++d)l[(f=u[d]).i]=f.x(h);return l.join("")})}var Hk=180/Math.PI,Sm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yS(t,e,r,n,i,o){var s,l,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*r+e*n)&&(r-=t*u,n-=e*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),t*n<e*r&&(t=-t,e=-e,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Hk,skewX:Math.atan(u)*Hk,scaleX:s,scaleY:l}}var qu;function o6(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Sm:yS(e.a,e.b,e.c,e.d,e.e,e.f)}function a6(t){return t==null||(qu||(qu=document.createElementNS("http://www.w3.org/2000/svg","g")),qu.setAttribute("transform",t),!(t=qu.transform.baseVal.consolidate()))?Sm:(t=t.matrix,yS(t.a,t.b,t.c,t.d,t.e,t.f))}function xS(t,e,r,n){function i(h){return h.length?h.pop()+" ":""}function o(h,d,f,m,p,x){if(h!==f||d!==m){var C=p.push("translate(",null,e,null,r);x.push({i:C-4,x:ao(h,f)},{i:C-2,x:ao(d,m)})}else(f||m)&&p.push("translate("+f+e+m+r)}function s(h,d,f,m){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),m.push({i:f.push(i(f)+"rotate(",null,n)-2,x:ao(h,d)})):d&&f.push(i(f)+"rotate("+d+n)}function l(h,d,f,m){h!==d?m.push({i:f.push(i(f)+"skewX(",null,n)-2,x:ao(h,d)}):d&&f.push(i(f)+"skewX("+d+n)}function u(h,d,f,m,p,x){if(h!==f||d!==m){var C=p.push(i(p)+"scale(",null,",",null,")");x.push({i:C-4,x:ao(h,f)},{i:C-2,x:ao(d,m)})}else(f!==1||m!==1)&&p.push(i(p)+"scale("+f+","+m+")")}return function(h,d){var f=[],m=[];return h=t(h),d=t(d),o(h.translateX,h.translateY,d.translateX,d.translateY,f,m),s(h.rotate,d.rotate,f,m),l(h.skewX,d.skewX,f,m),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,f,m),h=d=null,function(p){for(var x=-1,C=m.length,k;++x<C;)f[(k=m[x]).i]=k.x(p);return f.join("")}}}var s6=xS(o6,"px, ","px)","deg)"),l6=xS(a6,", ",")",")"),fs=0,Al=0,kl=0,CS=1e3,Ah,Fl,Fh=0,Qo=0,hd=0,tc=typeof performance=="object"&&performance.now?performance:Date,kS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Jy(){return Qo||(kS(c6),Qo=tc.now()+hd)}function c6(){Qo=0}function Ih(){this._call=this._time=this._next=null}Ih.prototype=bS.prototype={constructor:Ih,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Jy():+r)+(e==null?0:+e),!this._next&&Fl!==this&&(Fl?Fl._next=this:Ah=this,Fl=this),this._call=t,this._time=r,Tm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Tm())}};function bS(t,e,r){var n=new Ih;return n.restart(t,e,r),n}function u6(){Jy(),++fs;for(var t=Ah,e;t;)(e=Qo-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fs}function Uk(){Qo=(Fh=tc.now())+hd,fs=Al=0;try{u6()}finally{fs=0,d6(),Qo=0}}function h6(){var t=tc.now(),e=t-Fh;e>CS&&(hd-=e,Fh=t)}function d6(){for(var t,e=Ah,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ah=r);Fl=t,Tm(n)}function Tm(t){if(!fs){Al&&(Al=clearTimeout(Al));var e=t-Qo;e>24?(t<1/0&&(Al=setTimeout(Uk,t-tc.now()-hd)),kl&&(kl=clearInterval(kl))):(kl||(Fh=tc.now(),kl=setInterval(h6,CS)),fs=1,kS(Uk))}}function Vk(t,e,r){var n=new Ih;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var f6=tS("start","end","cancel","interrupt"),p6=[],vS=0,Yk=1,_m=2,sh=3,Gk=4,Lm=5,lh=6;function dd(t,e,r,n,i,o){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;g6(t,r,{name:e,index:n,group:i,on:f6,tween:p6,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:vS})}function tx(t,e){var r=Vn(t,e);if(r.state>vS)throw new Error("too late; already scheduled");return r}function hi(t,e){var r=Vn(t,e);if(r.state>sh)throw new Error("too late; already running");return r}function Vn(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function g6(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=bS(o,0,r.time);function o(h){r.state=Yk,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}function s(h){var d,f,m,p;if(r.state!==Yk)return u();for(d in n)if(p=n[d],p.name===r.name){if(p.state===sh)return Vk(s);p.state===Gk?(p.state=lh,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+d<e&&(p.state=lh,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete n[d])}if(Vk(function(){r.state===sh&&(r.state=Gk,r.timer.restart(l,r.delay,r.time),l(h))}),r.state=_m,r.on.call("start",t,t.__data__,r.index,r.group),r.state===_m){for(r.state=sh,i=new Array(m=r.tween.length),d=0,f=-1;d<m;++d)(p=r.tween[d].value.call(t,t.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function l(h){for(var d=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(u),r.state=Lm,1),f=-1,m=i.length;++f<m;)i[f].call(t,d);r.state===Lm&&(r.on.call("end",t,t.__data__,r.index,r.group),u())}function u(){r.state=lh,r.timer.stop(),delete n[e];for(var h in n)return;delete t.__transition}}function m6(t,e){var r=t.__transition,n,i,o=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){o=!1;continue}i=n.state>_m&&n.state<Lm,n.state=lh,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]}o&&delete t.__transition}}function y6(t){return this.each(function(){m6(this,t)})}function x6(t,e){var r,n;return function(){var i=hi(this,t),o=i.tween;if(o!==r){n=r=o;for(var s=0,l=n.length;s<l;++s)if(n[s].name===e){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function C6(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var o=hi(this,t),s=o.tween;if(s!==n){i=(n=s).slice();for(var l={name:e,value:r},u=0,h=i.length;u<h;++u)if(i[u].name===e){i[u]=l;break}u===h&&i.push(l)}o.tween=i}}function k6(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=Vn(this.node(),r).tween,i=0,o=n.length,s;i<o;++i)if((s=n[i]).name===t)return s.value;return null}return this.each((e==null?x6:C6)(r,t,e))}function ex(t,e,r){var n=t._id;return t.each(function(){var i=hi(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return Vn(i,n).value[e]}}function wS(t,e){var r;return(typeof e=="number"?ao:e instanceof Jl?Wk:(r=Jl(e))?(e=r,Wk):i6)(t,e)}function b6(t){return function(){this.removeAttribute(t)}}function v6(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w6(t,e,r){var n,i=r+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===n?o:o=e(n=s,r)}}function S6(t,e,r){var n,i=r+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?o:o=e(n=s,r)}}function T6(t,e,r){var n,i,o;return function(){var s,l=r(this),u;return l==null?void this.removeAttribute(t):(s=this.getAttribute(t),u=l+"",s===u?null:s===n&&u===i?o:(i=u,o=e(n=s,l)))}}function _6(t,e,r){var n,i,o;return function(){var s,l=r(this),u;return l==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),u=l+"",s===u?null:s===n&&u===i?o:(i=u,o=e(n=s,l)))}}function L6(t,e){var r=ud(t),n=r==="transform"?l6:wS;return this.attrTween(t,typeof e=="function"?(r.local?_6:T6)(r,n,ex(this,"attr."+t,e)):e==null?(r.local?v6:b6)(r):(r.local?S6:w6)(r,n,e))}function E6(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function B6(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function A6(t,e){var r,n;function i(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&B6(t,o)),r}return i._value=e,i}function F6(t,e){var r,n;function i(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&E6(t,o)),r}return i._value=e,i}function I6(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=ud(t);return this.tween(r,(n.local?A6:F6)(n,e))}function M6(t,e){return function(){tx(this,t).delay=+e.apply(this,arguments)}}function O6(t,e){return e=+e,function(){tx(this,t).delay=e}}function N6(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?M6:O6)(e,t)):Vn(this.node(),e).delay}function R6(t,e){return function(){hi(this,t).duration=+e.apply(this,arguments)}}function P6(t,e){return e=+e,function(){hi(this,t).duration=e}}function D6(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?R6:P6)(e,t)):Vn(this.node(),e).duration}function $6(t,e){if(typeof e!="function")throw new Error;return function(){hi(this,t).ease=e}}function j6(t){var e=this._id;return arguments.length?this.each($6(e,t)):Vn(this.node(),e).ease}function z6(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;hi(this,t).ease=r}}function q6(t){if(typeof t!="function")throw new Error;return this.each(z6(this._id,t))}function W6(t){typeof t!="function"&&(t=nS(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var o=e[i],s=o.length,l=n[i]=[],u,h=0;h<s;++h)(u=o[h])&&t.call(u,u.__data__,h,o)&&l.push(u);return new Ai(n,this._parents,this._name,this._id)}function H6(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,o=Math.min(n,i),s=new Array(n),l=0;l<o;++l)for(var u=e[l],h=r[l],d=u.length,f=s[l]=new Array(d),m,p=0;p<d;++p)(m=u[p]||h[p])&&(f[p]=m);for(;l<n;++l)s[l]=e[l];return new Ai(s,this._parents,this._name,this._id)}function U6(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function V6(t,e,r){var n,i,o=U6(e)?tx:hi;return function(){var s=o(this,t),l=s.on;l!==n&&(i=(n=l).copy()).on(e,r),s.on=i}}function Y6(t,e){var r=this._id;return arguments.length<2?Vn(this.node(),r).on.on(t):this.each(V6(r,t,e))}function G6(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function X6(){return this.on("end.remove",G6(this._id))}function K6(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Xy(t));for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s)for(var l=n[s],u=l.length,h=o[s]=new Array(u),d,f,m=0;m<u;++m)(d=l[m])&&(f=t.call(d,d.__data__,m,l))&&("__data__"in d&&(f.__data__=d.__data__),h[m]=f,dd(h[m],e,r,m,h,Vn(d,r)));return new Ai(o,this._parents,e,r)}function Q6(t){var e=this._name,r=this._id;typeof t!="function"&&(t=rS(t));for(var n=this._groups,i=n.length,o=[],s=[],l=0;l<i;++l)for(var u=n[l],h=u.length,d,f=0;f<h;++f)if(d=u[f]){for(var m=t.call(d,d.__data__,f,u),p,x=Vn(d,r),C=0,k=m.length;C<k;++C)(p=m[C])&&dd(p,e,r,C,m,x);o.push(m),s.push(d)}return new Ai(o,s,e,r)}var Z6=mc.prototype.constructor;function J6(){return new Z6(this._groups,this._parents)}function tj(t,e){var r,n,i;return function(){var o=ds(this,t),s=(this.style.removeProperty(t),ds(this,t));return o===s?null:o===r&&s===n?i:i=e(r=o,n=s)}}function SS(t){return function(){this.style.removeProperty(t)}}function ej(t,e,r){var n,i=r+"",o;return function(){var s=ds(this,t);return s===i?null:s===n?o:o=e(n=s,r)}}function rj(t,e,r){var n,i,o;return function(){var s=ds(this,t),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(t),ds(this,t))),s===u?null:s===n&&u===i?o:(i=u,o=e(n=s,l))}}function nj(t,e){var r,n,i,o="style."+e,s="end."+o,l;return function(){var u=hi(this,t),h=u.on,d=u.value[o]==null?l||(l=SS(e)):void 0;(h!==r||i!==d)&&(n=(r=h).copy()).on(s,i=d),u.on=n}}function ij(t,e,r){var n=(t+="")=="transform"?s6:wS;return e==null?this.styleTween(t,tj(t,n)).on("end.style."+t,SS(t)):typeof e=="function"?this.styleTween(t,rj(t,n,ex(this,"style."+t,e))).each(nj(this._id,t)):this.styleTween(t,ej(t,n,e),r).on("end.style."+t,null)}function oj(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function aj(t,e,r){var n,i;function o(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&oj(t,s,r)),n}return o._value=e,o}function sj(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,aj(t,e,r??""))}function lj(t){return function(){this.textContent=t}}function cj(t){return function(){var e=t(this);this.textContent=e??""}}function uj(t){return this.tween("text",typeof t=="function"?cj(ex(this,"text",t)):lj(t==null?"":t+""))}function hj(t){return function(e){this.textContent=t.call(this,e)}}function dj(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&hj(i)),e}return n._value=t,n}function fj(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,dj(t))}function pj(){for(var t=this._name,e=this._id,r=TS(),n=this._groups,i=n.length,o=0;o<i;++o)for(var s=n[o],l=s.length,u,h=0;h<l;++h)if(u=s[h]){var d=Vn(u,e);dd(u,t,r,h,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Ai(n,this._parents,t,r)}function gj(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(o,s){var l={value:s},u={value:function(){--i===0&&o()}};r.each(function(){var h=hi(this,n),d=h.on;d!==t&&(e=(t=d).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(u)),h.on=e}),i===0&&o()})}var mj=0;function Ai(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function TS(){return++mj}var Si=mc.prototype;Ai.prototype={constructor:Ai,select:K6,selectAll:Q6,selectChild:Si.selectChild,selectChildren:Si.selectChildren,filter:W6,merge:H6,selection:J6,transition:pj,call:Si.call,nodes:Si.nodes,node:Si.node,size:Si.size,empty:Si.empty,each:Si.each,on:Y6,attr:L6,attrTween:I6,style:ij,styleTween:sj,text:uj,textTween:fj,remove:X6,tween:k6,delay:N6,duration:D6,ease:j6,easeVarying:q6,end:gj,[Symbol.iterator]:Si[Symbol.iterator]};function yj(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var xj={time:null,delay:0,duration:250,ease:yj};function Cj(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function kj(t){var e,r;t instanceof Ai?(e=t._id,t=t._name):(e=TS(),(r=xj).time=Jy(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,o=0;o<i;++o)for(var s=n[o],l=s.length,u,h=0;h<l;++h)(u=s[h])&&dd(u,t,e,h,s,r||Cj(u,e));return new Ai(n,this._parents,t,e)}mc.prototype.interrupt=y6;mc.prototype.transition=kj;const Em=Math.PI,Bm=2*Em,$o=1e-6,bj=Bm-$o;function _S(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function vj(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return _S;const r=10**e;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class wj{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?_S:vj(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,o,s){this._append`C${+e},${+r},${+n},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,r,n,i,o){if(e=+e,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=n-e,h=i-r,d=s-e,f=l-r,m=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(m>$o)if(!(Math.abs(f*u-h*d)>$o)||!o)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,x=i-l,C=u*u+h*h,k=p*p+x*x,b=Math.sqrt(C),w=Math.sqrt(m),S=o*Math.tan((Em-Math.acos((C+m-k)/(2*b*w)))/2),A=S/w,F=S/b;Math.abs(A-1)>$o&&this._append`L${e+A*d},${r+A*f}`,this._append`A${o},${o},0,0,${+(f*p>d*x)},${this._x1=e+F*u},${this._y1=r+F*h}`}}arc(e,r,n,i,o,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=e+l,d=r+u,f=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>$o||Math.abs(this._y1-d)>$o)&&this._append`L${h},${d}`,n&&(m<0&&(m=m%Bm+Bm),m>bj?this._append`A${n},${n},0,1,${f},${e-l},${r-u}A${n},${n},0,1,${f},${this._x1=h},${this._y1=d}`:m>$o&&this._append`A${n},${n},0,${+(m>=Em)},${f},${this._x1=e+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Oa(t){return function(){return t}}const nJ=Math.abs,iJ=Math.atan2,oJ=Math.cos,aJ=Math.max,sJ=Math.min,lJ=Math.sin,cJ=Math.sqrt,Xk=1e-12,rx=Math.PI,Kk=rx/2,uJ=2*rx;function hJ(t){return t>1?0:t<-1?rx:Math.acos(t)}function dJ(t){return t>=1?Kk:t<=-1?-Kk:Math.asin(t)}function Sj(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new wj(e)}function Tj(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function LS(t){this._context=t}LS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Hl(t){return new LS(t)}function _j(t){return t[0]}function Lj(t){return t[1]}function Ej(t,e){var r=Oa(!0),n=null,i=Hl,o=null,s=Sj(l);t=typeof t=="function"?t:t===void 0?_j:Oa(t),e=typeof e=="function"?e:e===void 0?Lj:Oa(e);function l(u){var h,d=(u=Tj(u)).length,f,m=!1,p;for(n==null&&(o=i(p=s())),h=0;h<=d;++h)!(h<d&&r(f=u[h],h,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+t(f,h,u),+e(f,h,u));if(p)return o=null,p+""||null}return l.x=function(u){return arguments.length?(t=typeof u=="function"?u:Oa(+u),l):t},l.y=function(u){return arguments.length?(e=typeof u=="function"?u:Oa(+u),l):e},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Oa(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(o=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=o=null:o=i(n=u),l):n},l}class ES{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function BS(t){return new ES(t,!0)}function AS(t){return new ES(t,!1)}function fo(){}function Mh(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function fd(t){this._context=t}fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Am(t){return new fd(t)}function FS(t){this._context=t}FS.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Mh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Bj(t){return new FS(t)}function IS(t){this._context=t}IS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Mh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Aj(t){return new IS(t)}function MS(t,e){this._basis=new fd(t),this._beta=e}MS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],o=t[r]-n,s=e[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+u*o),this._beta*e[l]+(1-this._beta)*(i+u*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Fj=(function t(e){function r(n){return e===1?new fd(n):new MS(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function Oh(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function nx(t,e){this._context=t,this._k=(1-e)/6}nx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oh(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Oh(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const OS=(function t(e){function r(n){return new nx(n,e)}return r.tension=function(n){return t(+n)},r})(0);function ix(t,e){this._context=t,this._k=(1-e)/6}ix.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Oh(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ij=(function t(e){function r(n){return new ix(n,e)}return r.tension=function(n){return t(+n)},r})(0);function ox(t,e){this._context=t,this._k=(1-e)/6}ox.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oh(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Mj=(function t(e){function r(n){return new ox(n,e)}return r.tension=function(n){return t(+n)},r})(0);function ax(t,e,r){var n=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Xk){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Xk){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/d,s=(s*h+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,i,o,s,t._x2,t._y2)}function NS(t,e){this._context=t,this._alpha=e}NS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ax(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const RS=(function t(e){function r(n){return e?new NS(n,e):new nx(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function PS(t,e){this._context=t,this._alpha=e}PS.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ax(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Oj=(function t(e){function r(n){return e?new PS(n,e):new ix(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function DS(t,e){this._context=t,this._alpha=e}DS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ax(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nj=(function t(e){function r(n){return e?new DS(n,e):new ox(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function $S(t){this._context=t}$S.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Rj(t){return new $S(t)}function Qk(t){return t<0?-1:1}function Zk(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),l=(o*i+s*n)/(n+i);return(Qk(o)+Qk(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function Jk(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Wp(t,e,r){var n=t._x0,i=t._y0,o=t._x1,s=t._y1,l=(o-n)/3;t._context.bezierCurveTo(n+l,i+l*e,o-l,s-l*r,o,s)}function Nh(t){this._context=t}Nh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wp(this,this._t0,Jk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Wp(this,Jk(this,r=Zk(this,t,e)),r);break;default:Wp(this,this._t0,r=Zk(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function jS(t){this._context=new zS(t)}(jS.prototype=Object.create(Nh.prototype)).point=function(t,e){Nh.prototype.point.call(this,e,t)};function zS(t){this._context=t}zS.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}};function qS(t){return new Nh(t)}function WS(t){return new jS(t)}function HS(t){this._context=t}HS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=tb(t),i=tb(e),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function tb(t){var e,r=t.length-1,n,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function US(t){return new HS(t)}function pd(t,e){this._context=t,this._t=e}pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function VS(t){return new pd(t,.5)}function YS(t){return new pd(t,0)}function GS(t){return new pd(t,1)}function Il(t,e,r){this.k=t,this.x=e,this.y=r}Il.prototype={constructor:Il,scale:function(t){return t===1?this:new Il(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Il(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Il.prototype;var Pj=T(t=>{var i;const{securityLevel:e}=ue();let r=Zt("body");if(e==="sandbox"){const s=((i=Zt(`#i${t}`).node())==null?void 0:i.contentDocument)??document;r=Zt(s.body)}return r.select(`#${t}`)},"selectSvgElement");function sx(t){return typeof t>"u"||t===null}T(sx,"isNothing");function XS(t){return typeof t=="object"&&t!==null}T(XS,"isObject");function KS(t){return Array.isArray(t)?t:sx(t)?[]:[t]}T(KS,"toArray");function QS(t,e){var r,n,i,o;if(e)for(o=Object.keys(e),r=0,n=o.length;r<n;r+=1)i=o[r],t[i]=e[i];return t}T(QS,"extend");function ZS(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}T(ZS,"repeat");function JS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}T(JS,"isNegativeZero");var Dj=sx,$j=XS,jj=KS,zj=ZS,qj=JS,Wj=QS,or={isNothing:Dj,isObject:$j,toArray:jj,repeat:zj,isNegativeZero:qj,extend:Wj};function lx(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
299
-
300
- `+t.mark.snippet),n+" "+r):n}T(lx,"formatError");function ps(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=lx(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}T(ps,"YAMLException$1");ps.prototype=Object.create(Error.prototype);ps.prototype.constructor=ps;ps.prototype.toString=T(function(e){return this.name+": "+lx(this,e)},"toString");var Zr=ps;function ch(t,e,r,n,i){var o="",s="",l=Math.floor(i/2)-1;return n-e>l&&(o=" ... ",e=n-l+o.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:o+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+o.length}}T(ch,"getLine");function uh(t,e){return or.repeat(" ",e-t.length)+t}T(uh,"padStart");function tT(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,s=-1;o=r.exec(t.buffer);)i.push(o.index),n.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,d=Math.min(t.line+e.linesAfter,i.length).toString().length,f=e.maxLength-(e.indent+d+3);for(u=1;u<=e.linesBefore&&!(s-u<0);u++)h=ch(t.buffer,n[s-u],i[s-u],t.position-(n[s]-n[s-u]),f),l=or.repeat(" ",e.indent)+uh((t.line-u+1).toString(),d)+" | "+h.str+`
301
- `+l;for(h=ch(t.buffer,n[s],i[s],t.position,f),l+=or.repeat(" ",e.indent)+uh((t.line+1).toString(),d)+" | "+h.str+`
302
- `,l+=or.repeat("-",e.indent+d+3+h.pos)+`^
303
- `,u=1;u<=e.linesAfter&&!(s+u>=i.length);u++)h=ch(t.buffer,n[s+u],i[s+u],t.position-(n[s]-n[s+u]),f),l+=or.repeat(" ",e.indent)+uh((t.line+u+1).toString(),d)+" | "+h.str+`
304
- `;return l.replace(/\n$/,"")}T(tT,"makeSnippet");var Hj=tT,Uj=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Vj=["scalar","sequence","mapping"];function eT(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}T(eT,"compileStyleAliases");function rT(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Uj.indexOf(r)===-1)throw new Zr('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=eT(e.styleAliases||null),Vj.indexOf(this.kind)===-1)throw new Zr('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}T(rT,"Type$1");var _r=rT;function Fm(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}T(Fm,"compileList");function nT(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(T(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}T(nT,"compileMap");function Rh(t){return this.extend(t)}T(Rh,"Schema$1");Rh.prototype.extend=T(function(e){var r=[],n=[];if(e instanceof _r)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Zr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof _r))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Zr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Zr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof _r))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Rh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Fm(i,"implicit"),i.compiledExplicit=Fm(i,"explicit"),i.compiledTypeMap=nT(i.compiledImplicit,i.compiledExplicit),i},"extend");var Yj=Rh,Gj=new _r("tag:yaml.org,2002:str",{kind:"scalar",construct:T(function(t){return t!==null?t:""},"construct")}),Xj=new _r("tag:yaml.org,2002:seq",{kind:"sequence",construct:T(function(t){return t!==null?t:[]},"construct")}),Kj=new _r("tag:yaml.org,2002:map",{kind:"mapping",construct:T(function(t){return t!==null?t:{}},"construct")}),Qj=new Yj({explicit:[Gj,Xj,Kj]});function iT(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}T(iT,"resolveYamlNull");function oT(){return null}T(oT,"constructYamlNull");function aT(t){return t===null}T(aT,"isNull");var Zj=new _r("tag:yaml.org,2002:null",{kind:"scalar",resolve:iT,construct:oT,predicate:aT,represent:{canonical:T(function(){return"~"},"canonical"),lowercase:T(function(){return"null"},"lowercase"),uppercase:T(function(){return"NULL"},"uppercase"),camelcase:T(function(){return"Null"},"camelcase"),empty:T(function(){return""},"empty")},defaultStyle:"lowercase"});function sT(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}T(sT,"resolveYamlBoolean");function lT(t){return t==="true"||t==="True"||t==="TRUE"}T(lT,"constructYamlBoolean");function cT(t){return Object.prototype.toString.call(t)==="[object Boolean]"}T(cT,"isBoolean");var Jj=new _r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:sT,construct:lT,predicate:cT,represent:{lowercase:T(function(t){return t?"true":"false"},"lowercase"),uppercase:T(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:T(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function uT(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}T(uT,"isHexCode");function hT(t){return 48<=t&&t<=55}T(hT,"isOctCode");function dT(t){return 48<=t&&t<=57}T(dT,"isDecCode");function fT(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!uT(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!hT(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!dT(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}T(fT,"resolveYamlInteger");function pT(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}T(pT,"constructYamlInteger");function gT(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!or.isNegativeZero(t)}T(gT,"isInteger");var t8=new _r("tag:yaml.org,2002:int",{kind:"scalar",resolve:fT,construct:pT,predicate:gT,represent:{binary:T(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:T(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:T(function(t){return t.toString(10)},"decimal"),hexadecimal:T(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),e8=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mT(t){return!(t===null||!e8.test(t)||t[t.length-1]==="_")}T(mT,"resolveYamlFloat");function yT(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}T(yT,"constructYamlFloat");var r8=/^[-+]?[0-9]+e/;function xT(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(or.isNegativeZero(t))return"-0.0";return r=t.toString(10),r8.test(r)?r.replace("e",".e"):r}T(xT,"representYamlFloat");function CT(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||or.isNegativeZero(t))}T(CT,"isFloat");var n8=new _r("tag:yaml.org,2002:float",{kind:"scalar",resolve:mT,construct:yT,predicate:CT,represent:xT,defaultStyle:"lowercase"}),kT=Qj.extend({implicit:[Zj,Jj,t8,n8]}),i8=kT,bT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function wT(t){return t===null?!1:bT.exec(t)!==null||vT.exec(t)!==null}T(wT,"resolveYamlTimestamp");function ST(t){var e,r,n,i,o,s,l,u=0,h=null,d,f,m;if(e=bT.exec(t),e===null&&(e=vT.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(o=+e[4],s=+e[5],l=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(d=+e[10],f=+(e[11]||0),h=(d*60+f)*6e4,e[9]==="-"&&(h=-h)),m=new Date(Date.UTC(r,n,i,o,s,l,u)),h&&m.setTime(m.getTime()-h),m}T(ST,"constructYamlTimestamp");function TT(t){return t.toISOString()}T(TT,"representYamlTimestamp");var o8=new _r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wT,construct:ST,instanceOf:Date,represent:TT});function _T(t){return t==="<<"||t===null}T(_T,"resolveYamlMerge");var a8=new _r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_T}),cx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
305
- \r`;function LT(t){if(t===null)return!1;var e,r,n=0,i=t.length,o=cx;for(r=0;r<i;r++)if(e=o.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}T(LT,"resolveYamlBinary");function ET(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=cx,s=0,l=[];for(e=0;e<i;e++)e%4===0&&e&&(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|o.indexOf(n.charAt(e));return r=i%4*6,r===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):r===18?(l.push(s>>10&255),l.push(s>>2&255)):r===12&&l.push(s>>4&255),new Uint8Array(l)}T(ET,"constructYamlBinary");function BT(t){var e="",r=0,n,i,o=t.length,s=cx;for(n=0;n<o;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=o%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}T(BT,"representYamlBinary");function AT(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}T(AT,"isBinary");var s8=new _r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:LT,construct:ET,predicate:AT,represent:BT}),l8=Object.prototype.hasOwnProperty,c8=Object.prototype.toString;function FT(t){if(t===null)return!0;var e=[],r,n,i,o,s,l=t;for(r=0,n=l.length;r<n;r+=1){if(i=l[r],s=!1,c8.call(i)!=="[object Object]")return!1;for(o in i)if(l8.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}T(FT,"resolveYamlOmap");function IT(t){return t!==null?t:[]}T(IT,"constructYamlOmap");var u8=new _r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:FT,construct:IT}),h8=Object.prototype.toString;function MT(t){if(t===null)return!0;var e,r,n,i,o,s=t;for(o=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(n=s[e],h8.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[e]=[i[0],n[i[0]]]}return!0}T(MT,"resolveYamlPairs");function OT(t){if(t===null)return[];var e,r,n,i,o,s=t;for(o=new Array(s.length),e=0,r=s.length;e<r;e+=1)n=s[e],i=Object.keys(n),o[e]=[i[0],n[i[0]]];return o}T(OT,"constructYamlPairs");var d8=new _r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:MT,construct:OT}),f8=Object.prototype.hasOwnProperty;function NT(t){if(t===null)return!0;var e,r=t;for(e in r)if(f8.call(r,e)&&r[e]!==null)return!1;return!0}T(NT,"resolveYamlSet");function RT(t){return t!==null?t:{}}T(RT,"constructYamlSet");var p8=new _r("tag:yaml.org,2002:set",{kind:"mapping",resolve:NT,construct:RT}),PT=i8.extend({implicit:[o8,a8],explicit:[s8,u8,d8,p8]}),po=Object.prototype.hasOwnProperty,Ph=1,DT=2,$T=3,Dh=4,Hp=1,g8=2,eb=3,m8=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y8=/[\x85\u2028\u2029]/,x8=/[,\[\]\{\}]/,jT=/^(?:!|!!|![a-z\-]+!)$/i,zT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Im(t){return Object.prototype.toString.call(t)}T(Im,"_class");function qn(t){return t===10||t===13}T(qn,"is_EOL");function ho(t){return t===9||t===32}T(ho,"is_WHITE_SPACE");function Nr(t){return t===9||t===32||t===10||t===13}T(Nr,"is_WS_OR_EOL");function Ho(t){return t===44||t===91||t===93||t===123||t===125}T(Ho,"is_FLOW_INDICATOR");function qT(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}T(qT,"fromHexCode");function WT(t){return t===120?2:t===117?4:t===85?8:0}T(WT,"escapedHexLen");function HT(t){return 48<=t&&t<=57?t-48:-1}T(HT,"fromDecimalCode");function Mm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
306
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}T(Mm,"simpleEscapeSequence");function UT(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}T(UT,"charFromCodepoint");function ux(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}T(ux,"setProperty");var VT=new Array(256),YT=new Array(256);for(Po=0;Po<256;Po++)VT[Po]=Mm(Po)?1:0,YT[Po]=Mm(Po);var Po;function GT(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||PT,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}T(GT,"State$1");function hx(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Hj(r),new Zr(e,r)}T(hx,"generateError");function Pt(t,e){throw hx(t,e)}T(Pt,"throwError");function ec(t,e){t.onWarning&&t.onWarning.call(null,hx(t,e))}T(ec,"throwWarning");var rb={YAML:T(function(e,r,n){var i,o,s;e.version!==null&&Pt(e,"duplication of %YAML directive"),n.length!==1&&Pt(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Pt(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Pt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&ec(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:T(function(e,r,n){var i,o;n.length!==2&&Pt(e,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],jT.test(i)||Pt(e,"ill-formed tag handle (first argument) of the TAG directive"),po.call(e.tagMap,i)&&Pt(e,'there is a previously declared suffix for "'+i+'" tag handle'),zT.test(o)||Pt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Pt(e,"tag prefix is malformed: "+o)}e.tagMap[i]=o},"handleTagDirective")};function Bi(t,e,r,n){var i,o,s,l;if(e<r){if(l=t.input.slice(e,r),n)for(i=0,o=l.length;i<o;i+=1)s=l.charCodeAt(i),s===9||32<=s&&s<=1114111||Pt(t,"expected valid JSON character");else m8.test(l)&&Pt(t,"the stream contains non-printable characters");t.result+=l}}T(Bi,"captureSegment");function Om(t,e,r,n){var i,o,s,l;for(or.isObject(r)||Pt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,l=i.length;s<l;s+=1)o=i[s],po.call(e,o)||(ux(e,o,r[o]),n[o]=!0)}T(Om,"mergeMappings");function Uo(t,e,r,n,i,o,s,l,u){var h,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),h=0,d=i.length;h<d;h+=1)Array.isArray(i[h])&&Pt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Im(i[h])==="[object Object]"&&(i[h]="[object Object]");if(typeof i=="object"&&Im(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(h=0,d=o.length;h<d;h+=1)Om(t,e,o[h],r);else Om(t,e,o,r);else!t.json&&!po.call(r,i)&&po.call(e,i)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=u||t.position,Pt(t,"duplicated mapping key")),ux(e,i,o),delete r[i];return e}T(Uo,"storeMappingPair");function gd(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Pt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}T(gd,"readLineBreak");function Ve(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;ho(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(qn(i))for(gd(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&ec(t,"deficient indentation"),n}T(Ve,"skipSeparationSpace");function xc(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Nr(r)))}T(xc,"testDocumentSeparator");function md(t,e){e===1?t.result+=" ":e>1&&(t.result+=or.repeat(`
307
- `,e-1))}T(md,"writeFoldedLines");function XT(t,e,r){var n,i,o,s,l,u,h,d,f=t.kind,m=t.result,p;if(p=t.input.charCodeAt(t.position),Nr(p)||Ho(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Nr(i)||r&&Ho(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,l=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Nr(i)||r&&Ho(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Nr(n))break}else{if(t.position===t.lineStart&&xc(t)||r&&Ho(p))break;if(qn(p))if(u=t.line,h=t.lineStart,d=t.lineIndent,Ve(t,!1,-1),t.lineIndent>=e){l=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=u,t.lineStart=h,t.lineIndent=d;break}}l&&(Bi(t,o,s,!1),md(t,t.line-u),o=s=t.position,l=!1),ho(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Bi(t,o,s,!1),t.result?!0:(t.kind=f,t.result=m,!1)}T(XT,"readPlainScalar");function KT(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Bi(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else qn(r)?(Bi(t,n,i,!0),md(t,Ve(t,!1,e)),n=i=t.position):t.position===t.lineStart&&xc(t)?Pt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Pt(t,"unexpected end of the stream within a single quoted scalar")}T(KT,"readSingleQuotedScalar");function QT(t,e){var r,n,i,o,s,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return Bi(t,r,t.position,!0),t.position++,!0;if(l===92){if(Bi(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),qn(l))Ve(t,!1,e);else if(l<256&&VT[l])t.result+=YT[l],t.position++;else if((s=WT(l))>0){for(i=s,o=0;i>0;i--)l=t.input.charCodeAt(++t.position),(s=qT(l))>=0?o=(o<<4)+s:Pt(t,"expected hexadecimal character");t.result+=UT(o),t.position++}else Pt(t,"unknown escape sequence");r=n=t.position}else qn(l)?(Bi(t,r,n,!0),md(t,Ve(t,!1,e)),r=n=t.position):t.position===t.lineStart&&xc(t)?Pt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Pt(t,"unexpected end of the stream within a double quoted scalar")}T(QT,"readDoubleQuotedScalar");function ZT(t,e){var r=!0,n,i,o,s=t.tag,l,u=t.anchor,h,d,f,m,p,x=Object.create(null),C,k,b,w;if(w=t.input.charCodeAt(t.position),w===91)d=93,p=!1,l=[];else if(w===123)d=125,p=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),w=t.input.charCodeAt(++t.position);w!==0;){if(Ve(t,!0,e),w=t.input.charCodeAt(t.position),w===d)return t.position++,t.tag=s,t.anchor=u,t.kind=p?"mapping":"sequence",t.result=l,!0;r?w===44&&Pt(t,"expected the node content, but found ','"):Pt(t,"missed comma between flow collection entries"),k=C=b=null,f=m=!1,w===63&&(h=t.input.charCodeAt(t.position+1),Nr(h)&&(f=m=!0,t.position++,Ve(t,!0,e))),n=t.line,i=t.lineStart,o=t.position,Zo(t,e,Ph,!1,!0),k=t.tag,C=t.result,Ve(t,!0,e),w=t.input.charCodeAt(t.position),(m||t.line===n)&&w===58&&(f=!0,w=t.input.charCodeAt(++t.position),Ve(t,!0,e),Zo(t,e,Ph,!1,!0),b=t.result),p?Uo(t,l,x,k,C,b,n,i,o):f?l.push(Uo(t,null,x,k,C,b,n,i,o)):l.push(C),Ve(t,!0,e),w=t.input.charCodeAt(t.position),w===44?(r=!0,w=t.input.charCodeAt(++t.position)):r=!1}Pt(t,"unexpected end of the stream within a flow collection")}T(ZT,"readFlowCollection");function JT(t,e){var r,n,i=Hp,o=!1,s=!1,l=e,u=0,h=!1,d,f;if(f=t.input.charCodeAt(t.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Hp===i?i=f===43?eb:g8:Pt(t,"repeat of a chomping mode identifier");else if((d=HT(f))>=0)d===0?Pt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Pt(t,"repeat of an indentation width identifier"):(l=e+d-1,s=!0);else break;if(ho(f)){do f=t.input.charCodeAt(++t.position);while(ho(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!qn(f)&&f!==0)}for(;f!==0;){for(gd(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<l)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>l&&(l=t.lineIndent),qn(f)){u++;continue}if(t.lineIndent<l){i===eb?t.result+=or.repeat(`
308
- `,o?1+u:u):i===Hp&&o&&(t.result+=`
309
- `);break}for(n?ho(f)?(h=!0,t.result+=or.repeat(`
310
- `,o?1+u:u)):h?(h=!1,t.result+=or.repeat(`
311
- `,u+1)):u===0?o&&(t.result+=" "):t.result+=or.repeat(`
312
- `,u):t.result+=or.repeat(`
313
- `,o?1+u:u),o=!0,s=!0,u=0,r=t.position;!qn(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Bi(t,r,t.position,!1)}return!0}T(JT,"readBlockScalar");function Nm(t,e){var r,n=t.tag,i=t.anchor,o=[],s,l=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Pt(t,"tab characters must not be used in indentation")),!(u!==45||(s=t.input.charCodeAt(t.position+1),!Nr(s))));){if(l=!0,t.position++,Ve(t,!0,-1)&&t.lineIndent<=e){o.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Zo(t,e,$T,!1,!0),o.push(t.result),Ve(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Pt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return l?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=o,!0):!1}T(Nm,"readBlockSequence");function t_(t,e,r){var n,i,o,s,l,u,h=t.tag,d=t.anchor,f={},m=Object.create(null),p=null,x=null,C=null,k=!1,b=!1,w;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),w=t.input.charCodeAt(t.position);w!==0;){if(!k&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Pt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),o=t.line,(w===63||w===58)&&Nr(n))w===63?(k&&(Uo(t,f,m,p,x,null,s,l,u),p=x=C=null),b=!0,k=!0,i=!0):k?(k=!1,i=!0):Pt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,w=n;else{if(s=t.line,l=t.lineStart,u=t.position,!Zo(t,r,DT,!1,!0))break;if(t.line===o){for(w=t.input.charCodeAt(t.position);ho(w);)w=t.input.charCodeAt(++t.position);if(w===58)w=t.input.charCodeAt(++t.position),Nr(w)||Pt(t,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Uo(t,f,m,p,x,null,s,l,u),p=x=C=null),b=!0,k=!1,i=!1,p=t.tag,x=t.result;else if(b)Pt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=d,!0}else if(b)Pt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=d,!0}if((t.line===o||t.lineIndent>e)&&(k&&(s=t.line,l=t.lineStart,u=t.position),Zo(t,e,Dh,!0,i)&&(k?x=t.result:C=t.result),k||(Uo(t,f,m,p,x,C,s,l,u),p=x=C=null),Ve(t,!0,-1),w=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&w!==0)Pt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return k&&Uo(t,f,m,p,x,null,s,l,u),b&&(t.tag=h,t.anchor=d,t.kind="mapping",t.result=f),b}T(t_,"readBlockMapping");function e_(t){var e,r=!1,n=!1,i,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&Pt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):Pt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Nr(s);)s===33&&(n?Pt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),jT.test(i)||Pt(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),x8.test(o)&&Pt(t,"tag suffix cannot contain flow indicator characters")}o&&!zT.test(o)&&Pt(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Pt(t,"tag name is malformed: "+o)}return r?t.tag=o:po.call(t.tagMap,i)?t.tag=t.tagMap[i]+o:i==="!"?t.tag="!"+o:i==="!!"?t.tag="tag:yaml.org,2002:"+o:Pt(t,'undeclared tag handle "'+i+'"'),!0}T(e_,"readTagProperty");function r_(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Pt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Nr(r)&&!Ho(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Pt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}T(r_,"readAnchorProperty");function n_(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Nr(n)&&!Ho(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Pt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),po.call(t.anchorMap,r)||Pt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ve(t,!0,-1),!0}T(n_,"readAlias");function Zo(t,e,r,n,i){var o,s,l,u=1,h=!1,d=!1,f,m,p,x,C,k;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=l=Dh===r||$T===r,n&&Ve(t,!0,-1)&&(h=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;e_(t)||r_(t);)Ve(t,!0,-1)?(h=!0,l=o,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):l=!1;if(l&&(l=h||i),(u===1||Dh===r)&&(Ph===r||DT===r?C=e:C=e+1,k=t.position-t.lineStart,u===1?l&&(Nm(t,k)||t_(t,k,C))||ZT(t,C)?d=!0:(s&&JT(t,C)||KT(t,C)||QT(t,C)?d=!0:n_(t)?(d=!0,(t.tag!==null||t.anchor!==null)&&Pt(t,"alias node should not have any properties")):XT(t,C,Ph===r)&&(d=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(d=l&&Nm(t,k))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Pt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,m=t.implicitTypes.length;f<m;f+=1)if(x=t.implicitTypes[f],x.resolve(t.result)){t.result=x.construct(t.result),t.tag=x.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(po.call(t.typeMap[t.kind||"fallback"],t.tag))x=t.typeMap[t.kind||"fallback"][t.tag];else for(x=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,m=p.length;f<m;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){x=p[f];break}x||Pt(t,"unknown tag !<"+t.tag+">"),t.result!==null&&x.kind!==t.kind&&Pt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+x.kind+'", not "'+t.kind+'"'),x.resolve(t.result,t.tag)?(t.result=x.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Pt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}T(Zo,"composeNode");function i_(t){var e=t.position,r,n,i,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Ve(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Nr(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Pt(t,"directive name must not be less than one character in length");s!==0;){for(;ho(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!qn(s));break}if(qn(s))break;for(r=t.position;s!==0&&!Nr(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&gd(t),po.call(rb,n)?rb[n](t,n,i):ec(t,'unknown document directive "'+n+'"')}if(Ve(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ve(t,!0,-1)):o&&Pt(t,"directives end mark is expected"),Zo(t,t.lineIndent-1,Dh,!1,!0),Ve(t,!0,-1),t.checkLineBreaks&&y8.test(t.input.slice(e,t.position))&&ec(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&xc(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ve(t,!0,-1));return}if(t.position<t.length-1)Pt(t,"end of the stream or a document separator is expected");else return}T(i_,"readDocument");function dx(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
314
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new GT(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Pt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)i_(r);return r.documents}T(dx,"loadDocuments");function C8(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=dx(t,r);if(typeof e!="function")return n;for(var i=0,o=n.length;i<o;i+=1)e(n[i])}T(C8,"loadAll$1");function o_(t,e){var r=dx(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Zr("expected a single document in the stream, but found more")}}T(o_,"load$1");var k8=o_,b8={load:k8},a_=Object.prototype.toString,s_=Object.prototype.hasOwnProperty,fx=65279,v8=9,rc=10,w8=13,S8=32,T8=33,_8=34,Rm=35,L8=37,E8=38,B8=39,A8=42,l_=44,F8=45,$h=58,I8=61,M8=62,O8=63,N8=64,c_=91,u_=93,R8=96,h_=123,P8=124,d_=125,Er={};Er[0]="\\0";Er[7]="\\a";Er[8]="\\b";Er[9]="\\t";Er[10]="\\n";Er[11]="\\v";Er[12]="\\f";Er[13]="\\r";Er[27]="\\e";Er[34]='\\"';Er[92]="\\\\";Er[133]="\\N";Er[160]="\\_";Er[8232]="\\L";Er[8233]="\\P";var D8=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],$8=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function f_(t,e){var r,n,i,o,s,l,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,o=n.length;i<o;i+=1)s=n[i],l=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=t.compiledTypeMap.fallback[s],u&&s_.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[s]=l;return r}T(f_,"compileStyleMap");function p_(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+or.repeat("0",n-e.length)+e}T(p_,"encodeHex");var j8=1,nc=2;function g_(t){this.schema=t.schema||PT,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=or.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=f_(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?nc:j8,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}T(g_,"State");function Pm(t,e){for(var r=or.repeat(" ",e),n=0,i=-1,o="",s,l=t.length;n<l;)i=t.indexOf(`
315
- `,n),i===-1?(s=t.slice(n),n=l):(s=t.slice(n,i+1),n=i+1),s.length&&s!==`
316
- `&&(o+=r),o+=s;return o}T(Pm,"indentString");function jh(t,e){return`
317
- `+or.repeat(" ",t.indent*e)}T(jh,"generateNextLine");function m_(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}T(m_,"testImplicitResolving");function ic(t){return t===S8||t===v8}T(ic,"isWhitespace");function gs(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==fx||65536<=t&&t<=1114111}T(gs,"isPrintable");function Dm(t){return gs(t)&&t!==fx&&t!==w8&&t!==rc}T(Dm,"isNsCharOrWhitespace");function $m(t,e,r){var n=Dm(t),i=n&&!ic(t);return(r?n:n&&t!==l_&&t!==c_&&t!==u_&&t!==h_&&t!==d_)&&t!==Rm&&!(e===$h&&!i)||Dm(e)&&!ic(e)&&t===Rm||e===$h&&i}T($m,"isPlainSafe");function y_(t){return gs(t)&&t!==fx&&!ic(t)&&t!==F8&&t!==O8&&t!==$h&&t!==l_&&t!==c_&&t!==u_&&t!==h_&&t!==d_&&t!==Rm&&t!==E8&&t!==A8&&t!==T8&&t!==P8&&t!==I8&&t!==M8&&t!==B8&&t!==_8&&t!==L8&&t!==N8&&t!==R8}T(y_,"isPlainSafeFirst");function x_(t){return!ic(t)&&t!==$h}T(x_,"isPlainSafeLast");function Wa(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}T(Wa,"codePointAt");function px(t){var e=/^\n* /;return e.test(t)}T(px,"needIndentIndicator");var C_=1,jm=2,k_=3,b_=4,ja=5;function v_(t,e,r,n,i,o,s,l){var u,h=0,d=null,f=!1,m=!1,p=n!==-1,x=-1,C=y_(Wa(t,0))&&x_(Wa(t,t.length-1));if(e||s)for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=Wa(t,u),!gs(h))return ja;C=C&&$m(h,d,l),d=h}else{for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=Wa(t,u),h===rc)f=!0,p&&(m=m||u-x-1>n&&t[x+1]!==" ",x=u);else if(!gs(h))return ja;C=C&&$m(h,d,l),d=h}m=m||p&&u-x-1>n&&t[x+1]!==" "}return!f&&!m?C&&!s&&!i(t)?C_:o===nc?ja:jm:r>9&&px(t)?ja:s?o===nc?ja:jm:m?b_:k_}T(v_,"chooseScalarStyle");function w_(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===nc?'""':"''";if(!t.noCompatMode&&(D8.indexOf(e)!==-1||$8.test(e)))return t.quotingType===nc?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=n||t.flowLevel>-1&&r>=t.flowLevel;function u(h){return m_(t,h)}switch(T(u,"testAmbiguity"),v_(e,l,t.indent,s,u,t.quotingType,t.forceQuotes&&!n,i)){case C_:return e;case jm:return"'"+e.replace(/'/g,"''")+"'";case k_:return"|"+zm(e,t.indent)+qm(Pm(e,o));case b_:return">"+zm(e,t.indent)+qm(Pm(S_(e,s),o));case ja:return'"'+T_(e)+'"';default:throw new Zr("impossible error: invalid scalar style")}})()}T(w_,"writeScalar");function zm(t,e){var r=px(t)?String(e):"",n=t[t.length-1]===`
318
- `,i=n&&(t[t.length-2]===`
319
- `||t===`
320
- `),o=i?"+":n?"":"-";return r+o+`
321
- `}T(zm,"blockHeader");function qm(t){return t[t.length-1]===`
322
- `?t.slice(0,-1):t}T(qm,"dropEndingNewline");function S_(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var h=t.indexOf(`
323
- `);return h=h!==-1?h:t.length,r.lastIndex=h,Wm(t.slice(0,h),e)})(),i=t[0]===`
324
- `||t[0]===" ",o,s;s=r.exec(t);){var l=s[1],u=s[2];o=u[0]===" ",n+=l+(!i&&!o&&u!==""?`
325
- `:"")+Wm(u,e),i=o}return n}T(S_,"foldString");function Wm(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,o,s=0,l=0,u="";n=r.exec(t);)l=n.index,l-i>e&&(o=s>i?s:l,u+=`
326
- `+t.slice(i,o),i=o+1),s=l;return u+=`
327
- `,t.length-i>e&&s>i?u+=t.slice(i,s)+`
328
- `+t.slice(s+1):u+=t.slice(i),u.slice(1)}T(Wm,"foldLine");function T_(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Wa(t,i),n=Er[r],!n&&gs(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||p_(r);return e}T(T_,"escapeString");function __(t,e,r){var n="",i=t.tag,o,s,l;for(o=0,s=r.length;o<s;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(si(t,e,l,!1,!1)||typeof l>"u"&&si(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}T(__,"writeFlowSequence");function Hm(t,e,r,n){var i="",o=t.tag,s,l,u;for(s=0,l=r.length;s<l;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(si(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&si(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=jh(t,e)),t.dump&&rc===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}T(Hm,"writeBlockSequence");function L_(t,e,r){var n="",i=t.tag,o=Object.keys(r),s,l,u,h,d;for(s=0,l=o.length;s<l;s+=1)d="",n!==""&&(d+=", "),t.condenseFlow&&(d+='"'),u=o[s],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)),si(t,e,u,!1,!1)&&(t.dump.length>1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),si(t,e,h,!1,!1)&&(d+=t.dump,n+=d));t.tag=i,t.dump="{"+n+"}"}T(L_,"writeFlowMapping");function E_(t,e,r,n){var i="",o=t.tag,s=Object.keys(r),l,u,h,d,f,m;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(l=0,u=s.length;l<u;l+=1)m="",(!n||i!=="")&&(m+=jh(t,e)),h=s[l],d=r[h],t.replacer&&(d=t.replacer.call(r,h,d)),si(t,e+1,h,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&rc===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,f&&(m+=jh(t,e)),si(t,e+1,d,!0,f)&&(t.dump&&rc===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,i+=m));t.tag=o,t.dump=i||"{}"}T(E_,"writeBlockMapping");function Um(t,e,r){var n,i,o,s,l,u;for(i=r?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(l=i[o],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof e=="object"&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(r?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(u=t.styleMap[l.tag]||l.defaultStyle,a_.call(l.represent)==="[object Function]")n=l.represent(e,u);else if(s_.call(l.represent,u))n=l.represent[u](e,u);else throw new Zr("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}T(Um,"detectType");function si(t,e,r,n,i,o,s){t.tag=null,t.dump=r,Um(t,r,!1)||Um(t,r,!0);var l=a_.call(t.dump),u=n,h;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=l==="[object Object]"||l==="[object Array]",f,m;if(d&&(f=t.duplicates.indexOf(r),m=f!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&e>0)&&(i=!1),m&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(d&&m&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),l==="[object Object]")n&&Object.keys(t.dump).length!==0?(E_(t,e,t.dump,i),m&&(t.dump="&ref_"+f+t.dump)):(L_(t,e,t.dump),m&&(t.dump="&ref_"+f+" "+t.dump));else if(l==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?Hm(t,e-1,t.dump,i):Hm(t,e,t.dump,i),m&&(t.dump="&ref_"+f+t.dump)):(__(t,e,t.dump),m&&(t.dump="&ref_"+f+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&w_(t,t.dump,e,o,u);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}T(si,"writeNode");function B_(t,e){var r=[],n=[],i,o;for(zh(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}T(B_,"getDuplicateReferences");function zh(t,e,r){var n,i,o;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)zh(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)zh(t[n[i]],e,r)}T(zh,"inspectNode");function z8(t,e){e=e||{};var r=new g_(e);r.noRefs||B_(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),si(r,0,n,!0,!0)?r.dump+`
329
- `:""}T(z8,"dump$1");function q8(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}T(q8,"renamed");var W8=kT,H8=b8.load;/*! Bundled license information:
330
-
331
- js-yaml/dist/js-yaml.mjs:
332
- (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
333
- */var bl=T((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),Sr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},nb={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Ml(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Fe(t),e=Fe(e);const[r,n]=[t.x,t.y],[i,o]=[e.x,e.y],s=i-r,l=o-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}T(Ml,"calculateDeltaAndAngle");var Fe=T(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),U8=T(t=>({x:T(function(e,r,n){let i=0;const o=Fe(n[0]).x<Fe(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Sr,t.arrowTypeStart)){const{angle:p,deltaX:x}=Ml(n[0],n[1]);i=Sr[t.arrowTypeStart]*Math.cos(p)*(x>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,t.arrowTypeEnd)){const{angle:p,deltaX:x}=Ml(n[n.length-1],n[n.length-2]);i=Sr[t.arrowTypeEnd]*Math.cos(p)*(x>=0?1:-1)}const s=Math.abs(Fe(e).x-Fe(n[n.length-1]).x),l=Math.abs(Fe(e).y-Fe(n[n.length-1]).y),u=Math.abs(Fe(e).x-Fe(n[0]).x),h=Math.abs(Fe(e).y-Fe(n[0]).y),d=Sr[t.arrowTypeStart],f=Sr[t.arrowTypeEnd],m=1;if(s<f&&s>0&&l<f){let p=f+m-s;p*=o==="right"?-1:1,i-=p}if(u<d&&u>0&&h<d){let p=d+m-u;p*=o==="right"?-1:1,i+=p}return Fe(e).x+i},"x"),y:T(function(e,r,n){let i=0;const o=Fe(n[0]).y<Fe(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Sr,t.arrowTypeStart)){const{angle:p,deltaY:x}=Ml(n[0],n[1]);i=Sr[t.arrowTypeStart]*Math.abs(Math.sin(p))*(x>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,t.arrowTypeEnd)){const{angle:p,deltaY:x}=Ml(n[n.length-1],n[n.length-2]);i=Sr[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(x>=0?1:-1)}const s=Math.abs(Fe(e).y-Fe(n[n.length-1]).y),l=Math.abs(Fe(e).x-Fe(n[n.length-1]).x),u=Math.abs(Fe(e).y-Fe(n[0]).y),h=Math.abs(Fe(e).x-Fe(n[0]).x),d=Sr[t.arrowTypeStart],f=Sr[t.arrowTypeEnd],m=1;if(s<f&&s>0&&l<f){let p=f+m-s;p*=o==="up"?-1:1,i-=p}if(u<d&&u>0&&h<d){let p=d+m-u;p*=o==="up"?-1:1,i+=p}return Fe(e).y+i},"y")}),"getLineFunctionsWithOffset"),Wu={},nr={},ib;function V8(){return ib||(ib=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.BLANK_URL=nr.relativeFirstCharacters=nr.whitespaceEscapeCharsRegex=nr.urlSchemeRegex=nr.ctrlCharactersRegex=nr.htmlCtrlEntityRegex=nr.htmlEntitiesRegex=nr.invalidProtocolRegex=void 0,nr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,nr.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,nr.htmlCtrlEntityRegex=/&(newline|tab);/gi,nr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,nr.urlSchemeRegex=/^.+(:|&colon;)/gim,nr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,nr.relativeFirstCharacters=[".","/"],nr.BLANK_URL="about:blank"),nr}var ob;function Y8(){if(ob)return Wu;ob=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.sanitizeUrl=o;var t=V8();function e(s){return t.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var l=s.replace(t.ctrlCharactersRegex,"");return l.replace(t.htmlEntitiesRegex,function(u,h){return String.fromCharCode(h)})}function n(s){return URL.canParse(s)}function i(s){try{return decodeURIComponent(s)}catch{return s}}function o(s){if(!s)return t.BLANK_URL;var l,u=i(s.trim());do u=r(u).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),u=i(u),l=u.match(t.ctrlCharactersRegex)||u.match(t.htmlEntitiesRegex)||u.match(t.htmlCtrlEntityRegex)||u.match(t.whitespaceEscapeCharsRegex);while(l&&l.length>0);var h=u;if(!h)return t.BLANK_URL;if(e(h))return h;var d=h.trimStart(),f=d.match(t.urlSchemeRegex);if(!f)return h;var m=f[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(m))return t.BLANK_URL;var p=d.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return p;if(m==="http:"||m==="https:"){if(!n(p))return t.BLANK_URL;var x=new URL(p);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return p}return Wu}var G8=Y8(),A_=typeof global=="object"&&global&&global.Object===Object&&global,X8=typeof self=="object"&&self&&self.Object===Object&&self,di=A_||X8||Function("return this")(),qh=di.Symbol,F_=Object.prototype,K8=F_.hasOwnProperty,Q8=F_.toString,vl=qh?qh.toStringTag:void 0;function Z8(t){var e=K8.call(t,vl),r=t[vl];try{t[vl]=void 0;var n=!0}catch{}var i=Q8.call(t);return n&&(e?t[vl]=r:delete t[vl]),i}var J8=Object.prototype,tz=J8.toString;function ez(t){return tz.call(t)}var rz="[object Null]",nz="[object Undefined]",ab=qh?qh.toStringTag:void 0;function ks(t){return t==null?t===void 0?nz:rz:ab&&ab in Object(t)?Z8(t):ez(t)}function ia(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var iz="[object AsyncFunction]",oz="[object Function]",az="[object GeneratorFunction]",sz="[object Proxy]";function gx(t){if(!ia(t))return!1;var e=ks(t);return e==oz||e==az||e==iz||e==sz}var Up=di["__core-js_shared__"],sb=(function(){var t=/[^.]+$/.exec(Up&&Up.keys&&Up.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function lz(t){return!!sb&&sb in t}var cz=Function.prototype,uz=cz.toString;function oa(t){if(t!=null){try{return uz.call(t)}catch{}try{return t+""}catch{}}return""}var hz=/[\\^$.*+?()[\]{}|]/g,dz=/^\[object .+?Constructor\]$/,fz=Function.prototype,pz=Object.prototype,gz=fz.toString,mz=pz.hasOwnProperty,yz=RegExp("^"+gz.call(mz).replace(hz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xz(t){if(!ia(t)||lz(t))return!1;var e=gx(t)?yz:dz;return e.test(oa(t))}function Cz(t,e){return t==null?void 0:t[e]}function aa(t,e){var r=Cz(t,e);return xz(r)?r:void 0}var oc=aa(Object,"create");function kz(){this.__data__=oc?oc(null):{},this.size=0}function bz(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vz="__lodash_hash_undefined__",wz=Object.prototype,Sz=wz.hasOwnProperty;function Tz(t){var e=this.__data__;if(oc){var r=e[t];return r===vz?void 0:r}return Sz.call(e,t)?e[t]:void 0}var _z=Object.prototype,Lz=_z.hasOwnProperty;function Ez(t){var e=this.__data__;return oc?e[t]!==void 0:Lz.call(e,t)}var Bz="__lodash_hash_undefined__";function Az(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=oc&&e===void 0?Bz:e,this}function Jo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Jo.prototype.clear=kz;Jo.prototype.delete=bz;Jo.prototype.get=Tz;Jo.prototype.has=Ez;Jo.prototype.set=Az;function Fz(){this.__data__=[],this.size=0}function yd(t,e){return t===e||t!==t&&e!==e}function xd(t,e){for(var r=t.length;r--;)if(yd(t[r][0],e))return r;return-1}var Iz=Array.prototype,Mz=Iz.splice;function Oz(t){var e=this.__data__,r=xd(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Mz.call(e,r,1),--this.size,!0}function Nz(t){var e=this.__data__,r=xd(e,t);return r<0?void 0:e[r][1]}function Rz(t){return xd(this.__data__,t)>-1}function Pz(t,e){var r=this.__data__,n=xd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Oi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Oi.prototype.clear=Fz;Oi.prototype.delete=Oz;Oi.prototype.get=Nz;Oi.prototype.has=Rz;Oi.prototype.set=Pz;var ac=aa(di,"Map");function Dz(){this.size=0,this.__data__={hash:new Jo,map:new(ac||Oi),string:new Jo}}function $z(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Cd(t,e){var r=t.__data__;return $z(e)?r[typeof e=="string"?"string":"hash"]:r.map}function jz(t){var e=Cd(this,t).delete(t);return this.size-=e?1:0,e}function zz(t){return Cd(this,t).get(t)}function qz(t){return Cd(this,t).has(t)}function Wz(t,e){var r=Cd(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function xo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}xo.prototype.clear=Dz;xo.prototype.delete=jz;xo.prototype.get=zz;xo.prototype.has=qz;xo.prototype.set=Wz;var Hz="Expected a function";function Cc(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Hz);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Cc.Cache||xo),r}Cc.Cache=xo;function Uz(){this.__data__=new Oi,this.size=0}function Vz(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Yz(t){return this.__data__.get(t)}function Gz(t){return this.__data__.has(t)}var Xz=200;function Kz(t,e){var r=this.__data__;if(r instanceof Oi){var n=r.__data__;if(!ac||n.length<Xz-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new xo(n)}return r.set(t,e),this.size=r.size,this}function bs(t){var e=this.__data__=new Oi(t);this.size=e.size}bs.prototype.clear=Uz;bs.prototype.delete=Vz;bs.prototype.get=Yz;bs.prototype.has=Gz;bs.prototype.set=Kz;var Wh=(function(){try{var t=aa(Object,"defineProperty");return t({},"",{}),t}catch{}})();function mx(t,e,r){e=="__proto__"&&Wh?Wh(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Vm(t,e,r){(r!==void 0&&!yd(t[e],r)||r===void 0&&!(e in t))&&mx(t,e,r)}function Qz(t){return function(e,r,n){for(var i=-1,o=Object(e),s=n(e),l=s.length;l--;){var u=s[++i];if(r(o[u],u,o)===!1)break}return e}}var Zz=Qz(),I_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lb=I_&&typeof module=="object"&&module&&!module.nodeType&&module,Jz=lb&&lb.exports===I_,cb=Jz?di.Buffer:void 0,ub=cb?cb.allocUnsafe:void 0;function t9(t,e){if(e)return t.slice();var r=t.length,n=ub?ub(r):new t.constructor(r);return t.copy(n),n}var hb=di.Uint8Array;function e9(t){var e=new t.constructor(t.byteLength);return new hb(e).set(new hb(t)),e}function r9(t,e){var r=e?e9(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function n9(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var db=Object.create,i9=(function(){function t(){}return function(e){if(!ia(e))return{};if(db)return db(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function M_(t,e){return function(r){return t(e(r))}}var O_=M_(Object.getPrototypeOf,Object),o9=Object.prototype;function kd(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||o9;return t===r}function a9(t){return typeof t.constructor=="function"&&!kd(t)?i9(O_(t)):{}}function kc(t){return t!=null&&typeof t=="object"}var s9="[object Arguments]";function fb(t){return kc(t)&&ks(t)==s9}var N_=Object.prototype,l9=N_.hasOwnProperty,c9=N_.propertyIsEnumerable,Hh=fb((function(){return arguments})())?fb:function(t){return kc(t)&&l9.call(t,"callee")&&!c9.call(t,"callee")},Uh=Array.isArray,u9=9007199254740991;function R_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=u9}function bd(t){return t!=null&&R_(t.length)&&!gx(t)}function h9(t){return kc(t)&&bd(t)}function d9(){return!1}var P_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pb=P_&&typeof module=="object"&&module&&!module.nodeType&&module,f9=pb&&pb.exports===P_,gb=f9?di.Buffer:void 0,p9=gb?gb.isBuffer:void 0,yx=p9||d9,g9="[object Object]",m9=Function.prototype,y9=Object.prototype,D_=m9.toString,x9=y9.hasOwnProperty,C9=D_.call(Object);function k9(t){if(!kc(t)||ks(t)!=g9)return!1;var e=O_(t);if(e===null)return!0;var r=x9.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&D_.call(r)==C9}var b9="[object Arguments]",v9="[object Array]",w9="[object Boolean]",S9="[object Date]",T9="[object Error]",_9="[object Function]",L9="[object Map]",E9="[object Number]",B9="[object Object]",A9="[object RegExp]",F9="[object Set]",I9="[object String]",M9="[object WeakMap]",O9="[object ArrayBuffer]",N9="[object DataView]",R9="[object Float32Array]",P9="[object Float64Array]",D9="[object Int8Array]",$9="[object Int16Array]",j9="[object Int32Array]",z9="[object Uint8Array]",q9="[object Uint8ClampedArray]",W9="[object Uint16Array]",H9="[object Uint32Array]",Ee={};Ee[R9]=Ee[P9]=Ee[D9]=Ee[$9]=Ee[j9]=Ee[z9]=Ee[q9]=Ee[W9]=Ee[H9]=!0;Ee[b9]=Ee[v9]=Ee[O9]=Ee[w9]=Ee[N9]=Ee[S9]=Ee[T9]=Ee[_9]=Ee[L9]=Ee[E9]=Ee[B9]=Ee[A9]=Ee[F9]=Ee[I9]=Ee[M9]=!1;function U9(t){return kc(t)&&R_(t.length)&&!!Ee[ks(t)]}function V9(t){return function(e){return t(e)}}var $_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ul=$_&&typeof module=="object"&&module&&!module.nodeType&&module,Y9=Ul&&Ul.exports===$_,Vp=Y9&&A_.process,mb=(function(){try{var t=Ul&&Ul.require&&Ul.require("util").types;return t||Vp&&Vp.binding&&Vp.binding("util")}catch{}})(),yb=mb&&mb.isTypedArray,xx=yb?V9(yb):U9;function Ym(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var G9=Object.prototype,X9=G9.hasOwnProperty;function K9(t,e,r){var n=t[e];(!(X9.call(t,e)&&yd(n,r))||r===void 0&&!(e in t))&&mx(t,e,r)}function Q9(t,e,r,n){var i=!r;r||(r={});for(var o=-1,s=e.length;++o<s;){var l=e[o],u=void 0;u===void 0&&(u=t[l]),i?mx(r,l,u):K9(r,l,u)}return r}function Z9(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var J9=9007199254740991,t7=/^(?:0|[1-9]\d*)$/;function j_(t,e){var r=typeof t;return e=e??J9,!!e&&(r=="number"||r!="symbol"&&t7.test(t))&&t>-1&&t%1==0&&t<e}var e7=Object.prototype,r7=e7.hasOwnProperty;function n7(t,e){var r=Uh(t),n=!r&&Hh(t),i=!r&&!n&&yx(t),o=!r&&!n&&!i&&xx(t),s=r||n||i||o,l=s?Z9(t.length,String):[],u=l.length;for(var h in t)(e||r7.call(t,h))&&!(s&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||j_(h,u)))&&l.push(h);return l}function i7(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var o7=Object.prototype,a7=o7.hasOwnProperty;function s7(t){if(!ia(t))return i7(t);var e=kd(t),r=[];for(var n in t)n=="constructor"&&(e||!a7.call(t,n))||r.push(n);return r}function z_(t){return bd(t)?n7(t,!0):s7(t)}function l7(t){return Q9(t,z_(t))}function c7(t,e,r,n,i,o,s){var l=Ym(t,r),u=Ym(e,r),h=s.get(u);if(h){Vm(t,r,h);return}var d=o?o(l,u,r+"",t,e,s):void 0,f=d===void 0;if(f){var m=Uh(u),p=!m&&yx(u),x=!m&&!p&&xx(u);d=u,m||p||x?Uh(l)?d=l:h9(l)?d=n9(l):p?(f=!1,d=t9(u,!0)):x?(f=!1,d=r9(u,!0)):d=[]:k9(u)||Hh(u)?(d=l,Hh(l)?d=l7(l):(!ia(l)||gx(l))&&(d=a9(u))):f=!1}f&&(s.set(u,d),i(d,u,n,o,s),s.delete(u)),Vm(t,r,d)}function q_(t,e,r,n,i){t!==e&&Zz(e,function(o,s){if(i||(i=new bs),ia(o))c7(t,e,s,r,q_,n,i);else{var l=n?n(Ym(t,s),o,s+"",t,e,i):void 0;l===void 0&&(l=o),Vm(t,s,l)}},z_)}function W_(t){return t}function u7(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var xb=Math.max;function h7(t,e,r){return e=xb(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=xb(n.length-e,0),s=Array(o);++i<o;)s[i]=n[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=n[i];return l[e]=r(s),u7(t,this,l)}}function d7(t){return function(){return t}}var f7=Wh?function(t,e){return Wh(t,"toString",{configurable:!0,enumerable:!1,value:d7(e),writable:!0})}:W_,p7=800,g7=16,m7=Date.now;function y7(t){var e=0,r=0;return function(){var n=m7(),i=g7-(n-r);if(r=n,i>0){if(++e>=p7)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var x7=y7(f7);function C7(t,e){return x7(h7(t,e,W_),t+"")}function k7(t,e,r){if(!ia(r))return!1;var n=typeof e;return(n=="number"?bd(r)&&j_(e,r.length):n=="string"&&e in r)?yd(r[e],t):!1}function b7(t){return C7(function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,s&&k7(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++n<i;){var l=r[n];l&&t(e,l,n,o)}return e})}var v7=b7(function(t,e,r){q_(t,e,r)}),w7="​",S7={curveBasis:Am,curveBasisClosed:Bj,curveBasisOpen:Aj,curveBumpX:BS,curveBumpY:AS,curveBundle:Fj,curveCardinalClosed:Ij,curveCardinalOpen:Mj,curveCardinal:OS,curveCatmullRomClosed:Oj,curveCatmullRomOpen:Nj,curveCatmullRom:RS,curveLinear:Hl,curveLinearClosed:Rj,curveMonotoneX:qS,curveMonotoneY:WS,curveNatural:US,curveStep:VS,curveStepAfter:GS,curveStepBefore:YS},T7=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_7=T(function(t,e){const r=H_(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(l=>l.args);vh(s),n=ir(n,[...s])}else n=r.args;if(!n)return;let i=Wy(t,e);const o="config";return n[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),H_=T(function(t,e=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${T7.source})(?=[}][%]{2}).*
334
- `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),ht.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let o;const s=[];for(;(o=ql.exec(t))!==null;)if(o.index===ql.lastIndex&&ql.lastIndex++,o&&!e||e&&((r=o[1])!=null&&r.match(e))||e&&((n=o[2])!=null&&n.match(e))){const l=o[1]?o[1]:o[2],u=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;s.push({type:l,args:u})}return s.length===0?{type:t,args:null}:s.length===1?s[0]:s}catch(i){return ht.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),L7=T(function(t){return t.replace(ql,"")},"removeDirectives"),E7=T(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function Cx(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return S7[r]??e}T(Cx,"interpolateToCurve");function U_(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?G8.sanitizeUrl(r):r}T(U_,"formatUrl");var B7=T((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let o=window;for(let s=0;s<n;s++)if(o=o[r[s]],!o){ht.error(`Function name: ${t} not found in window`);return}o[i](...e)},"runFunc");function kx(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}T(kx,"distance");function V_(t){let e,r=0;t.forEach(i=>{r+=kx(i,e),e=i});const n=r/2;return bx(t,n)}T(V_,"traverseEdge");function Y_(t){return t.length===1?t[0]:V_(t)}T(Y_,"calcLabelPosition");var Cb=T((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),bx=T((t,e)=>{let r,n=e;for(const i of t){if(r){const o=kx(i,r);if(o===0)return r;if(o<n)n-=o;else{const s=n/o;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:Cb((1-s)*r.x+s*i.x,5),y:Cb((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),A7=T((t,e,r)=>{ht.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=bx(e,25),o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*o+(e[0].x+i.x)/2,l.y=-Math.cos(s)*o+(e[0].y+i.y)/2,l},"calcCardinalityPosition");function G_(t,e,r){const n=structuredClone(r);ht.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,o=bx(n,i),s=10+t*.5,l=Math.atan2(n[0].y-o.y,n[0].x-o.x),u={x:0,y:0};return e==="start_left"?(u.x=Math.sin(l+Math.PI)*s+(n[0].x+o.x)/2,u.y=-Math.cos(l+Math.PI)*s+(n[0].y+o.y)/2):e==="end_right"?(u.x=Math.sin(l-Math.PI)*s+(n[0].x+o.x)/2-5,u.y=-Math.cos(l-Math.PI)*s+(n[0].y+o.y)/2-5):e==="end_left"?(u.x=Math.sin(l)*s+(n[0].x+o.x)/2-5,u.y=-Math.cos(l)*s+(n[0].y+o.y)/2-5):(u.x=Math.sin(l)*s+(n[0].x+o.x)/2,u.y=-Math.cos(l)*s+(n[0].y+o.y)/2),u}T(G_,"calcTerminalLabelPosition");function X_(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}T(X_,"getStylesFromArray");var kb=0,F7=T(()=>(kb++,"id-"+Math.random().toString(36).substr(2,12)+"-"+kb),"generateId");function K_(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}T(K_,"makeRandomHex");var I7=T(t=>K_(t.length),"random"),M7=T(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),O7=T(function(t,e){const r=e.text.replace(gc.lineBreakRegex," "),[,n]=vd(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const o=i.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(r),i},"drawSimpleText"),N7=Cc((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),gc.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let o="";return n.forEach((s,l)=>{const u=Fi(`${s} `,r),h=Fi(o,r);if(u>e){const{hyphenatedStrings:m,remainingWord:p}=R7(s,e,"-",r);i.push(o,...m),o=p}else h+u>=e?(i.push(o),o=s):o=[o,s].filter(Boolean).join(" ");l+1===n.length&&i.push(o)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),R7=Cc((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],o=[];let s="";return i.forEach((l,u)=>{const h=`${s}${l}`;if(Fi(h,n)>=e){const f=u+1,m=i.length===f,p=`${h}${r}`;o.push(m?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Q_(t,e){return vx(t,e).height}T(Q_,"calculateTextHeight");function Fi(t,e){return vx(t,e).width}T(Fi,"calculateTextWidth");var vx=Cc((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,o]=vd(r),s=["sans-serif",n],l=t.split(gc.lineBreakRegex),u=[],h=Zt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const m of s){let p=0;const x={width:0,height:0,lineHeight:0};for(const C of l){const k=M7();k.text=C||w7;const b=O7(d,k).style("font-size",o).style("font-weight",i).style("font-family",m),w=(b._groups||b)[0][0].getBBox();if(w.width===0&&w.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,w.width)),p=Math.round(w.height),x.height+=p,x.lineHeight=Math.round(Math.max(x.lineHeight,p))}u.push(x)}d.remove();const f=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),ls,P7=(ls=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},T(ls,"InitIDGenerator"),ls),Hu,D7=T(function(t){return Hu=Hu||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Hu.innerHTML=t,unescape(Hu.textContent)},"entityDecode");function wx(t){return"str"in t}T(wx,"isDetailedError");var $7=T((t,e,r,n)=>{var o;if(!n)return;const i=(o=t.node())==null?void 0:o.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),vd=T(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function Sx(t,e){return v7({},t,e)}T(Sx,"cleanAndMerge");var jn={assignWithDepth:ir,wrapLabel:N7,calculateTextHeight:Q_,calculateTextWidth:Fi,calculateTextDimensions:vx,cleanAndMerge:Sx,detectInit:_7,detectDirective:H_,isSubstringInArray:E7,interpolateToCurve:Cx,calcLabelPosition:Y_,calcCardinalityPosition:A7,calcTerminalLabelPosition:G_,formatUrl:U_,getStylesFromArray:X_,generateId:F7,random:I7,runFunc:B7,entityDecode:D7,insertTitle:$7,isLabelCoordinateInPath:Z_,parseFontSize:vd,InitIDGenerator:P7},j7=T(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),ta=T(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),fJ=T((t,e,{counter:r=0,prefix:n,suffix:i},o)=>o||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function ur(t){return t??null}T(ur,"handleUndefinedAttr");function Z_(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return i.includes(r.toString())||i.includes(n.toString())}T(Z_,"isLabelCoordinateInPath");var Tx=T(({flowchart:t})=>{var i,o;const e=((i=t==null?void 0:t.subGraphTitleMargin)==null?void 0:i.top)??0,r=((o=t==null?void 0:t.subGraphTitleMargin)==null?void 0:o.bottom)??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");async function J_(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(o=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){const l=ue().fontSize?ue().fontSize:window.getComputedStyle(document.body).fontSize,u=5,[h=qw.fontSize]=vd(l),d=h*u+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";o(i)}T(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}T(J_,"configureLabelImages");var z7=T(t=>{const{handDrawnSeed:e}=ue();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),vs=T(t=>{const e=q7([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),q7=T(t=>{const e=new Map;return t.forEach(r=>{const[n,i]=r.split(":");e.set(n.trim(),i==null?void 0:i.trim())}),e},"styles2Map"),tL=T(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),Mt=T(t=>{const{stylesArray:e}=vs(t),r=[],n=[],i=[],o=[];return e.forEach(s=>{const l=s[0];tL(l)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),l.includes("stroke")&&i.push(s.join(":")+" !important"),l==="fill"&&o.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:o}},"styles2String"),It=T((t,e)=>{var u;const{themeVariables:r,handDrawnSeed:n}=ue(),{nodeBorder:i,mainBkg:o}=r,{stylesMap:s}=vs(t);return Object.assign({roughness:.7,fill:s.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:((u=s.get("stroke-width"))==null?void 0:u.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:W7(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),W7=T(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const i=isNaN(e[0])?0:e[0];return[i,i]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const H7=Object.freeze({left:0,top:0,width:16,height:16}),Vh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),eL=Object.freeze({...H7,...Vh}),U7=Object.freeze({...eL,body:"",hidden:!1}),V7=Object.freeze({width:null,height:null}),Y7=Object.freeze({...V7,...Vh}),G7=(t,e,r,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return Yp(h)?h:null}const o=i[0],s=o.split("-");if(s.length>1){const l={provider:n,prefix:s.shift(),name:s.join("-")};return Yp(l)?l:null}if(r&&n===""){const l={provider:n,prefix:"",name:o};return Yp(l,r)?l:null}return null},Yp=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function X7(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function bb(t,e){const r=X7(t,e);for(const n in U7)n in Vh?n in t&&!(n in r)&&(r[n]=Vh[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function K7(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function o(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const l=n[s]&&n[s].parent,u=l&&o(l);u&&(i[s]=[l].concat(u))}return i[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function vb(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let o={};function s(l){o=bb(n[l]||i[l],o)}return s(e),r.forEach(s),bb(t,o)}function Q7(t,e){if(t.icons[e])return vb(t,e,[]);const r=K7(t,[e])[e];return r?vb(t,e,r):null}const Z7=/(-?[0-9.]*[0-9]+[0-9.]*)/g,J7=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wb(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(Z7);if(n===null||!n.length)return t;const i=[];let o=n.shift(),s=J7.test(o);for(;;){if(s){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*e*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");s=!s}}function tq(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),o=t.indexOf("</"+e);if(i===-1||o===-1)break;const s=t.indexOf(">",o);if(s===-1)break;r+=t.slice(i+1,o).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function eq(t,e){return t?"<defs>"+t+"</defs>"+e:e}function rq(t,e,r){const n=tq(t);return eq(n.defs,e+n.content+r)}const nq=t=>t==="unset"||t==="undefined"||t==="none";function iq(t,e){const r={...eL,...t},n={...Y7,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(C=>{const k=[],b=C.hFlip,w=C.vFlip;let S=C.rotate;b?w?S+=2:(k.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),k.push("scale(-1 1)"),i.top=i.left=0):w&&(k.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),k.push("scale(1 -1)"),i.top=i.left=0);let A;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:A=i.height/2+i.top,k.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:k.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:A=i.width/2+i.left,k.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}S%2===1&&(i.left!==i.top&&(A=i.left,i.left=i.top,i.top=A),i.width!==i.height&&(A=i.width,i.width=i.height,i.height=A)),k.length&&(o=rq(o,'<g transform="'+k.join(" ")+'">',"</g>"))});const s=n.width,l=n.height,u=i.width,h=i.height;let d,f;s===null?(f=l===null?"1em":l==="auto"?h:l,d=wb(f,u/h)):(d=s==="auto"?u:s,f=l===null?wb(d,h/u):l==="auto"?h:l);const m={},p=(C,k)=>{nq(k)||(m[C]=k.toString())};p("width",d),p("height",f);const x=[i.left,i.top,u,h];return m.viewBox=x.join(" "),{attributes:m,viewBox:x,body:o}}const oq=/\sid="(\S+)"/g,Sb=new Map;function aq(t){t=t.replace(/[0-9]+$/,"")||"a";const e=Sb.get(t)||0;return Sb.set(t,e+1),e?`${t}${e}`:t}function sq(t){const e=[];let r;for(;r=oq.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const o=aq(i),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function lq(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function _x(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sa=_x();function rL(t){sa=t}var Vl={exec:()=>null};function he(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Rr.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,e)};return n}var cq=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},uq=/^(?:[ \t]*(?:\n|$))+/,hq=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lx=/(?:[*+-]|\d{1,9}[.)])/,nL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,iL=he(nL).replace(/bull/g,Lx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pq=he(nL).replace(/bull/g,Lx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ex=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gq=/^[^\n]+/,Bx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,mq=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Bx).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yq=he(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lx).getRegex(),wd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ax=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xq=he("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ax).replace("tag",wd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oL=he(Ex).replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex(),Cq=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oL).getRegex(),Fx={blockquote:Cq,code:hq,def:mq,fences:dq,heading:fq,hr:bc,html:xq,lheading:iL,list:yq,newline:uq,paragraph:oL,table:Vl,text:gq},Tb=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex(),kq={...Fx,lheading:pq,table:Tb,paragraph:he(Ex).replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Tb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex()},bq={...Fx,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ax).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(Ex).replace("hr",bc).replace("heading",` *#{1,6} *[^
335
- ]`).replace("lheading",iL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vq=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wq=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,aL=/^( {2,}|\\)\n(?!\s*$)/,Sq=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sd=/[\p{P}\p{S}]/u,Ix=/[\s\p{P}\p{S}]/u,sL=/[^\s\p{P}\p{S}]/u,Tq=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ix).getRegex(),lL=/(?!~)[\p{P}\p{S}]/u,_q=/(?!~)[\s\p{P}\p{S}]/u,Lq=/(?:[^\s\p{P}\p{S}]|~)/u,Eq=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cq?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),cL=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Bq=he(cL,"u").replace(/punct/g,Sd).getRegex(),Aq=he(cL,"u").replace(/punct/g,lL).getRegex(),uL="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Fq=he(uL,"gu").replace(/notPunctSpace/g,sL).replace(/punctSpace/g,Ix).replace(/punct/g,Sd).getRegex(),Iq=he(uL,"gu").replace(/notPunctSpace/g,Lq).replace(/punctSpace/g,_q).replace(/punct/g,lL).getRegex(),Mq=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,sL).replace(/punctSpace/g,Ix).replace(/punct/g,Sd).getRegex(),Oq=he(/\\(punct)/,"gu").replace(/punct/g,Sd).getRegex(),Nq=he(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rq=he(Ax).replace("(?:-->|$)","-->").getRegex(),Pq=he("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Dq=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Yh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hL=he(/^!?\[(label)\]\[(ref)\]/).replace("label",Yh).replace("ref",Bx).getRegex(),dL=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",Bx).getRegex(),$q=he("reflink|nolink(?!\\()","g").replace("reflink",hL).replace("nolink",dL).getRegex(),_b=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Mx={_backpedal:Vl,anyPunctuation:Oq,autolink:Nq,blockSkip:Eq,br:aL,code:wq,del:Vl,emStrongLDelim:Bq,emStrongRDelimAst:Fq,emStrongRDelimUnd:Mq,escape:vq,link:Dq,nolink:dL,punctuation:Tq,reflink:hL,reflinkSearch:$q,tag:Pq,text:Sq,url:Vl},jq={...Mx,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",Yh).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yh).getRegex()},Gm={...Mx,emStrongRDelimAst:Iq,emStrongLDelim:Aq,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_b).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_b).getRegex()},zq={...Gm,br:he(aL).replace("{2,}","*").getRegex(),text:he(Gm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Uu={normal:Fx,gfm:kq,pedantic:bq},wl={normal:Mx,gfm:Gm,breaks:zq,pedantic:jq},qq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Lb=t=>qq[t];function ei(t,e){if(e){if(Rr.escapeTest.test(t))return t.replace(Rr.escapeReplace,Lb)}else if(Rr.escapeTestNoEncode.test(t))return t.replace(Rr.escapeReplaceNoEncode,Lb);return t}function Eb(t){try{t=encodeURI(t).replace(Rr.percentDecode,"%")}catch{return null}return t}function Bb(t,e){var o;let r=t.replace(Rr.findPipe,(s,l,u)=>{let h=!1,d=l;for(;--d>=0&&u[d]==="\\";)h=!h;return h?"|":" |"}),n=r.split(Rr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((o=n.at(-1))!=null&&o.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Rr.slashPipe,"|");return n}function Sl(t,e,r){let n=t.length;if(n===0)return"";let i=0;for(;i<n&&t.charAt(n-i-1)===e;)i++;return t.slice(0,n-i)}function Wq(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function Ab(t,e,r,n,i){let o=e.href,s=e.title||null,l=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:s,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}function Hq(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let i=n[1];return e.split(`
336
- `).map(o=>{let s=o.match(r.other.beginningSpace);if(s===null)return o;let[l]=s;return l.length>=i.length?o.slice(i.length):o}).join(`
337
- `)}var Gh=class{constructor(e){ge(this,"options");ge(this,"rules");ge(this,"lexer");this.options=e||sa}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Sl(n,`
338
- `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=Hq(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Sl(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:Sl(r[0],`
339
- `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=Sl(r[0],`
340
- `).split(`
341
- `),i="",o="",s=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let d=u.join(`
342
- `),f=d.replace(this.rules.other.blockquoteSetextReplace,`
343
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
344
- ${d}`:d,o=o?`${o}
345
- ${f}`:f;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,s,!0),this.lexer.state.top=m,n.length===0)break;let p=s.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let x=p,C=x.raw+`
346
- `+n.join(`
347
- `),k=this.blockquote(C);s[s.length-1]=k,i=i.substring(0,i.length-x.raw.length)+k.raw,o=o.substring(0,o.length-x.text.length)+k.text;break}else if((p==null?void 0:p.type)==="list"){let x=p,C=x.raw+`
348
- `+n.join(`
349
- `),k=this.list(C);s[s.length-1]=k,i=i.substring(0,i.length-p.raw.length)+k.raw,o=o.substring(0,o.length-x.raw.length)+k.raw,n=C.substring(s.at(-1).raw.length).split(`
350
- `);continue}}return{type:"blockquote",raw:i,tokens:s,text:o}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,o={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=this.rules.other.listItemRegex(n),l=!1;for(;e;){let h=!1,d="",f="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;d=r[0],e=e.substring(d.length);let m=r[2].split(`
351
- `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),p=e.split(`
352
- `,1)[0],x=!m.trim(),C=0;if(this.options.pedantic?(C=2,f=m.trimStart()):x?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,f=m.slice(C),C+=r[1].length),x&&this.rules.other.blankLine.test(p)&&(d+=p+`
353
- `,e=e.substring(p.length+1),h=!0),!h){let w=this.rules.other.nextBulletRegex(C),S=this.rules.other.hrRegex(C),A=this.rules.other.fencesBeginRegex(C),F=this.rules.other.headingBeginRegex(C),E=this.rules.other.htmlBeginRegex(C);for(;e;){let B=e.split(`
354
- `,1)[0],P;if(p=B,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),P=p):P=p.replace(this.rules.other.tabCharGlobal," "),A.test(p)||F.test(p)||E.test(p)||w.test(p)||S.test(p))break;if(P.search(this.rules.other.nonSpaceChar)>=C||!p.trim())f+=`
355
- `+P.slice(C);else{if(x||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(m)||F.test(m)||S.test(m))break;f+=`
356
- `+p}!x&&!p.trim()&&(x=!0),d+=B+`
357
- `,e=e.substring(B.length+1),m=P.slice(C)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0));let k=null,b;this.options.gfm&&(k=this.rules.other.listIsTask.exec(f),k&&(b=k[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!k,checked:b,loose:!1,text:f,tokens:[]}),o.raw+=d}let u=o.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h=0;h<o.items.length;h++)if(this.lexer.state.top=!1,o.items[h].tokens=this.lexer.blockTokens(o.items[h].text,[]),!o.loose){let d=o.items[h].tokens.filter(m=>m.type==="space"),f=d.length>0&&d.some(m=>this.rules.other.anyLine.test(m.raw));o.loose=f}if(o.loose)for(let h=0;h<o.items.length;h++)o.items[h].loose=!0;return o}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:o}}}table(e){var l;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Bb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
358
- `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?s.align.push("right"):this.rules.other.tableAlignCenter.test(u)?s.align.push("center"):this.rules.other.tableAlignLeft.test(u)?s.align.push("left"):s.align.push(null);for(let u=0;u<n.length;u++)s.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:s.align[u]});for(let u of o)s.rows.push(Bb(u,s.header.length).map((h,d)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:s.align[d]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
359
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=Sl(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Wq(r[2],"()");if(s===-2)return;if(s>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let i=r[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],o=s[3])}else o=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Ab(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[i.toLowerCase()];if(!o){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Ab(n,o,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...i[0]].length-1,s,l,u=o,h=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+o);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(l=[...s].length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){h+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+h);let f=[...i[0]][0].length,m=e.slice(0,o+i.index+f+l);if(Math.min(o,l)%2){let x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}let p=m.slice(2,-2);return{type:"strong",raw:m,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let r;if(r=this.rules.inline.url.exec(e)){let i,o;if(r[2]==="@")i=r[0],o="mailto:"+i;else{let s;do s=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(s!==r[0]);i=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Pn=class Xm{constructor(e){ge(this,"tokens");ge(this,"options");ge(this,"state");ge(this,"tokenizer");ge(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||sa,this.options.tokenizer=this.options.tokenizer||new Gh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rr,block:Uu.normal,inline:wl.normal};this.options.pedantic?(r.block=Uu.pedantic,r.inline=wl.pedantic):this.options.gfm&&(r.block=Uu.gfm,this.options.breaks?r.inline=wl.breaks:r.inline=wl.gfm),this.tokenizer.rules=r}static get rules(){return{block:Uu,inline:wl}}static lex(e,r){return new Xm(r).lex(e)}static lexInline(e,r){return new Xm(r).inlineTokens(e)}lex(e){e=e.replace(Rr.carriageReturn,`
360
- `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){var i,o,s;for(this.options.pedantic&&(e=e.replace(Rr.tabCharGlobal," ").replace(Rr.spaceLine,""));e;){let l;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(h=>(l=h.call({lexer:this},e,r))?(e=e.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let h=r.at(-1);l.raw.length===1&&h!==void 0?h.raw+=`
361
- `:r.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
362
- `)?"":`
363
- `)+l.raw,h.text+=`
364
- `+l.text,this.inlineQueue.at(-1).src=h.text):r.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
365
- `)?"":`
366
- `)+l.raw,h.text+=`
367
- `+l.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),r.push(l);continue}let u=e;if((s=this.options.extensions)!=null&&s.startBlock){let h=1/0,d=e.slice(1),f;this.options.extensions.startBlock.forEach(m=>{f=m.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(u=e.substring(0,h+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){let h=r.at(-1);n&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
368
- `)?"":`
369
- `)+l.raw,h.text+=`
370
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(l),n=u.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
371
- `)?"":`
372
- `)+l.raw,h.text+=`
373
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(l);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var u,h,d,f,m;let n=e,i=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)p.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)o=i[2]?i[2].length:0,n=n.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((h=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:h.call({lexer:this},n))??n;let s=!1,l="";for(;e;){s||(l=""),s=!1;let p;if((f=(d=this.options.extensions)==null?void 0:d.inline)!=null&&f.some(C=>(p=C.call({lexer:this},e,r))?(e=e.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let C=r.at(-1);p.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=p.raw,C.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(e,n,l)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(e)){e=e.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),r.push(p);continue}let x=e;if((m=this.options.extensions)!=null&&m.startInline){let C=1/0,k=e.slice(1),b;this.options.extensions.startInline.forEach(w=>{b=w.call({lexer:this},k),typeof b=="number"&&b>=0&&(C=Math.min(C,b))}),C<1/0&&C>=0&&(x=e.substring(0,C+1))}if(p=this.tokenizer.inlineText(x)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),s=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=p.raw,C.text+=p.text):r.push(p);continue}if(e){let C="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},Xh=class{constructor(e){ge(this,"options");ge(this,"parser");this.options=e||sa}space(e){return""}code({text:e,lang:r,escaped:n}){var s;let i=(s=(r||"").match(Rr.notSpaceStart))==null?void 0:s[0],o=e.replace(Rr.endingNewline,"")+`
374
- `;return i?'<pre><code class="language-'+ei(i)+'">'+(n?o:ei(o,!0))+`</code></pre>
375
- `:"<pre><code>"+(n?o:ei(o,!0))+`</code></pre>
376
- `}blockquote({tokens:e}){return`<blockquote>
377
- ${this.parser.parse(e)}</blockquote>
378
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
379
- `}hr(e){return`<hr>
380
- `}list(e){let r=e.ordered,n=e.start,i="";for(let l=0;l<e.items.length;l++){let u=e.items[l];i+=this.listitem(u)}let o=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+o+s+`>
381
- `+i+"</"+o+`>
382
- `}listitem(e){var n;let r="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+ei(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
383
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
384
- `}table(e){let r="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);r+=this.tablerow({text:n});let i="";for(let o=0;o<e.rows.length;o++){let s=e.rows[o];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
385
- <thead>
386
- `+r+`</thead>
387
- `+i+`</table>
388
- `}tablerow({text:e}){return`<tr>
389
- ${e}</tr>
390
- `}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
391
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ei(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),o=Eb(e);if(o===null)return i;e=o;let s='<a href="'+e+'"';return r&&(s+=' title="'+ei(r)+'"'),s+=">"+i+"</a>",s}image({href:e,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let o=Eb(e);if(o===null)return ei(n);e=o;let s=`<img src="${e}" alt="${n}"`;return r&&(s+=` title="${ei(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ei(e.text)}},Ox=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Dn=class Km{constructor(e){ge(this,"options");ge(this,"renderer");ge(this,"textRenderer");this.options=e||sa,this.options.renderer=this.options.renderer||new Xh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ox}static parse(e,r){return new Km(r).parse(e)}static parseInline(e,r){return new Km(r).parseInline(e)}parse(e,r=!0){var i,o;let n="";for(let s=0;s<e.length;s++){let l=e[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let h=l,d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){n+=d||"";continue}}let u=l;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let h=u,d=this.renderer.text(h);for(;s+1<e.length&&e[s+1].type==="text";)h=e[++s],d+=`
392
- `+this.renderer.text(h);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):n+=d;continue}default:{let h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}parseInline(e,r=this.renderer){var i,o;let n="";for(let s=0;s<e.length;s++){let l=e[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=h||"";continue}}let u=l;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}},Ju,Ol=(Ju=class{constructor(e){ge(this,"options");ge(this,"block");this.options=e||sa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Pn.lex:Pn.lexInline}provideParser(){return this.block?Dn.parse:Dn.parseInline}},ge(Ju,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ge(Ju,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ju),Uq=class{constructor(...e){ge(this,"defaults",_x());ge(this,"options",this.setOptions);ge(this,"parse",this.parseMarkdown(!0));ge(this,"parseInline",this.parseMarkdown(!1));ge(this,"Parser",Dn);ge(this,"Renderer",Xh);ge(this,"TextRenderer",Ox);ge(this,"Lexer",Pn);ge(this,"Tokenizer",Gh);ge(this,"Hooks",Ol);this.use(...e)}walkTokens(e,r){var i,o;let n=[];for(let s of e)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let l=s;for(let u of l.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of l.rows)for(let h of u)n=n.concat(this.walkTokens(h.tokens,r));break}case"list":{let l=s;n=n.concat(this.walkTokens(l.items,r));break}default:{let l=s;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{let h=l[u].flat(1/0);n=n.concat(this.walkTokens(h,r))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=r.renderers[o.name];s?r.renderers[o.name]=function(...l){let u=o.renderer.apply(this,l);return u===!1&&(u=s.apply(this,l)),u}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[o.level];s?s.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),i.extensions=r),n.renderer){let o=this.defaults.renderer||new Xh(this.defaults);for(let s in n.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,u=n.renderer[l],h=o[l];o[l]=(...d)=>{let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f||""}}i.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Gh(this.defaults);for(let s in n.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,u=n.tokenizer[l],h=o[l];o[l]=(...d)=>{let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f}}i.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Ol;for(let s in n.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let l=s,u=n.hooks[l],h=o[l];Ol.passThroughHooks.has(s)?o[l]=d=>{if(this.defaults.async&&Ol.passThroughHooksRespectAsync.has(s))return(async()=>{let m=await u.call(o,d);return h.call(o,m)})();let f=u.call(o,d);return h.call(o,f)}:o[l]=(...d)=>{if(this.defaults.async)return(async()=>{let m=await u.apply(o,d);return m===!1&&(m=await h.apply(o,d)),m})();let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f}}i.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(s.call(this,l)),o&&(u=u.concat(o.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Pn.lex(e,r??this.defaults)}parser(e,r){return Dn.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let i={...n},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let l=o.hooks?await o.hooks.preprocess(r):r,u=await(o.hooks?await o.hooks.provideLexer():e?Pn.lex:Pn.lexInline)(l,o),h=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(h,o.walkTokens));let d=await(o.hooks?await o.hooks.provideParser():e?Dn.parse:Dn.parseInline)(h,o);return o.hooks?await o.hooks.postprocess(d):d})().catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let l=(o.hooks?o.hooks.provideLexer():e?Pn.lex:Pn.lexInline)(r,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():e?Dn.parse:Dn.parseInline)(l,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(l){return s(l)}}}onError(e,r){return n=>{if(n.message+=`
393
- Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+ei(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},ea=new Uq;function fe(t,e){return ea.parse(t,e)}fe.options=fe.setOptions=function(t){return ea.setOptions(t),fe.defaults=ea.defaults,rL(fe.defaults),fe};fe.getDefaults=_x;fe.defaults=sa;fe.use=function(...t){return ea.use(...t),fe.defaults=ea.defaults,rL(fe.defaults),fe};fe.walkTokens=function(t,e){return ea.walkTokens(t,e)};fe.parseInline=ea.parseInline;fe.Parser=Dn;fe.parser=Dn.parse;fe.Renderer=Xh;fe.TextRenderer=Ox;fe.Lexer=Pn;fe.lexer=Pn.lex;fe.Tokenizer=Gh;fe.Hooks=Ol;fe.parse=fe;fe.options;fe.setOptions;fe.use;fe.walkTokens;fe.parseInline;Dn.parse;Pn.lex;function fL(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(l,u){var h=u.match(/\n([\t ]+|(?!\s).)/g);return h?l.concat(h.map(function(d){var f,m;return(m=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&m!==void 0?m:0})):l},[]);if(i.length){var o=new RegExp(`
394
- [ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(l){return l.replace(o,`
395
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return e.forEach(function(l,u){var h=s.match(/(?:^|\n)( *)$/),d=h?h[1]:"",f=l;typeof l=="string"&&l.includes(`
396
- `)&&(f=String(l).split(`
397
- `).map(function(m,p){return p===0?m:""+d+m}).join(`
398
- `)),s+=f+n[u+1]}),s}var Vq={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Qm=new Map,pL=new Map,Yq=T(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ht.debug("Registering icon pack:",e.name),"loader"in e)pL.set(e.name,e.loader);else if("icons"in e)Qm.set(e.name,e.icons);else throw ht.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),gL=T(async(t,e)=>{const r=G7(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=Qm.get(n);if(!i){const s=pL.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},Qm.set(n,i)}catch(l){throw ht.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=Q7(i,r.name);if(!o)throw new Error(`Icon not found: ${t}`);return o},"getRegisteredIconData"),Gq=T(async t=>{try{return await gL(t),!0}catch{return!1}},"isIconAvailable"),vc=T(async(t,e,r)=>{let n;try{n=await gL(t,e==null?void 0:e.fallbackPrefix)}catch(s){ht.error(s),n=Vq}const i=iq(n,e),o=lq(sq(i.body),{...i.attributes,...r});return Hn(o,Pe())},"getIconSVG");function mL(t,{markdownAutoWrap:e}){const n=t.replace(/<br\/>/g,`
399
- `).replace(/\n{2,}/g,`
400
- `);return fL(n)}T(mL,"preprocessMarkdown");function yL(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(e=>{var r;return((r=e.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(n=>({content:n,type:"normal"})))??[]})}T(yL,"nonMarkdownToLines");function xL(t,e={}){const r=mL(t,e),n=fe.lexer(r),i=[[]];let o=0;function s(l,u="normal"){l.type==="text"?l.text.split(`
401
- `).forEach((d,f)=>{f!==0&&(o++,i.push([])),d.split(" ").forEach(m=>{m=m.replace(/&#39;/g,"'"),m&&i[o].push({content:m,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[o].push({content:l.text,type:"normal"})}return T(s,"processNode"),n.forEach(l=>{var u;l.type==="paragraph"?(u=l.tokens)==null||u.forEach(h=>{s(h)}):l.type==="html"?i[o].push({content:l.text,type:"normal"}):i[o].push({content:l.raw,type:"normal"})}),i}T(xL,"markdownToLines");function CL(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}T(CL,"nonMarkdownToHTML");function kL(t,{markdownAutoWrap:e}={}){const r=fe.lexer(t);function n(i){var o,s,l;return i.type==="text"?e===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${(o=i.tokens)==null?void 0:o.map(n).join("")}</strong>`:i.type==="em"?`<em>${(s=i.tokens)==null?void 0:s.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${(l=i.tokens)==null?void 0:l.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(ht.warn(`Unsupported markdown: ${i.type}`),i.raw)}return T(n,"output"),r.map(n).join("")}T(kL,"markdownToHTML");function bL(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}T(bL,"splitTextToChars");function vL(t,e){const r=bL(e.content);return Nx(t,[],r,e.type)}T(vL,"splitWordToFitWidth");function Nx(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...o]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?Nx(t,s,o,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}T(Nx,"splitWordToFitWidthRecursion");function wL(t,e){if(t.some(({content:r})=>r.includes(`
402
- `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Kh(t,e)}T(wL,"splitLineToFitWidth");function Kh(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());const o=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(o),e(s))return Kh(t,e,r,s);if(n.length>0)r.push(n),t.unshift(o);else if(o.content){const[l,u]=vL(e,o);r.push([l]),u.content&&t.unshift(u)}return Kh(t,e,r)}T(Kh,"splitLineToFitWidthRecursion");function Zm(t,e){e&&t.attr("style",e)}T(Zm,"applyStyle");var Fb=16384;async function SL(t,e,r,n,i=!1,o=Pe()){const s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,Fb)}px`),s.attr("height",`${Math.min(10*r,Fb)}px`);const l=s.append("xhtml:div"),u=Kl(e.label)?await Qw(e.label.replace(gc.lineBreakRegex,`
403
- `),o):Hn(e.label,o),h=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(u),Zm(d,e.labelStyle),d.attr("class",`${h} ${n}`),Zm(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),s.node()}T(SL,"addHtmlSpan");function Td(t,e,r,n=!1){const i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}T(Td,"createTspan");function TL(t,e,r){const n=t.append("text"),i=Td(n,1,e);_d(i,r);const o=i.node().getComputedTextLength();return n.remove(),o}T(TL,"computeWidthOfText");function Xq(t,e,r){var s;const n=t.append("text"),i=Td(n,1,e);_d(i,[{content:r,type:"normal"}]);const o=(s=i.node())==null?void 0:s.getBoundingClientRect();return o&&n.remove(),o}T(Xq,"computeDimensionOfText");function _L(t,e,r,n=!1,i=!1){const s=e.append("g"),l=s.insert("rect").attr("class","background").attr("style","stroke: none"),u=s.append("text").attr("y","-10.1");i&&u.attr("text-anchor","middle");let h=0;for(const d of r){const f=T(p=>TL(s,1.1,p)<=t,"checkWidth"),m=f(d)?[d]:wL(d,f);for(const p of m){const x=Td(u,h,1.1,i);_d(x,p),h++}}if(n){const d=u.node().getBBox(),f=2;return l.attr("x",d.x-f).attr("y",d.y-f).attr("width",d.width+2*f).attr("height",d.height+2*f),s.node()}else return u.node()}T(_L,"createFormattedText");function Jm(t){const e=/&(amp|lt|gt);/g;return t.replace(e,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}T(Jm,"decodeHTMLEntities");function _d(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(Jm(r.content)):i.text(" "+Jm(r.content))})}T(_d,"updateTextContentAndStyles");async function LL(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,o,s)=>(r.push((async()=>{const l=`${o}:${s}`;return await Gq(l)?await vc(l,void 0,{class:"label-icon"}):`<i class='${Hn(i,e).replace(":"," ")}'></i>`})()),i));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}T(LL,"replaceIconSubstring");var Ni=T(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:o=!0,markdown:s=!0,isNode:l=!0,width:u=200,addSvgBackground:h=!1}={},d)=>{if(ht.debug("XYZ createText",e,r,n,i,o,l,"addSvgBackground: ",h),o){const f=s?kL(e,d):CL(e),m=await LL(ta(f),d),p=e.replace(/\\\\/g,"\\"),x={isNode:l,label:Kl(e)?p:m,labelStyle:r.replace("fill:","color:")};return await SL(t,x,u,i,h,d)}else{const f=ta(e.replace(/<br\s*\/?>/g,"<br/>")),m=s?xL(f.replace("<br>","<br/>"),d):yL(f),p=_L(u,t,m,e?h:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Zt(p).attr("style",x)}else{const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Zt(p).select("rect").attr("style",x.replace(/background:/g,"fill:"));const C=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Zt(p).select("text").attr("style",C)}return n?Zt(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Zt(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function Gp(t,e,r){if(t&&t.length){const[n,i]=e,o=Math.PI/180*r,s=Math.cos(o),l=Math.sin(o);for(const u of t){const[h,d]=u;u[0]=(h-n)*s-(d-i)*l+n,u[1]=(h-n)*l+(d-i)*s+i}}}function Kq(t,e){return t[0]===e[0]&&t[1]===e[1]}function Qq(t,e,r,n=1){const i=r,o=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,l=[0,0];if(i)for(const h of s)Gp(h,l,i);const u=(function(h,d,f){const m=[];for(const w of h){const S=[...w];Kq(S[0],S[S.length-1])||S.push([S[0][0],S[0][1]]),S.length>2&&m.push(S)}const p=[];d=Math.max(d,.1);const x=[];for(const w of m)for(let S=0;S<w.length-1;S++){const A=w[S],F=w[S+1];if(A[1]!==F[1]){const E=Math.min(A[1],F[1]);x.push({ymin:E,ymax:Math.max(A[1],F[1]),x:E===A[1]?A[0]:F[0],islope:(F[0]-A[0])/(F[1]-A[1])})}}if(x.sort(((w,S)=>w.ymin<S.ymin?-1:w.ymin>S.ymin?1:w.x<S.x?-1:w.x>S.x?1:w.ymax===S.ymax?0:(w.ymax-S.ymax)/Math.abs(w.ymax-S.ymax))),!x.length)return p;let C=[],k=x[0].ymin,b=0;for(;C.length||x.length;){if(x.length){let w=-1;for(let S=0;S<x.length&&!(x[S].ymin>k);S++)w=S;x.splice(0,w+1).forEach((S=>{C.push({s:k,edge:S})}))}if(C=C.filter((w=>!(w.edge.ymax<=k))),C.sort(((w,S)=>w.edge.x===S.edge.x?0:(w.edge.x-S.edge.x)/Math.abs(w.edge.x-S.edge.x))),(f!==1||b%d==0)&&C.length>1)for(let w=0;w<C.length;w+=2){const S=w+1;if(S>=C.length)break;const A=C[w].edge,F=C[S].edge;p.push([[Math.round(A.x),k],[Math.round(F.x),k]])}k+=f,C.forEach((w=>{w.edge.x=w.edge.x+f*w.edge.islope})),b++}return p})(s,o,n);if(i){for(const h of s)Gp(h,l,-i);(function(h,d,f){const m=[];h.forEach((p=>m.push(...p))),Gp(m,d,f)})(u,l,-i)}return u}function wc(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=i),Qq(t,i,n,o||1)}class Rx{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=wc(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function Ld(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class Zq extends Rx{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=wc(e,Object.assign({},r,{hachureGap:n})),o=Math.PI/180*r.hachureAngle,s=[],l=.5*n*Math.cos(o),u=.5*n*Math.sin(o);for(const[h,d]of i)Ld([h,d])&&s.push([[h[0]-l,h[1]+u],[...d]],[[h[0]+l,h[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class Jq extends Rx{fillPolygons(e,r){const n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(e,i);return n.ops=n.ops.concat(o.ops),n}}class tW{constructor(e){this.helper=e}fillPolygons(e,r){const n=wc(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const s=i/4;for(const l of e){const u=Ld(l),h=u/i,d=Math.ceil(h)-1,f=u-d*i,m=(l[0][0]+l[1][0])/2-i/4,p=Math.min(l[0][1],l[1][1]);for(let x=0;x<d;x++){const C=p+f+x*i,k=m-s+2*Math.random()*s,b=C-s+2*Math.random()*s,w=this.helper.ellipse(k,b,o,o,r);n.push(...w.ops)}}return{type:"fillSketch",ops:n}}}let eW=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=wc(e,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(e,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return e.forEach((s=>{const l=Ld(s),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2;let d=s[0],f=s[1];d[0]>f[0]&&(d=s[1],f=s[0]);const m=Math.atan((f[1]-d[1])/(f[0]-d[0]));for(let p=0;p<u;p++){const x=p*(n+i),C=x+n,k=[d[0]+x*Math.cos(m)+h*Math.cos(m),d[1]+x*Math.sin(m)+h*Math.sin(m)],b=[d[0]+C*Math.cos(m)+h*Math.cos(m),d[1]+C*Math.sin(m)+h*Math.sin(m)];o.push(...this.helper.doubleLineOps(k[0],k[1],b[0],b[1],r))}})),o}};class rW{constructor(e){this.helper=e}fillPolygons(e,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,o=wc(e,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,r)}}zigzagLines(e,r,n){const i=[];return e.forEach((o=>{const s=Ld(o),l=Math.round(s/(2*r));let u=o[0],h=o[1];u[0]>h[0]&&(u=o[1],h=o[0]);const d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let f=0;f<l;f++){const m=2*f*r,p=2*(f+1)*r,x=Math.sqrt(2*Math.pow(r,2)),C=[u[0]+m*Math.cos(d),u[1]+m*Math.sin(d)],k=[u[0]+p*Math.cos(d),u[1]+p*Math.sin(d)],b=[C[0]+x*Math.cos(d+Math.PI/4),C[1]+x*Math.sin(d+Math.PI/4)];i.push(...this.helper.doubleLineOps(C[0],C[1],b[0],b[1],n),...this.helper.doubleLineOps(b[0],b[1],k[0],k[1],n))}})),i}}const Gr={};class nW{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const iW=0,Xp=1,Ib=2,Vu={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Kp(t,e){return t.type===e}function Px(t){const e=[],r=(function(s){const l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:iW,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:Xp,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:Ib,text:""},l})(t);let n="BOD",i=0,o=r[i];for(;!Kp(o,Ib);){let s=0;const l=[];if(n==="BOD"){if(o.text!=="M"&&o.text!=="m")return Px("M0,0"+t);i++,s=Vu[o.text],n=o.text}else Kp(o,Xp)?s=Vu[n]:(i++,s=Vu[o.text],n=o.text);if(!(i+s<r.length))throw new Error("Path data ended short");for(let u=i;u<i+s;u++){const h=r[u];if(!Kp(h,Xp))throw new Error("Param not a number: "+n+","+h.text);l[l.length]=+h.text}if(typeof Vu[n]!="number")throw new Error("Bad segment: "+n);{const u={key:n,data:l};e.push(u),i+=s,o=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return e}function EL(t){let e=0,r=0,n=0,i=0;const o=[];for(const{key:s,data:l}of t)switch(s){case"M":o.push({key:"M",data:[...l]}),[e,r]=l,[n,i]=l;break;case"m":e+=l[0],r+=l[1],o.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":o.push({key:"L",data:[...l]}),[e,r]=l;break;case"l":e+=l[0],r+=l[1],o.push({key:"L",data:[e,r]});break;case"C":o.push({key:"C",data:[...l]}),e=l[4],r=l[5];break;case"c":{const u=l.map(((h,d)=>d%2?h+r:h+e));o.push({key:"C",data:u}),e=u[4],r=u[5];break}case"Q":o.push({key:"Q",data:[...l]}),e=l[2],r=l[3];break;case"q":{const u=l.map(((h,d)=>d%2?h+r:h+e));o.push({key:"Q",data:u}),e=u[2],r=u[3];break}case"A":o.push({key:"A",data:[...l]}),e=l[5],r=l[6];break;case"a":e+=l[5],r+=l[6],o.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,r]});break;case"H":o.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...l]}),e=l[2],r=l[3];break;case"s":{const u=l.map(((h,d)=>d%2?h+r:h+e));o.push({key:"S",data:u}),e=u[2],r=u[3];break}case"T":o.push({key:"T",data:[...l]}),e=l[0],r=l[1];break;case"t":e+=l[0],r+=l[1],o.push({key:"T",data:[e,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=n,r=i}return o}function BL(t){const e=[];let r="",n=0,i=0,o=0,s=0,l=0,u=0;for(const{key:h,data:d}of t){switch(h){case"M":e.push({key:"M",data:[...d]}),[n,i]=d,[o,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],i=d[5],l=d[2],u=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,i]});break;case"V":i=d[0],e.push({key:"L",data:[n,i]});break;case"S":{let f=0,m=0;r==="C"||r==="S"?(f=n+(n-l),m=i+(i-u)):(f=n,m=i),e.push({key:"C",data:[f,m,...d]}),l=d[0],u=d[1],n=d[2],i=d[3];break}case"T":{const[f,m]=d;let p=0,x=0;r==="Q"||r==="T"?(p=n+(n-l),x=i+(i-u)):(p=n,x=i);const C=n+2*(p-n)/3,k=i+2*(x-i)/3,b=f+2*(p-f)/3,w=m+2*(x-m)/3;e.push({key:"C",data:[C,k,b,w,f,m]}),l=p,u=x,n=f,i=m;break}case"Q":{const[f,m,p,x]=d,C=n+2*(f-n)/3,k=i+2*(m-i)/3,b=p+2*(f-p)/3,w=x+2*(m-x)/3;e.push({key:"C",data:[C,k,b,w,p,x]}),l=f,u=m,n=p,i=x;break}case"A":{const f=Math.abs(d[0]),m=Math.abs(d[1]),p=d[2],x=d[3],C=d[4],k=d[5],b=d[6];f===0||m===0?(e.push({key:"C",data:[n,i,k,b,k,b]}),n=k,i=b):(n!==k||i!==b)&&(AL(n,i,k,b,f,m,p,x,C).forEach((function(w){e.push({key:"C",data:w})})),n=k,i=b);break}case"Z":e.push({key:"Z",data:[]}),n=o,i=s}r=h}return e}function Tl(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function AL(t,e,r,n,i,o,s,l,u,h){const d=(f=s,Math.PI*f/180);var f;let m=[],p=0,x=0,C=0,k=0;if(h)[p,x,C,k]=h;else{[t,e]=Tl(t,e,-d),[r,n]=Tl(r,n,-d);const Q=(t-r)/2,V=(e-n)/2;let W=Q*Q/(i*i)+V*V/(o*o);W>1&&(W=Math.sqrt(W),i*=W,o*=W);const U=i*i,X=o*o,D=U*X-U*V*V-X*Q*Q,J=U*V*V+X*Q*Q,O=(l===u?-1:1)*Math.sqrt(Math.abs(D/J));C=O*i*V/o+(t+r)/2,k=O*-o*Q/i+(e+n)/2,p=Math.asin(parseFloat(((e-k)/o).toFixed(9))),x=Math.asin(parseFloat(((n-k)/o).toFixed(9))),t<C&&(p=Math.PI-p),r<C&&(x=Math.PI-x),p<0&&(p=2*Math.PI+p),x<0&&(x=2*Math.PI+x),u&&p>x&&(p-=2*Math.PI),!u&&x>p&&(x-=2*Math.PI)}let b=x-p;if(Math.abs(b)>120*Math.PI/180){const Q=x,V=r,W=n;x=u&&x>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,m=AL(r=C+i*Math.cos(x),n=k+o*Math.sin(x),V,W,i,o,s,0,u,[x,Q,C,k])}b=x-p;const w=Math.cos(p),S=Math.sin(p),A=Math.cos(x),F=Math.sin(x),E=Math.tan(b/4),B=4/3*i*E,P=4/3*o*E,q=[t,e],R=[t+B*S,e-P*w],$=[r+B*F,n-P*A],H=[r,n];if(R[0]=2*q[0]-R[0],R[1]=2*q[1]-R[1],h)return[R,$,H].concat(m);{m=[R,$,H].concat(m);const Q=[];for(let V=0;V<m.length;V+=3){const W=Tl(m[V][0],m[V][1],d),U=Tl(m[V+1][0],m[V+1][1],d),X=Tl(m[V+2][0],m[V+2][1],d);Q.push([W[0],W[1],U[0],U[1],X[0],X[1]])}return Q}}const oW={randOffset:function(t,e){return Ut(t,e)},randOffsetWithRange:function(t,e,r){return Qh(t,e,r)},ellipse:function(t,e,r,n,i){const o=IL(r,n,i);return ty(t,e,i,o).opset},doubleLineOps:function(t,e,r,n,i){return go(t,e,r,n,i,!0)}};function FL(t,e,r,n,i){return{type:"path",ops:go(t,e,r,n,i)}}function hh(t,e,r){const n=(t||[]).length;if(n>2){const i=[];for(let o=0;o<n-1;o++)i.push(...go(t[o][0],t[o][1],t[o+1][0],t[o+1][1],r));return e&&i.push(...go(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return n===2?FL(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function aW(t,e,r,n,i){return(function(o,s){return hh(o,!0,s)})([[t,e],[t+r,e],[t+r,e+n],[t,e+n]],i)}function Mb(t,e){if(t.length){const r=typeof t[0][0]=="number"?[t]:t,n=Yu(r[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Yu(r[0],1.5*(1+.22*e.roughness),Rb(e));for(let o=1;o<r.length;o++){const s=r[o];if(s.length){const l=Yu(s,1*(1+.2*e.roughness),e),u=e.disableMultiStroke?[]:Yu(s,1.5*(1+.22*e.roughness),Rb(e));for(const h of l)h.op!=="move"&&n.push(h);for(const h of u)h.op!=="move"&&i.push(h)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function IL(t,e,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),o=2*Math.PI/i;let s=Math.abs(t/2),l=Math.abs(e/2);const u=1-r.curveFitting;return s+=Ut(s*u,r),l+=Ut(l*u,r),{increment:o,rx:s,ry:l}}function ty(t,e,r,n){const[i,o]=Pb(n.increment,t,e,n.rx,n.ry,1,n.increment*Qh(.1,Qh(.4,1,r),r),r);let s=Zh(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[l]=Pb(n.increment,t,e,n.rx,n.ry,1.5,0,r),u=Zh(l,null,r);s=s.concat(u)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Ob(t,e,r,n,i,o,s,l,u){const h=t,d=e;let f=Math.abs(r/2),m=Math.abs(n/2);f+=Ut(.01*f,u),m+=Ut(.01*m,u);let p=i,x=o;for(;p<0;)p+=2*Math.PI,x+=2*Math.PI;x-p>2*Math.PI&&(p=0,x=2*Math.PI);const C=2*Math.PI/u.curveStepCount,k=Math.min(C/2,(x-p)/2),b=Db(k,h,d,f,m,p,x,1,u);if(!u.disableMultiStroke){const w=Db(k,h,d,f,m,p,x,1.5,u);b.push(...w)}return s&&(l?b.push(...go(h,d,h+f*Math.cos(p),d+m*Math.sin(p),u),...go(h,d,h+f*Math.cos(x),d+m*Math.sin(x),u)):b.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+f*Math.cos(p),d+m*Math.sin(p)]})),{type:"path",ops:b}}function Nb(t,e){const r=BL(EL(Px(t))),n=[];let i=[0,0],o=[0,0];for(const{key:s,data:l}of r)switch(s){case"M":o=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...go(o[0],o[1],l[0],l[1],e)),o=[l[0],l[1]];break;case"C":{const[u,h,d,f,m,p]=l;n.push(...sW(u,h,d,f,m,p,o,e)),o=[m,p];break}case"Z":n.push(...go(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:n}}function Qp(t,e){const r=[];for(const n of t)if(n.length){const i=e.maxRandomnessOffset||0,o=n.length;if(o>2){r.push({op:"move",data:[n[0][0]+Ut(i,e),n[0][1]+Ut(i,e)]});for(let s=1;s<o;s++)r.push({op:"lineTo",data:[n[s][0]+Ut(i,e),n[s][1]+Ut(i,e)]})}}return{type:"fillPath",ops:r}}function Na(t,e){return(function(r,n){let i=r.fillStyle||"hachure";if(!Gr[i])switch(i){case"zigzag":Gr[i]||(Gr[i]=new Zq(n));break;case"cross-hatch":Gr[i]||(Gr[i]=new Jq(n));break;case"dots":Gr[i]||(Gr[i]=new tW(n));break;case"dashed":Gr[i]||(Gr[i]=new eW(n));break;case"zigzag-line":Gr[i]||(Gr[i]=new rW(n));break;default:i="hachure",Gr[i]||(Gr[i]=new Rx(n))}return Gr[i]})(e,oW).fillPolygons(t,e)}function Rb(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function ML(t){return t.randomizer||(t.randomizer=new nW(t.seed||0)),t.randomizer.next()}function Qh(t,e,r,n=1){return r.roughness*n*(ML(r)*(e-t)+t)}function Ut(t,e,r=1){return Qh(-t,t,e,r)}function go(t,e,r,n,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,l=ey(t,e,r,n,i,!0,!1);if(s)return l;const u=ey(t,e,r,n,i,!0,!0);return l.concat(u)}function ey(t,e,r,n,i,o,s){const l=Math.pow(t-r,2)+Math.pow(e-n,2),u=Math.sqrt(l);let h=1;h=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>l&&(d=u/10);const f=d/2,m=.2+.2*ML(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,x=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=Ut(p,i,h),x=Ut(x,i,h);const C=[],k=()=>Ut(f,i,h),b=()=>Ut(d,i,h),w=i.preserveVertices;return s?C.push({op:"move",data:[t+(w?0:k()),e+(w?0:k())]}):C.push({op:"move",data:[t+(w?0:Ut(d,i,h)),e+(w?0:Ut(d,i,h))]}),s?C.push({op:"bcurveTo",data:[p+t+(r-t)*m+k(),x+e+(n-e)*m+k(),p+t+2*(r-t)*m+k(),x+e+2*(n-e)*m+k(),r+(w?0:k()),n+(w?0:k())]}):C.push({op:"bcurveTo",data:[p+t+(r-t)*m+b(),x+e+(n-e)*m+b(),p+t+2*(r-t)*m+b(),x+e+2*(n-e)*m+b(),r+(w?0:b()),n+(w?0:b())]}),C}function Yu(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+Ut(e,r),t[0][1]+Ut(e,r)]),n.push([t[0][0]+Ut(e,r),t[0][1]+Ut(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+Ut(e,r),t[i][1]+Ut(e,r)]),i===t.length-1&&n.push([t[i][0]+Ut(e,r),t[i][1]+Ut(e,r)]);return Zh(n,null,r)}function Zh(t,e,r){const n=t.length,i=[];if(n>3){const o=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let l=1;l+2<n;l++){const u=t[l];o[0]=[u[0],u[1]],o[1]=[u[0]+(s*t[l+1][0]-s*t[l-1][0])/6,u[1]+(s*t[l+1][1]-s*t[l-1][1])/6],o[2]=[t[l+1][0]+(s*t[l][0]-s*t[l+2][0])/6,t[l+1][1]+(s*t[l][1]-s*t[l+2][1])/6],o[3]=[t[l+1][0],t[l+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else n===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&i.push(...ey(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function Pb(t,e,r,n,i,o,s,l){const u=[],h=[];if(l.roughness===0){t/=4,h.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let d=0;d<=2*Math.PI;d+=t){const f=[e+n*Math.cos(d),r+i*Math.sin(d)];u.push(f),h.push(f)}h.push([e+n*Math.cos(0),r+i*Math.sin(0)]),h.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{const d=Ut(.5,l)-Math.PI/2;h.push([Ut(o,l)+e+.9*n*Math.cos(d-t),Ut(o,l)+r+.9*i*Math.sin(d-t)]);const f=2*Math.PI+d-.01;for(let m=d;m<f;m+=t){const p=[Ut(o,l)+e+n*Math.cos(m),Ut(o,l)+r+i*Math.sin(m)];u.push(p),h.push(p)}h.push([Ut(o,l)+e+n*Math.cos(d+2*Math.PI+.5*s),Ut(o,l)+r+i*Math.sin(d+2*Math.PI+.5*s)]),h.push([Ut(o,l)+e+.98*n*Math.cos(d+s),Ut(o,l)+r+.98*i*Math.sin(d+s)]),h.push([Ut(o,l)+e+.9*n*Math.cos(d+.5*s),Ut(o,l)+r+.9*i*Math.sin(d+.5*s)])}return[h,u]}function Db(t,e,r,n,i,o,s,l,u){const h=o+Ut(.1,u),d=[];d.push([Ut(l,u)+e+.9*n*Math.cos(h-t),Ut(l,u)+r+.9*i*Math.sin(h-t)]);for(let f=h;f<=s;f+=t)d.push([Ut(l,u)+e+n*Math.cos(f),Ut(l,u)+r+i*Math.sin(f)]);return d.push([e+n*Math.cos(s),r+i*Math.sin(s)]),d.push([e+n*Math.cos(s),r+i*Math.sin(s)]),Zh(d,null,u)}function sW(t,e,r,n,i,o,s,l){const u=[],h=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let d=[0,0];const f=l.disableMultiStroke?1:2,m=l.preserveVertices;for(let p=0;p<f;p++)p===0?u.push({op:"move",data:[s[0],s[1]]}):u.push({op:"move",data:[s[0]+(m?0:Ut(h[0],l)),s[1]+(m?0:Ut(h[0],l))]}),d=m?[i,o]:[i+Ut(h[p],l),o+Ut(h[p],l)],u.push({op:"bcurveTo",data:[t+Ut(h[p],l),e+Ut(h[p],l),r+Ut(h[p],l),n+Ut(h[p],l),d[0],d[1]]});return u}function _l(t){return[...t]}function $b(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(_l(t[0]),_l(t[1]),_l(t[2]),_l(t[2]));else{const i=[];i.push(t[0],t[0]);for(let l=1;l<t.length;l++)i.push(t[l]),l===t.length-1&&i.push(t[l]);const o=[],s=1-e;n.push(_l(i[0]));for(let l=1;l+2<i.length;l++){const u=i[l];o[0]=[u[0],u[1]],o[1]=[u[0]+(s*i[l+1][0]-s*i[l-1][0])/6,u[1]+(s*i[l+1][1]-s*i[l-1][1])/6],o[2]=[i[l+1][0]+(s*i[l][0]-s*i[l+2][0])/6,i[l+1][1]+(s*i[l][1]-s*i[l+2][1])/6],o[3]=[i[l+1][0],i[l+1][1]],n.push(o[1],o[2],o[3])}}return n}function dh(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function lW(t,e,r){const n=dh(e,r);if(n===0)return dh(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return i=Math.max(0,Math.min(1,i)),dh(t,jo(e,r,i))}function jo(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function ry(t,e,r,n){const i=n||[];if((function(l,u){const h=l[u+0],d=l[u+1],f=l[u+2],m=l[u+3];let p=3*d[0]-2*h[0]-m[0];p*=p;let x=3*d[1]-2*h[1]-m[1];x*=x;let C=3*f[0]-2*m[0]-h[0];C*=C;let k=3*f[1]-2*m[1]-h[1];return k*=k,p<C&&(p=C),x<k&&(x=k),p+x})(t,e)<r){const l=t[e+0];i.length?(o=i[i.length-1],s=l,Math.sqrt(dh(o,s))>1&&i.push(l)):i.push(l),i.push(t[e+3])}else{const u=t[e+0],h=t[e+1],d=t[e+2],f=t[e+3],m=jo(u,h,.5),p=jo(h,d,.5),x=jo(d,f,.5),C=jo(m,p,.5),k=jo(p,x,.5),b=jo(C,k,.5);ry([u,m,C,b],0,r,i),ry([b,k,x,f],0,r,i)}var o,s;return i}function cW(t,e){return Jh(t,0,t.length,e)}function Jh(t,e,r,n,i){const o=i||[],s=t[e],l=t[r-1];let u=0,h=1;for(let d=e+1;d<r-1;++d){const f=lW(t[d],s,l);f>u&&(u=f,h=d)}return Math.sqrt(u)>n?(Jh(t,e,h+1,n,o),Jh(t,h,r,n,o)):(o.length||o.push(s),o.push(l)),o}function Zp(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let o=0;o<i;o++)ry(t,3*o,e,n);return r&&r>0?Jh(n,0,n.length,r):n}const ln="none";class td{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,n){return{shape:e,sets:r||[],options:n||this.defaultOptions}}line(e,r,n,i,o){const s=this._o(o);return this._d("line",[FL(e,r,n,i,s)],s)}rectangle(e,r,n,i,o){const s=this._o(o),l=[],u=aW(e,r,n,i,s);if(s.fill){const h=[[e,r],[e+n,r],[e+n,r+i],[e,r+i]];s.fillStyle==="solid"?l.push(Qp([h],s)):l.push(Na([h],s))}return s.stroke!==ln&&l.push(u),this._d("rectangle",l,s)}ellipse(e,r,n,i,o){const s=this._o(o),l=[],u=IL(n,i,s),h=ty(e,r,s,u);if(s.fill)if(s.fillStyle==="solid"){const d=ty(e,r,s,u).opset;d.type="fillPath",l.push(d)}else l.push(Na([h.estimatedPoints],s));return s.stroke!==ln&&l.push(h.opset),this._d("ellipse",l,s)}circle(e,r,n,i){const o=this.ellipse(e,r,n,n,i);return o.shape="circle",o}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[hh(e,!1,n)],n)}arc(e,r,n,i,o,s,l=!1,u){const h=this._o(u),d=[],f=Ob(e,r,n,i,o,s,l,!0,h);if(l&&h.fill)if(h.fillStyle==="solid"){const m=Object.assign({},h);m.disableMultiStroke=!0;const p=Ob(e,r,n,i,o,s,!0,!1,m);p.type="fillPath",d.push(p)}else d.push((function(m,p,x,C,k,b,w){const S=m,A=p;let F=Math.abs(x/2),E=Math.abs(C/2);F+=Ut(.01*F,w),E+=Ut(.01*E,w);let B=k,P=b;for(;B<0;)B+=2*Math.PI,P+=2*Math.PI;P-B>2*Math.PI&&(B=0,P=2*Math.PI);const q=(P-B)/w.curveStepCount,R=[];for(let $=B;$<=P;$+=q)R.push([S+F*Math.cos($),A+E*Math.sin($)]);return R.push([S+F*Math.cos(P),A+E*Math.sin(P)]),R.push([S,A]),Na([R],w)})(e,r,n,i,o,s,h));return h.stroke!==ln&&d.push(f),this._d("arc",d,h)}curve(e,r){const n=this._o(r),i=[],o=Mb(e,n);if(n.fill&&n.fill!==ln)if(n.fillStyle==="solid"){const s=Mb(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],l=e;if(l.length){const u=typeof l[0][0]=="number"?[l]:l;for(const h of u)h.length<3?s.push(...h):h.length===3?s.push(...Zp($b([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):s.push(...Zp($b(h),10,(1+n.roughness)/2))}s.length&&i.push(Na([s],n))}return n.stroke!==ln&&i.push(o),this._d("curve",i,n)}polygon(e,r){const n=this._o(r),i=[],o=hh(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(Qp([e],n)):i.push(Na([e],n))),n.stroke!==ln&&i.push(o),this._d("polygon",i,n)}path(e,r){const n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=n.fill&&n.fill!=="transparent"&&n.fill!==ln,s=n.stroke!==ln,l=!!(n.simplification&&n.simplification<1),u=(function(d,f,m){const p=BL(EL(Px(d))),x=[];let C=[],k=[0,0],b=[];const w=()=>{b.length>=4&&C.push(...Zp(b,f)),b=[]},S=()=>{w(),C.length&&(x.push(C),C=[])};for(const{key:F,data:E}of p)switch(F){case"M":S(),k=[E[0],E[1]],C.push(k);break;case"L":w(),C.push([E[0],E[1]]);break;case"C":if(!b.length){const B=C.length?C[C.length-1]:k;b.push([B[0],B[1]])}b.push([E[0],E[1]]),b.push([E[2],E[3]]),b.push([E[4],E[5]]);break;case"Z":w(),C.push([k[0],k[1]])}if(S(),!m)return x;const A=[];for(const F of x){const E=cW(F,m);E.length&&A.push(E)}return A})(e,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=Nb(e,n);if(o)if(n.fillStyle==="solid")if(u.length===1){const d=Nb(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(Qp(u,n));else i.push(Na(u,n));return s&&(l?u.forEach((d=>{i.push(hh(d,!1,n))})):i.push(h)),this._d("path",i,n)}opsToPath(e,r){let n="";for(const i of e.ops){const o=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":n+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":n+=`L${o[0]} ${o[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(const o of r){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ln};break;case"fillPath":s={d:this.opsToPath(o),stroke:ln,strokeWidth:0,fill:n.fill||ln};break;case"fillSketch":s=this.fillSketch(o,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||ln,strokeWidth:n,fill:ln}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class uW{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new td(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const l=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,l),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(const o of r.ops){const s=typeof n=="number"&&n>=0?o.data.map((l=>+l.toFixed(n))):o.data;switch(o.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,o){const s=this.gen.line(e,r,n,i,o);return this.draw(s),s}rectangle(e,r,n,i,o){const s=this.gen.rectangle(e,r,n,i,o);return this.draw(s),s}ellipse(e,r,n,i,o){const s=this.gen.ellipse(e,r,n,i,o);return this.draw(s),s}circle(e,r,n,i){const o=this.gen.circle(e,r,n,i);return this.draw(o),o}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,o,s,l=!1,u){const h=this.gen.arc(e,r,n,i,o,s,l,u);return this.draw(h),h}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){const n=this.gen.path(e,r);return this.draw(n),n}}const Gu="http://www.w3.org/2000/svg";class hW{constructor(e,r){this.svg=e,this.gen=new td(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(Gu,"g"),s=e.options.fixedDecimalPlaceDigits;for(const l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(Gu,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(Gu,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&o.appendChild(u)}return o}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const o=e.createElementNS(Gu,"path");return o.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),o.setAttribute("stroke",n.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),n.fillLineDash&&o.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,o){const s=this.gen.line(e,r,n,i,o);return this.draw(s)}rectangle(e,r,n,i,o){const s=this.gen.rectangle(e,r,n,i,o);return this.draw(s)}ellipse(e,r,n,i,o){const s=this.gen.ellipse(e,r,n,i,o);return this.draw(s)}circle(e,r,n,i){const o=this.gen.circle(e,r,n,i);return this.draw(o)}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,o,s,l=!1,u){const h=this.gen.arc(e,r,n,i,o,s,l,u);return this.draw(h)}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n)}path(e,r){const n=this.gen.path(e,r);return this.draw(n)}}var At={canvas:(t,e)=>new uW(t,e),svg:(t,e)=>new hW(t,e),generator:t=>new td(t),newSeed:()=>td.newSeed()},Ht=T(async(t,e,r)=>{var p,x;let n;const i=e.useHtmlLabels||Mi((p=ue())==null?void 0:p.htmlLabels);r?n=r:n="node default";const o=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=o.insert("g").attr("class","label").attr("style",ur(e.labelStyle));let l;e.label===void 0?l="":l=typeof e.label=="string"?e.label:e.label[0];const u=!!e.icon||!!e.img,h=e.labelType==="markdown",d=await Ni(s,Hn(ta(l),ue()),{useHtmlLabels:i,width:e.width||((x=ue().flowchart)==null?void 0:x.wrappingWidth),classes:h?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:h},ue());let f=d.getBBox();const m=((e==null?void 0:e.padding)??0)/2;if(i){const C=d.children[0],k=Zt(d);await J_(C,l),f=C.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}return i?s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):s.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:f,halfPadding:m,label:s}},"labelHelper"),Jp=T(async(t,e,r)=>{var u,h;const n=r.useHtmlLabels??$r(ue()),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Ni(i,Hn(ta(e),ue()),{useHtmlLabels:n,width:r.width||((h=(u=ue())==null?void 0:u.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=o.getBBox();const l=r.padding/2;if($r(ue())){const d=o.children[0],f=Zt(o);s=d.getBoundingClientRect(),f.attr("width",s.width),f.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:l,label:i}},"insertLabel"),Ot=T((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Wt=T((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function ae(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}T(ae,"createPathFromPoints");function mo(t,e,r,n,i,o){const s=[],u=r-t,h=n-e,d=u/o,f=2*Math.PI/d,m=e+h/2;for(let p=0;p<=50;p++){const x=p/50,C=t+x*u,k=m+i*Math.sin(f*(C-t));s.push({x:C,y:k})}return s}T(mo,"generateFullSineWavePoints");function sc(t,e,r,n,i,o){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,p=t+r*Math.cos(m),x=e+r*Math.sin(m);s.push({x:-p,y:-x})}return s}T(sc,"generateCirclePoints");function ny(t){const e=Array.from(t.childNodes).filter(u=>u.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=e.map(u=>u.getAttribute("d")).filter(u=>u!==null).join(" ");r.setAttribute("d",n);const i=e.find(u=>u.getAttribute("fill")!=="none"),o=e.find(u=>u.getAttribute("stroke")!=="none"),s=T((u,h)=>(u==null?void 0:u.getAttribute(h))??void 0,"getAttr");if(i){const u={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}if(o){const u={stroke:s(o,"stroke"),"stroke-width":s(o,"stroke-width")??"1","stroke-opacity":s(o,"stroke-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}const l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}T(ny,"mergePaths");var dW=T((t,e)=>{var r=t.x,n=t.y,i=e.x-r,o=e.y-n,s=t.width/2,l=t.height/2,u,h;return Math.abs(o)*s>Math.abs(i)*l?(o<0&&(l=-l),u=o===0?0:l*i/o,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*o/i),{x:r+u,y:n+h}},"intersectRect"),ws=dW,fW=T(async(t,e,r,n=!1,i=!1)=>{let o=e||"";typeof o=="object"&&(o=o[0]);const s=ue(),l=$r(s);return await Ni(t,o,{style:r,isTitle:n,useHtmlLabels:l,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),so=fW,Co=T((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),OL=T(async(t,e)=>{ht.info("Creating subgraph rect for ",e.id,e);const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=Mt(e),f=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),m=$r(r),p=f.insert("g").attr("class","cluster-label ");let x;e.labelType==="markdown"?x=await Ni(p,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width}):x=await so(p,e.label,e.labelStyle||"",!1,!0);let C=x.getBBox();if($r(r)){const B=x.children[0],P=Zt(x);C=B.getBoundingClientRect(),P.attr("width",C.width),P.attr("height",C.height)}const k=e.width<=C.width+e.padding?C.width+e.padding:e.width;e.width<=C.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height,w=e.x-k/2,S=e.y-b/2;ht.trace("Data ",e,JSON.stringify(e));let A;if(e.look==="handDrawn"){const B=At.svg(f),P=It(e,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:i}),q=B.path(Co(w,S,k,b,0),P);A=f.insert(()=>(ht.debug("Rough node insert CXC",q),q),":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",d.join(";").replace("fill","stroke"))}else A=f.insert("rect",":first-child"),A.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",w).attr("y",S).attr("width",k).attr("height",b);const{subGraphTitleTopMargin:F}=Tx(r);if(p.attr("transform",`translate(${e.x-C.width/2}, ${e.y-e.height/2+F})`),l){const B=p.select("span");B&&B.attr("style",l)}const E=A.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=C.height-e.padding/2,e.intersect=function(B){return ws(e,B)},{cluster:f,labelBBox:C}},"rect"),pW=T((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),i=0*e.padding,o=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(l){return ws(e,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),gW=T(async(t,e)=>{const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:o,compositeBackground:s,compositeTitleBackground:l,nodeBorder:u}=n,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),d=h.insert("g",":first-child"),f=h.insert("g").attr("class","cluster-label");let m=h.append("rect");const p=await so(f,e.label,e.labelStyle,void 0,!0);let x=p.getBBox();if($r(r)){const q=p.children[0],R=Zt(p);x=q.getBoundingClientRect(),R.attr("width",x.width),R.attr("height",x.height)}const C=0*e.padding,k=C/2,b=(e.width<=x.width+e.padding?x.width+e.padding:e.width)+C;e.width<=x.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;const w=e.height+C,S=e.height+C-x.height-6,A=e.x-b/2,F=e.y-w/2;e.width=b;const E=e.y-e.height/2-k+x.height+2;let B;if(e.look==="handDrawn"){const q=e.cssClasses.includes("statediagram-cluster-alt"),R=At.svg(h),$=e.rx||e.ry?R.path(Co(A,F,b,w,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):R.rectangle(A,F,b,w,{seed:i});B=h.insert(()=>$,":first-child");const H=R.rectangle(A,E,b,S,{fill:q?o:s,fillStyle:q?"hachure":"solid",stroke:u,seed:i});B=h.insert(()=>$,":first-child"),m=h.insert(()=>H)}else B=d.insert("rect",":first-child"),B.attr("class","outer").attr("x",A).attr("y",F).attr("width",b).attr("height",w).attr("data-look",e.look),m.attr("class","inner").attr("x",A).attr("y",E).attr("width",b).attr("height",S);f.attr("transform",`translate(${e.x-x.width/2}, ${F+1-($r(r)?0:3)})`);const P=B.node().getBBox();return e.height=P.height,e.offsetX=0,e.offsetY=x.height-e.padding/2,e.labelBBox=x,e.intersect=function(q){return ws(e,q)},{cluster:h,labelBBox:x}},"roundedWithTitle"),mW=T(async(t,e)=>{ht.info("Creating subgraph rect for ",e.id,e);const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=Mt(e),f=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),m=$r(r),p=f.insert("g").attr("class","cluster-label "),x=await Ni(p,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width});let C=x.getBBox();if($r(r)){const B=x.children[0],P=Zt(x);C=B.getBoundingClientRect(),P.attr("width",C.width),P.attr("height",C.height)}const k=e.width<=C.width+e.padding?C.width+e.padding:e.width;e.width<=C.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height,w=e.x-k/2,S=e.y-b/2;ht.trace("Data ",e,JSON.stringify(e));let A;if(e.look==="handDrawn"){const B=At.svg(f),P=It(e,{roughness:.7,fill:o,stroke:s,fillWeight:4,seed:i}),q=B.path(Co(w,S,k,b,e.rx),P);A=f.insert(()=>(ht.debug("Rough node insert CXC",q),q),":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",d.join(";").replace("fill","stroke"))}else A=f.insert("rect",":first-child"),A.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",w).attr("y",S).attr("width",k).attr("height",b);const{subGraphTitleTopMargin:F}=Tx(r);if(p.attr("transform",`translate(${e.x-C.width/2}, ${e.y-e.height/2+F})`),l){const B=p.select("span");B&&B.attr("style",l)}const E=A.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=C.height-e.padding/2,e.intersect=function(B){return ws(e,B)},{cluster:f,labelBBox:C}},"kanbanSection"),yW=T((t,e)=>{const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:o}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),l=s.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;const d=e.height+u,f=e.x-h/2,m=e.y-d/2;e.width=h;let p;if(e.look==="handDrawn"){const k=At.svg(s).rectangle(f,m,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});p=s.insert(()=>k,":first-child")}else{p=l.insert("rect",":first-child");let C="outer";e.look,C="divider",p.attr("class",C).attr("x",f).attr("y",m).attr("width",h).attr("height",d).attr("data-look",e.look)}const x=p.node().getBBox();return e.height=x.height,e.offsetX=0,e.offsetY=0,e.intersect=function(C){return ws(e,C)},{cluster:s,labelBBox:{}}},"divider"),xW=OL,CW={rect:OL,squareRect:xW,roundedWithTitle:gW,noteGroup:pW,divider:yW,kanbanSection:mW},NL=new Map,kW=T(async(t,e)=>{const r=e.shape||"rect",n=await CW[r](t,e);return NL.set(e.id,n),n},"insertCluster"),kJ=T(()=>{NL=new Map},"clear");function RL(t,e){return t.intersect(e)}T(RL,"intersectNode");var bW=RL;function PL(t,e,r,n){var i=t.x,o=t.y,s=i-n.x,l=o-n.y,u=Math.sqrt(e*e*l*l+r*r*s*s),h=Math.abs(e*r*s/u);n.x<i&&(h=-h);var d=Math.abs(e*r*l/u);return n.y<o&&(d=-d),{x:i+h,y:o+d}}T(PL,"intersectEllipse");var DL=PL;function $L(t,e,r){return DL(t,e,e,r)}T($L,"intersectCircle");var vW=$L;function jL(t,e,r,n){{const i=e.y-t.y,o=t.x-e.x,s=e.x*t.y-t.x*e.y,l=i*r.x+o*r.y+s,u=i*n.x+o*n.y+s,h=1e-6;if(l!==0&&u!==0&&iy(l,u))return;const d=n.y-r.y,f=r.x-n.x,m=n.x*r.y-r.x*n.y,p=d*t.x+f*t.y+m,x=d*e.x+f*e.y+m;if(Math.abs(p)<h&&Math.abs(x)<h&&iy(p,x))return;const C=i*f-d*o;if(C===0)return;const k=Math.abs(C/2);let b=o*m-f*s;const w=b<0?(b-k)/C:(b+k)/C;b=d*s-i*m;const S=b<0?(b-k)/C:(b+k)/C;return{x:w,y:S}}}T(jL,"intersectLine");function iy(t,e){return t*e>0}T(iy,"sameSign");var wW=jL;function zL(t,e,r){let n=t.x,i=t.y,o=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(d){s=Math.min(s,d.x),l=Math.min(l,d.y)}):(s=Math.min(s,e.x),l=Math.min(l,e.y));let u=n-t.width/2-s,h=i-t.height/2-l;for(let d=0;d<e.length;d++){let f=e[d],m=e[d<e.length-1?d+1:0],p=wW(t,r,{x:u+f.x,y:h+f.y},{x:u+m.x,y:h+m.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(d,f){let m=d.x-r.x,p=d.y-r.y,x=Math.sqrt(m*m+p*p),C=f.x-r.x,k=f.y-r.y,b=Math.sqrt(C*C+k*k);return x<b?-1:x===b?0:1}),o[0]):t}T(zL,"intersectPolygon");var SW=zL,wt={node:bW,circle:vW,ellipse:DL,polygon:SW,rect:ws};function qL(t,e){const{labelStyles:r}=Mt(e);e.labelStyle=r;const n=Wt(e);let i=n;n||(i="anchor");const o=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=1,{cssStyles:l}=e,u=At.svg(o),h=It(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);const d=u.circle(0,0,s*2,h),f=o.insert(()=>d,":first-child");return f.attr("class","anchor").attr("style",ur(l)),Ot(e,f),e.intersect=function(m){return ht.info("Circle intersect",e,s,m),wt.circle(e,s,m)},o}T(qL,"anchor");function oy(t,e,r,n,i,o,s){const u=(t+r)/2,h=(e+n)/2,d=Math.atan2(n-e,r-t),f=(r-t)/2,m=(n-e)/2,p=f/i,x=m/o,C=Math.sqrt(p**2+x**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const k=Math.sqrt(1-C**2),b=u+k*o*Math.sin(d)*(s?-1:1),w=h-k*i*Math.cos(d)*(s?-1:1),S=Math.atan2((e-w)/o,(t-b)/i);let F=Math.atan2((n-w)/o,(r-b)/i)-S;s&&F<0&&(F+=2*Math.PI),!s&&F>0&&(F-=2*Math.PI);const E=[];for(let B=0;B<20;B++){const P=B/19,q=S+P*F,R=b+i*Math.cos(q),$=w+o*Math.sin(q);E.push({x:R,y:$})}return E}T(oy,"generateArcPoints");function WL(t,e,r){const[n,i]=[e,r].sort((o,s)=>s-o);return i*(1-Math.sqrt(1-(t/n/2)**2))}T(WL,"calculateArcSagitta");async function HL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i,l=T(q=>q+s,"calcTotalHeight"),u=T(q=>{const R=q/2;return[R/(2.5+q/50),R]},"calcEllipseRadius"),{shapeSvg:h,bbox:d}=await Ht(t,e,Wt(e)),f=l(e!=null&&e.height?e==null?void 0:e.height:d.height),[m,p]=u(f),x=WL(f,m,p),k=(e!=null&&e.width?e==null?void 0:e.width:d.width)+o*2+x-x,b=f,{cssStyles:w}=e,S=[{x:k/2,y:-b/2},{x:-k/2,y:-b/2},...oy(-k/2,-b/2,-k/2,b/2,m,p,!1),{x:k/2,y:b/2},...oy(k/2,b/2,k/2,-b/2,m,p,!0)],A=At.svg(h),F=It(e,{});e.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const E=ae(S),B=A.path(E,F),P=h.insert(()=>B,":first-child");return P.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",w),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(${m/2}, 0)`),Ot(e,P),e.intersect=function(q){return wt.polygon(e,S,q)},h}T(HL,"bowTieRect");function Ri(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}T(Ri,"insertPolygonShape");var Xu=12;async function UL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?28:i,s=e.look==="neo"?24:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.width)??u.width)+(e.look==="neo"?o*2:o+Xu),d=((e==null?void 0:e.height)??u.height)+(e.look==="neo"?s*2:s),f=0,m=h,p=-d,x=0,C=[{x:f+Xu,y:p},{x:m,y:p},{x:m,y:x},{x:f,y:x},{x:f,y:p+Xu},{x:f+Xu,y:p}];let k;const{cssStyles:b}=e;if(e.look==="handDrawn"){const w=At.svg(l),S=It(e,{}),A=ae(C),F=w.path(A,S);k=l.insert(()=>F,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),b&&k.attr("style",b)}else k=Ri(l,h,d,C);return n&&k.attr("style",n),Ot(e,k),e.intersect=function(w){return wt.polygon(e,C,w)},l}T(UL,"card");function VL(t,e){const{nodeStyles:r}=Mt(e);e.label="";const n=t.insert("g").attr("class",Wt(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,o=Math.max(28,e.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=At.svg(n),u=It(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=ae(s),d=l.path(h,u),f=n.insert(()=>d,":first-child");return i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(m){return wt.polygon(e,s,m)},n}T(VL,"choice");async function Dx(t,e,r){const{labelStyles:n,nodeStyles:i}=Mt(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,halfPadding:l}=await Ht(t,e,Wt(e)),u=16,h=(r==null?void 0:r.padding)??l,d=e.look==="neo"?s.width/2+u*2:s.width/2+h;let f;const{cssStyles:m}=e;if(e.look==="handDrawn"){const p=At.svg(o),x=It(e,{}),C=p.circle(0,0,d*2,x);f=o.insert(()=>C,":first-child"),f.attr("class","basic label-container").attr("style",ur(m))}else f=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return Ot(e,f),e.calcIntersect=function(p,x){const C=p.width/2;return wt.circle(p,C,x)},e.intersect=function(p){return ht.info("Circle intersect",e,d,p),wt.circle(e,d,p)},o}T(Dx,"circle");function YL(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},o={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},l={x:n/2*e,y:-(n/2)*r};return`M ${o.x},${o.y} L ${l.x},${l.y}
404
- M ${i.x},${i.y} L ${s.x},${s.y}`}T(YL,"createLine");function GL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",Wt(e)).attr("id",e.domId??e.id),o=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:s}=e,l=At.svg(i),u=It(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=l.circle(0,0,o*2,u),d=YL(o),f=l.path(d,u),m=i.insert(()=>h,":first-child");return m.insert(()=>f),m.attr("class","outer-path"),s&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),Ot(e,m),e.intersect=function(p){return ht.info("crossedCircle intersect",e,{radius:o,point:p}),wt.circle(e,o,p)},i}T(GL,"crossedCircle");function _i(t,e,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,p=t+r*Math.cos(m),x=e+r*Math.sin(m);s.push({x:-p,y:-x})}return s}T(_i,"generateCirclePoints");async function XL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(t,e,Wt(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=o.width+l,d=o.height+u,f=Math.max(5,d*.1),{cssStyles:m}=e,p=[..._i(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},..._i(h/2+f*2,-f,f,20,-180,-270),..._i(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},..._i(h/2,d/2,f,20,0,90)],x=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},..._i(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},..._i(h/2+h*.1,-f,f,20,-180,-270),..._i(h/2+h*.1,f,f,20,-90,-180),{x:-h/2-f,y:d/2},..._i(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2,y:d/2+f}],C=At.svg(i),k=It(e,{fill:"none"});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ae(p).replace("Z",""),S=C.path(w,k),A=ae(x),F=C.path(A,{...k}),E=i.insert("g",":first-child");return E.insert(()=>F,":first-child").attr("stroke-opacity",0),E.insert(()=>S,":first-child"),E.attr("class","text"),m&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),E.attr("transform",`translate(${f}, 0)`),s.attr("transform",`translate(${-h/2+f-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),Ot(e,E),e.intersect=function(B){return wt.polygon(e,x,B)},i}T(XL,"curlyBraceLeft");function Li(t,e,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,p=t+r*Math.cos(m),x=e+r*Math.sin(m);s.push({x:p,y:x})}return s}T(Li,"generateCirclePoints");async function KL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(t,e,Wt(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=o.width+(e.look==="neo"?l*2:l),d=o.height+(e.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:m}=e,p=[...Li(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Li(h/2+f*2,-f,f,20,-180,-270),...Li(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Li(h/2,d/2,f,20,0,90)],x=[{x:-h/2,y:-d/2-f},{x:h/2,y:-d/2-f},...Li(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Li(h/2+f*2,-f,f,20,-180,-270),...Li(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Li(h/2,d/2,f,20,0,90),{x:h/2,y:d/2+f},{x:-h/2,y:d/2+f}],C=At.svg(i),k=It(e,{fill:"none"});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ae(p).replace("Z",""),S=C.path(w,k),A=ae(x),F=C.path(A,{...k}),E=i.insert("g",":first-child");return E.insert(()=>F,":first-child").attr("stroke-opacity",0),E.insert(()=>S,":first-child"),E.attr("class","text"),m&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),E.attr("transform",`translate(${-f}, 0)`),s.attr("transform",`translate(${-h/2+(e.padding??0)/2-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),Ot(e,E),e.intersect=function(B){return wt.polygon(e,x,B)},i}T(KL,"curlyBraceRight");function pr(t,e,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,p=t+r*Math.cos(m),x=e+r*Math.sin(m);s.push({x:-p,y:-x})}return s}T(pr,"generateCirclePoints");async function QL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(t,e,Wt(e)),l=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=o.width+(e.look==="neo"?l*2:l),d=o.height+(e.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:m}=e,p=[...pr(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},...pr(h/2+f*2,-f,f,20,-180,-270),...pr(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},...pr(h/2,d/2,f,20,0,90)],x=[...pr(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...pr(-h/2-f/2,-f,f,20,0,90),...pr(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...pr(-h/2+f+f/2,d/2,f,30,-180,-270)],C=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},...pr(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},...pr(h/2+f*2,-f,f,20,-180,-270),...pr(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:d/2},...pr(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2-f-f/2,y:d/2+f},...pr(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...pr(-h/2-f/2,-f,f,20,0,90),...pr(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...pr(-h/2+f+f/2,d/2,f,30,-180,-270)],k=At.svg(i),b=It(e,{fill:"none"});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=ae(p).replace("Z",""),A=k.path(S,b),E=ae(x).replace("Z",""),B=k.path(E,b),P=ae(C),q=k.path(P,{...b}),R=i.insert("g",":first-child");return R.insert(()=>q,":first-child").attr("stroke-opacity",0),R.insert(()=>A,":first-child"),R.insert(()=>B,":first-child"),R.attr("class","text"),m&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),R.attr("transform",`translate(${f-f/4}, 0)`),s.attr("transform",`translate(${-h/2+(e.padding??0)/2-(o.x-(o.left??0))},${-d/2+(e.padding??0)/2-(o.y-(o.top??0))})`),Ot(e,R),e.intersect=function($){return wt.polygon(e,C,$)},i}T(QL,"curlyBraces");async function ZL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i,l=20,u=5,{shapeSvg:h,bbox:d}=await Ht(t,e,Wt(e)),f=Math.max(l,(d.width+o*2)*1.25,(e==null?void 0:e.width)??0),m=Math.max(u,d.height+s*2,(e==null?void 0:e.height)??0),p=m/2,{cssStyles:x}=e,C=At.svg(h),k=It(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=f,w=m,S=b-p,A=w/4,F=[{x:S,y:0},{x:A,y:0},{x:0,y:w/2},{x:A,y:w},{x:S,y:w},...sc(-S,-w/2,p,50,270,90)],E=ae(F),B=C.path(E,k),P=h.insert(()=>B,":first-child");return P.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&P.selectChildren("path").attr("style",x),n&&e.look!=="handDrawn"&&P.selectChildren("path").attr("style",n),P.attr("transform",`translate(${-f/2}, ${-m/2})`),Ot(e,P),e.intersect=function(q){return wt.polygon(e,F,q)},h}T(ZL,"curvedTrapezoid");var TW=T((t,e,r,n,i,o)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),_W=T((t,e,r,n,i,o)=>[`M${t},${e+o}`,`M${t+r},${e+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),LW=T((t,e,r,n,i,o)=>[`M${t-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),jb=8,zb=8;async function JL(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?24:i,s=e.look==="neo"?24:i;if(e.width||e.height){const k=e.width??0;e.width=(e.width??0)-s,e.width<zb&&(e.width=zb);const w=k/2/(2.5+k/50);e.height=(e.height??0)-o-w*3,e.height<jb&&(e.height=jb)}const{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=(e.width?e.width:u.width)+s,f=d/2,m=f/(2.5+d/50),p=(e.height?e.height:u.height)+o+m;let x;const{cssStyles:C}=e;if(e.look==="handDrawn"){const k=At.svg(l),b=_W(0,0,d,p,f,m),w=LW(0,m,d,p,f,m),S=It(e,{}),A=k.path(b,S),F=k.path(w,It(e,{fill:"none"}));x=l.insert(()=>F,":first-child"),x=l.insert(()=>A,":first-child"),x.attr("class","basic label-container"),C&&x.attr("style",C)}else{const k=TW(0,0,d,p,f,m);x=l.insert("path",":first-child").attr("d",k).attr("class","basic label-container outer-path").attr("style",ur(C)).attr("style",n)}return x.attr("label-offset-y",m),x.attr("transform",`translate(${-d/2}, ${-(p/2+m)})`),Ot(e,x),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(e.padding??0)/1.5-(u.y-(u.top??0))})`),e.intersect=function(k){const b=wt.rect(e,k),w=b.x-(e.x??0);if(f!=0&&(Math.abs(w)<(e.width??0)/2||Math.abs(w)==(e.width??0)/2&&Math.abs(b.y-(e.y??0))>(e.height??0)/2-m)){let S=m*m*(1-w*w/(f*f));S>0&&(S=Math.sqrt(S)),S=m-S,k.y-(e.y??0)>0&&(S=-S),b.y+=S}return b},l}T(JL,"cylinder");async function tE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=l.width+i,d=l.height+o,f=d*.2,m=-h/2,p=-d/2-f/2,{cssStyles:x}=e,C=At.svg(s),k=It(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=[{x:m,y:p+f},{x:-m,y:p+f},{x:-m,y:-p},{x:m,y:-p},{x:m,y:p},{x:-m,y:p},{x:-m,y:p+f}],w=C.polygon(b.map(A=>[A.x,A.y]),k),S=s.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",x),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),u.attr("transform",`translate(${m+(e.padding??0)/2-(l.x-(l.left??0))}, ${p+f+(e.padding??0)/2-(l.y-(l.top??0))})`),Ot(e,S),e.intersect=function(A){return wt.rect(e,A)},s}T(tE,"dividedRectangle");async function eE(t,e){var p,x;const{labelStyles:r,nodeStyles:n}=Mt(e),i=e.look==="neo"?12:5;e.labelStyle=r;const o=e.padding??0,s=e.look==="neo"?16:o,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=(e!=null&&e.width?(e==null?void 0:e.width)/2:u.width/2)+(s??0),d=h-i;let f;const{cssStyles:m}=e;if(e.look==="handDrawn"){const C=At.svg(l),k=It(e,{roughness:.2,strokeWidth:2.5}),b=It(e,{roughness:.2,strokeWidth:1.5}),w=C.circle(0,0,h*2,k),S=C.circle(0,0,d*2,b);f=l.insert("g",":first-child"),f.attr("class",ur(e.cssClasses)).attr("style",ur(m)),(p=f.node())==null||p.appendChild(w),(x=f.node())==null||x.appendChild(S)}else{f=l.insert("g",":first-child");const C=f.insert("circle",":first-child"),k=f.insert("circle");f.attr("class","basic label-container").attr("style",n),C.attr("class","outer-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0),k.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return Ot(e,f),e.intersect=function(C){return ht.info("DoubleCircle intersect",e,h,C),wt.circle(e,h,C)},l}T(eE,"doublecircle");function rE(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=Mt(e);e.label="",e.labelStyle=n;const o=t.insert("g").attr("class",Wt(e)).attr("id",e.domId??e.id),s=7,{cssStyles:l}=e,u=At.svg(o),{nodeBorder:h}=r,d=It(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const f=u.circle(0,0,s*2,d),m=o.insert(()=>f,":first-child");return m.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",l),i&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",i),Ot(e,m),e.intersect=function(p){return ht.info("filledCircle intersect",e,{radius:s,point:p}),wt.circle(e,s,p)},o}T(rE,"filledCircle");var qb=10,Wb=10;async function nE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.height=(e==null?void 0:e.height)??0,e.height<qb&&(e.height=qb),e.width=((e==null?void 0:e.width)??0)-o-o/2,e.width<Wb&&(e.width=Wb));const{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:l.width)+(o??0),d=e!=null&&e.height?e==null?void 0:e.height:h+l.height,f=d,m=[{x:0,y:-d},{x:f,y:-d},{x:f/2,y:0}],{cssStyles:p}=e,x=At.svg(s),C=It(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=ae(m),b=x.path(k,C),w=s.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return p&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),e.width=h,e.height=d,Ot(e,w),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-d/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(S){return ht.info("Triangle intersect",e,m,S),wt.polygon(e,m,S)},s}T(nE,"flippedTriangle");function iE(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:o}=Mt(e);e.label="";const s=t.insert("g").attr("class",Wt(e)).attr("id",e.domId??e.id),{cssStyles:l}=e;let u=Math.max(70,(e==null?void 0:e.width)??0),h=Math.max(10,(e==null?void 0:e.height)??0);r==="LR"&&(u=Math.max(10,(e==null?void 0:e.width)??0),h=Math.max(70,(e==null?void 0:e.height)??0));const d=-1*u/2,f=-1*h/2,m=At.svg(s),p=It(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=m.rectangle(d,f,u,h,p),C=s.insert(()=>x,":first-child");l&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",l),o&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",o),Ot(e,C);const k=(n==null?void 0:n.padding)??0;return e.width&&e.height&&(e.width+=k/2||0,e.height+=k/2||0),e.intersect=function(b){return wt.rect(e,b)},s}T(iE,"forkJoin");async function oE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=15,o=10,s=e.look==="neo"?16:e.padding??0,l=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=((e==null?void 0:e.height)??0)-l*2,e.height<o&&(e.height=o),e.width=((e==null?void 0:e.width)??0)-s*2,e.width<i&&(e.width=i));const{shapeSvg:u,bbox:h}=await Ht(t,e,Wt(e)),d=(e!=null&&e.width?e==null?void 0:e.width:Math.max(i,h.width))+s*2,f=(e!=null&&e.height?e==null?void 0:e.height:Math.max(o,h.height))+l*2,m=f/2,{cssStyles:p}=e,x=At.svg(u),C=It(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-d/2,y:-f/2},{x:d/2-m,y:-f/2},...sc(-d/2+m,0,m,50,90,270),{x:d/2-m,y:f/2},{x:-d/2,y:f/2}],b=ae(k),w=x.path(b,C),S=u.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",n),Ot(e,S),e.intersect=function(A){return ht.info("Pill intersect",e,{radius:m,point:A}),wt.polygon(e,k,A)},u}T(oE,"halfRoundedRectangle");var EW=T((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function aE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e),i=e.look==="neo"?3.5:4;e.labelStyle=r;const o=e.padding??0,s=70,l=32,u=e.look==="neo"?s:o,h=e.look==="neo"?l:o;if(e.width||e.height){const S=(e.height??0)/i;e.width=((e==null?void 0:e.width)??0)-2*S-h,e.height=(e.height??0)-u}const{shapeSvg:d,bbox:f}=await Ht(t,e,Wt(e)),m=(e!=null&&e.height?e==null?void 0:e.height:f.height)+u,p=m/i,x=(e!=null&&e.width?e==null?void 0:e.width:f.width)+2*p+h,C=[{x:p,y:0},{x:x-p,y:0},{x,y:-m/2},{x:x-p,y:-m},{x:p,y:-m},{x:0,y:-m/2}];let k;const{cssStyles:b}=e;if(e.look==="handDrawn"){const w=At.svg(d),S=It(e,{}),A=EW(0,0,x,m,p),F=w.path(A,S);k=d.insert(()=>F,":first-child").attr("transform",`translate(${-x/2}, ${m/2})`),b&&k.attr("style",b)}else k=Ri(d,x,m,C);return n&&k.attr("style",n),e.width=x,e.height=m,Ot(e,k),e.intersect=function(w){return wt.polygon(e,C,w)},d}T(aE,"hexagon");async function sE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await Ht(t,e,Wt(e)),o=Math.max(30,(e==null?void 0:e.width)??0),s=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:l}=e,u=At.svg(i),h=It(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],f=ae(d),m=u.path(f,h),p=i.insert(()=>m,":first-child");return p.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",l),n&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-o/2}, ${-s/2})`),Ot(e,p),e.intersect=function(x){return ht.info("Pill intersect",e,{points:d}),wt.polygon(e,d,x)},i}T(sE,"hourglass");async function lE(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=Mt(e);e.labelStyle=i;const o=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;e.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,label:f}=await Ht(t,e,"icon-shape default"),m=e.pos==="t",p=l,x=l,{nodeBorder:C}=r,{stylesMap:k}=vs(e),b=-x/2,w=-p/2,S=e.label?8:0,A=At.svg(h),F=It(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const E=A.rectangle(b,w,x,p,F),B=Math.max(x,d.width),P=p+d.height+S,q=A.rectangle(-B/2,-P/2,B,P,{...F,fill:"transparent",stroke:"none"}),R=h.insert(()=>E,":first-child"),$=h.insert(()=>q);if(e.icon){const H=h.append("g");H.html(`<g>${await vc(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const Q=H.node().getBBox(),V=Q.width,W=Q.height,U=Q.x,X=Q.y;H.attr("transform",`translate(${-V/2-U},${m?d.height/2+S/2-W/2-X:-d.height/2-S/2-W/2-X})`),H.attr("style",`color: ${k.get("stroke")??C};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-P/2:P/2-d.height})`),R.attr("transform",`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),Ot(e,$),e.intersect=function(H){if(ht.info("iconSquare intersect",e,H),!e.label)return wt.rect(e,H);const Q=e.x??0,V=e.y??0,W=e.height??0;let U=[];return m?U=[{x:Q-d.width/2,y:V-W/2},{x:Q+d.width/2,y:V-W/2},{x:Q+d.width/2,y:V-W/2+d.height+S},{x:Q+x/2,y:V-W/2+d.height+S},{x:Q+x/2,y:V+W/2},{x:Q-x/2,y:V+W/2},{x:Q-x/2,y:V-W/2+d.height+S},{x:Q-d.width/2,y:V-W/2+d.height+S}]:U=[{x:Q-x/2,y:V-W/2},{x:Q+x/2,y:V-W/2},{x:Q+x/2,y:V-W/2+p},{x:Q+d.width/2,y:V-W/2+p},{x:Q+d.width/2/2,y:V+W/2},{x:Q-d.width/2,y:V+W/2},{x:Q-d.width/2,y:V-W/2+p},{x:Q-x/2,y:V-W/2+p}],wt.polygon(e,U,H)},h}T(lE,"icon");async function cE(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=Mt(e);e.labelStyle=i;const o=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;e.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,label:f}=await Ht(t,e,"icon-shape default"),m=20,p=e.label?8:0,x=e.pos==="t",{nodeBorder:C,mainBkg:k}=r,{stylesMap:b}=vs(e),w=At.svg(h),S=It(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=b.get("fill");S.stroke=A??k;const F=h.append("g");e.icon&&F.html(`<g>${await vc(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const E=F.node().getBBox(),B=E.width,P=E.height,q=E.x,R=E.y,$=Math.max(B,P)*Math.SQRT2+m*2,H=w.circle(0,0,$,S),Q=Math.max($,d.width),V=$+d.height+p,W=w.rectangle(-Q/2,-V/2,Q,V,{...S,fill:"transparent",stroke:"none"}),U=h.insert(()=>H,":first-child"),X=h.insert(()=>W);return F.attr("transform",`translate(${-B/2-q},${x?d.height/2+p/2-P/2-R:-d.height/2-p/2-P/2-R})`),F.attr("style",`color: ${b.get("stroke")??C};`),f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${x?-V/2:V/2-d.height})`),U.attr("transform",`translate(0,${x?d.height/2+p/2:-d.height/2-p/2})`),Ot(e,X),e.intersect=function(D){return ht.info("iconSquare intersect",e,D),wt.rect(e,D)},h}T(cE,"iconCircle");async function uE(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=Mt(e);e.labelStyle=i;const o=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;e.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,halfPadding:f,label:m}=await Ht(t,e,"icon-shape default"),p=e.pos==="t",x=l+f*2,C=l+f*2,{nodeBorder:k,mainBkg:b}=r,{stylesMap:w}=vs(e),S=-C/2,A=-x/2,F=e.label?8:0,E=At.svg(h),B=It(e,{});e.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const P=w.get("fill");B.stroke=P??b;const q=E.path(Co(S,A,C,x,5),B),R=Math.max(C,d.width),$=x+d.height+F,H=E.rectangle(-R/2,-$/2,R,$,{...B,fill:"transparent",stroke:"none"}),Q=h.insert(()=>q,":first-child").attr("class","icon-shape2"),V=h.insert(()=>H);if(e.icon){const W=h.append("g");W.html(`<g>${await vc(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const U=W.node().getBBox(),X=U.width,D=U.height,J=U.x,O=U.y;W.attr("transform",`translate(${-X/2-J},${p?d.height/2+F/2-D/2-O:-d.height/2-F/2-D/2-O})`),W.attr("style",`color: ${w.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-$/2:$/2-d.height})`),Q.attr("transform",`translate(0,${p?d.height/2+F/2:-d.height/2-F/2})`),Ot(e,V),e.intersect=function(W){if(ht.info("iconSquare intersect",e,W),!e.label)return wt.rect(e,W);const U=e.x??0,X=e.y??0,D=e.height??0;let J=[];return p?J=[{x:U-d.width/2,y:X-D/2},{x:U+d.width/2,y:X-D/2},{x:U+d.width/2,y:X-D/2+d.height+F},{x:U+C/2,y:X-D/2+d.height+F},{x:U+C/2,y:X+D/2},{x:U-C/2,y:X+D/2},{x:U-C/2,y:X-D/2+d.height+F},{x:U-d.width/2,y:X-D/2+d.height+F}]:J=[{x:U-C/2,y:X-D/2},{x:U+C/2,y:X-D/2},{x:U+C/2,y:X-D/2+x},{x:U+d.width/2,y:X-D/2+x},{x:U+d.width/2/2,y:X+D/2},{x:U-d.width/2,y:X+D/2},{x:U-d.width/2,y:X-D/2+x},{x:U-C/2,y:X-D/2+x}],wt.polygon(e,J,W)},h}T(uE,"iconRounded");async function hE(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=Mt(e);e.labelStyle=i;const o=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;e.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,halfPadding:f,label:m}=await Ht(t,e,"icon-shape default"),p=e.pos==="t",x=l+f*2,C=l+f*2,{nodeBorder:k,mainBkg:b}=r,{stylesMap:w}=vs(e),S=-C/2,A=-x/2,F=e.label?8:0,E=At.svg(h),B=It(e,{});e.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const P=w.get("fill");B.stroke=P??b;const q=E.path(Co(S,A,C,x,.1),B),R=Math.max(C,d.width),$=x+d.height+F,H=E.rectangle(-R/2,-$/2,R,$,{...B,fill:"transparent",stroke:"none"}),Q=h.insert(()=>q,":first-child"),V=h.insert(()=>H);if(e.icon){const W=h.append("g");W.html(`<g>${await vc(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const U=W.node().getBBox(),X=U.width,D=U.height,J=U.x,O=U.y;W.attr("transform",`translate(${-X/2-J},${p?d.height/2+F/2-D/2-O:-d.height/2-F/2-D/2-O})`),W.attr("style",`color: ${w.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-$/2:$/2-d.height})`),Q.attr("transform",`translate(0,${p?d.height/2+F/2:-d.height/2-F/2})`),Ot(e,V),e.intersect=function(W){if(ht.info("iconSquare intersect",e,W),!e.label)return wt.rect(e,W);const U=e.x??0,X=e.y??0,D=e.height??0;let J=[];return p?J=[{x:U-d.width/2,y:X-D/2},{x:U+d.width/2,y:X-D/2},{x:U+d.width/2,y:X-D/2+d.height+F},{x:U+C/2,y:X-D/2+d.height+F},{x:U+C/2,y:X+D/2},{x:U-C/2,y:X+D/2},{x:U-C/2,y:X-D/2+d.height+F},{x:U-d.width/2,y:X-D/2+d.height+F}]:J=[{x:U-C/2,y:X-D/2},{x:U+C/2,y:X-D/2},{x:U+C/2,y:X-D/2+x},{x:U+d.width/2,y:X-D/2+x},{x:U+d.width/2/2,y:X+D/2},{x:U-d.width/2,y:X+D/2},{x:U-d.width/2,y:X-D/2+x},{x:U-C/2,y:X-D/2+x}],wt.polygon(e,J,W)},h}T(hE,"iconSquare");async function dE(t,e,{config:{flowchart:r}}){const n=new Image;n.src=(e==null?void 0:e.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),o=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/o;const{labelStyles:s}=Mt(e);e.labelStyle=s;const l=r==null?void 0:r.wrappingWidth;e.defaultWidth=r==null?void 0:r.wrappingWidth;const u=Math.max(e.label?l??0:0,(e==null?void 0:e.assetWidth)??i),h=e.constraint==="on"&&e!=null&&e.assetHeight?e.assetHeight*e.imageAspectRatio:u,d=e.constraint==="on"?h/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??o;e.width=Math.max(h,l??0);const{shapeSvg:f,bbox:m,label:p}=await Ht(t,e,"image-shape default"),x=e.pos==="t",C=-h/2,k=-d/2,b=e.label?8:0,w=At.svg(f),S=It(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=w.rectangle(C,k,h,d,S),F=Math.max(h,m.width),E=d+m.height+b,B=w.rectangle(-F/2,-E/2,F,E,{...S,fill:"none",stroke:"none"}),P=f.insert(()=>A,":first-child"),q=f.insert(()=>B);if(e.img){const R=f.append("image");R.attr("href",e.img),R.attr("width",h),R.attr("height",d),R.attr("preserveAspectRatio","none"),R.attr("transform",`translate(${-h/2},${x?E/2-d:-E/2})`)}return p.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-d/2-m.height/2-b/2:d/2-m.height/2+b/2})`),P.attr("transform",`translate(0,${x?m.height/2+b/2:-m.height/2-b/2})`),Ot(e,q),e.intersect=function(R){if(ht.info("iconSquare intersect",e,R),!e.label)return wt.rect(e,R);const $=e.x??0,H=e.y??0,Q=e.height??0;let V=[];return x?V=[{x:$-m.width/2,y:H-Q/2},{x:$+m.width/2,y:H-Q/2},{x:$+m.width/2,y:H-Q/2+m.height+b},{x:$+h/2,y:H-Q/2+m.height+b},{x:$+h/2,y:H+Q/2},{x:$-h/2,y:H+Q/2},{x:$-h/2,y:H-Q/2+m.height+b},{x:$-m.width/2,y:H-Q/2+m.height+b}]:V=[{x:$-h/2,y:H-Q/2},{x:$+h/2,y:H-Q/2},{x:$+h/2,y:H-Q/2+d},{x:$+m.width/2,y:H-Q/2+d},{x:$+m.width/2/2,y:H+Q/2},{x:$-m.width/2,y:H+Q/2},{x:$-m.width/2,y:H-Q/2+d},{x:$-h/2,y:H-Q/2+d}],wt.polygon(e,V,R)},f}T(dE,"imageSquare");async function fE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=i,s=e.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=Math.max(u.width+(s??0)*2,(e==null?void 0:e.width)??0),d=Math.max(u.height+(o??0)*2,(e==null?void 0:e.height)??0),f=[{x:0,y:0},{x:h,y:0},{x:h+3*d/6,y:-d},{x:-3*d/6,y:-d}];let m;const{cssStyles:p}=e;if(e.look==="handDrawn"){const x=At.svg(l),C=It(e,{}),k=ae(f),b=x.path(k,C);m=l.insert(()=>b,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),p&&m.attr("style",p)}else m=Ri(l,h,d,f);return n&&m.attr("style",n),e.width=h,e.height=d,Ot(e,m),e.intersect=function(x){return wt.polygon(e,f,x)},l}T(fE,"inv_trapezoid");async function Sc(t,e,r){const{labelStyles:n,nodeStyles:i}=Mt(e);e.labelStyle=n;const{shapeSvg:o,bbox:s}=await Ht(t,e,Wt(e)),l=Math.max(s.width+r.labelPaddingX*2,(e==null?void 0:e.width)||0),u=Math.max(s.height+r.labelPaddingY*2,(e==null?void 0:e.height)||0),h=-l/2,d=-u/2;let f,{rx:m,ry:p}=e;const{cssStyles:x}=e;if(r!=null&&r.rx&&r.ry&&(m=r.rx,p=r.ry),e.look==="handDrawn"){const C=At.svg(o),k=It(e,{}),b=m||p?C.path(Co(h,d,l,u,m||0),k):C.rectangle(h,d,l,u,k);f=o.insert(()=>b,":first-child"),f.attr("class","basic label-container").attr("style",ur(x))}else f=o.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",i).attr("rx",ur(m)).attr("ry",ur(p)).attr("x",h).attr("y",d).attr("width",l).attr("height",u);return Ot(e,f),e.calcIntersect=function(C,k){return wt.rect(C,k)},e.intersect=function(C){return wt.rect(e,C)},o}T(Sc,"drawRect");async function pE(t,e){const{shapeSvg:r,bbox:n,label:i}=await Ht(t,e,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Ot(e,o),e.intersect=function(u){return wt.rect(e,u)},r}T(pE,"labelRect");async function gE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=i,s=e.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.height)??u.height)+o,d=((e==null?void 0:e.width)??u.width)+s,f=[{x:0,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:-(3*h)/6,y:-h}];let m;const{cssStyles:p}=e;if(e.look==="handDrawn"){const x=At.svg(l),C=It(e,{}),k=ae(f),b=x.path(k,C);m=l.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),p&&m.attr("style",p)}else m=Ri(l,d,h,f);return n&&m.attr("style",n),e.width=d,e.height=h,Ot(e,m),e.intersect=function(x){return wt.polygon(e,f,x)},l}T(gE,"lean_left");async function mE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=i,s=e.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.height)??u.height)+o,d=((e==null?void 0:e.width)??u.width)+s,f=[{x:-3*h/6,y:0},{x:d,y:0},{x:d+3*h/6,y:-h},{x:0,y:-h}];let m;const{cssStyles:p}=e;if(e.look==="handDrawn"){const x=At.svg(l),C=It(e,{}),k=ae(f),b=x.path(k,C);m=l.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),p&&m.attr("style",p)}else m=Ri(l,d,h,f);return n&&m.attr("style",n),e.width=d,e.height=h,Ot(e,m),e.intersect=function(x){return wt.polygon(e,f,x)},l}T(mE,"lean_right");function yE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",Wt(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,s=Math.max(35,(e==null?void 0:e.width)??0),l=Math.max(35,(e==null?void 0:e.height)??0),u=7,h=[{x:s,y:0},{x:0,y:l+u/2},{x:s-2*u,y:l+u/2},{x:0,y:2*l},{x:s,y:l-u/2},{x:2*u,y:l-u/2}],d=At.svg(i),f=It(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const m=ae(h),p=d.path(m,f),x=i.insert(()=>p,":first-child");return x.attr("class","outer-path"),o&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",o),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(-${s/2},${-l})`),Ot(e,x),e.intersect=function(C){return ht.info("lightningBolt intersect",e,C),wt.polygon(e,h,C)},i}T(yE,"lightningBolt");var BW=T((t,e,r,n,i,o,s)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+o+s}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),AW=T((t,e,r,n,i,o,s)=>[`M${t},${e+o}`,`M${t+r},${e+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+o+s}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),FW=T((t,e,r,n,i,o)=>[`M${t-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Hb=10,Ub=10;async function xE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?24:i;if(e.width||e.height){const b=e.width??0;e.width=(e.width??0)-o,e.width<Ub&&(e.width=Ub);const S=b/2/(2.5+b/50);e.height=(e.height??0)-s-S*3,e.height<Hb&&(e.height=Hb)}const{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=(e!=null&&e.width?e==null?void 0:e.width:u.width)+o*2,f=d/2,m=f/(2.5+d/50),p=(e!=null&&e.height?e==null?void 0:e.height:u.height)+m+s*2,x=p*.1;let C;const{cssStyles:k}=e;if(e.look==="handDrawn"){const b=At.svg(l),w=AW(0,0,d,p,f,m,x),S=FW(0,m,d,p,f,m),A=It(e,{}),F=b.path(w,A),E=b.path(S,A);l.insert(()=>E,":first-child").attr("class","line"),C=l.insert(()=>F,":first-child"),C.attr("class","basic label-container"),k&&C.attr("style",k)}else{const b=BW(0,0,d,p,f,m,x);C=l.insert("path",":first-child").attr("d",b).attr("class","basic label-container outer-path").attr("style",ur(k)).attr("style",n)}return C.attr("label-offset-y",m),C.attr("transform",`translate(${-d/2}, ${-(p/2+m)})`),Ot(e,C),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+m-(u.y-(u.top??0))})`),e.intersect=function(b){const w=wt.rect(e,b),S=w.x-(e.x??0);if(f!=0&&(Math.abs(S)<(e.width??0)/2||Math.abs(S)==(e.width??0)/2&&Math.abs(w.y-(e.y??0))>(e.height??0)/2-m)){let A=m*m*(1-S*S/(f*f));A>0&&(A=Math.sqrt(A)),A=m-A,b.y-(e.y??0)>0&&(A=-A),w.y+=A}return w},l}T(xE,"linedCylinder");async function CE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i;if(e.width||e.height){const A=e.width;e.width=(A??0)*10/11-o*2,e.width<10&&(e.width=10),e.height=((e==null?void 0:e.height)??0)-s*2,e.height<10&&(e.height=10)}const{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=(e!=null&&e.width?e==null?void 0:e.width:u.width)+(o??0)*2,f=(e!=null&&e.height?e==null?void 0:e.height:u.height)+(s??0)*2,m=e.look==="neo"?f/4:f/8,p=f+m,{cssStyles:x}=e,C=At.svg(l),k=It(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...mo(-d/2-d/2*.1,p/2,d/2+d/2*.1,p/2,m,.8),{x:d/2+d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:-p/2},{x:-d/2,y:-p/2},{x:-d/2,y:p/2*1.1},{x:-d/2,y:-p/2}],w=C.polygon(b.map(A=>[A.x,A.y]),k),S=l.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",x),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-m/2})`),h.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*.1/2-(u.x-(u.left??0))},${-f/2+(e.padding??0)-m/2-(u.y-(u.top??0))})`),Ot(e,S),e.intersect=function(A){return wt.polygon(e,b,A)},l}T(CE,"linedWaveEdgedRect");async function kE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i,l=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-o*2-2*l,10),e.height=Math.max(((e==null?void 0:e.height)??0)-s*2-2*l,10));const{shapeSvg:u,bbox:h,label:d}=await Ht(t,e,Wt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:h.width)+o*2+2*l,m=(e!=null&&e.height?e==null?void 0:e.height:h.height)+s*2+2*l,p=f-2*l,x=m-2*l,C=-p/2,k=-x/2,{cssStyles:b}=e,w=At.svg(u),S=It(e,{}),A=[{x:C-l,y:k+l},{x:C-l,y:k+x+l},{x:C+p-l,y:k+x+l},{x:C+p-l,y:k+x},{x:C+p,y:k+x},{x:C+p,y:k+x-l},{x:C+p+l,y:k+x-l},{x:C+p+l,y:k-l},{x:C+l,y:k-l},{x:C+l,y:k},{x:C,y:k},{x:C,y:k+l}],F=[{x:C,y:k+l},{x:C+p-l,y:k+l},{x:C+p-l,y:k+x},{x:C+p,y:k+x},{x:C+p,y:k},{x:C,y:k}];e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const E=ae(A);let B=w.path(E,S);const P=ae(F);let q=w.path(P,S);e.look!=="handDrawn"&&(B=ny(B),q=ny(q));const R=u.insert("g",":first-child");return R.insert(()=>B),R.insert(()=>q),R.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(h.width/2)-l-(h.x-(h.left??0))}, ${-(h.height/2)+l-(h.y-(h.top??0))})`),Ot(e,R),e.intersect=function($){return wt.polygon(e,A,$)},u}T(kE,"multiRect");async function bE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(t,e,Wt(e)),l=e.padding??0,u=e.look==="neo"?16:l,h=e.look==="neo"?12:l;let d=!0;(e.width||e.height)&&(d=!1,e.width=((e==null?void 0:e.width)??0)-u*2,e.height=((e==null?void 0:e.height)??0)-h*3);const f=Math.max(o.width,(e==null?void 0:e.width)??0)+u*2,m=Math.max(o.height,(e==null?void 0:e.height)??0)+h*3,p=e.look==="neo"?m/4:m/8,x=m+(d?p/2:-p/2),C=-f/2,k=-x/2,b=10,{cssStyles:w}=e,S=mo(C-b,k+x+b,C+f-b,k+x+b,p,.8),A=S==null?void 0:S[S.length-1],F=[{x:C-b,y:k+b},{x:C-b,y:k+x+b},...S,{x:C+f-b,y:A.y-b},{x:C+f,y:A.y-b},{x:C+f,y:A.y-2*b},{x:C+f+b,y:A.y-2*b},{x:C+f+b,y:k-b},{x:C+b,y:k-b},{x:C+b,y:k},{x:C,y:k},{x:C,y:k+b}],E=[{x:C,y:k+b},{x:C+f-b,y:k+b},{x:C+f-b,y:A.y-b},{x:C+f,y:A.y-b},{x:C+f,y:k},{x:C,y:k}],B=At.svg(i),P=It(e,{});e.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const q=ae(F),R=B.path(q,P),$=ae(E),H=B.path($,P),Q=i.insert(()=>R,":first-child");return Q.insert(()=>H),Q.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn"&&Q.selectAll("path").attr("style",w),n&&e.look!=="handDrawn"&&Q.selectAll("path").attr("style",n),Q.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(o.width/2)-b-(o.x-(o.left??0))}, ${-(o.height/2)+b-p/2-(o.y-(o.top??0))})`),Ot(e,Q),e.intersect=function(V){return wt.polygon(e,F,V)},i}T(bE,"multiWaveEdgedRectangle");async function vE(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=Mt(e);e.labelStyle=n,e.useHtmlLabels||$r(Pe())||(e.centerLabel=!0);const{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=Math.max(l.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),d=Math.max(l.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),f=-h/2,m=-d/2,{cssStyles:p}=e,x=At.svg(s),C=It(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=x.rectangle(f,m,h,d,C),b=s.insert(()=>k,":first-child");return b.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ot(e,b),e.intersect=function(w){return wt.rect(e,w)},s}T(vE,"note");var IW=T((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function wE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o}=await Ht(t,e,Wt(e)),s=o.width+(e.padding??0),l=o.height+(e.padding??0),u=s+l,h=.5,d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];let f;const{cssStyles:m}=e;if(e.look==="handDrawn"){const p=At.svg(i),x=It(e,{}),C=IW(0,0,u),k=p.path(C,x);f=i.insert(()=>k,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),m&&f.attr("style",m)}else f=Ri(i,u,u,d),f.attr("transform",`translate(${-u/2+h}, ${u/2})`);return n&&f.attr("style",n),Ot(e,f),e.calcIntersect=function(p,x){const C=p.width,k=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],b=wt.polygon(p,k,x);return{x:b.x-.5,y:b.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},i}T(wE,"question");async function SE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?21:i??0,s=e.look==="neo"?12:i??0,{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=((e==null?void 0:e.width)??u.width)+(e.look==="neo"?o*2:o),f=((e==null?void 0:e.height)??u.height)+(e.look==="neo"?s*2:s),m=-d/2,p=-f/2,x=p/2,C=[{x:m+x,y:p},{x:m,y:0},{x:m+x,y:-p},{x:-m,y:-p},{x:-m,y:p}],{cssStyles:k}=e,b=At.svg(l),w=It(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=ae(C),A=b.path(S,w),F=l.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),k&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",k),n&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(${-x/2},0)`),h.attr("transform",`translate(${-x/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),Ot(e,F),e.intersect=function(E){return wt.polygon(e,C,E)},l}T(SE,"rect_left_inv_arrow");async function TE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const o=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=o.insert("g"),l=o.insert("g").attr("class","label").attr("style",n),u=e.description,h=e.label,d=await so(l,h,e.labelStyle,!0,!0);let f={width:0,height:0};if($r(ue())){const P=d.children[0],q=Zt(d);f=P.getBoundingClientRect(),q.attr("width",f.width),q.attr("height",f.height)}ht.info("Text 2",u);const m=u||[],p=d.getBBox(),x=await so(l,Array.isArray(m)?m.join("<br/>"):m,e.labelStyle,!0,!0),C=x.children[0],k=Zt(x);f=C.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height);const b=(e.padding||0)/2;Zt(x).attr("transform","translate( "+(f.width>p.width?0:(p.width-f.width)/2)+", "+(p.height+b+5)+")"),Zt(d).attr("transform","translate( "+(f.width<p.width?0:-(p.width-f.width)/2)+", 0)"),f=l.node().getBBox(),l.attr("transform","translate("+-f.width/2+", "+(-f.height/2-b+3)+")");const w=f.width+(e.padding||0),S=f.height+(e.padding||0),A=-f.width/2-b,F=-f.height/2-b;let E,B;if(e.look==="handDrawn"){const P=At.svg(o),q=It(e,{}),R=P.path(Co(A,F,w,S,e.rx||0),q),$=P.line(-f.width/2-b,-f.height/2-b+p.height+b,f.width/2+b,-f.height/2-b+p.height+b,q);B=o.insert(()=>(ht.debug("Rough node insert CXC",R),$),":first-child"),E=o.insert(()=>(ht.debug("Rough node insert CXC",R),R),":first-child")}else E=s.insert("rect",":first-child"),B=s.insert("line"),E.attr("class","outer title-state").attr("style",n).attr("x",-f.width/2-b).attr("y",-f.height/2-b).attr("width",f.width+(e.padding||0)).attr("height",f.height+(e.padding||0)),B.attr("class","divider").attr("x1",-f.width/2-b).attr("x2",f.width/2+b).attr("y1",-f.height/2-b+p.height+b).attr("y2",-f.height/2-b+p.height+b);return Ot(e,E),e.intersect=function(P){return wt.rect(e,P)},o}T(TE,"rectWithTitle");async function _E(t,e,{config:{themeVariables:r}}){const n=(r==null?void 0:r.radius)??5,i={rx:n,ry:n,labelPaddingX:((e==null?void 0:e.padding)??0)*1,labelPaddingY:((e==null?void 0:e.padding)??0)*1};return Sc(t,e,i)}T(_E,"roundedRect");var Do=8;async function LE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.width)??l.width)+i*2+(e.look==="neo"?Do:Do*2),d=((e==null?void 0:e.height)??l.height)+o*2,f=h-Do,m=d,p=Do-h/2,x=-d/2,{cssStyles:C}=e,k=At.svg(s),b=It(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:p,y:x},{x:p+f,y:x},{x:p+f,y:x+m},{x:p-Do,y:x+m},{x:p-Do,y:x},{x:p,y:x},{x:p,y:x+m}],S=k.polygon(w.map(F=>[F.x,F.y]),b),A=s.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path").attr("style",ur(C)),n&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",n),C&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",n),u.attr("transform",`translate(${Do/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ot(e,A),e.intersect=function(F){return wt.rect(e,F)},s}T(LE,"shadedProcess");async function EE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-o*2,10),e.height=Math.max(((e==null?void 0:e.height)??0)/1.5-s*2,10));const{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=(e!=null&&e.width?e==null?void 0:e.width:u.width)+o*2,f=((e!=null&&e.height?e==null?void 0:e.height:u.height)+s*2)*1.5,m=d,p=f/1.5,x=-m/2,C=-p/2,{cssStyles:k}=e,b=At.svg(l),w=It(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x,y:C},{x,y:C+p},{x:x+m,y:C+p},{x:x+m,y:C-p/2}],A=ae(S),F=b.path(A,w),E=l.insert(()=>F,":first-child");return E.attr("class","basic label-container outer-path"),k&&e.look!=="handDrawn"&&E.selectChildren("path").attr("style",k),n&&e.look!=="handDrawn"&&E.selectChildren("path").attr("style",n),E.attr("transform",`translate(0, ${p/4})`),h.attr("transform",`translate(${-m/2+(e.padding??0)-(u.x-(u.left??0))}, ${-p/4+(e.padding??0)-(u.y-(u.top??0))})`),Ot(e,E),e.intersect=function(B){return wt.polygon(e,S,B)},l}T(EE,"slopedRect");async function BE(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,i=e.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:i};return Sc(t,e,o)}T(BE,"squareRect");async function AE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?20:i,s=e.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=u.height+(e.look==="neo"?s*2:s),d=u.width+h/4+(e.look==="neo"?o*2:o),f=h/2,{cssStyles:m}=e,p=At.svg(l),x=It(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-d/2+f,y:-h/2},{x:d/2-f,y:-h/2},...sc(-d/2+f,0,f,50,90,270),{x:d/2-f,y:h/2},...sc(d/2-f,0,f,50,270,450)],k=ae(C),b=p.path(k,x),w=l.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",m),n&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),Ot(e,w),e.intersect=function(S){return wt.polygon(e,C,S)},l}T(AE,"stadium");async function FE(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return Sc(t,e,r)}T(FE,"state");function IE(t,e,{config:{themeVariables:r}}){var w,S;const{labelStyles:n,nodeStyles:i}=Mt(e);e.labelStyle=n;const{cssStyles:o}=e,{lineColor:s,stateBorder:l,nodeBorder:u,nodeShadow:h}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const d=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),f=At.svg(d),m=It(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const p=f.circle(0,0,e.width,{...m,stroke:s,strokeWidth:2}),x=l??u,C=(e.width??0)*5/14,k=f.circle(0,0,C,{...m,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),b=d.insert(()=>p,":first-child");if(b.insert(()=>k),e.look!=="handDrawn"&&b.attr("class","outer-path"),o&&b.selectAll("path").attr("style",o),i&&b.selectAll("path").attr("style",i),e.width<25&&h&&e.look!=="handDrawn"){const A=((S=(w=t.node())==null?void 0:w.ownerSVGElement)==null?void 0:S.id)??"",F=A?`${A}-drop-shadow-small`:"drop-shadow-small";b.attr("style",`filter:url(#${F})`)}return Ot(e,b),e.intersect=function(A){return wt.circle(e,(e.width??0)/2,A)},d}T(IE,"stateEnd");function ME(t,e,{config:{themeVariables:r}}){var l,u;const{lineColor:n,nodeShadow:i}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const d=At.svg(o).circle(0,0,e.width,z7(n));s=o.insert(()=>d),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=o.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&i&&e.look!=="handDrawn"){const h=((u=(l=t.node())==null?void 0:l.ownerSVGElement)==null?void 0:u.id)??"",d=h?`${h}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${d})`)}return Ot(e,s),e.intersect=function(h){return wt.circle(e,(e.width??7)/2,h)},o}T(ME,"stateStart");var Ra=8;async function OE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=(e==null?void 0:e.padding)??8,o=e.look==="neo"?28:i,s=e.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.width)??u.width)+2*Ra+o,d=((e==null?void 0:e.height)??u.height)+s,f=h-2*Ra,m=d,p=-h/2,x=-d/2,C=[{x:0,y:0},{x:f,y:0},{x:f,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-m},{x:-8,y:-m},{x:-8,y:0}];if(e.look==="handDrawn"){const k=At.svg(l),b=It(e,{}),w=k.rectangle(p,x,f+16,m,b),S=k.line(p+Ra,x,p+Ra,x+m,b),A=k.line(p+Ra+f,x,p+Ra+f,x+m,b);l.insert(()=>S,":first-child"),l.insert(()=>A,":first-child");const F=l.insert(()=>w,":first-child"),{cssStyles:E}=e;F.attr("class","basic label-container").attr("style",ur(E)),Ot(e,F)}else{const k=Ri(l,f,m,C);n&&k.attr("style",n),Ot(e,k)}return e.intersect=function(k){return wt.polygon(e,C,k)},l}T(OE,"subroutine");var tg=.2;async function NE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.height=Math.max(((e==null?void 0:e.height)??0)-s*2,10),e.width=Math.max(((e==null?void 0:e.width)??0)-o*2-tg*(e.height+s*2),10));const{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=(e!=null&&e.height?e==null?void 0:e.height:u.height)+s*2,d=tg*h,f=tg*h,p=(e!=null&&e.width?e==null?void 0:e.width:u.width)+o*2+d-d,x=h,C=-p/2,k=-x/2,{cssStyles:b}=e,w=At.svg(l),S=It(e,{}),A=[{x:C-d/2,y:k},{x:C+p+d/2,y:k},{x:C+p+d/2,y:k+x},{x:C-d/2,y:k+x}],F=[{x:C+p-d/2,y:k+x},{x:C+p+d/2,y:k+x},{x:C+p+d/2,y:k+x-f}];e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const E=ae(A),B=w.path(E,S),P=ae(F),q=w.path(P,{...S,fillStyle:"solid"}),R=l.insert(()=>q,":first-child");return R.insert(()=>B,":first-child"),R.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",b),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),Ot(e,R),e.intersect=function($){return wt.polygon(e,A,$)},l}T(NE,"taggedRect");async function RE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(t,e,Wt(e)),l=Math.max(o.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),u=Math.max(o.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=u/8,d=.2*l,f=.2*u,m=u+h,{cssStyles:p}=e,x=At.svg(i),C=It(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-l/2-l/2*.1,y:m/2},...mo(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,h,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],b=-l/2+l/2*.1,w=-m/2-f*.4,S=[{x:b+l-d,y:(w+u)*1.3},{x:b+l,y:w+u-f},{x:b+l,y:(w+u)*.9},...mo(b+l,(w+u)*1.25,b+l-d,(w+u)*1.3,-u*.02,.5)],A=ae(k),F=x.path(A,C),E=ae(S),B=x.path(E,{...C,fillStyle:"solid"}),P=i.insert(()=>B,":first-child");return P.insert(()=>F,":first-child"),P.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))},${-u/2+(e.padding??0)-h/2-(o.y-(o.top??0))})`),Ot(e,P),e.intersect=function(q){return wt.polygon(e,k,q)},i}T(RE,"taggedWaveEdgedRectangle");async function PE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o}=await Ht(t,e,Wt(e)),s=Math.max(o.width+(e.padding??0),(e==null?void 0:e.width)||0),l=Math.max(o.height+(e.padding??0),(e==null?void 0:e.height)||0),u=-s/2,h=-l/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",l),Ot(e,d),e.intersect=function(f){return wt.rect(e,f)},i}T(PE,"text");var MW=T((t,e,r,n,i,o)=>`M${t},${e}
405
- a${i},${o} 0,0,1 0,${-n}
406
- l${r},0
407
- a${i},${o} 0,0,1 0,${n}
408
- M${r},${-n}
409
- a${i},${o} 0,0,0 0,${n}
410
- l${-r},0`,"createCylinderPathD"),OW=T((t,e,r,n,i,o)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${o} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${o} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),NW=T((t,e,r,n,i,o)=>[`M${t+r/2},${-n/2}`,`a${i},${o} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),Vb=5,Yb=10;async function DE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?12:i/2;if(e.width||e.height){const C=e.height??0;e.height=(e.height??0)-o,e.height<Vb&&(e.height=Vb);const b=C/2/(2.5+C/50);e.width=(e.width??0)-o-b*3,e.width<Yb&&(e.width=Yb)}const{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=(e.height?e.height:l.height)+o,d=h/2,f=d/(2.5+h/50),m=(e.width?e.width:l.width)+f+o,{cssStyles:p}=e;let x;if(e.look==="handDrawn"){const C=At.svg(s),k=OW(0,0,m,h,f,d),b=NW(0,0,m,h,f,d),w=C.path(k,It(e,{})),S=C.path(b,It(e,{fill:"none"}));x=s.insert(()=>S,":first-child"),x=s.insert(()=>w,":first-child"),x.attr("class","basic label-container"),p&&x.attr("style",p)}else{const C=MW(0,0,m,h,f,d);x=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",ur(p)).attr("style",n),x.attr("class","basic label-container outer-path"),p&&x.selectAll("path").attr("style",p),n&&x.selectAll("path").attr("style",n)}return x.attr("label-offset-x",f),x.attr("transform",`translate(${-m/2}, ${h/2} )`),u.attr("transform",`translate(${-(l.width/2)-f-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ot(e,x),e.intersect=function(C){const k=wt.rect(e,C),b=k.y-(e.y??0);if(d!=0&&(Math.abs(b)<(e.height??0)/2||Math.abs(b)==(e.height??0)/2&&Math.abs(k.x-(e.x??0))>(e.width??0)/2-f)){let w=f*f*(1-b*b/(d*d));w!=0&&(w=Math.sqrt(Math.abs(w))),w=f-w,C.x-(e.x??0)>0&&(w=-w),k.x+=w}return k},s}T(DE,"tiltedCylinder");async function $E(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=(e.look==="neo",i),s=e.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=((e==null?void 0:e.height)??u.height)+o,d=((e==null?void 0:e.width)??u.width)+s,f=[{x:-3*h/6,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:0,y:-h}];let m;const{cssStyles:p}=e;if(e.look==="handDrawn"){const x=At.svg(l),C=It(e,{}),k=ae(f),b=x.path(k,C);m=l.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),p&&m.attr("style",p)}else m=Ri(l,d,h,f);return n&&m.attr("style",n),e.width=d,e.height=h,Ot(e,m),e.intersect=function(x){return wt.polygon(e,f,x)},l}T($E,"trapezoid");async function jE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i,l=15,u=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.height<u&&(e.height=u),e.width=(e.width??0)-o*2,e.width<l&&(e.width=l));const{shapeSvg:h,bbox:d}=await Ht(t,e,Wt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:d.width)+o*2,m=(e!=null&&e.height?e==null?void 0:e.height:d.height)+s*2,{cssStyles:p}=e,x=At.svg(h),C=It(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-f/2*.8,y:-m/2},{x:f/2*.8,y:-m/2},{x:f/2,y:-m/2*.6},{x:f/2,y:m/2},{x:-f/2,y:m/2},{x:-f/2,y:-m/2*.6}],b=ae(k),w=x.path(b,C),S=h.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",n),Ot(e,S),e.intersect=function(A){return wt.polygon(e,k,A)},h}T(jE,"trapezoidalPentagon");var Gb=10,Xb=10;async function zE(t,e){var A;const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.width=(((e==null?void 0:e.width)??0)-o)/2,e.width<Xb&&(e.width=Xb),e.height=(e==null?void 0:e.height)??0,e.height<Gb&&(e.height=Gb));const{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=Mi((A=ue().flowchart)==null?void 0:A.htmlLabels),d=(e!=null&&e.width?e==null?void 0:e.width:l.width)+o,f=e!=null&&e.height?e==null?void 0:e.height:d+l.height,m=f,p=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-f}],{cssStyles:x}=e,C=At.svg(s),k=It(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=ae(p),w=C.path(b,k),S=s.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return x&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",x),n&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",n),e.width=d,e.height=f,Ot(e,S),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${f/2-(l.height+(e.padding??0)/(h?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(F){return ht.info("Triangle intersect",e,p,F),wt.polygon(e,p,F)},s}T(zE,"triangle");async function qE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?12:i;let l=!0;(e.width||e.height)&&(l=!1,e.width=((e==null?void 0:e.width)??0)-o*2,e.width<10&&(e.width=10),e.height=((e==null?void 0:e.height)??0)-s*2,e.height<10&&(e.height=10));const{shapeSvg:u,bbox:h,label:d}=await Ht(t,e,Wt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:h.width)+(o??0)*2,m=(e!=null&&e.height?e==null?void 0:e.height:h.height)+(s??0)*2,p=e.look==="neo"?m/4:m/8,x=m+(l?p:-p),{cssStyles:C}=e,b=14-f,w=b>0?b/2:0,S=At.svg(u),A=It(e,{});e.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const F=[{x:-f/2-w,y:x/2},...mo(-f/2-w,x/2,f/2+w,x/2,p,.8),{x:f/2+w,y:-x/2},{x:-f/2-w,y:-x/2}],E=ae(F),B=S.path(E,A),P=u.insert(()=>B,":first-child");return P.attr("class","basic label-container outer-path"),C&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",C),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-f/2+(e.padding??0)-(h.x-(h.left??0))},${-m/2+(e.padding??0)-p-(h.y-(h.top??0))})`),Ot(e,P),e.intersect=function(q){return wt.polygon(e,F,q)},u}T(qE,"waveEdgedRectangle");async function WE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.padding??0,o=e.look==="neo"?16:i,s=e.look==="neo"?20:i;if(e.width||e.height){e.width=(e==null?void 0:e.width)??0,e.width<20&&(e.width=20),e.height=(e==null?void 0:e.height)??0,e.height<10&&(e.height=10);const A=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-A*(20/9)),e.width=e.width-o*2}const{shapeSvg:l,bbox:u}=await Ht(t,e,Wt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:u.width)+o*2,d=(e!=null&&e.height?e==null?void 0:e.height:u.height)+s,f=d/8,m=d+f*2,{cssStyles:p}=e,x=At.svg(l),C=It(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-h/2,y:m/2},...mo(-h/2,m/2,h/2,m/2,f,1),{x:h/2,y:-m/2},...mo(h/2,-m/2,-h/2,-m/2,f,-1)],b=ae(k),w=x.path(b,C),S=l.insert(()=>w,":first-child");return S.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),Ot(e,S),e.intersect=function(A){return wt.polygon(e,k,A)},l}T(WE,"waveRectangle");var ze=10;async function HE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-i*2-ze,10),e.height=Math.max(((e==null?void 0:e.height)??0)-o*2-ze,10));const{shapeSvg:s,bbox:l,label:u}=await Ht(t,e,Wt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:l.width)+i*2+ze,d=(e!=null&&e.height?e==null?void 0:e.height:l.height)+o*2+ze,f=h-ze,m=d-ze,p=-f/2,x=-m/2,{cssStyles:C}=e,k=At.svg(s),b=It(e,{}),w=[{x:p-ze,y:x-ze},{x:p-ze,y:x+m},{x:p+f,y:x+m},{x:p+f,y:x-ze}],S=`M${p-ze},${x-ze} L${p+f},${x-ze} L${p+f},${x+m} L${p-ze},${x+m} L${p-ze},${x-ze}
411
- M${p-ze},${x} L${p+f},${x}
412
- M${p},${x-ze} L${p},${x+m}`;e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const A=k.path(S,b),F=s.insert(()=>A,":first-child");return F.attr("transform",`translate(${ze/2}, ${ze/2})`),F.attr("class","basic label-container outer-path"),C&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",C),n&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",n),u.attr("transform",`translate(${-(l.width/2)+ze/2-(l.x-(l.left??0))}, ${-(l.height/2)+ze/2-(l.y-(l.top??0))})`),Ot(e,F),e.intersect=function(E){return wt.polygon(e,w,E)},s}T(HE,"windowPane");var Kb=new Set(["redux-color","redux-dark-color"]),RW=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function $x(t,e){var mt,St,Tt,Dt;const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:i}=Pe(),{rowEven:o,rowOdd:s,nodeBorder:l,borderColorArray:u}=i;if(e.look==="handDrawn"){const{themeVariables:xt}=Pe(),{background:Lt}=xt,re={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Lt}`]};await $x(t,re)}const h=Pe();e.useHtmlLabels=h.htmlLabels;let d=((mt=h.er)==null?void 0:mt.diagramPadding)??10,f=((St=h.er)==null?void 0:St.entityPadding)??6;const{cssStyles:m}=e,{labelStyles:p,nodeStyles:x}=Mt(e);if(r.attributes.length===0&&e.label){const xt={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};Fi(e.label,h)+xt.labelPaddingX*2<h.er.minEntityWidth&&(e.width=h.er.minEntityWidth);const Lt=await Sc(t,e,xt);if(n!=null&&Kb.has(n)){const re=r.colorIndex??0;Lt.attr("data-color-id",`color-${re%u.length}`)}if(!Mi(h.htmlLabels)){const re=Lt.select("text"),Qt=(Tt=re.node())==null?void 0:Tt.getBBox();re.attr("transform",`translate(${-Qt.width/2}, 0)`)}return Lt}h.htmlLabels||(d*=1.25,f*=1.25);let C=Wt(e);C||(C="node default");const k=t.insert("g").attr("class",C).attr("id",e.domId||e.id),b=await za(k,e.label??"",h,0,0,["name"],p);b.height+=f;let w=0;const S=[],A=[];let F=0,E=0,B=0,P=0,q=!0,R=!0;for(const xt of r.attributes){const Lt=await za(k,xt.type,h,0,w,["attribute-type"],p);F=Math.max(F,Lt.width+d);const re=await za(k,xt.name,h,0,w,["attribute-name"],p);E=Math.max(E,re.width+d);const Qt=await za(k,xt.keys.join(),h,0,w,["attribute-keys"],p);B=Math.max(B,Qt.width+d);const Ye=await za(k,xt.comment,h,0,w,["attribute-comment"],p);P=Math.max(P,Ye.width+d);const ke=Math.max(Lt.height,re.height,Qt.height,Ye.height)+f;A.push({yOffset:w,rowHeight:ke}),w+=ke}let $=4;B<=d&&(q=!1,B=0,$--),P<=d&&(R=!1,P=0,$--);const H=k.node().getBBox();if(b.width+d*2-(F+E+B+P)>0){const xt=b.width+d*2-(F+E+B+P);F+=xt/$,E+=xt/$,B>0&&(B+=xt/$),P>0&&(P+=xt/$)}const Q=F+E+B+P,V=At.svg(k),W=It(e,{});e.look!=="handDrawn"&&(W.roughness=0,W.fillStyle="solid");let U=0;A.length>0&&(U=A.reduce((xt,Lt)=>xt+((Lt==null?void 0:Lt.rowHeight)??0),0));const X=Math.max(H.width+d*2,(e==null?void 0:e.width)||0,Q),D=Math.max((U??0)+b.height,(e==null?void 0:e.height)||0),J=-X/2,O=-D/2;if(k.selectAll("g:not(:first-child)").each((xt,Lt,re)=>{const Qt=Zt(re[Lt]),Ye=Qt.attr("transform");let ke=0,qe=0;if(Ye){const Me=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ye);Me&&(ke=parseFloat(Me[1]),qe=parseFloat(Me[2]),Qt.attr("class").includes("attribute-name")?ke+=F:Qt.attr("class").includes("attribute-keys")?ke+=F+E:Qt.attr("class").includes("attribute-comment")&&(ke+=F+E+B))}Qt.attr("transform",`translate(${J+d/2+ke}, ${qe+O+b.height+f/2})`)}),k.select(".name").attr("transform","translate("+-b.width/2+", "+(O+f/2)+")"),n!=null&&Kb.has(n)){const xt=r.colorIndex??0;k.attr("data-color-id",`color-${xt%u.length}`)}const j=V.rectangle(J,O,X,D,W),tt=k.insert(()=>j,":first-child").attr("class","outer-path").attr("style",m.join(""));S.push(0);for(const[xt,Lt]of A.entries()){const Qt=(xt+1)%2===0&&Lt.yOffset!==0,Ye=V.rectangle(J,b.height+O+(Lt==null?void 0:Lt.yOffset),X,Lt==null?void 0:Lt.rowHeight,{...W,fill:Qt?o:s,stroke:l});k.insert(()=>Ye,"g.label").attr("style",m.join("")).attr("class",`row-rect-${Qt?"even":"odd"}`)}const N=1e-4;let ct=qa(J,b.height+O,X+J,b.height+O,N),lt=V.polygon(ct.map(xt=>[xt.x,xt.y]),W);if(k.insert(()=>lt).attr("class","divider"),ct=qa(F+J,b.height+O,F+J,D+O,N),lt=V.polygon(ct.map(xt=>[xt.x,xt.y]),W),k.insert(()=>lt).attr("class","divider"),q){const xt=F+E+J;ct=qa(xt,b.height+O,xt,D+O,N),lt=V.polygon(ct.map(Lt=>[Lt.x,Lt.y]),W),k.insert(()=>lt).attr("class","divider")}if(R){const xt=F+E+B+J;ct=qa(xt,b.height+O,xt,D+O,N),lt=V.polygon(ct.map(Lt=>[Lt.x,Lt.y]),W),k.insert(()=>lt).attr("class","divider")}for(const xt of S){const Lt=b.height+O+xt;ct=qa(J,Lt,X+J,Lt,N),lt=V.polygon(ct.map(re=>[re.x,re.y]),W),k.insert(()=>lt).attr("class","divider")}if(Ot(e,tt),x&&e.look!=="handDrawn")if(n!=null&&RW.has(n))k.selectAll("path").attr("style",x);else{const xt=x.split(";"),Lt=(Dt=xt==null?void 0:xt.filter(re=>re.includes("stroke")))==null?void 0:Dt.map(re=>`${re}`).join("; ");k.selectAll("path").attr("style",Lt??""),k.selectAll(".row-rect-even path").attr("style",x)}return e.intersect=function(xt){return wt.rect(e,xt)},k}T($x,"erBox");async function za(t,e,r,n=0,i=0,o=[],s=""){const l=t.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);e!==Ak(e)&&(e=Ak(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;"));const u=l.node().appendChild(await Ni(l,e,{width:Fi(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let d=u.children[0];for(d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let h=u.getBBox();if(Mi(r.htmlLabels)){const d=u.children[0];d.style.textAlign="start";const f=Zt(u);h=d.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}return h}T(za,"addText");function qa(t,e,r,n,i){return t===r?[{x:t-i/2,y:e},{x:t+i/2,y:e},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:t,y:e-i/2},{x:t,y:e+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}T(qa,"lineToPolygon");async function UE(t,e,r,n,i=r.class.padding??12){const o=n?0:3,s=t.insert("g").attr("class",Wt(e)).attr("id",e.domId||e.id);let l=null,u=null,h=null,d=null,f=0,m=0,p=0;if(l=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const w=e.annotations[0];await Nl(l,{text:`«${w}»`},0),f=l.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await Nl(u,e,0,["font-weight: bolder"]);const x=u.node().getBBox();m=x.height,h=s.insert("g").attr("class","members-group text");let C=0;for(const w of e.members){const S=await Nl(h,w,C,[w.parseClassifier()]);C+=S+o}p=h.node().getBBox().height,p<=0&&(p=i/2),d=s.insert("g").attr("class","methods-group text");let k=0;for(const w of e.methods){const S=await Nl(d,w,k,[w.parseClassifier()]);k+=S+o}let b=s.node().getBBox();if(l!==null){const w=l.node().getBBox();l.attr("transform",`translate(${-w.width/2})`)}return u.attr("transform",`translate(${-x.width/2}, ${f})`),b=s.node().getBBox(),h.attr("transform",`translate(0, ${f+m+i*2})`),b=s.node().getBBox(),d.attr("transform",`translate(0, ${f+m+(p?p+i*4:i*2)})`),b=s.node().getBBox(),{shapeSvg:s,bbox:b}}T(UE,"textHelper");async function Nl(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),o=Pe();let s="useHtmlLabels"in e?e.useHtmlLabels:Mi(o.htmlLabels)??!0,l="";"text"in e?l=e.text:l=e.label,!s&&l.startsWith("\\")&&(l=l.substring(1)),Kl(l)&&(s=!0);const u=await Ni(i,Gy(ta(l)),{width:Fi(l,o)+50,classes:"markdown-node-label",useHtmlLabels:s},o);let h,d=1;if(s){const f=u.children[0],m=Zt(u);d=f.innerHTML.split("<br>").length,f.innerHTML.includes("</math>")&&(d+=f.innerHTML.split("<mrow>").length-1);const p=f.getElementsByTagName("img");if(p){const x=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(C=>new Promise(k=>{function b(){var w;if(C.style.display="flex",C.style.flexDirection="column",x){const S=((w=o.fontSize)==null?void 0:w.toString())??window.getComputedStyle(document.body).fontSize,F=parseInt(S,10)*5+"px";C.style.minWidth=F,C.style.maxWidth=F}else C.style.width="100%";k(C)}T(b,"setupImage"),setTimeout(()=>{C.complete&&b()}),C.addEventListener("error",b),C.addEventListener("load",b)})))}h=f.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}else{n.includes("font-weight: bolder")&&Zt(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;const f=u.children[0];(u.textContent===""||u.textContent.includes("&gt"))&&(f.textContent=l[0]+l.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*d)+r)+")"),h.height}T(Nl,"addText");async function VE(t,e){var V,W;const r=ue(),{themeVariables:n}=r,{useGradient:i}=n,o=r.class.padding??12,s=o,l=e.useHtmlLabels??Mi(r.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:d}=await UE(t,e,r,l,s),{labelStyles:f,nodeStyles:m}=Mt(e);e.labelStyle=f,e.cssStyles=u.styles||"";const p=((V=u.styles)==null?void 0:V.join(";"))||m||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const x=u.members.length===0&&u.methods.length===0&&!((W=r.class)!=null&&W.hideEmptyMembersBox),C=At.svg(h),k=It(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=Math.max(e.width??0,d.width);let w=Math.max(e.height??0,d.height);const S=(e.height??0)>d.height;u.members.length===0&&u.methods.length===0?w+=s:u.members.length>0&&u.methods.length===0&&(w+=s*2);const A=-b/2,F=-w/2;let E=x?o*2:u.members.length===0&&u.methods.length===0?-o:0;S&&(E=o*2);const B=C.rectangle(A-o,F-o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0),b+2*o,w+2*o+E,k),P=h.insert(()=>B,":first-child");P.attr("class","basic label-container outer-path");const q=P.node().getBBox(),R=h.select(".annotation-group").node().getBBox().height-(x?o/2:0)||0,$=h.select(".label-group").node().getBBox().height-(x?o/2:0)||0,H=h.select(".members-group").node().getBBox().height-(x?o/2:0)||0,Q=(R+$+F+o-(F-o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0)))/2;if(h.selectAll(".text").each((U,X,D)=>{var ct,lt;const J=Zt(D[X]),O=J.attr("transform");let j=0;if(O){const St=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);St&&(j=parseFloat(St[2]))}let tt=j+F+o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0);if(J.attr("class").includes("methods-group")){const mt=Math.max(H,s/2);S?tt=Math.max(Q,R+$+mt+F+s*2+o)+s*2:tt=R+$+mt+F+s*4+o}u.members.length===0&&u.methods.length===0&&((ct=r.class)!=null&&ct.hideEmptyMembersBox)&&(u.annotations.length>0?tt=j-s:tt=j),l||(tt-=4);let N=A;(J.attr("class").includes("label-group")||J.attr("class").includes("annotation-group"))&&(N=-((lt=J.node())==null?void 0:lt.getBBox().width)/2||0,h.selectAll("text").each(function(mt,St,Tt){window.getComputedStyle(Tt[St]).textAnchor==="middle"&&(N=0)})),J.attr("transform",`translate(${N}, ${tt})`)}),u.members.length>0||u.methods.length>0||x){const U=R+$+F+o,X=C.line(q.x,U,q.x+q.width,U+.001,k);h.insert(()=>X).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(x||u.members.length>0||u.methods.length>0){const U=R+$+H+F+s*2+o,X=C.line(q.x,S?Math.max(Q,U):U,q.x+q.width,(S?Math.max(Q,U):U)+.001,k);h.insert(()=>X).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",p),P.select(":nth-child(2)").attr("style",p),h.selectAll(".divider").select("path").attr("style",p),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",p),!l){const U=RegExp(/color\s*:\s*([^;]*)/),X=U.exec(p);if(X){const D=X[0].replace("color","fill");h.selectAll("tspan").attr("style",D)}else if(f){const D=U.exec(f);if(D){const J=D[0].replace("color","fill");h.selectAll("tspan").attr("style",J)}}}return Ot(e,P),e.intersect=function(U){return wt.rect(e,U)},h}T(VE,"classBox");async function YE(t,e){var q,R;const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const i=e,o=e,s=20,l=20,u="verifyMethod"in e,h=Wt(e),{themeVariables:d}=ue(),{borderColorArray:f,requirementEdgeLabelBackground:m}=d,p=t.insert("g").attr("class",h).attr("id",e.domId??e.id);let x;u?x=await ri(p,`&lt;&lt;${i.type}&gt;&gt;`,0,e.labelStyle):x=await ri(p,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let C=x;const k=await ri(p,i.name,C,e.labelStyle+"; font-weight: bold;");if(C+=k+l,u){const $=await ri(p,`${i.requirementId?`ID: ${i.requirementId}`:""}`,C,e.labelStyle);C+=$;const H=await ri(p,`${i.text?`Text: ${i.text}`:""}`,C,e.labelStyle);C+=H;const Q=await ri(p,`${i.risk?`Risk: ${i.risk}`:""}`,C,e.labelStyle);C+=Q,await ri(p,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,C,e.labelStyle)}else{const $=await ri(p,`${o.type?`Type: ${o.type}`:""}`,C,e.labelStyle);C+=$,await ri(p,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,C,e.labelStyle)}const b=(((q=p.node())==null?void 0:q.getBBox().width)??200)+s,w=(((R=p.node())==null?void 0:R.getBBox().height)??200)+s,S=-b/2,A=-w/2,F=At.svg(p),E=It(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const B=F.rectangle(S,A,b,w,E),P=p.insert(()=>B,":first-child");if(P.attr("class","basic label-container outer-path").attr("style",n),f!=null&&f.length){const $=e.colorIndex??0;p.attr("data-color-id",`color-${$%f.length}`)}if(p.selectAll(".label").each(($,H,Q)=>{const V=Zt(Q[H]),W=V.attr("transform");let U=0,X=0;if(W){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);j&&(U=parseFloat(j[1]),X=parseFloat(j[2]))}const D=X-w/2;let J=S+s/2;(H===0||H===1)&&(J=U),V.attr("transform",`translate(${J}, ${D+s})`)}),C>x+k+l){const $=A+x+k+l;let H;if(e.look==="neo"){const W=[[S,$],[S+b,$],[S+b,$+.001],[S,$+.001]];H=F.polygon(W,E)}else H=F.line(S,$,S+b,$,E);p.insert(()=>H).attr("class","divider")}return Ot(e,P),e.intersect=function($){return wt.rect(e,$)},n&&e.look!=="handDrawn"&&(m||f!=null&&f.length)&&p.selectAll("path").attr("style",n),p}T(YE,"requirementBox");async function ri(t,e,r,n=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",n),o=ue(),s=o.htmlLabels??!0,l=await Ni(i,Gy(ta(e)),{width:Fi(e,o)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},o);let u;if(s){const h=l.children[0],d=Zt(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{const h=l.children[0];for(const d of h.children)n&&d.setAttribute("style",n);u=l.getBBox(),u.height+=6}return i.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}T(ri,"addText");var PW=T(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function GE(t,e,{config:r}){var H,Q;const{labelStyles:n,nodeStyles:i}=Mt(e);e.labelStyle=n||"";const o=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:l,bbox:u,label:h}=await Ht(t,e,Wt(e)),d=e.padding||10;let f="",m;"ticket"in e&&e.ticket&&((H=r==null?void 0:r.kanban)!=null&&H.ticketBaseUrl)&&(f=(Q=r==null?void 0:r.kanban)==null?void 0:Q.ticketBaseUrl.replace("#TICKET#",e.ticket),m=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));const p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let x,C;m?{label:x,bbox:C}=await Jp(m,"ticket"in e&&e.ticket||"",p):{label:x,bbox:C}=await Jp(l,"ticket"in e&&e.ticket||"",p);const{label:k,bbox:b}=await Jp(l,"assigned"in e&&e.assigned||"",p);e.width=s;const w=10,S=(e==null?void 0:e.width)||0,A=Math.max(C.height,b.height)/2,F=Math.max(u.height+w*2,(e==null?void 0:e.height)||0)+A,E=-S/2,B=-F/2;h.attr("transform","translate("+(d-S/2)+", "+(-A-u.height/2)+")"),x.attr("transform","translate("+(d-S/2)+", "+(-A+u.height/2)+")"),k.attr("transform","translate("+(d+S/2-b.width-2*o)+", "+(-A+u.height/2)+")");let P;const{rx:q,ry:R}=e,{cssStyles:$}=e;if(e.look==="handDrawn"){const V=At.svg(l),W=It(e,{}),U=q||R?V.path(Co(E,B,S,F,q||0),W):V.rectangle(E,B,S,F,W);P=l.insert(()=>U,":first-child"),P.attr("class","basic label-container").attr("style",$||null)}else{P=l.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",i).attr("rx",q??5).attr("ry",R??5).attr("x",E).attr("y",B).attr("width",S).attr("height",F);const V="priority"in e&&e.priority;if(V){const W=l.append("line"),U=E+2,X=B+Math.floor((q??0)/2),D=B+F-Math.floor((q??0)/2);W.attr("x1",U).attr("y1",X).attr("x2",U).attr("y2",D).attr("stroke-width","4").attr("stroke",PW(V))}}return Ot(e,P),e.height=F,e.intersect=function(V){return wt.rect(e,V)},l}T(GE,"kanbanItem");async function XE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(t,e,Wt(e)),u=o.width+10*s,h=o.height+8*s,d=.15*u,{cssStyles:f}=e,m=o.width+20,p=o.height+20,x=Math.max(u,m),C=Math.max(h,p);l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let k;const b=`M0 0
413
- a${d},${d} 1 0,0 ${x*.25},${-1*C*.1}
414
- a${d},${d} 1 0,0 ${x*.25},0
415
- a${d},${d} 1 0,0 ${x*.25},0
416
- a${d},${d} 1 0,0 ${x*.25},${C*.1}
417
-
418
- a${d},${d} 1 0,0 ${x*.15},${C*.33}
419
- a${d*.8},${d*.8} 1 0,0 0,${C*.34}
420
- a${d},${d} 1 0,0 ${-1*x*.15},${C*.33}
421
-
422
- a${d},${d} 1 0,0 ${-1*x*.25},${C*.15}
423
- a${d},${d} 1 0,0 ${-1*x*.25},0
424
- a${d},${d} 1 0,0 ${-1*x*.25},0
425
- a${d},${d} 1 0,0 ${-1*x*.25},${-1*C*.15}
426
-
427
- a${d},${d} 1 0,0 ${-1*x*.1},${-1*C*.33}
428
- a${d*.8},${d*.8} 1 0,0 0,${-1*C*.34}
429
- a${d},${d} 1 0,0 ${x*.1},${-1*C*.33}
430
- H0 V0 Z`;if(e.look==="handDrawn"){const w=At.svg(i),S=It(e,{}),A=w.path(b,S);k=i.insert(()=>A,":first-child"),k.attr("class","basic label-container").attr("style",ur(f))}else k=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",b);return k.attr("transform",`translate(${-x/2}, ${-C/2})`),Ot(e,k),e.calcIntersect=function(w,S){return wt.rect(w,S)},e.intersect=function(w){return ht.info("Bang intersect",e,w),wt.rect(e,w)},i}T(XE,"bang");async function KE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(t,e,Wt(e)),u=o.width+2*s,h=o.height+2*s,d=.15*u,f=.25*u,m=.35*u,p=.2*u,{cssStyles:x}=e;let C;const k=`M0 0
431
- a${d},${d} 0 0,1 ${u*.25},${-1*u*.1}
432
- a${m},${m} 1 0,1 ${u*.4},${-1*u*.1}
433
- a${f},${f} 1 0,1 ${u*.35},${u*.2}
434
-
435
- a${d},${d} 1 0,1 ${u*.15},${h*.35}
436
- a${p},${p} 1 0,1 ${-1*u*.15},${h*.65}
437
-
438
- a${f},${d} 1 0,1 ${-1*u*.25},${u*.15}
439
- a${m},${m} 1 0,1 ${-1*u*.5},0
440
- a${d},${d} 1 0,1 ${-1*u*.25},${-1*u*.15}
441
-
442
- a${d},${d} 1 0,1 ${-1*u*.1},${-1*h*.35}
443
- a${p},${p} 1 0,1 ${u*.1},${-1*h*.65}
444
- H0 V0 Z`;if(e.look==="handDrawn"){const b=At.svg(i),w=It(e,{}),S=b.path(k,w);C=i.insert(()=>S,":first-child"),C.attr("class","basic label-container").attr("style",ur(x))}else C=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",k);return l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),C.attr("transform",`translate(${-u/2}, ${-h/2})`),Ot(e,C),e.calcIntersect=function(b,w){return wt.rect(b,w)},e.intersect=function(b){return ht.info("Cloud intersect",e,b),wt.rect(e,b)},i}T(KE,"cloud");async function QE(t,e){const{labelStyles:r,nodeStyles:n}=Mt(e);e.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(t,e,Wt(e)),u=o.width+8*s,h=o.height+2*s,d=5,f=e.look==="neo"?`
445
- M${-u/2} ${h/2-d}
446
- v${-h+2*d}
447
- q0,-${d} ${d},-${d}
448
- h${u-2*d}
449
- q${d},0 ${d},${d}
450
- v${h-d}
451
- H${-u/2}
452
- Z
453
- `:`
454
- M${-u/2} ${h/2-d}
455
- v${-h+2*d}
456
- q0,-${d} ${d},-${d}
457
- h${u-2*d}
458
- q${d},0 ${d},${d}
459
- v${h-2*d}
460
- q0,${d} ${-d},${d}
461
- h${-(u-2*d)}
462
- q${-d},0 ${-d},${-d}
463
- Z
464
- `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const m=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",f);return i.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),i.append(()=>l.node()),Ot(e,m),e.calcIntersect=function(p,x){return wt.rect(p,x)},e.intersect=function(p){return wt.rect(e,p)},i}T(QE,"defaultMindmapNode");async function ZE(t,e){const r={padding:e.padding??0};return Dx(t,e,r)}T(ZE,"mindmapCircle");var DW=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:BE},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:_E},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:AE},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:OE},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:JL},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Dx},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:XE},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:KE},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:wE},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:aE},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:mE},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:gE},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:$E},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:fE},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:eE},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:PE},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:UL},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:LE},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:ME},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:IE},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:iE},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:sE},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:XL},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:KL},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:QL},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:yE},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:qE},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:oE},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:DE},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:xE},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ZL},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tE},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:zE},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:HE},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:rE},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:jE},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:nE},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:EE},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:bE},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:kE},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:HL},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:GL},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:RE},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:NE},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:WE},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:SE},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:CE}],$W=T(()=>{const e=[...Object.entries({state:FE,choice:VL,note:vE,rectWithTitle:TE,labelRect:pE,iconSquare:hE,iconCircle:cE,icon:lE,iconRounded:uE,imageSquare:dE,anchor:qL,kanbanItem:GE,mindmapCircle:ZE,defaultMindmapNode:QE,classBox:VE,erBox:$x,requirementBox:YE}),...DW.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),JE=$W();function jW(t){return t in JE}T(jW,"isValidShape");var Ed=new Map;async function tB(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const o=e.shape?JE[e.shape]:void 0;if(!o)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await o(n,e,r)}else i=await o(t,e,r),n=i;return n.attr("data-look",ur(e.look)),e.tooltip&&i.attr("title",e.tooltip),Ed.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}T(tB,"insertNode");var bJ=T((t,e)=>{Ed.set(e.id,t)},"setNodeElem"),vJ=T(()=>{Ed.clear()},"clear"),wJ=T(t=>{const e=Ed.get(t.id);ht.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode"),zW=T((t,e,r,n,i,o=!1,s)=>{e.arrowTypeStart&&Qb(t,"start",e.arrowTypeStart,r,n,i,o,s),e.arrowTypeEnd&&Qb(t,"end",e.arrowTypeEnd,r,n,i,o,s)},"addEdgeMarkers"),qW={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},WW=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Qb=T((t,e,r,n,i,o,s=!1,l)=>{var x;const u=qW[r],h=u&&WW.includes(u.type);if(!u){ht.warn(`Unknown arrow type: ${r}`);return}const d=u.type,p=`${i}_${o}-${d}${e==="start"?"Start":"End"}${s&&h?"-margin":""}`;if(l&&l.trim()!==""){const C=l.replace(/[^\dA-Za-z]/g,"_"),k=`${p}_${C}`;if(!document.getElementById(k)){const b=document.getElementById(p);if(b){const w=b.cloneNode(!0);w.id=k,w.querySelectorAll("path, circle, line").forEach(A=>{A.setAttribute("stroke",l),u.fill&&A.setAttribute("fill",l)}),(x=b.parentNode)==null||x.appendChild(w)}}t.attr(`marker-${e}`,`url(${n}#${k})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),HW=T(t=>{var e,r;return typeof t=="string"?t:(r=(e=ue())==null?void 0:e.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),ed=new Map,gr=new Map,SJ=T(()=>{ed.clear(),gr.clear()},"clear"),Ll=T(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),UW=T(async(t,e)=>{const r=ue();let n=$r(r);const{labelStyles:i}=Mt(e);e.labelStyle=i;const o=t.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",h=await Ni(t,e.label,{style:Ll(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:l,width:l?void 0:void 0},r);s.node().appendChild(h),ht.info("abc82",e,e.labelType);let d=h.getBBox(),f=d;if(n){const p=h.children[0],x=Zt(h);d=p.getBoundingClientRect(),f=d,x.attr("width",d.width),x.attr("height",d.height)}else{const p=Zt(h).select("text").node();p&&typeof p.getBBox=="function"&&(f=p.getBBox())}s.attr("transform",bl(f,n)),ed.set(e.id,o),e.width=d.width,e.height=d.height;let m;if(e.startLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),C=await so(x,e.startLabelLeft,Ll(e.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const b=C.children[0],w=Zt(C);k=b.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),gr.get(e.id)||gr.set(e.id,{}),gr.get(e.id).startLeft=p,Rl(m,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),C=await so(x,e.startLabelRight,Ll(e.labelStyle)||"",!1,!1);m=C,x.node().appendChild(C);let k=C.getBBox();if(n){const b=C.children[0],w=Zt(C);k=b.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),gr.get(e.id)||gr.set(e.id,{}),gr.get(e.id).startRight=p,Rl(m,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),C=await so(x,e.endLabelLeft,Ll(e.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const b=C.children[0],w=Zt(C);k=b.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),p.node().appendChild(C),gr.get(e.id)||gr.set(e.id,{}),gr.get(e.id).endLeft=p,Rl(m,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),C=await so(x,e.endLabelRight,Ll(e.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const b=C.children[0],w=Zt(C);k=b.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),p.node().appendChild(C),gr.get(e.id)||gr.set(e.id,{}),gr.get(e.id).endRight=p,Rl(m,e.endLabelRight)}return h},"insertEdgeLabel");function Rl(t,e){$r(ue())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}T(Rl,"setTerminalWidth");var VW=T((t,e)=>{ht.debug("Moving label abc88 ",t.id,t.label,ed.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=ue(),{subGraphTitleTotalMargin:i}=Tx(n);if(t.label){const o=ed.get(t.id);let s=t.x,l=t.y;if(r){const u=jn.calcLabelPosition(r);ht.debug("Moving label "+t.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),e.updatedPath&&(s=u.x,l=u.y)}o.attr("transform",`translate(${s}, ${l+i/2})`)}if(t.startLabelLeft){const o=gr.get(t.id).startLeft;let s=t.x,l=t.y;if(r){const u=jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(t.startLabelRight){const o=gr.get(t.id).startRight;let s=t.x,l=t.y;if(r){const u=jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelLeft){const o=gr.get(t.id).endLeft;let s=t.x,l=t.y;if(r){const u=jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelRight){const o=gr.get(t.id).endRight;let s=t.x,l=t.y;if(r){const u=jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),YW=T((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),o=Math.abs(e.y-n),s=t.width/2,l=t.height/2;return i>=s||o>=l},"outsideNode"),GW=T((t,e,r)=>{ht.debug(`intersection calc abc89:
465
- outsidePoint: ${JSON.stringify(e)}
466
- insidePoint : ${JSON.stringify(r)}
467
- node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,o=Math.abs(n-r.x),s=t.width/2;let l=r.x<e.x?s-o:s+o;const u=t.height/2,h=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*u){let f=r.y<e.y?e.y-u-i:i-u-e.y;l=d*f/h;const m={x:r.x<e.x?r.x+l:r.x-d+l,y:r.y<e.y?r.y+h-f:r.y-h+f};return l===0&&(m.x=e.x,m.y=e.y),d===0&&(m.x=e.x),h===0&&(m.y=e.y),ht.debug(`abc89 top/bottom calc, Q ${h}, q ${f}, R ${d}, r ${l}`,m),m}else{r.x<e.x?l=e.x-s-n:l=n-s-e.x;let f=h*l/d,m=r.x<e.x?r.x+d-l:r.x-d+l,p=r.y<e.y?r.y+f:r.y-f;return ht.debug(`sides calc abc89, Q ${h}, q ${f}, R ${d}, r ${l}`,{_x:m,_y:p}),l===0&&(m=e.x,p=e.y),d===0&&(m=e.x),h===0&&(p=e.y),{x:m,y:p}}},"intersection"),Zb=T((t,e)=>{ht.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(o=>{if(ht.info("abc88 checking point",o,e),!YW(e,o)&&!i){const s=GW(e,n,o);ht.debug("abc88 inside",o,n,s),ht.debug("abc88 intersection",s,e);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?ht.warn("abc88 no intersect",s,r):r.push(s),i=!0}else ht.warn("abc88 outside",o,n),n=o,i||r.push(o)}),ht.debug("returning points",r),r},"cutPathAtIntersect");function eB(t){const e=[],r=[];for(let n=1;n<t.length-1;n++){const i=t[n-1],o=t[n],s=t[n+1];(i.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===s.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-s.y)>5)&&(e.push(o),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}T(eB,"extractCornerPoints");var Jb=T(function(t,e,r){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i),s=r/o;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),XW=T(function(t){const{cornerPointPositions:e}=eB(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){const i=t[n-1],o=t[n+1],s=t[n],l=Jb(i,s,5),u=Jb(o,s,5),h=u.x-l.x,d=u.y-l.y;r.push(l);const f=Math.sqrt(2)*2;let m={x:s.x,y:s.y};if(Math.abs(o.x-i.x)>10&&Math.abs(o.y-i.y)>=10){ht.debug("Corner point fixing",Math.abs(o.x-i.x),Math.abs(o.y-i.y));const p=5;s.x===l.x?m={x:h<0?l.x-p+f:l.x+p-f,y:d<0?l.y-f:l.y+f}:m={x:h<0?l.x-f:l.x+f,y:d<0?l.y-p+f:l.y+p-f}}else ht.debug("Corner point skipping fixing",Math.abs(o.x-i.x),Math.abs(o.y-i.y));r.push(m,u)}else r.push(t[n]);return r},"fixCorners"),KW=T((t,e,r)=>{const n=t-e-r,i=2,o=2,s=i+o,l=Math.floor(n/s),u=Array(l).fill(`${i} ${o}`).join(" ");return`0 ${e} ${u} ${r}`},"generateDashArray"),QW=T(function(t,e,r,n,i,o,s,l=!1){var X;if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:u}=ue();let h=e.points,d=!1;const f=i;var m=o;const p=[];for(const D in e.cssCompiledStyles)tL(D)||p.push(e.cssCompiledStyles[D]);ht.debug("UIO intersect check",e.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(h=h.slice(1,e.points.length-1),h.unshift(f.intersect(h[0])),ht.debug("Last point UIO",e.start,"-->",e.end,h[h.length-1],m,m.intersect(h[h.length-1])),h.push(m.intersect(h[h.length-1])));const x=btoa(JSON.stringify(h));e.toCluster&&(ht.info("to cluster abc88",r.get(e.toCluster)),h=Zb(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(ht.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(h,null,2)),h=Zb(h.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let C=h.filter(D=>!Number.isNaN(D.y));const k=HW(e.curve);k!=="rounded"&&(C=XW(C));let b=Hl;switch(k){case"linear":b=Hl;break;case"basis":b=Am;break;case"cardinal":b=OS;break;case"bumpX":b=BS;break;case"bumpY":b=AS;break;case"catmullRom":b=RS;break;case"monotoneX":b=qS;break;case"monotoneY":b=WS;break;case"natural":b=US;break;case"step":b=VS;break;case"stepAfter":b=GS;break;case"stepBefore":b=YS;break;case"rounded":b=Hl;break;default:b=Am}const{x:w,y:S}=U8(e),A=Ej().x(w).y(S).curve(b);let F;switch(e.thickness){case"normal":F="edge-thickness-normal";break;case"thick":F="edge-thickness-thick";break;case"invisible":F="edge-thickness-invisible";break;default:F="edge-thickness-normal"}switch(e.pattern){case"solid":F+=" edge-pattern-solid";break;case"dotted":F+=" edge-pattern-dotted";break;case"dashed":F+=" edge-pattern-dashed";break;default:F+=" edge-pattern-solid"}let E,B=k==="rounded"?rB(nB(C,e),5):A(C);const P=Array.isArray(e.style)?e.style:[e.style];let q=P.find(D=>D==null?void 0:D.startsWith("stroke:")),R="";e.animate&&(R="edge-animation-fast"),e.animation&&(R="edge-animation-"+e.animation);let $=!1;if(e.look==="handDrawn"){const D=At.svg(t);Object.assign([],C);const J=D.path(B,{roughness:.3,seed:u});F+=" transition",E=Zt(J).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+F+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",P?P.reduce((j,tt)=>j+";"+tt,""):"");let O=E.attr("d");E.attr("d",O),t.node().appendChild(E.node())}else{const D=p.join(";"),J=P?P.reduce((lt,mt)=>lt+mt+";",""):"",O=(D?D+";"+J+";":J)+";"+(P?P.reduce((lt,mt)=>lt+";"+mt,""):"");E=t.append("path").attr("d",B).attr("id",`${s}-${e.id}`).attr("class"," "+F+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",O),q=(X=O.match(/stroke:([^;]+)/))==null?void 0:X[1],$=e.animate===!0||!!e.animation||D.includes("animation");const j=E.node(),tt=typeof j.getTotalLength=="function"?j.getTotalLength():0,N=nb[e.arrowTypeStart]||0,ct=nb[e.arrowTypeEnd]||0;if(e.look==="neo"&&!$){const mt=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?KW(tt,N,ct):`0 ${N} ${tt-N-ct} ${ct}`}; stroke-dashoffset: 0;`;E.attr("style",mt+E.attr("style"))}}E.attr("data-edge",!0),E.attr("data-et","edge"),E.attr("data-id",e.id),E.attr("data-points",x),E.attr("data-look",ur(e.look)),e.showPoints&&C.forEach(D=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",D.x).attr("cy",D.y)});let H="";(ue().flowchart.arrowMarkerAbsolute||ue().state.arrowMarkerAbsolute)&&(H=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,H=H.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ht.info("arrowTypeStart",e.arrowTypeStart),ht.info("arrowTypeEnd",e.arrowTypeEnd);const Q=!$&&(e==null?void 0:e.look)==="neo";zW(E,e,H,s,n,Q,q);const V=Math.floor(h.length/2),W=h[V];jn.isLabelCoordinateInPath(W,E.attr("d"))||(d=!0);let U={};return d&&(U.updatedPath=h),U.originalPath=e.points,U},"insertEdge");function rB(t,e){if(t.length<2)return"";let r="";const n=t.length,i=1e-5;for(let o=0;o<n;o++){const s=t[o],l=t[o-1],u=t[o+1];if(o===0)r+=`M${s.x},${s.y}`;else if(o===n-1)r+=`L${s.x},${s.y}`;else{const h=s.x-l.x,d=s.y-l.y,f=u.x-s.x,m=u.y-s.y,p=Math.hypot(h,d),x=Math.hypot(f,m);if(p<i||x<i){r+=`L${s.x},${s.y}`;continue}const C=h/p,k=d/p,b=f/x,w=m/x,S=C*b+k*w,A=Math.max(-1,Math.min(1,S)),F=Math.acos(A);if(F<i||Math.abs(Math.PI-F)<i){r+=`L${s.x},${s.y}`;continue}const E=Math.min(e/Math.sin(F/2),p/2,x/2),B=s.x-C*E,P=s.y-k*E,q=s.x+b*E,R=s.y+w*E;r+=`L${B},${P}`,r+=`Q${s.x},${s.y} ${q},${R}`}}return r}T(rB,"generateRoundedPath");function ay(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}T(ay,"calculateDeltaAndAngle");function nB(t,e){const r=t.map(i=>({...i}));if(t.length>=2&&Sr[e.arrowTypeStart]){const i=Sr[e.arrowTypeStart],o=t[0],s=t[1],{angle:l}=ay(o,s),u=i*Math.cos(l),h=i*Math.sin(l);r[0].x=o.x+u,r[0].y=o.y+h}const n=t.length;if(n>=2&&Sr[e.arrowTypeEnd]){const i=Sr[e.arrowTypeEnd],o=t[n-1],s=t[n-2],{angle:l}=ay(s,o),u=i*Math.cos(l),h=i*Math.sin(l);r[n-1].x=o.x-u,r[n-1].y=o.y-h}return r}T(nB,"applyMarkerOffsetsToPoints");var ZW=T((t,e,r,n)=>{e.forEach(i=>{bH[i](t,r,n)})},"insertMarkers"),JW=T((t,e,r)=>{ht.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),tH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),eH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),rH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),nH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),iH=T((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),oH=T((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),aH=T((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),sH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),lH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{transitionColor:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),cH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),uH=T((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),dH=T((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),fH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),pH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o,mainBkg:s}=i,l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const u=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");u.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),u.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),gH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),mH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o,mainBkg:s}=i,l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const u=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");u.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),u.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),yH=T((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
468
- L20,10
469
- M20,10
470
- L0,20`)},"requirement_arrow"),xH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
471
- L20,10
472
- M20,10
473
- L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),CH=T((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),kH=T((t,e,r)=>{const n=Pe(),{themeVariables:i}=n,{strokeWidth:o}=i,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),bH={extension:JW,composition:tH,aggregation:eH,dependency:rH,lollipop:nH,point:iH,circle:oH,cross:aH,barb:sH,barbNeo:lH,only_one:cH,zero_or_one:uH,one_or_more:hH,zero_or_more:dH,only_one_neo:fH,zero_or_one_neo:pH,one_or_more_neo:gH,zero_or_more_neo:mH,requirement_arrow:yH,requirement_contains:CH,requirement_arrow_neo:xH,requirement_contains_neo:kH},vH=ZW,wH={common:gc,getConfig:Pe,insertCluster:kW,insertEdge:QW,insertEdgeLabel:UW,insertMarkers:vH,insertNode:tB,interpolateToCurve:Cx,labelHelper:Ht,log:ht,positionEdgeLabel:VW},lc={},iB=T(t=>{for(const e of t)lc[e.name]=e},"registerLayoutLoaders"),SH=T(()=>{iB([{name:"dagre",loader:T(async()=>await oe(()=>import("./dagre-KV5264BT-Bl_Le1O-.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:T(async()=>await oe(()=>import("./cose-bilkent-S5V4N54A-5D-AKbEI.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");SH();var TJ=T(async(t,e)=>{if(!(t.layoutAlgorithm in lc))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const d of t.nodes){const f=d.domId||d.id;d.domId=`${t.diagramId}-${f}`}const r=lc[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:o}=t.config,{useGradient:s,gradientStart:l,gradientStop:u}=o,h=e.attr("id");if(e.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return n.render(t,e,wH,{algorithm:r.algorithm})},"render"),_J=T((t="",{fallback:e="dagre"}={})=>{if(t in lc)return t;if(e in lc)return ht.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),oB="comm",aB="rule",sB="decl",TH="@import",_H="@namespace",LH="@keyframes",EH="@layer",lB=Math.abs,jx=String.fromCharCode;function cB(t){return t.trim()}function fh(t,e,r){return t.replace(e,r)}function BH(t,e,r){return t.indexOf(e,r)}function Ga(t,e){return t.charCodeAt(e)|0}function ms(t,e,r){return t.slice(e,r)}function ii(t){return t.length}function AH(t){return t.length}function Ku(t,e){return e.push(t),t}var Bd=1,ys=1,uB=0,Tn=0,Je=0,Ss="";function zx(t,e,r,n,i,o,s,l){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Bd,column:ys,length:s,return:"",siblings:l}}function FH(){return Je}function IH(){return Je=Tn>0?Ga(Ss,--Tn):0,ys--,Je===10&&(ys=1,Bd--),Je}function Wn(){return Je=Tn<uB?Ga(Ss,Tn++):0,ys++,Je===10&&(ys=1,Bd++),Je}function lo(){return Ga(Ss,Tn)}function ph(){return Tn}function Ad(t,e){return ms(Ss,t,e)}function cc(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function MH(t){return Bd=ys=1,uB=ii(Ss=t),Tn=0,[]}function OH(t){return Ss="",t}function eg(t){return cB(Ad(Tn-1,sy(t===91?t+2:t===40?t+1:t)))}function NH(t){for(;(Je=lo())&&Je<33;)Wn();return cc(t)>2||cc(Je)>3?"":" "}function RH(t,e){for(;--e&&Wn()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return Ad(t,ph()+(e<6&&lo()==32&&Wn()==32))}function sy(t){for(;Wn();)switch(Je){case t:return Tn;case 34:case 39:t!==34&&t!==39&&sy(Je);break;case 40:t===41&&sy(t);break;case 92:Wn();break}return Tn}function PH(t,e){for(;Wn()&&t+Je!==57;)if(t+Je===84&&lo()===47)break;return"/*"+Ad(e,Tn-1)+"*"+jx(t===47?t:Wn())}function DH(t){for(;!cc(lo());)Wn();return Ad(t,Tn)}function $H(t){return OH(gh("",null,null,null,[""],t=MH(t),0,[0],t))}function gh(t,e,r,n,i,o,s,l,u){for(var h=0,d=0,f=s,m=0,p=0,x=0,C=1,k=1,b=1,w=0,S="",A=i,F=o,E=n,B=S;k;)switch(x=w,w=Wn()){case 40:if(x!=108&&Ga(B,f-1)==58){BH(B+=fh(eg(w),"&","&\f"),"&\f",lB(h?l[h-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:B+=eg(w);break;case 9:case 10:case 13:case 32:B+=NH(x);break;case 92:B+=RH(ph()-1,7);continue;case 47:switch(lo()){case 42:case 47:Ku(jH(PH(Wn(),ph()),e,r,u),u),(cc(x||1)==5||cc(lo()||1)==5)&&ii(B)&&ms(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*C:l[h++]=ii(B)*b;case 125*C:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+d:b==-1&&(B=fh(B,/\f/g,"")),p>0&&(ii(B)-f||C===0&&x===47)&&Ku(p>32?ev(B+";",n,r,f-1,u):ev(fh(B," ","")+";",n,r,f-2,u),u);break;case 59:B+=";";default:if(Ku(E=tv(B,e,r,h,d,i,l,S,A=[],F=[],f,o),o),w===123)if(d===0)gh(B,e,E,E,A,o,f,l,F);else{switch(m){case 99:if(Ga(B,3)===110)break;case 108:if(Ga(B,2)===97)break;default:d=0;case 100:case 109:case 115:}d?gh(t,E,E,n&&Ku(tv(t,E,E,0,0,i,l,S,i,A=[],f,F),F),i,F,f,l,n?A:F):gh(B,E,E,E,[""],F,0,l,F)}}h=d=p=0,C=b=1,S=B="",f=s;break;case 58:f=1+ii(B),p=x;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&IH()==125)continue}switch(B+=jx(w),w*C){case 38:b=d>0?1:(B+="\f",-1);break;case 44:l[h++]=(ii(B)-1)*b,b=1;break;case 64:lo()===45&&(B+=eg(Wn())),m=lo(),d=f=ii(S=B+=DH(ph())),w++;break;case 45:x===45&&ii(B)==2&&(C=0)}}return o}function tv(t,e,r,n,i,o,s,l,u,h,d,f){for(var m=i-1,p=i===0?o:[""],x=AH(p),C=0,k=0,b=0;C<n;++C)for(var w=0,S=ms(t,m+1,m=lB(k=s[C])),A=t;w<x;++w)(A=cB(k>0?p[w]+" "+S:fh(S,/&\f/g,p[w])))&&(u[b++]=A);return zx(t,e,r,i===0?aB:l,u,h,d,f)}function jH(t,e,r,n){return zx(t,e,r,oB,jx(FH()),ms(t,2,-2),0,n)}function ev(t,e,r,n,i){return zx(t,e,r,sB,ms(t,0,n),ms(t,n+1,-1),n,i)}function ly(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function zH(t,e,r,n){switch(t.type){case EH:if(t.children.length)break;case TH:case _H:case sB:return t.return=t.return||t.value;case oB:return"";case LH:return t.return=t.value+"{"+ly(t.children,n)+"}";case aB:if(!ii(t.value=t.props.join(",")))return""}return ii(r=ly(t.children,n))?t.return=t.value+"{"+r+"}":""}var qH=M_(Object.keys,Object),WH=Object.prototype,HH=WH.hasOwnProperty;function UH(t){if(!kd(t))return qH(t);var e=[];for(var r in Object(t))HH.call(t,r)&&r!="constructor"&&e.push(r);return e}var cy=aa(di,"DataView"),uy=aa(di,"Promise"),hy=aa(di,"Set"),dy=aa(di,"WeakMap"),rv="[object Map]",VH="[object Object]",nv="[object Promise]",iv="[object Set]",ov="[object WeakMap]",av="[object DataView]",YH=oa(cy),GH=oa(ac),XH=oa(uy),KH=oa(hy),QH=oa(dy),zo=ks;(cy&&zo(new cy(new ArrayBuffer(1)))!=av||ac&&zo(new ac)!=rv||uy&&zo(uy.resolve())!=nv||hy&&zo(new hy)!=iv||dy&&zo(new dy)!=ov)&&(zo=function(t){var e=ks(t),r=e==VH?t.constructor:void 0,n=r?oa(r):"";if(n)switch(n){case YH:return av;case GH:return rv;case XH:return nv;case KH:return iv;case QH:return ov}return e});var ZH="[object Map]",JH="[object Set]",tU=Object.prototype,eU=tU.hasOwnProperty;function sv(t){if(t==null)return!0;if(bd(t)&&(Uh(t)||typeof t=="string"||typeof t.splice=="function"||yx(t)||xx(t)||Hh(t)))return!t.length;var e=zo(t);if(e==ZH||e==JH)return!t.size;if(kd(t))return!UH(t).length;for(var r in t)if(eU.call(t,r))return!1;return!0}var hB="c4",rU=T(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),nU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./c4Diagram-AHTNJAMY-C_avfzvA.js");return{diagram:e}},__vite__mapDeps([8,9]));return{id:hB,diagram:t}},"loader"),iU={id:hB,detector:rU,loader:nU},oU=iU,dB="flowchart",aU=T((t,e)=>{var r,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),sU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./flowDiagram-DWJPFMVM-Br4kn9xF.js");return{diagram:e}},__vite__mapDeps([10,11,9,12,13,14]));return{id:dB,diagram:t}},"loader"),lU={id:dB,detector:aU,loader:sU},cU=lU,fB="flowchart-v2",uU=T((t,e)=>{var r,n,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),hU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./flowDiagram-DWJPFMVM-Br4kn9xF.js");return{diagram:e}},__vite__mapDeps([10,11,9,12,13,14]));return{id:fB,diagram:t}},"loader"),dU={id:fB,detector:uU,loader:hU},fU=dU,pB="er",pU=T(t=>/^\s*erDiagram/.test(t),"detector"),gU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./erDiagram-SMLLAGMA-BDyPv2cw.js");return{diagram:e}},__vite__mapDeps([15,12,13,14]));return{id:pB,diagram:t}},"loader"),mU={id:pB,detector:pU,loader:gU},yU=mU,gB="gitGraph",xU=T(t=>/^\s*gitGraph/.test(t),"detector"),CU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./gitGraphDiagram-UUTBAWPF-CN-Jq39o.js");return{diagram:e}},__vite__mapDeps([16,17,18,19,4,2]));return{id:gB,diagram:t}},"loader"),kU={id:gB,detector:xU,loader:CU},bU=kU,mB="gantt",vU=T(t=>/^\s*gantt/.test(t),"detector"),wU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./ganttDiagram-T4ZO3ILL-CCZKa7FC.js");return{diagram:e}},__vite__mapDeps([20,21,22,23]));return{id:mB,diagram:t}},"loader"),SU={id:mB,detector:vU,loader:wU},TU=SU,yB="info",_U=T(t=>/^\s*info/.test(t),"detector"),LU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./infoDiagram-42DDH7IO-Be00z2FM.js");return{diagram:e}},__vite__mapDeps([24,19,4,2]));return{id:yB,diagram:t}},"loader"),EU={id:yB,detector:_U,loader:LU},xB="pie",BU=T(t=>/^\s*pie/.test(t),"detector"),AU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./pieDiagram-DEJITSTG-CEFpX8n7.js");return{diagram:e}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:xB,diagram:t}},"loader"),FU={id:xB,detector:BU,loader:AU},CB="quadrantChart",IU=T(t=>/^\s*quadrantChart/.test(t),"detector"),MU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./quadrantDiagram-34T5L4WZ-DybJJDPI.js");return{diagram:e}},__vite__mapDeps([28,21,22,23]));return{id:CB,diagram:t}},"loader"),OU={id:CB,detector:IU,loader:MU},NU=OU,kB="xychart",RU=T(t=>/^\s*xychart(-beta)?/.test(t),"detector"),PU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./xychartDiagram-5P7HB3ND-CU6AHPc5.js");return{diagram:e}},__vite__mapDeps([29,22,27,21,23]));return{id:kB,diagram:t}},"loader"),DU={id:kB,detector:RU,loader:PU},$U=DU,bB="requirement",jU=T(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),zU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./requirementDiagram-MS252O5E-Bf2NfnQO.js");return{diagram:e}},__vite__mapDeps([30,12,13]));return{id:bB,diagram:t}},"loader"),qU={id:bB,detector:jU,loader:zU},WU=qU,vB="sequence",HU=T(t=>/^\s*sequenceDiagram/.test(t),"detector"),UU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./sequenceDiagram-FGHM5R23-BKsfKx1K.js");return{diagram:e}},__vite__mapDeps([31,9,18]));return{id:vB,diagram:t}},"loader"),VU={id:vB,detector:HU,loader:UU},YU=VU,wB="class",GU=T((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),XU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./classDiagram-6PBFFD2Q-CCnUlGd6.js");return{diagram:e}},__vite__mapDeps([32,33,11,9,12,13]));return{id:wB,diagram:t}},"loader"),KU={id:wB,detector:GU,loader:XU},QU=KU,SB="classDiagram",ZU=T((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),JU=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./classDiagram-v2-HSJHXN6E-CCnUlGd6.js");return{diagram:e}},__vite__mapDeps([34,33,11,9,12,13]));return{id:SB,diagram:t}},"loader"),tV={id:SB,detector:ZU,loader:JU},eV=tV,TB="state",rV=T((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),nV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./stateDiagram-FHFEXIEX-CC3CoOpe.js");return{diagram:e}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:TB,diagram:t}},"loader"),iV={id:TB,detector:rV,loader:nV},oV=iV,_B="stateDiagram",aV=T((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),sV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./stateDiagram-v2-QKLJ7IA2-zQUzTqNB.js");return{diagram:e}},__vite__mapDeps([37,36,12,13]));return{id:_B,diagram:t}},"loader"),lV={id:_B,detector:aV,loader:sV},cV=lV,LB="journey",uV=T(t=>/^\s*journey/.test(t),"detector"),hV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./journeyDiagram-VCZTEJTY-Cv4XDTnO.js");return{diagram:e}},__vite__mapDeps([38,11,9,26]));return{id:LB,diagram:t}},"loader"),dV={id:LB,detector:uV,loader:hV},fV=dV,pV=T((t,e,r)=>{ht.debug(`rendering svg for syntax error
474
- `);const n=Pj(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Zw(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),EB={draw:pV},gV=EB,mV={db:{},renderer:EB,parser:{parse:T(()=>{},"parse")}},yV=mV,BB="flowchart-elk",xV=T((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),CV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./flowDiagram-DWJPFMVM-Br4kn9xF.js");return{diagram:e}},__vite__mapDeps([10,11,9,12,13,14]));return{id:BB,diagram:t}},"loader"),kV={id:BB,detector:xV,loader:CV},bV=kV,AB="timeline",vV=T(t=>/^\s*timeline/.test(t),"detector"),wV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./timeline-definition-GMOUNBTQ-DvnJe1xm.js");return{diagram:e}},__vite__mapDeps([39,26]));return{id:AB,diagram:t}},"loader"),SV={id:AB,detector:vV,loader:wV},TV=SV,FB="mindmap",_V=T(t=>/^\s*mindmap/.test(t),"detector"),LV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./mindmap-definition-QFDTVHPH-CKXc6pGW.js");return{diagram:e}},__vite__mapDeps([40,12,13]));return{id:FB,diagram:t}},"loader"),EV={id:FB,detector:_V,loader:LV},BV=EV,IB="kanban",AV=T(t=>/^\s*kanban/.test(t),"detector"),FV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./kanban-definition-6JOO6SKY-DVuIyZC8.js");return{diagram:e}},__vite__mapDeps([41,11]));return{id:IB,diagram:t}},"loader"),IV={id:IB,detector:AV,loader:FV},MV=IV,MB="sankey",OV=T(t=>/^\s*sankey(-beta)?/.test(t),"detector"),NV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./sankeyDiagram-XADWPNL6-dcULupfk.js");return{diagram:e}},__vite__mapDeps([42,27,22]));return{id:MB,diagram:t}},"loader"),RV={id:MB,detector:OV,loader:NV},PV=RV,OB="packet",DV=T(t=>/^\s*packet(-beta)?/.test(t),"detector"),$V=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./diagram-TYMM5635-C2VtQrAC.js");return{diagram:e}},__vite__mapDeps([43,17,19,4,2]));return{id:OB,diagram:t}},"loader"),jV={id:OB,detector:DV,loader:$V},NB="radar",zV=T(t=>/^\s*radar-beta/.test(t),"detector"),qV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./diagram-MMDJMWI5-ClyZac9f.js");return{diagram:e}},__vite__mapDeps([44,17,19,4,2]));return{id:NB,diagram:t}},"loader"),WV={id:NB,detector:zV,loader:qV},RB="block",HV=T(t=>/^\s*block(-beta)?/.test(t),"detector"),UV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./blockDiagram-DXYQGD6D-3nHn8zf8.js");return{diagram:e}},__vite__mapDeps([45,11,5,1,2,14]));return{id:RB,diagram:t}},"loader"),VV={id:RB,detector:HV,loader:UV},YV=VV,PB="treeView",GV=T(t=>/^\s*treeView-beta/.test(t),"detector"),XV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./diagram-5BDNPKRD-CzudIMvW.js");return{diagram:e}},__vite__mapDeps([46,17,18,19,4,2]));return{id:PB,diagram:t}},"loader"),KV={id:PB,detector:GV,loader:XV},QV=KV,DB="architecture",ZV=T(t=>/^\s*architecture/.test(t),"detector"),JV=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./architectureDiagram-Q4EWVU46-0_RoxIgJ.js");return{diagram:e}},__vite__mapDeps([47,17,19,4,2,7]));return{id:DB,diagram:t}},"loader"),tY={id:DB,detector:ZV,loader:JV},eY=tY,$B="ishikawa",rY=T(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),nY=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./ishikawaDiagram-UXIWVN3A-DfjfB3Z9.js");return{diagram:e}},[]);return{id:$B,diagram:t}},"loader"),iY={id:$B,detector:rY,loader:nY},jB="venn",oY=T(t=>/^\s*venn-beta/.test(t),"detector"),aY=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./vennDiagram-DHZGUBPP-CzmFX1Iv.js");return{diagram:e}},[]);return{id:jB,diagram:t}},"loader"),sY={id:jB,detector:oY,loader:aY},lY=sY,zB="treemap",cY=T(t=>/^\s*treemap/.test(t),"detector"),uY=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./diagram-G4DWMVQ6-DNJC7zTX.js");return{diagram:e}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:zB,diagram:t}},"loader"),hY={id:zB,detector:cY,loader:uY},qB="wardley-beta",dY=T(t=>/^\s*wardley-beta/i.test(t),"detector"),fY=T(async()=>{const{diagram:t}=await oe(async()=>{const{diagram:e}=await import("./wardleyDiagram-NUSXRM2D-CgU6PntZ.js");return{diagram:e}},__vite__mapDeps([49,17,19,4,2]));return{id:qB,diagram:t}},"loader"),pY={id:qB,detector:dY,loader:fY},gY=pY,lv=!1,Fd=T(()=>{lv||(lv=!0,_h("error",yV,t=>t.toLowerCase().trim()==="error"),_h("---",{db:{clear:T(()=>{},"clear")},styles:{},renderer:{draw:T(()=>{},"draw")},parser:{parse:T(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:T(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),mm(bV,BV,eY),mm(oU,MV,eV,QU,yU,TU,EU,FU,WU,YU,fU,cU,TV,bU,cV,oV,fV,NU,PV,jV,$U,YV,QV,WV,iY,hY,lY,gY))},"addDiagrams"),mY=T(async()=>{ht.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Xo).map(async([r,{detector:n,loader:i}])=>{if(i)try{km(r)}catch{try{const{diagram:o,id:s}=await i();_h(s,o,n)}catch(o){throw ht.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Xo[r],o}}}))).filter(r=>r.status==="rejected");if(e.length>0){ht.error(`Failed to load ${e.length} external diagrams`);for(const r of e)ht.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),yY="graphics-document document";function WB(t,e){t.attr("role",yY),e!==""&&t.attr("aria-roledescription",e)}T(WB,"setA11yDiagramInfo");function HB(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}T(HB,"addSVGa11yTitleDescription");var Yo,fy=(Yo=class{constructor(e,r,n,i,o){this.type=e,this.text=r,this.db=n,this.parser=i,this.renderer=o}static async fromText(e,r={}){var h,d;const n=Pe(),i=Wy(e,n);e=j7(e)+`
475
- `;try{km(i)}catch{const f=rP(i);if(!f)throw new Dw(`Diagram ${i} not found.`);const{id:m,diagram:p}=await f();_h(m,p)}const{db:o,parser:s,renderer:l,init:u}=km(i);return s.parser&&(s.parser.yy=o),(h=o.clear)==null||h.call(o),u==null||u(n),r.title&&((d=o.setDiagramTitle)==null||d.call(o,r.title)),await s.parse(e),new Yo(i,e,o,s,l)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},T(Yo,"Diagram"),Yo),cv=[],xY=T(()=>{cv.forEach(t=>{t()}),cv=[]},"attachFunctions"),CY=T(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function UB(t){const e=t.match(Pw);if(!e)return{text:t,metadata:{}};let r=H8(e[1],{schema:W8})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}T(UB,"extractFrontMatter");var kY=T(t=>t.replace(/\r\n?/g,`
476
- `).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),bY=T(t=>{const{text:e,metadata:r}=UB(t),{displayMode:n,title:i,config:o={}}=r;return n&&(o.gantt||(o.gantt={}),o.gantt.displayMode=n),{title:i,config:o,text:e}},"processFrontmatter"),vY=T(t=>{const e=jn.detectInit(t)??{},r=jn.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:L7(t),directive:e}},"processDirectives");function qx(t){const e=kY(t),r=bY(e),n=vY(r.text),i=Sx(r.config,n.directive);return t=CY(n.text),{code:t,title:r.title,config:i}}T(qx,"preprocessDiagram");function VB(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}T(VB,"toBase64");var wY=5e4,SY="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",TY="sandbox",_Y="loose",LY="http://www.w3.org/2000/svg",EY="http://www.w3.org/1999/xlink",BY="http://www.w3.org/1999/xhtml",AY="100%",FY="100%",IY="border:0;margin:0;",MY="margin:0",OY="allow-top-navigation-by-user-activation allow-popups",NY='The "iframe" tag is not supported by your browser.',RY=["foreignobject"],PY=["dominant-baseline"];function Wx(t){const e=qx(t);return Sh(),AP(e.config??{}),e}T(Wx,"processAndSetConfigs");async function YB(t,e){Fd();try{const{code:r,config:n}=Wx(t);return{diagramType:(await XB(r)).type,config:n}}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}}T(YB,"parse");var uv=T((t,e,r=[])=>`
477
- .${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),DY=T((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0&&(r+=`
478
- ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
479
- :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
480
- :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const s=$r(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{sv(l.styles)||s.forEach(u=>{r+=uv(l.id,u,l.styles)}),sv(l.textStyles)||(r+=uv(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),$Y=T((t,e,r,n)=>{const i=DY(t,r),o=XP(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return ly($H(`${n}{${o}}`),zH)},"createUserStyles"),jY=T((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=ta(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),zY=T((t="",e)=>{var i,o;const r=(o=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&o.height?e.viewBox.baseVal.height+"px":FY,n=VB(`<body style="${MY}">${t}</body>`);return`<iframe style="width:${AY};height:${r};${IY}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${OY}">
481
- ${NY}
482
- </iframe>`},"putIntoIFrame"),hv=T((t,e,r,n,i)=>{const o=t.append("div");o.attr("id",r),n&&o.attr("style",n);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",LY);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function py(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}T(py,"sandboxedIframe");var qY=T((t,e,r,n)=>{var i,o,s;(i=t.getElementById(e))==null||i.remove(),(o=t.getElementById(r))==null||o.remove(),(s=t.getElementById(n))==null||s.remove()},"removeExistingElements"),WY=T(async function(t,e,r){var H,Q,V,W,U,X;Fd();const n=Wx(e);e=n.code;const i=Pe();ht.debug(i),e.length>((i==null?void 0:i.maxTextSize)??wY)&&(e=SY);const o="#"+t,s="i"+t,l="#"+s,u="d"+t,h="#"+u,d=T(()=>{const J=Zt(m?l:h).node();J&&"remove"in J&&J.remove()},"removeTempElements");let f=Zt("body");const m=i.securityLevel===TY,p=i.securityLevel===_Y,x=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const D=py(Zt(r),s);f=Zt(D.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Zt(r);hv(f,t,u,`font-family: ${x}`,EY)}else{if(qY(document,t,u,s),m){const D=py(Zt("body"),s);f=Zt(D.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Zt("body");hv(f,t,u)}let C,k;try{C=await fy.fromText(e,{title:n.title})}catch(D){if(i.suppressErrorRendering)throw d(),D;C=await fy.fromText("error"),k=D}const b=f.select(h).node(),w=C.type,S=b.firstChild,A=S.firstChild,F=(Q=(H=C.renderer).getClasses)==null?void 0:Q.call(H,e,C),E=$Y(i,w,F,o),B=document.createElement("style");B.innerHTML=E,S.insertBefore(B,A);try{await C.renderer.draw(e,t,"11.14.0",C)}catch(D){throw i.suppressErrorRendering?d():gV.draw(e,t,"11.14.0"),D}const P=f.select(`${h} svg`),q=(W=(V=C.db).getAccTitle)==null?void 0:W.call(V),R=(X=(U=C.db).getAccDescription)==null?void 0:X.call(U);KB(w,P,q,R),f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",BY);let $=f.select(h).node().innerHTML;if(ht.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),$=jY($,m,Mi(i.arrowMarkerAbsolute)),m){const D=f.select(h+" svg").node();$=zY($,D)}else p||($=us.sanitize($,{ADD_TAGS:RY,ADD_ATTR:PY,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(xY(),k)throw k;return d(),{diagramType:w,svg:$,bindFunctions:C.db.bindFunctions}},"render");function GB(t={}){var n;const e=ir({},t);e!=null&&e.fontFamily&&!((n=e.themeVariables)!=null&&n.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),EP(e),e!=null&&e.theme&&e.theme in Ei?e.themeVariables=Ei[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Ei.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?LP(e):Ww();qy(r.logLevel),Fd()}T(GB,"initialize");var XB=T((t,e={})=>{const{code:r}=qx(t);return fy.fromText(r,e)},"getDiagramFromText");function KB(t,e,r,n){WB(e,t),HB(e,r,n,e.attr("id"))}T(KB,"addA11yInfo");var ra=Object.freeze({render:WY,parse:YB,getDiagramFromText:XB,initialize:GB,getConfig:Pe,setConfig:Hw,getSiteConfig:Ww,updateSiteConfig:BP,reset:T(()=>{Sh()},"reset"),globalReset:T(()=>{Sh(hs)},"globalReset"),defaultConfig:hs});qy(Pe().logLevel);Sh(Pe());var HY=T((t,e,r)=>{ht.warn(t),wx(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),QB=T(async function(t={querySelector:".mermaid"}){try{await UY(t)}catch(e){if(wx(e)&&ht.error(e.str),dn.parseError&&dn.parseError(e),!t.suppressErrors)throw ht.error("Use the suppressErrors option to suppress these errors"),e}},"run"),UY=T(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=ra.getConfig();ht.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");ht.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(ht.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),ra.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const o=new jn.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const l=[];for(const u of Array.from(i)){if(ht.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=u.innerHTML,s=fL(jn.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=jn.detectInit(s);d&&ht.debug("Detected early reinit: ",d);try{const{svg:f,bindFunctions:m}=await eA(h,s,u);u.innerHTML=f,t&&await t(h),m&&m(u)}catch(f){HY(f,l,dn.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),ZB=T(function(t){ra.initialize(t)},"initialize"),VY=T(async function(t,e,r){ht.warn("mermaid.init is deprecated. Please use run instead."),t&&ZB(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await QB(n)},"init"),YY=T(async(t,{lazyLoad:e=!0}={})=>{Fd(),mm(...t),e===!1&&await mY()},"registerExternalDiagrams"),JB=T(function(){if(dn.startOnLoad){const{startOnLoad:t}=ra.getConfig();t&&dn.run().catch(e=>ht.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",JB,!1);var GY=T(function(t){dn.parseError=t},"setParseErrorHandler"),rd=[],rg=!1,tA=T(async()=>{if(!rg){for(rg=!0;rd.length>0;){const t=rd.shift();if(t)try{await t()}catch(e){ht.error("Error executing queue",e)}}rg=!1}},"executeQueue"),XY=T(async(t,e)=>new Promise((r,n)=>{const i=T(()=>new Promise((o,s)=>{ra.parse(t,e).then(l=>{o(l),r(l)},l=>{var u;ht.error("Error parsing",l),(u=dn.parseError)==null||u.call(dn,l),s(l),n(l)})}),"performCall");rd.push(i),tA().catch(n)}),"parse"),eA=T((t,e,r)=>new Promise((n,i)=>{const o=T(()=>new Promise((s,l)=>{ra.render(t,e,r).then(u=>{s(u),n(u)},u=>{var h;ht.error("Error parsing",u),(h=dn.parseError)==null||h.call(dn,u),l(u),i(u)})}),"performCall");rd.push(o),tA().catch(i)}),"render"),KY=T(()=>Object.keys(Xo).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),dn={startOnLoad:!0,mermaidAPI:ra,parse:XY,render:eA,init:VY,run:QB,registerExternalDiagrams:YY,registerLayoutLoaders:iB,initialize:ZB,parseError:void 0,contentLoaded:JB,setParseErrorHandler:GY,detectType:Wy,registerIconPacks:Yq,getRegisteredDiagramsMetadata:KY},ng=dn;/*! Check if previously processed *//*!
483
- * Wait for document loaded before starting the execution
484
- */async function Tc(t){var e;if((e=navigator.clipboard)!=null&&e.writeText)try{return await navigator.clipboard.writeText(t),!0}catch{}try{const r=document.createElement("textarea");r.value=t,r.style.position="fixed",r.style.left="-9999px",r.style.top="-9999px",r.style.opacity="0",document.body.appendChild(r),r.select();const n=document.execCommand("copy");return document.body.removeChild(r),n}catch{return!1}}const QY=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),ZY=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),JY=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"15 3 21 3 21 9"}),L.jsx("polyline",{points:"9 21 3 21 3 15"}),L.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),L.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]});let dv=!1,tG=0;function fv(){return document.documentElement.getAttribute("data-theme")==="dark"?"dark":"default"}const pv=({chart:t})=>{const e=nt.useRef(null),[r,n]=nt.useState(null),[i,o]=nt.useState(""),[s,l]=nt.useState(!1),[u,h]=nt.useState(!1),d=kt(p=>p.openMermaidViewer);nt.useEffect(()=>{dv||(ng.initialize({startOnLoad:!1,theme:fv(),securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}}),dv=!0);let p=!1;async function x(){try{const C=`mermaid-${++tG}`,k=fv();ng.initialize({startOnLoad:!1,theme:k,securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}});const{svg:b}=await ng.render(C,t.trim());p||(o(b),n(null))}catch(C){p||(n(C instanceof Error?C.message:"Mermaid rendering failed"),o(""))}}return x(),()=>{p=!0}},[t]);const f=nt.useCallback(async()=>{await Tc(t.trim())&&(l(!0),setTimeout(()=>l(!1),2e3))},[t]),m=nt.useCallback(()=>{i&&d(i,t.trim())},[i,t,d]);return r?L.jsx("div",{className:"mermaid-error",children:r}):L.jsxs("div",{className:"mermaid-container",ref:e,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),style:{position:"relative"},children:[L.jsxs("div",{className:"mermaid-actions",style:{position:"absolute",top:8,right:8,display:"flex",gap:4,opacity:u?1:0,transition:"opacity 0.15s ease",zIndex:20},children:[L.jsx("button",{onClick:p=>{p.stopPropagation(),f()},className:"mermaid-action-btn",title:"复制 Mermaid 代码",children:s?L.jsx(ZY,{size:12}):L.jsx(QY,{size:12})}),L.jsx("button",{onClick:p=>{p.stopPropagation(),m()},className:"mermaid-action-btn",title:"查看大图",children:L.jsx(JY,{size:12})})]}),L.jsx("div",{onClick:m,style:{cursor:"pointer",userSelect:"none"},title:"点击查看大图",children:i&&L.jsx("div",{className:"mermaid-svg-wrapper",dangerouslySetInnerHTML:{__html:i}})})]})},eG=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),rG=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})});function gy(t){return typeof t=="string"?t:typeof t=="number"?String(t):t?Array.isArray(t)?t.map(gy).join(""):typeof t=="object"&&"props"in t?gy(t.props.children):"":""}const nG=({children:t,rawCode:e})=>{const[r,n]=nt.useState(!1),[i,o]=nt.useState(!1),s=nt.useRef(null),l=nt.useCallback(async()=>{const u=e??gy(t);await Tc(u.replace(/\n$/,""))&&(n(!0),setTimeout(()=>n(!1),2e3))},[t,e]);return L.jsxs("div",{ref:s,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"relative",children:[L.jsx("button",{onClick:l,className:`
485
- absolute top-2 right-2 p-1 rounded
486
- cursor-pointer flex items-center justify-center
487
- transition-all duration-150 z-10
488
- ${r?"bg-success text-white":"bg-surface-secondary border border-edge text-content hover:bg-surface-hover"}
489
- ${i?"opacity-100":"opacity-0"}
490
- `,title:r?"已复制":"复制代码",children:r?L.jsx(rG,{size:14}):L.jsx(eG,{size:14})}),t]})},iG={NOTE:{icon:"ℹ️",className:"callout-note"},TIP:{icon:"💡",className:"callout-tip"},WARNING:{icon:"⚠️",className:"callout-warning"},CAUTION:{icon:"🚫",className:"callout-caution"},IMPORTANT:{icon:"❗",className:"callout-important"}},oG=({calloutType:t,title:e,bodyText:r,bodyChildren:n,rawBodyMd:i,onEdit:o,onDelete:s})=>{const[l,u]=nt.useState(!1),[h,d]=nt.useState(t),[f,m]=nt.useState(e),[p,x]=nt.useState(i||r||my(n)),C=iG[t],k=()=>{o==null||o(h,f,p),u(!1)},b=()=>{d(t),m(e),x(i||r||my(n)),u(!1)};return l?L.jsxs("div",{className:"callout-edit-form",children:[L.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[L.jsx("label",{className:"text-[12px] text-content-tertiary",children:"类型"}),L.jsxs("select",{value:h,onChange:w=>d(w.target.value),className:"text-[13px] px-2 py-1 rounded border border-edge-light bg-surface text-content",children:[L.jsx("option",{value:"NOTE",children:"NOTE"}),L.jsx("option",{value:"TIP",children:"TIP"}),L.jsx("option",{value:"WARNING",children:"WARNING"}),L.jsx("option",{value:"CAUTION",children:"CAUTION"}),L.jsx("option",{value:"IMPORTANT",children:"IMPORTANT"})]}),L.jsx("input",{value:f,onChange:w=>m(w.target.value),placeholder:"标题(可选)",className:"flex-1 text-[13px] px-2 py-1 rounded border border-edge-light bg-surface text-content outline-none focus:border-accent"})]}),L.jsx("textarea",{value:p,onChange:w=>x(w.target.value),placeholder:"内容...",rows:3,className:"w-full text-[13px] px-2 py-1.5 rounded border border-edge-light bg-surface text-content outline-none focus:border-accent resize-y font-mono"}),L.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[L.jsx("button",{onClick:b,className:"px-3 py-1 text-[12px] rounded-md text-content-secondary hover:bg-surface-hover transition-colors",children:"取消"}),L.jsx("button",{onClick:k,className:"px-3 py-1 text-[12px] rounded-md bg-accent text-white hover:bg-accent-hover transition-colors",children:"确认"})]})]}):L.jsxs("div",{className:`callout ${C.className}`,children:[L.jsxs("div",{className:"flex items-start gap-2",children:[L.jsx("span",{className:"text-[14px] mt-0.5 shrink-0",children:C.icon}),L.jsxs("div",{className:"flex-1 min-w-0",children:[e&&L.jsx("p",{className:"font-semibold text-[14px] mb-1",children:e}),L.jsxs("div",{className:"text-[14px] text-content-secondary callout-body",children:[r&&L.jsx("p",{className:"whitespace-pre-wrap",children:r}),n]})]})]}),L.jsxs("div",{className:"callout-actions",children:[L.jsx("button",{onClick:()=>u(!0),title:"编辑 callout",className:"p-1 rounded hover:bg-surface-hover text-content-muted hover:text-content transition-colors",children:L.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})})}),L.jsx("button",{onClick:()=>s==null?void 0:s(),title:"删除 callout",className:"p-1 rounded hover:bg-surface-hover text-content-muted hover:text-danger transition-colors",children:L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M3 6h18"}),L.jsx("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),L.jsx("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]})})]})]})};function my(t){return typeof t=="string"?t:t?Ie.Children.toArray(t).map(e=>{if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Ie.isValidElement(e)){const r=e.props;return my(r.children)}return""}).join(`
491
- `):""}const aG=[{type:"NOTE",label:"NOTE",icon:"ℹ️"},{type:"TIP",label:"TIP",icon:"💡"},{type:"WARNING",label:"WARNING",icon:"⚠️"},{type:"CAUTION",label:"CAUTION",icon:"🚫"},{type:"IMPORTANT",label:"IMPORTANT",icon:"❗"}],sG=({position:t,onSelectType:e,onClose:r})=>{const n=nt.useRef(null);return nt.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&r()},o=setTimeout(()=>{document.addEventListener("mousedown",i)},100);return()=>{clearTimeout(o),document.removeEventListener("mousedown",i)}},[r]),L.jsx("div",{ref:n,className:"floating-toolbar",style:{position:"absolute",top:t.top-48,left:t.left,transform:"translateX(-50%)",zIndex:50},children:aG.map(({type:i,label:o,icon:s})=>L.jsxs("button",{onClick:()=>e(i),title:`插入 ${o} callout`,children:[s," ",o]},i))})},lG=/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*(.*)/;function cG(t){const e=Ie.Children.toArray(t);if(e.length===0)return null;const r=e.find(m=>Ie.isValidElement(m));if(!r)return null;const n=yy(r),i=n.match(lG);if(!i)return null;const o=i[1],s=i[2].trim();let l="";const u=i[0].trimEnd(),h=n.trimStart();if(h.startsWith(u)){const m=h.slice(u.length);l=m.startsWith(`
492
- `)?m.slice(1):m.trim()}const d=e.indexOf(r),f=e.slice(d+1);return{calloutType:o,title:s,bodyText:l,bodyChildren:f}}function yy(t){if(typeof t=="string")return t;if(typeof t=="number")return String(t);if(!t)return"";if(Ie.isValidElement(t)){const e=t.props;if(e.children)return Ie.Children.toArray(e.children).map(yy).join("")}return Array.isArray(t)?t.map(yy).join(""):""}function ig(t,e){const r=t.split(`
493
- `);switch(e.type){case"insert":{const n=["",`> [!${e.calloutType}] ${e.title}`,...e.content.split(`
494
- `).map(i=>`> ${i}`),""];r.splice(e.afterLine,0,...n);break}case"edit":{const n=[`> [!${e.calloutType}] ${e.title}`,...e.content.split(`
495
- `).map(i=>`> ${i}`)];r.splice(e.startLine-1,e.endLine-e.startLine+1,...n);break}case"delete":{const n=e.startLine-1;let i=e.endLine-e.startLine+1;n>0&&r[n-1]===""&&(i+=1),r.splice(n,i);break}}return r.join(`
496
- `)}function uG(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function hG(t,e){if(t==null)return{};var r,n,i=uG(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function xy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function dG(t){if(Array.isArray(t))return xy(t)}function fG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pG(t,e){if(t){if(typeof t=="string")return xy(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xy(t,e):void 0}}function gG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
497
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cy(t){return dG(t)||fG(t)||pG(t)||gG()}function uc(t){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uc(t)}function mG(t,e){if(uc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yG(t){var e=mG(t,"string");return uc(e)=="symbol"?e:e+""}function rA(t,e,r){return(e=yG(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ky(){return ky=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ky.apply(null,arguments)}function gv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ha(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gv(Object(r),!0).forEach(function(n){rA(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xG(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var og={};function CG(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return og[e]||(og[e]=xG(t)),og[e]}function kG(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t.filter(function(o){return o!=="token"}),i=CG(n);return i.reduce(function(o,s){return Ha(Ha({},o),r[s])},e)}function mv(t){return t.join(" ")}function bG(t,e){var r=0;return function(n){return r+=1,n.map(function(i,o){return nA({node:i,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(r,"-").concat(o)})})}}function nA(t){var e=t.node,r=t.stylesheet,n=t.style,i=n===void 0?{}:n,o=t.useInlineStyles,s=t.key,l=e.properties,u=e.type,h=e.tagName,d=e.value;if(u==="text")return d;if(h){var f=bG(r,o),m;if(!o)m=Ha(Ha({},l),{},{className:mv(l.className)});else{var p=Object.keys(r).reduce(function(b,w){return w.split(".").forEach(function(S){b.includes(S)||b.push(S)}),b},[]),x=l.className&&l.className.includes("token")?["token"]:[],C=l.className&&x.concat(l.className.filter(function(b){return!p.includes(b)}));m=Ha(Ha({},l),{},{className:mv(C)||void 0,style:kG(l.className,Object.assign({},l.style,i),r)})}var k=f(e.children);return Ie.createElement(h,ky({key:s},m),k)}}const vG=(function(t,e){var r=t.listLanguages();return r.indexOf(e)!==-1});var wG=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function yv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function co(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yv(Object(r),!0).forEach(function(n){rA(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var SG=/\n/g;function TG(t){return t.match(SG)}function _G(t){var e=t.lines,r=t.startingLineNumber,n=t.style;return e.map(function(i,o){var s=o+r;return Ie.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(s):n},"".concat(s,`
498
- `))})}function LG(t){var e=t.codeString,r=t.codeStyle,n=t.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,o=t.numberStyle,s=o===void 0?{}:o,l=t.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},r,i)},_G({lines:e.replace(/\n$/,"").split(`
499
- `),style:s,startingLineNumber:l}))}function EG(t){return"".concat(t.toString().length,".25em")}function iA(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function oA(t,e,r){var n={display:"inline-block",minWidth:EG(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof t=="function"?t(e):t,o=co(co({},n),i);return o}function mh(t){var e=t.children,r=t.lineNumber,n=t.lineNumberStyle,i=t.largestLineNumber,o=t.showInlineLineNumbers,s=t.lineProps,l=s===void 0?{}:s,u=t.className,h=u===void 0?[]:u,d=t.showLineNumbers,f=t.wrapLongLines,m=t.wrapLines,p=m===void 0?!1:m,x=p?co({},typeof l=="function"?l(r):l):{};if(x.className=x.className?[].concat(Cy(x.className.trim().split(/\s+/)),Cy(h)):h,r&&o){var C=oA(n,r,i);e.unshift(iA(r,C))}return f&d&&(x.style=co({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:e}}function aA(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<t.length;n++){var i=t[n];if(i.type==="text")r.push(mh({children:[i],className:Cy(new Set(e))}));else if(i.children){var o=e.concat(i.properties.className);aA(i.children,o).forEach(function(s){return r.push(s)})}}return r}function BG(t,e,r,n,i,o,s,l,u){var h,d=aA(t.value),f=[],m=-1,p=0;function x(F,E){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return mh({children:F,lineNumber:E,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:i,lineProps:r,className:B,showLineNumbers:n,wrapLongLines:u,wrapLines:e})}function C(F,E){if(n&&E&&i){var B=oA(l,E,s);F.unshift(iA(E,B))}return F}function k(F,E){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||B.length>0?x(F,E,B):C(F,E)}for(var b=function(){var E=d[p],B=E.children[0].value,P=TG(B);if(P){var q=B.split(`
500
- `);q.forEach(function(R,$){var H=n&&f.length+o,Q={type:"text",value:"".concat(R,`
501
- `)};if($===0){var V=d.slice(m+1,p).concat(mh({children:[Q],className:E.properties.className})),W=k(V,H);f.push(W)}else if($===q.length-1){var U=d[p+1]&&d[p+1].children&&d[p+1].children[0],X={type:"text",value:"".concat(R)};if(U){var D=mh({children:[X],className:E.properties.className});d.splice(p+1,0,D)}else{var J=[X],O=k(J,H,E.properties.className);f.push(O)}}else{var j=[Q],tt=k(j,H,E.properties.className);f.push(tt)}}),m=p}p++};p<d.length;)b();if(m!==d.length-1){var w=d.slice(m+1,d.length);if(w&&w.length){var S=n&&f.length+o,A=k(w,S);f.push(A)}}return e?f:(h=[]).concat.apply(h,f)}function AG(t){var e=t.rows,r=t.stylesheet,n=t.useInlineStyles;return e.map(function(i,o){return nA({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(o)})})}function sA(t){return t&&typeof t.highlightAuto<"u"}function FG(t){var e=t.astGenerator,r=t.language,n=t.code,i=t.defaultCodeValue;if(sA(e)){var o=vG(e,r);return r==="text"?{value:i,language:"text"}:o?e.highlight(r,n):e.highlightAuto(n)}try{return r&&r!=="text"?{value:e.highlight(n,r)}:{value:i}}catch{return{value:i}}}function IG(t,e){return function(n){var i,o,s=n.language,l=n.children,u=n.style,h=u===void 0?e:u,d=n.customStyle,f=d===void 0?{}:d,m=n.codeTagProps,p=m===void 0?{className:s?"language-".concat(s):void 0,style:co(co({},h['code[class*="language-"]']),h['code[class*="language-'.concat(s,'"]')])}:m,x=n.useInlineStyles,C=x===void 0?!0:x,k=n.showLineNumbers,b=k===void 0?!1:k,w=n.showInlineLineNumbers,S=w===void 0?!0:w,A=n.startingLineNumber,F=A===void 0?1:A,E=n.lineNumberContainerStyle,B=n.lineNumberStyle,P=B===void 0?{}:B,q=n.wrapLines,R=n.wrapLongLines,$=R===void 0?!1:R,H=n.lineProps,Q=H===void 0?{}:H,V=n.renderer,W=n.PreTag,U=W===void 0?"pre":W,X=n.CodeTag,D=X===void 0?"code":X,J=n.code,O=J===void 0?(Array.isArray(l)?l[0]:l)||"":J,j=n.astGenerator,tt=hG(n,wG);j=j||t;var N=b?Ie.createElement(LG,{containerStyle:E,codeStyle:p.style||{},numberStyle:P,startingLineNumber:F,codeString:O}):null,ct=h.hljs||h['pre[class*="language-"]']||{backgroundColor:"#fff"},lt=sA(j)?"hljs":"prismjs",mt=C?Object.assign({},tt,{style:Object.assign({},ct,f)}):Object.assign({},tt,{className:tt.className?"".concat(lt," ").concat(tt.className):lt,style:Object.assign({},f)});if($?p.style=co({whiteSpace:"pre-wrap"},p.style):p.style=co({whiteSpace:"pre"},p.style),!j)return Ie.createElement(U,mt,N,Ie.createElement(D,p,O));(q===void 0&&V||$)&&(q=!0),V=V||AG;var St=[{type:"text",value:O}],Tt=FG({astGenerator:j,language:s,code:O,defaultCodeValue:St});Tt.language===null&&(Tt.value=St);var Dt=(i=(o=O.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&i!==void 0?i:0,xt=F+Dt,Lt=BG(Tt,q,Q,b,S,F,xt,P,$);return Ie.createElement(U,mt,Ie.createElement(D,p,!S&&N,V({rows:Lt,stylesheet:h,useInlineStyles:C})))}}var ag,xv;function MG(){if(xv)return ag;xv=1,ag=e;var t=Object.prototype.hasOwnProperty;function e(){for(var r={},n=0;n<arguments.length;n++){var i=arguments[n];for(var o in i)t.call(i,o)&&(r[o]=i[o])}return r}return ag}var sg,Cv;function lA(){if(Cv)return sg;Cv=1,sg=e;var t=e.prototype;t.space=null,t.normal={},t.property={};function e(r,n,i){this.property=r,this.normal=n,i&&(this.space=i)}return sg}var lg,kv;function OG(){if(kv)return lg;kv=1;var t=MG(),e=lA();lg=r;function r(n){for(var i=n.length,o=[],s=[],l=-1,u,h;++l<i;)u=n[l],o.push(u.property),s.push(u.normal),h=u.space;return new e(t.apply(null,o),t.apply(null,s),h)}return lg}var cg,bv;function Hx(){if(bv)return cg;bv=1,cg=t;function t(e){return e.toLowerCase()}return cg}var ug,vv;function cA(){if(vv)return ug;vv=1,ug=e;var t=e.prototype;t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1;function e(r,n){this.property=r,this.attribute=n}return ug}var Ti={},wv;function Ux(){if(wv)return Ti;wv=1;var t=0;Ti.boolean=e(),Ti.booleanish=e(),Ti.overloadedBoolean=e(),Ti.number=e(),Ti.spaceSeparated=e(),Ti.commaSeparated=e(),Ti.commaOrSpaceSeparated=e();function e(){return Math.pow(2,++t)}return Ti}var hg,Sv;function uA(){if(Sv)return hg;Sv=1;var t=cA(),e=Ux();hg=i,i.prototype=new t,i.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],n=r.length;function i(s,l,u,h){var d=-1,f;for(o(this,"space",h),t.call(this,s,l);++d<n;)f=r[d],o(this,f,(u&e[f])===e[f])}function o(s,l,u){u&&(s[l]=u)}return hg}var dg,Tv;function _c(){if(Tv)return dg;Tv=1;var t=Hx(),e=lA(),r=uA();dg=n;function n(i){var o=i.space,s=i.mustUseProperty||[],l=i.attributes||{},u=i.properties,h=i.transform,d={},f={},m,p;for(m in u)p=new r(m,h(l,m),u[m],o),s.indexOf(m)!==-1&&(p.mustUseProperty=!0),d[m]=p,f[t(m)]=m,f[t(p.attribute)]=m;return new e(d,f,o)}return dg}var fg,_v;function NG(){if(_v)return fg;_v=1;var t=_c();fg=t({space:"xlink",transform:e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function e(r,n){return"xlink:"+n.slice(5).toLowerCase()}return fg}var pg,Lv;function RG(){if(Lv)return pg;Lv=1;var t=_c();pg=t({space:"xml",transform:e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e(r,n){return"xml:"+n.slice(3).toLowerCase()}return pg}var gg,Ev;function PG(){if(Ev)return gg;Ev=1,gg=t;function t(e,r){return r in e?e[r]:r}return gg}var mg,Bv;function hA(){if(Bv)return mg;Bv=1;var t=PG();mg=e;function e(r,n){return t(r,n.toLowerCase())}return mg}var yg,Av;function DG(){if(Av)return yg;Av=1;var t=_c(),e=hA();return yg=t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e,properties:{xmlns:null,xmlnsXLink:null}}),yg}var xg,Fv;function $G(){if(Fv)return xg;Fv=1;var t=Ux(),e=_c(),r=t.booleanish,n=t.number,i=t.spaceSeparated;xg=e({transform:o,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:r,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:i,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:n,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:i,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:r,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}});function o(s,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}return xg}var Cg,Iv;function jG(){if(Iv)return Cg;Iv=1;var t=Ux(),e=_c(),r=hA(),n=t.boolean,i=t.overloadedBoolean,o=t.booleanish,s=t.number,l=t.spaceSeparated,u=t.commaSeparated;return Cg=e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:n,allowPaymentRequest:n,allowUserMedia:n,alt:null,as:null,async:n,autoCapitalize:null,autoComplete:l,autoFocus:n,autoPlay:n,capture:n,charSet:null,checked:n,cite:null,className:l,cols:s,colSpan:null,content:null,contentEditable:o,controls:n,controlsList:l,coords:s|u,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n,defer:n,dir:null,dirName:null,disabled:n,download:i,draggable:o,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n,formTarget:null,headers:l,height:s,hidden:n,high:s,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:u,inputMode:null,integrity:null,is:null,isMap:n,itemId:null,itemProp:l,itemRef:l,itemScope:n,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:n,muted:n,name:null,nonce:null,noModule:n,noValidate:n,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:n,optimum:s,pattern:null,ping:l,placeholder:null,playsInline:n,poster:null,preload:null,readOnly:n,referrerPolicy:null,rel:l,required:n,reversed:n,rows:s,rowSpan:s,sandbox:l,scope:null,scoped:n,seamless:n,selected:n,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:o,src:null,srcDoc:null,srcLang:null,srcSet:u,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:n,useMap:null,value:o,width:s,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n,declare:n,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:n,noHref:n,noShade:n,noWrap:n,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:o,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n,disableRemotePlayback:n,prefix:null,property:null,results:s,security:null,unselectable:null}}),Cg}var kg,Mv;function zG(){if(Mv)return kg;Mv=1;var t=OG(),e=NG(),r=RG(),n=DG(),i=$G(),o=jG();return kg=t([r,e,n,i,o]),kg}var bg,Ov;function qG(){if(Ov)return bg;Ov=1;var t=Hx(),e=uA(),r=cA(),n="data";bg=l;var i=/^data[-\w.:]+$/i,o=/-[a-z]/g,s=/[A-Z]/g;function l(m,p){var x=t(p),C=p,k=r;return x in m.normal?m.property[m.normal[x]]:(x.length>4&&x.slice(0,4)===n&&i.test(p)&&(p.charAt(4)==="-"?C=u(p):p=h(p),k=e),new k(C,p))}function u(m){var p=m.slice(5).replace(o,f);return n+p.charAt(0).toUpperCase()+p.slice(1)}function h(m){var p=m.slice(4);return o.test(p)?m:(p=p.replace(s,d),p.charAt(0)!=="-"&&(p="-"+p),n+p)}function d(m){return"-"+m.toLowerCase()}function f(m){return m.charAt(1).toUpperCase()}return bg}var vg,Nv;function WG(){if(Nv)return vg;Nv=1,vg=e;var t=/[#.]/g;function e(r,n){for(var i=r||"",o=n||"div",s={},l=0,u,h,d;l<i.length;)t.lastIndex=l,d=t.exec(i),u=i.slice(l,d?d.index:i.length),u&&(h?h==="#"?s.id=u:s.className?s.className.push(u):s.className=[u]:o=u,l+=u.length),d&&(h=d[0],l++);return{type:"element",tagName:o,properties:s,children:[]}}return vg}var Qu={},Rv;function HG(){if(Rv)return Qu;Rv=1,Qu.parse=n,Qu.stringify=i;var t="",e=" ",r=/[ \t\n\r\f]+/g;function n(o){var s=String(o||t).trim();return s===t?[]:s.split(r)}function i(o){return o.join(e).trim()}return Qu}var Zu={},Pv;function UG(){if(Pv)return Zu;Pv=1,Zu.parse=n,Zu.stringify=i;var t=",",e=" ",r="";function n(o){for(var s=[],l=String(o||r),u=l.indexOf(t),h=0,d=!1,f;!d;)u===-1&&(u=l.length,d=!0),f=l.slice(h,u).trim(),(f||!d)&&s.push(f),h=u+1,u=l.indexOf(t,h);return s}function i(o,s){var l=s||{},u=l.padLeft===!1?r:e,h=l.padRight?e:r;return o[o.length-1]===r&&(o=o.concat(r)),o.join(h+t+u).trim()}return Zu}var wg,Dv;function VG(){if(Dv)return wg;Dv=1;var t=qG(),e=Hx(),r=WG(),n=HG().parse,i=UG().parse;wg=s;var o={}.hasOwnProperty;function s(x,C,k){var b=k?p(k):null;return w;function w(A,F){var E=r(A,C),B=Array.prototype.slice.call(arguments,2),P=E.tagName.toLowerCase(),q;if(E.tagName=b&&o.call(b,P)?b[P]:P,F&&l(F,E)&&(B.unshift(F),F=null),F)for(q in F)S(E.properties,q,F[q]);return h(E.children,B),E.tagName==="template"&&(E.content={type:"root",children:E.children},E.children=[]),E}function S(A,F,E){var B,P,q;E==null||E!==E||(B=t(x,F),P=B.property,q=E,typeof q=="string"&&(B.spaceSeparated?q=n(q):B.commaSeparated?q=i(q):B.commaOrSpaceSeparated&&(q=n(i(q).join(" ")))),P==="style"&&typeof E!="string"&&(q=m(q)),P==="className"&&A.className&&(q=A.className.concat(q)),A[P]=d(B,P,q))}}function l(x,C){return typeof x=="string"||"length"in x||u(C.tagName,x)}function u(x,C){var k=C.type;return x==="input"||!k||typeof k!="string"?!1:typeof C.children=="object"&&"length"in C.children?!0:(k=k.toLowerCase(),x==="button"?k!=="menu"&&k!=="submit"&&k!=="reset"&&k!=="button":"value"in C)}function h(x,C){var k,b;if(typeof C=="string"||typeof C=="number"){x.push({type:"text",value:String(C)});return}if(typeof C=="object"&&"length"in C){for(k=-1,b=C.length;++k<b;)h(x,C[k]);return}if(typeof C!="object"||!("type"in C))throw new Error("Expected node, nodes, or string, got `"+C+"`");x.push(C)}function d(x,C,k){var b,w,S;if(typeof k!="object"||!("length"in k))return f(x,C,k);for(w=k.length,b=-1,S=[];++b<w;)S[b]=f(x,C,k[b]);return S}function f(x,C,k){var b=k;return x.number||x.positiveNumber?!isNaN(b)&&b!==""&&(b=Number(b)):(x.boolean||x.overloadedBoolean)&&typeof b=="string"&&(b===""||e(k)===e(C))&&(b=!0),b}function m(x){var C=[],k;for(k in x)C.push([k,x[k]].join(": "));return C.join("; ")}function p(x){for(var C=x.length,k=-1,b={},w;++k<C;)w=x[k],b[w.toLowerCase()]=w;return b}return wg}var Sg,$v;function YG(){if($v)return Sg;$v=1;var t=zG(),e=VG(),r=e(t,"div");return r.displayName="html",Sg=r,Sg}var Tg,jv;function GG(){return jv||(jv=1,Tg=YG()),Tg}const XG="Æ",KG="&",QG="Á",ZG="Â",JG="À",tX="Å",eX="Ã",rX="Ä",nX="©",iX="Ç",oX="Ð",aX="É",sX="Ê",lX="È",cX="Ë",uX=">",hX="Í",dX="Î",fX="Ì",pX="Ï",gX="<",mX="Ñ",yX="Ó",xX="Ô",CX="Ò",kX="Ø",bX="Õ",vX="Ö",wX='"',SX="®",TX="Þ",_X="Ú",LX="Û",EX="Ù",BX="Ü",AX="Ý",FX="á",IX="â",MX="´",OX="æ",NX="à",RX="&",PX="å",DX="ã",$X="ä",jX="¦",zX="ç",qX="¸",WX="¢",HX="©",UX="¤",VX="°",YX="÷",GX="é",XX="ê",KX="è",QX="ð",ZX="ë",JX="½",tK="¼",eK="¾",rK=">",nK="í",iK="î",oK="¡",aK="ì",sK="¿",lK="ï",cK="«",uK="<",hK="¯",dK="µ",fK="·",pK=" ",gK="¬",mK="ñ",yK="ó",xK="ô",CK="ò",kK="ª",bK="º",vK="ø",wK="õ",SK="ö",TK="¶",_K="±",LK="£",EK='"',BK="»",AK="®",FK="§",IK="­",MK="¹",OK="²",NK="³",RK="ß",PK="þ",DK="×",$K="ú",jK="û",zK="ù",qK="¨",WK="ü",HK="ý",UK="¥",VK="ÿ",YK={AElig:XG,AMP:KG,Aacute:QG,Acirc:ZG,Agrave:JG,Aring:tX,Atilde:eX,Auml:rX,COPY:nX,Ccedil:iX,ETH:oX,Eacute:aX,Ecirc:sX,Egrave:lX,Euml:cX,GT:uX,Iacute:hX,Icirc:dX,Igrave:fX,Iuml:pX,LT:gX,Ntilde:mX,Oacute:yX,Ocirc:xX,Ograve:CX,Oslash:kX,Otilde:bX,Ouml:vX,QUOT:wX,REG:SX,THORN:TX,Uacute:_X,Ucirc:LX,Ugrave:EX,Uuml:BX,Yacute:AX,aacute:FX,acirc:IX,acute:MX,aelig:OX,agrave:NX,amp:RX,aring:PX,atilde:DX,auml:$X,brvbar:jX,ccedil:zX,cedil:qX,cent:WX,copy:HX,curren:UX,deg:VX,divide:YX,eacute:GX,ecirc:XX,egrave:KX,eth:QX,euml:ZX,frac12:JX,frac14:tK,frac34:eK,gt:rK,iacute:nK,icirc:iK,iexcl:oK,igrave:aK,iquest:sK,iuml:lK,laquo:cK,lt:uK,macr:hK,micro:dK,middot:fK,nbsp:pK,not:gK,ntilde:mK,oacute:yK,ocirc:xK,ograve:CK,ordf:kK,ordm:bK,oslash:vK,otilde:wK,ouml:SK,para:TK,plusmn:_K,pound:LK,quot:EK,raquo:BK,reg:AK,sect:FK,shy:IK,sup1:MK,sup2:OK,sup3:NK,szlig:RK,thorn:PK,times:DK,uacute:$K,ucirc:jK,ugrave:zK,uml:qK,uuml:WK,yacute:HK,yen:UK,yuml:VK},GK={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var _g,zv;function dA(){if(zv)return _g;zv=1,_g=t;function t(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}return _g}var Lg,qv;function XK(){if(qv)return Lg;qv=1,Lg=t;function t(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Lg}var Eg,Wv;function KK(){if(Wv)return Eg;Wv=1,Eg=t;function t(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}return Eg}var Bg,Hv;function QK(){if(Hv)return Bg;Hv=1;var t=KK(),e=dA();Bg=r;function r(n){return t(n)||e(n)}return Bg}var Ag,Uv;function ZK(){if(Uv)return Ag;Uv=1;var t,e=59;Ag=r;function r(n){var i="&"+n+";",o;return t=t||document.createElement("i"),t.innerHTML=i,o=t.textContent,o.charCodeAt(o.length-1)===e&&n!=="semi"||o===i?!1:o}return Ag}var Fg,Vv;function JK(){if(Vv)return Fg;Vv=1;var t=YK,e=GK,r=dA(),n=XK(),i=QK(),o=ZK();Fg=J;var s={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d=9,f=10,m=12,p=32,x=38,C=59,k=60,b=61,w=35,S=88,A=120,F=65533,E="named",B="hexadecimal",P="decimal",q={};q[B]=16,q[P]=10;var R={};R[E]=i,R[P]=r,R[B]=n;var $=1,H=2,Q=3,V=4,W=5,U=6,X=7,D={};D[$]="Named character references must be terminated by a semicolon",D[H]="Numeric character references must be terminated by a semicolon",D[Q]="Named character references cannot be empty",D[V]="Numeric character references cannot be empty",D[W]="Named character references must be known",D[U]="Numeric character references cannot be disallowed",D[X]="Numeric character references cannot be outside the permissible Unicode range";function J(N,ct){var lt={},mt,St;ct||(ct={});for(St in h)mt=ct[St],lt[St]=mt??h[St];return(lt.position.indent||lt.position.start)&&(lt.indent=lt.position.indent||[],lt.position=lt.position.start),O(N,lt)}function O(N,ct){var lt=ct.additional,mt=ct.nonTerminated,St=ct.text,Tt=ct.reference,Dt=ct.warning,xt=ct.textContext,Lt=ct.referenceContext,re=ct.warningContext,Qt=ct.position,Ye=ct.indent||[],ke=N.length,qe=0,jr=-1,Me=Qt.column||1,zr=Qt.line||1,We="",Br=[],Ar,Yn,mr,Be,at,ut,bt,$t,Xt,Te,Ge,Oe,He,me,ye,Xe,De,yr,xe;for(typeof lt=="string"&&(lt=lt.charCodeAt(0)),Xe=hr(),$t=Dt?Gn:u,qe--,ke++;++qe<ke;)if(at===f&&(Me=Ye[jr]||1),at=N.charCodeAt(qe),at===x){if(bt=N.charCodeAt(qe+1),bt===d||bt===f||bt===m||bt===p||bt===x||bt===k||bt!==bt||lt&&bt===lt){We+=l(at),Me++;continue}for(He=qe+1,Oe=He,xe=He,bt===w?(xe=++Oe,bt=N.charCodeAt(xe),bt===S||bt===A?(me=B,xe=++Oe):me=P):me=E,Ar="",Ge="",Be="",ye=R[me],xe--;++xe<ke&&(bt=N.charCodeAt(xe),!!ye(bt));)Be+=l(bt),me===E&&s.call(t,Be)&&(Ar=Be,Ge=t[Be]);mr=N.charCodeAt(xe)===C,mr&&(xe++,Yn=me===E?o(Be):!1,Yn&&(Ar=Be,Ge=Yn)),yr=1+xe-He,!mr&&!mt||(Be?me===E?(mr&&!Ge?$t(W,1):(Ar!==Be&&(xe=Oe+Ar.length,yr=1+xe-Oe,mr=!1),mr||(Xt=Ar?$:Q,ct.attribute?(bt=N.charCodeAt(xe),bt===b?($t(Xt,yr),Ge=null):i(bt)?Ge=null:$t(Xt,yr)):$t(Xt,yr))),ut=Ge):(mr||$t(H,yr),ut=parseInt(Be,q[me]),j(ut)?($t(X,yr),ut=l(F)):ut in e?($t(U,yr),ut=e[ut]):(Te="",tt(ut)&&$t(U,yr),ut>65535&&(ut-=65536,Te+=l(ut>>>10|55296),ut=56320|ut&1023),ut=Te+l(ut))):me!==E&&$t(V,yr)),ut?(Ln(),Xe=hr(),qe=xe-1,Me+=xe-He+1,Br.push(ut),De=hr(),De.offset++,Tt&&Tt.call(Lt,ut,{start:Xe,end:De},N.slice(He-1,xe)),Xe=De):(Be=N.slice(He-1,xe),We+=Be,Me+=Be.length,qe=xe-1)}else at===10&&(zr++,jr++,Me=0),at===at?(We+=l(at),Me++):Ln();return Br.join("");function hr(){return{line:zr,column:Me,offset:qe+(Qt.offset||0)}}function Gn(ko,bo){var be=hr();be.column+=bo,be.offset+=bo,Dt.call(re,D[ko],be,ko)}function Ln(){We&&(Br.push(We),St&&St.call(xt,We,{start:Xe,end:hr()}),We="")}}function j(N){return N>=55296&&N<=57343||N>1114111}function tt(N){return N>=1&&N<=8||N===11||N>=13&&N<=31||N>=127&&N<=159||N>=64976&&N<=65007||(N&65535)===65535||(N&65535)===65534}return Fg}var Ig={exports:{}},Yv;function tQ(){return Yv||(Yv=1,(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
502
- * Prism: Lightweight, robust, elegant syntax highlighting
503
- *
504
- * @license MIT <https://opensource.org/licenses/MIT>
505
- * @author Lea Verou <https://lea.verou.me>
506
- * @namespace
507
- * @public
508
- */var r=(function(n){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function w(S){return S instanceof u?new u(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(S,A){A=A||{};var F,E;switch(l.util.type(S)){case"Object":if(E=l.util.objId(S),A[E])return A[E];F={},A[E]=F;for(var B in S)S.hasOwnProperty(B)&&(F[B]=w(S[B],A));return F;case"Array":return E=l.util.objId(S),A[E]?A[E]:(F=[],A[E]=F,S.forEach(function(P,q){F[q]=w(P,A)}),F);default:return S}},getLanguage:function(w){for(;w;){var S=i.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(F){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(w){var S=document.getElementsByTagName("script");for(var A in S)if(S[A].src==w)return S[A]}return null}},isActive:function(w,S,A){for(var F="no-"+S;w;){var E=w.classList;if(E.contains(S))return!0;if(E.contains(F))return!1;w=w.parentElement}return!!A}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,S){var A=l.util.clone(l.languages[w]);for(var F in S)A[F]=S[F];return A},insertBefore:function(w,S,A,F){F=F||l.languages;var E=F[w],B={};for(var P in E)if(E.hasOwnProperty(P)){if(P==S)for(var q in A)A.hasOwnProperty(q)&&(B[q]=A[q]);A.hasOwnProperty(P)||(B[P]=E[P])}var R=F[w];return F[w]=B,l.languages.DFS(l.languages,function($,H){H===R&&$!=w&&(this[$]=B)}),B},DFS:function w(S,A,F,E){E=E||{};var B=l.util.objId;for(var P in S)if(S.hasOwnProperty(P)){A.call(S,P,S[P],F||P);var q=S[P],R=l.util.type(q);R==="Object"&&!E[B(q)]?(E[B(q)]=!0,w(q,A,null,E)):R==="Array"&&!E[B(q)]&&(E[B(q)]=!0,w(q,A,P,E))}}},plugins:{},highlightAll:function(w,S){l.highlightAllUnder(document,w,S)},highlightAllUnder:function(w,S,A){var F={callback:A,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),l.hooks.run("before-all-elements-highlight",F);for(var E=0,B;B=F.elements[E++];)l.highlightElement(B,S===!0,F.callback)},highlightElement:function(w,S,A){var F=l.util.getLanguage(w),E=l.languages[F];l.util.setLanguage(w,F);var B=w.parentElement;B&&B.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(B,F);var P=w.textContent,q={element:w,language:F,grammar:E,code:P};function R(H){q.highlightedCode=H,l.hooks.run("before-insert",q),q.element.innerHTML=q.highlightedCode,l.hooks.run("after-highlight",q),l.hooks.run("complete",q),A&&A.call(q.element)}if(l.hooks.run("before-sanity-check",q),B=q.element.parentElement,B&&B.nodeName.toLowerCase()==="pre"&&!B.hasAttribute("tabindex")&&B.setAttribute("tabindex","0"),!q.code){l.hooks.run("complete",q),A&&A.call(q.element);return}if(l.hooks.run("before-highlight",q),!q.grammar){R(l.util.encode(q.code));return}if(S&&n.Worker){var $=new Worker(l.filename);$.onmessage=function(H){R(H.data)},$.postMessage(JSON.stringify({language:q.language,code:q.code,immediateClose:!0}))}else R(l.highlight(q.code,q.grammar,q.language))},highlight:function(w,S,A){var F={code:w,grammar:S,language:A};if(l.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=l.tokenize(F.code,F.grammar),l.hooks.run("after-tokenize",F),u.stringify(l.util.encode(F.tokens),F.language)},tokenize:function(w,S){var A=S.rest;if(A){for(var F in A)S[F]=A[F];delete S.rest}var E=new f;return m(E,E.head,w),d(w,E,S,E.head,0),x(E)},hooks:{all:{},add:function(w,S){var A=l.hooks.all;A[w]=A[w]||[],A[w].push(S)},run:function(w,S){var A=l.hooks.all[w];if(!(!A||!A.length))for(var F=0,E;E=A[F++];)E(S)}},Token:u};n.Prism=l;function u(w,S,A,F){this.type=w,this.content=S,this.alias=A,this.length=(F||"").length|0}u.stringify=function w(S,A){if(typeof S=="string")return S;if(Array.isArray(S)){var F="";return S.forEach(function(R){F+=w(R,A)}),F}var E={type:S.type,content:w(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},B=S.alias;B&&(Array.isArray(B)?Array.prototype.push.apply(E.classes,B):E.classes.push(B)),l.hooks.run("wrap",E);var P="";for(var q in E.attributes)P+=" "+q+'="'+(E.attributes[q]||"").replace(/"/g,"&quot;")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+P+">"+E.content+"</"+E.tag+">"};function h(w,S,A,F){w.lastIndex=S;var E=w.exec(A);if(E&&F&&E[1]){var B=E[1].length;E.index+=B,E[0]=E[0].slice(B)}return E}function d(w,S,A,F,E,B){for(var P in A)if(!(!A.hasOwnProperty(P)||!A[P])){var q=A[P];q=Array.isArray(q)?q:[q];for(var R=0;R<q.length;++R){if(B&&B.cause==P+","+R)return;var $=q[R],H=$.inside,Q=!!$.lookbehind,V=!!$.greedy,W=$.alias;if(V&&!$.pattern.global){var U=$.pattern.toString().match(/[imsuy]*$/)[0];$.pattern=RegExp($.pattern.source,U+"g")}for(var X=$.pattern||$,D=F.next,J=E;D!==S.tail&&!(B&&J>=B.reach);J+=D.value.length,D=D.next){var O=D.value;if(S.length>w.length)return;if(!(O instanceof u)){var j=1,tt;if(V){if(tt=h(X,J,w,Q),!tt||tt.index>=w.length)break;var mt=tt.index,N=tt.index+tt[0].length,ct=J;for(ct+=D.value.length;mt>=ct;)D=D.next,ct+=D.value.length;if(ct-=D.value.length,J=ct,D.value instanceof u)continue;for(var lt=D;lt!==S.tail&&(ct<N||typeof lt.value=="string");lt=lt.next)j++,ct+=lt.value.length;j--,O=w.slice(J,ct),tt.index-=J}else if(tt=h(X,0,O,Q),!tt)continue;var mt=tt.index,St=tt[0],Tt=O.slice(0,mt),Dt=O.slice(mt+St.length),xt=J+O.length;B&&xt>B.reach&&(B.reach=xt);var Lt=D.prev;Tt&&(Lt=m(S,Lt,Tt),J+=Tt.length),p(S,Lt,j);var re=new u(P,H?l.tokenize(St,H):St,W,St);if(D=m(S,Lt,re),Dt&&m(S,D,Dt),j>1){var Qt={cause:P+","+R,reach:xt};d(w,S,A,D.prev,J,Qt),B&&Qt.reach>B.reach&&(B.reach=Qt.reach)}}}}}}function f(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function m(w,S,A){var F=S.next,E={value:A,prev:S,next:F};return S.next=E,F.prev=E,w.length++,E}function p(w,S,A){for(var F=S.next,E=0;E<A&&F!==w.tail;E++)F=F.next;S.next=F,F.prev=S,w.length-=E}function x(w){for(var S=[],A=w.head.next;A!==w.tail;)S.push(A.value),A=A.next;return S}if(!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(w){var S=JSON.parse(w.data),A=S.language,F=S.code,E=S.immediateClose;n.postMessage(l.highlight(F,l.languages[A],A)),E&&n.close()},!1)),l;var C=l.util.currentScript();C&&(l.filename=C.src,C.hasAttribute("data-manual")&&(l.manual=!0));function k(){l.manual||l.highlightAll()}if(!l.manual){var b=document.readyState;b==="loading"||b==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",k):window.requestAnimationFrame?window.requestAnimationFrame(k):window.setTimeout(k,16)}return l})(e);t.exports&&(t.exports=r),typeof yh<"u"&&(yh.Prism=r)})(Ig)),Ig.exports}var Mg,Gv;function eQ(){if(Gv)return Mg;Gv=1,Mg=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}return Mg}var Og,Xv;function fA(){if(Xv)return Og;Xv=1,Og=t,t.displayName="css",t.aliases=[];function t(e){(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(e)}return Og}var Ng,Kv;function rQ(){if(Kv)return Ng;Kv=1,Ng=t,t.displayName="clike",t.aliases=[];function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return Ng}var Rg,Qv;function pA(){if(Qv)return Rg;Qv=1,Rg=t,t.displayName="javascript",t.aliases=["js"];function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}return Rg}var Pg,Zv;function nQ(){if(Zv)return Pg;Zv=1;var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof yh=="object"?yh:{},e=F();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var r=GG(),n=JK(),i=tQ(),o=eQ(),s=fA(),l=rQ(),u=pA();e();var h={}.hasOwnProperty;function d(){}d.prototype=i;var f=new d;Pg=f,f.highlight=x,f.register=m,f.alias=p,f.registered=C,f.listLanguages=k,m(o),m(s),m(l),m(u),f.util.encode=S,f.Token.stringify=b;function m(E){if(typeof E!="function"||!E.displayName)throw new Error("Expected `function` for `grammar`, got `"+E+"`");f.languages[E.displayName]===void 0&&E(f)}function p(E,B){var P=f.languages,q=E,R,$,H,Q;B&&(q={},q[E]=B);for(R in q)for($=q[R],$=typeof $=="string"?[$]:$,H=$.length,Q=-1;++Q<H;)P[$[Q]]=P[R]}function x(E,B){var P=i.highlight,q;if(typeof E!="string")throw new Error("Expected `string` for `value`, got `"+E+"`");if(f.util.type(B)==="Object")q=B,B=null;else{if(typeof B!="string")throw new Error("Expected `string` for `name`, got `"+B+"`");if(h.call(f.languages,B))q=f.languages[B];else throw new Error("Unknown language: `"+B+"` is not registered")}return P.call(this,E,q,B)}function C(E){if(typeof E!="string")throw new Error("Expected `string` for `language`, got `"+E+"`");return h.call(f.languages,E)}function k(){var E=f.languages,B=[],P;for(P in E)h.call(E,P)&&typeof E[P]=="object"&&B.push(P);return B}function b(E,B,P){var q;return typeof E=="string"?{type:"text",value:E}:f.util.type(E)==="Array"?w(E,B):(q={type:E.type,content:f.Token.stringify(E.content,B,P),tag:"span",classes:["token",E.type],attributes:{},language:B,parent:P},E.alias&&(q.classes=q.classes.concat(E.alias)),f.hooks.run("wrap",q),r(q.tag+"."+q.classes.join("."),A(q.attributes),q.content))}function w(E,B){for(var P=[],q=E.length,R=-1,$;++R<q;)$=E[R],$!==""&&$!==null&&$!==void 0&&P.push($);for(R=-1,q=P.length;++R<q;)$=P[R],P[R]=f.Token.stringify($,B,P);return P}function S(E){return E}function A(E){var B;for(B in E)E[B]=n(E[B]);return E}function F(){var E="Prism"in t,B=E?t.Prism:void 0;return P;function P(){E?t.Prism=B:delete t.Prism,E=void 0,B=void 0}}return Pg}var iQ=nQ();const Vx=tr(iQ);var de=IG(Vx,{});de.registerLanguage=function(t,e){return Vx.register(e)};de.alias=function(t,e){return Vx.alias(t,e)};const gA={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},oQ={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}};var Dg,Jv;function mA(){if(Jv)return Dg;Jv=1,Dg=t,t.displayName="typescript",t.aliases=["ts"];function t(e){(function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(e)}return Dg}var aQ=mA();const yA=tr(aQ);var sQ=pA();const xA=tr(sQ);var $g,t2;function lQ(){if(t2)return $g;t2=1,$g=t,t.displayName="python",t.aliases=["py"];function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}return $g}var cQ=lQ();const CA=tr(cQ);var jg,e2;function uQ(){if(e2)return jg;e2=1,jg=t,t.displayName="json",t.aliases=["webmanifest"];function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}return jg}var hQ=uQ();const kA=tr(hQ);var zg,r2;function dQ(){if(r2)return zg;r2=1,zg=t,t.displayName="bash",t.aliases=["shell"];function t(e){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:i,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=r.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,u=0;u<s.length;u++)l[s[u]]=r.languages.bash[s[u]];r.languages.shell=r.languages.bash})(e)}return zg}var fQ=dQ();const bA=tr(fQ);var pQ=fA();const vA=tr(pQ);var qg,n2;function gQ(){if(n2)return qg;n2=1,qg=t,t.displayName="sql",t.aliases=[];function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return qg}var mQ=gQ();const wA=tr(mQ);var Wg,i2;function yQ(){if(i2)return Wg;i2=1,Wg=t,t.displayName="yaml",t.aliases=["yml"];function t(e){(function(r){var n=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(h,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return h});return RegExp(f,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(e)}return Wg}var xQ=yQ();const SA=tr(xQ);var Hg,o2;function CQ(){if(o2)return Hg;o2=1,Hg=t,t.displayName="markdown",t.aliases=["md"];function t(e){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(m){return m=m.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+l+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+l+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(p){m!==p&&(r.languages.markdown[m].inside.content.inside[p]=r.languages.markdown[p])})}),r.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function p(x){if(!(!x||typeof x=="string"))for(var C=0,k=x.length;C<k;C++){var b=x[C];if(b.type!=="code"){p(b.content);continue}var w=b.content[1],S=b.content[3];if(w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"){var A=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var F="language-"+A;S.alias?typeof S.alias=="string"?S.alias=[S.alias,F]:S.alias.push(F):S.alias=[F]}}}p(m.tokens)}),r.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var p="",x=0,C=m.classes.length;x<C;x++){var k=m.classes[x],b=/language-(.+)/.exec(k);if(b){p=b[1];break}}var w=r.languages[p];if(w)m.content=r.highlight(f(m.content.value),w,p);else if(p&&p!=="none"&&r.plugins.autoloader){var S="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=S,r.plugins.autoloader.loadLanguages(p,function(){var A=document.getElementById(S);A&&(A.innerHTML=r.highlight(A.textContent,r.languages[p],p))})}}});var u=RegExp(r.languages.markup.tag.pattern.source,"gi"),h={amp:"&",lt:"<",gt:">",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function f(m){var p=m.replace(u,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(x,C){if(C=C.toLowerCase(),C[0]==="#"){var k;return C[1]==="x"?k=parseInt(C.slice(2),16):k=Number(C.slice(1)),d(k)}else{var b=h[C];return b||x}}),p}r.languages.md=r.languages.markdown})(e)}return Hg}var kQ=CQ();const TA=tr(kQ);var Ug,a2;function bQ(){if(a2)return Ug;a2=1,Ug=t,t.displayName="java",t.aliases=[];function t(e){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}return Ug}var vQ=bQ();const _A=tr(vQ);var Vg,s2;function wQ(){if(s2)return Vg;s2=1,Vg=t,t.displayName="c",t.aliases=[];function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}return Vg}var Yg,l2;function SQ(){if(l2)return Yg;l2=1;var t=wQ();Yg=e,e.displayName="cpp",e.aliases=[];function e(r){r.register(t),(function(n){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])})(r)}return Yg}var TQ=SQ();const LA=tr(TQ);var Gg,c2;function _Q(){if(c2)return Gg;c2=1,Gg=t,t.displayName="go",t.aliases=[];function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}return Gg}var LQ=_Q();const EA=tr(LQ);var Xg,u2;function EQ(){if(u2)return Xg;u2=1,Xg=t,t.displayName="rust",t.aliases=[];function t(e){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(e)}return Xg}var BQ=EQ();const BA=tr(BQ);var Kg,h2;function AQ(){if(h2)return Kg;h2=1,Kg=t,t.displayName="jsx",t.aliases=[];function t(e){(function(r){var n=r.util.clone(r.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function l(d,f){return d=d.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return s}),RegExp(d,f)}s=l(s).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:l(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var u=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(u).join(""):""},h=function(d){for(var f=[],m=0;m<d.length;m++){var p=d[m],x=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===u(p.content[0].content[1])&&f.pop():p.content[p.content.length-1].content==="/>"||f.push({tagName:u(p.content[0].content[1]),openedBraces:0}):f.length>0&&p.type==="punctuation"&&p.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?f[f.length-1].openedBraces--:x=!0),(x||typeof p=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var C=u(p);m<d.length-1&&(typeof d[m+1]=="string"||d[m+1].type==="plain-text")&&(C+=u(d[m+1]),d.splice(m+1,1)),m>0&&(typeof d[m-1]=="string"||d[m-1].type==="plain-text")&&(C=u(d[m-1])+C,d.splice(m-1,1),m--),d[m]=new r.Token("plain-text",C,null,C)}p.content&&typeof p.content!="string"&&h(p.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||h(d.tokens)})})(e)}return Kg}var Qg,d2;function FQ(){if(d2)return Qg;d2=1;var t=AQ(),e=mA();Qg=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(t),n.register(e),(function(i){var o=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",o),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(n)}return Qg}var IQ=FQ();const AA=tr(IQ);de.registerLanguage("typescript",yA);de.registerLanguage("javascript",xA);de.registerLanguage("python",CA);de.registerLanguage("json",kA);de.registerLanguage("bash",bA);de.registerLanguage("css",vA);de.registerLanguage("sql",wA);de.registerLanguage("yaml",SA);de.registerLanguage("markdown",TA);de.registerLanguage("java",_A);de.registerLanguage("cpp",LA);de.registerLanguage("go",EA);de.registerLanguage("rust",BA);de.registerLanguage("tsx",AA);function MQ(t){return t.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||"heading"}function by(t){return typeof t=="string"?t:typeof t=="number"?String(t):Array.isArray(t)?t.map(by).join(""):Ie.isValidElement(t)&&t.props.children?by(t.props.children):""}function Pa(t){const e=({node:r,children:n})=>{var l,u;const i=by(n),o=MQ(i),s=(u=(l=r==null?void 0:r.position)==null?void 0:l.start)==null?void 0:u.line;return Ie.createElement(t,{id:o,"data-source-line":s},n)};return e.displayName=`Heading_${t}`,e}async function OQ(t,e){e.preventDefault();const{currentView:r,projects:n,setCurrentView:i,setLoadingPage:o,openReference:s}=kt.getState(),l=t.match(/^(.+?)(?:#L(\d+)(?:-L(\d+))?)?$/);if(!l){window.open(t,"_blank");return}const[,u,h,d]=l;if(/^https?:\/\//.test(u)){window.open(u,"_blank");return}let f=u;for(;f.startsWith("./");)f=f.slice(2);if(f.includes("../")&&(f=f.split("/").pop()||f),/^[A-Za-z]:\\/.test(f)){s(f,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0);return}const m=/\.[^/.\\]+$/.test(f),p=f.endsWith(".md");if(m&&!p){if(!r)return;const C=n.find(b=>b.id===r.projectId);if(!C)return;const k=f.startsWith("/")?f:`${C.path}/${u}`;s(k,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0);return}if(!r){console.warn("No current view");return}let x=f;x.startsWith("/")&&(x=x.slice(1)),p&&(x=x.slice(0,-3)),o(!0);try{const C=await Yl(r.projectId,r.version,x);i({...r,slug:x,content:C.content,fileMtime:C.mtime});return}catch{if(p){const C=n.find(k=>k.id===r.projectId);if(C){const k=f.startsWith("/")?f:`${C.path}/${u}`;s(k,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0)}}}finally{o(!1)}}const FA=({content:t})=>{const e=nt.useRef(null),[r,n]=nt.useState(null),i=kt(d=>d.saveCalloutAction),o=nt.useCallback(()=>{const d=window.getSelection();if(!d||d.isCollapsed||!d.toString().trim()){n(null);return}const f=d.getRangeAt(0),m=e.current;if(!m||!m.contains(f.commonAncestorContainer)){n(null);return}const p=f.getBoundingClientRect();n({top:p.top+window.scrollY,left:p.left+p.width/2,selectedText:d.toString()})},[]),s=nt.useCallback(async d=>{const f=window.getSelection();if(!f||f.isCollapsed)return;let p=f.getRangeAt(0).startContainer.parentElement;for(;p&&!p.dataset.sourceLine;)p=p.parentElement;if(!p)return;const x=parseInt(p.dataset.sourceLine,10);let C=x,k=p.nextElementSibling;for(;k&&!k.dataset.sourceLine;)k=k.nextElementSibling;if(k)C=parseInt(k.dataset.sourceLine,10)-1;else{const S=kt.getState().currentView;C=(S==null?void 0:S.content.split(`
509
- `).length)??x}const b=kt.getState().currentView;if(!b)return;const w=ig(b.content,{type:"insert",afterLine:C,calloutType:d,title:"",content:""});n(null),f.removeAllRanges();try{await i(w)}catch(S){console.error("Failed to insert callout:",S)}},[i]),l=nt.useCallback(async(d,f,m,p,x)=>{const C=kt.getState().currentView;if(!C)return;const k=ig(C.content,{type:"edit",startLine:d,endLine:f,calloutType:m,title:p,content:x});try{await i(k)}catch(b){console.error("Failed to edit callout:",b)}},[i]),u=nt.useCallback(async(d,f)=>{const m=kt.getState().currentView;if(!m)return;const p=ig(m.content,{type:"delete",startLine:d,endLine:f});try{await i(p)}catch(x){console.error("Failed to delete callout:",x)}},[i]),h=nt.useMemo(()=>({h1:Pa("h1"),h2:Pa("h2"),h3:Pa("h3"),h4:Pa("h4"),h5:Pa("h5"),h6:Pa("h6"),p({node:d,children:f}){var p,x;const m=(x=(p=d==null?void 0:d.position)==null?void 0:p.start)==null?void 0:x.line;return L.jsx("p",{"data-source-line":m,children:f})},blockquote({node:d,children:f}){var C,k,b,w;const m=(k=(C=d==null?void 0:d.position)==null?void 0:C.start)==null?void 0:k.line,p=(w=(b=d==null?void 0:d.position)==null?void 0:b.end)==null?void 0:w.line,x=cG(f);if(x){let S;if(m!=null&&p!=null){const A=t.split(`
510
- `),F=[];let E=!1;for(let B=m-1;B<p&&B<A.length;B++){const q=A[B].replace(/^>\s?/,"");if(!E){E=!0;continue}F.push(q)}S=F.join(`
511
- `).trim()}return L.jsx(oG,{calloutType:x.calloutType,title:x.title,bodyText:x.bodyText,bodyChildren:x.bodyChildren,rawBodyMd:S,startLine:m,endLine:p,onEdit:(A,F,E)=>l(m,p,A,F,E),onDelete:()=>u(m,p)})}return L.jsx("blockquote",{"data-source-line":m,children:f})},ul({node:d,children:f}){var p,x;const m=(x=(p=d==null?void 0:d.position)==null?void 0:p.start)==null?void 0:x.line;return L.jsx("ul",{"data-source-line":m,children:f})},ol({node:d,children:f}){var p,x;const m=(x=(p=d==null?void 0:d.position)==null?void 0:p.start)==null?void 0:x.line;return L.jsx("ol",{"data-source-line":m,children:f})},table({node:d,children:f}){var p,x;const m=(x=(p=d==null?void 0:d.position)==null?void 0:p.start)==null?void 0:x.line;return L.jsx("table",{"data-source-line":m,children:f})},pre({node:d,children:f}){var k,b,w;const m=(k=d==null?void 0:d.children)==null?void 0:k[0];if((((b=m==null?void 0:m.properties)==null?void 0:b.className)||[]).includes("language-mermaid")||Ie.isValidElement(f)&&f.type===pv)return f;const C=Ie.isValidElement(f)&&typeof((w=f.props)==null?void 0:w.children)=="string"?f.props.children:void 0;return L.jsx(nG,{rawCode:C,children:f})},code({className:d,children:f,...m}){const p=/language-(\w+)/.exec(d||""),x=p?p[1]:"",C=String(f).replace(/\n$/,"");return x==="mermaid"?L.jsx(pv,{chart:C}):x||C.includes(`
512
- `)?L.jsx(de,{language:x||"text",style:gA,customStyle:{margin:0,padding:"20px",borderRadius:"12px",fontSize:"0.9em",lineHeight:"1.625",backgroundColor:"#2d2d2d"},showLineNumbers:!1,children:C}):L.jsx("code",{className:d,...m,children:f})},a({href:d,children:f}){return L.jsx("a",{href:d,onClick:m=>{d&&OQ(d,m)},className:"text-accent no-underline cursor-pointer",children:f})}}),[l,u,t]);return t?L.jsxs("div",{className:"markdown-body",ref:e,onMouseUp:o,children:[L.jsx(lO,{remarkPlugins:[bR],components:h,children:t}),r&&L.jsx(sG,{position:r,onSelectType:s,onClose:()=>n(null)})]}):null},NQ=()=>{const t=kt(o=>{var s;return(s=o.currentView)==null?void 0:s.conflictData}),e=kt(o=>o.resolveConflict),[r,n]=nt.useState(!0);if(!t)return null;const i=t.serverContent.split(`
513
- `).slice(0,30);return L.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:L.jsxs("div",{className:"w-full max-w-lg mx-4 bg-surface-secondary rounded-xl shadow-2xl border border-edge overflow-hidden",children:[L.jsxs("div",{className:"px-6 py-4 border-b border-edge-light",children:[L.jsxs("div",{className:"flex items-center gap-2 text-warning text-base font-semibold",children:[L.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),L.jsx("path",{d:"M12 9v4"}),L.jsx("path",{d:"M12 17h.01"})]}),"此页面已被外部修改"]}),L.jsx("p",{className:"text-[13px] text-content-secondary mt-1.5",children:"你可以选择加载最新版本,或保留你当前的修改继续编辑。"})]}),r&&L.jsxs("div",{className:"px-6 py-3 max-h-48 overflow-y-auto bg-surface-tertiary border-b border-edge-light",children:[L.jsx("p",{className:"text-[11px] text-content-muted mb-2 font-medium",children:"服务器最新版本(预览)"}),L.jsxs("pre",{className:"text-[12px] font-mono text-content-secondary whitespace-pre-wrap leading-relaxed",children:[i.join(`
514
- `),t.serverContent.split(`
515
- `).length>30&&`
516
- ...`]})]}),L.jsx("div",{className:"px-6 py-1",children:L.jsx("button",{onClick:()=>n(!r),className:"text-[12px] text-accent hover:underline",children:r?"收起预览":"展开预览"})}),L.jsxs("div",{className:"px-6 py-4 flex justify-end gap-3",children:[L.jsx("button",{onClick:()=>e("server"),className:`px-4 py-2 rounded-lg text-[13px] font-medium
517
- text-content-secondary hover:text-content hover:bg-surface-hover
518
- border border-edge-light transition-colors duration-150`,children:"加载最新版本"}),L.jsx("button",{onClick:()=>e("mine"),className:`px-4 py-2 rounded-lg text-[13px] font-medium
519
- bg-accent text-white hover:bg-accent-hover
520
- transition-colors duration-150`,children:"保留我的修改"})]})]})})},RQ=()=>{const t=kt(f=>{var m;return((m=f.currentView)==null?void 0:m.editContent)??""}),e=kt(f=>{var m;return((m=f.currentView)==null?void 0:m.isDirty)??!1}),r=kt(f=>{var m;return(m=f.currentView)==null?void 0:m.conflictData}),n=kt(f=>f.updateEditContent),i=kt(f=>f.setReadMode),o=kt(f=>f.savePage),[s,l]=nt.useState(!1),u=nt.useRef(null),h=nt.useCallback(async()=>{if(!s){l(!0);try{await o()}catch(f){console.error("Save failed:",f),alert("保存失败: "+(f instanceof Error?f.message:"未知错误"))}finally{l(!1)}}},[o,s]),d=nt.useCallback(()=>{e&&!window.confirm("未保存的修改将丢失,是否继续?")||i()},[e,i]);return nt.useEffect(()=>{const f=m=>{(m.metaKey||m.ctrlKey)&&m.key==="s"&&(m.preventDefault(),h())};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[h]),L.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[L.jsxs("div",{className:"editor-toolbar",children:[L.jsxs("button",{onClick:d,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[13px] font-medium
521
- text-content-secondary hover:text-content hover:bg-surface-hover
522
- transition-colors duration-150`,children:[L.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"m12 19-7-7 7-7"}),L.jsx("path",{d:"M19 12H5"})]}),"返回阅读"]}),L.jsxs("div",{className:"flex items-center gap-2",children:[e&&L.jsx("span",{className:"text-[12px] text-content-tertiary",children:"未保存"}),L.jsxs("button",{onClick:h,disabled:s||!e,className:`flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-[13px] font-medium
523
- bg-accent text-white hover:bg-accent-hover
524
- disabled:opacity-50 disabled:cursor-not-allowed
525
- transition-colors duration-150`,children:[L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),L.jsx("polyline",{points:"17,21 17,13 7,13 7,21"}),L.jsx("polyline",{points:"7,3 7,8 15,8"})]}),s?"保存中...":"保存",L.jsx("kbd",{className:"text-[10px] px-1 py-0.5 rounded bg-white/20 ml-1 font-mono",children:"⌘S"})]})]})]}),L.jsx("textarea",{ref:u,value:t,onChange:f=>n(f.target.value),className:"markdown-editor",spellCheck:!1}),r&&L.jsx(NQ,{})]})},PQ=()=>{const t=kt(o=>{var s;return(s=o.currentView)==null?void 0:s.mode}),e=kt(o=>{var s;return(s=o.currentView)==null?void 0:s.isDirty}),r=kt(o=>o.setEditMode),n=kt(o=>o.setReadMode),i=()=>{if(t==="edit"){if(e&&!window.confirm("未保存的修改将丢失,是否继续?"))return;n()}else r()};return L.jsx("button",{onClick:i,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[13px] font-medium
526
- text-content-secondary hover:text-content hover:bg-surface-hover
527
- border border-edge-light transition-colors duration-150`,title:t==="edit"?"切换到阅读模式":"切换到编辑模式",children:t==="edit"?L.jsxs(L.Fragment,{children:[L.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),L.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),"阅读"]}):L.jsxs(L.Fragment,{children:[L.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),L.jsx("path",{d:"m15 5 4 4"})]}),"编辑"]})})};function DQ(t,e){return t.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||`heading-${e}`}function $Q(t){var n;const e=t.split(`
528
- `),r=[];for(let i=0;i<e.length;i++){const o=e[i].match(/^(#{1,6})\s+(.+?)\r?$/);if(o){const s=o[1].length,l=o[2].trim(),u=DQ(l,r.length);r.push({id:u,text:l,level:s,position:i,contentLength:0})}}for(let i=0;i<r.length;i++){const o=((n=r[i+1])==null?void 0:n.position)??e.length;r[i].contentLength=o-r[i].position}return r}function jQ(t){const[e,r]=nt.useState(null);return nt.useEffect(()=>{if(t.length===0)return;const n=new IntersectionObserver(i=>{const o=i.filter(s=>s.isIntersecting);if(o.length>0){const s=o.sort((l,u)=>l.boundingClientRect.top-u.boundingClientRect.top)[0];r(s.target.id)}},{rootMargin:"-20% 0px -70% 0px"});return t.forEach(i=>{const o=document.getElementById(i);o&&n.observe(o)}),()=>n.disconnect()},[t]),e}function zQ(t){const e=nt.useMemo(()=>$Q(t),[t]),r=nt.useMemo(()=>e.map(o=>o.id),[e]),n=jQ(r),i=nt.useCallback(o=>{const s=document.getElementById(o);s&&s.scrollIntoView({behavior:"smooth",block:"start"})},[]);return{items:e,activeId:n,scrollToHeading:i}}const qQ=({content:t})=>{const{items:e,activeId:r,scrollToHeading:n}=zQ(t);return e.length===0?null:L.jsxs("aside",{className:"w-[220px] h-full shrink-0 border-l border-edge bg-surface-tertiary overflow-y-auto py-5 px-3 shadow-[inset_4px_0_12px_rgba(0,0,0,0.05)]",children:[L.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-wider text-content-muted mb-3 select-none",children:"目录"}),L.jsx("nav",{className:"flex flex-col gap-0.5",children:e.map(i=>L.jsx("a",{href:`#${i.id}`,title:i.text,className:`
529
- block py-1 text-[12px] leading-snug truncate
530
- transition-colors duration-150
531
- hover:text-content
532
- ${i.id===r?"text-accent font-medium":"text-content-tertiary"}
533
- `,style:{paddingLeft:`${(i.level-1)*12}px`},onClick:o=>{o.preventDefault(),n(i.id)},children:i.text},i.id))})]})},WQ=({size:t=32})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),L.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),HQ=()=>{const t=kt(s=>s.currentView),e=kt(s=>s.currentWiki),r=ie(s=>s.aiPanelOpen),n=e==null?void 0:e.pages.find(s=>s.slug===(t==null?void 0:t.slug)),i=(n==null?void 0:n.level)==="Beginner"?"bg-accent-light text-accent-text border-accent/15":(n==null?void 0:n.level)==="Intermediate"?"bg-warning-light text-[#92400e] border-warning/15":"bg-danger-light text-[#991b1b] border-danger/15";if(!t)return L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-5 text-content-tertiary",children:[L.jsx("div",{className:"w-16 h-16 rounded-2xl bg-surface-tertiary flex items-center justify-center text-content-muted",children:L.jsx(WQ,{size:32})}),L.jsxs("div",{className:"text-center",children:[L.jsx("p",{className:"text-base font-semibold text-content mb-1",children:"开始阅读"}),L.jsxs("p",{className:"text-[13px] text-content-tertiary",children:["从左侧导航选择一个页面,或按",L.jsx("kbd",{className:"text-[11px] px-1.5 py-0.5 mx-1 rounded bg-surface-tertiary border border-edge-light font-mono",children:"⌘K"}),"搜索"]})]})]});if(t.loading)return L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 text-content-tertiary",children:[L.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-edge border-t-accent animate-spin"}),L.jsx("p",{className:"text-[13px]",children:"加载中..."})]});if(t.error)return L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-10",children:[L.jsx("div",{className:"w-14 h-14 rounded-[14px] bg-danger-light text-danger flex items-center justify-center text-2xl font-bold",children:"!"}),L.jsx("p",{className:"text-base font-semibold text-content",children:"加载失败"}),L.jsx("p",{className:"text-[13px] text-content-secondary max-w-md text-center leading-relaxed",children:t.error})]});const o=t.mode==="edit";return L.jsxs("div",{className:"flex-1 min-w-0 flex overflow-hidden",children:[L.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col",children:[n&&!o&&L.jsxs("div",{className:"px-12 pt-7 pb-0 border-b border-edge-light bg-surface",children:[L.jsx("h1",{className:"text-[26px] font-bold text-content leading-snug tracking-tight mb-2",children:n.title}),L.jsxs("div",{className:"flex items-center gap-3 pb-4 text-xs text-content-tertiary flex-wrap",children:[L.jsx("span",{children:n.section}),n.group&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"text-edge",children:"·"}),L.jsx("span",{children:n.group})]}),L.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium leading-snug border ${i}`,children:n.level}),L.jsx("div",{className:"flex-1"}),L.jsx(PQ,{})]})]}),o?L.jsx(RQ,{}):L.jsx(L.Fragment,{children:L.jsx("div",{className:"flex-1 px-12 pt-8 pb-20 max-w-[860px] mx-auto overflow-x-hidden",children:L.jsx(FA,{content:t.content})})})]}),t.content&&!r&&!o&&L.jsx(qQ,{content:t.content})]})};function UQ(t,e,r,n){var i=this,o=nt.useRef(null),s=nt.useRef(0),l=nt.useRef(0),u=nt.useRef(null),h=nt.useRef([]),d=nt.useRef(),f=nt.useRef(),m=nt.useRef(t),p=nt.useRef(!0),x=nt.useRef(),C=nt.useRef();m.current=t;var k=typeof window<"u",b=!e&&e!==0&&k;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var w=!!(r=r||{}).leading,S=!("trailing"in r)||!!r.trailing,A=!!r.flushOnExit&&S,F="maxWait"in r,E="debounceOnServer"in r&&!!r.debounceOnServer,B=F?Math.max(+r.maxWait||0,e):null,P=nt.useMemo(function(){var q=function(U){var X=h.current,D=d.current;return h.current=d.current=null,s.current=U,l.current=l.current||U,f.current=m.current.apply(D,X)},R=function(U,X){b&&cancelAnimationFrame(u.current),u.current=b?requestAnimationFrame(U):setTimeout(U,X)},$=function(U){if(!p.current)return!1;var X=U-o.current;return!o.current||X>=e||X<0||F&&U-s.current>=B},H=function(U){return u.current=null,S&&h.current?q(U):(h.current=d.current=null,f.current)},Q=function U(){var X=Date.now();if(w&&l.current===s.current&&V(),$(X))return H(X);if(p.current){var D=e-(X-o.current),J=F?Math.min(D,B-(X-s.current)):D;R(U,J)}},V=function(){},W=function(){if(k||E){var U,X=Date.now(),D=$(X);if(h.current=[].slice.call(arguments),d.current=i,o.current=X,A&&!x.current&&(x.current=function(){var J;((J=globalThis.document)==null?void 0:J.visibilityState)==="hidden"&&C.current.flush()},(U=globalThis.document)==null||U.addEventListener==null||U.addEventListener("visibilitychange",x.current)),D){if(!u.current&&p.current)return s.current=o.current,R(Q,e),w?q(o.current):f.current;if(F)return R(Q,e),q(o.current)}return u.current||R(Q,e),f.current}};return W.cancel=function(){var U=u.current;U&&(b?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,h.current=o.current=d.current=u.current=null},W.isPending=function(){return!!u.current},W.flush=function(){return u.current?H(Date.now()):f.current},W},[w,F,e,B,S,A,b,k,E,n]);return C.current=P,nt.useEffect(function(){return p.current=!0,function(){var q;A&&C.current.flush(),x.current&&((q=globalThis.document)==null||q.removeEventListener==null||q.removeEventListener("visibilitychange",x.current),x.current=null),p.current=!1}},[A]),P}const VQ=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("path",{d:"M21 21l-4.35-4.35"})]}),YQ=({size:t=18})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),GQ=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),L.jsx("polyline",{points:"14 2 14 8 20 8"})]}),XQ=({result:t,onClick:e})=>{const r=t.page.level==="Beginner"?"badge-beginner":t.page.level==="Intermediate"?"badge-intermediate":"badge-advanced";return L.jsxs("button",{onClick:e,className:`
534
- flex items-start gap-2.5 w-full px-3.5 py-2.5
535
- border-none bg-transparent text-content
536
- cursor-pointer text-left rounded-md
537
- transition-colors duration-150
538
- hover:bg-surface-hover
539
- `,children:[L.jsx(GQ,{size:16}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[L.jsx("span",{className:"font-medium text-[13px] truncate",children:t.page.title}),L.jsx("span",{className:`badge ${r}`,children:t.page.level})]}),L.jsxs("div",{className:"text-[12px] text-content-tertiary truncate",children:[t.page.section,t.page.group?` / ${t.page.group}`:""]}),t.content&&L.jsx("div",{className:"text-[12px] text-content-secondary mt-1 truncate max-w-full",children:t.content})]})]})},KQ=()=>{const t=kt(x=>x.searchOpen),e=kt(x=>x.searchQuery),r=kt(x=>x.searchResults),n=kt(x=>x.config),i=kt(x=>x.setSearchOpen),o=kt(x=>x.setSearchQuery),s=kt(x=>x.setSearchResults),l=kt(x=>x.setCurrentProject),u=kt(x=>x.setCurrentView),h=nt.useRef(null);nt.useEffect(()=>{t&&setTimeout(()=>{var x;(x=h.current)==null||x.focus()},50)},[t]);const d=UQ(async x=>{if(!x.trim()){s([]);return}const C=n==null?void 0:n.lastOpenedProject;if(!C){s([]);return}try{const k=await x2(C,x);s(k)}catch(k){console.error("Search failed:",k),s([])}},200),f=nt.useCallback(x=>{const C=x.target.value;o(C),d(C)},[o,d]),m=nt.useCallback(x=>{x.projectId!==(n==null?void 0:n.lastOpenedProject)&&l(x.projectId);const C=kt.getState().projects.find(b=>b.id===x.projectId),k=(C==null?void 0:C.currentVersion)||"latest";u({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!0,mode:"read",editContent:null,isDirty:!1,fileMtime:null,conflictData:null}),oe(async()=>{const{getPage:b}=await Promise.resolve().then(()=>w2);return{getPage:b}},void 0).then(({getPage:b})=>{b(x.projectId,k,x.page.slug).then(w=>{u({projectId:x.projectId,version:k,slug:x.page.slug,content:w.content,loading:!1,mode:"read",editContent:null,isDirty:!1,fileMtime:w.mtime,conflictData:null})}).catch(w=>{u({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!1,error:w instanceof Error?w.message:"Failed to load page",mode:"read",editContent:null,isDirty:!1,fileMtime:null,conflictData:null})})}),i(!1)},[n==null?void 0:n.lastOpenedProject,l,u,i]),p=nt.useCallback(x=>{x.target===x.currentTarget&&i(!1)},[i]);return t?L.jsx("div",{className:"overlay overlay-centered",onClick:p,children:L.jsxs("div",{className:`
540
- modal w-[560px] max-h-[70vh]
541
- bg-surface-secondary border border-edge
542
- rounded-xl shadow-lg
543
- flex flex-col overflow-hidden
544
- `,children:[L.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3.5 border-b border-edge",children:[L.jsx(VQ,{size:18}),L.jsx("input",{ref:h,type:"text",value:e,onChange:f,placeholder:"搜索文档...",className:`
545
- flex-1 border-none outline-none bg-transparent
546
- text-content text-[15px]
547
- `}),L.jsx("button",{onClick:()=>i(!1),className:`
548
- flex items-center justify-center
549
- w-7 h-7 border border-edge rounded-md
550
- bg-surface-tertiary text-content-tertiary
551
- cursor-pointer text-[11px]
552
- hover:bg-surface-hover hover:text-content
553
- transition-colors duration-150
554
- `,title:"关闭 (Esc)",children:L.jsx(YQ,{size:14})})]}),L.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:e&&r.length===0?L.jsx("div",{className:"py-6 px-4 text-center text-content-tertiary text-[13px]",children:"没有找到相关结果"}):e?r.map((x,C)=>L.jsx(XQ,{result:x,onClick:()=>m(x)},`${x.projectId}-${x.page.slug}-${C}`)):L.jsx("div",{className:"py-6 px-4 text-center text-content-tertiary text-[13px]",children:"输入关键词开始搜索"})}),r.length>0&&L.jsxs("div",{className:"px-4 py-2 border-t border-edge text-[11px] text-content-tertiary text-center",children:["找到 ",r.length," 个结果"]})]})}):null},QQ=({size:t=18})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),f2=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M12 5v14"}),L.jsx("path",{d:"M5 12h14"})]}),p2=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"3 6 5 6 21 6"}),L.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),ZQ=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"23 4 23 10 17 10"}),L.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),JQ=({size:t=18})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"12",cy:"12",r:"5"}),L.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),L.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),L.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),L.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),L.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),L.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),L.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),L.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),tZ=({size:t=18})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),eZ=({size:t=18})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),g2=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),rZ=()=>{const t=kt(H=>H.settingsOpen),e=kt(H=>H.config),r=kt(H=>H.projects),n=kt(H=>H.setSettingsOpen),i=kt(H=>H.setConfig),o=kt(H=>H.setProjects),[s,l]=nt.useState(""),[u,h]=nt.useState(""),[d,f]=nt.useState(null),[m,p]=nt.useState(!1),[x,C]=nt.useState(null),[k,b]=nt.useState("general");nt.useEffect(()=>{t&&em().then(f).catch(()=>{})},[t]);const w=nt.useCallback(H=>{H.target===H.currentTarget&&n(!1)},[n]),S=nt.useCallback(async()=>{if(!e)return;const H=e.theme==="dark"?"light":"dark";try{const Q=await El({theme:H});i(Q)}catch(Q){console.error("Failed to update theme:",Q)}},[e,i]),A=nt.useCallback(async()=>{if(e)try{const H=await El({yolo:!e.yolo});i(H)}catch(H){console.error("Failed to update yolo setting:",H)}},[e,i]),F=nt.useCallback(async()=>{if(s.trim()){C(null);try{const H=await El({scanPaths:[...(e==null?void 0:e.scanPaths)||[],s.trim()]});i(H),l("")}catch(H){C(H instanceof Error?H.message:"Failed to add scan path")}}},[s,e,i]),E=nt.useCallback(async H=>{if(e){C(null);try{const Q=await El({scanPaths:e.scanPaths.filter(V=>V!==H)});i(Q)}catch(Q){C(Q instanceof Error?Q.message:"Failed to remove scan path")}}},[e,i]),B=nt.useCallback(async()=>{if(u.trim()){C(null);try{const H=await C2(u.trim());o([...r,H]),h("");const Q=await Pl();i(Q)}catch(H){C(H instanceof Error?H.message:"Failed to add project")}}},[u,r,o,i]),P=nt.useCallback(async H=>{C(null);try{await k2(H),o(r.filter(V=>V.id!==H));const Q=await Pl();i(Q)}catch(Q){C(Q instanceof Error?Q.message:"Failed to delete project")}},[r,o,i]),q=nt.useCallback(async()=>{p(!0),C(null),b2().catch(Q=>{C(Q instanceof Error?Q.message:"Scan failed")});const H=setInterval(async()=>{try{const Q=await em();if(f(Q),!Q.scanning&&Q.lastScanAt){clearInterval(H),p(!1);const V=await Pl();i(V),o(V.projects)}}catch(Q){console.error("Failed to get scan status:",Q)}},500);return()=>clearInterval(H)},[i,o]);if(!t)return null;const R=(e==null?void 0:e.theme)==="dark",$=!!(e!=null&&e.yolo);return L.jsx("div",{className:"overlay overlay-centered",onClick:w,children:L.jsxs("div",{className:`
555
- modal w-[640px] max-h-[80vh]
556
- bg-surface-secondary border border-edge
557
- rounded-xl shadow-lg
558
- flex flex-col overflow-hidden
559
- `,children:[L.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge",children:[L.jsx("h2",{className:"text-[16px] font-semibold text-content m-0",children:"设置"}),L.jsx("button",{onClick:()=>n(!1),className:`
560
- flex items-center justify-center
561
- w-8 h-8 border-none rounded-md
562
- bg-transparent text-content-secondary
563
- cursor-pointer
564
- hover:bg-surface-hover hover:text-content
565
- transition-colors duration-150
566
- `,children:L.jsx(QQ,{size:18})})]}),L.jsx("div",{className:"flex border-b border-edge px-5",children:[{key:"general",label:"通用"},{key:"projects",label:"项目管理"},{key:"scan",label:"扫描"}].map(H=>L.jsx("button",{onClick:()=>b(H.key),className:`
567
- px-4 py-2.5 border-none bg-transparent cursor-pointer text-[13px]
568
- transition-colors duration-150
569
- ${k===H.key?"border-b-2 border-accent text-accent font-medium":"border-b-2 border-transparent text-content-secondary font-normal hover:text-content"}
570
- `,children:H.label},H.key))}),x&&L.jsx("div",{className:"mx-5 mt-3 px-3 py-2 rounded-md bg-danger-light border border-danger text-danger text-[13px]",children:x}),L.jsxs("div",{className:"flex-1 overflow-y-auto p-5",children:[k==="general"&&L.jsxs("div",{children:[L.jsxs("div",{className:"flex items-center justify-between px-4 py-3 rounded-lg bg-surface-tertiary mb-4",children:[L.jsxs("div",{className:"flex items-center gap-2.5",children:[R?L.jsx(tZ,{size:18}):L.jsx(JQ,{size:18}),L.jsxs("div",{children:[L.jsx("div",{className:"text-[14px] font-medium text-content",children:"主题"}),L.jsx("div",{className:"text-[12px] text-content-tertiary",children:R?"暗色模式":"浅色模式"})]})]}),L.jsx("button",{onClick:S,className:`
571
- relative w-11 h-6 rounded-full border-none
572
- cursor-pointer transition-colors duration-200 p-0
573
- `,style:{background:R?"var(--accent)":"var(--surface-hover)"},children:L.jsx("div",{className:"absolute top-[3px] w-[18px] h-[18px] rounded-full bg-white transition-all duration-200 shadow-sm",style:{left:R?"23px":"3px"}})})]}),L.jsxs("div",{className:"flex items-center justify-between px-4 py-3 rounded-lg bg-surface-tertiary",children:[L.jsxs("div",{className:"flex items-center gap-2.5",children:[L.jsx(eZ,{size:18}),L.jsxs("div",{children:[L.jsx("div",{className:"text-[14px] font-medium text-content",children:"AI 自动审批"}),L.jsxs("div",{className:"text-[12px] text-content-tertiary",children:[$?"已启用":"已关闭"," — 启用后 AI 操作无需手动确认"]})]})]}),L.jsx("button",{onClick:A,className:`
574
- relative w-11 h-6 rounded-full border-none
575
- cursor-pointer transition-colors duration-200 p-0
576
- `,style:{background:$?"var(--warning)":"var(--surface-hover)"},children:L.jsx("div",{className:"absolute top-[3px] w-[18px] h-[18px] rounded-full bg-white transition-all duration-200 shadow-sm",style:{left:$?"23px":"3px"}})})]})]}),k==="projects"&&L.jsxs("div",{children:[L.jsxs("div",{className:"mb-5",children:[L.jsx("label",{className:"block text-[13px] font-medium text-content mb-1.5",children:"手动添加项目"}),L.jsxs("div",{className:"flex gap-2",children:[L.jsx("input",{type:"text",className:"input",value:u,onChange:H=>h(H.target.value),placeholder:"输入项目路径...",onKeyDown:H=>{H.key==="Enter"&&B()}}),L.jsxs("button",{className:"btn btn-primary",onClick:B,children:[L.jsx(f2,{size:14}),"添加"]})]})]}),L.jsxs("div",{children:[L.jsxs("label",{className:"block text-[13px] font-medium text-content mb-2",children:["已发现的项目 (",r.length,")"]}),r.length===0?L.jsx("div",{className:"py-5 px-4 text-center text-content-tertiary text-[13px] bg-surface-tertiary rounded-lg",children:"暂无项目,请手动添加或扫描发现"}):L.jsx("div",{className:"flex flex-col gap-1.5",children:r.map(H=>L.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2.5 rounded-lg bg-surface-tertiary border border-edge-light",children:[L.jsx(g2,{size:16}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsx("div",{className:"text-[13px] font-medium text-content truncate",children:H.name}),L.jsx("div",{className:"text-[11px] text-content-tertiary truncate",children:H.path})]}),L.jsx("button",{className:"btn btn-icon",onClick:()=>P(H.id),title:"删除项目",style:{color:"var(--danger)",flexShrink:0},children:L.jsx(p2,{size:14})})]},H.id))})]})]}),k==="scan"&&L.jsxs("div",{children:[L.jsxs("div",{className:"mb-5",children:[L.jsx("label",{className:"block text-[13px] font-medium text-content mb-1.5",children:"扫描路径"}),L.jsxs("div",{className:"flex gap-2 mb-2",children:[L.jsx("input",{type:"text",className:"input",value:s,onChange:H=>l(H.target.value),placeholder:"输入要扫描的目录路径...",onKeyDown:H=>{H.key==="Enter"&&F()}}),L.jsxs("button",{className:"btn btn-primary",onClick:F,children:[L.jsx(f2,{size:14}),"添加"]})]}),((e==null?void 0:e.scanPaths)||[]).length===0?L.jsx("div",{className:"p-3 text-center text-content-tertiary text-[13px] bg-surface-tertiary rounded-md",children:"暂无扫描路径"}):L.jsx("div",{className:"flex flex-col gap-1",children:((e==null?void 0:e.scanPaths)||[]).map(H=>L.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-md bg-surface-tertiary border border-edge-light text-[13px] text-content-secondary",children:[L.jsx(g2,{size:13}),L.jsx("span",{className:"flex-1 truncate",children:H}),L.jsx("button",{className:"btn btn-icon",onClick:()=>E(H),style:{color:"var(--danger)"},children:L.jsx(p2,{size:12})})]},H))})]}),L.jsxs("div",{children:[L.jsxs("button",{className:"btn btn-primary mb-3",onClick:q,disabled:m,style:{opacity:m?.7:1,cursor:m?"not-allowed":"pointer"},children:[L.jsx(ZQ,{size:14}),m?"扫描中...":"开始扫描"]}),d&&L.jsxs("div",{className:"px-4 py-3 rounded-lg bg-surface-tertiary border border-edge-light text-[13px]",children:[L.jsxs("div",{className:"text-content mb-1",children:["状态:",d.scanning?"扫描中":"空闲"]}),d.progress&&L.jsxs("div",{className:"text-content-secondary text-[12px]",children:["已扫描 ",d.progress.scanned,"/",d.progress.total,", 发现 ",d.progress.found," 个项目"]}),d.lastScanAt&&L.jsxs("div",{className:"text-content-tertiary text-[11px] mt-1",children:["上次扫描:",new Date(d.lastScanAt).toLocaleString("zh-CN")]})]})]})]})]})]})})};de.registerLanguage("typescript",yA);de.registerLanguage("javascript",xA);de.registerLanguage("python",CA);de.registerLanguage("json",kA);de.registerLanguage("bash",bA);de.registerLanguage("css",vA);de.registerLanguage("sql",wA);de.registerLanguage("yaml",SA);de.registerLanguage("markdown",TA);de.registerLanguage("java",_A);de.registerLanguage("cpp",LA);de.registerLanguage("go",EA);de.registerLanguage("rust",BA);de.registerLanguage("tsx",AA);const nZ={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"javascript",mjs:"javascript",py:"python",pyw:"python",json:"json",jsonc:"json",sh:"bash",bash:"bash",zsh:"bash",css:"css",scss:"css",less:"css",sql:"sql",yml:"yaml",yaml:"yaml",md:"markdown",mdx:"markdown",java:"java",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",h:"cpp",c:"cpp",go:"go",rs:"rust",html:"markup",xml:"markup",svg:"markup",tf:"hcl"};function iZ(t){var r;const e=((r=t.split(".").pop())==null?void 0:r.toLowerCase())||"";return nZ[e]||"text"}const oZ=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),aZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),sZ=({size:t=20})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),lZ=()=>{const t=kt(S=>S.referenceOpen),e=kt(S=>S.referenceData),r=kt(S=>S.closeReference),[n,i]=nt.useState([]),[o,s]=nt.useState(!1),[l,u]=nt.useState(null),[h,d]=nt.useState(!1),f=document.documentElement.getAttribute("data-theme")==="dark",m=nt.useMemo(()=>e!=null&&e.filePath?iZ(e.filePath):"text",[e==null?void 0:e.filePath]);nt.useEffect(()=>{t&&e&&p()},[t,e]);const p=async()=>{if(e){s(!0),u(null);try{const S=await v2(e.filePath,e.startLine,e.endLine);i(S.lines)}catch(S){u(S instanceof Error?S.message:"Failed to load file")}finally{s(!1)}}},x=nt.useCallback(async()=>{if(n.length===0)return;const S=n.map(F=>F.content).join(`
577
- `);await Tc(S)&&(d(!0),setTimeout(()=>d(!1),2e3))},[n]),C=(e==null?void 0:e.startLine)??0,k=(e==null?void 0:e.endLine)??0,b=C>0&&k>0;if(nt.useMemo(()=>{if(!b)return new Set;const S=new Set;for(let A=C;A<=k;A++)S.add(A);return S},[b,C,k]),!t)return null;const w=n.map(S=>S.content).join(`
578
- `);return L.jsx("div",{className:"overlay overlay-centered",onClick:r,children:L.jsxs("div",{className:`flex flex-col overflow-hidden rounded-xl shadow-2xl ${f?"bg-[#1e1e2e]":"bg-white"}`,style:{width:"min(85vw, 720px)",maxHeight:"70vh"},onClick:S=>S.stopPropagation(),children:[L.jsxs("div",{className:`flex items-center justify-between px-5 py-4 border-b ${f?"border-[#333]":"border-gray-200"}`,children:[L.jsxs("div",{children:[L.jsx("div",{className:`text-sm font-medium ${f?"text-white":"text-gray-900"}`,children:e==null?void 0:e.filePath}),(e==null?void 0:e.startLine)&&(e==null?void 0:e.endLine)&&L.jsxs("div",{className:`text-xs mt-1 ${f?"text-gray-500":"text-gray-400"}`,children:["L",e.startLine,"-L",e.endLine]})]}),L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsxs("button",{onClick:x,disabled:o||l!==null||n.length===0,className:`
579
- flex items-center gap-1.5 px-3 py-1.5 rounded-md text-[13px]
580
- transition-all duration-150
581
- ${h?"bg-success text-white border border-success":`${f?"border-[#444] text-gray-400 hover:text-gray-200":"border-gray-300 text-gray-500 hover:text-gray-700"} border`}
582
- ${o||l!==null||n.length===0?"opacity-50 cursor-not-allowed":"cursor-pointer"}
583
- `,title:"复制内容",children:[h?L.jsx(aZ,{size:14}):L.jsx(oZ,{size:14}),h?"已复制":"复制"]}),L.jsx("button",{onClick:r,className:`p-1.5 rounded-md cursor-pointer ${f?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"}`,title:"关闭",children:L.jsx(sZ,{size:20})})]})]}),L.jsx("div",{className:"flex-1 overflow-auto",children:o?L.jsx("div",{className:`text-center py-10 ${f?"text-gray-500":"text-gray-400"}`,children:"加载中..."}):l?L.jsx("div",{className:`text-center py-10 ${f?"text-red-400":"text-red-500"}`,children:l}):w?L.jsx("div",{className:"relative",children:L.jsx(de,{language:m,style:f?gA:oQ,customStyle:{margin:0,padding:"16px 20px",borderRadius:0,fontSize:"13px",lineHeight:"1.6",background:f?"#1e1e2e":"#fafafa"},showLineNumbers:!0,lineNumberStyle:{color:f?"#555":"#bbb",minWidth:"3.5em",paddingRight:"1.5em",userSelect:"none"},wrapLines:!0,lineProps:S=>{var F;return{style:((F=n[S-1])==null?void 0:F.highlighted)??!1?{background:f?"#0d3d3d":"#e8f5e9",display:"block"}:{}}},children:w})}):null})]})})},cZ=({size:t=18})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),uZ=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),L.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),L.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),hZ=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),L.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),dZ=({size:t=16})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})}),fZ=()=>{const t=kt(S=>S.mermaidViewerOpen),e=kt(S=>S.mermaidViewerData),r=kt(S=>S.closeMermaidViewer),[n,i]=nt.useState(1),[o,s]=nt.useState(!1),[l,u]=nt.useState({x:0,y:0}),[h,d]=nt.useState({x:0,y:0}),f=nt.useRef(null),m=nt.useCallback(()=>{i(S=>Math.min(S*1.2,5))},[]),p=nt.useCallback(()=>{i(S=>Math.max(S/1.2,.3))},[]),x=nt.useCallback(()=>{i(1),u({x:0,y:0})},[]),C=nt.useCallback(S=>{S.button===0&&(s(!0),d({x:S.clientX-l.x,y:S.clientY-l.y}))},[l]),k=nt.useCallback(S=>{o&&u({x:S.clientX-h.x,y:S.clientY-h.y})},[o,h]),b=nt.useCallback(()=>{s(!1)},[]),w=nt.useCallback(S=>{S.preventDefault();const A=S.deltaY>0?.9:1.1;i(F=>Math.max(.3,Math.min(5,F*A)))},[]);return!t||!e?null:L.jsxs("div",{className:"fixed inset-0 z-[1000] flex flex-col animate-fade-in",style:{background:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(4px)"},onClick:r,children:[L.jsxs("div",{className:`
584
- flex items-center justify-between
585
- px-4 py-3
586
- bg-surface-secondary border-b border-edge
587
- shrink-0
588
- `,onClick:S=>S.stopPropagation(),children:[L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx("span",{className:"text-content text-[15px] font-semibold",children:"图表预览"}),L.jsxs("span",{className:"text-content-tertiary text-[13px] font-medium px-2 py-0.5 bg-surface-tertiary rounded",children:[Math.round(n*100),"%"]})]}),L.jsxs("div",{className:"flex items-center gap-1.5",children:[L.jsxs("div",{className:"flex items-center gap-px bg-surface-tertiary rounded-lg p-0.5",children:[L.jsx(Zg,{onClick:p,title:"缩小 (-)",children:L.jsx(hZ,{size:16})}),L.jsx(Zg,{onClick:x,title:"适应屏幕 (0)",children:L.jsx(dZ,{size:16})}),L.jsx(Zg,{onClick:m,title:"放大 (+)",children:L.jsx(uZ,{size:16})})]}),L.jsx("div",{className:"w-px h-5 bg-edge mx-1"}),L.jsx("button",{onClick:r,className:`
589
- p-2 border-none rounded-lg
590
- text-content-secondary cursor-pointer
591
- hover:bg-surface-tertiary hover:text-content
592
- transition-colors duration-150
593
- `,title:"关闭 (Esc)",children:L.jsx(cZ,{size:18})})]})]}),L.jsx("div",{ref:f,className:`
594
- flex-1 overflow-hidden
595
- flex items-center justify-center
596
- p-4
597
- `,style:{cursor:o?"grabbing":"grab"},onMouseDown:C,onMouseMove:k,onMouseUp:b,onMouseLeave:b,onWheel:w,children:L.jsx("div",{style:{transform:`translate(${l.x}px, ${l.y}px) scale(${n})`,transition:o?"none":"transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)"},className:`
598
- bg-surface-secondary rounded-xl p-3
599
- max-w-[calc(100vw-32px)] max-h-[calc(100vh-120px)]
600
- overflow-auto
601
- `,onClick:S=>S.stopPropagation(),dangerouslySetInnerHTML:{__html:e.svg}})}),L.jsxs("div",{className:`
602
- absolute bottom-5 left-1/2 -translate-x-1/2
603
- px-4 py-2 rounded-full
604
- bg-black/60 backdrop-blur-sm
605
- text-white/90 text-[12px]
606
- pointer-events-none
607
- flex items-center gap-3
608
- `,children:[L.jsx(Jg,{children:"滚轮缩放"}),L.jsx(m2,{}),L.jsx(Jg,{children:"拖拽移动"}),L.jsx(m2,{}),L.jsx(Jg,{children:"点击背景关闭"})]})]})},Zg=({onClick:t,title:e,children:r})=>L.jsx("button",{onClick:t,title:e,className:`
609
- p-1.5 px-2.5 border-none rounded-md
610
- bg-transparent text-content-secondary
611
- cursor-pointer
612
- hover:bg-surface-secondary hover:text-content
613
- transition-colors duration-150
614
- flex items-center justify-center
615
- `,children:r}),Jg=({children:t})=>L.jsx("span",{className:"whitespace-nowrap",children:t}),m2=()=>L.jsx("span",{className:"w-1 h-1 rounded-full bg-white/40"});function pZ(t){const{minWidth:e,maxWidth:r,initialWidth:n,onResize:i}=t,[o,s]=nt.useState(n),[l,u]=nt.useState(!1),h=nt.useRef(null),d=nt.useRef(0),f=nt.useRef(0),m=nt.useCallback(b=>Math.min(r,Math.max(e,b)),[e,r]),p=nt.useCallback(b=>{h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{const w=m(window.innerWidth-b);s(w),i(w)})},[m,i]),x=nt.useCallback(()=>{u(!1),h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),document.body.style.cursor="",document.body.style.userSelect=""},[]),C=nt.useCallback(b=>{b.preventDefault(),u(!0),d.current=b.clientX,f.current=o,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[o]);return nt.useEffect(()=>{if(!l)return;const b=S=>{p(S.clientX)},w=()=>{x()};return window.addEventListener("mousemove",b),window.addEventListener("mouseup",w),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",w)}},[l,p,x]),nt.useEffect(()=>{if(!l)return;const b=S=>{S.touches.length>0&&p(S.touches[0].clientX)},w=()=>{x()};return window.addEventListener("touchmove",b),window.addEventListener("touchend",w),()=>{window.removeEventListener("touchmove",b),window.removeEventListener("touchend",w)}},[l,p,x]),nt.useEffect(()=>{s(m(n))},[n,m]),{width:o,dragHandleProps:{onMouseDown:C,onTouchStart:b=>{u(!0),f.current=o,document.body.style.cursor="col-resize",document.body.style.userSelect="none"}},isDragging:l}}const IA="/api/ai";async function io(t,e){var i;const n=await(await fetch(`${IA}${t}`,{headers:{"Content-Type":"application/json",...e==null?void 0:e.headers},...e})).json();if(!n.success)throw new Error(((i=n.error)==null?void 0:i.message)||"AI API Error");return n.data}class gZ{constructor(){this.eventSource=null,this.reconnectAttempts=0,this.maxReconnectAttempts=3,this.reconnectTimer=null,this.currentSessionId=null,this.currentCallbacks=null}async getStatus(){return io("/status")}async listSessions(e){return io(`/sessions?projectId=${encodeURIComponent(e)}`)}async createSession(e,r){return io("/sessions",{method:"POST",body:JSON.stringify({projectId:e,projectPath:r})})}async getSessionDetail(e){return io(`/sessions/${encodeURIComponent(e)}`)}async sendPrompt(e,r){console.log(`[AI API] sendPrompt called: sessionId=${e}, message="${r.substring(0,50)}..."`);try{await io(`/sessions/${encodeURIComponent(e)}/prompt`,{method:"POST",body:JSON.stringify({message:r})}),console.log("[AI API] sendPrompt succeeded")}catch(n){throw console.error("[AI API] sendPrompt FAILED:",n),n}}async respondApproval(e,r,n){await io(`/sessions/${encodeURIComponent(e)}/approve`,{method:"POST",body:JSON.stringify({requestId:r,response:n})})}async cancelGeneration(e){await io(`/sessions/${encodeURIComponent(e)}/cancel`,{method:"POST"})}async deleteSession(e){await io(`/sessions/${encodeURIComponent(e)}`,{method:"DELETE"})}connectEvents(e,r){console.log(`[AI API] connectEvents called for session ${e}`),this.disconnectEvents(),this.currentSessionId=e,this.currentCallbacks=r,this.reconnectAttempts=0,this.createEventSource(e,r)}createEventSource(e,r){const n=`${IA}/sessions/${encodeURIComponent(e)}/events`;console.log(`[AI API] Creating EventSource: ${n}`),this.eventSource=new EventSource(n),this.eventSource.addEventListener("message",i=>{try{const o=JSON.parse(i.data);console.log(`[AI API] SSE event received: type=${o.type}`),r.onEvent(o)}catch(o){console.error("[AI API] SSE message parse error:",o)}}),this.eventSource.addEventListener("request",i=>{try{const o=JSON.parse(i.data);r.onRequest(o)}catch{}}),this.eventSource.addEventListener("close",i=>{try{const o=JSON.parse(i.data);r.onError(o)}catch{}this.disconnectEvents()}),this.eventSource.addEventListener("done",()=>{r.onDone()}),this.eventSource.onerror=()=>{this.handleReconnect()},this.eventSource.onopen=()=>{var i;this.reconnectAttempts=0,(i=r.onOpen)==null||i.call(r)}}handleReconnect(){var r;if(this.reconnectAttempts>=this.maxReconnectAttempts){(r=this.currentCallbacks)==null||r.onError({message:"连接已断开,请刷新页面重试",code:"MAX_RECONNECT_EXCEEDED"}),this.disconnectEvents();return}this.reconnectAttempts++;const e=Math.pow(2,this.reconnectAttempts-1)*1e3;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.currentSessionId&&this.currentCallbacks&&(this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.createEventSource(this.currentSessionId,this.currentCallbacks))},e)}disconnectEvents(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.currentSessionId=null,this.currentCallbacks=null,this.reconnectAttempts=0}}const Qr=new gZ;function mZ(t){const r=Date.now()-t,n=Math.floor(r/6e4),i=Math.floor(r/36e5),o=Math.floor(r/864e5);return n<1?"刚刚":n<60?`${n} 分钟前`:i<24?`${i} 小时前`:o<7?`${o} 天前`:new Date(t).toLocaleDateString()}const yZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M12 5v14M5 12h14"})}),xZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})}),CZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),kZ=({size:t=12,open:e})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-200 ${e?"rotate-180":""}`,children:L.jsx("path",{d:"M6 9l6 6 6-6"})}),bZ=()=>{const t=ie(w=>w.aiSessions),e=ie(w=>w.activeSessionId),r=ie(w=>w.setActiveSession),n=ie(w=>w.setAIPanelOpen),i=ie(w=>w.setAISessions),o=ie(w=>w.setAIMessages),s=ie(w=>w.aiStreaming),l=kt(w=>w.config),u=kt(w=>w.projects),[h,d]=nt.useState(!1),f=nt.useRef(null);nt.useEffect(()=>{function w(S){f.current&&!f.current.contains(S.target)&&d(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const m=l==null?void 0:l.lastOpenedProject,p=u.find(w=>w.id===m),x=t.find(w=>w.id===e),C=nt.useCallback(async()=>{if(!(!p||s)){try{const w=await Qr.createSession(p.id,p.path),S={id:w.id,projectId:p.id,projectPath:p.path,title:"新对话",status:"active",createdAt:Date.now(),updatedAt:Date.now()};i([...t,S]),r(w.id),o([])}catch(w){console.error("Failed to create session:",w)}d(!1)}},[p,s,t,i,r,o]),k=nt.useCallback(async w=>{if(!(w.id===e||s)){try{r(w.id);const S=await Qr.getSessionDetail(w.id);o(S.messages)}catch(S){console.error("Failed to switch session:",S)}d(!1)}},[e,s,r,o]),b=nt.useCallback(async()=>{if(!(!e||s)&&window.confirm("确定删除这个对话?此操作不可撤销。"))try{if(await Qr.deleteSession(e),p){const w=await Qr.listSessions(p.id);if(i(w),w.length>0){const S=w[w.length-1];r(S.id);const A=await Qr.getSessionDetail(S.id);o(A.messages)}else r(null),o([])}}catch(w){console.error("Failed to delete session:",w)}},[e,s,p,i,r,o]);return L.jsxs("div",{className:"flex items-center gap-2 px-3.5 py-2.5 border-b border-edge bg-surface-secondary shrink-0",children:[L.jsxs("div",{ref:f,className:"relative flex-1 min-w-0",children:[L.jsxs("button",{onClick:()=>d(!h),className:"flex items-center gap-1.5 w-full px-2.5 py-1.5 border border-edge rounded-md bg-surface text-content text-[13px] font-medium transition-colors duration-150 hover:border-content-tertiary",children:[L.jsx("span",{className:"flex-1 text-left truncate",children:(x==null?void 0:x.title)||"新对话"}),L.jsx(kZ,{open:h})]}),h&&L.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-surface border border-edge rounded-lg shadow-lg z-50 max-h-[240px] overflow-auto animate-fade-in",children:t.length===0?L.jsx("div",{className:"px-3 py-3 text-[13px] text-content-tertiary text-center",children:"暂无历史对话"}):t.map(w=>L.jsxs("button",{onClick:()=>k(w),className:`
616
- flex flex-col gap-0.5 w-full px-3 py-2 text-left
617
- text-[13px] transition-colors duration-150
618
- hover:bg-surface-hover
619
- ${w.id===e?"bg-accent-light text-accent-text":"text-content"}
620
- `,children:[L.jsx("span",{className:"font-medium truncate",children:w.title||"新对话"}),L.jsx("span",{className:"text-[11px] text-content-tertiary",children:mZ(w.updatedAt)})]},w.id))})]}),L.jsx("button",{onClick:C,disabled:s,title:"新建对话",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-content transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(yZ,{})}),L.jsx("button",{onClick:b,disabled:!e||s,title:"删除当前对话",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-danger transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(xZ,{})}),L.jsx("button",{onClick:()=>n(!1),disabled:s,title:"关闭 AI 面板",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-danger transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(CZ,{})})]})},vZ=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),wZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),SZ=({content:t,streaming:e})=>{const[r,n]=nt.useState(!1),[i,o]=nt.useState(!1),s=nt.useCallback(async()=>{if(!t.text)return;await Tc(t.text)&&(n(!0),setTimeout(()=>n(!1),2e3))},[t.text]);return L.jsxs("div",{className:"flex flex-row-reverse items-end gap-2 animate-fade-up",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[!e&&t.text&&L.jsx("button",{onClick:s,className:`
621
- shrink-0 p-1.5 rounded-md
622
- cursor-pointer flex items-center justify-center
623
- transition-all duration-150
624
- ${r?"bg-success text-white":"bg-surface-secondary border border-edge text-content-tertiary hover:bg-surface-hover hover:text-content"}
625
- ${i?"opacity-100":"opacity-0"}
626
- `,title:r?"已复制":"复制",children:r?L.jsx(wZ,{size:12}):L.jsx(vZ,{size:12})}),L.jsxs("div",{className:"flex-1 max-w-[calc(100%-32px)] px-3.5 py-3 bg-surface-secondary border border-edge-light rounded-xl rounded-bl-sm text-[14px] leading-[1.7] text-content break-words",children:[t.text&&L.jsx(FA,{content:t.text}),e&&L.jsx("span",{className:"inline-block w-0.5 h-[1em] bg-content ml-0.5 align-text-bottom animate-pulse-soft"})]})]})},TZ=({size:t=12,rotated:e,className:r})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-150 ${e?"rotate-90":""} ${r||""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})}),_Z=({content:t,streaming:e})=>{const[r,n]=nt.useState(!1);return nt.useEffect(()=>{e&&t.think&&n(!0)},[e,t.think]),L.jsxs("div",{className:"my-2 rounded-xl border border-edge-light bg-surface-tertiary overflow-hidden",children:[L.jsxs("button",{onClick:()=>n(!r),className:"flex items-center gap-2 w-full px-3.5 py-2.5 text-[12px] font-medium text-content-secondary hover:bg-surface-hover transition-colors duration-150",children:[L.jsx("span",{children:"💭"}),L.jsx("span",{children:e?"思考中...":"思考过程"}),L.jsx(TZ,{size:12,rotated:r,className:"ml-auto"})]}),r&&t.think&&L.jsxs("div",{className:"px-3.5 py-3 text-[13px] text-content-tertiary leading-relaxed border-t border-edge-light whitespace-pre-wrap break-words",children:[t.think,e&&L.jsx("span",{className:"inline-block w-0.5 h-[1em] bg-content ml-0.5 align-text-bottom animate-pulse-soft"})]})]})};function LZ(t){try{const e=JSON.parse(t);return e.file_path?e.file_path:e.path?e.path:e.filename?e.filename:e.command?`$ ${e.command}`:""}catch{return t.length>50?t.slice(0,50)+"...":t}}function EZ(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function BZ(t,e=500){return t.length<=e?t:t.slice(0,e)+`
627
- ... (输出已截断)`}const AZ=({size:t=12,rotated:e})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-150 ${e?"rotate-90":""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})}),FZ=({content:t,result:e})=>{const[r,n]=nt.useState(!1),i=LZ(t.arguments),o=e?e.isError?"error":"success":"running";return L.jsxs("div",{className:"my-2 rounded-xl border border-edge bg-surface-secondary overflow-hidden",children:[L.jsxs("button",{onClick:()=>n(!r),className:"flex items-center gap-2 w-full px-3.5 py-2.5 bg-surface-tertiary text-[13px] font-medium text-content hover:bg-surface-hover transition-colors duration-150",children:[L.jsx("span",{className:"text-accent shrink-0",children:"🔧"}),L.jsx("span",{className:"flex-1 truncate",children:t.functionName}),i&&L.jsx("span",{className:"text-[11px] text-content-tertiary truncate hidden sm:inline",children:i}),L.jsx("span",{className:`
628
- text-[11px] font-medium px-2 py-0.5 rounded-full shrink-0
629
- ${o==="success"?"bg-success-light text-success":""}
630
- ${o==="error"?"bg-danger-light text-danger":""}
631
- ${o==="running"?"bg-accent-light text-accent":""}
632
- `,children:o==="running"?"执行中":o==="success"?"完成":"失败"}),L.jsx(AZ,{size:12,rotated:r})]}),r&&L.jsxs("div",{className:"px-3.5 py-3 border-t border-edge space-y-2",children:[L.jsx("pre",{className:"p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all",style:{background:"#1e1e2e",color:"#cdd6f4"},children:EZ(t.arguments)}),e&&L.jsx("pre",{className:`
633
- p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all
634
- ${e.isError?"bg-danger-light text-danger border border-danger/20":"bg-surface-tertiary text-content-secondary"}
635
- `,children:BZ(e.output)})]})]})},IZ=({display:t})=>t.type==="diff"?L.jsx("pre",{className:"p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all",style:{background:"#1e1e2e",color:"#cdd6f4"},children:t.content&&MZ(t.content)}):L.jsx("div",{className:"text-[13px] text-content-secondary whitespace-pre-wrap",children:t.content?String(t.content):JSON.stringify(t,null,2)});function MZ(t){return t.split(`
636
- `).map((r,n)=>{let i="";return r.startsWith("+")&&!r.startsWith("+++")?i="text-success":r.startsWith("-")&&!r.startsWith("---")&&(i="text-danger"),L.jsx("div",{className:i,children:r},n)})}const OZ=({messageId:t,content:e})=>{const[r,n]=nt.useState(!1),i=ie(u=>u.activeSessionId),o=ie(u=>u.updateMessage),s=e.responded,l=async u=>{if(!(s||r||!i)){n(!0);try{await Qr.respondApproval(i,e.requestId,u),o(t,{content:{...e,responded:!0,response:u}})}catch(h){console.error("Failed to respond to approval:",h)}finally{n(!1)}}};return L.jsxs("div",{className:"my-2 rounded-xl border-2 border-warning overflow-hidden bg-surface-secondary",children:[L.jsxs("div",{className:"flex items-center gap-2 px-3.5 py-2.5 bg-warning/8",children:[L.jsx("span",{className:"text-warning shrink-0",children:"⚠️"}),L.jsxs("span",{className:"text-[13px] font-semibold text-content",children:["需要审批:",e.action]}),s&&L.jsx("span",{className:`ml-auto text-[12px] ${e.response==="approve"?"text-success":"text-danger"}`,children:e.response==="approve"?"已批准":"已拒绝"})]}),L.jsx("p",{className:"px-3.5 py-3 text-[13px] text-content-secondary leading-relaxed",children:e.description}),e.display&&e.display.length>0&&L.jsx("div",{className:"px-3.5 pb-3 flex flex-col gap-2",children:e.display.map((u,h)=>L.jsx(IZ,{display:u},h))}),L.jsxs("div",{className:"flex gap-2 px-3.5 py-2.5 border-t border-edge",children:[L.jsx("button",{onClick:()=>l("approve"),disabled:s||r,className:"flex-1 flex items-center justify-center gap-1.5 py-2 rounded-lg bg-success text-white text-[13px] font-medium hover:bg-[#15803d] transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:"批准"}),L.jsx("button",{onClick:()=>l("reject"),disabled:s||r,className:"flex-1 flex items-center justify-center gap-1.5 py-2 rounded-lg bg-surface-secondary text-danger border border-danger text-[13px] font-medium hover:bg-danger hover:text-white transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:"拒绝"})]})]})},NZ=({size:t=14})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),RZ=({size:t=14})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),PZ=({content:t})=>{const[e,r]=nt.useState(!1),[n,i]=nt.useState(!1),o=nt.useCallback(async()=>{if(!t.text)return;await Tc(t.text)&&(r(!0),setTimeout(()=>r(!1),2e3))},[t.text]);return L.jsxs("div",{className:"flex items-end gap-2 animate-fade-up",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[t.text&&L.jsx("button",{onClick:o,className:`
637
- shrink-0 p-1.5 rounded-md
638
- cursor-pointer flex items-center justify-center
639
- transition-all duration-150
640
- ${e?"bg-success text-white":"bg-surface-secondary border border-edge text-content-tertiary hover:bg-surface-hover hover:text-content"}
641
- ${n?"opacity-100":"opacity-0"}
642
- `,title:e?"已复制":"复制",children:e?L.jsx(RZ,{size:12}):L.jsx(NZ,{size:12})}),L.jsx("div",{className:"flex-1 max-w-[calc(100%-32px)] px-3.5 py-2.5 bg-accent-light border border-accent/20 rounded-xl rounded-tl-sm text-[14px] leading-relaxed text-content break-words select-text",children:t.text})]})};function Da(t){return t.content}const DZ=()=>{const t=ie(o=>o.aiMessages),e=ie(o=>o.aiStreaming),r=nt.useRef(null);nt.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const n=new Map;for(const o of t)if(o.type==="tool_result"){const s=o.content;n.set(s.toolCallId,o)}const i=t.filter(o=>o.type!=="tool_result");return i.length===0?L.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col items-center justify-center gap-4 text-content-tertiary p-6",children:[L.jsx("div",{className:"text-4xl mb-3",children:"💬"}),L.jsx("p",{className:"text-[14px]",children:"开始与 AI 对话"}),L.jsx("p",{className:"text-[12px]",children:"输入问题,AI 将基于当前项目上下文回答"})]}):L.jsx("div",{ref:r,className:"flex-1 overflow-y-auto p-4 flex flex-col gap-5 bg-surface",children:i.map((o,s)=>{const l=s===i.length-1;if(o.role==="user")return L.jsx("div",{children:L.jsx(PZ,{content:Da(o)})},o.id);switch(o.type){case"text":{const u=Da(o);return L.jsx("div",{children:L.jsx(SZ,{content:u,streaming:e&&l})},o.id)}case"think":{const u=Da(o);return L.jsx("div",{children:L.jsx(_Z,{content:u,streaming:e&&l})},o.id)}case"tool_call":{const u=Da(o),h=n.get(u.toolCallId),d=h?Da(h):void 0;return L.jsx("div",{children:L.jsx(FZ,{content:u,result:d})},o.id)}case"approval":{const u=Da(o);return L.jsx("div",{children:L.jsx(OZ,{messageId:o.id,content:u})},o.id)}default:return null}})})},$Z=({size:t=16})=>L.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M22 2L11 13"}),L.jsx("path",{d:"M22 2L15 22L11 13L2 9L22 2Z"})]}),jZ=({size:t=16})=>L.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),zZ=()=>{const[t,e]=nt.useState(""),r=nt.useRef(null),n=ie(m=>m.activeSessionId),i=ie(m=>m.aiStreaming),o=ie(m=>m.setStreaming),s=ie(m=>m.addMessage),l=ie(m=>m.setAIError),u=nt.useCallback(async()=>{var p;const m=t.trim();if(!(!m||!n||i)){console.log(`[AIInputBar] Sending message: sessionId=${n}, msg="${m.substring(0,50)}..."`),e(""),o(!0),l(null),s({id:`user-${Date.now()}`,sessionId:n,role:"user",type:"text",content:{text:m},timestamp:Date.now()});try{await Qr.sendPrompt(n,m),console.log("[AIInputBar] sendPrompt returned successfully")}catch(x){console.error("[AIInputBar] Failed to send prompt:",x),l("发送消息失败,请重试"),o(!1)}(p=r.current)==null||p.focus()}},[t,n,i,o,s,l]),h=nt.useCallback(async()=>{if(n)try{await Qr.cancelGeneration(n),o(!1)}catch(m){console.error("Failed to cancel generation:",m)}},[n,o]),d=nt.useCallback(m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),u())},[u]),f=nt.useCallback(m=>{e(m.target.value);const p=m.target;p.style.height="auto",p.style.height=Math.min(p.scrollHeight,150)+"px"},[]);return L.jsxs("div",{className:"border-t border-edge bg-surface-secondary shrink-0 px-3.5 pt-3 pb-2.5",children:[L.jsxs("div",{className:"flex items-end gap-2",children:[L.jsx("div",{className:"flex-1 relative",children:L.jsx("textarea",{ref:r,value:t,onChange:f,onKeyDown:d,placeholder:"输入消息...",disabled:i,rows:1,className:"w-full resize-none px-3.5 py-2.5 pr-2 border border-edge rounded-xl bg-surface text-content text-[14px] leading-relaxed font-sans outline-none max-h-[150px] min-h-[40px] transition-all duration-150 focus:border-accent focus:ring-[3px] focus:ring-accent/15 placeholder:text-content-muted"})}),i?L.jsx("button",{onClick:h,title:"停止生成",className:"w-10 h-10 shrink-0 rounded-xl flex items-center justify-center bg-danger text-white hover:opacity-85 transition-all duration-150",children:L.jsx(jZ,{size:14})}):L.jsx("button",{onClick:u,disabled:!t.trim()||!n,title:"发送消息",className:"w-10 h-10 shrink-0 rounded-xl flex items-center justify-center bg-accent text-white hover:bg-accent-hover transition-all duration-150 active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed",children:L.jsx($Z,{size:14})})]}),L.jsx("div",{className:"text-[11px] text-content-muted mt-1.5 text-center",children:"Enter 发送 / Shift+Enter 换行"})]})},qZ=()=>{const t=ie(e=>e.setAIPanelOpen);return L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-8 text-center",children:[L.jsx("div",{className:"text-5xl mb-4",children:"🤖"}),L.jsx("h3",{className:"text-lg font-semibold text-content",children:"Ask AI 需要 Kimi-CLI"}),L.jsx("p",{className:"text-[14px] text-content-secondary leading-relaxed max-w-[300px]",children:"请先安装 Kimi-CLI 以使用 AI 对话功能。"}),L.jsxs("p",{className:"text-[13px] text-content-tertiary leading-relaxed max-w-[300px]",children:["安装指南:",L.jsx("a",{href:"https://moonshotai.github.io/kimi-cli",target:"_blank",rel:"noopener noreferrer",className:"text-accent no-underline",children:"https://moonshotai.github.io/kimi-cli"})]}),L.jsxs("div",{className:"flex gap-3 mt-4",children:[L.jsx("button",{onClick:()=>window.open("https://moonshotai.github.io/kimi-cli","_blank"),className:"inline-flex items-center gap-1.5 px-5 py-2 rounded-lg bg-accent text-white text-[14px] font-medium hover:bg-accent-hover transition-colors duration-150",children:"打开安装指南"}),L.jsx("button",{onClick:()=>t(!1),className:"inline-flex items-center px-5 py-2 rounded-lg bg-surface-secondary text-content-secondary border border-edge text-[14px] hover:bg-surface-hover transition-colors duration-150",children:"关闭"})]})]})},WZ=420,HZ=320,UZ=520,VZ=()=>{const t=ie(b=>b.aiPanelOpen),e=ie(b=>b.aiStatus),r=ie(b=>b.setAIStatus),n=ie(b=>b.setAISessions),i=ie(b=>b.setActiveSession),o=ie(b=>b.setAIMessages),s=ie(b=>b.setConnected);ie(b=>b.setStreaming);const l=ie(b=>b.setAIPanelWidth),u=kt(b=>b.config),h=kt(b=>b.projects),d=ie(b=>b.activeSessionId),f=u==null?void 0:u.lastOpenedProject,m=h.find(b=>b.id===f),{width:p,dragHandleProps:x,isDragging:C}=pZ({minWidth:HZ,maxWidth:UZ,initialWidth:WZ,onResize:l});if(nt.useEffect(()=>{if(!t)return;let b=!1;async function w(){var S;try{console.log("[AIPanel] Init started");const A=await Qr.getStatus();if(b||(r(A),console.log(`[AIPanel] AI status: available=${A.available}, version=${A.version}`),!A.available)||!f||!m)return;const F=await Qr.listSessions(f);if(b)return;if(n(F),console.log(`[AIPanel] Found ${F.length} sessions for project ${f}`),F.length>0){const E=F[F.length-1];console.log(`[AIPanel] Selecting latest session: ${E.id}`),i(E.id);const B=await Qr.getSessionDetail(E.id);if(b)return;o(B.messages),console.log(`[AIPanel] Session detail loaded: ${((S=B.messages)==null?void 0:S.length)||0} messages`)}else{console.log("[AIPanel] No sessions found, creating new one...");const E=await Qr.createSession(f,m.path);if(b)return;console.log(`[AIPanel] New session created: ${E.id}`),i(E.id),o([]),n([{id:E.id,projectId:f,projectPath:m.path,title:"新对话",status:"active",createdAt:Date.now(),updatedAt:Date.now()}])}console.log("[AIPanel] Init completed")}catch(A){console.error("[AIPanel] Init failed:",A)}}return w(),()=>{b=!0}},[t]),nt.useEffect(()=>{if(!t||!d)return;console.log(`[AIPanel] Setting up SSE for session ${d}`),s(!1);let b={},w=0;const S={onEvent:A=>{var B,P,q,R,$;const F=ie.getState(),E=F.activeSessionId;switch(console.log(`[AIPanel] SSE onEvent: type=${A.type}`),A.type){case"TurnBegin":b={},F.setStreaming(!0);break;case"StepBegin":b={};break;case"ContentPart":{const H=(B=A.payload)==null?void 0:B.type;if(H==="text"){const Q=b.text;if(Q)F.appendToMessage(Q,"text",A.payload.text||"");else{const V=`ai-text-${Date.now()}-${++w}`;F.addMessage({id:V,sessionId:E,role:"assistant",type:"text",content:{text:A.payload.text||""},timestamp:Date.now()}),b.text=V}}else if(H==="think"){const Q=b.think;if(Q)F.appendToMessage(Q,"think",A.payload.think||"");else{const V=`ai-think-${Date.now()}-${++w}`;F.addMessage({id:V,sessionId:E,role:"assistant",type:"think",content:{think:A.payload.think||""},timestamp:Date.now()}),b.think=V}}break}case"TextPart":{const H=b.text;if(H)F.appendToMessage(H,"text",A.payload.text||"");else{const Q=`ai-text-${Date.now()}-${++w}`;F.addMessage({id:Q,sessionId:E,role:"assistant",type:"text",content:{text:A.payload.text||""},timestamp:Date.now()}),b.text=Q}break}case"ThinkPart":{const H=b.think;if(H)F.appendToMessage(H,"think",A.payload.think||"");else{const Q=`ai-think-${Date.now()}-${++w}`;F.addMessage({id:Q,sessionId:E,role:"assistant",type:"think",content:{think:A.payload.think||""},timestamp:Date.now()}),b.think=Q}break}case"ToolCall":F.addMessage({id:`ai-tool-${Date.now()}`,sessionId:E,role:"assistant",type:"tool_call",content:{toolCallId:A.payload.id,functionName:((P=A.payload.function)==null?void 0:P.name)||"",arguments:((q=A.payload.function)==null?void 0:q.arguments)||""},timestamp:Date.now()});break;case"ToolResult":F.addMessage({id:`ai-result-${Date.now()}`,sessionId:E,role:"assistant",type:"tool_result",content:{toolCallId:A.payload.tool_call_id,isError:((R=A.payload.return_value)==null?void 0:R.is_error)||!1,output:(($=A.payload.return_value)==null?void 0:$.output)||""},timestamp:Date.now()});break;case"TurnEnd":F.setStreaming(!1);break}},onRequest:A=>{const F=ie.getState();A.type==="ApprovalRequest"&&F.addMessage({id:`ai-approval-${Date.now()}`,sessionId:F.activeSessionId,role:"assistant",type:"approval",content:{requestId:A.payload.id,toolCallId:A.payload.tool_call_id||"",action:A.payload.action||"",description:A.payload.description||"",display:A.payload.display||[],responded:!1},timestamp:Date.now()})},onError:A=>{console.error("[AIPanel] SSE onError:",A),ie.getState().setConnected(!1)},onDone:()=>{console.log("[AIPanel] SSE onDone"),ie.getState().setStreaming(!1)},onOpen:()=>{console.log("[AIPanel] SSE onOpen - connection established"),ie.getState().setConnected(!0)}};return Qr.connectEvents(d,S),()=>{Qr.disconnectEvents(),s(!1)}},[t,d]),nt.useEffect(()=>{},[t]),!t)return null;const k=(e==null?void 0:e.available)!==!1;return L.jsxs("div",{className:"relative h-full shrink-0 flex flex-col border-l border-edge bg-surface animate-slide-in-right",style:{width:`${p}px`,userSelect:C?"none":"auto"},children:[L.jsx("div",{...x,className:"absolute left-0 top-0 bottom-0 w-1.5 cursor-col-resize z-10 hover:bg-accent/30 active:bg-accent/50 transition-colors duration-150"}),k?L.jsxs(L.Fragment,{children:[L.jsx(bZ,{}),(u==null?void 0:u.yolo)&&L.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-medium",style:{background:"var(--warning-light)",color:"var(--warning)"},children:[L.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),"YOLO 自动审批已启用"]}),L.jsx(DZ,{}),L.jsx(zZ,{})]}):L.jsx(qZ,{})]})};function YZ(){const t=kt(e=>e.config);nt.useEffect(()=>{const e=(t==null?void 0:t.theme)||"light";document.documentElement.setAttribute("data-theme",e)},[t==null?void 0:t.theme])}function GZ(){const t=kt(s=>s.toggleSearch),e=kt(s=>s.setSearchOpen),r=kt(s=>s.setSettingsOpen),n=kt(s=>s.toggleSidebar),i=kt(s=>s.searchOpen),o=kt(s=>s.settingsOpen);nt.useEffect(()=>{function s(l){const u=l.ctrlKey||l.metaKey;if(u&&l.key==="k"){l.preventDefault(),t();return}if(u&&l.key==="b"){l.preventDefault(),n();return}l.key==="Escape"&&(i?e(!1):o&&r(!1))}return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t,e,r,n,i,o])}const XZ=()=>{const t=kt(i=>i.setConfig),e=kt(i=>i.setProjects),r=kt(i=>i.setCurrentWiki);kt(i=>i.setCurrentView),kt(i=>i.setCurrentProject);const n=ie(i=>i.aiPanelOpen);return YZ(),GZ(),nt.useEffect(()=>{let i=!1;async function o(){try{const s=await Pl();if(i)return;if(t(s),e(s.projects),s.lastOpenedProject)try{const l=await wy(s.lastOpenedProject);if(i)return;r(l)}catch(l){console.error("Failed to load last opened project wiki:",l)}}catch(s){console.error("Failed to initialize app:",s)}}return o(),()=>{i=!0}},[t,e,r]),L.jsxs(F5,{children:[L.jsxs("div",{className:"flex flex-col h-screen bg-surface text-content overflow-hidden",children:[L.jsx(H5,{}),L.jsxs("div",{className:"flex flex-1 min-h-0",children:[L.jsx(Q5,{}),L.jsx("main",{className:"flex-1 flex flex-col min-w-0",children:L.jsx(HQ,{})}),n&&L.jsx(VZ,{})]})]}),L.jsx(KQ,{}),L.jsx(rZ,{}),L.jsx(lZ,{}),L.jsx(fZ,{})]})},MA=document.getElementById("root");if(!MA)throw new Error("Root element not found");A5.createRoot(MA).render(L.jsx(Ie.StrictMode,{children:L.jsx(XZ,{})}));export{Jw as $,eJ as A,uo as B,_R as C,Pe as D,iD as E,Sx as F,qw as G,I7 as H,Pj as I,W8 as J,lP as K,Kl as L,JZ as M,vd as N,DP as O,Qw as P,Ak as Q,Ej as R,Am as S,F7 as T,pc as U,Un as V,st as W,ot as X,VP as Y,w7 as Z,T as _,ZP as a,mb as a$,Sj as a0,Kk as a1,Xk as a2,uJ as a3,oJ as a4,lJ as a5,sJ as a6,nJ as a7,rx as a8,cJ as a9,VW as aA,UW as aB,Xq as aC,Iw as aD,Tj as aE,ZZ as aF,bd as aG,Uh as aH,W_ as aI,tr as aJ,vc as aK,Yq as aL,Vq as aM,Zy as aN,ao as aO,Jl as aP,Wk as aQ,i6 as aR,Q9 as aS,z_ as aT,O_ as aU,e9 as aV,qh as aW,r9 as aX,kc as aY,zo as aZ,V9 as a_,iJ as aa,Oa as ab,dJ as ac,hJ as ad,aJ as ae,kW as af,tB as ag,wJ as ah,U8 as ai,$r as aj,Ni as ak,bl as al,Tx as am,X_ as an,ta as ao,J_ as ap,Gt as aq,ai as ar,At as as,vH as at,vJ as au,SJ as av,kJ as aw,Ot as ax,bJ as ay,QW as az,QP as b,ia as b0,n9 as b1,yx as b2,t9 as b3,a9 as b4,bs as b5,K9 as b6,C7 as b7,h9 as b8,d7 as b9,hb as bA,xx as bB,R_ as bC,hy as bD,QZ as bE,oe as bF,gx as ba,sv as bb,Mt as bc,tL as bd,Jr as be,Q$ as bf,Qy as bg,fS as bh,yc as bi,mS as bj,rJ as bk,TR as bl,x7 as bm,h7 as bn,k7 as bo,yd as bp,Zz as bq,mx as br,j_ as bs,v7 as bt,ks as bu,n7 as bv,UH as bw,Cc as bx,Hh as by,xo as bz,ue as c,Zt as d,Zw as e,ir as f,tD as g,Fi as h,Hn as i,G8 as j,gc as k,ht as l,Q_ as m,tJ as n,_J as o,eD as p,rD as q,TJ as r,JP as s,H8 as t,jn as u,jW as v,N7 as w,fJ as x,us as y,KP as z};