mycode-cli 0.8.9__tar.gz → 0.8.10__tar.gz
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.
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/PKG-INFO +2 -2
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/pyproject.toml +2 -2
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/EditDiff-BJJJG0i1.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/EditDiff-BwTMgMSU.js +2 -2
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/angular-html-DKYuTxHN.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/angular-html-B6qE7Fgr.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/angular-ts-D_wVHjGm.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/angular-ts-CCYXQBsQ.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/apl-BZug_10t.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/apl-BHFdPdwP.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/astro-DlOLPHtf.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/astro-CdDbCEi0.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/blade-B-UgERZa.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/blade-tLtw_1xC.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/c-Cys1qM1h.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/c-gShqJt5_.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/cobol-DkP0DdTG.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/cobol-CKazzhoF.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/coffee-CC3rov8d.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/coffee-DsdLebDY.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/cpp-PE2NcQ0I.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/cpp-Cwf1vUUo.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/crystal-DWiX5FhX.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/crystal-D2D2rLOi.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/css-C21Q0RWr.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/css-DCF53qDU.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/edge-C-ETSFZD.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/edge-DQH05KUf.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/elixir-UiZpjwGU.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/elixir-2VpsbiLV.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/elm-BlhfUX5V.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/elm-_CHnbifk.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/engine-compile-8UOZCzsJ.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/engine-compile-B24DC8pd.js +3 -3
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/erb-CIiHwCDs.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/erb-Cxmz5KSP.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/git-rebase-5i22v-p0.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/git-rebase-C04jMORK.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/glimmer-js-DwI4SdMP.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/glimmer-js-D0Nvbzz0.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/glimmer-ts-BlyiIiMZ.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/glimmer-ts-ix22zR5c.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/glsl-Bh18NvBF.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/glsl-C4sVYnlm.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/graphql-Br0uLdra.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/graphql-CmkcYwk_.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/hack-DlXTj64V.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/hack-BDK0ocxa.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/haml-DEjejGNr.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/haml-wLZoRSkX.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/handlebars-CFrzCuyR.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/handlebars-Bq6qdew-.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/highlighter-iv5K8Rcg.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/highlighter-Dlz8vejz.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/html-derivative-CT1AvypA.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/html-derivative-B16zJ1uM.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/html-LswDm2kB.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/html-j61brix0.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/http-BvMx6E8v.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/http-0baH_3Dk.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/hurl-CWeKSJK3.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/hurl-CR5A6vqw.js +1 -1
- mycode_cli-0.8.10/src/mycode_cli/server/static/assets/index-Datomjin.css +1 -0
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/index-CwaER-GY.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/index-_MPb8SvH.js +19 -10
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/java-RTfUqcWy.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/java-B_NtVZr9.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/javascript-DFJw-uaJ.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/javascript-BJVvvhBF.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/jinja-CguQfWfp.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/jinja-C_N7wio_.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/jison-DzJfOOs1.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/jison-DVVdkBIk.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/json-rhxerq3y.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/json-sM0x8hNn.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/jsx-jGLZpgdn.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/jsx-C9BVFirF.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/julia-D-7gI2Yd.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/julia-ChaP_3F1.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/just-CcX9J805.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/just-CavrxuQ2.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/latex-BDZ5lIdq.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/latex-DzKiPX3o.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/liquid-hz6Zrj80.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/liquid-C7DJS0P7.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/lua-BYU79WzS.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/lua-BqiiO-68.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/marko-C5WK69ic.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/marko-D6qURI0q.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/mdc-1MG5IyDn.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/mdc-CcWXXq58.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/nginx-BKDC1-sk.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/nginx-CpKQIPTm.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/nim-DbLcJUpx.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/nim-8_0pTVwq.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/perl-B_WPdfRA.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/perl-D3eGItpN.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/php-C-8Pvfee.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/php-DxTfLPo4.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/pug-DIpxZR_v.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/pug-Czlo7T9J.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/qml-WaP7tL_1.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/qml-DcXsrGQw.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/r-Dk_OMZLL.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/r-p_dzGn9P.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/razor-I5tWum0A.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/razor-DYXsAW5_.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/regexp-CvdSgyR0.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/regexp-T_fsBtNr.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/rst-gGzsiokx.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/rst-ORuymkQc.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/ruby-7gnjddsB.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/ruby-ClzjSQ0l.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/sas-DOuuju1N.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/sas-BRTK3la1.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/scss-CUif7b-b.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/scss-DS6I3QcS.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/shellscript-24blIroA.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/shellscript-CiTYCSib.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/shellsession-Dj8-TgHj.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/shellsession-D5DT705X.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/soy-C3wqHDbt.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/soy-NNJOX3cw.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/sql-0yXxk2GA.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/sql-Buaa9QxE.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/stata-Woug7VEE.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/stata-ntax-hDY.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/surrealql-CZFPtJtL.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/surrealql-DOI7nkTm.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/svelte-CuiVzrqf.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/svelte-BtWRbgsA.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/templ-ytegxIrS.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/templ-BXLB83Z5.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/tex-Ckxawprk.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/tex-DkP4hQm8.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/ts-tags-CfSUH-aO.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/ts-tags-BhFXwTms.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/tsx-DEgADx-f.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/tsx-Ct4UJ72v.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/twig-Bjs7fIcW.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/twig-BVS_f6WM.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/typescript-BwBp4Ym2.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/typescript-31zaVSb0.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/vue-DRa_RSQb.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/vue-axzl95W-.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/vue-html-D23JXb0b.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/vue-html-BZJQggZA.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/vue-vine-DxvXmi2H.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/vue-vine-C0SHPvOF.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/xml-CxLFUhxk.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/xml-DXLyvx5e.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/xsl-DD-IFqs6.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/xsl-C1DaZKBE.js +1 -1
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/yaml-BOkMzcBQ.js → mycode_cli-0.8.10/src/mycode_cli/server/static/assets/yaml-BSIzUixy.js +1 -1
- mycode_cli-0.8.10/src/mycode_cli/server/static/fonts/OFL.txt +95 -0
- mycode_cli-0.8.10/src/mycode_cli/server/static/fonts/SourceCodePro-Variable.woff2 +0 -0
- mycode_cli-0.8.10/src/mycode_cli/server/static/fonts/SourceSans3-Variable.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/index.html +2 -2
- mycode_cli-0.8.9/src/mycode_cli/server/static/assets/index-CsS1BbOm.css +0 -1
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/.gitignore +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/LICENSE +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/README.md +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/hatch_build.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/__init__.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/config.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/main.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/permissions.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/runtime.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/__init__.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/app.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/deps.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/routers/__init__.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/routers/chat.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/routers/sessions.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/routers/settings.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/routers/workspaces.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/run_manager.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/schemas.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/abap-smLpETzL.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/actionscript-3-o-aRvjY5.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ada-D5RRX1i4.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/andromeeda-N4z3YzmR.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/apache-DttKlSqg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/apex-DL7j-a2n.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/applescript-DCbL_2FX.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ara-DqheWJCe.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/asciidoc-BH2sf2K4.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/asm-rfjOMz3U.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/aurora-x-CND-FqEb.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/awk-CMV5n9Z7.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ayu-dark-on7xzq_B.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ayu-light-DnGeGGc2.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ayu-mirage-DG3LlYC_.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ballerina-BjMqJjlr.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/bat-BaVbo_qw.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/beancount-DBt5Mbc_.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/berry-Cyjuxiss.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/bibtex-BV_0nsPq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/bicep-C2gEwu4J.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/bird2-BRyaEJd0.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/bsl-B1qbqNES.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/c3-DTTbp5N2.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/cadence-CPz83cmI.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/cairo-BDj8wWhy.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/catppuccin-frappe-Dr22sraq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/catppuccin-latte-C57EeX8c.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/catppuccin-macchiato-CpheI4uD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/catppuccin-mocha-D8Lmdks_.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/clarity-CFJ2Yc3q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/clojure-6R01QgJC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/cmake-D5rSbMir.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/codeowners-_3A-ClkN.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/codeql-DlIhJTR7.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/common-lisp-BvQzz173.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/coq-DTNXReIC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/csharp-BDKQY1K9.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/csv-DNUpVBxl.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/cue-DDdBc2s3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/cypher-CguaznO2.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/d-CHcoyjv3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dark-plus-CqeW_0kH.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dart-RM3aRphk.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dax-nbnY1d79.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/desktop-BD76cvxT.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/diff-CdkWtnkL.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/docker-ZyPHc6zB.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dotenv-BdJZEwA6.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dracula-CtqCPLGa.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dracula-soft-DmBpwRAy.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/dream-maker-BJL4qlg3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/emacs-lisp-_LyYa2Ky.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/erlang-Bc4hQuqa.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/everforest-dark-CrbyKk4n.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/everforest-light-DRbSh8Tm.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fennel-CC2BkRsS.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fish-D2ZCzqcE.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fluent-DKAm3m7q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fortran-fixed-form-B02FOYI-.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fortran-free-form-BPTf0lbT.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/fsharp-DhdR18vN.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gdresource-DgnrMPIx.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gdscript-CsadCSaZ.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gdshader-PfnN_8tR.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/genie-Bj-orPAV.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gherkin-COVWpJ-Q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/git-commit-DGJi7qBD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-dark-default-DX3IG_X0.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-dark-dimmed-CH6p_7ez.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-dark-high-contrast-Bg2sSao5.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-dark-ipGuFGYC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-light-BxjqOQl0.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-light-default-DwpDd1IQ.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/github-light-high-contrast-C0QeixPf.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gleam-BF2NigGj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gn-CMIt9roj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gnuplot-DgWlRTEj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/go-DLnOLj8q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/groovy-B9qLWIkE.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-dark-hard-BIMX9ePb.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-dark-medium-DxuwyVzM.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-dark-soft-ba2fjht0.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-light-hard-DAJK2PqC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-light-medium-WRifDAJD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/gruvbox-light-soft-B0dBOoVB.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/haskell-BaGpmm_c.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/haxe-DfXTCEOz.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/hcl-CbCtpSbi.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/hjson-_4-w-pHU.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/hlsl-DpuYn7pp.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/horizon-C5RtD1fY.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/horizon-bright-pEOice34.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/houston-A0zg9vNP.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/hxml-adC65L_J.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/hy-t9zDXBje.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/imba-Bxu-TDfw.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ini-D-v34c8N.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/json5-D0XL1D5m.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/jsonc-BBgf3TX3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/jsonl-KrKLbtB7.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/jsonnet-B2ZwWMOt.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/jssm-ByRpI9-B.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kanagawa-dragon-CtPmcCMp.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kanagawa-lotus-DpOXEGCa.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kanagawa-wave-CLVCyc-n.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kdl-6FPPEH4H.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kotlin-D4L3Nd2D.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/kusto-D-mmc07O.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/laserwave-7fEj4XGb.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/lean-BMVMuP2E.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/less-C95PyOu0.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/light-plus-DHI2dh3p.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/llvm-Dy3qORTl.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/log-BQop7fzg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/logo-DKtnYmrp.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/luau-Dha4KG0q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/make-DfmS6buu.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/markdown-BaI9LyM4.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/material-theme-Dm6ETY8i.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/material-theme-darker-BeyjmM5Z.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/material-theme-lighter-CCOYYzKL.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/material-theme-ocean-CUtPiiX3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/material-theme-palenight-2L4zMwIM.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/matlab-BT79Cq_j.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/mdx-CxGBwLNt.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/mermaid-DLf3axBN.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/min-dark-B8TUPGHg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/min-light-BDOoBxcA.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/mipsasm-DXuU_0cI.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/mojo-1Omp2pIo.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/monokai-E_VBmXGZ.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/moonbit-DZzq699o.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/move-DxDAOJVd.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/narrat-CxDcPPb9.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/nextflow-JEyYUlIq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/nextflow-groovy-wvmJO4hi.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/night-owl-DefhalNX.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/night-owl-light-byb3AbEn.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/nix-DsFTDHWT.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/nord-D5rQzHT-.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/nushell-BQ_rO0AM.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/objective-c-BMq6JT_m.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/objective-cpp-DRwojuGv.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ocaml-e4_gKO6E.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/odin-mdTPwYOg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/one-dark-pro-DxXww9jg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/one-light-D9c03w7t.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/openscad-D2aTdNfr.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/pascal-D4n_G8vj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/pierre-dark-CizZ1Z5z.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/pierre-light-CHMWfAMe.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/pkl-DcjhAp0L.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/plastic-uOsw7z1x.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/plsql-BSy3Ag0J.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/po-Be96RYkA.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/poimandres-CyO4HORD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/polar-BmhMKWum.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/postcss-BTQso3H9.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/powerquery-DVyQv3M2.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/powershell-BmtCGJVD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/prisma-CCFA9rEj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/prolog-DWGEEo78.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/proto-C3eop1kM.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/puppet-C0_7Nv5A.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/purescript-Bv-B8yRw.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/python-CKg5r0C3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/qmldir-Cqfb4Lox.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/qss-Csho9BH8.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/racket-D8-uWeQH.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/raku-Cj4JSa8p.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/red-z4H4llUY.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/reg-DXGFiJSl.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rel-CunnVTBK.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/riscv-C8BcOCkS.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ron-DiDyR9oa.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rose-pine-BADquuIH.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rose-pine-dawn-BLcEeBoh.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rose-pine-moon-BK_tLY1Y.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rosmsg-CHmL1Uyj.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/rust-DjJFInu3.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/sass-D3xZ5o-v.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/scala-B0IRml5w.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/scheme-BhwcV3Av.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/sdbl-BmWYR-pI.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/shaderlab-DZ3Lsiak.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/slack-dark-DOnVms5P.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/slack-ochin-DcRTft4q.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/smalltalk-DVQuUMII.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/snazzy-light-x9CLJ1W9.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/solarized-dark-BB1sh-pe.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/solarized-light-9-RPS998.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/solidity-gQ4WXILB.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/sparql-B9c85a_o.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/splunk-OB48_RcD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/ssh-config-DA9YMRGV.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/stylus-sKwvsUaC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/swift-C72NbAtg.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/synthwave-84-eJ9uRN_S.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/system-verilog-CnWMF7Nq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/systemd-DMzItW5N.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/talonscript-DopQCWDL.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/tasl-C28SYKbq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/tcl-DHq7zmoF.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/terraform-CogS1YKX.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/tokyo-night-B9N7LyrF.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/toml-BH_iPsgK.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/tsv-BIkdBZX1.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/turtle-CqNXyJWZ.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/typespec-CQ9LYD_e.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/typst-T-Fsk-Sv.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/v-BhMEOw9x.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vala-DzajMnwt.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vb-7Xr8dEYW.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/verilog-AvXtwZir.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vesper-CtgQQ2sf.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vhdl-BHu0zg1P.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/viml-Di0QpLfC.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vitesse-black-jXdfyqgD.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vitesse-dark-B88PxG1r.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vitesse-light-BXxZh2iV.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/vyper-C3R5yXgx.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wasm-CEUrWlVz.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wasm-Chsuwt1A.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wenyan-BonVcr2i.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wgsl-D59WYmNq.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wikitext-ariTI2Wk.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wit-EA4fa3Dt.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/wolfram-DDp7LhyU.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/zenscript-4WaROUyc.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/assets/zig-CJoLJGwV.js +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/server/static/favicon_slashes.svg +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/system_prompt.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/tui/__init__.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/tui/chat.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/tui/render.py +0 -0
- {mycode_cli-0.8.9 → mycode_cli-0.8.10}/src/mycode_cli/tui/theme.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mycode-cli
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.10
|
|
4
4
|
Summary: Minimal coding agent CLI and web UI built on mycode-sdk.
|
|
5
5
|
Project-URL: Homepage, https://github.com/legibet/mycode
|
|
6
6
|
Project-URL: Repository, https://github.com/legibet/mycode
|
|
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
22
22
|
Classifier: Topic :: Software Development
|
|
23
23
|
Requires-Python: >=3.12
|
|
24
24
|
Requires-Dist: fastapi>=0.135.0
|
|
25
|
-
Requires-Dist: mycode-sdk==0.8.
|
|
25
|
+
Requires-Dist: mycode-sdk==0.8.10
|
|
26
26
|
Requires-Dist: prompt-toolkit>=3.0.52
|
|
27
27
|
Requires-Dist: pyyaml>=6.0.0
|
|
28
28
|
Requires-Dist: rich>=15.0.0
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mycode-cli"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.10"
|
|
8
8
|
description = "Minimal coding agent CLI and web UI built on mycode-sdk."
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
license = "MIT"
|
|
@@ -26,7 +26,7 @@ classifiers = [
|
|
|
26
26
|
]
|
|
27
27
|
keywords = ["agent", "cli", "llm", "coding-agent", "fastapi"]
|
|
28
28
|
dependencies = [
|
|
29
|
-
"mycode-sdk==0.8.
|
|
29
|
+
"mycode-sdk==0.8.10",
|
|
30
30
|
"fastapi>=0.135.0",
|
|
31
31
|
"uvicorn[standard]>=0.45.0",
|
|
32
32
|
"rich>=15.0.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./engine-compile-8UOZCzsJ.js";import{d as s,n as c,p as l,t as u,u as d}from"./index-CwaER-GY.js";var f={position:`absolute`,top:0,bottom:0,textAlign:`center`},p={display:`contents`};function m(){return null}var h=`diffs-container`,g=/(?=^From [a-f0-9]+ .+$)/m,_=/(?=^diff --git)/gm,v=/(?=^---\s+\S)/gm,y=/(?=^@@ )/gm,b=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,x=/(?<=\n)/,S=/^(---|\+\+\+)\s+([^\t\r\n]+)/,C=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,w=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,T=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,E=`header-prefix`,D=`header-metadata`,O=`header-custom`,k={dark:`pierre-dark`,light:`pierre-light`},ee=`data-theme-css`,te=`data-unsafe-css`,ne={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},re=Object.freeze({fromStart:0,fromEnd:0}),ie={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ae={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function A(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}var j=d();function oe(e,t){return typeof window>`u`&&t!=null?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t}}),e]}):(0,j.jsx)(j.Fragment,{children:e})}var M=l(s(),1),se=(0,M.createContext)(void 0);function ce(){return(0,M.useContext)(se)}var N=new Map,le=new Map,ue=new Map,de=new Set;function fe(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=N.get(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,N.has(n)||N.set(n,e);de.has(n)||(de.add(n),t.loadThemeSync(e))}}var P=new Map,pe=new Map,me=new Map,he=new Set;function ge(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(he.has(n.name))continue;let e=P.get(n.name);e??(e=n,P.set(n.name,e)),he.add(e.name),t.loadLanguageSync(e.data)}}function _e(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var ve=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>c(()=>import(`./andromeeda-N4z3YzmR.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>c(()=>import(`./aurora-x-CND-FqEb.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>c(()=>import(`./ayu-dark-on7xzq_B.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>c(()=>import(`./ayu-light-DnGeGGc2.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>c(()=>import(`./ayu-mirage-DG3LlYC_.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-frappe-Dr22sraq.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>c(()=>import(`./catppuccin-latte-C57EeX8c.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-macchiato-CpheI4uD.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-mocha-D8Lmdks_.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>c(()=>import(`./dark-plus-CqeW_0kH.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>c(()=>import(`./dracula-CtqCPLGa.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>c(()=>import(`./dracula-soft-DmBpwRAy.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>c(()=>import(`./everforest-dark-CrbyKk4n.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>c(()=>import(`./everforest-light-DRbSh8Tm.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>c(()=>import(`./github-dark-ipGuFGYC.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>c(()=>import(`./github-dark-default-DX3IG_X0.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>c(()=>import(`./github-dark-dimmed-CH6p_7ez.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>c(()=>import(`./github-dark-high-contrast-Bg2sSao5.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>c(()=>import(`./github-light-BxjqOQl0.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>c(()=>import(`./github-light-default-DwpDd1IQ.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>c(()=>import(`./github-light-high-contrast-C0QeixPf.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-hard-BIMX9ePb.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-medium-DxuwyVzM.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-soft-ba2fjht0.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-hard-DAJK2PqC.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-medium-WRifDAJD.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-soft-B0dBOoVB.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>c(()=>import(`./horizon-C5RtD1fY.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>c(()=>import(`./horizon-bright-pEOice34.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>c(()=>import(`./houston-A0zg9vNP.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>c(()=>import(`./kanagawa-dragon-CtPmcCMp.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>c(()=>import(`./kanagawa-lotus-DpOXEGCa.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>c(()=>import(`./kanagawa-wave-CLVCyc-n.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>c(()=>import(`./laserwave-7fEj4XGb.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>c(()=>import(`./light-plus-DHI2dh3p.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>c(()=>import(`./material-theme-Dm6ETY8i.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>c(()=>import(`./material-theme-darker-BeyjmM5Z.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>c(()=>import(`./material-theme-lighter-CCOYYzKL.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>c(()=>import(`./material-theme-ocean-CUtPiiX3.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>c(()=>import(`./material-theme-palenight-2L4zMwIM.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>c(()=>import(`./min-dark-B8TUPGHg.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>c(()=>import(`./min-light-BDOoBxcA.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>c(()=>import(`./monokai-E_VBmXGZ.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>c(()=>import(`./night-owl-DefhalNX.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>c(()=>import(`./night-owl-light-byb3AbEn.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>c(()=>import(`./nord-D5rQzHT-.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>c(()=>import(`./one-dark-pro-DxXww9jg.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>c(()=>import(`./one-light-D9c03w7t.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>c(()=>import(`./plastic-uOsw7z1x.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>c(()=>import(`./poimandres-CyO4HORD.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>c(()=>import(`./red-z4H4llUY.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>c(()=>import(`./rose-pine-BADquuIH.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>c(()=>import(`./rose-pine-dawn-BLcEeBoh.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>c(()=>import(`./rose-pine-moon-BK_tLY1Y.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>c(()=>import(`./slack-dark-DOnVms5P.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>c(()=>import(`./slack-ochin-DcRTft4q.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>c(()=>import(`./snazzy-light-x9CLJ1W9.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>c(()=>import(`./solarized-dark-BB1sh-pe.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>c(()=>import(`./solarized-light-9-RPS998.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>c(()=>import(`./synthwave-84-eJ9uRN_S.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>c(()=>import(`./tokyo-night-B9N7LyrF.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>c(()=>import(`./vesper-CtgQQ2sf.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>c(()=>import(`./vitesse-black-jXdfyqgD.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>c(()=>import(`./vitesse-dark-B88PxG1r.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>c(()=>import(`./vitesse-light-BXxZh2iV.js`),[]))}].map(e=>[e.id,e.import])),ye=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function be(){return 2147483648}function xe(){return typeof performance<`u`?performance.now():Date.now()}var Se=(e,t)=>e+(t-e%t)%t;async function Ce(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=be();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Se(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:xe,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var we=Object.defineProperty,Te=(e,t,n)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t,n)=>Te(e,typeof t==`symbol`?t:t+``,n),I=null;function Ee(e){throw new ye(e.UTF8ToString(e.getLastOnigError()))}var De=class e{constructor(t){F(this,`utf16Length`),F(this,`utf8Length`),F(this,`utf16Value`),F(this,`utf8Value`),F(this,`utf16OffsetToUtf8`),F(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Oe=class e{constructor(t){if(F(this,`id`,++e.LAST_ID),F(this,`_onigBinding`),F(this,`content`),F(this,`utf16Length`),F(this,`utf8Length`),F(this,`utf16OffsetToUtf8`),F(this,`utf8OffsetToUtf16`),F(this,`ptr`),!I)throw new ye(`Must invoke loadWasm first.`);this._onigBinding=I,this.content=t;let n=new De(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=I.omalloc(1e4),e._sharedPtrInUse=!0,I.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(I)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};F(Oe,`LAST_ID`,0),F(Oe,`_sharedPtr`,0),F(Oe,`_sharedPtrInUse`,!1);var ke=Oe,Ae=class{constructor(e){if(F(this,`_onigBinding`),F(this,`_ptr`),!I)throw new ye(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new De(e[r]);t[r]=i.createString(I),n[r]=i.utf8Length}let r=I.omalloc(4*e.length);I.HEAPU32.set(t,r/4);let i=I.omalloc(4*e.length);I.HEAPU32.set(n,i/4);let a=I.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)I.ofree(t[n]);I.ofree(i),I.ofree(r),a===0&&Ee(I),this._onigBinding=I,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ke(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function je(e){return typeof e.instantiator==`function`}function Me(e){return typeof e.default==`function`}function Ne(e){return e.data!==void 0}function Pe(e){return typeof Response<`u`&&e instanceof Response}function Fe(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}var Ie;function Le(e){if(Ie)return Ie;async function t(){I=await Ce(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),je(n)?n=await n.instantiator(t):Me(n)?n=await n.default(t):(Ne(n)&&(n=n.data),Pe(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await ze(n)(t):await Be(n)(t):Fe(n)||n instanceof WebAssembly.Module?n=await Re(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Re(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Ie=t(),Ie}function Re(e){return t=>WebAssembly.instantiate(e,t)}function ze(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Be(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Ve(e){return e&&await Le(e),{createScanner(e){return new Ae(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ke(e)}}}var He=i({langs:n,themes:ve,engine:()=>Ve(c(()=>import(`./wasm-CEUrWlVz.js`),[]))}),{codeToHtml:Ue,codeToHast:We,codeToTokens:Ge,codeToTokensBase:Ke,codeToTokensWithThemes:qe,getSingletonHighlighter:Je,getLastGrammarState:Ye}=t(He,{guessEmbeddedLanguages:e});async function Xe(e){if(_e())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=pe.get(e);if(t!=null)return t;try{let t=me.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let r=t().then(({default:t})=>{let n={name:e,data:t};return P.has(e)||P.set(e,n),n});return pe.set(e,r),await r}finally{pe.delete(e)}}function Ze(e){return P.get(e)??Xe(e)}async function Qe(e){if(_e())throw Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=le.get(e);if(t!=null)return t;try{let t=ue.get(e)??ve[e];if(t==null)throw Error(`resolveTheme: No valid loader for ${e}`);let n=t().then(t=>$e(e,`default`in t?t.default:t));le.set(e,n);let r=await n;if(r.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return N.set(r.name,r),r}finally{le.delete(e)}}function $e(e,t){return N.get(e)??(t=r(t),N.set(e,t),t)}function et(e){return N.get(e)??Qe(e)}function tt(e,t){if(ue.has(e)){console.error(`SharedHighlight.registerCustomTheme: theme name already registered`,e);return}ue.set(e,t)}var L;async function nt({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){L??=He({themes:[],langs:[`text`],engine:n===`shiki-wasm`?Ve(c(()=>import(`./wasm-CEUrWlVz.js`),[])):o()});let r=it(L)?await L:L;L=r;let i=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=Ze(e);`then`in t?i.push(t):ge(t,r)}let a=[];for(let t of e){let e=et(t);`then`in e?a.push(e):fe(e,L)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{ge(e,r)}),Promise.all(a).then(e=>{fe(e,r)})]),r}function rt(){if(L!=null&&!(`then`in L))return L}function it(e=L){return e!=null&&`then`in e}tt(`pierre-dark`,async()=>{let{default:e}=await c(async()=>{let{default:e}=await import(`./pierre-dark-CizZ1Z5z.js`);return{default:e}},[]);return{...e,name:`pierre-dark`}}),tt(`pierre-light`,async()=>{let{default:e}=await c(async()=>{let{default:e}=await import(`./pierre-light-CHMWfAMe.js`);return{default:e}},[]);return{...e,name:`pierre-light`}});function at(e=k){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function ot(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}var R=new Map,z={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function B(e){if(R.has(e))return R.get(e)??`text`;if(z[e]!=null)return z[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(R.has(t[1]))return R.get(t[1])??`text`;if(z[t[1]]!=null)return z[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return R.has(n)?R.get(n)??`text`:z[n]??`text`}function V(e){return e.replace(/\n$|\r\n$/,``)}function H(e){return{type:`text`,value:e}}function U({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function st({name:e,width:t=16,height:n=16,properties:r}){return U({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[U({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function ct(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function lt(e){return U({tagName:`div`,properties:{"data-gutter":``},children:e})}function ut(e,t,n,r={}){return U({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[U({tagName:`span`,properties:{"data-line-number-content":``},children:[H(`${t}`)]})]})}function W(e,t,n){return U({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function dt(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}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(H(`
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./engine-compile-B24DC8pd.js";import{d as s,n as c,p as l,t as u,u as d}from"./index-_MPb8SvH.js";var f={position:`absolute`,top:0,bottom:0,textAlign:`center`},p={display:`contents`};function m(){return null}var h=`diffs-container`,g=/(?=^From [a-f0-9]+ .+$)/m,_=/(?=^diff --git)/gm,v=/(?=^---\s+\S)/gm,y=/(?=^@@ )/gm,b=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,x=/(?<=\n)/,S=/^(---|\+\+\+)\s+([^\t\r\n]+)/,C=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,w=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,T=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,E=`header-prefix`,D=`header-metadata`,O=`header-custom`,k={dark:`pierre-dark`,light:`pierre-light`},ee=`data-theme-css`,te=`data-unsafe-css`,ne={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},re=Object.freeze({fromStart:0,fromEnd:0}),ie={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ae={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function A(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}var j=d();function oe(e,t){return typeof window>`u`&&t!=null?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t}}),e]}):(0,j.jsx)(j.Fragment,{children:e})}var M=l(s(),1),se=(0,M.createContext)(void 0);function ce(){return(0,M.useContext)(se)}var N=new Map,le=new Map,ue=new Map,de=new Set;function fe(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=N.get(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,N.has(n)||N.set(n,e);de.has(n)||(de.add(n),t.loadThemeSync(e))}}var P=new Map,pe=new Map,me=new Map,he=new Set;function ge(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(he.has(n.name))continue;let e=P.get(n.name);e??(e=n,P.set(n.name,e)),he.add(e.name),t.loadLanguageSync(e.data)}}function _e(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var ve=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>c(()=>import(`./andromeeda-N4z3YzmR.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>c(()=>import(`./aurora-x-CND-FqEb.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>c(()=>import(`./ayu-dark-on7xzq_B.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>c(()=>import(`./ayu-light-DnGeGGc2.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>c(()=>import(`./ayu-mirage-DG3LlYC_.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-frappe-Dr22sraq.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>c(()=>import(`./catppuccin-latte-C57EeX8c.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-macchiato-CpheI4uD.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>c(()=>import(`./catppuccin-mocha-D8Lmdks_.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>c(()=>import(`./dark-plus-CqeW_0kH.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>c(()=>import(`./dracula-CtqCPLGa.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>c(()=>import(`./dracula-soft-DmBpwRAy.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>c(()=>import(`./everforest-dark-CrbyKk4n.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>c(()=>import(`./everforest-light-DRbSh8Tm.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>c(()=>import(`./github-dark-ipGuFGYC.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>c(()=>import(`./github-dark-default-DX3IG_X0.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>c(()=>import(`./github-dark-dimmed-CH6p_7ez.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>c(()=>import(`./github-dark-high-contrast-Bg2sSao5.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>c(()=>import(`./github-light-BxjqOQl0.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>c(()=>import(`./github-light-default-DwpDd1IQ.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>c(()=>import(`./github-light-high-contrast-C0QeixPf.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-hard-BIMX9ePb.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-medium-DxuwyVzM.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>c(()=>import(`./gruvbox-dark-soft-ba2fjht0.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-hard-DAJK2PqC.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-medium-WRifDAJD.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>c(()=>import(`./gruvbox-light-soft-B0dBOoVB.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>c(()=>import(`./horizon-C5RtD1fY.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>c(()=>import(`./horizon-bright-pEOice34.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>c(()=>import(`./houston-A0zg9vNP.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>c(()=>import(`./kanagawa-dragon-CtPmcCMp.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>c(()=>import(`./kanagawa-lotus-DpOXEGCa.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>c(()=>import(`./kanagawa-wave-CLVCyc-n.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>c(()=>import(`./laserwave-7fEj4XGb.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>c(()=>import(`./light-plus-DHI2dh3p.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>c(()=>import(`./material-theme-Dm6ETY8i.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>c(()=>import(`./material-theme-darker-BeyjmM5Z.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>c(()=>import(`./material-theme-lighter-CCOYYzKL.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>c(()=>import(`./material-theme-ocean-CUtPiiX3.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>c(()=>import(`./material-theme-palenight-2L4zMwIM.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>c(()=>import(`./min-dark-B8TUPGHg.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>c(()=>import(`./min-light-BDOoBxcA.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>c(()=>import(`./monokai-E_VBmXGZ.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>c(()=>import(`./night-owl-DefhalNX.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>c(()=>import(`./night-owl-light-byb3AbEn.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>c(()=>import(`./nord-D5rQzHT-.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>c(()=>import(`./one-dark-pro-DxXww9jg.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>c(()=>import(`./one-light-D9c03w7t.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>c(()=>import(`./plastic-uOsw7z1x.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>c(()=>import(`./poimandres-CyO4HORD.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>c(()=>import(`./red-z4H4llUY.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>c(()=>import(`./rose-pine-BADquuIH.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>c(()=>import(`./rose-pine-dawn-BLcEeBoh.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>c(()=>import(`./rose-pine-moon-BK_tLY1Y.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>c(()=>import(`./slack-dark-DOnVms5P.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>c(()=>import(`./slack-ochin-DcRTft4q.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>c(()=>import(`./snazzy-light-x9CLJ1W9.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>c(()=>import(`./solarized-dark-BB1sh-pe.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>c(()=>import(`./solarized-light-9-RPS998.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>c(()=>import(`./synthwave-84-eJ9uRN_S.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>c(()=>import(`./tokyo-night-B9N7LyrF.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>c(()=>import(`./vesper-CtgQQ2sf.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>c(()=>import(`./vitesse-black-jXdfyqgD.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>c(()=>import(`./vitesse-dark-B88PxG1r.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>c(()=>import(`./vitesse-light-BXxZh2iV.js`),[]))}].map(e=>[e.id,e.import])),ye=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function be(){return 2147483648}function xe(){return typeof performance<`u`?performance.now():Date.now()}var Se=(e,t)=>e+(t-e%t)%t;async function Ce(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=be();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Se(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:xe,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var we=Object.defineProperty,Te=(e,t,n)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t,n)=>Te(e,typeof t==`symbol`?t:t+``,n),I=null;function Ee(e){throw new ye(e.UTF8ToString(e.getLastOnigError()))}var De=class e{constructor(t){F(this,`utf16Length`),F(this,`utf8Length`),F(this,`utf16Value`),F(this,`utf8Value`),F(this,`utf16OffsetToUtf8`),F(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Oe=class e{constructor(t){if(F(this,`id`,++e.LAST_ID),F(this,`_onigBinding`),F(this,`content`),F(this,`utf16Length`),F(this,`utf8Length`),F(this,`utf16OffsetToUtf8`),F(this,`utf8OffsetToUtf16`),F(this,`ptr`),!I)throw new ye(`Must invoke loadWasm first.`);this._onigBinding=I,this.content=t;let n=new De(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=I.omalloc(1e4),e._sharedPtrInUse=!0,I.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(I)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};F(Oe,`LAST_ID`,0),F(Oe,`_sharedPtr`,0),F(Oe,`_sharedPtrInUse`,!1);var ke=Oe,Ae=class{constructor(e){if(F(this,`_onigBinding`),F(this,`_ptr`),!I)throw new ye(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new De(e[r]);t[r]=i.createString(I),n[r]=i.utf8Length}let r=I.omalloc(4*e.length);I.HEAPU32.set(t,r/4);let i=I.omalloc(4*e.length);I.HEAPU32.set(n,i/4);let a=I.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)I.ofree(t[n]);I.ofree(i),I.ofree(r),a===0&&Ee(I),this._onigBinding=I,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ke(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function je(e){return typeof e.instantiator==`function`}function Me(e){return typeof e.default==`function`}function Ne(e){return e.data!==void 0}function Pe(e){return typeof Response<`u`&&e instanceof Response}function Fe(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}var Ie;function Le(e){if(Ie)return Ie;async function t(){I=await Ce(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),je(n)?n=await n.instantiator(t):Me(n)?n=await n.default(t):(Ne(n)&&(n=n.data),Pe(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await ze(n)(t):await Be(n)(t):Fe(n)||n instanceof WebAssembly.Module?n=await Re(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Re(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Ie=t(),Ie}function Re(e){return t=>WebAssembly.instantiate(e,t)}function ze(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Be(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Ve(e){return e&&await Le(e),{createScanner(e){return new Ae(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ke(e)}}}var He=i({langs:n,themes:ve,engine:()=>Ve(c(()=>import(`./wasm-CEUrWlVz.js`),[]))}),{codeToHtml:Ue,codeToHast:We,codeToTokens:Ge,codeToTokensBase:Ke,codeToTokensWithThemes:qe,getSingletonHighlighter:Je,getLastGrammarState:Ye}=t(He,{guessEmbeddedLanguages:e});async function Xe(e){if(_e())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=pe.get(e);if(t!=null)return t;try{let t=me.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let r=t().then(({default:t})=>{let n={name:e,data:t};return P.has(e)||P.set(e,n),n});return pe.set(e,r),await r}finally{pe.delete(e)}}function Ze(e){return P.get(e)??Xe(e)}async function Qe(e){if(_e())throw Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=le.get(e);if(t!=null)return t;try{let t=ue.get(e)??ve[e];if(t==null)throw Error(`resolveTheme: No valid loader for ${e}`);let n=t().then(t=>$e(e,`default`in t?t.default:t));le.set(e,n);let r=await n;if(r.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return N.set(r.name,r),r}finally{le.delete(e)}}function $e(e,t){return N.get(e)??(t=r(t),N.set(e,t),t)}function et(e){return N.get(e)??Qe(e)}function tt(e,t){if(ue.has(e)){console.error(`SharedHighlight.registerCustomTheme: theme name already registered`,e);return}ue.set(e,t)}var L;async function nt({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){L??=He({themes:[],langs:[`text`],engine:n===`shiki-wasm`?Ve(c(()=>import(`./wasm-CEUrWlVz.js`),[])):o()});let r=it(L)?await L:L;L=r;let i=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=Ze(e);`then`in t?i.push(t):ge(t,r)}let a=[];for(let t of e){let e=et(t);`then`in e?a.push(e):fe(e,L)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{ge(e,r)}),Promise.all(a).then(e=>{fe(e,r)})]),r}function rt(){if(L!=null&&!(`then`in L))return L}function it(e=L){return e!=null&&`then`in e}tt(`pierre-dark`,async()=>{let{default:e}=await c(async()=>{let{default:e}=await import(`./pierre-dark-CizZ1Z5z.js`);return{default:e}},[]);return{...e,name:`pierre-dark`}}),tt(`pierre-light`,async()=>{let{default:e}=await c(async()=>{let{default:e}=await import(`./pierre-light-CHMWfAMe.js`);return{default:e}},[]);return{...e,name:`pierre-light`}});function at(e=k){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function ot(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}var R=new Map,z={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function B(e){if(R.has(e))return R.get(e)??`text`;if(z[e]!=null)return z[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(R.has(t[1]))return R.get(t[1])??`text`;if(z[t[1]]!=null)return z[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return R.has(n)?R.get(n)??`text`:z[n]??`text`}function V(e){return e.replace(/\n$|\r\n$/,``)}function H(e){return{type:`text`,value:e}}function U({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function st({name:e,width:t=16,height:n=16,properties:r}){return U({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[U({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function ct(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function lt(e){return U({tagName:`div`,properties:{"data-gutter":``},children:e})}function ut(e,t,n,r={}){return U({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[U({tagName:`span`,properties:{"data-line-number-content":``},children:[H(`${t}`)]})]})}function W(e,t,n){return U({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function dt(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}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(H(`
|
|
2
2
|
`)),e}var ft=Symbol(`no-token`),pt=Symbol(`multiple-tokens`);function mt(e){let t=ht(e);if(t!=null)return t;let n=ft,r=[],i=[],a,o=()=>{if(i.length===0||a==null){i=[],a=void 0;return}if(i.length===1){let e=i[0];if(e?.type===`element`){_t(e,a);for(let t of e.children)gt(t)}else gt(e);r.push(e),i=[],a=void 0;return}for(let e of i)gt(e);r.push(U({tagName:`span`,properties:{"data-char":a},children:i})),i=[],a=void 0},s=e=>{if(e!==ft){if(e===pt){n=pt;return}if(n===ft){n=e;return}n!==e&&(n=pt)}};for(let t of e.children){let e=t.type===`element`?mt(t):ft;if(s(e),typeof e!=`number`){o(),r.push(t);continue}a!=null&&a!==e&&o(),a??=e,i.push(t)}return o(),e.children=r,n}function ht(e){let t=e.properties[`data-char`];if(typeof t==`number`)return t}function gt(e){if(e.type===`element`){e.properties[`data-char`]=void 0;for(let t of e.children)gt(t)}}function _t(e,t){e.properties[`data-char`]=t}function vt(e={}){let{classPrefix:t=`__shiki_`,classSuffix:n=``,classReplacer:r=e=>e}=e,i=new Map;function a(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function o(e){let o=t+yt(typeof e==`string`?e:a(e))+n;return o=r(o),i.has(o)||i.set(o,typeof e==`string`?e:{...e}),o}return{name:`@shikijs/transformers:style-to-class`,pre(e){if(!e.properties.style)return;let t=o(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(let t of e)for(let e of t){if(!e.htmlStyle)continue;let t=o(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry(){return i},getCSS(){let e=``;for(let[t,n]of i.entries())e+=`.${t}{${typeof n==`string`?n:a(n)}}`;return e},clearRegistry(){i.clear()}}}function yt(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0,i;t<e.length;t++)i=e.charCodeAt(t),n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function bt(e=!1,t=!1){let n={lineInfo:[]},r=[{line(e){return delete e.properties.class,e},pre(t){let r=ct(t),i=[];if(r!=null){let t=1;for(let a of r.children)a.type===`element`&&(e&&mt(a),i.push(dt(a,t,n)),t++);r.children=i}return t},...e?{tokens(e){for(let t of e){let e=0;for(let n of t){let t=n;t.__lineChar??=e,e+=n.content.length}}},preprocess(e,t){t.mergeWhitespaces=`never`},span(e,t,n,r,i){if(i?.offset!=null&&i.content!=null){let t=i.__lineChar;return t!=null&&(e.properties[`data-char`]=t),e}return e}}:null}];return t&&r.push(St,xt),{state:n,transformers:r,toClass:xt}}var xt=vt({classPrefix:`hl-`}),St={name:`token-style-normalizer`,tokens(e){for(let t of e)for(let e of t){if(e.htmlStyle!=null)continue;let t={};e.color!=null&&(t.color=e.color),e.bgColor!=null&&(t[`background-color`]=e.bgColor),e.fontStyle!=null&&e.fontStyle!==0&&(e.fontStyle&1&&(t[`font-style`]=`italic`),e.fontStyle&2&&(t[`font-weight`]=`bold`),e.fontStyle&4&&(t[`text-decoration`]=`underline`)),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function G(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}function Ct({theme:e=k,highlighter:t,prefix:n}){let r=``;if(typeof e==`string`){let i=t.getTheme(e);r+=`color:${i.fg};`,r+=`background-color:${i.bg};`,r+=`${G(`global`)}fg:${i.fg};`,r+=`${G(`global`)}bg:${i.bg};`,r+=wt(i,n)}else{let n=t.getTheme(e.dark);r+=`${G(`global`)}dark:${n.fg};`,r+=`${G(`global`)}dark-bg:${n.bg};`,r+=wt(n,`dark`),n=t.getTheme(e.light),r+=`${G(`global`)}light:${n.fg};`,r+=`${G(`global`)}light-bg:${n.bg};`,r+=wt(n,`light`)}return r}function wt(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${G(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${G(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${G(`global`)}${t}modified-color:${a};`),n}function Tt(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t.children;t=`children`in t?t.children[0]:null}throw console.error(e),Error(`getLineNodes: Unable to find children`)}function Et(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Dt(e,t){return ot(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}function Ot(e){let t=e.lang??B(e.name),n=e.lang??(e.prevName==null?`text`:B(e.prevName));return t===`text`&&n===`text`}function K({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:a=1,callback:o}){let s={finalHunk:e.hunks.at(-1),viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!s.isWindowedHighlight)return!1;let e=s.unifiedCount>=n+r,i=s.splitCount>=n+r;return t===`unified`?e:(t===`split`||e)&&i},shouldSkip(e,r){if(!s.isWindowedHighlight)return!1;let i=s.unifiedCount+e<n,a=s.splitCount+r<n;return t===`unified`?i:(t===`split`||i)&&a},incrementCounts(e,n){(t===`unified`||t===`both`)&&(s.unifiedCount+=e),(t===`split`||t===`both`)&&(s.splitCount+=n)},isInWindow(e,n){if(!s.isWindowedHighlight)return!0;let r=s.isInUnifiedWindow(e),i=s.isInSplitWindow(n);return t===`unified`?r:t===`split`?i:r||i},isInUnifiedWindow(e){return!s.isWindowedHighlight||s.unifiedCount>=n-e&&s.unifiedCount<n+r},isInSplitWindow(e){return!s.isWindowedHighlight||s.splitCount>=n-e&&s.splitCount<n+r},emit(e,n=!1){return n||(t===`unified`?s.incrementCounts(1,0):t===`split`?s.incrementCounts(0,1):s.incrementCounts(1,1)),o(e)??!1}};hunkIterator:for(let[n,r]of e.hunks.entries()){if(s.shouldBreak())break;let o=kt(e.isPartial,r.collapsedBefore,i,n,a),c=(()=>{if(r!==s.finalHunk||!At(e))return;let t=e.additionLines.length-(r.additionLineIndex+r.additionCount),n=e.deletionLines.length-(r.deletionLineIndex+r.deletionCount);if(t!==n)throw Error(`iterateOverDiff: trailing context mismatch (additions=${t}, deletions=${n}) for ${e.name}`);let o=Math.min(t,n);return kt(e.isPartial,o,i,e.hunks.length,a)})(),l=o.fromStart+o.fromEnd;function u(e,n){return c==null||c.collapsedLines<=0||c.fromStart+c.fromEnd>0?0:t===`unified`?e===r.unifiedLineStart+r.unifiedLineCount-1?c.collapsedLines:0:n===r.splitLineStart+r.splitLineCount-1?c.collapsedLines:0}function d(){if(o.collapsedLines===0)return 0;let e=o.collapsedLines;return o.collapsedLines=0,e}if(s.shouldSkip(l,l))s.incrementCounts(l,l),d();else{let e=r.unifiedLineStart-o.rangeSize,t=r.splitLineStart-o.rangeSize,i=r.deletionLineIndex-o.rangeSize,a=r.additionLineIndex-o.rangeSize,c=r.deletionStart-o.rangeSize,l=r.additionStart-o.rangeSize,u=0;for(;u<o.fromStart;){if(s.isInWindow(0,0)){if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:0,collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:c+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:l+u,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);u++}for(e=r.unifiedLineStart-o.fromEnd,t=r.splitLineStart-o.fromEnd,i=r.deletionLineIndex-o.fromEnd,a=r.additionLineIndex-o.fromEnd,c=r.deletionStart-o.fromEnd,l=r.additionStart-o.fromEnd,u=0;u<o.fromEnd;){if(s.isInWindow(0,0)){if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:c+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:l+u,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);u++}}let f=r.unifiedLineStart,p=r.splitLineStart,m=r.deletionLineIndex,h=r.additionLineIndex,g=r.deletionStart,_=r.additionStart,v=r.hunkContent.at(-1);for(let e of r.hunkContent){if(s.shouldBreak())break hunkIterator;let i=e===v;if(e.type===`context`){if(s.shouldSkip(e.lines,e.lines))s.incrementCounts(e.lines,e.lines),d();else{let t=0;for(;t<e.lines;){if(s.isInWindow(0,0)){let a=i&&t===e.lines-1,o=f+t,c=p+t;if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:u(o,c),type:`context`,deletionLine:{lineNumber:g+t,lineIndex:m+t,noEOFCR:a&&r.noEOFCRDeletions,unifiedLineIndex:o,splitLineIndex:c},additionLine:{unifiedLineIndex:o,splitLineIndex:c,lineIndex:h+t,lineNumber:_+t,noEOFCR:a&&r.noEOFCRAdditions}}))break hunkIterator}else s.incrementCounts(1,1);t++}}f+=e.lines,p+=e.lines,m+=e.lines,h+=e.lines,g+=e.lines,_+=e.lines}else{let a=Math.max(e.deletions,e.additions),o=e.deletions+e.additions;if(!s.shouldSkip(o,a)){let c=jt(s,e,t);for(let[l,v]of c)for(let c=l;c<v;c++){let l=u(f+c,t===`unified`?p+(c<e.deletions?c:c-e.deletions):p+c);if(s.emit(Mt({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:l,diffStyle:t,index:c,unifiedLineIndex:f,splitLineIndex:p,additionLineIndex:h,deletionLineIndex:m,additionLineNumber:_,deletionLineNumber:g,content:e,isLastContent:i,unifiedCount:o,splitCount:a}),!0))break hunkIterator}}d(),s.incrementCounts(o,a),f+=o,p+=a,m+=e.deletions,h+=e.additions,g+=e.deletions,_+=e.additions}}if(c!=null){let{collapsedLines:t,fromStart:n,fromEnd:r}=c,i=n+r,a=0;for(;a<i;){if(s.shouldBreak())break hunkIterator;if(s.isInWindow(0,0)){let n=a===i-1;if(s.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:n?t:0,type:`context-expanded`,deletionLine:{lineNumber:g+a,lineIndex:m+a,noEOFCR:!1,unifiedLineIndex:f+a,splitLineIndex:p+a},additionLine:{unifiedLineIndex:f+a,splitLineIndex:p+a,lineIndex:h+a,lineNumber:_+a,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);a++}}}}function kt(e,t,n,r,i){if(t=Math.max(t,0),t===0||e)return{fromStart:0,fromEnd:0,rangeSize:t,collapsedLines:Math.max(t,0)};if(n===!0||t<=i)return{fromStart:t,fromEnd:0,rangeSize:t,collapsedLines:0};let a=n?.get(r),o=Math.min(Math.max(a?.fromStart??0,0),t),s=Math.min(Math.max(a?.fromEnd??0,0),t),c=o+s,l=c>=t;return{fromStart:l?t:o,fromEnd:l?0:s,rangeSize:t,collapsedLines:Math.max(t-c,0)}}function At(e){let t=e.hunks.at(-1);return t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:t.additionLineIndex+t.additionCount<e.additionLines.length||t.deletionLineIndex+t.deletionCount<e.deletionLines.length}function jt(e,t,n){if(!e.isWindowedHighlight)return[[0,n===`unified`?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];let r=n!==`split`,i=n!==`unified`,a=n===`unified`?`unified`:`split`,o=[];function s(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;let r=Math.max(0,e.viewportStart-t),i=Math.min(n,e.viewportEnd-t);return i>r?[r,i]:void 0}function c(e,n){return a===`split`?e:n===`additions`?[e[0]+t.deletions,e[1]+t.deletions]:e}function l(e,t){if(e==null)return;let[n,r]=c(e,t);r>n&&o.push([n,r])}if(r&&(l(s(e.unifiedCount,t.deletions),`deletions`),l(s(e.unifiedCount+t.deletions,t.additions),`additions`)),i&&(l(s(e.splitCount,t.deletions),`deletions`),l(s(e.splitCount,t.additions),`additions`)),o.length===0)return o;o.sort((e,t)=>e[0]-t[0]);let u=[o[0]];for(let[e,t]of o.slice(1)){let n=u[u.length-1];e<=n[1]?n[1]=Math.max(n[1],t):u.push([e,t])}return u}function Mt({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,diffStyle:i,index:a,unifiedLineIndex:o,splitLineIndex:s,additionLineIndex:c,deletionLineIndex:l,additionLineNumber:u,deletionLineNumber:d,content:f,isLastContent:p,unifiedCount:m,splitCount:h}){let g=a<f.deletions?o+a:void 0,_=i===`unified`?a>=f.deletions?o+a:void 0:a<f.additions?o+f.deletions+a:void 0,v=i===`unified`?s+(a<f.deletions?a:a-f.deletions):s+a,y=a<f.deletions?l+a:void 0,b=a<f.deletions?d+a:void 0,x=i===`unified`?a>=f.deletions?c+(a-f.deletions):void 0:a<f.additions?c+a:void 0,S=i===`unified`?a>=f.deletions?u+(a-f.deletions):void 0:a<f.additions?u+a:void 0,C=i===`unified`?p&&a===f.deletions-1&&t.noEOFCRDeletions:p&&a===h-1&&t.noEOFCRDeletions,w=i===`unified`?p&&a===m-1&&t.noEOFCRAdditions:p&&a===h-1&&t.noEOFCRAdditions,T=y!=null&&b!=null&&g!=null?{lineNumber:b,lineIndex:y,noEOFCR:C,unifiedLineIndex:g,splitLineIndex:v}:void 0,E=x!=null&&S!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:v,lineIndex:x,lineNumber:S,noEOFCR:w}:void 0;if(T==null&&E!=null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:E};if(T!=null&&E==null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:T,additionLine:void 0};if(T==null||E==null)throw Error(`iterateOverDiff: missing change line data`);return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:T,additionLine:E}}var q=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},Nt=new class extends q{};function Pt(e,t,n){return Nt.diff(e,t,n)}function Ft(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function It(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Lt(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function Rt(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function J(e,t){return Lt(e,t,``)}function zt(e,t){return Rt(e,t,``)}function Bt(e,t){return t.slice(0,Vt(e,t))}function Vt(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function Y(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function X(e){let t=e.match(/^\s*/);return t?t[0]:``}var Ht=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,Ut=RegExp(`[${Ht}]+|\\s+|[^${Ht}]`,`ug`);new class extends q{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(Ut)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&Wt(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&Wt(n,i,r,null),e}};function Wt(e,t,n,r){if(t&&n){let i=X(t.value),a=Y(t.value),o=X(n.value),s=Y(n.value);if(e){let r=Ft(i,o);e.value=Rt(e.value,o,r),t.value=J(t.value,r),n.value=J(n.value,r)}if(r){let e=It(a,s);r.value=Lt(r.value,s,e),t.value=zt(t.value,e),n.value=zt(n.value,e)}}else if(n){if(e){let e=X(n.value);n.value=n.value.substring(e.length)}if(r){let e=X(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=X(r.value),i=X(t.value),a=Y(t.value),o=Ft(n,i);t.value=J(t.value,o);let s=It(J(n,o),a);t.value=zt(t.value,s),r.value=Lt(r.value,n,s),e.value=Rt(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=X(r.value),n=Bt(Y(t.value),e);t.value=zt(t.value,n)}else if(e){let n=Bt(Y(e.value),X(t.value));t.value=J(t.value,n)}}var Gt=new class extends q{tokenize(e){let t=RegExp(`(\\r?\\n)|[${Ht}]+|[^\\S\\n\\r]+|[^${Ht}]`,`ug`);return e.match(t)||[]}};function Kt(e,t,n){return Gt.diff(e,t,n)}var qt=new class extends q{constructor(){super(...arguments),this.tokenize=Yt}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
3
3
|
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
4
4
|
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
@@ -1720,7 +1720,7 @@ import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./engine-compile-8UOZCzs
|
|
|
1720
1720
|
}`}function er({code:e,pre:t,columnType:n,rowSpan:r,containerSize:i=!1}={}){return e??(e=document.createElement(`code`),e.setAttribute(`data-code`,``),n!=null&&e.setAttribute(`data-${n}`,``),t?.appendChild(e)),r==null?e.style.removeProperty(`grid-row`):e.style.setProperty(`grid-row`,`span ${r}`),i?e.setAttribute(`data-container-size`,``):e.removeAttribute(`data-container-size`),e}function tr({shadowRoot:e,currentNode:t,themeCSS:n}){if(n.trim()===``){t?.remove();return}return t??=nr(),t.textContent=n,t.parentNode!==e&&e.appendChild(t),t}function nr(){let e=document.createElement(`style`);return e.setAttribute(ee,``),e}function rr(e,t){if(t==null)return;let n=e.shadowRoot??e.attachShadow({mode:`open`});n.innerHTML===``&&(n.innerHTML=t)}function ir(e,{type:t,diffIndicators:n,disableBackground:r,disableLineNumbers:i,overflow:a,split:o,totalLines:s,customProperties:c}){if(c!=null)for(let t in c){let n=c[t];n!=null&&e.setAttribute(t,`${n}`)}switch(t===`diff`?(e.setAttribute(`data-diff`,``),e.removeAttribute(`data-file`)):(e.setAttribute(`data-file`,``),e.removeAttribute(`data-diff`)),n){case`bars`:case`classic`:e.setAttribute(`data-indicators`,n);break;case`none`:e.removeAttribute(`data-indicators`);break}return i?e.setAttribute(`data-disable-line-numbers`,``):e.removeAttribute(`data-disable-line-numbers`),r?e.removeAttribute(`data-background`):e.setAttribute(`data-background`,``),t===`diff`?e.setAttribute(`data-diff-type`,o?`split`:`single`):e.removeAttribute(`data-diff-type`),e.setAttribute(`data-overflow`,a),e.tabIndex=0,e.style.setProperty(`--diffs-min-number-column-width-default`,`${`${s}`.length}ch`),e}if(typeof HTMLElement<`u`&&customElements.get(`diffs-container`)==null){let e;class t extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;let t=this.attachShadow({mode:`open`});e??(e=new CSSStyleSheet,e.replaceSync(Xn)),t.adoptedStyleSheets=[e]}}customElements.define(h,t)}function ar(e,t,n){if(e===t||e==null||t==null)return e===t;let r=new Set(n),i=Object.keys(e),a=new Set(Object.keys(t));for(let n of i)if(a.delete(n),!r.has(n)&&(!(n in t)||e[n]!==t[n]))return!1;for(let e of Array.from(a))if(!r.has(e))return!1;return!0}function or(e,t){let n=e?.theme??k,r=t?.theme??k,i=sr(e),a=sr(t);return ot(n,r)&&ar(e,t,[`theme`,`parseDiffOptions`])&&ar(i,a)}function sr(e){if(e!=null&&`parseDiffOptions`in e)return e.parseDiffOptions}function cr({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function lr(e,t){let n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:ur(n,e.startContentIndex)}}function ur(e,t){let n=e.unifiedLineStart;for(let r=0;r<t;r++){let t=e.hunkContent[r];n+=t.type===`context`?t.lines:t.deletions+t.additions}return n}function dr({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderMetadata:i,renderAnnotation:a,renderGutterUtility:o,renderHoverUtility:s,renderMergeConflictUtility:c,lineAnnotations:l,getHoveredLine:u,getInstance:d}){let m=o??s,h=n?.(e),g=r?.(e),_=i?.(e);return(0,j.jsxs)(j.Fragment,{children:[h==null?(0,j.jsxs)(j.Fragment,{children:[g!=null&&(0,j.jsx)(`div`,{slot:`header-prefix`,children:g}),_!=null&&(0,j.jsx)(`div`,{slot:`header-metadata`,children:_})]}):(0,j.jsx)(`div`,{slot:O,children:h}),a!=null&&l?.map((e,t)=>(0,j.jsx)(`div`,{slot:A(e),children:a(e)},t)),t!=null&&c!=null&&d!=null&&t.map(t=>{if(t==null)return;let n=fr(t,e);return(0,j.jsx)(`div`,{slot:n,style:p,children:c(t,d)},n)}),m!=null&&(0,j.jsx)(`div`,{slot:`gutter-utility-slot`,style:f,children:m(u)})]})}function fr(e,t){let n=lr(e,t);return n==null?void 0:cr({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex})}var pr=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&=(this.codeDeletions?.removeEventListener(`scroll`,this.handleDeletionsScroll),this.codeAdditions?.removeEventListener(`scroll`,this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,!1)}setup(e,t,n){if(t==null||n==null)for(let r of e.children??[])r instanceof HTMLElement&&(`deletions`in r.dataset?t=r:`additions`in r.dataset&&(n=r));if(n==null||t==null){this.cleanUp();return}this.codeDeletions!==t&&(this.codeDeletions?.removeEventListener(`scroll`,this.handleDeletionsScroll),this.codeDeletions=t,t.addEventListener(`scroll`,this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener(`scroll`,this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener(`scroll`,this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function mr(e){return U({tagName:`div`,properties:{"data-content-buffer":``,"data-buffer-size":e,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}function hr(e){return U({tagName:`div`,children:[U({tagName:`span`,children:[H(`No newline at end of file`)]})],properties:{"data-no-newline":``,"data-line-type":e,"data-column-content":``}})}function gr(e){return U({tagName:`div`,children:[st({name:e===`both`?`diffs-icon-expand-all`:`diffs-icon-expand`,properties:{"data-icon":``}})],properties:{role:`button`,"data-expand-button":``,"data-expand-both":e===`both`?``:void 0,"data-expand-up":e===`up`?``:void 0,"data-expand-down":e===`down`?``:void 0}})}function Q({type:e,content:t,expandIndex:n,chunked:r=!1,slotName:i,isFirstHunk:a,isLastHunk:o}){let s=0,c=[];if(e===`metadata`&&t!=null&&c.push(U({tagName:`div`,children:[H(t)],properties:{"data-separator-wrapper":``}})),(e===`line-info`||e===`line-info-basic`)&&t!=null){let e=[];n!=null&&(r?(a||(e.push(gr(`up`)),s++),o||(e.push(gr(`down`)),s++)):(e.push(gr(!a&&!o?`both`:a?`down`:`up`)),s++)),e.push(U({tagName:`div`,children:[U({tagName:`span`,children:[H(t)],properties:{"data-unmodified-lines":``}})],properties:{"data-separator-content":``}})),r&&n!=null&&e.push(U({tagName:`div`,children:[H(`Expand all`)],properties:{role:`button`,"data-expand-button":``,"data-expand-all-button":``}})),c.push(U({tagName:`div`,children:e,properties:{"data-separator-wrapper":``,"data-separator-multi-button":s>1?``:void 0}}))}return e===`custom`&&i!=null&&c.push(U({tagName:`slot`,properties:{name:i}})),U({tagName:`div`,children:c,properties:{"data-separator":c.length===0?`simple`:e,"data-expand-index":n,"data-separator-first":a?``:void 0,"data-separator-last":o?``:void 0}})}function _r(e,t){return`hunk-separator-${e}-${t}`}function vr(e){let t=e.at(-1);return t==null?0:Math.max(t.additionStart+t.additionCount,t.deletionStart+t.deletionCount)}function yr(e){return e.startingLine===0&&e.totalLines===1/0&&e.bufferBefore===0&&e.bufferAfter===0}var br=-1,xr=class{__id=`diff-hunks-renderer:${++br}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang=`text`;renderCache;constructor(e={theme:k},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=Mn(e.theme??k)?rt():void 0)}cleanUp(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}expandHunk(e,t,n=this.getOptionsWithDefaults().expansionLineCount){let r={...this.expandedHunks.get(e)??{fromStart:0,fromEnd:0}};(t===`up`||t===`both`)&&(r.fromStart+=n),(t===`down`||t===`both`)&&(r.fromEnd+=n),this.renderCache?.highlighted!==!0&&(this.renderCache=void 0),this.expandedHunks.set(e,r)}getExpandedHunk(e){return this.expandedHunks.get(e)??re}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(e){this.additionAnnotations={},this.deletionAnnotations={};for(let t of e){let e=(()=>{switch(t.side){case`deletions`:return this.deletionAnnotations;case`additions`:return this.additionAnnotations}})(),n=e[t.lineNumber]??[];e[t.lineNumber]=n,n.push(t)}}getUnifiedLineDecoration({lineType:e}){return{gutterLineType:e}}getSplitLineDecoration({side:e,type:t}){return t===`change`?{gutterLineType:e===`deletions`?`change-deletion`:`change-addition`}:{gutterLineType:t}}createAnnotationElement(e){return Nn(e)}getOptionsWithDefaults(){let{diffIndicators:e=`bars`,diffStyle:t=`split`,disableBackground:n=!1,disableFileHeader:r=!1,disableLineNumbers:i=!1,disableVirtualizationBuffers:a=!1,collapsed:o=!1,expandUnchanged:s=!1,collapsedContextThreshold:c=1,expansionLineCount:l=100,hunkSeparators:u=`line-info`,lineDiffType:d=`word-alt`,maxLineDiffLength:f=1e3,overflow:p=`scroll`,theme:m=k,headerRenderMode:h=`default`,tokenizeMaxLineLength:g=1e3,useTokenTransformer:_=!1,useCSSClasses:v=!1}=this.options;return{diffIndicators:e,diffStyle:t,disableBackground:n,disableFileHeader:r,disableLineNumbers:i,disableVirtualizationBuffers:a,collapsed:o,expandUnchanged:s,collapsedContextThreshold:c,expansionLineCount:l,hunkSeparators:u,lineDiffType:d,maxLineDiffLength:f,overflow:p,theme:this.workerManager?.getDiffRenderOptions().theme??m,headerRenderMode:h,tokenizeMaxLineLength:g,useTokenTransformer:_,useCSSClasses:v}}async initializeHighlighter(){return this.highlighter=await nt(Vn(this.computedLang,this.options)),this.highlighter}hydrate(e){if(e==null)return;this.diff=e;let{options:t}=this.getRenderOptions(e),n=this.workerManager?.getDiffResultCache(e);n!=null&&!Dt(t,n.options)&&(n=void 0),this.renderCache??={diff:e,highlighted:!Ot(e),options:t,result:n?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result??this.workerManager.highlightDiffAST(this,this.diff):this.highlighter??(this.computedLang=e.lang??B(e.name),this.initializeHighlighter())}getRenderOptions(e){let t=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();let{theme:e,tokenizeMaxLineLength:t,lineDiffType:n,maxLineDiffLength:r}=this.getOptionsWithDefaults();return{theme:e,useTokenTransformer:Hn(this.options),tokenizeMaxLineLength:t,lineDiffType:n,maxLineDiffLength:r}})();this.getOptionsWithDefaults();let{renderCache:n}=this;return n?.result==null||e!==n.diff||!Dt(t,n.options)?{options:t,forceRender:!0}:{options:t,forceRender:!1}}renderDiff(e=this.renderCache?.diff,t=ie){if(e==null)return;let{expandUnchanged:n=!1,collapsedContextThreshold:r}=this.getOptionsWithDefaults(),i=this.workerManager?.getDiffResultCache(e);i!=null&&this.renderCache==null&&(this.renderCache={diff:e,highlighted:!0,renderRange:void 0,...i});let{options:a,forceRender:o}=this.getRenderOptions(e);if(this.renderCache??={diff:e,highlighted:!1,options:a,result:void 0,renderRange:void 0},this.workerManager?.isWorkingPool()===!0)(this.renderCache.result==null||!this.renderCache.highlighted&&(e!==this.renderCache.diff||!An(this.renderCache.renderRange,t)))&&(this.renderCache.diff=e,this.renderCache.result=this.workerManager.getPlainDiffAST(e,t.startingLine,t.totalLines,yr(t)||n?!0:this.expandedHunks,r),this.renderCache.renderRange=t),t.totalLines>0&&(!this.renderCache.highlighted||o)&&this.workerManager.highlightDiffAST(this,e);else{this.computedLang=e.lang??B(e.name);let t=this.highlighter!=null&&Mn(a.theme),n=this.highlighter!=null&&jn(this.computedLang);if(this.highlighter!=null&&t&&(o||!this.renderCache.highlighted&&n||this.renderCache.result==null)){let{result:t,options:r}=this.renderDiffWithHighlighter(e,this.highlighter,!n);this.renderCache={diff:e,options:r,highlighted:n,result:t,renderRange:void 0}}(!t||!n)&&this.asyncHighlight(e).then(({result:t,options:n})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(e,t,n)})}return this.renderCache.result==null?void 0:this.processDiffResult(this.renderCache.diff,t,this.renderCache.result)}async asyncRender(e,t=ie){let{result:n}=await this.asyncHighlight(e);return this.processDiffResult(e,t,n)}createPreElement(e,t,n){let{diffIndicators:r,disableBackground:i,disableLineNumbers:a,overflow:o}=this.getOptionsWithDefaults();return zn({type:`diff`,diffIndicators:r,disableBackground:i,disableLineNumbers:a,overflow:o,split:e,totalLines:t,customProperties:n})}async asyncHighlight(e){this.computedLang=e.lang??B(e.name);let t=this.highlighter!=null&&Mn(this.options.theme??k),n=this.highlighter!=null&&jn(this.computedLang);return(this.highlighter==null||!t||!n)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(e,this.highlighter)}renderDiffWithHighlighter(e,t,n=!1){let{options:r}=this.getRenderOptions(e),{collapsedContextThreshold:i}=this.getOptionsWithDefaults();return{result:sn(e,t,r,{forcePlainText:n,expandedHunks:n?!0:void 0,collapsedContextThreshold:i}),options:r}}onHighlightSuccess(e,t,n){if(this.renderCache==null)return;let r=!this.renderCache.highlighted||!Dt(this.renderCache.options,n)||this.renderCache.diff!==e;this.renderCache={diff:e,options:n,highlighted:!0,result:t,renderRange:void 0},r&&this.onRenderUpdate?.()}onHighlightError(e){console.error(e)}processDiffResult(e,t,{code:n,themeStyles:r,baseThemeType:i}){let{diffStyle:a,disableFileHeader:o,expandUnchanged:s,expansionLineCount:c,collapsedContextThreshold:l,hunkSeparators:u}=this.getOptionsWithDefaults();this.diff=e;let d=a===`unified`,f=[],p=[],m=[],h=[],{additionLines:g,deletionLines:_}=n,v={rowCount:0,hunkSeparators:u,additionsContentAST:f,deletionsContentAST:p,unifiedContentAST:m,unifiedGutterAST:lt(),deletionsGutterAST:lt(),additionsGutterAST:lt(),expansionLineCount:c,hunkData:h,incrementRowCount(e=1){v.rowCount+=e},pushToGutter(e,t){switch(e){case`unified`:v.unifiedGutterAST.children.push(t);break;case`deletions`:v.deletionsGutterAST.children.push(t);break;case`additions`:v.additionsGutterAST.children.push(t);break}}},y=Dr(e),b={size:0,side:void 0,increment(){this.size+=1},flush(){if(a!==`unified`){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side===`additions`?(v.pushToGutter(`additions`,W(void 0,`buffer`,this.size)),f?.push(mr(this.size))):(v.pushToGutter(`deletions`,W(void 0,`buffer`,this.size)),p?.push(mr(this.size))),this.size=0,this.side=void 0}}},x=(e,t,n,r,i)=>{v.pushToGutter(e,ut(t,n,r,i))};function S(e){b.flush(),a===`unified`?Er(`unified`,e,v):(Er(`deletions`,e,v),Er(`additions`,e,v))}K({diff:e,diffStyle:a,startingLine:t.startingLine,totalLines:t.totalLines,expandedHunks:s?!0:this.expandedHunks,collapsedContextThreshold:l,callback:({hunkIndex:t,hunk:n,collapsedBefore:r,collapsedAfter:i,additionLine:o,deletionLine:s,type:c})=>{let l=s==null?o.splitLineIndex:s.splitLineIndex,d=o==null?s.unifiedLineIndex:o.unifiedLineIndex;a===`split`&&c!==`change`&&b.flush(),r>0&&S({hunkIndex:t,collapsedLines:r,rangeSize:Math.max(n?.collapsedBefore??0,0),hunkSpecs:n?.hunkSpecs,isFirstHunk:t===0,isLastHunk:!1,isExpandable:!e.isPartial});let f=a===`unified`?d:l,p={type:c,hunkIndex:t,lineIndex:f,unifiedLineIndex:d,splitLineIndex:l,deletionLine:s,additionLine:o};if(a===`unified`){let n=this.getUnifiedInjectedRowsForLine?.(p);n?.before!=null&&Cr(n.before,v);let r=s==null?void 0:_[s.lineIndex],i=o==null?void 0:g[o.lineIndex];if(r==null&&i==null){let t=`DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong`;throw console.error(t,{file:e.name}),Error(t)}let a=c===`change`?o==null?`change-deletion`:`change-addition`:c,u=this.getUnifiedLineDecoration({type:c,lineType:a,additionLineIndex:o?.lineIndex,deletionLineIndex:s?.lineIndex});x(`unified`,u.gutterLineType,o==null?s.lineNumber:o.lineNumber,`${d},${l}`,u.gutterProperties),i==null?r!=null&&(r=$(r,u.contentProperties)):i=$(i,u.contentProperties),Tr({diffStyle:`unified`,type:c,deletionLine:r,additionLine:i,unifiedSpan:this.getAnnotations(`unified`,s?.lineNumber,o?.lineNumber,t,f),createAnnotationElement:e=>this.createAnnotationElement(e),context:v}),n?.after!=null&&Cr(n.after,v)}else{let n=this.getSplitInjectedRowsForLine?.(p);n?.before!=null&&wr(n.before,v,b);let r=s==null?void 0:_[s.lineIndex],i=o==null?void 0:g[o.lineIndex],a=this.getSplitLineDecoration({side:`deletions`,type:c,lineIndex:s?.lineIndex}),u=this.getSplitLineDecoration({side:`additions`,type:c,lineIndex:o?.lineIndex});if(r==null&&i==null){let t=`DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong`;throw console.error(t,{file:e.name}),Error(t)}let d=(()=>{if(c===`change`){if(i==null)return`additions`;if(r==null)return`deletions`}})();if(d!=null){if(b.side!=null&&b.side!==d)throw Error(`DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits`);b.side=d,b.increment()}let m=this.getAnnotations(`split`,s?.lineNumber,o?.lineNumber,t,f);if(m!=null&&b.size>0&&b.flush(),s!=null){let e=$(r,a.contentProperties);x(`deletions`,a.gutterLineType,s.lineNumber,`${s.unifiedLineIndex},${l}`,a.gutterProperties),e!=null&&(r=e)}if(o!=null){let e=$(i,u.contentProperties);x(`additions`,u.gutterLineType,o.lineNumber,`${o.unifiedLineIndex},${l}`,u.gutterProperties),e!=null&&(i=e)}Tr({diffStyle:`split`,type:c,additionLine:i,deletionLine:r,...m,createAnnotationElement:e=>this.createAnnotationElement(e),context:v}),n?.after!=null&&wr(n.after,v,b)}let m=s?.noEOFCR??!1,h=o?.noEOFCR??!1;if(h||m){if(m){let e=c===`context`||c===`context-expanded`?c:`change-deletion`;a===`unified`?(v.unifiedContentAST.push(hr(e)),v.pushToGutter(`unified`,W(e,`metadata`,1))):(v.deletionsContentAST.push(hr(e)),v.pushToGutter(`deletions`,W(e,`metadata`,1)),h||(v.pushToGutter(`additions`,W(void 0,`buffer`,1)),v.additionsContentAST.push(mr(1))))}if(h){let e=c===`context`||c===`context-expanded`?c:`change-addition`;a===`unified`?(v.unifiedContentAST.push(hr(e)),v.pushToGutter(`unified`,W(e,`metadata`,1))):(v.additionsContentAST.push(hr(e)),v.pushToGutter(`additions`,W(e,`metadata`,1)),m||(v.pushToGutter(`deletions`,W(void 0,`buffer`,1)),v.deletionsContentAST.push(mr(1))))}v.incrementRowCount(1)}i>0&&u!==`simple`&&S({hunkIndex:c===`context-expanded`?t:t+1,collapsedLines:i,rangeSize:y,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!e.isPartial}),v.incrementRowCount(1)}}),a===`split`&&b.flush();let C=Math.max(vr(e.hunks),e.additionLines.length??0,e.deletionLines.length??0),w=t.bufferBefore>0||t.bufferAfter>0,T=!d&&e.type!==`deleted`,E=!d&&e.type!==`new`,D=v.rowCount>0||w;f=T&&D?f:void 0,p=E&&D?p:void 0,m=d&&D?m:void 0;let O=this.createPreElement(p!=null&&f!=null,C);return{unifiedGutterAST:d&&D?v.unifiedGutterAST.children:void 0,unifiedContentAST:m,deletionsGutterAST:E&&D?v.deletionsGutterAST.children:void 0,deletionsContentAST:p,additionsGutterAST:T&&D?v.additionsGutterAST.children:void 0,additionsContentAST:f,hunkData:h,preNode:O,themeStyles:r,baseThemeType:i,headerElement:o?void 0:this.renderHeader(this.diff),totalLines:C,rowCount:v.rowCount,bufferBefore:t.bufferBefore,bufferAfter:t.bufferAfter,css:``}}renderCodeAST(e,t){let n=e===`unified`?t.unifiedGutterAST:e===`deletions`?t.deletionsGutterAST:t.additionsGutterAST,r=e===`unified`?t.unifiedContentAST:e===`deletions`?t.deletionsContentAST:t.additionsContentAST;if(n==null||r==null)return;let i=lt(n);return i.properties.style=`grid-row: span ${t.rowCount}`,[i,Pn(r,t.rowCount)]}renderFullAST(e,t=[]){let n=this.getOptionsWithDefaults().hunkSeparators===`line-info`,r=this.renderCodeAST(`unified`,e);if(r!=null)return t.push(U({tagName:`code`,children:r,properties:{"data-code":``,"data-container-size":n?``:void 0,"data-unified":``}})),{...e.preNode,children:t};let i=this.renderCodeAST(`deletions`,e);i!=null&&t.push(U({tagName:`code`,children:i,properties:{"data-code":``,"data-container-size":n?``:void 0,"data-deletions":``}}));let a=this.renderCodeAST(`additions`,e);return a!=null&&t.push(U({tagName:`code`,children:a,properties:{"data-code":``,"data-container-size":n?``:void 0,"data-additions":``}})),{...e.preNode,children:t}}renderFullHTML(e,t=[]){return a(this.renderFullAST(e,t))}renderPartialHTML(e,t){return a(t==null?e:U({tagName:`code`,children:e,properties:{"data-code":``,"data-container-size":this.getOptionsWithDefaults().hunkSeparators===`line-info`?``:void 0,[`data-${t}`]:``}}))}getAnnotations(e,t,n,r,i){let a={type:`annotation`,hunkIndex:r,lineIndex:i,annotations:[]};if(t!=null)for(let e of this.deletionAnnotations[t]??[])a.annotations.push(A(e));let o={type:`annotation`,hunkIndex:r,lineIndex:i,annotations:[]};if(n!=null)for(let t of this.additionAnnotations[n]??[])(e===`unified`?a:o).annotations.push(A(t));if(e===`unified`)return a.annotations.length>0?a:void 0;if(!(o.annotations.length===0&&a.annotations.length===0))return{deletionSpan:a,additionSpan:o}}renderHeader(e){let{headerRenderMode:t}=this.getOptionsWithDefaults();return In({fileOrDiff:e,mode:t})}};function Sr(e){return`${e} unmodified line${e>1?`s`:``}`}function Cr(e,t){for(let n of e)t.unifiedContentAST.push(n.content),t.pushToGutter(`unified`,n.gutter),t.incrementRowCount(1)}function wr(e,t,n){for(let{deletion:r,addition:i}of e){if(r==null&&i==null)continue;let e=r!=null&&i!=null?void 0:r==null?`deletions`:`additions`;(e==null||n.side!==e)&&n.flush(),r!=null&&(t.deletionsContentAST.push(r.content),t.pushToGutter(`deletions`,r.gutter)),i!=null&&(t.additionsContentAST.push(i.content),t.pushToGutter(`additions`,i.gutter)),e!=null&&(n.side=e,n.increment()),t.incrementRowCount(1)}}function Tr({diffStyle:e,type:t,deletionLine:n,additionLine:r,unifiedSpan:i,deletionSpan:a,additionSpan:o,createAnnotationElement:s,context:c}){let l=!1;if(e===`unified`){if(r==null?n!=null&&c.unifiedContentAST.push(n):c.unifiedContentAST.push(r),i!=null){let e=t===`change`?n==null?`change-addition`:`change-deletion`:t;c.unifiedContentAST.push(s(i)),c.pushToGutter(`unified`,W(e,`annotation`,1)),l=!0}}else if(e===`split`){if(n!=null&&c.deletionsContentAST.push(n),r!=null&&c.additionsContentAST.push(r),a!=null){let e=t===`change`?n==null?`context`:`change-deletion`:t;c.deletionsContentAST.push(s(a)),c.pushToGutter(`deletions`,W(e,`annotation`,1)),l=!0}if(o!=null){let e=t===`change`?r==null?`context`:`change-addition`:t;c.additionsContentAST.push(s(o)),c.pushToGutter(`additions`,W(e,`annotation`,1)),l=!0}}l&&c.incrementRowCount(1)}function Er(e,{hunkIndex:t,collapsedLines:n,rangeSize:r,hunkSpecs:i,isFirstHunk:a,isLastHunk:o,isExpandable:s},c){if(n<=0)return;let l=e===`unified`?c.unifiedContentAST:e===`deletions`?c.deletionsContentAST:c.additionsContentAST;if(c.hunkSeparators===`metadata`){i!=null&&(c.pushToGutter(e,Q({type:`metadata`,content:i,isFirstHunk:a,isLastHunk:o})),l.push(Q({type:`metadata`,content:i,isFirstHunk:a,isLastHunk:o})),e!==`additions`&&c.incrementRowCount(1));return}if(c.hunkSeparators===`simple`){t>0&&(c.pushToGutter(e,Q({type:`simple`,isFirstHunk:a,isLastHunk:!1})),l.push(Q({type:`simple`,isFirstHunk:a,isLastHunk:!1})),e!==`additions`&&c.incrementRowCount(1));return}let u=_r(e,t),d=r>c.expansionLineCount,f=s?t:void 0;c.pushToGutter(e,Q({type:c.hunkSeparators,content:Sr(n),expandIndex:f,chunked:d,slotName:u,isFirstHunk:a,isLastHunk:o})),l.push(Q({type:c.hunkSeparators,content:Sr(n),expandIndex:f,chunked:d,slotName:u,isFirstHunk:a,isLastHunk:o})),e!==`additions`&&c.incrementRowCount(1),c.hunkData.push({slotName:u,hunkIndex:t,lines:n,type:e,expandable:s?{up:!a,down:!o,chunked:d}:void 0})}function $(e,t){return e==null||e.type!==`element`||t==null?e:{...e,properties:{...e.properties,...t}}}function Dr(e){let t=e.hunks.at(-1);if(t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;let n=e.additionLines.length-(t.additionLineIndex+t.additionCount),r=e.deletionLines.length-(t.deletionLineIndex+t.deletionCount);if(n!==r)throw Error(`DiffHunksRenderer.processDiffResult: trailing context mismatch (additions=${n}, deletions=${r}) for ${e.name}`);return Math.min(n,r)}function Or(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side&&e.metadata===t.metadata}function kr(e,t){return e.slotName===t.slotName&&e.hunkIndex===t.hunkIndex&&e.lines===t.lines&&e.type===t.type&&e.expandable?.chunked===t.expandable?.chunked&&e.expandable?.up===t.expandable?.up&&e.expandable?.down===t.expandable?.down}function Ar(e){let t=e[0];if(t!==`+`&&t!==`-`&&t!==` `&&t!==`\\`){console.error(`parseLineType: Invalid firstChar: "${t}", full line: "${e}"`);return}let n=e.substring(1);return{line:n===``?`
|
|
1721
1721
|
`:n,type:t===` `?`context`:t===`\\`?`metadata`:t===`+`?`addition`:`deletion`}}function jr(e,t,n=!1){let r=_.test(e),i=e.split(r?_:v),a,o=[];for(let e of i){if(r&&!_.test(e)){if(a==null)a=e;else if(n)throw Error(`parsePatchContent: unknown file blob`);else console.error(`parsePatchContent: unknown file blob:`,e);continue}else if(!r&&!v.test(e)){if(a==null)a=e;else if(n)throw Error(`parsePatchContent: unknown file blob`);else console.error(`parsePatchContent: unknown file blob:`,e);continue}let i=Mr(e,{cacheKey:t==null?void 0:`${t}-${o.length}`,isGitDiff:r,throwOnError:n});i!=null&&o.push(i)}return{patchMetadata:a,files:o}}function Mr(e,{cacheKey:t,isGitDiff:n=_.test(e),oldFile:r,newFile:i,throwOnError:a=!1}={}){let o=0,s=e.split(y),c,l=r==null||i==null,u=0,d=0;for(let e of s){let s=e.split(x),f=s.shift();if(f==null){if(a)throw Error(`parsePatchContent: invalid hunk`);console.error(`parsePatchContent: invalid hunk`,e);continue}let p=f.match(b),m=0,h=0;if(p==null||c==null){if(c!=null){if(a)throw Error(`parsePatchContent: Invalid hunk`);console.error(`parsePatchContent: Invalid hunk`,e);continue}c={name:``,type:`change`,hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:l,additionLines:!l&&r!=null&&i!=null?i.contents.split(x):[],deletionLines:!l&&r!=null&&i!=null?r.contents.split(x):[],cacheKey:t},c.additionLines.length===1&&i?.contents===``&&(c.additionLines.length=0),c.deletionLines.length===1&&r?.contents===``&&(c.deletionLines.length=0),s.unshift(f);for(let e of s){let t=e.match(n?C:S);if(e.startsWith(`diff --git`)){let[,,t,,n]=e.trim().match(w)??[];c.name=n.trim(),t!==n&&(c.prevName=t.trim())}else if(t!=null){let[,e,n]=t;e===`---`&&n!==`/dev/null`?(c.prevName=n.trim(),c.name=n.trim()):e===`+++`&&n!==`/dev/null`&&(c.name=n.trim())}else if(n){if(e.startsWith(`new mode `)&&(c.mode=e.replace(`new mode`,``).trim()),e.startsWith(`old mode `)&&(c.prevMode=e.replace(`old mode`,``).trim()),e.startsWith(`new file mode`)&&(c.type=`new`,c.mode=e.replace(`new file mode`,``).trim()),e.startsWith(`deleted file mode`)&&(c.type=`deleted`,c.mode=e.replace(`deleted file mode`,``).trim()),e.startsWith(`similarity index`)&&(e.startsWith(`similarity index 100%`)?c.type=`rename-pure`:c.type=`rename-changed`),e.startsWith(`index `)){let[,t,n,r]=e.trim().match(T)??[];t!=null&&(c.prevObjectId=t),n!=null&&(c.newObjectId=n),r!=null&&(c.mode=r)}e.startsWith(`rename from `)&&(c.prevName=e.replace(`rename from `,``).trim()),e.startsWith(`rename to `)&&(c.name=e.replace(`rename to `,``).trim())}}continue}let g,_;for(;s.length>0&&(s[s.length-1]===`
|
|
1722
1722
|
`||s[s.length-1]===`\r`||s[s.length-1]===`\r
|
|
1723
|
-
`||s[s.length-1]===``);)s.pop();let v=parseInt(p[3]),y=parseInt(p[1]);u=l?u:y-1,d=l?d:v-1;let E={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(p[4]??`1`),additionStart:v,additionLines:m,deletionCount:parseInt(p[2]??`1`),deletionStart:y,deletionLines:h,deletionLineIndex:u,additionLineIndex:d,hunkContent:[],hunkContext:p[5],hunkSpecs:f,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(E.additionCount)||isNaN(E.deletionCount)||isNaN(E.additionStart)||isNaN(E.deletionStart)){if(a)throw Error(`parsePatchContent: invalid hunk metadata`);console.error(`parsePatchContent: invalid hunk metadata`,E);continue}for(let e of s){let t=Ar(e);if(t==null){console.error(`processFile: invalid rawLine:`,e);continue}let{type:n,line:r}=t;if(n===`addition`)(g==null||g.type!==`change`)&&(g=Pr(`change`,u,d),E.hunkContent.push(g)),d++,l&&c.additionLines.push(r),g.additions++,m++,_=`addition`;else if(n===`deletion`)(g==null||g.type!==`change`)&&(g=Pr(`change`,u,d),E.hunkContent.push(g)),u++,l&&c.deletionLines.push(r),g.deletions++,h++,_=`deletion`;else if(n===`context`)(g==null||g.type!==`context`)&&(g=Pr(`context`,u,d),E.hunkContent.push(g)),d++,u++,l&&(c.deletionLines.push(r),c.additionLines.push(r)),g.lines++,_=`context`;else if(n===`metadata`&&g!=null){if(g.type===`context`?(E.noEOFCRAdditions=!0,E.noEOFCRDeletions=!0):_===`deletion`?E.noEOFCRDeletions=!0:_===`addition`&&(E.noEOFCRAdditions=!0),l&&(_===`addition`||_===`context`)){let e=c.additionLines.length-1;e>=0&&(c.additionLines[e]=V(c.additionLines[e]))}if(l&&(_===`deletion`||_===`context`)){let e=c.deletionLines.length-1;e>=0&&(c.deletionLines[e]=V(c.deletionLines[e]))}}}E.additionLines=m,E.deletionLines=h,E.collapsedBefore=Math.max(E.additionStart-1-o,0),c.hunks.push(E),o=E.additionStart+E.additionCount-1;for(let e of E.hunkContent)e.type===`context`?(E.splitLineCount+=e.lines,E.unifiedLineCount+=e.lines):(E.splitLineCount+=Math.max(e.additions,e.deletions),E.unifiedLineCount+=e.deletions+e.additions);E.splitLineStart=c.splitLineCount+E.collapsedBefore,E.unifiedLineStart=c.unifiedLineCount+E.collapsedBefore,c.splitLineCount+=E.collapsedBefore+E.splitLineCount,c.unifiedLineCount+=E.collapsedBefore+E.unifiedLineCount}if(c!=null){if(c.hunks.length>0&&!l&&c.additionLines.length>0&&c.deletionLines.length>0){let e=c.hunks[c.hunks.length-1],t=e.additionStart+e.additionCount-1,n=c.additionLines.length,r=Math.max(n-t,0);c.splitLineCount+=r,c.unifiedLineCount+=r}return n||(c.prevName!=null&&c.name!==c.prevName?c.hunks.length>0?c.type=`rename-changed`:c.type=`rename-pure`:i!=null&&i.contents===``?c.type=`deleted`:r!=null&&r.contents===``&&(c.type=`new`)),c.type!==`rename-pure`&&c.type!==`rename-changed`&&(c.prevName=void 0),c}}function Nr(e,t,n=!1){let r=[];for(let i of e.split(g))try{r.push(jr(i,t==null?void 0:`${t}-${r.length}`,n))}catch(e){if(n)throw e;console.error(e)}return r}function Pr(e,t,n){return e===`change`?{type:`change`,additions:0,deletions:0,additionLineIndex:n,deletionLineIndex:t}:{type:`context`,lines:0,additionLineIndex:n,deletionLineIndex:t}}function Fr(e,t,n,r=!1){let i=Mr(tn(e.name,t.name,e.contents,t.contents,e.header,t.header,n),{cacheKey:(()=>{if(e.cacheKey!=null&&t.cacheKey!=null)return`${e.cacheKey}:${t.cacheKey}`})(),oldFile:e,newFile:t,throwOnError:r});if(i==null)throw Error(`parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?`);return t.lang!=null&&(i.lang=t.lang),i}var Ir=-1,Lr=class{static LoadedCustomComponent=!0;__id=`file-diff:${++Ir}`;fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;lastRowCount;enabled=!0;constructor(e={theme:k},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.hunksRenderer=this.createHunksRenderer(e),this.resizeManager=new kn,this.scrollSyncManager=new pr,this.interactionManager=new gn(`diff`,_n(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`||e.hunkSeparators===`line-info-basic`?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(e){return{...e,headerRenderMode:e.renderCustomHeader==null?`default`:`custom`,hunkSeparators:typeof e.hunkSeparators==`function`?`custom`:e.hunkSeparators}}createHunksRenderer(e){return new xr(this.getHunksRendererOptions(e),this.handleHighlightRender,this.workerManager)}getLineIndex=(e,t=`additions`)=>{if(this.fileDiff==null)return;let n=this.fileDiff.hunks.at(-1),r,i;hunkIterator:for(let a of this.fileDiff.hunks){let o=t===`deletions`?a.deletionStart:a.additionStart,s=t===`deletions`?a.deletionCount:a.additionCount,c=a.splitLineStart,l=a.unifiedLineStart;if(e<o){let t=o-e;r=Math.max(l-t,0),i=Math.max(c-t,0);break hunkIterator}if(e>=o+s){if(a===n){let t=e-(o+s);r=l+a.unifiedLineCount+t,i=c+a.splitLineCount+t;break hunkIterator}continue}for(let n of a.hunkContent)if(n.type===`context`)if(e<o+n.lines){let t=e-o;i=c+t,r=l+t;break hunkIterator}else o+=n.lines,c+=n.lines,l+=n.lines;else{let a=t===`deletions`?n.deletions:n.additions;if(e<o+a){let a=e-o;r=l+(t===`additions`?n.deletions:0)+a,i=c+a;break hunkIterator}else o+=a,c+=Math.max(n.deletions,n.additions),l+=n.deletions+n.additions}break hunkIterator}if(!(r==null||i==null))return[r,i]};setOptions(e){e!=null&&(this.options=e,this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.interactionManager.setOptions(_n(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`||e.hunkSeparators===`line-info-basic`?this.handleExpandHunk:void 0,this.getLineIndex)))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),!(typeof this.options.theme==`string`||this.fileContainer==null||this.appliedThemeCSS==null)&&this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType))}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}canPartiallyRender(e,t,n){return!(e||t||n||typeof this.options.hunkSeparators==`function`)}setSelectedLines(e){this.interactionManager.setSelection(e)}cleanUp(e=!1){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=``),this.fileContainer=void 0,this.pre!=null&&(this.pre.innerHTML=``,this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,e?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:t,prerenderedHTML:n,preventEmit:r=!1,lineAnnotations:i,oldFile:a,newFile:o,fileDiff:s}=e;this.hydrateElements(t,n),this.pre==null&&this.headerElement==null?this.render({...e,preventEmit:!0}):this.hydrationSetup({fileDiff:s,oldFile:a,newFile:o,lineAnnotations:i}),r||this.emitPostRender()}hydrateElements(e,t){rr(e,t);for(let t of e.shadowRoot?.children??[]){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){this.pre=t;for(let e of t.children)!(e instanceof HTMLElement)||e.tagName.toLowerCase()!==`code`||(`deletions`in e.dataset&&(this.codeDeletions=e),`additions`in e.dataset&&(this.codeAdditions=e),`unified`in e.dataset&&(this.codeUnified=e));continue}if(`diffsHeader`in t.dataset){this.headerElement=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-theme-css`)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute(`data-dehydrated`)),(this.pre!=null||this.headerElement!=null)&&(this.fileContainer=e)}hydrationSetup({fileDiff:e,oldFile:t,newFile:n,lineAnnotations:r}){let{diffStyle:i=`split`,overflow:a=`scroll`}=this.options;this.lineAnnotations=r??this.lineAnnotations,this.additionFile=n,this.deletionFile=t,this.fileDiff=e??(t!=null&&n!=null?Fr(t,n,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,a===`wrap`),a===`scroll`&&i===`split`&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}handleExpandHunk=(e,t,n)=>{this.expandHunk(e,t,n)};expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.rerender()};render({oldFile:e,newFile:t,fileDiff:n,forceRender:r=!1,preventEmit:i=!1,lineAnnotations:a,fileContainer:o,containerWrapper:s,renderRange:c}){if(!this.enabled)throw Error(`FileDiff.render: attempting to call render after cleaned up`);let{collapsed:l=!1}=this.options,u=l?void 0:c,d=e!=null&&t!=null&&(!Et(e,this.deletionFile)||!Et(t,this.additionFile)),f=n!=null&&n!==this.fileDiff,p=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1;if(!l&&An(u,this.renderRange)&&!r&&!p&&(n!=null&&n===this.fileDiff||n==null&&!d))return!1;let{renderRange:m}=this;if(this.renderRange=u,this.deletionFile=e,this.additionFile=t,n==null?e!=null&&t!=null&&d&&(f=!0,this.fileDiff=Fr(e,t,this.options.parseDiffOptions)):this.fileDiff=n,a!=null&&this.setLineAnnotations(a),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{diffStyle:h=`split`,disableErrorHandling:g=!1,disableFileHeader:_=!1,overflow:v=`scroll`,themeType:y=`system`}=this.options;if(_&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),o=this.getOrCreateFileContainer(o,s),l){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let e=this.hunksRenderer.renderDiff(this.fileDiff,ae);e!=null&&this.applyThemeState(o,e.themeStyles,y,e.baseThemeType),e?.headerElement!=null&&this.applyHeaderToDOM(e.headerElement,o),this.renderSeparators([]),this.injectUnsafeCSS()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,o)}return i||this.emitPostRender(),!0}try{let e=this.getOrCreatePreNode(o);if(!(this.canPartiallyRender(r,p,d||f)&&this.applyPartialRender({previousRenderRange:m,renderRange:u}))){let t=this.hunksRenderer.renderDiff(this.fileDiff,u);if(t==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(o,t.themeStyles,y,t.baseThemeType),t.headerElement!=null&&this.applyHeaderToDOM(t.headerElement,o),t.additionsContentAST!=null||t.deletionsContentAST!=null||t.unifiedContentAST!=null?this.applyHunksToDOM(e,t):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(t.hunkData)}this.applyBuffers(e,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(e),this.resizeManager.setup(e,v===`wrap`),v===`scroll`&&h===`split`?this.scrollSyncManager.setup(e,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,o)}return i||this.emitPostRender(),!0}emitPostRender(){this.fileContainer!=null&&this.options.onPostRender?.(this.fileContainer,this)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:`open`});this.placeHolder=document.createElement(`div`),this.placeHolder.dataset.placeholder=``,e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty(`height`,`${e}px`),!0}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(e){let{hunkSeparators:t}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof t!=`function`){for(let{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();return}let n=new Map(this.separatorCache);for(let r of e){let e=r.slotName,i=this.separatorCache.get(e);if(i==null||!kr(r,i.hunkData)){i?.element.remove();let n=document.createElement(`div`);n.style.display=`contents`,n.slot=r.slotName;let a=t(r,this);a!=null&&n.appendChild(a),this.fileContainer.appendChild(n),i={element:n,hunkData:r},this.separatorCache.set(e,i)}n.delete(e)}for(let[e,{element:t}]of n.entries())this.separatorCache.delete(e),t.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:t}=this.options;if(t!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${A(r)}`,a=this.annotationCache.get(i);if(a==null||!Or(r,a.annotation)){a?.element.remove();let e=t(r);if(e==null)continue;a={element:qn(A(r)),annotation:r},a.element.appendChild(e),this.fileContainer.appendChild(a.element),this.annotationCache.set(i,a)}e.delete(i)}for(let[t,{element:n}]of e.entries())this.annotationCache.delete(t),n.remove()}renderGutterUtility(){let e=this.options.renderGutterUtility??this.options.renderHoverUtility;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=e(this.interactionManager.getHoveredLine);if(t!=null&&this.gutterUtilityContent!=null)return;if(t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=Jn();n.appendChild(t),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}getOrCreateFileContainer(e,t){let n=this.fileContainer;if(this.fileContainer=e??this.fileContainer??document.createElement(`diffs-container`),n!=null&&n!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=Un;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});return this.pre==null?(this.pre=document.createElement(`pre`),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,t.appendChild(this.pre)):this.pre.parentNode!==t&&(t.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(e){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(let t of Array.from(e.children))t instanceof HTMLElement&&(t.hasAttribute(`data-unified`)?this.codeUnified=t:t.hasAttribute(`data-deletions`)?this.codeDeletions=t:t.hasAttribute(`data-additions`)&&(this.codeAdditions=t))}applyHeaderToDOM(e,t){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let{fileDiff:n}=this,r=a(e);if(r!==this.lastRenderedHeaderHTML){let e=document.createElement(`div`);e.innerHTML=r;let n=e.firstElementChild;if(!(n instanceof HTMLElement))return;this.headerElement==null?t.shadowRoot?.prepend(n):t.shadowRoot?.replaceChild(n,this.headerElement),this.headerElement=n,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||n==null)return;let{renderCustomHeader:i,renderHeaderPrefix:o,renderHeaderMetadata:s}=this.options;if(i!=null){let e=i(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(t,this.headerCustom,O,e),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}let c=o?.(n)??void 0,l=s?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(t,this.headerPrefix,E,c),this.headerMetadata=this.upsertHeaderSlotElement(t,this.headerMetadata,D,l),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,t,n,r){if(r==null){t?.remove();return}let i=t??this.createHeaderSlotElement(n);return t??e.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(e,t){e.replaceChildren(),t instanceof Element?e.appendChild(t):e.innerText=`${t}`}createHeaderSlotElement(e){let t=document.createElement(`div`);return t.slot=e,t}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,t=this.fileContainer?.shadowRoot;if(t!=null){if(e==null||e===``){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===t&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=Yn(),this.unsafeCSSStyle.parentNode!==t&&t.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=Qn(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,t,n,r){let i=e.shadowRoot??e.attachShadow({mode:`open`}),a=r??n;this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===t&&this.appliedThemeCSS.themeType===a||(this.themeCSSStyle=tr({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:$n(t,a)}),this.appliedThemeCSS=this.themeCSSStyle==null?void 0:{themeStyles:t,themeType:a,baseThemeType:r})}applyHunksToDOM(e,t){let{overflow:n=`scroll`}=this.options,r=(this.options.hunkSeparators??`line-info`)===`line-info`,i=n===`wrap`?t.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t);let a=!1,o=[],s=this.hunksRenderer.renderCodeAST(`unified`,t),c=this.hunksRenderer.renderCodeAST(`deletions`,t),l=this.hunksRenderer.renderCodeAST(`additions`,t);s==null?c!=null||l!=null?(c==null?(this.codeDeletions?.remove(),this.codeDeletions=void 0):(a=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=er({code:this.codeDeletions,columnType:`deletions`,rowSpan:i,containerSize:r}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(c),o.push(this.codeDeletions)),l==null?(this.codeAdditions?.remove(),this.codeAdditions=void 0):(a=a||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=er({code:this.codeAdditions,columnType:`additions`,rowSpan:i,containerSize:r}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(l),o.push(this.codeAdditions))):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0):(a=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=er({code:this.codeUnified,columnType:`unified`,rowSpan:i,containerSize:r}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),o.push(this.codeUnified)),o.length===0?e.textContent=``:a&&e.replaceChildren(...o),this.lastRowCount=t.rowCount}applyPartialRender({previousRenderRange:e,renderRange:t}){let{pre:n,codeUnified:r,codeAdditions:i,codeDeletions:a,options:{diffStyle:o=`split`}}=this;if(n==null||e==null||t==null||!Number.isFinite(e.totalLines)||!Number.isFinite(t.totalLines)||this.lastRowCount==null)return!1;let s=this.getCodeColumns(o,r,a,i);if(s==null)return!1;let c=e.startingLine,l=t.startingLine,u=c+e.totalLines,d=l+t.totalLines,f=Math.max(c,l),p=Math.min(u,d);if(p<=f)return!1;let m=Math.max(0,f-c),h=Math.max(0,u-p),g=this.trimColumns({columns:s,trimStart:m,trimEnd:h,previousStart:c,overlapStart:f,overlapEnd:p,diffStyle:o});if(g<0)throw Error(`applyPartialRender: failed to trim to overlap`);if(this.lastRowCount<g)throw Error(`applyPartialRender: trimmed beyond DOM row count`);let _=this.lastRowCount-g,v=(e,t)=>{if(!(t<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},y=v(l,Math.max(f-l,0));if(y==null&&l<f)return!1;let b=v(p,Math.max(d-p,0));if(b==null&&d>p)return!1;let x=(e,t)=>{if(e!=null){if(o===`unified`&&!Array.isArray(s))this.insertPartialHTML(o,s,e,t);else if(o===`split`&&Array.isArray(s))this.insertPartialHTML(o,s,e,t);else throw Error(`FileDiff.applyPartialRender.applyChunk: invalid chunk application`);_+=e.rowCount}};return this.cleanupErrorWrapper(),x(y,`afterbegin`),x(b,`beforeend`),this.lastRowCount!==_&&(this.applyRowSpan(o,s,_),this.lastRowCount=_),!0}insertPartialHTML(e,t,n,r){if(e===`unified`&&!Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST(`unified`,n);this.renderPartialColumn(t,e,r)}else if(e===`split`&&Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST(`deletions`,n),i=this.hunksRenderer.renderCodeAST(`additions`,n);this.renderPartialColumn(t[0],e,r),this.renderPartialColumn(t[1],i,r)}else throw Error(`FileDiff.insertPartialHTML: Invalid argument composition`)}renderPartialColumn(e,t,n){if(e==null||t==null)return;let r=Rr(t[0]),i=Rr(t[1]);if(r==null||i==null)throw Error(`FileDiff.insertPartialHTML: Unexpected AST structure`);let a=i.at(0);n===`beforeend`&&a?.type===`element`&&typeof a.properties[`data-buffer-size`]==`number`&&this.mergeBuffersIfNecessary(a.properties[`data-buffer-size`],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],r,i,!0);let o=i.at(-1);n===`afterbegin`&&o?.type===`element`&&typeof o.properties[`data-buffer-size`]==`number`&&this.mergeBuffersIfNecessary(o.properties[`data-buffer-size`],e.content.children[0],e.gutter.children[0],r,i,!1),e.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r)),e.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i))}mergeBuffersIfNecessary(e,t,n,r,i,a){if(!(t instanceof HTMLElement)||!(n instanceof HTMLElement))return;let o=this.getBufferSize(t.dataset);o!=null&&(a?(r.shift(),i.shift()):(r.pop(),i.pop()),this.updateBufferSize(t,o+e),this.updateBufferSize(n,o+e))}applyRowSpan(e,t,n){let r=e=>{e!=null&&(e.gutter.style.setProperty(`grid-row`,`span ${n}`),e.content.style.setProperty(`grid-row`,`span ${n}`))};if(e===`unified`&&!Array.isArray(t))r(t);else if(e===`split`&&Array.isArray(t))r(t[0]),r(t[1]);else throw Error(`dun fuuuuked up`)}trimColumnRows(e,t,n){let r=0,i=0,a=0,o=!1,s=n>=0;if(e==null)return 0;let c=Array.from(e.content.children),l=Array.from(e.gutter.children);if(c.length!==l.length)throw Error(`FileDiff.trimColumnRows: columns do not match`);for(;a<c.length&&!(t<=0&&!s&&!o);){let e=l[a],u=c[a];if(a++,!(e instanceof HTMLElement)||!(u instanceof HTMLElement))throw console.error({gutterElement:e,contentElement:u}),Error(`FileDiff.trimColumnRows: invalid row elements`);if(o&&(o=!1,e.dataset.gutterBuffer===`annotation`&&`lineAnnotation`in u.dataset||e.dataset.gutterBuffer===`metadata`&&`noNewline`in u.dataset)){e.remove(),u.remove(),i++;continue}if(`lineIndex`in e.dataset&&`lineIndex`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),t>0&&(t--,t===0&&(o=!0)),i++),r++;continue}if(`separator`in e.dataset&&`separator`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`annotation`&&`lineAnnotation`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`metadata`&&`noNewline`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`buffer`&&`contentBuffer`in u.dataset){let a=this.getBufferSize(u.dataset);if(a==null)throw Error(`FileDiff.trimColumnRows: invalid element`);if(t>0){let n=Math.min(t,a),r=a-n;r>0?(this.updateBufferSize(e,r),this.updateBufferSize(u,r),i+=n):(e.remove(),u.remove(),i+=a),t-=n}else if(s){let t=r,o=r+a-1;if(n<=t)e.remove(),u.remove(),i+=a;else if(n<=o){let t=o-n+1,r=a-t;this.updateBufferSize(e,r),this.updateBufferSize(u,r),i+=t}}r+=a;continue}throw console.error({gutterElement:e,contentElement:u}),Error(`FileDiff.trimColumnRows: unknown row elements`)}return i}trimColumns({columns:e,diffStyle:t,overlapEnd:n,overlapStart:r,previousStart:i,trimEnd:a,trimStart:o}){let s=Math.max(0,r-i),c=n-i;if(c<0)throw Error(`FileDiff.trimColumns: overlap ends before previous`);let l=o>0,u=a>0;if(!l&&!u)return 0;let d=l?s:0,f=u?c:-1;if(t===`unified`&&!Array.isArray(e))return this.trimColumnRows(e,d,f);if(t===`split`&&Array.isArray(e)){let t=this.trimColumnRows(e[0],d,f),n=this.trimColumnRows(e[1],d,f);if(e[0]!=null&&e[1]!=null&&t!==n)throw Error(`FileDiff.trimColumns: split columns out of sync`);return e[0]==null?n:t}else throw console.error({diffStyle:t,columns:e}),Error(`FileDiff.trimColumns: Invalid columns for diffType`)}getBufferSize(e){let t=Number.parseInt(e?.bufferSize??``,10);return Number.isNaN(t)?void 0:t}updateBufferSize(e,t){e.dataset.bufferSize=`${t}`,e.style.setProperty(`grid-row`,`span ${t}`),e.style.setProperty(`min-height`,`calc(${t} * 1lh)`)}getCodeColumns(e,t,n,r){function i(e){if(e==null)return;let t=e.children[0],n=e.children[1];if(!(!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||t.dataset.gutter==null||n.dataset.content==null))return{gutter:t,content:n}}if(e===`unified`)return i(t);{let e=i(n),t=i(r);return e!=null||t!=null?[e,t]:void 0}}applyBuffers(e,t){let{disableVirtualizationBuffers:n=!1}=this.options;if(n||t==null){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(this.bufferBefore??(this.bufferBefore=document.createElement(`div`),this.bufferBefore.dataset.virtualizerBuffer=`before`,e.before(this.bufferBefore)),this.bufferBefore.style.setProperty(`height`,`${t.bufferBefore}px`),this.bufferBefore.style.setProperty(`contain`,`strict`)):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(this.bufferAfter??(this.bufferAfter=document.createElement(`div`),this.bufferAfter.dataset.virtualizerBuffer=`after`,e.after(this.bufferAfter)),this.bufferAfter.style.setProperty(`height`,`${t.bufferAfter}px`),this.bufferAfter.style.setProperty(`contain`,`strict`)):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}applyPreNodeAttributes(e,{additionsContentAST:t,deletionsContentAST:n,totalLines:r},i){let{diffIndicators:a=`bars`,disableBackground:o=!1,disableLineNumbers:s=!1,overflow:c=`scroll`,diffStyle:l=`split`}=this.options,u={type:`diff`,diffIndicators:a,disableBackground:o,disableLineNumbers:s,overflow:c,split:l===`unified`?!1:t!=null&&n!=null,totalLines:r,customProperties:i};Wn(u,this.appliedPreAttributes)||(ir(e,u),this.appliedPreAttributes=u)}applyErrorToDOM(e,t){this.cleanupErrorWrapper();let n=this.getOrCreatePreNode(t);n.innerHTML=``,n.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let r=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.innerHTML=``,r.appendChild(this.errorWrapper);let i=document.createElement(`div`);i.dataset.errorMessage=``,i.innerText=e.message,this.errorWrapper.appendChild(i);let a=document.createElement(`pre`);a.dataset.errorStack=``,a.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(a)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function Rr(e){if(!(e==null||e.type!==`element`))return e.children??[]}function zr(e,t){let n={...ne,...t};return n.hunkSeparatorHeight=Br(e,t?.hunkSeparatorHeight),n}function Br(e,t){if(t!=null)return t;switch(e){case`simple`:return 4;case`metadata`:case`line-info`:case`line-info-basic`:case`custom`:return 32}}var Vr=-1,Hr=class extends Lr{__id=`little-virtualized-file-diff:${++Vr}`;top;height=0;metrics;heightCache=new Map;isVisible=!1;virtualizer;constructor(e,t,n,r,i=!1){super(e,r,i);let{hunkSeparators:a=`line-info`}=this.options;this.virtualizer=t,this.metrics=zr(typeof a==`function`?`custom`:a,n)}getLineHeight(e,t=!1){let n=this.heightCache.get(e);if(n!=null)return n;let r=t?2:1;return this.metrics.lineHeight*r}setOptions(e){if(e==null)return;let t=this.options.diffStyle,n=this.options.overflow,r=this.options.collapsed;super.setOptions(e),(t!==this.options.diffStyle||n!==this.options.overflow||r!==this.options.collapsed)&&(this.heightCache.clear(),this.computeApproximateSize(),this.renderRange=void 0),this.virtualizer.instanceChanged(this)}reconcileHeights(){let{overflow:e=`scroll`}=this.options;if(this.fileContainer!=null&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.fileContainer==null||this.fileDiff==null){this.height=0;return}if(e===`scroll`&&this.lineAnnotations.length===0&&!this.virtualizer.config.resizeDebugging)return;let t=this.getDiffStyle(),n=!1,r=t===`split`?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(let e of r){if(e==null)continue;let r=e.children[1];if(r instanceof HTMLElement)for(let e of r.children){if(!(e instanceof HTMLElement))continue;let r=e.dataset.lineIndex;if(r==null)continue;let i=Wr(r,t),a=e.getBoundingClientRect().height,o=!1;e.nextElementSibling instanceof HTMLElement&&(`lineAnnotation`in e.nextElementSibling.dataset||`noNewline`in e.nextElementSibling.dataset)&&(`noNewline`in e.nextElementSibling.dataset&&(o=!0),a+=e.nextElementSibling.getBoundingClientRect().height);let s=this.getLineHeight(i,o);a!==s&&(n=!0,a===this.metrics.lineHeight*(o?2:1)?this.heightCache.delete(i):this.heightCache.set(i,a))}}(n||this.virtualizer.config.resizeDebugging)&&this.computeApproximateSize()}onRender=e=>this.fileContainer==null?!1:(e&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.render());cleanUp(){this.fileContainer!=null&&this.virtualizer.disconnect(this.fileContainer),super.cleanUp()}expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.computeApproximateSize(),this.renderRange=void 0,this.virtualizer.instanceChanged(this)};setVisibility(e){this.fileContainer!=null&&(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}computeApproximateSize(){let e=this.height===0;if(this.height=0,this.fileDiff==null)return;let{disableFileHeader:t=!1,expandUnchanged:n=!1,collapsed:r=!1,collapsedContextThreshold:i=1,hunkSeparators:a=`line-info`}=this.options,{diffHeaderHeight:o,fileGap:s,hunkSeparatorHeight:c}=this.metrics,l=this.getDiffStyle(),u=a!==`simple`&&a!==`metadata`&&a!==`line-info-basic`?s:0;if(t?a!==`simple`&&a!==`metadata`&&(this.height+=s):this.height+=o,!r&&(K({diff:this.fileDiff,diffStyle:l,expandedHunks:n?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:i,callback:({hunkIndex:e,collapsedBefore:t,collapsedAfter:n,deletionLine:r,additionLine:i})=>{let o=i==null?r.splitLineIndex:i.splitLineIndex,s=i==null?r.unifiedLineIndex:i.unifiedLineIndex,d=(i?.noEOFCR??!1)||(r?.noEOFCR??!1);t>0&&(e>0&&(this.height+=u),this.height+=c+u),this.height+=this.getLineHeight(l===`split`?o:s,d),n>0&&a!==`simple`&&(this.height+=u+c)}}),this.fileDiff.hunks.length>0&&(this.height+=s),this.fileContainer!=null&&this.virtualizer.config.resizeDebugging&&!e)){let e=this.fileContainer.getBoundingClientRect();e.height===this.height?console.log(`VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT`):console.log(`VirtualizedFileDiff.computeApproximateSize: computed height doesnt match`,{name:this.fileDiff.name,elementHeight:e.height,computedHeight:this.height})}}render({fileContainer:e,oldFile:t,newFile:n,fileDiff:r,...i}={}){let a=this.fileContainer==null;if(this.fileDiff??=r??(t!=null&&n!=null?Fr(t,n,this.options.parseDiffOptions):void 0),e=this.getOrCreateFileContainer(e),this.fileDiff==null)return console.error(`VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data`),!1;if(a?(this.computeApproximateSize(),this.virtualizer.connect(e,this),this.top??=this.virtualizer.getOffsetInScrollContainer(e),this.isVisible=this.virtualizer.isInstanceVisible(this.top,this.height)):this.top??=this.virtualizer.getOffsetInScrollContainer(e),!this.isVisible)return this.renderPlaceholder(this.height);let o=this.virtualizer.getWindowSpecs(),s=this.computeRenderRangeFromWindow(this.fileDiff,this.top,o);return super.render({fileDiff:this.fileDiff,fileContainer:e,renderRange:s,oldFile:t,newFile:n,...i})}getDiffStyle(){return this.options.diffStyle??`split`}getExpandedRegion(e,t,n){if(n<=0||e)return{fromStart:0,fromEnd:0,collapsedLines:Math.max(n,0),renderAll:!1};let{expandUnchanged:r=!1,collapsedContextThreshold:i=1}=this.options;if(r||n<=i)return{fromStart:n,fromEnd:0,collapsedLines:0,renderAll:!0};let a=this.hunksRenderer.getExpandedHunk(t),o=Math.min(Math.max(a.fromStart,0),n),s=Math.min(Math.max(a.fromEnd,0),n),c=o+s,l=c>=n;return{fromStart:o,fromEnd:s,collapsedLines:Math.max(n-c,0),renderAll:l}}getExpandedLineCount(e,t){let n=0;if(e.isPartial){for(let r of e.hunks)n+=t===`split`?r.splitLineCount:r.unifiedLineCount;return n}for(let[r,i]of e.hunks.entries()){let a=t===`split`?i.splitLineCount:i.unifiedLineCount;n+=a;let o=Math.max(i.collapsedBefore,0),{fromStart:s,fromEnd:c,renderAll:l}=this.getExpandedRegion(e.isPartial,r,o);o>0&&(n+=l?o:s+c)}let r=e.hunks.at(-1);if(r!=null&&Ur(e)){let t=e.additionLines.length-(r.additionLineIndex+r.additionCount),i=e.deletionLines.length-(r.deletionLineIndex+r.deletionCount);if(r!=null&&t!==i)throw Error(`VirtualizedFileDiff: trailing context mismatch (additions=${t}, deletions=${i}) for ${e.name}`);let a=Math.min(t,i);if(r!=null&&a>0){let{fromStart:t,renderAll:r}=this.getExpandedRegion(e.isPartial,e.hunks.length,a);n+=r?a:t}}return n}computeRenderRangeFromWindow(e,t,{top:n,bottom:r}){let{disableFileHeader:i=!1,expandUnchanged:a=!1,collapsedContextThreshold:o=1,hunkSeparators:s=`line-info`}=this.options,{diffHeaderHeight:c,fileGap:l,hunkLineCount:u,hunkSeparatorHeight:d,lineHeight:f}=this.metrics,p=this.getDiffStyle(),m=this.height,h=this.getExpandedLineCount(e,p),g=i?l:c;if(t<n-m||t>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:m-g-l};if(h<=u||e.hunks.length===0)return{startingLine:0,totalLines:u,bufferBefore:0,bufferAfter:0};let _=Math.ceil(Math.max(r-n,0)/f),v=Math.ceil(_/u)*u+u,y=v/u,b=y,x=[],S=(n+r)/2,C=s===`simple`||s===`metadata`||s===`line-info-basic`?0:l,w=t+g,T=0,E,D,O;if(K({diff:e,diffStyle:p,expandedHunks:a?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:o,callback:({hunkIndex:e,collapsedBefore:i,collapsedAfter:a,deletionLine:o,additionLine:c})=>{let l=c==null?o.splitLineIndex:c.splitLineIndex,f=c==null?o.unifiedLineIndex:c.unifiedLineIndex,m=(c?.noEOFCR??!1)||(o?.noEOFCR??!1),h=i>0?d+C+(e>0?C:0):0;e===0&&s===`simple`&&(h=0),w+=h;let _=T%u===0;if(_&&(x.push(w-(t+g+h)),O!=null)){if(O<=0)return!0;O--}let v=this.getLineHeight(p===`split`?l:f,m),y=Math.floor(T/u);return w>n-v&&w<r&&(E??=y),D==null&&w+v>S&&(D=y),O==null&&w>=r&&_&&(O=b),T++,w+=v,a>0&&s!==`simple`&&(w+=d+C),!1}}),E==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:m-g-l};let k=x.length;D??=E;let ee=Math.round(D-y/2),te=Math.max(0,k-y),ne=Math.max(0,Math.min(ee,te)),re=ne*u,ie=ee<0?v+ee*u:v,ae=x[ne]??0,A=ne+ie/u;return{startingLine:re,totalLines:ie,bufferBefore:ae,bufferAfter:A<x.length?m-g-x[A]-l:m-(w-t)-l}}};function Ur(e){let t=e.hunks.at(-1);return t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:t.additionLineIndex+t.additionCount<e.additionLines.length||t.deletionLineIndex+t.deletionCount<e.deletionLines.length}function Wr(e,t){let[n,r]=e.split(`,`).map(Number);return t===`split`?r:n}var Gr=typeof window>`u`?M.useEffect:M.useLayoutEffect;function Kr({fileDiff:e,options:t,lineAnnotations:n,selectedLines:r,prerenderedHTML:i,metrics:a,hasGutterRenderUtility:o,hasCustomHeader:s,disableWorkerPool:c}){let l=ce(),u=(0,M.useContext)(dn),d=(0,M.useRef)(null),f=fn(r=>{if(r!=null){if(d.current!=null)throw Error(`useFileDiffInstance: An instance should not already exist when a node is created`);l==null?d.current=new Lr(qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),c?void 0:u,!0):d.current=new Hr(qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),l,a,c?void 0:u,!0),d.current.hydrate({fileDiff:e,fileContainer:r,lineAnnotations:n,prerenderedHTML:i})}else{if(d.current==null)throw Error(`useFileDiffInstance: A FileDiff instance should exist when unmounting`);d.current.cleanUp(),d.current=null}});return Gr(()=>{let{current:i}=d;if(i==null)return;let a=qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),c=!or(i.options,a);i.setOptions(a),i.render({forceRender:c,fileDiff:e,lineAnnotations:n}),r!==void 0&&i.setSelectedLines(r)}),{ref:f,getHoveredLine:(0,M.useCallback)(()=>d.current?.getHoveredLine(),[])}}function qr({options:e,hasCustomHeader:t,hasGutterRenderUtility:n}){return n||t?{...e,renderCustomHeader:t?m:void 0,renderGutterUtility:n?m:void 0}:e}function Jr(e){let t=Nr(e);if(t.length!==1)throw console.error(t),Error(`PatchDiff: Provided patch must include only 1 patch, with 1 diff`);let{files:n}=t[0];if(n.length!==1)throw console.error(n),Error(`FileDiff: Provided patch must contain exactly 1 file diff`);return n[0]}function Yr({patch:e,options:t,metrics:n,lineAnnotations:r,selectedLines:i,className:a,style:o,prerenderedHTML:s,renderAnnotation:c,renderCustomHeader:l,renderHeaderPrefix:u,renderHeaderMetadata:d,renderGutterUtility:f,renderHoverUtility:p,disableWorkerPool:m=!1}){let g=Xr(e),{ref:_,getHoveredLine:v}=Kr({fileDiff:g,options:t,metrics:n,lineAnnotations:r,selectedLines:i,prerenderedHTML:s,hasGutterRenderUtility:f!=null||p!=null,hasCustomHeader:l!=null,disableWorkerPool:m});return(0,j.jsx)(h,{ref:_,className:a,style:o,children:oe(dr({fileDiff:g,renderCustomHeader:l,renderHeaderPrefix:u,renderHeaderMetadata:d,renderAnnotation:c,lineAnnotations:r,renderGutterUtility:f,renderHoverUtility:p,getHoveredLine:v}),s)})}function Xr(e){return(0,M.useMemo)(()=>Jr(e),[e])}var Zr={dark:`dark-plus`,light:`light-plus`},Qr={"--diffs-font-family":`"JetBrains Mono", ui-monospace, monospace`,"--diffs-header-font-family":`"JetBrains Mono", ui-monospace, monospace`,"--diffs-font-size":`13px`,"--diffs-line-height":`1.5`,"--diffs-light-bg":`hsl(var(--code-background))`,"--diffs-dark-bg":`hsl(var(--code-background))`},$r=`
|
|
1723
|
+
`||s[s.length-1]===``);)s.pop();let v=parseInt(p[3]),y=parseInt(p[1]);u=l?u:y-1,d=l?d:v-1;let E={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(p[4]??`1`),additionStart:v,additionLines:m,deletionCount:parseInt(p[2]??`1`),deletionStart:y,deletionLines:h,deletionLineIndex:u,additionLineIndex:d,hunkContent:[],hunkContext:p[5],hunkSpecs:f,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(E.additionCount)||isNaN(E.deletionCount)||isNaN(E.additionStart)||isNaN(E.deletionStart)){if(a)throw Error(`parsePatchContent: invalid hunk metadata`);console.error(`parsePatchContent: invalid hunk metadata`,E);continue}for(let e of s){let t=Ar(e);if(t==null){console.error(`processFile: invalid rawLine:`,e);continue}let{type:n,line:r}=t;if(n===`addition`)(g==null||g.type!==`change`)&&(g=Pr(`change`,u,d),E.hunkContent.push(g)),d++,l&&c.additionLines.push(r),g.additions++,m++,_=`addition`;else if(n===`deletion`)(g==null||g.type!==`change`)&&(g=Pr(`change`,u,d),E.hunkContent.push(g)),u++,l&&c.deletionLines.push(r),g.deletions++,h++,_=`deletion`;else if(n===`context`)(g==null||g.type!==`context`)&&(g=Pr(`context`,u,d),E.hunkContent.push(g)),d++,u++,l&&(c.deletionLines.push(r),c.additionLines.push(r)),g.lines++,_=`context`;else if(n===`metadata`&&g!=null){if(g.type===`context`?(E.noEOFCRAdditions=!0,E.noEOFCRDeletions=!0):_===`deletion`?E.noEOFCRDeletions=!0:_===`addition`&&(E.noEOFCRAdditions=!0),l&&(_===`addition`||_===`context`)){let e=c.additionLines.length-1;e>=0&&(c.additionLines[e]=V(c.additionLines[e]))}if(l&&(_===`deletion`||_===`context`)){let e=c.deletionLines.length-1;e>=0&&(c.deletionLines[e]=V(c.deletionLines[e]))}}}E.additionLines=m,E.deletionLines=h,E.collapsedBefore=Math.max(E.additionStart-1-o,0),c.hunks.push(E),o=E.additionStart+E.additionCount-1;for(let e of E.hunkContent)e.type===`context`?(E.splitLineCount+=e.lines,E.unifiedLineCount+=e.lines):(E.splitLineCount+=Math.max(e.additions,e.deletions),E.unifiedLineCount+=e.deletions+e.additions);E.splitLineStart=c.splitLineCount+E.collapsedBefore,E.unifiedLineStart=c.unifiedLineCount+E.collapsedBefore,c.splitLineCount+=E.collapsedBefore+E.splitLineCount,c.unifiedLineCount+=E.collapsedBefore+E.unifiedLineCount}if(c!=null){if(c.hunks.length>0&&!l&&c.additionLines.length>0&&c.deletionLines.length>0){let e=c.hunks[c.hunks.length-1],t=e.additionStart+e.additionCount-1,n=c.additionLines.length,r=Math.max(n-t,0);c.splitLineCount+=r,c.unifiedLineCount+=r}return n||(c.prevName!=null&&c.name!==c.prevName?c.hunks.length>0?c.type=`rename-changed`:c.type=`rename-pure`:i!=null&&i.contents===``?c.type=`deleted`:r!=null&&r.contents===``&&(c.type=`new`)),c.type!==`rename-pure`&&c.type!==`rename-changed`&&(c.prevName=void 0),c}}function Nr(e,t,n=!1){let r=[];for(let i of e.split(g))try{r.push(jr(i,t==null?void 0:`${t}-${r.length}`,n))}catch(e){if(n)throw e;console.error(e)}return r}function Pr(e,t,n){return e===`change`?{type:`change`,additions:0,deletions:0,additionLineIndex:n,deletionLineIndex:t}:{type:`context`,lines:0,additionLineIndex:n,deletionLineIndex:t}}function Fr(e,t,n,r=!1){let i=Mr(tn(e.name,t.name,e.contents,t.contents,e.header,t.header,n),{cacheKey:(()=>{if(e.cacheKey!=null&&t.cacheKey!=null)return`${e.cacheKey}:${t.cacheKey}`})(),oldFile:e,newFile:t,throwOnError:r});if(i==null)throw Error(`parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?`);return t.lang!=null&&(i.lang=t.lang),i}var Ir=-1,Lr=class{static LoadedCustomComponent=!0;__id=`file-diff:${++Ir}`;fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;lastRowCount;enabled=!0;constructor(e={theme:k},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.hunksRenderer=this.createHunksRenderer(e),this.resizeManager=new kn,this.scrollSyncManager=new pr,this.interactionManager=new gn(`diff`,_n(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`||e.hunkSeparators===`line-info-basic`?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(e){return{...e,headerRenderMode:e.renderCustomHeader==null?`default`:`custom`,hunkSeparators:typeof e.hunkSeparators==`function`?`custom`:e.hunkSeparators}}createHunksRenderer(e){return new xr(this.getHunksRendererOptions(e),this.handleHighlightRender,this.workerManager)}getLineIndex=(e,t=`additions`)=>{if(this.fileDiff==null)return;let n=this.fileDiff.hunks.at(-1),r,i;hunkIterator:for(let a of this.fileDiff.hunks){let o=t===`deletions`?a.deletionStart:a.additionStart,s=t===`deletions`?a.deletionCount:a.additionCount,c=a.splitLineStart,l=a.unifiedLineStart;if(e<o){let t=o-e;r=Math.max(l-t,0),i=Math.max(c-t,0);break hunkIterator}if(e>=o+s){if(a===n){let t=e-(o+s);r=l+a.unifiedLineCount+t,i=c+a.splitLineCount+t;break hunkIterator}continue}for(let n of a.hunkContent)if(n.type===`context`)if(e<o+n.lines){let t=e-o;i=c+t,r=l+t;break hunkIterator}else o+=n.lines,c+=n.lines,l+=n.lines;else{let a=t===`deletions`?n.deletions:n.additions;if(e<o+a){let a=e-o;r=l+(t===`additions`?n.deletions:0)+a,i=c+a;break hunkIterator}else o+=a,c+=Math.max(n.deletions,n.additions),l+=n.deletions+n.additions}break hunkIterator}if(!(r==null||i==null))return[r,i]};setOptions(e){e!=null&&(this.options=e,this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.interactionManager.setOptions(_n(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`||e.hunkSeparators===`line-info-basic`?this.handleExpandHunk:void 0,this.getLineIndex)))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),!(typeof this.options.theme==`string`||this.fileContainer==null||this.appliedThemeCSS==null)&&this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType))}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}canPartiallyRender(e,t,n){return!(e||t||n||typeof this.options.hunkSeparators==`function`)}setSelectedLines(e){this.interactionManager.setSelection(e)}cleanUp(e=!1){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=``),this.fileContainer=void 0,this.pre!=null&&(this.pre.innerHTML=``,this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,e?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:t,prerenderedHTML:n,preventEmit:r=!1,lineAnnotations:i,oldFile:a,newFile:o,fileDiff:s}=e;this.hydrateElements(t,n),this.pre==null&&this.headerElement==null?this.render({...e,preventEmit:!0}):this.hydrationSetup({fileDiff:s,oldFile:a,newFile:o,lineAnnotations:i}),r||this.emitPostRender()}hydrateElements(e,t){rr(e,t);for(let t of e.shadowRoot?.children??[]){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){this.pre=t;for(let e of t.children)!(e instanceof HTMLElement)||e.tagName.toLowerCase()!==`code`||(`deletions`in e.dataset&&(this.codeDeletions=e),`additions`in e.dataset&&(this.codeAdditions=e),`unified`in e.dataset&&(this.codeUnified=e));continue}if(`diffsHeader`in t.dataset){this.headerElement=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-theme-css`)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute(`data-dehydrated`)),(this.pre!=null||this.headerElement!=null)&&(this.fileContainer=e)}hydrationSetup({fileDiff:e,oldFile:t,newFile:n,lineAnnotations:r}){let{diffStyle:i=`split`,overflow:a=`scroll`}=this.options;this.lineAnnotations=r??this.lineAnnotations,this.additionFile=n,this.deletionFile=t,this.fileDiff=e??(t!=null&&n!=null?Fr(t,n,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,a===`wrap`),a===`scroll`&&i===`split`&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}handleExpandHunk=(e,t,n)=>{this.expandHunk(e,t,n)};expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.rerender()};render({oldFile:e,newFile:t,fileDiff:n,forceRender:r=!1,preventEmit:i=!1,lineAnnotations:a,fileContainer:o,containerWrapper:s,renderRange:c}){if(!this.enabled)throw Error(`FileDiff.render: attempting to call render after cleaned up`);let{collapsed:l=!1}=this.options,u=l?void 0:c,d=e!=null&&t!=null&&(!Et(e,this.deletionFile)||!Et(t,this.additionFile)),f=n!=null&&n!==this.fileDiff,p=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1;if(!l&&An(u,this.renderRange)&&!r&&!p&&(n!=null&&n===this.fileDiff||n==null&&!d))return!1;let{renderRange:m}=this;if(this.renderRange=u,this.deletionFile=e,this.additionFile=t,n==null?e!=null&&t!=null&&d&&(f=!0,this.fileDiff=Fr(e,t,this.options.parseDiffOptions)):this.fileDiff=n,a!=null&&this.setLineAnnotations(a),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{diffStyle:h=`split`,disableErrorHandling:g=!1,disableFileHeader:_=!1,overflow:v=`scroll`,themeType:y=`system`}=this.options;if(_&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),o=this.getOrCreateFileContainer(o,s),l){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let e=this.hunksRenderer.renderDiff(this.fileDiff,ae);e!=null&&this.applyThemeState(o,e.themeStyles,y,e.baseThemeType),e?.headerElement!=null&&this.applyHeaderToDOM(e.headerElement,o),this.renderSeparators([]),this.injectUnsafeCSS()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,o)}return i||this.emitPostRender(),!0}try{let e=this.getOrCreatePreNode(o);if(!(this.canPartiallyRender(r,p,d||f)&&this.applyPartialRender({previousRenderRange:m,renderRange:u}))){let t=this.hunksRenderer.renderDiff(this.fileDiff,u);if(t==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(o,t.themeStyles,y,t.baseThemeType),t.headerElement!=null&&this.applyHeaderToDOM(t.headerElement,o),t.additionsContentAST!=null||t.deletionsContentAST!=null||t.unifiedContentAST!=null?this.applyHunksToDOM(e,t):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(t.hunkData)}this.applyBuffers(e,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(e),this.resizeManager.setup(e,v===`wrap`),v===`scroll`&&h===`split`?this.scrollSyncManager.setup(e,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(e){if(g)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,o)}return i||this.emitPostRender(),!0}emitPostRender(){this.fileContainer!=null&&this.options.onPostRender?.(this.fileContainer,this)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:`open`});this.placeHolder=document.createElement(`div`),this.placeHolder.dataset.placeholder=``,e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty(`height`,`${e}px`),!0}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(e){let{hunkSeparators:t}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof t!=`function`){for(let{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();return}let n=new Map(this.separatorCache);for(let r of e){let e=r.slotName,i=this.separatorCache.get(e);if(i==null||!kr(r,i.hunkData)){i?.element.remove();let n=document.createElement(`div`);n.style.display=`contents`,n.slot=r.slotName;let a=t(r,this);a!=null&&n.appendChild(a),this.fileContainer.appendChild(n),i={element:n,hunkData:r},this.separatorCache.set(e,i)}n.delete(e)}for(let[e,{element:t}]of n.entries())this.separatorCache.delete(e),t.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:t}=this.options;if(t!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${A(r)}`,a=this.annotationCache.get(i);if(a==null||!Or(r,a.annotation)){a?.element.remove();let e=t(r);if(e==null)continue;a={element:qn(A(r)),annotation:r},a.element.appendChild(e),this.fileContainer.appendChild(a.element),this.annotationCache.set(i,a)}e.delete(i)}for(let[t,{element:n}]of e.entries())this.annotationCache.delete(t),n.remove()}renderGutterUtility(){let e=this.options.renderGutterUtility??this.options.renderHoverUtility;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=e(this.interactionManager.getHoveredLine);if(t!=null&&this.gutterUtilityContent!=null)return;if(t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=Jn();n.appendChild(t),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}getOrCreateFileContainer(e,t){let n=this.fileContainer;if(this.fileContainer=e??this.fileContainer??document.createElement(`diffs-container`),n!=null&&n!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=Un;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});return this.pre==null?(this.pre=document.createElement(`pre`),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,t.appendChild(this.pre)):this.pre.parentNode!==t&&(t.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(e){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(let t of Array.from(e.children))t instanceof HTMLElement&&(t.hasAttribute(`data-unified`)?this.codeUnified=t:t.hasAttribute(`data-deletions`)?this.codeDeletions=t:t.hasAttribute(`data-additions`)&&(this.codeAdditions=t))}applyHeaderToDOM(e,t){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let{fileDiff:n}=this,r=a(e);if(r!==this.lastRenderedHeaderHTML){let e=document.createElement(`div`);e.innerHTML=r;let n=e.firstElementChild;if(!(n instanceof HTMLElement))return;this.headerElement==null?t.shadowRoot?.prepend(n):t.shadowRoot?.replaceChild(n,this.headerElement),this.headerElement=n,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||n==null)return;let{renderCustomHeader:i,renderHeaderPrefix:o,renderHeaderMetadata:s}=this.options;if(i!=null){let e=i(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(t,this.headerCustom,O,e),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}let c=o?.(n)??void 0,l=s?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(t,this.headerPrefix,E,c),this.headerMetadata=this.upsertHeaderSlotElement(t,this.headerMetadata,D,l),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,t,n,r){if(r==null){t?.remove();return}let i=t??this.createHeaderSlotElement(n);return t??e.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(e,t){e.replaceChildren(),t instanceof Element?e.appendChild(t):e.innerText=`${t}`}createHeaderSlotElement(e){let t=document.createElement(`div`);return t.slot=e,t}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,t=this.fileContainer?.shadowRoot;if(t!=null){if(e==null||e===``){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===t&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=Yn(),this.unsafeCSSStyle.parentNode!==t&&t.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=Qn(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,t,n,r){let i=e.shadowRoot??e.attachShadow({mode:`open`}),a=r??n;this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===t&&this.appliedThemeCSS.themeType===a||(this.themeCSSStyle=tr({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:$n(t,a)}),this.appliedThemeCSS=this.themeCSSStyle==null?void 0:{themeStyles:t,themeType:a,baseThemeType:r})}applyHunksToDOM(e,t){let{overflow:n=`scroll`}=this.options,r=(this.options.hunkSeparators??`line-info`)===`line-info`,i=n===`wrap`?t.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t);let a=!1,o=[],s=this.hunksRenderer.renderCodeAST(`unified`,t),c=this.hunksRenderer.renderCodeAST(`deletions`,t),l=this.hunksRenderer.renderCodeAST(`additions`,t);s==null?c!=null||l!=null?(c==null?(this.codeDeletions?.remove(),this.codeDeletions=void 0):(a=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=er({code:this.codeDeletions,columnType:`deletions`,rowSpan:i,containerSize:r}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(c),o.push(this.codeDeletions)),l==null?(this.codeAdditions?.remove(),this.codeAdditions=void 0):(a=a||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=er({code:this.codeAdditions,columnType:`additions`,rowSpan:i,containerSize:r}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(l),o.push(this.codeAdditions))):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0):(a=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=er({code:this.codeUnified,columnType:`unified`,rowSpan:i,containerSize:r}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),o.push(this.codeUnified)),o.length===0?e.textContent=``:a&&e.replaceChildren(...o),this.lastRowCount=t.rowCount}applyPartialRender({previousRenderRange:e,renderRange:t}){let{pre:n,codeUnified:r,codeAdditions:i,codeDeletions:a,options:{diffStyle:o=`split`}}=this;if(n==null||e==null||t==null||!Number.isFinite(e.totalLines)||!Number.isFinite(t.totalLines)||this.lastRowCount==null)return!1;let s=this.getCodeColumns(o,r,a,i);if(s==null)return!1;let c=e.startingLine,l=t.startingLine,u=c+e.totalLines,d=l+t.totalLines,f=Math.max(c,l),p=Math.min(u,d);if(p<=f)return!1;let m=Math.max(0,f-c),h=Math.max(0,u-p),g=this.trimColumns({columns:s,trimStart:m,trimEnd:h,previousStart:c,overlapStart:f,overlapEnd:p,diffStyle:o});if(g<0)throw Error(`applyPartialRender: failed to trim to overlap`);if(this.lastRowCount<g)throw Error(`applyPartialRender: trimmed beyond DOM row count`);let _=this.lastRowCount-g,v=(e,t)=>{if(!(t<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},y=v(l,Math.max(f-l,0));if(y==null&&l<f)return!1;let b=v(p,Math.max(d-p,0));if(b==null&&d>p)return!1;let x=(e,t)=>{if(e!=null){if(o===`unified`&&!Array.isArray(s))this.insertPartialHTML(o,s,e,t);else if(o===`split`&&Array.isArray(s))this.insertPartialHTML(o,s,e,t);else throw Error(`FileDiff.applyPartialRender.applyChunk: invalid chunk application`);_+=e.rowCount}};return this.cleanupErrorWrapper(),x(y,`afterbegin`),x(b,`beforeend`),this.lastRowCount!==_&&(this.applyRowSpan(o,s,_),this.lastRowCount=_),!0}insertPartialHTML(e,t,n,r){if(e===`unified`&&!Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST(`unified`,n);this.renderPartialColumn(t,e,r)}else if(e===`split`&&Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST(`deletions`,n),i=this.hunksRenderer.renderCodeAST(`additions`,n);this.renderPartialColumn(t[0],e,r),this.renderPartialColumn(t[1],i,r)}else throw Error(`FileDiff.insertPartialHTML: Invalid argument composition`)}renderPartialColumn(e,t,n){if(e==null||t==null)return;let r=Rr(t[0]),i=Rr(t[1]);if(r==null||i==null)throw Error(`FileDiff.insertPartialHTML: Unexpected AST structure`);let a=i.at(0);n===`beforeend`&&a?.type===`element`&&typeof a.properties[`data-buffer-size`]==`number`&&this.mergeBuffersIfNecessary(a.properties[`data-buffer-size`],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],r,i,!0);let o=i.at(-1);n===`afterbegin`&&o?.type===`element`&&typeof o.properties[`data-buffer-size`]==`number`&&this.mergeBuffersIfNecessary(o.properties[`data-buffer-size`],e.content.children[0],e.gutter.children[0],r,i,!1),e.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r)),e.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i))}mergeBuffersIfNecessary(e,t,n,r,i,a){if(!(t instanceof HTMLElement)||!(n instanceof HTMLElement))return;let o=this.getBufferSize(t.dataset);o!=null&&(a?(r.shift(),i.shift()):(r.pop(),i.pop()),this.updateBufferSize(t,o+e),this.updateBufferSize(n,o+e))}applyRowSpan(e,t,n){let r=e=>{e!=null&&(e.gutter.style.setProperty(`grid-row`,`span ${n}`),e.content.style.setProperty(`grid-row`,`span ${n}`))};if(e===`unified`&&!Array.isArray(t))r(t);else if(e===`split`&&Array.isArray(t))r(t[0]),r(t[1]);else throw Error(`dun fuuuuked up`)}trimColumnRows(e,t,n){let r=0,i=0,a=0,o=!1,s=n>=0;if(e==null)return 0;let c=Array.from(e.content.children),l=Array.from(e.gutter.children);if(c.length!==l.length)throw Error(`FileDiff.trimColumnRows: columns do not match`);for(;a<c.length&&!(t<=0&&!s&&!o);){let e=l[a],u=c[a];if(a++,!(e instanceof HTMLElement)||!(u instanceof HTMLElement))throw console.error({gutterElement:e,contentElement:u}),Error(`FileDiff.trimColumnRows: invalid row elements`);if(o&&(o=!1,e.dataset.gutterBuffer===`annotation`&&`lineAnnotation`in u.dataset||e.dataset.gutterBuffer===`metadata`&&`noNewline`in u.dataset)){e.remove(),u.remove(),i++;continue}if(`lineIndex`in e.dataset&&`lineIndex`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),t>0&&(t--,t===0&&(o=!0)),i++),r++;continue}if(`separator`in e.dataset&&`separator`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`annotation`&&`lineAnnotation`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`metadata`&&`noNewline`in u.dataset){(t>0||s&&r>=n)&&(e.remove(),u.remove(),i++);continue}if(e.dataset.gutterBuffer===`buffer`&&`contentBuffer`in u.dataset){let a=this.getBufferSize(u.dataset);if(a==null)throw Error(`FileDiff.trimColumnRows: invalid element`);if(t>0){let n=Math.min(t,a),r=a-n;r>0?(this.updateBufferSize(e,r),this.updateBufferSize(u,r),i+=n):(e.remove(),u.remove(),i+=a),t-=n}else if(s){let t=r,o=r+a-1;if(n<=t)e.remove(),u.remove(),i+=a;else if(n<=o){let t=o-n+1,r=a-t;this.updateBufferSize(e,r),this.updateBufferSize(u,r),i+=t}}r+=a;continue}throw console.error({gutterElement:e,contentElement:u}),Error(`FileDiff.trimColumnRows: unknown row elements`)}return i}trimColumns({columns:e,diffStyle:t,overlapEnd:n,overlapStart:r,previousStart:i,trimEnd:a,trimStart:o}){let s=Math.max(0,r-i),c=n-i;if(c<0)throw Error(`FileDiff.trimColumns: overlap ends before previous`);let l=o>0,u=a>0;if(!l&&!u)return 0;let d=l?s:0,f=u?c:-1;if(t===`unified`&&!Array.isArray(e))return this.trimColumnRows(e,d,f);if(t===`split`&&Array.isArray(e)){let t=this.trimColumnRows(e[0],d,f),n=this.trimColumnRows(e[1],d,f);if(e[0]!=null&&e[1]!=null&&t!==n)throw Error(`FileDiff.trimColumns: split columns out of sync`);return e[0]==null?n:t}else throw console.error({diffStyle:t,columns:e}),Error(`FileDiff.trimColumns: Invalid columns for diffType`)}getBufferSize(e){let t=Number.parseInt(e?.bufferSize??``,10);return Number.isNaN(t)?void 0:t}updateBufferSize(e,t){e.dataset.bufferSize=`${t}`,e.style.setProperty(`grid-row`,`span ${t}`),e.style.setProperty(`min-height`,`calc(${t} * 1lh)`)}getCodeColumns(e,t,n,r){function i(e){if(e==null)return;let t=e.children[0],n=e.children[1];if(!(!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||t.dataset.gutter==null||n.dataset.content==null))return{gutter:t,content:n}}if(e===`unified`)return i(t);{let e=i(n),t=i(r);return e!=null||t!=null?[e,t]:void 0}}applyBuffers(e,t){let{disableVirtualizationBuffers:n=!1}=this.options;if(n||t==null){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(this.bufferBefore??(this.bufferBefore=document.createElement(`div`),this.bufferBefore.dataset.virtualizerBuffer=`before`,e.before(this.bufferBefore)),this.bufferBefore.style.setProperty(`height`,`${t.bufferBefore}px`),this.bufferBefore.style.setProperty(`contain`,`strict`)):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(this.bufferAfter??(this.bufferAfter=document.createElement(`div`),this.bufferAfter.dataset.virtualizerBuffer=`after`,e.after(this.bufferAfter)),this.bufferAfter.style.setProperty(`height`,`${t.bufferAfter}px`),this.bufferAfter.style.setProperty(`contain`,`strict`)):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}applyPreNodeAttributes(e,{additionsContentAST:t,deletionsContentAST:n,totalLines:r},i){let{diffIndicators:a=`bars`,disableBackground:o=!1,disableLineNumbers:s=!1,overflow:c=`scroll`,diffStyle:l=`split`}=this.options,u={type:`diff`,diffIndicators:a,disableBackground:o,disableLineNumbers:s,overflow:c,split:l===`unified`?!1:t!=null&&n!=null,totalLines:r,customProperties:i};Wn(u,this.appliedPreAttributes)||(ir(e,u),this.appliedPreAttributes=u)}applyErrorToDOM(e,t){this.cleanupErrorWrapper();let n=this.getOrCreatePreNode(t);n.innerHTML=``,n.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let r=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.innerHTML=``,r.appendChild(this.errorWrapper);let i=document.createElement(`div`);i.dataset.errorMessage=``,i.innerText=e.message,this.errorWrapper.appendChild(i);let a=document.createElement(`pre`);a.dataset.errorStack=``,a.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(a)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function Rr(e){if(!(e==null||e.type!==`element`))return e.children??[]}function zr(e,t){let n={...ne,...t};return n.hunkSeparatorHeight=Br(e,t?.hunkSeparatorHeight),n}function Br(e,t){if(t!=null)return t;switch(e){case`simple`:return 4;case`metadata`:case`line-info`:case`line-info-basic`:case`custom`:return 32}}var Vr=-1,Hr=class extends Lr{__id=`little-virtualized-file-diff:${++Vr}`;top;height=0;metrics;heightCache=new Map;isVisible=!1;virtualizer;constructor(e,t,n,r,i=!1){super(e,r,i);let{hunkSeparators:a=`line-info`}=this.options;this.virtualizer=t,this.metrics=zr(typeof a==`function`?`custom`:a,n)}getLineHeight(e,t=!1){let n=this.heightCache.get(e);if(n!=null)return n;let r=t?2:1;return this.metrics.lineHeight*r}setOptions(e){if(e==null)return;let t=this.options.diffStyle,n=this.options.overflow,r=this.options.collapsed;super.setOptions(e),(t!==this.options.diffStyle||n!==this.options.overflow||r!==this.options.collapsed)&&(this.heightCache.clear(),this.computeApproximateSize(),this.renderRange=void 0),this.virtualizer.instanceChanged(this)}reconcileHeights(){let{overflow:e=`scroll`}=this.options;if(this.fileContainer!=null&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.fileContainer==null||this.fileDiff==null){this.height=0;return}if(e===`scroll`&&this.lineAnnotations.length===0&&!this.virtualizer.config.resizeDebugging)return;let t=this.getDiffStyle(),n=!1,r=t===`split`?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(let e of r){if(e==null)continue;let r=e.children[1];if(r instanceof HTMLElement)for(let e of r.children){if(!(e instanceof HTMLElement))continue;let r=e.dataset.lineIndex;if(r==null)continue;let i=Wr(r,t),a=e.getBoundingClientRect().height,o=!1;e.nextElementSibling instanceof HTMLElement&&(`lineAnnotation`in e.nextElementSibling.dataset||`noNewline`in e.nextElementSibling.dataset)&&(`noNewline`in e.nextElementSibling.dataset&&(o=!0),a+=e.nextElementSibling.getBoundingClientRect().height);let s=this.getLineHeight(i,o);a!==s&&(n=!0,a===this.metrics.lineHeight*(o?2:1)?this.heightCache.delete(i):this.heightCache.set(i,a))}}(n||this.virtualizer.config.resizeDebugging)&&this.computeApproximateSize()}onRender=e=>this.fileContainer==null?!1:(e&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.render());cleanUp(){this.fileContainer!=null&&this.virtualizer.disconnect(this.fileContainer),super.cleanUp()}expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.computeApproximateSize(),this.renderRange=void 0,this.virtualizer.instanceChanged(this)};setVisibility(e){this.fileContainer!=null&&(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}computeApproximateSize(){let e=this.height===0;if(this.height=0,this.fileDiff==null)return;let{disableFileHeader:t=!1,expandUnchanged:n=!1,collapsed:r=!1,collapsedContextThreshold:i=1,hunkSeparators:a=`line-info`}=this.options,{diffHeaderHeight:o,fileGap:s,hunkSeparatorHeight:c}=this.metrics,l=this.getDiffStyle(),u=a!==`simple`&&a!==`metadata`&&a!==`line-info-basic`?s:0;if(t?a!==`simple`&&a!==`metadata`&&(this.height+=s):this.height+=o,!r&&(K({diff:this.fileDiff,diffStyle:l,expandedHunks:n?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:i,callback:({hunkIndex:e,collapsedBefore:t,collapsedAfter:n,deletionLine:r,additionLine:i})=>{let o=i==null?r.splitLineIndex:i.splitLineIndex,s=i==null?r.unifiedLineIndex:i.unifiedLineIndex,d=(i?.noEOFCR??!1)||(r?.noEOFCR??!1);t>0&&(e>0&&(this.height+=u),this.height+=c+u),this.height+=this.getLineHeight(l===`split`?o:s,d),n>0&&a!==`simple`&&(this.height+=u+c)}}),this.fileDiff.hunks.length>0&&(this.height+=s),this.fileContainer!=null&&this.virtualizer.config.resizeDebugging&&!e)){let e=this.fileContainer.getBoundingClientRect();e.height===this.height?console.log(`VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT`):console.log(`VirtualizedFileDiff.computeApproximateSize: computed height doesnt match`,{name:this.fileDiff.name,elementHeight:e.height,computedHeight:this.height})}}render({fileContainer:e,oldFile:t,newFile:n,fileDiff:r,...i}={}){let a=this.fileContainer==null;if(this.fileDiff??=r??(t!=null&&n!=null?Fr(t,n,this.options.parseDiffOptions):void 0),e=this.getOrCreateFileContainer(e),this.fileDiff==null)return console.error(`VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data`),!1;if(a?(this.computeApproximateSize(),this.virtualizer.connect(e,this),this.top??=this.virtualizer.getOffsetInScrollContainer(e),this.isVisible=this.virtualizer.isInstanceVisible(this.top,this.height)):this.top??=this.virtualizer.getOffsetInScrollContainer(e),!this.isVisible)return this.renderPlaceholder(this.height);let o=this.virtualizer.getWindowSpecs(),s=this.computeRenderRangeFromWindow(this.fileDiff,this.top,o);return super.render({fileDiff:this.fileDiff,fileContainer:e,renderRange:s,oldFile:t,newFile:n,...i})}getDiffStyle(){return this.options.diffStyle??`split`}getExpandedRegion(e,t,n){if(n<=0||e)return{fromStart:0,fromEnd:0,collapsedLines:Math.max(n,0),renderAll:!1};let{expandUnchanged:r=!1,collapsedContextThreshold:i=1}=this.options;if(r||n<=i)return{fromStart:n,fromEnd:0,collapsedLines:0,renderAll:!0};let a=this.hunksRenderer.getExpandedHunk(t),o=Math.min(Math.max(a.fromStart,0),n),s=Math.min(Math.max(a.fromEnd,0),n),c=o+s,l=c>=n;return{fromStart:o,fromEnd:s,collapsedLines:Math.max(n-c,0),renderAll:l}}getExpandedLineCount(e,t){let n=0;if(e.isPartial){for(let r of e.hunks)n+=t===`split`?r.splitLineCount:r.unifiedLineCount;return n}for(let[r,i]of e.hunks.entries()){let a=t===`split`?i.splitLineCount:i.unifiedLineCount;n+=a;let o=Math.max(i.collapsedBefore,0),{fromStart:s,fromEnd:c,renderAll:l}=this.getExpandedRegion(e.isPartial,r,o);o>0&&(n+=l?o:s+c)}let r=e.hunks.at(-1);if(r!=null&&Ur(e)){let t=e.additionLines.length-(r.additionLineIndex+r.additionCount),i=e.deletionLines.length-(r.deletionLineIndex+r.deletionCount);if(r!=null&&t!==i)throw Error(`VirtualizedFileDiff: trailing context mismatch (additions=${t}, deletions=${i}) for ${e.name}`);let a=Math.min(t,i);if(r!=null&&a>0){let{fromStart:t,renderAll:r}=this.getExpandedRegion(e.isPartial,e.hunks.length,a);n+=r?a:t}}return n}computeRenderRangeFromWindow(e,t,{top:n,bottom:r}){let{disableFileHeader:i=!1,expandUnchanged:a=!1,collapsedContextThreshold:o=1,hunkSeparators:s=`line-info`}=this.options,{diffHeaderHeight:c,fileGap:l,hunkLineCount:u,hunkSeparatorHeight:d,lineHeight:f}=this.metrics,p=this.getDiffStyle(),m=this.height,h=this.getExpandedLineCount(e,p),g=i?l:c;if(t<n-m||t>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:m-g-l};if(h<=u||e.hunks.length===0)return{startingLine:0,totalLines:u,bufferBefore:0,bufferAfter:0};let _=Math.ceil(Math.max(r-n,0)/f),v=Math.ceil(_/u)*u+u,y=v/u,b=y,x=[],S=(n+r)/2,C=s===`simple`||s===`metadata`||s===`line-info-basic`?0:l,w=t+g,T=0,E,D,O;if(K({diff:e,diffStyle:p,expandedHunks:a?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:o,callback:({hunkIndex:e,collapsedBefore:i,collapsedAfter:a,deletionLine:o,additionLine:c})=>{let l=c==null?o.splitLineIndex:c.splitLineIndex,f=c==null?o.unifiedLineIndex:c.unifiedLineIndex,m=(c?.noEOFCR??!1)||(o?.noEOFCR??!1),h=i>0?d+C+(e>0?C:0):0;e===0&&s===`simple`&&(h=0),w+=h;let _=T%u===0;if(_&&(x.push(w-(t+g+h)),O!=null)){if(O<=0)return!0;O--}let v=this.getLineHeight(p===`split`?l:f,m),y=Math.floor(T/u);return w>n-v&&w<r&&(E??=y),D==null&&w+v>S&&(D=y),O==null&&w>=r&&_&&(O=b),T++,w+=v,a>0&&s!==`simple`&&(w+=d+C),!1}}),E==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:m-g-l};let k=x.length;D??=E;let ee=Math.round(D-y/2),te=Math.max(0,k-y),ne=Math.max(0,Math.min(ee,te)),re=ne*u,ie=ee<0?v+ee*u:v,ae=x[ne]??0,A=ne+ie/u;return{startingLine:re,totalLines:ie,bufferBefore:ae,bufferAfter:A<x.length?m-g-x[A]-l:m-(w-t)-l}}};function Ur(e){let t=e.hunks.at(-1);return t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:t.additionLineIndex+t.additionCount<e.additionLines.length||t.deletionLineIndex+t.deletionCount<e.deletionLines.length}function Wr(e,t){let[n,r]=e.split(`,`).map(Number);return t===`split`?r:n}var Gr=typeof window>`u`?M.useEffect:M.useLayoutEffect;function Kr({fileDiff:e,options:t,lineAnnotations:n,selectedLines:r,prerenderedHTML:i,metrics:a,hasGutterRenderUtility:o,hasCustomHeader:s,disableWorkerPool:c}){let l=ce(),u=(0,M.useContext)(dn),d=(0,M.useRef)(null),f=fn(r=>{if(r!=null){if(d.current!=null)throw Error(`useFileDiffInstance: An instance should not already exist when a node is created`);l==null?d.current=new Lr(qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),c?void 0:u,!0):d.current=new Hr(qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),l,a,c?void 0:u,!0),d.current.hydrate({fileDiff:e,fileContainer:r,lineAnnotations:n,prerenderedHTML:i})}else{if(d.current==null)throw Error(`useFileDiffInstance: A FileDiff instance should exist when unmounting`);d.current.cleanUp(),d.current=null}});return Gr(()=>{let{current:i}=d;if(i==null)return;let a=qr({hasCustomHeader:s,hasGutterRenderUtility:o,options:t}),c=!or(i.options,a);i.setOptions(a),i.render({forceRender:c,fileDiff:e,lineAnnotations:n}),r!==void 0&&i.setSelectedLines(r)}),{ref:f,getHoveredLine:(0,M.useCallback)(()=>d.current?.getHoveredLine(),[])}}function qr({options:e,hasCustomHeader:t,hasGutterRenderUtility:n}){return n||t?{...e,renderCustomHeader:t?m:void 0,renderGutterUtility:n?m:void 0}:e}function Jr(e){let t=Nr(e);if(t.length!==1)throw console.error(t),Error(`PatchDiff: Provided patch must include only 1 patch, with 1 diff`);let{files:n}=t[0];if(n.length!==1)throw console.error(n),Error(`FileDiff: Provided patch must contain exactly 1 file diff`);return n[0]}function Yr({patch:e,options:t,metrics:n,lineAnnotations:r,selectedLines:i,className:a,style:o,prerenderedHTML:s,renderAnnotation:c,renderCustomHeader:l,renderHeaderPrefix:u,renderHeaderMetadata:d,renderGutterUtility:f,renderHoverUtility:p,disableWorkerPool:m=!1}){let g=Xr(e),{ref:_,getHoveredLine:v}=Kr({fileDiff:g,options:t,metrics:n,lineAnnotations:r,selectedLines:i,prerenderedHTML:s,hasGutterRenderUtility:f!=null||p!=null,hasCustomHeader:l!=null,disableWorkerPool:m});return(0,j.jsx)(h,{ref:_,className:a,style:o,children:oe(dr({fileDiff:g,renderCustomHeader:l,renderHeaderPrefix:u,renderHeaderMetadata:d,renderAnnotation:c,lineAnnotations:r,renderGutterUtility:f,renderHoverUtility:p,getHoveredLine:v}),s)})}function Xr(e){return(0,M.useMemo)(()=>Jr(e),[e])}var Zr={dark:`dark-plus`,light:`light-plus`},Qr={"--diffs-font-family":`var(--font-mono)`,"--diffs-header-font-family":`var(--font-mono)`,"--diffs-font-size":`13px`,"--diffs-line-height":`1.5`,"--diffs-light-bg":`var(--code-background)`,"--diffs-dark-bg":`var(--code-background)`},$r=`
|
|
1724
1724
|
[data-code] {
|
|
1725
1725
|
overflow-x: auto;
|
|
1726
1726
|
}
|