openclaw-cortex 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/bin/cortex-ui.mjs +307 -0
- package/package.json +35 -0
- package/static/_app/env.js +1 -0
- package/static/_app/immutable/assets/0.CTZ7R4vC.css +1 -0
- package/static/_app/immutable/assets/2.D5MMRphb.css +1 -0
- package/static/_app/immutable/assets/4.Cst5sby_.css +1 -0
- package/static/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf +0 -0
- package/static/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff +0 -0
- package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 +0 -0
- package/static/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf +0 -0
- package/static/_app/immutable/chunks/-Dz179kp.js +1 -0
- package/static/_app/immutable/chunks/0A2p0G4C.js +1 -0
- package/static/_app/immutable/chunks/2EtD6e53.js +1 -0
- package/static/_app/immutable/chunks/2UxHyX5q.js +1 -0
- package/static/_app/immutable/chunks/3e1v2bzS.js +1 -0
- package/static/_app/immutable/chunks/4A_iFExJ.js +1 -0
- package/static/_app/immutable/chunks/5J0xJHOV.js +321 -0
- package/static/_app/immutable/chunks/5i3qLPDT.js +1 -0
- package/static/_app/immutable/chunks/83L43bj1.js +1 -0
- package/static/_app/immutable/chunks/85-TOEBH.js +1 -0
- package/static/_app/immutable/chunks/B-drBnSa.js +1 -0
- package/static/_app/immutable/chunks/B0m2ddpp.js +1 -0
- package/static/_app/immutable/chunks/B1dDrJ26.js +1 -0
- package/static/_app/immutable/chunks/B1yitclQ.js +1 -0
- package/static/_app/immutable/chunks/B2A7gHtL.js +2 -0
- package/static/_app/immutable/chunks/B3DkuU-J.js +1 -0
- package/static/_app/immutable/chunks/B5Fyld5U.js +1 -0
- package/static/_app/immutable/chunks/B6aJPvgy.js +1 -0
- package/static/_app/immutable/chunks/B7c-h3xW.js +1 -0
- package/static/_app/immutable/chunks/B7mTdjB0.js +1 -0
- package/static/_app/immutable/chunks/B7xXCP9k.js +65 -0
- package/static/_app/immutable/chunks/B93PlW-d.js +1 -0
- package/static/_app/immutable/chunks/BBf5iR-q.js +1 -0
- package/static/_app/immutable/chunks/BEDo0Tqx.js +1 -0
- package/static/_app/immutable/chunks/BERRCDM3.js +1 -0
- package/static/_app/immutable/chunks/BETggiCN.js +1 -0
- package/static/_app/immutable/chunks/BEwlwnbL.js +1 -0
- package/static/_app/immutable/chunks/BFfxhgS-.js +1 -0
- package/static/_app/immutable/chunks/BGHnOYBU.js +1 -0
- package/static/_app/immutable/chunks/BGJmEYvX.js +1 -0
- package/static/_app/immutable/chunks/BH7IYjvW.js +1 -0
- package/static/_app/immutable/chunks/BHpy7Gm-.js +7 -0
- package/static/_app/immutable/chunks/BIGW1oBm.js +1 -0
- package/static/_app/immutable/chunks/BJ7Hojwm.js +165 -0
- package/static/_app/immutable/chunks/BJDFO7_C.js +1 -0
- package/static/_app/immutable/chunks/BL5jzBAz.js +1 -0
- package/static/_app/immutable/chunks/BLmx8bSh.js +1 -0
- package/static/_app/immutable/chunks/BLtJtn59.js +1 -0
- package/static/_app/immutable/chunks/BM1_JUlF.js +1 -0
- package/static/_app/immutable/chunks/BMWR74SV.js +1 -0
- package/static/_app/immutable/chunks/BPQ3VLAy.js +1 -0
- package/static/_app/immutable/chunks/BQ8w6xss.js +1 -0
- package/static/_app/immutable/chunks/BR5kRUq4.js +1 -0
- package/static/_app/immutable/chunks/BRHolxvo.js +1 -0
- package/static/_app/immutable/chunks/BRZ36xJF.js +1 -0
- package/static/_app/immutable/chunks/BTJTHyun.js +1 -0
- package/static/_app/immutable/chunks/BTifaqeh.js +1 -0
- package/static/_app/immutable/chunks/BUw7H-hv.js +1 -0
- package/static/_app/immutable/chunks/BV7otONQ.js +1 -0
- package/static/_app/immutable/chunks/BVNfpfKI.js +1 -0
- package/static/_app/immutable/chunks/BVQ-GDCI.js +1 -0
- package/static/_app/immutable/chunks/BWvSN4gD.js +1 -0
- package/static/_app/immutable/chunks/BXkSAIEj.js +1 -0
- package/static/_app/immutable/chunks/BYXRTvT-.js +1 -0
- package/static/_app/immutable/chunks/BYunw83y.js +1 -0
- package/static/_app/immutable/chunks/BZvkOJ9d.js +1 -0
- package/static/_app/immutable/chunks/B_m7g4N7.js +1 -0
- package/static/_app/immutable/chunks/Ba13S78F.js +1 -0
- package/static/_app/immutable/chunks/BaaWV1KV.js +1 -0
- package/static/_app/immutable/chunks/BbxtiRj7.js +1 -0
- package/static/_app/immutable/chunks/BcOcwvcX.js +1 -0
- package/static/_app/immutable/chunks/BcVCzyr7.js +1 -0
- package/static/_app/immutable/chunks/BdImnpbu.js +1 -0
- package/static/_app/immutable/chunks/BdnUsdx6.js +1 -0
- package/static/_app/immutable/chunks/Be_uRYmX.js +1 -0
- package/static/_app/immutable/chunks/BfHTSMKl.js +1 -0
- package/static/_app/immutable/chunks/BfJx3WfE.js +1 -0
- package/static/_app/immutable/chunks/BfQbQz2e.js +1 -0
- package/static/_app/immutable/chunks/BfjtVDDH.js +1 -0
- package/static/_app/immutable/chunks/BgCckEu3.js +43 -0
- package/static/_app/immutable/chunks/BgDCqdQA.js +1 -0
- package/static/_app/immutable/chunks/BgIZa_E2.js +1 -0
- package/static/_app/immutable/chunks/BhOHFoWU.js +1 -0
- package/static/_app/immutable/chunks/BhRPY-oY.js +1 -0
- package/static/_app/immutable/chunks/BkioyH1T.js +1 -0
- package/static/_app/immutable/chunks/Bkuqu6BP.js +1 -0
- package/static/_app/immutable/chunks/BmXAJ9_W.js +1 -0
- package/static/_app/immutable/chunks/Bmn6On1c.js +1 -0
- package/static/_app/immutable/chunks/Bp6g37R7.js +1 -0
- package/static/_app/immutable/chunks/BpQpoErY.js +30 -0
- package/static/_app/immutable/chunks/BqTXFGrv.js +1 -0
- package/static/_app/immutable/chunks/BqYA7rlc.js +1 -0
- package/static/_app/immutable/chunks/Br6cN0cg.js +1 -0
- package/static/_app/immutable/chunks/BrzmwbiE.js +1 -0
- package/static/_app/immutable/chunks/BsS91CYL.js +1 -0
- package/static/_app/immutable/chunks/BspZqrRM.js +1 -0
- package/static/_app/immutable/chunks/BtCnVYZw.js +1 -0
- package/static/_app/immutable/chunks/BtEQkMu_.js +1 -0
- package/static/_app/immutable/chunks/BtOb2qkB.js +1 -0
- package/static/_app/immutable/chunks/BthQWCQV.js +1 -0
- package/static/_app/immutable/chunks/BtjpZpjN.js +1 -0
- package/static/_app/immutable/chunks/BtqSS_iP.js +1 -0
- package/static/_app/immutable/chunks/BtvRca6l.js +1 -0
- package/static/_app/immutable/chunks/Buea-lGh.js +1 -0
- package/static/_app/immutable/chunks/Bv_4Rxtq.js +1 -0
- package/static/_app/immutable/chunks/BvzEVeQv.js +1 -0
- package/static/_app/immutable/chunks/Bw305WKR.js +1 -0
- package/static/_app/immutable/chunks/BxgE0vQu.js +1 -0
- package/static/_app/immutable/chunks/ByZADglo.js +7 -0
- package/static/_app/immutable/chunks/BzJJZx-M.js +1 -0
- package/static/_app/immutable/chunks/BzadFaiy.js +162 -0
- package/static/_app/immutable/chunks/C-HG3fhB.js +1 -0
- package/static/_app/immutable/chunks/C-SQnVFl.js +1 -0
- package/static/_app/immutable/chunks/C-sUppwS.js +1 -0
- package/static/_app/immutable/chunks/C0HS_06l.js +1 -0
- package/static/_app/immutable/chunks/C0hk2d4L.js +1 -0
- package/static/_app/immutable/chunks/C151Ov-r.js +1 -0
- package/static/_app/immutable/chunks/C28nlFVT.js +1 -0
- package/static/_app/immutable/chunks/C2t-YnRu.js +1 -0
- package/static/_app/immutable/chunks/C39BiMTA.js +1 -0
- package/static/_app/immutable/chunks/C3B-1QV4.js +1 -0
- package/static/_app/immutable/chunks/C3Wv6jpd.js +1 -0
- package/static/_app/immutable/chunks/C3mMm8J8.js +1 -0
- package/static/_app/immutable/chunks/C47S-Tmv.js +1 -0
- package/static/_app/immutable/chunks/C4EeE6gA.js +1 -0
- package/static/_app/immutable/chunks/C4IJs8-o.js +1 -0
- package/static/_app/immutable/chunks/C4gqWexZ.js +1 -0
- package/static/_app/immutable/chunks/C5YyOfLZ.js +1 -0
- package/static/_app/immutable/chunks/C7zT0LnQ.js +1 -0
- package/static/_app/immutable/chunks/C8M2exoo.js +1 -0
- package/static/_app/immutable/chunks/C8SIHLmM.js +1 -0
- package/static/_app/immutable/chunks/C8lEn-DE.js +1 -0
- package/static/_app/immutable/chunks/C98Dy4si.js +1 -0
- package/static/_app/immutable/chunks/C9E63BpL.js +1 -0
- package/static/_app/immutable/chunks/C9XAeP06.js +1 -0
- package/static/_app/immutable/chunks/C9dUb6Cb.js +1 -0
- package/static/_app/immutable/chunks/C9oPPf7i.js +1 -0
- package/static/_app/immutable/chunks/C9tS-k6U.js +1 -0
- package/static/_app/immutable/chunks/CDVJQ6XC.js +1 -0
- package/static/_app/immutable/chunks/CDx5xZoG.js +1 -0
- package/static/_app/immutable/chunks/CEL-wOlO.js +1 -0
- package/static/_app/immutable/chunks/CEu0bR-o.js +1 -0
- package/static/_app/immutable/chunks/CF10PKvl.js +1 -0
- package/static/_app/immutable/chunks/CFHQjOhq.js +1 -0
- package/static/_app/immutable/chunks/CG6Dc4jp.js +1 -0
- package/static/_app/immutable/chunks/CG8Ifv2g.js +1 -0
- package/static/_app/immutable/chunks/CH1njM8p.js +1 -0
- package/static/_app/immutable/chunks/CHBK5X1w.js +68 -0
- package/static/_app/immutable/chunks/CHLpvVh8.js +1 -0
- package/static/_app/immutable/chunks/CHM0blh-.js +1 -0
- package/static/_app/immutable/chunks/CI2Yzjad.js +64 -0
- package/static/_app/immutable/chunks/CIyB7iq8.js +1 -0
- package/static/_app/immutable/chunks/CIznanO1.js +1 -0
- package/static/_app/immutable/chunks/CJc9bBzg.js +1 -0
- package/static/_app/immutable/chunks/CKIfxQSi.js +1 -0
- package/static/_app/immutable/chunks/CLxacb5B.js +1 -0
- package/static/_app/immutable/chunks/CM4QnuZs.js +4 -0
- package/static/_app/immutable/chunks/CMTm3GFP.js +1 -0
- package/static/_app/immutable/chunks/CMjwMIkn.js +1 -0
- package/static/_app/immutable/chunks/CO1LY3CK.js +1 -0
- package/static/_app/immutable/chunks/COcwbKMJ.js +1 -0
- package/static/_app/immutable/chunks/COkxafJQ.js +1 -0
- package/static/_app/immutable/chunks/COt5Ahok.js +1 -0
- package/static/_app/immutable/chunks/CPTuQiBa.js +10 -0
- package/static/_app/immutable/chunks/CQ8jqdy-.js +1 -0
- package/static/_app/immutable/chunks/CS3Unz2-.js +1 -0
- package/static/_app/immutable/chunks/CSXwinHm.js +1 -0
- package/static/_app/immutable/chunks/CSt7grsY.js +267 -0
- package/static/_app/immutable/chunks/CTLgUaOw.js +15 -0
- package/static/_app/immutable/chunks/CTRr51gU.js +1 -0
- package/static/_app/immutable/chunks/CVF7vp9Z.js +1 -0
- package/static/_app/immutable/chunks/CVO1_9PV.js +1 -0
- package/static/_app/immutable/chunks/CVdnzihN.js +1 -0
- package/static/_app/immutable/chunks/CW8IKDeL.js +1 -0
- package/static/_app/immutable/chunks/CXQ1lKJR.js +1 -0
- package/static/_app/immutable/chunks/CXtECtnM.js +1 -0
- package/static/_app/immutable/chunks/CXuqG_J2.js +24 -0
- package/static/_app/immutable/chunks/CZhp0h8q.js +1 -0
- package/static/_app/immutable/chunks/CaGTHgeg.js +1 -0
- package/static/_app/immutable/chunks/CaL1vZnA.js +1 -0
- package/static/_app/immutable/chunks/CafNBF8u.js +1 -0
- package/static/_app/immutable/chunks/CbFg5uaA.js +1 -0
- package/static/_app/immutable/chunks/CbWomDEd.js +145 -0
- package/static/_app/immutable/chunks/CbfX1IO0.js +1 -0
- package/static/_app/immutable/chunks/CckKNcSY.js +1 -0
- package/static/_app/immutable/chunks/CeAyd5Ju.js +1 -0
- package/static/_app/immutable/chunks/Cehz00B_.js +36 -0
- package/static/_app/immutable/chunks/CenWIFCC.js +1 -0
- package/static/_app/immutable/chunks/CfMaDYuo.js +1 -0
- package/static/_app/immutable/chunks/CfQXZHmo.js +1 -0
- package/static/_app/immutable/chunks/Cg-RD9OK.js +1 -0
- package/static/_app/immutable/chunks/Ch6_qw5b.js +1 -0
- package/static/_app/immutable/chunks/ChMvpjG-.js +1 -0
- package/static/_app/immutable/chunks/ChOWTdG8.js +1 -0
- package/static/_app/immutable/chunks/Ci3HlJdq.js +1 -0
- package/static/_app/immutable/chunks/Cj5Yp3dK.js +1 -0
- package/static/_app/immutable/chunks/CjW8XjqM.js +1 -0
- package/static/_app/immutable/chunks/CjoLj4QM.js +1 -0
- package/static/_app/immutable/chunks/CkAYskLX.js +1 -0
- package/static/_app/immutable/chunks/CkByrt1z.js +1 -0
- package/static/_app/immutable/chunks/CkXjmgJE.js +1 -0
- package/static/_app/immutable/chunks/CklMAg4u.js +1 -0
- package/static/_app/immutable/chunks/CktI4lAE.js +1 -0
- package/static/_app/immutable/chunks/Cl8IGKIC.js +1 -0
- package/static/_app/immutable/chunks/CmIQRyeF.js +1 -0
- package/static/_app/immutable/chunks/CmKTTxBW.js +1 -0
- package/static/_app/immutable/chunks/Cmh6b_Ma.js +1 -0
- package/static/_app/immutable/chunks/CnnebwVN.js +1 -0
- package/static/_app/immutable/chunks/CnnmHF94.js +1 -0
- package/static/_app/immutable/chunks/CnsnAmq5.js +1 -0
- package/static/_app/immutable/chunks/Co6uUVPk.js +1 -0
- package/static/_app/immutable/chunks/CoDkCxhg.js +1 -0
- package/static/_app/immutable/chunks/CoP9XEcB.js +1 -0
- package/static/_app/immutable/chunks/Cp-IABpG.js +1 -0
- package/static/_app/immutable/chunks/Cq5zzVJU.js +1 -0
- package/static/_app/immutable/chunks/CquLrc37.js +1 -0
- package/static/_app/immutable/chunks/CsfeWuGM.js +1 -0
- package/static/_app/immutable/chunks/Csfq5Kiy.js +1 -0
- package/static/_app/immutable/chunks/CuPHTKiy.js +1 -0
- package/static/_app/immutable/chunks/Cuk6v7N8.js +1 -0
- package/static/_app/immutable/chunks/CvQeaAIM.js +1 -0
- package/static/_app/immutable/chunks/Cvjx9yec.js +1 -0
- package/static/_app/immutable/chunks/CwdUHN22.js +10 -0
- package/static/_app/immutable/chunks/CwoSXNpI.js +1 -0
- package/static/_app/immutable/chunks/CxGSJlkm.js +1 -0
- package/static/_app/immutable/chunks/CxLEBnE3.js +1 -0
- package/static/_app/immutable/chunks/CxbxFI8M.js +1 -0
- package/static/_app/immutable/chunks/CyktbL80.js +1 -0
- package/static/_app/immutable/chunks/CylS5w8V.js +1 -0
- package/static/_app/immutable/chunks/CzTSHFRz.js +1 -0
- package/static/_app/immutable/chunks/D-2ljcwZ.js +1 -0
- package/static/_app/immutable/chunks/D0YGMca9.js +1 -0
- package/static/_app/immutable/chunks/D0h_xhSm.js +1 -0
- package/static/_app/immutable/chunks/D0r3Knsf.js +1 -0
- package/static/_app/immutable/chunks/D17OF-Vu.js +1 -0
- package/static/_app/immutable/chunks/D1j8_8rp.js +1 -0
- package/static/_app/immutable/chunks/D2qRk260.js +1 -0
- package/static/_app/immutable/chunks/D3lLCCz7.js +1 -0
- package/static/_app/immutable/chunks/D4_iv3hh.js +1 -0
- package/static/_app/immutable/chunks/D4h5O-jR.js +1 -0
- package/static/_app/immutable/chunks/D5-asLiD.js +1 -0
- package/static/_app/immutable/chunks/D53aC0YG.js +1 -0
- package/static/_app/immutable/chunks/D5KoaKCx.js +1 -0
- package/static/_app/immutable/chunks/D5qUzPtI.js +24 -0
- package/static/_app/immutable/chunks/D6tSezzf.js +2 -0
- package/static/_app/immutable/chunks/D7o27uSR.js +1 -0
- package/static/_app/immutable/chunks/D7oLnXFd.js +1 -0
- package/static/_app/immutable/chunks/D82EKSYY.js +1 -0
- package/static/_app/immutable/chunks/D87Tk5Gz.js +1 -0
- package/static/_app/immutable/chunks/D8_7TLub.js +1 -0
- package/static/_app/immutable/chunks/D93ZcfNL.js +1 -0
- package/static/_app/immutable/chunks/D97Zzqfu.js +1 -0
- package/static/_app/immutable/chunks/DAi9KRSo.js +1 -0
- package/static/_app/immutable/chunks/DBpX0yWo.js +1 -0
- package/static/_app/immutable/chunks/DDfwx6bG.js +1 -0
- package/static/_app/immutable/chunks/DFQXde-d.js +1 -0
- package/static/_app/immutable/chunks/DFWUc33u.js +1 -0
- package/static/_app/immutable/chunks/DFXneXwc.js +1 -0
- package/static/_app/immutable/chunks/DGztddWO.js +1 -0
- package/static/_app/immutable/chunks/DH5Ifo-i.js +1 -0
- package/static/_app/immutable/chunks/DHCkPAjA.js +1 -0
- package/static/_app/immutable/chunks/DHJKELXO.js +1 -0
- package/static/_app/immutable/chunks/DHLdr2oY.js +61 -0
- package/static/_app/immutable/chunks/DHQR4-dF.js +1 -0
- package/static/_app/immutable/chunks/DHfvhpat.js +220 -0
- package/static/_app/immutable/chunks/DID_Ax9Y.js +1 -0
- package/static/_app/immutable/chunks/DM8c43g1.js +1 -0
- package/static/_app/immutable/chunks/DMzUqQB5.js +1 -0
- package/static/_app/immutable/chunks/DNstp7By.js +1 -0
- package/static/_app/immutable/chunks/DPfMkruS.js +1 -0
- package/static/_app/immutable/chunks/DPrxUVm_.js +1 -0
- package/static/_app/immutable/chunks/DQyhUUbL.js +1 -0
- package/static/_app/immutable/chunks/DR4elm4u.js +1 -0
- package/static/_app/immutable/chunks/DRg8JJMk.js +1 -0
- package/static/_app/immutable/chunks/DRw_LuNl.js +1 -0
- package/static/_app/immutable/chunks/DU1UobuO.js +1 -0
- package/static/_app/immutable/chunks/DUszq2jm.js +1 -0
- package/static/_app/immutable/chunks/DV7GczEv.js +1 -0
- package/static/_app/immutable/chunks/DVFEvuxE.js +1 -0
- package/static/_app/immutable/chunks/DVMEJ2y_.js +1 -0
- package/static/_app/immutable/chunks/DVP7Iy08.js +1 -0
- package/static/_app/immutable/chunks/DVxCFoDh.js +1 -0
- package/static/_app/immutable/chunks/DWedfzmr.js +1 -0
- package/static/_app/immutable/chunks/DWrx1Km3.js +1 -0
- package/static/_app/immutable/chunks/DX6XiGOO.js +1 -0
- package/static/_app/immutable/chunks/DXbdFlpD.js +1 -0
- package/static/_app/immutable/chunks/DXmwc3jG.js +1 -0
- package/static/_app/immutable/chunks/DXvB9xmW.js +1 -0
- package/static/_app/immutable/chunks/DYoxhk2S.js +1 -0
- package/static/_app/immutable/chunks/DZf3V79B.js +1 -0
- package/static/_app/immutable/chunks/DZxFcAj9.js +1 -0
- package/static/_app/immutable/chunks/D_Q5rh1f.js +1 -0
- package/static/_app/immutable/chunks/Da5cRb03.js +1 -0
- package/static/_app/immutable/chunks/DaZJ10kq.js +1 -0
- package/static/_app/immutable/chunks/DcOAMOlN.js +13 -0
- package/static/_app/immutable/chunks/DcaNXYhu.js +1 -0
- package/static/_app/immutable/chunks/DctEUaEs.js +122 -0
- package/static/_app/immutable/chunks/Dd19v3D-.js +1 -0
- package/static/_app/immutable/chunks/DdkO51Og.js +1 -0
- package/static/_app/immutable/chunks/Ddpm2sMN.js +2 -0
- package/static/_app/immutable/chunks/Ddv68eIx.js +1 -0
- package/static/_app/immutable/chunks/Des-eS-w.js +1 -0
- package/static/_app/immutable/chunks/Df6bDoY_.js +1 -0
- package/static/_app/immutable/chunks/Dg5xB15N.js +1 -0
- package/static/_app/immutable/chunks/DhXJpUyf.js +261 -0
- package/static/_app/immutable/chunks/DjeNoAoh.js +1 -0
- package/static/_app/immutable/chunks/DkFqJrB1.js +1 -0
- package/static/_app/immutable/chunks/DkwncUOv.js +1 -0
- package/static/_app/immutable/chunks/DmOB1nMW.js +60 -0
- package/static/_app/immutable/chunks/DnULxvSX.js +1 -0
- package/static/_app/immutable/chunks/Dntbqd40.js +1 -0
- package/static/_app/immutable/chunks/DpBBTLWw.js +1 -0
- package/static/_app/immutable/chunks/Dpen1YoG.js +1 -0
- package/static/_app/immutable/chunks/DqQDbK_p.js +1 -0
- package/static/_app/immutable/chunks/DqwNpetd.js +1 -0
- package/static/_app/immutable/chunks/Dr0tKAg9.js +1 -0
- package/static/_app/immutable/chunks/DsOJ9woJ.js +1 -0
- package/static/_app/immutable/chunks/Dspwwk_N.js +1 -0
- package/static/_app/immutable/chunks/DsqENSWP.js +1 -0
- package/static/_app/immutable/chunks/Dv7Oe6Be.js +1 -0
- package/static/_app/immutable/chunks/DvCA51Ri.js +1 -0
- package/static/_app/immutable/chunks/Dx-B1_4e.js +1 -0
- package/static/_app/immutable/chunks/DxNHbxmM.js +1 -0
- package/static/_app/immutable/chunks/DxSwrfjg.js +1 -0
- package/static/_app/immutable/chunks/DyxjwDmM.js +1 -0
- package/static/_app/immutable/chunks/E3gJ1_iC.js +1 -0
- package/static/_app/immutable/chunks/FixhtMGQ.js +1 -0
- package/static/_app/immutable/chunks/Gi6I4Gst.js +1 -0
- package/static/_app/immutable/chunks/GsRaNv29.js +1 -0
- package/static/_app/immutable/chunks/IF9eRakj.js +1 -0
- package/static/_app/immutable/chunks/IeuSbFQv.js +1 -0
- package/static/_app/immutable/chunks/JSbxStMO.js +1 -0
- package/static/_app/immutable/chunks/KBP0Pl-D.js +1 -0
- package/static/_app/immutable/chunks/L9t79GZl.js +1 -0
- package/static/_app/immutable/chunks/Lsu8CQWQ.js +1 -0
- package/static/_app/immutable/chunks/MzD3tlZU.js +1 -0
- package/static/_app/immutable/chunks/P80f7IUj.js +1 -0
- package/static/_app/immutable/chunks/Pmp26Uib.js +1 -0
- package/static/_app/immutable/chunks/QIJgUcNo.js +1 -0
- package/static/_app/immutable/chunks/U2OjavRo.js +160 -0
- package/static/_app/immutable/chunks/VCDPK7BO.js +1 -0
- package/static/_app/immutable/chunks/VOosw3JB.js +1 -0
- package/static/_app/immutable/chunks/YqXBG_HV.js +1 -0
- package/static/_app/immutable/chunks/Yzrsuije.js +1 -0
- package/static/_app/immutable/chunks/Z4qYLg5o.js +249 -0
- package/static/_app/immutable/chunks/_ykCGR6B.js +1 -0
- package/static/_app/immutable/chunks/bCR0ucgS.js +1 -0
- package/static/_app/immutable/chunks/bN70gL4F.js +1 -0
- package/static/_app/immutable/chunks/bWB8K6-D.js +5 -0
- package/static/_app/immutable/chunks/brMvHLvt.js +1 -0
- package/static/_app/immutable/chunks/d_IM0gte.js +139 -0
- package/static/_app/immutable/chunks/dwOrl1Do.js +1 -0
- package/static/_app/immutable/chunks/fKv21gyL.js +1 -0
- package/static/_app/immutable/chunks/fbvUeNLU.js +1 -0
- package/static/_app/immutable/chunks/fuZLfV_i.js +1 -0
- package/static/_app/immutable/chunks/g9-lgVsj.js +1 -0
- package/static/_app/immutable/chunks/gcz8RCvz.js +1 -0
- package/static/_app/immutable/chunks/ghzVJG2J.js +3 -0
- package/static/_app/immutable/chunks/hJgmCMqR.js +1 -0
- package/static/_app/immutable/chunks/hegEt444.js +1 -0
- package/static/_app/immutable/chunks/huq_gnMY.js +1 -0
- package/static/_app/immutable/chunks/k_qm7-4y.js +1 -0
- package/static/_app/immutable/chunks/lXgVvXCa.js +1 -0
- package/static/_app/immutable/chunks/m17aaUwq.js +1 -0
- package/static/_app/immutable/chunks/mWjccvbQ.js +1 -0
- package/static/_app/immutable/chunks/mjskCLCv.js +1 -0
- package/static/_app/immutable/chunks/n2N0HUVH.js +1 -0
- package/static/_app/immutable/chunks/nnazh41B.js +1 -0
- package/static/_app/immutable/chunks/oC1Mvi0U.js +89 -0
- package/static/_app/immutable/chunks/pwnRazgM.js +1 -0
- package/static/_app/immutable/chunks/qR_TM3YX.js +1 -0
- package/static/_app/immutable/chunks/qdsjHGoJ.js +1 -0
- package/static/_app/immutable/chunks/rBDgyNy3.js +1 -0
- package/static/_app/immutable/chunks/rGO070M0.js +1 -0
- package/static/_app/immutable/chunks/sDksUvMU.js +1 -0
- package/static/_app/immutable/chunks/tddw2aQM.js +112 -0
- package/static/_app/immutable/chunks/u5AG7uiY.js +1 -0
- package/static/_app/immutable/chunks/uYugtg8r.js +1 -0
- package/static/_app/immutable/chunks/vGWfd6FD.js +1 -0
- package/static/_app/immutable/chunks/wDzz0qaB.js +1 -0
- package/static/_app/immutable/entry/app.dIuL6Sx2.js +2 -0
- package/static/_app/immutable/entry/start.CPRrpmQQ.js +1 -0
- package/static/_app/immutable/nodes/0.C05hyQv4.js +31 -0
- package/static/_app/immutable/nodes/1.DNR70oez.js +1 -0
- package/static/_app/immutable/nodes/10.B2cLmMC7.js +10 -0
- package/static/_app/immutable/nodes/11.DJhRDO9i.js +10 -0
- package/static/_app/immutable/nodes/12.EQZXcF2X.js +15 -0
- package/static/_app/immutable/nodes/13.Cmr6DJCN.js +10 -0
- package/static/_app/immutable/nodes/14.C_0-G1-G.js +30 -0
- package/static/_app/immutable/nodes/15.CQpP4DKr.js +27 -0
- package/static/_app/immutable/nodes/16.X30_YaDj.js +6 -0
- package/static/_app/immutable/nodes/17.CFfybSgG.js +14 -0
- package/static/_app/immutable/nodes/2.BAngx7Bz.js +1 -0
- package/static/_app/immutable/nodes/3.DXKIOrMy.js +13 -0
- package/static/_app/immutable/nodes/4.DbkQP2wh.js +20 -0
- package/static/_app/immutable/nodes/5.ITF8-ndt.js +16 -0
- package/static/_app/immutable/nodes/6.c4AJxCzT.js +22 -0
- package/static/_app/immutable/nodes/7.BIY7aMPw.js +49 -0
- package/static/_app/immutable/nodes/8.z-z4LZ_8.js +17 -0
- package/static/_app/immutable/nodes/9.CSPrnU3x.js +4 -0
- package/static/_app/version.json +1 -0
- package/static/config.json +10 -0
- package/static/index.html +48 -0
- package/static/logo.png +0 -0
- package/static/manifest.json +23 -0
- package/static/sw.js +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"displayName":"Ballerina","fileTypes":["bal"],"name":"ballerina","patterns":[{"include":"#statements"}],"repository":{"access-modifier":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(p(?:ublic|rivate))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ballerina keyword.other.ballerina"}]},"annotationAttachment":{"patterns":[{"captures":{"1":{"name":"punctuation.decorator.ballerina"},"2":{"name":"support.type.ballerina"},"3":{"name":"punctuation.decorator.ballerina"},"4":{"name":"support.type.ballerina"}},"match":"(@)([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:?)\\\\s*((?:[$_[:alpha:]][$_[:alnum:]]*)?)"}]},"annotationDefinition":{"patterns":[{"begin":"\\\\bannotation\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":";","patterns":[{"include":"#code"}]}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.ballerina"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ballerina"}},"name":"meta.array.literal.ballerina","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"booleans":{"patterns":[{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.ballerina"}]},"butClause":{"patterns":[{"begin":"=>","beginCaptures":{"0":{"name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},"end":",|(?=})","patterns":[{"include":"#code"}]}]},"butExp":{"patterns":[{"begin":"\\\\bbut\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#butExpBody"},{"include":"#comment"}]}]},"butExpBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#parameter"},{"include":"#butClause"},{"include":"#comment"}]}]},"call":{"patterns":[{"match":"\'?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()","name":"entity.name.function.ballerina"}]},"callableUnitBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#workerDef"},{"include":"#service-decl"},{"include":"#objectDec"},{"include":"#function-defn"},{"include":"#forkStatement"},{"include":"#code"}]}]},"class-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"name":"meta.class.body.ballerina","patterns":[{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#function-defn"},{"include":"#var-expr"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#keywords"},{"begin":"(?<=:)\\\\s*","end":"(?=[-\\\\])+,:;}\\\\s]|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-defn":{"begin":"(\\\\s+)(class)\\\\b|^class\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"0":{"name":"storage.type.class.ballerina keyword.other.ballerina"}},"end":"(?<=})","name":"meta.class.ballerina","patterns":[{"include":"#keywords"},{"captures":{"0":{"name":"entity.name.type.class.ballerina"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#class-body"}]},"code":{"patterns":[{"include":"#booleans"},{"include":"#matchStatement"},{"include":"#butExp"},{"include":"#xml"},{"include":"#stringTemplate"},{"include":"#keywords"},{"include":"#strings"},{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#annotationAttachment"},{"include":"#numbers"},{"include":"#maps"},{"include":"#paranthesised"},{"include":"#paranthesisedBracket"},{"include":"#regex"}]},"comment":{"patterns":[{"match":"//.*","name":"comment.ballerina"}]},"constrainType":{"patterns":[{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ballerina"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ballerina"}},"patterns":[{"include":"#comment"},{"include":"#constrainType"},{"match":"\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b","name":"storage.type.ballerina"}]}]},"control-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.ballerina"}},"end":"(?=[;}]|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)","patterns":[{"include":"#expression"}]},{"include":"#for-loop"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.ballerina"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"(?=} external;)|(})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"name":"meta.block.ballerina","patterns":[{"include":"#statements"},{"include":"#mdDocumentation"}]},"declaration":{"patterns":[{"include":"#import-declaration"},{"include":"#var-expr"},{"include":"#typeDefinition"},{"include":"#function-defn"},{"include":"#service-decl"},{"include":"#class-defn"},{"include":"#enum-decl"},{"include":"#source"},{"include":"#keywords"}]},"defaultValue":{"patterns":[{"begin":"[:=]","beginCaptures":{"0":{"name":"keyword.operator.ballerina"}},"end":"(?=[),])","patterns":[{"include":"#code"}]}]},"defaultWithParentheses":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}}}]},"documentationBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"captures":{"1":{"name":"keyword.other.ballerina.documentation"},"2":{"name":"keyword.other.ballerina.documentation"},"3":{"name":"variable.parameter.ballerina.documentation"},"4":{"name":"keyword.other.ballerina.documentation"}},"match":"([FPRTV])(\\\\{\\\\{)(.*)(}})"},{"begin":"```","end":"```","name":"comment.block.code.ballerina.documentation"},{"begin":"``","end":"``","name":"comment.block.code.ballerina.documentation"},{"begin":"`","end":"`","name":"comment.block.code.ballerina.documentation"},{"match":".","name":"comment.block.ballerina.documentation"}]}]},"documentationDef":{"patterns":[{"begin":"\\\\bd(?:ocumentation|eprecated)\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"}","endCaptures":{"0":{"name":"delimiter.curly"}},"patterns":[{"include":"#documentationBody"},{"include":"#comment"}]}]},"enum-decl":{"begin":"(?:\\\\b(const)\\\\s+)?\\\\b(enum)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"storage.modifier.ballerina"},"2":{"name":"keyword.other.ballerina"},"3":{"name":"entity.name.type.enum.ballerina"}},"end":"(?<=})","name":"meta.enum.declaration.ballerina","patterns":[{"include":"#comment"},{"include":"#mdDocumentation"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#comment"},{"include":"#mdDocumentation"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.ballerina"}},"end":"(?=[,}]|$)","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},{"begin":"(?=((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+])))","end":"(?=[,}]|$)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#comment"},{"include":"#variable-initializer"}]},{"include":"#punctuation-comma"}]}]},"errorDestructure":{"patterns":[{"begin":"error","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?==>)","patterns":[{"include":"#code"}]}]},"expression":{"patterns":[{"include":"#keywords"},{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#regex"}]},"expression-operators":{"patterns":[{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ballerina"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ballerina"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ballerina"},{"match":"[!=]==?","name":"keyword.operator.comparison.ballerina"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ballerina"},{"captures":{"1":{"name":"keyword.operator.logical.ballerina"},"2":{"name":"keyword.operator.assignment.compound.ballerina"},"3":{"name":"keyword.operator.arithmetic.ballerina"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ballerina"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ballerina"},{"match":"=","name":"keyword.operator.assignment.ballerina"},{"match":"--","name":"keyword.operator.decrement.ballerina"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ballerina"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ballerina"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#xml"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#comment"},{"include":"#object-literal"},{"include":"#ternary-expression"},{"include":"#expression-operators"},{"include":"#literal"},{"include":"#paranthesised"},{"include":"#regex"}]},"flags-on-off":{"name":"meta.flags.regexp.ballerina","patterns":[{"begin":"(\\\\??)([imsx]*)(-?)([imsx]*)(:)","beginCaptures":{"1":{"name":"punctuation.other.non-capturing-group-begin.regexp.ballerina"},"2":{"name":"keyword.other.non-capturing-group.flags-on.regexp.ballerina"},"3":{"name":"punctuation.other.non-capturing-group.off.regexp.ballerina"},"4":{"name":"keyword.other.non-capturing-group.flags-off.regexp.ballerina"},"5":{"name":"punctuation.other.non-capturing-group-end.regexp.ballerina"}},"end":"()","name":"constant.other.flag.regexp.ballerina","patterns":[{"include":"#regexp"},{"include":"#template-substitution-element"}]}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))foreach\\\\s*","beginCaptures":{"0":{"name":"keyword.control.loop.ballerina"},"1":{"name":"support.type.primitive.ballerina"}},"end":"(?=\\\\{)","patterns":[{"match":"\\\\bin\\\\b","name":"keyword.other.ballerina"},{"include":"#identifiers"},{"include":"#comment"},{"include":"#var-expr"},{"include":"#expression"}]},"forkBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"(?=})","patterns":[{"include":"#workerDef"}]}]},"forkStatement":{"patterns":[{"begin":"\\\\bfork\\\\b","beginCaptures":{"0":{"name":"keyword.control.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#forkBody"}]}]},"function-body":{"patterns":[{"include":"#comment"},{"include":"#functionParameters"},{"include":"#decl-block"},{"begin":"=>","beginCaptures":{"0":{"name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},"end":"(?=;)|(?=,)|(?=\\\\);)","name":"meta.block.ballerina","patterns":[{"include":"#natural-expr"},{"include":"#statements"},{"include":"#punctuation-comma"}]},{"match":"\\\\*","name":"keyword.generator.asterisk.ballerina"}]},"function-defn":{"begin":"(?:(p(?:ublic|rivate))\\\\s+)?(function)\\\\b","beginCaptures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"keyword.other.ballerina"}},"end":"(?<=;)|(?<=})|(?<=,)|(?=\\\\);)","name":"meta.function.ballerina","patterns":[{"match":"\\\\bexternal\\\\b","name":"keyword.ballerina"},{"include":"#stringTemplate"},{"include":"#annotationAttachment"},{"include":"#functionReturns"},{"include":"#functionName"},{"include":"#functionParameters"},{"include":"#punctuation-semicolon"},{"include":"#function-body"},{"include":"#regex"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#numbers"},{"include":"#string"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#keywords"},{"include":"#parameter-name"},{"include":"#array-literal"},{"include":"#variable-initializer"},{"include":"#identifiers"},{"include":"#regex"},{"match":",","name":"punctuation.separator.parameter.ballerina"}]},"functionName":{"patterns":[{"match":"\\\\bfunction\\\\b","name":"keyword.other.ballerina"},{"include":"#type-primitive"},{"include":"#self-literal"},{"include":"#string"},{"captures":{"2":{"name":"variable.language.this.ballerina"},"3":{"name":"keyword.other.ballerina"},"4":{"name":"support.type.primitive.ballerina"},"5":{"name":"storage.type.ballerina"},"6":{"name":"meta.definition.function.ballerina entity.name.function.ballerina"}},"match":"\\\\s+(\\\\b(self)|\\\\b(is|new|isolated|null|function|in)\\\\b|(string|int|boolean|float|byte|decimal|json|xml|anydata)\\\\b|\\\\b(readonly|error|map)\\\\b|([$_[:alpha:]][$_[:alnum:]]*))"}]},"functionParameters":{"begin":"[(\\\\[]","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ballerina"}},"end":"[])]","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ballerina"}},"name":"meta.parameters.ballerina","patterns":[{"include":"#function-parameters-body"}]},"functionReturns":{"begin":"\\\\s*(returns)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.ballerina"}},"end":"(?==>)|(=)|(?=\\\\{)|(\\\\))|(?=;)","endCaptures":{"1":{"name":"keyword.operator.ballerina"}},"name":"meta.type.function.return.ballerina","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numbers"},{"include":"#keywords"},{"include":"#type-primitive"},{"captures":{"1":{"name":"support.type.primitive.ballerina"}},"match":"\\\\s*\\\\b(var)(?=\\\\s+|[?\\\\[])"},{"match":"\\\\|","name":"keyword.operator.ballerina"},{"match":"\\\\?","name":"keyword.operator.optional.ballerina"},{"include":"#type-annotation"},{"include":"#type-tuple"},{"include":"#keywords"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ballerina"}]},"functionType":{"patterns":[{"begin":"\\\\bfunction\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"(?=,)|(?=\\\\|)|(?=:)|(?==>)|(?=\\\\))|(?=])","patterns":[{"include":"#comment"},{"include":"#functionTypeParamList"},{"include":"#functionTypeReturns"}]}]},"functionTypeParamList":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"delimiter.parenthesis"}},"end":"\\\\)","endCaptures":{"0":{"name":"delimiter.parenthesis"}},"patterns":[{"match":"public","name":"keyword"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#parameterTuple"},{"include":"#functionTypeType"},{"include":"#comment"}]}]},"functionTypeReturns":{"patterns":[{"begin":"\\\\breturns\\\\b","beginCaptures":{"0":{"name":"keyword"}},"end":"(?=,)|\\\\||(?=])|(?=\\\\))","patterns":[{"include":"#functionTypeReturnsParameter"},{"include":"#comment"}]}]},"functionTypeReturnsParameter":{"patterns":[{"begin":"((?=record|object|function)|[$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?=,)|[:|]|(?==>)|(?=\\\\))|(?=])","patterns":[{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#defaultValue"},{"include":"#comment"},{"include":"#parameterTuple"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"functionTypeType":{"patterns":[{"begin":"[$_[:alpha:]][$_[:alnum:]]*","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?=,)|\\\\||(?=])|(?=\\\\))"}]},"identifiers":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((((<\\\\s*)$|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()"},{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"variable.other.property.ballerina"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#type-primitive"},{"include":"#self-literal"},{"match":"\\\\b(check|foreach|if|checkpanic)\\\\b","name":"keyword.control.ballerina"},{"include":"#natural-expr"},{"include":"#call"},{"match":"\\\\b(var)\\\\b","name":"support.type.primitive.ballerina"},{"captures":{"1":{"name":"variable.other.readwrite.ballerina"},"3":{"name":"punctuation.accessor.ballerina"},"4":{"name":"entity.name.function.ballerina"},"5":{"name":"punctuation.definition.parameters.begin.ballerina"},"6":{"name":"punctuation.definition.parameters.end.ballerina"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)((\\\\.)([$_[:alpha:]][$_[:alnum:]]*)(\\\\()(\\\\)))?"},{"match":"(\')([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.property.ballerina"},{"include":"#type-annotation"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\b\\\\s*(?!\\\\{))","end":"(?<=})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()?","beginCaptures":{"1":{"name":"keyword.control.conditional.ballerina"},"2":{"name":"meta.brace.round.ballerina"}},"end":"(\\\\))|(?=\\\\{)","endCaptures":{"1":{"name":"meta.brace.round.ballerina"}},"patterns":[{"include":"#decl-block"},{"include":"#keywords"},{"include":"#identifiers"},{"include":"#type-primitive"},{"include":"#xml"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#comment"},{"include":"#ternary-expression"},{"include":"#expression-operators"},{"include":"#literal"},{"include":"#paranthesised"},{"include":"#regex"}]},{"begin":"(?<=\\\\))(?=[=\\\\s])","end":"(?=\\\\{)","patterns":[{"include":"#literal"},{"include":"#keywords"}]},{"include":"#decl-block"}]}]},"import-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.default.ballerina"},"3":{"name":"variable.other.readwrite.ballerina meta.import.module.ballerina"},"5":{"name":"keyword.control.default.ballerina"},"6":{"name":"variable.other.readwrite.alias.ballerina"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(default)|(\\\\*)|\\\\b([$_[:alpha:]][$_[:alnum:]]*))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.alias.ballerina"}]},"import-declaration":{"begin":"\\\\bimport\\\\b","beginCaptures":{"0":{"name":"keyword.control.import.ballerina"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ballerina"}},"name":"meta.import.ballerina","patterns":[{"match":"(\')([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.property.ballerina"},{"include":"#keywords"},{"include":"#comment"},{"include":"#import-clause"},{"include":"#punctuation-accessor"}]},"keywords":{"patterns":[{"match":"\\\\b(fork|join|while|returns|transaction|transactional|retry|commit|rollback|typeof|enum|wait|match)\\\\b","name":"keyword.control.ballerina"},{"match":"\\\\b(return|break|continue|check|checkpanic|panic|trap|from|where)\\\\b","name":"keyword.control.flow.ballerina"},{"match":"\\\\b(public|private|external|return|record|object|remote|abstract|client|true|false|fail|import|version)\\\\b","name":"keyword.other.ballerina"},{"match":"\\\\b(as|on|function|resource|listener|const|final|is|null|lock|annotation|source|worker|parameter|field|isolated|in)\\\\b","name":"keyword.other.ballerina"},{"match":"\\\\b(xmlns|table|key|let|new|select|start|flush|default|do|base16|base64|conflict)\\\\b","name":"keyword.other.ballerina"},{"match":"\\\\b(limit|outer|equals|order|by|ascending|descending|class|configurable|variable|module|service|group|collect)\\\\b","name":"keyword.other.ballerina"},{"match":"(=>)","name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"},{"match":"([-!%+]|~=|===?|=|!==??|[\\\\&<>|]|\\\\?:|\\\\.\\\\.\\\\.|<=|>=|&&|\\\\|\\\\||~|>>>??)","name":"keyword.operator.ballerina"},{"include":"#types"},{"include":"#self-literal"},{"include":"#type-primitive"}]},"literal":{"patterns":[{"include":"#booleans"},{"include":"#numbers"},{"include":"#strings"},{"include":"#maps"},{"include":"#self-literal"},{"include":"#array-literal"}]},"maps":{"patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#code"}]}]},"matchBindingPattern":{"patterns":[{"begin":"var","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?==>)|,","patterns":[{"include":"#errorDestructure"},{"include":"#code"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.parameter.ballerina"}]}]},"matchStatement":{"patterns":[{"begin":"\\\\bmatch\\\\b","beginCaptures":{"0":{"name":"keyword.control.ballerina"}},"end":"}","patterns":[{"include":"#matchStatementBody"},{"include":"#comment"},{"include":"#code"}]}]},"matchStatementBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#literal"},{"include":"#matchBindingPattern"},{"include":"#matchStatementPatternClause"},{"include":"#comment"},{"include":"#code"}]}]},"matchStatementPatternClause":{"patterns":[{"begin":"=>","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"((})|[,;])","patterns":[{"include":"#callableUnitBody"},{"include":"#code"}]}]},"mdDocumentation":{"begin":"#","end":"[\\\\n\\\\r]+","name":"comment.mddocs.ballerina","patterns":[{"include":"#mdDocumentationReturnParamDescription"},{"include":"#mdDocumentationParamDescription"}]},"mdDocumentationParamDescription":{"patterns":[{"begin":"(\\\\+\\\\s+)(\'?[$_[:alpha:]][$_[:alnum:]]*)(\\\\s*-\\\\s+)","beginCaptures":{"1":{"name":"keyword.operator.ballerina"},"2":{"name":"variable.other.readwrite.ballerina"},"3":{"name":"keyword.operator.ballerina"}},"end":"(?=[^\\\\n\\\\r#]|# *?\\\\+)","patterns":[{"match":"#.*","name":"comment.mddocs.paramdesc.ballerina"}]}]},"mdDocumentationReturnParamDescription":{"patterns":[{"begin":"(#) *?(\\\\+) *(return) *(-)?(.*)","beginCaptures":{"1":{"name":"comment.mddocs.ballerina"},"2":{"name":"keyword.ballerina"},"3":{"name":"keyword.ballerina"},"4":{"name":"keyword.ballerina"},"5":{"name":"comment.mddocs.returnparamdesc.ballerina"}},"end":"(?=[^\\\\n\\\\r#]|# *?\\\\+)","patterns":[{"match":"#.*","name":"comment.mddocs.returnparamdesc.ballerina"}]}]},"multiType":{"patterns":[{"match":"(?<=\\\\|)([$_[:alpha:]][$_[:alnum:]]*)|([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\|)","name":"storage.type.ballerina"},{"match":"\\\\|","name":"keyword.operator.ballerina"}]},"natural-expr":{"patterns":[{"begin":"natural","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#natural-expr-body"}]}]},"natural-expr-body":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"contentName":"string.template.ballerina","end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"},{"include":"#templateVariable"}]}]},"numbers":{"patterns":[{"match":"\\\\b(?:0[Xx][A-Fa-f\\\\d]+\\\\b|\\\\d+(?:\\\\.(?:\\\\d+|$))?)","name":"constant.numeric.decimal.ballerina"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"name":"meta.objectliteral.ballerina","patterns":[{"include":"#object-member"},{"include":"#punctuation-comma"}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#function-defn"},{"include":"#literal"},{"include":"#keywords"},{"include":"#expression"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ballerina meta.object-literal.key.ballerina","patterns":[{"include":"#comment"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\n*})|(\\\\s+(as)\\\\s+))))","name":"meta.object.member.ballerina meta.object-literal.key.ballerina","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)))","end":"(?=:)|(?=\\\\s*([(,<}])|(\\\\s+as\\\\s+))","name":"meta.object.member.ballerina meta.object-literal.key.ballerina","patterns":[{"include":"#comment"},{"include":"#numbers"}]},{"begin":"(?<=[]\\"\'`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ballerina","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.ballerina"},"1":{"name":"constant.numeric.decimal.ballerina"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ballerina"},{"captures":{"0":{"name":"meta.object-literal.key.ballerina"},"1":{"name":"entity.name.function.ballerina"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*((((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((((<\\\\s*)$|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.ballerina"},{"captures":{"0":{"name":"meta.object-literal.key.ballerina"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ballerina"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ballerina"}},"end":"(?=[,}])","name":"meta.object.member.ballerina","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ballerina"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ballerina"},{"captures":{"1":{"name":"keyword.control.as.ballerina"},"2":{"name":"storage.modifier.ballerina"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.ballerina"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ballerina"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+))","name":"meta.object.member.ballerina"},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ballerina","patterns":[{"include":"#expression"}]}]},"objectDec":{"patterns":[{"begin":"\\\\bobject\\\\b(?!:)","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]}]},"objectInitBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#comment"},{"include":"#code"}]}]},"objectInitParameters":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ballerina"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ballerina"}},"patterns":[{"include":"#code"},{"match":"\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b","name":"variable.parameter.ballerina"}]}]},"objectMemberFunctionDec":{"patterns":[{"begin":"\\\\bfunction\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":";","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#functionParameters"},{"match":"\\\\breturns\\\\b","name":"keyword.ballerina"},{"include":"#code"}]}]},"parameter":{"patterns":[{"begin":"((?=record|object|function)|([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\|)|[$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"[,:|]|(?==>)|(?=\\\\))|(?=])","patterns":[{"include":"#parameterWithDescriptor"},{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#defaultValue"},{"include":"#comment"},{"include":"#parameterTuple"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"support.type.primitive.ballerina"}},"match":"\\\\s*\\\\b(var)\\\\s+"},{"captures":{"2":{"name":"keyword.operator.rest.ballerina"},"3":{"name":"support.type.primitive.ballerina"},"4":{"name":"keyword.other.ballerina"},"5":{"name":"constant.language.boolean.ballerina"},"6":{"name":"keyword.control.flow.ballerina"},"7":{"name":"storage.type.ballerina"},"8":{"name":"variable.parameter.ballerina"},"9":{"name":"variable.parameter.ballerina"},"10":{"name":"keyword.operator.optional.ballerina"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|(string|int|boolean|float|byte|decimal|json|xml|anydata)|\\\\b(is|new|isolated|null|function|in)\\\\b|\\\\b(true|false)\\\\b|\\\\b(check|foreach|if|checkpanic)\\\\b|\\\\b(readonly|error|map)\\\\b|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)"}]},"parameterTuple":{"patterns":[{"begin":"\\\\[","end":"(?=,)|(?=\\\\|)|(?=:)|(?==>)|(?=\\\\))","patterns":[{"include":"#record"},{"include":"#objectDec"},{"include":"#parameterTupleType"},{"include":"#parameterTupleEnd"},{"include":"#comment"}]}]},"parameterTupleEnd":{"patterns":[{"begin":"]","end":"(?=,)|(?=\\\\|)|(?=:)|(?==>)|(?=\\\\))","patterns":[{"include":"#defaultWithParentheses"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"parameterTupleType":{"patterns":[{"begin":"[$_[:alpha:]][$_[:alnum:]]*","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"[,|]|(?=])"}]},"parameterWithDescriptor":{"patterns":[{"begin":"&","beginCaptures":{"0":{"name":"keyword.operator.ballerina"}},"end":"(?=,)|(?=\\\\|)|(?=\\\\))","patterns":[{"include":"#parameter"}]}]},"parameters":{"patterns":[{"match":"\\\\s*(return|break|continue|check|checkpanic|panic|trap|from|where)\\\\b","name":"keyword.control.flow.ballerina"},{"match":"\\\\s*(let|select)\\\\b","name":"keyword.other.ballerina"},{"match":",","name":"punctuation.separator.parameter.ballerina"}]},"paranthesised":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ballerina"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ballerina"}},"name":"meta.brace.round.block.ballerina","patterns":[{"include":"#self-literal"},{"include":"#function-defn"},{"include":"#decl-block"},{"include":"#comment"},{"include":"#string"},{"include":"#parameters"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#stringTemplate"},{"include":"#parameter-name"},{"include":"#variable-initializer"},{"include":"#expression"},{"include":"#regex"}]},"paranthesisedBracket":{"patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#comment"},{"include":"#code"}]}]},"punctuation-accessor":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"}]},"punctuation-comma":{"patterns":[{"match":",","name":"punctuation.separator.comma.ballerina"}]},"punctuation-semicolon":{"patterns":[{"match":";","name":"punctuation.terminator.statement.ballerina"}]},"record":{"begin":"\\\\brecord\\\\b","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?<=})","name":"meta.record.ballerina","patterns":[{"include":"#recordBody"}]},"recordBody":{"patterns":[{"include":"#decl-block"}]},"recordLiteral":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#code"}]}]},"regex":{"patterns":[{"begin":"\\\\b(re)(\\\\s*)(`)","beginCaptures":{"1":{"name":"support.type.primitive.ballerina"},"3":{"name":"punctuation.definition.regexp.template.begin.ballerina"}},"end":"`","endCaptures":{"1":{"name":"punctuation.definition.regexp.template.end.ballerina"}},"name":"regexp.template.ballerina","patterns":[{"include":"#template-substitution-element"},{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[DSWdnrstw]|\\\\.","name":"keyword.other.character-class.regexp.ballerina"},{"match":"\\\\\\\\[^Ppu]","name":"constant.character.escape.backslash.regexp"}]},"regex-unicode-properties-general-category":{"patterns":[{"match":"(Lu|Ll|Lt|Lm|Lo?|Mn|Mc|Me?|Nd|Nl|No?|Pc|Pd|Ps|Pe|Pi|Pf|Po?|Sm|Sc|Sk|So?|Zs|Zl|Zp?|Cf|Cc|Cn|Co?)","name":"constant.other.unicode-property-general-category.regexp.ballerina"}]},"regex-unicode-property-key":{"patterns":[{"begin":"([gs]c=)","beginCaptures":{"1":{"name":"keyword.other.unicode-property-key.regexp.ballerina"}},"end":"()","endCaptures":{"1":{"name":"punctuation.other.unicode-property.end.regexp.ballerina"}},"name":"keyword.other.unicode-property-key.regexp.ballerina","patterns":[{"include":"#regex-unicode-properties-general-category"}]}]},"regexp":{"patterns":[{"match":"[$^]","name":"keyword.control.assertion.regexp.ballerina"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp.ballerina"},{"match":"\\\\|","name":"keyword.operator.or.regexp.ballerina"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp.ballerina"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp.ballerina"}},"name":"meta.group.assertion.regexp.ballerina","patterns":[{"include":"#template-substitution-element"},{"include":"#regexp"},{"include":"#flags-on-off"},{"include":"#unicode-property-escape"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.start.regexp.ballerina"},"2":{"name":"keyword.operator.negation.regexp.ballerina"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.end.regexp.ballerina"}},"name":"constant.other.character-class.set.regexp.ballerina","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.escape.backslash.regexp"},"3":{"name":"constant.character.numeric.regexp"},"4":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\[^Ppu]))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\[^Ppu]))","name":"constant.other.character-class.range.regexp.ballerina"},{"include":"#regex-character-class"},{"include":"#unicode-values"},{"include":"#unicode-property-escape"}]},{"include":"#template-substitution-element"},{"include":"#regex-character-class"},{"include":"#unicode-values"},{"include":"#unicode-property-escape"}]},"self-literal":{"patterns":[{"captures":{"1":{"name":"variable.language.this.ballerina"},"2":{"name":"punctuation.accessor.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"\\\\b(self)\\\\b\\\\s*(.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))self\\\\b(?!\\\\$)","name":"variable.language.this.ballerina"}]},"service-decl":{"begin":"\\\\bservice\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)|(?<=})|(?<=,)","name":"meta.service.declaration.ballerina","patterns":[{"include":"#class-defn"},{"include":"#serviceName"},{"include":"#serviceOn"},{"include":"#serviceBody"},{"include":"#objectDec"}]},"serviceBody":{"patterns":[{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#documentationDef"},{"include":"#decl-block"}]},"serviceName":{"patterns":[{"include":"#string"},{"match":"(/([$_[:alpha:]][$_[:alnum:]]*)|\\"[$_[:alpha:]][$_[:alnum:]]*\\")","name":"entity.service.path.ballerina"}]},"serviceOn":{"patterns":[{"begin":"on","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?=\\\\{)","patterns":[{"include":"#code"}]}]},"source":{"patterns":[{"begin":"\\\\b(source)\\\\b\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"variable.other.readwrite.ballerina"}},"end":"(?=,)|(?=;)"}]},"statements":{"patterns":[{"include":"#stringTemplate"},{"include":"#declaration"},{"include":"#control-statement"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-semicolon"},{"include":"#string"},{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#keywords"},{"include":"#annotationAttachment"},{"include":"#regex"}]},"string":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ballerina"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ballerina"},"2":{"name":"invalid.illegal.newline.ballerina"}},"name":"string.quoted.double.ballerina","patterns":[{"include":"#string-character-escape"}]}]},"string-character-escape":{"patterns":[{"match":"\\\\\\\\(x\\\\h{2}|u\\\\h{4}|u\\\\{\\\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ballerina"}]},"stringTemplate":{"patterns":[{"begin":"((string)|([$_[:alpha:]][$_[:alnum:]]*))?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ballerina"},"2":{"name":"support.type.primitive.ballerina"},"4":{"name":"punctuation.definition.string.template.begin.ballerina"}},"end":"\\\\\\\\?`","endCaptures":{"0":{"name":"punctuation.definition.string.template.end.ballerina"}},"name":"string.template.ballerina","patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"string.begin.ballerina"}},"end":"\\"","endCaptures":{"0":{"name":"string.end.ballerina"}},"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ballerina"},{"match":".","name":"string"}]}]},"template-substitution-element":{"patterns":[{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ballerina"}},"contentName":"meta.embedded.line.ballerina","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ballerina"}},"name":"meta.template.expression.ballerina","patterns":[{"include":"#expression"}]}]},"templateVariable":{"patterns":[{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"constant.character.escape.ballerina"}},"end":"}","endCaptures":{"0":{"name":"constant.character.escape.ballerina"}},"patterns":[{"include":"#code"}]}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ballerina"}},"end":"\\\\s*","endCaptures":{"1":{"name":"keyword.operator.ternary.ballerina"}},"patterns":[{"include":"#expression"}]},"tupleType":{"patterns":[{"begin":"\\\\[","end":"(?=[];])","patterns":[{"include":"#comment"},{"include":"#constrainType"},{"include":"#paranthesisedBracket"},{"match":"\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b","name":"storage.type.ballerina"}]}]},"type":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numbers"},{"include":"#type-primitive"},{"include":"#type-tuple"}]},"type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ballerina"}},"end":"(?<![\\\\&:|])((?=$|^|[]),;=>?}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))(\\\\?)?","name":"meta.type.annotation.ballerina","patterns":[{"include":"#booleans"},{"include":"#stringTemplate"},{"include":"#regex"},{"include":"#self-literal"},{"include":"#xml"},{"include":"#call"},{"captures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"constant.language.boolean.ballerina"},"3":{"name":"keyword.control.ballerina"},"4":{"name":"storage.type.ballerina"},"5":{"name":"support.type.primitive.ballerina"},"6":{"name":"variable.other.readwrite.ballerina"},"8":{"name":"punctuation.accessor.ballerina"},"9":{"name":"entity.name.function.ballerina"},"10":{"name":"punctuation.definition.parameters.begin.ballerina"},"11":{"name":"punctuation.definition.parameters.end.ballerina"}},"match":"\\\\b(is|new|isolated|null|function|in)\\\\b|\\\\b(true|false)\\\\b|\\\\b(check|foreach|if|checkpanic)\\\\b|\\\\b(readonly|error|map)\\\\b|\\\\b(var)\\\\b|([$_[:alpha:]][$_[:alnum:]]*)((\\\\.)([$_[:alpha:]][$_[:alnum:]]*)(\\\\()(\\\\)))?"},{"match":"\\\\?","name":"keyword.operator.optional.ballerina"},{"include":"#multiType"},{"include":"#type"},{"include":"#paranthesised"}]}]},"type-primitive":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|int|boolean|float|byte|decimal|json|xml|anydata)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.ballerina"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ballerina"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ballerina"}},"name":"meta.type.tuple.ballerina","patterns":[{"include":"#self-literal"},{"include":"#booleans"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.ballerina"},{"captures":{"1":{"name":"entity.name.label.ballerina"},"2":{"name":"keyword.operator.optional.ballerina"},"3":{"name":"punctuation.separator.label.ballerina"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#identifiers"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeDefinition":{"patterns":[{"begin":"\\\\b(type)\\\\b\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"entity.name.type.ballerina"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ballerina"}},"patterns":[{"include":"#functionParameters"},{"include":"#functionReturns"},{"include":"#mdDocumentation"},{"include":"#record"},{"include":"#string"},{"include":"#keywords"},{"include":"#multiType"},{"include":"#type-primitive"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ballerina"},{"include":"#type-annotation"},{"include":"#typeDescription"},{"include":"#decl-block"}]}]},"typeDescription":{"patterns":[{"begin":"[$_[:alpha:]][$_[:alnum:]]*","end":"(?=;)","patterns":[{"include":"#numbers"},{"include":"#decl-block"},{"include":"#type-primitive"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"storage.type.ballerina"}]}]},"types":{"patterns":[{"match":"\\\\b(handle|any|future|typedesc)\\\\b","name":"storage.type.ballerina"},{"match":"\\\\b(boolean|int|string|float|decimal|byte|json|xml|anydata)\\\\b","name":"support.type.primitive.ballerina"},{"match":"\\\\b(map|error|never|readonly|distinct)\\\\b","name":"storage.type.ballerina"},{"match":"\\\\b(stream)\\\\b","name":"storage.type.ballerina"}]},"unicode-property-escape":{"patterns":[{"begin":"(\\\\\\\\[Pp])(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.unicode-property.regexp.ballerina"},"2":{"name":"punctuation.other.unicode-property.begin.regexp.ballerina"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.other.unicode-property.end.regexp.ballerina"}},"name":"keyword.other.unicode-property.regexp.ballerina","patterns":[{"include":"#regex-unicode-properties-general-category"},{"include":"#regex-unicode-property-key"}]}]},"unicode-values":{"patterns":[{"begin":"(\\\\\\\\u)(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.unicode-value.regexp.ballerina"},"2":{"name":"punctuation.other.unicode-value.begin.regexp.ballerina"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.other.unicode-value.end.regexp.ballerina"}},"name":"keyword.other.unicode-value.ballerina","patterns":[{"match":"(\\\\h{1,6})","name":"constant.other.unicode-value.regexp.ballerina"}]}]},"var-expr":{"patterns":[{"begin":"(?=\\\\b(var))","beginCaptures":{"0":{"name":"storage.modifier.ballerina support.type.primitive.ballerina"}},"end":"(?!\\\\b(var))((?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=(if)\\\\s+))|((?<!^string|[^$._[:alnum:]]string|^int|[^$._[:alnum:]]int)(?=\\\\s*$)))","name":"meta.var.expr.ballerina","patterns":[{"begin":"\\\\b(var)(?=\\\\s+|[:?\\\\[|])","beginCaptures":{"0":{"name":"support.type.primitive.ballerina"}},"end":"(?=\\\\S)"},{"match":"\\\\|","name":"keyword.operator.type.annotation.ballerina"},{"match":"\\\\bin\\\\b","name":"keyword.other.ballerina"},{"include":"#comment"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#numbers"},{"include":"#multiType"},{"include":"#self-literal"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"},{"include":"#type-annotation"},{"include":"#keywords"},{"include":"#type-tuple"},{"include":"#regex"}]},{"include":"#punctuation-comma"},{"begin":"(?=\\\\b(const(?!\\\\s+enum\\\\b)))","end":"(?!\\\\b(const(?!\\\\s+enum\\\\b)))((?=\\\\bannotation\\\\b|[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)|((?<!^string|[^$._[:alnum:]]string|^int|[^$._[:alnum:]]int)(?=\\\\s*$)))","name":"meta.var.expr.ballerina","patterns":[{"begin":"\\\\b(const(?!\\\\s+enum\\\\b))\\\\s+","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?=\\\\S)"},{"include":"#comment"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"},{"include":"#type-annotation"}]},{"include":"#punctuation-comma"},{"begin":"(string|int|boolean|float|byte|decimal|json|xml|anydata)(?=\\\\s+|[:?\\\\[|])","beginCaptures":{"0":{"name":"support.type.primitive.ballerina"}},"end":"(?!\\\\b(var))((?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)|((?<!^string|[^$._[:alnum:]]string|^int|[^$._[:alnum:]]int)(?=\\\\s*$)))","name":"meta.var.expr.ballerina","patterns":[{"include":"#xml"},{"begin":"(string|int|boolean|float|byte|decimal|json|xml|anydata)(?=\\\\s+|[:?\\\\[|])","beginCaptures":{"0":{"name":"support.type.primitive.ballerina"}},"end":"(?=\\\\S)"},{"match":"\\\\|","name":"keyword.operator.type.annotation.ballerina"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#numbers"},{"include":"#multiType"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"},{"include":"#type-annotation"},{"include":"#keywords"},{"include":"#type-tuple"},{"include":"#regex"}]},{"include":"#punctuation-comma"}]},"var-single-const":{"patterns":[{"name":"meta.var-single-variable.expr.ballerina"},{"begin":"\\\\b(var)\\\\s*","beginCaptures":{"0":{"name":"support.type.primitive.ballerina"}},"end":"(?=\\\\S)"},{"include":"#types"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.ballerina variable.other.constant.ballerina"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\s+))"}]},"var-single-variable":{"patterns":[{"begin":"((string|int|boolean|float|byte|decimal|json|xml|anydata)|\\\\b(readonly|error|map)\\\\b|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s+|[;>|])","beginCaptures":{"2":{"name":"support.type.primitive.ballerina"},"3":{"name":"storage.type.ballerina"},"4":{"name":"meta.definition.variable.ballerina variable.other.readwrite.ballerina"}},"end":"(?=$|^|[,;=}])","endCaptures":{"0":{"name":"punctuation.terminator.statement.ballerina"}},"name":"meta.var-single-variable.expr.ballerina","patterns":[{"include":"#call"},{"include":"#self-literal"},{"include":"#if-statement"},{"include":"#string"},{"include":"#numbers"},{"include":"#keywords"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ballerina variable.other.readwrite.ballerina"},"2":{"name":"keyword.operator.definiteassignment.ballerina"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\s+))","name":"meta.var-single-variable.expr.ballerina"}]},"variable-initializer":{"patterns":[{"begin":"(?<![!=])(=)(?![=>])(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ballerina"}},"end":"(?=$|[]),;}])","patterns":[{"match":"(\')([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.property.ballerina"},{"include":"#xml"},{"include":"#function-defn"},{"include":"#expression"},{"include":"#punctuation-accessor"},{"include":"#regex"}]},{"begin":"(?<![!=])(=)(?![=>])","beginCaptures":{"1":{"name":"keyword.operator.assignment.ballerina"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\s+))|(?=^\\\\s*$)|(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]},"variableDef":{"patterns":[{"begin":"(?!\\\\+)[$_[:alpha:]][$_[:alnum:]]*[\\\\t ]|(?=\\\\()","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"[$_[:alpha:]][$_[:alnum:]]*|(?=,)|(?=;)|\\\\.\\\\.\\\\.","patterns":[{"include":"#tupleType"},{"include":"#constrainType"},{"include":"#comment"}]}]},"variableDefInline":{"patterns":[{"begin":"(?=record)|(?=object)","end":"(?=;)","patterns":[{"include":"#record"},{"include":"#objectDec"}]}]},"workerBody":{"patterns":[{"begin":"\\\\{","end":"(?=})","patterns":[{"include":"#code"}]}]},"workerDef":{"patterns":[{"begin":"\\\\bworker\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"}","patterns":[{"include":"#functionReturns"},{"include":"#workerBody"}]}]},"xml":{"patterns":[{"begin":"\\\\b(xml)(\\\\s*)(`)","beginCaptures":{"1":{"name":"support.type.primitive.ballerina"},"3":{"name":"punctuation.definition.string.template.begin.ballerina"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.template.end.ballerina"}},"name":"string.template.ballerina","patterns":[{"include":"#xmlTag"},{"include":"#xmlComment"},{"include":"#templateVariable"},{"match":".","name":"string"}]}]},"xmlComment":{"patterns":[{"begin":"<!--","beginCaptures":{"0":{"name":"comment.block.xml.ballerina"}},"end":"-->","endCaptures":{"0":{"name":"comment.block.xml.ballerina"}},"name":"comment.block.xml.ballerina"}]},"xmlDoubleQuotedString":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"string.begin.ballerina"}},"end":"\\"","endCaptures":{"0":{"name":"string.end.ballerina"}},"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ballerina"},{"match":".","name":"string"}]}]},"xmlSingleQuotedString":{"patterns":[{"begin":"\'","beginCaptures":{"0":{"name":"string.begin.ballerina"}},"end":"\'","endCaptures":{"0":{"name":"string.end.ballerina"}},"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ballerina"},{"match":".","name":"string"}]}]},"xmlTag":{"patterns":[{"begin":"(</?\\\\??)\\\\s*([-0-9A-Z_a-z]+)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.xml.ballerina"},"2":{"name":"entity.name.tag.xml.ballerina"}},"end":"\\\\??/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.xml.ballerina"}},"patterns":[{"include":"#xmlSingleQuotedString"},{"include":"#xmlDoubleQuotedString"},{"match":"xmlns","name":"keyword.other.ballerina"},{"match":"([-0-9A-Za-z]+)","name":"entity.other.attribute-name.xml.ballerina"}]}]}},"scopeName":"source.ballerina"}')),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"displayName":"TypeSpec","fileTypes":["tsp"],"name":"typespec","patterns":[{"include":"#statement"}],"repository":{"alias-id":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.alias-id.typespec","patterns":[{"include":"#expression"}]},"alias-statement":{"begin":"\\\\b(alias)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.type.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.alias-statement.typespec","patterns":[{"include":"#alias-id"},{"include":"#type-parameters"}]},"augment-decorator-statement":{"begin":"((@@)\\\\b[$_[:alpha:]](?:[$_[:alnum:]]|\\\\.[$_[:alpha:]])*)\\\\b","beginCaptures":{"1":{"name":"entity.name.tag.tsp"},"2":{"name":"entity.name.tag.tsp"}},"end":"(?=([$_`[:alpha:]]))|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.augment-decorator-statement.typespec","patterns":[{"include":"#token"},{"include":"#parenthesized-expression"}]},"block-comment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.tsp"},"boolean-literal":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.tsp"},"callExpression":{"begin":"\\\\b([$_[:alpha:]](?:[$_[:alnum:]]|\\\\.[$_[:alpha:]])*)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.tsp"},"2":{"name":"punctuation.parenthesis.open.tsp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.tsp"}},"name":"meta.callExpression.typespec","patterns":[{"include":"#token"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"const-statement":{"begin":"\\\\b(const)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"variable.name.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.const-statement.typespec","patterns":[{"include":"#type-annotation"},{"include":"#operator-assignment"},{"include":"#expression"}]},"decorator":{"begin":"((@)\\\\b[$_[:alpha:]](?:[$_[:alnum:]]|\\\\.[$_[:alpha:]])*)\\\\b","beginCaptures":{"1":{"name":"entity.name.tag.tsp"},"2":{"name":"entity.name.tag.tsp"}},"end":"(?=([$_`[:alpha:]]))|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.decorator.typespec","patterns":[{"include":"#token"},{"include":"#parenthesized-expression"}]},"decorator-declaration-statement":{"begin":"(?:(extern)\\\\s+)?\\\\b(dec)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"keyword.other.tsp"},"3":{"name":"entity.name.function.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.decorator-declaration-statement.typespec","patterns":[{"include":"#token"},{"include":"#operation-parameters"}]},"directive":{"begin":"\\\\s*(#)\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b","beginCaptures":{"1":{"name":"keyword.directive.name.tsp"},"2":{"name":"keyword.directive.name.tsp"}},"end":"$|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.directive.typespec","patterns":[{"include":"#string-literal"},{"include":"#identifier-expression"}]},"doc-comment":{"begin":"/\\\\*\\\\*","beginCaptures":{"0":{"name":"comment.block.tsp"}},"end":"\\\\*/","endCaptures":{"0":{"name":"comment.block.tsp"}},"name":"comment.block.tsp","patterns":[{"include":"#doc-comment-block"}]},"doc-comment-block":{"patterns":[{"include":"#doc-comment-param"},{"include":"#doc-comment-return-tag"},{"include":"#doc-comment-unknown-tag"}]},"doc-comment-param":{"captures":{"1":{"name":"keyword.tag.tspdoc"},"2":{"name":"keyword.tag.tspdoc"},"3":{"name":"variable.name.tsp"}},"match":"((@)(?:param|template|prop))\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\b","name":"comment.block.tsp"},"doc-comment-return-tag":{"captures":{"1":{"name":"keyword.tag.tspdoc"},"2":{"name":"keyword.tag.tspdoc"}},"match":"((@)returns)\\\\b","name":"comment.block.tsp"},"doc-comment-unknown-tag":{"captures":{"1":{"name":"entity.name.tag.tsp"},"2":{"name":"entity.name.tag.tsp"}},"match":"((@)(?:\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`))\\\\b","name":"comment.block.tsp"},"enum-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.enum-body.typespec","patterns":[{"include":"#enum-member"},{"include":"#token"},{"include":"#directive"},{"include":"#decorator"},{"include":"#punctuation-comma"}]},"enum-member":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\s*(:?)","beginCaptures":{"1":{"name":"variable.name.tsp"},"2":{"name":"keyword.operator.type.annotation.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.enum-member.typespec","patterns":[{"include":"#token"},{"include":"#type-annotation"}]},"enum-statement":{"begin":"\\\\b(enum)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.type.tsp"}},"end":"(?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.enum-statement.typespec","patterns":[{"include":"#token"},{"include":"#enum-body"}]},"escape-character":{"match":"\\\\\\\\.","name":"constant.character.escape.tsp"},"expression":{"patterns":[{"include":"#token"},{"include":"#directive"},{"include":"#parenthesized-expression"},{"include":"#valueof"},{"include":"#typeof"},{"include":"#type-arguments"},{"include":"#object-literal"},{"include":"#tuple-literal"},{"include":"#tuple-expression"},{"include":"#model-expression"},{"include":"#callExpression"},{"include":"#identifier-expression"}]},"function-declaration-statement":{"begin":"(?:(extern)\\\\s+)?\\\\b(fn)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"keyword.other.tsp"},"3":{"name":"entity.name.function.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.function-declaration-statement.typespec","patterns":[{"include":"#token"},{"include":"#operation-parameters"},{"include":"#type-annotation"}]},"identifier-expression":{"match":"\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`","name":"entity.name.type.tsp"},"import-statement":{"begin":"\\\\b(import)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.import-statement.typespec","patterns":[{"include":"#token"}]},"interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.interface-body.typespec","patterns":[{"include":"#token"},{"include":"#directive"},{"include":"#decorator"},{"include":"#interface-member"},{"include":"#punctuation-semicolon"}]},"interface-heritage":{"begin":"\\\\b(extends)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"((?=\\\\{)|(?=[);@}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b))","name":"meta.interface-heritage.typespec","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"interface-member":{"begin":"(?:\\\\b(op)\\\\b\\\\s+)?(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.function.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.interface-member.typespec","patterns":[{"include":"#token"},{"include":"#operation-signature"}]},"interface-statement":{"begin":"\\\\b(interface)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.interface-statement.typespec","patterns":[{"include":"#token"},{"include":"#type-parameters"},{"include":"#interface-heritage"},{"include":"#interface-body"},{"include":"#expression"}]},"line-comment":{"match":"//.*$","name":"comment.line.double-slash.tsp"},"model-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.model-expression.typespec","patterns":[{"include":"#model-property"},{"include":"#token"},{"include":"#directive"},{"include":"#decorator"},{"include":"#spread-operator"},{"include":"#punctuation-semicolon"}]},"model-heritage":{"begin":"\\\\b(extends|is)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"((?=\\\\{)|(?=[);@}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b))","name":"meta.model-heritage.typespec","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"model-property":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)|(\\"(?:[^\\"\\\\\\\\]|\\\\\\\\.)*\\")","beginCaptures":{"1":{"name":"variable.name.tsp"},"2":{"name":"string.quoted.double.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.model-property.typespec","patterns":[{"include":"#token"},{"include":"#type-annotation"},{"include":"#operator-assignment"},{"include":"#expression"}]},"model-statement":{"begin":"\\\\b(model)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.model-statement.typespec","patterns":[{"include":"#token"},{"include":"#type-parameters"},{"include":"#model-heritage"},{"include":"#expression"}]},"namespace-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.namespace-body.typespec","patterns":[{"include":"#statement"}]},"namespace-name":{"begin":"(?=([$_`[:alpha:]]))","end":"((?=\\\\{)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b))","name":"meta.namespace-name.typespec","patterns":[{"include":"#identifier-expression"},{"include":"#punctuation-accessor"}]},"namespace-statement":{"begin":"\\\\b(namespace)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"((?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b))","name":"meta.namespace-statement.typespec","patterns":[{"include":"#token"},{"include":"#namespace-name"},{"include":"#namespace-body"}]},"numeric-literal":{"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)|\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)|(?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)","name":"constant.numeric.tsp"},"object-literal":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.hashcurlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.object-literal.typespec","patterns":[{"include":"#token"},{"include":"#object-literal-property"},{"include":"#directive"},{"include":"#spread-operator"},{"include":"#punctuation-comma"}]},"object-literal-property":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.name.tsp"},"2":{"name":"keyword.operator.type.annotation.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.object-literal-property.typespec","patterns":[{"include":"#token"},{"include":"#expression"}]},"operation-heritage":{"begin":"\\\\b(is)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.operation-heritage.typespec","patterns":[{"include":"#expression"}]},"operation-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.tsp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.tsp"}},"name":"meta.operation-parameters.typespec","patterns":[{"include":"#token"},{"include":"#decorator"},{"include":"#model-property"},{"include":"#spread-operator"},{"include":"#punctuation-comma"}]},"operation-signature":{"patterns":[{"include":"#type-parameters"},{"include":"#operation-heritage"},{"include":"#operation-parameters"},{"include":"#type-annotation"}]},"operation-statement":{"begin":"\\\\b(op)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.function.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.operation-statement.typespec","patterns":[{"include":"#token"},{"include":"#operation-signature"}]},"operator-assignment":{"match":"=","name":"keyword.operator.assignment.tsp"},"parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.tsp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.tsp"}},"name":"meta.parenthesized-expression.typespec","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"punctuation-accessor":{"match":"\\\\.","name":"punctuation.accessor.tsp"},"punctuation-comma":{"match":",","name":"punctuation.comma.tsp"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.tsp"},"scalar-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.scalar-body.typespec","patterns":[{"include":"#token"},{"include":"#directive"},{"include":"#scalar-constructor"},{"include":"#punctuation-semicolon"}]},"scalar-constructor":{"begin":"\\\\b(init)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.function.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.scalar-constructor.typespec","patterns":[{"include":"#token"},{"include":"#operation-parameters"}]},"scalar-extends":{"begin":"\\\\b(extends)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=[);@}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.scalar-extends.typespec","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"scalar-statement":{"begin":"\\\\b(scalar)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.type.tsp"}},"end":"(?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.scalar-statement.typespec","patterns":[{"include":"#token"},{"include":"#type-parameters"},{"include":"#scalar-extends"},{"include":"#scalar-body"}]},"spread-operator":{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.spread-operator.typespec","patterns":[{"include":"#expression"}]},"statement":{"patterns":[{"include":"#token"},{"include":"#directive"},{"include":"#augment-decorator-statement"},{"include":"#decorator"},{"include":"#model-statement"},{"include":"#scalar-statement"},{"include":"#union-statement"},{"include":"#interface-statement"},{"include":"#enum-statement"},{"include":"#alias-statement"},{"include":"#const-statement"},{"include":"#namespace-statement"},{"include":"#operation-statement"},{"include":"#import-statement"},{"include":"#using-statement"},{"include":"#decorator-declaration-statement"},{"include":"#function-declaration-statement"},{"include":"#punctuation-semicolon"}]},"string-literal":{"begin":"\\"","end":"\\"|$","name":"string.quoted.double.tsp","patterns":[{"include":"#template-expression"},{"include":"#escape-character"}]},"template-expression":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsp"}},"name":"meta.template-expression.typespec","patterns":[{"include":"#expression"}]},"token":{"patterns":[{"include":"#doc-comment"},{"include":"#line-comment"},{"include":"#block-comment"},{"include":"#triple-quoted-string-literal"},{"include":"#string-literal"},{"include":"#boolean-literal"},{"include":"#numeric-literal"}]},"triple-quoted-string-literal":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.triple.tsp","patterns":[{"include":"#template-expression"},{"include":"#escape-character"}]},"tuple-expression":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.tsp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.tsp"}},"name":"meta.tuple-expression.typespec","patterns":[{"include":"#expression"}]},"tuple-literal":{"begin":"#\\\\[","beginCaptures":{"0":{"name":"punctuation.hashsquarebracket.open.tsp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.tsp"}},"name":"meta.tuple-literal.typespec","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"type-annotation":{"begin":"\\\\s*(\\\\??)\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.optional.tsp"},"2":{"name":"keyword.operator.type.annotation.tsp"}},"end":"(?=[),;=@}]|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.type-annotation.typespec","patterns":[{"include":"#expression"}]},"type-argument":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.name.type.tsp"},"2":{"name":"keyword.operator.assignment.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","endCaptures":{"0":{"name":"keyword.operator.assignment.tsp"}},"name":"meta.type-argument.typespec","patterns":[{"include":"#token"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.tsp"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.tsp"}},"name":"meta.type-arguments.typespec","patterns":[{"include":"#type-argument"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"type-parameter":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"entity.name.type.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.type-parameter.typespec","patterns":[{"include":"#token"},{"include":"#type-parameter-constraint"},{"include":"#type-parameter-default"}]},"type-parameter-constraint":{"begin":"extends","beginCaptures":{"0":{"name":"keyword.other.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.type-parameter-constraint.typespec","patterns":[{"include":"#expression"}]},"type-parameter-default":{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.type-parameter-default.typespec","patterns":[{"include":"#expression"}]},"type-parameters":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.tsp"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.tsp"}},"name":"meta.type-parameters.typespec","patterns":[{"include":"#type-parameter"},{"include":"#punctuation-comma"}]},"typeof":{"begin":"\\\\b(typeof)","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.typeof.typespec","patterns":[{"include":"#expression"}]},"union-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.tsp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.tsp"}},"name":"meta.union-body.typespec","patterns":[{"include":"#union-variant"},{"include":"#token"},{"include":"#directive"},{"include":"#decorator"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"union-statement":{"begin":"\\\\b(union)\\\\b\\\\s+(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)","beginCaptures":{"1":{"name":"keyword.other.tsp"},"2":{"name":"entity.name.type.tsp"}},"end":"(?<=})|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.union-statement.typespec","patterns":[{"include":"#token"},{"include":"#union-body"}]},"union-variant":{"begin":"(\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b|`(?:[^\\\\\\\\`]|\\\\\\\\.)*`)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.name.tsp"},"2":{"name":"keyword.operator.type.annotation.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.union-variant.typespec","patterns":[{"include":"#token"},{"include":"#expression"}]},"using-statement":{"begin":"\\\\b(using)\\\\b","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.using-statement.typespec","patterns":[{"include":"#token"},{"include":"#identifier-expression"},{"include":"#punctuation-accessor"}]},"valueof":{"begin":"\\\\b(valueof)","beginCaptures":{"1":{"name":"keyword.other.tsp"}},"end":"(?=>)|(?=[,;@]|#[a-z]|[)}]|\\\\bextern\\\\b|\\\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\\\b)","name":"meta.valueof.typespec","patterns":[{"include":"#expression"}]}},"scopeName":"source.tsp","aliases":["tsp"]}')),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./CylS5w8V.js";const n=Object.freeze(JSON.parse(`{"displayName":"XML","name":"xml","patterns":[{"begin":"(<\\\\?)\\\\s*([-0-9A-Z_a-z]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml","patterns":[{"match":" ([-A-Za-z]+)","name":"entity.other.attribute-name.xml"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"begin":"(<!)(DOCTYPE)\\\\s+([:A-Z_a-z][-.0-:A-Z_a-z]*)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.doctype.xml"},"3":{"name":"variable.language.documentroot.xml"}},"end":"\\\\s*(>)","name":"meta.tag.sgml.doctype.xml","patterns":[{"include":"#internalSubset"}]},{"include":"#comments"},{"begin":"(<)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(?=(\\\\s[^>]*)?></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)(</)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"entity.name.tag.namespace.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#tagStuff"}]},{"begin":"(</?)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(/?>)","name":"meta.tag.xml","patterns":[{"include":"#tagStuff"}]},{"include":"#entity"},{"include":"#bare-ampersand"},{"begin":"<%@","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java-props.embedded.xml","patterns":[{"match":"page|include|taglib","name":"keyword.other.page-props.xml"}]},{"begin":"<%[!=]?(?!--)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"(?!--)%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java.embedded.xml","patterns":[{"include":"source.java"}]},{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.unquoted.cdata.xml"}],"repository":{"EntityDecl":{"begin":"(<!)(ENTITY)\\\\s+(%\\\\s+)?([:A-Z_a-z][-.0-:A-Z_a-z]*)(\\\\s+(?:SYSTEM|PUBLIC)\\\\s+)?","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.entity.xml"},"3":{"name":"punctuation.definition.entity.xml"},"4":{"name":"variable.language.entity.xml"},"5":{"name":"keyword.other.entitytype.xml"}},"end":"(>)","patterns":[{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},"bare-ampersand":{"match":"&","name":"invalid.illegal.bad-ampersand.xml"},"comments":{"patterns":[{"begin":"<%--","captures":{"0":{"name":"punctuation.definition.comment.xml"},"end":"--%>","name":"comment.block.xml"}},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.xml"}},"end":"-->","name":"comment.block.xml","patterns":[{"begin":"--(?!>)","captures":{"0":{"name":"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"internalSubset":{"begin":"(\\\\[)","captures":{"1":{"name":"punctuation.definition.constant.xml"}},"end":"(])","name":"meta.internalsubset.xml","patterns":[{"include":"#EntityDecl"},{"include":"#parameterEntity"},{"include":"#comments"}]},"parameterEntity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(%)([:A-Z_a-z][-.0-:A-Z_a-z]*)(;)","name":"constant.character.parameter-entity.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"tagStuff":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":"(?:^|\\\\s+)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*="},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]}},"scopeName":"text.xml","embeddedLangs":["java"]}`)),a=[...e,n];export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./wDzz0qaB.js";const r=Object.freeze(JSON.parse('{"displayName":"SurrealQL","fileTypes":[".surql",".surrealql"],"foldingStartMarker":"[(\\\\[{|]\\\\s*$","foldingStopMarker":"^\\\\s*[])|}]","name":"surrealql","patterns":[{"include":"#comment"},{"include":"#js-function"},{"include":"#function"},{"include":"#keywords"},{"include":"#operators"},{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","end":"]","patterns":[{"include":"#array-content"}]},"array-content":{"patterns":[{"include":"$self"},{"match":",","name":"punctuation.separator.array"}]},"block":{"begin":"\\\\{","end":"}","name":"surrealql.block","patterns":[{"include":"#block-content"}]},"block-content":{"patterns":[{"include":"#string"},{"include":"#object-key"},{"include":"$self"}]},"boolean":{"match":"\\\\b(true|TRUE|false|FALSE|True|False)\\\\b","name":"constant.language.bool"},"comment":{"patterns":[{"include":"#comment.line.dash"},{"include":"#comment.line.slash"},{"include":"#comment.line.hash"},{"include":"#comment.block"}]},"comment.block":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.surrealql"},"comment.line.dash":{"begin":"--","end":"\\\\n","name":"comment.line.double-dash"},"comment.line.hash":{"begin":"#","end":"\\\\n","name":"comment.line.number-sign"},"comment.line.slash":{"begin":"//","end":"\\\\n","name":"comment.line.double-slash"},"duration":{"match":"(\\\\d+(ns|µs|ms|[dhmswy]))+","name":"constant.other"},"function":{"begin":"(?=(\\\\b\\\\w+(?:::\\\\b\\\\w+)+|count|rand)\\\\s*\\\\()","beginCaptures":{"1":{"name":"support.function"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]}]},"ident":{"patterns":[{"begin":"`","end":"(?<!\\\\\\\\)`","name":"support.type.property-name"},{"begin":"⟨","end":"(?<!\\\\\\\\)⟩","name":"support.type.property-name"}]},"js-function":{"begin":"(?=\\\\b(function)\\\\b)","beginCaptures":{"1":{"name":"support.function.js"}},"end":"(?<=})","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]},{"begin":"\\\\{","end":"}","name":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}]}]},"keywords":{"patterns":[{"match":"\\\\b(ACCESS|access)\\\\b","name":"keyword.control.access.surrealql"},{"match":"\\\\b(ALGORITHM|algorithm)\\\\b","name":"keyword.control.algorithm.surrealql"},{"match":"\\\\b(ALL|all)\\\\b","name":"keyword.control.all.surrealql"},{"match":"\\\\b(ALTER|alter)\\\\b","name":"keyword.control.alter.surrealql"},{"match":"\\\\b(ALWAYS|always)\\\\b","name":"keyword.control.always.surrealql"},{"match":"\\\\b(ANALYZER|analyzer)\\\\b","name":"keyword.control.analyzer.surrealql"},{"match":"\\\\b(AND|and)\\\\b","name":"keyword.control.and.surrealql"},{"match":"\\\\b(ANY|any)\\\\b","name":"keyword.control.any.surrealql"},{"match":"\\\\b(API|api)\\\\b","name":"keyword.control.api.surrealql"},{"match":"\\\\b(AS|as)\\\\b","name":"keyword.control.as.surrealql"},{"match":"\\\\b(ASC|asc)\\\\b","name":"keyword.control.asc.surrealql"},{"match":"\\\\b(ASSERT|assert)\\\\b","name":"keyword.control.assert.surrealql"},{"match":"\\\\b(AT|at)\\\\b","name":"keyword.control.at.surrealql"},{"match":"\\\\b(AUTHENTICATE|authenticate)\\\\b","name":"keyword.control.authenticate.surrealql"},{"match":"\\\\b(AUTO|auto)\\\\b","name":"keyword.control.auto.surrealql"},{"match":"\\\\b(BACKEND|backend)\\\\b","name":"keyword.control.backend.surrealql"},{"match":"\\\\b(BEGIN|begin)\\\\b","name":"keyword.control.begin.surrealql"},{"match":"\\\\b(BM25|bm25)\\\\b","name":"keyword.control.bm25.surrealql"},{"match":"\\\\b(BREAK|break)\\\\b","name":"keyword.control.break.surrealql"},{"match":"\\\\b(BUCKET|bucket)\\\\b","name":"keyword.control.bucket.surrealql"},{"match":"\\\\b(BY|by)\\\\b","name":"keyword.control.by.surrealql"},{"match":"\\\\b(CANCEL|cancel)\\\\b","name":"keyword.control.cancel.surrealql"},{"match":"\\\\b(CAPACITY|capacity)\\\\b","name":"keyword.control.capacity.surrealql"},{"match":"\\\\b(CASCADE|cascade)\\\\b","name":"keyword.control.cascade.surrealql"},{"match":"\\\\b(CHANGEFEED|changefeed)\\\\b","name":"keyword.control.changefeed.surrealql"},{"match":"\\\\b(CHANGES|changes)\\\\b","name":"keyword.control.changes.surrealql"},{"match":"\\\\b(COLLATE|collate)\\\\b","name":"keyword.control.collate.surrealql"},{"match":"\\\\b(COLUMNS|columns)\\\\b","name":"keyword.control.columns.surrealql"},{"match":"\\\\b(COMMENT|comment)\\\\b","name":"keyword.control.comment.surrealql"},{"match":"\\\\b(COMMIT|commit)\\\\b","name":"keyword.control.commit.surrealql"},{"match":"\\\\b(COMPUTED|computed)\\\\b","name":"keyword.control.computed.surrealql"},{"match":"\\\\b(CONCURRENTLY|concurrently)\\\\b","name":"keyword.control.concurrently.surrealql"},{"match":"\\\\b(CONFIG|config)\\\\b","name":"keyword.control.config.surrealql"},{"match":"\\\\b(CONTENT|content)\\\\b","name":"keyword.control.content.surrealql"},{"match":"\\\\b(CONTINUE|continue)\\\\b","name":"keyword.control.continue.surrealql"},{"match":"\\\\b(CREATE|create)\\\\b","name":"keyword.control.create.surrealql"},{"match":"\\\\b(DATABASE|database)\\\\b","name":"keyword.control.database.surrealql"},{"match":"\\\\b(DB|db)\\\\b","name":"keyword.control.db.surrealql"},{"match":"\\\\b(DEFAULT|default)\\\\b","name":"keyword.control.default.surrealql"},{"match":"\\\\b(DEFER|defer)\\\\b","name":"keyword.control.defer.surrealql"},{"match":"\\\\b(DEFINE|define)\\\\b","name":"keyword.control.define.surrealql"},{"match":"\\\\b(DELETE|delete)\\\\b","name":"keyword.control.delete.surrealql"},{"match":"\\\\b(DESC|desc)\\\\b","name":"keyword.control.desc.surrealql"},{"match":"\\\\b(DIMENSION|dimension)\\\\b","name":"keyword.control.dimension.surrealql"},{"match":"\\\\b(DIST|dist)\\\\b","name":"keyword.control.dist.surrealql"},{"match":"\\\\b(DOC_IDS_CACHE|doc_ids_cache)\\\\b","name":"keyword.control.doc_ids_cache.surrealql"},{"match":"\\\\b(DOC_IDS_ORDER|doc_ids_order)\\\\b","name":"keyword.control.doc_ids_order.surrealql"},{"match":"\\\\b(DOC_LENGTHS_CACHE|doc_lengths_cache)\\\\b","name":"keyword.control.doc_lengths_cache.surrealql"},{"match":"\\\\b(DOC_LENGTHS_ORDER|doc_lengths_order)\\\\b","name":"keyword.control.doc_lengths_order.surrealql"},{"match":"\\\\b(DROP|drop)\\\\b","name":"keyword.control.drop.surrealql"},{"match":"\\\\b(DUPLICATE|duplicate)\\\\b","name":"keyword.control.duplicate.surrealql"},{"match":"\\\\b(DURATION|duration)\\\\b","name":"keyword.control.duration.surrealql"},{"match":"\\\\b(EFC|efc)\\\\b","name":"keyword.control.efc.surrealql"},{"match":"\\\\b(ELSE|else)\\\\b","name":"keyword.control.else.surrealql"},{"match":"\\\\b(END|end)\\\\b","name":"keyword.control.end.surrealql"},{"match":"\\\\b(ENFORCED|enforced)\\\\b","name":"keyword.control.enforced.surrealql"},{"match":"\\\\b(EVENT|event)\\\\b","name":"keyword.control.event.surrealql"},{"match":"\\\\b(EXCLUDE|exclude)\\\\b","name":"keyword.control.exclude.surrealql"},{"match":"\\\\b(EXISTS|exists)\\\\b","name":"keyword.control.exists.surrealql"},{"match":"\\\\b(EXPLAIN|explain)\\\\b","name":"keyword.control.explain.surrealql"},{"match":"\\\\b(EXPUNGE|expunge)\\\\b","name":"keyword.control.expunge.surrealql"},{"match":"\\\\b(EXTEND_CANDIDATES|extend_candidates)\\\\b","name":"keyword.control.extend_candidates.surrealql"},{"match":"\\\\b(FETCH|fetch)\\\\b","name":"keyword.control.fetch.surrealql"},{"match":"\\\\b(FIELD|field)\\\\b","name":"keyword.control.field.surrealql"},{"match":"\\\\b(FIELDS|fields)\\\\b","name":"keyword.control.fields.surrealql"},{"match":"\\\\b(FILTERS|filters)\\\\b","name":"keyword.control.filters.surrealql"},{"match":"\\\\b(FLEXIBLE|flexible)\\\\b","name":"keyword.control.flexible.surrealql"},{"match":"\\\\b(FOR|for)\\\\b","name":"keyword.control.for.surrealql"},{"match":"\\\\b(FROM|from)\\\\b","name":"keyword.control.from.surrealql"},{"match":"\\\\b(FUNCTION|function)\\\\b","name":"keyword.control.function.surrealql"},{"match":"\\\\b(FUNCTIONS|functions)\\\\b","name":"keyword.control.functions.surrealql"},{"match":"\\\\b(GET|get)\\\\b","name":"keyword.control.get.surrealql"},{"match":"\\\\b(GRAPHQL|graphql)\\\\b","name":"keyword.control.graphql.surrealql"},{"match":"\\\\b(GROUP|group)\\\\b","name":"keyword.control.group.surrealql"},{"match":"\\\\b(HIGHLIGHTS|highlights)\\\\b","name":"keyword.control.highlights.surrealql"},{"match":"\\\\b(HNSW|hnsw)\\\\b","name":"keyword.control.hnsw.surrealql"},{"match":"\\\\b(IF|if)\\\\b","name":"keyword.control.if.surrealql"},{"match":"\\\\b(IGNORE|ignore)\\\\b","name":"keyword.control.ignore.surrealql"},{"match":"\\\\b(IN|in)\\\\b","name":"keyword.control.in.surrealql"},{"match":"\\\\b(INCLUDE|include)\\\\b","name":"keyword.control.include.surrealql"},{"match":"\\\\b(INDEX|index)\\\\b","name":"keyword.control.index.surrealql"},{"match":"\\\\b(INFO|info)\\\\b","name":"keyword.control.info.surrealql"},{"match":"\\\\b(INSERT|insert)\\\\b","name":"keyword.control.insert.surrealql"},{"match":"\\\\b(INTO|into)\\\\b","name":"keyword.control.into.surrealql"},{"match":"\\\\b(ISSUER|issuer)\\\\b","name":"keyword.control.issuer.surrealql"},{"match":"\\\\b(JWT|jwt)\\\\b","name":"keyword.control.jwt.surrealql"},{"match":"\\\\b(KEEP_PRUNED_CONNECTIONS|keep_pruned_connections)\\\\b","name":"keyword.control.keep_pruned_connections.surrealql"},{"match":"\\\\b(KEY|key)\\\\b","name":"keyword.control.key.surrealql"},{"match":"\\\\b(KILL|kill)\\\\b","name":"keyword.control.kill.surrealql"},{"match":"\\\\b(LET|let)\\\\b","name":"keyword.control.let.surrealql"},{"match":"\\\\b(LIMIT|limit)\\\\b","name":"keyword.control.limit.surrealql"},{"match":"\\\\b(LIVE|live)\\\\b","name":"keyword.control.live.surrealql"},{"match":"\\\\b(LM|lm)\\\\b","name":"keyword.control.lm.surrealql"},{"match":"\\\\b([Mm])\\\\b","name":"keyword.control.m.surrealql"},{"match":"\\\\b([Mm]0)\\\\b","name":"keyword.control.m0.surrealql"},{"match":"\\\\b(MERGE|merge)\\\\b","name":"keyword.control.merge.surrealql"},{"match":"\\\\b(MIDDLEWARE|middleware)\\\\b","name":"keyword.control.middleware.surrealql"},{"match":"\\\\b(MTREE|mtree)\\\\b","name":"keyword.control.mtree.surrealql"},{"match":"\\\\b(MTREE_CACHE|mtree_cache)\\\\b","name":"keyword.control.mtree_cache.surrealql"},{"match":"\\\\b(NAMESPACE|namespace)\\\\b","name":"keyword.control.namespace.surrealql"},{"match":"\\\\b(NOINDEX|noindex)\\\\b","name":"keyword.control.noindex.surrealql"},{"match":"\\\\b(NORMAL|normal)\\\\b","name":"keyword.control.normal.surrealql"},{"match":"\\\\b(NOT|not)\\\\b","name":"keyword.control.not.surrealql"},{"match":"\\\\b(NS|ns)\\\\b","name":"keyword.control.ns.surrealql"},{"match":"\\\\b(NUMERIC|numeric)\\\\b","name":"keyword.control.numeric.surrealql"},{"match":"\\\\b(OMIT|omit)\\\\b","name":"keyword.control.omit.surrealql"},{"match":"\\\\b(ON|on)\\\\b","name":"keyword.control.on.surrealql"},{"match":"\\\\b(ONLY|only)\\\\b","name":"keyword.control.only.surrealql"},{"match":"\\\\b(OPTION|option)\\\\b","name":"keyword.control.option.surrealql"},{"match":"\\\\b(ORDER|order)\\\\b","name":"keyword.control.order.surrealql"},{"match":"\\\\b(OUT|out)\\\\b","name":"keyword.control.out.surrealql"},{"match":"\\\\b(OVERWRITE|overwrite)\\\\b","name":"keyword.control.overwrite.surrealql"},{"match":"\\\\b(PARALLEL|parallel)\\\\b","name":"keyword.control.parallel.surrealql"},{"match":"\\\\b(PARAM|param)\\\\b","name":"keyword.control.param.surrealql"},{"match":"\\\\b(PASSHASH|passhash)\\\\b","name":"keyword.control.passhash.surrealql"},{"match":"\\\\b(PASSWORD|password)\\\\b","name":"keyword.control.password.surrealql"},{"match":"\\\\b(PATCH|patch)\\\\b","name":"keyword.control.patch.surrealql"},{"match":"\\\\b(PERMISSIONS|permissions)\\\\b","name":"keyword.control.permissions.surrealql"},{"match":"\\\\b(POST|post)\\\\b","name":"keyword.control.post.surrealql"},{"match":"\\\\b(POSTINGS_CACHE|postings_cache)\\\\b","name":"keyword.control.postings_cache.surrealql"},{"match":"\\\\b(POSTINGS_ORDER|postings_order)\\\\b","name":"keyword.control.postings_order.surrealql"},{"match":"\\\\b(PUT|put)\\\\b","name":"keyword.control.put.surrealql"},{"match":"\\\\b(READONLY|readonly)\\\\b","name":"keyword.control.readonly.surrealql"},{"match":"\\\\b(REBUILD|rebuild)\\\\b","name":"keyword.control.rebuild.surrealql"},{"match":"\\\\b(RECORD|record)\\\\b","name":"keyword.control.record.surrealql"},{"match":"\\\\b(REFERENCE|reference)\\\\b","name":"keyword.control.reference.surrealql"},{"match":"\\\\b(REJECT|reject)\\\\b","name":"keyword.control.reject.surrealql"},{"match":"\\\\b(RELATE|relate)\\\\b","name":"keyword.control.relate.surrealql"},{"match":"\\\\b(RELATION|relation)\\\\b","name":"keyword.control.relation.surrealql"},{"match":"\\\\b(REMOVE|remove)\\\\b","name":"keyword.control.remove.surrealql"},{"match":"\\\\b(REPLACE|replace)\\\\b","name":"keyword.control.replace.surrealql"},{"match":"\\\\b(RETURN|return)\\\\b","name":"keyword.control.return.surrealql"},{"match":"\\\\b(ROLES|roles)\\\\b","name":"keyword.control.roles.surrealql"},{"match":"\\\\b(ROOT|root)\\\\b","name":"keyword.control.root.surrealql"},{"match":"\\\\b(SC|sc)\\\\b","name":"keyword.control.sc.surrealql"},{"match":"\\\\b(SCHEMAFULL|schemafull)\\\\b","name":"keyword.control.schemafull.surrealql"},{"match":"\\\\b(SCHEMALESS|schemaless)\\\\b","name":"keyword.control.schemaless.surrealql"},{"match":"\\\\b(SCOPE|scope)\\\\b","name":"keyword.control.scope.surrealql"},{"match":"\\\\b(SEARCH|search)\\\\b","name":"keyword.control.search.surrealql"},{"match":"\\\\b(SELECT|select)\\\\b","name":"keyword.control.select.surrealql"},{"match":"\\\\b(SESSION|session)\\\\b","name":"keyword.control.session.surrealql"},{"match":"\\\\b(SET|set)\\\\b","name":"keyword.control.set.surrealql"},{"match":"\\\\b(SHOW|show)\\\\b","name":"keyword.control.show.surrealql"},{"match":"\\\\b(SIGNIN|signin)\\\\b","name":"keyword.control.signin.surrealql"},{"match":"\\\\b(SIGNUP|signup)\\\\b","name":"keyword.control.signup.surrealql"},{"match":"\\\\b(SINCE|since)\\\\b","name":"keyword.control.since.surrealql"},{"match":"\\\\b(SLEEP|sleep)\\\\b","name":"keyword.control.sleep.surrealql"},{"match":"\\\\b(SPLIT|split)\\\\b","name":"keyword.control.split.surrealql"},{"match":"\\\\b(START|start)\\\\b","name":"keyword.control.start.surrealql"},{"match":"\\\\b(STRUCTURE|structure)\\\\b","name":"keyword.control.structure.surrealql"},{"match":"\\\\b(TABLE|table)\\\\b","name":"keyword.control.table.surrealql"},{"match":"\\\\b(TABLES|tables)\\\\b","name":"keyword.control.tables.surrealql"},{"match":"\\\\b(TB|tb)\\\\b","name":"keyword.control.tb.surrealql"},{"match":"\\\\b(TEMPFILES|tempfiles)\\\\b","name":"keyword.control.tempfiles.surrealql"},{"match":"\\\\b(TERMS_CACHE|terms_cache)\\\\b","name":"keyword.control.terms_cache.surrealql"},{"match":"\\\\b(TERMS_ORDER|terms_order)\\\\b","name":"keyword.control.terms_order.surrealql"},{"match":"\\\\b(THEN|then)\\\\b","name":"keyword.control.then.surrealql"},{"match":"\\\\b(THROW|throw)\\\\b","name":"keyword.control.throw.surrealql"},{"match":"\\\\b(TIMEOUT|timeout)\\\\b","name":"keyword.control.timeout.surrealql"},{"match":"\\\\b(TO|to)\\\\b","name":"keyword.control.to.surrealql"},{"match":"\\\\b(TOKEN|token)\\\\b","name":"keyword.control.token.surrealql"},{"match":"\\\\b(TOKENIZERS|tokenizers)\\\\b","name":"keyword.control.tokenizers.surrealql"},{"match":"\\\\b(TRACE|trace)\\\\b","name":"keyword.control.trace.surrealql"},{"match":"\\\\b(TRANSACTION|transaction)\\\\b","name":"keyword.control.transaction.surrealql"},{"match":"\\\\b(TYPE|type)\\\\b","name":"keyword.control.type.surrealql"},{"match":"\\\\b(UNIQUE|unique)\\\\b","name":"keyword.control.unique.surrealql"},{"match":"\\\\b(UNSET|unset)\\\\b","name":"keyword.control.unset.surrealql"},{"match":"\\\\b(UPDATE|update)\\\\b","name":"keyword.control.update.surrealql"},{"match":"\\\\b(UPSERT|upsert)\\\\b","name":"keyword.control.upsert.surrealql"},{"match":"\\\\b(URL|url)\\\\b","name":"keyword.control.url.surrealql"},{"match":"\\\\b(USE|use)\\\\b","name":"keyword.control.use.surrealql"},{"match":"\\\\b(USER|user)\\\\b","name":"keyword.control.user.surrealql"},{"match":"\\\\b(VALUE|value)\\\\b","name":"keyword.control.value.surrealql"},{"match":"\\\\b(VALUES|values)\\\\b","name":"keyword.control.values.surrealql"},{"match":"\\\\b(VERSION|version)\\\\b","name":"keyword.control.version.surrealql"},{"match":"\\\\b(WHEN|when)\\\\b","name":"keyword.control.when.surrealql"},{"match":"\\\\b(WHERE|where)\\\\b","name":"keyword.control.where.surrealql"},{"match":"\\\\b(WITH|with)\\\\b","name":"keyword.control.with.surrealql"}]},"number":{"patterns":[{"match":"\\\\b\\\\d+\\\\.\\\\d+(?:f|dec)?\\\\b","name":"constant.numeric.decimal"},{"match":"\\\\b\\\\d+(?:f|dec)?\\\\b","name":"constant.numeric.int"}]},"object-key":{"patterns":[{"captures":{"1":{"name":"string.quoted.double"}},"match":"(?:^|[,{])[\\\\t ]*(\\"[^\\"():?]+\\")(?=:(?!:))"},{"captures":{"1":{"name":"string.quoted.single"}},"match":"(?:^|[,{])[\\\\t ]*(\'[^\'():?]+\')(?=:(?!:))"},{"captures":{"2":{"name":"meta.object-literal.key"}},"match":"(^|[,{])[\\\\t ]*([0-9A-Z_a-z]+)(?=:(?!:))"}]},"operators":{"patterns":[{"match":"<->|->|<-|<~","name":"keyword.operator.arrow.surrealql"},{"match":"\\\\b(AND|and)\\\\b|&&","name":"keyword.operator.and.surrealql"},{"match":"\\\\b(OR|or)\\\\b|\\\\|\\\\|","name":"keyword.operator.or.surrealql"},{"match":"\\\\b(IS NOT|is not)\\\\b|!=","name":"keyword.operator.is-not.surrealql"},{"match":"\\\\b(IS|is)\\\\b|=","name":"keyword.operator.is.surrealql"},{"match":"\\\\b(CONTAINSALL|containsall)\\\\b|⊇","name":"keyword.operator.containsall.surrealql"},{"match":"\\\\b(CONTAINSANY|containsany)\\\\b|⊃","name":"keyword.operator.containsany.surrealql"},{"match":"\\\\b(CONTAINSNONE|containsnone)\\\\b|⊅","name":"keyword.operator.containsnone.surrealql"},{"match":"\\\\b(CONTAINSSOME|containssome)\\\\b","name":"keyword.operator.containssome.surrealql"},{"match":"\\\\b(CONTAINSNOT|containsnot)\\\\b|∌","name":"keyword.operator.containsnot.surrealql"},{"match":"\\\\b(CONTAINS|contains)\\\\b|∋","name":"keyword.operator.contains.surrealql"},{"match":"\\\\b(ALLINSIDE|allinside)\\\\b|⊆","name":"keyword.operator.allinside.surrealql"},{"match":"\\\\b(ANYINSIDE|anyinside)\\\\b|⊂","name":"keyword.operator.anyinside.surrealql"},{"match":"\\\\b(NONEINSIDE|noneinside)\\\\b|⊄","name":"keyword.operator.noneinside.surrealql"},{"match":"\\\\b(SOMEINSIDE|someinside)\\\\b","name":"keyword.operator.someinside.surrealql"},{"match":"\\\\b(NOTINSIDE|notinside|NOT IN|not in)\\\\b|∉","name":"keyword.operator.notinside.surrealql"},{"match":"\\\\b(INSIDE|inside)\\\\b|∈","name":"keyword.operator.inside.surrealql"},{"match":"\\\\b(OUTSIDE|outside)\\\\b","name":"keyword.operator.outside.surrealql"},{"match":"\\\\b(INTERSECTS|intersects)\\\\b","name":"keyword.operator.intersects.surrealql"},{"match":"==","name":"keyword.operator.equal.surrealql"},{"match":"\\\\*=","name":"keyword.operator.all-equal.surrealql"},{"match":"\\\\?=","name":"keyword.operator.any-equal.surrealql"},{"match":"!~","name":"keyword.operator.fuzzy-inequal.surrealql"},{"match":"\\\\*~","name":"keyword.operator.fuzzy-all-equal.surrealql"},{"match":"\\\\?~","name":"keyword.operator.fuzzy-any-equal.surrealql"},{"match":"~","name":"keyword.operator.fuzzy-equal.surrealql"},{"match":"<=","name":"keyword.operator.less-or-equal.surrealql"},{"match":"<(?!-|[a-z]+[^:])","name":"keyword.operator.less.surrealql"},{"match":">=","name":"keyword.operator.more-or-equal.surrealql"},{"match":"(?<!-)>","name":"keyword.operator.more.surrealql"},{"match":"\\\\+","name":"keyword.operator.add.surrealql"},{"match":"-","name":"keyword.operator.subtract.surrealql"},{"match":"[*×∙]","name":"keyword.operator.multiply.surrealql"},{"match":"[/÷]","name":"keyword.operator.devide.surrealql"},{"captures":{"1":{"name":"constant.numeric.int"}},"match":"@([0-9]+)?@","name":"keyword.operator.matches.surrealql"},{"match":"\\\\?:","name":"keyword.operator.either.surrealql"},{"match":"\\\\?\\\\?","name":"keyword.operator.truthy.surrealql"},{"match":"<\\\\|([,A-Za-z|\\\\d])+\\\\|>","name":"keyword.operator.knn.surrealql"}]},"positional":{"match":"\\\\b(AFTER|after|BEFORE|before)\\\\b","name":"constant.language.positional"},"query":{"patterns":[{"include":"$self"}]},"record":{"patterns":[{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:⟨([^⟩]+)⟩"},{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:`([^`]+)`"},{"begin":"\\\\b(\\\\w+)\\\\b:(?=\\\\b([:\\\\w]+)\\\\b\\\\s*\\\\()","beginCaptures":{"1":{"name":"entity.name.class"},"2":{"name":"support.function"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]}]},{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:\\\\b(\\\\w+)\\\\b"},{"begin":"\\\\b(\\\\w+)\\\\b:\\\\[","captures":{"1":{"name":"entity.name.class"}},"end":"]","patterns":[{"include":"#array-content"}]},{"begin":"\\\\b(\\\\w+)\\\\b:(?=\\\\{)","captures":{"1":{"name":"entity.name.class"}},"end":"}","patterns":[{"include":"#block-content"}]}]},"string":{"patterns":[{"begin":"[a-z]?\\"","end":"(?<!\\\\\\\\)\\"","name":"string.quoted.double"},{"begin":"[a-z]?\'","end":"(?<!\\\\\\\\)\'","name":"string.quoted.single"}]},"subquery":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#query"},{"include":"#value"}]},"type":{"captures":{"0":{"patterns":[{"match":"[<>]","name":"entity.name.type.surrealql"},{"include":"#number"},{"include":"#void-type"}]}},"match":"[a-z]*<[A-Za-z][ ,0-9<>A-Z_a-z|]+[0-9>A-Za-z]+>","name":"test"},"value":{"patterns":[{"include":"#comment"},{"include":"#js-function"},{"include":"#function"},{"include":"#block"},{"include":"#array"},{"include":"#var-name"},{"include":"#boolean"},{"include":"#string"},{"include":"#ident"},{"include":"#void-type"},{"include":"#positional"},{"include":"#number"},{"include":"#duration"},{"include":"#record"},{"include":"#subquery"},{"include":"#type"}]},"var-name":{"patterns":[{"match":"\\\\$\\\\w+","name":"variable.name"},{"match":"\\\\$`\\\\w+`","name":"variable.name"},{"match":"\\\\$⟨\\\\w+⟩","name":"variable.name"}]},"void-type":{"match":"\\\\b(null|NULL|none|NONE)\\\\b","name":"constant.language.void"}},"scopeName":"source.surrealql","embeddedLangs":["javascript"],"aliases":["surql"]}')),o=[...e,r];export{o as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{s as gi,g as xi,t as Xt,q as di,a as fi,b as pi,_ as a,l as Nt,K as mi,e as yi,z as bi,H as St,i as Ai,F as Yt,G as wi,a1 as Ci,aF as Si,a9 as Wt}from"./Z4qYLg5o.js";import{i as _i}from"./Gi6I4Gst.js";import{o as ki}from"./CmKTTxBW.js";import{l as zt}from"./pwnRazgM.js";function Ri(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function yt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,g,m=!1,p=0,k=0,v=.5;delete e.unknown;function C(){var b=t().length,E=n<s,D=E?n:s,P=E?s:n;o=(P-D)/Math.max(1,b-p+k*2),m&&(o=Math.floor(o)),D+=(P-D-o*(b-p))*v,g=o*(1-p),m&&(D=Math.round(D),g=Math.round(g));var I=Ri(b).map(function(y){return D+o*y});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),C()):t()},e.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,m=!0,C()},e.bandwidth=function(){return g},e.step=function(){return o},e.round=function(b){return arguments.length?(m=!!b,C()):m},e.padding=function(b){return arguments.length?(p=Math.min(1,k=+b),C()):p},e.paddingInner=function(b){return arguments.length?(p=Math.min(1,b),C()):p},e.paddingOuter=function(b){return arguments.length?(k=+b,C()):k},e.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),C()):v},e.copy=function(){return yt(t(),[s,n]).round(m).paddingInner(p).paddingOuter(k).align(v)},_i.apply(C(),arguments)}var bt=(function(){var e=a(function(F,h,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],p=[1,25],k=[1,26],v=[1,28],C=[1,29],b=[1,30],E=[1,31],D=[1,32],P=[1,33],I=[1,34],y=[1,35],_=[1,36],c=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],l=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],R=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(h,u,x,d,w,r,at){var f=r.length-1;switch(w){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,34]),e(m,[2,35]),e(m,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:g}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:g}),{11:23,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:45,15:44,27:U,33:46,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:49,17:48,24:X,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:52,17:51,24:X,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{20:[1,53]},{22:[1,54]},e(l,[2,18]),{1:[2,2]},e(l,[2,8]),e(l,[2,9]),e(L,[2,37],{40:55,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c}),e(L,[2,38]),e(L,[2,39]),e(S,[2,40]),e(S,[2,42]),e(S,[2,43]),e(S,[2,44]),e(S,[2,45]),e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(l,[2,10]),e(l,[2,22],{30:41,29:56,24:W,27:z}),e(l,[2,24]),e(l,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,11]),e(l,[2,30],{33:60,27:U}),e(l,[2,32]),{31:[1,61]},e(l,[2,12]),{17:62,24:X},{25:63,27:R},e(l,[2,14]),{17:65,24:X},e(l,[2,16]),e(l,[2,17]),e(S,[2,41]),e(l,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(l,[2,31]),{27:[1,69]},e(l,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(l,[2,15]),e(l,[2,26]),e(l,[2,27]),{11:59,32:72,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,33]),e(l,[2,19]),{25:73,27:R},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(h,u){if(u.recoverable)this.trace(h);else{var x=new Error(h);throw x.hash=u,x}},"parseError"),parse:a(function(h){var u=this,x=[0],d=[],w=[null],r=[],at=this.table,f="",lt=0,It=0,hi=2,Mt=1,li=r.slice.call(arguments,1),T=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);T.setInput(h,Y.yy),Y.yy.lexer=T,Y.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var ft=T.yylloc;r.push(ft);var ci=T.options&&T.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(V){x.length=x.length-2*V,w.length=w.length-V,r.length=r.length-V}a(ui,"popStack");function Vt(){var V;return V=d.pop()||T.lex()||Mt,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=u.symbols_[V]||V),V}a(Vt,"lex");for(var M,H,B,pt,q={},ct,O,Bt,ut;;){if(H=x[x.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=Vt()),B=at[H]&&at[H][M]),typeof B>"u"||!B.length||!B[0]){var mt="";ut=[];for(ct in at[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");T.showPosition?mt="Parse error on line "+(lt+1)+`:
|
|
2
|
+
`+T.showPosition()+`
|
|
3
|
+
Expecting `+ut.join(", ")+", got '"+(this.terminals_[M]||M)+"'":mt="Parse error on line "+(lt+1)+": Unexpected "+(M==Mt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(mt,{text:T.match,token:this.terminals_[M]||M,line:T.yylineno,loc:ft,expected:ut})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+M);switch(B[0]){case 1:x.push(M),w.push(T.yytext),r.push(T.yylloc),x.push(B[1]),M=null,It=T.yyleng,f=T.yytext,lt=T.yylineno,ft=T.yylloc;break;case 2:if(O=this.productions_[B[1]][1],q.$=w[w.length-O],q._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},ci&&(q._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),pt=this.performAction.apply(q,[f,It,lt,Y.yy,B[1],w,r].concat(li)),typeof pt<"u")return pt;O&&(x=x.slice(0,-1*O*2),w=w.slice(0,-1*O),r=r.slice(0,-1*O)),x.push(this.productions_[B[1]][0]),w.push(q.$),r.push(q._$),Bt=at[x[x.length-2]][x[x.length-1]],x.push(Bt);break;case 3:return!0}}return!0},"parse")},Et=(function(){var F={EOF:1,parseError:a(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),setInput:a(function(h,u){return this.yy=u||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var u=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
5
|
+
`+u+"^"},"showPosition"),test_match:a(function(h,u){var x,d,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),d=h[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],x=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var r in w)this[r]=w[r];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,u,x,d;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),r=0;r<w.length;r++)if(x=this._input.match(this.rules[w[r]]),x&&(!u||x[0].length>u[0].length)){if(u=x,d=r,this.options.backtrack_lexer){if(h=this.test_match(x,w[r]),h!==!1)return h;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(h=this.test_match(u,w[d]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var u=this.next();return u||this.lex()},"lex"),begin:a(function(u){this.conditionStack.push(u)},"begin"),popState:a(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:a(function(u){this.begin(u)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(u,x,d,w){switch(d){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return F})();$.lexer=Et;function N(){this.yy={}}return a(N,"Parser"),N.prototype=$,$.Parser=N,new N})();bt.parser=bt;var Ti=bt;function At(e){return e.type==="bar"}a(At,"isBarPlot");function _t(e){return e.type==="band"}a(_t,"isBandAxisData");function G(e){return e.type==="linear"}a(G,"isLinearAxisData");var j,Ht=(j=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,g)=>Math.max(g.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const g=Si(n,1,o),m=g?g.width:o.length*i,p=g?g.height:i;s.width=Math.max(s.width,m),s.height=Math.max(s.height,p)}return n.remove(),s}},a(j,"TextDimensionCalculatorWithFont"),j),Ft=.7,Ot=.2,Q,Ut=(Q=class{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Ft*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Ft*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ot*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ot*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},a(Q,"BaseAxis"),Q),K,Di=(K=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Nt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},a(K,"BandAxis"),K),Z,vi=(Z=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},a(Z,"LinearAxis"),Z);function wt(e,t,i,s){const n=new Ht(s);return _t(e)?new Di(t,i,e.categories,e.title,n):new vi(t,i,[e.min,e.max],e.title,n)}a(wt,"getAxis");var J,Pi=(J=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},a(J,"ChartTitle"),J);function $t(e,t,i,s){const n=new Ht(s);return new Pi(n,e,t,i)}a($t,"getChartTitleComponent");var tt,Li=(tt=class{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=Wt().y(s=>s[0]).x(s=>s[1])(t):i=Wt().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},a(tt,"LinePlot"),tt),it,Ei=(it=class{constructor(t,i,s,n,o,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=g}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},a(it,"BarPlot"),it),et,Ii=(et=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Li(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}},a(et,"BasePlot"),et);function qt(e,t,i){return new Ii(e,t,i)}a(qt,"getPlotComponent");var st,Mi=(st=class{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:$t(t,i,s,n),plot:qt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),m=this.componentStore.plot.calculateSpace({width:o,height:g});t-=m.width,i-=m.height,m=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=m.height,i-=m.height,this.componentStore.xAxis.setAxisPosition("bottom"),m=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=m.height,this.componentStore.yAxis.setAxisPosition("left"),m=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=m.width,t-=m.width,t>0&&(o+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+g}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),m=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:m});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,n=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,o=s+p.height,t>0&&(g+=t,t=0),i>0&&(m+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:m}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+m]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(k=>At(k))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},a(st,"Orchestrator"),st),nt,Vi=(nt=class{static build(t,i,s,n){return new Mi(t,i,s,n).getDrawableElement()}},a(nt,"XYChartBuilder"),nt),rt=0,Gt,ot=Tt(),ht=Rt(),A=Dt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function Rt(){const e=Ci(),t=St();return Yt(e.xyChart,t.themeVariables.xyChart)}a(Rt,"getChartDefaultThemeConfig");function Tt(){const e=St();return Yt(wi.xyChart,e.xyChart)}a(Tt,"getChartDefaultConfig");function Dt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Dt,"getChartDefaultData");function xt(e){const t=St();return Ai(e.trim(),t)}a(xt,"textSanitizer");function jt(e){Gt=e}a(jt,"setTmpSVGG");function Qt(e){e==="horizontal"?ot.chartOrientation="horizontal":ot.chartOrientation="vertical"}a(Qt,"setOrientation");function Kt(e){A.xAxis.title=xt(e.text)}a(Kt,"setXAxisTitle");function vt(e,t){A.xAxis={type:"linear",title:A.xAxis.title,min:e,max:t},gt=!0}a(vt,"setXAxisRangeData");function Zt(e){A.xAxis={type:"band",title:A.xAxis.title,categories:e.map(t=>xt(t.text))},gt=!0}a(Zt,"setXAxisBand");function Jt(e){A.yAxis.title=xt(e.text)}a(Jt,"setYAxisTitle");function ti(e,t){A.yAxis={type:"linear",title:A.yAxis.title,min:e,max:t},kt=!0}a(ti,"setYAxisRangeData");function ii(e){const t=Math.min(...e),i=Math.max(...e),s=G(A.yAxis)?A.yAxis.min:1/0,n=G(A.yAxis)?A.yAxis.max:-1/0;A.yAxis={type:"linear",title:A.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}a(ii,"setYAxisRangeFromPlotData");function Pt(e){let t=[];if(e.length===0)return t;if(!gt){const i=G(A.xAxis)?A.xAxis.min:1/0,s=G(A.xAxis)?A.xAxis.max:-1/0;vt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),_t(A.xAxis)&&(t=A.xAxis.categories.map((i,s)=>[i,e[s]])),G(A.xAxis)){const i=A.xAxis.min,s=A.xAxis.max,n=(s-i)/(e.length-1),o=[];for(let g=i;g<=s;g+=n)o.push(`${g}`);t=o.map((g,m)=>[g,e[m]])}return t}a(Pt,"transformDataWithoutCategory");function Lt(e){return Ct[e===0?0:e%Ct.length]}a(Lt,"getPlotColorFromPalette");function ei(e,t){const i=Pt(t);A.plots.push({type:"line",strokeFill:Lt(rt),strokeWidth:2,data:i}),rt++}a(ei,"setLineData");function si(e,t){const i=Pt(t);A.plots.push({type:"bar",fill:Lt(rt),data:i}),rt++}a(si,"setBarData");function ni(){if(A.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return A.title=Xt(),Vi.build(ot,A,ht,Gt)}a(ni,"getDrawableElem");function ai(){return ht}a(ai,"getChartThemeConfig");function ri(){return ot}a(ri,"getChartConfig");function oi(){return A}a(oi,"getXYChartData");var Bi=a(function(){bi(),rt=0,ot=Tt(),A=Dt(),ht=Rt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),Wi={getDrawableElem:ni,clear:Bi,setAccTitle:pi,getAccTitle:fi,setDiagramTitle:di,getDiagramTitle:Xt,getAccDescription:xi,setAccDescription:gi,setOrientation:Qt,setXAxisTitle:Kt,setXAxisRangeData:vt,setXAxisBand:Zt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:jt,getChartThemeConfig:ai,getChartConfig:ri,getXYChartData:oi},zi=a((e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),g=n.getChartConfig(),m=n.getXYChartData().plots[0].data.map(y=>y[1]);function p(y){return y==="top"?"text-before-edge":"middle"}a(p,"getDominantBaseLine");function k(y){return y==="left"?"start":y==="right"?"end":"middle"}a(k,"getTextAnchor");function v(y){return`translate(${y.x}, ${y.y}) rotate(${y.rotation||0})`}a(v,"getTextTransformation"),Nt.debug(`Rendering xychart chart
|
|
7
|
+
`+e);const C=mi(t),b=C.append("g").attr("class","main"),E=b.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");yi(C,g.height,g.width,!0),C.attr("viewBox",`0 0 ${g.width} ${g.height}`),E.attr("fill",o.backgroundColor),n.setTmpSVGG(C.append("g").attr("class","mermaid-tmp-group"));const D=n.getDrawableElem(),P={};function I(y){let _=b,c="";for(const[W]of y.entries()){let z=b;W>0&&P[c]&&(z=P[c]),c+=y[W],_=P[c],_||(_=P[c]=z.append("g").attr("class",y[W]))}return _}a(I,"getGroup");for(const y of D){if(y.data.length===0)continue;const _=I(y.groupTexts);switch(y.type){case"rect":if(_.selectAll("rect").data(y.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),g.showDataLabel)if(g.chartOrientation==="horizontal"){let c=function(l,L){const{data:S,label:R}=l;return L*R.length*W<=S.width-10};a(c,"fitsHorizontally");const W=.7,z=y.data.map((l,L)=>({data:l,label:m[L].toString()})).filter(l=>l.data.width>0&&l.data.height>0),U=z.map(l=>{const{data:L}=l;let S=L.height*.7;for(;!c(l,S)&&S>0;)S-=1;return S}),X=Math.floor(Math.min(...U));_.selectAll("text").data(z).enter().append("text").attr("x",l=>l.data.x+l.data.width-10).attr("y",l=>l.data.y+l.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${X}px`).text(l=>l.label)}else{let c=function(l,L,S){const{data:R,label:$}=l,N=L*$.length*.7,F=R.x+R.width/2,h=F-N/2,u=F+N/2,x=h>=R.x&&u<=R.x+R.width,d=R.y+S+L<=R.y+R.height;return x&&d};a(c,"fitsInBar");const W=10,z=y.data.map((l,L)=>({data:l,label:m[L].toString()})).filter(l=>l.data.width>0&&l.data.height>0),U=z.map(l=>{const{data:L,label:S}=l;let R=L.width/(S.length*.7);for(;!c(l,R,W)&&R>0;)R-=1;return R}),X=Math.floor(Math.min(...U));_.selectAll("text").data(z).enter().append("text").attr("x",l=>l.data.x+l.data.width/2).attr("y",l=>l.data.y+W).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${X}px`).text(l=>l.label)}break;case"text":_.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>p(c.verticalPos)).attr("text-anchor",c=>k(c.horizontalPos)).attr("transform",c=>v(c)).text(c=>c.text);break;case"path":_.selectAll("path").data(y.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Fi={draw:zi},Hi={parser:Ti,db:Wi,renderer:Fi};export{Hi as diagram};
|