srcly 0.1.0__py3-none-any.whl
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.
- app/static/assets/abap-BdImnpbu.js +1 -0
- app/static/assets/actionscript-3-CfeIJUat.js +1 -0
- app/static/assets/ada-bCR0ucgS.js +1 -0
- app/static/assets/andromeeda-C-Jbm3Hp.js +1 -0
- app/static/assets/angular-html-CU67Zn6k.js +1 -0
- app/static/assets/angular-ts-BwZT4LLn.js +1 -0
- app/static/assets/apache-Pmp26Uib.js +1 -0
- app/static/assets/apex-DhZLUxFE.js +1 -0
- app/static/assets/apl-dKokRX4l.js +1 -0
- app/static/assets/applescript-Co6uUVPk.js +1 -0
- app/static/assets/ara-BRHolxvo.js +1 -0
- app/static/assets/asciidoc-Dv7Oe6Be.js +1 -0
- app/static/assets/asm-D_Q5rh1f.js +1 -0
- app/static/assets/astro-CbQHKStN.js +1 -0
- app/static/assets/aurora-x-D-2ljcwZ.js +1 -0
- app/static/assets/awk-DMzUqQB5.js +1 -0
- app/static/assets/ayu-dark-Cv9koXgw.js +1 -0
- app/static/assets/ballerina-BFfxhgS-.js +1 -0
- app/static/assets/bat-BkioyH1T.js +1 -0
- app/static/assets/beancount-k_qm7-4y.js +1 -0
- app/static/assets/berry-D08WgyRC.js +1 -0
- app/static/assets/bibtex-CHM0blh-.js +1 -0
- app/static/assets/bicep-Bmn6On1c.js +1 -0
- app/static/assets/blade-DVc8C-J4.js +1 -0
- app/static/assets/bsl-BO_Y6i37.js +1 -0
- app/static/assets/c-BIGW1oBm.js +1 -0
- app/static/assets/cadence-Bv_4Rxtq.js +1 -0
- app/static/assets/cairo-KRGpt6FW.js +1 -0
- app/static/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- app/static/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- app/static/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- app/static/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- app/static/assets/clarity-D53aC0YG.js +1 -0
- app/static/assets/clojure-P80f7IUj.js +1 -0
- app/static/assets/cmake-D1j8_8rp.js +1 -0
- app/static/assets/cobol-nwyudZeR.js +1 -0
- app/static/assets/codeowners-Bp6g37R7.js +1 -0
- app/static/assets/codeql-DsOJ9woJ.js +1 -0
- app/static/assets/coffee-Ch7k5sss.js +1 -0
- app/static/assets/common-lisp-Cg-RD9OK.js +1 -0
- app/static/assets/coq-DkFqJrB1.js +1 -0
- app/static/assets/cpp-CofmeUqb.js +1 -0
- app/static/assets/crystal-tKQVLTB8.js +1 -0
- app/static/assets/csharp-CX12Zw3r.js +1 -0
- app/static/assets/css-DPfMkruS.js +1 -0
- app/static/assets/csv-fuZLfV_i.js +1 -0
- app/static/assets/cue-D82EKSYY.js +1 -0
- app/static/assets/cypher-COkxafJQ.js +1 -0
- app/static/assets/d-85-TOEBH.js +1 -0
- app/static/assets/dark-plus-eOWES_5F.js +1 -0
- app/static/assets/dart-CF10PKvl.js +1 -0
- app/static/assets/dax-CEL-wOlO.js +1 -0
- app/static/assets/desktop-BmXAJ9_W.js +1 -0
- app/static/assets/diff-D97Zzqfu.js +1 -0
- app/static/assets/docker-BcOcwvcX.js +1 -0
- app/static/assets/dotenv-Da5cRb03.js +1 -0
- app/static/assets/dracula-BzJJZx-M.js +1 -0
- app/static/assets/dracula-soft-BXkSAIEj.js +1 -0
- app/static/assets/dream-maker-BtqSS_iP.js +1 -0
- app/static/assets/edge-BkV0erSs.js +1 -0
- app/static/assets/elixir-CDX3lj18.js +1 -0
- app/static/assets/elm-DbKCFpqz.js +1 -0
- app/static/assets/emacs-lisp-C9XAeP06.js +1 -0
- app/static/assets/erb-BOJIQeun.js +1 -0
- app/static/assets/erlang-DsQrWhSR.js +1 -0
- app/static/assets/everforest-dark-BgDCqdQA.js +1 -0
- app/static/assets/everforest-light-C8M2exoo.js +1 -0
- app/static/assets/fennel-BYunw83y.js +1 -0
- app/static/assets/fish-BvzEVeQv.js +1 -0
- app/static/assets/fluent-C4IJs8-o.js +1 -0
- app/static/assets/fortran-fixed-form-BZjJHVRy.js +1 -0
- app/static/assets/fortran-free-form-D22FLkUw.js +1 -0
- app/static/assets/fsharp-CXgrBDvD.js +1 -0
- app/static/assets/gdresource-B7Tvp0Sc.js +1 -0
- app/static/assets/gdscript-DTMYz4Jt.js +1 -0
- app/static/assets/gdshader-DkwncUOv.js +1 -0
- app/static/assets/genie-D0YGMca9.js +1 -0
- app/static/assets/gherkin-DyxjwDmM.js +1 -0
- app/static/assets/git-commit-F4YmCXRG.js +1 -0
- app/static/assets/git-rebase-r7XF79zn.js +1 -0
- app/static/assets/github-dark-DHJKELXO.js +1 -0
- app/static/assets/github-dark-default-Cuk6v7N8.js +1 -0
- app/static/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- app/static/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- app/static/assets/github-light-DAi9KRSo.js +1 -0
- app/static/assets/github-light-default-D7oLnXFd.js +1 -0
- app/static/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- app/static/assets/gleam-BspZqrRM.js +1 -0
- app/static/assets/glimmer-js-Rg0-pVw9.js +1 -0
- app/static/assets/glimmer-ts-U6CK756n.js +1 -0
- app/static/assets/glsl-DplSGwfg.js +1 -0
- app/static/assets/gnuplot-DdkO51Og.js +1 -0
- app/static/assets/go-Dn2_MT6a.js +1 -0
- app/static/assets/graphql-ChdNCCLP.js +1 -0
- app/static/assets/groovy-gcz8RCvz.js +1 -0
- app/static/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- app/static/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- app/static/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- app/static/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- app/static/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- app/static/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- app/static/assets/hack-CaT9iCJl.js +1 -0
- app/static/assets/haml-B8DHNrY2.js +1 -0
- app/static/assets/handlebars-BL8al0AC.js +1 -0
- app/static/assets/haskell-Df6bDoY_.js +1 -0
- app/static/assets/haxe-CzTSHFRz.js +1 -0
- app/static/assets/hcl-BWvSN4gD.js +1 -0
- app/static/assets/hjson-D5-asLiD.js +1 -0
- app/static/assets/hlsl-D3lLCCz7.js +1 -0
- app/static/assets/houston-DnULxvSX.js +1 -0
- app/static/assets/html-GMplVEZG.js +1 -0
- app/static/assets/html-derivative-BFtXZ54Q.js +1 -0
- app/static/assets/http-jrhK8wxY.js +1 -0
- app/static/assets/hurl-irOxFIW8.js +1 -0
- app/static/assets/hxml-Bvhsp5Yf.js +1 -0
- app/static/assets/hy-DFXneXwc.js +1 -0
- app/static/assets/imba-DGztddWO.js +1 -0
- app/static/assets/index-CIVGRltC.css +1 -0
- app/static/assets/index-KFE7Rt2Z.js +18 -0
- app/static/assets/ini-BEwlwnbL.js +1 -0
- app/static/assets/java-CylS5w8V.js +1 -0
- app/static/assets/javascript-wDzz0qaB.js +1 -0
- app/static/assets/jinja-4LBKfQ-Z.js +1 -0
- app/static/assets/jison-wvAkD_A8.js +1 -0
- app/static/assets/json-Cp-IABpG.js +1 -0
- app/static/assets/json5-C9tS-k6U.js +1 -0
- app/static/assets/jsonc-Des-eS-w.js +1 -0
- app/static/assets/jsonl-DcaNXYhu.js +1 -0
- app/static/assets/jsonnet-DFQXde-d.js +1 -0
- app/static/assets/jssm-C2t-YnRu.js +1 -0
- app/static/assets/jsx-g9-lgVsj.js +1 -0
- app/static/assets/julia-C8NyazO9.js +1 -0
- app/static/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- app/static/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- app/static/assets/kanagawa-wave-DWedfzmr.js +1 -0
- app/static/assets/kdl-DV7GczEv.js +1 -0
- app/static/assets/kotlin-BdnUsdx6.js +1 -0
- app/static/assets/kusto-BvAqAH-y.js +1 -0
- app/static/assets/laserwave-DUszq2jm.js +1 -0
- app/static/assets/latex-BUKiar2Z.js +1 -0
- app/static/assets/lean-DP1Csr6i.js +1 -0
- app/static/assets/less-B1dDrJ26.js +1 -0
- app/static/assets/light-plus-B7mTdjB0.js +1 -0
- app/static/assets/liquid-DYVedYrR.js +1 -0
- app/static/assets/llvm-BtvRca6l.js +1 -0
- app/static/assets/log-2UxHyX5q.js +1 -0
- app/static/assets/logo-BtOb2qkB.js +1 -0
- app/static/assets/lua-BbnMAYS6.js +1 -0
- app/static/assets/luau-CXu1NL6O.js +1 -0
- app/static/assets/make-CHLpvVh8.js +1 -0
- app/static/assets/markdown-Cvjx9yec.js +1 -0
- app/static/assets/marko-CPi9NSCl.js +1 -0
- app/static/assets/material-theme-D5KoaKCx.js +1 -0
- app/static/assets/material-theme-darker-BfHTSMKl.js +1 -0
- app/static/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- app/static/assets/material-theme-ocean-CyktbL80.js +1 -0
- app/static/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- app/static/assets/matlab-D7o27uSR.js +1 -0
- app/static/assets/mdc-DUICxH0z.js +1 -0
- app/static/assets/mdx-Cmh6b_Ma.js +1 -0
- app/static/assets/mermaid-DKYwYmdq.js +1 -0
- app/static/assets/min-dark-CafNBF8u.js +1 -0
- app/static/assets/min-light-CTRr51gU.js +1 -0
- app/static/assets/mipsasm-CKIfxQSi.js +1 -0
- app/static/assets/mojo-1DNp92w6.js +1 -0
- app/static/assets/monokai-D4h5O-jR.js +1 -0
- app/static/assets/move-Bu9oaDYs.js +1 -0
- app/static/assets/narrat-DRg8JJMk.js +1 -0
- app/static/assets/nextflow-CUEJCptM.js +1 -0
- app/static/assets/nginx-DknmC5AR.js +1 -0
- app/static/assets/night-owl-C39BiMTA.js +1 -0
- app/static/assets/nim-CVrawwO9.js +1 -0
- app/static/assets/nix-BbRYJGeE.js +1 -0
- app/static/assets/nord-Ddv68eIx.js +1 -0
- app/static/assets/nushell-C-sUppwS.js +1 -0
- app/static/assets/objective-c-DXmwc3jG.js +1 -0
- app/static/assets/objective-cpp-CLxacb5B.js +1 -0
- app/static/assets/ocaml-C0hk2d4L.js +1 -0
- app/static/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- app/static/assets/one-light-PoHY5YXO.js +1 -0
- app/static/assets/pascal-D93ZcfNL.js +1 -0
- app/static/assets/perl-C0TMdlhV.js +1 -0
- app/static/assets/php-CDn_0X-4.js +1 -0
- app/static/assets/pkl-u5AG7uiY.js +1 -0
- app/static/assets/plastic-3e1v2bzS.js +1 -0
- app/static/assets/plsql-ChMvpjG-.js +1 -0
- app/static/assets/po-BTJTHyun.js +1 -0
- app/static/assets/poimandres-CS3Unz2-.js +1 -0
- app/static/assets/polar-C0HS_06l.js +1 -0
- app/static/assets/postcss-CXtECtnM.js +1 -0
- app/static/assets/powerquery-CEu0bR-o.js +1 -0
- app/static/assets/powershell-Dpen1YoG.js +1 -0
- app/static/assets/prisma-Dd19v3D-.js +1 -0
- app/static/assets/prolog-CbFg5uaA.js +1 -0
- app/static/assets/proto-DyJlTyXw.js +1 -0
- app/static/assets/pug-CGlum2m_.js +1 -0
- app/static/assets/puppet-BMWR74SV.js +1 -0
- app/static/assets/purescript-CklMAg4u.js +1 -0
- app/static/assets/python-B6aJPvgy.js +1 -0
- app/static/assets/qml-3beO22l8.js +1 -0
- app/static/assets/qmldir-C8lEn-DE.js +1 -0
- app/static/assets/qss-IeuSbFQv.js +1 -0
- app/static/assets/r-DiinP2Uv.js +1 -0
- app/static/assets/racket-BqYA7rlc.js +1 -0
- app/static/assets/raku-DXvB9xmW.js +1 -0
- app/static/assets/razor-WgofotgN.js +1 -0
- app/static/assets/red-bN70gL4F.js +1 -0
- app/static/assets/reg-C-SQnVFl.js +1 -0
- app/static/assets/regexp-CDVJQ6XC.js +1 -0
- app/static/assets/rel-C3B-1QV4.js +1 -0
- app/static/assets/riscv-BM1_JUlF.js +1 -0
- app/static/assets/rose-pine-BHrmToEH.js +1 -0
- app/static/assets/rose-pine-dawn-CnK8MTSM.js +1 -0
- app/static/assets/rose-pine-moon-NleAzG8P.js +1 -0
- app/static/assets/rosmsg-BJDFO7_C.js +1 -0
- app/static/assets/rst-B0xPkSld.js +1 -0
- app/static/assets/ruby-BvKwtOVI.js +1 -0
- app/static/assets/rust-B1yitclQ.js +1 -0
- app/static/assets/sas-cz2c8ADy.js +1 -0
- app/static/assets/sass-Cj5Yp3dK.js +1 -0
- app/static/assets/scala-C151Ov-r.js +1 -0
- app/static/assets/scheme-C98Dy4si.js +1 -0
- app/static/assets/scss-OYdSNvt2.js +1 -0
- app/static/assets/sdbl-DVxCFoDh.js +1 -0
- app/static/assets/shaderlab-Dg9Lc6iA.js +1 -0
- app/static/assets/shellscript-Yzrsuije.js +1 -0
- app/static/assets/shellsession-BADoaaVG.js +1 -0
- app/static/assets/slack-dark-BthQWCQV.js +1 -0
- app/static/assets/slack-ochin-DqwNpetd.js +1 -0
- app/static/assets/smalltalk-BERRCDM3.js +1 -0
- app/static/assets/snazzy-light-Bw305WKR.js +1 -0
- app/static/assets/solarized-dark-DXbdFlpD.js +1 -0
- app/static/assets/solarized-light-L9t79GZl.js +1 -0
- app/static/assets/solidity-BbcW6ACK.js +1 -0
- app/static/assets/soy-Brmx7dQM.js +1 -0
- app/static/assets/sparql-rVzFXLq3.js +1 -0
- app/static/assets/splunk-BtCnVYZw.js +1 -0
- app/static/assets/sql-BLtJtn59.js +1 -0
- app/static/assets/ssh-config-_ykCGR6B.js +1 -0
- app/static/assets/stata-BH5u7GGu.js +1 -0
- app/static/assets/stylus-BEDo0Tqx.js +1 -0
- app/static/assets/svelte-3Dk4HxPD.js +1 -0
- app/static/assets/swift-Dg5xB15N.js +1 -0
- app/static/assets/synthwave-84-CbfX1IO0.js +1 -0
- app/static/assets/system-verilog-CnnmHF94.js +1 -0
- app/static/assets/systemd-4A_iFExJ.js +1 -0
- app/static/assets/talonscript-CkByrt1z.js +1 -0
- app/static/assets/tasl-QIJgUcNo.js +1 -0
- app/static/assets/tcl-dwOrl1Do.js +1 -0
- app/static/assets/templ-W15q3VgB.js +1 -0
- app/static/assets/terraform-BETggiCN.js +1 -0
- app/static/assets/tex-Cppo0RY3.js +1 -0
- app/static/assets/tokyo-night-hegEt444.js +1 -0
- app/static/assets/toml-vGWfd6FD.js +1 -0
- app/static/assets/ts-tags-zn1MmPIZ.js +1 -0
- app/static/assets/tsv-B_m7g4N7.js +1 -0
- app/static/assets/tsx-COt5Ahok.js +1 -0
- app/static/assets/turtle-BsS91CYL.js +1 -0
- app/static/assets/twig-CO9l9SDP.js +1 -0
- app/static/assets/typescript-BPQ3VLAy.js +1 -0
- app/static/assets/typespec-Df68jz8_.js +1 -0
- app/static/assets/typst-DHCkPAjA.js +1 -0
- app/static/assets/v-BcVCzyr7.js +1 -0
- app/static/assets/vala-CsfeWuGM.js +1 -0
- app/static/assets/vb-D17OF-Vu.js +1 -0
- app/static/assets/verilog-BQ8w6xss.js +1 -0
- app/static/assets/vesper-DU1UobuO.js +1 -0
- app/static/assets/vhdl-CeAyd5Ju.js +1 -0
- app/static/assets/viml-CJc9bBzg.js +1 -0
- app/static/assets/vitesse-black-Bkuqu6BP.js +1 -0
- app/static/assets/vitesse-dark-D0r3Knsf.js +1 -0
- app/static/assets/vitesse-light-CVO1_9PV.js +1 -0
- app/static/assets/vue-CCoi5OLL.js +1 -0
- app/static/assets/vue-html-DAAvJJDi.js +1 -0
- app/static/assets/vue-vine-_Ih-lPRR.js +1 -0
- app/static/assets/vyper-CDx5xZoG.js +1 -0
- app/static/assets/wasm-CG6Dc4jp.js +1 -0
- app/static/assets/wasm-MzD3tlZU.js +1 -0
- app/static/assets/wenyan-BV7otONQ.js +1 -0
- app/static/assets/wgsl-Dx-B1_4e.js +1 -0
- app/static/assets/wikitext-BhOHFoWU.js +1 -0
- app/static/assets/wit-5i3qLPDT.js +1 -0
- app/static/assets/wolfram-lXgVvXCa.js +1 -0
- app/static/assets/xml-sdJ4AIDG.js +1 -0
- app/static/assets/xsl-CtQFsRM5.js +1 -0
- app/static/assets/yaml-Buea-lGh.js +1 -0
- app/static/assets/zenscript-DVFEvuxE.js +1 -0
- app/static/assets/zig-VOosw3JB.js +1 -0
- app/static/index.html +14 -0
- app/static/vite.svg +1 -0
- srcly-0.1.0.dist-info/METADATA +62 -0
- srcly-0.1.0.dist-info/RECORD +294 -0
- srcly-0.1.0.dist-info/WHEEL +4 -0
- srcly-0.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BUKiar2Z.js","assets/tex-Cppo0RY3.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-WgofotgN.js","assets/csharp-CX12Zw3r.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-CCoi5OLL.js","assets/vue-html-DAAvJJDi.js","assets/vue-vine-_Ih-lPRR.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const Co=!1,Io=(e,t)=>e===t,Oo=Symbol("solid-track"),Rt={equals:Io};let ai=fi;const ge=1,Lt=2,li={owned:null,cleanups:null,context:null,owner:null};var $=null;let fn=null,Do=null,V=null,q=null,fe=null,tn=0;function vt(e,t){const n=V,r=$,i=e.length===0,o=t===void 0?r:t,s=i?li:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=i?e:()=>e(()=>me(()=>Ke(s)));$=s,V=null;try{return it(a,!0)}finally{V=n,$=r}}function B(e,t){t=t?Object.assign({},Rt,t):Rt;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),ci(n,i));return[ui.bind(n),r]}function Ce(e,t,n){const r=zn(e,t,!1,ge);rt(r)}function nn(e,t,n){ai=Mo;const r=zn(e,t,!1,ge);r.user=!0,fe?fe.push(r):rt(r)}function qe(e,t,n){n=n?Object.assign({},Rt,n):Rt;const r=zn(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,rt(r),ui.bind(r)}function me(e){if(V===null)return e();const t=V;V=null;try{return e()}finally{V=t}}function Hn(e){nn(()=>me(e))}function Ie(e){return $===null||($.cleanups===null?$.cleanups=[e]:$.cleanups.push(e)),e}function ui(){if(this.sources&&this.state)if(this.state===ge)rt(this);else{const e=q;q=null,it(()=>kt(this),!1),q=e}if(V){const e=this.observers?this.observers.length:0;V.sources?(V.sources.push(this),V.sourceSlots.push(e)):(V.sources=[this],V.sourceSlots=[e]),this.observers?(this.observers.push(V),this.observerSlots.push(V.sources.length-1)):(this.observers=[V],this.observerSlots=[V.sources.length-1])}return this.value}function ci(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&it(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],s=fn&&fn.running;s&&fn.disposed.has(o),(s?!o.tState:!o.state)&&(o.pure?q.push(o):fe.push(o),o.observers&&hi(o)),s||(o.state=ge)}if(q.length>1e6)throw q=[],new Error},!1)),t}function rt(e){if(!e.fn)return;Ke(e);const t=tn;No(e,e.value,t)}function No(e,t,n){let r;const i=$,o=V;V=$=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=ge,e.owned&&e.owned.forEach(Ke),e.owned=null),e.updatedAt=n+1,di(s)}finally{V=o,$=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ci(e,r):e.value=r,e.updatedAt=n)}function zn(e,t,n,r=ge,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:$,context:$?$.context:null,pure:n};return $===null||$!==li&&($.owned?$.owned.push(o):$.owned=[o]),o}function Pt(e){if(e.state===0)return;if(e.state===Lt)return kt(e);if(e.suspense&&me(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<tn);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===ge)rt(e);else if(e.state===Lt){const r=q;q=null,it(()=>kt(e,t[0]),!1),q=r}}function it(e,t){if(q)return e();let n=!1;t||(q=[]),fe?n=!0:fe=[],tn++;try{const r=e();return Vo(n),r}catch(r){n||(fe=null),q=null,di(r)}}function Vo(e){if(q&&(fi(q),q=null),e)return;const t=fe;fe=null,t.length&&it(()=>ai(t),!1)}function fi(e){for(let t=0;t<e.length;t++)Pt(e[t])}function Mo(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Pt(r)}for(t=0;t<n;t++)Pt(e[t])}function kt(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const i=r.state;i===ge?r!==t&&(!r.updatedAt||r.updatedAt<tn)&&Pt(r):i===Lt&&kt(r,t)}}}function hi(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Lt,n.pure?q.push(n):fe.push(n),n.observers&&hi(n))}}function Ke(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),s=n.observerSlots.pop();r<i.length&&(o.sourceSlots[s]=r,i[r]=o,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ke(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ke(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function $o(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function di(e,t=$){throw $o(e)}const Bo=Symbol("fallback");function hr(e){for(let t=0;t<e.length;t++)e[t]()}function Go(e,t,n={}){let r=[],i=[],o=[],s=0,a=t.length>1?[]:null;return Ie(()=>hr(o)),()=>{let l=e()||[],u=l.length,c,f;return l[Oo],me(()=>{let p,m,y,g,v,_,w,T,x;if(u===0)s!==0&&(hr(o),o=[],r=[],i=[],s=0,a&&(a=[])),n.fallback&&(r=[Bo],i[0]=vt(A=>(o[0]=A,n.fallback())),s=1);else if(s===0){for(i=new Array(u),f=0;f<u;f++)r[f]=l[f],i[f]=vt(h);s=u}else{for(y=new Array(u),g=new Array(u),a&&(v=new Array(u)),_=0,w=Math.min(s,u);_<w&&r[_]===l[_];_++);for(w=s-1,T=u-1;w>=_&&T>=_&&r[w]===l[T];w--,T--)y[T]=i[w],g[T]=o[w],a&&(v[T]=a[w]);for(p=new Map,m=new Array(T+1),f=T;f>=_;f--)x=l[f],c=p.get(x),m[f]=c===void 0?-1:c,p.set(x,f);for(c=_;c<=w;c++)x=r[c],f=p.get(x),f!==void 0&&f!==-1?(y[f]=i[c],g[f]=o[c],a&&(v[f]=a[c]),f=m[f],p.set(x,f)):o[c]();for(f=_;f<u;f++)f in y?(i[f]=y[f],o[f]=g[f],a&&(a[f]=v[f],a[f](f))):i[f]=vt(h);i=i.slice(0,s=u),r=l.slice(0)}return i});function h(p){if(o[f]=p,a){const[m,y]=B(f);return a[f]=y,t(l[f],m)}return t(l[f])}}}function j(e,t){return me(()=>e(t||{}))}const Fo=e=>`Stale read from <${e}>.`;function dr(e){const t="fallback"in e&&{fallback:()=>e.fallback};return qe(Go(()=>e.each,e.children,t||void 0))}function re(e){const t=e.keyed,n=qe(()=>e.when,void 0,void 0),r=t?n:qe(n,void 0,{equals:(i,o)=>!i==!o});return qe(()=>{const i=r();if(i){const o=e.children;return typeof o=="function"&&o.length>0?me(()=>o(t?i:()=>{if(!me(r))throw Fo("Show");return n()})):o}return e.fallback},void 0,void 0)}const Re=e=>qe(()=>e());function Uo(e,t,n){let r=n.length,i=t.length,o=r,s=0,a=0,l=t[i-1].nextSibling,u=null;for(;s<i||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===s){const c=o<r?a?n[a-1].nextSibling:n[o-a]:l;for(;a<o;)e.insertBefore(n[a++],c)}else if(o===a)for(;s<i;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[i-1]){const c=t[--i].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],c),t[i]=n[o]}else{if(!u){u=new Map;let f=a;for(;f<o;)u.set(n[f],f++)}const c=u.get(t[s]);if(c!=null)if(a<c&&c<o){let f=s,h=1,p;for(;++f<i&&f<o&&!((p=u.get(t[f]))==null||p!==c+h);)h++;if(h>c-a){const m=t[s];for(;a<c;)e.insertBefore(n[a++],m)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const pr="_$DX_DELEGATE";function jo(e,t,n,r={}){let i;return vt(o=>{i=o,t===document?e():D(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=""}}function X(e,t,n,r){let i;const o=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(i||(i=o())).cloneNode(!0);return s.cloneNode=s,s}function Wn(e,t=window.document){const n=t[pr]||(t[pr]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Wo))}}function Ho(e,t){t==null?e.removeAttribute("class"):e.className=t}function zo(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n}function wt(e,t,n){return me(()=>e(t,n))}function D(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Ct(e,t,r,n);Ce(i=>Ct(e,t(),i,n),r)}function Wo(e){let t=e.target;const n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{const l=t[n];if(l&&!t.disabled){const u=t[`${n}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();o(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,a();break}if(t.parentNode===i)break}}else a();o(r)}function Ct(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(o==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=Ae(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean")n=Ae(e,n,r);else{if(o==="function")return Ce(()=>{let a=t();for(;typeof a=="function";)a=a();n=Ct(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],l=n&&Array.isArray(n);if(bn(a,t,n,i))return Ce(()=>n=Ct(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=Ae(e,n,r),s)return n}else l?n.length===0?mr(e,a,r):Uo(e,n,a):(n&&Ae(e),mr(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=Ae(e,n,r,t);Ae(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function bn(e,t,n,r){let i=!1;for(let o=0,s=t.length;o<s;o++){let a=t[o],l=n&&n[e.length],u;if(!(a==null||a===!0||a===!1))if((u=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))i=bn(e,a,l)||i;else if(u==="function")if(r){for(;typeof a=="function";)a=a();i=bn(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||i}else e.push(a),i=!0;else{const c=String(a);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return i}function mr(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Ae(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(i!==a){const l=a.parentNode===e;!o&&!s?l?e.replaceChild(i,a):e.insertBefore(i,n):l&&a.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}var qo=X("<div>");function Xo(e){const[t,n]=B(!0),r=e.duration??3e3,o=setTimeout(()=>n(!1),r);return Ie(()=>clearTimeout(o)),j(re,{get when(){return t()},get children(){var s=qo();return D(s,()=>e.message),Ce(()=>Ho(s,`fixed bottom-4 right-4 max-w-xs px-4 py-2 rounded shadow-lg text-white z-50 ${e.type==="error"?"bg-red-600":"bg-green-600"}`)),s}})}var Ko=X('<div class="p-2 text-gray-400 italic">Loading...'),Yo=X('<div class="absolute top-full left-0 right-0 mt-1 bg-gray-800 border border-gray-700 rounded shadow-xl max-h-96 overflow-y-auto z-50">'),Jo=X('<div class="absolute top-full right-0 mt-1 bg-gray-900 border border-gray-700 rounded shadow-lg max-h-64 overflow-y-auto z-40 min-w-[16rem]"><div class="px-3 py-2 text-xs uppercase tracking-wide text-gray-400 border-b border-gray-700">Recent folders'),Qo=X('<div class="relative w-full max-w-xl"><div class="flex gap-2"><input type=text placeholder=/path/to/codebase class="w-full px-3 py-3 bg-gray-700 text-white rounded border border-gray-600 focus:border-blue-500 outline-none text-base"><button type=button class="px-3 py-2 bg-gray-800 hover:bg-gray-700 text-xs text-gray-200 rounded border border-gray-600 whitespace-nowrap">Recent</button><button type=button class="px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded">Analyze'),Zo=X('<div class="p-2 hover:bg-gray-700 cursor-pointer flex items-center gap-2 text-gray-200"><span></span><span>'),es=X('<button type=button class="w-full text-left px-3 py-2 text-sm text-gray-200 hover:bg-gray-800 truncate">');function ts(e){const[t,n]=B(e.initialPath||""),[r,i]=B([]),[o,s]=B(!1),[a,l]=B(!1),[u,c]=B([]),[f,h]=B(!1);let p;const m="code-steward-recent-paths",y=A=>{if(!(typeof window>"u"))try{window.localStorage.setItem(m,JSON.stringify(A))}catch(R){console.error("Failed to save recent paths",R)}},g=A=>{const R=A.trim();R&&c(E=>{const P=E.filter(S=>S!==R),H=[R,...P].slice(0,8);return y(H),H})},v=()=>{if(!(typeof window>"u"))try{const A=window.localStorage.getItem(m);if(!A)return;const R=JSON.parse(A);if(Array.isArray(R)){const E=R.filter(P=>typeof P=="string");c(E)}}catch(A){console.error("Failed to load recent paths",A)}},_=async A=>{l(!0);try{const R=await fetch(`/api/files/suggest?path=${encodeURIComponent(A)}`);if(R.ok){const E=await R.json();i(E.items)}else i([])}catch(R){console.error(R)}finally{l(!1)}};nn(()=>{const A=t();_(A)}),Hn(()=>{v();const A=R=>{const E=R.target;!p||!E||p.contains(E)||(s(!1),h(!1))};document.addEventListener("mousedown",A),Ie(()=>{document.removeEventListener("mousedown",A)})});const w=A=>{const R=A.target.value;n(R),s(!0)},T=()=>{const A=t().trim();A&&(e.onSelect(A),g(A),s(!1),h(!1))},x=A=>{n(A.path),A.type==="folder"?s(!0):(s(!1),e.onSelect(A.path))};return(()=>{var A=Qo(),R=A.firstChild,E=R.firstChild,P=E.nextSibling,H=P.nextSibling;return wt(S=>{p=S??void 0},A),E.addEventListener("focus",()=>s(!0)),E.$$input=w,P.$$click=()=>h(S=>!S),H.$$click=T,D(A,j(re,{get when(){return Re(()=>!!o())()&&(r().length>0||a())},get children(){var S=Yo();return D(S,j(re,{get when(){return a()},get children(){return Ko()}}),null),D(S,j(dr,{get each(){return r()},children:k=>(()=>{var C=Zo(),O=C.firstChild,J=O.nextSibling;return C.$$click=()=>x(k),D(O,()=>k.type==="folder"?"📁":"📄"),D(J,()=>k.name),C})()}),null),S}}),null),D(A,j(re,{get when(){return Re(()=>!!f())()&&u().length>0},get children(){var S=Jo();return S.firstChild,D(S,j(dr,{get each(){return u()},children:k=>(()=>{var C=es();return C.$$click=()=>{n(k),e.onSelect(k),g(k),h(!1),s(!1)},D(C,k),C})()}),null),S}}),null),Ce(()=>E.value=t()),A})()}Wn(["input","click"]);function Et(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ns(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function pi(e){let t,n,r;e.length!==2?(t=Et,n=(a,l)=>Et(e(a),l),r=(a,l)=>e(a)-l):(t=e===Et||e===ns?e:rs,n=e,r=e);function i(a,l,u=0,c=a.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;n(a[f],l)<0?u=f+1:c=f}while(u<c)}return u}function o(a,l,u=0,c=a.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;n(a[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function s(a,l,u=0,c=a.length){const f=i(a,l,u,c-1);return f>u&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:i,center:s,right:o}}function rs(){return 0}function is(e){return e===null?NaN:+e}const os=pi(Et),ss=os.right;pi(is).center;const as=Math.sqrt(50),ls=Math.sqrt(10),us=Math.sqrt(2);function It(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=as?10:o>=ls?5:o>=us?2:1;let a,l,u;return i<0?(u=Math.pow(10,-i)/s,a=Math.round(e*u),l=Math.round(t*u),a/u<e&&++a,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*s,a=Math.round(e/u),l=Math.round(t/u),a*u<e&&++a,l*u>t&&--l),l<a&&.5<=n&&n<2?It(e,t,n*2):[a,l,u]}function cs(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?It(t,e,n):It(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let u=0;u<a;++u)l[u]=(o-u)/-s;else for(let u=0;u<a;++u)l[u]=(o-u)*s;else if(s<0)for(let u=0;u<a;++u)l[u]=(i+u)/-s;else for(let u=0;u<a;++u)l[u]=(i+u)*s;return l}function xn(e,t,n){return t=+t,e=+e,n=+n,It(e,t,n)[2]}function fs(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?xn(t,e,n):xn(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var hs={value:()=>{}};function mi(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new bt(n)}function bt(e){this._=e}function ds(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}bt.prototype=mi.prototype={constructor:bt,on:function(e,t){var n=this._,r=ds(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=ps(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=gr(n[i],e.name,t);else if(t==null)for(i in n)n[i]=gr(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new bt(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function ps(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function gr(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=hs,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var An="http://www.w3.org/1999/xhtml";const _r={svg:"http://www.w3.org/2000/svg",xhtml:An,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),_r.hasOwnProperty(t)?{space:_r[t],local:e}:e}function ms(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===An&&t.documentElement.namespaceURI===An?t.createElement(e):t.createElementNS(n,e)}}function gs(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function gi(e){var t=rn(e);return(t.local?gs:ms)(t)}function _s(){}function qn(e){return e==null?_s:function(){return this.querySelector(e)}}function ys(e){typeof e!="function"&&(e=qn(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Z(r,this._parents)}function vs(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ws(){return[]}function _i(e){return e==null?ws:function(){return this.querySelectorAll(e)}}function Es(e){return function(){return vs(e.apply(this,arguments))}}function bs(e){typeof e=="function"?e=Es(e):e=_i(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),i.push(l));return new Z(r,i)}function yi(e){return function(){return this.matches(e)}}function vi(e){return function(t){return t.matches(e)}}var xs=Array.prototype.find;function As(e){return function(){return xs.call(this.children,e)}}function Ss(){return this.firstElementChild}function Ts(e){return this.select(e==null?Ss:As(typeof e=="function"?e:vi(e)))}var Rs=Array.prototype.filter;function Ls(){return Array.from(this.children)}function Ps(e){return function(){return Rs.call(this.children,e)}}function ks(e){return this.selectAll(e==null?Ls:Ps(typeof e=="function"?e:vi(e)))}function Cs(e){typeof e!="function"&&(e=yi(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new Z(r,this._parents)}function wi(e){return new Array(e.length)}function Is(){return new Z(this._enter||this._groups.map(wi),this._parents)}function Ot(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ot.prototype={constructor:Ot,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Os(e){return function(){return e}}function Ds(e,t,n,r,i,o){for(var s=0,a,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ot(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Ns(e,t,n,r,i,o,s){var a,l,u=new Map,c=t.length,f=o.length,h=new Array(c),p;for(a=0;a<c;++a)(l=t[a])&&(h[a]=p=s.call(l,l.__data__,a,t)+"",u.has(p)?i[a]=l:u.set(p,l));for(a=0;a<f;++a)p=s.call(e,o[a],a,o)+"",(l=u.get(p))?(r[a]=l,l.__data__=o[a],u.delete(p)):n[a]=new Ot(e,o[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(h[a])===l&&(i[a]=l)}function Vs(e){return e.__data__}function Ms(e,t){if(!arguments.length)return Array.from(this,Vs);var n=t?Ns:Ds,r=this._parents,i=this._groups;typeof e!="function"&&(e=Os(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],f=i[u],h=f.length,p=$s(e.call(c,c&&c.__data__,u,r)),m=p.length,y=a[u]=new Array(m),g=s[u]=new Array(m),v=l[u]=new Array(h);n(c,f,y,g,v,p,t);for(var _=0,w=0,T,x;_<m;++_)if(T=y[_]){for(_>=w&&(w=_+1);!(x=g[w])&&++w<m;);T._next=x||null}}return s=new Z(s,r),s._enter=a,s._exit=l,s}function $s(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Bs(){return new Z(this._exit||this._groups.map(wi),this._parents)}function Gs(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Fs(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],f=u.length,h=a[l]=new Array(f),p,m=0;m<f;++m)(p=u[m]||c[m])&&(h[m]=p);for(;l<i;++l)a[l]=n[l];return new Z(a,this._parents)}function Us(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function js(e){e||(e=Hs);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Z(i,this._parents).order()}function Hs(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zs(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ws(){return Array.from(this)}function qs(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function Xs(){let e=0;for(const t of this)++e;return e}function Ks(){return!this.node()}function Ys(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function Js(e){return function(){this.removeAttribute(e)}}function Qs(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Zs(e,t){return function(){this.setAttribute(e,t)}}function ea(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ta(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function na(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ra(e,t){var n=rn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Qs:Js:typeof t=="function"?n.local?na:ta:n.local?ea:Zs)(n,t))}function Ei(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ia(e){return function(){this.style.removeProperty(e)}}function oa(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sa(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function aa(e,t,n){return arguments.length>1?this.each((t==null?ia:typeof t=="function"?sa:oa)(e,t,n??"")):Oe(this.node(),e)}function Oe(e,t){return e.style.getPropertyValue(t)||Ei(e).getComputedStyle(e,null).getPropertyValue(t)}function la(e){return function(){delete this[e]}}function ua(e,t){return function(){this[e]=t}}function ca(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function fa(e,t){return arguments.length>1?this.each((t==null?la:typeof t=="function"?ca:ua)(e,t)):this.node()[e]}function bi(e){return e.trim().split(/^|\s+/)}function Xn(e){return e.classList||new xi(e)}function xi(e){this._node=e,this._names=bi(e.getAttribute("class")||"")}xi.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ai(e,t){for(var n=Xn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Si(e,t){for(var n=Xn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ha(e){return function(){Ai(this,e)}}function da(e){return function(){Si(this,e)}}function pa(e,t){return function(){(t.apply(this,arguments)?Ai:Si)(this,e)}}function ma(e,t){var n=bi(e+"");if(arguments.length<2){for(var r=Xn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?pa:t?ha:da)(n,t))}function ga(){this.textContent=""}function _a(e){return function(){this.textContent=e}}function ya(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function va(e){return arguments.length?this.each(e==null?ga:(typeof e=="function"?ya:_a)(e)):this.node().textContent}function wa(){this.innerHTML=""}function Ea(e){return function(){this.innerHTML=e}}function ba(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function xa(e){return arguments.length?this.each(e==null?wa:(typeof e=="function"?ba:Ea)(e)):this.node().innerHTML}function Aa(){this.nextSibling&&this.parentNode.appendChild(this)}function Sa(){return this.each(Aa)}function Ta(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ra(){return this.each(Ta)}function La(e){var t=typeof e=="function"?e:gi(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Pa(){return null}function ka(e,t){var n=typeof e=="function"?e:gi(e),r=t==null?Pa:typeof t=="function"?t:qn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Ca(){var e=this.parentNode;e&&e.removeChild(this)}function Ia(){return this.each(Ca)}function Oa(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Da(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Na(e){return this.select(e?Da:Oa)}function Va(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ma(e){return function(t){e.call(this,t,this.__data__)}}function $a(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Ba(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function Ga(e,t,n){return function(){var r=this.__on,i,o=Ma(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function Fa(e,t,n){var r=$a(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Ga:Ba,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function Ti(e,t,n){var r=Ei(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Ua(e,t){return function(){return Ti(this,e,t)}}function ja(e,t){return function(){return Ti(this,e,t.apply(this,arguments))}}function Ha(e,t){return this.each((typeof t=="function"?ja:Ua)(e,t))}function*za(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var Ri=[null];function Z(e,t){this._groups=e,this._parents=t}function ot(){return new Z([[document.documentElement]],Ri)}function Wa(){return this}Z.prototype=ot.prototype={constructor:Z,select:ys,selectAll:bs,selectChild:Ts,selectChildren:ks,filter:Cs,data:Ms,enter:Is,exit:Bs,join:Gs,merge:Fs,selection:Wa,order:Us,sort:js,call:zs,nodes:Ws,node:qs,size:Xs,empty:Ks,each:Ys,attr:ra,style:aa,property:fa,classed:ma,text:va,html:xa,raise:Sa,lower:Ra,append:La,insert:ka,remove:Ia,clone:Na,datum:Va,on:Fa,dispatch:Ha,[Symbol.iterator]:za};function yr(e){return typeof e=="string"?new Z([[document.querySelector(e)]],[document.documentElement]):new Z([[e]],Ri)}function Kn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Li(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function st(){}var Ye=.7,Dt=1/Ye,Le="\\s*([+-]?\\d+)\\s*",Je="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qa=/^#([0-9a-f]{3,8})$/,Xa=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Ka=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),Ya=new RegExp(`^rgba\\(${Le},${Le},${Le},${Je}\\)$`),Ja=new RegExp(`^rgba\\(${ae},${ae},${ae},${Je}\\)$`),Qa=new RegExp(`^hsl\\(${Je},${ae},${ae}\\)$`),Za=new RegExp(`^hsla\\(${Je},${ae},${ae},${Je}\\)$`),vr={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};Kn(st,Ee,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wr,formatHex:wr,formatHex8:el,formatHsl:tl,formatRgb:Er,toString:Er});function wr(){return this.rgb().formatHex()}function el(){return this.rgb().formatHex8()}function tl(){return Pi(this).formatHsl()}function Er(){return this.rgb().formatRgb()}function Ee(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qa.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?br(t):n===3?new K(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ft(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ft(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Xa.exec(e))?new K(t[1],t[2],t[3],1):(t=Ka.exec(e))?new K(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ya.exec(e))?ft(t[1],t[2],t[3],t[4]):(t=Ja.exec(e))?ft(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qa.exec(e))?Sr(t[1],t[2]/100,t[3]/100,1):(t=Za.exec(e))?Sr(t[1],t[2]/100,t[3]/100,t[4]):vr.hasOwnProperty(e)?br(vr[e]):e==="transparent"?new K(NaN,NaN,NaN,0):null}function br(e){return new K(e>>16&255,e>>8&255,e&255,1)}function ft(e,t,n,r){return r<=0&&(e=t=n=NaN),new K(e,t,n,r)}function nl(e){return e instanceof st||(e=Ee(e)),e?(e=e.rgb(),new K(e.r,e.g,e.b,e.opacity)):new K}function Sn(e,t,n,r){return arguments.length===1?nl(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Kn(K,Sn,Li(st,{brighter(e){return e=e==null?Dt:Math.pow(Dt,e),new K(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ye:Math.pow(Ye,e),new K(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new K(we(this.r),we(this.g),we(this.b),Nt(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:xr,formatHex:xr,formatHex8:rl,formatRgb:Ar,toString:Ar}));function xr(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function rl(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ar(){const e=Nt(this.opacity);return`${e===1?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${e===1?")":`, ${e})`}`}function Nt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ye(e){return e=we(e),(e<16?"0":"")+e.toString(16)}function Sr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ne(e,t,n,r)}function Pi(e){if(e instanceof ne)return new ne(e.h,e.s,e.l,e.opacity);if(e instanceof st||(e=Ee(e)),!e)return new ne;if(e instanceof ne)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new ne(s,a,l,e.opacity)}function il(e,t,n,r){return arguments.length===1?Pi(e):new ne(e,t,n,r??1)}function ne(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kn(ne,il,Li(st,{brighter(e){return e=e==null?Dt:Math.pow(Dt,e),new ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ye:Math.pow(Ye,e),new ne(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new K(hn(e>=240?e-240:e+120,i,r),hn(e,i,r),hn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ne(Tr(this.h),ht(this.s),ht(this.l),Nt(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 e=Nt(this.opacity);return`${e===1?"hsl(":"hsla("}${Tr(this.h)}, ${ht(this.s)*100}%, ${ht(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Tr(e){return e=(e||0)%360,e<0?e+360:e}function ht(e){return Math.max(0,Math.min(1,e||0))}function hn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Yn=e=>()=>e;function ol(e,t){return function(n){return e+n*t}}function sl(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function al(e){return(e=+e)==1?ki:function(t,n){return n-t?sl(t,n,e):Yn(isNaN(t)?n:t)}}function ki(e,t){var n=t-e;return n?ol(e,n):Yn(isNaN(e)?t:e)}const Vt=(function e(t){var n=al(t);function r(i,o){var s=n((i=Sn(i)).r,(o=Sn(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=ki(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r})(1);function ll(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function ul(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cl(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Jn(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function fl(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function te(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hl(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Jn(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Tn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dn=new RegExp(Tn.source,"g");function dl(e){return function(){return e}}function pl(e){return function(t){return e(t)+""}}function Ci(e,t){var n=Tn.lastIndex=dn.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Tn.exec(e))&&(i=dn.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:te(r,i)})),n=dn.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?pl(l[0].x):dl(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)a[(f=l[c]).i]=f.x(u);return a.join("")})}function Jn(e,t){var n=typeof t,r;return t==null||n==="boolean"?Yn(t):(n==="number"?te:n==="string"?(r=Ee(t))?(t=r,Vt):Ci:t instanceof Ee?Vt:t instanceof Date?fl:ul(t)?ll:Array.isArray(t)?cl:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hl:te)(e,t)}function ml(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Rr=180/Math.PI,Rn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ii(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Rr,skewX:Math.atan(l)*Rr,scaleX:s,scaleY:a}}var dt;function gl(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Rn:Ii(t.a,t.b,t.c,t.d,t.e,t.f)}function _l(e){return e==null||(dt||(dt=document.createElementNS("http://www.w3.org/2000/svg","g")),dt.setAttribute("transform",e),!(e=dt.transform.baseVal.consolidate()))?Rn:(e=e.matrix,Ii(e.a,e.b,e.c,e.d,e.e,e.f))}function Oi(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,f,h,p,m){if(u!==f||c!==h){var y=p.push("translate(",null,t,null,n);m.push({i:y-4,x:te(u,f)},{i:y-2,x:te(c,h)})}else(f||h)&&p.push("translate("+f+t+h+n)}function s(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:te(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function a(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:te(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function l(u,c,f,h,p,m){if(u!==f||c!==h){var y=p.push(i(p)+"scale(",null,",",null,")");m.push({i:y-4,x:te(u,f)},{i:y-2,x:te(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,h),s(u.rotate,c.rotate,f,h),a(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var m=-1,y=h.length,g;++m<y;)f[(g=h[m]).i]=g.x(p);return f.join("")}}}var yl=Oi(gl,"px, ","px)","deg)"),vl=Oi(_l,", ",")",")"),De=0,je=0,Be=0,Di=1e3,Mt,He,$t=0,be=0,on=0,Qe=typeof performance=="object"&&performance.now?performance:Date,Ni=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Qn(){return be||(Ni(wl),be=Qe.now()+on)}function wl(){be=0}function Bt(){this._call=this._time=this._next=null}Bt.prototype=Vi.prototype={constructor:Bt,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Qn():+n)+(t==null?0:+t),!this._next&&He!==this&&(He?He._next=this:Mt=this,He=this),this._call=e,this._time=n,Ln()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ln())}};function Vi(e,t,n){var r=new Bt;return r.restart(e,t,n),r}function El(){Qn(),++De;for(var e=Mt,t;e;)(t=be-e._time)>=0&&e._call.call(void 0,t),e=e._next;--De}function Lr(){be=($t=Qe.now())+on,De=je=0;try{El()}finally{De=0,xl(),be=0}}function bl(){var e=Qe.now(),t=e-$t;t>Di&&(on-=t,$t=e)}function xl(){for(var e,t=Mt,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Mt=n);He=e,Ln(r)}function Ln(e){if(!De){je&&(je=clearTimeout(je));var t=e-be;t>24?(e<1/0&&(je=setTimeout(Lr,e-Qe.now()-on)),Be&&(Be=clearInterval(Be))):(Be||($t=Qe.now(),Be=setInterval(bl,Di)),De=1,Ni(Lr))}}function Pr(e,t,n){var r=new Bt;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Al=mi("start","end","cancel","interrupt"),Sl=[],Mi=0,kr=1,Pn=2,xt=3,Cr=4,kn=5,At=6;function sn(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Tl(e,n,{name:t,index:r,group:i,on:Al,tween:Sl,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Mi})}function Zn(e,t){var n=ie(e,t);if(n.state>Mi)throw new Error("too late; already scheduled");return n}function le(e,t){var n=ie(e,t);if(n.state>xt)throw new Error("too late; already running");return n}function ie(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Tl(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vi(o,0,n.time);function o(u){n.state=kr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,f,h,p;if(n.state!==kr)return l();for(c in r)if(p=r[c],p.name===n.name){if(p.state===xt)return Pr(s);p.state===Cr?(p.state=At,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[c]):+c<t&&(p.state=At,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[c])}if(Pr(function(){n.state===xt&&(n.state=Cr,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Pn,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Pn){for(n.state=xt,i=new Array(h=n.tween.length),c=0,f=-1;c<h;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=p);i.length=f+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=kn,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);n.state===kn&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=At,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Rl(e,t){var n=e.__transition,r,i,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>Pn&&r.state<kn,r.state=At,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function Ll(e){return this.each(function(){Rl(this,e)})}function Pl(e,t){var n,r;return function(){var i=le(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function kl(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=le(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function Cl(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ie(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?Pl:kl)(n,e,t))}function er(e,t,n){var r=e._id;return e.each(function(){var i=le(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ie(i,r).value[t]}}function $i(e,t){var n;return(typeof t=="number"?te:t instanceof Ee?Vt:(n=Ee(t))?(t=n,Vt):Ci)(e,t)}function Il(e){return function(){this.removeAttribute(e)}}function Ol(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dl(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function Nl(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function Vl(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function Ml(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function $l(e,t){var n=rn(e),r=n==="transform"?vl:$i;return this.attrTween(e,typeof t=="function"?(n.local?Ml:Vl)(n,r,er(this,"attr."+e,t)):t==null?(n.local?Ol:Il)(n):(n.local?Nl:Dl)(n,r,t))}function Bl(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Gl(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fl(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Gl(e,o)),n}return i._value=t,i}function Ul(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Bl(e,o)),n}return i._value=t,i}function jl(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=rn(e);return this.tween(n,(r.local?Fl:Ul)(r,t))}function Hl(e,t){return function(){Zn(this,e).delay=+t.apply(this,arguments)}}function zl(e,t){return t=+t,function(){Zn(this,e).delay=t}}function Wl(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hl:zl)(t,e)):ie(this.node(),t).delay}function ql(e,t){return function(){le(this,e).duration=+t.apply(this,arguments)}}function Xl(e,t){return t=+t,function(){le(this,e).duration=t}}function Kl(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ql:Xl)(t,e)):ie(this.node(),t).duration}function Yl(e,t){if(typeof t!="function")throw new Error;return function(){le(this,e).ease=t}}function Jl(e){var t=this._id;return arguments.length?this.each(Yl(t,e)):ie(this.node(),t).ease}function Ql(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;le(this,e).ease=n}}function Zl(e){if(typeof e!="function")throw new Error;return this.each(Ql(this._id,e))}function eu(e){typeof e!="function"&&(e=yi(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new he(r,this._parents,this._name,this._id)}function tu(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],u=n[a],c=l.length,f=s[a]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;a<r;++a)s[a]=t[a];return new he(s,this._parents,this._name,this._id)}function nu(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ru(e,t,n){var r,i,o=nu(t)?Zn:le;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function iu(e,t){var n=this._id;return arguments.length<2?ie(this.node(),n).on.on(e):this.each(ru(n,e,t))}function ou(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function su(){return this.on("end.remove",ou(this._id))}function au(e){var t=this._name,n=this._id;typeof e!="function"&&(e=qn(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,f,h=0;h<l;++h)(c=a[h])&&(f=e.call(c,c.__data__,h,a))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,sn(u[h],t,n,h,u,ie(c,n)));return new he(o,this._parents,t,n)}function lu(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_i(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,m=ie(c,n),y=0,g=h.length;y<g;++y)(p=h[y])&&sn(p,t,n,y,h,m);o.push(h),s.push(c)}return new he(o,s,t,n)}var uu=ot.prototype.constructor;function cu(){return new uu(this._groups,this._parents)}function fu(e,t){var n,r,i;return function(){var o=Oe(this,e),s=(this.style.removeProperty(e),Oe(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function Bi(e){return function(){this.style.removeProperty(e)}}function hu(e,t,n){var r,i=n+"",o;return function(){var s=Oe(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function du(e,t,n){var r,i,o;return function(){var s=Oe(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Oe(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function pu(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=le(this,e),u=l.on,c=l.value[o]==null?a||(a=Bi(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function mu(e,t,n){var r=(e+="")=="transform"?yl:$i;return t==null?this.styleTween(e,fu(e,r)).on("end.style."+e,Bi(e)):typeof t=="function"?this.styleTween(e,du(e,r,er(this,"style."+e,t))).each(pu(this._id,e)):this.styleTween(e,hu(e,r,t),n).on("end.style."+e,null)}function gu(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function _u(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&gu(e,s,n)),r}return o._value=t,o}function yu(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,_u(e,t,n??""))}function vu(e){return function(){this.textContent=e}}function wu(e){return function(){var t=e(this);this.textContent=t??""}}function Eu(e){return this.tween("text",typeof e=="function"?wu(er(this,"text",e)):vu(e==null?"":e+""))}function bu(e){return function(t){this.textContent=e.call(this,t)}}function xu(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&bu(i)),t}return r._value=e,r}function Au(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,xu(e))}function Su(){for(var e=this._name,t=this._id,n=Gi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=ie(l,t);sn(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new he(r,this._parents,e,n)}function Tu(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=le(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&o()})}var Ru=0;function he(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gi(){return++Ru}var ce=ot.prototype;he.prototype={constructor:he,select:au,selectAll:lu,selectChild:ce.selectChild,selectChildren:ce.selectChildren,filter:eu,merge:tu,selection:cu,transition:Su,call:ce.call,nodes:ce.nodes,node:ce.node,size:ce.size,empty:ce.empty,each:ce.each,on:iu,attr:$l,attrTween:jl,style:mu,styleTween:yu,text:Eu,textTween:Au,remove:su,tween:Cl,delay:Wl,duration:Kl,ease:Jl,easeVarying:Zl,end:Tu,[Symbol.iterator]:ce[Symbol.iterator]};function Lu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Pu={time:null,delay:0,duration:250,ease:Lu};function ku(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Cu(e){var t,n;e instanceof he?(t=e._id,e=e._name):(t=Gi(),(n=Pu).time=Qn(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&sn(l,e,t,u,s,n||ku(l,t));return new he(r,this._parents,e,t)}ot.prototype.interrupt=Ll;ot.prototype.transition=Cu;function Iu(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gt(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ne(e){return e=Gt(Math.abs(e)),e?e[1]:NaN}function Ou(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function Du(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Nu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ft(e){if(!(t=Nu.exec(e)))throw new Error("invalid format: "+e);var t;return new tr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ft.prototype=tr.prototype;function tr(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}tr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Vu(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Fi;function Mu(e,t){var n=Gt(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Fi=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Gt(e,Math.max(0,t+o-1))[0]}function Ir(e,t){var n=Gt(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Or={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Iu,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ir(e*100,t),r:Ir,s:Mu,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Dr(e){return e}var Nr=Array.prototype.map,Vr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $u(e){var t=e.grouping===void 0||e.thousands===void 0?Dr:Ou(Nr.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Dr:Du(Nr.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ft(f);var h=f.fill,p=f.align,m=f.sign,y=f.symbol,g=f.zero,v=f.width,_=f.comma,w=f.precision,T=f.trim,x=f.type;x==="n"?(_=!0,x="g"):Or[x]||(w===void 0&&(w=12),T=!0,x="g"),(g||h==="0"&&p==="=")&&(g=!0,h="0",p="=");var A=y==="$"?n:y==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",R=y==="$"?r:/[%p]/.test(x)?s:"",E=Or[x],P=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function H(S){var k=A,C=R,O,J,de;if(x==="c")C=E(S)+C,S="";else{S=+S;var ut=S<0||1/S<0;if(S=isNaN(S)?l:E(Math.abs(S),w),T&&(S=Vu(S)),ut&&+S==0&&m!=="+"&&(ut=!1),k=(ut?m==="("?m:a:m==="-"||m==="("?"":m)+k,C=(x==="s"?Vr[8+Fi/3]:"")+C+(ut&&m==="("?")":""),P){for(O=-1,J=S.length;++O<J;)if(de=S.charCodeAt(O),48>de||de>57){C=(de===46?i+S.slice(O+1):S.slice(O))+C,S=S.slice(0,O);break}}}_&&!g&&(S=t(S,1/0));var ct=k.length+S.length+C.length,ue=ct<v?new Array(v-ct+1).join(h):"";switch(_&&g&&(S=t(ue+S,ue.length?v-C.length:1/0),ue=""),p){case"<":S=k+S+C+ue;break;case"=":S=k+ue+S+C;break;case"^":S=ue.slice(0,ct=ue.length>>1)+k+S+C+ue.slice(ct);break;default:S=ue+k+S+C;break}return o(S)}return H.toString=function(){return f+""},H}function c(f,h){var p=u((f=Ft(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Ne(h)/3)))*3,y=Math.pow(10,-m),g=Vr[8+m/3];return function(v){return p(y*v)+g}}return{format:u,formatPrefix:c}}var pt,Ui,ji;Bu({thousands:",",grouping:[3],currency:["$",""]});function Bu(e){return pt=$u(e),Ui=pt.format,ji=pt.formatPrefix,pt}function Gu(e){return Math.max(0,-Ne(Math.abs(e)))}function Fu(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ne(t)/3)))*3-Ne(Math.abs(e)))}function Uu(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ne(t)-Ne(e))+1}function ju(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Hu(){return this.eachAfter(ju)}function zu(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function Wu(e,t){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(e.call(t,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function qu(e,t){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function Xu(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Ku(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Yu(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ju(e){for(var t=this,n=Qu(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Qu(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Zu(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function ec(){return Array.from(this)}function tc(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function nc(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*rc(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Ut(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=sc)):t===void 0&&(t=oc);for(var n=new jt(e),r,i=[n],o,s,a,l;r=i.pop();)if((s=t(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new jt(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(lc)}function ic(){return Ut(this).eachBefore(ac)}function oc(e){return e.children}function sc(e){return Array.isArray(e)?e[1]:null}function ac(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function lc(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function jt(e){this.data=e,this.depth=this.height=0,this.parent=null}jt.prototype=Ut.prototype={constructor:jt,count:Hu,each:zu,eachAfter:qu,eachBefore:Wu,find:Xu,sum:Ku,sort:Yu,path:Ju,ancestors:Zu,descendants:ec,leaves:tc,links:nc,copy:ic,[Symbol.iterator]:rc};function uc(e){if(typeof e!="function")throw new Error;return e}function Ge(){return 0}function Fe(e){return function(){return e}}function cc(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function fc(e,t,n,r,i){for(var o=e.children,s,a=-1,l=o.length,u=e.value&&(r-t)/e.value;++a<l;)s=o[a],s.y0=n,s.y1=i,s.x0=t,s.x1=t+=s.value*u}function hc(e,t,n,r,i){for(var o=e.children,s,a=-1,l=o.length,u=e.value&&(i-n)/e.value;++a<l;)s=o[a],s.x0=t,s.x1=r,s.y0=n,s.y1=n+=s.value*u}var dc=(1+Math.sqrt(5))/2;function pc(e,t,n,r,i,o){for(var s=[],a=t.children,l,u,c=0,f=0,h=a.length,p,m,y=t.value,g,v,_,w,T,x,A;c<h;){p=i-n,m=o-r;do g=a[f++].value;while(!g&&f<h);for(v=_=g,x=Math.max(m/p,p/m)/(y*e),A=g*g*x,T=Math.max(_/A,A/v);f<h;++f){if(g+=u=a[f].value,u<v&&(v=u),u>_&&(_=u),A=g*g*x,w=Math.max(_/A,A/v),w>T){g-=u;break}T=w}s.push(l={value:g,dice:p<m,children:a.slice(c,f)}),l.dice?fc(l,n,r,i,y?r+=m*g/y:o):hc(l,n,r,y?n+=p*g/y:i,o),y-=g,c=f}return s}const mc=(function e(t){function n(r,i,o,s,a){pc(t,r,i,o,s,a)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n})(dc);function gc(){var e=mc,t=!1,n=1,r=1,i=[0],o=Ge,s=Ge,a=Ge,l=Ge,u=Ge;function c(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(f),i=[0],t&&h.eachBefore(cc),h}function f(h){var p=i[h.depth],m=h.x0+p,y=h.y0+p,g=h.x1-p,v=h.y1-p;g<m&&(m=g=(m+g)/2),v<y&&(y=v=(y+v)/2),h.x0=m,h.y0=y,h.x1=g,h.y1=v,h.children&&(p=i[h.depth+1]=o(h)/2,m+=u(h)-p,y+=s(h)-p,g-=a(h)-p,v-=l(h)-p,g<m&&(m=g=(m+g)/2),v<y&&(y=v=(y+v)/2),e(h,m,y,g,v))}return c.round=function(h){return arguments.length?(t=!!h,c):t},c.size=function(h){return arguments.length?(n=+h[0],r=+h[1],c):[n,r]},c.tile=function(h){return arguments.length?(e=uc(h),c):e},c.padding=function(h){return arguments.length?c.paddingInner(h).paddingOuter(h):c.paddingInner()},c.paddingInner=function(h){return arguments.length?(o=typeof h=="function"?h:Fe(+h),c):o},c.paddingOuter=function(h){return arguments.length?c.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):c.paddingTop()},c.paddingTop=function(h){return arguments.length?(s=typeof h=="function"?h:Fe(+h),c):s},c.paddingRight=function(h){return arguments.length?(a=typeof h=="function"?h:Fe(+h),c):a},c.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:Fe(+h),c):l},c.paddingLeft=function(h){return arguments.length?(u=typeof h=="function"?h:Fe(+h),c):u},c}function _c(e,t,n,r,i){var o=e.children,s,a=o.length,l,u=new Array(a+1);for(u[0]=l=s=0;s<a;++s)u[s+1]=l+=o[s].value;c(0,a,e.value,t,n,r,i);function c(f,h,p,m,y,g,v){if(f>=h-1){var _=o[f];_.x0=m,_.y0=y,_.x1=g,_.y1=v;return}for(var w=u[f],T=p/2+w,x=f+1,A=h-1;x<A;){var R=x+A>>>1;u[R]<T?x=R+1:A=R}T-u[x-1]<u[x]-T&&f+1<x&&--x;var E=u[x]-w,P=p-E;if(g-m>v-y){var H=p?(m*P+g*E)/p:g;c(f,x,E,m,y,H,v),c(x,h,P,H,y,g,v)}else{var S=p?(y*P+v*E)/p:v;c(f,x,E,m,y,g,S),c(x,h,P,m,S,g,v)}}}function yc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vc(e){return function(){return e}}function wc(e){return+e}var Mr=[0,1];function Se(e){return e}function Cn(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:vc(isNaN(t)?NaN:.5)}function Ec(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bc(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Cn(i,r),o=n(s,o)):(r=Cn(r,i),o=n(o,s)),function(a){return o(r(a))}}function xc(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Cn(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=ss(e,a,1,r)-1;return o[l](i[l](a))}}function Ac(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sc(){var e=Mr,t=Mr,n=Jn,r,i,o,s=Se,a,l,u;function c(){var h=Math.min(e.length,t.length);return s!==Se&&(s=Ec(e[0],e[h-1])),a=h>2?xc:bc,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?o:(l||(l=a(e.map(r),t,n)))(r(s(h)))}return f.invert=function(h){return s(i((u||(u=a(t,e.map(r),te)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,wc),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=ml,c()},f.clamp=function(h){return arguments.length?(s=h?!0:Se,c()):s!==Se},f.interpolate=function(h){return arguments.length?(n=h,c()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,p){return r=h,i=p,c()}}function Tc(){return Sc()(Se,Se)}function Rc(e,t,n,r){var i=fs(e,t,n),o;switch(r=Ft(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Fu(i,s))&&(r.precision=o),ji(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Uu(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Gu(i))&&(r.precision=o-(r.type==="%")*2);break}}return Ui(r)}function Lc(e){var t=e.domain;return e.ticks=function(n){var r=t();return cs(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Rc(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],l,u,c=10;for(a<s&&(u=s,s=a,a=u,u=i,i=o,o=u);c-- >0;){if(u=xn(s,a,n),u===l)return r[i]=s,r[o]=a,t(r);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;l=u}return e},e}function Hi(){var e=Tc();return e.copy=function(){return Ac(e,Hi())},yc.apply(e,arguments),Lc(e)}function ze(e,t,n){this.k=e,this.x=t,this.y=n}ze.prototype={constructor:ze,scale:function(e){return e===1?this:new ze(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ze(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ze.prototype;var Pc=X('<div class="flex w-full h-full overflow-hidden border border-gray-700 rounded bg-[#121212]"><div class="flex-1 relative overflow-hidden"></div><div class="w-[350px] bg-[#1e1e1e] border-l border-[#333] flex flex-col"><div class="p-2 border-b border-[#333] font-bold bg-[#252526] text-gray-300">Explorer</div><div class="flex-1 overflow-y-auto"></div></div><div class="fixed pointer-events-none opacity-0 bg-[#1e1e1e] p-2 border border-[#555] text-white z-50 shadow-lg transition-opacity duration-200">');function kc(e){let t,n,r;const i=Hi().domain([0,10,50]).range(["#569cd6","#dcdcaa","#ce9178"]).clamp(!0);function o(p){return!p.children||p.children.length===0||(p.children=p.children.filter(m=>{const y=["lock","png","svg"].some(v=>m.name.includes(v)),g=m.type!=="folder"&&(m.metrics?.loc||0)<5;return!y&&!g}),p.children.forEach(o),p.metrics&&(p.metrics.loc=p.children.reduce((m,y)=>m+(y.metrics?.loc||0),p.type==="file"&&p.children.length===0&&p.metrics.loc||0))),p}function s(p,m){if(!p||m==="folder")return null;const[y]=p.split("::");return y||null}function a(p){if(!e.onFileSelect)return;const m=p.data?.type,y=s(p.data?.path,m);y&&e.onFileSelect(y)}function l(p){if(!t)return;const m=t.clientWidth,y=t.clientHeight;if(m===0||y===0)return;yr(t).html(""),gc().size([m,y]).paddingInner(0).paddingOuter(0).round(!1).tile(_c)(p);const g=yr(t).append("svg").attr("width",m).attr("height",y).style("shape-rendering","crispEdges"),v=p,_=v.descendants(),w=_.filter(E=>E.depth>0&&E.children&&E.data.type==="folder"),T=_.filter(E=>E.depth>0&&E.data.type==="file"),x=_.filter(E=>!E.children);console.groupCollapsed("🧭 Treemap layout (client)"),console.log("Total hierarchy nodes:",_.length),console.log("Folders:",w.length,"Files:",T.length,"Leaves (functions/fragments):",x.length),console.log("Root node:",{name:v.data?.name,type:v.data?.type,loc:v.value});const A=w[0];if(A){console.log("Sample folder node",{name:A.data.name,type:A.data.type,loc:A.value,depth:A.depth,layout:{x0:A.x0,y0:A.y0,x1:A.x1,y1:A.y1}});const E=A.children?.map(P=>({name:P.data.name,type:P.data.type,loc:P.value,depth:P.depth}));console.log(" └─ children of sample folder:",E)}const R=T[0];if(R){const E=x.filter(S=>S.parent===R);console.log("Sample file node",{name:R.data.name,type:R.data.type,loc:R.value,depth:R.depth,layout:{x0:R.x0,y0:R.y0,x1:R.x1,y1:R.y1},leafCountInFile:E.length});const P=R.ancestors().find(S=>S.data.type==="folder")??void 0;if(P){const S={x0:P.x0,y0:P.y0,x1:P.x1,y1:P.y1},k={x0:R.x0,y0:R.y0,x1:R.x1,y1:R.y1},C=k.x0>=S.x0&&k.y0>=S.y0&&k.x1<=S.x1&&k.y1<=S.y1;console.log("Geometric check (file inside folder):",{folder:P.data.name,file:R.data.name,fileInsideFolder:C})}const H=E.slice(0,5);if(H.length>0){const S=H.map(k=>{const C={x0:k.x0,y0:k.y0,x1:k.x1,y1:k.y1},O={x0:R.x0,y0:R.y0,x1:R.x1,y1:R.y1},J=C.x0>=O.x0&&C.y0>=O.y0&&C.x1<=O.x1&&C.y1<=O.y1;return{name:k.data.name,type:k.data.type,loc:k.value,depth:k.depth,insideFile:J}});console.log("Sample leaves inside sample file:",S)}}console.groupEnd(),g.selectAll("rect.folder").data(w).join("rect").attr("class","folder").attr("x",E=>E.x0).attr("y",E=>E.y0).attr("width",E=>E.x1-E.x0).attr("height",E=>E.y1-E.y0).attr("fill","#1e1e1e").attr("stroke","#2d2d2d").attr("stroke-width",.5),g.selectAll("rect.file").data(T).join("rect").attr("class","file").attr("x",E=>E.x0).attr("y",E=>E.y0).attr("width",E=>E.x1-E.x0).attr("height",E=>E.y1-E.y0).attr("fill","#202020").attr("stroke","#3a3a3a").attr("stroke-width",.75).on("click",(E,P)=>a(P)),g.selectAll("rect.leaf").data(x).join("rect").attr("class","leaf").attr("x",E=>E.x0).attr("y",E=>E.y0).attr("width",E=>E.x1-E.x0).attr("height",E=>E.y1-E.y0).attr("fill",E=>E.data.name==="(misc/imports)"?"#444":i(E.data.metrics?.complexity||0)).attr("stroke",E=>E.x1-E.x0>10?"#121212":"none").attr("stroke-width",.5).on("mouseover",(E,P)=>f(E,P)).on("mouseout",h).on("click",(E,P)=>a(P)),g.selectAll("text.label").data(x.filter(E=>E.x1-E.x0>40&&E.y1-E.y0>15)).join("text").attr("class","label").attr("x",E=>E.x0+5).attr("y",E=>E.y0+15).text(E=>E.data.name).attr("font-size","10px").attr("fill","rgba(255,255,255,0.9)").style("pointer-events","none")}function u(p,m){if(!p||p.type!=="folder"&&(p.metrics?.loc||0)<10)return"";let y=p.type==="folder"?"📁":p.name==="(misc/imports)"?"⚙️":"📄",g=i(p.metrics?.complexity||0);p.name==="(misc/imports)"&&(g="#444");let v=`<div class="tree-node hover:bg-gray-700 cursor-pointer flex items-center text-gray-400 hover:text-white px-2 py-0.5 text-xs whitespace-nowrap overflow-hidden" data-path="${p.path}" data-type="${p.type}" style="padding-left:${m*12}px">
|
|
3
|
+
<span style="opacity:0.7;margin-right:5px">${y}</span>
|
|
4
|
+
<span style="flex:1">${p.name}</span>
|
|
5
|
+
<span style="font-family:monospace;font-size:10px;opacity:0.5">${p.metrics?.loc||0}</span>
|
|
6
|
+
<span class="w-2 h-2 rounded-full ml-auto" style="background:${g}"></span>
|
|
7
|
+
</div>`;return p.children&&p.children.forEach(_=>v+=u(_,m+1)),v}function c(p){if(!r)return;const m=u(p.data,0);r.innerHTML=m}function f(p,m){n&&(n.style.opacity="1",n.style.left=p.pageX+10+"px",n.style.top=p.pageY+10+"px",n.innerHTML=`<strong>${m.data.name}</strong><br>LOC: ${m.value}<br>Complexity: ${m.data.metrics?.complexity||0}`)}function h(){n&&(n.style.opacity="0")}return nn(()=>{if(e.data){const p=JSON.parse(JSON.stringify(e.data)),m=o(p),y=Ut(m).sum(g=>g.metrics?g.metrics.loc:0).sort((g,v)=>(v.value||0)-(g.value||0));l(y),c(y)}}),Hn(()=>{if(r&&e.onFileSelect){const m=y=>{const g=y.target;if(!g)return;const v=g.closest(".tree-node");if(!v)return;const _=v.dataset.type,w=v.dataset.path;if(!w)return;const T=s(w,_);T&&e.onFileSelect?.(T)};r.addEventListener("click",m),Ie(()=>{r?.removeEventListener("click",m)})}const p=new ResizeObserver(()=>{if(e.data&&t){const m=JSON.parse(JSON.stringify(e.data)),y=o(m),g=Ut(y).sum(v=>v.metrics?v.metrics.loc:0).sort((v,_)=>(_.value||0)-(v.value||0));l(g)}});t&&p.observe(t),Ie(()=>p.disconnect())}),(()=>{var p=Pc(),m=p.firstChild,y=m.nextSibling,g=y.firstChild,v=g.nextSibling,_=y.nextSibling,w=t;typeof w=="function"?wt(w,m):t=m;var T=r;typeof T=="function"?wt(T,v):r=v;var x=n;return typeof x=="function"?wt(x,_):n=_,p})()}const Cc="modulepreload",Ic=function(e){return"/"+e},$r={},d=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};var s=u;document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");i=u(n.map(c=>{if(c=Ic(c),c in $r)return;$r[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Cc,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};let M=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Oc(e){return nr(e)}function nr(e){return Array.isArray(e)?Dc(e):e instanceof RegExp?e:typeof e=="object"?Nc(e):e}function Dc(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=nr(e[n]);return t}function Nc(e){let t={};for(let n in e)t[n]=nr(e[n]);return t}function zi(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Wi(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Wi(e.substring(0,e.length-1)):e.substr(~t+1)}var pn=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,mt=class{static hasCaptures(e){return e===null?!1:(pn.lastIndex=0,pn.test(e))}static replaceCaptures(e,t,n){return e.replace(pn,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function qi(e,t){return e<t?-1:e>t?1:0}function Xi(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let o=qi(e[i],t[i]);if(o!==0)return o}return 0}return n-r}function Br(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Ki(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Yi=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ht=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme($c(e),t)}static createFromParsedTheme(e,t){return Gc(e,t)}_cachedMatchRoot=new Yi(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>Vc(e.parent,i.parentScopes));return r?new Ji(r.fontStyle,r.foreground,r.background):null}},mn=class St{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new St(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new St(n,t[r]);return n}push(t){return new St(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function Vc(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Mc(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Mc(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ji=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function $c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,o=t.length;i<o;i++){let s=t[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let f=s.settings.fontStyle.split(" ");for(let h=0,p=f.length;h<p;h++)switch(f[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&Br(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&Br(s.settings.background)&&(c=s.settings.background);for(let f=0,h=a.length;f<h;f++){let m=a[f].trim().split(" "),y=m[m.length-1],g=null;m.length>1&&(g=m.slice(0,m.length-1),g.reverse()),n[r++]=new Bc(y,g,i,l,u,c)}}return n}var Bc=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},W=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(W||{});function Gc(e,t){e.sort((l,u)=>{let c=qi(l.scope,u.scope);return c!==0||(c=Xi(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new Fc(t),s=new Ji(n,o.getId(r),o.getId(i)),a=new jc(new In(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Ht(o,s,a)}var Fc=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Uc=Object.freeze([]),In=class Qi{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,i,o){this.scopeDepth=t,this.parentScopes=n||Uc,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Qi(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},jc=class On{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-t.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,o;if(r===-1?(i=t,o=""):(i=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(On._cmpBySpecificity),n}insert(t,n,r,i,o,s){if(n===""){this._doInsertHere(t,r,i,o,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new On(this._mainRule.clone(),In.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,i,o,s)}_doInsertHere(t,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(t,r,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(Xi(l.parentScopes,n)===0){l.acceptOverwrite(t,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new In(t,n,r,i,o))}},Ve=class ee{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ee.getLanguageId(t),r=ee.getTokenType(t),i=ee.getFontStyle(t),o=ee.getForeground(t),s=ee.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,o,s,a){let l=ee.getLanguageId(t),u=ee.getTokenType(t),c=ee.containsBalancedBrackets(t)?1:0,f=ee.getFontStyle(t),h=ee.getForeground(t),p=ee.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),i!==null&&(c=i?1:0),o!==-1&&(f=o),s!==0&&(h=s),a!==0&&(p=a),(l<<0|u<<8|c<<10|f<<11|h<<15|p<<24)>>>0}};function zt(e,t){const n=[],r=Hc(e);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=s();if(n.push({matcher:u,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(Gr(i)){const l=[];do l.push(i),i=r.next();while(Gr(i));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(f=>f(c))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=s()}return c=>l.some(f=>f(c))}}function Gr(e){return!!e&&!!e.match(/[\w\.:]+/)}function Hc(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Zi(e){typeof e.dispose=="function"&&e.dispose()}var Ze=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},zc=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Wc=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},qc=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ze(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Wc;for(const n of e)Xc(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Ze){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Xc(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Ze?Tt({baseGrammar:o,selfGrammar:i},r):Dn(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new Ze(a))}function Dn(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Wt([r],t,n)}}function Tt(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Wt(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Wt(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Wt(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?zi({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Wt(r.patterns,{...t,repository:i},n);const o=r.include;if(!o)continue;const s=eo(o);switch(s.kind){case 0:Tt({...t,selfGrammar:t.baseGrammar},n);break;case 1:Tt(t,n);break;case 2:Dn(s.ruleName,{...t,repository:i},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Dn(s.ruleName,l,n):Tt(l,n)}else s.kind===4?n.add(new zc(s.scopeName,s.ruleName)):n.add(new Ze(s.scopeName));break}}}var Kc=class{kind=0},Yc=class{kind=1},Jc=class{constructor(e){this.ruleName=e}kind=2},Qc=class{constructor(e){this.scopeName=e}kind=3},Zc=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function eo(e){if(e==="$base")return new Kc;if(e==="$self")return new Yc;const t=e.indexOf("#");if(t===-1)return new Qc(e);if(t===0)return new Jc(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Zc(n,r)}}var ef=/\\(\d+)/,Fr=/\\(\d+)/g,tf=-1,to=-2;var at=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=mt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=mt.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Wi(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:mt.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:mt.replaceCaptures(this._contentName,e,t)}},nf=class extends at{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},rf=class extends at{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new et(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tt,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ur=class extends at{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tt,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Nn=class extends at{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,o,s,a,l,u){super(e,t,n,r),this._begin=new et(i,this.id),this.beginCaptures=o,this._end=new et(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tt;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},qt=class extends at{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,o,s,a,l){super(e,t,n,r),this._begin=new et(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new et(s,to),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tt;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tt,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},no=class z{static createCaptureRule(t,n,r,i,o){return t.registerRule(s=>new nf(n,s,r,i,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new rf(t.$vscodeTextmateLocation,t.id,t.name,t.match,z._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=zi({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Ur(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,z._compilePatterns(o,n,r))}return t.while?new qt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,z._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,z._compileCaptures(t.whileCaptures||t.captures,n,r),z._compilePatterns(t.patterns,n,r)):new Nn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,z._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,z._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,z._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=z.getCompiledRuleId(t[s],n,r)),i[a]=z.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=-1;if(a.include){const u=eo(a.include);switch(u.kind){case 0:case 1:l=z.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=z.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,h=u.kind===4?u.ruleName:null,p=n.getExternalGrammar(f,r);if(p)if(h){let m=p.repository[h];m&&(l=z.getCompiledRuleId(m,n,p.repository))}else l=z.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=z.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Ur||u instanceof Nn||u instanceof qt)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},et=class ro{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let i=0,o=[],s=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=t:(o.push(t.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=ef.test(this.source):this.hasBackReferences=!1}clone(){return new ro(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return Fr.lastIndex=0,this.source.replace(Fr,(i,o)=>Ki(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",i[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},tt=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new jr(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new jr(e,r,this._items.map(i=>i.ruleId))}},jr=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
8
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},gn=class{constructor(e,t){this.languageId=e,this.tokenType=t}},of=class Vn{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new gn(t,8),this._embeddedLanguagesMatcher=new sf(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Vn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new gn(0,0);_getBasicScopeAttributes=new Yi(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new gn(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Vn.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},sf=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Ki(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Hr=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function io(e,t,n,r,i,o,s,a){const l=t.content.length;let u=!1,c=-1;if(s){const p=af(e,t,n,r,i,o);i=p.stack,r=p.linePos,n=p.isFirstLine,c=p.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new Hr(i,!0);h()}return new Hr(i,!1);function h(){const p=lf(e,t,n,r,i,c);if(!p){o.produce(i,l),u=!0;return}const m=p.captureIndices,y=p.matchedRuleId,g=m&&m.length>0?m[0].end>r:!1;if(y===tf){const v=i.getRule(e);o.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),We(e,t,n,i,o,v.endCaptures,m),o.produce(i,m[0].end);const _=i;if(i=i.parent,c=_.getAnchorPos(),!g&&_.getEnterPos()===r){i=_,o.produce(i,l),u=!0;return}}else{const v=e.getRule(y);o.produce(i,m[0].start);const _=i,w=v.getName(t.content,m),T=i.contentNameScopesList.pushAttributed(w,e);if(i=i.push(y,r,c,m[0].end===l,null,T,T),v instanceof Nn){const x=v;We(e,t,n,i,o,x.beginCaptures,m),o.produce(i,m[0].end),c=m[0].end;const A=x.getContentName(t.content,m),R=T.pushAttributed(A,e);if(i=i.withContentNameScopesList(R),x.endHasBackReferences&&(i=i.withEndRule(x.getEndWithResolvedBackReferences(t.content,m))),!g&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(v instanceof qt){const x=v;We(e,t,n,i,o,x.beginCaptures,m),o.produce(i,m[0].end),c=m[0].end;const A=x.getContentName(t.content,m),R=T.pushAttributed(A,e);if(i=i.withContentNameScopesList(R),x.whileHasBackReferences&&(i=i.withEndRule(x.getWhileWithResolvedBackReferences(t.content,m))),!g&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(We(e,t,n,i,o,v.captures,m),o.produce(i,m[0].end),i=i.pop(),!g){i=i.safePop(),o.produce(i,l),u=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function af(e,t,n,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof qt&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=ff(l.rule,e,l.stack.endRule,n,r===s),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==to){i=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),We(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}function lf(e,t,n,r,i,o){const s=uf(e,t,n,r,i,o),a=e.getInjections();if(a.length===0)return s;const l=cf(a,e,t,n,r,i,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}function uf(e,t,n,r,i,o){const s=i.getRule(e),{ruleScanner:a,findOptions:l}=oo(s,e,i.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function cf(e,t,n,r,i,o,s){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let h=0,p=e.length;h<p;h++){const m=e[h];if(!m.matcher(f))continue;const y=t.getRule(m.ruleId),{ruleScanner:g,findOptions:v}=oo(y,t,null,r,i===s),_=g.findNextMatchSync(n,i,v);if(!_)continue;const w=_.captureIndices[0].start;if(!(w>=a)&&(a=w,l=_.captureIndices,u=_.ruleId,c=m.priority,a===i))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function oo(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ff(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function We(e,t,n,r,i,o,s){if(o.length===0)return;const a=t.content,l=Math.min(o.length,s.length),u=[],c=s[0].end;for(let f=0;f<l;f++){const h=o[f];if(h===null)continue;const p=s[f];if(p.length===0)continue;if(p.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,p.start):i.produce(r,p.start),h.retokenizeCapturedWithRuleId){const y=h.getName(a,s),g=r.contentNameScopesList.pushAttributed(y,e),v=h.getContentName(a,s),_=g.pushAttributed(v,e),w=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,g,_),T=e.createOnigString(a.substring(0,p.end));io(e,T,n&&p.start===0,p.start,w,i,!1,0),Zi(T);continue}const m=h.getName(a,s);if(m!==null){const g=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);u.push(new hf(g,p.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var hf=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function df(e,t,n,r,i,o,s,a){return new mf(e,t,n,r,i,o,s,a)}function zr(e,t,n,r,i){const o=zt(t,Xt),s=no.getCompiledRuleId(n,r,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function Xt(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(pf(t[i],r))return n=i+1,!0;return!1})}function pf(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var mf=class{constructor(e,t,n,r,i,o,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new of(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Wr(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=zt(l,Xt);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let s in i)zr(t,s,i[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&zr(t,l,a,this,a)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Wr(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=no.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Mn.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=Ve.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),h=this.getRule(this._rootId).getName(null,null);let p;h?p=Xe.createRootAndLookUpScopeName(h,f,this):p=Xe.createRoot("unknown",f),t=new Mn(null,this._rootId,-1,-1,!1,null,p,p)}else i=!1,t.reset();e=e+`
|
|
9
|
+
`;const o=this.createOnigString(e),s=o.content.length,a=new _f(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=io(this,o,i,0,t,a,!0,r);return Zi(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Wr(e,t){return e=Oc(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Xe=class oe{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const o of n)i=mn.push(i,o.scopeNames),r=new oe(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new oe(null,new mn(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new mn(null,t),s=r.themeProvider.themeMatch(o),a=oe.mergeAttributes(n,i,s);return new oe(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return oe.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),Ve.set(t,n.languageId,n.tokenType,null,i,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return oe._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=oe._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=oe.mergeAttributes(t.tokenAttributes,i,s);return new oe(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Mn=class _e{constructor(t,n,r,i,o,s,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new _e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:_e._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Xe.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){_e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,s,a){return new _e(this,t,n,r,i,o,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new _e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Xe.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new _e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Xe.fromExtension(r,n.contentNameScopesList))}},gf=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):zt(n,Xt).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>zt(n,Xt).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},_f=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(r=Ve.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=Ve.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},yf=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,df(e,o,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},vf=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new yf(Ht.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Ht.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new gf(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,o){const s=new qc(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,o)}},$n=Mn.NULL;const wf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class lt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}lt.prototype.normal={};lt.prototype.property={};lt.prototype.space=void 0;function so(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new lt(n,r,t)}function Bn(e){return e.toLowerCase()}class Y{constructor(t,n){this.attribute=n,this.property=t}}Y.prototype.attribute="";Y.prototype.booleanish=!1;Y.prototype.boolean=!1;Y.prototype.commaOrSpaceSeparated=!1;Y.prototype.commaSeparated=!1;Y.prototype.defined=!1;Y.prototype.mustUseProperty=!1;Y.prototype.number=!1;Y.prototype.overloadedBoolean=!1;Y.prototype.property="";Y.prototype.spaceSeparated=!1;Y.prototype.space=void 0;let Ef=0;const L=xe(),N=xe(),Gn=xe(),b=xe(),I=xe(),Pe=xe(),Q=xe();function xe(){return 2**++Ef}const Fn=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:N,commaOrSpaceSeparated:Q,commaSeparated:Pe,number:b,overloadedBoolean:Gn,spaceSeparated:I},Symbol.toStringTag,{value:"Module"})),_n=Object.keys(Fn);class rr extends Y{constructor(t,n,r,i){let o=-1;if(super(t,n),qr(this,"space",i),typeof r=="number")for(;++o<_n.length;){const s=_n[o];qr(this,_n[o],(r&Fn[s])===Fn[s])}}}rr.prototype.defined=!0;function qr(e,t,n){n&&(e[t]=n)}function Me(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new rr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Bn(r)]=r,n[Bn(o.attribute)]=r}return new lt(t,n,e.space)}const ao=Me({properties:{ariaActiveDescendant:null,ariaAtomic:N,ariaAutoComplete:null,ariaBusy:N,ariaChecked:N,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:N,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:N,ariaFlowTo:I,ariaGrabbed:N,ariaHasPopup:null,ariaHidden:N,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:b,ariaLive:null,ariaModal:N,ariaMultiLine:N,ariaMultiSelectable:N,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:N,ariaReadOnly:N,ariaRelevant:null,ariaRequired:N,ariaRoleDescription:I,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:N,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function lo(e,t){return t in e?e[t]:t}function uo(e,t){return lo(e,t.toLowerCase())}const bf=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pe,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:I,autoFocus:L,autoPlay:L,blocking:I,capture:null,charSet:null,checked:L,cite:null,className:I,cols:b,colSpan:null,content:null,contentEditable:N,controls:L,controlsList:I,coords:b|Pe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:Gn,draggable:N,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:I,height:b,hidden:Gn,high:b,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:I,itemRef:I,itemScope:L,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,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:L,optimum:b,pattern:null,ping:I,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:I,required:L,reversed:L,rows:b,rowSpan:b,sandbox:I,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:N,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:N,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:N,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:L,disableRemotePlayback:L,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:uo}),xf=Me({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:Q,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:I,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:Pe,g2:Pe,glyphName:Pe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:Q,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Q,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Q,rev:Q,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Q,requiredFeatures:Q,requiredFonts:Q,requiredFormats:Q,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:Q,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Q,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Q,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lo}),co=Me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),fo=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:uo}),ho=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Af=/[A-Z]/g,Xr=/-[a-z]/g,Sf=/^data[-\w.:]+$/i;function Tf(e,t){const n=Bn(t);let r=t,i=Y;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Sf.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Xr,Lf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Xr.test(o)){let s=o.replace(Af,Rf);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=rr}return new i(r,t)}function Rf(e){return"-"+e.toLowerCase()}function Lf(e){return e.charAt(1).toUpperCase()}const Pf=so([ao,bf,co,fo,ho],"html"),po=so([ao,xf,co,fo,ho],"svg"),Kr={}.hasOwnProperty;function kf(e,t){const n=t||{};function r(i,...o){let s=r.invalid;const a=r.handlers;if(i&&Kr.call(i,e)){const l=String(i[e]);s=Kr.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Cf=/["&'<>`]/g,If=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Of=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Df=/[|\\{}()[\]^$+*?.]/g,Yr=new WeakMap;function Nf(e,t){if(e=e.replace(t.subset?Vf(t.subset):Cf,r),t.subset||t.escapeOnly)return e;return e.replace(If,n).replace(Of,r);function n(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function Vf(e){let t=Yr.get(e);return t||(t=Mf(e),Yr.set(e,t)),t}function Mf(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Df,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const $f=/[\dA-Fa-f]/;function Bf(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!$f.test(String.fromCharCode(t))?r:r+";"}const Gf=/\d/;function Ff(e,t,n){const r="&#"+String(e);return n&&t&&!Gf.test(String.fromCharCode(t))?r:r+";"}const Uf=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],yn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},jf=["cent","copy","divide","gt","lt","not","para","times"],mo={}.hasOwnProperty,Un={};let gt;for(gt in yn)mo.call(yn,gt)&&(Un[yn[gt]]=gt);const Hf=/[^\dA-Za-z]/;function zf(e,t,n,r){const i=String.fromCharCode(e);if(mo.call(Un,i)){const o=Un[i],s="&"+o;return n&&Uf.includes(o)&&!jf.includes(o)&&(!r||t&&t!==61&&Hf.test(String.fromCharCode(t)))?s:s+";"}return""}function Wf(e,t,n){let r=Bf(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=zf(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=Ff(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function ke(e,t){return Nf(e,Object.assign({format:Wf},t))}const qf=/^>|^->|<!--|-->|--!>|<!-$/g,Xf=[">"],Kf=["<",">"];function Yf(e,t,n,r){return r.settings.bogusComments?"<?"+ke(e.value,Object.assign({},r.settings.characterReferences,{subset:Xf}))+">":"<!--"+e.value.replace(qf,i)+"-->";function i(o){return ke(o,Object.assign({},r.settings.characterReferences,{subset:Kf}))}}function Jf(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Jr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Qf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Zf(e){return e.join(" ").trim()}const eh=/[ \t\n\f\r]/g;function ir(e){return typeof e=="object"?e.type==="text"?Qr(e.value):!1:Qr(e)}function Qr(e){return e.replace(eh,"")===""}const F=_o(1),go=_o(-1),th=[];function _o(e){return t;function t(n,r,i){const o=n?n.children:th;let s=(r||0)+e,a=o[s];if(!i)for(;a&&ir(a);)s+=e,a=o[s];return a}}const nh={}.hasOwnProperty;function yo(e){return t;function t(n,r,i){return nh.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const or=yo({body:ih,caption:vn,colgroup:vn,dd:lh,dt:ah,head:vn,html:rh,li:sh,optgroup:uh,option:ch,p:oh,rp:Zr,rt:Zr,tbody:hh,td:ei,tfoot:dh,th:ei,thead:fh,tr:ph});function vn(e,t,n){const r=F(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ir(r.value.charAt(0)))}function rh(e,t,n){const r=F(n,t);return!r||r.type!=="comment"}function ih(e,t,n){const r=F(n,t);return!r||r.type!=="comment"}function oh(e,t,n){const r=F(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function sh(e,t,n){const r=F(n,t);return!r||r.type==="element"&&r.tagName==="li"}function ah(e,t,n){const r=F(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function lh(e,t,n){const r=F(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Zr(e,t,n){const r=F(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function uh(e,t,n){const r=F(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function ch(e,t,n){const r=F(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function fh(e,t,n){const r=F(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function hh(e,t,n){const r=F(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function dh(e,t,n){return!F(n,t)}function ph(e,t,n){const r=F(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function ei(e,t,n){const r=F(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const mh=yo({body:yh,colgroup:vh,head:_h,html:gh,tbody:wh});function gh(e){const t=F(e,-1);return!t||t.type!=="comment"}function _h(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function yh(e){const t=F(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ir(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function vh(e,t,n){const r=go(n,t),i=F(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&or(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function wh(e,t,n){const r=go(n,t),i=F(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&or(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const _t={name:[[`
|
|
10
|
+
\f\r &/=>`.split(""),`
|
|
11
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
12
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
13
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
14
|
+
\f\r &>`.split(""),`\0
|
|
15
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
16
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
17
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Eh(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=po);const u=bh(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(s=!1),(u||!o||!mh(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!or(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function bh(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=xh(e,i,t[i]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function xh(e,t,n){const r=Tf(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ke(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_t.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Qf:Zf)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=ke(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_t.unquoted[i][o]}))),a!==n&&(e.settings.quoteSmart&&Jr(n,s)>Jr(n,e.alternative)&&(s=e.alternative),a=s+ke(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?_t.single:_t.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}const Ah=["<","&"];function vo(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ke(e.value,Object.assign({},r.settings.characterReferences,{subset:Ah}))}function Sh(e,t,n,r){return r.settings.allowDangerousHtml?e.value:vo(e,t,n,r)}function Th(e,t,n,r){return r.all(e)}const Rh=kf("type",{invalid:Lh,unknown:Ph,handlers:{comment:Yf,doctype:Jf,element:Eh,raw:Sh,root:Th,text:vo}});function Lh(e){throw new Error("Expected node, not `"+e+"`")}function Ph(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kh={},Ch={},Ih=[];function Oh(e,t){const n=t||kh,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Dh,all:Nh,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||wf,characterReferences:n.characterReferences||Ch,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?po:Pf,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Dh(e,t,n){return Rh(e,t,n,this)}function Nh(e){const t=[],n=e&&e.children||Ih;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Kt(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function pe(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Vh(e){return Array.isArray(e)?e:[e]}async function wo(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function sr(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Eo(e){return e==="ansi"||sr(e)}function ar(e){return e==="none"}function bo(e){return ar(e)}function xo(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function an(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];i.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function Mh(e){const t=an(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=i,s=0;for(const a of t){if(o<a.length)break;o-=a.length,s++}return{line:s,character:o}}function r(i,o){let s=0;for(let a=0;a<i;a++)s+=t[a].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}function $h(e,t,n){const r=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(o[1]);if(!n)return Array.from(r);const i=n.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const lr="light-dark()",Bh=["color","background-color"];function Gh(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Fh(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const o=n.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,a)=>s-a);return o.length?Gh(i,o):i})):e}function Uh(e,t,n,r,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>Yt(e.variants[c])),a=new Set(s.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const h=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":h)};return s.forEach((c,f)=>{for(const h of a){const p=c[h]||"inherit";if(f===0&&r&&Bh.includes(h))if(r===lr&&s.length>1){const m=t.findIndex(_=>_==="light"),y=t.findIndex(_=>_==="dark");if(m===-1||y===-1)throw new M('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const g=s[m][h]||"inherit",v=s[y][h]||"inherit";l[h]=`light-dark(${g}, ${v})`,i==="css-vars"&&(l[u(f,h)]=p)}else l[h]=p;else i==="css-vars"&&(l[u(f,h)]=p)}}),o.htmlStyle=l,o}function Yt(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&W.Italic&&(t["font-style"]="italic"),e.fontStyle&W.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&W.Underline&&n.push("underline"),e.fontStyle&W.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function jn(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Ao=new WeakMap;function ln(e,t){Ao.set(e,t)}function nt(e){return Ao.get(e)}class $e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new $e(Object.fromEntries(Vh(n).map(r=>[r,$n])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return jh(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function jh(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&r(i.parent)}return r(e),t}function Hh(e,t){if(!(e instanceof $e))throw new M("Invalid grammar state");return e.getInternalStack(t)}function zh(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new M(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}else{const a=i.lines[s.line];if(a===void 0)throw new M(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let l=s.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new M(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:l,offset:i.posToIndex(s.line,l)}}};const i=Mh(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));Wh(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Fh(n,i)},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(i.length!==r.converter.lines.length)throw new M(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,f,h,p){const m=i[c];let y="",g=-1,v=-1;if(f===0&&(g=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=m.children.length),g===-1||v===-1)for(let w=0;w<m.children.length;w++)y+=So(m.children[w]),g===-1&&y.length===f&&(g=w+1),v===-1&&y.length===h&&(v=w+1);if(g===-1)throw new M(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new M(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const _=m.children.slice(g,v);if(!p.alwaysWrap&&_.length===m.children.length)a(m,p,"line");else if(!p.alwaysWrap&&_.length===1&&_[0].type==="element")a(_[0],p,"token");else{const w={type:"element",tagName:"span",properties:{},children:_};a(w,p,"wrapper"),m.children.splice(g,_.length,w)}}function s(c,f){i[c]=a(i[c],f,"line")}function a(c,f,h){const p=f.properties||{},m=f.transform||(y=>y);return c.tagName=f.tagName||"span",c.properties={...c.properties,...p,class:c.properties.class},f.properties?.class&&xo(c,f.properties.class),c=m(c,h)||c,c}const l=[],u=r.decorations.sort((c,f)=>f.start.offset-c.start.offset||c.end.offset-f.end.offset);for(const c of u){const{start:f,end:h}=c;if(f.line===h.line)o(f.line,f.character,h.character,c);else if(f.line<h.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let p=f.line+1;p<h.line;p++)l.unshift(()=>s(p,c));o(h.line,0,h.character,c)}}l.forEach(c=>c())}}}function Wh(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new M(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,s=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,a=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||s||a||l){if(o&&s||a&&l||a&&n.start.offset===n.end.offset||s&&i.start.offset===i.end.offset)continue;throw new M(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function So(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(So).join(""):""}const qh=[zh()];function Jt(e){const t=Xh(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...qh]}function Xh(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var ve=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],wn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Kh(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function ti(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Yh(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)wn[r]&&t.push({type:"setDecoration",value:wn[r]});else if(r<=29){const i=wn[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ve[r-30]}});else if(r===38){const i=ti(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ve[r-40]}});else if(r===48){const i=ti(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ve[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ve[r-100+8]}})}return t}function Jh(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const s=Kh(r,o),a=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(a.length>0&&i.push({value:a,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const l=Yh(s.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=s.position}while(o<r.length);return i}}}var Qh={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Zh(e=Qh){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let u=0;u<ve.length;u++)r.push(t(ve[u]));let a=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let f=0;f<6;f++)r.push(n([a[u],a[c],a[f]]));let l=8;for(let u=0;u<24;u++,l+=10)r.push(n([l,l,l]));return r}function o(a){return i()[a]}function s(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:s}}const ed={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function td(e,t,n){const r=Kt(e,n),i=an(t),o=Object.fromEntries(ve.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||ed[l]]})),s=Zh(o),a=Jh();return i.map(l=>a.parse(l[0]).map(u=>{let c,f;u.decorations.has("reverse")?(c=u.background?s.value(u.background):e.bg,f=u.foreground?s.value(u.foreground):e.fg):(c=u.foreground?s.value(u.foreground):e.fg,f=u.background?s.value(u.background):void 0),c=pe(c,r),f=pe(f,r),u.decorations.has("dim")&&(c=nd(c));let h=W.None;return u.decorations.has("bold")&&(h|=W.Bold),u.decorations.has("italic")&&(h|=W.Italic),u.decorations.has("underline")&&(h|=W.Underline),u.decorations.has("strikethrough")&&(h|=W.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:h}}))}function nd(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ur(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(sr(r)||ar(i))return an(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:s}=e.setTheme(i);if(r==="ansi")return td(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new M(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new M(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return id(t,a,o,s,n)}function rd(...e){if(e.length===2)return nt(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(sr(i)||ar(o))throw new M("Plain language does not have grammar state");if(i==="ansi")throw new M("ANSI language does not have grammar state");const{theme:s,colorMap:a}=t.setTheme(o),l=t.getLanguage(i);return new $e(Qt(n,l,s,a,r).stateStack,l.name,s.name)}function id(e,t,n,r,i){const o=Qt(e,t,n,r,i),s=new $e(Qt(e,t,n,r,i).stateStack,t.name,n.name);return ln(o.tokens,s),o.tokens}function Qt(e,t,n,r,i){const o=Kt(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=i,l=an(e);let u=i.grammarState?Hh(i.grammarState,n.name)??$n:i.grammarContextCode!=null?Qt(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:$n,c=[];const f=[];for(let h=0,p=l.length;h<p;h++){const[m,y]=l[h];if(m===""){c=[],f.push([]);continue}if(s>0&&m.length>=s){c=[],f.push([{content:m,offset:y,color:"",fontStyle:0}]);continue}let g,v,_;i.includeExplanation&&(g=t.tokenizeLine(m,u,a),v=g.tokens,_=0);const w=t.tokenizeLine2(m,u,a),T=w.tokens.length/2;for(let x=0;x<T;x++){const A=w.tokens[2*x],R=x+1<T?w.tokens[2*x+2]:m.length;if(A===R)continue;const E=w.tokens[2*x+1],P=pe(r[Ve.getForeground(E)],o),H=Ve.getFontStyle(E),S={content:m.substring(A,R),offset:y+A,color:P,fontStyle:H};if(i.includeExplanation){const k=[];if(i.includeExplanation!=="scopeName")for(const O of n.settings){let J;switch(typeof O.scope){case"string":J=O.scope.split(/,/).map(de=>de.trim());break;case"object":J=O.scope;break;default:continue}k.push({settings:O,selectors:J.map(de=>de.split(/ /))})}S.explanation=[];let C=0;for(;A+C<R;){const O=v[_],J=m.substring(O.startIndex,O.endIndex);C+=J.length,S.explanation.push({content:J,scopes:i.includeExplanation==="scopeName"?od(O.scopes):sd(k,O.scopes)}),_+=1}}c.push(S)}f.push(c),c=[],u=w.ruleStack}return{tokens:f,stateStack:u}}function od(e){return e.map(t=>({scopeName:t}))}function sd(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const o=t[r];n[r]={scopeName:o,themeMatches:ld(e,o,t.slice(0,r))}}return n}function ni(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ad(e,t,n){if(!ni(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)ni(e[r],n[i])&&(r-=1),i-=1;return r===-1}function ld(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const s of i)if(ad(s,t,n)){r.push(o);break}return r}function To(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const u=ur(e,t,{...n,theme:l.theme}),c=nt(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=ud(...i.map(l=>l.tokens)),s=o[0].map((l,u)=>l.map((c,f)=>{const h={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=c.explanation),o.forEach((p,m)=>{const{content:y,explanation:g,offset:v,..._}=p[u][f];h.variants[r[m].color]=_}),h})),a=i[0].state?new $e(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return a&&ln(s,a),s}function ud(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const s=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),s[u]+=1,a[u]=i[u][s[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function Zt(e,t,n){let r,i,o,s,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,h=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,_)=>v.color===u?-1:_.color===u?1:0);if(h.length===0)throw new M("`themes` option must not be empty");const p=To(e,t,n);if(l=nt(p),u&&lr!==u&&!h.find(v=>v.color===u))throw new M(`\`themes\` option must contain the defaultColor key \`${u}\``);const m=h.map(v=>e.getTheme(v.theme)),y=h.map(v=>v.color);o=p.map(v=>v.map(_=>Uh(_,y,c,u,f))),l&&ln(o,l);const g=h.map(v=>Kt(v.theme,n));i=ri(h,m,g,c,u,"fg",f),r=ri(h,m,g,c,u,"bg",f),s=`shiki-themes ${m.map(v=>v.name).join(" ")}`,a=u?void 0:[i,r].join(";")}else if("theme"in n){const u=Kt(n.theme,n);o=ur(e,t,n);const c=e.getTheme(n.theme);r=pe(c.bg,u),i=pe(c.fg,u),s=c.name,l=nt(o)}else throw new M("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:a,grammarState:l}}function ri(e,t,n,r,i,o,s){return e.map((a,l)=>{const u=pe(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i===lr&&e.length>1){const f=e.findIndex(y=>y.color==="light"),h=e.findIndex(y=>y.color==="dark");if(f===-1||h===-1)throw new M('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=pe(t[f][o],n[f])||"inherit",m=pe(t[h][o],n[h])||"inherit";return`light-dark(${p}, ${m});${c}`}return u}return s==="css-vars"?c:null}).filter(a=>!!a).join(";")}function en(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>en(e,i,o),codeToTokens:(i,o)=>Zt(e,i,o)}){let i=t;for(const m of Jt(n))i=m.preprocess?.call(r,i,n)||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:u,grammarState:c}=Zt(e,i,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:h=!1}=n;f===!0?o=fd(o):f==="never"&&(o=hd(o)),h&&(o=dd(o));const p={...r,get source(){return i}};for(const m of Jt(n))o=m.tokens?.call(p,o)||o;return cd(o,{...n,fg:s,bg:a,themeName:l,rootStyle:u},p,c)}function cd(e,t,n,r=nt(e)){const i=Jt(t),o=[],s={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([m])=>!m.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:a,addClassToHast:xo,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return c},get lines(){return f}};if(e.forEach((m,y)=>{y&&(a==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
18
|
+
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const _ of m){let w={type:"element",tagName:"span",properties:{..._.htmlAttrs},children:[{type:"text",value:_.content}]};const T=jn(_.htmlStyle||Yt(_));T&&(w.properties.style=T);for(const x of i)w=x?.span?.call(h,w,y+1,v,g,_)||w;a==="inline"?s.children.push(w):a==="classic"&&g.children.push(w),v+=_.content.length}if(a==="classic"){for(const _ of i)g=_?.line?.call(h,g,y+1)||g;f.push(g),o.push(g)}}),a==="classic"){for(const m of i)c=m?.code?.call(h,c)||c;u.children.push(c);for(const m of i)u=m?.pre?.call(h,u)||u;s.children.push(u)}let p=s;for(const m of i)p=m?.root?.call(h,p)||p;return r&&ln(p,r),p}function fd(e){return e.map(t=>{const n=[];let r="",i=0;return t.forEach((o,s)=>{const l=!(o.fontStyle&&(o.fontStyle&W.Underline||o.fontStyle&W.Strikethrough));l&&o.content.match(/^\s+$/)&&t[s+1]?(i||(i=o.offset),r+=o.content):r?(l?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=0,r=""):n.push(o)}),n})}function hd(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,o,s]=r;if(!i&&!s)return n;const a=[{...n,offset:n.offset+i.length,content:o}];return i&&a.unshift({content:i,offset:n.offset}),s&&a.push({content:s,offset:n.offset+i.length+o.length}),a}))}function dd(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=jn(i.htmlStyle||Yt(i)),s=jn(r.htmlStyle||Yt(r)),a=i.fontStyle&&(i.fontStyle&W.Underline||i.fontStyle&W.Strikethrough),l=r.fontStyle&&(r.fontStyle&W.Underline||r.fontStyle&W.Strikethrough);!a&&!l&&o===s?i.content+=r.content:n.push({...r})}return n})}const pd=Oh;function md(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>en(e,o,s),codeToTokens:(o,s)=>Zt(e,o,s)};let i=pd(en(e,t,n,r));for(const o of Jt(n))i=o.postprocess?.call(r,i,n)||i;return i}const ii={light:"#333333",dark:"#bbbbbb"},oi={light:"#fffffe",dark:"#1e1e1e"},si="__shiki_resolved";function cr(e){if(e?.[si])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?ii.light:ii.dark),n||(n=t.type==="light"?oi.light:oi.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function s(a){if(o.has(a))return o.get(a);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=s(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=s(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=s(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,si,{enumerable:!1,writable:!1,value:!0}),t}async function Ro(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Eo(t)).map(async t=>await wo(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Lo(e){return(await Promise.all(e.map(async n=>bo(n)?null:cr(await wo(n))))).filter(n=>!!n)}let gd=3;function _d(e,t=3){t>gd||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Te=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class yd extends vf{constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=cr(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Ht.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Te(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,o])=>!o);if(r.length){const i=n.filter(([o,s])=>s&&s.embeddedLangs?.some(a=>r.map(([l])=>l).includes(a))).filter(o=>!r.includes(o));throw new Te(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of n)this._resolver.addLanguage(o);for(const[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class vd{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Ue=0;function wd(e){Ue+=1,e.warnings!==!1&&Ue>=10&&Ue%10===0&&console.warn(`[Shiki] ${Ue} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Te("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(cr),i=new vd(e.engine,n),o=new yd(i,r,n,e.langAlias);let s;function a(_){g();const w=o.getGrammar(typeof _=="string"?_:_.name);if(!w)throw new Te(`Language \`${_}\` not found, you may need to load it first`);return w}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const w=o.getTheme(_);if(!w)throw new Te(`Theme \`${_}\` not found, you may need to load it first`);return w}function u(_){g();const w=l(_);s!==_&&(o.setTheme(w),s=_);const T=o.getColorMap();return{theme:w,colorMap:T}}function c(){return g(),o.getLoadedThemes()}function f(){return g(),o.getLoadedLanguages()}function h(..._){g(),o.loadLanguages(_.flat(1))}async function p(..._){return h(await Ro(_))}function m(..._){g();for(const w of _.flat(1))o.loadTheme(w)}async function y(..._){return g(),m(await Lo(_))}function g(){if(t)throw new Te("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),Ue-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:c,getLoadedLanguages:f,loadLanguage:p,loadLanguageSync:h,loadTheme:y,loadThemeSync:m,dispose:v,[Symbol.dispose]:v}}async function Ed(e){e.engine||_d("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Lo(e.themes||[]),Ro(e.langs||[]),e.engine]);return wd({...e,themes:t,langs:n,engine:r})}async function bd(e){const t=await Ed(e);return{getLastGrammarState:(...n)=>rd(t,...n),codeToTokensBase:(n,r)=>ur(t,n,r),codeToTokensWithThemes:(n,r)=>To(t,n,r),codeToTokens:(n,r)=>Zt(t,n,r),codeToHast:(n,r)=>en(t,n,r),codeToHtml:(n,r)=>md(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function xd(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function s(f){if(typeof f=="string"){if(Eo(f))return[];f=o.langAlias?.[f]||f;const h=t[f];if(!h)throw new M(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return h}return f}function a(f){if(bo(f))return"none";if(typeof f=="string"){const h=n[f];if(!h)throw new M(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return h}return f}const l=(o.themes??[]).map(f=>a(f)),u=(o.langs??[]).map(f=>s(f)),c=await bd({engine:o.engine??r(),...o,themes:l,langs:u});return{...c,loadLanguage(...f){return c.loadLanguage(...f.map(s))},loadTheme(...f){return c.loadTheme(...f.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function Ad(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function Sd(e,t){const n=Ad(e);async function r(i,o){const s=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),a=await t?.guessEmbeddedLanguages?.(i,o.lang,s);return a&&await s.loadLanguage(...a),s}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Po=[{id:"abap",name:"ABAP",import:(()=>d(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>d(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>d(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>d(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>d(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>d(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>d(()=>import("./apex-DhZLUxFE.js"),[]))},{id:"apl",name:"APL",import:(()=>d(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>d(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>d(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>d(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>d(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>d(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>d(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>d(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>d(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>d(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>d(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>d(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>d(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>d(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>d(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>d(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>d(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>d(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>d(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>d(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>d(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>d(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>d(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>d(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>d(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>d(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>d(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>d(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>d(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>d(()=>import("./csharp-CX12Zw3r.js"),[]))},{id:"css",name:"CSS",import:(()=>d(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>d(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>d(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>d(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>d(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>d(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>d(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>d(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>d(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>d(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>d(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>d(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>d(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>d(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>d(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>d(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>d(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>d(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>d(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>d(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>d(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>d(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>d(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>d(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>d(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>d(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>d(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>d(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>d(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>d(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>d(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>d(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>d(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>d(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>d(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>d(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>d(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>d(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>d(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>d(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>d(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>d(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>d(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>d(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>d(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>d(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>d(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>d(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>d(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>d(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>d(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>d(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>d(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>d(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>d(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>d(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>d(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>d(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>d(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>d(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>d(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>d(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>d(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>d(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>d(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>d(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>d(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>d(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>d(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>d(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>d(()=>import("./latex-BUKiar2Z.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>d(()=>import("./lean-DP1Csr6i.js"),[]))},{id:"less",name:"Less",import:(()=>d(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>d(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>d(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>d(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>d(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>d(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>d(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>d(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>d(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>d(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>d(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>d(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>d(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>d(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>d(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>d(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>d(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>d(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>d(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>d(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>d(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>d(()=>import("./nix-BbRYJGeE.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>d(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>d(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>d(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>d(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>d(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>d(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>d(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>d(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>d(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>d(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>d(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>d(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>d(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>d(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>d(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>d(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>d(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>d(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>d(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>d(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>d(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>d(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>d(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>d(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>d(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>d(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>d(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>d(()=>import("./razor-WgofotgN.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>d(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>d(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>d(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>d(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>d(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>d(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>d(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>d(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>d(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>d(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>d(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>d(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>d(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>d(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>d(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>d(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>d(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>d(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>d(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>d(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>d(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>d(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>d(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>d(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>d(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>d(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>d(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>d(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>d(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>d(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>d(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>d(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>d(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>d(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>d(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>d(()=>import("./tex-Cppo0RY3.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>d(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>d(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>d(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>d(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>d(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>d(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>d(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>d(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>d(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>d(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>d(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>d(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>d(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>d(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>d(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>d(()=>import("./vue-CCoi5OLL.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>d(()=>import("./vue-html-DAAvJJDi.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>d(()=>import("./vue-vine-_Ih-lPRR.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>d(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>d(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>d(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>d(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>d(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>d(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>d(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>d(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>d(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>d(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>d(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>d(()=>import("./zig-VOosw3JB.js"),[]))}],Td=Object.fromEntries(Po.map(e=>[e.id,e.import])),Rd=Object.fromEntries(Po.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Ld={...Td,...Rd},Pd=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>d(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>d(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>d(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>d(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>d(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>d(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>d(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>d(()=>import("./dark-plus-eOWES_5F.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>d(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>d(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>d(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>d(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>d(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>d(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>d(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>d(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>d(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>d(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>d(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>d(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>d(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>d(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>d(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>d(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>d(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>d(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>d(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>d(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>d(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>d(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>d(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>d(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>d(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>d(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>d(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>d(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>d(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>d(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>d(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>d(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>d(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>d(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>d(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>d(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>d(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>d(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>d(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>d(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>d(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>d(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>d(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>d(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>d(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>d(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>d(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>d(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>d(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],kd=Object.fromEntries(Pd.map(e=>[e.id,e.import]));class fr extends Error{constructor(t){super(t),this.name="ShikiError"}}function Cd(){return 2147483648}function Id(){return typeof performance<"u"?performance.now():Date.now()}const Od=(e,t)=>e+(t-e%t)%t;async function Dd(e){let t,n;const r={};function i(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function o(p,m,y){r.HEAPU8.copyWithin(p,m,m+y)}function s(p){try{return t.grow(p-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function a(p){const m=r.HEAPU8.length;p=p>>>0;const y=Cd();if(p>y)return!1;for(let g=1;g<=4;g*=2){let v=m*(1+.2/g);v=Math.min(v,p+100663296);const _=Math.min(y,Od(Math.max(p,v),65536));if(s(_))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(p,m,y=1024){const g=m+y;let v=m;for(;p[v]&&!(v>=g);)++v;if(v-m>16&&p.buffer&&l)return l.decode(p.subarray(m,v));let _="";for(;m<v;){let w=p[m++];if(!(w&128)){_+=String.fromCharCode(w);continue}const T=p[m++]&63;if((w&224)===192){_+=String.fromCharCode((w&31)<<6|T);continue}const x=p[m++]&63;if((w&240)===224?w=(w&15)<<12|T<<6|x:w=(w&7)<<18|T<<12|x<<6|p[m++]&63,w<65536)_+=String.fromCharCode(w);else{const A=w-65536;_+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return _}function c(p,m){return p?u(r.HEAPU8,p,m):""}const f={emscripten_get_now:Id,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const m=await e({env:f,wasi_snapshot_preview1:f});t=m.memory,i(t.buffer),Object.assign(r,m),r.UTF8ToString=c}return await h(),r}var Nd=Object.defineProperty,Vd=(e,t,n)=>t in e?Nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t,n)=>Vd(e,typeof t!="symbol"?t+"":t,n);let U=null;function Md(e){throw new fr(e.UTF8ToString(e.getLastOnigError()))}class un{constructor(t){G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16Value"),G(this,"utf8Value"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16");const n=t.length,r=un._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let u=0;u<n;u++){const c=t.charCodeAt(u);let f=c,h=!1;if(c>=55296&&c<=56319&&u+1<n){const p=t.charCodeAt(u+1);p>=56320&&p<=57343&&(f=(c-55296<<10)+65536|p-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),f<=127?s[l+0]=u:f<=2047?(s[l+0]=u,s[l+1]=u):f<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),f<=127?a[l++]=f:f<=2047?(a[l++]=192|(f&1984)>>>6,a[l++]=128|(f&63)>>>0):f<=65535?(a[l++]=224|(f&61440)>>>12,a[l++]=128|(f&4032)>>>6,a[l++]=128|(f&63)>>>0):(a[l++]=240|(f&1835008)>>>18,a[l++]=128|(f&258048)>>>12,a[l++]=128|(f&4032)>>>6,a[l++]=128|(f&63)>>>0),h&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const o=t.charCodeAt(r);let s=o,a=!1;if(o>=55296&&o<=56319&&r+1<i){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,a&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const cn=class se{constructor(t){if(G(this,"id",++se.LAST_ID),G(this,"_onigBinding"),G(this,"content"),G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16"),G(this,"ptr"),!U)throw new fr("Must invoke loadWasm first.");this._onigBinding=U,this.content=t;const n=new un(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!se._sharedPtrInUse?(se._sharedPtr||(se._sharedPtr=U.omalloc(1e4)),se._sharedPtrInUse=!0,U.HEAPU8.set(n.utf8Value,se._sharedPtr),this.ptr=se._sharedPtr):this.ptr=n.createString(U)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===se._sharedPtr?se._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};G(cn,"LAST_ID",0);G(cn,"_sharedPtr",0);G(cn,"_sharedPtrInUse",!1);let ko=cn;class $d{constructor(t){if(G(this,"_onigBinding"),G(this,"_ptr"),!U)throw new fr("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=t.length;a<l;a++){const u=new un(t[a]);n[a]=u.createString(U),r[a]=u.utf8Length}const i=U.omalloc(4*t.length);U.HEAPU32.set(n,i/4);const o=U.omalloc(4*t.length);U.HEAPU32.set(r,o/4);const s=U.createOnigScanner(i,o,t.length);for(let a=0,l=t.length;a<l;a++)U.ofree(n[a]);U.ofree(o),U.ofree(i),s===0&&Md(U),this._onigBinding=U,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new ko(t);const o=this._findNextMatchSync(t,n,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],c=a[l++],f=[];for(let h=0;h<c;h++){const p=t.convertUtf8OffsetToUtf16(a[l++]),m=t.convertUtf8OffsetToUtf16(a[l++]);f[h]={start:p,end:m,length:m-p}}return{index:u,captureIndices:f}}}function Bd(e){return typeof e.instantiator=="function"}function Gd(e){return typeof e.default=="function"}function Fd(e){return typeof e.data<"u"}function Ud(e){return typeof Response<"u"&&e instanceof Response}function jd(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let yt;function Hd(e){if(yt)return yt;async function t(){U=await Dd(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Bd(r)?r=await r.instantiator(n):Gd(r)?r=await r.default(n):(Fd(r)&&(r=r.data),Ud(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await zd(r)(n):r=await Wd(r)(n):jd(r)?r=await En(r)(n):r instanceof WebAssembly.Module?r=await En(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await En(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return yt=t(),yt}function En(e){return t=>WebAssembly.instantiate(e,t)}function zd(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Wd(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function qd(e){return e&&await Hd(e),{createScanner(t){return new $d(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ko(t)}}}const Xd=xd({langs:Ld,themes:kd,engine:()=>qd(d(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Kd}=Sd(Xd,{guessEmbeddedLanguages:$h});var Yd=X('<div class="flex h-full items-center justify-center text-sm text-gray-400">Loading file…'),Jd=X('<div class="rounded border border-red-700 bg-red-900/70 px-3 py-2 text-sm text-red-100">'),Qd=X("<div class=code-modal-content>"),Zd=X('<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/60"><div class="flex h-[80vh] w-[90vw] max-w-5xl flex-col overflow-hidden rounded-lg border border-gray-700 bg-[#1e1e1e] shadow-2xl"><header class="flex items-center justify-between border-b border-gray-700 bg-[#252526] px-4 py-2 text-sm"><div class="flex min-w-0 flex-col"><span class="truncate font-semibold text-gray-100"></span><span class="truncate text-[11px] text-gray-400"></span></div><button class="ml-4 rounded bg-gray-700 px-3 py-1 text-xs font-semibold text-gray-200 hover:bg-gray-600"type=button>Close</button></header><main class="relative flex-1 overflow-auto bg-[#1e1e1e] p-4">');function ep(e){const t=e.toLowerCase();return t.endsWith(".tsx")?"tsx":t.endsWith(".ts")?"ts":t.endsWith(".jsx")?"jsx":t.endsWith(".js")?"js":t.endsWith(".json")?"json":t.endsWith(".py")?"py":t.endsWith(".md")?"md":t.endsWith(".html")||t.endsWith(".htm")?"html":t.endsWith(".css")?"css":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".toml")?"toml":t.endsWith(".sh")||t.endsWith(".bash")||t.endsWith(".zsh")?"bash":"txt"}function tp(e){const[t,n]=B(!1),[r,i]=B(null),[o,s]=B("");let a=0;nn(()=>{if(!e.isOpen||!e.filePath)return;const c=++a,f=e.filePath;n(!0),i(null),s(""),(async()=>{try{const h=await fetch(`/api/files/content?path=${encodeURIComponent(f)}`);if(!h.ok)throw new Error(`Failed to load file: ${h.status} ${h.statusText}`);const p=await h.text(),m=ep(f),y=await Kd(p,{lang:m,theme:"github-dark"});c===a&&s(y)}catch(h){c===a&&i(h.message??String(h))}finally{c===a&&n(!1)}})()});const l=c=>{c.key==="Escape"&&e.isOpen&&(c.stopPropagation(),e.onClose())};Hn(()=>{window.addEventListener("keydown",l),Ie(()=>{window.removeEventListener("keydown",l)})});const u=()=>{if(!e.filePath)return"";const c=e.filePath.split(/[\\/]/);return c[c.length-1]||e.filePath};return j(re,{get when(){return Re(()=>!!e.isOpen)()&&e.filePath},get children(){var c=Zd(),f=c.firstChild,h=f.firstChild,p=h.firstChild,m=p.firstChild,y=m.nextSibling,g=p.nextSibling,v=h.nextSibling;return D(m,u),D(y,()=>e.filePath),zo(g,"click",e.onClose),D(v,j(re,{get when(){return t()},get children(){return Yd()}}),null),D(v,j(re,{get when(){return Re(()=>!t())()&&r()},get children(){var _=Jd();return D(_,r),_}}),null),D(v,j(re,{get when(){return Re(()=>!t()&&!r())()&&o()},get children(){var _=Qd();return Ce(()=>_.innerHTML=o()||""),_}}),null),c}})}Wn(["click"]);var np=X('<div class="absolute inset-0 flex items-center justify-center z-50 bg-black/50"><div class="bg-red-900/80 p-6 rounded text-white border border-red-700"><h3 class="font-bold text-lg mb-2">Error</h3><p></p><button class="mt-4 px-4 py-2 bg-red-700 hover:bg-red-600 rounded">Close'),rp=X('<div class="h-screen flex flex-col bg-[#121212] text-white overflow-hidden"><header class="px-4 py-2 border-b border-[#333] flex items-center justify-between bg-[#1e1e1e]"><div class="flex items-center gap-3"><h1 class="text-lg font-bold text-blue-500">Srcly</h1><div class="max-w-2xl w-full"></div></div><div class="text-xs text-gray-400"></div></header><main class="flex-1 relative overflow-hidden p-4">'),ip=X('<div class="flex flex-col items-center justify-center h-full text-gray-500"><p class="text-lg mb-2">No visualization data</p><p class=text-sm>Enter a path above to visualize the codebase');function op(){const[e,t]=B(null),[n,r]=B(!1),[i,o]=B(null),[s,a]=B(""),[l,u]=B("success"),[c,f]=B(!1),[h,p]=B(null),[m,y]=B(!1),g=async _=>{r(!0),o(null);try{const w=await fetch(`/api/analysis?path=${encodeURIComponent(_)}`);if(!w.ok)throw new Error(`Failed to fetch analysis: ${w.statusText}`);const T=await w.json();t(T),a("Analysis completed"),u("success"),f(!0)}catch(w){console.error(w),o(String(w)),a(String(w)),u("error"),f(!0)}finally{r(!1)}},v=_=>{p(_),y(!0)};return(()=>{var _=rp(),w=_.firstChild,T=w.firstChild,x=T.firstChild,A=x.nextSibling,R=T.nextSibling,E=w.nextSibling;return D(A,j(ts,{onSelect:g})),D(R,(()=>{var P=Re(()=>!!n());return()=>P()?"Loading...":e()?"Analysis Loaded":"Select a folder to analyze"})()),D(E,j(re,{get when(){return i()},get children(){var P=np(),H=P.firstChild,S=H.firstChild,k=S.nextSibling,C=k.nextSibling;return D(k,i),C.$$click=()=>o(null),P}}),null),D(E,j(re,{get when(){return e()},get fallback(){return ip()},get children(){return j(kc,{get data(){return e()},onFileSelect:v})}}),null),D(_,j(re,{get when(){return c()},get children(){return j(Xo,{get message(){return s()},get type(){return l()},duration:4e3})}}),null),D(_,j(tp,{get isOpen(){return m()},get filePath(){return h()},onClose:()=>y(!1)}),null),_})()}Wn(["click"]);const sp=document.getElementById("root");jo(()=>j(op,{}),sp);
|