@tangle-network/sandbox-ui 2.0.16 → 2.0.18
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.
- package/README.md +2 -0
- package/dist/agent-stream-CBZ2fXJ2.d.ts +66 -0
- package/dist/code-view-BlhCS1SD.js +177 -0
- package/dist/globals.css +189 -150
- package/dist/hooks.d.ts +2 -139
- package/dist/hooks.js +2 -1
- package/dist/{index-BtR5Sc3u.d.ts → index-BnaVprN6.d.ts} +3 -66
- package/dist/index-D5Hig-j9.d.ts +155 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -4
- package/dist/{record-1OqtuwjP.js → record-Bqt1kE_Q.js} +1 -1
- package/dist/run/live.d.ts +10 -0
- package/dist/run/live.js +389 -0
- package/dist/run/record.js +1 -1
- package/dist/run.d.ts +2 -1
- package/dist/run.js +3 -2
- package/dist/runtime-viewer/AgentGraphCanvas-B74GN1o6-DC3EH_ss.js +8564 -0
- package/dist/runtime-viewer/abap-CJVxDCih.js +2 -0
- package/dist/runtime-viewer/actionscript-3-DxxSN0a_.js +2 -0
- package/dist/runtime-viewer/ada-Cl3FVDZo.js +2 -0
- package/dist/runtime-viewer/ahk-wK-qmFta.js +2 -0
- package/dist/runtime-viewer/ahk2-H2JA2Yl6.js +2 -0
- package/dist/runtime-viewer/andromeeda--b5O3zh8.js +134 -0
- package/dist/runtime-viewer/andromeeda-Gms6gP4X.js +3 -0
- package/dist/runtime-viewer/angular-html-rj1gmhWN.js +15 -0
- package/dist/runtime-viewer/angular-ts-Bqgem-S1.js +17 -0
- package/dist/runtime-viewer/apache-BUhlrTDV.js +2 -0
- package/dist/runtime-viewer/apex-BB9dj6FH.js +2 -0
- package/dist/runtime-viewer/apl-Bbo6_Uyo.js +15 -0
- package/dist/runtime-viewer/appendItems-Cd9l6s5M.js +709 -0
- package/dist/runtime-viewer/applescript-ADDjRuDN.js +2 -0
- package/dist/runtime-viewer/ara-qq1xXFYH.js +2 -0
- package/dist/runtime-viewer/asciidoc-DM4EX7__.js +2 -0
- package/dist/runtime-viewer/asm-BG-prohY.js +2 -0
- package/dist/runtime-viewer/astro-DLFBJCYZ.js +17 -0
- package/dist/runtime-viewer/aurora-x-9XZt7weA.js +3 -0
- package/dist/runtime-viewer/aurora-x-CUDrP6dl.js +148 -0
- package/dist/runtime-viewer/awk-CLViK1AN.js +2 -0
- package/dist/runtime-viewer/ayu-dark-Cn6mFqgG.js +3 -0
- package/dist/runtime-viewer/ayu-dark-KXkHEKeT.js +124 -0
- package/dist/runtime-viewer/ayu-light-CiMsj1GY.js +124 -0
- package/dist/runtime-viewer/ayu-light-DT1rcejT.js +3 -0
- package/dist/runtime-viewer/ayu-mirage-B9PABb6M.js +3 -0
- package/dist/runtime-viewer/ayu-mirage-D866knu2.js +124 -0
- package/dist/runtime-viewer/ballerina-CEQUp96R.js +2 -0
- package/dist/runtime-viewer/bash-CEf3P1Io.js +1 -0
- package/dist/runtime-viewer/bat-CZr3fv67.js +2 -0
- package/dist/runtime-viewer/beancount-VKRy3bBi.js +2 -0
- package/dist/runtime-viewer/berry-BwT4aLVg.js +2 -0
- package/dist/runtime-viewer/bibtex-CqljWi0V.js +2 -0
- package/dist/runtime-viewer/bicep-B4J9qq-Z.js +2 -0
- package/dist/runtime-viewer/bird2-aEHxasJz.js +2 -0
- package/dist/runtime-viewer/blade-CSrWCe1q.js +19 -0
- package/dist/runtime-viewer/bsl-BihRw6wC.js +4 -0
- package/dist/runtime-viewer/c-DqEbRro5.js +1 -0
- package/dist/runtime-viewer/c-nuWrC4_R.js +4 -0
- package/dist/runtime-viewer/c3-B1ecFreZ.js +2 -0
- package/dist/runtime-viewer/cadence-DRL7VEtm.js +2 -0
- package/dist/runtime-viewer/cairo-Mf356MxB.js +4 -0
- package/dist/runtime-viewer/catppuccin-frappe-CaZDpwbh.js +3 -0
- package/dist/runtime-viewer/catppuccin-frappe-D40A-eC-.js +253 -0
- package/dist/runtime-viewer/catppuccin-latte-BY0gIWQk.js +253 -0
- package/dist/runtime-viewer/catppuccin-latte-Cto1Jf_t.js +3 -0
- package/dist/runtime-viewer/catppuccin-macchiato-BshuwwL_.js +253 -0
- package/dist/runtime-viewer/catppuccin-macchiato-Da4JtJzk.js +3 -0
- package/dist/runtime-viewer/catppuccin-mocha-DDZ3zh14.js +253 -0
- package/dist/runtime-viewer/catppuccin-mocha-VxvWTjH_.js +3 -0
- package/dist/runtime-viewer/chapel-OTK-UUIg.js +4 -0
- package/dist/runtime-viewer/clarity-VQN67-z4.js +2 -0
- package/dist/runtime-viewer/clojure-CO3ptKNj.js +2 -0
- package/dist/runtime-viewer/cmake-Daw-aSZt.js +2 -0
- package/dist/runtime-viewer/cobol-Cf_qPd6-.js +9 -0
- package/dist/runtime-viewer/codeowners-RB6Ky2d_.js +2 -0
- package/dist/runtime-viewer/codeql-DWYIUtYc.js +2 -0
- package/dist/runtime-viewer/coffee-Ddb4DMEu.js +4 -0
- package/dist/runtime-viewer/common-lisp-Z5pdmE3i.js +2 -0
- package/dist/runtime-viewer/constants-BJYchxfN.js +3 -0
- package/dist/runtime-viewer/coq-JC5iWOqp.js +2 -0
- package/dist/runtime-viewer/core-CpUX80b1.js +3279 -0
- package/dist/runtime-viewer/cpp-ClbMDAkS.js +1 -0
- package/dist/runtime-viewer/cpp-DHh405em.js +15 -0
- package/dist/runtime-viewer/crystal-DO6lJkkC.js +17 -0
- package/dist/runtime-viewer/csharp-lEK6y4jq.js +2 -0
- package/dist/runtime-viewer/csharp-rZvb5Mvv.js +1 -0
- package/dist/runtime-viewer/css-CwgM346x.js +1 -0
- package/dist/runtime-viewer/css-D0s2ehNl.js +4 -0
- package/dist/runtime-viewer/csv-DDLVNpF_.js +2 -0
- package/dist/runtime-viewer/cue-D9icO3Iq.js +2 -0
- package/dist/runtime-viewer/cypher-CtaxHT1L.js +2 -0
- package/dist/runtime-viewer/d-D4yE5Vyh.js +2 -0
- package/dist/runtime-viewer/dark-plus-BrGvqa0b.js +132 -0
- package/dist/runtime-viewer/dark-plus-Fqa0GMhm.js +3 -0
- package/dist/runtime-viewer/dart-BQKGVcgZ.js +2 -0
- package/dist/runtime-viewer/dax-B_fglzFE.js +2 -0
- package/dist/runtime-viewer/desktop-D1YOnHEY.js +2 -0
- package/dist/runtime-viewer/diff-CiTjO3HD.js +1 -0
- package/dist/runtime-viewer/diff-Diuv0qGT.js +2 -0
- package/dist/runtime-viewer/docker-DbYJRRXH.js +4 -0
- package/dist/runtime-viewer/dockerfile-BFrtbjpQ.js +1 -0
- package/dist/runtime-viewer/dotenv-FA1qqDb1.js +2 -0
- package/dist/runtime-viewer/dracula-Btj3GSO9.js +3 -0
- package/dist/runtime-viewer/dracula-D8HPTJym.js +152 -0
- package/dist/runtime-viewer/dracula-soft-C8zQlEh_.js +102 -0
- package/dist/runtime-viewer/dracula-soft-D6LcM51i.js +3 -0
- package/dist/runtime-viewer/dream-maker-hpDz6By6.js +2 -0
- package/dist/runtime-viewer/edge-BB4FSmZo.js +11 -0
- package/dist/runtime-viewer/elixir-DuATaRNn.js +4 -0
- package/dist/runtime-viewer/elk.bundled-CqF3Dyp2.js +45979 -0
- package/dist/runtime-viewer/elm-82HhQ2nm.js +4 -0
- package/dist/runtime-viewer/emacs-lisp-C5QNYC99.js +2 -0
- package/dist/runtime-viewer/engine-javascript-0MH9JO7M.js +2372 -0
- package/dist/runtime-viewer/engine-oniguruma-7Bv9BGGj.js +237 -0
- package/dist/runtime-viewer/erb-YvvBNDWy.js +9 -0
- package/dist/runtime-viewer/erlang-X9awClOJ.js +4 -0
- package/dist/runtime-viewer/everforest-dark-CzXjGmbf.js +3 -0
- package/dist/runtime-viewer/everforest-dark-DPX_5Sj-.js +86 -0
- package/dist/runtime-viewer/everforest-light-BMqXq4Th.js +3 -0
- package/dist/runtime-viewer/everforest-light-D1PD4A7K.js +86 -0
- package/dist/runtime-viewer/fennel-f1xl4Q05.js +2 -0
- package/dist/runtime-viewer/fish-99YblEc7.js +2 -0
- package/dist/runtime-viewer/fluent-4LP_8ZRP.js +2 -0
- package/dist/runtime-viewer/formatCSSVariablePrefix-Dw8K8---.js +5 -0
- package/dist/runtime-viewer/fortran-fixed-form-CXgWKejO.js +4 -0
- package/dist/runtime-viewer/fortran-free-form-BJnwWphW.js +2 -0
- package/dist/runtime-viewer/fsharp-lb4HOh0M.js +4 -0
- package/dist/runtime-viewer/gdresource-B4QpWOUk.js +9 -0
- package/dist/runtime-viewer/gdscript-Dc0nUXdB.js +2 -0
- package/dist/runtime-viewer/gdshader-D7XodLZw.js +2 -0
- package/dist/runtime-viewer/genie-ufotYGgo.js +2 -0
- package/dist/runtime-viewer/gherkin-TDn2lJS-.js +2 -0
- package/dist/runtime-viewer/git-commit-Cp1Pt-h7.js +4 -0
- package/dist/runtime-viewer/git-rebase-CXUuGQB4.js +4 -0
- package/dist/runtime-viewer/github-dark-BsaUiyss.js +129 -0
- package/dist/runtime-viewer/github-dark-CzJ4LJRs.js +3 -0
- package/dist/runtime-viewer/github-dark-default-C6vmm66I.js +3 -0
- package/dist/runtime-viewer/github-dark-default-DHpmzBTU.js +75 -0
- package/dist/runtime-viewer/github-dark-dimmed-Bg7ahiYc.js +124 -0
- package/dist/runtime-viewer/github-dark-dimmed-CntRzgqu.js +3 -0
- package/dist/runtime-viewer/github-dark-high-contrast-BP5LnlnO.js +124 -0
- package/dist/runtime-viewer/github-dark-high-contrast-gviVHGeU.js +3 -0
- package/dist/runtime-viewer/github-light-2Z3gmJhd.js +3 -0
- package/dist/runtime-viewer/github-light-BAncjKrl.js +129 -0
- package/dist/runtime-viewer/github-light-default-kDVra9RT.js +124 -0
- package/dist/runtime-viewer/github-light-default-qgi3RC4t.js +3 -0
- package/dist/runtime-viewer/github-light-high-contrast-B2kY0DMu.js +124 -0
- package/dist/runtime-viewer/github-light-high-contrast-T0lGRgzi.js +3 -0
- package/dist/runtime-viewer/gleam-LV2mKtnv.js +2 -0
- package/dist/runtime-viewer/glimmer-js-BX9ckA-I.js +13 -0
- package/dist/runtime-viewer/glimmer-ts-DAfjLnWM.js +13 -0
- package/dist/runtime-viewer/glsl-BStsalM0.js +5 -0
- package/dist/runtime-viewer/gn-ChOGRsKV.js +2 -0
- package/dist/runtime-viewer/gnuplot-Di7UZXvs.js +2 -0
- package/dist/runtime-viewer/go-BrUQhiM2.js +1 -0
- package/dist/runtime-viewer/go-DM5FkVJr.js +2 -0
- package/dist/runtime-viewer/graphql-C8jzeQ3m.js +1 -0
- package/dist/runtime-viewer/graphql-C_WRV-qo.js +14 -0
- package/dist/runtime-viewer/groovy-DNa91fQJ.js +2 -0
- package/dist/runtime-viewer/gruvbox-dark-hard-BK-BcNOC.js +127 -0
- package/dist/runtime-viewer/gruvbox-dark-hard-fgme3GSG.js +3 -0
- package/dist/runtime-viewer/gruvbox-dark-medium-Btvv2ALk.js +127 -0
- package/dist/runtime-viewer/gruvbox-dark-medium-GM28AOs3.js +3 -0
- package/dist/runtime-viewer/gruvbox-dark-soft-D12Dlf7E.js +3 -0
- package/dist/runtime-viewer/gruvbox-dark-soft-ScIRFHp0.js +127 -0
- package/dist/runtime-viewer/gruvbox-light-hard-D0LtL2QG.js +3 -0
- package/dist/runtime-viewer/gruvbox-light-hard-D3d04bym.js +127 -0
- package/dist/runtime-viewer/gruvbox-light-medium-BUM64AiQ.js +127 -0
- package/dist/runtime-viewer/gruvbox-light-medium-Dbiuwhcl.js +3 -0
- package/dist/runtime-viewer/gruvbox-light-soft-BFyUZF8I.js +3 -0
- package/dist/runtime-viewer/gruvbox-light-soft-Deemyp2j.js +127 -0
- package/dist/runtime-viewer/hack-DrxrxETA.js +9 -0
- package/dist/runtime-viewer/haml-DtaFw5Wt.js +10 -0
- package/dist/runtime-viewer/handlebars-DdC6ISBc.js +13 -0
- package/dist/runtime-viewer/haskell-D6RgJWqJ.js +2 -0
- package/dist/runtime-viewer/haxe-CIYKU3E4.js +2 -0
- package/dist/runtime-viewer/hcl-B9zco17t.js +2 -0
- package/dist/runtime-viewer/highlights-Dcx2AVJg.js +1342 -0
- package/dist/runtime-viewer/hjson-sMCeQDUn.js +2 -0
- package/dist/runtime-viewer/hlsl-WeeDt2Wp.js +2 -0
- package/dist/runtime-viewer/horizon-B8n8qcHx.js +84 -0
- package/dist/runtime-viewer/horizon-aRqT-seq.js +3 -0
- package/dist/runtime-viewer/horizon-bright-DACv8zK_.js +84 -0
- package/dist/runtime-viewer/horizon-bright-DEevCdc_.js +3 -0
- package/dist/runtime-viewer/houston-CsNpjGGD.js +194 -0
- package/dist/runtime-viewer/houston-Dg2jxmDJ.js +3 -0
- package/dist/runtime-viewer/html-CPjHaxbO.js +1 -0
- package/dist/runtime-viewer/html-Di2iyAsX.js +10 -0
- package/dist/runtime-viewer/html-derivative-Rauq0RVM.js +4 -0
- package/dist/runtime-viewer/http-CkmWBydm.js +13 -0
- package/dist/runtime-viewer/hurl-BGjXa70x.js +11 -0
- package/dist/runtime-viewer/hxml-Bo5YTIXF.js +4 -0
- package/dist/runtime-viewer/hy-C-tRiv34.js +2 -0
- package/dist/runtime-viewer/imba-v7ELlTL6.js +2 -0
- package/dist/runtime-viewer/ini-DtrnrQj2.js +2 -0
- package/dist/runtime-viewer/java-DVlvG-lL.js +1 -0
- package/dist/runtime-viewer/java-DzBtATHG.js +4 -0
- package/dist/runtime-viewer/javascript--K52AMOb.js +4 -0
- package/dist/runtime-viewer/javascript-soGjNmbd.js +1 -0
- package/dist/runtime-viewer/jinja-CZBKZHkS.js +4 -0
- package/dist/runtime-viewer/jison-Bqt-LhEh.js +4 -0
- package/dist/runtime-viewer/json-DN-CB1kQ.js +4 -0
- package/dist/runtime-viewer/json-D_yoNICS.js +1 -0
- package/dist/runtime-viewer/json5-BdfUTtLp.js +2 -0
- package/dist/runtime-viewer/jsonc-ElU8pfhL.js +1 -0
- package/dist/runtime-viewer/jsonc-IKox2JSV.js +2 -0
- package/dist/runtime-viewer/jsonl-CfuX4G6U.js +2 -0
- package/dist/runtime-viewer/jsonnet-Yq9KcR8E.js +2 -0
- package/dist/runtime-viewer/jssm-BvR7SnkK.js +2 -0
- package/dist/runtime-viewer/jsx-D_XQMdaK.js +4 -0
- package/dist/runtime-viewer/jsx-snoZUiUS.js +1 -0
- package/dist/runtime-viewer/julia-C8lwf2tT.js +15 -0
- package/dist/runtime-viewer/just-CQnb5pIW.js +17 -0
- package/dist/runtime-viewer/kanagawa-dragon-Cx4OB0dC.js +3 -0
- package/dist/runtime-viewer/kanagawa-dragon-OValCvAZ.js +146 -0
- package/dist/runtime-viewer/kanagawa-lotus-C1sYcneT.js +146 -0
- package/dist/runtime-viewer/kanagawa-lotus-TwFRI7_8.js +3 -0
- package/dist/runtime-viewer/kanagawa-wave-BJYCyv2X.js +146 -0
- package/dist/runtime-viewer/kanagawa-wave-BiOn36ux.js +3 -0
- package/dist/runtime-viewer/kdl-D97SquIS.js +2 -0
- package/dist/runtime-viewer/kotlin-EmJjLeRz.js +2 -0
- package/dist/runtime-viewer/kotlin-LwxBtHgj.js +1 -0
- package/dist/runtime-viewer/kusto-DHanPw0g.js +2 -0
- package/dist/runtime-viewer/langs-D4STZqO4.js +1322 -0
- package/dist/runtime-viewer/laserwave-CV_0dg5c.js +71 -0
- package/dist/runtime-viewer/laserwave-PpzazpgI.js +3 -0
- package/dist/runtime-viewer/latest-events-iiWwpIck-BTK0vSlR.js +3657 -0
- package/dist/runtime-viewer/latex-Csew0MLK.js +4 -0
- package/dist/runtime-viewer/lean-E61_xvh-.js +2 -0
- package/dist/runtime-viewer/less-Bis9Y9oi.js +2 -0
- package/dist/runtime-viewer/lib-B7rl8i0A.js +1712 -0
- package/dist/runtime-viewer/light-plus-DOInvhGO.js +133 -0
- package/dist/runtime-viewer/light-plus-DnhX_5eg.js +3 -0
- package/dist/runtime-viewer/liquid-CuxywBoN.js +13 -0
- package/dist/runtime-viewer/llvm-DOIFdCJg.js +2 -0
- package/dist/runtime-viewer/loader-NcDPTN_h.js +79 -0
- package/dist/runtime-viewer/log-Awf6LbyY.js +2 -0
- package/dist/runtime-viewer/logo-Cn9nW1nw.js +2 -0
- package/dist/runtime-viewer/lua-BtojQCeL.js +5 -0
- package/dist/runtime-viewer/luau-DHSqpUrS.js +2 -0
- package/dist/runtime-viewer/make-CJ4tc-MS.js +2 -0
- package/dist/runtime-viewer/markdown-CNVZ8ok-.js +2 -0
- package/dist/runtime-viewer/markdown-Co5Krewy.js +1 -0
- package/dist/runtime-viewer/marko-CRIKirQp.js +13 -0
- package/dist/runtime-viewer/material-theme-D5uz9rje.js +3 -0
- package/dist/runtime-viewer/material-theme-darker-DbzCDLF8.js +92 -0
- package/dist/runtime-viewer/material-theme-darker-Dqalv5VE.js +3 -0
- package/dist/runtime-viewer/material-theme-lighter-CVJ0oH_V.js +3 -0
- package/dist/runtime-viewer/material-theme-lighter-CytgYJOd.js +92 -0
- package/dist/runtime-viewer/material-theme-ocean-BgKy5sU3.js +92 -0
- package/dist/runtime-viewer/material-theme-ocean-CRXu0cdY.js +3 -0
- package/dist/runtime-viewer/material-theme-palenight-C6iiJcUB.js +3 -0
- package/dist/runtime-viewer/material-theme-palenight-DZK7nXDy.js +92 -0
- package/dist/runtime-viewer/material-theme-yF3uaT0h.js +92 -0
- package/dist/runtime-viewer/matlab-Dn3Clolk.js +2 -0
- package/dist/runtime-viewer/mdc-D0bRQBcT.js +11 -0
- package/dist/runtime-viewer/mdx-C5T-IRbL.js +2 -0
- package/dist/runtime-viewer/mdx-DM8tlqVf.js +1 -0
- package/dist/runtime-viewer/mermaid-C4AYlmk3.js +2 -0
- package/dist/runtime-viewer/min-dark-BGA1sv8W.js +3 -0
- package/dist/runtime-viewer/min-dark-C1XOhi4b.js +109 -0
- package/dist/runtime-viewer/min-light-Bi5vyNSJ.js +109 -0
- package/dist/runtime-viewer/min-light-CYXBjZLR.js +3 -0
- package/dist/runtime-viewer/mipsasm-Bwfx99oh.js +2 -0
- package/dist/runtime-viewer/mojo-CRl08dek.js +2 -0
- package/dist/runtime-viewer/monokai-D9Ylqri2.js +149 -0
- package/dist/runtime-viewer/monokai-i6D4lZa3.js +3 -0
- package/dist/runtime-viewer/moonbit-CF1zF40g.js +2 -0
- package/dist/runtime-viewer/move-BP-e5w2W.js +2 -0
- package/dist/runtime-viewer/narrat-CrPIhy6S.js +2 -0
- package/dist/runtime-viewer/nextflow-D_hnf_jC.js +4 -0
- package/dist/runtime-viewer/nextflow-groovy-BLKP0md9.js +2 -0
- package/dist/runtime-viewer/nginx-87WOq-zh.js +4 -0
- package/dist/runtime-viewer/night-owl-BIeenDB2.js +175 -0
- package/dist/runtime-viewer/night-owl-NpADjULE.js +3 -0
- package/dist/runtime-viewer/night-owl-light-CPFD_YWe.js +3 -0
- package/dist/runtime-viewer/night-owl-light-cj7zoq2Q.js +176 -0
- package/dist/runtime-viewer/nim-CDdExumk.js +19 -0
- package/dist/runtime-viewer/nix-D_5rVnnj.js +2 -0
- package/dist/runtime-viewer/nord-DtfXNtHW.js +3 -0
- package/dist/runtime-viewer/nord-LUKuJt-q.js +115 -0
- package/dist/runtime-viewer/nsis-R3iO3ArE.js +2 -0
- package/dist/runtime-viewer/nushell-Ctp5mfhf.js +2 -0
- package/dist/runtime-viewer/objective-c-DPJeQfV6.js +2 -0
- package/dist/runtime-viewer/objective-cpp-1I3jYeMe.js +2 -0
- package/dist/runtime-viewer/ocaml-DOrLjeoA.js +2 -0
- package/dist/runtime-viewer/odin-CyrMbkLb.js +2 -0
- package/dist/runtime-viewer/one-dark-pro-CoHxEOhG.js +3 -0
- package/dist/runtime-viewer/one-dark-pro-DJGEbENq.js +111 -0
- package/dist/runtime-viewer/one-light-CTMiOsB9.js +137 -0
- package/dist/runtime-viewer/one-light-DRcvOwa6.js +3 -0
- package/dist/runtime-viewer/openscad-BdifjW6z.js +2 -0
- package/dist/runtime-viewer/org-DqaIvCPP.js +99 -0
- package/dist/runtime-viewer/pascal-CWF557wL.js +2 -0
- package/dist/runtime-viewer/perl-CNf3SVpk.js +15 -0
- package/dist/runtime-viewer/php-BPw4EY34.js +17 -0
- package/dist/runtime-viewer/php-CftiA0NJ.js +1 -0
- package/dist/runtime-viewer/pierre-dark-Bdb1mzqq.js +153 -0
- package/dist/runtime-viewer/pierre-dark-C6-jOUHM.js +3 -0
- package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-DCuPErCj.js +153 -0
- package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-duePIMEV.js +3 -0
- package/dist/runtime-viewer/pierre-dark-soft-BAcQZBxz.js +3 -0
- package/dist/runtime-viewer/pierre-dark-soft-BbEG7yMD.js +153 -0
- package/dist/runtime-viewer/pierre-dark-tritanopia-DOpkeqXJ.js +153 -0
- package/dist/runtime-viewer/pierre-dark-tritanopia-D_B2XvmS.js +3 -0
- package/dist/runtime-viewer/pierre-dark-vibrant-Cjjp0Ett.js +3 -0
- package/dist/runtime-viewer/pierre-dark-vibrant-wch72KIm.js +153 -0
- package/dist/runtime-viewer/pierre-light-BOFVfKvu.js +153 -0
- package/dist/runtime-viewer/pierre-light-LcifP5tb.js +3 -0
- package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BQUu7m7e.js +153 -0
- package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BwLihlmJ.js +3 -0
- package/dist/runtime-viewer/pierre-light-soft-BOBDofkU.js +153 -0
- package/dist/runtime-viewer/pierre-light-soft-X5R_lHC5.js +3 -0
- package/dist/runtime-viewer/pierre-light-tritanopia-DHKQqobW.js +153 -0
- package/dist/runtime-viewer/pierre-light-tritanopia-_xB326N3.js +3 -0
- package/dist/runtime-viewer/pierre-light-vibrant-BQ8t4eUq.js +153 -0
- package/dist/runtime-viewer/pierre-light-vibrant-CpysSVqa.js +3 -0
- package/dist/runtime-viewer/pkl-D57k4LLs.js +2 -0
- package/dist/runtime-viewer/plastic-B9GSmjqY.js +3 -0
- package/dist/runtime-viewer/plastic-BVwrkRXf.js +124 -0
- package/dist/runtime-viewer/plsql-CFYD0AaB.js +2 -0
- package/dist/runtime-viewer/po-3OOmP4Qc.js +2 -0
- package/dist/runtime-viewer/poimandres-BOYLUaPj.js +3 -0
- package/dist/runtime-viewer/poimandres-pq5u2ANt.js +111 -0
- package/dist/runtime-viewer/polar-B5m1_AiD.js +2 -0
- package/dist/runtime-viewer/postcss-DaNMuZdy.js +2 -0
- package/dist/runtime-viewer/powerquery-Ds3ATR9s.js +2 -0
- package/dist/runtime-viewer/powershell-C6Oz4_dd.js +2 -0
- package/dist/runtime-viewer/prisma-RRr5YdGg.js +2 -0
- package/dist/runtime-viewer/prolog-DSStdQTq.js +2 -0
- package/dist/runtime-viewer/proto-Chh6Q5CM.js +2 -0
- package/dist/runtime-viewer/pug-jgpaAltF.js +11 -0
- package/dist/runtime-viewer/puppet-BLsUK3yq.js +2 -0
- package/dist/runtime-viewer/purescript-B02W4seQ.js +2 -0
- package/dist/runtime-viewer/python-BHaXfePs.js +2 -0
- package/dist/runtime-viewer/python-CqjzihlT.js +1 -0
- package/dist/runtime-viewer/qml-LuB2sppG.js +4 -0
- package/dist/runtime-viewer/qmldir-COlmh4fX.js +2 -0
- package/dist/runtime-viewer/qss-DQUGDdeL.js +2 -0
- package/dist/runtime-viewer/r-DLQ-WMyZ.js +4 -0
- package/dist/runtime-viewer/racket-Dh3q-EfD.js +2 -0
- package/dist/runtime-viewer/raku-CdFQrZmh.js +2 -0
- package/dist/runtime-viewer/razor-DyYB-qxm.js +9 -0
- package/dist/runtime-viewer/rbs-jMgpabM7.js +2 -0
- package/dist/runtime-viewer/red-CCCMngeG.js +3 -0
- package/dist/runtime-viewer/red-Dab29wid.js +153 -0
- package/dist/runtime-viewer/reg-BY6GKaZK.js +2 -0
- package/dist/runtime-viewer/regexp-DGXwIvno.js +4 -0
- package/dist/runtime-viewer/rel-DjgjjaPM.js +2 -0
- package/dist/runtime-viewer/riscv-e0swiQQT.js +2 -0
- package/dist/runtime-viewer/rolldown-runtime-CwxnZyOB.js +22 -0
- package/dist/runtime-viewer/ron-Ba9vjMyp.js +2 -0
- package/dist/runtime-viewer/rose-pine-B-dgSkpN.js +3 -0
- package/dist/runtime-viewer/rose-pine-BtbnV2yy.js +123 -0
- package/dist/runtime-viewer/rose-pine-dawn-Bdn8gWo3.js +123 -0
- package/dist/runtime-viewer/rose-pine-dawn-wnKgbnkN.js +3 -0
- package/dist/runtime-viewer/rose-pine-moon-Bo6Tj-LK.js +3 -0
- package/dist/runtime-viewer/rose-pine-moon-f0wTyd2e.js +123 -0
- package/dist/runtime-viewer/rosmsg-33FkgZa7.js +2 -0
- package/dist/runtime-viewer/rst-B4Blahjm.js +21 -0
- package/dist/runtime-viewer/ruby-DYURXRgy.js +1 -0
- package/dist/runtime-viewer/ruby-ZzNzsyR7.js +29 -0
- package/dist/runtime-viewer/rust-CbGaYpW0.js +2 -0
- package/dist/runtime-viewer/rust-DesRWqWI.js +1 -0
- package/dist/runtime-viewer/sandbox-ui-z5RGk327.css +2 -0
- package/dist/runtime-viewer/sas-y9RoKb_L.js +4 -0
- package/dist/runtime-viewer/sass-B4OMkGSD.js +2 -0
- package/dist/runtime-viewer/scala--rETK160.js +2 -0
- package/dist/runtime-viewer/scheme-CvovbBgk.js +2 -0
- package/dist/runtime-viewer/scss-DcI9-N4n.js +1 -0
- package/dist/runtime-viewer/scss-DopO6P6Z.js +5 -0
- package/dist/runtime-viewer/sdbl-BibMD0HR.js +2 -0
- package/dist/runtime-viewer/shaderlab-TCf2V7Bu.js +4 -0
- package/dist/runtime-viewer/shellscript-CMmvhdtO.js +4 -0
- package/dist/runtime-viewer/shellsession-C-hBmRFA.js +4 -0
- package/dist/runtime-viewer/shiki-CKiqbkeh.js +472 -0
- package/dist/runtime-viewer/slack-dark-Cdsw60PX.js +71 -0
- package/dist/runtime-viewer/slack-dark-awEjS_Yb.js +3 -0
- package/dist/runtime-viewer/slack-ochin-BKdp7_AN.js +94 -0
- package/dist/runtime-viewer/slack-ochin-CabfdAmS.js +3 -0
- package/dist/runtime-viewer/smalltalk-DxjZ-YtB.js +2 -0
- package/dist/runtime-viewer/smithy-tPvbDXO4.js +2 -0
- package/dist/runtime-viewer/snazzy-light-BYOmyMID.js +80 -0
- package/dist/runtime-viewer/snazzy-light-DqG5DUoz.js +3 -0
- package/dist/runtime-viewer/solarized-dark-DW7IHQvx.js +3 -0
- package/dist/runtime-viewer/solarized-dark-DbW2e0tz.js +147 -0
- package/dist/runtime-viewer/solarized-light-CAggmb5U.js +147 -0
- package/dist/runtime-viewer/solarized-light-DHtUsXC-.js +3 -0
- package/dist/runtime-viewer/solidity-CzRNc7l4.js +2 -0
- package/dist/runtime-viewer/solidity-DcnQs1tt.js +1 -0
- package/dist/runtime-viewer/soy-Di0gqQmR.js +4 -0
- package/dist/runtime-viewer/sparql-9pWczk0C.js +4 -0
- package/dist/runtime-viewer/splunk-mpquMt_8.js +2 -0
- package/dist/runtime-viewer/sql-BKQgqUK-.js +4 -0
- package/dist/runtime-viewer/sql-CWnPlVS6.js +1 -0
- package/dist/runtime-viewer/ssh-config-DcnVpK-n.js +2 -0
- package/dist/runtime-viewer/stata-D1hxcba5.js +4 -0
- package/dist/runtime-viewer/stream-tokenizer-BWCJrHj9.js +97 -0
- package/dist/runtime-viewer/stylus-Bk8v-7oM.js +2 -0
- package/dist/runtime-viewer/surrealql-D20GSlYu.js +4 -0
- package/dist/runtime-viewer/svelte-C1MdtiIu.js +13 -0
- package/dist/runtime-viewer/swift-1fpvFsbf.js +2 -0
- package/dist/runtime-viewer/swift-DdLix5IB.js +1 -0
- package/dist/runtime-viewer/synthwave-84-DEoLt5E0.js +3 -0
- package/dist/runtime-viewer/synthwave-84-DYyyPr4g.js +397 -0
- package/dist/runtime-viewer/system-verilog-9E6eQ6kG.js +2 -0
- package/dist/runtime-viewer/systemd-CS6cln6J.js +2 -0
- package/dist/runtime-viewer/talonscript-COzgILOx.js +2 -0
- package/dist/runtime-viewer/tasl-CrL-TM3j.js +2 -0
- package/dist/runtime-viewer/tcl-BK--alTs.js +2 -0
- package/dist/runtime-viewer/templ-DKjVFvC3.js +11 -0
- package/dist/runtime-viewer/terraform-BKVT4lTN.js +2 -0
- package/dist/runtime-viewer/tex-BMGJ-FHF.js +5 -0
- package/dist/runtime-viewer/themes-D2drbHm6.js +235 -0
- package/dist/runtime-viewer/tokyo-night-BDW-4G1n.js +3 -0
- package/dist/runtime-viewer/tokyo-night-CnwkSle4.js +140 -0
- package/dist/runtime-viewer/toml-BygInOIB.js +1 -0
- package/dist/runtime-viewer/toml-CXAVGmfI.js +2 -0
- package/dist/runtime-viewer/ts-tags-BMg-6tE-.js +37 -0
- package/dist/runtime-viewer/tsv-r5fpGho9.js +2 -0
- package/dist/runtime-viewer/tsx-CdftCu0x.js +1 -0
- package/dist/runtime-viewer/tsx-sVSKAISV.js +4 -0
- package/dist/runtime-viewer/turtle-BbiQBLu0.js +2 -0
- package/dist/runtime-viewer/twig-09z_6B11.js +17 -0
- package/dist/runtime-viewer/typescript-COKJUNHB.js +4 -0
- package/dist/runtime-viewer/typescript-DCN8T-9u.js +1 -0
- package/dist/runtime-viewer/typespec-CtiCKN_c.js +2 -0
- package/dist/runtime-viewer/typst-D_sC_VAT.js +119 -0
- package/dist/runtime-viewer/unwrapDefault-CNWG9hDr.js +5 -0
- package/dist/runtime-viewer/v-BdhLiTpS.js +2 -0
- package/dist/runtime-viewer/vala-sKTZx7aP.js +2 -0
- package/dist/runtime-viewer/vb-BAyoHiqq.js +2 -0
- package/dist/runtime-viewer/verilog-DrDp-nNs.js +2 -0
- package/dist/runtime-viewer/vesper-BOAJeYxj.js +3 -0
- package/dist/runtime-viewer/vesper-DMgHxe32.js +83 -0
- package/dist/runtime-viewer/vhdl-D4xoRBgL.js +2 -0
- package/dist/runtime-viewer/viml-C41wSeLL.js +2 -0
- package/dist/runtime-viewer/vitesse-black-CxSugKJt.js +3 -0
- package/dist/runtime-viewer/vitesse-black-D8_Gc8uG.js +183 -0
- package/dist/runtime-viewer/vitesse-dark-Dg-H5YXt.js +183 -0
- package/dist/runtime-viewer/vitesse-dark-DvdlNt-O.js +3 -0
- package/dist/runtime-viewer/vitesse-light-BU-cJySG.js +183 -0
- package/dist/runtime-viewer/vitesse-light-q0_0oW1f.js +3 -0
- package/dist/runtime-viewer/vue-BbJX7dLK.js +20 -0
- package/dist/runtime-viewer/vue-html-DvOnaPby.js +4 -0
- package/dist/runtime-viewer/vue-vine-NYLtCzNK.js +17 -0
- package/dist/runtime-viewer/vyper-D4A1KnBn.js +2 -0
- package/dist/runtime-viewer/wasm-CVPYyV9Y.js +2 -0
- package/dist/runtime-viewer/wasm-DrbRUT8q.js +3 -0
- package/dist/runtime-viewer/wenyan-Czq8OMMr.js +2 -0
- package/dist/runtime-viewer/wgsl-C_l-ZpBu.js +2 -0
- package/dist/runtime-viewer/wikitext-B7epQZx2.js +2 -0
- package/dist/runtime-viewer/wit-DswQpcNx.js +2 -0
- package/dist/runtime-viewer/wolfram-CSEjVwta.js +2 -0
- package/dist/runtime-viewer/xml-CBKvpQFb.js +1 -0
- package/dist/runtime-viewer/xml-Ct7jrUZw.js +5 -0
- package/dist/runtime-viewer/xsl-DovPFRzJ.js +4 -0
- package/dist/runtime-viewer/yaml-BfN4AWuy.js +4 -0
- package/dist/runtime-viewer/yaml-DWRq8wls.js +1 -0
- package/dist/runtime-viewer/zenscript-YvYHF5y3.js +2 -0
- package/dist/runtime-viewer/zig-BgXWauKx.js +2 -0
- package/dist/styles.css +192 -150
- package/dist/tailwind.css +156 -150
- package/dist/{run-C8HeXGk3.js → trace-workspace-C8dHRBDV.js} +2 -3
- package/dist/use-document-D6Z9oFLm.js +120 -0
- package/dist/{workbench-BozOdGCX.js → workbench-Z9wbei53.js} +4 -172
- package/dist/workbench.js +2 -1
- package/dist/{workspace-CJnBqCqj.js → workspace-CzikYt_y.js} +5 -364
- package/dist/workspace-files-pane-DB9Nvwh4.js +367 -0
- package/dist/workspace-viewer.js +44403 -0
- package/dist/workspace.js +2 -1
- package/package.json +9 -4
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
import { t as e } from "./lib-B7rl8i0A.js";
|
|
2
|
+
import { t } from "./unwrapDefault-CNWG9hDr.js";
|
|
3
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/highlighter/highlighterType.js
|
|
4
|
+
var n, r = 0, i = class extends Error {
|
|
5
|
+
constructor() {
|
|
6
|
+
super("Highlighter is disposed"), this.name = "HighlighterDisposedError";
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
function a() {
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function o(e) {
|
|
13
|
+
return e ?? n ?? "shiki-js";
|
|
14
|
+
}
|
|
15
|
+
function s(e) {
|
|
16
|
+
if (n != null && n !== e) throw Error(`Cannot load the "${e}" highlighter while "${n}" is in use. Only one highlighter type can be active at a time; dispose every "${n}" instance (disposeHighlighter() disposes the shared one) before switching.`);
|
|
17
|
+
}
|
|
18
|
+
function c(e) {
|
|
19
|
+
s(e), n = e, r++;
|
|
20
|
+
}
|
|
21
|
+
function l() {
|
|
22
|
+
r--, r === 0 && (n = void 0);
|
|
23
|
+
}
|
|
24
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/isWorkerContext.js
|
|
25
|
+
function u() {
|
|
26
|
+
return typeof WorkerGlobalScope < "u" && typeof self < "u" && self instanceof WorkerGlobalScope;
|
|
27
|
+
}
|
|
28
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/highlighter/themes/createCachedLoader.js
|
|
29
|
+
function d(e) {
|
|
30
|
+
let t;
|
|
31
|
+
return () => t ??= e().then((e) => (t = e, e), (e) => {
|
|
32
|
+
throw t = void 0, e;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// node_modules/.pnpm/@pierre+theming@1.0.2_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1_shiki@4.5.0/node_modules/@pierre/theming/dist/modules/createThemeResolver.js
|
|
36
|
+
var f = class extends Error {
|
|
37
|
+
constructor(e) {
|
|
38
|
+
super(`Theme "${e}" is already registered`), this.name = "DuplicateThemeError";
|
|
39
|
+
}
|
|
40
|
+
}, p = class extends Error {
|
|
41
|
+
constructor(e) {
|
|
42
|
+
super(`No loader registered for theme "${e}"`), this.name = "UnregisteredThemeError";
|
|
43
|
+
}
|
|
44
|
+
}, m = class extends Error {
|
|
45
|
+
constructor(e) {
|
|
46
|
+
super(`Theme "${e}" has not been resolved`), this.name = "UnresolvedThemeError";
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
function h(e = {}) {
|
|
50
|
+
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 0;
|
|
51
|
+
function o(e, t) {
|
|
52
|
+
if (n.has(e)) throw new f(e);
|
|
53
|
+
n.set(e, t);
|
|
54
|
+
}
|
|
55
|
+
function s(e, t) {
|
|
56
|
+
return !n.has(e) && (n.set(e, t), !0);
|
|
57
|
+
}
|
|
58
|
+
function c(e) {
|
|
59
|
+
return n.has(e);
|
|
60
|
+
}
|
|
61
|
+
function l(o) {
|
|
62
|
+
let s = r.get(o);
|
|
63
|
+
if (s !== void 0) return Promise.resolve(s);
|
|
64
|
+
let c = i.get(o);
|
|
65
|
+
if (c !== void 0) return c;
|
|
66
|
+
let l = n.get(o);
|
|
67
|
+
if (l === void 0 && e.fallbackLoader === void 0) return Promise.reject(new p(o));
|
|
68
|
+
let u = a, d = Promise.resolve().then(() => l === void 0 ? e.fallbackLoader?.(o) : l()).then(async (n) => {
|
|
69
|
+
if (n === void 0) throw new p(o);
|
|
70
|
+
let s = t(n), c = e.normalizeTheme === void 0 ? s : await e.normalizeTheme(s, o);
|
|
71
|
+
return u === a && r.set(o, c), i.get(o) === d && i.delete(o), c;
|
|
72
|
+
}).catch((e) => {
|
|
73
|
+
throw i.get(o) === d && i.delete(o), e;
|
|
74
|
+
});
|
|
75
|
+
return i.set(o, d), d;
|
|
76
|
+
}
|
|
77
|
+
function u(e) {
|
|
78
|
+
return Promise.all(e.map((e) => l(e)));
|
|
79
|
+
}
|
|
80
|
+
function d(e, t) {
|
|
81
|
+
r.set(e, t);
|
|
82
|
+
}
|
|
83
|
+
function h(e) {
|
|
84
|
+
for (let [t, n] of e) d(t, n);
|
|
85
|
+
}
|
|
86
|
+
function g(e) {
|
|
87
|
+
return r.get(e);
|
|
88
|
+
}
|
|
89
|
+
function _(e) {
|
|
90
|
+
let t = [];
|
|
91
|
+
for (let n of e) {
|
|
92
|
+
let e = r.get(n);
|
|
93
|
+
if (e === void 0) throw new m(n);
|
|
94
|
+
t.push(e);
|
|
95
|
+
}
|
|
96
|
+
return t;
|
|
97
|
+
}
|
|
98
|
+
function v(e) {
|
|
99
|
+
return r.has(e);
|
|
100
|
+
}
|
|
101
|
+
function y(e) {
|
|
102
|
+
for (let t of e) if (!r.has(t)) return !1;
|
|
103
|
+
return !0;
|
|
104
|
+
}
|
|
105
|
+
function b(e) {
|
|
106
|
+
let t = r.get(e);
|
|
107
|
+
return t === void 0 ? l(e) : t;
|
|
108
|
+
}
|
|
109
|
+
function x() {
|
|
110
|
+
a++, r.clear(), i.clear();
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
clearResolvedThemes: x,
|
|
114
|
+
getResolvedOrResolveTheme: b,
|
|
115
|
+
getResolvedTheme: g,
|
|
116
|
+
getResolvedThemes: _,
|
|
117
|
+
hasRegisteredTheme: c,
|
|
118
|
+
hasResolvedTheme: v,
|
|
119
|
+
hasResolvedThemes: y,
|
|
120
|
+
registerTheme: o,
|
|
121
|
+
registerThemeIfAbsent: s,
|
|
122
|
+
resolveTheme: l,
|
|
123
|
+
resolveThemes: u,
|
|
124
|
+
seedResolvedTheme: d,
|
|
125
|
+
seedResolvedThemes: h
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/highlighter/themes/themeResolver.js
|
|
129
|
+
var g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), v = d(() => import("./loader-NcDPTN_h.js")), y = d(() => import("./themes-D2drbHm6.js")), b = d(() => import("./core-CpUX80b1.js")), x = [
|
|
130
|
+
["editor.lineHighlightBackground", "editor.active_line.background"],
|
|
131
|
+
["editor.selectionBackground", "element.selected"],
|
|
132
|
+
["editor.findMatchBackground", "search.match_background"],
|
|
133
|
+
["editor.findMatchHighlightBackground", "search.match_background"],
|
|
134
|
+
["editorBracketMatch.background", "editor.document_highlight.bracket_background"],
|
|
135
|
+
["editorError.foreground", "error"],
|
|
136
|
+
["editorWarning.foreground", "warning"],
|
|
137
|
+
["editorInfo.foreground", "info"],
|
|
138
|
+
["editorHint.foreground", "hint"],
|
|
139
|
+
[
|
|
140
|
+
"gitDecoration.addedResourceForeground",
|
|
141
|
+
"created",
|
|
142
|
+
"terminal.ansi.green"
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
"gitDecoration.deletedResourceForeground",
|
|
146
|
+
"deleted",
|
|
147
|
+
"terminal.ansi.red"
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
"gitDecoration.modifiedResourceForeground",
|
|
151
|
+
"modified",
|
|
152
|
+
"terminal.ansi.blue"
|
|
153
|
+
]
|
|
154
|
+
];
|
|
155
|
+
function S(e, t) {
|
|
156
|
+
let n = "themes" in t ? t.themes[0] : t;
|
|
157
|
+
if (n == null) throw Error(`Theme "${e}" is an empty Zed theme family.`);
|
|
158
|
+
let r = {
|
|
159
|
+
...n,
|
|
160
|
+
name: e
|
|
161
|
+
}, i = {};
|
|
162
|
+
for (let [e, t] of Object.entries(r.style)) typeof t == "string" && (i[e] = t);
|
|
163
|
+
let a = r.style.players?.[0];
|
|
164
|
+
a?.cursor != null && (i["editorCursor.foreground"] ??= a.cursor), a?.selection != null && (i["editor.selectionBackground"] ??= a.selection);
|
|
165
|
+
for (let [e, ...t] of x) {
|
|
166
|
+
if (i[e] != null) continue;
|
|
167
|
+
let n = t.find((e) => i[e] != null);
|
|
168
|
+
n != null && (i[e] = i[n]);
|
|
169
|
+
}
|
|
170
|
+
if (r.cssVariables === !0) i["editor.foreground"] = "var(--hls-foreground)", i["editor.background"] = "var(--hls-background)";
|
|
171
|
+
else if (typeof r.cssVariables == "object") {
|
|
172
|
+
i["editor.foreground"] ??= i.text ?? i.foreground ?? "foreground", i["editor.background"] ??= i.background ?? "background";
|
|
173
|
+
let { prefix: e = "--hls-", defaults: t } = r.cssVariables;
|
|
174
|
+
for (let [n, r] of Object.entries(i)) {
|
|
175
|
+
let a = t?.[r];
|
|
176
|
+
i[n] = `var(${e}${r}${a ? `, ${a}` : ""})`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
let o = r.appearance === "light" ? "light" : "dark";
|
|
180
|
+
return {
|
|
181
|
+
name: e,
|
|
182
|
+
type: o,
|
|
183
|
+
colors: i,
|
|
184
|
+
zed: r,
|
|
185
|
+
fg: i["editor.foreground"] ?? i.text ?? i.foreground ?? (o === "light" ? "#333333" : "#bbbbbb"),
|
|
186
|
+
bg: i["editor.background"] ?? i.background ?? (o === "light" ? "#ffffff" : "#1e1e1e")
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function ee(e) {
|
|
190
|
+
let t = _.get(e);
|
|
191
|
+
return t ?? (t = h({
|
|
192
|
+
fallbackLoader: async (t) => {
|
|
193
|
+
if (typeof __DIFFS_WORKER__ < "u" ? __DIFFS_WORKER__ : u()) throw Error(`Theme "${t}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedThemes parameter.`);
|
|
194
|
+
let n = g.get(t);
|
|
195
|
+
if (e === "highlights") {
|
|
196
|
+
let e = n?.zed ?? n?.diffs;
|
|
197
|
+
if (e != null) {
|
|
198
|
+
let n = await e(), r = "default" in n ? n.default : n;
|
|
199
|
+
if ("zed" in r && r.zed != null) return r;
|
|
200
|
+
if ("style" in r || "themes" in r) return S(t, r);
|
|
201
|
+
throw Error(`Theme "${t}" is a TextMate theme; register a Zed theme with registerCustomTheme(name, loader, 'zed') for Highlights.`);
|
|
202
|
+
}
|
|
203
|
+
let r = v(), { themes: i } = r instanceof Promise ? await r : r, a = i[t];
|
|
204
|
+
if (a != null) return S(t, (await a()).default);
|
|
205
|
+
if (n?.textmate != null) throw Error(`Theme "${t}" is only registered for TextMate; use registerCustomTheme(name, loader, 'zed') for Highlights.`);
|
|
206
|
+
} else {
|
|
207
|
+
let e = n?.textmate ?? n?.diffs, r;
|
|
208
|
+
if (e != null) {
|
|
209
|
+
let t = await e();
|
|
210
|
+
r = "default" in t ? t.default : t;
|
|
211
|
+
} else {
|
|
212
|
+
let e = y(), { themes: i } = e instanceof Promise ? await e : e, a = i.getTheme(t);
|
|
213
|
+
if (a == null && n?.zed != null) throw Error(`Theme "${t}" is only registered for Zed; use registerCustomTheme(name, loader, 'textmate') for Shiki.`);
|
|
214
|
+
if (a == null) throw Error(`No valid theme loader registered for "${t}"`);
|
|
215
|
+
let o = await a.load();
|
|
216
|
+
r = "default" in o ? o.default : o;
|
|
217
|
+
}
|
|
218
|
+
if ("style" in r || "themes" in r) throw Error(`Theme "${t}" is a Zed theme; use preferredHighlighter: 'highlights' or register a TextMate theme for Shiki.`);
|
|
219
|
+
let i = b(), { normalizeTheme: a, createCssVariablesTheme: o } = i instanceof Promise ? await i : i;
|
|
220
|
+
if ("cssVariables" in r && r.cssVariables != null) return {
|
|
221
|
+
...r,
|
|
222
|
+
textmate: a(o(r.cssVariables))
|
|
223
|
+
};
|
|
224
|
+
if ("textmate" in r && r.textmate != null) return {
|
|
225
|
+
...r,
|
|
226
|
+
textmate: a(r.textmate)
|
|
227
|
+
};
|
|
228
|
+
let s = a(r);
|
|
229
|
+
return {
|
|
230
|
+
name: s.name,
|
|
231
|
+
type: s.type,
|
|
232
|
+
fg: s.fg,
|
|
233
|
+
bg: s.bg,
|
|
234
|
+
colors: s.colors,
|
|
235
|
+
textmate: s
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
throw Error(`No valid theme loader registered for "${t}"`);
|
|
239
|
+
},
|
|
240
|
+
normalizeTheme: (e, t) => {
|
|
241
|
+
if (e.name !== t) throw Error(`resolvedTheme: themeName: ${t} does not match theme.name: ${e.name}`);
|
|
242
|
+
return e;
|
|
243
|
+
}
|
|
244
|
+
}), _.set(e, t)), t;
|
|
245
|
+
}
|
|
246
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/hast_utils.js
|
|
247
|
+
function C(e) {
|
|
248
|
+
return {
|
|
249
|
+
type: "text",
|
|
250
|
+
value: e
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function w({ tagName: e, children: t = [], properties: n = {} }) {
|
|
254
|
+
return {
|
|
255
|
+
type: "element",
|
|
256
|
+
tagName: e,
|
|
257
|
+
properties: n,
|
|
258
|
+
children: t
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
function te({ name: e, width: t = 16, height: n = 16, properties: r }) {
|
|
262
|
+
return w({
|
|
263
|
+
tagName: "svg",
|
|
264
|
+
properties: {
|
|
265
|
+
width: t,
|
|
266
|
+
height: n,
|
|
267
|
+
viewBox: "0 0 16 16",
|
|
268
|
+
...r
|
|
269
|
+
},
|
|
270
|
+
children: [w({
|
|
271
|
+
tagName: "use",
|
|
272
|
+
properties: { href: `#${e.replace(/^#/, "")}` }
|
|
273
|
+
})]
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
function T(e) {
|
|
277
|
+
return w({
|
|
278
|
+
tagName: "div",
|
|
279
|
+
properties: { "data-gutter": "" },
|
|
280
|
+
children: e
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function E(e, t, n, r = {}) {
|
|
284
|
+
return w({
|
|
285
|
+
tagName: "div",
|
|
286
|
+
properties: {
|
|
287
|
+
"data-line-type": e,
|
|
288
|
+
"data-column-number": t,
|
|
289
|
+
"data-line-index": n,
|
|
290
|
+
...r
|
|
291
|
+
},
|
|
292
|
+
children: t == null ? void 0 : [w({
|
|
293
|
+
tagName: "span",
|
|
294
|
+
properties: { "data-line-number-content": "" },
|
|
295
|
+
children: [C(`${t}`)]
|
|
296
|
+
})]
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function D(e, t, n) {
|
|
300
|
+
return w({
|
|
301
|
+
tagName: "div",
|
|
302
|
+
properties: {
|
|
303
|
+
"data-gutter-buffer": t,
|
|
304
|
+
"data-buffer-size": n,
|
|
305
|
+
"data-line-type": t === "annotation" ? void 0 : e,
|
|
306
|
+
style: t === "annotation" ? `grid-row: span ${n};` : `grid-row: span ${n};min-height:calc(${n} * 1lh);`
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/hastToHtml.js
|
|
311
|
+
var O = /* @__PURE__ */ new Set([
|
|
312
|
+
"area",
|
|
313
|
+
"base",
|
|
314
|
+
"basefont",
|
|
315
|
+
"bgsound",
|
|
316
|
+
"br",
|
|
317
|
+
"col",
|
|
318
|
+
"command",
|
|
319
|
+
"embed",
|
|
320
|
+
"frame",
|
|
321
|
+
"hr",
|
|
322
|
+
"image",
|
|
323
|
+
"img",
|
|
324
|
+
"input",
|
|
325
|
+
"keygen",
|
|
326
|
+
"link",
|
|
327
|
+
"meta",
|
|
328
|
+
"param",
|
|
329
|
+
"source",
|
|
330
|
+
"track",
|
|
331
|
+
"wbr"
|
|
332
|
+
]), k = /* @__PURE__ */ new Set([
|
|
333
|
+
"svg",
|
|
334
|
+
"template",
|
|
335
|
+
"script",
|
|
336
|
+
"style"
|
|
337
|
+
]), A = {
|
|
338
|
+
class: "class",
|
|
339
|
+
className: "class",
|
|
340
|
+
id: "id",
|
|
341
|
+
role: "role",
|
|
342
|
+
style: "style",
|
|
343
|
+
tabIndex: "tabindex",
|
|
344
|
+
tabindex: "tabindex",
|
|
345
|
+
title: "title"
|
|
346
|
+
}, j = /^data-[\w.:-]+$/, M = /[<&]/g, N = /[\0"&'`]/g, P = {
|
|
347
|
+
"<": "<",
|
|
348
|
+
"&": "&",
|
|
349
|
+
"\"": """,
|
|
350
|
+
"'": "'",
|
|
351
|
+
"`": "`",
|
|
352
|
+
"\0": "�"
|
|
353
|
+
}, F = 256;
|
|
354
|
+
function ne(e) {
|
|
355
|
+
let t = /* @__PURE__ */ new Map();
|
|
356
|
+
return Array.isArray(e) ? I(e, t) : L(e, t);
|
|
357
|
+
}
|
|
358
|
+
function I(e, t) {
|
|
359
|
+
let n = "";
|
|
360
|
+
for (let r of e) n += L(r, t);
|
|
361
|
+
return n;
|
|
362
|
+
}
|
|
363
|
+
function L(t, n) {
|
|
364
|
+
switch (t.type) {
|
|
365
|
+
case "text": return V(t.value);
|
|
366
|
+
case "element": return R(t, n);
|
|
367
|
+
case "root": return I(t.children, n);
|
|
368
|
+
default: return e(t);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function R(t, n) {
|
|
372
|
+
let { tagName: r } = t;
|
|
373
|
+
if (r === "span" && t.children.length === 1 && t.children[0].type === "text" && typeof t.properties?.style == "string") {
|
|
374
|
+
let e = !0;
|
|
375
|
+
for (let n in t.properties) if (n !== "style" && t.properties[n] != null) {
|
|
376
|
+
e = !1;
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
if (e) return `<span ${z(t.properties.style, n)}>${V(t.children[0].value)}</span>`;
|
|
380
|
+
}
|
|
381
|
+
if (k.has(r)) return e(t);
|
|
382
|
+
let i = B(t.properties, n);
|
|
383
|
+
if (i == null) return e(t);
|
|
384
|
+
let a = i === "" ? `<${r}>` : `<${r} ${i}>`, o = I(t.children, n);
|
|
385
|
+
return o === "" && O.has(r.toLowerCase()) ? a : `${a}${o}</${r}>`;
|
|
386
|
+
}
|
|
387
|
+
function z(e, t) {
|
|
388
|
+
let n = t.get(e);
|
|
389
|
+
return n ?? (n = `style="${H(e)}"`, t.size < F && t.set(e, n)), n;
|
|
390
|
+
}
|
|
391
|
+
function B(e, t) {
|
|
392
|
+
let n = "";
|
|
393
|
+
for (let r in e) {
|
|
394
|
+
let i = e[r];
|
|
395
|
+
if (i == null) continue;
|
|
396
|
+
let a = A[r] ?? (j.test(r) ? r : void 0);
|
|
397
|
+
if (a == null) return;
|
|
398
|
+
if (i === !1 || typeof i == "number" && Number.isNaN(i)) continue;
|
|
399
|
+
let o = r === "style" && typeof i == "string" ? z(i, t) : i === !0 ? a : `${a}="${H(Array.isArray(i) ? i.join(" ").trim() : String(i))}"`;
|
|
400
|
+
n += n === "" ? o : ` ${o}`;
|
|
401
|
+
}
|
|
402
|
+
return n;
|
|
403
|
+
}
|
|
404
|
+
function V(e) {
|
|
405
|
+
return e.indexOf("<") < 0 && e.indexOf("&") < 0 ? e : e.replace(M, U);
|
|
406
|
+
}
|
|
407
|
+
function H(e) {
|
|
408
|
+
return e.replace(N, U);
|
|
409
|
+
}
|
|
410
|
+
function U(e) {
|
|
411
|
+
return P[e];
|
|
412
|
+
}
|
|
413
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/processLine.js
|
|
414
|
+
function W(e, t, n) {
|
|
415
|
+
let r = typeof n.lineInfo == "function" ? n.lineInfo(t) : n.lineInfo[t - 1];
|
|
416
|
+
if (r == null) {
|
|
417
|
+
let r = `processLine: line ${t}, contains no state.lineInfo`;
|
|
418
|
+
throw console.error(r, {
|
|
419
|
+
node: e,
|
|
420
|
+
line: t,
|
|
421
|
+
state: n
|
|
422
|
+
}), Error(r);
|
|
423
|
+
}
|
|
424
|
+
return e.tagName = "div", e.properties["data-line"] = r.lineNumber, e.properties["data-alt-line"] = r.altLineNumber, e.properties["data-line-type"] = r.type, e.properties["data-line-index"] = r.lineIndex, e.children.length === 0 && e.children.push(C("\n")), e;
|
|
425
|
+
}
|
|
426
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/tokenStyle.js
|
|
427
|
+
var G = /* @__PURE__ */ new WeakMap();
|
|
428
|
+
function K(e, t = !1) {
|
|
429
|
+
let { htmlStyle: n } = e;
|
|
430
|
+
if (n != null) {
|
|
431
|
+
let e = t ? G.get(n) : void 0;
|
|
432
|
+
if (e == null) {
|
|
433
|
+
e = "";
|
|
434
|
+
for (let t in n) e += `${e === "" ? "" : ";"}${t}:${n[t]}`;
|
|
435
|
+
t && G.set(n, e);
|
|
436
|
+
}
|
|
437
|
+
return e;
|
|
438
|
+
}
|
|
439
|
+
let r = e.color == null ? "" : `color:${e.color}`;
|
|
440
|
+
if (e.bgColor != null && (r += `;background-color:${e.bgColor}`), e.fontStyle != null) {
|
|
441
|
+
e.fontStyle & 1 && (r += ";font-style:italic"), e.fontStyle & 2 && (r += ";font-weight:bold");
|
|
442
|
+
let t = !!(e.fontStyle & 4), n = !!(e.fontStyle & 8);
|
|
443
|
+
(t || n) && (r += `;text-decoration:${t ? "underline" : ""}${t && n ? " " : ""}${n ? "line-through" : ""}`);
|
|
444
|
+
}
|
|
445
|
+
return r.replace(/^;/, "");
|
|
446
|
+
}
|
|
447
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/setDeferredArrayItem.js
|
|
448
|
+
function q(e, t, n) {
|
|
449
|
+
let r = !1, i;
|
|
450
|
+
Object.defineProperty(e, t, {
|
|
451
|
+
configurable: !0,
|
|
452
|
+
enumerable: !0,
|
|
453
|
+
get() {
|
|
454
|
+
return r ||= (i = n(), !0), Object.getOwnPropertyDescriptor(e, t)?.configurable === !0 && Object.defineProperty(e, t, {
|
|
455
|
+
configurable: !0,
|
|
456
|
+
enumerable: !0,
|
|
457
|
+
writable: !0,
|
|
458
|
+
value: i
|
|
459
|
+
}), i;
|
|
460
|
+
},
|
|
461
|
+
set(n) {
|
|
462
|
+
if (Object.getOwnPropertyDescriptor(e, t)?.configurable === !0) Object.defineProperty(e, t, {
|
|
463
|
+
configurable: !0,
|
|
464
|
+
enumerable: !0,
|
|
465
|
+
writable: !0,
|
|
466
|
+
value: n
|
|
467
|
+
});
|
|
468
|
+
else if (Object.isFrozen(e)) throw TypeError(`Cannot assign to read only array index '${t}'`);
|
|
469
|
+
else i = n, r = !0;
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/wrapTokenFragments.js
|
|
474
|
+
var J = Symbol("no-token"), Y = Symbol("multiple-tokens");
|
|
475
|
+
function X(e) {
|
|
476
|
+
let t = re(e);
|
|
477
|
+
if (t != null) return t;
|
|
478
|
+
let n = J, r = [], i = [], a, o = () => {
|
|
479
|
+
if (i.length === 0 || a == null) i = [], a = void 0;
|
|
480
|
+
else if (i.length === 1) {
|
|
481
|
+
let e = i[0];
|
|
482
|
+
if (e?.type === "element") {
|
|
483
|
+
ie(e, a);
|
|
484
|
+
for (let t of e.children) Z(t);
|
|
485
|
+
} else Z(e);
|
|
486
|
+
r.push(e), i = [], a = void 0;
|
|
487
|
+
} else {
|
|
488
|
+
for (let e of i) Z(e);
|
|
489
|
+
r.push(w({
|
|
490
|
+
tagName: "span",
|
|
491
|
+
properties: { "data-char": a },
|
|
492
|
+
children: i
|
|
493
|
+
})), i = [], a = void 0;
|
|
494
|
+
}
|
|
495
|
+
}, s = (e) => {
|
|
496
|
+
e !== J && (e === Y ? n = Y : n === J ? n = e : n !== e && (n = Y));
|
|
497
|
+
};
|
|
498
|
+
for (let t of e.children) {
|
|
499
|
+
let e = t.type === "element" ? X(t) : J;
|
|
500
|
+
s(e), typeof e == "number" ? (a != null && a !== e && o(), a ??= e, i.push(t)) : (o(), r.push(t));
|
|
501
|
+
}
|
|
502
|
+
return o(), e.children = r, n;
|
|
503
|
+
}
|
|
504
|
+
function re(e) {
|
|
505
|
+
let t = e.properties["data-char"];
|
|
506
|
+
if (typeof t == "number") return t;
|
|
507
|
+
}
|
|
508
|
+
function Z(e) {
|
|
509
|
+
if (e.type === "element") {
|
|
510
|
+
e.properties["data-char"] = void 0;
|
|
511
|
+
for (let t of e.children) Z(t);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function ie(e, t) {
|
|
515
|
+
e.properties["data-char"] = t;
|
|
516
|
+
}
|
|
517
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/renderTokenLines.js
|
|
518
|
+
function ae(e, { state: t, lazyLineAST: n = !1, cacheHtmlStyles: r = !1, useTokenTransformer: i = !1, mergeWhitespaces: a = "always", decorations: o = [], lineOffsets: s = [] }) {
|
|
519
|
+
let c;
|
|
520
|
+
for (let t of o) {
|
|
521
|
+
let n = c ??= /* @__PURE__ */ new Map(), r = {
|
|
522
|
+
...t,
|
|
523
|
+
start: $(t.start, s),
|
|
524
|
+
end: $(t.end, s)
|
|
525
|
+
}, i = Math.min(r.end.line, e.length - 1);
|
|
526
|
+
for (let e = r.start.line; e <= i; e++) {
|
|
527
|
+
let t = n.get(e);
|
|
528
|
+
t ?? n.set(e, t = []), t.push(r);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
let l = (e, n) => {
|
|
532
|
+
let o;
|
|
533
|
+
if (i || a !== "never") {
|
|
534
|
+
let t = "", n = 0;
|
|
535
|
+
for (let r = 0; r < e.length; r++) {
|
|
536
|
+
let a = e[r];
|
|
537
|
+
if (i) {
|
|
538
|
+
let t = a.content.trim();
|
|
539
|
+
if (t !== "" && t !== a.content) {
|
|
540
|
+
o ??= e.slice(0, r);
|
|
541
|
+
let n = a.content.indexOf(t);
|
|
542
|
+
n > 0 && o.push({
|
|
543
|
+
content: a.content.slice(0, n),
|
|
544
|
+
offset: a.offset
|
|
545
|
+
}), o.push({
|
|
546
|
+
...a,
|
|
547
|
+
content: t,
|
|
548
|
+
offset: a.offset + n
|
|
549
|
+
});
|
|
550
|
+
let i = n + t.length;
|
|
551
|
+
i < a.content.length && o.push({
|
|
552
|
+
content: a.content.slice(i),
|
|
553
|
+
offset: a.offset + i
|
|
554
|
+
});
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
} else {
|
|
558
|
+
let i = !!((a.fontStyle ?? 0) & 12);
|
|
559
|
+
if (!i && /^\s+$/.test(a.content) && r < e.length - 1) {
|
|
560
|
+
o ??= e.slice(0, r), t === "" && (n = a.offset), t += a.content;
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
t !== "" && o != null && (i ? o.push({
|
|
564
|
+
content: t,
|
|
565
|
+
offset: n
|
|
566
|
+
}) : a = {
|
|
567
|
+
...a,
|
|
568
|
+
content: t + a.content,
|
|
569
|
+
offset: n
|
|
570
|
+
}, t = "");
|
|
571
|
+
}
|
|
572
|
+
o?.push(a);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
o ??= e;
|
|
576
|
+
let s = {
|
|
577
|
+
type: "element",
|
|
578
|
+
tagName: t == null ? "span" : "div",
|
|
579
|
+
properties: t == null ? { class: "line" } : {},
|
|
580
|
+
children: []
|
|
581
|
+
}, l = c?.get(n), u = l == null ? oe(s, o, i, r) : se(s, o, l, n, i, r);
|
|
582
|
+
return i && u === 0 && s.children.push({
|
|
583
|
+
type: "element",
|
|
584
|
+
tagName: "br",
|
|
585
|
+
properties: {},
|
|
586
|
+
children: []
|
|
587
|
+
}), i && l != null && X(s), t == null ? s : W(s, n + 1, t);
|
|
588
|
+
};
|
|
589
|
+
if (!n) return e.map(l);
|
|
590
|
+
let u = Array(e.length);
|
|
591
|
+
for (let t = 0; t < e.length; t++) {
|
|
592
|
+
let n = e[t];
|
|
593
|
+
q(u, t, () => l(n, t));
|
|
594
|
+
}
|
|
595
|
+
return u;
|
|
596
|
+
}
|
|
597
|
+
function oe(e, t, n, r) {
|
|
598
|
+
let i = 0;
|
|
599
|
+
for (let a of t) a.content !== "" && (e.children.push(Q(a, K(a, r), a.content, i, n)), i += a.content.length);
|
|
600
|
+
return i;
|
|
601
|
+
}
|
|
602
|
+
function se(e, t, n, r, i, a) {
|
|
603
|
+
n.length > 1 && n.sort((e, t) => e.start.line === t.start.line ? e.start.character === t.start.character ? e.end.line === t.end.line ? t.end.character - e.end.character : t.end.line - e.end.line : e.start.character - t.start.character : e.start.line - t.start.line);
|
|
604
|
+
let o = t.reduce((e, t) => e + t.content.length, 0), s = [];
|
|
605
|
+
for (let e = 0; e < n.length; e++) {
|
|
606
|
+
let t = n[e], i = {
|
|
607
|
+
decoration: t,
|
|
608
|
+
order: e,
|
|
609
|
+
from: t.start.line === r ? t.start.character : 0,
|
|
610
|
+
to: t.end.line === r ? t.end.character : o
|
|
611
|
+
};
|
|
612
|
+
s.push({
|
|
613
|
+
position: Math.max(0, Math.min(i.from, o)),
|
|
614
|
+
range: i,
|
|
615
|
+
start: !0
|
|
616
|
+
}, {
|
|
617
|
+
position: Math.max(0, Math.min(i.to, o)),
|
|
618
|
+
range: i,
|
|
619
|
+
start: !1
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
s.sort((e, t) => e.position - t.position);
|
|
623
|
+
let c = [], l = [], u = 0, d = (e, t) => {
|
|
624
|
+
let n = 0, r = c.length;
|
|
625
|
+
for (; n < r;) {
|
|
626
|
+
let t = n + r >>> 1;
|
|
627
|
+
c[t].order < e.order ? n = t + 1 : r = t;
|
|
628
|
+
}
|
|
629
|
+
t ? c.splice(n, 0, e) : c[n] === e && c.splice(n, 1);
|
|
630
|
+
}, f = () => {
|
|
631
|
+
let t = e, n = 0;
|
|
632
|
+
for (let e of c) {
|
|
633
|
+
if (l[n]?.range !== e) {
|
|
634
|
+
l.length = n;
|
|
635
|
+
let r = {
|
|
636
|
+
type: "element",
|
|
637
|
+
tagName: "span",
|
|
638
|
+
properties: { ...e.decoration.properties },
|
|
639
|
+
children: []
|
|
640
|
+
};
|
|
641
|
+
t.children.push(r), l.push({
|
|
642
|
+
range: e,
|
|
643
|
+
node: r
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
t = l[n++].node;
|
|
647
|
+
}
|
|
648
|
+
return l.length = n, t;
|
|
649
|
+
}, p = e, m = (e) => {
|
|
650
|
+
let t = u;
|
|
651
|
+
for (; s[u]?.position === e;) u++;
|
|
652
|
+
let n = !1;
|
|
653
|
+
for (let n = t; n < u; n++) {
|
|
654
|
+
let { range: t, start: r } = s[n];
|
|
655
|
+
!r && t.from !== t.to && e < o && d(t, !1);
|
|
656
|
+
}
|
|
657
|
+
for (let r = t; r < u; r++) {
|
|
658
|
+
let { range: t, start: i } = s[r];
|
|
659
|
+
i && t.from <= e && t.to >= e && (t.to > e || t.from === e || e === o) && (d(t, !0), t.from === t.to && (n = !0));
|
|
660
|
+
}
|
|
661
|
+
if (n) {
|
|
662
|
+
f();
|
|
663
|
+
for (let e = t; e < u; e++) {
|
|
664
|
+
let { range: t, start: n } = s[e];
|
|
665
|
+
n && t.from === t.to && d(t, !1);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
e < o && (p = f());
|
|
669
|
+
}, h = 0;
|
|
670
|
+
for (let e of t) {
|
|
671
|
+
if (e.content === "") continue;
|
|
672
|
+
let t = h, n = t + e.content.length, r = K(e, a);
|
|
673
|
+
for (; h < n;) {
|
|
674
|
+
s[u]?.position === h && m(h);
|
|
675
|
+
let a = Math.min(n, s[u]?.position ?? n);
|
|
676
|
+
p.children.push(Q(e, r, h === t && a === n ? e.content : e.content.slice(h - t, a - t), t, i)), h = a;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return s[u]?.position === h && m(h), h;
|
|
680
|
+
}
|
|
681
|
+
function Q(e, t, n, r, i) {
|
|
682
|
+
let a = e.htmlAttrs == null ? {} : { ...e.htmlAttrs };
|
|
683
|
+
return t !== "" && (a.style = t), i && (a["data-char"] = r), {
|
|
684
|
+
type: "element",
|
|
685
|
+
tagName: "span",
|
|
686
|
+
properties: a,
|
|
687
|
+
children: [{
|
|
688
|
+
type: "text",
|
|
689
|
+
value: n
|
|
690
|
+
}]
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
function $(e, t) {
|
|
694
|
+
if (typeof e != "number") return e;
|
|
695
|
+
let n = 0, r = t.length;
|
|
696
|
+
for (; n + 1 < r;) {
|
|
697
|
+
let i = n + r >>> 1;
|
|
698
|
+
t[i] <= e ? n = i : r = i;
|
|
699
|
+
}
|
|
700
|
+
return {
|
|
701
|
+
line: n,
|
|
702
|
+
character: e - (t[n] ?? 0)
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
// node_modules/.pnpm/@pierre+diffs@1.6.1_@shikijs+themes@4.5.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@pierre/diffs/dist/utils/appendItems.js
|
|
706
|
+
function ce(e, t) {
|
|
707
|
+
for (let n of t) e.push(n);
|
|
708
|
+
}
|
|
709
|
+
export { o as _, D as a, w as c, ee as d, u as f, l as g, a as h, ne as i, te as l, c as m, ae as n, E as o, i as p, q as r, T as s, ce as t, C as u };
|