netstar-ai-chat 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -0
- package/dist/ChatPanel/AgentPicker.vue.d.ts +94 -0
- package/dist/ChatPanel/SubAgentNode.vue.d.ts +23 -0
- package/dist/ChatPanel/ToolCallNode.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/SaveModuleDocsRenderer.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/defaultToolRenderers.d.ts +4 -0
- package/dist/ChatPanel/WriteTodosTopPanel.vue.d.ts +20 -0
- package/dist/ChatPanel/index.vue.d.ts +117 -0
- package/dist/CodeBlockNode-CTasgSPs.cjs +1 -0
- package/dist/CodeBlockNode-DuMNoiwD.js +1245 -0
- package/dist/Serializer-CXJ0fE5z.js +249 -0
- package/dist/Serializer-fgUokho9.cjs +1 -0
- package/dist/StreamMarkdown/StreamMarkdown.vue.d.ts +29 -0
- package/dist/StreamMarkdown/components/CodeBlockNode.vue.d.ts +13 -0
- package/dist/StreamMarkdown/components/ThinkNode.vue.d.ts +20 -0
- package/dist/StreamMarkdown/components/copyToClipboard.d.ts +5 -0
- package/dist/StreamMarkdown/type.d.ts +9 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-ConVUPun.cjs +1 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-yxSn8jeO.js +5 -0
- package/dist/_baseClone-D3YkUt7B.cjs +1 -0
- package/dist/_baseClone-M9Eo-ngy.js +228 -0
- package/dist/abap-pyAsOErv.cjs +1 -0
- package/dist/abap-w3onj0rB.js +3 -0
- package/dist/abnfDiagram-VRR7QNED-BZIwESBc.js +89 -0
- package/dist/abnfDiagram-VRR7QNED-CbMhyWtU.cjs +1 -0
- package/dist/actionscript-3-BOqnK-sH.js +3 -0
- package/dist/actionscript-3-CzNUYu3T.cjs +1 -0
- package/dist/ada-BLw2DNCr.cjs +1 -0
- package/dist/ada-ZOYhNhP6.js +3 -0
- package/dist/andromeeda-BK7KK1TI.cjs +1 -0
- package/dist/andromeeda-D6zxFn77.js +4 -0
- package/dist/angular-html-CM15CIR-.js +16 -0
- package/dist/angular-html-CtqN3w77.cjs +1 -0
- package/dist/angular-ts-BZbyXOyX.cjs +1 -0
- package/dist/angular-ts-D_WjBMhi.js +18 -0
- package/dist/apache-DdGV2gIX.cjs +1 -0
- package/dist/apache-rcSYX-LI.js +3 -0
- package/dist/apex-BQsSAFNB.cjs +1 -0
- package/dist/apex-C-w0vHe4.js +3 -0
- package/dist/apl-CFUDRIMH.cjs +1 -0
- package/dist/apl-DEY32kA8.js +16 -0
- package/dist/applescript-BAJgLR5K.cjs +1 -0
- package/dist/applescript-BCUU8TOE.js +3 -0
- package/dist/ara-B4SncdQz.js +3 -0
- package/dist/ara-DSlRoA1z.cjs +1 -0
- package/dist/arc-BxwVc1OP.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-BePVesqR.cjs +1 -0
- package/dist/architecture-TIHT7OUA-CdCN4XW2.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-DhyGcAG9.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-pJBnYWx2.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/asciidoc-CSnR5M0p.cjs +1 -0
- package/dist/asciidoc-DZyZo06c.js +3 -0
- package/dist/asm-BmB_X3A_.js +3 -0
- package/dist/asm-zib-OSTh.cjs +1 -0
- package/dist/astro-BApYg9cK.cjs +1 -0
- package/dist/astro-Bk1s2QoB.js +16 -0
- package/dist/aurora-x-BF78MGx3.cjs +1 -0
- package/dist/aurora-x-Tc1Eqrl5.js +4 -0
- package/dist/awk-BYQNbw8p.cjs +1 -0
- package/dist/awk-C3bvZdNY.js +3 -0
- package/dist/ayu-dark-ClxspuCB.cjs +1 -0
- package/dist/ayu-dark-cVPWKu1C.js +4 -0
- package/dist/ballerina-BPk8Fg7E.cjs +1 -0
- package/dist/ballerina-Bp92mgFe.js +3 -0
- package/dist/bat-7FZ8F5O4.cjs +1 -0
- package/dist/bat-CXbg7Xg3.js +3 -0
- package/dist/beancount-DCtU0rYp.cjs +1 -0
- package/dist/beancount-DmmCjryt.js +3 -0
- package/dist/berry-D8ITycFg.cjs +1 -0
- package/dist/berry-DiFcr1nX.js +3 -0
- package/dist/bibtex-CmGvn0fl.js +3 -0
- package/dist/bibtex-YVvMHIoL.cjs +1 -0
- package/dist/bicep-DDIPSBse.cjs +1 -0
- package/dist/bicep-zPtP3CSU.js +3 -0
- package/dist/blade-aYJa4e4Z.js +18 -0
- package/dist/blade-s0X0QSRt.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BXsjcvEy.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-DUfdZ59z.js +3160 -0
- package/dist/bsl-2e5sJ_f2.js +5 -0
- package/dist/bsl-Boo9Znnk.cjs +1 -0
- package/dist/c-CtSegEhe.cjs +1 -0
- package/dist/c-DOHa0HhF.js +5 -0
- package/dist/c4Diagram-LMCZKHZV-CupZJT9_.cjs +10 -0
- package/dist/c4Diagram-LMCZKHZV-XVBQkiBu.js +2962 -0
- package/dist/cadence-BdOzwJ16.cjs +1 -0
- package/dist/cadence-DKZt82SN.js +3 -0
- package/dist/cairo-D7N4wIlJ.js +5 -0
- package/dist/cairo-yxjWoJOX.cjs +1 -0
- package/dist/catppuccin-frappe-BgIo7C1L.js +4 -0
- package/dist/catppuccin-frappe-lMRSGXsq.cjs +1 -0
- package/dist/catppuccin-latte-DACltl2d.js +4 -0
- package/dist/catppuccin-latte-DvhQrqwX.cjs +1 -0
- package/dist/catppuccin-macchiato-D_87UlHU.js +4 -0
- package/dist/catppuccin-macchiato-SYJuf56p.cjs +1 -0
- package/dist/catppuccin-mocha-btILUzM9.js +4 -0
- package/dist/catppuccin-mocha-nV-o7gzF.cjs +1 -0
- package/dist/channel-B_58s50a.js +5 -0
- package/dist/channel-CftZUi3r.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
- package/dist/chunk-32BRIVSS-DUxAI9Oa.cjs +1 -0
- package/dist/chunk-32BRIVSS-O-rQI_k2.js +61 -0
- package/dist/chunk-52WLFC77-B-_tvcsL.js +590 -0
- package/dist/chunk-52WLFC77-SZUA2rNI.cjs +10 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
- package/dist/chunk-7BUUIJ7U-B018BbRy.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-D1CB1CXU.js +67 -0
- package/dist/chunk-C7G6YPKG-HH-he6SO.cjs +1 -0
- package/dist/chunk-EX3LRPZG-D0TH5Vrj.js +2046 -0
- package/dist/chunk-EX3LRPZG-DgwSD7VR.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-CCaqRbxb.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-c8mJHkIt.js +57 -0
- package/dist/chunk-HOUHSVGY-CqEBw5yz.cjs +1 -0
- package/dist/chunk-HOUHSVGY-D13Pk7nF.js +277 -0
- package/dist/chunk-ICXQ74PX-Bq9mKzdP.js +1369 -0
- package/dist/chunk-ICXQ74PX-TcRXMN1n.cjs +2 -0
- package/dist/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-CNjhxe7N.cjs +161 -0
- package/dist/chunk-KEIR6QF5-yJg1YNda.js +21383 -0
- package/dist/chunk-MOJQB5TN-BOC0rggK.js +490 -0
- package/dist/chunk-MOJQB5TN-CSjPQYln.cjs +88 -0
- package/dist/chunk-OGEWGWER-BYjMhJGb.js +32 -0
- package/dist/chunk-OGEWGWER-Bzj7N4Ii.cjs +1 -0
- package/dist/chunk-PUDLZKDR-D18W-L-L.js +4142 -0
- package/dist/chunk-PUDLZKDR-JbFT5hiR.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-DATOcgxL.cjs +70 -0
- package/dist/chunk-Q4XR5HBZ-DwgV8nWo.js +1628 -0
- package/dist/chunk-RYQCIY6F-Budeukwp.cjs +1 -0
- package/dist/chunk-RYQCIY6F-CTIaeOkt.js +240 -0
- package/dist/chunk-V7JOEXUC-BYc3FcMK.js +3357 -0
- package/dist/chunk-V7JOEXUC-Wa1_qMKV.cjs +206 -0
- package/dist/chunk-VAUOI2AC-3AGHwQI8.cjs +1 -0
- package/dist/chunk-VAUOI2AC-D4COVrqB.js +10 -0
- package/dist/chunk-VR4S4FIN-BBKjPbG_.js +26 -0
- package/dist/chunk-VR4S4FIN-DXfCPsY8.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DNtzmu_Z.cjs +127 -0
- package/dist/chunk-WYO6CB5R-DVUXWnvM.js +3736 -0
- package/dist/chunk-XXDRQBXY-DWq_A1Wb.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CYGK4FNM.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-Ch-mMgcC.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-DLqc5SfA.js +1146 -0
- package/dist/clarity-DnwH_oaR.js +3 -0
- package/dist/clarity-mvj5EDZ5.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BPcmQYGc.js +30 -0
- package/dist/classDiagram-OUVF2IWQ-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-C_A6LIqp.js +30 -0
- package/dist/clojure-C64DxiGB.cjs +1 -0
- package/dist/clojure-DQex2ThW.js +3 -0
- package/dist/cmake-BvNQeWu_.cjs +1 -0
- package/dist/cmake-C4lGF15i.js +3 -0
- package/dist/cobol-B6D1w50i.cjs +1 -0
- package/dist/cobol-f_8vDiHm.js +10 -0
- package/dist/codeowners-a_Z0p9_y.js +3 -0
- package/dist/codeowners-jShtr2Jw.cjs +1 -0
- package/dist/codeql-B0nK9JGf.js +3 -0
- package/dist/codeql-svt7Eror.cjs +1 -0
- package/dist/coffee-CIzsduL9.cjs +1 -0
- package/dist/coffee-D2SRpDoy.js +5 -0
- package/dist/common-lisp-BX8N9UvD.js +3 -0
- package/dist/common-lisp-Dd1YOGnK.cjs +1 -0
- package/dist/coq-B9dKr70z.cjs +1 -0
- package/dist/coq-CvkpvpO8.js +3 -0
- package/dist/cose-bilkent-JH36ORCC-DpRqLdKD.js +2251 -0
- package/dist/cose-bilkent-JH36ORCC-J0CMLAR2.cjs +1 -0
- package/dist/cpp-9IaFKtqm.cjs +1 -0
- package/dist/cpp-BWBwL8H2.js +19 -0
- package/dist/crystal-Bu5wFOgG.cjs +1 -0
- package/dist/crystal-DZ0RRcQB.js +18 -0
- package/dist/csharp-BSn8IIds.js +3 -0
- package/dist/csharp-DL064tVH.cjs +1 -0
- package/dist/css-CARKKeVZ.js +5 -0
- package/dist/css-Dedc30a-.cjs +1 -0
- package/dist/csv-CyUbk12o.js +3 -0
- package/dist/csv-yb5ne98b.cjs +1 -0
- package/dist/cue-BMD_ZKqV.js +3 -0
- package/dist/cue-BsqD5mfq.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-D56X6uF-.js +3 -0
- package/dist/cynefin-VYW2F7L2-DfMKgfBn.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-Ccm1ka2e.cjs +62 -0
- package/dist/cynefinDiagram-TSTJHNR4-LkTzYNHk.js +349 -0
- package/dist/cypher-CmLM-pVb.cjs +1 -0
- package/dist/cypher-MBxXk8fI.js +3 -0
- package/dist/cytoscape.esm-BJfLlyzE.cjs +321 -0
- package/dist/cytoscape.esm-CjrrPC2e.js +18151 -0
- package/dist/d-B1zD62h2.cjs +1 -0
- package/dist/d-Dr6f0t8l.js +3 -0
- package/dist/d2_markstream-vue-C462TwwW.js +5 -0
- package/dist/d2_markstream-vue-hk4WzRHI.cjs +1 -0
- package/dist/dagre-Cdkj1zk3.js +1603 -0
- package/dist/dagre-RL-7--pi.cjs +1 -0
- package/dist/dagre-VKFMJZFB-BTuSjqsN.js +326 -0
- package/dist/dagre-VKFMJZFB-D-LL1taY.cjs +4 -0
- package/dist/dark-plus-BiFR5lqb.js +4 -0
- package/dist/dark-plus-g9uFu8Uo.cjs +1 -0
- package/dist/dart-B-IpsYek.cjs +1 -0
- package/dist/dart-BKVVcZnx.js +3 -0
- package/dist/dax-DGyoV51j.cjs +1 -0
- package/dist/dax-julDJwHn.js +3 -0
- package/dist/defaultLocale-aSMWOJHq.js +201 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/desktop-C7pIXmgL.cjs +1 -0
- package/dist/desktop-DN7gePkB.js +3 -0
- package/dist/diagram-FQU43EPY-DXRLbyr1.cjs +3 -0
- package/dist/diagram-FQU43EPY-Nd_0dBIp.js +432 -0
- package/dist/diagram-G47NLZAW-C6QidYrt.cjs +24 -0
- package/dist/diagram-G47NLZAW-DsbgcrAn.js +525 -0
- package/dist/diagram-NH7WQ7WH-BIir8UdD.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-LBvy80o5.js +134 -0
- package/dist/diagram-OA4YK3LP-B6zIeHZO.cjs +30 -0
- package/dist/diagram-OA4YK3LP-wIkZDLSU.js +300 -0
- package/dist/diagram-WEI45ONY-DoJT44KW.cjs +41 -0
- package/dist/diagram-WEI45ONY-DuODSE5u.js +214 -0
- package/dist/diff-Pd8fJfZO.cjs +1 -0
- package/dist/diff-jiFCwOef.js +3 -0
- package/dist/dist-BD0EaJeM.js +42 -0
- package/dist/dist-BPaCZ1IA.cjs +3 -0
- package/dist/dist-BtUTYFnJ.js +6360 -0
- package/dist/dist-BxWvDA4U.js +59 -0
- package/dist/dist-CCXt4qM3.cjs +8 -0
- package/dist/dist-CS9eMk17.js +1588 -0
- package/dist/dist-Cu0Z5KOd.cjs +12 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/docker-DMpUQ2UE.js +3 -0
- package/dist/docker-OqFhd4tF.cjs +1 -0
- package/dist/dotenv-BNXs3SVk.js +3 -0
- package/dist/dotenv-skQA6mID.cjs +1 -0
- package/dist/dracula-B9CfY-AT.cjs +1 -0
- package/dist/dracula-DiGCm6b4.js +4 -0
- package/dist/dracula-soft-C5LEeGj9.js +4 -0
- package/dist/dracula-soft-IAqLIxBv.cjs +1 -0
- package/dist/dream-maker-DMoKJVoA.js +3 -0
- package/dist/dream-maker-Kuay-eJE.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-BPnqNNpq.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BVWfIZk7.cjs +1 -0
- package/dist/edge-DPKc6QBW.cjs +1 -0
- package/dist/edge-DewrpuZI.js +12 -0
- package/dist/elixir-BHncl6yR.js +5 -0
- package/dist/elixir-Bz8PD4t1.cjs +1 -0
- package/dist/elm-DFucj7BB.cjs +1 -0
- package/dist/elm-DQTVghsR.js +5 -0
- package/dist/emacs-lisp-BLYG10aJ.js +3 -0
- package/dist/emacs-lisp-DjdBmCDP.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-BDhFo6C9.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-DT6IAJLm.js +1727 -0
- package/dist/erb-BCBUKD2W.js +10 -0
- package/dist/erb-BrUkDVI_.cjs +1 -0
- package/dist/erlang-Dk9Hm-lN.cjs +1 -0
- package/dist/erlang-Hh_mGaXF.js +3 -0
- package/dist/eventmodeling-45OFAUF4-9NJTUpfs.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DhmcBUQs.js +3 -0
- package/dist/everforest-dark-B8U5Kz_2.cjs +1 -0
- package/dist/everforest-dark-DPbo4JN4.js +4 -0
- package/dist/everforest-light-3-FCa2iD.cjs +1 -0
- package/dist/everforest-light-E_X_ZD6H.js +4 -0
- package/dist/exports-C67Wizt6.js +16990 -0
- package/dist/exports-C8Eu-cBn.cjs +261 -0
- package/dist/fennel-F2TJW9Cm.js +3 -0
- package/dist/fennel-RU1EYi0I.cjs +1 -0
- package/dist/find-8kzfNl8Q.js +107 -0
- package/dist/find-D49DDMOn.cjs +1 -0
- package/dist/fish--5Qbt4_-.cjs +1 -0
- package/dist/fish-Cl8O7-1O.js +3 -0
- package/dist/flowDiagram-23GEKE2U-BIAXSHCZ.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-FteV-tpU.js +17 -0
- package/dist/fluent-B0YyYoEC.js +3 -0
- package/dist/fluent-CqQ_wVqT.cjs +1 -0
- package/dist/fortran-fixed-form-BPVXUvGc.cjs +1 -0
- package/dist/fortran-fixed-form-Cxg1zLtO.js +5 -0
- package/dist/fortran-free-form-f48WwHdi.js +3 -0
- package/dist/fortran-free-form-wAUw7GO7.cjs +1 -0
- package/dist/fsharp-D4kfoNJ7.js +5 -0
- package/dist/fsharp-Dkh04On7.cjs +1 -0
- package/dist/ganttDiagram-NO4QXBWP-B8AFbqrz.js +3084 -0
- package/dist/ganttDiagram-NO4QXBWP-iuUxsjHH.cjs +292 -0
- package/dist/gdresource-C3LE_wel.js +10 -0
- package/dist/gdresource-DOgNDMAP.cjs +1 -0
- package/dist/gdscript-697ItOg3.js +3 -0
- package/dist/gdscript-AA2UfFO_.cjs +1 -0
- package/dist/gdshader-BahZb96R.js +3 -0
- package/dist/gdshader-Bf5fzism.cjs +1 -0
- package/dist/genie-DaIfgQYl.js +3 -0
- package/dist/genie-IAbcuR8x.cjs +1 -0
- package/dist/gherkin-0dxzekuL.js +3 -0
- package/dist/gherkin-BOoUZ55R.cjs +1 -0
- package/dist/git-commit-CQ35rNAw.js +5 -0
- package/dist/git-commit-CoIFbnBM.cjs +1 -0
- package/dist/git-rebase-BUotlrNG.js +5 -0
- package/dist/git-rebase-bioQjlhA.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DQ-Mge2t.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DuFCGfar.js +3 -0
- package/dist/gitGraphDiagram-IHSO6WYX-CpjxCJlh.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-TXisRU_i.cjs +106 -0
- package/dist/github-dark-BVSmXPiH.js +4 -0
- package/dist/github-dark-default-D_WiUS3j.cjs +1 -0
- package/dist/github-dark-default-VbvJ-ilw.js +4 -0
- package/dist/github-dark-dimmed-BVZ6NmlH.js +4 -0
- package/dist/github-dark-dimmed-CF-d-yzu.cjs +1 -0
- package/dist/github-dark-high-contrast-B28XrSlN.cjs +1 -0
- package/dist/github-dark-high-contrast-Cu_F5fce.js +4 -0
- package/dist/github-dark-lSLm2DGc.cjs +1 -0
- package/dist/github-light-5VJ9LmmZ.cjs +1 -0
- package/dist/github-light-Dtf7jHNG.js +4 -0
- package/dist/github-light-default-CfhvIofU.cjs +1 -0
- package/dist/github-light-default-ChKQp2aO.js +4 -0
- package/dist/github-light-high-contrast-2daONXzf.cjs +1 -0
- package/dist/github-light-high-contrast-CfdjYrkI.js +4 -0
- package/dist/gleam-DyHWdg1e.js +3 -0
- package/dist/gleam-uW2PZxh0.cjs +1 -0
- package/dist/glimmer-js-Ciof3QL9.js +14 -0
- package/dist/glimmer-js-DiIpfAHi.cjs +1 -0
- package/dist/glimmer-ts-BGK6t0VF.js +14 -0
- package/dist/glimmer-ts-D7kaiXm8.cjs +1 -0
- package/dist/glsl-BK7MJn4u.js +6 -0
- package/dist/glsl-QqXZ78Kg.cjs +1 -0
- package/dist/gnuplot-5XuWKCad.js +3 -0
- package/dist/gnuplot-CFHC6IzT.cjs +1 -0
- package/dist/go-Bv7fxmN-.cjs +1 -0
- package/dist/go-C_wi3fjb.js +3 -0
- package/dist/graphlib-B0pkl27u.cjs +1 -0
- package/dist/graphlib-DjREGp7-.js +340 -0
- package/dist/graphql--1t261Yk.js +15 -0
- package/dist/graphql-wVo4PHpT.cjs +1 -0
- package/dist/groovy-AC3I0XgS.cjs +1 -0
- package/dist/groovy-BmEdfp0z.js +3 -0
- package/dist/hack-C4FKqOSK.cjs +1 -0
- package/dist/hack-DK3t1k__.js +10 -0
- package/dist/haml-B3VLhRsZ.js +11 -0
- package/dist/haml-CQ-lzphw.cjs +1 -0
- package/dist/handlebars-POWurPLW.cjs +1 -0
- package/dist/handlebars-_qNUzqAO.js +14 -0
- package/dist/haskell-BVQlrU40.cjs +1 -0
- package/dist/haskell-CZshrN4v.js +3 -0
- package/dist/haxe-CIeDdEBx.js +3 -0
- package/dist/haxe-CidPNuKh.cjs +1 -0
- package/dist/hcl-BrEqO7Sq.cjs +1 -0
- package/dist/hcl-DRqyh8D_.js +3 -0
- package/dist/hjson-CVbBR8Ay.cjs +1 -0
- package/dist/hjson-D-HSEzgv.js +3 -0
- package/dist/hlsl-DQCtPnLa.js +3 -0
- package/dist/hlsl-ze_s5DJn.cjs +1 -0
- package/dist/houston-BscSB6JY.js +4 -0
- package/dist/houston-BtgI9cLW.cjs +1 -0
- package/dist/html-D_OBWe7R.js +11 -0
- package/dist/html-derivative-Dq3Sh7mm.cjs +1 -0
- package/dist/html-derivative-XT6VOD81.js +6 -0
- package/dist/html-mo6ldvys.cjs +1 -0
- package/dist/http-C2taPV9U.cjs +1 -0
- package/dist/http-CdMPSPdd.js +14 -0
- package/dist/hxml-CHo8HAT-.js +5 -0
- package/dist/hxml-Dkp_OvfK.cjs +1 -0
- package/dist/hy-DB6h75gj.js +3 -0
- package/dist/hy-JhxQ7Sq3.cjs +1 -0
- package/dist/imba-BMaY4ENg.cjs +1 -0
- package/dist/imba-B_ww4ZTP.js +5 -0
- package/dist/index.cjs +352 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +25941 -0
- package/dist/index2-Db29305J.cjs +1 -0
- package/dist/index2-QpsswhC2.js +129 -0
- package/dist/index3-B9UVcR3x.cjs +1 -0
- package/dist/index3-CSFQ35FU.js +125 -0
- package/dist/index4-BjmzmXkZ.cjs +2 -0
- package/dist/index4-CzKbdrmD.js +1166 -0
- package/dist/index5-CjNnYoXJ.js +688 -0
- package/dist/index5-CvMqoYtf.cjs +1 -0
- package/dist/index6-BUkE1lni.js +468 -0
- package/dist/index6-DwZeyaka.cjs +1 -0
- package/dist/index7-CCL1p1Eh.cjs +1 -0
- package/dist/index7-D-76uUB1.js +7 -0
- package/dist/info-DKCQHKI2-CVAfu3m_.cjs +1 -0
- package/dist/info-DKCQHKI2-X1UEZeu5.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-BQ-pmobf.js +20 -0
- package/dist/infoDiagram-FWYZ7A6U-BTUkuUAu.cjs +2 -0
- package/dist/infographic_markstream-vue-DH5naZYC.js +5 -0
- package/dist/infographic_markstream-vue-DMdeL6IU.cjs +1 -0
- package/dist/ini-1ngrKrS7.js +3 -0
- package/dist/ini-DrnN5Bei.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Co4dhKfe.js +15 -0
- package/dist/isEmpty-9fTBY8_5.js +929 -0
- package/dist/isEmpty-DaIHfoaK.cjs +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DAFpMtyi.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-Dldh7OZP.js +719 -0
- package/dist/java-CCeor0rw.js +5 -0
- package/dist/java-DtOeEWAB.cjs +1 -0
- package/dist/javascript-1Zv2m4qT.cjs +1 -0
- package/dist/javascript-Bx27vxbw.js +5 -0
- package/dist/jinja-Bo4OY5rp.cjs +1 -0
- package/dist/jinja-DUV-rjqE.js +5 -0
- package/dist/jison-BHS26PqW.cjs +1 -0
- package/dist/jison-lY_a1uD8.js +5 -0
- package/dist/journeyDiagram-5HDEW3XC-BoJvuLAJ.cjs +139 -0
- package/dist/journeyDiagram-5HDEW3XC-DWc-P146.js +884 -0
- package/dist/json-As0Z6gXq.js +5 -0
- package/dist/json-B31_sYlO.cjs +1 -0
- package/dist/json5-B0AZLeeE.cjs +1 -0
- package/dist/json5-CkR44bl5.js +3 -0
- package/dist/jsonc-BhRQOhO0.js +3 -0
- package/dist/jsonc-zSGaK820.cjs +1 -0
- package/dist/jsonl-BWEDeKY6.js +3 -0
- package/dist/jsonl-mSW-3clM.cjs +1 -0
- package/dist/jsonnet-D8xj-VWe.js +3 -0
- package/dist/jsonnet-xnK8ISOr.cjs +1 -0
- package/dist/jssm-BqqNlOWn.js +3 -0
- package/dist/jssm-Dc68VWf8.cjs +1 -0
- package/dist/jsx-CHdPoawR.cjs +1 -0
- package/dist/jsx-DcWc-BUA.js +5 -0
- package/dist/julia-A2t8dw8p.cjs +1 -0
- package/dist/julia-JllIpLrt.js +16 -0
- package/dist/kanagawa-dragon-C_H008Ji.cjs +1 -0
- package/dist/kanagawa-dragon-CzUH0vOV.js +4 -0
- package/dist/kanagawa-lotus-CWHrabz1.js +4 -0
- package/dist/kanagawa-lotus-DuABjfU_.cjs +1 -0
- package/dist/kanagawa-wave-B27tzldJ.js +4 -0
- package/dist/kanagawa-wave-D93njvJc.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-4QNogezI.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-CSpYoE2w.cjs +89 -0
- package/dist/katex-mzuGQl-k.cjs +257 -0
- package/dist/katex-uQfgtQZ-.js +21962 -0
- package/dist/kotlin-CkALtvL4.js +3 -0
- package/dist/kotlin-x64ufdmW.cjs +1 -0
- package/dist/kusto-Cc3N9caa.js +3 -0
- package/dist/kusto-YvjJ-Hwr.cjs +1 -0
- package/dist/languageIconExtended-5rP5TRI7.cjs +116 -0
- package/dist/languageIconExtended-BKBNbfml.js +37 -0
- package/dist/laserwave-Q0rnzsLB.js +4 -0
- package/dist/laserwave-TFMEGQQo.cjs +1 -0
- package/dist/latex-B4owy79D.js +5 -0
- package/dist/latex-DPkqFaSl.cjs +1 -0
- package/dist/lean-CYVERefS.cjs +1 -0
- package/dist/lean-Dg5VYRtH.js +3 -0
- package/dist/less-BW5l_msz.js +3 -0
- package/dist/less-DKjtszmK.cjs +1 -0
- package/dist/light-plus-D1TTTooO.js +4 -0
- package/dist/light-plus-lbGw82Zw.cjs +1 -0
- package/dist/line-QnKkzT3y.js +34 -0
- package/dist/line-umMVu17Q.cjs +1 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/linear-D5gAG4Dc.js +289 -0
- package/dist/liquid-DOhZfMRk.cjs +1 -0
- package/dist/liquid-DbDSSGUn.js +14 -0
- package/dist/log-C02Mufkv.js +3 -0
- package/dist/log-Dn7sU6Qz.cjs +1 -0
- package/dist/logo-CCpvPvYW.cjs +1 -0
- package/dist/logo-CESV6ppB.js +3 -0
- package/dist/lua-BWV9zmiO.js +6 -0
- package/dist/lua-BZylxbuX.cjs +1 -0
- package/dist/luau-CO1iqemL.js +3 -0
- package/dist/luau-D5ttg_a3.cjs +1 -0
- package/dist/make-BorM9pEX.js +3 -0
- package/dist/make-OoJyrwI_.cjs +1 -0
- package/dist/map-CnWYCApZ.cjs +1 -0
- package/dist/map-DmTyBWxT.js +16 -0
- package/dist/markdown-Dehhcpca.cjs +1 -0
- package/dist/markdown-bvZ2LFQ7.js +3 -0
- package/dist/marko-9qP7O73P.js +14 -0
- package/dist/marko-CkDNu79_.cjs +1 -0
- package/dist/material-theme-BkOXIsau.cjs +1 -0
- package/dist/material-theme-RBxZ7zcK.js +4 -0
- package/dist/material-theme-darker-CDq_a3lh.cjs +1 -0
- package/dist/material-theme-darker-CJJd5EpQ.js +4 -0
- package/dist/material-theme-lighter-0ylr_FPD.js +4 -0
- package/dist/material-theme-lighter-CSQ2VYal.cjs +1 -0
- package/dist/material-theme-ocean-BlU8W8uQ.js +4 -0
- package/dist/material-theme-ocean-kObtq4AQ.cjs +1 -0
- package/dist/material-theme-palenight-D1I1vvpR.cjs +1 -0
- package/dist/material-theme-palenight-Di4FHq0q.js +4 -0
- package/dist/matlab-CL6DKGr6.cjs +1 -0
- package/dist/matlab-CWaaTDe1.js +3 -0
- package/dist/mdc-D8ytkkcj.js +12 -0
- package/dist/mdc-DixMyBlq.cjs +1 -0
- package/dist/mdx-BYvRDPL7.cjs +1 -0
- package/dist/mdx-CwEa7e3y.js +3 -0
- package/dist/mermaid-CX3dK12k.cjs +1 -0
- package/dist/mermaid-Z3pEhdr4.js +3 -0
- package/dist/mermaid-parser.core-Bhhg_EMD.js +638 -0
- package/dist/mermaid-parser.core-C0weIoPn.cjs +6 -0
- package/dist/mermaid.core-CbBmSLjg.js +817 -0
- package/dist/mermaid.core-CsEkQu6v.cjs +10 -0
- package/dist/mhchem-CGx3NnwF.js +1762 -0
- package/dist/mhchem-DMzgkAws.cjs +1 -0
- package/dist/min-dark-BRRwK1lu.js +4 -0
- package/dist/min-dark-BVfJIgG3.cjs +1 -0
- package/dist/min-light-Bqm_Wy8m.js +4 -0
- package/dist/min-light-CpbVExmt.cjs +1 -0
- package/dist/mindmap-definition-LN4V7U3C-B29e6fR_.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-BUSRrZX0.js +1008 -0
- package/dist/mipsasm-CmvfwuBg.js +3 -0
- package/dist/mipsasm-Dmsj67N7.cjs +1 -0
- package/dist/mojo-CFCIR8gy.cjs +1 -0
- package/dist/mojo-emijrbEC.js +3 -0
- package/dist/monokai-BQ1cZfkR.cjs +1 -0
- package/dist/monokai-KOBwLR5r.js +4 -0
- package/dist/move-BtWg9WSG.js +3 -0
- package/dist/move-DFUk3AJ3.cjs +1 -0
- package/dist/narrat-CE6tJc3S.js +3 -0
- package/dist/narrat-DfhrkvLZ.cjs +1 -0
- package/dist/netstar-ai-chat.css +2 -0
- package/dist/nextflow-D8RM97Up.cjs +1 -0
- package/dist/nextflow-DIQqWNA9.js +3 -0
- package/dist/nginx-8x8qY3Vr.js +5 -0
- package/dist/nginx-DFfEIEnK.cjs +1 -0
- package/dist/night-owl-C0QObreH.cjs +1 -0
- package/dist/night-owl-DS6PHOBH.js +4 -0
- package/dist/nim-BIbchMrJ.cjs +1 -0
- package/dist/nim-nIS1y_GA.js +20 -0
- package/dist/nix-BeOLKLuV.js +3 -0
- package/dist/nix-D5-3ErHy.cjs +1 -0
- package/dist/nord-CA9ic6hU.cjs +1 -0
- package/dist/nord-CqaxQpqw.js +4 -0
- package/dist/nushell-BNdP_dr6.cjs +1 -0
- package/dist/nushell-BSiFk-Bi.js +3 -0
- package/dist/objective-c-BoPltVXU.cjs +1 -0
- package/dist/objective-c-D4ODnIJv.js +3 -0
- package/dist/objective-cpp-BC5VHuf6.cjs +1 -0
- package/dist/objective-cpp-CFzZBsJ8.js +3 -0
- package/dist/ocaml-DjzTWzJR.cjs +1 -0
- package/dist/ocaml-ygyAtqA3.js +3 -0
- package/dist/one-dark-pro-BiLpJ3Ut.cjs +1 -0
- package/dist/one-dark-pro-n87lL4ex.js +4 -0
- package/dist/one-light-BHJM53xo.cjs +1 -0
- package/dist/one-light-DHV5uJWg.js +4 -0
- package/dist/ordinal-95c16pGC.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-CWI1wkgR.js +3 -0
- package/dist/packet-7NZHBO7P-olpQFy19.cjs +1 -0
- package/dist/pascal-BCxfk_0K.cjs +1 -0
- package/dist/pascal-Cp3o03W3.js +3 -0
- package/dist/path-BECm07xX.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-5may-nQh.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-BlS7jv2X.js +94 -0
- package/dist/perl-B32vckzd.cjs +1 -0
- package/dist/perl-Caha11sj.js +16 -0
- package/dist/php-BZdcwfk-.cjs +1 -0
- package/dist/php-Dd_dF-AL.js +18 -0
- package/dist/pie-RZYD4A2V-CyOF19CW.js +3 -0
- package/dist/pie-RZYD4A2V-KV7VmSAP.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-B5uibzAn.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-peGWddZk.cjs +39 -0
- package/dist/plastic-CFgeDarh.cjs +1 -0
- package/dist/plastic-CfcNj0mY.js +4 -0
- package/dist/plsql-ak2Z7rg2.cjs +1 -0
- package/dist/plsql-x7conUc6.js +3 -0
- package/dist/po--CQNV_Eo.js +3 -0
- package/dist/po-DPOakX0_.cjs +1 -0
- package/dist/poimandres-B2kS4VCU.cjs +1 -0
- package/dist/poimandres-CSgoTNSr.js +4 -0
- package/dist/polar-DZoPeUtu.js +3 -0
- package/dist/polar-MGc0OyxL.cjs +1 -0
- package/dist/postcss-BAYQYIpZ.js +3 -0
- package/dist/postcss-DwSR_Nna.cjs +1 -0
- package/dist/powerquery-B9PiNUFU.js +3 -0
- package/dist/powerquery-bShN3jEf.cjs +1 -0
- package/dist/powershell-DGeGpYK6.cjs +1 -0
- package/dist/powershell-DmbTGv4H.js +3 -0
- package/dist/prisma-DcdjiSgR.js +3 -0
- package/dist/prisma-qjGbhxmN.cjs +1 -0
- package/dist/prolog-3Sh8TEBQ.js +3 -0
- package/dist/prolog-DOzeE1gX.cjs +1 -0
- package/dist/proto-BKmbHU2z.js +3 -0
- package/dist/proto-CQtcOaoZ.cjs +1 -0
- package/dist/pug-CQRIElQa.cjs +1 -0
- package/dist/pug-PKxYWb_o.js +12 -0
- package/dist/puppet-CMc7WUL-.js +3 -0
- package/dist/puppet-DXMJeNAQ.cjs +1 -0
- package/dist/purescript-BmHbM-d_.cjs +1 -0
- package/dist/purescript-CJV-ANk0.js +3 -0
- package/dist/python-Dgo3Imqt.js +3 -0
- package/dist/python-y8JZoKTg.cjs +1 -0
- package/dist/qml-DGggscta.cjs +1 -0
- package/dist/qml-znAETRGB.js +5 -0
- package/dist/qmldir-BSWsNKCW.js +3 -0
- package/dist/qmldir-Wb6QN41x.cjs +1 -0
- package/dist/qss-P1EyCZ52.js +3 -0
- package/dist/qss-b49hd9Kf.cjs +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-0axZxxZT.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-el6K_cdK.js +2001 -0
- package/dist/r-Q1Syx2NF.js +5 -0
- package/dist/r-VgF6jsMr.cjs +1 -0
- package/dist/racket-DIriCx31.cjs +1 -0
- package/dist/racket-DKb_r0U5.js +3 -0
- package/dist/radar-I7S5WNFK-BjTQsjn9.cjs +1 -0
- package/dist/radar-I7S5WNFK-DXOk1lH0.js +3 -0
- package/dist/railroad-3IZDKUUU-BudmQt4z.js +3 -0
- package/dist/railroad-3IZDKUUU-CVKrVFrS.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BEuRVGxN.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-Bs1OWkDS.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-Cih63c2z.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-DN3oF240.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6--hTz8Aio.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6-DbHn_Dfb.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-CCPPrI-t.js +76 -0
- package/dist/railroadDiagram-RFXS5EU6-DI-XxXi4.cjs +1 -0
- package/dist/raku-DM0xz1qH.js +3 -0
- package/dist/raku-aSFsj2VS.cjs +1 -0
- package/dist/razor-ClXepwCg.cjs +1 -0
- package/dist/razor-DoIrK7wH.js +10 -0
- package/dist/red-CuDZBeel.js +4 -0
- package/dist/red-utLotyz8.cjs +1 -0
- package/dist/reg-Bc7EZp_L.js +3 -0
- package/dist/reg-GmnSXO4L.cjs +1 -0
- package/dist/regexp-CjKnir1L.js +5 -0
- package/dist/regexp-CjwGKeJO.cjs +1 -0
- package/dist/rel-DMLolXbX.cjs +1 -0
- package/dist/rel-DT4yPypn.js +3 -0
- package/dist/requirementDiagram-TGXJPOKE-BxnKsGpN.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-FQoCKQHp.js +2223 -0
- package/dist/riscv-9-ahY7jN.js +3 -0
- package/dist/riscv-DWfvSg0U.cjs +1 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rose-pine-BTVbOgGM.cjs +1 -0
- package/dist/rose-pine-Dsg47IX4.js +4 -0
- package/dist/rose-pine-dawn-C49-oxm2.js +4 -0
- package/dist/rose-pine-dawn-y8-MyOw6.cjs +1 -0
- package/dist/rose-pine-moon-BZmq4QbO.cjs +1 -0
- package/dist/rose-pine-moon-D19T_UYY.js +4 -0
- package/dist/rough.esm-B7woRVjF.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/rst-9SsxKThC.cjs +1 -0
- package/dist/rst-Ct-G6CIi.js +22 -0
- package/dist/ruby-CHhXdqUe.js +30 -0
- package/dist/ruby-q98Sa-C-.cjs +1 -0
- package/dist/rust-BbRDDZlI.js +3 -0
- package/dist/rust-DhJ-EsMg.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-1N6666do.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-CRbnmmPK.js +970 -0
- package/dist/sas-DhbnVUXW.cjs +1 -0
- package/dist/sas-nwN47Ppz.js +5 -0
- package/dist/sass-C3mlvlBn.js +3 -0
- package/dist/sass-MDtHeILc.cjs +1 -0
- package/dist/scala-BV3NjK9f.cjs +1 -0
- package/dist/scala-GwvQo9dz.js +3 -0
- package/dist/scheme-C_T6Gr_E.js +3 -0
- package/dist/scheme-DaNTt7Ra.cjs +1 -0
- package/dist/scss-KLMxyv4f.js +6 -0
- package/dist/scss-KgcvXJOI.cjs +1 -0
- package/dist/sdbl-9Nf-vYL_.cjs +1 -0
- package/dist/sdbl-BGVcFmba.js +3 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B0eyTzj-.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-ouUfS-aJ.cjs +162 -0
- package/dist/shaderlab-AMREd5T9.cjs +1 -0
- package/dist/shaderlab-yvRlOGRS.js +5 -0
- package/dist/shellscript-BRXFilKi.cjs +1 -0
- package/dist/shellscript-DsmUQZdg.js +5 -0
- package/dist/shellsession-BtjfrBaH.cjs +1 -0
- package/dist/shellsession-DQ_F9Wr_.js +5 -0
- package/dist/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/slack-dark-BzBaQ0xz.js +4 -0
- package/dist/slack-dark-DDeCEapU.cjs +1 -0
- package/dist/slack-ochin-Cnjuvrsj.js +4 -0
- package/dist/slack-ochin-DLKW_Bxr.cjs +1 -0
- package/dist/smalltalk-BN2TAEzt.js +3 -0
- package/dist/smalltalk-Dfg_7NMl.cjs +1 -0
- package/dist/snazzy-light-CO8ltd4m.js +4 -0
- package/dist/snazzy-light-Cb_pyD6_.cjs +1 -0
- package/dist/solarized-dark-CqgMwhwG.cjs +1 -0
- package/dist/solarized-dark-vcCVwuVC.js +4 -0
- package/dist/solarized-light-BgVA2R62.js +4 -0
- package/dist/solarized-light-U0ItNhXi.cjs +1 -0
- package/dist/solidity-bpqb7ojf.cjs +1 -0
- package/dist/solidity-idpkkykB.js +3 -0
- package/dist/soy-D11BGnGf.cjs +1 -0
- package/dist/soy-D5hACXEU.js +5 -0
- package/dist/sparql-D2f6sVo0.cjs +1 -0
- package/dist/sparql-DvWZ0oTn.js +5 -0
- package/dist/splunk-CC1SfDSs.cjs +1 -0
- package/dist/splunk-W3Nh1Gtf.js +3 -0
- package/dist/sql-BE7gM4sJ.js +5 -0
- package/dist/sql-CAKohXJZ.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DR6txdQ-.js +2142 -0
- package/dist/ssh-config-Dn_5wFSU.cjs +1 -0
- package/dist/ssh-config-lL0vBG-J.js +3 -0
- package/dist/stata-DeV05m63.js +5 -0
- package/dist/stata-ckWyZ9G6.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DaporqgM.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-DrVYkEQ-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-DZ0YarTq.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-iNhJP0se.js +30 -0
- package/dist/stylus-7dQPGNPK.js +3 -0
- package/dist/stylus-CEIbUfUR.cjs +1 -0
- package/dist/svelte-BBzqqTAG.cjs +1 -0
- package/dist/svelte-DuClbIDV.js +14 -0
- package/dist/swift-BfppNwCZ.js +3 -0
- package/dist/swift-Dbq1ciSe.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-BkAqjD-a.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-Cl0MBCBd.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bh7l_29Y.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bs_bljXb.js +31 -0
- package/dist/synthwave-84-CmyDaNXM.js +4 -0
- package/dist/synthwave-84-vhaAnDJD.cjs +1 -0
- package/dist/system-verilog-CBp9ww7I.js +3 -0
- package/dist/system-verilog-DyrRIUre.cjs +1 -0
- package/dist/systemd-CimDnTNX.cjs +1 -0
- package/dist/systemd-oFJVdchd.js +3 -0
- package/dist/talonscript-2QSX5qC5.cjs +1 -0
- package/dist/talonscript-BxIWRwbR.js +3 -0
- package/dist/tasl-Bxh5A0Un.js +3 -0
- package/dist/tasl-DkVK1Vvo.cjs +1 -0
- package/dist/tcl-CNIcTZox.cjs +1 -0
- package/dist/tcl-Yv5TG6Ev.js +3 -0
- package/dist/templ-BNN_ssr9.cjs +1 -0
- package/dist/templ-BxsPIKhr.js +12 -0
- package/dist/terraform-CGGCPjBs.cjs +1 -0
- package/dist/terraform-DLFpHj9I.js +3 -0
- package/dist/tex-DPBa3hMF.cjs +1 -0
- package/dist/tex-DZPZ_tE0.js +5 -0
- package/dist/timeline-definition-FHXFAJF6-Cb_8gFYP.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-FkgzuuoZ.js +1069 -0
- package/dist/tokyo-night-BmmxIDHp.js +4 -0
- package/dist/tokyo-night-DXq-AiCd.cjs +1 -0
- package/dist/toml-CJQRMfJQ.cjs +1 -0
- package/dist/toml-Dm2pJ9O8.js +3 -0
- package/dist/treeView-QDETBFTQ-B_LvJjui.cjs +1 -0
- package/dist/treeView-QDETBFTQ-WaAklEEa.js +3 -0
- package/dist/treemap-6X3UGDF4-BZ8Ptxjo.cjs +1 -0
- package/dist/treemap-6X3UGDF4-TbJH_2rS.js +3 -0
- package/dist/ts-tags-BgTM9Oo9.js +38 -0
- package/dist/ts-tags-aCZsPrDI.cjs +1 -0
- package/dist/tsv-AfvsdcL-.js +3 -0
- package/dist/tsv-CrGD5YUm.cjs +1 -0
- package/dist/tsx-Bx4pCqLJ.js +5 -0
- package/dist/tsx-CqEtpJwc.cjs +1 -0
- package/dist/turtle-CSKPMBVG.js +3 -0
- package/dist/turtle-hKghkgYb.cjs +1 -0
- package/dist/twig-B4TBRIrX.cjs +1 -0
- package/dist/twig-BawUFy9o.js +18 -0
- package/dist/types/agent.d.ts +199 -0
- package/dist/typescript-BPkdvRNZ.js +5 -0
- package/dist/typescript-CjwIFskf.cjs +1 -0
- package/dist/typespec-BTz_JMOP.js +3 -0
- package/dist/typespec-DouelPXK.cjs +1 -0
- package/dist/typst-CE4u0InM.js +3 -0
- package/dist/typst-tWpJew-N.cjs +1 -0
- package/dist/v-BsQ8V6u8.js +3 -0
- package/dist/v-C8s-zsPQ.cjs +1 -0
- package/dist/vala-DM-_wXAy.cjs +1 -0
- package/dist/vala-YJiBqBnL.js +3 -0
- package/dist/vb-Bex0KYEQ.js +3 -0
- package/dist/vb-C9lJKj2z.cjs +1 -0
- package/dist/vennDiagram-L72KCM5P-DRanJu29.cjs +34 -0
- package/dist/vennDiagram-L72KCM5P-DigPDc3M.js +1880 -0
- package/dist/verilog-BGHQfpqH.js +3 -0
- package/dist/verilog-DirKIM6M.cjs +1 -0
- package/dist/vesper-B2O42csv.js +4 -0
- package/dist/vesper-DvpD9Vcf.cjs +1 -0
- package/dist/vhdl-BfmNQSSn.js +3 -0
- package/dist/vhdl-CNJHrCfd.cjs +1 -0
- package/dist/viml-B611mZED.cjs +1 -0
- package/dist/viml-CEz_TDNf.js +3 -0
- package/dist/vitesse-black-DC0QCRHA.js +4 -0
- package/dist/vitesse-black-NsXXFHlu.cjs +1 -0
- package/dist/vitesse-dark-Bv5Yx4Rj.js +4 -0
- package/dist/vitesse-dark-D0Ji9E-l.cjs +1 -0
- package/dist/vitesse-light-1Wh4YtKa.cjs +1 -0
- package/dist/vitesse-light-DYJDYLfk.js +4 -0
- package/dist/vue-DPEJC1L8.js +21 -0
- package/dist/vue-DwTH6YhB.cjs +1 -0
- package/dist/vue-html-CDRAOas6.js +10 -0
- package/dist/vue-html-THpxvSNU.cjs +1 -0
- package/dist/vue-i18n-3JaSdo8e.cjs +5 -0
- package/dist/vue-i18n-C_VfkvBa.js +3020 -0
- package/dist/vyper-9K4scKvw.js +3 -0
- package/dist/vyper-c-_n3oeH.cjs +1 -0
- package/dist/wardley-OPB4EBWU-B1lggTfF.cjs +1 -0
- package/dist/wardley-OPB4EBWU-GZ7F_2Eb.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-DQE0RgUA.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-ZqPLK5FR.cjs +78 -0
- package/dist/wasm-B9xa8Mue.js +4 -0
- package/dist/wasm-BIF3u71S.js +3 -0
- package/dist/wasm-DLWzvvDm.cjs +1 -0
- package/dist/wasm-DcRxl4j_.cjs +1 -0
- package/dist/wenyan-6FBHpKQQ.js +3 -0
- package/dist/wenyan-BQyJDXGi.cjs +1 -0
- package/dist/wgsl-0onuchT4.js +3 -0
- package/dist/wgsl-CZxSYjuU.cjs +1 -0
- package/dist/wikitext-C6FMYqyf.js +3 -0
- package/dist/wikitext-DKu5qD0V.cjs +1 -0
- package/dist/wolfram-B2KhbCjm.cjs +1 -0
- package/dist/wolfram-BuhvgrGp.js +3 -0
- package/dist/xml-B8vy9UOv.js +6 -0
- package/dist/xml-CQVcpGJ_.cjs +1 -0
- package/dist/xsl-B6FtdfnY.cjs +1 -0
- package/dist/xsl-DiaKo18G.js +5 -0
- package/dist/xychartDiagram-FW5EYKEG-9RCD4gzs.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-B_EUKZ5E.js +2102 -0
- package/dist/yaml-B-_wC7KV.cjs +1 -0
- package/dist/yaml-CANEFoqw.js +5 -0
- package/dist/zenscript-BSqTPUXj.cjs +1 -0
- package/dist/zenscript-DpMcKymA.js +3 -0
- package/dist/zig-DBCpOdKI.cjs +1 -0
- package/dist/zig-DWkMyyIZ.js +3 -0
- package/package.json +68 -0
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
import { C as e, D as t, E as n, O as r, T as i, a, b as o, d as s, h as ee, m as c, n as te, r as l, s as u, y as ne } from "./exports-C67Wizt6.js";
|
|
2
|
+
import { Fragment as re, Teleport as ie, computed as d, createBlock as ae, createCommentVNode as f, createElementBlock as p, createElementVNode as m, defineComponent as h, getCurrentInstance as oe, nextTick as se, normalizeClass as g, normalizeStyle as ce, onBeforeUnmount as le, onMounted as ue, onUnmounted as de, openBlock as _, ref as v, renderSlot as fe, toDisplayString as pe, unref as y, vShow as me, watch as b, withDirectives as he, withModifiers as ge } from "vue";
|
|
3
|
+
//#region ../../node_modules/.pnpm/markstream-vue@0.0.10_katex@0.16.47_mermaid@11.16.0_shiki@2.5.0_stream-markdown@0.0.16__933418433302c8f1097502413881496d/node_modules/markstream-vue/dist/CodeBlockNode.js
|
|
4
|
+
var _e = Object.defineProperty, x = Object.defineProperties, S = Object.getOwnPropertyDescriptors, ve = Object.getOwnPropertySymbols, C = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable, T = (e, t, n) => t in e ? _e(e, t, {
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0,
|
|
8
|
+
value: n
|
|
9
|
+
}) : e[t] = n, E = (e, t) => {
|
|
10
|
+
for (var n in t ||= {}) C.call(t, n) && T(e, n, t[n]);
|
|
11
|
+
if (ve) for (var n of ve(t)) w.call(t, n) && T(e, n, t[n]);
|
|
12
|
+
return e;
|
|
13
|
+
}, ye = (e, t) => x(e, S(t)), D = (e, t, n) => new Promise((r, i) => {
|
|
14
|
+
var a = (e) => {
|
|
15
|
+
try {
|
|
16
|
+
s(n.next(e));
|
|
17
|
+
} catch (e) {
|
|
18
|
+
i(e);
|
|
19
|
+
}
|
|
20
|
+
}, o = (e) => {
|
|
21
|
+
try {
|
|
22
|
+
s(n.throw(e));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
i(e);
|
|
25
|
+
}
|
|
26
|
+
}, s = (e) => e.done ? r(e.value) : Promise.resolve(e.value).then(a, o);
|
|
27
|
+
s((n = n.apply(e, t)).next());
|
|
28
|
+
}), be = { class: "markstream-vue" }, O = { class: "html-preview-frame__header" }, k = { class: "html-preview-frame__title" }, A = { class: "html-preview-frame__label" }, j = ["srcdoc"], xe = /* @__PURE__ */ n(/* @__PURE__ */ h({
|
|
29
|
+
__name: "HtmlPreviewFrame",
|
|
30
|
+
props: {
|
|
31
|
+
code: {},
|
|
32
|
+
isDark: { type: Boolean },
|
|
33
|
+
onClose: { type: Function },
|
|
34
|
+
title: {}
|
|
35
|
+
},
|
|
36
|
+
setup(e) {
|
|
37
|
+
let t = e, { t: n } = i(), r = d(() => {
|
|
38
|
+
let e = t.code || "", n = e.trim().toLowerCase();
|
|
39
|
+
return n.startsWith("<!doctype") || n.startsWith("<html") || n.startsWith("<body") ? e : `<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <style>\n html, body {\n margin: 0;\n padding: 0;\n height: 100%;\n background-color: ${t.isDark ? "#020617" : "#ffffff"};\n color: ${t.isDark ? "#e5e7eb" : "#020617"};\n }\n body {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', ui-sans-serif, sans-serif;\n }\n </style>\n </head>\n <body>\n ${e}\n </body>\n</html>`;
|
|
40
|
+
});
|
|
41
|
+
function a(e) {
|
|
42
|
+
var n;
|
|
43
|
+
e.key !== "Escape" && e.key !== "Esc" || (n = t.onClose) == null || n.call(t);
|
|
44
|
+
}
|
|
45
|
+
return ue(() => {
|
|
46
|
+
typeof window < "u" && window.addEventListener("keydown", a);
|
|
47
|
+
}), de(() => {
|
|
48
|
+
typeof window < "u" && window.removeEventListener("keydown", a);
|
|
49
|
+
}), (e, i) => (_(), ae(ie, { to: "body" }, [m("div", be, [m("div", {
|
|
50
|
+
class: g(["html-preview-frame__backdrop", { "html-preview-frame__backdrop--dark": t.isDark }]),
|
|
51
|
+
onClick: i[2] ||= (e) => t.onClose?.call(t)
|
|
52
|
+
}, [m("div", {
|
|
53
|
+
class: g(["html-preview-frame", { "html-preview-frame--dark": t.isDark }]),
|
|
54
|
+
onClick: i[1] ||= ge(() => {}, ["stop"])
|
|
55
|
+
}, [m("div", O, [m("div", k, [i[3] ||= m("span", { class: "html-preview-frame__dot" }, null, -1), m("span", A, pe(t.title || y(n)("common.preview") || "Preview"), 1)]), m("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
class: g(["html-preview-frame__close", { "html-preview-frame__close--dark": t.isDark }]),
|
|
58
|
+
onClick: i[0] ||= (e) => t.onClose?.call(t)
|
|
59
|
+
}, " × ", 2)]), m("iframe", {
|
|
60
|
+
class: "html-preview-frame__iframe",
|
|
61
|
+
sandbox: "allow-scripts allow-same-origin",
|
|
62
|
+
srcdoc: r.value
|
|
63
|
+
}, null, 8, j)], 2)], 2)])]));
|
|
64
|
+
}
|
|
65
|
+
}), [["__scopeId", "data-v-296dd89d"]]), M = null, Se = null, Ce = null, N = null, we = null, Te = null, Ee = /* @__PURE__ */ new WeakMap(), De = 0, Oe = ["data-markstream-enhanced"], ke = { class: "code-header-main" }, Ae = ["innerHTML"], je = { class: "code-header-copy" }, Me = { class: "code-header-title" }, Ne = {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: "code-header-caption"
|
|
68
|
+
}, Pe = { class: "code-header-actions" }, Fe = ["aria-label"], Ie = { class: "code-diff-stat removed" }, Le = { class: "code-diff-stat added" }, Re = ["aria-pressed"], ze = ["disabled"], Be = ["disabled"], Ve = ["disabled"], He = ["aria-label"], Ue = {
|
|
69
|
+
key: 0,
|
|
70
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
role: "img",
|
|
74
|
+
width: "1em",
|
|
75
|
+
height: "1em",
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
class: "w-3 h-3"
|
|
78
|
+
}, We = {
|
|
79
|
+
key: 1,
|
|
80
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
82
|
+
"aria-hidden": "true",
|
|
83
|
+
role: "img",
|
|
84
|
+
width: "1em",
|
|
85
|
+
height: "1em",
|
|
86
|
+
viewBox: "0 0 24 24",
|
|
87
|
+
class: "w-3 h-3"
|
|
88
|
+
}, Ge = ["aria-pressed"], Ke = {
|
|
89
|
+
key: 0,
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
92
|
+
"aria-hidden": "true",
|
|
93
|
+
role: "img",
|
|
94
|
+
width: "1em",
|
|
95
|
+
height: "1em",
|
|
96
|
+
viewBox: "0 0 24 24",
|
|
97
|
+
class: "w-3 h-3"
|
|
98
|
+
}, qe = {
|
|
99
|
+
key: 1,
|
|
100
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
102
|
+
"aria-hidden": "true",
|
|
103
|
+
role: "img",
|
|
104
|
+
width: "1em",
|
|
105
|
+
height: "1em",
|
|
106
|
+
viewBox: "0 0 24 24",
|
|
107
|
+
class: "w-3 h-3"
|
|
108
|
+
}, Je = ["aria-label"], Ye = { class: "code-editor-layer" }, Xe = {
|
|
109
|
+
class: "sr-only",
|
|
110
|
+
"aria-live": "polite",
|
|
111
|
+
role: "status"
|
|
112
|
+
}, Ze = "__markstreamMonacoPassiveTouch__", P = /* @__PURE__ */ n(/* @__PURE__ */ h({
|
|
113
|
+
__name: "CodeBlockNode",
|
|
114
|
+
props: {
|
|
115
|
+
node: {},
|
|
116
|
+
isDark: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: !1
|
|
119
|
+
},
|
|
120
|
+
loading: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !0
|
|
123
|
+
},
|
|
124
|
+
stream: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: !0
|
|
127
|
+
},
|
|
128
|
+
darkTheme: { default: "vitesse-dark" },
|
|
129
|
+
lightTheme: { default: "vitesse-light" },
|
|
130
|
+
isShowPreview: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !0
|
|
133
|
+
},
|
|
134
|
+
monacoOptions: {},
|
|
135
|
+
enableFontSizeControl: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: !0
|
|
138
|
+
},
|
|
139
|
+
minWidth: { default: void 0 },
|
|
140
|
+
maxWidth: { default: void 0 },
|
|
141
|
+
themes: {},
|
|
142
|
+
showHeader: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !0
|
|
145
|
+
},
|
|
146
|
+
showCopyButton: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: !0
|
|
149
|
+
},
|
|
150
|
+
showExpandButton: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: !0
|
|
153
|
+
},
|
|
154
|
+
showPreviewButton: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
default: !0
|
|
157
|
+
},
|
|
158
|
+
showCollapseButton: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
default: !0
|
|
161
|
+
},
|
|
162
|
+
showFontSizeButtons: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: !0
|
|
165
|
+
},
|
|
166
|
+
showTooltips: { type: Boolean },
|
|
167
|
+
customId: {},
|
|
168
|
+
estimatedHeightPx: {},
|
|
169
|
+
estimatedContentHeightPx: {}
|
|
170
|
+
},
|
|
171
|
+
emits: ["previewCode", "copy"],
|
|
172
|
+
setup(n, { emit: ie }) {
|
|
173
|
+
let h = n, ue = ie, ge = oe(), _e = d(() => {
|
|
174
|
+
let e = ge?.vnode.props;
|
|
175
|
+
return !(!e || !e.onPreviewCode && !e.onPreviewCode);
|
|
176
|
+
}), { t: x } = i(), S = v(null), ve = v(null), C = v(!1), w = v(l(h.node.language)), T = d(() => a(w.value)), be = d(() => T.value === "plaintext"), O = v(!1), k = v(!1), A = v(!1), j = v(!1), P = v(!1), F = !1, Qe = null, I = v(null), $e = 0, et = ne(), tt = v(null), L = v(typeof window > "u");
|
|
177
|
+
typeof window < "u" && b(() => ve.value, (e) => {
|
|
178
|
+
var t;
|
|
179
|
+
if ((t = tt.value) == null || t.destroy(), tt.value = null, !e) return void (L.value = !1);
|
|
180
|
+
let n = et(e, { rootMargin: "400px" });
|
|
181
|
+
tt.value = n, L.value = n.isVisible.value, n.whenVisible.then(() => {
|
|
182
|
+
L.value = !0;
|
|
183
|
+
});
|
|
184
|
+
}, { immediate: !0 }), le(() => {
|
|
185
|
+
var e;
|
|
186
|
+
F = !0, (e = tt.value) == null || e.destroy(), tt.value = null;
|
|
187
|
+
});
|
|
188
|
+
let R = null, nt = null, rt = () => {}, it = () => {}, at = () => null, z = () => ({
|
|
189
|
+
getModel: () => ({ getLineCount: () => 1 }),
|
|
190
|
+
getOption: () => 14,
|
|
191
|
+
updateOptions: () => {}
|
|
192
|
+
}), B = () => ({
|
|
193
|
+
getModel: () => ({ getLineCount: () => 1 }),
|
|
194
|
+
getOption: () => 14,
|
|
195
|
+
updateOptions: () => {}
|
|
196
|
+
}), ot = () => {}, st = () => {}, ct = () => {}, V = null, lt = () => String(h.node.language ?? "plaintext"), ut = () => D(null, null, function* () {}), dt = [], ft = [], H = null, U = d(() => h.node.diff), W = v({
|
|
197
|
+
removed: 0,
|
|
198
|
+
added: 0
|
|
199
|
+
}), pt = d(() => `-${W.value.removed} +${W.value.added}`), mt = Object.freeze({
|
|
200
|
+
enabled: !0,
|
|
201
|
+
contextLineCount: 2,
|
|
202
|
+
minimumLineCount: 4,
|
|
203
|
+
revealLineCount: 5
|
|
204
|
+
});
|
|
205
|
+
function ht(e) {
|
|
206
|
+
var t;
|
|
207
|
+
if (typeof e == "boolean") return e;
|
|
208
|
+
if (e && typeof e == "object") {
|
|
209
|
+
let n = e;
|
|
210
|
+
return ye(E(E({}, mt), n), { enabled: (t = n.enabled) == null || t });
|
|
211
|
+
}
|
|
212
|
+
return E({}, mt);
|
|
213
|
+
}
|
|
214
|
+
let G = d(() => {
|
|
215
|
+
let e = h.monacoOptions ? E({}, h.monacoOptions) : {};
|
|
216
|
+
if (!U.value) return e;
|
|
217
|
+
let t = e.diffHideUnchangedRegions === void 0 ? E({}, mt) : ht(e.diffHideUnchangedRegions), n = e.hideUnchangedRegions === void 0 ? void 0 : ht(e.hideUnchangedRegions), r = e.diffUnchangedRegionStyle ?? "line-info";
|
|
218
|
+
return ye(E(E(E({}, {
|
|
219
|
+
maxComputationTime: 0,
|
|
220
|
+
diffAlgorithm: "legacy",
|
|
221
|
+
ignoreTrimWhitespace: !1,
|
|
222
|
+
renderIndicators: !0,
|
|
223
|
+
diffUpdateThrottleMs: 120,
|
|
224
|
+
renderLineHighlight: "none",
|
|
225
|
+
renderLineHighlightOnlyWhenFocus: !0,
|
|
226
|
+
selectionHighlight: !1,
|
|
227
|
+
occurrencesHighlight: "off",
|
|
228
|
+
matchBrackets: "never",
|
|
229
|
+
lineDecorationsWidth: 12,
|
|
230
|
+
lineNumbersMinChars: 2,
|
|
231
|
+
glyphMargin: !1,
|
|
232
|
+
fontSize: 13,
|
|
233
|
+
lineHeight: 30,
|
|
234
|
+
renderOverviewRuler: !1,
|
|
235
|
+
overviewRulerBorder: !1,
|
|
236
|
+
hideCursorInOverviewRuler: !0,
|
|
237
|
+
scrollBeyondLastLine: !1,
|
|
238
|
+
padding: {
|
|
239
|
+
top: 10,
|
|
240
|
+
bottom: r === "line-info" || r === "line-info-basic" || r === "metadata" ? 22 : 14
|
|
241
|
+
},
|
|
242
|
+
diffHideUnchangedRegions: t,
|
|
243
|
+
diffLineStyle: "background",
|
|
244
|
+
diffAppearance: "auto",
|
|
245
|
+
diffUnchangedRegionStyle: r,
|
|
246
|
+
diffHunkActionsOnHover: !0,
|
|
247
|
+
diffHunkHoverHideDelayMs: 160
|
|
248
|
+
}), e), n === void 0 ? {} : { hideUnchangedRegions: n }), { diffHideUnchangedRegions: t });
|
|
249
|
+
}), gt = d(() => U.value ? "diff" : "single"), _t = v(gt.value), vt = v(!1), yt = d(() => {
|
|
250
|
+
let e = h.monacoOptions?.wordWrap;
|
|
251
|
+
return e == null || String(e) !== "off";
|
|
252
|
+
}), bt = d(() => !vt.value && !j.value), xt = v(!1);
|
|
253
|
+
typeof window < "u" && D(null, null, function* () {
|
|
254
|
+
try {
|
|
255
|
+
let e = yield t();
|
|
256
|
+
if (F) return;
|
|
257
|
+
if (!e) return void (vt.value = !0);
|
|
258
|
+
let n = e.useMonaco, r = e.detectLanguage;
|
|
259
|
+
if (typeof r == "function" && (lt = r), typeof n == "function") {
|
|
260
|
+
let e = dn();
|
|
261
|
+
if (e && h.themes && Array.isArray(h.themes) && !h.themes.includes(e)) throw Error("Preferred theme not in provided themes array");
|
|
262
|
+
H = hn();
|
|
263
|
+
let t = n(H);
|
|
264
|
+
R = t.createEditor || R, nt = t.createDiffEditor || nt, rt = t.updateCode || rt, it = t.updateDiff || it, at = t.getEditor || at, z = t.getEditorView || z, B = t.getDiffEditorView || B, ot = t.cleanupEditor || ot, st = t.safeClean || t.cleanupEditor || st, ct = t.refreshDiffPresentation || ct, ut = t.setTheme || ut, P.value = !0, !F && S.value && (yield $(S.value));
|
|
265
|
+
}
|
|
266
|
+
} catch {
|
|
267
|
+
if (F) return;
|
|
268
|
+
vt.value = !0;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
let K = v(typeof h.monacoOptions?.fontSize == "number" ? h.monacoOptions.fontSize : NaN), q = v(K.value), St = d(() => {
|
|
272
|
+
let e = K.value, t = q.value;
|
|
273
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 && typeof t == "number" && Number.isFinite(t) && t > 0;
|
|
274
|
+
}), Ct = d(() => {
|
|
275
|
+
let e = h.monacoOptions?.fontSize;
|
|
276
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return e;
|
|
277
|
+
let t = q.value;
|
|
278
|
+
return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : 12;
|
|
279
|
+
}), wt = d(() => {
|
|
280
|
+
let e = h.monacoOptions?.lineHeight;
|
|
281
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : Math.round(1.5 * Ct.value);
|
|
282
|
+
}), Tt = d(() => {
|
|
283
|
+
let e = h.monacoOptions?.tabSize;
|
|
284
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 4;
|
|
285
|
+
}), Et = d(() => {
|
|
286
|
+
let e = h.estimatedContentHeightPx;
|
|
287
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.round(e) : null;
|
|
288
|
+
}), Dt = d(() => {
|
|
289
|
+
let e = h.monacoOptions?.fontFamily;
|
|
290
|
+
return E(E({
|
|
291
|
+
fontSize: `${Ct.value}px`,
|
|
292
|
+
lineHeight: `${wt.value}px`,
|
|
293
|
+
tabSize: Tt.value
|
|
294
|
+
}, Et.value == null ? {} : { minHeight: `${Et.value}px` }), typeof e == "string" && e.trim() ? { "--markstream-code-font-family": e.trim() } : {});
|
|
295
|
+
}), Ot = d(() => Et.value != null && !j.value), kt = d(() => {
|
|
296
|
+
if (Ot.value) return { minHeight: `${Et.value}px` };
|
|
297
|
+
}), At = d(() => {
|
|
298
|
+
if (Et.value != null) return { minHeight: `${Et.value}px` };
|
|
299
|
+
});
|
|
300
|
+
function jt() {
|
|
301
|
+
var e;
|
|
302
|
+
try {
|
|
303
|
+
let t = U.value ? ((e = B())?.getModifiedEditor)?.call(e) ?? B() : z(), n = at()?.EditorOption?.fontInfo;
|
|
304
|
+
if (t && n != null) {
|
|
305
|
+
let e = t.getOption?.call(t, n)?.fontSize;
|
|
306
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return e;
|
|
307
|
+
}
|
|
308
|
+
} catch {}
|
|
309
|
+
try {
|
|
310
|
+
let e = S.value;
|
|
311
|
+
if (e) {
|
|
312
|
+
let t = e.querySelector(".view-lines .view-line");
|
|
313
|
+
if (t) try {
|
|
314
|
+
if (typeof window < "u" && typeof window.getComputedStyle == "function") {
|
|
315
|
+
let e = window.getComputedStyle(t).fontSize, n = e && e.match(/^(\d+(?:\.\d+)?)/);
|
|
316
|
+
if (n) return Number.parseFloat(n[1]);
|
|
317
|
+
}
|
|
318
|
+
} catch {}
|
|
319
|
+
}
|
|
320
|
+
} catch {}
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
function Mt(e) {
|
|
324
|
+
try {
|
|
325
|
+
let t = at()?.EditorOption?.lineHeight;
|
|
326
|
+
if (t != null) {
|
|
327
|
+
let n = (e?.getOption)?.call(e, t);
|
|
328
|
+
if (typeof n == "number" && n > 0) return n;
|
|
329
|
+
}
|
|
330
|
+
} catch {}
|
|
331
|
+
let t = function() {
|
|
332
|
+
try {
|
|
333
|
+
let e = S.value;
|
|
334
|
+
if (!e) return null;
|
|
335
|
+
let t = e.querySelector(".view-lines .view-line");
|
|
336
|
+
if (t) {
|
|
337
|
+
let e = Math.ceil(t.getBoundingClientRect().height);
|
|
338
|
+
if (e > 0) return e;
|
|
339
|
+
}
|
|
340
|
+
} catch {}
|
|
341
|
+
return null;
|
|
342
|
+
}();
|
|
343
|
+
if (t && t > 0) return t;
|
|
344
|
+
let n = Number.isFinite(q.value) && q.value > 0 ? q.value : 12;
|
|
345
|
+
return Math.max(12, Math.round(1.35 * n));
|
|
346
|
+
}
|
|
347
|
+
function Nt(e, t) {
|
|
348
|
+
return typeof e != "number" || typeof t != "number" || e < 1 || t < e ? 0 : t - e + 1;
|
|
349
|
+
}
|
|
350
|
+
function Pt(e) {
|
|
351
|
+
if (!e) return [];
|
|
352
|
+
let t = e.split(/\r?\n/);
|
|
353
|
+
return t.length === 1 && t[0] === "" ? [] : t;
|
|
354
|
+
}
|
|
355
|
+
function Ft() {
|
|
356
|
+
U.value ? W.value = function(e, t) {
|
|
357
|
+
let n = Pt(e), r = Pt(t), i = 0, a = n.length - 1, o = r.length - 1;
|
|
358
|
+
for (; i <= a && i <= o && n[i] === r[i];) i++;
|
|
359
|
+
for (; a >= i && o >= i && n[a] === r[o];) a--, o--;
|
|
360
|
+
return {
|
|
361
|
+
removed: Math.max(0, a - i + 1),
|
|
362
|
+
added: Math.max(0, o - i + 1)
|
|
363
|
+
};
|
|
364
|
+
}(String(h.node.originalCode ?? ""), String(h.node.updatedCode ?? "")) : W.value = {
|
|
365
|
+
removed: 0,
|
|
366
|
+
added: 0
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function It() {
|
|
370
|
+
if (U.value) try {
|
|
371
|
+
let e = B(), t = (e?.getLineChanges)?.call(e);
|
|
372
|
+
if (!Array.isArray(t)) return void Ft();
|
|
373
|
+
let n = 0, r = 0;
|
|
374
|
+
for (let e of t) n += Nt(e.originalStartLineNumber, e.originalEndLineNumber), r += Nt(e.modifiedStartLineNumber, e.modifiedEndLineNumber);
|
|
375
|
+
W.value = {
|
|
376
|
+
removed: n,
|
|
377
|
+
added: r
|
|
378
|
+
};
|
|
379
|
+
} catch {
|
|
380
|
+
Ft();
|
|
381
|
+
}
|
|
382
|
+
else W.value = {
|
|
383
|
+
removed: 0,
|
|
384
|
+
added: 0
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
function Lt() {
|
|
388
|
+
if (Number.isFinite(q.value) && q.value > 0 && Number.isFinite(K.value)) return q.value;
|
|
389
|
+
let e = jt();
|
|
390
|
+
return typeof h.monacoOptions?.fontSize == "number" ? (K.value = h.monacoOptions.fontSize, q.value = h.monacoOptions.fontSize, q.value) : e && e > 0 ? (K.value = e, q.value = e, e) : (K.value = 12, q.value = 12, 12);
|
|
391
|
+
}
|
|
392
|
+
function Rt() {
|
|
393
|
+
var e, t, n, r, i;
|
|
394
|
+
try {
|
|
395
|
+
let a = U.value ? B() : null, o = U.value ? a : z();
|
|
396
|
+
if (!o) return null;
|
|
397
|
+
if (a?.getOriginalEditor && a?.getModifiedEditor) {
|
|
398
|
+
let i = a.getOriginalEditor?.call(a), o = a.getModifiedEditor?.call(a);
|
|
399
|
+
(e = i?.layout) == null || e.call(i), (t = o?.layout) == null || t.call(o);
|
|
400
|
+
let s = (i?.getContentHeight)?.call(i) || 0, ee = (o?.getContentHeight)?.call(o) || 0, c = Math.max(s, ee);
|
|
401
|
+
if (c > 0) return Math.ceil(c + 1);
|
|
402
|
+
let te = ((n = (i?.getModel)?.call(i))?.getLineCount)?.call(n) || 1, l = ((r = (o?.getModel)?.call(o))?.getLineCount)?.call(r) || 1, u = Math.max(te, l), ne = Math.max(Mt(i), Mt(o));
|
|
403
|
+
return Math.ceil(u * (ne + 1.5) + 0 + 1);
|
|
404
|
+
}
|
|
405
|
+
if (o?.getContentHeight) {
|
|
406
|
+
(i = o?.layout) == null || i.call(o);
|
|
407
|
+
let e = o.getContentHeight();
|
|
408
|
+
if (e > 0) return Math.ceil(e + 1);
|
|
409
|
+
}
|
|
410
|
+
let s = (o?.getModel)?.call(o), ee = 1;
|
|
411
|
+
s && typeof s.getLineCount == "function" && (ee = s.getLineCount());
|
|
412
|
+
let c = Mt(o);
|
|
413
|
+
return Math.ceil(ee * (c + 1.5) + 0 + 1);
|
|
414
|
+
} catch {
|
|
415
|
+
return null;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function zt(e) {
|
|
419
|
+
let t = String(e ?? "").match(/\d+(?:\.\d+)?/g);
|
|
420
|
+
if (!t || t.length < 3) return null;
|
|
421
|
+
let [n, r, i] = t.slice(0, 3).map(Number);
|
|
422
|
+
return .2126 * n + .7152 * r + .0722 * i;
|
|
423
|
+
}
|
|
424
|
+
function Bt() {
|
|
425
|
+
let e = S.value, t = ve.value;
|
|
426
|
+
if (!e || !t) return;
|
|
427
|
+
if (U.value) return t.style.removeProperty("--vscode-editor-foreground"), t.style.removeProperty("--vscode-editor-background"), void t.style.removeProperty("--vscode-editor-selectionBackground");
|
|
428
|
+
let n = e.querySelector(".monaco-editor") || e, r = n.querySelector(".monaco-editor-background") || n, i = n.querySelector(".view-lines") || n, a = null, o = null, s = null;
|
|
429
|
+
try {
|
|
430
|
+
typeof window < "u" && typeof window.getComputedStyle == "function" && (a = window.getComputedStyle(n), o = r === n ? a : window.getComputedStyle(r), s = i === n ? a : window.getComputedStyle(i));
|
|
431
|
+
} catch {
|
|
432
|
+
a = null, o = null, s = null;
|
|
433
|
+
}
|
|
434
|
+
let ee = String(a?.getPropertyValue("--vscode-editor-foreground") ?? "").trim(), c = String(a?.getPropertyValue("--vscode-editor-background") ?? "").trim(), te = String(a?.getPropertyValue("--vscode-editor-selectionBackground") ?? a?.getPropertyValue("--vscode-editor-hoverHighlightBackground") ?? "").trim(), l = ee || String(s?.color ?? a?.color ?? "").trim(), u = c || String(o?.backgroundColor ?? a?.backgroundColor ?? "").trim();
|
|
435
|
+
if (function(e, t, n) {
|
|
436
|
+
if (!be.value) return !1;
|
|
437
|
+
let r = zt(e), i = zt(t);
|
|
438
|
+
return n ? r != null && r > 170 || i != null && i < 110 : r != null && r < 85 || i != null && i > 190;
|
|
439
|
+
}(u, l, t.classList.contains("is-dark"))) return t.style.removeProperty("--vscode-editor-foreground"), t.style.removeProperty("--vscode-editor-background"), void t.style.removeProperty("--vscode-editor-selectionBackground");
|
|
440
|
+
l && t.style.setProperty("--vscode-editor-foreground", l), u && t.style.setProperty("--vscode-editor-background", u), te && t.style.setProperty("--vscode-editor-selectionBackground", te);
|
|
441
|
+
}
|
|
442
|
+
let Vt = /auto|scroll|overlay/i;
|
|
443
|
+
function J(e, t, n) {
|
|
444
|
+
if (typeof window > "u") return;
|
|
445
|
+
let r = Math.ceil(n) - Math.ceil(t);
|
|
446
|
+
if (!r) return;
|
|
447
|
+
let i = function(e) {
|
|
448
|
+
if (typeof window > "u") return null;
|
|
449
|
+
let t = e?.ownerDocument ?? document, n = t.scrollingElement || t.documentElement || t.body, r = e?.parentElement ?? null;
|
|
450
|
+
for (; r && r !== t.body && r !== n;) {
|
|
451
|
+
let e = window.getComputedStyle(r), t = (e.overflowY || "").toLowerCase(), n = (e.overflow || "").toLowerCase();
|
|
452
|
+
if (Vt.test(t) || Vt.test(n)) return r;
|
|
453
|
+
r = r.parentElement;
|
|
454
|
+
}
|
|
455
|
+
return n;
|
|
456
|
+
}(e);
|
|
457
|
+
if (!i) return;
|
|
458
|
+
let a = e.ownerDocument ?? document, o = i === a.body || i === a.documentElement || i === a.scrollingElement, s = o ? 0 : i.getBoundingClientRect().top;
|
|
459
|
+
e.getBoundingClientRect().top - s >= 0 || (o && typeof window.scrollBy == "function" ? window.scrollBy(0, r) : i.scrollTop += r);
|
|
460
|
+
}
|
|
461
|
+
function Y() {
|
|
462
|
+
try {
|
|
463
|
+
let e = S.value;
|
|
464
|
+
if (!e) return;
|
|
465
|
+
let t = e.getBoundingClientRect().height, n = Rt();
|
|
466
|
+
if (n != null && n > 0) {
|
|
467
|
+
let r = Math.ceil(n);
|
|
468
|
+
e.style.minHeight = "0px", e.style.height = `${r}px`, e.style.maxHeight = "none", e.style.overflow = "visible", J(e, t, r);
|
|
469
|
+
}
|
|
470
|
+
} catch {}
|
|
471
|
+
}
|
|
472
|
+
function Ht() {
|
|
473
|
+
for (var e, t; dt.length > 0;) try {
|
|
474
|
+
(t = (e = dt.pop())?.dispose) == null || t.call(e);
|
|
475
|
+
} catch {}
|
|
476
|
+
Qe != null && (u(Qe), Qe = null);
|
|
477
|
+
}
|
|
478
|
+
function Ut() {
|
|
479
|
+
for (var e; ft.length > 0;) try {
|
|
480
|
+
(e = ft.pop()) == null || e();
|
|
481
|
+
} catch {}
|
|
482
|
+
}
|
|
483
|
+
function Wt() {
|
|
484
|
+
if (Ut(), !U.value) return;
|
|
485
|
+
let e = S.value;
|
|
486
|
+
if (!e) return;
|
|
487
|
+
let t = e.querySelector(".monaco-diff-editor");
|
|
488
|
+
if (!t || t.classList.contains("side-by-side")) return;
|
|
489
|
+
let n = Array.from(t.querySelectorAll(".editor.original .diff-hidden-lines")), r = Array.from(t.querySelectorAll(".editor.modified .diff-hidden-lines")), i = Math.min(n.length, r.length);
|
|
490
|
+
for (let e = 0; e < i; e++) {
|
|
491
|
+
let t = n[e], i = r[e].querySelector("a"), a = t.querySelector(".center > div:first-child");
|
|
492
|
+
if (!i || !a) continue;
|
|
493
|
+
let o = document.createElement("button");
|
|
494
|
+
o.type = "button", o.className = "markstream-inline-fold-proxy";
|
|
495
|
+
let s = i.getAttribute("title") || "Show Unchanged Region";
|
|
496
|
+
o.title = s, o.setAttribute("aria-label", s);
|
|
497
|
+
let ee = i.querySelector(".codicon"), c = document.createElement("span");
|
|
498
|
+
c.className = ee?.className || "codicon codicon-unfold", o.append(c);
|
|
499
|
+
let te = (e) => {
|
|
500
|
+
e.preventDefault(), e.stopPropagation();
|
|
501
|
+
}, l = (e) => {
|
|
502
|
+
e.preventDefault(), e.stopPropagation(), i.click();
|
|
503
|
+
}, u = (e) => {
|
|
504
|
+
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.stopPropagation(), i.click());
|
|
505
|
+
};
|
|
506
|
+
o.addEventListener("mousedown", te), o.addEventListener("click", l), o.addEventListener("keydown", u), a.replaceChildren(o), ft.push(() => {
|
|
507
|
+
o.removeEventListener("mousedown", te), o.removeEventListener("click", l), o.removeEventListener("keydown", u), a.contains(o) && a.replaceChildren();
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function Gt() {
|
|
512
|
+
Qe ??= r(() => {
|
|
513
|
+
Qe = null, r(() => {
|
|
514
|
+
Wt(), k.value || (O.value ? Y() : X());
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
function Kt(e, t, n) {
|
|
519
|
+
let r = Math.min(t, n), i = t > n + 1;
|
|
520
|
+
return e.style.minHeight = "0px", e.style.height = `${Math.ceil(r)}px`, e.style.maxHeight = `${Math.ceil(n)}px`, e.style.overflow = i ? "auto" : "hidden", Math.ceil(r);
|
|
521
|
+
}
|
|
522
|
+
function X() {
|
|
523
|
+
try {
|
|
524
|
+
let e = S.value;
|
|
525
|
+
if (!e) return;
|
|
526
|
+
let t = e.getBoundingClientRect().height, n = function() {
|
|
527
|
+
let e = h.monacoOptions?.MAX_HEIGHT ?? 500;
|
|
528
|
+
if (typeof e == "number") return e;
|
|
529
|
+
let t = String(e).match(/^(\d+(?:\.\d+)?)/);
|
|
530
|
+
return t ? Number.parseFloat(t[1]) : 500;
|
|
531
|
+
}();
|
|
532
|
+
if ($e > 0 && ($e--, I.value != null)) return void J(e, t, Kt(e, I.value, n));
|
|
533
|
+
let r = Rt();
|
|
534
|
+
if (r != null && r > 0) return void J(e, t, Kt(e, r, n));
|
|
535
|
+
if (I.value != null) return void J(e, t, Kt(e, I.value, n));
|
|
536
|
+
let i = Math.ceil(e.getBoundingClientRect?.call(e).height || 0);
|
|
537
|
+
if (i > 0) return void J(e, t, Kt(e, i, n));
|
|
538
|
+
let a = Number.parseFloat(e.style.height);
|
|
539
|
+
!Number.isNaN(a) && a > 0 ? J(e, t, Kt(e, a, n)) : J(e, t, Kt(e, n, n));
|
|
540
|
+
} catch {}
|
|
541
|
+
}
|
|
542
|
+
let qt = d(() => h.isShowPreview && (w.value === "html" || w.value === "svg"));
|
|
543
|
+
b(() => h.node.language, (e) => {
|
|
544
|
+
w.value = l(e);
|
|
545
|
+
}), b(() => [
|
|
546
|
+
h.node.originalCode,
|
|
547
|
+
h.node.updatedCode,
|
|
548
|
+
U.value
|
|
549
|
+
], () => {
|
|
550
|
+
Ft(), r(() => It());
|
|
551
|
+
}, { immediate: !0 }), b(() => [
|
|
552
|
+
h.node.originalCode,
|
|
553
|
+
h.node.updatedCode,
|
|
554
|
+
T.value,
|
|
555
|
+
U.value
|
|
556
|
+
], (e) => D(null, [e], function* ([e, t, n, i]) {
|
|
557
|
+
if (!1 !== h.stream && i) {
|
|
558
|
+
if (R && !A.value && S.value) try {
|
|
559
|
+
yield $(S.value);
|
|
560
|
+
} catch {}
|
|
561
|
+
it(String(e ?? ""), String(t ?? ""), T.value), O.value && r(() => Y());
|
|
562
|
+
}
|
|
563
|
+
})), b(() => h.node.code, (e) => D(null, null, function* () {
|
|
564
|
+
if (!1 !== h.stream && (w.value ||= l(lt(e)), !U.value)) {
|
|
565
|
+
if (R && !A.value && S.value) try {
|
|
566
|
+
yield $(S.value);
|
|
567
|
+
} catch {}
|
|
568
|
+
rt(e, T.value), O.value && r(() => Y());
|
|
569
|
+
}
|
|
570
|
+
}));
|
|
571
|
+
let Jt = d(() => {
|
|
572
|
+
let e = w.value;
|
|
573
|
+
return e ? s[e] || e.charAt(0).toUpperCase() + e.slice(1) : s[""] || "Plain Text";
|
|
574
|
+
}), Yt = d(() => function(e) {
|
|
575
|
+
let t = function(e) {
|
|
576
|
+
let t = String(e ?? "").split(/\r?\n/, 1)[0]?.trim() ?? "";
|
|
577
|
+
if (t.length < 3) return "";
|
|
578
|
+
let n = t[0];
|
|
579
|
+
if (n !== "`" && n !== "~" || t[1] !== n || t[2] !== n) return "";
|
|
580
|
+
let r = 3;
|
|
581
|
+
for (; t[r] === n;) r += 1;
|
|
582
|
+
return t.slice(r).trim();
|
|
583
|
+
}(e);
|
|
584
|
+
if (!t) return "";
|
|
585
|
+
let n = t.split(/\s+/).filter(Boolean);
|
|
586
|
+
if (!n.length) return "";
|
|
587
|
+
let r = n[0] === "diff" ? n.slice(1) : n;
|
|
588
|
+
for (let e of r) {
|
|
589
|
+
let t = e.includes(":") ? e.slice(e.indexOf(":") + 1) : e;
|
|
590
|
+
if (t && /[./\\-]/.test(t)) return t;
|
|
591
|
+
}
|
|
592
|
+
return "";
|
|
593
|
+
}(String(h.node.raw ?? ""))), Xt = d(() => Yt.value || Jt.value), Zt = d(() => Yt.value ? U.value ? `Diff / ${Jt.value}` : Jt.value : ""), Qt = d(() => (te.value, ee(w.value || ""))), $t = d(() => {
|
|
594
|
+
let e = {}, t = (e) => {
|
|
595
|
+
if (e != null) return typeof e == "number" ? `${e}px` : String(e);
|
|
596
|
+
}, n = t(h.minWidth), r = t(h.maxWidth);
|
|
597
|
+
return n && (e.minWidth = n), r && (e.maxWidth = r), U.value ? (e.color = "var(--markstream-diff-shell-fg)", e.borderColor = "var(--markstream-diff-shell-border)") : (e.color = "var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))", e.backgroundColor = "var(--vscode-editor-background, var(--markstream-code-fallback-bg))", e.borderColor = "var(--markstream-code-border-color)"), e;
|
|
598
|
+
}), en = d(() => {
|
|
599
|
+
if (!U.value) return {
|
|
600
|
+
color: "var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))",
|
|
601
|
+
backgroundColor: "var(--vscode-editor-background, var(--markstream-code-fallback-bg))"
|
|
602
|
+
};
|
|
603
|
+
}), tn = d(() => !1 !== h.showTooltips);
|
|
604
|
+
function nn() {
|
|
605
|
+
return D(this, null, function* () {
|
|
606
|
+
try {
|
|
607
|
+
typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(h.node.code)), C.value = !0, ue("copy", h.node.code), setTimeout(() => {
|
|
608
|
+
C.value = !1;
|
|
609
|
+
}, 1e3);
|
|
610
|
+
} catch (e) {
|
|
611
|
+
console.error("复制失败:", e);
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
function rn(e) {
|
|
616
|
+
let t = e.currentTarget || e.target;
|
|
617
|
+
return !t || t.disabled ? null : t;
|
|
618
|
+
}
|
|
619
|
+
function Z(e, t, n = "top") {
|
|
620
|
+
if (!tn.value) return;
|
|
621
|
+
let r = rn(e);
|
|
622
|
+
if (!r) return;
|
|
623
|
+
let i = e;
|
|
624
|
+
o(r, t, n, !1, i?.clientX != null && i?.clientY != null ? {
|
|
625
|
+
x: i.clientX,
|
|
626
|
+
y: i.clientY
|
|
627
|
+
} : void 0, h.isDark);
|
|
628
|
+
}
|
|
629
|
+
function Q() {
|
|
630
|
+
tn.value && e();
|
|
631
|
+
}
|
|
632
|
+
function an(e) {
|
|
633
|
+
if (!tn.value) return;
|
|
634
|
+
let t = rn(e);
|
|
635
|
+
if (!t) return;
|
|
636
|
+
let n = C.value ? x("common.copied") || "Copied" : x("common.copy") || "Copy", r = e;
|
|
637
|
+
o(t, n, "top", !1, r?.clientX != null && r?.clientY != null ? {
|
|
638
|
+
x: r.clientX,
|
|
639
|
+
y: r.clientY
|
|
640
|
+
} : void 0, h.isDark);
|
|
641
|
+
}
|
|
642
|
+
function on() {
|
|
643
|
+
var e, t;
|
|
644
|
+
if (k.value = !k.value, k.value) {
|
|
645
|
+
if (S.value) {
|
|
646
|
+
let t = Math.ceil((e = S.value).getBoundingClientRect?.call(e).height || 0);
|
|
647
|
+
t > 0 && (I.value = t);
|
|
648
|
+
}
|
|
649
|
+
cn(!1);
|
|
650
|
+
} else {
|
|
651
|
+
O.value && cn(!0), S.value && I.value != null && (S.value.style.height = `${I.value}px`);
|
|
652
|
+
let e = U.value ? B() : z();
|
|
653
|
+
try {
|
|
654
|
+
(t = e?.layout) == null || t.call(e);
|
|
655
|
+
} catch {}
|
|
656
|
+
$e = 2, r(() => {
|
|
657
|
+
O.value ? Y() : X();
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function sn() {
|
|
662
|
+
if (!qt.value) return;
|
|
663
|
+
let e = w.value;
|
|
664
|
+
if (_e.value) {
|
|
665
|
+
let t = e === "html" ? "text/html" : "image/svg+xml", n = e === "html" ? x("artifacts.htmlPreviewTitle") || "HTML Preview" : x("artifacts.svgPreviewTitle") || "SVG Preview";
|
|
666
|
+
ue("previewCode", {
|
|
667
|
+
node: h.node,
|
|
668
|
+
artifactType: t,
|
|
669
|
+
artifactTitle: n,
|
|
670
|
+
id: `temp-${e}-${Date.now()}`
|
|
671
|
+
});
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
e === "html" && (xt.value = !xt.value);
|
|
675
|
+
}
|
|
676
|
+
function cn(e) {
|
|
677
|
+
var t, n;
|
|
678
|
+
try {
|
|
679
|
+
if (U.value) {
|
|
680
|
+
let n = B();
|
|
681
|
+
(t = n?.updateOptions) == null || t.call(n, { automaticLayout: e });
|
|
682
|
+
} else {
|
|
683
|
+
let t = z();
|
|
684
|
+
(n = t?.updateOptions) == null || n.call(t, { automaticLayout: e });
|
|
685
|
+
}
|
|
686
|
+
} catch {}
|
|
687
|
+
}
|
|
688
|
+
function $(e) {
|
|
689
|
+
if (!R || F) return null;
|
|
690
|
+
if (function() {
|
|
691
|
+
try {
|
|
692
|
+
let e = window;
|
|
693
|
+
if (e[Ze]) return;
|
|
694
|
+
let t = window.Element?.prototype, n = t?.addEventListener;
|
|
695
|
+
if (!t || !n) return;
|
|
696
|
+
t.addEventListener = function(e, t, r) {
|
|
697
|
+
return e === "touchstart" && function(e, t) {
|
|
698
|
+
if (!e) return !1;
|
|
699
|
+
let n = e;
|
|
700
|
+
return !(typeof n.closest != "function" || !n.closest(".monaco-editor, .monaco-diff-editor") || t && typeof t == "object" && "passive" in t);
|
|
701
|
+
}(this, r) ? n.call(this, e, t, function(e) {
|
|
702
|
+
return e == null ? { passive: !0 } : typeof e == "boolean" ? {
|
|
703
|
+
capture: e,
|
|
704
|
+
passive: !0
|
|
705
|
+
} : typeof e == "object" ? "passive" in e ? e : ye(E({}, e), { passive: !0 }) : { passive: !0 };
|
|
706
|
+
}(r)) : n.call(this, e, t, r);
|
|
707
|
+
}, e[Ze] = !0;
|
|
708
|
+
} catch {}
|
|
709
|
+
}(), V) return V;
|
|
710
|
+
if (A.value && j.value) return Promise.resolve();
|
|
711
|
+
A.value = !0;
|
|
712
|
+
let t = D(null, null, function* () {
|
|
713
|
+
yield function(e) {
|
|
714
|
+
return D(this, null, function* () {
|
|
715
|
+
if (!R || F || (Ht(), Ut(), function(e) {
|
|
716
|
+
e.replaceChildren();
|
|
717
|
+
}(e), F) || (U.value ? (st(), nt ? yield nt(e, String(h.node.originalCode ?? ""), String(h.node.updatedCode ?? ""), T.value) : yield R(e, h.node.code, T.value)) : yield R(e, h.node.code, T.value), F)) return;
|
|
718
|
+
let t = U.value ? B() : z();
|
|
719
|
+
if (typeof h.monacoOptions?.fontSize == "number") t?.updateOptions({
|
|
720
|
+
fontSize: h.monacoOptions.fontSize,
|
|
721
|
+
automaticLayout: !1
|
|
722
|
+
}), K.value = h.monacoOptions.fontSize, q.value = h.monacoOptions.fontSize;
|
|
723
|
+
else {
|
|
724
|
+
let e = jt();
|
|
725
|
+
e && e > 0 ? (K.value = e, q.value = e) : (K.value = 12, q.value = 12);
|
|
726
|
+
}
|
|
727
|
+
if (O.value || k.value || X(), !1 === h.loading) {
|
|
728
|
+
if (yield se(), F) return;
|
|
729
|
+
r(() => {
|
|
730
|
+
F || (O.value && !k.value ? Y() : k.value || X());
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
yield se(), F || (j.value = !0, function() {
|
|
734
|
+
if (Ht(), U.value) {
|
|
735
|
+
let e = B(), t = (e?.getOriginalEditor)?.call(e), n = (e?.getModifiedEditor)?.call(e), i = (e, t) => {
|
|
736
|
+
try {
|
|
737
|
+
let n = e?.[t];
|
|
738
|
+
if (typeof n != "function") return;
|
|
739
|
+
let r = n.call(e, () => Gt());
|
|
740
|
+
r && dt.push(r);
|
|
741
|
+
} catch {}
|
|
742
|
+
};
|
|
743
|
+
try {
|
|
744
|
+
let t = (e?.onDidUpdateDiff)?.call(e, () => {
|
|
745
|
+
Gt(), r(() => It());
|
|
746
|
+
});
|
|
747
|
+
t && dt.push(t);
|
|
748
|
+
} catch {}
|
|
749
|
+
i(t, "onDidContentSizeChange"), i(n, "onDidContentSizeChange"), i(t, "onDidLayoutChange"), i(n, "onDidLayoutChange");
|
|
750
|
+
} else {
|
|
751
|
+
let e = z();
|
|
752
|
+
try {
|
|
753
|
+
let t = (e?.onDidContentSizeChange)?.call(e, () => Gt());
|
|
754
|
+
t && dt.push(t);
|
|
755
|
+
} catch {}
|
|
756
|
+
try {
|
|
757
|
+
let t = (e?.onDidLayoutChange)?.call(e, () => Gt());
|
|
758
|
+
t && dt.push(t);
|
|
759
|
+
} catch {}
|
|
760
|
+
}
|
|
761
|
+
}(), Bt(), Wt(), It(), Gt());
|
|
762
|
+
});
|
|
763
|
+
}(e);
|
|
764
|
+
}).finally(() => {
|
|
765
|
+
V === t && (V = null);
|
|
766
|
+
});
|
|
767
|
+
return V = t, t;
|
|
768
|
+
}
|
|
769
|
+
b(tn, (t) => {
|
|
770
|
+
t || e();
|
|
771
|
+
}), b(() => q.value, (e, t) => {
|
|
772
|
+
let n = U.value ? B() : z();
|
|
773
|
+
n && typeof e == "number" && Number.isFinite(e) && e > 0 && (n.updateOptions({ fontSize: e }), O.value && !k.value && Y());
|
|
774
|
+
}, {
|
|
775
|
+
flush: "post",
|
|
776
|
+
immediate: !1
|
|
777
|
+
});
|
|
778
|
+
let ln = b(() => [
|
|
779
|
+
S.value,
|
|
780
|
+
U.value,
|
|
781
|
+
h.stream,
|
|
782
|
+
h.loading,
|
|
783
|
+
P.value,
|
|
784
|
+
L.value
|
|
785
|
+
], (e) => D(null, [e], function* ([e, t, n, r, i, a]) {
|
|
786
|
+
if (!e || !R || !a || !1 === n && !1 !== r) return;
|
|
787
|
+
let o = $(e);
|
|
788
|
+
if (o) {
|
|
789
|
+
try {
|
|
790
|
+
yield o;
|
|
791
|
+
} catch {
|
|
792
|
+
j.value = !1;
|
|
793
|
+
}
|
|
794
|
+
ln();
|
|
795
|
+
}
|
|
796
|
+
}));
|
|
797
|
+
function un(e) {
|
|
798
|
+
return typeof e == "string" ? e : e && typeof e == "object" && "name" in e ? String(e.name) : null;
|
|
799
|
+
}
|
|
800
|
+
function dn() {
|
|
801
|
+
let e = h.isDark ? h.darkTheme : h.lightTheme, t = G.value?.theme, n = e ?? t, r = Array.isArray(h.themes) ? h.themes : [];
|
|
802
|
+
if (!r.length || n == null) return n;
|
|
803
|
+
let i = un(n), a = r.map((e) => un(e)).filter((e) => !!e);
|
|
804
|
+
if (!i || a.includes(i)) return n;
|
|
805
|
+
let o = un(t);
|
|
806
|
+
return t != null && o && a.includes(o) ? t : r[0];
|
|
807
|
+
}
|
|
808
|
+
b(gt, (e, t) => D(null, null, function* () {
|
|
809
|
+
if (e === t || (_t.value = e, !R || !S.value) || !A.value || !1 === h.stream && !1 !== h.loading || !L.value) return;
|
|
810
|
+
let n = V;
|
|
811
|
+
if (n) {
|
|
812
|
+
try {
|
|
813
|
+
yield n;
|
|
814
|
+
} catch {}
|
|
815
|
+
if (F || !S.value) return;
|
|
816
|
+
}
|
|
817
|
+
try {
|
|
818
|
+
j.value = !1, A.value = !1, Ht(), Ut(), st(), yield se(), yield $(S.value);
|
|
819
|
+
} catch {
|
|
820
|
+
j.value = !1;
|
|
821
|
+
}
|
|
822
|
+
}));
|
|
823
|
+
let fn = d(() => function(e) {
|
|
824
|
+
let t = (un(e) ?? "").toLowerCase();
|
|
825
|
+
return t ? [
|
|
826
|
+
"dark",
|
|
827
|
+
"night",
|
|
828
|
+
"moon",
|
|
829
|
+
"black",
|
|
830
|
+
"dracula",
|
|
831
|
+
"mocha",
|
|
832
|
+
"frappe",
|
|
833
|
+
"macchiato",
|
|
834
|
+
"palenight",
|
|
835
|
+
"ocean",
|
|
836
|
+
"poimandres",
|
|
837
|
+
"monokai",
|
|
838
|
+
"laserwave",
|
|
839
|
+
"tokyo",
|
|
840
|
+
"slack-dark",
|
|
841
|
+
"rose-pine",
|
|
842
|
+
"github-dark",
|
|
843
|
+
"material-theme",
|
|
844
|
+
"one-dark",
|
|
845
|
+
"catppuccin-mocha",
|
|
846
|
+
"catppuccin-frappe",
|
|
847
|
+
"catppuccin-macchiato"
|
|
848
|
+
].some((e) => t.includes(e)) && ![
|
|
849
|
+
"light",
|
|
850
|
+
"latte",
|
|
851
|
+
"dawn",
|
|
852
|
+
"lotus"
|
|
853
|
+
].some((e) => t.includes(e)) : !!h.isDark;
|
|
854
|
+
}(dn())), pn = d(() => {
|
|
855
|
+
if (!U.value) return fn.value ? "dark" : "light";
|
|
856
|
+
let e = G.value?.diffAppearance;
|
|
857
|
+
return e === "light" || e === "dark" ? e : h.isDark ? "dark" : "light";
|
|
858
|
+
}), mn = d(() => U.value ? pn.value === "dark" : fn.value);
|
|
859
|
+
function hn() {
|
|
860
|
+
return ye(E(ye(E({
|
|
861
|
+
wordWrap: "on",
|
|
862
|
+
wrappingIndent: "same",
|
|
863
|
+
themes: h.themes
|
|
864
|
+
}, G.value || {}), { theme: dn() }), U.value ? { diffAppearance: pn.value } : {}), { onThemeChange() {
|
|
865
|
+
Bt();
|
|
866
|
+
} });
|
|
867
|
+
}
|
|
868
|
+
function gn() {
|
|
869
|
+
let e = hn();
|
|
870
|
+
if (!H) return H = e, H;
|
|
871
|
+
for (let t of Object.keys(H)) t in e || delete H[t];
|
|
872
|
+
return Object.assign(H, e), H;
|
|
873
|
+
}
|
|
874
|
+
let _n = d(() => {
|
|
875
|
+
var e, t, n, r, i;
|
|
876
|
+
return JSON.stringify({
|
|
877
|
+
diffLineStyle: G.value?.diffLineStyle ?? "background",
|
|
878
|
+
diffUnchangedRegionStyle: G.value?.diffUnchangedRegionStyle ?? "line-info",
|
|
879
|
+
diffHideUnchangedRegions: (e = G.value?.diffHideUnchangedRegions) == null || e,
|
|
880
|
+
renderSideBySide: (t = G.value?.renderSideBySide) == null || t,
|
|
881
|
+
enableSplitViewResizing: (n = G.value?.enableSplitViewResizing) == null || n,
|
|
882
|
+
ignoreTrimWhitespace: (r = G.value?.ignoreTrimWhitespace) == null || r,
|
|
883
|
+
originalEditable: (i = G.value?.originalEditable) != null && i
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
b(() => [h.monacoOptions, L.value], () => {
|
|
887
|
+
var e;
|
|
888
|
+
if (gn(), !R || !L.value) return;
|
|
889
|
+
let t = U.value ? B() : z(), n = typeof h.monacoOptions?.fontSize == "number" ? h.monacoOptions.fontSize : Number.isFinite(q.value) ? q.value : void 0;
|
|
890
|
+
typeof n == "number" && Number.isFinite(n) && n > 0 && ((e = t?.updateOptions) == null || e.call(t, { fontSize: n })), O.value && !k.value ? Y() : k.value || X();
|
|
891
|
+
}, { deep: !0 }), b(() => [
|
|
892
|
+
dn(),
|
|
893
|
+
pn.value,
|
|
894
|
+
P.value,
|
|
895
|
+
A.value,
|
|
896
|
+
L.value
|
|
897
|
+
], () => {
|
|
898
|
+
P.value && A.value && L.value && function() {
|
|
899
|
+
gn();
|
|
900
|
+
let e = dn(), t = () => {
|
|
901
|
+
U.value && ct(), r(() => {
|
|
902
|
+
Bt(), Gt();
|
|
903
|
+
});
|
|
904
|
+
};
|
|
905
|
+
e ? function(e, t) {
|
|
906
|
+
let n = function(e) {
|
|
907
|
+
if (e == null) return null;
|
|
908
|
+
if (typeof e == "string") return e;
|
|
909
|
+
if (typeof e == "object" && "name" in e) return String(e.name);
|
|
910
|
+
if (typeof e == "object") {
|
|
911
|
+
let t = Ee.get(e);
|
|
912
|
+
if (t) return t;
|
|
913
|
+
try {
|
|
914
|
+
let t = JSON.stringify(e);
|
|
915
|
+
if (t) return Ee.set(e, t), t;
|
|
916
|
+
} catch {}
|
|
917
|
+
let n = "__theme_" + ++De;
|
|
918
|
+
return Ee.set(e, n), n;
|
|
919
|
+
}
|
|
920
|
+
return String(e);
|
|
921
|
+
}(t);
|
|
922
|
+
return n ? (Te = e, M || we !== n ? M ? (N === n || Se === n || (Ce = t, N = n), M) : (Ce = t, N = n, M = D(null, null, function* () {
|
|
923
|
+
for (; N && Ce != null;) {
|
|
924
|
+
let t = Ce, n = N;
|
|
925
|
+
if (Ce = null, N = null, we !== n) try {
|
|
926
|
+
Se = n, yield (Te ?? e)(t), we = n;
|
|
927
|
+
} catch {}
|
|
928
|
+
}
|
|
929
|
+
}).finally(() => {
|
|
930
|
+
M = null, Se = null;
|
|
931
|
+
}), M) : Promise.resolve()) : Promise.resolve();
|
|
932
|
+
}(ut, e).then(t).catch((e) => {}) : t();
|
|
933
|
+
}();
|
|
934
|
+
}, { flush: "post" }), b(() => [
|
|
935
|
+
_n.value,
|
|
936
|
+
P.value,
|
|
937
|
+
L.value
|
|
938
|
+
], (e, t) => D(null, [e, t], function* ([e, t, n], [r]) {
|
|
939
|
+
if (gn(), !t || !n || !R || !S.value || !A.value || e === r || !1 === h.stream && !1 !== h.loading) return;
|
|
940
|
+
let i = V;
|
|
941
|
+
if (i) {
|
|
942
|
+
try {
|
|
943
|
+
yield i;
|
|
944
|
+
} catch {}
|
|
945
|
+
if (F || !S.value) return;
|
|
946
|
+
}
|
|
947
|
+
try {
|
|
948
|
+
j.value = !1, A.value = !1, Ht(), Ut(), st(), yield se(), yield $(S.value);
|
|
949
|
+
} catch {
|
|
950
|
+
j.value = !1;
|
|
951
|
+
}
|
|
952
|
+
}), { flush: "post" });
|
|
953
|
+
let vn = b(() => [h.loading, L.value], (e, t) => D(null, [e, t], function* ([e, t], n) {
|
|
954
|
+
if (!t || e) return;
|
|
955
|
+
let i = n?.[0], a = i !== void 0 && !1 !== i;
|
|
956
|
+
yield se(), r(() => {
|
|
957
|
+
D(null, null, function* () {
|
|
958
|
+
try {
|
|
959
|
+
if (a && A.value) if (U.value && S.value) {
|
|
960
|
+
let e = V;
|
|
961
|
+
if (e) try {
|
|
962
|
+
yield e;
|
|
963
|
+
} catch {}
|
|
964
|
+
j.value = !1, A.value = !1, Ht(), Ut(), st(), S.value.replaceChildren(), yield se(), yield $(S.value);
|
|
965
|
+
} else rt(String(h.node.code ?? ""), T.value);
|
|
966
|
+
k.value || (O.value ? Y() : X()), vn();
|
|
967
|
+
} catch {}
|
|
968
|
+
});
|
|
969
|
+
});
|
|
970
|
+
}), {
|
|
971
|
+
immediate: !0,
|
|
972
|
+
flush: "post"
|
|
973
|
+
});
|
|
974
|
+
return de(() => {
|
|
975
|
+
Ht(), Ut(), ot();
|
|
976
|
+
}), (e, t) => vt.value ? (_(), ae(y(c), {
|
|
977
|
+
key: 0,
|
|
978
|
+
node: h.node,
|
|
979
|
+
loading: h.loading
|
|
980
|
+
}, null, 8, ["node", "loading"])) : (_(), p("div", {
|
|
981
|
+
key: 1,
|
|
982
|
+
ref_key: "container",
|
|
983
|
+
ref: ve,
|
|
984
|
+
style: ce($t.value),
|
|
985
|
+
class: g(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm", [{
|
|
986
|
+
"is-rendering": h.loading,
|
|
987
|
+
"is-dark": mn.value,
|
|
988
|
+
"is-diff": U.value,
|
|
989
|
+
"is-plain-text": be.value
|
|
990
|
+
}]]),
|
|
991
|
+
"data-markstream-code-block": "1",
|
|
992
|
+
"data-markstream-enhanced": j.value && !vt.value ? "true" : "false"
|
|
993
|
+
}, [
|
|
994
|
+
h.showHeader ? (_(), p("div", {
|
|
995
|
+
key: 0,
|
|
996
|
+
class: "code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",
|
|
997
|
+
style: ce(en.value)
|
|
998
|
+
}, [fe(e.$slots, "header-left", {}, () => [m("div", ke, [m("span", {
|
|
999
|
+
class: "icon-slot h-4 w-4 flex-shrink-0",
|
|
1000
|
+
innerHTML: Qt.value
|
|
1001
|
+
}, null, 8, Ae), m("div", je, [m("div", Me, pe(Xt.value), 1), Zt.value ? (_(), p("div", Ne, pe(Zt.value), 1)) : f("", !0)])])], !0), fe(e.$slots, "header-right", {}, () => [m("div", Pe, [
|
|
1002
|
+
U.value ? (_(), p("div", {
|
|
1003
|
+
key: 0,
|
|
1004
|
+
class: "code-diff-stats",
|
|
1005
|
+
"aria-label": pt.value
|
|
1006
|
+
}, [m("span", Ie, "-" + pe(W.value.removed), 1), m("span", Le, "+" + pe(W.value.added), 1)], 8, Fe)) : f("", !0),
|
|
1007
|
+
h.showCollapseButton ? (_(), p("button", {
|
|
1008
|
+
key: 1,
|
|
1009
|
+
type: "button",
|
|
1010
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1011
|
+
"aria-pressed": k.value,
|
|
1012
|
+
onClick: on,
|
|
1013
|
+
onMouseenter: t[0] ||= (e) => Z(e, k.value ? y(x)("common.expand") || "Expand" : y(x)("common.collapse") || "Collapse"),
|
|
1014
|
+
onFocus: t[1] ||= (e) => Z(e, k.value ? y(x)("common.expand") || "Expand" : y(x)("common.collapse") || "Collapse"),
|
|
1015
|
+
onMouseleave: Q,
|
|
1016
|
+
onBlur: Q
|
|
1017
|
+
}, [(_(), p("svg", {
|
|
1018
|
+
style: ce({ rotate: k.value ? "0deg" : "90deg" }),
|
|
1019
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1020
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1021
|
+
"aria-hidden": "true",
|
|
1022
|
+
role: "img",
|
|
1023
|
+
width: "1em",
|
|
1024
|
+
height: "1em",
|
|
1025
|
+
viewBox: "0 0 24 24",
|
|
1026
|
+
class: "w-3 h-3"
|
|
1027
|
+
}, [...t[18] ||= [m("path", {
|
|
1028
|
+
fill: "none",
|
|
1029
|
+
stroke: "currentColor",
|
|
1030
|
+
"stroke-linecap": "round",
|
|
1031
|
+
"stroke-linejoin": "round",
|
|
1032
|
+
"stroke-width": "2",
|
|
1033
|
+
d: "m9 18l6-6l-6-6"
|
|
1034
|
+
}, null, -1)]], 4))], 40, Re)) : f("", !0),
|
|
1035
|
+
h.showFontSizeButtons && h.enableFontSizeControl ? (_(), p(re, { key: 2 }, [
|
|
1036
|
+
m("button", {
|
|
1037
|
+
type: "button",
|
|
1038
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1039
|
+
disabled: !!Number.isFinite(q.value) && q.value <= 10,
|
|
1040
|
+
onClick: t[2] ||= (e) => function() {
|
|
1041
|
+
let e = Lt();
|
|
1042
|
+
q.value = Math.max(10, e - 1);
|
|
1043
|
+
}(),
|
|
1044
|
+
onMouseenter: t[3] ||= (e) => Z(e, y(x)("common.decrease") || "Decrease"),
|
|
1045
|
+
onFocus: t[4] ||= (e) => Z(e, y(x)("common.decrease") || "Decrease"),
|
|
1046
|
+
onMouseleave: Q,
|
|
1047
|
+
onBlur: Q
|
|
1048
|
+
}, [...t[19] ||= [m("svg", {
|
|
1049
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1050
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1051
|
+
"aria-hidden": "true",
|
|
1052
|
+
role: "img",
|
|
1053
|
+
width: "1em",
|
|
1054
|
+
height: "1em",
|
|
1055
|
+
viewBox: "0 0 24 24",
|
|
1056
|
+
class: "w-3 h-3"
|
|
1057
|
+
}, [m("path", {
|
|
1058
|
+
fill: "none",
|
|
1059
|
+
stroke: "currentColor",
|
|
1060
|
+
"stroke-linecap": "round",
|
|
1061
|
+
"stroke-linejoin": "round",
|
|
1062
|
+
"stroke-width": "2",
|
|
1063
|
+
d: "M5 12h14"
|
|
1064
|
+
})], -1)]], 40, ze),
|
|
1065
|
+
m("button", {
|
|
1066
|
+
type: "button",
|
|
1067
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1068
|
+
disabled: !St.value || q.value === K.value,
|
|
1069
|
+
onClick: t[5] ||= (e) => (Lt(), void (Number.isFinite(K.value) && (q.value = K.value))),
|
|
1070
|
+
onMouseenter: t[6] ||= (e) => Z(e, y(x)("common.reset") || "Reset"),
|
|
1071
|
+
onFocus: t[7] ||= (e) => Z(e, y(x)("common.reset") || "Reset"),
|
|
1072
|
+
onMouseleave: Q,
|
|
1073
|
+
onBlur: Q
|
|
1074
|
+
}, [...t[20] ||= [m("svg", {
|
|
1075
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1076
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1077
|
+
"aria-hidden": "true",
|
|
1078
|
+
role: "img",
|
|
1079
|
+
width: "1em",
|
|
1080
|
+
height: "1em",
|
|
1081
|
+
viewBox: "0 0 24 24",
|
|
1082
|
+
class: "w-3 h-3"
|
|
1083
|
+
}, [m("g", {
|
|
1084
|
+
fill: "none",
|
|
1085
|
+
stroke: "currentColor",
|
|
1086
|
+
"stroke-linecap": "round",
|
|
1087
|
+
"stroke-linejoin": "round",
|
|
1088
|
+
"stroke-width": "2"
|
|
1089
|
+
}, [m("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }), m("path", { d: "M3 3v5h5" })])], -1)]], 40, Be),
|
|
1090
|
+
m("button", {
|
|
1091
|
+
type: "button",
|
|
1092
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1093
|
+
disabled: !!Number.isFinite(q.value) && q.value >= 36,
|
|
1094
|
+
onClick: t[8] ||= (e) => function() {
|
|
1095
|
+
let e = Lt();
|
|
1096
|
+
q.value = Math.min(36, e + 1);
|
|
1097
|
+
}(),
|
|
1098
|
+
onMouseenter: t[9] ||= (e) => Z(e, y(x)("common.increase") || "Increase"),
|
|
1099
|
+
onFocus: t[10] ||= (e) => Z(e, y(x)("common.increase") || "Increase"),
|
|
1100
|
+
onMouseleave: Q,
|
|
1101
|
+
onBlur: Q
|
|
1102
|
+
}, [...t[21] ||= [m("svg", {
|
|
1103
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1104
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1105
|
+
"aria-hidden": "true",
|
|
1106
|
+
role: "img",
|
|
1107
|
+
width: "1em",
|
|
1108
|
+
height: "1em",
|
|
1109
|
+
viewBox: "0 0 24 24",
|
|
1110
|
+
class: "w-3 h-3"
|
|
1111
|
+
}, [m("path", {
|
|
1112
|
+
fill: "none",
|
|
1113
|
+
stroke: "currentColor",
|
|
1114
|
+
"stroke-linecap": "round",
|
|
1115
|
+
"stroke-linejoin": "round",
|
|
1116
|
+
"stroke-width": "2",
|
|
1117
|
+
d: "M5 12h14m-7-7v14"
|
|
1118
|
+
})], -1)]], 40, Ve)
|
|
1119
|
+
], 64)) : f("", !0),
|
|
1120
|
+
h.showCopyButton ? (_(), p("button", {
|
|
1121
|
+
key: 3,
|
|
1122
|
+
type: "button",
|
|
1123
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1124
|
+
"aria-label": C.value ? y(x)("common.copied") || "Copied" : y(x)("common.copy") || "Copy",
|
|
1125
|
+
onClick: nn,
|
|
1126
|
+
onMouseenter: t[11] ||= (e) => an(e),
|
|
1127
|
+
onFocus: t[12] ||= (e) => an(e),
|
|
1128
|
+
onMouseleave: Q,
|
|
1129
|
+
onBlur: Q
|
|
1130
|
+
}, [C.value ? (_(), p("svg", We, [...t[23] ||= [m("path", {
|
|
1131
|
+
fill: "none",
|
|
1132
|
+
stroke: "currentColor",
|
|
1133
|
+
"stroke-linecap": "round",
|
|
1134
|
+
"stroke-linejoin": "round",
|
|
1135
|
+
"stroke-width": "2",
|
|
1136
|
+
d: "M20 6L9 17l-5-5"
|
|
1137
|
+
}, null, -1)]])) : (_(), p("svg", Ue, [...t[22] ||= [m("g", {
|
|
1138
|
+
fill: "none",
|
|
1139
|
+
stroke: "currentColor",
|
|
1140
|
+
"stroke-linecap": "round",
|
|
1141
|
+
"stroke-linejoin": "round",
|
|
1142
|
+
"stroke-width": "2"
|
|
1143
|
+
}, [m("rect", {
|
|
1144
|
+
width: "14",
|
|
1145
|
+
height: "14",
|
|
1146
|
+
x: "8",
|
|
1147
|
+
y: "8",
|
|
1148
|
+
rx: "2",
|
|
1149
|
+
ry: "2"
|
|
1150
|
+
}), m("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })], -1)]]))], 40, He)) : f("", !0),
|
|
1151
|
+
h.showExpandButton ? (_(), p("button", {
|
|
1152
|
+
key: 4,
|
|
1153
|
+
type: "button",
|
|
1154
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1155
|
+
"aria-pressed": O.value,
|
|
1156
|
+
onClick: t[13] ||= (e) => function(e) {
|
|
1157
|
+
if (O.value = !O.value, e && tn.value) {
|
|
1158
|
+
let t = rn(e);
|
|
1159
|
+
t && o(t, O.value ? x("common.collapse") || "Collapse" : x("common.expand") || "Expand", "top", !1, void 0, h.isDark);
|
|
1160
|
+
}
|
|
1161
|
+
let t = U.value ? B() : z(), n = S.value;
|
|
1162
|
+
t && n && (O.value ? (cn(!0), n.style.maxHeight = "none", n.style.overflow = "visible", Y()) : (cn(!1), n.style.overflow = "auto", X()));
|
|
1163
|
+
}(e),
|
|
1164
|
+
onMouseenter: t[14] ||= (e) => Z(e, O.value ? y(x)("common.collapse") || "Collapse" : y(x)("common.expand") || "Expand"),
|
|
1165
|
+
onFocus: t[15] ||= (e) => Z(e, O.value ? y(x)("common.collapse") || "Collapse" : y(x)("common.expand") || "Expand"),
|
|
1166
|
+
onMouseleave: Q,
|
|
1167
|
+
onBlur: Q
|
|
1168
|
+
}, [O.value ? (_(), p("svg", Ke, [...t[24] ||= [m("path", {
|
|
1169
|
+
fill: "none",
|
|
1170
|
+
stroke: "currentColor",
|
|
1171
|
+
"stroke-linecap": "round",
|
|
1172
|
+
"stroke-linejoin": "round",
|
|
1173
|
+
"stroke-width": "2",
|
|
1174
|
+
d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"
|
|
1175
|
+
}, null, -1)]])) : (_(), p("svg", qe, [...t[25] ||= [m("path", {
|
|
1176
|
+
fill: "none",
|
|
1177
|
+
stroke: "currentColor",
|
|
1178
|
+
"stroke-linecap": "round",
|
|
1179
|
+
"stroke-linejoin": "round",
|
|
1180
|
+
"stroke-width": "2",
|
|
1181
|
+
d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"
|
|
1182
|
+
}, null, -1)]]))], 40, Ge)) : f("", !0),
|
|
1183
|
+
qt.value && h.showPreviewButton ? (_(), p("button", {
|
|
1184
|
+
key: 5,
|
|
1185
|
+
type: "button",
|
|
1186
|
+
class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
|
|
1187
|
+
"aria-label": y(x)("common.preview") || "Preview",
|
|
1188
|
+
onClick: sn,
|
|
1189
|
+
onMouseenter: t[16] ||= (e) => Z(e, y(x)("common.preview") || "Preview"),
|
|
1190
|
+
onFocus: t[17] ||= (e) => Z(e, y(x)("common.preview") || "Preview"),
|
|
1191
|
+
onMouseleave: Q,
|
|
1192
|
+
onBlur: Q
|
|
1193
|
+
}, [...t[26] ||= [m("svg", {
|
|
1194
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1195
|
+
width: "12",
|
|
1196
|
+
height: "12",
|
|
1197
|
+
viewBox: "0 0 24 24"
|
|
1198
|
+
}, [m("g", {
|
|
1199
|
+
fill: "currentColor",
|
|
1200
|
+
"fill-rule": "evenodd",
|
|
1201
|
+
"clip-rule": "evenodd"
|
|
1202
|
+
}, [m("path", { d: "M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496" }), m("path", { d: "M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23" })])], -1)]], 40, Je)) : f("", !0)
|
|
1203
|
+
])], !0)], 4)) : f("", !0),
|
|
1204
|
+
he(m("div", Ye, [m("div", {
|
|
1205
|
+
ref_key: "codeEditor",
|
|
1206
|
+
ref: S,
|
|
1207
|
+
class: g(["code-editor-container", [n.stream ? "" : "code-height-placeholder", { "is-hidden": bt.value }]]),
|
|
1208
|
+
style: ce(kt.value)
|
|
1209
|
+
}, null, 6), bt.value ? (_(), ae(y(c), {
|
|
1210
|
+
key: 0,
|
|
1211
|
+
class: g(["code-pre-fallback", { "is-wrap": yt.value }]),
|
|
1212
|
+
style: ce(Dt.value),
|
|
1213
|
+
node: h.node
|
|
1214
|
+
}, null, 8, [
|
|
1215
|
+
"class",
|
|
1216
|
+
"style",
|
|
1217
|
+
"node"
|
|
1218
|
+
])) : f("", !0)], 512), [[me, !(k.value || !n.stream && n.loading)]]),
|
|
1219
|
+
xt.value && !_e.value && qt.value && w.value === "html" ? (_(), ae(xe, {
|
|
1220
|
+
key: 1,
|
|
1221
|
+
code: h.node.code,
|
|
1222
|
+
"is-dark": h.isDark,
|
|
1223
|
+
"on-close": () => xt.value = !1
|
|
1224
|
+
}, null, 8, [
|
|
1225
|
+
"code",
|
|
1226
|
+
"is-dark",
|
|
1227
|
+
"on-close"
|
|
1228
|
+
])) : f("", !0),
|
|
1229
|
+
he(m("div", {
|
|
1230
|
+
class: "code-loading-placeholder",
|
|
1231
|
+
style: ce(At.value)
|
|
1232
|
+
}, [fe(e.$slots, "loading", {
|
|
1233
|
+
loading: n.loading,
|
|
1234
|
+
stream: n.stream
|
|
1235
|
+
}, () => [t[27] ||= m("div", { class: "loading-skeleton" }, [
|
|
1236
|
+
m("div", { class: "skeleton-line" }),
|
|
1237
|
+
m("div", { class: "skeleton-line" }),
|
|
1238
|
+
m("div", { class: "skeleton-line short" })
|
|
1239
|
+
], -1)], !0)], 4), [[me, !n.stream && n.loading]]),
|
|
1240
|
+
m("span", Xe, pe(C.value ? y(x)("common.copied") || "Copied" : ""), 1)
|
|
1241
|
+
], 14, Oe));
|
|
1242
|
+
}
|
|
1243
|
+
}), [["__scopeId", "data-v-1a55f98f"]]);
|
|
1244
|
+
//#endregion
|
|
1245
|
+
export { P as default };
|