netstar-ai-chat 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentChat/index.vue.d.ts +47 -0
- package/dist/ChatPanel/index.vue.d.ts +10 -0
- package/dist/{CodeBlockNode-B0lPtyct.cjs → CodeBlockNode-BiEo0mfb.cjs} +1 -1
- package/dist/{CodeBlockNode-CnaZ3zyB.js → CodeBlockNode-fkQdG2Dp.js} +12 -9
- package/dist/{Serializer-CXJ0fE5z.js → Serializer-Bd28KeA_.js} +1 -1
- package/dist/Serializer-CbpcO42Y.cjs +1 -0
- package/dist/{abnfDiagram-VRR7QNED-D9U__qNu.js → abnfDiagram-N423BO3Z-JndGjjcj.js} +8 -8
- package/dist/abnfDiagram-N423BO3Z-vFU9ceGj.cjs +1 -0
- package/dist/{angular-html-CM15CIR-.js → angular-html-CP4KtRtx.js} +2 -2
- package/dist/{angular-html-CtqN3w77.cjs → angular-html-D6tKUmHc.cjs} +1 -1
- package/dist/{angular-ts-D_WjBMhi.js → angular-ts-CqlVBOgQ.js} +2 -2
- package/dist/{angular-ts-BZbyXOyX.cjs → angular-ts-c9IUA8Lo.cjs} +1 -1
- package/dist/{apl-CFUDRIMH.cjs → apl-ClQFG2Tv.cjs} +1 -1
- package/dist/{apl-DEY32kA8.js → apl-DuFynaTl.js} +5 -5
- package/dist/{arc-BxwVc1OP.js → arc-BVVlzg5V.js} +2 -2
- package/dist/{arc-DcUn9_NX.cjs → arc-DMVGqYSZ.cjs} +1 -1
- package/dist/architecture-TIHT7OUA-X_t68aPM.js +3 -0
- package/dist/architecture-TIHT7OUA-j77Krh12.cjs +1 -0
- package/dist/architectureDiagram-T3A2C74G-BtGMEN_i.cjs +36 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-CmcjwoSX.js → architectureDiagram-T3A2C74G-ClWHqJ59.js} +279 -263
- package/dist/{astro-Bk1s2QoB.js → astro-BJJHaLUW.js} +4 -4
- package/dist/{astro-BApYg9cK.cjs → astro-BmQBjHa6.cjs} +1 -1
- package/dist/{blade-aYJa4e4Z.js → blade-BmsXLHCL.js} +6 -6
- package/dist/{blade-s0X0QSRt.cjs → blade-CDJp3X4P.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-Be_G9lhQ.cjs → blockDiagram-VBNYF7ZC-CTYnHBPr.cjs} +5 -5
- package/dist/{blockDiagram-677ZJIJ3-CdDyh7iW.js → blockDiagram-VBNYF7ZC-nYKykx0V.js} +34 -37
- package/dist/{c-DOHa0HhF.js → c-DnGAZpYa.js} +1 -1
- package/dist/{c-CtSegEhe.cjs → c-PYXjVOfL.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-CH8ko4ZC.js → c4Diagram-5PPSVZJV-BEEYmJCu.js} +18 -26
- package/dist/c4Diagram-5PPSVZJV-CBbpRXmI.cjs +10 -0
- package/dist/{channel-BnB95kqx.js → channel-CVizimVB.js} +1 -1
- package/dist/channel-N6bnrywp.cjs +1 -0
- package/dist/{chunk-32BRIVSS-DigYn36E.cjs → chunk-2GRJ4B5K-C7loPaTV.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-CT33v5on.js → chunk-2GRJ4B5K-Dy9HIzZX.js} +5 -5
- package/dist/{chunk-2Q5K7J3B-CINvUK-A.js → chunk-2Q5K7J3B-C3WfnuyI.js} +2 -2
- package/dist/{chunk-HOUHSVGY-JI15eS6d.js → chunk-4I5QYGJK-BtvSpyb8.js} +8 -10
- package/dist/{chunk-HOUHSVGY-CjxgTQ36.cjs → chunk-4I5QYGJK-CFqyc4KG.cjs} +1 -1
- package/dist/chunk-5RXB4S5H-SUr9xK17.cjs +231 -0
- package/dist/{chunk-EX3LRPZG-BiTMJTUd.js → chunk-5RXB4S5H-lljZm0gM.js} +44 -48
- package/dist/{chunk-5VM5RSS4-Dnx15xMv.js → chunk-5VM5RSS4-BsUXY5k9.js} +2 -2
- package/dist/{chunk-MOJQB5TN-Dntj9mkN.js → chunk-6Q2QTUOP-CWr1oda1.js} +5 -5
- package/dist/{chunk-MOJQB5TN-DxQ0ngzZ.cjs → chunk-6Q2QTUOP-Sa_r5V8A.cjs} +2 -2
- package/dist/{chunk-7BUUIJ7U-B018BbRy.js → chunk-7BUUIJ7U-CZdUK2qY.js} +2 -2
- package/dist/chunk-7Z6QIM7H-C3XeoMp3.cjs +10 -0
- package/dist/{chunk-52WLFC77-2RH-0ekb.js → chunk-7Z6QIM7H-C_jfb3B1.js} +18 -17
- package/dist/{chunk-V7JOEXUC-U6Ydcbd7.cjs → chunk-GF5L2VYU-CeHsMszb.cjs} +4 -4
- package/dist/{chunk-V7JOEXUC-Cxyc-auv.js → chunk-GF5L2VYU-DLaI10_n.js} +17 -17
- package/dist/chunk-I66GZJ75-BDUxItpV.cjs +127 -0
- package/dist/{chunk-WYO6CB5R-DDiVNnZS.js → chunk-I66GZJ75-BNSy3XWz.js} +390 -372
- package/dist/{chunk-PUDLZKDR-CS3U_4cS.js → chunk-JQJVKLGR-C_VQ4AgZ.js} +29 -36
- package/dist/chunk-JQJVKLGR-CrDAb5mK.cjs +156 -0
- package/dist/{chunk-JWPE2WC7-Ch0jmUXM.js → chunk-JWPE2WC7-B8JIODrM.js} +2 -2
- package/dist/{chunk-VR4S4FIN-DmiT7c_4.js → chunk-KBJHAD2P-BdpGlGx1.js} +4 -4
- package/dist/{chunk-VR4S4FIN-C6Lfkqc-.cjs → chunk-KBJHAD2P-_xOeFHfz.cjs} +1 -1
- package/dist/{chunk-KEIR6QF5-Jxtjc4VW.js → chunk-KEIR6QF5-CBRFdyRI.js} +210 -183
- package/dist/{chunk-KEIR6QF5-CptWNl3y.cjs → chunk-KEIR6QF5-Dh284Jm2.cjs} +24 -24
- package/dist/chunk-NSK5VX7P-C_PJ3ww9.cjs +2 -0
- package/dist/{chunk-ICXQ74PX-AB0YYrCz.js → chunk-NSK5VX7P-Cg-mIjHv.js} +30 -70
- package/dist/{chunk-ZGVPDNZ5-vpVwNpxZ.js → chunk-QR6OTTB3-BMTg_I07.js} +15 -15
- package/dist/{chunk-ZGVPDNZ5-BhVWFiJ2.cjs → chunk-QR6OTTB3-DPDdGEmd.cjs} +2 -2
- package/dist/{chunk-RYQCIY6F-ChmcJMzX.js → chunk-RYQCIY6F-BJDqB4MQ.js} +5 -5
- package/dist/chunk-RYQCIY6F-BT1B7L4b.cjs +1 -0
- package/dist/{chunk-OGEWGWER-CbjcRJ3r.cjs → chunk-UBXNYLIW-CWgdAQhs.cjs} +1 -1
- package/dist/{chunk-OGEWGWER-CHi7zWbV.js → chunk-UBXNYLIW-DvYoXEEc.js} +6 -6
- package/dist/{chunk-C7G6YPKG-BSuHkazO.cjs → chunk-W5SLKNZC-BzrD_Znt.cjs} +1 -1
- package/dist/{chunk-C7G6YPKG-DQxf-Xa1.js → chunk-W5SLKNZC-S0uwchwF.js} +3 -3
- package/dist/{chunk-Q4XR5HBZ-DaCPmvF4.cjs → chunk-WRU74C26-C1yjmVHq.cjs} +6 -6
- package/dist/{chunk-Q4XR5HBZ-Cj6aNu7P.js → chunk-WRU74C26-C9w0L07k.js} +25 -19
- package/dist/{chunk-XXDRQBXY-D06qZOoL.cjs → chunk-XXDRQBXY-D4rUhedO.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-uYLfFt0V.js → chunk-XXDRQBXY-DTsX8CjX.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-QdJ4V9rh.js → chunk-Y2CYZVJY-DO9UHHon.js} +1 -1
- package/dist/classDiagram-JCYQIIEL-C9GcVtAZ.cjs +1 -0
- package/dist/classDiagram-JCYQIIEL-CNjrNAG_.js +30 -0
- package/dist/classDiagram-v2-OCEON4UE-C9GcVtAZ.cjs +1 -0
- package/dist/classDiagram-v2-OCEON4UE-CN9GO97w.js +30 -0
- package/dist/{cobol-B6D1w50i.cjs → cobol-B9IMIMww.cjs} +1 -1
- package/dist/{cobol-f_8vDiHm.js → cobol-Cck32Z7E.js} +2 -2
- package/dist/{coffee-D2SRpDoy.js → coffee-B9xWXBiV.js} +1 -1
- package/dist/{coffee-CIzsduL9.cjs → coffee-BXb8hRGj.cjs} +1 -1
- package/dist/cose-bilkent-JH36ORCC-BKkNehJF.cjs +1 -0
- package/dist/{cose-bilkent-JH36ORCC-OYg86qZi.js → cose-bilkent-JH36ORCC-C8fIUcer.js} +41 -46
- package/dist/{cpp-BWBwL8H2.js → cpp-CAbdEjQC.js} +4 -4
- package/dist/{cpp-9IaFKtqm.cjs → cpp-CYRk2Se7.cjs} +1 -1
- package/dist/{crystal-Bu5wFOgG.cjs → crystal-BCcUGd7c.cjs} +1 -1
- package/dist/{crystal-DZ0RRcQB.js → crystal-UGXacr2x.js} +6 -6
- package/dist/{css-CARKKeVZ.js → css-CYuMSD0I.js} +1 -1
- package/dist/{css-Dedc30a-.cjs → css-Hh1rVSqV.cjs} +1 -1
- package/dist/cynefin-VYW2F7L2-B_8h99DI.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DGqg0-Yk.js +3 -0
- package/dist/{cynefinDiagram-TSTJHNR4-BWjDLuTh.js → cynefinDiagram-MW4NZA55-BACDb7MB.js} +26 -20
- package/dist/cynefinDiagram-MW4NZA55-CwU7KQBE.cjs +62 -0
- package/dist/cytoscape.esm-BLoMLhma.cjs +321 -0
- package/dist/{cytoscape.esm-2_5VU6EM.js → cytoscape.esm-Q58mS1OC.js} +170 -212
- package/dist/{dagre-BjEXkvEk.js → dagre-CCwWjZoa.js} +20 -22
- package/dist/dagre-Ci0jzHxG.cjs +1 -0
- package/dist/{dagre-VKFMJZFB-WhWrlI2l.cjs → dagre-VZM6K2ZE-S5q711wW.cjs} +2 -2
- package/dist/{dagre-VKFMJZFB-M6JAXH15.js → dagre-VZM6K2ZE-gjdL2dR1.js} +16 -16
- package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
- package/dist/{defaultLocale-aSMWOJHq.js → defaultLocale-yzzuPw6P.js} +1 -4
- package/dist/{diagram-OA4YK3LP-BYFD5IwC.js → diagram-7IWD3JNH-BOKbMyXU.js} +15 -15
- package/dist/{diagram-OA4YK3LP-18F3dOdf.cjs → diagram-7IWD3JNH-T6_jKJM6.cjs} +3 -3
- package/dist/{diagram-FQU43EPY--cJ9UrFx.js → diagram-B4RE2ZJO-BoYLq6ix.js} +8 -8
- package/dist/{diagram-FQU43EPY-CqmrQQRo.cjs → diagram-B4RE2ZJO-DRqbcXTo.cjs} +1 -1
- package/dist/diagram-LBJQPF4R-BHyFQZp0.cjs +24 -0
- package/dist/{diagram-NH7WQ7WH-Corf-D4W.js → diagram-LBJQPF4R-jQ-6kFA4.js} +12 -12
- package/dist/diagram-Q27KOJAE-BJ0sUHaM.cjs +24 -0
- package/dist/{diagram-G47NLZAW-D6By1xr0.js → diagram-Q27KOJAE-C3DO_MqY.js} +65 -63
- package/dist/diagram-UB23O5K3-B5YQvwlp.cjs +41 -0
- package/dist/{diagram-WEI45ONY-R0dgnQK1.js → diagram-UB23O5K3-BYS8mKx3.js} +68 -68
- package/dist/{dist-BxWvDA4U.js → dist-BP2me-br.js} +1 -1
- package/dist/{dist-BwfWgJVK.cjs → dist-C6c5Tc_B.cjs} +3 -3
- package/dist/{dist-BDCICxM4.js → dist-DeuF2e_b.js} +6 -6
- package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-D-LQt0VK.js → ebnfDiagram-BXEA7PRR-B8eo-wOl.js} +8 -8
- package/dist/ebnfDiagram-BXEA7PRR-CLJVQ0oe.cjs +1 -0
- package/dist/{edge-DewrpuZI.js → edge-5ocOhMmU.js} +3 -3
- package/dist/{edge-DPKc6QBW.cjs → edge-Kn0XOvoC.cjs} +1 -1
- package/dist/{elixir-Bz8PD4t1.cjs → elixir-CX6uaB6Z.cjs} +1 -1
- package/dist/{elixir-BHncl6yR.js → elixir-DADeCz3h.js} +1 -1
- package/dist/{elm-DQTVghsR.js → elm-BMyInBzl.js} +1 -1
- package/dist/{elm-DFucj7BB.cjs → elm-D5P013sV.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-C3GAIY0f.js → erDiagram-JOGREHBK-DwnkLeUK.js} +26 -26
- package/dist/{erDiagram-Q63AITRT-X2RNGOXE.cjs → erDiagram-JOGREHBK-sHagZSQi.cjs} +3 -3
- package/dist/{erb-BrUkDVI_.cjs → erb-B5-jF3vr.cjs} +1 -1
- package/dist/{erb-BCBUKD2W.js → erb-CSehDyWj.js} +2 -2
- package/dist/eventmodeling-45OFAUF4-DD3YRwq4.js +3 -0
- package/dist/eventmodeling-45OFAUF4-Y0V6_lJO.cjs +1 -0
- package/dist/{exports-DpKiJKdc.cjs → exports-DLbRciqS.cjs} +21 -21
- package/dist/{exports-DxD_H8QF.js → exports-DXxBQUbT.js} +101 -108
- package/dist/flowDiagram-UKHOOZJN-Cxs7R3Xl.cjs +1 -0
- package/dist/flowDiagram-UKHOOZJN-DddVUlee.js +16 -0
- package/dist/{ganttDiagram-NO4QXBWP-bcp9layO.js → ganttDiagram-PKOTCBZU-CWhzkgzT.js} +22 -34
- package/dist/{ganttDiagram-NO4QXBWP-B5CW5uPR.cjs → ganttDiagram-PKOTCBZU-DCpSlcK2.cjs} +3 -3
- package/dist/{git-rebase-BUotlrNG.js → git-rebase-CKlNPkJl.js} +1 -1
- package/dist/{git-rebase-bioQjlhA.cjs → git-rebase-GytoPorV.cjs} +1 -1
- package/dist/gitGraph-TEB2WS4Q-Cy5ji9-8.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DFfxqaSI.js +3 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-QCUZyW5e.js → gitGraphDiagram-DS77QQ5N-3IleztkW.js} +13 -11
- package/dist/{gitGraphDiagram-IHSO6WYX-DpKBzrV-.cjs → gitGraphDiagram-DS77QQ5N-DzkfqXfX.cjs} +3 -3
- package/dist/{glimmer-js-Ciof3QL9.js → glimmer-js-C7TgrRuY.js} +4 -4
- package/dist/{glimmer-js-DiIpfAHi.cjs → glimmer-js-h0qD_5MX.cjs} +1 -1
- package/dist/{glimmer-ts-D7kaiXm8.cjs → glimmer-ts-B7HJccSY.cjs} +1 -1
- package/dist/{glimmer-ts-BGK6t0VF.js → glimmer-ts-ChgYy19J.js} +4 -4
- package/dist/{glsl-QqXZ78Kg.cjs → glsl-CJOWBrBZ.cjs} +1 -1
- package/dist/{glsl-BK7MJn4u.js → glsl-CtC2dZjn.js} +2 -2
- package/dist/{graphql--1t261Yk.js → graphql-BDVYTzaA.js} +5 -5
- package/dist/{graphql-wVo4PHpT.cjs → graphql-DbaZ5E9v.cjs} +1 -1
- package/dist/{hack-C4FKqOSK.cjs → hack-DLeXdTDi.cjs} +1 -1
- package/dist/{hack-DK3t1k__.js → hack-FKQXCguc.js} +2 -2
- package/dist/{haml-B3VLhRsZ.js → haml-Bl8IkHQS.js} +3 -3
- package/dist/{haml-CQ-lzphw.cjs → haml-CIoQr1Rq.cjs} +1 -1
- package/dist/{handlebars-_qNUzqAO.js → handlebars-C4puN0KB.js} +4 -4
- package/dist/{handlebars-POWurPLW.cjs → handlebars-Dgtj2obB.cjs} +1 -1
- package/dist/{html-mo6ldvys.cjs → html-C8RKJaR7.cjs} +1 -1
- package/dist/{html-D_OBWe7R.js → html-DvYikh74.js} +3 -3
- package/dist/{html-derivative-Dq3Sh7mm.cjs → html-derivative-C5x4pOgW.cjs} +1 -1
- package/dist/{html-derivative-XT6VOD81.js → html-derivative-jvhmv78g.js} +2 -2
- package/dist/{http-C2taPV9U.cjs → http-BNtK992G.cjs} +1 -1
- package/dist/{http-CdMPSPdd.js → http-peuUSn5r.js} +4 -4
- package/dist/{imba-BMaY4ENg.cjs → imba-ByEqHQu7.cjs} +1 -1
- package/dist/{imba-B_ww4ZTP.js → imba-xtzn-dMn.js} +1 -1
- package/dist/index.cjs +45 -45
- package/dist/index.mjs +4284 -4206
- package/dist/{index2-_zHc6SK_.cjs → index2-B7zEV3tm.cjs} +1 -1
- package/dist/{index2-BSr7S0C5.js → index2-BFXd0cs5.js} +2 -2
- package/dist/{index3-D_jj1NKp.cjs → index3-Bv-3sYKx.cjs} +1 -1
- package/dist/{index3-CyGC1was.js → index3-DSh4rSfV.js} +2 -2
- package/dist/{index4-D5rsJ0_Z.js → index4-BlqAYdMn.js} +2 -2
- package/dist/{index4-BHfGnR2u.cjs → index4-CJtiDoir.cjs} +1 -1
- package/dist/{index5-Bo_RL0c2.js → index5-B9dHRUmE.js} +2 -2
- package/dist/{index5-BnTHeY1i.cjs → index5-DpuItHzm.cjs} +1 -1
- package/dist/{index6-Cm4WSXqx.cjs → index6-7bpEn1AY.cjs} +1 -1
- package/dist/{index6-DQjYhTGp.js → index6-B8vZCAS9.js} +2 -2
- package/dist/index7-B4Sz-LB0.cjs +1 -0
- package/dist/index7-sVDbViM2.js +2 -0
- package/dist/info-DKCQHKI2-I-Uh7WUc.js +3 -0
- package/dist/info-DKCQHKI2-N6UOyvdd.cjs +1 -0
- package/dist/{infoDiagram-FWYZ7A6U-Dlkyygyj.js → infoDiagram-6WML65LV-DHozf9LU.js} +7 -7
- package/dist/infoDiagram-6WML65LV-DlAI26Z-.cjs +2 -0
- package/dist/init-BJdqMO10.cjs +1 -0
- package/dist/{init-Co4dhKfe.js → init-sjaVZO3f.js} +1 -3
- package/dist/{ishikawaDiagram-FXEZZL3T-f63Pa_V4.js → ishikawaDiagram-WSZJBQD7-DijAew3S.js} +14 -14
- package/dist/{ishikawaDiagram-FXEZZL3T-BdQz8lKG.cjs → ishikawaDiagram-WSZJBQD7-Dx9ZeK7Y.cjs} +3 -3
- package/dist/{java-CCeor0rw.js → java-B5jUFklh.js} +1 -1
- package/dist/{java-DtOeEWAB.cjs → java-BT022kMT.cjs} +1 -1
- package/dist/{javascript-1Zv2m4qT.cjs → javascript-BN_bksz8.cjs} +1 -1
- package/dist/{javascript-Bx27vxbw.js → javascript-TLg73zjR.js} +1 -1
- package/dist/{jinja-Bo4OY5rp.cjs → jinja-CVW6pnIB.cjs} +1 -1
- package/dist/{jinja-DUV-rjqE.js → jinja-xQUShZio.js} +1 -1
- package/dist/{jison-lY_a1uD8.js → jison-D7hqMe6w.js} +1 -1
- package/dist/{jison-BHS26PqW.cjs → jison-DVfOpxch.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DUvZexNx.cjs → journeyDiagram-NVQOT4AX-DE4r0Amf.cjs} +3 -3
- package/dist/{journeyDiagram-5HDEW3XC-CH7i7jBs.js → journeyDiagram-NVQOT4AX-DfhSp0lj.js} +14 -14
- package/dist/{json-As0Z6gXq.js → json-C7wyeiSZ.js} +1 -1
- package/dist/{json-B31_sYlO.cjs → json-CvKHGkeV.cjs} +1 -1
- package/dist/{jsx-CHdPoawR.cjs → jsx-DJC5ljSP.cjs} +1 -1
- package/dist/{jsx-DcWc-BUA.js → jsx-DLqt8KX5.js} +1 -1
- package/dist/{julia-JllIpLrt.js → julia-B_5lUye7.js} +4 -4
- package/dist/{julia-A2t8dw8p.cjs → julia-bT6If7Zt.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-CgIhk6Nq.cjs → kanban-definition-27J2QSJJ-BozC4nTU.cjs} +11 -11
- package/dist/{kanban-definition-HUTT4EX6-CYsxErx1.js → kanban-definition-27J2QSJJ-DKqVjPOs.js} +32 -33
- package/dist/{katex-B2yUJbSv.cjs → katex-C3HARzxn.cjs} +3 -3
- package/dist/{katex-DYYjh8th.js → katex-DaXnSeOD.js} +58 -50
- package/dist/{languageIconExtended-D3NyoQsF.js → languageIconExtended-BURAe7Bs.js} +1 -1
- package/dist/{latex-DPkqFaSl.cjs → latex-Dw2BNEcT.cjs} +1 -1
- package/dist/{latex-B4owy79D.js → latex-UCZ19R_Y.js} +1 -1
- package/dist/{line-CuOvmG3r.cjs → line-BpqQlqfl.cjs} +1 -1
- package/dist/{line-DDlPSVXI.js → line-D-vhKWTB.js} +2 -2
- package/dist/{linear-D5gAG4Dc.js → linear-BVsZkHRv.js} +4 -6
- package/dist/{linear-Cl2-QuPP.cjs → linear-Bbbtno0t.cjs} +1 -1
- package/dist/{liquid-DOhZfMRk.cjs → liquid-DXo4qJql.cjs} +1 -1
- package/dist/{liquid-DbDSSGUn.js → liquid-DzatW0ay.js} +4 -4
- package/dist/{lua-BWV9zmiO.js → lua-DwblWn5L.js} +2 -2
- package/dist/{lua-BZylxbuX.cjs → lua-P75TunwS.cjs} +1 -1
- package/dist/{marko-9qP7O73P.js → marko-DFHvqwm6.js} +3 -3
- package/dist/{marko-CkDNu79_.cjs → marko-mpZRBVy7.cjs} +1 -1
- package/dist/{mdc-DixMyBlq.cjs → mdc-652lVXPb.cjs} +1 -1
- package/dist/{mdc-D8ytkkcj.js → mdc-n1-MSRs8.js} +2 -2
- package/dist/{mermaid-parser.core-C7Y1U2dG.js → mermaid-parser.core-Chxs-uSe.js} +16 -16
- package/dist/{mermaid-parser.core-vu0vFLu5.cjs → mermaid-parser.core-D6fj1_in.cjs} +2 -2
- package/dist/mermaid.core-BsKJAtkK.js +2041 -0
- package/dist/mermaid.core-CEF55Yh-.cjs +41 -0
- package/dist/{mhchem-DkcK-87v.js → mhchem-BNKQuVpq.js} +5 -3
- package/dist/mhchem-LXfFS6t8.cjs +1 -0
- package/dist/{mindmap-definition-LN4V7U3C-D6xLNNgR.js → mindmap-definition-FAOFIHXS-D-RmzLeY.js} +27 -29
- package/dist/{mindmap-definition-LN4V7U3C-CSY7pOww.cjs → mindmap-definition-FAOFIHXS-_88FjM2B.cjs} +4 -4
- package/dist/{nginx-DFfEIEnK.cjs → nginx-93BtKDRt.cjs} +1 -1
- package/dist/{nginx-8x8qY3Vr.js → nginx-Ba-e-LVJ.js} +1 -1
- package/dist/{nim-BIbchMrJ.cjs → nim-BOp7LaJt.cjs} +1 -1
- package/dist/{nim-nIS1y_GA.js → nim-DK5m3Boi.js} +6 -6
- package/dist/{ordinal-CUPR-p0T.cjs → ordinal-Bm_chml2.cjs} +1 -1
- package/dist/{ordinal-95c16pGC.js → ordinal-CNQzPcrr.js} +1 -1
- package/dist/packet-7NZHBO7P-BPMwXhpd.cjs +1 -0
- package/dist/packet-7NZHBO7P-BqtuXBkT.js +3 -0
- package/dist/{path-Kklx0M1v.cjs → path-C2lX-pBY.cjs} +1 -1
- package/dist/{path-BECm07xX.js → path-CqWAdh69.js} +4 -7
- package/dist/pegDiagram-VL7TDLO6-1YeyHKFt.cjs +1 -0
- package/dist/{pegDiagram-2B236MQR-nh8oCBKX.js → pegDiagram-VL7TDLO6-Bx4EG5Db.js} +8 -8
- package/dist/{perl-Caha11sj.js → perl-DHF82Q0q.js} +5 -5
- package/dist/{perl-B32vckzd.cjs → perl-Hmvv48CC.cjs} +1 -1
- package/dist/{php-BZdcwfk-.cjs → php-Bi3_0Awp.cjs} +1 -1
- package/dist/{php-Dd_dF-AL.js → php-Q3BmKhqZ.js} +6 -6
- package/dist/pie-RZYD4A2V-DlCUKOTx.js +3 -0
- package/dist/pie-RZYD4A2V-VxcV7FLD.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-NWcPYOXw.js → pieDiagram-7S7Q4E2Y-B9Uken-E.js} +19 -21
- package/dist/{pieDiagram-ENE6RG2P-DSHG7_jm.cjs → pieDiagram-7S7Q4E2Y-CZJz0UZN.cjs} +2 -2
- package/dist/{pug-CQRIElQa.cjs → pug-BL72ayHx.cjs} +1 -1
- package/dist/{pug-PKxYWb_o.js → pug-CyAakTQ9.js} +3 -3
- package/dist/{qml-znAETRGB.js → qml-cGzJasFx.js} +1 -1
- package/dist/{qml-DGggscta.cjs → qml-uOa57eol.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-CQX2-mVc.cjs → quadrantDiagram-CIZ2JOQS-CvDNLuc7.cjs} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-BfWkMzGv.js → quadrantDiagram-CIZ2JOQS-Ziu6Q-OO.js} +11 -11
- package/dist/{r-VgF6jsMr.cjs → r-2vHHeKZk.cjs} +1 -1
- package/dist/{r-Q1Syx2NF.js → r-Ccx08Q0y.js} +1 -1
- package/dist/radar-I7S5WNFK-CSJOj6af.cjs +1 -0
- package/dist/radar-I7S5WNFK-DM9ntEL-.js +3 -0
- package/dist/railroad-3IZDKUUU-CIX182iB.js +3 -0
- package/dist/railroad-3IZDKUUU-cXMvOxyU.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-DgdG33KN.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-Dh7sXc1_.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-BtJQqsOl.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-Bu9r3k3M.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6-BosjunZU.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6-zJLWmR4c.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-96iI9HI1.js → railroadDiagram-AXF67PYL-C3BqhBUp.js} +8 -8
- package/dist/railroadDiagram-AXF67PYL-CpwMSrUb.cjs +1 -0
- package/dist/{razor-ClXepwCg.cjs → razor-CPYo0VHl.cjs} +1 -1
- package/dist/{razor-DoIrK7wH.js → razor-ClqKNjUN.js} +1 -1
- package/dist/{regexp-CjwGKeJO.cjs → regexp-C1T62VCC.cjs} +1 -1
- package/dist/{regexp-CjKnir1L.js → regexp-DJF5K1T4.js} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-CyIh331z.js → requirementDiagram-LRYGKXZP-Bs_hOIt7.js} +21 -21
- package/dist/{requirementDiagram-TGXJPOKE-D5H_p3Ks.cjs → requirementDiagram-LRYGKXZP-KQnv9BcH.cjs} +3 -3
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
- package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-BcC7KgGw.cjs} +1 -1
- package/dist/{rough.esm-B7woRVjF.js → rough.esm-D1ibUQD-.js} +1 -1
- package/dist/{rst-Ct-G6CIi.js → rst-DG_VVMhC.js} +6 -6
- package/dist/{rst-9SsxKThC.cjs → rst-Ds4Va4B2.cjs} +1 -1
- package/dist/{ruby-CHhXdqUe.js → ruby-Bx4XYnRT.js} +12 -12
- package/dist/{ruby-q98Sa-C-.cjs → ruby-CBsnKcRS.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CRnHOKWN.js → sankeyDiagram-W5VNT64P-BHpgzJej.js} +11 -11
- package/dist/{sankeyDiagram-HTMAVEWB-DPvIVzkz.cjs → sankeyDiagram-W5VNT64P-DzWUzQzw.cjs} +2 -2
- package/dist/{sas-DhbnVUXW.cjs → sas-CmdfZ2ST.cjs} +1 -1
- package/dist/{sas-nwN47Ppz.js → sas-pPL4XUdW.js} +1 -1
- package/dist/{scss-KgcvXJOI.cjs → scss-CzCwPJwK.cjs} +1 -1
- package/dist/{scss-KLMxyv4f.js → scss-DvLXDO--.js} +2 -2
- package/dist/sequenceDiagram-SI44F4Z6-CluMYtPn.cjs +162 -0
- package/dist/{sequenceDiagram-DBY2YBRQ-0tnNLtWM.js → sequenceDiagram-SI44F4Z6-ReHssbzB.js} +35 -47
- package/dist/{shellscript-DsmUQZdg.js → shellscript-DlluLTw8.js} +1 -1
- package/dist/{shellscript-BRXFilKi.cjs → shellscript-yZLoMzQd.cjs} +1 -1
- package/dist/{shellsession-DQ_F9Wr_.js → shellsession-BnlvCPIQ.js} +1 -1
- package/dist/{shellsession-BtjfrBaH.cjs → shellsession-BsiC8FTr.cjs} +1 -1
- package/dist/shiki-langs-B2NQq2Zv.cjs +12 -0
- package/dist/{shiki-langs-D-LUDCzU.js → shiki-langs-CEHBIZPh.js} +83 -84
- package/dist/{sizeCapture-X5ZJPWSS-BEIM84He.js → sizeCapture-X5ZJPWSS-8gbZlYqg.js} +2 -2
- package/dist/{soy-D5hACXEU.js → soy-BG3OLzKM.js} +1 -1
- package/dist/{soy-D11BGnGf.cjs → soy-CUuwQVzE.cjs} +1 -1
- package/dist/{sql-CAKohXJZ.cjs → sql-BDZE63L-.cjs} +1 -1
- package/dist/{sql-BE7gM4sJ.js → sql-Dj-Khzcz.js} +1 -1
- package/dist/{src-DR6txdQ-.js → src-C7bjHtAI.js} +289 -292
- package/dist/src-D9o9TOtH.cjs +1 -0
- package/dist/{stata-DeV05m63.js → stata-BHOVFEmK.js} +1 -1
- package/dist/{stata-ckWyZ9G6.cjs → stata-CA5l0mTt.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CrILo1Ob.js → stateDiagram-OKZ733FA-CskqshtB.js} +21 -21
- package/dist/stateDiagram-OKZ733FA-DHjcZ2Rn.cjs +1 -0
- package/dist/stateDiagram-v2-UEYNNEHI-CFHZmaR7.js +30 -0
- package/dist/stateDiagram-v2-UEYNNEHI-DtG4JeaM.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{svelte-BBzqqTAG.cjs → svelte-BoNfYirr.cjs} +1 -1
- package/dist/{svelte-DuClbIDV.js → svelte-UdXZCk80.js} +3 -3
- package/dist/swimlanes-SLNWSIFB-CHe-8J3p.cjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-CXaPZYKa.js → swimlanes-SLNWSIFB-CICA6uUM.js} +28 -28
- package/dist/swimlanesDiagram-ULZ7WXOC-BdIX6wOt.cjs +8 -0
- package/dist/swimlanesDiagram-ULZ7WXOC-DvfZUvbw.js +30 -0
- package/dist/{templ-BNN_ssr9.cjs → templ-DLDL_1Wy.cjs} +1 -1
- package/dist/{templ-BxsPIKhr.js → templ-Ulzfnu6Q.js} +2 -2
- package/dist/{tex-DZPZ_tE0.js → tex-B6MHjT9y.js} +1 -1
- package/dist/{tex-DPBa3hMF.cjs → tex-DIuaZvMh.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-BacHIFDE.cjs → timeline-definition-Z64GVDOM-B50O7Lk9.cjs} +3 -3
- package/dist/{timeline-definition-FHXFAJF6-Cx6_UT76.js → timeline-definition-Z64GVDOM-BzZNxgFJ.js} +17 -17
- package/dist/treeView-QDETBFTQ-CQxvmLk_.cjs +1 -0
- package/dist/treeView-QDETBFTQ-CoxkVQGD.js +3 -0
- package/dist/treemap-6X3UGDF4-C6oAxxaA.js +3 -0
- package/dist/treemap-6X3UGDF4-DdKmqEyW.cjs +1 -0
- package/dist/{ts-tags-BgTM9Oo9.js → ts-tags-C-R4TI1K.js} +7 -7
- package/dist/{ts-tags-aCZsPrDI.cjs → ts-tags-SToZe_fk.cjs} +1 -1
- package/dist/{tsx-Bx4pCqLJ.js → tsx-0qOcU-Ha.js} +1 -1
- package/dist/{tsx-CqEtpJwc.cjs → tsx-hok-7T7H.cjs} +1 -1
- package/dist/{twig-B4TBRIrX.cjs → twig-B3ccKYy8.cjs} +1 -1
- package/dist/{twig-BawUFy9o.js → twig-DuH2g3X6.js} +5 -5
- package/dist/{typescript-BPkdvRNZ.js → typescript-CRNo26sW.js} +1 -1
- package/dist/{typescript-CjwIFskf.cjs → typescript-D6JhDuwQ.cjs} +1 -1
- package/dist/vennDiagram-T6HMQDX7-CQ2TFsTQ.cjs +34 -0
- package/dist/{vennDiagram-L72KCM5P-DhoiUsqP.js → vennDiagram-T6HMQDX7-CRqUpilR.js} +15 -15
- package/dist/{vue-DPEJC1L8.js → vue-4if4xHAo.js} +6 -6
- package/dist/{vue-DwTH6YhB.cjs → vue-DwZzgHoa.cjs} +1 -1
- package/dist/{vue-html-THpxvSNU.cjs → vue-html-DauKPaUn.cjs} +1 -1
- package/dist/{vue-html-CDRAOas6.js → vue-html-djH4G-fv.js} +2 -2
- package/dist/{vue-i18n-D3reS2g6.js → vue-i18n-C08oMeLH.js} +22 -19
- package/dist/vue-i18n-CYLROVdQ.cjs +5 -0
- package/dist/wardley-OPB4EBWU-B26FUbXh.js +3 -0
- package/dist/wardley-OPB4EBWU-CBtonJdV.cjs +1 -0
- package/dist/{wardleyDiagram-EHGQE667-Zc3EuSsM.js → wardleyDiagram-T6FBY63Y-DCOtObZD.js} +33 -33
- package/dist/{wardleyDiagram-EHGQE667-CFmF44DD.cjs → wardleyDiagram-T6FBY63Y-DvXjjxbR.cjs} +23 -23
- package/dist/{xml-CQVcpGJ_.cjs → xml-C11A8DQt.cjs} +1 -1
- package/dist/{xml-B8vy9UOv.js → xml-DazD6xcz.js} +2 -2
- package/dist/{xsl-B6FtdfnY.cjs → xsl-CRTc6oJK.cjs} +1 -1
- package/dist/{xsl-DiaKo18G.js → xsl-FhLg7Qh1.js} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-rgeLk06Q.js → xychartDiagram-ELKLHX3M-ClS0c1Sn.js} +34 -35
- package/dist/{xychartDiagram-FW5EYKEG--ncct-F6.cjs → xychartDiagram-ELKLHX3M-eiAwZIDK.cjs} +4 -4
- package/dist/{yaml-CANEFoqw.js → yaml-DOdG3SF1.js} +1 -1
- package/dist/{yaml-B-_wC7KV.cjs → yaml-DgtN_I0K.cjs} +1 -1
- package/package.json +2 -2
- package/dist/Serializer-fgUokho9.cjs +0 -1
- package/dist/abnfDiagram-VRR7QNED-BYRABo_Q.cjs +0 -1
- package/dist/architecture-TIHT7OUA-Bmqcwpw4.js +0 -3
- package/dist/architecture-TIHT7OUA-CD5wBac1.cjs +0 -1
- package/dist/architectureDiagram-ZJ3FMSHR-CVebim_4.cjs +0 -36
- package/dist/c4Diagram-LMCZKHZV-CtbAkh79.cjs +0 -10
- package/dist/channel-CdG42V9d.cjs +0 -1
- package/dist/chunk-52WLFC77-DBSW6_kl.cjs +0 -10
- package/dist/chunk-EX3LRPZG-DsC_McmL.cjs +0 -231
- package/dist/chunk-FWX5IMBZ-CJoGNJr1.cjs +0 -1
- package/dist/chunk-FWX5IMBZ-DnOWYjHJ.js +0 -57
- package/dist/chunk-ICXQ74PX-C2LXvuOX.cjs +0 -2
- package/dist/chunk-PUDLZKDR-DB8WgE52.cjs +0 -156
- package/dist/chunk-RYQCIY6F-DdAm7mOI.cjs +0 -1
- package/dist/chunk-VAUOI2AC-5cWRBwiO.js +0 -10
- package/dist/chunk-VAUOI2AC-ChXXWnS8.cjs +0 -1
- package/dist/chunk-WYO6CB5R-DgGAZPU6.cjs +0 -127
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
- package/dist/chunk-ZIRB5QZD-DLqc5SfA.js +0 -1146
- package/dist/classDiagram-OUVF2IWQ-C4eAjkxH.js +0 -30
- package/dist/classDiagram-OUVF2IWQ-Db8clYmt.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-D261zRUO.js +0 -30
- package/dist/classDiagram-v2-EOCWNBFH-Db8clYmt.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-rCM4XH-L.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-Dd87z8mS.js +0 -3
- package/dist/cynefin-VYW2F7L2-lykB010p.cjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-BkS_wtrA.cjs +0 -62
- package/dist/cytoscape.esm-yf049eLd.cjs +0 -321
- package/dist/dagre-CsBlmOuW.cjs +0 -1
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-G47NLZAW-C02lK1FA.cjs +0 -24
- package/dist/diagram-NH7WQ7WH-BNrzsOcd.cjs +0 -24
- package/dist/diagram-WEI45ONY-cD-Up4g4.cjs +0 -41
- package/dist/ebnfDiagram-CCIWWBDH-CeqcH_nx.cjs +0 -1
- package/dist/eventmodeling-45OFAUF4-B_ynZkRQ.js +0 -3
- package/dist/eventmodeling-45OFAUF4-CM2eQj8O.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-CoLPfQLo.js +0 -17
- package/dist/flowDiagram-23GEKE2U-Dlwfo0qV.cjs +0 -1
- package/dist/gitGraph-TEB2WS4Q-Gm9pJli1.cjs +0 -1
- package/dist/gitGraph-TEB2WS4Q-_nwCB0SS.js +0 -3
- package/dist/index7-B77YUge-.js +0 -2
- package/dist/index7-DHWai4TM.cjs +0 -1
- package/dist/info-DKCQHKI2-D1etQ3oK.js +0 -3
- package/dist/info-DKCQHKI2-DxGaDBcM.cjs +0 -1
- package/dist/infoDiagram-FWYZ7A6U-CUSeMHvc.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/mermaid.core-B9txn6LH.js +0 -817
- package/dist/mermaid.core-BY60WVKf.cjs +0 -10
- package/dist/mhchem-DN9hxCSV.cjs +0 -1
- package/dist/packet-7NZHBO7P-BtzQMhR1.cjs +0 -1
- package/dist/packet-7NZHBO7P-Cxh6gUzq.js +0 -3
- package/dist/pegDiagram-2B236MQR-BS6oTVU4.cjs +0 -1
- package/dist/pie-RZYD4A2V-28vJXWmd.js +0 -3
- package/dist/pie-RZYD4A2V-DoKVT0Bp.cjs +0 -1
- package/dist/radar-I7S5WNFK-BmiEyMYr.cjs +0 -1
- package/dist/radar-I7S5WNFK-DAFbJ23a.js +0 -3
- package/dist/railroad-3IZDKUUU-Dq8rQgau.cjs +0 -1
- package/dist/railroad-3IZDKUUU-cz_uETvX.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-B6zkJ2e_.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CG1PV0OB.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-BYo_1aGK.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-Ctmy9-Ww.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-AEuVizPb.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-CEym5ii9.js +0 -3
- package/dist/railroadDiagram-RFXS5EU6-DliMEhm8.cjs +0 -1
- package/dist/sequenceDiagram-DBY2YBRQ-fRfw1SEy.cjs +0 -162
- package/dist/shiki-langs-Lh5_SPxS.cjs +0 -12
- package/dist/src-CR--T_NF.cjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-82ch_Shh.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-BJ_y8F8h.js +0 -30
- package/dist/stateDiagram-v2-6OUMAXLB-DNZRXbnw.cjs +0 -1
- package/dist/swimlanes-5IMT3BWC-DFx8_mh8.cjs +0 -1
- package/dist/swimlanesDiagram-G3AALYLV-BzJDvwlH.js +0 -31
- package/dist/swimlanesDiagram-G3AALYLV-DrYu3LGq.cjs +0 -8
- package/dist/treeView-QDETBFTQ-DNd2QS6G.js +0 -3
- package/dist/treeView-QDETBFTQ-sGY_E6sy.cjs +0 -1
- package/dist/treemap-6X3UGDF4-4YMo2j3u.cjs +0 -1
- package/dist/treemap-6X3UGDF4-C0rfp2is.js +0 -3
- package/dist/vennDiagram-L72KCM5P-apGzGOyM.cjs +0 -34
- package/dist/vue-i18n-C7jKL7st.cjs +0 -5
- package/dist/wardley-OPB4EBWU-B7N7QwfR.js +0 -3
- package/dist/wardley-OPB4EBWU-DxpM8Ty5.cjs +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { MarkdownCustomComponentMap } from '../StreamMarkdown/type';
|
|
2
|
+
import { ToolRendererMap } from '../types/index';
|
|
1
3
|
import { AgentEventCallback, AgentOption, AgentRuntime } from './AIMessage';
|
|
4
|
+
import { SenderProps } from 'ant-design-x-vue';
|
|
2
5
|
|
|
3
6
|
declare function loadConversations(): Promise<void>;
|
|
4
7
|
declare function getCurrentAgentRuntime(): AgentRuntime | undefined;
|
|
@@ -16,8 +19,23 @@ declare function __VLS_template(): {
|
|
|
16
19
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
20
|
/** 当前选中 Agent 的 key(v-model:agentKey) */
|
|
18
21
|
agentKey?: string;
|
|
22
|
+
/** AgentPicker localStorage 存储键前缀(用于多实例隔离) */
|
|
23
|
+
agentPickerStorageKey?: string;
|
|
19
24
|
/** 可用 Agent 列表,至少传一个 */
|
|
20
25
|
agents: AgentOption[];
|
|
26
|
+
/**
|
|
27
|
+
* 语音输入按钮配置(透传给 ChatPanel / Sender 的 allowSpeech):
|
|
28
|
+
* - `false` / `undefined`:不展示语音按钮(默认)
|
|
29
|
+
* - `true`:使用内置语音识别
|
|
30
|
+
* - 对象:受控模式,可自定义 `recording` / `onRecordingChange` 及图标
|
|
31
|
+
*/
|
|
32
|
+
allowSpeech?: NonNullable<SenderProps["allowSpeech"]>;
|
|
33
|
+
/** 传给 StreamMarkdown 的自定义组件映射 */
|
|
34
|
+
customComponents?: MarkdownCustomComponentMap;
|
|
35
|
+
/** 传给 StreamMarkdown 的自定义 HTML 标签白名单 */
|
|
36
|
+
customHtmlTags?: readonly string[];
|
|
37
|
+
/** 默认工具渲染 map(全局兜底,对所有 Agent 生效) */
|
|
38
|
+
defaultToolRenderers?: ToolRendererMap;
|
|
21
39
|
/** 空消息时的提示文字 */
|
|
22
40
|
emptyHint?: string;
|
|
23
41
|
/**
|
|
@@ -27,6 +45,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
27
45
|
* - `undefined`(不设置):根据当前 Agent 是否配置了历史接口自动判断
|
|
28
46
|
*/
|
|
29
47
|
hideHistory?: boolean;
|
|
48
|
+
/** 输入框内容 (v-model) */
|
|
49
|
+
modelValue?: string;
|
|
30
50
|
/** 透传当前 Agent 的运行时事件 */
|
|
31
51
|
onAgentEvent?: AgentEventCallback;
|
|
32
52
|
/**
|
|
@@ -171,11 +191,31 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
171
191
|
stop: () => void | undefined;
|
|
172
192
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
173
193
|
"update:agentKey": (key: string) => void;
|
|
194
|
+
"update:modelValue": (value: string) => void;
|
|
195
|
+
submit: (value?: string | undefined, agentKey?: string | undefined) => void;
|
|
196
|
+
cancel: () => void;
|
|
197
|
+
agentChange: (value: string) => void;
|
|
198
|
+
"update:agents": (value: AgentOption[]) => void;
|
|
174
199
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
175
200
|
/** 当前选中 Agent 的 key(v-model:agentKey) */
|
|
176
201
|
agentKey?: string;
|
|
202
|
+
/** AgentPicker localStorage 存储键前缀(用于多实例隔离) */
|
|
203
|
+
agentPickerStorageKey?: string;
|
|
177
204
|
/** 可用 Agent 列表,至少传一个 */
|
|
178
205
|
agents: AgentOption[];
|
|
206
|
+
/**
|
|
207
|
+
* 语音输入按钮配置(透传给 ChatPanel / Sender 的 allowSpeech):
|
|
208
|
+
* - `false` / `undefined`:不展示语音按钮(默认)
|
|
209
|
+
* - `true`:使用内置语音识别
|
|
210
|
+
* - 对象:受控模式,可自定义 `recording` / `onRecordingChange` 及图标
|
|
211
|
+
*/
|
|
212
|
+
allowSpeech?: NonNullable<SenderProps["allowSpeech"]>;
|
|
213
|
+
/** 传给 StreamMarkdown 的自定义组件映射 */
|
|
214
|
+
customComponents?: MarkdownCustomComponentMap;
|
|
215
|
+
/** 传给 StreamMarkdown 的自定义 HTML 标签白名单 */
|
|
216
|
+
customHtmlTags?: readonly string[];
|
|
217
|
+
/** 默认工具渲染 map(全局兜底,对所有 Agent 生效) */
|
|
218
|
+
defaultToolRenderers?: ToolRendererMap;
|
|
179
219
|
/** 空消息时的提示文字 */
|
|
180
220
|
emptyHint?: string;
|
|
181
221
|
/**
|
|
@@ -185,6 +225,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
185
225
|
* - `undefined`(不设置):根据当前 Agent 是否配置了历史接口自动判断
|
|
186
226
|
*/
|
|
187
227
|
hideHistory?: boolean;
|
|
228
|
+
/** 输入框内容 (v-model) */
|
|
229
|
+
modelValue?: string;
|
|
188
230
|
/** 透传当前 Agent 的运行时事件 */
|
|
189
231
|
onAgentEvent?: AgentEventCallback;
|
|
190
232
|
/**
|
|
@@ -199,7 +241,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
199
241
|
title: string;
|
|
200
242
|
emptyHint: string;
|
|
201
243
|
}>>> & Readonly<{
|
|
244
|
+
"onUpdate:agents"?: ((value: AgentOption[]) => any) | undefined;
|
|
245
|
+
onSubmit?: ((value?: string | undefined, agentKey?: string | undefined) => any) | undefined;
|
|
246
|
+
onCancel?: (() => any) | undefined;
|
|
247
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
202
248
|
"onUpdate:agentKey"?: ((key: string) => any) | undefined;
|
|
249
|
+
onAgentChange?: ((value: string) => any) | undefined;
|
|
203
250
|
}>, {
|
|
204
251
|
title: string;
|
|
205
252
|
agentKey: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { MarkdownCustomComponentMap } from '../StreamMarkdown/type';
|
|
2
2
|
import { AgentEventCallback, AgentOption, ChatMessage, ToolRendererMap } from '../types/index';
|
|
3
|
+
import { SenderProps } from 'ant-design-x-vue';
|
|
3
4
|
|
|
4
5
|
type AnyRecord = Record<string, any>;
|
|
6
|
+
/** Sender 语音按钮配置:`false` 不展示,`true` 使用内置识别,对象为受控模式 */
|
|
7
|
+
type AllowSpeech = NonNullable<SenderProps['allowSpeech']>;
|
|
5
8
|
/** @deprecated 请使用 ChatMessage,此别名保留以兼容存量代码 */
|
|
6
9
|
export type BubbleMsg = ChatMessage;
|
|
7
10
|
interface Props {
|
|
@@ -11,6 +14,13 @@ interface Props {
|
|
|
11
14
|
agentPickerStorageKey?: string;
|
|
12
15
|
/** 可选 Agent 列表 */
|
|
13
16
|
agents: AgentOption[];
|
|
17
|
+
/**
|
|
18
|
+
* 语音输入按钮配置(透传给 Sender 的 allowSpeech):
|
|
19
|
+
* - `false` / `undefined`:不展示语音按钮(默认)
|
|
20
|
+
* - `true`:使用内置语音识别
|
|
21
|
+
* - 对象:受控模式,可自定义 `recording` / `onRecordingChange` 及图标
|
|
22
|
+
*/
|
|
23
|
+
allowSpeech?: AllowSpeech;
|
|
14
24
|
/** 传给 StreamMarkdown 的自定义组件映射 */
|
|
15
25
|
customComponents?: MarkdownCustomComponentMap;
|
|
16
26
|
/** 传给 StreamMarkdown 的自定义 HTML 标签白名单 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./exports-DpKiJKdc.cjs");let t=require("vue");var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t)=>{for(var n in t||={})o.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))s.call(t,n)&&c(e,n,t[n]);return e},u=(e,t)=>r(e,i(t)),d=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),f={class:`markstream-vue`},p={class:`html-preview-frame__header`},m={class:`html-preview-frame__title`},h={class:`html-preview-frame__label`},g=[`srcdoc`],ee=e.E((0,t.defineComponent)({__name:`HtmlPreviewFrame`,props:{code:{},isDark:{type:Boolean},onClose:{type:Function},title:{}},setup(n){let r=n,{t:i}=e.T(),a=(0,t.computed)(()=>{let e=r.code||``,t=e.trim().toLowerCase();return t.startsWith(`<!doctype`)||t.startsWith(`<html`)||t.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: ${r.isDark?`#020617`:`#ffffff`};\n color: ${r.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>`});function o(e){var t;e.key!==`Escape`&&e.key!==`Esc`||(t=r.onClose)==null||t.call(r)}return(0,t.onMounted)(()=>{typeof window<`u`&&window.addEventListener(`keydown`,o)}),(0,t.onUnmounted)(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,o)}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createElementVNode)(`div`,f,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`html-preview-frame__backdrop`,{"html-preview-frame__backdrop--dark":r.isDark}]),onClick:n[2]||=e=>r.onClose?.call(r)},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`html-preview-frame`,{"html-preview-frame--dark":r.isDark}]),onClick:n[1]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,p,[(0,t.createElementVNode)(`div`,m,[n[3]||=(0,t.createElementVNode)(`span`,{class:`html-preview-frame__dot`},null,-1),(0,t.createElementVNode)(`span`,h,(0,t.toDisplayString)(r.title||(0,t.unref)(i)(`common.preview`)||`Preview`),1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`html-preview-frame__close`,{"html-preview-frame__close--dark":r.isDark}]),onClick:n[0]||=e=>r.onClose?.call(r)},` × `,2)]),(0,t.createElementVNode)(`iframe`,{class:`html-preview-frame__iframe`,sandbox:`allow-scripts allow-same-origin`,srcdoc:a.value},null,8,g)],2)],2)])]))}}),[[`__scopeId`,`data-v-296dd89d`]]),_=null,te=null,v=null,y=null,ne=null,re=null,ie=new WeakMap,ae=0,oe=[`data-markstream-enhanced`],se={class:`code-header-main`},ce=[`innerHTML`],le={class:`code-header-copy`},ue={class:`code-header-title`},de={key:0,class:`code-header-caption`},fe={class:`code-header-actions`},pe=[`aria-label`],me={class:`code-diff-stat removed`},he={class:`code-diff-stat added`},ge=[`aria-pressed`],_e=[`disabled`],ve=[`disabled`],ye=[`disabled`],be=[`aria-label`],xe={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Se={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Ce=[`aria-pressed`],we={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Te={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Ee=[`aria-label`],De={class:`code-editor-layer`},Oe={class:`sr-only`,"aria-live":`polite`,role:`status`},ke=`__markstreamMonacoPassiveTouch__`,Ae=e.E((0,t.defineComponent)({__name:`CodeBlockNode`,props:{node:{},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:`vitesse-dark`},lightTheme:{default:`vitesse-light`},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},showTooltips:{type:Boolean},customId:{},estimatedHeightPx:{},estimatedContentHeightPx:{}},emits:[`previewCode`,`copy`],setup(n,{emit:r}){let i=n,a=r,o=(0,t.getCurrentInstance)(),s=(0,t.computed)(()=>{let e=o?.vnode.props;return!(!e||!e.onPreviewCode&&!e.onPreviewCode)}),{t:c}=e.T(),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(e.r(i.node.language)),g=(0,t.computed)(()=>e.a(h.value)),Ae=(0,t.computed)(()=>g.value===`plaintext`),b=(0,t.ref)(!1),x=(0,t.ref)(!1),S=(0,t.ref)(!1),C=(0,t.ref)(!1),je=(0,t.ref)(!1),w=!1,T=null,E=(0,t.ref)(null),Me=0,Ne=e.y(),D=(0,t.ref)(null),O=(0,t.ref)(typeof window>`u`);typeof window<`u`&&(0,t.watch)(()=>p.value,e=>{var t;if((t=D.value)==null||t.destroy(),D.value=null,!e)return void(O.value=!1);let n=Ne(e,{rootMargin:`400px`});D.value=n,O.value=n.isVisible.value,n.whenVisible.then(()=>{O.value=!0})},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{var e;w=!0,(e=D.value)==null||e.destroy(),D.value=null});let k=null,Pe=null,Fe=()=>{},Ie=()=>{},Le=()=>null,A=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),j=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),Re=()=>{},M=()=>{},ze=()=>{},N=null,Be=()=>String(i.node.language??`plaintext`),Ve=()=>d(null,null,function*(){}),P=[],He=[],F=null,I=(0,t.computed)(()=>i.node.diff),L=(0,t.ref)({removed:0,added:0}),Ue=(0,t.computed)(()=>`-${L.value.removed} +${L.value.added}`),We=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function Ge(e){var t;if(typeof e==`boolean`)return e;if(e&&typeof e==`object`){let n=e;return u(l(l({},We),n),{enabled:(t=n.enabled)==null||t})}return l({},We)}let R=(0,t.computed)(()=>{let e=i.monacoOptions?l({},i.monacoOptions):{};if(!I.value)return e;let t=e.diffHideUnchangedRegions===void 0?l({},We):Ge(e.diffHideUnchangedRegions),n=e.hideUnchangedRegions===void 0?void 0:Ge(e.hideUnchangedRegions),r=e.diffUnchangedRegionStyle??`line-info`;return u(l(l(l({},{maxComputationTime:0,diffAlgorithm:`legacy`,ignoreTrimWhitespace:!1,renderIndicators:!0,diffUpdateThrottleMs:120,renderLineHighlight:`none`,renderLineHighlightOnlyWhenFocus:!0,selectionHighlight:!1,occurrencesHighlight:`off`,matchBrackets:`never`,lineDecorationsWidth:12,lineNumbersMinChars:2,glyphMargin:!1,fontSize:13,lineHeight:30,renderOverviewRuler:!1,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,padding:{top:10,bottom:r===`line-info`||r===`line-info-basic`||r===`metadata`?22:14},diffHideUnchangedRegions:t,diffLineStyle:`background`,diffAppearance:`auto`,diffUnchangedRegionStyle:r,diffHunkActionsOnHover:!0,diffHunkHoverHideDelayMs:160}),e),n===void 0?{}:{hideUnchangedRegions:n}),{diffHideUnchangedRegions:t})}),Ke=(0,t.computed)(()=>I.value?`diff`:`single`),qe=(0,t.ref)(Ke.value),z=(0,t.ref)(!1),Je=(0,t.computed)(()=>{let e=i.monacoOptions?.wordWrap;return e==null||String(e)!==`off`}),Ye=(0,t.computed)(()=>!z.value&&!C.value),Xe=(0,t.ref)(!1);typeof window<`u`&&d(null,null,function*(){try{let t=yield e.D();if(w)return;if(!t)return void(z.value=!0);let n=t.useMonaco,r=t.detectLanguage;if(typeof r==`function`&&(Be=r),typeof n==`function`){let e=Nt();if(e&&i.themes&&Array.isArray(i.themes)&&!i.themes.includes(e))throw Error(`Preferred theme not in provided themes array`);F=Lt();let t=n(F);k=t.createEditor||k,Pe=t.createDiffEditor||Pe,Fe=t.updateCode||Fe,Ie=t.updateDiff||Ie,Le=t.getEditor||Le,A=t.getEditorView||A,j=t.getDiffEditorView||j,Re=t.cleanupEditor||Re,M=t.safeClean||t.cleanupEditor||M,ze=t.refreshDiffPresentation||ze,Ve=t.setTheme||Ve,je.value=!0,!w&&f.value&&(yield $(f.value))}}catch{if(w)return;z.value=!0}});let B=(0,t.ref)(typeof i.monacoOptions?.fontSize==`number`?i.monacoOptions.fontSize:NaN),V=(0,t.ref)(B.value),Ze=(0,t.computed)(()=>{let e=B.value,t=V.value;return typeof e==`number`&&Number.isFinite(e)&&e>0&&typeof t==`number`&&Number.isFinite(t)&&t>0}),Qe=(0,t.computed)(()=>{let e=i.monacoOptions?.fontSize;if(typeof e==`number`&&Number.isFinite(e)&&e>0)return e;let t=V.value;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:12}),$e=(0,t.computed)(()=>{let e=i.monacoOptions?.lineHeight;return typeof e==`number`&&Number.isFinite(e)&&e>0?e:Math.round(1.5*Qe.value)}),et=(0,t.computed)(()=>{let e=i.monacoOptions?.tabSize;return typeof e==`number`&&Number.isFinite(e)&&e>0?e:4}),H=(0,t.computed)(()=>{let e=i.estimatedContentHeightPx;return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.round(e):null}),tt=(0,t.computed)(()=>{let e=i.monacoOptions?.fontFamily;return l(l({fontSize:`${Qe.value}px`,lineHeight:`${$e.value}px`,tabSize:et.value},H.value==null?{}:{minHeight:`${H.value}px`}),typeof e==`string`&&e.trim()?{"--markstream-code-font-family":e.trim()}:{})}),nt=(0,t.computed)(()=>H.value!=null&&!C.value),rt=(0,t.computed)(()=>{if(nt.value)return{minHeight:`${H.value}px`}}),it=(0,t.computed)(()=>{if(H.value!=null)return{minHeight:`${H.value}px`}});function at(){var e;try{let t=I.value?((e=j())?.getModifiedEditor)?.call(e)??j():A(),n=Le()?.EditorOption?.fontInfo;if(t&&n!=null){let e=t.getOption?.call(t,n)?.fontSize;if(typeof e==`number`&&Number.isFinite(e)&&e>0)return e}}catch{}try{let e=f.value;if(e){let t=e.querySelector(`.view-lines .view-line`);if(t)try{if(typeof window<`u`&&typeof window.getComputedStyle==`function`){let e=window.getComputedStyle(t).fontSize,n=e&&e.match(/^(\d+(?:\.\d+)?)/);if(n)return Number.parseFloat(n[1])}}catch{}}}catch{}return null}function ot(e){try{let t=Le()?.EditorOption?.lineHeight;if(t!=null){let n=(e?.getOption)?.call(e,t);if(typeof n==`number`&&n>0)return n}}catch{}let t=function(){try{let e=f.value;if(!e)return null;let t=e.querySelector(`.view-lines .view-line`);if(t){let e=Math.ceil(t.getBoundingClientRect().height);if(e>0)return e}}catch{}return null}();if(t&&t>0)return t;let n=Number.isFinite(V.value)&&V.value>0?V.value:12;return Math.max(12,Math.round(1.35*n))}function st(e,t){return typeof e!=`number`||typeof t!=`number`||e<1||t<e?0:t-e+1}function ct(e){if(!e)return[];let t=e.split(/\r?\n/);return t.length===1&&t[0]===``?[]:t}function lt(){I.value?L.value=function(e,t){let n=ct(e),r=ct(t),i=0,a=n.length-1,o=r.length-1;for(;i<=a&&i<=o&&n[i]===r[i];)i++;for(;a>=i&&o>=i&&n[a]===r[o];)a--,o--;return{removed:Math.max(0,a-i+1),added:Math.max(0,o-i+1)}}(String(i.node.originalCode??``),String(i.node.updatedCode??``)):L.value={removed:0,added:0}}function ut(){if(I.value)try{let e=j(),t=(e?.getLineChanges)?.call(e);if(!Array.isArray(t))return void lt();let n=0,r=0;for(let e of t)n+=st(e.originalStartLineNumber,e.originalEndLineNumber),r+=st(e.modifiedStartLineNumber,e.modifiedEndLineNumber);L.value={removed:n,added:r}}catch{lt()}else L.value={removed:0,added:0}}function dt(){if(Number.isFinite(V.value)&&V.value>0&&Number.isFinite(B.value))return V.value;let e=at();return typeof i.monacoOptions?.fontSize==`number`?(B.value=i.monacoOptions.fontSize,V.value=i.monacoOptions.fontSize,V.value):e&&e>0?(B.value=e,V.value=e,e):(B.value=12,V.value=12,12)}function ft(){var e,t,n,r,i;try{let a=I.value?j():null,o=I.value?a:A();if(!o)return null;if(a?.getOriginalEditor&&a?.getModifiedEditor){let i=a.getOriginalEditor?.call(a),o=a.getModifiedEditor?.call(a);(e=i?.layout)==null||e.call(i),(t=o?.layout)==null||t.call(o);let s=(i?.getContentHeight)?.call(i)||0,c=(o?.getContentHeight)?.call(o)||0,l=Math.max(s,c);if(l>0)return Math.ceil(l+1);let u=((n=(i?.getModel)?.call(i))?.getLineCount)?.call(n)||1,d=((r=(o?.getModel)?.call(o))?.getLineCount)?.call(r)||1,f=Math.max(u,d),p=Math.max(ot(i),ot(o));return Math.ceil(f*(p+1.5)+0+1)}if(o?.getContentHeight){(i=o?.layout)==null||i.call(o);let e=o.getContentHeight();if(e>0)return Math.ceil(e+1)}let s=(o?.getModel)?.call(o),c=1;s&&typeof s.getLineCount==`function`&&(c=s.getLineCount());let l=ot(o);return Math.ceil(c*(l+1.5)+0+1)}catch{return null}}function pt(e){let t=String(e??``).match(/\d+(?:\.\d+)?/g);if(!t||t.length<3)return null;let[n,r,i]=t.slice(0,3).map(Number);return .2126*n+.7152*r+.0722*i}function mt(){let e=f.value,t=p.value;if(!e||!t)return;if(I.value)return t.style.removeProperty(`--vscode-editor-foreground`),t.style.removeProperty(`--vscode-editor-background`),void t.style.removeProperty(`--vscode-editor-selectionBackground`);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;try{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))}catch{a=null,o=null,s=null}let c=String(a?.getPropertyValue(`--vscode-editor-foreground`)??``).trim(),l=String(a?.getPropertyValue(`--vscode-editor-background`)??``).trim(),u=String(a?.getPropertyValue(`--vscode-editor-selectionBackground`)??a?.getPropertyValue(`--vscode-editor-hoverHighlightBackground`)??``).trim(),d=c||String(s?.color??a?.color??``).trim(),m=l||String(o?.backgroundColor??a?.backgroundColor??``).trim();if(function(e,t,n){if(!Ae.value)return!1;let r=pt(e),i=pt(t);return n?r!=null&&r>170||i!=null&&i<110:r!=null&&r<85||i!=null&&i>190}(m,d,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`);d&&t.style.setProperty(`--vscode-editor-foreground`,d),m&&t.style.setProperty(`--vscode-editor-background`,m),u&&t.style.setProperty(`--vscode-editor-selectionBackground`,u)}let ht=/auto|scroll|overlay/i;function U(e,t,n){if(typeof window>`u`)return;let r=Math.ceil(n)-Math.ceil(t);if(!r)return;let i=function(e){if(typeof window>`u`)return null;let t=e?.ownerDocument??document,n=t.scrollingElement||t.documentElement||t.body,r=e?.parentElement??null;for(;r&&r!==t.body&&r!==n;){let e=window.getComputedStyle(r),t=(e.overflowY||``).toLowerCase(),n=(e.overflow||``).toLowerCase();if(ht.test(t)||ht.test(n))return r;r=r.parentElement}return n}(e);if(!i)return;let a=e.ownerDocument??document,o=i===a.body||i===a.documentElement||i===a.scrollingElement,s=o?0:i.getBoundingClientRect().top;e.getBoundingClientRect().top-s>=0||(o&&typeof window.scrollBy==`function`?window.scrollBy(0,r):i.scrollTop+=r)}function W(){try{let e=f.value;if(!e)return;let t=e.getBoundingClientRect().height,n=ft();if(n!=null&&n>0){let r=Math.ceil(n);e.style.minHeight=`0px`,e.style.height=`${r}px`,e.style.maxHeight=`none`,e.style.overflow=`visible`,U(e,t,r)}}catch{}}function G(){for(var t,n;P.length>0;)try{(n=(t=P.pop())?.dispose)==null||n.call(t)}catch{}T!=null&&(e.s(T),T=null)}function K(){for(var e;He.length>0;)try{(e=He.pop())==null||e()}catch{}}function gt(){if(K(),!I.value)return;let e=f.value;if(!e)return;let t=e.querySelector(`.monaco-diff-editor`);if(!t||t.classList.contains(`side-by-side`))return;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);for(let e=0;e<i;e++){let t=n[e],i=r[e].querySelector(`a`),a=t.querySelector(`.center > div:first-child`);if(!i||!a)continue;let o=document.createElement(`button`);o.type=`button`,o.className=`markstream-inline-fold-proxy`;let s=i.getAttribute(`title`)||`Show Unchanged Region`;o.title=s,o.setAttribute(`aria-label`,s);let c=i.querySelector(`.codicon`),l=document.createElement(`span`);l.className=c?.className||`codicon codicon-unfold`,o.append(l);let u=e=>{e.preventDefault(),e.stopPropagation()},d=e=>{e.preventDefault(),e.stopPropagation(),i.click()},f=e=>{e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.stopPropagation(),i.click())};o.addEventListener(`mousedown`,u),o.addEventListener(`click`,d),o.addEventListener(`keydown`,f),a.replaceChildren(o),He.push(()=>{o.removeEventListener(`mousedown`,u),o.removeEventListener(`click`,d),o.removeEventListener(`keydown`,f),a.contains(o)&&a.replaceChildren()})}}function q(){T??=e.O(()=>{T=null,e.O(()=>{gt(),x.value||(b.value?W():Y())})})}function J(e,t,n){let r=Math.min(t,n),i=t>n+1;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)}function Y(){try{let e=f.value;if(!e)return;let t=e.getBoundingClientRect().height,n=function(){let e=i.monacoOptions?.MAX_HEIGHT??500;if(typeof e==`number`)return e;let t=String(e).match(/^(\d+(?:\.\d+)?)/);return t?Number.parseFloat(t[1]):500}();if(Me>0&&(Me--,E.value!=null))return void U(e,t,J(e,E.value,n));let r=ft();if(r!=null&&r>0)return void U(e,t,J(e,r,n));if(E.value!=null)return void U(e,t,J(e,E.value,n));let a=Math.ceil(e.getBoundingClientRect?.call(e).height||0);if(a>0)return void U(e,t,J(e,a,n));let o=Number.parseFloat(e.style.height);!Number.isNaN(o)&&o>0?U(e,t,J(e,o,n)):U(e,t,J(e,n,n))}catch{}}let _t=(0,t.computed)(()=>i.isShowPreview&&(h.value===`html`||h.value===`svg`));(0,t.watch)(()=>i.node.language,t=>{h.value=e.r(t)}),(0,t.watch)(()=>[i.node.originalCode,i.node.updatedCode,I.value],()=>{lt(),e.O(()=>ut())},{immediate:!0}),(0,t.watch)(()=>[i.node.originalCode,i.node.updatedCode,g.value,I.value],t=>d(null,[t],function*([t,n,r,a]){if(!1!==i.stream&&a){if(k&&!S.value&&f.value)try{yield $(f.value)}catch{}Ie(String(t??``),String(n??``),g.value),b.value&&e.O(()=>W())}})),(0,t.watch)(()=>i.node.code,t=>d(null,null,function*(){if(!1!==i.stream&&(h.value||=e.r(Be(t)),!I.value)){if(k&&!S.value&&f.value)try{yield $(f.value)}catch{}Fe(t,g.value),b.value&&e.O(()=>W())}}));let vt=(0,t.computed)(()=>{let t=h.value;return t?e.d[t]||t.charAt(0).toUpperCase()+t.slice(1):e.d[``]||`Plain Text`}),yt=(0,t.computed)(()=>function(e){let t=function(e){let t=String(e??``).split(/\r?\n/,1)[0]?.trim()??``;if(t.length<3)return``;let n=t[0];if(n!=="`"&&n!==`~`||t[1]!==n||t[2]!==n)return``;let r=3;for(;t[r]===n;)r+=1;return t.slice(r).trim()}(e);if(!t)return``;let n=t.split(/\s+/).filter(Boolean);if(!n.length)return``;let r=n[0]===`diff`?n.slice(1):n;for(let e of r){let t=e.includes(`:`)?e.slice(e.indexOf(`:`)+1):e;if(t&&/[./\\-]/.test(t))return t}return``}(String(i.node.raw??``))),bt=(0,t.computed)(()=>yt.value||vt.value),xt=(0,t.computed)(()=>yt.value?I.value?`Diff / ${vt.value}`:vt.value:``),St=(0,t.computed)(()=>(e.n.value,e.h(h.value||``))),Ct=(0,t.computed)(()=>{let e={},t=e=>{if(e!=null)return typeof e==`number`?`${e}px`:String(e)},n=t(i.minWidth),r=t(i.maxWidth);return n&&(e.minWidth=n),r&&(e.maxWidth=r),I.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}),wt=(0,t.computed)(()=>{if(!I.value)return{color:`var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))`,backgroundColor:`var(--vscode-editor-background, var(--markstream-code-fallback-bg))`}}),X=(0,t.computed)(()=>!1!==i.showTooltips);function Tt(){return d(this,null,function*(){try{typeof navigator<`u`&&navigator.clipboard&&typeof navigator.clipboard.writeText==`function`&&(yield navigator.clipboard.writeText(i.node.code)),m.value=!0,a(`copy`,i.node.code),setTimeout(()=>{m.value=!1},1e3)}catch(e){console.error(`复制失败:`,e)}})}function Et(e){let t=e.currentTarget||e.target;return!t||t.disabled?null:t}function Z(t,n,r=`top`){if(!X.value)return;let a=Et(t);if(!a)return;let o=t;e.b(a,n,r,!1,o?.clientX!=null&&o?.clientY!=null?{x:o.clientX,y:o.clientY}:void 0,i.isDark)}function Q(){X.value&&e.C()}function Dt(t){if(!X.value)return;let n=Et(t);if(!n)return;let r=m.value?c(`common.copied`)||`Copied`:c(`common.copy`)||`Copy`,a=t;e.b(n,r,`top`,!1,a?.clientX!=null&&a?.clientY!=null?{x:a.clientX,y:a.clientY}:void 0,i.isDark)}function Ot(){var t,n;if(x.value=!x.value,x.value){if(f.value){let e=Math.ceil((t=f.value).getBoundingClientRect?.call(t).height||0);e>0&&(E.value=e)}At(!1)}else{b.value&&At(!0),f.value&&E.value!=null&&(f.value.style.height=`${E.value}px`);let t=I.value?j():A();try{(n=t?.layout)==null||n.call(t)}catch{}Me=2,e.O(()=>{b.value?W():Y()})}}function kt(){if(!_t.value)return;let e=h.value;if(s.value){let t=e===`html`?`text/html`:`image/svg+xml`,n=e===`html`?c(`artifacts.htmlPreviewTitle`)||`HTML Preview`:c(`artifacts.svgPreviewTitle`)||`SVG Preview`;a(`previewCode`,{node:i.node,artifactType:t,artifactTitle:n,id:`temp-${e}-${Date.now()}`});return}e===`html`&&(Xe.value=!Xe.value)}function At(e){var t,n;try{if(I.value){let n=j();(t=n?.updateOptions)==null||t.call(n,{automaticLayout:e})}else{let t=A();(n=t?.updateOptions)==null||n.call(t,{automaticLayout:e})}}catch{}}function $(n){if(!k||w)return null;if(function(){try{let e=window;if(e[ke])return;let t=window.Element?.prototype,n=t?.addEventListener;if(!t||!n)return;t.addEventListener=function(e,t,r){return e===`touchstart`&&function(e,t){if(!e)return!1;let n=e;return!(typeof n.closest!=`function`||!n.closest(`.monaco-editor, .monaco-diff-editor`)||t&&typeof t==`object`&&`passive`in t)}(this,r)?n.call(this,e,t,function(e){return e==null?{passive:!0}:typeof e==`boolean`?{capture:e,passive:!0}:typeof e==`object`?`passive`in e?e:u(l({},e),{passive:!0}):{passive:!0}}(r)):n.call(this,e,t,r)},e[ke]=!0}catch{}}(),N)return N;if(S.value&&C.value)return Promise.resolve();S.value=!0;let r=d(null,null,function*(){yield function(n){return d(this,null,function*(){if(!k||w||(G(),K(),function(e){e.replaceChildren()}(n),w)||(I.value?(M(),Pe?yield Pe(n,String(i.node.originalCode??``),String(i.node.updatedCode??``),g.value):yield k(n,i.node.code,g.value)):yield k(n,i.node.code,g.value),w))return;let r=I.value?j():A();if(typeof i.monacoOptions?.fontSize==`number`)r?.updateOptions({fontSize:i.monacoOptions.fontSize,automaticLayout:!1}),B.value=i.monacoOptions.fontSize,V.value=i.monacoOptions.fontSize;else{let e=at();e&&e>0?(B.value=e,V.value=e):(B.value=12,V.value=12)}if(b.value||x.value||Y(),!1===i.loading){if(yield(0,t.nextTick)(),w)return;e.O(()=>{w||(b.value&&!x.value?W():x.value||Y())})}yield(0,t.nextTick)(),w||(C.value=!0,function(){if(G(),I.value){let t=j(),n=(t?.getOriginalEditor)?.call(t),r=(t?.getModifiedEditor)?.call(t),i=(e,t)=>{try{let n=e?.[t];if(typeof n!=`function`)return;let r=n.call(e,()=>q());r&&P.push(r)}catch{}};try{let n=(t?.onDidUpdateDiff)?.call(t,()=>{q(),e.O(()=>ut())});n&&P.push(n)}catch{}i(n,`onDidContentSizeChange`),i(r,`onDidContentSizeChange`),i(n,`onDidLayoutChange`),i(r,`onDidLayoutChange`)}else{let e=A();try{let t=(e?.onDidContentSizeChange)?.call(e,()=>q());t&&P.push(t)}catch{}try{let t=(e?.onDidLayoutChange)?.call(e,()=>q());t&&P.push(t)}catch{}}}(),mt(),gt(),ut(),q())})}(n)}).finally(()=>{N===r&&(N=null)});return N=r,r}(0,t.watch)(X,t=>{t||e.C()}),(0,t.watch)(()=>V.value,(e,t)=>{let n=I.value?j():A();n&&typeof e==`number`&&Number.isFinite(e)&&e>0&&(n.updateOptions({fontSize:e}),b.value&&!x.value&&W())},{flush:`post`,immediate:!1});let jt=(0,t.watch)(()=>[f.value,I.value,i.stream,i.loading,je.value,O.value],e=>d(null,[e],function*([e,t,n,r,i,a]){if(!e||!k||!a||!1===n&&!1!==r)return;let o=$(e);if(o){try{yield o}catch{C.value=!1}jt()}}));function Mt(e){return typeof e==`string`?e:e&&typeof e==`object`&&`name`in e?String(e.name):null}function Nt(){let e=i.isDark?i.darkTheme:i.lightTheme,t=R.value?.theme,n=e??t,r=Array.isArray(i.themes)?i.themes:[];if(!r.length||n==null)return n;let a=Mt(n),o=r.map(e=>Mt(e)).filter(e=>!!e);if(!a||o.includes(a))return n;let s=Mt(t);return t!=null&&s&&o.includes(s)?t:r[0]}(0,t.watch)(Ke,(e,n)=>d(null,null,function*(){if(e===n||(qe.value=e,!k||!f.value)||!S.value||!1===i.stream&&!1!==i.loading||!O.value)return;let r=N;if(r){try{yield r}catch{}if(w||!f.value)return}try{C.value=!1,S.value=!1,G(),K(),M(),yield(0,t.nextTick)(),yield $(f.value)}catch{C.value=!1}}));let Pt=(0,t.computed)(()=>function(e){let t=(Mt(e)??``).toLowerCase();return t?[`dark`,`night`,`moon`,`black`,`dracula`,`mocha`,`frappe`,`macchiato`,`palenight`,`ocean`,`poimandres`,`monokai`,`laserwave`,`tokyo`,`slack-dark`,`rose-pine`,`github-dark`,`material-theme`,`one-dark`,`catppuccin-mocha`,`catppuccin-frappe`,`catppuccin-macchiato`].some(e=>t.includes(e))&&![`light`,`latte`,`dawn`,`lotus`].some(e=>t.includes(e)):!!i.isDark}(Nt())),Ft=(0,t.computed)(()=>{if(!I.value)return Pt.value?`dark`:`light`;let e=R.value?.diffAppearance;return e===`light`||e===`dark`?e:i.isDark?`dark`:`light`}),It=(0,t.computed)(()=>I.value?Ft.value===`dark`:Pt.value);function Lt(){return u(l(u(l({wordWrap:`on`,wrappingIndent:`same`,themes:i.themes},R.value||{}),{theme:Nt()}),I.value?{diffAppearance:Ft.value}:{}),{onThemeChange(){mt()}})}function Rt(){let e=Lt();if(!F)return F=e,F;for(let t of Object.keys(F))t in e||delete F[t];return Object.assign(F,e),F}let zt=(0,t.computed)(()=>{var e,t,n,r,i;return JSON.stringify({diffLineStyle:R.value?.diffLineStyle??`background`,diffUnchangedRegionStyle:R.value?.diffUnchangedRegionStyle??`line-info`,diffHideUnchangedRegions:(e=R.value?.diffHideUnchangedRegions)==null||e,renderSideBySide:(t=R.value?.renderSideBySide)==null||t,enableSplitViewResizing:(n=R.value?.enableSplitViewResizing)==null||n,ignoreTrimWhitespace:(r=R.value?.ignoreTrimWhitespace)==null||r,originalEditable:(i=R.value?.originalEditable)!=null&&i})});(0,t.watch)(()=>[i.monacoOptions,O.value],()=>{var e;if(Rt(),!k||!O.value)return;let t=I.value?j():A(),n=typeof i.monacoOptions?.fontSize==`number`?i.monacoOptions.fontSize:Number.isFinite(V.value)?V.value:void 0;typeof n==`number`&&Number.isFinite(n)&&n>0&&((e=t?.updateOptions)==null||e.call(t,{fontSize:n})),b.value&&!x.value?W():x.value||Y()},{deep:!0}),(0,t.watch)(()=>[Nt(),Ft.value,je.value,S.value,O.value],()=>{je.value&&S.value&&O.value&&function(){Rt();let t=Nt(),n=()=>{I.value&&ze(),e.O(()=>{mt(),q()})};t?function(e,t){let n=function(e){if(e==null)return null;if(typeof e==`string`)return e;if(typeof e==`object`&&`name`in e)return String(e.name);if(typeof e==`object`){let t=ie.get(e);if(t)return t;try{let t=JSON.stringify(e);if(t)return ie.set(e,t),t}catch{}let n=`__theme_`+ ++ae;return ie.set(e,n),n}return String(e)}(t);return n?(re=e,_||ne!==n?_?(y===n||te===n||(v=t,y=n),_):(v=t,y=n,_=d(null,null,function*(){for(;y&&v!=null;){let t=v,n=y;if(v=null,y=null,ne!==n)try{te=n,yield(re??e)(t),ne=n}catch{}}}).finally(()=>{_=null,te=null}),_):Promise.resolve()):Promise.resolve()}(Ve,t).then(n).catch(e=>{}):n()}()},{flush:`post`}),(0,t.watch)(()=>[zt.value,je.value,O.value],(e,n)=>d(null,[e,n],function*([e,n,r],[a]){if(Rt(),!n||!r||!k||!f.value||!S.value||e===a||!1===i.stream&&!1!==i.loading)return;let o=N;if(o){try{yield o}catch{}if(w||!f.value)return}try{C.value=!1,S.value=!1,G(),K(),M(),yield(0,t.nextTick)(),yield $(f.value)}catch{C.value=!1}}),{flush:`post`});let Bt=(0,t.watch)(()=>[i.loading,O.value],(n,r)=>d(null,[n,r],function*([n,r],a){if(!r||n)return;let o=a?.[0],s=o!==void 0&&!1!==o;yield(0,t.nextTick)(),e.O(()=>{d(null,null,function*(){try{if(s&&S.value)if(I.value&&f.value){let e=N;if(e)try{yield e}catch{}C.value=!1,S.value=!1,G(),K(),M(),f.value.replaceChildren(),yield(0,t.nextTick)(),yield $(f.value)}else Fe(String(i.node.code??``),g.value);x.value||(b.value?W():Y()),Bt()}catch{}})})}),{immediate:!0,flush:`post`});return(0,t.onUnmounted)(()=>{G(),K(),Re()}),(r,a)=>z.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(e.m),{key:0,node:i.node,loading:i.loading},null,8,[`node`,`loading`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`container`,ref:p,style:(0,t.normalizeStyle)(Ct.value),class:(0,t.normalizeClass)([`code-block-container my-4 rounded-lg border overflow-hidden shadow-sm`,[{"is-rendering":i.loading,"is-dark":It.value,"is-diff":I.value,"is-plain-text":Ae.value}]]),"data-markstream-code-block":`1`,"data-markstream-enhanced":C.value&&!z.value?`true`:`false`},[i.showHeader?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5`,style:(0,t.normalizeStyle)(wt.value)},[(0,t.renderSlot)(r.$slots,`header-left`,{},()=>[(0,t.createElementVNode)(`div`,se,[(0,t.createElementVNode)(`span`,{class:`icon-slot h-4 w-4 flex-shrink-0`,innerHTML:St.value},null,8,ce),(0,t.createElementVNode)(`div`,le,[(0,t.createElementVNode)(`div`,ue,(0,t.toDisplayString)(bt.value),1),xt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,de,(0,t.toDisplayString)(xt.value),1)):(0,t.createCommentVNode)(``,!0)])])],!0),(0,t.renderSlot)(r.$slots,`header-right`,{},()=>[(0,t.createElementVNode)(`div`,fe,[I.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`code-diff-stats`,"aria-label":Ue.value},[(0,t.createElementVNode)(`span`,me,`-`+(0,t.toDisplayString)(L.value.removed),1),(0,t.createElementVNode)(`span`,he,`+`+(0,t.toDisplayString)(L.value.added),1)],8,pe)):(0,t.createCommentVNode)(``,!0),i.showCollapseButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":x.value,onClick:Ot,onMouseenter:a[0]||=e=>Z(e,x.value?(0,t.unref)(c)(`common.expand`)||`Expand`:(0,t.unref)(c)(`common.collapse`)||`Collapse`),onFocus:a[1]||=e=>Z(e,x.value?(0,t.unref)(c)(`common.expand`)||`Expand`:(0,t.unref)(c)(`common.collapse`)||`Collapse`),onMouseleave:Q,onBlur:Q},[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{style:(0,t.normalizeStyle)({rotate:x.value?`0deg`:`90deg`}),xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[...a[18]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m9 18l6-6l-6-6`},null,-1)]],4))],40,ge)):(0,t.createCommentVNode)(``,!0),i.showFontSizeButtons&&i.enableFontSizeControl?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(V.value)&&V.value<=10,onClick:a[2]||=e=>function(){let e=dt(),t=Math.max(10,e-1);V.value=t}(),onMouseenter:a[3]||=e=>Z(e,(0,t.unref)(c)(`common.decrease`)||`Decrease`),onFocus:a[4]||=e=>Z(e,(0,t.unref)(c)(`common.decrease`)||`Decrease`),onMouseleave:Q,onBlur:Q},[...a[19]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14`})],-1)]],40,_e),(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!Ze.value||V.value===B.value,onClick:a[5]||=e=>(dt(),void(Number.isFinite(B.value)&&(V.value=B.value))),onMouseenter:a[6]||=e=>Z(e,(0,t.unref)(c)(`common.reset`)||`Reset`),onFocus:a[7]||=e=>Z(e,(0,t.unref)(c)(`common.reset`)||`Reset`),onMouseleave:Q,onBlur:Q},[...a[20]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,t.createElementVNode)(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,t.createElementVNode)(`path`,{d:`M3 3v5h5`})])],-1)]],40,ve),(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(V.value)&&V.value>=36,onClick:a[8]||=e=>function(){let e=dt(),t=Math.min(36,e+1);V.value=t}(),onMouseenter:a[9]||=e=>Z(e,(0,t.unref)(c)(`common.increase`)||`Increase`),onFocus:a[10]||=e=>Z(e,(0,t.unref)(c)(`common.increase`)||`Increase`),onMouseleave:Q,onBlur:Q},[...a[21]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`})],-1)]],40,ye)],64)):(0,t.createCommentVNode)(``,!0),i.showCopyButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":m.value?(0,t.unref)(c)(`common.copied`)||`Copied`:(0,t.unref)(c)(`common.copy`)||`Copy`,onClick:Tt,onMouseenter:a[11]||=e=>Dt(e),onFocus:a[12]||=e=>Dt(e),onMouseleave:Q,onBlur:Q},[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Se,[...a[23]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,xe,[...a[22]||=[(0,t.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,t.createElementVNode)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,t.createElementVNode)(`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,be)):(0,t.createCommentVNode)(``,!0),i.showExpandButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:4,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":b.value,onClick:a[13]||=t=>function(t){if(b.value=!b.value,t&&X.value){let n=Et(t);n&&e.b(n,b.value?c(`common.collapse`)||`Collapse`:c(`common.expand`)||`Expand`,`top`,!1,void 0,i.isDark)}let n=I.value?j():A(),r=f.value;n&&r&&(b.value?(At(!0),r.style.maxHeight=`none`,r.style.overflow=`visible`,W()):(At(!1),r.style.overflow=`auto`,Y()))}(t),onMouseenter:a[14]||=e=>Z(e,b.value?(0,t.unref)(c)(`common.collapse`)||`Collapse`:(0,t.unref)(c)(`common.expand`)||`Expand`),onFocus:a[15]||=e=>Z(e,b.value?(0,t.unref)(c)(`common.collapse`)||`Collapse`:(0,t.unref)(c)(`common.expand`)||`Expand`),onMouseleave:Q,onBlur:Q},[b.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,we,[...a[24]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Te,[...a[25]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`},null,-1)]]))],40,Ce)):(0,t.createCommentVNode)(``,!0),_t.value&&i.showPreviewButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:5,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":(0,t.unref)(c)(`common.preview`)||`Preview`,onClick:kt,onMouseenter:a[16]||=e=>Z(e,(0,t.unref)(c)(`common.preview`)||`Preview`),onFocus:a[17]||=e=>Z(e,(0,t.unref)(c)(`common.preview`)||`Preview`),onMouseleave:Q,onBlur:Q},[...a[26]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`},[(0,t.createElementVNode)(`g`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`},[(0,t.createElementVNode)(`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`}),(0,t.createElementVNode)(`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,Ee)):(0,t.createCommentVNode)(``,!0)])],!0)],4)):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)((0,t.createElementVNode)(`div`,De,[(0,t.createElementVNode)(`div`,{ref_key:`codeEditor`,ref:f,class:(0,t.normalizeClass)([`code-editor-container`,[n.stream?``:`code-height-placeholder`,{"is-hidden":Ye.value}]]),style:(0,t.normalizeStyle)(rt.value)},null,6),Ye.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(e.m),{key:0,class:(0,t.normalizeClass)([`code-pre-fallback`,{"is-wrap":Je.value}]),style:(0,t.normalizeStyle)(tt.value),node:i.node},null,8,[`class`,`style`,`node`])):(0,t.createCommentVNode)(``,!0)],512),[[t.vShow,!(x.value||!n.stream&&n.loading)]]),Xe.value&&!s.value&&_t.value&&h.value===`html`?((0,t.openBlock)(),(0,t.createBlock)(ee,{key:1,code:i.node.code,"is-dark":i.isDark,"on-close":()=>Xe.value=!1},null,8,[`code`,`is-dark`,`on-close`])):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)((0,t.createElementVNode)(`div`,{class:`code-loading-placeholder`,style:(0,t.normalizeStyle)(it.value)},[(0,t.renderSlot)(r.$slots,`loading`,{loading:n.loading,stream:n.stream},()=>[a[27]||=(0,t.createElementVNode)(`div`,{class:`loading-skeleton`},[(0,t.createElementVNode)(`div`,{class:`skeleton-line`}),(0,t.createElementVNode)(`div`,{class:`skeleton-line`}),(0,t.createElementVNode)(`div`,{class:`skeleton-line short`})],-1)],!0)],4),[[t.vShow,!n.stream&&n.loading]]),(0,t.createElementVNode)(`span`,Oe,(0,t.toDisplayString)(m.value?(0,t.unref)(c)(`common.copied`)||`Copied`:``),1)],14,oe))}}),[[`__scopeId`,`data-v-1a55f98f`]]);exports.default=Ae;
|
|
1
|
+
const e=require("./exports-DLbRciqS.cjs");let t=require("vue");var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t)=>{for(var n in t||={})o.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))s.call(t,n)&&c(e,n,t[n]);return e},u=(e,t)=>r(e,i(t)),d=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),f={class:`markstream-vue`},p={class:`html-preview-frame__header`},m={class:`html-preview-frame__title`},h={class:`html-preview-frame__label`},g=[`srcdoc`],ee=e.E((0,t.defineComponent)({__name:`HtmlPreviewFrame`,props:{code:{},isDark:{type:Boolean},onClose:{type:Function},title:{}},setup(n){let r=n,{t:i}=e.T(),a=(0,t.computed)(()=>{let e=r.code||``,t=e.trim().toLowerCase();return t.startsWith(`<!doctype`)||t.startsWith(`<html`)||t.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: ${r.isDark?`#020617`:`#ffffff`};\n color: ${r.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>`});function o(e){var t;e.key!==`Escape`&&e.key!==`Esc`||(t=r.onClose)==null||t.call(r)}return(0,t.onMounted)(()=>{typeof window<`u`&&window.addEventListener(`keydown`,o)}),(0,t.onUnmounted)(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,o)}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createElementVNode)(`div`,f,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`html-preview-frame__backdrop`,{"html-preview-frame__backdrop--dark":r.isDark}]),onClick:n[2]||=e=>r.onClose?.call(r)},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`html-preview-frame`,{"html-preview-frame--dark":r.isDark}]),onClick:n[1]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,p,[(0,t.createElementVNode)(`div`,m,[n[3]||=(0,t.createElementVNode)(`span`,{class:`html-preview-frame__dot`},null,-1),(0,t.createElementVNode)(`span`,h,(0,t.toDisplayString)(r.title||(0,t.unref)(i)(`common.preview`)||`Preview`),1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`html-preview-frame__close`,{"html-preview-frame__close--dark":r.isDark}]),onClick:n[0]||=e=>r.onClose?.call(r)},` × `,2)]),(0,t.createElementVNode)(`iframe`,{class:`html-preview-frame__iframe`,sandbox:`allow-scripts allow-same-origin`,srcdoc:a.value},null,8,g)],2)],2)])]))}}),[[`__scopeId`,`data-v-296dd89d`]]),_=null,te=null,v=null,y=null,ne=null,re=null,ie=new WeakMap,ae=0,oe=[`data-markstream-enhanced`],se={class:`code-header-main`},ce=[`innerHTML`],le={class:`code-header-copy`},ue={class:`code-header-title`},de={key:0,class:`code-header-caption`},fe={class:`code-header-actions`},pe=[`aria-label`],me={class:`code-diff-stat removed`},he={class:`code-diff-stat added`},ge=[`aria-pressed`],_e=[`disabled`],ve=[`disabled`],ye=[`disabled`],be=[`aria-label`],xe={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Se={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Ce=[`aria-pressed`],we={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Te={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},Ee=[`aria-label`],De={class:`code-editor-layer`},Oe={class:`sr-only`,"aria-live":`polite`,role:`status`},ke=`__markstreamMonacoPassiveTouch__`,Ae=e.E((0,t.defineComponent)({__name:`CodeBlockNode`,props:{node:{},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:`vitesse-dark`},lightTheme:{default:`vitesse-light`},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},showTooltips:{type:Boolean},customId:{},estimatedHeightPx:{},estimatedContentHeightPx:{}},emits:[`previewCode`,`copy`],setup(n,{emit:r}){let i=n,a=r,o=(0,t.getCurrentInstance)(),s=(0,t.computed)(()=>{let e=o?.vnode.props;return!(!e||!e.onPreviewCode&&!e.onPreviewCode)}),{t:c}=e.T(),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(e.r(i.node.language)),g=(0,t.computed)(()=>e.a(h.value)),Ae=(0,t.computed)(()=>g.value===`plaintext`),b=(0,t.ref)(!1),x=(0,t.ref)(!1),S=(0,t.ref)(!1),C=(0,t.ref)(!1),je=(0,t.ref)(!1),w=!1,T=null,E=(0,t.ref)(null),Me=0,Ne=e.y(),D=(0,t.ref)(null),O=(0,t.ref)(typeof window>`u`);typeof window<`u`&&(0,t.watch)(()=>p.value,e=>{var t;if((t=D.value)==null||t.destroy(),D.value=null,!e)return void(O.value=!1);let n=Ne(e,{rootMargin:`400px`});D.value=n,O.value=n.isVisible.value,n.whenVisible.then(()=>{O.value=!0})},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{var e;w=!0,(e=D.value)==null||e.destroy(),D.value=null});let k=null,Pe=null,Fe=()=>{},Ie=()=>{},Le=()=>null,A=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),j=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),Re=()=>{},M=()=>{},ze=()=>{},N=null,Be=()=>String(i.node.language??`plaintext`),Ve=()=>d(null,null,function*(){}),P=[],He=[],F=null,I=(0,t.computed)(()=>i.node.diff),L=(0,t.ref)({removed:0,added:0}),Ue=(0,t.computed)(()=>`-${L.value.removed} +${L.value.added}`),We=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function Ge(e){var t;if(typeof e==`boolean`)return e;if(e&&typeof e==`object`){let n=e;return u(l(l({},We),n),{enabled:(t=n.enabled)==null||t})}return l({},We)}let R=(0,t.computed)(()=>{let e=i.monacoOptions?l({},i.monacoOptions):{};if(!I.value)return e;let t=e.diffHideUnchangedRegions===void 0?l({},We):Ge(e.diffHideUnchangedRegions),n=e.hideUnchangedRegions===void 0?void 0:Ge(e.hideUnchangedRegions),r=e.diffUnchangedRegionStyle??`line-info`;return u(l(l(l({},{maxComputationTime:0,diffAlgorithm:`legacy`,ignoreTrimWhitespace:!1,renderIndicators:!0,diffUpdateThrottleMs:120,renderLineHighlight:`none`,renderLineHighlightOnlyWhenFocus:!0,selectionHighlight:!1,occurrencesHighlight:`off`,matchBrackets:`never`,lineDecorationsWidth:12,lineNumbersMinChars:2,glyphMargin:!1,fontSize:13,lineHeight:30,renderOverviewRuler:!1,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,padding:{top:10,bottom:r===`line-info`||r===`line-info-basic`||r===`metadata`?22:14},diffHideUnchangedRegions:t,diffLineStyle:`background`,diffAppearance:`auto`,diffUnchangedRegionStyle:r,diffHunkActionsOnHover:!0,diffHunkHoverHideDelayMs:160}),e),n===void 0?{}:{hideUnchangedRegions:n}),{diffHideUnchangedRegions:t})}),Ke=(0,t.computed)(()=>I.value?`diff`:`single`),qe=(0,t.ref)(Ke.value),z=(0,t.ref)(!1),Je=(0,t.computed)(()=>{let e=i.monacoOptions?.wordWrap;return e==null||String(e)!==`off`}),Ye=(0,t.computed)(()=>!z.value&&!C.value),Xe=(0,t.ref)(!1);typeof window<`u`&&d(null,null,function*(){try{let t=yield e.D();if(w)return;if(!t)return void(z.value=!0);let n=t.useMonaco,r=t.detectLanguage;if(typeof r==`function`&&(Be=r),typeof n==`function`){let e=Nt();if(e&&i.themes&&Array.isArray(i.themes)&&!i.themes.includes(e))throw Error(`Preferred theme not in provided themes array`);F=Lt();let t=n(F);k=t.createEditor||k,Pe=t.createDiffEditor||Pe,Fe=t.updateCode||Fe,Ie=t.updateDiff||Ie,Le=t.getEditor||Le,A=t.getEditorView||A,j=t.getDiffEditorView||j,Re=t.cleanupEditor||Re,M=t.safeClean||t.cleanupEditor||M,ze=t.refreshDiffPresentation||ze,Ve=t.setTheme||Ve,je.value=!0,!w&&f.value&&(yield $(f.value))}}catch{if(w)return;z.value=!0}});let B=(0,t.ref)(typeof i.monacoOptions?.fontSize==`number`?i.monacoOptions.fontSize:NaN),V=(0,t.ref)(B.value),Ze=(0,t.computed)(()=>{let e=B.value,t=V.value;return typeof e==`number`&&Number.isFinite(e)&&e>0&&typeof t==`number`&&Number.isFinite(t)&&t>0}),Qe=(0,t.computed)(()=>{let e=i.monacoOptions?.fontSize;if(typeof e==`number`&&Number.isFinite(e)&&e>0)return e;let t=V.value;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:12}),$e=(0,t.computed)(()=>{let e=i.monacoOptions?.lineHeight;return typeof e==`number`&&Number.isFinite(e)&&e>0?e:Math.round(1.5*Qe.value)}),et=(0,t.computed)(()=>{let e=i.monacoOptions?.tabSize;return typeof e==`number`&&Number.isFinite(e)&&e>0?e:4}),H=(0,t.computed)(()=>{let e=i.estimatedContentHeightPx;return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.round(e):null}),tt=(0,t.computed)(()=>{let e=i.monacoOptions?.fontFamily;return l(l({fontSize:`${Qe.value}px`,lineHeight:`${$e.value}px`,tabSize:et.value},H.value==null?{}:{minHeight:`${H.value}px`}),typeof e==`string`&&e.trim()?{"--markstream-code-font-family":e.trim()}:{})}),nt=(0,t.computed)(()=>H.value!=null&&!C.value),rt=(0,t.computed)(()=>{if(nt.value)return{minHeight:`${H.value}px`}}),it=(0,t.computed)(()=>{if(H.value!=null)return{minHeight:`${H.value}px`}});function at(){var e;try{let t=I.value?((e=j())?.getModifiedEditor)?.call(e)??j():A(),n=Le()?.EditorOption?.fontInfo;if(t&&n!=null){let e=t.getOption?.call(t,n)?.fontSize;if(typeof e==`number`&&Number.isFinite(e)&&e>0)return e}}catch{}try{let e=f.value;if(e){let t=e.querySelector(`.view-lines .view-line`);if(t)try{if(typeof window<`u`&&typeof window.getComputedStyle==`function`){let e=window.getComputedStyle(t).fontSize,n=e&&e.match(/^(\d+(?:\.\d+)?)/);if(n)return Number.parseFloat(n[1])}}catch{}}}catch{}return null}function ot(e){try{let t=Le()?.EditorOption?.lineHeight;if(t!=null){let n=(e?.getOption)?.call(e,t);if(typeof n==`number`&&n>0)return n}}catch{}let t=function(){try{let e=f.value;if(!e)return null;let t=e.querySelector(`.view-lines .view-line`);if(t){let e=Math.ceil(t.getBoundingClientRect().height);if(e>0)return e}}catch{}return null}();if(t&&t>0)return t;let n=Number.isFinite(V.value)&&V.value>0?V.value:12;return Math.max(12,Math.round(1.35*n))}function st(e,t){return typeof e!=`number`||typeof t!=`number`||e<1||t<e?0:t-e+1}function ct(e){if(!e)return[];let t=e.split(/\r?\n/);return t.length===1&&t[0]===``?[]:t}function lt(){I.value?L.value=function(e,t){let n=ct(e),r=ct(t),i=0,a=n.length-1,o=r.length-1;for(;i<=a&&i<=o&&n[i]===r[i];)i++;for(;a>=i&&o>=i&&n[a]===r[o];)a--,o--;return{removed:Math.max(0,a-i+1),added:Math.max(0,o-i+1)}}(String(i.node.originalCode??``),String(i.node.updatedCode??``)):L.value={removed:0,added:0}}function ut(){if(I.value)try{let e=j(),t=(e?.getLineChanges)?.call(e);if(!Array.isArray(t))return void lt();let n=0,r=0;for(let e of t)n+=st(e.originalStartLineNumber,e.originalEndLineNumber),r+=st(e.modifiedStartLineNumber,e.modifiedEndLineNumber);L.value={removed:n,added:r}}catch{lt()}else L.value={removed:0,added:0}}function dt(){if(Number.isFinite(V.value)&&V.value>0&&Number.isFinite(B.value))return V.value;let e=at();return typeof i.monacoOptions?.fontSize==`number`?(B.value=i.monacoOptions.fontSize,V.value=i.monacoOptions.fontSize,V.value):e&&e>0?(B.value=e,V.value=e,e):(B.value=12,V.value=12,12)}function ft(){var e,t,n,r,i;try{let a=I.value?j():null,o=I.value?a:A();if(!o)return null;if(a?.getOriginalEditor&&a?.getModifiedEditor){let i=a.getOriginalEditor?.call(a),o=a.getModifiedEditor?.call(a);(e=i?.layout)==null||e.call(i),(t=o?.layout)==null||t.call(o);let s=(i?.getContentHeight)?.call(i)||0,c=(o?.getContentHeight)?.call(o)||0,l=Math.max(s,c);if(l>0)return Math.ceil(l+1);let u=((n=(i?.getModel)?.call(i))?.getLineCount)?.call(n)||1,d=((r=(o?.getModel)?.call(o))?.getLineCount)?.call(r)||1,f=Math.max(u,d),p=Math.max(ot(i),ot(o));return Math.ceil(f*(p+1.5)+0+1)}if(o?.getContentHeight){(i=o?.layout)==null||i.call(o);let e=o.getContentHeight();if(e>0)return Math.ceil(e+1)}let s=(o?.getModel)?.call(o),c=1;s&&typeof s.getLineCount==`function`&&(c=s.getLineCount());let l=ot(o);return Math.ceil(c*(l+1.5)+0+1)}catch{return null}}function pt(e){let t=String(e??``).match(/\d+(?:\.\d+)?/g);if(!t||t.length<3)return null;let[n,r,i]=t.slice(0,3).map(Number);return .2126*n+.7152*r+.0722*i}function mt(){let e=f.value,t=p.value;if(!e||!t)return;if(I.value)return t.style.removeProperty(`--vscode-editor-foreground`),t.style.removeProperty(`--vscode-editor-background`),void t.style.removeProperty(`--vscode-editor-selectionBackground`);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;try{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))}catch{a=null,o=null,s=null}let c=String(a?.getPropertyValue(`--vscode-editor-foreground`)??``).trim(),l=String(a?.getPropertyValue(`--vscode-editor-background`)??``).trim(),u=String(a?.getPropertyValue(`--vscode-editor-selectionBackground`)??a?.getPropertyValue(`--vscode-editor-hoverHighlightBackground`)??``).trim(),d=c||String(s?.color??a?.color??``).trim(),m=l||String(o?.backgroundColor??a?.backgroundColor??``).trim();if(function(e,t,n){if(!Ae.value)return!1;let r=pt(e),i=pt(t);return n?r!=null&&r>170||i!=null&&i<110:r!=null&&r<85||i!=null&&i>190}(m,d,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`);d&&t.style.setProperty(`--vscode-editor-foreground`,d),m&&t.style.setProperty(`--vscode-editor-background`,m),u&&t.style.setProperty(`--vscode-editor-selectionBackground`,u)}let ht=/auto|scroll|overlay/i;function U(e,t,n){if(typeof window>`u`)return;let r=Math.ceil(n)-Math.ceil(t);if(!r)return;let i=function(e){if(typeof window>`u`)return null;let t=e?.ownerDocument??document,n=t.scrollingElement||t.documentElement||t.body,r=e?.parentElement??null;for(;r&&r!==t.body&&r!==n;){let e=window.getComputedStyle(r),t=(e.overflowY||``).toLowerCase(),n=(e.overflow||``).toLowerCase();if(ht.test(t)||ht.test(n))return r;r=r.parentElement}return n}(e);if(!i)return;let a=e.ownerDocument??document,o=i===a.body||i===a.documentElement||i===a.scrollingElement,s=o?0:i.getBoundingClientRect().top;e.getBoundingClientRect().top-s>=0||(o&&typeof window.scrollBy==`function`?window.scrollBy(0,r):i.scrollTop+=r)}function W(){try{let e=f.value;if(!e)return;let t=e.getBoundingClientRect().height,n=ft();if(n!=null&&n>0){let r=Math.ceil(n);e.style.minHeight=`0px`,e.style.height=`${r}px`,e.style.maxHeight=`none`,e.style.overflow=`visible`,U(e,t,r)}}catch{}}function G(){for(var t,n;P.length>0;)try{(n=(t=P.pop())?.dispose)==null||n.call(t)}catch{}T!=null&&(e.s(T),T=null)}function K(){for(var e;He.length>0;)try{(e=He.pop())==null||e()}catch{}}function gt(){if(K(),!I.value)return;let e=f.value;if(!e)return;let t=e.querySelector(`.monaco-diff-editor`);if(!t||t.classList.contains(`side-by-side`))return;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);for(let e=0;e<i;e++){let t=n[e],i=r[e].querySelector(`a`),a=t.querySelector(`.center > div:first-child`);if(!i||!a)continue;let o=document.createElement(`button`);o.type=`button`,o.className=`markstream-inline-fold-proxy`;let s=i.getAttribute(`title`)||`Show Unchanged Region`;o.title=s,o.setAttribute(`aria-label`,s);let c=i.querySelector(`.codicon`),l=document.createElement(`span`);l.className=c?.className||`codicon codicon-unfold`,o.append(l);let u=e=>{e.preventDefault(),e.stopPropagation()},d=e=>{e.preventDefault(),e.stopPropagation(),i.click()},f=e=>{e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.stopPropagation(),i.click())};o.addEventListener(`mousedown`,u),o.addEventListener(`click`,d),o.addEventListener(`keydown`,f),a.replaceChildren(o),He.push(()=>{o.removeEventListener(`mousedown`,u),o.removeEventListener(`click`,d),o.removeEventListener(`keydown`,f),a.contains(o)&&a.replaceChildren()})}}function q(){T??=e.O(()=>{T=null,e.O(()=>{gt(),x.value||(b.value?W():Y())})})}function J(e,t,n){let r=Math.min(t,n),i=t>n+1;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)}function Y(){try{let e=f.value;if(!e)return;let t=e.getBoundingClientRect().height,n=function(){let e=i.monacoOptions?.MAX_HEIGHT??500;if(typeof e==`number`)return e;let t=String(e).match(/^(\d+(?:\.\d+)?)/);return t?Number.parseFloat(t[1]):500}();if(Me>0&&(Me--,E.value!=null))return void U(e,t,J(e,E.value,n));let r=ft();if(r!=null&&r>0)return void U(e,t,J(e,r,n));if(E.value!=null)return void U(e,t,J(e,E.value,n));let a=Math.ceil(e.getBoundingClientRect?.call(e).height||0);if(a>0)return void U(e,t,J(e,a,n));let o=Number.parseFloat(e.style.height);!Number.isNaN(o)&&o>0?U(e,t,J(e,o,n)):U(e,t,J(e,n,n))}catch{}}let _t=(0,t.computed)(()=>i.isShowPreview&&(h.value===`html`||h.value===`svg`));(0,t.watch)(()=>i.node.language,t=>{h.value=e.r(t)}),(0,t.watch)(()=>[i.node.originalCode,i.node.updatedCode,I.value],()=>{lt(),e.O(()=>ut())},{immediate:!0}),(0,t.watch)(()=>[i.node.originalCode,i.node.updatedCode,g.value,I.value],t=>d(null,[t],function*([t,n,r,a]){if(!1!==i.stream&&a){if(k&&!S.value&&f.value)try{yield $(f.value)}catch{}Ie(String(t??``),String(n??``),g.value),b.value&&e.O(()=>W())}})),(0,t.watch)(()=>i.node.code,t=>d(null,null,function*(){if(!1!==i.stream&&(h.value||=e.r(Be(t)),!I.value)){if(k&&!S.value&&f.value)try{yield $(f.value)}catch{}Fe(t,g.value),b.value&&e.O(()=>W())}}));let vt=(0,t.computed)(()=>{let t=h.value;return t?e.d[t]||t.charAt(0).toUpperCase()+t.slice(1):e.d[``]||`Plain Text`}),yt=(0,t.computed)(()=>function(e){let t=function(e){let t=String(e??``).split(/\r?\n/,1)[0]?.trim()??``;if(t.length<3)return``;let n=t[0];if(n!=="`"&&n!==`~`||t[1]!==n||t[2]!==n)return``;let r=3;for(;t[r]===n;)r+=1;return t.slice(r).trim()}(e);if(!t)return``;let n=t.split(/\s+/).filter(Boolean);if(!n.length)return``;let r=n[0]===`diff`?n.slice(1):n;for(let e of r){let t=e.includes(`:`)?e.slice(e.indexOf(`:`)+1):e;if(t&&/[./\\-]/.test(t))return t}return``}(String(i.node.raw??``))),bt=(0,t.computed)(()=>yt.value||vt.value),xt=(0,t.computed)(()=>yt.value?I.value?`Diff / ${vt.value}`:vt.value:``),St=(0,t.computed)(()=>(e.n.value,e.h(h.value||``))),Ct=(0,t.computed)(()=>{let e={},t=e=>{if(e!=null)return typeof e==`number`?`${e}px`:String(e)},n=t(i.minWidth),r=t(i.maxWidth);return n&&(e.minWidth=n),r&&(e.maxWidth=r),I.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}),wt=(0,t.computed)(()=>{if(!I.value)return{color:`var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))`,backgroundColor:`var(--vscode-editor-background, var(--markstream-code-fallback-bg))`}}),X=(0,t.computed)(()=>!1!==i.showTooltips);function Tt(){return d(this,null,function*(){try{typeof navigator<`u`&&navigator.clipboard&&typeof navigator.clipboard.writeText==`function`&&(yield navigator.clipboard.writeText(i.node.code)),m.value=!0,a(`copy`,i.node.code),setTimeout(()=>{m.value=!1},1e3)}catch(e){console.error(`复制失败:`,e)}})}function Et(e){let t=e.currentTarget||e.target;return!t||t.disabled?null:t}function Z(t,n,r=`top`){if(!X.value)return;let a=Et(t);if(!a)return;let o=t,s=o?.clientX!=null&&o?.clientY!=null?{x:o.clientX,y:o.clientY}:void 0;e.b(a,n,r,!1,s,i.isDark)}function Q(){X.value&&e.C()}function Dt(t){if(!X.value)return;let n=Et(t);if(!n)return;let r=m.value?c(`common.copied`)||`Copied`:c(`common.copy`)||`Copy`,a=t,o=a?.clientX!=null&&a?.clientY!=null?{x:a.clientX,y:a.clientY}:void 0;e.b(n,r,`top`,!1,o,i.isDark)}function Ot(){var t,n;if(x.value=!x.value,x.value){if(f.value){let e=Math.ceil((t=f.value).getBoundingClientRect?.call(t).height||0);e>0&&(E.value=e)}At(!1)}else{b.value&&At(!0),f.value&&E.value!=null&&(f.value.style.height=`${E.value}px`);let t=I.value?j():A();try{(n=t?.layout)==null||n.call(t)}catch{}Me=2,e.O(()=>{b.value?W():Y()})}}function kt(){if(!_t.value)return;let e=h.value;if(s.value){let t=e===`html`?`text/html`:`image/svg+xml`,n=e===`html`?c(`artifacts.htmlPreviewTitle`)||`HTML Preview`:c(`artifacts.svgPreviewTitle`)||`SVG Preview`;a(`previewCode`,{node:i.node,artifactType:t,artifactTitle:n,id:`temp-${e}-${Date.now()}`});return}e===`html`&&(Xe.value=!Xe.value)}function At(e){var t,n;try{if(I.value){let n=j();(t=n?.updateOptions)==null||t.call(n,{automaticLayout:e})}else{let t=A();(n=t?.updateOptions)==null||n.call(t,{automaticLayout:e})}}catch{}}function $(n){if(!k||w)return null;if(function(){try{let e=window;if(e[ke])return;let t=window.Element?.prototype,n=t?.addEventListener;if(!t||!n)return;t.addEventListener=function(e,t,r){return e===`touchstart`&&function(e,t){if(!e)return!1;let n=e;return!(typeof n.closest!=`function`||!n.closest(`.monaco-editor, .monaco-diff-editor`)||t&&typeof t==`object`&&`passive`in t)}(this,r)?n.call(this,e,t,function(e){return e==null?{passive:!0}:typeof e==`boolean`?{capture:e,passive:!0}:typeof e==`object`?`passive`in e?e:u(l({},e),{passive:!0}):{passive:!0}}(r)):n.call(this,e,t,r)},e[ke]=!0}catch{}}(),N)return N;if(S.value&&C.value)return Promise.resolve();S.value=!0;let r=d(null,null,function*(){yield function(n){return d(this,null,function*(){if(!k||w||(G(),K(),function(e){e.replaceChildren()}(n),w)||(I.value?(M(),Pe?yield Pe(n,String(i.node.originalCode??``),String(i.node.updatedCode??``),g.value):yield k(n,i.node.code,g.value)):yield k(n,i.node.code,g.value),w))return;let r=I.value?j():A();if(typeof i.monacoOptions?.fontSize==`number`)r?.updateOptions({fontSize:i.monacoOptions.fontSize,automaticLayout:!1}),B.value=i.monacoOptions.fontSize,V.value=i.monacoOptions.fontSize;else{let e=at();e&&e>0?(B.value=e,V.value=e):(B.value=12,V.value=12)}if(b.value||x.value||Y(),!1===i.loading){if(yield(0,t.nextTick)(),w)return;e.O(()=>{w||(b.value&&!x.value?W():x.value||Y())})}yield(0,t.nextTick)(),w||(C.value=!0,function(){if(G(),I.value){let t=j(),n=(t?.getOriginalEditor)?.call(t),r=(t?.getModifiedEditor)?.call(t),i=(e,t)=>{try{let n=e?.[t];if(typeof n!=`function`)return;let r=n.call(e,()=>q());r&&P.push(r)}catch{}};try{let n=(t?.onDidUpdateDiff)?.call(t,()=>{q(),e.O(()=>ut())});n&&P.push(n)}catch{}i(n,`onDidContentSizeChange`),i(r,`onDidContentSizeChange`),i(n,`onDidLayoutChange`),i(r,`onDidLayoutChange`)}else{let e=A();try{let t=(e?.onDidContentSizeChange)?.call(e,()=>q());t&&P.push(t)}catch{}try{let t=(e?.onDidLayoutChange)?.call(e,()=>q());t&&P.push(t)}catch{}}}(),mt(),gt(),ut(),q())})}(n)}).finally(()=>{N===r&&(N=null)});return N=r,r}(0,t.watch)(X,t=>{t||e.C()}),(0,t.watch)(()=>V.value,(e,t)=>{let n=I.value?j():A();n&&typeof e==`number`&&Number.isFinite(e)&&e>0&&(n.updateOptions({fontSize:e}),b.value&&!x.value&&W())},{flush:`post`,immediate:!1});let jt=(0,t.watch)(()=>[f.value,I.value,i.stream,i.loading,je.value,O.value],e=>d(null,[e],function*([e,t,n,r,i,a]){if(!e||!k||!a||!1===n&&!1!==r)return;let o=$(e);if(o){try{yield o}catch{C.value=!1}jt()}}));function Mt(e){return typeof e==`string`?e:e&&typeof e==`object`&&`name`in e?String(e.name):null}function Nt(){let e=i.isDark?i.darkTheme:i.lightTheme,t=R.value?.theme,n=e??t,r=Array.isArray(i.themes)?i.themes:[];if(!r.length||n==null)return n;let a=Mt(n),o=r.map(e=>Mt(e)).filter(e=>!!e);if(!a||o.includes(a))return n;let s=Mt(t);return t!=null&&s&&o.includes(s)?t:r[0]}(0,t.watch)(Ke,(e,n)=>d(null,null,function*(){if(e===n||(qe.value=e,!k||!f.value)||!S.value||!1===i.stream&&!1!==i.loading||!O.value)return;let r=N;if(r){try{yield r}catch{}if(w||!f.value)return}try{C.value=!1,S.value=!1,G(),K(),M(),yield(0,t.nextTick)(),yield $(f.value)}catch{C.value=!1}}));let Pt=(0,t.computed)(()=>function(e){let t=(Mt(e)??``).toLowerCase();return t?[`dark`,`night`,`moon`,`black`,`dracula`,`mocha`,`frappe`,`macchiato`,`palenight`,`ocean`,`poimandres`,`monokai`,`laserwave`,`tokyo`,`slack-dark`,`rose-pine`,`github-dark`,`material-theme`,`one-dark`,`catppuccin-mocha`,`catppuccin-frappe`,`catppuccin-macchiato`].some(e=>t.includes(e))&&![`light`,`latte`,`dawn`,`lotus`].some(e=>t.includes(e)):!!i.isDark}(Nt())),Ft=(0,t.computed)(()=>{if(!I.value)return Pt.value?`dark`:`light`;let e=R.value?.diffAppearance;return e===`light`||e===`dark`?e:i.isDark?`dark`:`light`}),It=(0,t.computed)(()=>I.value?Ft.value===`dark`:Pt.value);function Lt(){return u(l(u(l({wordWrap:`on`,wrappingIndent:`same`,themes:i.themes},R.value||{}),{theme:Nt()}),I.value?{diffAppearance:Ft.value}:{}),{onThemeChange(){mt()}})}function Rt(){let e=Lt();if(!F)return F=e,F;for(let t of Object.keys(F))t in e||delete F[t];return Object.assign(F,e),F}let zt=(0,t.computed)(()=>{var e,t,n,r,i;return JSON.stringify({diffLineStyle:R.value?.diffLineStyle??`background`,diffUnchangedRegionStyle:R.value?.diffUnchangedRegionStyle??`line-info`,diffHideUnchangedRegions:(e=R.value?.diffHideUnchangedRegions)==null||e,renderSideBySide:(t=R.value?.renderSideBySide)==null||t,enableSplitViewResizing:(n=R.value?.enableSplitViewResizing)==null||n,ignoreTrimWhitespace:(r=R.value?.ignoreTrimWhitespace)==null||r,originalEditable:(i=R.value?.originalEditable)!=null&&i})});(0,t.watch)(()=>[i.monacoOptions,O.value],()=>{var e;if(Rt(),!k||!O.value)return;let t=I.value?j():A(),n=typeof i.monacoOptions?.fontSize==`number`?i.monacoOptions.fontSize:Number.isFinite(V.value)?V.value:void 0;typeof n==`number`&&Number.isFinite(n)&&n>0&&((e=t?.updateOptions)==null||e.call(t,{fontSize:n})),b.value&&!x.value?W():x.value||Y()},{deep:!0}),(0,t.watch)(()=>[Nt(),Ft.value,je.value,S.value,O.value],()=>{je.value&&S.value&&O.value&&function(){Rt();let t=Nt(),n=()=>{I.value&&ze(),e.O(()=>{mt(),q()})};t?function(e,t){let n=function(e){if(e==null)return null;if(typeof e==`string`)return e;if(typeof e==`object`&&`name`in e)return String(e.name);if(typeof e==`object`){let t=ie.get(e);if(t)return t;try{let t=JSON.stringify(e);if(t)return ie.set(e,t),t}catch{}let n=`__theme_`+ ++ae;return ie.set(e,n),n}return String(e)}(t);return n?(re=e,_||ne!==n?_?(y===n||te===n||(v=t,y=n),_):(v=t,y=n,_=d(null,null,function*(){for(;y&&v!=null;){let t=v,n=y;if(v=null,y=null,ne!==n)try{te=n,yield(re??e)(t),ne=n}catch{}}}).finally(()=>{_=null,te=null}),_):Promise.resolve()):Promise.resolve()}(Ve,t).then(n).catch(e=>{}):n()}()},{flush:`post`}),(0,t.watch)(()=>[zt.value,je.value,O.value],(e,n)=>d(null,[e,n],function*([e,n,r],[a]){if(Rt(),!n||!r||!k||!f.value||!S.value||e===a||!1===i.stream&&!1!==i.loading)return;let o=N;if(o){try{yield o}catch{}if(w||!f.value)return}try{C.value=!1,S.value=!1,G(),K(),M(),yield(0,t.nextTick)(),yield $(f.value)}catch{C.value=!1}}),{flush:`post`});let Bt=(0,t.watch)(()=>[i.loading,O.value],(n,r)=>d(null,[n,r],function*([n,r],a){if(!r||n)return;let o=a?.[0],s=o!==void 0&&!1!==o;yield(0,t.nextTick)(),e.O(()=>{d(null,null,function*(){try{if(s&&S.value)if(I.value&&f.value){let e=N;if(e)try{yield e}catch{}C.value=!1,S.value=!1,G(),K(),M(),f.value.replaceChildren(),yield(0,t.nextTick)(),yield $(f.value)}else Fe(String(i.node.code??``),g.value);x.value||(b.value?W():Y()),Bt()}catch{}})})}),{immediate:!0,flush:`post`});return(0,t.onUnmounted)(()=>{G(),K(),Re()}),(r,a)=>z.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(e.m),{key:0,node:i.node,loading:i.loading},null,8,[`node`,`loading`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`container`,ref:p,style:(0,t.normalizeStyle)(Ct.value),class:(0,t.normalizeClass)([`code-block-container my-4 rounded-lg border overflow-hidden shadow-sm`,[{"is-rendering":i.loading,"is-dark":It.value,"is-diff":I.value,"is-plain-text":Ae.value}]]),"data-markstream-code-block":`1`,"data-markstream-enhanced":C.value&&!z.value?`true`:`false`},[i.showHeader?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5`,style:(0,t.normalizeStyle)(wt.value)},[(0,t.renderSlot)(r.$slots,`header-left`,{},()=>[(0,t.createElementVNode)(`div`,se,[(0,t.createElementVNode)(`span`,{class:`icon-slot h-4 w-4 flex-shrink-0`,innerHTML:St.value},null,8,ce),(0,t.createElementVNode)(`div`,le,[(0,t.createElementVNode)(`div`,ue,(0,t.toDisplayString)(bt.value),1),xt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,de,(0,t.toDisplayString)(xt.value),1)):(0,t.createCommentVNode)(``,!0)])])],!0),(0,t.renderSlot)(r.$slots,`header-right`,{},()=>[(0,t.createElementVNode)(`div`,fe,[I.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`code-diff-stats`,"aria-label":Ue.value},[(0,t.createElementVNode)(`span`,me,`-`+(0,t.toDisplayString)(L.value.removed),1),(0,t.createElementVNode)(`span`,he,`+`+(0,t.toDisplayString)(L.value.added),1)],8,pe)):(0,t.createCommentVNode)(``,!0),i.showCollapseButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":x.value,onClick:Ot,onMouseenter:a[0]||=e=>Z(e,x.value?(0,t.unref)(c)(`common.expand`)||`Expand`:(0,t.unref)(c)(`common.collapse`)||`Collapse`),onFocus:a[1]||=e=>Z(e,x.value?(0,t.unref)(c)(`common.expand`)||`Expand`:(0,t.unref)(c)(`common.collapse`)||`Collapse`),onMouseleave:Q,onBlur:Q},[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{style:(0,t.normalizeStyle)({rotate:x.value?`0deg`:`90deg`}),xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[...a[18]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m9 18l6-6l-6-6`},null,-1)]],4))],40,ge)):(0,t.createCommentVNode)(``,!0),i.showFontSizeButtons&&i.enableFontSizeControl?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(V.value)&&V.value<=10,onClick:a[2]||=e=>function(){let e=dt(),t=Math.max(10,e-1);V.value=t}(),onMouseenter:a[3]||=e=>Z(e,(0,t.unref)(c)(`common.decrease`)||`Decrease`),onFocus:a[4]||=e=>Z(e,(0,t.unref)(c)(`common.decrease`)||`Decrease`),onMouseleave:Q,onBlur:Q},[...a[19]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14`})],-1)]],40,_e),(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!Ze.value||V.value===B.value,onClick:a[5]||=e=>(dt(),void(Number.isFinite(B.value)&&(V.value=B.value))),onMouseenter:a[6]||=e=>Z(e,(0,t.unref)(c)(`common.reset`)||`Reset`),onFocus:a[7]||=e=>Z(e,(0,t.unref)(c)(`common.reset`)||`Reset`),onMouseleave:Q,onBlur:Q},[...a[20]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,t.createElementVNode)(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,t.createElementVNode)(`path`,{d:`M3 3v5h5`})])],-1)]],40,ve),(0,t.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(V.value)&&V.value>=36,onClick:a[8]||=e=>function(){let e=dt(),t=Math.min(36,e+1);V.value=t}(),onMouseenter:a[9]||=e=>Z(e,(0,t.unref)(c)(`common.increase`)||`Increase`),onFocus:a[10]||=e=>Z(e,(0,t.unref)(c)(`common.increase`)||`Increase`),onMouseleave:Q,onBlur:Q},[...a[21]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`})],-1)]],40,ye)],64)):(0,t.createCommentVNode)(``,!0),i.showCopyButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":m.value?(0,t.unref)(c)(`common.copied`)||`Copied`:(0,t.unref)(c)(`common.copy`)||`Copy`,onClick:Tt,onMouseenter:a[11]||=e=>Dt(e),onFocus:a[12]||=e=>Dt(e),onMouseleave:Q,onBlur:Q},[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Se,[...a[23]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,xe,[...a[22]||=[(0,t.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,t.createElementVNode)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,t.createElementVNode)(`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,be)):(0,t.createCommentVNode)(``,!0),i.showExpandButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:4,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":b.value,onClick:a[13]||=t=>function(t){if(b.value=!b.value,t&&X.value){let n=Et(t);if(n){let t=b.value?c(`common.collapse`)||`Collapse`:c(`common.expand`)||`Expand`;e.b(n,t,`top`,!1,void 0,i.isDark)}}let n=I.value?j():A(),r=f.value;n&&r&&(b.value?(At(!0),r.style.maxHeight=`none`,r.style.overflow=`visible`,W()):(At(!1),r.style.overflow=`auto`,Y()))}(t),onMouseenter:a[14]||=e=>Z(e,b.value?(0,t.unref)(c)(`common.collapse`)||`Collapse`:(0,t.unref)(c)(`common.expand`)||`Expand`),onFocus:a[15]||=e=>Z(e,b.value?(0,t.unref)(c)(`common.collapse`)||`Collapse`:(0,t.unref)(c)(`common.expand`)||`Expand`),onMouseleave:Q,onBlur:Q},[b.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,we,[...a[24]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Te,[...a[25]||=[(0,t.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`},null,-1)]]))],40,Ce)):(0,t.createCommentVNode)(``,!0),_t.value&&i.showPreviewButton?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:5,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":(0,t.unref)(c)(`common.preview`)||`Preview`,onClick:kt,onMouseenter:a[16]||=e=>Z(e,(0,t.unref)(c)(`common.preview`)||`Preview`),onFocus:a[17]||=e=>Z(e,(0,t.unref)(c)(`common.preview`)||`Preview`),onMouseleave:Q,onBlur:Q},[...a[26]||=[(0,t.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`},[(0,t.createElementVNode)(`g`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`},[(0,t.createElementVNode)(`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`}),(0,t.createElementVNode)(`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,Ee)):(0,t.createCommentVNode)(``,!0)])],!0)],4)):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)((0,t.createElementVNode)(`div`,De,[(0,t.createElementVNode)(`div`,{ref_key:`codeEditor`,ref:f,class:(0,t.normalizeClass)([`code-editor-container`,[n.stream?``:`code-height-placeholder`,{"is-hidden":Ye.value}]]),style:(0,t.normalizeStyle)(rt.value)},null,6),Ye.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(e.m),{key:0,class:(0,t.normalizeClass)([`code-pre-fallback`,{"is-wrap":Je.value}]),style:(0,t.normalizeStyle)(tt.value),node:i.node},null,8,[`class`,`style`,`node`])):(0,t.createCommentVNode)(``,!0)],512),[[t.vShow,!(x.value||!n.stream&&n.loading)]]),Xe.value&&!s.value&&_t.value&&h.value===`html`?((0,t.openBlock)(),(0,t.createBlock)(ee,{key:1,code:i.node.code,"is-dark":i.isDark,"on-close":()=>Xe.value=!1},null,8,[`code`,`is-dark`,`on-close`])):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)((0,t.createElementVNode)(`div`,{class:`code-loading-placeholder`,style:(0,t.normalizeStyle)(it.value)},[(0,t.renderSlot)(r.$slots,`loading`,{loading:n.loading,stream:n.stream},()=>[a[27]||=(0,t.createElementVNode)(`div`,{class:`loading-skeleton`},[(0,t.createElementVNode)(`div`,{class:`skeleton-line`}),(0,t.createElementVNode)(`div`,{class:`skeleton-line`}),(0,t.createElementVNode)(`div`,{class:`skeleton-line short`})],-1)],!0)],4),[[t.vShow,!n.stream&&n.loading]]),(0,t.createElementVNode)(`span`,Oe,(0,t.toDisplayString)(m.value?(0,t.unref)(c)(`common.copied`)||`Copied`:``),1)],14,oe))}}),[[`__scopeId`,`data-v-1a55f98f`]]);exports.default=Ae;
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-DXxBQUbT.js";
|
|
2
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.
|
|
3
|
+
//#region ../../node_modules/.pnpm/markstream-vue@0.0.10_katex@0.16.47_mermaid@11.16.1_shiki@2.5.0_stream-markdown@0.0.16__6d9cd468ef4ec57d5ba694ca4f7e83e9/node_modules/markstream-vue/dist/CodeBlockNode.js
|
|
4
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
5
|
enumerable: !0,
|
|
6
6
|
configurable: !0,
|
|
@@ -620,11 +620,11 @@ var _e = Object.defineProperty, x = Object.defineProperties, S = Object.getOwnPr
|
|
|
620
620
|
if (!tn.value) return;
|
|
621
621
|
let r = rn(e);
|
|
622
622
|
if (!r) return;
|
|
623
|
-
let i = e
|
|
624
|
-
o(r, t, n, !1, i?.clientX != null && i?.clientY != null ? {
|
|
623
|
+
let i = e, a = i?.clientX != null && i?.clientY != null ? {
|
|
625
624
|
x: i.clientX,
|
|
626
625
|
y: i.clientY
|
|
627
|
-
} : void 0
|
|
626
|
+
} : void 0;
|
|
627
|
+
o(r, t, n, !1, a, h.isDark);
|
|
628
628
|
}
|
|
629
629
|
function Q() {
|
|
630
630
|
tn.value && e();
|
|
@@ -633,11 +633,11 @@ var _e = Object.defineProperty, x = Object.defineProperties, S = Object.getOwnPr
|
|
|
633
633
|
if (!tn.value) return;
|
|
634
634
|
let t = rn(e);
|
|
635
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 ? {
|
|
636
|
+
let n = C.value ? x("common.copied") || "Copied" : x("common.copy") || "Copy", r = e, i = r?.clientX != null && r?.clientY != null ? {
|
|
638
637
|
x: r.clientX,
|
|
639
638
|
y: r.clientY
|
|
640
|
-
} : void 0
|
|
639
|
+
} : void 0;
|
|
640
|
+
o(t, n, "top", !1, i, h.isDark);
|
|
641
641
|
}
|
|
642
642
|
function on() {
|
|
643
643
|
var e, t;
|
|
@@ -1156,7 +1156,10 @@ var _e = Object.defineProperty, x = Object.defineProperties, S = Object.getOwnPr
|
|
|
1156
1156
|
onClick: t[13] ||= (e) => function(e) {
|
|
1157
1157
|
if (O.value = !O.value, e && tn.value) {
|
|
1158
1158
|
let t = rn(e);
|
|
1159
|
-
|
|
1159
|
+
if (t) {
|
|
1160
|
+
let e = O.value ? x("common.collapse") || "Collapse" : x("common.expand") || "Expand";
|
|
1161
|
+
o(t, e, "top", !1, void 0, h.isDark);
|
|
1162
|
+
}
|
|
1160
1163
|
}
|
|
1161
1164
|
let t = U.value ? B() : z(), n = S.value;
|
|
1162
1165
|
t && n && (O.value ? (cn(!0), n.style.maxHeight = "none", n.style.overflow = "visible", Y()) : (cn(!1), n.style.overflow = "auto", X()));
|
|
@@ -118,7 +118,7 @@ function I(e) {
|
|
|
118
118
|
return b;
|
|
119
119
|
}
|
|
120
120
|
function L(e, t) {
|
|
121
|
-
for (; E() && e + x !== 57 &&
|
|
121
|
+
for (; E() && e + x !== 57 && (e + x !== 84 || D() !== 47););
|
|
122
122
|
return "/*" + k(t, b - 1) + "*" + l(e === 47 ? e : E());
|
|
123
123
|
}
|
|
124
124
|
function R(e) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`comm`,t=`rule`,n=`decl`,r=`@keyframes`,i=`@layer`,a=Math.abs,o=String.fromCharCode;function s(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function l(e,t){return e.charCodeAt(t)|0}function u(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e){return e.length}function p(e,t){return t.push(e),e}var m=1,h=1,g=0,_=0,v=0,y=``;function b(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:m,column:h,length:o,return:``,siblings:s}}function x(){return v}function S(){return v=_>0?l(y,--_):0,h--,v===10&&(h=1,m--),v}function C(){return v=_<g?l(y,_++):0,h++,v===10&&(h=1,m++),v}function w(){return l(y,_)}function T(){return _}function E(e,t){return u(y,e,t)}function D(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return m=h=1,g=d(y=e),_=0,[]}function k(e){return y=``,e}function A(e){return s(E(_-1,N(e===91?e+2:e===40?e+1:e)))}function j(e){for(;(v=w())&&v<33;)C();return D(e)>2||D(v)>3?``:` `}function M(e,t){for(;--t&&C()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return E(e,T()+(t<6&&w()==32&&C()==32))}function N(e){for(;C();)switch(v){case e:return _;case 34:case 39:e!==34&&e!==39&&N(v);break;case 40:e===41&&N(e);break;case 92:C();break}return _}function P(e,t){for(;C()&&e+v!==57&&(e+v!==84||w()!==47););return`/*`+E(t,_-1)+`*`+o(e===47?e:C())}function F(e){for(;!D(w());)C();return E(e,_)}function I(e){return k(L(``,null,null,null,[``],e=O(e),0,[0],e))}function L(e,t,n,r,i,a,s,f,m){for(var h=0,g=0,_=s,v=0,y=0,b=0,x=1,E=1,O=1,k=0,N=0,I=``,V=i,H=a,U=r,W=I;E;)switch(b=N,N=C()){case 40:b!=108&&l(W,_-1)==58?(k++,W+=`(`):W+=A(N);break;case 41:k--,W+=`)`;break;case 34:case 39:case 91:W+=A(N);break;case 9:case 10:case 13:case 32:if(k>0){W+=o(N);break}W+=j(b);break;case 92:W+=M(T()-1,7);continue;case 47:switch(w()){case 42:case 47:p(z(P(C(),T()),t,n,m),m),(D(b||1)==5||D(w()||1)==5)&&d(W)&&u(W,-1,void 0)!==` `&&(W+=` `);break;default:W+=`/`}break;case 123*x:f[h++]=d(W)*O;case 125*x:case 59:case 0:if(k>0&&N){W+=o(N);break}switch(N){case 0:case 125:E=0;case 59+g:O==-1&&(W=c(W,/\f/g,``)),y>0&&(d(W)-_||x===0)&&p(y>32?B(W+`;`,r,n,_-1,m):B(c(W,` `,``)+`;`,r,n,_-2,m),m);break;case 59:W+=`;`;default:if(p(U=R(W,t,n,h,g,i,f,I,V=[],H=[],_,a),a),N===123)if(g===0)L(W,t,U,U,V,a,_,f,H);else{switch(v){case 99:if(l(W,3)===110)break;case 108:if(l(W,2)===97)break;default:g=0;case 100:case 109:case 115:}g?L(e,U,U,r&&p(R(e,U,U,0,0,i,f,I,i,V=[],_,H),H),i,H,_,f,r?V:H):L(W,U,U,U,[``],H,0,f,H)}}h=g=y=0,x=O=1,I=W=``,_=s;break;case 58:_=1+d(W),y=b;default:if(x<1){if(N==123)--x;else if(N==125&&x++==0&&S()==125)continue}switch(W+=o(N),N*x){case 38:O=g>0?1:(W+=`\f`,-1);break;case 44:if(k>0)break;f[h++]=(d(W)-1)*O,O=1;break;case 64:w()===45&&(W+=A(C())),v=w(),g=_=d(I=W+=F(T())),N++;break;case 45:b===45&&d(W)==2&&(x=0)}}return a}function R(e,n,r,i,o,l,d,p,m,h,g,_){for(var v=o-1,y=o===0?l:[``],x=f(y),S=0,C=0,w=0;S<i;++S)for(var T=0,E=u(e,v+1,v=a(C=d[S])),D=e;T<x;++T)(D=s(C>0?y[T]+` `+E:c(E,/&\f/g,y[T])))&&(m[w++]=D);return b(e,n,r,o===0?t:p,m,h,g,_)}function z(t,n,r,i){return b(t,n,r,e,o(x()),u(t,2,-2),0,i)}function B(e,t,r,i,a){return b(e,t,r,n,u(e,0,i),u(e,i+1,-1),i,a)}function V(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function H(a,o,s,c){switch(a.type){case i:if(a.children.length)break;case`@import`:case`@namespace`:case n:return a.return=a.return||a.value;case e:return``;case r:return a.return=a.value+`{`+V(a.children,c)+`}`;case t:if(!d(a.value=a.props.join(`,`)))return``}return d(s=V(a.children,c))?a.return=a.value+`{`+s+`}`:``}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return`@media`}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return`@scope`}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return`@supports`}});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { m as t, t as n } from "./mermaid-parser.core-
|
|
3
|
-
import { n as r } from "./chunk-Y2CYZVJY-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
//#region ../../node_modules/.pnpm/mermaid@11.16.
|
|
1
|
+
import { m as e } from "./src-C7bjHtAI.js";
|
|
2
|
+
import { m as t, t as n } from "./mermaid-parser.core-Chxs-uSe.js";
|
|
3
|
+
import { n as r } from "./chunk-Y2CYZVJY-DO9UHHon.js";
|
|
4
|
+
import "./chunk-I66GZJ75-BNSy3XWz.js";
|
|
5
|
+
import { n as i, r as a, t as o } from "./chunk-6Q2QTUOP-CWr1oda1.js";
|
|
6
|
+
import { t as s } from "./chunk-JWPE2WC7-B8JIODrM.js";
|
|
7
|
+
import "./mermaid.core-BsKJAtkK.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-N423BO3Z.mjs
|
|
9
9
|
var c = t().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ r((e) => {
|
|
10
10
|
let t = e.alternatives.map(u);
|
|
11
11
|
return t.length === 1 ? t[0] : {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./src-D9o9TOtH.cjs"),t=require("./mermaid-parser.core-D6fj1_in.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs");require("./chunk-I66GZJ75-BDUxItpV.cjs");const r=require("./chunk-6Q2QTUOP-Sa_r5V8A.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");require("./mermaid.core-CEF55Yh-.cjs");var a=t.m().RailroadAbnf.parser.LangiumParser,o=n.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),s=n.n(e=>{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),c=n.n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),l=n.n(e=>{let t=u(e.primary);if(!e.repeat)return t;let{min:n,max:r}=c(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),u=n.n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return o(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:o(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),d=n.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),f=n.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(d(e)))},`populateDb`),p={parser:{parse:n.n(n=>{r.t.clear(),e.m.debug(`[ABNF Parser] Starting Langium parse`);let i=a.parse(n);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new t.t(i);let o=i.value;e.m.debug(`[ABNF Parser] Parsed rules:`,o.rules.length),f(o),e.m.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import { t } from "./html-
|
|
1
|
+
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import { t } from "./html-DvYikh74.js";
|
|
3
3
|
var n = [Object.freeze(JSON.parse("{\"injectionSelector\":\"L:text.html -comment\",\"name\":\"angular-expression\",\"patterns\":[{\"include\":\"#ngExpression\"}],\"repository\":{\"arrayLiteral\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.ts\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.ts\"}},\"name\":\"meta.array.literal.ts\",\"patterns\":[{\"include\":\"#ngExpression\"},{\"include\":\"#punctuationComma\"}]},\"booleanLiteral\":{\"patterns\":[{\"match\":\"(?<!\\\\.|\\\\$)\\\\btrue\\\\b(?!\\\\$)\",\"name\":\"constant.language.boolean.true.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bfalse\\\\b(?!\\\\$)\",\"name\":\"constant.language.boolean.false.ts\"}]},\"expressionOperator\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.operator.logical.ts\"},\"2\":{\"name\":\"entity.name.function.pipe.ng\"}},\"match\":\"((?<!\\\\|)\\\\|(?!\\\\|))\\\\s?([a-zA-Z0-9\\\\-\\\\_\\\\$]*)\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\b(let)\\\\b(?!\\\\$)\",\"name\":\"storage.type.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\b(await)\\\\b(?!\\\\$)\",\"name\":\"keyword.control.flow.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bdelete\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.delete.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bin\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.in.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bof\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.of.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bif\\\\b(?!\\\\$)\",\"name\":\"keyword.control.if.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\belse\\\\b(?!\\\\$)\",\"name\":\"keyword.control.else.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bthen\\\\b(?!\\\\$)\",\"name\":\"keyword.control.then.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\binstanceof\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.instanceof.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bnew\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.new.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bvoid\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.void.ts\"},{\"begin\":\"(?<!\\\\.|\\\\$)\\\\bas\\\\b(?!\\\\$)\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.as.ts\"}},\"end\":\"(?=$|\\\"|'|[;,:})\\\\]])\",\"patterns\":[{\"include\":\"#type\"}]},{\"match\":\"\\\\*=|(?<!\\\\()\\\\/=|%=|\\\\+=|\\\\-=\",\"name\":\"keyword.operator.assignment.compound.ts\"},{\"match\":\"\\\\&=|\\\\^=|<<=|>>=|>>>=|\\\\|=\",\"name\":\"keyword.operator.assignment.compound.bitwise.ts\"},{\"match\":\"<<|>>>|>>\",\"name\":\"keyword.operator.bitwise.shift.ts\"},{\"match\":\"===|!==|==|!=\",\"name\":\"keyword.operator.comparison.ts\"},{\"match\":\"<=|>=|<>|<|>\",\"name\":\"keyword.operator.relational.ts\"},{\"match\":\"\\\\!|&&|\\\\?\\\\?|\\\\|\\\\|\",\"name\":\"keyword.operator.logical.ts\"},{\"match\":\"\\\\&|~|\\\\^|\\\\|\",\"name\":\"keyword.operator.bitwise.ts\"},{\"match\":\"\\\\=\",\"name\":\"keyword.operator.assignment.ts\"},{\"match\":\"--\",\"name\":\"keyword.operator.decrement.ts\"},{\"match\":\"\\\\+\\\\+\",\"name\":\"keyword.operator.increment.ts\"},{\"match\":\"\\\\%|\\\\*|\\\\/|-|\\\\+\",\"name\":\"keyword.operator.arithmetic.ts\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.arithmetic.ts\"}},\"match\":\"(?<=[_$[:alnum:]])\\\\s*(\\\\/)(?![\\\\/*])\"},{\"include\":\"#typeofOperator\"}]},\"functionCall\":{\"begin\":\"(?=(\\\\??\\\\.\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(<([^<>]|\\\\<[^<>]+\\\\>)+>\\\\s*)?\\\\()\",\"end\":\"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(<([^<>]|\\\\<[^<>]+\\\\>)+>\\\\s*)?\\\\()\",\"patterns\":[{\"match\":\"\\\\?\",\"name\":\"punctuation.accessor.ts\"},{\"match\":\"\\\\.\",\"name\":\"punctuation.accessor.ts\"},{\"match\":\"([_$[:alpha:]][_$[:alnum:]]*)\",\"name\":\"entity.name.function.ts\"},{\"begin\":\"\\\\<\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.typeparameters.begin.ts\"}},\"end\":\"\\\\>\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.typeparameters.end.ts\"}},\"name\":\"meta.type.parameters.ts\",\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#punctuationComma\"}]},{\"include\":\"#parenExpression\"}]},\"functionParameters\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.ts\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.end.ts\"}},\"name\":\"meta.parameters.ts\",\"patterns\":[{\"include\":\"#decorator\"},{\"include\":\"#parameterName\"},{\"include\":\"#variableInitializer\"},{\"match\":\",\",\"name\":\"punctuation.separator.parameter.ts\"}]},\"identifiers\":{\"patterns\":[{\"match\":\"([_$[:alpha:]][_$[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))\",\"name\":\"support.class.ts\"},{\"captures\":{\"1\":{\"name\":\"punctuation.accessor.ts\"},\"2\":{\"name\":\"constant.other.object.property.ts\"},\"3\":{\"name\":\"variable.other.object.property.ts\"}},\"match\":\"([?!]?\\\\.)\\\\s*(?:([[:upper:]][_$[:digit:][:upper:]]*)|([_$[:alpha:]][_$[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[_$[:alpha:]][_$[:alnum:]]*)\"},{\"captures\":{\"1\":{\"name\":\"punctuation.accessor.ts\"},\"2\":{\"name\":\"entity.name.function.ts\"}},\"match\":\"(?:([?!]?\\\\.)\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)|((<([^<>]|\\\\<[^<>]+\\\\>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))\"},{\"captures\":{\"1\":{\"name\":\"punctuation.accessor.ts\"},\"2\":{\"name\":\"constant.other.property.ts\"}},\"match\":\"([?!]?\\\\.)\\\\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])\"},{\"captures\":{\"1\":{\"name\":\"punctuation.accessor.ts\"},\"2\":{\"name\":\"variable.other.property.ts\"}},\"match\":\"([?!]?\\\\.)\\\\s*([_$[:alpha:]][_$[:alnum:]]*)\"},{\"captures\":{\"1\":{\"name\":\"constant.other.object.ts\"},\"2\":{\"name\":\"variable.other.object.ts\"}},\"match\":\"(?:([[:upper:]][_$[:digit:][:upper:]]*)|([_$[:alpha:]][_$[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[_$[:alpha:]][_$[:alnum:]]*)\"},{\"match\":\"([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])\",\"name\":\"constant.character.other\"},{\"match\":\"[_$[:alpha:]][_$[:alnum:]]*\",\"name\":\"variable.other.readwrite.ts\"}]},\"literal\":{\"name\":\"literal.ts\",\"patterns\":[{\"include\":\"#numericLiteral\"},{\"include\":\"#booleanLiteral\"},{\"include\":\"#nullLiteral\"},{\"include\":\"#undefinedLiteral\"},{\"include\":\"#numericConstantLiteral\"},{\"include\":\"#arrayLiteral\"},{\"include\":\"#thisLiteral\"}]},\"ngExpression\":{\"name\":\"meta.expression.ng\",\"patterns\":[{\"include\":\"#string\"},{\"include\":\"#literal\"},{\"include\":\"#ternaryExpression\"},{\"include\":\"#expressionOperator\"},{\"include\":\"#functionCall\"},{\"include\":\"#identifiers\"},{\"include\":\"#parenExpression\"},{\"include\":\"#punctuationComma\"},{\"include\":\"#punctuationAccessor\"}]},\"nullLiteral\":{\"match\":\"(?<!\\\\.|\\\\$)\\\\bnull\\\\b(?!\\\\$)\",\"name\":\"constant.language.null.ts\"},\"numericConstantLiteral\":{\"patterns\":[{\"match\":\"(?<!\\\\.|\\\\$)\\\\bNaN\\\\b(?!\\\\$)\",\"name\":\"constant.language.nan.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bInfinity\\\\b(?!\\\\$)\",\"name\":\"constant.language.infinity.ts\"}]},\"numericLiteral\":{\"patterns\":[{\"match\":\"\\\\b(?<!\\\\$)0(x|X)[0-9a-fA-F]+\\\\b(?!\\\\$)\",\"name\":\"constant.numeric.hex.ts\"},{\"match\":\"\\\\b(?<!\\\\$)0(b|B)[01]+\\\\b(?!\\\\$)\",\"name\":\"constant.numeric.binary.ts\"},{\"match\":\"\\\\\\\\b(?<!\\\\$)0(o|O)?[0-7]+\\\\b(?!\\\\$)\",\"name\":\"constant.numeric.octal.ts\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.decimal.ts\"},\"1\":{\"name\":\"meta.delimiter.decimal.period.ts\"},\"2\":{\"name\":\"meta.delimiter.decimal.period.ts\"},\"3\":{\"name\":\"meta.delimiter.decimal.period.ts\"},\"4\":{\"name\":\"meta.delimiter.decimal.period.ts\"},\"5\":{\"name\":\"meta.delimiter.decimal.period.ts\"},\"6\":{\"name\":\"meta.delimiter.decimal.period.ts\"}},\"match\":\"(?<!\\\\$)(?:(?:\\\\b[0-9]+(\\\\.)[0-9]+[eE][+-]?[0-9]+\\\\b)|#1.1E+3(?:\\\\b[0-9]+(\\\\.)[eE][+-]?[0-9]+\\\\b)|#1.E+3(?:\\\\B(\\\\.)[0-9]+[eE][+-]?[0-9]+\\\\b)|#.1E+3(?:\\\\b[0-9]+[eE][+-]?[0-9]+\\\\b)|#1E+3(?:\\\\b[0-9]+(\\\\.)[0-9]+\\\\b)|#1.1(?:\\\\b[0-9]+(\\\\.)\\\\B)|#1.(?:\\\\B(\\\\.)[0-9]+\\\\b)|#.1(?:\\\\b[0-9]+\\\\b(?!\\\\.))#1)(?!\\\\$)\"}]},\"parameterName\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.modifier.ts\"},\"2\":{\"name\":\"storage.modifier.ts\"},\"3\":{\"name\":\"keyword.operator.rest.ts\"},\"4\":{\"name\":\"entity.name.function.ts\"},\"5\":{\"name\":\"keyword.operator.optional.ts\"}},\"match\":\"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(public|private|protected)\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)|((<([^<>]|\\\\<[^<>]+\\\\>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>))))))))\"},{\"captures\":{\"1\":{\"name\":\"storage.modifier.ts\"},\"2\":{\"name\":\"storage.modifier.ts\"},\"3\":{\"name\":\"keyword.operator.rest.ts\"},\"4\":{\"name\":\"variable.parameter.ts\"},\"5\":{\"name\":\"keyword.operator.optional.ts\"}},\"match\":\"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(public|private|protected)\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(\\\\??)\"}]},\"parenExpression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"include\":\"#ngExpression\"},{\"include\":\"#punctuationComma\"}]},\"punctuationAccessor\":{\"match\":\"\\\\?\\\\.|\\\\!\\\\.|\\\\.\",\"name\":\"punctuation.accessor.ts\"},\"punctuationComma\":{\"match\":\",\",\"name\":\"punctuation.separator.comma.ts\"},\"punctuationSemicolon\":{\"match\":\";\",\"name\":\"punctuation.terminator.statement.ts\"},\"qstringDouble\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ts\"}},\"end\":\"(\\\")|((?:[^\\\\\\\\\\\\n])$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.ts\"},\"2\":{\"name\":\"invalid.illegal.newline.ts\"}},\"name\":\"string.quoted.double.ts\",\"patterns\":[{\"include\":\"#stringCharacterEscape\"}]},\"qstringSingle\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ts\"}},\"end\":\"(\\\\')|((?:[^\\\\\\\\\\\\n])$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.ts\"},\"2\":{\"name\":\"invalid.illegal.newline.ts\"}},\"name\":\"string.quoted.single.ts\",\"patterns\":[{\"include\":\"#stringCharacterEscape\"}]},\"string\":{\"patterns\":[{\"include\":\"#qstringSingle\"},{\"include\":\"#qstringDouble\"}]},\"stringCharacterEscape\":{\"match\":\"\\\\\\\\(x\\\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)\",\"name\":\"constant.character.escape.ts\"},\"ternaryExpression\":{\"begin\":\"(?!\\\\?\\\\.\\\\s*[^[:digit:]])(\\\\?)(?!\\\\?)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.ternary.ts\"}},\"end\":\"\\\\s*(:)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.ternary.ts\"}},\"patterns\":[{\"include\":\"#ngExpression\"}]},\"thisLiteral\":{\"match\":\"(?<!\\\\.|\\\\$)\\\\bthis\\\\b(?!\\\\$)\",\"name\":\"variable.language.this.ts\"},\"type\":{\"name\":\"meta.type.ts\",\"patterns\":[{\"include\":\"#string\"},{\"include\":\"#numericLiteral\"},{\"include\":\"#typeBuiltinLiterals\"},{\"include\":\"#typeTuple\"},{\"include\":\"#typeObject\"},{\"include\":\"#typeOperators\"},{\"include\":\"#typeFnTypeParameters\"},{\"include\":\"#typeParenOrFunctionParameters\"},{\"include\":\"#typeName\"}]},\"typeAnnotation\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.ts\"}},\"end\":\"(?=$|[,);\\\\}\\\\]]|\\\\/\\\\/|\\\")|(?==[^>])|(?<=[\\\\}>\\\\]\\\\)]|[_$[:alpha:]])\\\\s*(?=\\\\{)\",\"name\":\"meta.type.annotation.ts\",\"patterns\":[{\"include\":\"#type\"}]},\"typeBuiltinLiterals\":{\"match\":\"(?<!\\\\.|\\\\$)\\\\b(this|true|false|undefined|null)\\\\b(?!\\\\$)\",\"name\":\"support.type.builtin.ts\"},\"typeFnTypeParameters\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.new.ts\"}},\"match\":\"(?<!\\\\.|\\\\$)\\\\b(new)\\\\b(?=\\\\s*\\\\<)\",\"name\":\"meta.type.constructor.ts\"},{\"begin\":\"(?<!\\\\.|\\\\$)\\\\b(new)\\\\b\\\\s*(?=\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.new.ts\"}},\"end\":\"(?<=\\\\))\",\"name\":\"meta.type.constructor.ts\",\"patterns\":[{\"include\":\"#functionParameters\"}]},{\"begin\":\"(?<=\\\\>)\\\\s*(?=\\\\()\",\"end\":\"(?<=\\\\))\",\"include\":\"#typeofOperator\",\"name\":\"meta.type.function.ts\",\"patterns\":[{\"include\":\"#functionParameters\"}]},{\"begin\":\"((?=[(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>))))))\",\"end\":\"(?<=\\\\))\",\"name\":\"meta.type.function.ts\",\"patterns\":[{\"include\":\"#functionParameters\"}]}]},\"typeName\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.type.module.ts\"},\"2\":{\"name\":\"punctuation.accessor.ts\"}},\"match\":\"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*([?!]?\\\\.)\"},{\"match\":\"[_$[:alpha:]][_$[:alnum:]]*\",\"name\":\"entity.name.type.ts\"}]},\"typeObject\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"name\":\"meta.object.type.ts\",\"patterns\":[{\"include\":\"#typeObjectMembers\"}]},\"typeObjectMembers\":{\"patterns\":[{\"include\":\"#typeAnnotation\"},{\"include\":\"#punctuationComma\"},{\"include\":\"#punctuationSemicolon\"}]},\"typeOperators\":{\"patterns\":[{\"include\":\"#typeofOperator\"},{\"match\":\"[&|]\",\"name\":\"keyword.operator.type.ts\"},{\"match\":\"(?<!\\\\.|\\\\$)\\\\bkeyof\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.keyof.ts\"}]},\"typeParenOrFunctionParameters\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"name\":\"meta.type.paren.cover.ts\",\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#functionParameters\"}]},\"typeTuple\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.ts\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.ts\"}},\"name\":\"meta.type.tuple.ts\",\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#punctuationComma\"}]},\"typeofOperator\":{\"match\":\"(?<!\\\\.|\\\\$)\\\\btypeof\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.expression.typeof.ts\"},\"undefinedLiteral\":{\"match\":\"(?<!\\\\.|\\\\$)\\\\bundefined\\\\b(?!\\\\$)\",\"name\":\"constant.language.undefined.ts\"},\"variableInitializer\":{\"begin\":\"(?<!=|!)(=)(?!=)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.assignment.ts\"}},\"end\":\"(?=$|[,);}\\\\]])\",\"patterns\":[{\"include\":\"#ngExpression\"}]}},\"scopeName\":\"expression.ng\"}"))], r = Object.freeze(JSON.parse("{\"injectTo\":[\"text.html.derivative\",\"text.html.derivative.ng\",\"source.ts.ng\"],\"injectionSelector\":\"L:text.html -comment -expression.ng -meta.tag -source.css -source.js\",\"name\":\"angular-let-declaration\",\"patterns\":[{\"include\":\"#letDeclaration\"}],\"repository\":{\"letDeclaration\":{\"begin\":\"(@let)\\\\s+([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(=)?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.ng\"},\"2\":{\"name\":\"meta.definition.variable.ng\"},\"3\":{\"name\":\"keyword.operator.assignment.ng\"}},\"contentName\":\"meta.definition.variable.ng\",\"end\":\"(?<=;)\",\"patterns\":[{\"include\":\"#letInitializer\"}]},\"letInitializer\":{\"begin\":\"\\\\s*\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.ng\"}},\"contentName\":\"meta.definition.variable.initializer.ng\",\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.statement.ng\"}},\"patterns\":[{\"include\":\"expression.ng\"}]}},\"scopeName\":\"template.let.ng\",\"embeddedLangs\":[\"angular-expression\"]}")), i = [...n, r], a = Object.freeze(JSON.parse("{\"injectTo\":[\"text.html.derivative\",\"text.html.derivative.ng\",\"source.ts.ng\"],\"injectionSelector\":\"L:text.html -comment\",\"name\":\"angular-template\",\"patterns\":[{\"include\":\"#interpolation\"}],\"repository\":{\"interpolation\":{\"begin\":\"{{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"contentName\":\"expression.ng\",\"end\":\"}}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"patterns\":[{\"include\":\"expression.ng\"}]}},\"scopeName\":\"template.ng\",\"embeddedLangs\":[\"angular-expression\"]}")), o = [...n, a], s = Object.freeze(JSON.parse("{\"injectTo\":[\"text.html.derivative\",\"text.html.derivative.ng\",\"source.ts.ng\"],\"injectionSelector\":\"L:text.html -comment -expression.ng -meta.tag -source.css -source.js\",\"name\":\"angular-template-blocks\",\"patterns\":[{\"include\":\"#block\"}],\"repository\":{\"block\":{\"begin\":\"(@)(if|else if|else|defer|placeholder|loading|error|switch|case|default|for|empty)(?:\\\\s*)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"include\":\"#transition\"}]},\"2\":{\"name\":\"keyword.control.block.kind.ng\"}},\"end\":\"(?<=\\\\})\",\"name\":\"control.block.ng\",\"patterns\":[{\"include\":\"#blockExpression\"},{\"include\":\"#blockBody\"}]},\"blockBody\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"contentName\":\"control.block.body.ng\",\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.ts\"}},\"patterns\":[{\"include\":\"text.html.derivative.ng\"},{\"include\":\"template.ng\"}]},\"blockExpression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"contentName\":\"control.block.expression.ng\",\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"include\":\"expression.ng\"}]},\"transition\":{\"match\":\"@\",\"name\":\"keyword.control.block.transition.ng\"}},\"scopeName\":\"template.blocks.ng\",\"embeddedLangs\":[\"angular-expression\",\"angular-template\"]}")), c = [
|
|
4
4
|
...n,
|
|
5
5
|
...o,
|