vitepress-openapi 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OAJSONEditor-BPdzinnW.js → OAJSONEditor-6uG2SFZK.js} +6 -6
- package/dist/{OAJSONEditor-cdYfH8pW.cjs → OAJSONEditor-D-Yhb6db.cjs} +4 -4
- package/dist/{angular-html-D5QwJSjx.js → angular-html-BUsdri4u.js} +2 -2
- package/dist/angular-html-BzD9NQW5.cjs +1 -0
- package/dist/{angular-ts-CXuTnAMH.cjs → angular-ts-D1fX05LE.cjs} +1 -1
- package/dist/{angular-ts-B0kZpGGd.js → angular-ts-DLzsnsUB.js} +2 -2
- package/dist/{apl-CjAWNKej.cjs → apl-Bo4qJ495.cjs} +1 -1
- package/dist/{apl-CO2hi6pu.js → apl-D9bD1gNv.js} +5 -5
- package/dist/{astro-C8AbPvmY.js → astro-D8q6Gy7P.js} +5 -5
- package/dist/{astro-C6WzLepe.cjs → astro-DCjm-pbh.cjs} +1 -1
- package/dist/{blade-bJOeoSe0.cjs → blade-B6fombNo.cjs} +1 -1
- package/dist/{blade-B3TXqIqP.js → blade-Sc601tfi.js} +7 -7
- package/dist/{c-BTzN4Ylc.js → c-CfqZXQ2T.js} +1 -1
- package/dist/c-Dn__oIvS.cjs +1 -0
- package/dist/{chapel-D3SOeXgF.cjs → chapel-D7VyqyYt.cjs} +1 -1
- package/dist/{chapel-DqUUkRYq.js → chapel-xSzmwfXQ.js} +1 -1
- package/dist/{cobol-dlQjEakv.cjs → cobol-CAKxSKZT.cjs} +1 -1
- package/dist/{cobol-DFLW8ca0.js → cobol-CHAgZDLS.js} +2 -2
- package/dist/{coffee-1KoIHtzW.js → coffee-CeAuLo4O.js} +1 -1
- package/dist/{coffee-TUzF5uor.cjs → coffee-JnCJAydr.cjs} +1 -1
- package/dist/{core-x4pNOQS7.cjs → core-CNg5cW98.cjs} +3 -3
- package/dist/{core-CSILRXKH.js → core-s1UIPu_z.js} +114 -114
- package/dist/cpp-1aC9AELp.cjs +1 -0
- package/dist/{cpp-yEMsPd-1.js → cpp-DAEET6ev.js} +3 -3
- package/dist/{crystal-D_nHX3jS.cjs → crystal-BfArRaXr.cjs} +1 -1
- package/dist/{crystal-CENIitzj.js → crystal-C1qz7UnE.js} +6 -6
- package/dist/css-BVuZPxTF.cjs +1 -0
- package/dist/{css-B-WLUKlS.js → css-BZAFXxqD.js} +1 -1
- package/dist/{dist-BxzxjMCz.cjs → dist-CpZb0vTN.cjs} +5 -5
- package/dist/{dist-C1v4Xm4x.js → dist-DV8PoRsD.js} +1 -1
- package/dist/{edge-BEj_2N8x.js → edge-CWZ5MU2M.js} +3 -3
- package/dist/{edge-f2PDRzgK.cjs → edge-JzsrLjb_.cjs} +1 -1
- package/dist/{elixir-CQkxmVTM.js → elixir-Crtqxz1W.js} +1 -1
- package/dist/{elixir-CIcaqRsY.cjs → elixir-QzvqYFsV.cjs} +1 -1
- package/dist/{elm-DzGi_nR3.js → elm-9rlZJ0du.js} +1 -1
- package/dist/{elm-7G0I-hE6.cjs → elm-DTTDc-PO.cjs} +1 -1
- package/dist/{engine-javascript-DSMQf2z2.js → engine-javascript-CoT6aZfI.js} +2 -2
- package/dist/{engine-javascript-DsJlQOsE.cjs → engine-javascript-DWPOYZRs.cjs} +2 -2
- package/dist/{erb-COP2UPZ7.js → erb-C6UwauYe.js} +2 -2
- package/dist/{erb-B9-cGaTm.cjs → erb-DPWXQYaP.cjs} +1 -1
- package/dist/generate-BAgVJTNQ.js +103 -0
- package/dist/generate-BVoluROJ.cjs +1 -0
- package/dist/generateMarkdown-BYnrcWs0.js +692 -0
- package/dist/generateMarkdown-DyJdABwj.cjs +31 -0
- package/dist/{git-rebase-Ku61ihN2.cjs → git-rebase-Cwp0uWvv.cjs} +1 -1
- package/dist/{git-rebase-DTYLKCWV.js → git-rebase-xIgRvJ_q.js} +1 -1
- package/dist/{glimmer-js-D29AEl8t.js → glimmer-js-CNGdvMhA.js} +4 -4
- package/dist/{glimmer-js-izmglT1O.cjs → glimmer-js-Df_yNNoE.cjs} +1 -1
- package/dist/{glimmer-ts-DYj3qCHB.js → glimmer-ts-Dq4P7Mkf.js} +4 -4
- package/dist/{glimmer-ts-DJ1fakxz.cjs → glimmer-ts-DsAOmOGY.cjs} +1 -1
- package/dist/glsl-CjiF-xkH.cjs +1 -0
- package/dist/{glsl-Bc6nFncG.js → glsl-DZfvb15l.js} +2 -2
- package/dist/{graphql-Ds5Ubte9.js → graphql-CZmb-US9.js} +5 -5
- package/dist/graphql-r7AX53Pp.cjs +1 -0
- package/dist/{hack-DlUSG6ek.cjs → hack-Cs2ncrxq.cjs} +1 -1
- package/dist/{hack-B6E-ISVN.js → hack-DIIRgI4h.js} +2 -2
- package/dist/haml-3bvHwbYf.cjs +1 -0
- package/dist/{haml-DSK5muqV.js → haml-aboBnjLl.js} +3 -3
- package/dist/{handlebars-BxmkFTU3.cjs → handlebars-C7PZ80pQ.cjs} +1 -1
- package/dist/{handlebars-CGjGomme.js → handlebars-Z3oHMxHt.js} +4 -4
- package/dist/html-CtaiB3Oi.cjs +1 -0
- package/dist/{html-DvKVaMAh.js → html-Cz0Xqdyq.js} +3 -3
- package/dist/{html-derivative-Due6nHaa.cjs → html-derivative-BYOQo3PG.cjs} +1 -1
- package/dist/{html-derivative--Yb6fTDM.js → html-derivative-BjrHnqif.js} +1 -1
- package/dist/{http-BDb2okFn.cjs → http-BA9nOlAq.cjs} +1 -1
- package/dist/{http-Wf5dll9t.js → http-ieHS9PeS.js} +4 -4
- package/dist/{hurl-Ds566NU_.cjs → hurl-DFGEnvSS.cjs} +1 -1
- package/dist/{hurl-1Afa28rK.js → hurl-Dg9NkXrC.js} +2 -2
- package/dist/{java-DMU2lkyP.js → java-DCXCvNHA.js} +1 -1
- package/dist/java-DTzZZzv7.cjs +1 -0
- package/dist/javascript-DOKgRqe8.cjs +1 -0
- package/dist/{javascript-CkOfli2O.js → javascript-f9cb-Pl7.js} +1 -1
- package/dist/{jinja-C_EeM5kX.js → jinja-B2DAjJOY.js} +1 -1
- package/dist/{jinja-D65--viX.cjs → jinja-DE8g1bjX.cjs} +1 -1
- package/dist/{jison-D5yGxh57.js → jison-5BvvygJS.js} +1 -1
- package/dist/{jison-CgJDwgW4.cjs → jison-BCQciWJO.cjs} +1 -1
- package/dist/js-yaml-B-Up3zwX.cjs +28 -0
- package/dist/{js-yaml-CA-Iojzo.js → js-yaml-o4oD1Gp3.js} +1 -1
- package/dist/json-BcxNDt_H.cjs +1 -0
- package/dist/{json-DnSlp2pP.js → json-DZfYi9f2.js} +1 -1
- package/dist/{jsx-DIHyTcyM.js → jsx-D0ksVAAA.js} +1 -1
- package/dist/jsx-DxOBIFYM.cjs +1 -0
- package/dist/{julia-Upv7yuF3.cjs → julia-B3y7weJz.cjs} +1 -1
- package/dist/{julia-pnYWyN4H.js → julia-Dk4vCuW5.js} +4 -4
- package/dist/{just-kcvRoQaC.cjs → just-B7ftAo6t.cjs} +1 -1
- package/dist/{just-Rux3ihaI.js → just-BDbjiXnk.js} +5 -5
- package/dist/{latex-BNmmGRr9.js → latex-CC_8gzv9.js} +1 -1
- package/dist/{latex-ssVj4acX.cjs → latex-QeOQCy8M.cjs} +1 -1
- package/dist/{liquid-D9-xfAH9.cjs → liquid-BVZIda1i.cjs} +1 -1
- package/dist/{liquid-CkFTSuz5.js → liquid-CJVpPXmh.js} +4 -4
- package/dist/llms-DWks2vGp.cjs +26 -0
- package/dist/llms-yFQ0insM.js +418 -0
- package/dist/lua-BoAqNcbB.cjs +1 -0
- package/dist/{lua-BPZzb4jg.js → lua-Bwwgpolt.js} +2 -2
- package/dist/{marko-CckGih8c.cjs → marko-CX9I4GhY.cjs} +1 -1
- package/dist/{marko-U5lgzX4W.js → marko-z-UpeqN9.js} +3 -3
- package/dist/{mdc-ftW0jKss.js → mdc-ANp6h8jQ.js} +2 -2
- package/dist/{mdc-CIgbmpvb.cjs → mdc-BPd7ZDIZ.cjs} +1 -1
- package/dist/{nginx-CO6FbhYm.js → nginx-BUK9HsFk.js} +1 -1
- package/dist/{nginx-pp3BriFA.cjs → nginx-CLECRmW5.cjs} +1 -1
- package/dist/{nim-xNROytAe.cjs → nim-4G662efB.cjs} +1 -1
- package/dist/{nim-CJpN9IuJ.js → nim-pupbS7ww.js} +6 -6
- package/dist/{useOpenapi-DVLwqpMR.js → normalizeExamples-BFR42ENV.js} +4058 -2185
- package/dist/normalizeExamples-DNaOGXm0.cjs +45 -0
- package/dist/{org-BLgfq4oa.js → org-B8vjAQ9v.js} +26 -26
- package/dist/{org-BfvkBzjQ.cjs → org-XYh7PPQk.cjs} +1 -1
- package/dist/{perl-4iy1AzjP.js → perl-ChiZYWB8.js} +5 -5
- package/dist/{perl-gYxlBF7Z.cjs → perl-Qi4toP6W.cjs} +1 -1
- package/dist/{php-D7tWq26a.cjs → php-93axekrF.cjs} +1 -1
- package/dist/{php-DBpFECnW.js → php-JTDYSOFN.js} +6 -6
- package/dist/{pug-CYLX2lIo.cjs → pug-BHWWe-s7.cjs} +1 -1
- package/dist/{pug-B3SC-VJn.js → pug-BR1NlFnA.js} +3 -3
- package/dist/{qml-CjtYDlYC.cjs → qml-71TJR8lk.cjs} +1 -1
- package/dist/{qml-BJryVNLB.js → qml-BBCxB4Da.js} +1 -1
- package/dist/r-BVapaf2o.cjs +1 -0
- package/dist/{r-CO3AGhxE.js → r-u-VAz7bR.js} +1 -1
- package/dist/{razor-fizwqQUn.js → razor-Cqi5RzG6.js} +1 -1
- package/dist/{razor-Cjwm6SbM.cjs → razor-DMdT60zm.cjs} +1 -1
- package/dist/{regexp-BlBS23LV.js → regexp-9Pkh3Nf7.js} +1 -1
- package/dist/regexp-CwHm4hi_.cjs +1 -0
- package/dist/{rst-uzixnQEN.cjs → rst-BtwmHjj9.cjs} +1 -1
- package/dist/{rst-CQ-BOew2.js → rst-CLZRH5oU.js} +6 -6
- package/dist/{ruby-DYscwpKq.js → ruby-BZUQEFGQ.js} +12 -12
- package/dist/{ruby-DcF3FpOo.cjs → ruby-DuGe7Fs0.cjs} +1 -1
- package/dist/{sas-CQkHM7U4.cjs → sas-B7hIWqYI.cjs} +1 -1
- package/dist/{sas-xf7cYJ8D.js → sas-BO2zDPuE.js} +1 -1
- package/dist/scss-BpK0m8eZ.cjs +1 -0
- package/dist/{scss-D5Ro0FPj.js → scss-OFCrSwaR.js} +2 -2
- package/dist/{shellscript-DVhVbKuT.js → shellscript-BNTFxSmg.js} +1 -1
- package/dist/shellscript-KJDkFDLp.cjs +1 -0
- package/dist/{shellsession-DCV0F4Wc.js → shellsession-B5j5FuGA.js} +1 -1
- package/dist/{shellsession-CfBYvvpU.cjs → shellsession-DWalcvtJ.cjs} +1 -1
- package/dist/{soy-HCmyBkD1.cjs → soy-BQn3ItqC.cjs} +1 -1
- package/dist/{soy-DqvPS_mm.js → soy-C2Q794LP.js} +1 -1
- package/dist/{sql-C8Kl76rR.js → sql-8JHRpHTE.js} +1 -1
- package/dist/sql-C5y5nUuw.cjs +1 -0
- package/dist/{stata-CJiPjcNk.js → stata-BrNyU7bS.js} +1 -1
- package/dist/{stata-B1WKRY4L.cjs → stata-DyBO95gA.cjs} +1 -1
- package/dist/{surrealql-D34WxIUj.cjs → surrealql-CAAIvFqO.cjs} +1 -1
- package/dist/{surrealql-1H6TjudE.js → surrealql-DgN6gei3.js} +1 -1
- package/dist/{svelte-BdqWwltV.cjs → svelte-DGjw_UH1.cjs} +1 -1
- package/dist/{svelte-CIN2FBHe.js → svelte-FhQBX-tv.js} +3 -3
- package/dist/{templ-DfCxDv8S.js → templ-BUggPx5p.js} +2 -2
- package/dist/{templ-DRfIS7Yk.cjs → templ-Cxuj5rzV.cjs} +1 -1
- package/dist/tex-B3aY5DbH.cjs +1 -0
- package/dist/{tex-BTjGzapI.js → tex-BlOdu2Xy.js} +2 -2
- package/dist/{ts-tags-T_iDSaWH.cjs → ts-tags-BymwG1F9.cjs} +1 -1
- package/dist/{ts-tags-CV7DYDTm.js → ts-tags-DZBZzNkR.js} +7 -7
- package/dist/tsx-DgA8B92F.cjs +1 -0
- package/dist/{tsx-C9xVNnaW.js → tsx-mByJmMSt.js} +1 -1
- package/dist/{twig-C4i_cRPo.js → twig--2v8RtVi.js} +5 -5
- package/dist/{twig-D914CUNQ.cjs → twig-CWwcCfHy.cjs} +1 -1
- package/dist/types/src/cli.d.ts +1 -0
- package/dist/types/src/components/Common/Highlight/OAShiki.vue.d.ts +2 -2
- package/dist/types/src/components/Common/Highlight/OAVueJsonPretty.vue.d.ts +2 -2
- package/dist/types/src/components/Common/OACodeBlock.vue.d.ts +2 -2
- package/dist/types/src/components/Common/OACodeValue.vue.d.ts +2 -2
- package/dist/types/src/components/Common/OAJSONEditor.vue.d.ts +2 -2
- package/dist/types/src/components/Parameter/OAParameterAttribute.vue.d.ts +2 -2
- package/dist/types/src/components/Playground/OAPlaygroundParameterInput.vue.d.ts +2 -2
- package/dist/types/src/components/ui/badge/index.d.ts +1 -1
- package/dist/types/src/components/ui/button/index.d.ts +1 -1
- package/dist/types/src/composables/useTheme.d.ts +7 -0
- package/dist/types/src/index.d.ts +18 -3
- package/dist/types/src/lib/codeSamples/buildOperationRequest.d.ts +15 -0
- package/dist/types/src/lib/codeSamples/buildRequest.d.ts +6 -0
- package/dist/types/src/lib/constants.d.ts +3 -0
- package/dist/types/src/lib/markdown/generateMarkdown.d.ts +111 -0
- package/dist/types/src/lib/markdown/llmsSite.d.ts +137 -0
- package/dist/types/src/lib/markdown/markdownUtils.d.ts +35 -0
- package/dist/types/src/lib/markdown/operationToMarkdown.d.ts +66 -0
- package/dist/types/src/lib/markdown/sanitizeHtml.d.ts +5 -0
- package/dist/types/src/lib/parser/getSchemaUi.d.ts +1 -0
- package/dist/types/src/node/cli.d.ts +5 -0
- package/dist/types/src/node/generate.d.ts +38 -0
- package/dist/types/src/node/llms.d.ts +99 -0
- package/dist/types/src/node/llmsPlugin.d.ts +10 -0
- package/dist/typescript-BWfpZQ2O.cjs +1 -0
- package/dist/{typescript-Chl77Ui1.js → typescript-DF15DAwn.js} +1 -1
- package/dist/{typst-C6fVPKNq.cjs → typst-BEqsnZtv.cjs} +1 -1
- package/dist/{typst-BgQE6TAB.js → typst-uhRd3eU5.js} +29 -29
- package/dist/useSidebar-B2LH297o.cjs +6 -0
- package/dist/useSidebar-CoebjdWM.js +313 -0
- package/dist/vitepress-openapi.cli.cjs.js +22 -0
- package/dist/vitepress-openapi.cli.es.js +67 -0
- package/dist/vitepress-openapi.client.cjs.js +1 -1
- package/dist/vitepress-openapi.client.es.js +7 -6
- package/dist/vitepress-openapi.css +1 -1
- package/dist/vitepress-openapi.node.cjs.js +1 -1
- package/dist/vitepress-openapi.node.es.js +47 -2
- package/dist/vitepress-openapi.vue.cjs.js +1 -1
- package/dist/vitepress-openapi.vue.es.js +4 -3
- package/dist/{vue-CaajMfVy.cjs → vue-BQl-5Fd6.cjs} +1 -1
- package/dist/{vue-J95qJkfJ.js → vue-CSJXDMn1.js} +6 -6
- package/dist/{vue-DpVGGK22.js → vue-DIM9jH1x.js} +3091 -4626
- package/dist/vue-DwsEa2e4.cjs +7 -0
- package/dist/{vue-html-CtmhMKZ8.cjs → vue-html-AqZQgz92.cjs} +1 -1
- package/dist/{vue-html-BjrCwjva.js → vue-html-DYm4V3uo.js} +1 -1
- package/dist/{vue-vine-C4hFAX9j.js → vue-vine-BLrCVeql.js} +3 -3
- package/dist/{vue-vine-DHwm8nhC.cjs → vue-vine-C1QCIUv6.cjs} +1 -1
- package/dist/xml-DbN80t5u.cjs +1 -0
- package/dist/{xml-4tT4oeZd.js → xml-Df1jLF7H.js} +2 -2
- package/dist/{xsl-gK25ns76.cjs → xsl-7fKL5NbN.cjs} +1 -1
- package/dist/{xsl-ZTs2D31w.js → xsl-C2LJLnIq.js} +1 -1
- package/dist/{yaml-Cr99duBz.js → yaml-DABI1u00.js} +1 -1
- package/dist/yaml-DNB0t8B9.cjs +1 -0
- package/package.json +6 -2
- package/src/cli.ts +6 -0
- package/src/composables/useMarkdown.ts +8 -2
- package/src/composables/useSidebar.ts +1 -1
- package/src/composables/useTheme.ts +12 -0
- package/src/index.ts +26 -5
- package/src/lib/codeSamples/buildHarRequest.ts +5 -0
- package/src/lib/codeSamples/buildOperationRequest.ts +52 -0
- package/src/lib/codeSamples/buildRequest.ts +49 -28
- package/src/lib/constants.ts +5 -0
- package/src/lib/examples/getSchemaUiJson.ts +1 -1
- package/src/lib/markdown/generateMarkdown.ts +451 -0
- package/src/lib/markdown/llmsSite.ts +475 -0
- package/src/lib/markdown/markdownUtils.ts +104 -0
- package/src/lib/markdown/operationLink.ts +10 -3
- package/src/lib/markdown/operationToMarkdown.ts +834 -0
- package/src/lib/markdown/sanitizeHtml.ts +92 -0
- package/src/lib/parser/generateCodeSamples.ts +6 -31
- package/src/lib/parser/generateMissingOperationIds.ts +1 -1
- package/src/lib/parser/generateMissingSummary.ts +1 -1
- package/src/lib/parser/generateMissingTags.ts +1 -1
- package/src/lib/parser/generateRequestBodyUi.ts +1 -1
- package/src/lib/parser/generateResponseUi.ts +1 -1
- package/src/lib/parser/generateSecurityUi.ts +1 -1
- package/src/lib/parser/getSchemaUi.ts +7 -3
- package/src/lib/sidebar/generateSidebarItemsByPaths.ts +1 -1
- package/src/lib/spec/createOpenApiSpec.ts +1 -1
- package/src/node/cli.ts +107 -0
- package/src/node/generate.ts +207 -0
- package/src/node/llms.ts +431 -0
- package/src/node/llmsPlugin.ts +29 -0
- package/dist/angular-html-BoKsRe8T.cjs +0 -1
- package/dist/c-BCyoZ90X.cjs +0 -1
- package/dist/cpp-tnOfy09q.cjs +0 -1
- package/dist/css-02TmpFbt.cjs +0 -1
- package/dist/glsl-BGTPqLyQ.cjs +0 -1
- package/dist/graphql-DdYH_Rp2.cjs +0 -1
- package/dist/haml-D-xAsnlc.cjs +0 -1
- package/dist/html-BYiFDapk.cjs +0 -1
- package/dist/java-DwnayQnb.cjs +0 -1
- package/dist/javascript-CSKossUl.cjs +0 -1
- package/dist/js-yaml-uHYMr7LM.cjs +0 -28
- package/dist/json-DMvxal4O.cjs +0 -1
- package/dist/jsx-CJAVXoYP.cjs +0 -1
- package/dist/lua-CbILlNRp.cjs +0 -1
- package/dist/r-DKRgTYMs.cjs +0 -1
- package/dist/regexp-BbrbtHcV.cjs +0 -1
- package/dist/scss-B6SEboBH.cjs +0 -1
- package/dist/shellscript-UM_LESkp.cjs +0 -1
- package/dist/sql-B2O4UoSw.cjs +0 -1
- package/dist/tex-W_Dxzamg.cjs +0 -1
- package/dist/tsx-B3iFrpuZ.cjs +0 -1
- package/dist/typescript-Ai8puZIn.cjs +0 -1
- package/dist/useOpenapi-D3rJQzeG.cjs +0 -50
- package/dist/vue-Cdo23EVh.cjs +0 -6
- package/dist/xml-C1x13bX0.cjs +0 -1
- package/dist/yaml-BUexFoMb.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { it as e, k as t } from "./normalizeExamples-BFR42ENV.js";
|
|
2
2
|
//#region node_modules/.pnpm/@shikijs+types@4.4.3/node_modules/@shikijs/types/dist/index.mjs
|
|
3
3
|
var n = class extends Error {
|
|
4
4
|
constructor(e) {
|
|
@@ -73,8 +73,8 @@ function g(e) {
|
|
|
73
73
|
return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
74
74
|
}
|
|
75
75
|
var _ = class {
|
|
76
|
-
constructor(
|
|
77
|
-
|
|
76
|
+
constructor(e) {
|
|
77
|
+
t(this, "cache", /* @__PURE__ */ new Map()), this.fn = e;
|
|
78
78
|
}
|
|
79
79
|
get(e) {
|
|
80
80
|
if (this.cache.has(e)) return this.cache.get(e);
|
|
@@ -82,8 +82,8 @@ var _ = class {
|
|
|
82
82
|
return this.cache.set(e, t), t;
|
|
83
83
|
}
|
|
84
84
|
}, v = class {
|
|
85
|
-
constructor(
|
|
86
|
-
|
|
85
|
+
constructor(e, n, r) {
|
|
86
|
+
t(this, "_cachedMatchRoot", new _((e) => this._root.match(e))), this._colorMap = e, this._defaults = n, this._root = r;
|
|
87
87
|
}
|
|
88
88
|
static createFromRawTheme(e, t) {
|
|
89
89
|
return this.createFromParsedTheme(ie(e), t);
|
|
@@ -222,10 +222,10 @@ function oe(e, t) {
|
|
|
222
222
|
return new v(a, o, s);
|
|
223
223
|
}
|
|
224
224
|
var se = class {
|
|
225
|
-
constructor(
|
|
226
|
-
if (
|
|
225
|
+
constructor(e) {
|
|
226
|
+
if (t(this, "_isFrozen", void 0), t(this, "_lastColorId", void 0), t(this, "_id2color", void 0), t(this, "_color2id", void 0), this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(e)) {
|
|
227
227
|
this._isFrozen = !0;
|
|
228
|
-
for (let
|
|
228
|
+
for (let t = 0, n = e.length; t < n; t++) this._color2id[e[t]] = t, this._id2color[t] = e[t];
|
|
229
229
|
} else this._isFrozen = !1;
|
|
230
230
|
}
|
|
231
231
|
getId(e) {
|
|
@@ -239,12 +239,12 @@ var se = class {
|
|
|
239
239
|
getColorMap() {
|
|
240
240
|
return this._id2color.slice(0);
|
|
241
241
|
}
|
|
242
|
-
}, ce = Object.freeze([]), le = class
|
|
243
|
-
constructor(
|
|
244
|
-
|
|
242
|
+
}, ce = Object.freeze([]), le = class e {
|
|
243
|
+
constructor(e, n, r, i, a) {
|
|
244
|
+
t(this, "scopeDepth", void 0), t(this, "parentScopes", void 0), t(this, "fontStyle", void 0), t(this, "foreground", void 0), t(this, "background", void 0), this.scopeDepth = e, this.parentScopes = n || ce, this.fontStyle = r, this.foreground = i, this.background = a;
|
|
245
245
|
}
|
|
246
246
|
clone() {
|
|
247
|
-
return new
|
|
247
|
+
return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
248
248
|
}
|
|
249
249
|
static cloneArr(e) {
|
|
250
250
|
let t = [];
|
|
@@ -254,9 +254,9 @@ var se = class {
|
|
|
254
254
|
acceptOverwrite(e, t, n, r) {
|
|
255
255
|
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
|
|
256
256
|
}
|
|
257
|
-
}, ue = class
|
|
258
|
-
constructor(
|
|
259
|
-
|
|
257
|
+
}, ue = class e {
|
|
258
|
+
constructor(e, n = [], r = {}) {
|
|
259
|
+
t(this, "_rulesWithParentScopes", void 0), this._mainRule = e, this._children = r, this._rulesWithParentScopes = n;
|
|
260
260
|
}
|
|
261
261
|
static _cmpBySpecificity(e, t) {
|
|
262
262
|
if (e.scopeDepth !== t.scopeDepth) return t.scopeDepth - e.scopeDepth;
|
|
@@ -268,23 +268,23 @@ var se = class {
|
|
|
268
268
|
}
|
|
269
269
|
return t.parentScopes.length - e.parentScopes.length;
|
|
270
270
|
}
|
|
271
|
-
match(
|
|
272
|
-
if (
|
|
273
|
-
let
|
|
274
|
-
if (
|
|
271
|
+
match(t) {
|
|
272
|
+
if (t !== "") {
|
|
273
|
+
let e = t.indexOf("."), n, r;
|
|
274
|
+
if (e === -1 ? (n = t, r = "") : (n = t.substring(0, e), r = t.substring(e + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
|
|
275
275
|
}
|
|
276
276
|
let n = this._rulesWithParentScopes.concat(this._mainRule);
|
|
277
|
-
return n.sort(
|
|
277
|
+
return n.sort(e._cmpBySpecificity), n;
|
|
278
278
|
}
|
|
279
|
-
insert(
|
|
279
|
+
insert(t, n, r, i, a, o) {
|
|
280
280
|
if (n === "") {
|
|
281
|
-
this._doInsertHere(
|
|
281
|
+
this._doInsertHere(t, r, i, a, o);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
let s = n.indexOf("."), c, l;
|
|
285
285
|
s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
|
|
286
286
|
let u;
|
|
287
|
-
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new
|
|
287
|
+
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), le.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
|
|
288
288
|
}
|
|
289
289
|
_doInsertHere(e, t, n, r, i) {
|
|
290
290
|
if (t === null) {
|
|
@@ -433,7 +433,7 @@ var x = class {
|
|
|
433
433
|
}
|
|
434
434
|
}, ve = class {
|
|
435
435
|
constructor() {
|
|
436
|
-
|
|
436
|
+
t(this, "_references", []), t(this, "_seenReferenceKeys", /* @__PURE__ */ new Set()), t(this, "visitedRule", /* @__PURE__ */ new Set());
|
|
437
437
|
}
|
|
438
438
|
get references() {
|
|
439
439
|
return this._references;
|
|
@@ -443,8 +443,8 @@ var x = class {
|
|
|
443
443
|
this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
|
|
444
444
|
}
|
|
445
445
|
}, ye = class {
|
|
446
|
-
constructor(
|
|
447
|
-
|
|
446
|
+
constructor(e, n) {
|
|
447
|
+
t(this, "seenFullScopeRequests", /* @__PURE__ */ new Set()), t(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set()), t(this, "Q", void 0), this.repo = e, this.initialScopeName = n, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new x(this.initialScopeName)];
|
|
448
448
|
}
|
|
449
449
|
processQueue() {
|
|
450
450
|
let e = this.Q;
|
|
@@ -537,23 +537,23 @@ function Ce(e, t, n) {
|
|
|
537
537
|
}
|
|
538
538
|
var we = class {
|
|
539
539
|
constructor() {
|
|
540
|
-
|
|
540
|
+
t(this, "kind", 0);
|
|
541
541
|
}
|
|
542
542
|
}, Te = class {
|
|
543
543
|
constructor() {
|
|
544
|
-
|
|
544
|
+
t(this, "kind", 1);
|
|
545
545
|
}
|
|
546
546
|
}, Ee = class {
|
|
547
|
-
constructor(
|
|
548
|
-
|
|
547
|
+
constructor(e) {
|
|
548
|
+
t(this, "kind", 2), this.ruleName = e;
|
|
549
549
|
}
|
|
550
550
|
}, De = class {
|
|
551
|
-
constructor(
|
|
552
|
-
|
|
551
|
+
constructor(e) {
|
|
552
|
+
t(this, "kind", 3), this.scopeName = e;
|
|
553
553
|
}
|
|
554
554
|
}, Oe = class {
|
|
555
|
-
constructor(
|
|
556
|
-
|
|
555
|
+
constructor(e, n) {
|
|
556
|
+
t(this, "kind", 4), this.scopeName = e, this.ruleName = n;
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
function ke(e) {
|
|
@@ -570,8 +570,8 @@ function Fe(e) {
|
|
|
570
570
|
return e;
|
|
571
571
|
}
|
|
572
572
|
var S = class {
|
|
573
|
-
constructor(
|
|
574
|
-
|
|
573
|
+
constructor(e, n, r, i) {
|
|
574
|
+
t(this, "$location", void 0), t(this, "id", void 0), t(this, "_nameIsCapturing", void 0), t(this, "_name", void 0), t(this, "_contentNameIsCapturing", void 0), t(this, "_contentName", void 0), this.$location = e, this.id = n, this._name = r || null, this._nameIsCapturing = f.hasCaptures(this._name), this._contentName = i || null, this._contentNameIsCapturing = f.hasCaptures(this._contentName);
|
|
575
575
|
}
|
|
576
576
|
get debugName() {
|
|
577
577
|
let e = this.$location ? `${u(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
@@ -584,8 +584,8 @@ var S = class {
|
|
|
584
584
|
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : f.replaceCaptures(this._contentName, e, t);
|
|
585
585
|
}
|
|
586
586
|
}, Ie = class extends S {
|
|
587
|
-
constructor(
|
|
588
|
-
super(
|
|
587
|
+
constructor(e, n, r, i, a) {
|
|
588
|
+
super(e, n, r, i), t(this, "retokenizeCapturedWithRuleId", void 0), this.retokenizeCapturedWithRuleId = a;
|
|
589
589
|
}
|
|
590
590
|
dispose() {}
|
|
591
591
|
collectPatterns(e, t) {
|
|
@@ -598,8 +598,8 @@ var S = class {
|
|
|
598
598
|
throw Error("Not supported!");
|
|
599
599
|
}
|
|
600
600
|
}, Le = class extends S {
|
|
601
|
-
constructor(
|
|
602
|
-
super(
|
|
601
|
+
constructor(e, n, r, i, a) {
|
|
602
|
+
super(e, n, r, null), t(this, "_match", void 0), t(this, "captures", void 0), t(this, "_cachedCompiledPatterns", void 0), this._match = new C(i, this.id), this.captures = a, this._cachedCompiledPatterns = null;
|
|
603
603
|
}
|
|
604
604
|
dispose() {
|
|
605
605
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -620,8 +620,8 @@ var S = class {
|
|
|
620
620
|
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
621
621
|
}
|
|
622
622
|
}, Re = class extends S {
|
|
623
|
-
constructor(
|
|
624
|
-
super(
|
|
623
|
+
constructor(e, n, r, i, a) {
|
|
624
|
+
super(e, n, r, i), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this.patterns = a.patterns, this.hasMissingPatterns = a.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
625
625
|
}
|
|
626
626
|
dispose() {
|
|
627
627
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -639,8 +639,8 @@ var S = class {
|
|
|
639
639
|
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
640
640
|
}
|
|
641
641
|
}, ze = class extends S {
|
|
642
|
-
constructor(
|
|
643
|
-
super(
|
|
642
|
+
constructor(e, n, r, i, a, o, s, c, l, u) {
|
|
643
|
+
super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "_end", void 0), t(this, "endHasBackReferences", void 0), t(this, "endCaptures", void 0), t(this, "applyEndPatternLast", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this._end = new C(s || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = c, this.applyEndPatternLast = l || !1, this.patterns = u.patterns, this.hasMissingPatterns = u.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
644
644
|
}
|
|
645
645
|
dispose() {
|
|
646
646
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -672,8 +672,8 @@ var S = class {
|
|
|
672
672
|
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
|
|
673
673
|
}
|
|
674
674
|
}, Be = class extends S {
|
|
675
|
-
constructor(
|
|
676
|
-
super(
|
|
675
|
+
constructor(e, n, r, i, a, o, s, c, l) {
|
|
676
|
+
super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "whileCaptures", void 0), t(this, "_while", void 0), t(this, "whileHasBackReferences", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), t(this, "_cachedCompiledWhilePatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this.whileCaptures = c, this._while = new C(s, Ne), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
677
677
|
}
|
|
678
678
|
dispose() {
|
|
679
679
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
|
|
@@ -782,20 +782,20 @@ var S = class {
|
|
|
782
782
|
hasMissingPatterns: (t ? t.length : 0) !== i.length
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
}, C = class
|
|
786
|
-
constructor(
|
|
787
|
-
if (
|
|
788
|
-
let
|
|
789
|
-
for (let a = 0; a <
|
|
790
|
-
let
|
|
791
|
-
|
|
785
|
+
}, C = class e {
|
|
786
|
+
constructor(e, n) {
|
|
787
|
+
if (t(this, "source", void 0), t(this, "ruleId", void 0), t(this, "hasAnchor", void 0), t(this, "hasBackReferences", void 0), t(this, "_anchorCache", void 0), e && typeof e == "string") {
|
|
788
|
+
let t = e.length, n = 0, r = [], i = !1;
|
|
789
|
+
for (let a = 0; a < t; a++) if (e.charAt(a) === "\\" && a + 1 < t) {
|
|
790
|
+
let t = e.charAt(a + 1);
|
|
791
|
+
t === "z" ? (r.push(e.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (t === "A" || t === "G") && (i = !0), a++;
|
|
792
792
|
}
|
|
793
|
-
this.hasAnchor = i, n === 0 ? this.source =
|
|
794
|
-
} else this.hasAnchor = !1, this.source =
|
|
793
|
+
this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
|
|
794
|
+
} else this.hasAnchor = !1, this.source = e;
|
|
795
795
|
this._anchorCache = this.hasAnchor ? this._buildAnchorCache() : null, this.ruleId = n, this.hasBackReferences = typeof this.source == "string" && Ae.test(this.source);
|
|
796
796
|
}
|
|
797
797
|
clone() {
|
|
798
|
-
return new
|
|
798
|
+
return new e(this.source, this.ruleId);
|
|
799
799
|
}
|
|
800
800
|
setSource(e) {
|
|
801
801
|
this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
|
|
@@ -821,7 +821,7 @@ var S = class {
|
|
|
821
821
|
}
|
|
822
822
|
}, w = class {
|
|
823
823
|
constructor() {
|
|
824
|
-
|
|
824
|
+
t(this, "_items", void 0), t(this, "_hasAnchors", void 0), t(this, "_cached", void 0), t(this, "_anchorCache", void 0), this._items = [], this._hasAnchors = !1, this._cached = null, this._anchorCache = {
|
|
825
825
|
A0_G0: null,
|
|
826
826
|
A0_G1: null,
|
|
827
827
|
A1_G0: null,
|
|
@@ -860,8 +860,8 @@ var S = class {
|
|
|
860
860
|
return new He(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
|
|
861
861
|
}
|
|
862
862
|
}, He = class {
|
|
863
|
-
constructor(
|
|
864
|
-
|
|
863
|
+
constructor(e, n, r) {
|
|
864
|
+
t(this, "scanner", void 0), this.regExps = n, this.rules = r, this.scanner = e.createOnigScanner(n);
|
|
865
865
|
}
|
|
866
866
|
dispose() {
|
|
867
867
|
typeof this.scanner.dispose == "function" && this.scanner.dispose();
|
|
@@ -882,21 +882,21 @@ var S = class {
|
|
|
882
882
|
constructor(e, t) {
|
|
883
883
|
this.languageId = e, this.tokenType = t;
|
|
884
884
|
}
|
|
885
|
-
}, We = (r = class
|
|
886
|
-
constructor(
|
|
887
|
-
|
|
885
|
+
}, We = (r = class e {
|
|
886
|
+
constructor(e, n) {
|
|
887
|
+
t(this, "_defaultAttributes", void 0), t(this, "_embeddedLanguagesMatcher", void 0), t(this, "_getBasicScopeAttributes", new _((e) => new Ue(this._scopeToLanguage(e), this._toStandardTokenType(e)))), this._defaultAttributes = new Ue(e, 8), this._embeddedLanguagesMatcher = new Ge(Object.entries(n || {}));
|
|
888
888
|
}
|
|
889
889
|
getDefaultAttributes() {
|
|
890
890
|
return this._defaultAttributes;
|
|
891
891
|
}
|
|
892
|
-
getBasicScopeAttributes(
|
|
893
|
-
return
|
|
892
|
+
getBasicScopeAttributes(t) {
|
|
893
|
+
return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
|
|
894
894
|
}
|
|
895
895
|
_scopeToLanguage(e) {
|
|
896
896
|
return this._embeddedLanguagesMatcher.match(e) || 0;
|
|
897
897
|
}
|
|
898
|
-
_toStandardTokenType(
|
|
899
|
-
let n =
|
|
898
|
+
_toStandardTokenType(t) {
|
|
899
|
+
let n = t.match(e.STANDARD_TOKEN_TYPE_REGEXP);
|
|
900
900
|
if (!n) return 8;
|
|
901
901
|
switch (n[1]) {
|
|
902
902
|
case "comment": return 1;
|
|
@@ -906,13 +906,13 @@ var S = class {
|
|
|
906
906
|
}
|
|
907
907
|
throw Error("Unexpected match for standard token type!");
|
|
908
908
|
}
|
|
909
|
-
},
|
|
910
|
-
constructor(
|
|
911
|
-
if (
|
|
909
|
+
}, t(r, "_NULL_SCOPE_METADATA", new Ue(0, 0)), t(r, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), r), Ge = class {
|
|
910
|
+
constructor(e) {
|
|
911
|
+
if (t(this, "values", void 0), t(this, "scopesRegExp", void 0), e.length === 0) this.values = null, this.scopesRegExp = null;
|
|
912
912
|
else {
|
|
913
|
-
this.values = new Map(
|
|
914
|
-
let
|
|
915
|
-
|
|
913
|
+
this.values = new Map(e);
|
|
914
|
+
let t = e.map(([e, t]) => g(e));
|
|
915
|
+
t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
match(e) {
|
|
@@ -1079,8 +1079,8 @@ function T(e, t, n, r, i, a, o) {
|
|
|
1079
1079
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1080
1080
|
}
|
|
1081
1081
|
var et = class {
|
|
1082
|
-
constructor(
|
|
1083
|
-
|
|
1082
|
+
constructor(e, n) {
|
|
1083
|
+
t(this, "scopes", void 0), t(this, "endPos", void 0), this.scopes = e, this.endPos = n;
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
1086
|
function tt(e, t, n, r, i, a, o, s) {
|
|
@@ -1111,8 +1111,8 @@ function it(e, t) {
|
|
|
1111
1111
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
1112
1112
|
}
|
|
1113
1113
|
var at = class {
|
|
1114
|
-
constructor(
|
|
1115
|
-
if (
|
|
1114
|
+
constructor(e, n, r, i, a, o, s, c) {
|
|
1115
|
+
if (t(this, "_rootId", void 0), t(this, "_lastRuleId", void 0), t(this, "_ruleId2desc", void 0), t(this, "_includedGrammars", void 0), t(this, "_grammarRepository", void 0), t(this, "_grammar", void 0), t(this, "_injections", void 0), t(this, "_basicScopeAttributesProvider", void 0), t(this, "_tokenTypeMatchers", void 0), this._rootScopeName = e, this.balancedBracketSelectors = o, this._onigLib = c, this._basicScopeAttributesProvider = new We(r, i), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = s, this._grammar = ot(n, null), this._injections = null, this._tokenTypeMatchers = [], a) for (let e of Object.keys(a)) {
|
|
1116
1116
|
let t = pe(e, rt);
|
|
1117
1117
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
1118
1118
|
matcher: n.matcher,
|
|
@@ -1274,12 +1274,12 @@ var E = class e {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return n === e ? t.reverse() : void 0;
|
|
1276
1276
|
}
|
|
1277
|
-
}, st = (i = class
|
|
1278
|
-
constructor(
|
|
1279
|
-
|
|
1277
|
+
}, st = (i = class e {
|
|
1278
|
+
constructor(e, n, r, i, a, o, s, c) {
|
|
1279
|
+
t(this, "_stackElementBrand", void 0), t(this, "_enterPos", void 0), t(this, "_anchorPos", void 0), t(this, "depth", void 0), this.parent = e, this.ruleId = n, this.beginRuleCapturedEOL = a, this.endRule = o, this.nameScopesList = s, this.contentNameScopesList = c, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = r, this._anchorPos = i;
|
|
1280
1280
|
}
|
|
1281
|
-
equals(
|
|
1282
|
-
return
|
|
1281
|
+
equals(t) {
|
|
1282
|
+
return t !== null && e._equals(this, t);
|
|
1283
1283
|
}
|
|
1284
1284
|
static _equals(e, t) {
|
|
1285
1285
|
return e === t ? !0 : this._structuralEquals(e, t) ? E.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
@@ -1298,7 +1298,7 @@ var E = class e {
|
|
|
1298
1298
|
for (; e;) e._enterPos = -1, e._anchorPos = -1, e = e.parent;
|
|
1299
1299
|
}
|
|
1300
1300
|
reset() {
|
|
1301
|
-
|
|
1301
|
+
e._reset(this);
|
|
1302
1302
|
}
|
|
1303
1303
|
pop() {
|
|
1304
1304
|
return this.parent;
|
|
@@ -1306,8 +1306,8 @@ var E = class e {
|
|
|
1306
1306
|
safePop() {
|
|
1307
1307
|
return this.parent ? this.parent : this;
|
|
1308
1308
|
}
|
|
1309
|
-
push(
|
|
1310
|
-
return new
|
|
1309
|
+
push(t, n, r, i, a, o, s) {
|
|
1310
|
+
return new e(this, t, n, r, i, a, o, s);
|
|
1311
1311
|
}
|
|
1312
1312
|
getEnterPos() {
|
|
1313
1313
|
return this._enterPos;
|
|
@@ -1329,8 +1329,8 @@ var E = class e {
|
|
|
1329
1329
|
withContentNameScopesList(e) {
|
|
1330
1330
|
return this.contentNameScopesList === e ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, e);
|
|
1331
1331
|
}
|
|
1332
|
-
withEndRule(
|
|
1333
|
-
return this.endRule ===
|
|
1332
|
+
withEndRule(t) {
|
|
1333
|
+
return this.endRule === t ? this : new e(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, t, this.nameScopesList, this.contentNameScopesList);
|
|
1334
1334
|
}
|
|
1335
1335
|
hasSameRuleAs(e) {
|
|
1336
1336
|
let t = this;
|
|
@@ -1350,14 +1350,14 @@ var E = class e {
|
|
|
1350
1350
|
contentNameScopesList: (i = (a = this.contentNameScopesList) == null ? void 0 : a.getExtensionIfDefined(this.nameScopesList)) == null ? [] : i
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
static pushFrame(
|
|
1353
|
+
static pushFrame(t, n) {
|
|
1354
1354
|
var r, i, a;
|
|
1355
|
-
let o = E.fromExtension((r =
|
|
1356
|
-
return new t
|
|
1355
|
+
let o = E.fromExtension((r = t == null ? void 0 : t.nameScopesList) == null ? null : r, n.nameScopesList);
|
|
1356
|
+
return new e(t, Pe(n.ruleId), (i = n.enterPos) == null ? -1 : i, (a = n.anchorPos) == null ? -1 : a, n.beginRuleCapturedEOL, n.endRule, o, E.fromExtension(o, n.contentNameScopesList));
|
|
1357
1357
|
}
|
|
1358
|
-
},
|
|
1359
|
-
constructor(
|
|
1360
|
-
|
|
1358
|
+
}, t(i, "NULL", new i(null, 0, 0, 0, !1, null, null, null)), i), ct = class {
|
|
1359
|
+
constructor(e, n) {
|
|
1360
|
+
t(this, "balancedBracketScopes", void 0), t(this, "unbalancedBracketScopes", void 0), t(this, "allowAny", !1), this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : pe(e, rt).map((e) => e.matcher)), this.unbalancedBracketScopes = n.flatMap((e) => pe(e, rt).map((e) => e.matcher));
|
|
1361
1361
|
}
|
|
1362
1362
|
get matchesAlways() {
|
|
1363
1363
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1371,8 +1371,8 @@ var E = class e {
|
|
|
1371
1371
|
return this.allowAny;
|
|
1372
1372
|
}
|
|
1373
1373
|
}, lt = class {
|
|
1374
|
-
constructor(
|
|
1375
|
-
|
|
1374
|
+
constructor(e, n, r, i) {
|
|
1375
|
+
t(this, "_emitBinaryTokens", void 0), t(this, "_lineText", void 0), t(this, "_tokens", void 0), t(this, "_binaryTokens", void 0), t(this, "_lastTokenEndIndex", void 0), t(this, "_tokenTypeOverrides", void 0), this.balancedBracketSelectors = i, this._emitBinaryTokens = e, this._tokenTypeOverrides = r, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
produce(e, t) {
|
|
1378
1378
|
this.produceFromScopes(e.contentNameScopesList, t);
|
|
@@ -1413,8 +1413,8 @@ var E = class e {
|
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}
|
|
1415
1415
|
}, ut = class {
|
|
1416
|
-
constructor(
|
|
1417
|
-
|
|
1416
|
+
constructor(e, n) {
|
|
1417
|
+
t(this, "_grammars", /* @__PURE__ */ new Map()), t(this, "_rawGrammars", /* @__PURE__ */ new Map()), t(this, "_injectionGrammars", /* @__PURE__ */ new Map()), t(this, "_theme", void 0), this._onigLib = n, this._theme = e;
|
|
1418
1418
|
}
|
|
1419
1419
|
dispose() {
|
|
1420
1420
|
for (let e of this._grammars.values()) e.dispose();
|
|
@@ -1449,8 +1449,8 @@ var E = class e {
|
|
|
1449
1449
|
return this._grammars.get(e);
|
|
1450
1450
|
}
|
|
1451
1451
|
}, dt = class {
|
|
1452
|
-
constructor(
|
|
1453
|
-
|
|
1452
|
+
constructor(e) {
|
|
1453
|
+
t(this, "_options", void 0), t(this, "_syncRegistry", void 0), t(this, "_ensureGrammarCache", void 0), this._options = e, this._syncRegistry = new ut(v.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1454
1454
|
}
|
|
1455
1455
|
dispose() {
|
|
1456
1456
|
this._syncRegistry.dispose();
|
|
@@ -1614,8 +1614,8 @@ function Ct(e, t) {
|
|
|
1614
1614
|
return e;
|
|
1615
1615
|
}
|
|
1616
1616
|
var wt = class extends dt {
|
|
1617
|
-
constructor(
|
|
1618
|
-
super(
|
|
1617
|
+
constructor(e, n, r, i = {}) {
|
|
1618
|
+
super(e), t(this, "_resolver", void 0), t(this, "_themes", void 0), t(this, "_langs", void 0), t(this, "_alias", void 0), t(this, "_resolvedThemes", /* @__PURE__ */ new Map()), t(this, "_resolvedGrammars", /* @__PURE__ */ new Map()), t(this, "_langMap", /* @__PURE__ */ new Map()), t(this, "_langGraph", /* @__PURE__ */ new Map()), t(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap()), t(this, "_loadedThemesCache", null), t(this, "_loadedLanguagesCache", null), this._resolver = e, this._themes = n, this._langs = r, this._alias = i, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
|
|
1619
1619
|
}
|
|
1620
1620
|
getTheme(e) {
|
|
1621
1621
|
return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
|
|
@@ -1680,10 +1680,10 @@ var wt = class extends dt {
|
|
|
1680
1680
|
if (n) for (let e of n) this._langGraph.set(e, this._langMap.get(e));
|
|
1681
1681
|
}
|
|
1682
1682
|
}, Tt = class {
|
|
1683
|
-
constructor(
|
|
1684
|
-
|
|
1685
|
-
createOnigScanner: (
|
|
1686
|
-
createOnigString: (
|
|
1683
|
+
constructor(e, n) {
|
|
1684
|
+
t(this, "_langs", /* @__PURE__ */ new Map()), t(this, "_scopeToLang", /* @__PURE__ */ new Map()), t(this, "_injections", /* @__PURE__ */ new Map()), t(this, "_onigLib", void 0), this._onigLib = {
|
|
1685
|
+
createOnigScanner: (t) => e.createScanner(t),
|
|
1686
|
+
createOnigString: (t) => e.createString(t)
|
|
1687
1687
|
}, n.forEach((e) => this.addLanguage(e));
|
|
1688
1688
|
}
|
|
1689
1689
|
get onigLib() {
|
|
@@ -1808,7 +1808,7 @@ function F(e, t) {
|
|
|
1808
1808
|
function I(e) {
|
|
1809
1809
|
return kt.get(e);
|
|
1810
1810
|
}
|
|
1811
|
-
var At = class
|
|
1811
|
+
var At = class e {
|
|
1812
1812
|
get themes() {
|
|
1813
1813
|
return Object.keys(this._stacks);
|
|
1814
1814
|
}
|
|
@@ -1818,16 +1818,16 @@ var At = class t {
|
|
|
1818
1818
|
get _stack() {
|
|
1819
1819
|
return this._stacks[this.theme];
|
|
1820
1820
|
}
|
|
1821
|
-
static initial(
|
|
1822
|
-
return new
|
|
1821
|
+
static initial(t, n) {
|
|
1822
|
+
return new e(Object.fromEntries(pt(n).map((e) => [e, ft])), t);
|
|
1823
1823
|
}
|
|
1824
|
-
constructor(...
|
|
1825
|
-
if (
|
|
1826
|
-
let [
|
|
1827
|
-
this.lang = n, this._stacks =
|
|
1824
|
+
constructor(...e) {
|
|
1825
|
+
if (t(this, "_stacks", {}), t(this, "lang", void 0), e.length === 2) {
|
|
1826
|
+
let [t, n] = e;
|
|
1827
|
+
this.lang = n, this._stacks = t;
|
|
1828
1828
|
} else {
|
|
1829
|
-
let [
|
|
1830
|
-
this.lang = n, this._stacks = { [r]:
|
|
1829
|
+
let [t, n, r] = e;
|
|
1830
|
+
this.lang = n, this._stacks = { [r]: t };
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
getInternalStack(e = this.theme) {
|
|
@@ -2093,7 +2093,7 @@ var R = class {
|
|
|
2093
2093
|
R.prototype.attribute = "", R.prototype.booleanish = !1, R.prototype.boolean = !1, R.prototype.commaOrSpaceSeparated = !1, R.prototype.commaSeparated = !1, R.prototype.defined = !1, R.prototype.mustUseProperty = !1, R.prototype.number = !1, R.prototype.overloadedBoolean = !1, R.prototype.property = "", R.prototype.spaceSeparated = !1, R.prototype.space = void 0;
|
|
2094
2094
|
//#endregion
|
|
2095
2095
|
//#region node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js
|
|
2096
|
-
var Yt = /* @__PURE__ */
|
|
2096
|
+
var Yt = /* @__PURE__ */ e({
|
|
2097
2097
|
boolean: () => z,
|
|
2098
2098
|
booleanish: () => B,
|
|
2099
2099
|
commaOrSpaceSeparated: () => W,
|