@pi-chamber/web 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assets/{DiagramEditor-TeJ1G_NN.js → DiagramEditor-YPSKccgo.js} +1 -1
- package/dist/assets/DiagramView-C-PbBHce.js +1 -0
- package/dist/assets/DiffView-DfltyfN2.js +18 -0
- package/dist/assets/FilesView-BEjbLiK2.js +6 -0
- package/dist/assets/GitView-B_zTaXX4.js +8 -0
- package/dist/assets/JsonTreeView-9p4txyB_.js +1 -0
- package/dist/assets/MarkdownRendererImpl-CbRPLK2x.js +12 -0
- package/dist/assets/PatchDiff-rKjeUBRl.js +1 -0
- package/dist/assets/SessionSwitcherContent-C_VxKFJy.js +1 -0
- package/dist/assets/SessionSwitcherDropdown-_k4P32o9.js +2 -0
- package/dist/assets/SessionUnreadDot-bT_0MixU.js +1 -0
- package/dist/assets/SettingsView-CqZ1ZAWG.js +2 -0
- package/dist/assets/SettingsWindow-C7vVE35-.js +1 -0
- package/dist/assets/ToolOutputDialog-GBbzATa6.js +8 -0
- package/dist/assets/ToolPartDiffPreview-Bdb9p5uS.js +1 -0
- package/dist/assets/{VirtualizedFileDiff-sRc4lN0B.js → VirtualizedFileDiff-CA8hQyz9.js} +4 -4
- package/dist/assets/{Virtualizer-BxW2CJGB.js → Virtualizer-BSHVMKgK.js} +1 -1
- package/dist/assets/{appThemeRegistry-BK0dHKa6.js → appThemeRegistry-gegrE2dq.js} +1 -1
- package/dist/assets/collapsible-uwSKBy-K.js +1 -0
- package/dist/assets/computeVirtualFileMetrics-9LNCLvAG.js +3 -0
- package/dist/assets/contextFileOpenGuard-CZSqdEHk.js +1 -0
- package/dist/assets/gitStatusPredicates-CRmbLl-x.js +134 -0
- package/dist/assets/index-BeJEipxi.js +1 -0
- package/dist/assets/index-CaP8oFLB.js +8 -0
- package/dist/assets/index-Dq8CnRYM.css +1 -0
- package/dist/assets/isDiffPlainText-YYyZNTdb.js +1 -0
- package/dist/assets/isFilePlainText-C70Z71bG.js +1 -0
- package/dist/assets/main-CsdVAKy_.js +135 -0
- package/dist/assets/main-GMQIZjuQ.js +2 -0
- package/dist/assets/{markdownCore-BfuFM7mg.js → markdownCore-BgVcDt0q.js} +2 -2
- package/dist/assets/miniChat-W6YsdiWR.js +2 -0
- package/dist/assets/mobile-BFR9CR5w.js +2 -0
- package/dist/assets/{permissionStore-BRcQ9Jgt.js → permissionStore-iKN1K2_x.js} +1 -1
- package/dist/assets/registerCustomTheme-DmolaWWZ.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-B8ZiW-3E.js +2 -0
- package/dist/assets/renderMobileApp-C5CdsYP6.js +11 -0
- package/dist/assets/runtimeEndpointReset-D3AZYuoF.js +54 -0
- package/dist/assets/{runtimeSurface-DF3VwUlO.js → runtimeSurface-B818u-_c.js} +1 -1
- package/dist/assets/themeResolver-yJ9XpNMI.js +1 -0
- package/dist/assets/{WindowsWindowControls-CCnU0ckO.js → useAppFontEffects-CYzYRbLp.js} +126 -499
- package/dist/assets/useFilesViewSearch-C--GWtn-.js +7 -0
- package/dist/assets/usePushVisibilityBeacon-D9lajdAc.js +10 -0
- package/dist/assets/useSwitcherItems-DOoi3x_8.js +1 -0
- package/dist/assets/vendor-base-ui-vkqQ2P9o.js +1 -0
- package/dist/assets/{vendor-beautiful-mermaid-r4GK_usS.js → vendor-beautiful-mermaid-DneUawHp.js} +1 -1
- package/dist/assets/{vendor-cmdk-BCEUzcHE.js → vendor-cmdk-zXx6sGnS.js} +1 -1
- package/dist/assets/{vendor-codemirror-autocomplete-BS2SpSAZ.js → vendor-codemirror-autocomplete-wd6iRebq.js} +1 -1
- package/dist/assets/{vendor-codemirror-commands-RrgJ8H_6.js → vendor-codemirror-commands-DYppkHEk.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-angular-ADhO_TUK.js → vendor-codemirror-lang-angular-DU_4KiiW.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-cpp-BGCWj7Om.js → vendor-codemirror-lang-cpp-CmIT9Z5_.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-css-Ba8JZ6fp.js → vendor-codemirror-lang-css-djiuoTi8.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-go-DyTiHXo4.js → vendor-codemirror-lang-go-COZSwZYW.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-html-DK27qQri.js → vendor-codemirror-lang-html-CKHqhW5R.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-java-CvFfnhPQ.js → vendor-codemirror-lang-java-CNMP5hyC.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-javascript-BUlYhQ3o.js → vendor-codemirror-lang-javascript-DuOEwJ3f.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-jinja-wBMtAEvT.js → vendor-codemirror-lang-jinja-DaKn_b1k.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-json-CqayksDf.js → vendor-codemirror-lang-json-CZ07HmNC.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-less-Ct3-H1PB.js → vendor-codemirror-lang-less-wJdQiDBf.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-liquid-XspREksq.js → vendor-codemirror-lang-liquid-0z48Roi8.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-markdown-CvO36Y1p.js → vendor-codemirror-lang-markdown-DtcZDGqe.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-php-BlUF9cCe.js → vendor-codemirror-lang-php-W8plS-JQ.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-python-_2bIYTiJ.js → vendor-codemirror-lang-python-DzzokVau.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-rust-BdTYih_U.js → vendor-codemirror-lang-rust-C4ulBVpf.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-sass-E6MhfOFk.js → vendor-codemirror-lang-sass-BkZJYEwS.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-sql-B1BRhQSF.js → vendor-codemirror-lang-sql-HpQWHJjv.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-vue-BYQJRa1Q.js → vendor-codemirror-lang-vue-DiBPljCc.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-wast-D706yuyC.js → vendor-codemirror-lang-wast-DoABsogh.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-xml--MfWU6Dj.js → vendor-codemirror-lang-xml-BhLJhOCH.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-yaml-CRUFIbRX.js → vendor-codemirror-lang-yaml-D95i1Y5R.js} +1 -1
- package/dist/assets/{vendor-codemirror-language-E2vgV9K3.js → vendor-codemirror-language-BByA_dGF.js} +2 -2
- package/dist/assets/{vendor-codemirror-language-data-C7_BPMCr.js → vendor-codemirror-language-data-DS_4W5G4.js} +2 -2
- package/dist/assets/{vendor-codemirror-search-8kyQdB3f.js → vendor-codemirror-search-BV44140v.js} +1 -1
- package/dist/assets/{vendor-codemirror-view-DSzLbZiS.js → vendor-codemirror-view-Ct4T37Ue.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-accessibility-Cv52zwWT.js → vendor-dnd-kit-accessibility-DZKKhs9S.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-core-GipZW2tY.js → vendor-dnd-kit-core-CP8ck10N.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-sortable-Ct2QxIHb.js → vendor-dnd-kit-sortable-B-Icjoj4.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-utilities-CrOcp0Bp.js → vendor-dnd-kit-utilities-DTY1C6ST.js} +1 -1
- package/dist/assets/{vendor-elkjs-CRCLNXjf.js → vendor-elkjs-mzfkf0ML.js} +1 -1
- package/dist/assets/{vendor-floating-ui-dom-Bkw82kL9.js → vendor-floating-ui-dom-WyXykhNi.js} +1 -1
- package/dist/assets/{vendor-floating-ui-react-dom-sVFnuruh.js → vendor-floating-ui-react-dom-BZOGXAGe.js} +1 -1
- package/dist/assets/{vendor-framer-motion-DJASDzNt.js → vendor-framer-motion-BUygY0oN.js} +1 -1
- package/dist/assets/{vendor-heic2any-L8hyfc24.js → vendor-heic2any-BHsbokcA.js} +1 -1
- package/dist/assets/{vendor-lru_map-B-cPXHXW.js → vendor-lru_map-Cy8fTs3_.js} +1 -1
- package/dist/assets/{vendor-pierre-theming-C6Z4M5_u.js → vendor-pierre-theming-Dgp7B_O4.js} +1 -1
- package/dist/assets/{vendor-qrcode-COsmt6jn.js → vendor-qrcode-B0KNSajT.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-compose-refs-D1GnwnP9.js → vendor-radix-ui-react-compose-refs-8xy6TJML.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-context-CM4yFQ2I.js → vendor-radix-ui-react-context-CFsX-AUC.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-dialog-jX3Dld8c.js → vendor-radix-ui-react-dialog-D2yhEu2p.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-dismissable-layer-M7LsH3yL.js → vendor-radix-ui-react-dismissable-layer-DrorBNg9.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-focus-guards-D5MZ0nQs.js → vendor-radix-ui-react-focus-guards-BfdFmL7c.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-focus-scope-C2K7lNPv.js → vendor-radix-ui-react-focus-scope-D2BkImwt.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-id-BcxRjnbX.js → vendor-radix-ui-react-id-D2kS9K1j.js} +1 -1
- package/dist/assets/vendor-radix-ui-react-portal-YgCRIyi7.js +1 -0
- package/dist/assets/{vendor-radix-ui-react-presence-Btn-Dp7L.js → vendor-radix-ui-react-presence-D432pCMB.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-primitive-CfpW6_IT.js → vendor-radix-ui-react-primitive-DkH8dMOR.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-slot-BxUc3Pvz.js → vendor-radix-ui-react-slot-BIDFZX0-.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-use-callback-ref-UKEWHtoP.js → vendor-radix-ui-react-use-callback-ref-BwDcSoGV.js} +1 -1
- package/dist/assets/{vendor-radix-ui-react-use-controllable-state-C_ecoh35.js → vendor-radix-ui-react-use-controllable-state-LiqmKSXO.js} +1 -1
- package/dist/assets/vendor-radix-ui-react-use-effect-event-D94va83M.js +1 -0
- package/dist/assets/{vendor-radix-ui-react-use-escape-keydown-Co13lHGj.js → vendor-radix-ui-react-use-escape-keydown-DTkqjenV.js} +1 -1
- package/dist/assets/vendor-radix-ui-react-use-layout-effect-C8Yrsaph.js +1 -0
- package/dist/assets/{vendor-react-DYyjh7Q0.js → vendor-react-B5Z1Mdn3.js} +1 -1
- package/dist/assets/{vendor-react-drawio-Boqanm0j.js → vendor-react-drawio-BYDptOsj.js} +1 -1
- package/dist/assets/{vendor-react-remove-scroll-bar-C9YRs2nU.js → vendor-react-remove-scroll-bar-CSAHp1YF.js} +1 -1
- package/dist/assets/{vendor-react-remove-scroll-CfeMe0DL.js → vendor-react-remove-scroll-vR1dy1aP.js} +1 -1
- package/dist/assets/{vendor-react-style-singleton-B1H4bWSG.js → vendor-react-style-singleton-Ctw6HnYx.js} +1 -1
- package/dist/assets/{vendor-replit-codemirror-vim-BJY5fGLS.js → vendor-replit-codemirror-vim-CGHHNQxC.js} +1 -1
- package/dist/assets/{vendor-sonner-CW8w438f.js → vendor-sonner-BDtm25td.js} +1 -1
- package/dist/assets/{vendor-tanstack-react-virtual-IrbCBGJ4.js → vendor-tanstack-react-virtual-2skouoFw.js} +1 -1
- package/dist/assets/{vendor-use-callback-ref-CJB0R85I.js → vendor-use-callback-ref-CVVuCyLj.js} +1 -1
- package/dist/assets/{vendor-use-sidecar-C-AuTczP.js → vendor-use-sidecar-Vv4V8Nd1.js} +1 -1
- package/dist/assets/{vendor-use-sync-external-store-B7OScDIw.js → vendor-use-sync-external-store-D0AXkdQC.js} +1 -1
- package/dist/assets/{vendor-zustand-CnsBKjP5.js → vendor-zustand-GVb4H8HE.js} +1 -1
- package/dist/assets/{web-components-BYNCGylQ.js → web-components-C2cMNPqE.js} +2 -2
- package/dist/index.html +6 -6
- package/dist/mini-chat.html +5 -5
- package/dist/mobile.html +5 -5
- package/package.json +1 -1
- package/server/lib/git/DOCUMENTATION.md +3 -2
- package/server/lib/git/routes.js +27 -0
- package/server/lib/git/routes.test.js +41 -0
- package/server/lib/git/service.js +7 -1
- package/server/lib/git/service.test.js +23 -0
- package/server/lib/pi/routes.js +263 -6
- package/server/lib/pi/routes.test.js +314 -1
- package/server/lib/pi/session-daemon/DOCUMENTATION.md +2 -2
- package/server/lib/pi/session-daemon/prompt-operations.test.js +318 -0
- package/server/lib/pi/session-daemon/session-daemon.js +309 -25
- package/server/lib/pi/session-daemon/session-daemon.test.js +137 -0
- package/server/lib/pi/session-daemon/supervisor.test.js +1 -1
- package/server/lib/pi/snippets-store.js +400 -0
- package/server/lib/pi/snippets-store.test.js +252 -0
- package/server/lib/relay/host-client.test.js +79 -15
- package/server/lib/server/cors.js +2 -0
- package/server/lib/server/cors.test.js +6 -5
- package/dist/assets/CommitSection-DfAlM30E.js +0 -1
- package/dist/assets/DiagramView-DKLIwNth.js +0 -1
- package/dist/assets/DiffView-CZyqSs5W.js +0 -18
- package/dist/assets/FilesView-rftA7fEL.js +0 -14
- package/dist/assets/GitView-D5LMTT2M.js +0 -6
- package/dist/assets/JsonTreeView-DMI3-Smy.js +0 -1
- package/dist/assets/MarkdownRendererImpl-gdd-5n9J.js +0 -12
- package/dist/assets/PatchDiff-GNB1NlAN.js +0 -1
- package/dist/assets/PierreDiffViewer-DmJv2AoJ.js +0 -136
- package/dist/assets/SessionSwitcherContent-CWdDPll7.js +0 -1
- package/dist/assets/SessionSwitcherDropdown-Cx-Jfmvo.js +0 -2
- package/dist/assets/SessionUnreadDot-CKe4uVcf.js +0 -1
- package/dist/assets/SettingsView-DaxkNy5C.js +0 -4
- package/dist/assets/SettingsWindow-D1M_rRDo.js +0 -1
- package/dist/assets/ToolOutputDialog-CUKcp77A.js +0 -15
- package/dist/assets/ToolPartDiffPreview-CkzwXAC5.js +0 -8
- package/dist/assets/collapsible-B0cIItyf.js +0 -1
- package/dist/assets/computeVirtualFileMetrics-B1uVA58l.js +0 -3
- package/dist/assets/contextFileOpenGuard-BuedQ5EQ.js +0 -1
- package/dist/assets/index-BA67uOfZ.js +0 -1
- package/dist/assets/index-CcbDTf8Q.js +0 -8
- package/dist/assets/index-Cl3XbCeC.css +0 -1
- package/dist/assets/isDiffPlainText-DLDFLL6P.js +0 -1
- package/dist/assets/isFilePlainText-B2wwrpRU.js +0 -1
- package/dist/assets/main-B5k0qpHJ.js +0 -133
- package/dist/assets/main-Bepu8Jr9.js +0 -2
- package/dist/assets/miniChat-Co0Snpgl.js +0 -2
- package/dist/assets/mobile-CSvL_Zyu.js +0 -2
- package/dist/assets/registerCustomTheme-BBXUCRnG.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-DrMJ1RXX.js +0 -2
- package/dist/assets/renderMobileApp-B2toAnMW.js +0 -14
- package/dist/assets/themeResolver-BmJyTmjJ.js +0 -1
- package/dist/assets/useInlineCommentController-CxMP78jg.js +0 -2
- package/dist/assets/usePanelSlide-DUuoQt5X.js +0 -56
- package/dist/assets/usePushVisibilityBeacon-CSPdFBaA.js +0 -10
- package/dist/assets/useSwitcherItems-zOeC2Cta.js +0 -1
- package/dist/assets/vendor-base-ui-DL8r2fgQ.js +0 -1
- package/dist/assets/vendor-radix-ui-react-portal-xlJWBfDg.js +0 -1
- package/dist/assets/vendor-radix-ui-react-use-effect-event-DkJl_Rn_.js +0 -1
- package/dist/assets/vendor-radix-ui-react-use-layout-effect-0fyGwS2_.js +0 -1
- package/dist/assets/vendor-remixicon-react-CzPq62YO.js +0 -1
- /package/dist/assets/{usePanelSlide-BV3KOtdA.css → runtimeEndpointReset-BV3KOtdA.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s,L as m}from"./vendor-codemirror-language-
|
|
1
|
+
import{b as s,L as m}from"./vendor-codemirror-language-BByA_dGF.js";import{html as u}from"./vendor-codemirror-lang-html-CKHqhW5R.js";import{javascriptLanguage as l}from"./vendor-codemirror-lang-javascript-DuOEwJ3f.js";import{s as b,a as e}from"./vendor-lezer-highlight-CDMHUZ74.js";import{p as n}from"./vendor-lezer-common-B3-cUCR_.js";import{L as S,a as r}from"./vendor-lezer-lr-bhwg1HMg.js";import"./vendor-codemirror-state-CNWM3Q8V.js";import"./vendor-marijn-find-cluster-break-DXwl3gUT.js";import"./vendor-codemirror-view-Ct4T37Ue.js";import"./vendor-style-mod-NZ5MEPvj.js";import"./vendor-w3c-keyname-Vcq4gwWv.js";import"./vendor-crelt-C8TCjufn.js";import"./vendor-lezer-html-C0I1p52t.js";import"./vendor-codemirror-lang-css-djiuoTi8.js";import"./vendor-lezer-css-C5xB6jxd.js";import"./vendor-lezer-javascript-D7Tj24ot.js";import"./vendor-codemirror-autocomplete-wd6iRebq.js";const c=S.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=l.parser.configure({top:"SingleExpression"}),o=c.configure({props:[b({Text:e.content,Is:e.definitionOperator,AttributeName:e.attributeName,VueAttributeName:e.keyword,Identifier:e.variableName,"AttributeValue ScriptAttributeValue":e.attributeValue,Entity:e.character,"{{ }}":e.brace,"@ :":e.punctuation})]}),i={parser:P},Q=o.configure({wrap:n((O,t)=>O.name=="InterpolationContent"?i:null)}),g=o.configure({wrap:n((O,t)=>O.name=="AttributeScript"?i:null),top:"Attribute"}),y={parser:Q},R={parser:g},a=u();function p(O){return O.configure({dialect:"selfClosing",wrap:n(X)},"vue")}const T=p(a.language);function X(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?R:null;case"Text":return y}return null}function N(O={}){let t=a;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof s))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new m(t.language==a.language?T:p(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{N as vue,T as vueLanguage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as r,b as O,c as t,e as b,g as s,h as a}from"./vendor-codemirror-language-
|
|
1
|
+
import{L as r,b as O,c as t,e as b,g as s,h as a}from"./vendor-codemirror-language-BByA_dGF.js";import{s as P,a as e}from"./vendor-lezer-highlight-CDMHUZ74.js";import{L as i}from"./vendor-lezer-lr-bhwg1HMg.js";import"./vendor-lezer-common-B3-cUCR_.js";import"./vendor-codemirror-state-CNWM3Q8V.js";import"./vendor-marijn-find-cluster-break-DXwl3gUT.js";import"./vendor-codemirror-view-Ct4T37Ue.js";import"./vendor-style-mod-NZ5MEPvj.js";import"./vendor-w3c-keyname-Vcq4gwWv.js";import"./vendor-crelt-C8TCjufn.js";const n={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},S=i.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>n[o]||-1}],tokenPrec:0}),p=O.define({name:"wast",parser:S.configure({props:[t.add({App:b({closing:")",align:!1})}),s.add({App:a,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),P({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function h(){return new r(p)}export{h as wast,p as wastLanguage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as I}from"./vendor-lezer-xml-hUDuAyS5.js";import{s as $,L as F,b as L,c as _,g as k,k as w}from"./vendor-codemirror-language-
|
|
1
|
+
import{p as I}from"./vendor-lezer-xml-hUDuAyS5.js";import{s as $,L as F,b as L,c as _,g as k,k as w}from"./vendor-codemirror-language-BByA_dGF.js";import{a as x}from"./vendor-codemirror-state-CNWM3Q8V.js";import{E as M}from"./vendor-codemirror-view-Ct4T37Ue.js";import"./vendor-lezer-lr-bhwg1HMg.js";import"./vendor-lezer-common-B3-cUCR_.js";import"./vendor-lezer-highlight-CDMHUZ74.js";import"./vendor-style-mod-NZ5MEPvj.js";import"./vendor-marijn-find-cluster-break-DXwl3gUT.js";import"./vendor-w3c-keyname-Vcq4gwWv.js";import"./vendor-crelt-C8TCjufn.js";function v(e,t){let i=t&&t.getChild("TagName");return i?e.sliceString(i.from,i.to):""}function O(e,t){let i=t&&t.firstChild;return!i||i.name!="OpenTag"?"":v(e,i)}function D(e,t,i){let n=t&&t.getChildren("Attribute").find(o=>o.from<=i&&o.to>=i),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}function N(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function P(e,t){var i;let n=$(e).resolveInner(t,-1),a=null;for(let o=n;!a&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(a=o);if(a&&(a.to>t||a.lastChild.type.isError)){let o=a.parent;if(n.name=="TagName")return a.name=="CloseTag"||a.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:o}:{type:"openTag",from:n.from,context:N(o)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:a};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:a};let s=n==a||n.name=="Attribute"?n.childBefore(t):n;return s?.name=="StartTag"?{type:"openTag",from:t,context:N(o)}:s?.name=="StartCloseTag"&&s.to<=t?{type:"closeTag",from:t,context:o}:s?.name=="Is"?{type:"attrValue",from:t,context:a}:s?{type:"attrName",from:t,context:a}:null}else if(n.name=="StartCloseTag")return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(!((i=n.lastChild)===null||i===void 0)&&i.type.isError);)n=n.parent;return n.name=="Element"||n.name=="Text"||n.name=="Document"?{type:"tag",from:t,context:n.name=="Element"?n:N(n)}:null}class B{constructor(t,i,n){this.attrs=i,this.attrValues=n,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(a=>({label:a,type:"text"})):[]}}const S=/^[:\-\.\w\u00b7-\uffff]*$/;function j(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function A(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function H(e,t){let i=[],n=[],a=Object.create(null);for(let l of t){let p=j(l);i.push(p),l.global&&n.push(p),l.values&&(a[l.name]=l.values.map(A))}let o=[],s=[],h=Object.create(null);for(let l of e){let p=n,u=a;l.attributes&&(p=p.concat(l.attributes.map(r=>typeof r=="string"?i.find(b=>b.label==r)||{label:r,type:"property"}:(r.values&&(u==a&&(u=Object.create(u)),u[r.name]=r.values.map(A)),j(r)))));let d=new B(l,p,u);h[d.name]=d,o.push(d),l.top&&s.push(d)}s.length||(s=o);for(let l=0;l<o.length;l++){let p=e[l],u=o[l];if(p.children)for(let d of p.children)h[d]&&u.children.push(h[d]);else u.children=o}return l=>{var p;let{doc:u}=l.state,d=P(l.state,l.pos);if(!d||d.type=="tag"&&!l.explicit)return null;let{type:r,from:b,context:c}=d;if(r=="openTag"){let m=s,f=O(u,c);if(f){let g=h[f];m=g?.children||o}return{from:b,options:m.map(g=>g.completion),validFor:S}}else if(r=="closeTag"){let m=O(u,c);return m?{from:b,to:l.pos+(u.sliceString(l.pos,l.pos+1)==">"?1:0),options:[((p=h[m])===null||p===void 0?void 0:p.closeNameCompletion)||{label:m+">",type:"type"}],validFor:S}:null}else if(r=="attrName"){let m=h[v(u,c)];return{from:b,options:m?.attrs||n,validFor:S}}else if(r=="attrValue"){let m=D(u,c,b);if(!m)return null;let f=h[v(u,c)],g=(f?.attrValues||a)[m];return!g||!g.length?null:{from:b,to:l.pos+(u.sliceString(l.pos,l.pos+1)=='"'?1:0),options:g,validFor:/^"[^"]*"?$/}}else if(r=="tag"){let m=O(u,c),f=h[m],g=[],C=c&&c.lastChild;m&&(!C||C.name!="CloseTag"||v(u,C)!=m)&&g.push(f?f.closeCompletion:{label:"</"+m+">",type:"type",boost:2});let y=g.concat((f?.children||(c?o:s)).map(T=>T.openCompletion));if(c&&f?.text.length){let T=c.firstChild;T.to>l.pos-20&&!/\S/.test(l.state.sliceDoc(T.to,l.pos))&&(y=y.concat(f.text))}return{from:b,options:y,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const E=L.define({name:"xml",parser:I.configure({props:[_.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),k.add({Element(e){let t=e.firstChild,i=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:i.name=="CloseTag"?i.from:e.to}}}),w.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function ee(e={}){let t=[E.data.of({autocomplete:H(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(R),new F(E,t)}function V(e,t,i=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,i)):""}const R=M.inputHandler.of((e,t,i,n,a)=>{if(e.composing||e.state.readOnly||t!=i||n!=">"&&n!="/"||!E.isActiveAt(e.state,t,-1))return!1;let o=a(),{state:s}=o,h=s.changeByRange(l=>{var p,u,d;let{head:r}=l,b=s.doc.sliceString(r-1,r)==n,c=$(s).resolveInner(r,-1),m;if(b&&n==">"&&c.name=="EndTag"){let f=c.parent;if(((u=(p=f.parent)===null||p===void 0?void 0:p.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(m=V(s.doc,f.parent,r))){let g=r+(s.doc.sliceString(r,r+1)===">"?1:0),C=`</${m}>`;return{range:l,changes:{from:r,to:g,insert:C}}}}else if(b&&n=="/"&&c.name=="StartCloseTag"){let f=c.parent;if(c.from==r-2&&((d=f.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(m=V(s.doc,f,r))){let g=r+(s.doc.sliceString(r,r+1)===">"?1:0),C=`${m}>`;return{range:x.cursor(r+C.length,-1),changes:{from:r,to:g,insert:C}}}}return{range:l}});return h.changes.empty?!1:(e.dispatch([o,s.update(h,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{R as autoCloseTags,H as completeFromSchema,ee as xml,E as xmlLanguage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as m}from"./vendor-lezer-yaml-BNIl6S_O.js";import{L as r,b as O,c as l,e as a,g as i,h as p}from"./vendor-codemirror-language-
|
|
1
|
+
import{p as m}from"./vendor-lezer-yaml-BNIl6S_O.js";import{L as r,b as O,c as l,e as a,g as i,h as p}from"./vendor-codemirror-language-BByA_dGF.js";import{p as u}from"./vendor-lezer-common-B3-cUCR_.js";import{s as f,a as d}from"./vendor-lezer-highlight-CDMHUZ74.js";import{L as c}from"./vendor-lezer-lr-bhwg1HMg.js";import"./vendor-codemirror-state-CNWM3Q8V.js";import"./vendor-marijn-find-cluster-break-DXwl3gUT.js";import"./vendor-codemirror-view-Ct4T37Ue.js";import"./vendor-style-mod-NZ5MEPvj.js";import"./vendor-w3c-keyname-Vcq4gwWv.js";import"./vendor-crelt-C8TCjufn.js";const g=c.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),s=O.define({name:"yaml",parser:m.configure({props:[l.add({Stream:e=>{for(let n=e.node.resolve(e.pos,-1);n&&n.to>=e.pos;n=n.parent){if(n.name=="BlockLiteralContent"&&n.from<n.to)return e.baseIndentFor(n);if(n.name=="BlockLiteral")return e.baseIndentFor(n)+e.unit;if(n.name=="BlockSequence"||n.name=="BlockMapping")return e.column(n.from,1);if(n.name=="QuotedLiteral")return null;if(n.name=="Literal"){let t=e.column(n.from,1);if(t==e.lineIndent(n.from,1))return t;if(n.to>e.pos)return null}}return null},FlowMapping:a({closing:"}"}),FlowSequence:a({closing:"]"})}),i.add({"FlowMapping FlowSequence":p,"Item Pair BlockLiteral":(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function $(){return new r(s)}const S=O.define({name:"yaml-frontmatter",parser:g.configure({props:[f({DashLine:d.meta})]})});function b(e){let{language:n,support:t}=e.content instanceof r?e.content:{language:e.content,support:[]};return new r(S.configure({wrap:u(o=>o.name=="FrontmatterContent"?{parser:s.parser}:o.name=="Body"?{parser:n.parser}:null)}),t)}export{$ as yaml,b as yamlFrontmatter,s as yamlLanguage};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{N as g,P as ot,a as L,T as d,I as Q,b as Bt,c as N}from"./vendor-lezer-common-B3-cUCR_.js";import{F as y,E as O,P as Lt,k as Et,l as Ft,S as E,i as at,e as Mt}from"./vendor-codemirror-state-CNWM3Q8V.js";import{E as P,V as lt,D as b,l as Rt,W as ht,a as X}from"./vendor-codemirror-view-DSzLbZiS.js";import{t as Wt,h as Vt,a as f,s as Ht}from"./vendor-lezer-highlight-CDMHUZ74.js";import{S as Y}from"./vendor-style-mod-NZ5MEPvj.js";var R;const v=new g;function ut(r){return y.define({combine:r?t=>t.concat(r):void 0})}const Ut=new g;class p{constructor(t,e,n=[],s=""){this.data=t,this.name=s,O.prototype.hasOwnProperty("tree")||Object.defineProperty(O.prototype,"tree",{get(){return k(this)}}),this.parser=e,this.extension=[C.of(this),O.languageData.of((i,o,l)=>{let a=Z(i,o,l),h=a.type.prop(v);if(!h)return[];let u=i.facet(h),c=a.type.prop(Ut);if(c){let w=a.resolve(o-a.from,l);for(let m of c)if(m.test(w,i)){let S=i.facet(m.facet);return m.type=="replace"?S:S.concat(u)}}return u})].concat(n)}isActiveAt(t,e,n=-1){return Z(t,e,n).type.prop(v)==this.data}findRegions(t){let e=t.facet(C);if(e?.data==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],s=(i,o)=>{if(i.prop(v)==this.data){n.push({from:o,to:o+i.length});return}let l=i.prop(g.mounted);if(l){if(l.tree.prop(v)==this.data){if(l.overlay)for(let a of l.overlay)n.push({from:a.from+o,to:a.to+o});else n.push({from:o,to:o+i.length});return}else if(l.overlay){let a=n.length;if(s(l.tree,l.overlay[0].from+o),n.length>a)return}}for(let a=0;a<i.children.length;a++){let h=i.children[a];h instanceof d&&s(h,i.positions[a]+o)}};return s(k(t),0),n}get allowsNesting(){return!0}}p.setState=E.define();function Z(r,t,e){let n=r.facet(C),s=k(r).topNode;if(!n||n.allowsNesting)for(let i=s;i;i=i.enter(t,e,Q.ExcludeBuffers|Q.EnterBracketed))i.type.isTop&&(s=i);return s}class U extends p{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=ut(t.languageData);return new U(e,t.parser.configure({props:[v.add(n=>n.isTop?e:void 0)]}),t.name)}configure(t,e){return new U(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function k(r){let t=r.field(p.state,!1);return t?t.tree:d.empty}function $t(r,t,e=50){var n;let s=(n=r.field(p.state,!1))===null||n===void 0?void 0:n.context;if(!s)return null;let i=s.viewport;s.updateViewport({from:0,to:t});let o=s.isDone(t)||s.work(e,t)?s.tree:null;return s.updateViewport(i),o}function Oe(r,t=r.viewport.to,e=100){let n=$t(r.state,t,e);return n!=k(r.state)&&r.dispatch({}),!!n}class jt{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let I=null;class x{constructor(t,e,n=[],s,i,o,l,a){this.parser=t,this.state=e,this.fragments=n,this.tree=s,this.treeLen=i,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new x(t,e,[],d.empty,0,n,[],null)}startParse(){return this.parser.startParse(new jt(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=d.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(N.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(e??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(N.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=I;I=this;try{return t()}finally{I=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=_(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:s,treeLen:i,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((h,u,c,w)=>a.push({fromA:h,toA:u,fromB:c,toB:w})),n=N.applyChanges(n,a),s=d.empty,i=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let u=t.mapPos(h.from,1),c=t.mapPos(h.to,-1);u<c&&l.push({from:u,to:c})}}}return new x(this.parser,e,n,s,i,o,l,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:s,to:i}=this.skipped[n];s<t.to&&i>t.from&&(this.fragments=_(this.fragments,s,i),this.skipped.splice(n--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends ot{createParse(e,n,s){let i=s[0].from,o=s[s.length-1].to;return{parsedPos:i,advance(){let a=I;if(a){for(let h of s)a.tempSkipped.push(h);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new d(L.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return I}}function _(r,t,e){return N.applyChanges(r,[{fromA:t,toA:e,fromB:t,toB:e}])}class A{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new A(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=x.create(t.facet(C).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new A(n)}}p.state=at.define({create:A.init,update(r,t){for(let e of t.effects)if(e.is(p.setState))return e.value;return t.startState.facet(C)!=t.state.facet(C)?A.init(t.state):r.apply(t)}});let ft=r=>{let t=setTimeout(()=>r(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(ft=r=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(r,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const W=typeof navigator<"u"&&(!((R=navigator.scheduling)===null||R===void 0)&&R.isInputPending)?()=>navigator.scheduling.isInputPending():null,zt=lt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(p.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(p.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=ft(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:s}}=this.view,i=n.field(p.state);if(i.tree==i.context.tree&&i.context.isDone(s+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,t&&!W?Math.max(25,t.timeRemaining()-5):1e9),l=i.context.treeLen<s&&n.doc.length>s+1e3,a=i.context.work(()=>W&&W()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:p.setState.of(new A(i.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Rt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),C=y.define({combine(r){return r.length?r[0]:null},enables:r=>[p.state,zt,P.contentAttributes.compute([r],t=>{let e=t.facet(r);return e&&e.name?{"data-language":e.name}:{}})]});class Le{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class ct{constructor(t,e,n,s,i,o=void 0){this.name=t,this.alias=e,this.extensions=n,this.filename=s,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new ct(t.name,(t.alias||[]).concat(t.name).map(s=>s.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let s of t)if(s.filename&&s.filename.test(e))return s;let n=/\.([^.]+)$/.exec(e);if(n){for(let s of t)if(s.extensions.indexOf(n[1])>-1)return s}return null}static matchLanguageName(t,e,n=!0){e=e.toLowerCase();for(let s of t)if(s.alias.some(i=>i==e))return s;if(n)for(let s of t)for(let i of s.alias){let o=e.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(e[o-1])&&!/\w/.test(e[o+i.length])))return s}return null}}const qt=y.define(),dt=y.define({combine:r=>{if(!r.length)return" ";let t=r[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return t}});function B(r){let t=r.facet(dt);return t.charCodeAt(0)==9?r.tabSize*t.length:t.length}function Ee(r,t){let e="",n=r.tabSize,s=r.facet(dt)[0];if(s==" "){for(;t>=n;)e+=" ",t-=n;s=" "}for(let i=0;i<t;i++)e+=s;return e}function Fe(r,t){r instanceof O&&(r=new pt(r));for(let n of r.state.facet(qt)){let s=n(r,t);if(s!==void 0)return s}let e=k(r.state);return e.length>=t?Jt(r,e,t):null}class pt{constructor(t,e={}){this.state=t,this.options=e,this.unit=B(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:i}=this.options;return s!=null&&s>=n.from&&s<=n.to?i&&s==t?{text:"",from:t}:(e<0?s<t:s<=t)?{text:n.text.slice(s-n.from),from:s}:{text:n.text.slice(0,s-n.from),from:n.from}:n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:s}=this.lineAt(t,e);return n.slice(t-s,Math.min(n.length,t+100-s))}column(t,e=1){let{text:n,from:s}=this.lineAt(t,e),i=this.countColumn(n,t-s),o=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return Ft(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:s}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let o=i(s);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const gt=new g;function Jt(r,t,e){let n=t.resolveStack(e),s=t.resolveInner(e,-1).resolve(e,0).enterUnfinishedNodesBefore(e);if(s!=n.node){let i=[];for(let o=s;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)n={node:i[o],next:n}}return mt(n,r,e)}function mt(r,t,e){for(let n=r;n;n=n.next){let s=Kt(n.node);if(s)return s(q.create(t,e,n))}return 0}function Gt(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Kt(r){let t=r.type.prop(gt);if(t)return t;let e=r.firstChild,n;if(e&&(n=e.type.prop(g.closedBy))){let s=r.lastChild,i=s&&n.indexOf(s.name)>-1;return o=>kt(o,!0,1,void 0,i&&!Gt(o)?s.from:void 0)}return r.parent==null?Qt:null}function Qt(){return 0}class q extends pt{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new q(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(Xt(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return mt(this.context.next,this.base,this.pos)}}function Xt(r,t){for(let e=t;e;e=e.parent)if(r==e)return!0;return!1}function Yt(r){let t=r.node,e=t.childAfter(t.from),n=t.lastChild;if(!e)return null;let s=r.options.simulateBreak,i=r.state.doc.lineAt(e.from),o=s==null||s<=i.from?i.to:Math.min(i.to,s);for(let l=e.to;;){let a=t.childAfter(l);if(!a||a==n)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(i.text.slice(e.to-i.from))[0].length;return{from:e.from,to:e.to+h}}l=a.to}}function Me({closing:r,align:t=!0,units:e=1}){return n=>kt(n,t,e,r)}function kt(r,t,e,n,s){let i=r.textAfter,o=i.match(/^\s*/)[0].length,l=n&&i.slice(o,o+n.length)==n||s==r.pos+o,a=t?Yt(r):null;return a?l?r.column(a.from):r.column(a.to):r.baseIndent+(l?0:r.unit*e)}const Re=r=>r.baseIndent;function We({except:r,units:t=1}={}){return e=>{let n=r&&r.test(e.textAfter);return e.baseIndent+(n?0:t*e.unit)}}const Zt=y.define(),_t=new g;function Ve(r){let t=r.firstChild,e=r.lastChild;return t&&t.to<e.from?{from:t.to,to:e.type.isError?r.to:e.from}:null}function te(r,t,e){let n=k(r);if(n.length<e)return null;let s=n.resolveStack(e,1),i=null;for(let o=s;o;o=o.next){let l=o.node;if(l.to<=e||l.from>e)continue;if(i&&l.from<t)break;let a=l.type.prop(_t);if(a&&(l.to<n.length-50||n.length==r.doc.length||!ee(l))){let h=a(l,r);h&&h.from<=e&&h.from>=t&&h.to>e&&(i=h)}}return i}function ee(r){let t=r.lastChild;return t&&t.to==r.to&&t.type.isError}function ne(r,t,e){for(let n of r.facet(Zt)){let s=n(r,t,e);if(s)return s}return te(r,t,e)}function wt(r,t){let e=t.mapPos(r.from,1),n=t.mapPos(r.to,-1);return e>=n?void 0:{from:e,to:n}}const bt=E.define({map:wt}),yt=E.define({map:wt});function re(r){let t=[];for(let{head:e}of r.state.selection.ranges)t.some(n=>n.from<=e&&n.to>=e)||t.push(r.lineBlockAt(e));return t}const J=at.define({create(){return b.none},update(r,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((e,n)=>r=tt(r,e,n)),r=r.map(t.changes);for(let e of t.effects)if(e.is(bt)&&!ie(r,e.value.from,e.value.to)){let{preparePlaceholder:n}=t.state.facet(vt),s=n?b.replace({widget:new ue(n(t.state,e.value))}):et;r=r.update({add:[s.range(e.value.from,e.value.to)]})}else e.is(yt)&&(r=r.update({filter:(n,s)=>e.value.from!=n||e.value.to!=s,filterFrom:e.value.from,filterTo:e.value.to}));return t.selection&&(r=tt(r,t.selection.main.head)),r},provide:r=>P.decorations.from(r),toJSON(r,t){let e=[];return r.between(0,t.doc.length,(n,s)=>{e.push(n,s)}),e},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e<r.length;){let n=r[e++],s=r[e++];if(typeof n!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");t.push(et.range(n,s))}return b.set(t,!0)}});function tt(r,t,e=t){let n=!1;return r.between(t,e,(s,i)=>{s<e&&i>t&&(n=!0)}),n?r.update({filterFrom:t,filterTo:e,filter:(s,i)=>s>=e||i<=t}):r}function se(r,t,e){var n;let s=null;return(n=r.field(J,!1))===null||n===void 0||n.between(t,e,(i,o)=>{(!s||s.from>i)&&(s={from:i,to:o})}),s}function ie(r,t,e){let n=!1;return r.between(t,t,(s,i)=>{s==t&&i==e&&(n=!0)}),n}function oe(r,t){return r.field(J,!1)?t:t.concat(E.appendConfig.of(he()))}const He=r=>{for(let t of re(r)){let e=ne(r.state,t.from,t.to);if(e)return r.dispatch({effects:oe(r.state,[bt.of(e),ae(r,e)])}),!0}return!1};function ae(r,t,e=!0){let n=r.state.doc.lineAt(t.from).number,s=r.state.doc.lineAt(t.to).number;return P.announce.of(`${r.state.phrase(e?"Folded lines":"Unfolded lines")} ${n} ${r.state.phrase("to")} ${s}.`)}const le={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},vt=y.define({combine(r){return Mt(r,le)}});function he(r){return[J,fe]}function Pt(r,t){let{state:e}=r,n=e.facet(vt),s=o=>{let l=r.lineBlockAt(r.posAtDOM(o.target)),a=se(r.state,l.from,l.to);a&&r.dispatch({effects:yt.of(a)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(r,s,t);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=s,i}const et=b.replace({widget:new class extends ht{toDOM(r){return Pt(r,null)}}});class ue extends ht{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Pt(t,this.value)}}const fe=P.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class F{constructor(t,e){this.specs=t;let n;function s(l){let a=Y.newName();return(n||(n=Object.create(null)))["."+a]=l,a}const i=typeof e.all=="string"?e.all:e.all?s(e.all):void 0,o=e.scope;this.scope=o instanceof p?l=>l.prop(v)==o.data:o?l=>l==o:void 0,this.style=Wt(t.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=n?new Y(n):null,this.themeType=e.themeType}static define(t,e){return new F(t,e||{})}}const $=y.define(),St=y.define({combine(r){return r.length?[r[0]]:null}});function V(r){let t=r.facet($);return t.length?t:r.facet(St)}function Ue(r,t){let e=[de],n;return r instanceof F&&(r.module&&e.push(P.styleModule.of(r.module)),n=r.themeType),t?.fallback?e.push(St.of(r)):n?e.push($.computeN([P.darkTheme],s=>s.facet(P.darkTheme)==(n=="dark")?[r]:[])):e.push($.of(r)),e}class ce{constructor(t){this.markCache=Object.create(null),this.tree=k(t.state),this.decorations=this.buildDeco(t,V(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=k(t.state),n=V(t.state),s=n!=V(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length<i.to&&!s&&e.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=i.to)}buildDeco(t,e){if(!e||!this.tree.length)return b.none;let n=new Et;for(let{from:s,to:i}of t.visibleRanges)Vt(this.tree,e,(o,l,a)=>{n.add(o,l,this.markCache[a]||(this.markCache[a]=b.mark({class:a})))},s,i);return n.finish()}}const de=Lt.high(lt.fromClass(ce,{decorations:r=>r.decorations})),$e=F.define([{tag:f.meta,color:"#404740"},{tag:f.link,textDecoration:"underline"},{tag:f.heading,textDecoration:"underline",fontWeight:"bold"},{tag:f.emphasis,fontStyle:"italic"},{tag:f.strong,fontWeight:"bold"},{tag:f.strikethrough,textDecoration:"line-through"},{tag:f.keyword,color:"#708"},{tag:[f.atom,f.bool,f.url,f.contentSeparator,f.labelName],color:"#219"},{tag:[f.literal,f.inserted],color:"#164"},{tag:[f.string,f.deleted],color:"#a11"},{tag:[f.regexp,f.escape,f.special(f.string)],color:"#e40"},{tag:f.definition(f.variableName),color:"#00f"},{tag:f.local(f.variableName),color:"#30a"},{tag:[f.typeName,f.namespace],color:"#085"},{tag:f.className,color:"#167"},{tag:[f.special(f.variableName),f.macroName],color:"#256"},{tag:f.definition(f.propertyName),color:"#00c"},{tag:f.comment,color:"#940"},{tag:f.invalid,color:"#f00"}]),pe=1e4,ge="()[]{}",me=new g;function j(r,t,e){let n=r.prop(t<0?g.openedBy:g.closedBy);if(n)return n;if(r.name.length==1){let s=e.indexOf(r.name);if(s>-1&&s%2==(t<0?1:0))return[e[s+t]]}return null}function z(r){let t=r.type.prop(me);return t?t(r.node):r}function je(r,t,e,n={}){let s=n.maxScanDistance||pe,i=n.brackets||ge,o=k(r),l=o.resolveInner(t,e);for(let a=l;a;a=a.parent){let h=j(a.type,e,i);if(h&&a.from<a.to){let u=z(a);if(u&&(e>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return ke(r,t,e,a,u,h,i)}}return we(r,t,e,o,l.type,s,i)}function ke(r,t,e,n,s,i,o){let l=n.parent,a={from:s.from,to:s.to},h=0,u=l?.cursor();if(u&&(e<0?u.childBefore(n.from):u.childAfter(n.to)))do if(e<0?u.to<=n.from:u.from>=n.to){if(h==0&&i.indexOf(u.type.name)>-1&&u.from<u.to){let c=z(u);return{start:a,end:c?{from:c.from,to:c.to}:void 0,matched:!0}}else if(j(u.type,e,o))h++;else if(j(u.type,-e,o)){if(h==0){let c=z(u);return{start:a,end:c&&c.from<c.to?{from:c.from,to:c.to}:void 0,matched:!1}}h--}}while(e<0?u.prevSibling():u.nextSibling());return{start:a,matched:!1}}function we(r,t,e,n,s,i,o){let l=e<0?r.sliceDoc(t-1,t):r.sliceDoc(t,t+1),a=o.indexOf(l);if(a<0||a%2==0!=e>0)return null;let h={from:e<0?t-1:t,to:e>0?t+1:t},u=r.doc.iterRange(t,e>0?r.doc.length:0),c=0;for(let w=0;!u.next().done&&w<=i;){let m=u.value;e<0&&(w+=m.length);let S=t+w*e;for(let T=e>0?0:m.length-1,Ot=e>0?m.length:-1;T!=Ot;T+=e){let M=o.indexOf(m[T]);if(!(M<0||n.resolveInner(S+T,1).type!=s))if(M%2==0==e>0)c++;else{if(c==1)return{start:h,end:{from:S+T,to:S+T+1},matched:M>>1==a>>1};c--}}e>0&&(w+=m.length)}return u.done?{start:h,matched:!1}:null}function nt(r,t,e,n=0,s=0){t==null&&(t=r.search(/[^\s\u00a0]/),t==-1&&(t=r.length));let i=s;for(let o=n;o<t;o++)r.charCodeAt(o)==9?i+=e-i%e:i++;return i}class Tt{constructor(t,e,n,s){this.string=t,this.tabSize=e,this.indentUnit=n,this.overrideIndent=s,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e=this.string.charAt(this.pos),n;if(typeof t=="string"?n=e==t:n=e&&(t instanceof RegExp?t.test(e):t(e)),n)return++this.pos,e}eatWhile(t){let e=this.pos;for(;this.eat(t););return this.pos>e}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return(t=this.overrideIndent)!==null&&t!==void 0?t:nt(this.string,null,this.tabSize)}match(t,e,n){if(typeof t=="string"){let s=o=>n?o.toLowerCase():o,i=this.string.substr(this.pos,t.length);return s(i)==s(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let s=this.string.slice(this.pos).match(t);return s&&s.index>0?null:(s&&e!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function be(r){return{name:r.name||"",token:r.token,blankLine:r.blankLine||(()=>{}),startState:r.startState||(()=>!0),copyState:r.copyState||ye,indent:r.indent||(()=>null),languageData:r.languageData||{},tokenTable:r.tokenTable||K,mergeTokens:r.mergeTokens!==!1}}function ye(r){if(typeof r!="object")return r;let t={};for(let e in r){let n=r[e];t[e]=n instanceof Array?n.slice():n}return t}const rt=new WeakMap;class xt extends p{constructor(t){let e=ut(t.languageData),n=be(t),s,i=new class extends ot{createParse(o,l,a){return new Pe(s,o,l,a)}};super(e,i,[],t.name),this.topNode=xe(e,this),s=this,this.streamParser=n,this.stateAfter=new g({perNode:!0}),this.tokenTable=t.tokenTable?new Dt(n.tokenTable):Te}static define(t){return new xt(t)}getIndent(t){let e,{overrideIndentation:n}=t.options;n&&(e=rt.get(t.state),e!=null&&e<t.pos-1e4&&(e=void 0));let s=G(this,t.node.tree,t.node.from,t.node.from,e??t.pos),i,o;if(s?(o=s.state,i=s.pos+1):(o=this.streamParser.startState(t.unit),i=t.node.from),t.pos-i>1e4)return null;for(;i<t.pos;){let a=t.state.doc.lineAt(i),h=Math.min(t.pos,a.to);if(a.length){let u=n?n(a.from):-1,c=new Tt(a.text,t.state.tabSize,t.unit,u<0?void 0:u);for(;c.pos<h-a.from;)Ct(this.streamParser.token,c,o)}else this.streamParser.blankLine(o,t.unit);if(h==t.pos)break;i=a.to+1}let l=t.lineAt(t.pos);return n&&e==null&&rt.set(t.state,l.from),this.streamParser.indent(o,/^\s*(.*)/.exec(l.text)[1],t)}get allowsNesting(){return!1}}function G(r,t,e,n,s){let i=e>=n&&e+t.length<=s&&t.prop(r.stateAfter);if(i)return{state:r.streamParser.copyState(i),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],a=e+t.positions[o],h=l instanceof d&&a<s&&G(r,l,a,n,s);if(h)return h}return null}function At(r,t,e,n,s){if(s&&e<=0&&n>=t.length)return t;!s&&e==0&&t.type==r.topNode&&(s=!0);for(let i=t.children.length-1;i>=0;i--){let o=t.positions[i],l=t.children[i],a;if(o<n&&l instanceof d){if(!(a=At(r,l,e-o,n-o,s)))break;return s?new d(t.type,t.children.slice(0,i).concat(a),t.positions.slice(0,i+1),o+a.length):a}}return null}function ve(r,t,e,n,s){for(let i of t){let o=i.from+(i.openStart?25:0),l=i.to-(i.openEnd?25:0),a=o<=e&&l>e&&G(r,i.tree,0-i.offset,e,l),h;if(a&&a.pos<=n&&(h=At(r,i.tree,e+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:h}}return{state:r.streamParser.startState(s?B(s):4),tree:d.empty}}class Pe{constructor(t,e,n,s){this.lang=t,this.input=e,this.fragments=n,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let i=x.get(),o=s[0].from,{state:l,tree:a}=ve(t,n,o,this.to,i?.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let h=0;h<a.children.length;h++)this.chunks.push(a.children[h]),this.chunkPos.push(a.positions[h]);i&&this.parsedPos<i.viewport.from-1e5&&s.some(h=>h.from<=i.viewport.from&&h.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(B(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let t=x.get(),e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(e,this.chunkStart+512);for(t&&(n=Math.min(n,t.viewport.to));this.parsedPos<n;)this.parseLine(t);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==`
|
|
1
|
+
import{N as g,P as ot,a as L,T as d,I as Q,b as Bt,c as N}from"./vendor-lezer-common-B3-cUCR_.js";import{E as O,P as Lt,F as y,k as Et,l as Ft,S as E,i as at,e as Mt}from"./vendor-codemirror-state-CNWM3Q8V.js";import{E as P,V as lt,D as b,l as Rt,W as ht,a as X}from"./vendor-codemirror-view-Ct4T37Ue.js";import{t as Wt,h as Vt,a as f,s as Ht}from"./vendor-lezer-highlight-CDMHUZ74.js";import{S as Y}from"./vendor-style-mod-NZ5MEPvj.js";var R;const v=new g;function ut(r){return y.define({combine:r?t=>t.concat(r):void 0})}const Ut=new g;class p{constructor(t,e,n=[],s=""){this.data=t,this.name=s,O.prototype.hasOwnProperty("tree")||Object.defineProperty(O.prototype,"tree",{get(){return k(this)}}),this.parser=e,this.extension=[C.of(this),O.languageData.of((i,o,l)=>{let a=Z(i,o,l),h=a.type.prop(v);if(!h)return[];let u=i.facet(h),c=a.type.prop(Ut);if(c){let w=a.resolve(o-a.from,l);for(let m of c)if(m.test(w,i)){let S=i.facet(m.facet);return m.type=="replace"?S:S.concat(u)}}return u})].concat(n)}isActiveAt(t,e,n=-1){return Z(t,e,n).type.prop(v)==this.data}findRegions(t){let e=t.facet(C);if(e?.data==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],s=(i,o)=>{if(i.prop(v)==this.data){n.push({from:o,to:o+i.length});return}let l=i.prop(g.mounted);if(l){if(l.tree.prop(v)==this.data){if(l.overlay)for(let a of l.overlay)n.push({from:a.from+o,to:a.to+o});else n.push({from:o,to:o+i.length});return}else if(l.overlay){let a=n.length;if(s(l.tree,l.overlay[0].from+o),n.length>a)return}}for(let a=0;a<i.children.length;a++){let h=i.children[a];h instanceof d&&s(h,i.positions[a]+o)}};return s(k(t),0),n}get allowsNesting(){return!0}}p.setState=E.define();function Z(r,t,e){let n=r.facet(C),s=k(r).topNode;if(!n||n.allowsNesting)for(let i=s;i;i=i.enter(t,e,Q.ExcludeBuffers|Q.EnterBracketed))i.type.isTop&&(s=i);return s}class U extends p{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=ut(t.languageData);return new U(e,t.parser.configure({props:[v.add(n=>n.isTop?e:void 0)]}),t.name)}configure(t,e){return new U(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function k(r){let t=r.field(p.state,!1);return t?t.tree:d.empty}function $t(r,t,e=50){var n;let s=(n=r.field(p.state,!1))===null||n===void 0?void 0:n.context;if(!s)return null;let i=s.viewport;s.updateViewport({from:0,to:t});let o=s.isDone(t)||s.work(e,t)?s.tree:null;return s.updateViewport(i),o}function Oe(r,t=r.viewport.to,e=100){let n=$t(r.state,t,e);return n!=k(r.state)&&r.dispatch({}),!!n}class jt{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let I=null;class x{constructor(t,e,n=[],s,i,o,l,a){this.parser=t,this.state=e,this.fragments=n,this.tree=s,this.treeLen=i,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new x(t,e,[],d.empty,0,n,[],null)}startParse(){return this.parser.startParse(new jt(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=d.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(N.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(e??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(N.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=I;I=this;try{return t()}finally{I=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=_(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:s,treeLen:i,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((h,u,c,w)=>a.push({fromA:h,toA:u,fromB:c,toB:w})),n=N.applyChanges(n,a),s=d.empty,i=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let u=t.mapPos(h.from,1),c=t.mapPos(h.to,-1);u<c&&l.push({from:u,to:c})}}}return new x(this.parser,e,n,s,i,o,l,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:s,to:i}=this.skipped[n];s<t.to&&i>t.from&&(this.fragments=_(this.fragments,s,i),this.skipped.splice(n--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends ot{createParse(e,n,s){let i=s[0].from,o=s[s.length-1].to;return{parsedPos:i,advance(){let a=I;if(a){for(let h of s)a.tempSkipped.push(h);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new d(L.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return I}}function _(r,t,e){return N.applyChanges(r,[{fromA:t,toA:e,fromB:t,toB:e}])}class A{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new A(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=x.create(t.facet(C).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new A(n)}}p.state=at.define({create:A.init,update(r,t){for(let e of t.effects)if(e.is(p.setState))return e.value;return t.startState.facet(C)!=t.state.facet(C)?A.init(t.state):r.apply(t)}});let ft=r=>{let t=setTimeout(()=>r(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(ft=r=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(r,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const W=typeof navigator<"u"&&(!((R=navigator.scheduling)===null||R===void 0)&&R.isInputPending)?()=>navigator.scheduling.isInputPending():null,zt=lt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(p.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(p.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=ft(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:s}}=this.view,i=n.field(p.state);if(i.tree==i.context.tree&&i.context.isDone(s+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,t&&!W?Math.max(25,t.timeRemaining()-5):1e9),l=i.context.treeLen<s&&n.doc.length>s+1e3,a=i.context.work(()=>W&&W()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:p.setState.of(new A(i.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Rt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),C=y.define({combine(r){return r.length?r[0]:null},enables:r=>[p.state,zt,P.contentAttributes.compute([r],t=>{let e=t.facet(r);return e&&e.name?{"data-language":e.name}:{}})]});class Le{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class ct{constructor(t,e,n,s,i,o=void 0){this.name=t,this.alias=e,this.extensions=n,this.filename=s,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new ct(t.name,(t.alias||[]).concat(t.name).map(s=>s.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let s of t)if(s.filename&&s.filename.test(e))return s;let n=/\.([^.]+)$/.exec(e);if(n){for(let s of t)if(s.extensions.indexOf(n[1])>-1)return s}return null}static matchLanguageName(t,e,n=!0){e=e.toLowerCase();for(let s of t)if(s.alias.some(i=>i==e))return s;if(n)for(let s of t)for(let i of s.alias){let o=e.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(e[o-1])&&!/\w/.test(e[o+i.length])))return s}return null}}const qt=y.define(),dt=y.define({combine:r=>{if(!r.length)return" ";let t=r[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return t}});function B(r){let t=r.facet(dt);return t.charCodeAt(0)==9?r.tabSize*t.length:t.length}function Ee(r,t){let e="",n=r.tabSize,s=r.facet(dt)[0];if(s==" "){for(;t>=n;)e+=" ",t-=n;s=" "}for(let i=0;i<t;i++)e+=s;return e}function Fe(r,t){r instanceof O&&(r=new pt(r));for(let n of r.state.facet(qt)){let s=n(r,t);if(s!==void 0)return s}let e=k(r.state);return e.length>=t?Jt(r,e,t):null}class pt{constructor(t,e={}){this.state=t,this.options=e,this.unit=B(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:i}=this.options;return s!=null&&s>=n.from&&s<=n.to?i&&s==t?{text:"",from:t}:(e<0?s<t:s<=t)?{text:n.text.slice(s-n.from),from:s}:{text:n.text.slice(0,s-n.from),from:n.from}:n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:s}=this.lineAt(t,e);return n.slice(t-s,Math.min(n.length,t+100-s))}column(t,e=1){let{text:n,from:s}=this.lineAt(t,e),i=this.countColumn(n,t-s),o=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return Ft(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:s}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let o=i(s);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const gt=new g;function Jt(r,t,e){let n=t.resolveStack(e),s=t.resolveInner(e,-1).resolve(e,0).enterUnfinishedNodesBefore(e);if(s!=n.node){let i=[];for(let o=s;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)n={node:i[o],next:n}}return mt(n,r,e)}function mt(r,t,e){for(let n=r;n;n=n.next){let s=Kt(n.node);if(s)return s(q.create(t,e,n))}return 0}function Gt(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Kt(r){let t=r.type.prop(gt);if(t)return t;let e=r.firstChild,n;if(e&&(n=e.type.prop(g.closedBy))){let s=r.lastChild,i=s&&n.indexOf(s.name)>-1;return o=>kt(o,!0,1,void 0,i&&!Gt(o)?s.from:void 0)}return r.parent==null?Qt:null}function Qt(){return 0}class q extends pt{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new q(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(Xt(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return mt(this.context.next,this.base,this.pos)}}function Xt(r,t){for(let e=t;e;e=e.parent)if(r==e)return!0;return!1}function Yt(r){let t=r.node,e=t.childAfter(t.from),n=t.lastChild;if(!e)return null;let s=r.options.simulateBreak,i=r.state.doc.lineAt(e.from),o=s==null||s<=i.from?i.to:Math.min(i.to,s);for(let l=e.to;;){let a=t.childAfter(l);if(!a||a==n)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(i.text.slice(e.to-i.from))[0].length;return{from:e.from,to:e.to+h}}l=a.to}}function Me({closing:r,align:t=!0,units:e=1}){return n=>kt(n,t,e,r)}function kt(r,t,e,n,s){let i=r.textAfter,o=i.match(/^\s*/)[0].length,l=n&&i.slice(o,o+n.length)==n||s==r.pos+o,a=t?Yt(r):null;return a?l?r.column(a.from):r.column(a.to):r.baseIndent+(l?0:r.unit*e)}const Re=r=>r.baseIndent;function We({except:r,units:t=1}={}){return e=>{let n=r&&r.test(e.textAfter);return e.baseIndent+(n?0:t*e.unit)}}const Zt=y.define(),_t=new g;function Ve(r){let t=r.firstChild,e=r.lastChild;return t&&t.to<e.from?{from:t.to,to:e.type.isError?r.to:e.from}:null}function te(r,t,e){let n=k(r);if(n.length<e)return null;let s=n.resolveStack(e,1),i=null;for(let o=s;o;o=o.next){let l=o.node;if(l.to<=e||l.from>e)continue;if(i&&l.from<t)break;let a=l.type.prop(_t);if(a&&(l.to<n.length-50||n.length==r.doc.length||!ee(l))){let h=a(l,r);h&&h.from<=e&&h.from>=t&&h.to>e&&(i=h)}}return i}function ee(r){let t=r.lastChild;return t&&t.to==r.to&&t.type.isError}function ne(r,t,e){for(let n of r.facet(Zt)){let s=n(r,t,e);if(s)return s}return te(r,t,e)}function wt(r,t){let e=t.mapPos(r.from,1),n=t.mapPos(r.to,-1);return e>=n?void 0:{from:e,to:n}}const bt=E.define({map:wt}),yt=E.define({map:wt});function re(r){let t=[];for(let{head:e}of r.state.selection.ranges)t.some(n=>n.from<=e&&n.to>=e)||t.push(r.lineBlockAt(e));return t}const J=at.define({create(){return b.none},update(r,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((e,n)=>r=tt(r,e,n)),r=r.map(t.changes);for(let e of t.effects)if(e.is(bt)&&!ie(r,e.value.from,e.value.to)){let{preparePlaceholder:n}=t.state.facet(vt),s=n?b.replace({widget:new ue(n(t.state,e.value))}):et;r=r.update({add:[s.range(e.value.from,e.value.to)]})}else e.is(yt)&&(r=r.update({filter:(n,s)=>e.value.from!=n||e.value.to!=s,filterFrom:e.value.from,filterTo:e.value.to}));return t.selection&&(r=tt(r,t.selection.main.head)),r},provide:r=>P.decorations.from(r),toJSON(r,t){let e=[];return r.between(0,t.doc.length,(n,s)=>{e.push(n,s)}),e},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e<r.length;){let n=r[e++],s=r[e++];if(typeof n!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");t.push(et.range(n,s))}return b.set(t,!0)}});function tt(r,t,e=t){let n=!1;return r.between(t,e,(s,i)=>{s<e&&i>t&&(n=!0)}),n?r.update({filterFrom:t,filterTo:e,filter:(s,i)=>s>=e||i<=t}):r}function se(r,t,e){var n;let s=null;return(n=r.field(J,!1))===null||n===void 0||n.between(t,e,(i,o)=>{(!s||s.from>i)&&(s={from:i,to:o})}),s}function ie(r,t,e){let n=!1;return r.between(t,t,(s,i)=>{s==t&&i==e&&(n=!0)}),n}function oe(r,t){return r.field(J,!1)?t:t.concat(E.appendConfig.of(he()))}const He=r=>{for(let t of re(r)){let e=ne(r.state,t.from,t.to);if(e)return r.dispatch({effects:oe(r.state,[bt.of(e),ae(r,e)])}),!0}return!1};function ae(r,t,e=!0){let n=r.state.doc.lineAt(t.from).number,s=r.state.doc.lineAt(t.to).number;return P.announce.of(`${r.state.phrase(e?"Folded lines":"Unfolded lines")} ${n} ${r.state.phrase("to")} ${s}.`)}const le={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},vt=y.define({combine(r){return Mt(r,le)}});function he(r){return[J,fe]}function Pt(r,t){let{state:e}=r,n=e.facet(vt),s=o=>{let l=r.lineBlockAt(r.posAtDOM(o.target)),a=se(r.state,l.from,l.to);a&&r.dispatch({effects:yt.of(a)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(r,s,t);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=s,i}const et=b.replace({widget:new class extends ht{toDOM(r){return Pt(r,null)}}});class ue extends ht{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Pt(t,this.value)}}const fe=P.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class F{constructor(t,e){this.specs=t;let n;function s(l){let a=Y.newName();return(n||(n=Object.create(null)))["."+a]=l,a}const i=typeof e.all=="string"?e.all:e.all?s(e.all):void 0,o=e.scope;this.scope=o instanceof p?l=>l.prop(v)==o.data:o?l=>l==o:void 0,this.style=Wt(t.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=n?new Y(n):null,this.themeType=e.themeType}static define(t,e){return new F(t,e||{})}}const $=y.define(),St=y.define({combine(r){return r.length?[r[0]]:null}});function V(r){let t=r.facet($);return t.length?t:r.facet(St)}function Ue(r,t){let e=[de],n;return r instanceof F&&(r.module&&e.push(P.styleModule.of(r.module)),n=r.themeType),t?.fallback?e.push(St.of(r)):n?e.push($.computeN([P.darkTheme],s=>s.facet(P.darkTheme)==(n=="dark")?[r]:[])):e.push($.of(r)),e}class ce{constructor(t){this.markCache=Object.create(null),this.tree=k(t.state),this.decorations=this.buildDeco(t,V(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=k(t.state),n=V(t.state),s=n!=V(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length<i.to&&!s&&e.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=i.to)}buildDeco(t,e){if(!e||!this.tree.length)return b.none;let n=new Et;for(let{from:s,to:i}of t.visibleRanges)Vt(this.tree,e,(o,l,a)=>{n.add(o,l,this.markCache[a]||(this.markCache[a]=b.mark({class:a})))},s,i);return n.finish()}}const de=Lt.high(lt.fromClass(ce,{decorations:r=>r.decorations})),$e=F.define([{tag:f.meta,color:"#404740"},{tag:f.link,textDecoration:"underline"},{tag:f.heading,textDecoration:"underline",fontWeight:"bold"},{tag:f.emphasis,fontStyle:"italic"},{tag:f.strong,fontWeight:"bold"},{tag:f.strikethrough,textDecoration:"line-through"},{tag:f.keyword,color:"#708"},{tag:[f.atom,f.bool,f.url,f.contentSeparator,f.labelName],color:"#219"},{tag:[f.literal,f.inserted],color:"#164"},{tag:[f.string,f.deleted],color:"#a11"},{tag:[f.regexp,f.escape,f.special(f.string)],color:"#e40"},{tag:f.definition(f.variableName),color:"#00f"},{tag:f.local(f.variableName),color:"#30a"},{tag:[f.typeName,f.namespace],color:"#085"},{tag:f.className,color:"#167"},{tag:[f.special(f.variableName),f.macroName],color:"#256"},{tag:f.definition(f.propertyName),color:"#00c"},{tag:f.comment,color:"#940"},{tag:f.invalid,color:"#f00"}]),pe=1e4,ge="()[]{}",me=new g;function j(r,t,e){let n=r.prop(t<0?g.openedBy:g.closedBy);if(n)return n;if(r.name.length==1){let s=e.indexOf(r.name);if(s>-1&&s%2==(t<0?1:0))return[e[s+t]]}return null}function z(r){let t=r.type.prop(me);return t?t(r.node):r}function je(r,t,e,n={}){let s=n.maxScanDistance||pe,i=n.brackets||ge,o=k(r),l=o.resolveInner(t,e);for(let a=l;a;a=a.parent){let h=j(a.type,e,i);if(h&&a.from<a.to){let u=z(a);if(u&&(e>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return ke(r,t,e,a,u,h,i)}}return we(r,t,e,o,l.type,s,i)}function ke(r,t,e,n,s,i,o){let l=n.parent,a={from:s.from,to:s.to},h=0,u=l?.cursor();if(u&&(e<0?u.childBefore(n.from):u.childAfter(n.to)))do if(e<0?u.to<=n.from:u.from>=n.to){if(h==0&&i.indexOf(u.type.name)>-1&&u.from<u.to){let c=z(u);return{start:a,end:c?{from:c.from,to:c.to}:void 0,matched:!0}}else if(j(u.type,e,o))h++;else if(j(u.type,-e,o)){if(h==0){let c=z(u);return{start:a,end:c&&c.from<c.to?{from:c.from,to:c.to}:void 0,matched:!1}}h--}}while(e<0?u.prevSibling():u.nextSibling());return{start:a,matched:!1}}function we(r,t,e,n,s,i,o){let l=e<0?r.sliceDoc(t-1,t):r.sliceDoc(t,t+1),a=o.indexOf(l);if(a<0||a%2==0!=e>0)return null;let h={from:e<0?t-1:t,to:e>0?t+1:t},u=r.doc.iterRange(t,e>0?r.doc.length:0),c=0;for(let w=0;!u.next().done&&w<=i;){let m=u.value;e<0&&(w+=m.length);let S=t+w*e;for(let T=e>0?0:m.length-1,Ot=e>0?m.length:-1;T!=Ot;T+=e){let M=o.indexOf(m[T]);if(!(M<0||n.resolveInner(S+T,1).type!=s))if(M%2==0==e>0)c++;else{if(c==1)return{start:h,end:{from:S+T,to:S+T+1},matched:M>>1==a>>1};c--}}e>0&&(w+=m.length)}return u.done?{start:h,matched:!1}:null}function nt(r,t,e,n=0,s=0){t==null&&(t=r.search(/[^\s\u00a0]/),t==-1&&(t=r.length));let i=s;for(let o=n;o<t;o++)r.charCodeAt(o)==9?i+=e-i%e:i++;return i}class Tt{constructor(t,e,n,s){this.string=t,this.tabSize=e,this.indentUnit=n,this.overrideIndent=s,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e=this.string.charAt(this.pos),n;if(typeof t=="string"?n=e==t:n=e&&(t instanceof RegExp?t.test(e):t(e)),n)return++this.pos,e}eatWhile(t){let e=this.pos;for(;this.eat(t););return this.pos>e}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return(t=this.overrideIndent)!==null&&t!==void 0?t:nt(this.string,null,this.tabSize)}match(t,e,n){if(typeof t=="string"){let s=o=>n?o.toLowerCase():o,i=this.string.substr(this.pos,t.length);return s(i)==s(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let s=this.string.slice(this.pos).match(t);return s&&s.index>0?null:(s&&e!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function be(r){return{name:r.name||"",token:r.token,blankLine:r.blankLine||(()=>{}),startState:r.startState||(()=>!0),copyState:r.copyState||ye,indent:r.indent||(()=>null),languageData:r.languageData||{},tokenTable:r.tokenTable||K,mergeTokens:r.mergeTokens!==!1}}function ye(r){if(typeof r!="object")return r;let t={};for(let e in r){let n=r[e];t[e]=n instanceof Array?n.slice():n}return t}const rt=new WeakMap;class xt extends p{constructor(t){let e=ut(t.languageData),n=be(t),s,i=new class extends ot{createParse(o,l,a){return new Pe(s,o,l,a)}};super(e,i,[],t.name),this.topNode=xe(e,this),s=this,this.streamParser=n,this.stateAfter=new g({perNode:!0}),this.tokenTable=t.tokenTable?new Dt(n.tokenTable):Te}static define(t){return new xt(t)}getIndent(t){let e,{overrideIndentation:n}=t.options;n&&(e=rt.get(t.state),e!=null&&e<t.pos-1e4&&(e=void 0));let s=G(this,t.node.tree,t.node.from,t.node.from,e??t.pos),i,o;if(s?(o=s.state,i=s.pos+1):(o=this.streamParser.startState(t.unit),i=t.node.from),t.pos-i>1e4)return null;for(;i<t.pos;){let a=t.state.doc.lineAt(i),h=Math.min(t.pos,a.to);if(a.length){let u=n?n(a.from):-1,c=new Tt(a.text,t.state.tabSize,t.unit,u<0?void 0:u);for(;c.pos<h-a.from;)Ct(this.streamParser.token,c,o)}else this.streamParser.blankLine(o,t.unit);if(h==t.pos)break;i=a.to+1}let l=t.lineAt(t.pos);return n&&e==null&&rt.set(t.state,l.from),this.streamParser.indent(o,/^\s*(.*)/.exec(l.text)[1],t)}get allowsNesting(){return!1}}function G(r,t,e,n,s){let i=e>=n&&e+t.length<=s&&t.prop(r.stateAfter);if(i)return{state:r.streamParser.copyState(i),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],a=e+t.positions[o],h=l instanceof d&&a<s&&G(r,l,a,n,s);if(h)return h}return null}function At(r,t,e,n,s){if(s&&e<=0&&n>=t.length)return t;!s&&e==0&&t.type==r.topNode&&(s=!0);for(let i=t.children.length-1;i>=0;i--){let o=t.positions[i],l=t.children[i],a;if(o<n&&l instanceof d){if(!(a=At(r,l,e-o,n-o,s)))break;return s?new d(t.type,t.children.slice(0,i).concat(a),t.positions.slice(0,i+1),o+a.length):a}}return null}function ve(r,t,e,n,s){for(let i of t){let o=i.from+(i.openStart?25:0),l=i.to-(i.openEnd?25:0),a=o<=e&&l>e&&G(r,i.tree,0-i.offset,e,l),h;if(a&&a.pos<=n&&(h=At(r,i.tree,e+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:h}}return{state:r.streamParser.startState(s?B(s):4),tree:d.empty}}class Pe{constructor(t,e,n,s){this.lang=t,this.input=e,this.fragments=n,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let i=x.get(),o=s[0].from,{state:l,tree:a}=ve(t,n,o,this.to,i?.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let h=0;h<a.children.length;h++)this.chunks.push(a.children[h]),this.chunkPos.push(a.positions[h]);i&&this.parsedPos<i.viewport.from-1e5&&s.some(h=>h.from<=i.viewport.from&&h.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(B(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let t=x.get(),e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(e,this.chunkStart+512);for(t&&(n=Math.min(n,t.viewport.to));this.parsedPos<n;)this.parseLine(t);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==`
|
|
2
2
|
`&&(e="");else{let n=e.indexOf(`
|
|
3
|
-
`);n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let s=this.rangeIndex;;){let i=this.ranges[s].to;if(i>=n||(e=e.slice(0,i-(n-e.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);e+=l,n=o+l.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let s=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?s>i:s>=i)break;let o=this.ranges[++this.rangeIndex].from;e+=o-s}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(t,e,n,s){let i=4;if(this.ranges.length>1){s=this.skipGapsTo(e,s,1),e+=s;let l=this.chunk.length;s=this.skipGapsTo(n,s,-1),n+=s,i+=this.chunk.length-l}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&i==4&&o>=0&&this.chunk[o]==t&&this.chunk[o+2]==e?this.chunk[o+2]=n:this.chunk.push(t,e,n,i),s}parseLine(t){let{line:e,end:n}=this.nextLine(),s=0,{streamParser:i}=this.lang,o=new Tt(e,t?t.state.tabSize:4,t?B(t.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=Ct(i.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,s)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let t=d.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Se,topID:0,maxBufferLength:512,reused:this.chunkReused});t=new d(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(t),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new d(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function Ct(r,t,e){t.start=t.pos;for(let n=0;n<10;n++){let s=r(t,e);if(t.pos>t.start)return s}throw new Error("Stream parser failed to advance stream.")}const K=Object.create(null),D=[L.none],Se=new Bt(D),st=[],it=Object.create(null),It=Object.create(null);for(let[r,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])It[r]=Nt(K,t);class Dt{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),It)}resolve(t){return t?this.table[t]||(this.table[t]=Nt(this.extra,t)):0}}const Te=new Dt(K);function H(r,t){st.indexOf(r)>-1||(st.push(r),console.warn(t))}function Nt(r,t){let e=[];for(let l of t.split(" ")){let a=[];for(let h of l.split(".")){let u=r[h]||f[h];u?typeof u=="function"?a.length?a=a.map(u):H(h,`Modifier ${h} used at start of tag`):a.length?H(h,`Tag ${h} used as modifier`):a=Array.isArray(u)?u:[u]:H(h,`Unknown highlighting tag ${h}`)}for(let h of a)e.push(h)}if(!e.length)return 0;let n=t.replace(/ /g,"_"),s=n+" "+e.map(l=>l.id),i=it[s];if(i)return i.id;let o=it[s]=L.define({id:D.length,name:n,props:[Ht({[n]:e})]});return D.push(o),o.id}function xe(r,t){let e=L.define({id:D.length,name:"Document",props:[v.add(()=>r),gt.add(()=>n=>t.getIndent(n))],top:!0});return D.push(e),e}X.RTL,X.LTR;export{F as H,pt as I,Le as L,x as P,xt as S,Ut as a,U as b,gt as c,We as d,Me as e,Re as f,_t as g,Ve as h,dt as i,ut as j,me as k,Zt as l,p as m,v as n,ct as o,Fe as p,Ee as q,je as r,k as s,B as t,He as u,$t as v,Tt as w,Ue as x
|
|
3
|
+
`);n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let s=this.rangeIndex;;){let i=this.ranges[s].to;if(i>=n||(e=e.slice(0,i-(n-e.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);e+=l,n=o+l.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let s=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?s>i:s>=i)break;let o=this.ranges[++this.rangeIndex].from;e+=o-s}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(t,e,n,s){let i=4;if(this.ranges.length>1){s=this.skipGapsTo(e,s,1),e+=s;let l=this.chunk.length;s=this.skipGapsTo(n,s,-1),n+=s,i+=this.chunk.length-l}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&i==4&&o>=0&&this.chunk[o]==t&&this.chunk[o+2]==e?this.chunk[o+2]=n:this.chunk.push(t,e,n,i),s}parseLine(t){let{line:e,end:n}=this.nextLine(),s=0,{streamParser:i}=this.lang,o=new Tt(e,t?t.state.tabSize:4,t?B(t.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=Ct(i.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,s)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let t=d.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Se,topID:0,maxBufferLength:512,reused:this.chunkReused});t=new d(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(t),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new d(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function Ct(r,t,e){t.start=t.pos;for(let n=0;n<10;n++){let s=r(t,e);if(t.pos>t.start)return s}throw new Error("Stream parser failed to advance stream.")}const K=Object.create(null),D=[L.none],Se=new Bt(D),st=[],it=Object.create(null),It=Object.create(null);for(let[r,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])It[r]=Nt(K,t);class Dt{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),It)}resolve(t){return t?this.table[t]||(this.table[t]=Nt(this.extra,t)):0}}const Te=new Dt(K);function H(r,t){st.indexOf(r)>-1||(st.push(r),console.warn(t))}function Nt(r,t){let e=[];for(let l of t.split(" ")){let a=[];for(let h of l.split(".")){let u=r[h]||f[h];u?typeof u=="function"?a.length?a=a.map(u):H(h,`Modifier ${h} used at start of tag`):a.length?H(h,`Tag ${h} used as modifier`):a=Array.isArray(u)?u:[u]:H(h,`Unknown highlighting tag ${h}`)}for(let h of a)e.push(h)}if(!e.length)return 0;let n=t.replace(/ /g,"_"),s=n+" "+e.map(l=>l.id),i=it[s];if(i)return i.id;let o=it[s]=L.define({id:D.length,name:n,props:[Ht({[n]:e})]});return D.push(o),o.id}function xe(r,t){let e=L.define({id:D.length,name:"Document",props:[v.add(()=>r),gt.add(()=>n=>t.getIndent(n))],top:!0});return D.push(e),e}X.RTL,X.LTR;export{F as H,pt as I,Le as L,x as P,xt as S,Ut as a,U as b,gt as c,We as d,Me as e,Re as f,_t as g,Ve as h,dt as i,ut as j,me as k,Zt as l,p as m,v as n,ct as o,Fe as p,Ee as q,je as r,k as s,B as t,He as u,$t as v,Tt as w,Ue as x,$e as y,Oe as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-codemirror-lang-sql-
|
|
2
|
-
import{_ as o}from"./vendor-vite-runtime-DD1OZmLC.js";import{o as t,L as i,S as a}from"./vendor-codemirror-language-E2vgV9K3.js";function n(e){return new i(a.define(e))}function r(e){return o(()=>import("./vendor-codemirror-lang-sql-B1BRhQSF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(_=>_.sql({dialect:_[e]}))}const l=[t.of({name:"C",extensions:["c","h","ino"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BGCWj7Om.js"),__vite__mapDeps([12,13,10,2,9,1,3,4,5,6,7,8])).then(e=>e.cpp())}}),t.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BGCWj7Om.js"),__vite__mapDeps([12,13,10,2,9,1,3,4,5,6,7,8])).then(e=>e.cpp())}}),t.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return r("Cassandra")}}),t.of({name:"CSS",extensions:["css"],load(){return o(()=>import("./vendor-codemirror-lang-css-Ba8JZ6fp.js"),__vite__mapDeps([14,15,10,2,9,1,3,4,5,6,7,8])).then(e=>e.css())}}),t.of({name:"Go",extensions:["go"],load(){return o(()=>import("./vendor-codemirror-lang-go-DyTiHXo4.js"),__vite__mapDeps([16,17,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.go())}}),t.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return o(()=>import("./vendor-codemirror-lang-html-DK27qQri.js"),__vite__mapDeps([18,19,10,2,9,14,15,1,3,4,5,6,7,8,20,21,11])).then(e=>e.html())}}),t.of({name:"Java",extensions:["java"],load(){return o(()=>import("./vendor-codemirror-lang-java-CvFfnhPQ.js"),__vite__mapDeps([22,23,10,2,9,1,3,4,5,6,7,8])).then(e=>e.java())}}),t.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-BUlYhQ3o.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript())}}),t.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return o(()=>import("./vendor-codemirror-lang-jinja-wBMtAEvT.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.jinja())}}),t.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return o(()=>import("./vendor-codemirror-lang-json-CqayksDf.js"),__vite__mapDeps([25,26,10,2,9,1,3,4,5,6,7,8])).then(e=>e.json())}}),t.of({name:"JSX",extensions:["jsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-BUlYhQ3o.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({jsx:!0}))}}),t.of({name:"LESS",extensions:["less"],load(){return o(()=>import("./vendor-codemirror-lang-less-Ct3-H1PB.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,14,15,10])).then(e=>e.less())}}),t.of({name:"Liquid",extensions:["liquid"],load(){return o(()=>import("./vendor-codemirror-lang-liquid-XspREksq.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.liquid())}}),t.of({name:"MariaDB SQL",load(){return r("MariaSQL")}}),t.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return o(()=>import("./vendor-codemirror-lang-markdown-CvO36Y1p.js"),__vite__mapDeps([29,3,4,5,6,7,8,1,2,9,11,30,18,19,10,14,15,20,21])).then(e=>e.markdown())}}),t.of({name:"MS SQL",load(){return r("MSSQL")}}),t.of({name:"MySQL",load(){return r("MySQL")}}),t.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return o(()=>import("./vendor-codemirror-lang-php-BlUF9cCe.js"),__vite__mapDeps([31,32,10,2,9,18,19,14,15,1,3,4,5,6,7,8,20,21,11])).then(e=>e.php())}}),t.of({name:"PLSQL",extensions:["pls"],load(){return r("PLSQL")}}),t.of({name:"PostgreSQL",load(){return r("PostgreSQL")}}),t.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import("./vendor-codemirror-lang-python-_2bIYTiJ.js"),__vite__mapDeps([33,34,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.python())}}),t.of({name:"Rust",extensions:["rs"],load(){return o(()=>import("./vendor-codemirror-lang-rust-BdTYih_U.js"),__vite__mapDeps([35,36,10,2,9,1,3,4,5,6,7,8])).then(e=>e.rust())}}),t.of({name:"Sass",extensions:["sass"],load(){return o(()=>import("./vendor-codemirror-lang-sass-E6MhfOFk.js"),__vite__mapDeps([37,38,10,2,9,1,3,4,5,6,7,8,14,15])).then(e=>e.sass({indented:!0}))}}),t.of({name:"SCSS",extensions:["scss"],load(){return o(()=>import("./vendor-codemirror-lang-sass-E6MhfOFk.js"),__vite__mapDeps([37,38,10,2,9,1,3,4,5,6,7,8,14,15])).then(e=>e.sass())}}),t.of({name:"SQL",extensions:["sql"],load(){return r("StandardSQL")}}),t.of({name:"SQLite",load(){return r("SQLite")}}),t.of({name:"TSX",extensions:["tsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-BUlYhQ3o.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),t.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-BUlYhQ3o.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({typescript:!0}))}}),t.of({name:"WebAssembly",extensions:["wat","wast"],load(){return o(()=>import("./vendor-codemirror-lang-wast-D706yuyC.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10])).then(e=>e.wast())}}),t.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return o(()=>import("./vendor-codemirror-lang-xml--MfWU6Dj.js"),__vite__mapDeps([40,41,10,2,9,1,3,4,5,6,7,8])).then(e=>e.xml())}}),t.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return o(()=>import("./vendor-codemirror-lang-yaml-CRUFIbRX.js"),__vite__mapDeps([42,43,10,2,9,1,3,4,5,6,7,8])).then(e=>e.yaml())}}),t.of({name:"APL",extensions:["dyalog","apl"],load(){return o(()=>import("./apl-B4CMkyY2.js"),[]).then(e=>n(e.apl))}}),t.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return o(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(e=>n(e.asciiArmor))}}),t.of({name:"ASN.1",extensions:["asn","asn1"],load(){return o(()=>import("./asn1-EdZsLKOL.js"),[]).then(e=>n(e.asn1({})))}}),t.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return o(()=>import("./asterisk-B-8jnY81.js"),[]).then(e=>n(e.asterisk))}}),t.of({name:"Brainfuck",extensions:["b","bf"],load(){return o(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(e=>n(e.brainfuck))}}),t.of({name:"Cobol",extensions:["cob","cpy"],load(){return o(()=>import("./cobol-CWcv1MsR.js"),[]).then(e=>n(e.cobol))}}),t.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.csharp))}}),t.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"ClojureScript",extensions:["cljs"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return o(()=>import("./css-BnMrqG3P.js"),[]).then(e=>n(e.gss))}}),t.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return o(()=>import("./cmake-BQqOBYOt.js"),[]).then(e=>n(e.cmake))}}),t.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return o(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(e=>n(e.coffeeScript))}}),t.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return o(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(e=>n(e.commonLisp))}}),t.of({name:"Cypher",extensions:["cyp","cypher"],load(){return o(()=>import("./cypher-C_CwsFkJ.js"),[]).then(e=>n(e.cypher))}}),t.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return o(()=>import("./python-Cso5vRIg.js"),[]).then(e=>n(e.cython))}}),t.of({name:"Crystal",extensions:["cr"],load(){return o(()=>import("./crystal-SjHAIU92.js"),[]).then(e=>n(e.crystal))}}),t.of({name:"D",extensions:["d"],load(){return o(()=>import("./d-pRatUO7H.js"),[]).then(e=>n(e.d))}}),t.of({name:"Dart",extensions:["dart"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.dart))}}),t.of({name:"diff",extensions:["diff","patch"],load(){return o(()=>import("./diff-DbItnlRl.js"),[]).then(e=>n(e.diff))}}),t.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return o(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([44,45])).then(e=>n(e.dockerFile))}}),t.of({name:"DTD",extensions:["dtd"],load(){return o(()=>import("./dtd-DF_7sFjM.js"),[]).then(e=>n(e.dtd))}}),t.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return o(()=>import("./dylan-DwRh75JA.js"),[]).then(e=>n(e.dylan))}}),t.of({name:"EBNF",load(){return o(()=>import("./ebnf-CDyGwa7X.js"),[]).then(e=>n(e.ebnf))}}),t.of({name:"ECL",extensions:["ecl"],load(){return o(()=>import("./ecl-Cabwm37j.js"),[]).then(e=>n(e.ecl))}}),t.of({name:"edn",extensions:["edn"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Eiffel",extensions:["e"],load(){return o(()=>import("./eiffel-CnydiIhH.js"),[]).then(e=>n(e.eiffel))}}),t.of({name:"Elm",extensions:["elm"],load(){return o(()=>import("./elm-vLlmbW-K.js"),[]).then(e=>n(e.elm))}}),t.of({name:"Erlang",extensions:["erl"],load(){return o(()=>import("./erlang-BNw1qcRV.js"),[]).then(e=>n(e.erlang))}}),t.of({name:"Esper",load(){return o(()=>import("./sql-D0XecflT.js"),[]).then(e=>n(e.esper))}}),t.of({name:"Factor",extensions:["factor"],load(){return o(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([46,45])).then(e=>n(e.factor))}}),t.of({name:"FCL",load(){return o(()=>import("./fcl-Kvtd6kyn.js"),[]).then(e=>n(e.fcl))}}),t.of({name:"Forth",extensions:["forth","fth","4th"],load(){return o(()=>import("./forth-Ffai-XNe.js"),[]).then(e=>n(e.forth))}}),t.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return o(()=>import("./fortran-DYz_wnZ1.js"),[]).then(e=>n(e.fortran))}}),t.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.fSharp))}}),t.of({name:"Gas",extensions:["s"],load(){return o(()=>import("./gas-Bneqetm1.js"),[]).then(e=>n(e.gas))}}),t.of({name:"Gherkin",extensions:["feature"],load(){return o(()=>import("./gherkin-heZmZLOM.js"),[]).then(e=>n(e.gherkin))}}),t.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return o(()=>import("./groovy-D9Dt4D0W.js"),[]).then(e=>n(e.groovy))}}),t.of({name:"Haskell",extensions:["hs"],load(){return o(()=>import("./haskell-Cw1EW3IL.js"),[]).then(e=>n(e.haskell))}}),t.of({name:"Haxe",extensions:["hx"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.haxe))}}),t.of({name:"HXML",extensions:["hxml"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.hxml))}}),t.of({name:"HTTP",load(){return o(()=>import("./http-DBlCnlav.js"),[]).then(e=>n(e.http))}}),t.of({name:"IDL",extensions:["pro"],load(){return o(()=>import("./idl-BEugSyMb.js"),[]).then(e=>n(e.idl))}}),t.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return o(()=>import("./javascript-BO_2ioGC.js"),[]).then(e=>n(e.jsonld))}}),t.of({name:"Julia",extensions:["jl"],load(){return o(()=>import("./julia-DuME0IfC.js"),[]).then(e=>n(e.julia))}}),t.of({name:"Kotlin",extensions:["kt","kts"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.kotlin))}}),t.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return o(()=>import("./livescript-BwQOo05w.js"),[]).then(e=>n(e.liveScript))}}),t.of({name:"Lua",extensions:["lua"],load(){return o(()=>import("./lua-BgMRiT3U.js"),[]).then(e=>n(e.lua))}}),t.of({name:"mIRC",extensions:["mrc"],load(){return o(()=>import("./mirc-CjQqDB4T.js"),[]).then(e=>n(e.mirc))}}),t.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return o(()=>import("./mathematica-DTrFuWx2.js"),[]).then(e=>n(e.mathematica))}}),t.of({name:"Modelica",extensions:["mo"],load(){return o(()=>import("./modelica-Dc1JOy9r.js"),[]).then(e=>n(e.modelica))}}),t.of({name:"MUMPS",extensions:["mps"],load(){return o(()=>import("./mumps-BT43cFF4.js"),[]).then(e=>n(e.mumps))}}),t.of({name:"Mbox",extensions:["mbox"],load(){return o(()=>import("./mbox-CNhZ1qSd.js"),[]).then(e=>n(e.mbox))}}),t.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return o(()=>import("./nginx-DdIZxoE0.js"),[]).then(e=>n(e.nginx))}}),t.of({name:"NSIS",extensions:["nsh","nsi"],load(){return o(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([47,45])).then(e=>n(e.nsis))}}),t.of({name:"NTriples",extensions:["nt","nq"],load(){return o(()=>import("./ntriples-BfvgReVJ.js"),[]).then(e=>n(e.ntriples))}}),t.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveC))}}),t.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveCpp))}}),t.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.oCaml))}}),t.of({name:"Octave",extensions:["m"],load(){return o(()=>import("./octave-CWZ4xMHY.js"),[]).then(e=>n(e.octave))}}),t.of({name:"Oz",extensions:["oz"],load(){return o(()=>import("./oz-BzwKVEFT.js"),[]).then(e=>n(e.oz))}}),t.of({name:"Pascal",extensions:["p","pas"],load(){return o(()=>import("./pascal--L3eBynH.js"),[]).then(e=>n(e.pascal))}}),t.of({name:"Perl",extensions:["pl","pm"],load(){return o(()=>import("./perl-CdXCOZ3F.js"),[]).then(e=>n(e.perl))}}),t.of({name:"Pig",extensions:["pig"],load(){return o(()=>import("./pig-CevX1Tat.js"),[]).then(e=>n(e.pig))}}),t.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return o(()=>import("./powershell-CFHJl5sT.js"),[]).then(e=>n(e.powerShell))}}),t.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return o(()=>import("./properties-C78fOPTZ.js"),[]).then(e=>n(e.properties))}}),t.of({name:"ProtoBuf",extensions:["proto"],load(){return o(()=>import("./protobuf-ChK-085T.js"),[]).then(e=>n(e.protobuf))}}),t.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return o(()=>import("./pug-CIGw5rlb.js"),__vite__mapDeps([48,49])).then(e=>n(e.pug))}}),t.of({name:"Puppet",extensions:["pp"],load(){return o(()=>import("./puppet-DMA9R1ak.js"),[]).then(e=>n(e.puppet))}}),t.of({name:"Q",extensions:["q"],load(){return o(()=>import("./q-pXgVlZs6.js"),[]).then(e=>n(e.q))}}),t.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return o(()=>import("./r-B6wPVr8A.js"),[]).then(e=>n(e.r))}}),t.of({name:"RPM Changes",load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmChanges))}}),t.of({name:"RPM Spec",extensions:["spec"],load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmSpec))}}),t.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import("./ruby-B2Rjki9n.js"),[]).then(e=>n(e.ruby))}}),t.of({name:"SAS",extensions:["sas"],load(){return o(()=>import("./sas-B4kiWyti.js"),[]).then(e=>n(e.sas))}}),t.of({name:"Scala",extensions:["scala"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.scala))}}),t.of({name:"Scheme",extensions:["scm","ss"],load(){return o(()=>import("./scheme-C41bIUwD.js"),[]).then(e=>n(e.scheme))}}),t.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return o(()=>import("./WindowsWindowControls-CCnU0ckO.js").then(e=>e.eq),__vite__mapDeps([50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,1,2,3,4,5,6,7,8,9,20,21,10,11,25,26,14,15,18,19,29,30,33,34,97,98,99,100,101,102,103,104])).then(e=>n(e.shell))}}),t.of({name:"Sieve",extensions:["siv","sieve"],load(){return o(()=>import("./sieve-C3Gn_uJK.js"),[]).then(e=>n(e.sieve))}}),t.of({name:"Smalltalk",extensions:["st"],load(){return o(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(e=>n(e.smalltalk))}}),t.of({name:"Solr",load(){return o(()=>import("./solr-DehyRSwq.js"),[]).then(e=>n(e.solr))}}),t.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.sml))}}),t.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return o(()=>import("./sparql-DkYu6x3z.js"),[]).then(e=>n(e.sparql))}}),t.of({name:"Spreadsheet",alias:["excel","formula"],load(){return o(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(e=>n(e.spreadsheet))}}),t.of({name:"Squirrel",extensions:["nut"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.squirrel))}}),t.of({name:"Stylus",extensions:["styl"],load(){return o(()=>import("./stylus-B533Al4x.js"),[]).then(e=>n(e.stylus))}}),t.of({name:"Swift",extensions:["swift"],load(){return o(()=>import("./swift-BzpIVaGY.js"),[]).then(e=>n(e.swift))}}),t.of({name:"sTeX",load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"Tcl",extensions:["tcl"],load(){return o(()=>import("./tcl-DVfN8rqt.js"),[]).then(e=>n(e.tcl))}}),t.of({name:"Textile",extensions:["textile"],load(){return o(()=>import("./textile-CnDTJFAw.js"),[]).then(e=>n(e.textile))}}),t.of({name:"TiddlyWiki",load(){return o(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(e=>n(e.tiddlyWiki))}}),t.of({name:"Tiki wiki",load(){return o(()=>import("./tiki-DGYXhP31.js"),[]).then(e=>n(e.tiki))}}),t.of({name:"TOML",extensions:["toml"],load(){return o(()=>import("./toml-Bm5Em-hy.js"),[]).then(e=>n(e.toml))}}),t.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return o(()=>import("./troff-wAsdV37c.js"),[]).then(e=>n(e.troff))}}),t.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return o(()=>import("./ttcn-CfJYG6tj.js"),[]).then(e=>n(e.ttcn))}}),t.of({name:"TTCN_CFG",extensions:["cfg"],load(){return o(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(e=>n(e.ttcnCfg))}}),t.of({name:"Turtle",extensions:["ttl"],load(){return o(()=>import("./turtle-B1tBg_DP.js"),[]).then(e=>n(e.turtle))}}),t.of({name:"Web IDL",extensions:["webidl"],load(){return o(()=>import("./webidl-ZXfAyPTL.js"),[]).then(e=>n(e.webIDL))}}),t.of({name:"VB.NET",extensions:["vb"],load(){return o(()=>import("./vb-CmGdzxic.js"),[]).then(e=>n(e.vb))}}),t.of({name:"VBScript",extensions:["vbs"],load(){return o(()=>import("./vbscript-BuJXcnF6.js"),[]).then(e=>n(e.vbScript))}}),t.of({name:"Velocity",extensions:["vtl"],load(){return o(()=>import("./velocity-D8B20fx6.js"),[]).then(e=>n(e.velocity))}}),t.of({name:"Verilog",extensions:["v"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return o(()=>import("./vhdl-lSbBsy5d.js"),[]).then(e=>n(e.vhdl))}}),t.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return o(()=>import("./xquery-DzFWVndE.js"),[]).then(e=>n(e.xQuery))}}),t.of({name:"Yacas",extensions:["ys"],load(){return o(()=>import("./yacas-BJ4BC0dw.js"),[]).then(e=>n(e.yacas))}}),t.of({name:"Z80",extensions:["z80"],load(){return o(()=>import("./z80-Hz9HOZM7.js"),[]).then(e=>n(e.z80))}}),t.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.mscgen))}}),t.of({name:"Xù",extensions:["xu"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.xu))}}),t.of({name:"MsGenny",extensions:["msgenny"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.msgenny))}}),t.of({name:"Vue",extensions:["vue"],load(){return o(()=>import("./vendor-codemirror-lang-vue-BYQJRa1Q.js"),__vite__mapDeps([105,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.vue())}}),t.of({name:"Angular Template",load(){return o(()=>import("./vendor-codemirror-lang-angular-ADhO_TUK.js"),__vite__mapDeps([106,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.angular())}})];export{l};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-codemirror-lang-sql-HpQWHJjv.js","assets/vendor-codemirror-language-BByA_dGF.js","assets/vendor-lezer-common-B3-cUCR_.js","assets/vendor-codemirror-state-CNWM3Q8V.js","assets/vendor-marijn-find-cluster-break-DXwl3gUT.js","assets/vendor-codemirror-view-Ct4T37Ue.js","assets/vendor-style-mod-NZ5MEPvj.js","assets/vendor-w3c-keyname-Vcq4gwWv.js","assets/vendor-crelt-C8TCjufn.js","assets/vendor-lezer-highlight-CDMHUZ74.js","assets/vendor-lezer-lr-bhwg1HMg.js","assets/vendor-codemirror-autocomplete-wd6iRebq.js","assets/vendor-codemirror-lang-cpp-CmIT9Z5_.js","assets/vendor-lezer-cpp-BleAU9o-.js","assets/vendor-codemirror-lang-css-djiuoTi8.js","assets/vendor-lezer-css-C5xB6jxd.js","assets/vendor-codemirror-lang-go-COZSwZYW.js","assets/vendor-lezer-go-CXK1UKk8.js","assets/vendor-codemirror-lang-html-CKHqhW5R.js","assets/vendor-lezer-html-C0I1p52t.js","assets/vendor-codemirror-lang-javascript-DuOEwJ3f.js","assets/vendor-lezer-javascript-D7Tj24ot.js","assets/vendor-codemirror-lang-java-CNMP5hyC.js","assets/vendor-lezer-java-D_zzj-NV.js","assets/vendor-codemirror-lang-jinja-DaKn_b1k.js","assets/vendor-codemirror-lang-json-CZ07HmNC.js","assets/vendor-lezer-json-Iaex0UN-.js","assets/vendor-codemirror-lang-less-wJdQiDBf.js","assets/vendor-codemirror-lang-liquid-0z48Roi8.js","assets/vendor-codemirror-lang-markdown-DtcZDGqe.js","assets/vendor-lezer-markdown-C6g-d6P3.js","assets/vendor-codemirror-lang-php-W8plS-JQ.js","assets/vendor-lezer-php-_DHrbsZG.js","assets/vendor-codemirror-lang-python-DzzokVau.js","assets/vendor-lezer-python-CvuFxeZl.js","assets/vendor-codemirror-lang-rust-C4ulBVpf.js","assets/vendor-lezer-rust-Lqgd5SAo.js","assets/vendor-codemirror-lang-sass-BkZJYEwS.js","assets/vendor-lezer-sass-Dnm2lY4t.js","assets/vendor-codemirror-lang-wast-DoABsogh.js","assets/vendor-codemirror-lang-xml-BhLJhOCH.js","assets/vendor-lezer-xml-hUDuAyS5.js","assets/vendor-codemirror-lang-yaml-D95i1Y5R.js","assets/vendor-lezer-yaml-BNIl6S_O.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LdVXkNf5.js","assets/pug-CIGw5rlb.js","assets/javascript-BO_2ioGC.js","assets/useAppFontEffects-CYzYRbLp.js","assets/vendor-zustand-GVb4H8HE.js","assets/vendor-react-B5Z1Mdn3.js","assets/vendor-scheduler-7OC5HNn7.js","assets/index-CaP8oFLB.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-tailwind-merge-CPcsbTWB.js","assets/vendor-fuse.js-Dw8P0qyA.js","assets/index-Dq8CnRYM.css","assets/vendor-base-ui-vkqQ2P9o.js","assets/vendor-floating-ui-utils-BzXdqYpP.js","assets/vendor-floating-ui-react-dom-BZOGXAGe.js","assets/vendor-floating-ui-dom-WyXykhNi.js","assets/vendor-floating-ui-core-CXmKXOXc.js","assets/vendor-use-sync-external-store-D0AXkdQC.js","assets/vendor-simplewebauthn-browser-VDA66rT_.js","assets/vendor-sonner-BDtm25td.js","assets/vendor-vite-runtime-DD1OZmLC.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/runtimeSurface-B818u-_c.js","assets/vendor-dnd-kit-core-CP8ck10N.js","assets/vendor-dnd-kit-utilities-DTY1C6ST.js","assets/vendor-dnd-kit-accessibility-DZKKhs9S.js","assets/vendor-dnd-kit-sortable-B-Icjoj4.js","assets/vendor-cmdk-zXx6sGnS.js","assets/vendor-radix-ui-react-dialog-D2yhEu2p.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-8xy6TJML.js","assets/vendor-radix-ui-react-context-CFsX-AUC.js","assets/vendor-radix-ui-react-id-D2kS9K1j.js","assets/vendor-radix-ui-react-use-layout-effect-C8Yrsaph.js","assets/vendor-radix-ui-react-use-controllable-state-LiqmKSXO.js","assets/vendor-radix-ui-react-dismissable-layer-DrorBNg9.js","assets/vendor-radix-ui-react-primitive-DkH8dMOR.js","assets/vendor-radix-ui-react-slot-BIDFZX0-.js","assets/vendor-radix-ui-react-use-callback-ref-BwDcSoGV.js","assets/vendor-radix-ui-react-use-escape-keydown-DTkqjenV.js","assets/vendor-radix-ui-react-focus-scope-D2BkImwt.js","assets/vendor-radix-ui-react-portal-YgCRIyi7.js","assets/vendor-radix-ui-react-presence-D432pCMB.js","assets/vendor-radix-ui-react-focus-guards-BfdFmL7c.js","assets/vendor-react-remove-scroll-vR1dy1aP.js","assets/vendor-tslib-De9GV7Vy.js","assets/vendor-react-remove-scroll-bar-CSAHp1YF.js","assets/vendor-react-style-singleton-Ctw6HnYx.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-Vv4V8Nd1.js","assets/vendor-use-callback-ref-CVVuCyLj.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-codemirror-commands-DYppkHEk.js","assets/vendor-tanstack-react-virtual-2skouoFw.js","assets/vendor-tanstack-virtual-core-Dubg10g5.js","assets/vendor-framer-motion-BUygY0oN.js","assets/vendor-motion-dom-DJLgZh4Q.js","assets/vendor-motion-utils-BGh8QBgx.js","assets/vendor-codemirror-lang-vue-DiBPljCc.js","assets/vendor-codemirror-lang-angular-DU_4KiiW.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as o}from"./vendor-vite-runtime-DD1OZmLC.js";import{o as t,L as i,S as a}from"./vendor-codemirror-language-BByA_dGF.js";function n(e){return new i(a.define(e))}function r(e){return o(()=>import("./vendor-codemirror-lang-sql-HpQWHJjv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(_=>_.sql({dialect:_[e]}))}const l=[t.of({name:"C",extensions:["c","h","ino"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-CmIT9Z5_.js"),__vite__mapDeps([12,13,10,2,9,1,3,4,5,6,7,8])).then(e=>e.cpp())}}),t.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-CmIT9Z5_.js"),__vite__mapDeps([12,13,10,2,9,1,3,4,5,6,7,8])).then(e=>e.cpp())}}),t.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return r("Cassandra")}}),t.of({name:"CSS",extensions:["css"],load(){return o(()=>import("./vendor-codemirror-lang-css-djiuoTi8.js"),__vite__mapDeps([14,15,10,2,9,1,3,4,5,6,7,8])).then(e=>e.css())}}),t.of({name:"Go",extensions:["go"],load(){return o(()=>import("./vendor-codemirror-lang-go-COZSwZYW.js"),__vite__mapDeps([16,17,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.go())}}),t.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return o(()=>import("./vendor-codemirror-lang-html-CKHqhW5R.js"),__vite__mapDeps([18,19,10,2,9,14,15,1,3,4,5,6,7,8,20,21,11])).then(e=>e.html())}}),t.of({name:"Java",extensions:["java"],load(){return o(()=>import("./vendor-codemirror-lang-java-CNMP5hyC.js"),__vite__mapDeps([22,23,10,2,9,1,3,4,5,6,7,8])).then(e=>e.java())}}),t.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-DuOEwJ3f.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript())}}),t.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return o(()=>import("./vendor-codemirror-lang-jinja-DaKn_b1k.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.jinja())}}),t.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return o(()=>import("./vendor-codemirror-lang-json-CZ07HmNC.js"),__vite__mapDeps([25,26,10,2,9,1,3,4,5,6,7,8])).then(e=>e.json())}}),t.of({name:"JSX",extensions:["jsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-DuOEwJ3f.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({jsx:!0}))}}),t.of({name:"LESS",extensions:["less"],load(){return o(()=>import("./vendor-codemirror-lang-less-wJdQiDBf.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,14,15,10])).then(e=>e.less())}}),t.of({name:"Liquid",extensions:["liquid"],load(){return o(()=>import("./vendor-codemirror-lang-liquid-0z48Roi8.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.liquid())}}),t.of({name:"MariaDB SQL",load(){return r("MariaSQL")}}),t.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return o(()=>import("./vendor-codemirror-lang-markdown-DtcZDGqe.js"),__vite__mapDeps([29,3,4,5,6,7,8,1,2,9,11,30,18,19,10,14,15,20,21])).then(e=>e.markdown())}}),t.of({name:"MS SQL",load(){return r("MSSQL")}}),t.of({name:"MySQL",load(){return r("MySQL")}}),t.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return o(()=>import("./vendor-codemirror-lang-php-W8plS-JQ.js"),__vite__mapDeps([31,32,10,2,9,18,19,14,15,1,3,4,5,6,7,8,20,21,11])).then(e=>e.php())}}),t.of({name:"PLSQL",extensions:["pls"],load(){return r("PLSQL")}}),t.of({name:"PostgreSQL",load(){return r("PostgreSQL")}}),t.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import("./vendor-codemirror-lang-python-DzzokVau.js"),__vite__mapDeps([33,34,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.python())}}),t.of({name:"Rust",extensions:["rs"],load(){return o(()=>import("./vendor-codemirror-lang-rust-C4ulBVpf.js"),__vite__mapDeps([35,36,10,2,9,1,3,4,5,6,7,8])).then(e=>e.rust())}}),t.of({name:"Sass",extensions:["sass"],load(){return o(()=>import("./vendor-codemirror-lang-sass-BkZJYEwS.js"),__vite__mapDeps([37,38,10,2,9,1,3,4,5,6,7,8,14,15])).then(e=>e.sass({indented:!0}))}}),t.of({name:"SCSS",extensions:["scss"],load(){return o(()=>import("./vendor-codemirror-lang-sass-BkZJYEwS.js"),__vite__mapDeps([37,38,10,2,9,1,3,4,5,6,7,8,14,15])).then(e=>e.sass())}}),t.of({name:"SQL",extensions:["sql"],load(){return r("StandardSQL")}}),t.of({name:"SQLite",load(){return r("SQLite")}}),t.of({name:"TSX",extensions:["tsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-DuOEwJ3f.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),t.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-DuOEwJ3f.js"),__vite__mapDeps([20,21,10,2,9,1,3,4,5,6,7,8,11])).then(e=>e.javascript({typescript:!0}))}}),t.of({name:"WebAssembly",extensions:["wat","wast"],load(){return o(()=>import("./vendor-codemirror-lang-wast-DoABsogh.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10])).then(e=>e.wast())}}),t.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return o(()=>import("./vendor-codemirror-lang-xml-BhLJhOCH.js"),__vite__mapDeps([40,41,10,2,9,1,3,4,5,6,7,8])).then(e=>e.xml())}}),t.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return o(()=>import("./vendor-codemirror-lang-yaml-D95i1Y5R.js"),__vite__mapDeps([42,43,10,2,9,1,3,4,5,6,7,8])).then(e=>e.yaml())}}),t.of({name:"APL",extensions:["dyalog","apl"],load(){return o(()=>import("./apl-B4CMkyY2.js"),[]).then(e=>n(e.apl))}}),t.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return o(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(e=>n(e.asciiArmor))}}),t.of({name:"ASN.1",extensions:["asn","asn1"],load(){return o(()=>import("./asn1-EdZsLKOL.js"),[]).then(e=>n(e.asn1({})))}}),t.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return o(()=>import("./asterisk-B-8jnY81.js"),[]).then(e=>n(e.asterisk))}}),t.of({name:"Brainfuck",extensions:["b","bf"],load(){return o(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(e=>n(e.brainfuck))}}),t.of({name:"Cobol",extensions:["cob","cpy"],load(){return o(()=>import("./cobol-CWcv1MsR.js"),[]).then(e=>n(e.cobol))}}),t.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.csharp))}}),t.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"ClojureScript",extensions:["cljs"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return o(()=>import("./css-BnMrqG3P.js"),[]).then(e=>n(e.gss))}}),t.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return o(()=>import("./cmake-BQqOBYOt.js"),[]).then(e=>n(e.cmake))}}),t.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return o(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(e=>n(e.coffeeScript))}}),t.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return o(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(e=>n(e.commonLisp))}}),t.of({name:"Cypher",extensions:["cyp","cypher"],load(){return o(()=>import("./cypher-C_CwsFkJ.js"),[]).then(e=>n(e.cypher))}}),t.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return o(()=>import("./python-Cso5vRIg.js"),[]).then(e=>n(e.cython))}}),t.of({name:"Crystal",extensions:["cr"],load(){return o(()=>import("./crystal-SjHAIU92.js"),[]).then(e=>n(e.crystal))}}),t.of({name:"D",extensions:["d"],load(){return o(()=>import("./d-pRatUO7H.js"),[]).then(e=>n(e.d))}}),t.of({name:"Dart",extensions:["dart"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.dart))}}),t.of({name:"diff",extensions:["diff","patch"],load(){return o(()=>import("./diff-DbItnlRl.js"),[]).then(e=>n(e.diff))}}),t.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return o(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([44,45])).then(e=>n(e.dockerFile))}}),t.of({name:"DTD",extensions:["dtd"],load(){return o(()=>import("./dtd-DF_7sFjM.js"),[]).then(e=>n(e.dtd))}}),t.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return o(()=>import("./dylan-DwRh75JA.js"),[]).then(e=>n(e.dylan))}}),t.of({name:"EBNF",load(){return o(()=>import("./ebnf-CDyGwa7X.js"),[]).then(e=>n(e.ebnf))}}),t.of({name:"ECL",extensions:["ecl"],load(){return o(()=>import("./ecl-Cabwm37j.js"),[]).then(e=>n(e.ecl))}}),t.of({name:"edn",extensions:["edn"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Eiffel",extensions:["e"],load(){return o(()=>import("./eiffel-CnydiIhH.js"),[]).then(e=>n(e.eiffel))}}),t.of({name:"Elm",extensions:["elm"],load(){return o(()=>import("./elm-vLlmbW-K.js"),[]).then(e=>n(e.elm))}}),t.of({name:"Erlang",extensions:["erl"],load(){return o(()=>import("./erlang-BNw1qcRV.js"),[]).then(e=>n(e.erlang))}}),t.of({name:"Esper",load(){return o(()=>import("./sql-D0XecflT.js"),[]).then(e=>n(e.esper))}}),t.of({name:"Factor",extensions:["factor"],load(){return o(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([46,45])).then(e=>n(e.factor))}}),t.of({name:"FCL",load(){return o(()=>import("./fcl-Kvtd6kyn.js"),[]).then(e=>n(e.fcl))}}),t.of({name:"Forth",extensions:["forth","fth","4th"],load(){return o(()=>import("./forth-Ffai-XNe.js"),[]).then(e=>n(e.forth))}}),t.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return o(()=>import("./fortran-DYz_wnZ1.js"),[]).then(e=>n(e.fortran))}}),t.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.fSharp))}}),t.of({name:"Gas",extensions:["s"],load(){return o(()=>import("./gas-Bneqetm1.js"),[]).then(e=>n(e.gas))}}),t.of({name:"Gherkin",extensions:["feature"],load(){return o(()=>import("./gherkin-heZmZLOM.js"),[]).then(e=>n(e.gherkin))}}),t.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return o(()=>import("./groovy-D9Dt4D0W.js"),[]).then(e=>n(e.groovy))}}),t.of({name:"Haskell",extensions:["hs"],load(){return o(()=>import("./haskell-Cw1EW3IL.js"),[]).then(e=>n(e.haskell))}}),t.of({name:"Haxe",extensions:["hx"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.haxe))}}),t.of({name:"HXML",extensions:["hxml"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.hxml))}}),t.of({name:"HTTP",load(){return o(()=>import("./http-DBlCnlav.js"),[]).then(e=>n(e.http))}}),t.of({name:"IDL",extensions:["pro"],load(){return o(()=>import("./idl-BEugSyMb.js"),[]).then(e=>n(e.idl))}}),t.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return o(()=>import("./javascript-BO_2ioGC.js"),[]).then(e=>n(e.jsonld))}}),t.of({name:"Julia",extensions:["jl"],load(){return o(()=>import("./julia-DuME0IfC.js"),[]).then(e=>n(e.julia))}}),t.of({name:"Kotlin",extensions:["kt","kts"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.kotlin))}}),t.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return o(()=>import("./livescript-BwQOo05w.js"),[]).then(e=>n(e.liveScript))}}),t.of({name:"Lua",extensions:["lua"],load(){return o(()=>import("./lua-BgMRiT3U.js"),[]).then(e=>n(e.lua))}}),t.of({name:"mIRC",extensions:["mrc"],load(){return o(()=>import("./mirc-CjQqDB4T.js"),[]).then(e=>n(e.mirc))}}),t.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return o(()=>import("./mathematica-DTrFuWx2.js"),[]).then(e=>n(e.mathematica))}}),t.of({name:"Modelica",extensions:["mo"],load(){return o(()=>import("./modelica-Dc1JOy9r.js"),[]).then(e=>n(e.modelica))}}),t.of({name:"MUMPS",extensions:["mps"],load(){return o(()=>import("./mumps-BT43cFF4.js"),[]).then(e=>n(e.mumps))}}),t.of({name:"Mbox",extensions:["mbox"],load(){return o(()=>import("./mbox-CNhZ1qSd.js"),[]).then(e=>n(e.mbox))}}),t.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return o(()=>import("./nginx-DdIZxoE0.js"),[]).then(e=>n(e.nginx))}}),t.of({name:"NSIS",extensions:["nsh","nsi"],load(){return o(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([47,45])).then(e=>n(e.nsis))}}),t.of({name:"NTriples",extensions:["nt","nq"],load(){return o(()=>import("./ntriples-BfvgReVJ.js"),[]).then(e=>n(e.ntriples))}}),t.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveC))}}),t.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveCpp))}}),t.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.oCaml))}}),t.of({name:"Octave",extensions:["m"],load(){return o(()=>import("./octave-CWZ4xMHY.js"),[]).then(e=>n(e.octave))}}),t.of({name:"Oz",extensions:["oz"],load(){return o(()=>import("./oz-BzwKVEFT.js"),[]).then(e=>n(e.oz))}}),t.of({name:"Pascal",extensions:["p","pas"],load(){return o(()=>import("./pascal--L3eBynH.js"),[]).then(e=>n(e.pascal))}}),t.of({name:"Perl",extensions:["pl","pm"],load(){return o(()=>import("./perl-CdXCOZ3F.js"),[]).then(e=>n(e.perl))}}),t.of({name:"Pig",extensions:["pig"],load(){return o(()=>import("./pig-CevX1Tat.js"),[]).then(e=>n(e.pig))}}),t.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return o(()=>import("./powershell-CFHJl5sT.js"),[]).then(e=>n(e.powerShell))}}),t.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return o(()=>import("./properties-C78fOPTZ.js"),[]).then(e=>n(e.properties))}}),t.of({name:"ProtoBuf",extensions:["proto"],load(){return o(()=>import("./protobuf-ChK-085T.js"),[]).then(e=>n(e.protobuf))}}),t.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return o(()=>import("./pug-CIGw5rlb.js"),__vite__mapDeps([48,49])).then(e=>n(e.pug))}}),t.of({name:"Puppet",extensions:["pp"],load(){return o(()=>import("./puppet-DMA9R1ak.js"),[]).then(e=>n(e.puppet))}}),t.of({name:"Q",extensions:["q"],load(){return o(()=>import("./q-pXgVlZs6.js"),[]).then(e=>n(e.q))}}),t.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return o(()=>import("./r-B6wPVr8A.js"),[]).then(e=>n(e.r))}}),t.of({name:"RPM Changes",load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmChanges))}}),t.of({name:"RPM Spec",extensions:["spec"],load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmSpec))}}),t.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import("./ruby-B2Rjki9n.js"),[]).then(e=>n(e.ruby))}}),t.of({name:"SAS",extensions:["sas"],load(){return o(()=>import("./sas-B4kiWyti.js"),[]).then(e=>n(e.sas))}}),t.of({name:"Scala",extensions:["scala"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.scala))}}),t.of({name:"Scheme",extensions:["scm","ss"],load(){return o(()=>import("./scheme-C41bIUwD.js"),[]).then(e=>n(e.scheme))}}),t.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return o(()=>import("./useAppFontEffects-CYzYRbLp.js").then(e=>e.dF),__vite__mapDeps([50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,5,3,4,6,7,8,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,1,2,9,20,21,10,11,25,26,14,15,18,19,29,30,33,34,99,100,101,102,103,104])).then(e=>n(e.shell))}}),t.of({name:"Sieve",extensions:["siv","sieve"],load(){return o(()=>import("./sieve-C3Gn_uJK.js"),[]).then(e=>n(e.sieve))}}),t.of({name:"Smalltalk",extensions:["st"],load(){return o(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(e=>n(e.smalltalk))}}),t.of({name:"Solr",load(){return o(()=>import("./solr-DehyRSwq.js"),[]).then(e=>n(e.solr))}}),t.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.sml))}}),t.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return o(()=>import("./sparql-DkYu6x3z.js"),[]).then(e=>n(e.sparql))}}),t.of({name:"Spreadsheet",alias:["excel","formula"],load(){return o(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(e=>n(e.spreadsheet))}}),t.of({name:"Squirrel",extensions:["nut"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.squirrel))}}),t.of({name:"Stylus",extensions:["styl"],load(){return o(()=>import("./stylus-B533Al4x.js"),[]).then(e=>n(e.stylus))}}),t.of({name:"Swift",extensions:["swift"],load(){return o(()=>import("./swift-BzpIVaGY.js"),[]).then(e=>n(e.swift))}}),t.of({name:"sTeX",load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"Tcl",extensions:["tcl"],load(){return o(()=>import("./tcl-DVfN8rqt.js"),[]).then(e=>n(e.tcl))}}),t.of({name:"Textile",extensions:["textile"],load(){return o(()=>import("./textile-CnDTJFAw.js"),[]).then(e=>n(e.textile))}}),t.of({name:"TiddlyWiki",load(){return o(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(e=>n(e.tiddlyWiki))}}),t.of({name:"Tiki wiki",load(){return o(()=>import("./tiki-DGYXhP31.js"),[]).then(e=>n(e.tiki))}}),t.of({name:"TOML",extensions:["toml"],load(){return o(()=>import("./toml-Bm5Em-hy.js"),[]).then(e=>n(e.toml))}}),t.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return o(()=>import("./troff-wAsdV37c.js"),[]).then(e=>n(e.troff))}}),t.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return o(()=>import("./ttcn-CfJYG6tj.js"),[]).then(e=>n(e.ttcn))}}),t.of({name:"TTCN_CFG",extensions:["cfg"],load(){return o(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(e=>n(e.ttcnCfg))}}),t.of({name:"Turtle",extensions:["ttl"],load(){return o(()=>import("./turtle-B1tBg_DP.js"),[]).then(e=>n(e.turtle))}}),t.of({name:"Web IDL",extensions:["webidl"],load(){return o(()=>import("./webidl-ZXfAyPTL.js"),[]).then(e=>n(e.webIDL))}}),t.of({name:"VB.NET",extensions:["vb"],load(){return o(()=>import("./vb-CmGdzxic.js"),[]).then(e=>n(e.vb))}}),t.of({name:"VBScript",extensions:["vbs"],load(){return o(()=>import("./vbscript-BuJXcnF6.js"),[]).then(e=>n(e.vbScript))}}),t.of({name:"Velocity",extensions:["vtl"],load(){return o(()=>import("./velocity-D8B20fx6.js"),[]).then(e=>n(e.velocity))}}),t.of({name:"Verilog",extensions:["v"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return o(()=>import("./vhdl-lSbBsy5d.js"),[]).then(e=>n(e.vhdl))}}),t.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return o(()=>import("./xquery-DzFWVndE.js"),[]).then(e=>n(e.xQuery))}}),t.of({name:"Yacas",extensions:["ys"],load(){return o(()=>import("./yacas-BJ4BC0dw.js"),[]).then(e=>n(e.yacas))}}),t.of({name:"Z80",extensions:["z80"],load(){return o(()=>import("./z80-Hz9HOZM7.js"),[]).then(e=>n(e.z80))}}),t.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.mscgen))}}),t.of({name:"Xù",extensions:["xu"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.xu))}}),t.of({name:"MsGenny",extensions:["msgenny"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.msgenny))}}),t.of({name:"Vue",extensions:["vue"],load(){return o(()=>import("./vendor-codemirror-lang-vue-DiBPljCc.js"),__vite__mapDeps([105,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.vue())}}),t.of({name:"Angular Template",load(){return o(()=>import("./vendor-codemirror-lang-angular-DU_4KiiW.js"),__vite__mapDeps([106,1,2,3,4,5,6,7,8,9,18,19,10,14,15,20,21,11])).then(e=>e.angular())}})];export{l};
|
package/dist/assets/{vendor-codemirror-search-8kyQdB3f.js → vendor-codemirror-search-BV44140v.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as le,E as g,g as J,b as ae,V as he,D as Q,r as ce}from"./vendor-codemirror-view-
|
|
1
|
+
import{s as le,E as g,g as J,b as ae,V as he,D as Q,r as ce}from"./vendor-codemirror-view-Ct4T37Ue.js";import{i as oe,P as ue,F as fe,e as de,S as _,a as f,E as pe,k as me,g as ge,h as xe,n as Se,j as m,f as U}from"./vendor-codemirror-state-CNWM3Q8V.js";import{c as u}from"./vendor-crelt-C8TCjufn.js";const j=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class k{constructor(e,n,r=0,s=e.length,i,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,s),this.bufferStart=r,this.normalize=i?a=>i(j(a)):j,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ge(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=Se(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=xe(e);let s=this.normalize(n);if(s.length)for(let i=0,l=r;;i++){let a=s.charCodeAt(i),h=this.match(a,l,this.bufferPos+this.bufferStart);if(i==s.length-1){if(h)return this.value=h,this;break}l==r&&i<n.length&&n.charCodeAt(i)==a&&l++}}}match(e,n,r){let s=null;for(let i=0;i<this.matches.length;i+=2){let l=this.matches[i],a=!1;this.query.charCodeAt(l)==e&&(l==this.query.length-1?s={from:this.matches[i+1],to:r}:(this.matches[i]++,a=!0)),a||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:n,to:r}:this.matches.push(1,n)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(k.prototype[Symbol.iterator]=function(){return this});const X={from:-1,to:-1,match:/.*/.exec("")},N="gm"+(/x/.unicode==null?"":"u");class Y{constructor(e,n,r,s=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=X,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new Z(e,n,r,s,i);this.re=new RegExp(n,N+(r?.ignoreCase?"i":"")),this.test=r?.test,this.iter=e.iter();let l=e.lineAt(s);this.curLineStart=l.from,this.matchPos=A(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,s=r+n[0].length;if(this.matchPos=A(this.text,s+(r==s?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<s||r>this.value.to)&&(!this.test||this.test(r,s,n)))return this.value={from:r,to:s,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const T=new WeakMap;class M{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let s=T.get(e);if(!s||s.from>=r||s.to<=n){let a=new M(n,e.sliceString(n,r));return T.set(e,a),a}if(s.from==n&&s.to==r)return s;let{text:i,from:l}=s;return l>n&&(i=e.sliceString(n,l)+i,l=n),s.to<r&&(i+=e.sliceString(s.to,r)),T.set(e,new M(l,i)),new M(n,i.slice(n-l,r-l))}}class Z{constructor(e,n,r,s,i){this.text=e,this.to=i,this.done=!1,this.value=X,this.matchPos=A(e,s),this.re=new RegExp(n,N+(r?.ignoreCase?"i":"")),this.test=r?.test,this.flat=M.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,s=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,s,n)))return this.value={from:r,to:s,match:n},this.matchPos=A(this.text,s+(r==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=M.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Y.prototype[Symbol.iterator]=Z.prototype[Symbol.iterator]=function(){return this});function ve(t){try{return new RegExp(t,N),!0}catch{return!1}}function A(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}const ye=t=>{let{state:e}=t,n=String(e.doc.lineAt(t.state.selection.main.head).number),{close:r,result:s}=ae(t,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:e.phrase("go")});return s.then(i=>{let l=i&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.elements.line.value);if(!l){t.dispatch({effects:r});return}let a=e.doc.lineAt(e.selection.main.head),[,h,c,d,S]=l,E=d?+d.slice(1):0,b=c?+c:a.number;if(c&&S){let D=b/100;h&&(D=D*(h=="-"?-1:1)+a.number/e.doc.lines),b=Math.round(e.doc.lines*D)}else c&&h&&(b=b*(h=="-"?-1:1)+a.number);let K=e.doc.line(Math.max(1,Math.min(e.doc.lines,b))),H=f.cursor(K.from+Math.max(0,Math.min(E,K.length)));t.dispatch({effects:[r,g.scrollIntoView(H.from,{y:"center"})],selection:H})}),!0},Me=({state:t,dispatch:e})=>{let{selection:n}=t,r=f.create(n.ranges.map(s=>t.wordAt(s.head)||f.cursor(s.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function be(t,e){let{main:n,ranges:r}=t.selection,s=t.wordAt(n.head),i=s&&s.from==n.from&&s.to==n.to;for(let l=!1,a=new k(t.doc,e,r[r.length-1].to);;)if(a.next(),a.done){if(l)return null;a=new k(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),l=!0}else{if(l&&r.some(h=>h.from==a.value.from))continue;if(i){let h=t.wordAt(a.value.from);if(!h||h.from!=a.value.from||h.to!=a.value.to)continue}return a.value}}const ke=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(i=>i.from===i.to))return Me({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=r))return!1;let s=be(t,r);return s?(e(t.update({selection:t.selection.addRange(f.range(s.from,s.to),!1),effects:g.scrollIntoView(s.to)})),!0):!1},x=fe.define({combine(t){return de(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Te(e),scrollToMatch:e=>g.scrollIntoView(e)})}});function Ne(t){return t?[x.of(t),$]:$}class ee{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||ve(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
|
|
2
2
|
`:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Ae(this):new Ee(this)}getCursor(e,n=0,r){let s=e.doc?e:pe.create({doc:e});return r==null&&(r=s.doc.length),this.regexp?y(this,s,n,r):v(this,s,n,r)}}class te{constructor(e){this.spec=e}}function Ce(t,e,n){return(r,s,i,l)=>{if(n&&!n(r,s,i,l))return!1;let a=r>=l&&s<=l+i.length?i.slice(r-l,s-l):e.doc.sliceString(r,s);return t(a,e,r,s)}}function v(t,e,n,r){let s;return t.wholeWord&&(s=Le(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(s=Ce(t.test,e,s)),new k(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),s)}function Le(t,e){return(n,r,s,i)=>((i>n||i+s.length<r)&&(i=Math.max(0,n-2),s=t.sliceString(i,Math.min(t.length,r+2))),(e(R(s,n-i))!=m.Word||e(q(s,n-i))!=m.Word)&&(e(q(s,r-i))!=m.Word||e(R(s,r-i))!=m.Word))}class Ee extends te{constructor(e){super(e)}nextMatch(e,n,r){let s=v(this.spec,e,r,e.doc.length).nextOverlapping();if(s.done){let i=Math.min(e.doc.length,n+this.spec.unquoted.length);s=v(this.spec,e,0,i).nextOverlapping()}return s.done||s.value.from==n&&s.value.to==r?null:s.value}prevMatchInRange(e,n,r){for(let s=r;;){let i=Math.max(n,s-1e4-this.spec.unquoted.length),l=v(this.spec,e,i,s),a=null;for(;!l.nextOverlapping().done;)a=l.value;if(a)return a;if(i==n)return null;s-=1e4}}prevMatch(e,n,r){let s=this.prevMatchInRange(e,0,n);return s||(s=this.prevMatchInRange(e,Math.max(0,r-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=n||s.to!=r)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=v(this.spec,e,0,e.doc.length),s=[];for(;!r.next().done;){if(s.length>=n)return null;s.push(r.value)}return s}highlight(e,n,r,s){let i=v(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)s(i.value.from,i.value.to)}}function Fe(t,e,n){return(r,s,i)=>(!n||n(r,s,i))&&t(i[0],e,r,s)}function y(t,e,n,r){let s;return t.wholeWord&&(s=We(e.charCategorizer(e.selection.main.head))),t.test&&(s=Fe(t.test,e,s)),new Y(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:s},n,r)}function R(t,e){return t.slice(U(t,e,!1),e)}function q(t,e){return t.slice(e,U(t,e))}function We(t){return(e,n,r)=>!r[0].length||(t(R(r.input,r.index))!=m.Word||t(q(r.input,r.index))!=m.Word)&&(t(q(r.input,r.index+r[0].length))!=m.Word||t(R(r.input,r.index+r[0].length))!=m.Word)}class Ae extends te{nextMatch(e,n,r){let s=y(this.spec,e,r,e.doc.length).next();return s.done&&(s=y(this.spec,e,0,n).next()),s.done?null:s.value}prevMatchInRange(e,n,r){for(let s=1;;s++){let i=Math.max(n,r-s*1e4),l=y(this.spec,e,i,r),a=null;for(;!l.next().done;)a=l.value;if(a&&(i==n||a.from>i+10))return a;if(i==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,r)=>{if(r=="&")return e.match[0];if(r=="$")return"$";for(let s=r.length;s>0;s--){let i=+r.slice(0,s);if(i>0&&i<e.match.length)return e.match[i]+r.slice(s)}return n})}matchAll(e,n){let r=y(this.spec,e,0,e.doc.length),s=[];for(;!r.next().done;){if(s.length>=n)return null;s.push(r.value)}return s}highlight(e,n,r,s){let i=y(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!i.next().done;)s(i.value.from,i.value.to)}}const C=_.define(),V=_.define(),p=oe.define({create(t){return new O(I(t).create(),null)},update(t,e){for(let n of e.effects)n.is(C)?t=new O(n.value.create(),t.panel):n.is(V)&&(t=new O(t.query,n.value?B:null));return t},provide:t=>le.from(t,e=>e.panel)});function Ve(t){let e=t.field(p,!1);return e?e.query.spec:I(t)}function Be(t){var e;return((e=t.field(p,!1))===null||e===void 0?void 0:e.panel)!=null}class O{constructor(e,n){this.query=e,this.panel=n}}const Re=Q.mark({class:"cm-searchMatch"}),qe=Q.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pe=he.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(p))}update(t){let e=t.state.field(p);(e!=t.startState.field(p)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Q.none;let{view:n}=this,r=new me;for(let s=0,i=n.visibleRanges,l=i.length;s<l;s++){let{from:a,to:h}=i[s];for(;s<l-1&&h>i[s+1].from-500;)h=i[++s].to;t.highlight(n.state,a,h,(c,d)=>{let S=n.state.selection.ranges.some(E=>E.from==c&&E.to==d);r.add(c,d,S?qe:Re)})}return r.finish()}},{decorations:t=>t.decorations});function L(t){return e=>{let n=e.state.field(p,!1);return n&&n.query.spec.valid?t(e,n):se(e)}}const P=L((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let s=f.single(r.from,r.to),i=t.state.facet(x);return t.dispatch({selection:s,effects:[z(t,r),i.scrollToMatch(s.main,t)],userEvent:"select.search"}),ne(t),!0}),w=L((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,s=e.prevMatch(n,r,r);if(!s)return!1;let i=f.single(s.from,s.to),l=t.state.facet(x);return t.dispatch({selection:i,effects:[z(t,s),l.scrollToMatch(i.main,t)],userEvent:"select.search"}),ne(t),!0}),we=L((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:f.create(n.map(r=>f.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),Ie=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:s}=n.main,i=[],l=0;for(let a=new k(t.doc,t.sliceDoc(r,s));!a.next().done;){if(i.length>1e3)return!1;a.value.from==r&&(l=i.length),i.push(f.range(a.value.from,a.value.to))}return e(t.update({selection:f.create(i,l),userEvent:"select.search.matches"})),!0},G=L((t,{query:e})=>{let{state:n}=t,{from:r,to:s}=n.selection.main;if(n.readOnly)return!1;let i=e.nextMatch(n,r,r);if(!i)return!1;let l=i,a=[],h,c,d=[];l.from==r&&l.to==s&&(c=n.toText(e.getReplacement(l)),a.push({from:l.from,to:l.to,insert:c}),l=e.nextMatch(n,l.from,l.to),d.push(g.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+".")));let S=t.state.changes(a);return l&&(h=f.single(l.from,l.to).map(S),d.push(z(t,l)),d.push(n.facet(x).scrollToMatch(h.main,t))),t.dispatch({changes:S,selection:h,effects:d,userEvent:"input.replace"}),!0}),De=L((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(s=>{let{from:i,to:l}=s;return{from:i,to:l,insert:e.getReplacement(s)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:g.announce.of(r),userEvent:"input.replace.all"}),!0});function B(t){return t.state.facet(x).createPanel(t)}function I(t,e){var n,r,s,i,l;let a=t.selection.main,h=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!h)return e;let c=t.facet(x);return new ee({search:((n=e?.literal)!==null&&n!==void 0?n:c.literal)?h:h.replace(/\n/g,"\\n"),caseSensitive:(r=e?.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(s=e?.literal)!==null&&s!==void 0?s:c.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:c.regexp,wholeWord:(l=e?.wholeWord)!==null&&l!==void 0?l:c.wholeWord})}function re(t){let e=J(t,B);return e&&e.dom.querySelector("[main-field]")}function ne(t){let e=re(t);e&&e==t.root.activeElement&&e.select()}const se=t=>{let e=t.state.field(p,!1);if(e&&e.panel){let n=re(t);if(n&&n!=t.root.activeElement){let r=I(t.state,e.query.spec);r.valid&&t.dispatch({effects:C.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[V.of(!0),e?C.of(I(t.state,e.query.spec)):_.appendConfig.of($)]});return!0},ie=t=>{let e=t.state.field(p,!1);if(!e||!e.panel)return!1;let n=J(t,B);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:V.of(!1)}),!0},ze=[{key:"Mod-f",run:se,scope:"editor search-panel"},{key:"F3",run:P,shift:w,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:P,shift:w,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ie,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Ie},{key:"Mod-Alt-g",run:ye},{key:"Mod-d",run:ke,preventDefault:!0}];class Te{constructor(e){this.view=e;let n=this.query=e.state.field(p).query.spec;this.commit=this.commit.bind(this),this.searchField=u("input",{value:n.search,placeholder:o(e,"Find"),"aria-label":o(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=u("input",{value:n.replace,placeholder:o(e,"Replace"),"aria-label":o(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=u("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=u("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=u("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(s,i,l){return u("button",{class:"cm-button",name:s,onclick:i,type:"button"},l)}this.dom=u("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,r("next",()=>P(e),[o(e,"next")]),r("prev",()=>w(e),[o(e,"previous")]),r("select",()=>we(e),[o(e,"all")]),u("label",null,[this.caseField,o(e,"match case")]),u("label",null,[this.reField,o(e,"regexp")]),u("label",null,[this.wordField,o(e,"by word")]),...e.state.readOnly?[]:[u("br"),this.replaceField,r("replace",()=>G(e),[o(e,"replace")]),r("replaceAll",()=>De(e),[o(e,"replace all")])],u("button",{name:"close",onclick:()=>ie(e),"aria-label":o(e,"close"),type:"button"},["×"])])}commit(){let e=new ee({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:C.of(e)}))}keydown(e){ce(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?w:P)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),G(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(C)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(x).top}}function o(t,e){return t.state.phrase(e)}const F=30,W=/[\s\.,:;?!]/;function z(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),s=t.state.doc.lineAt(n).to,i=Math.max(r.from,e-F),l=Math.min(s,n+F),a=t.state.sliceDoc(i,l);if(i!=r.from){for(let h=0;h<F;h++)if(!W.test(a[h+1])&&W.test(a[h])){a=a.slice(h);break}}if(l!=s){for(let h=a.length-1;h>a.length-F;h--)if(!W.test(a[h-1])&&W.test(a[h])){a=a.slice(0,h);break}}return g.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${r.number}.`)}const Oe=g.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),$=[p,ue.low(Pe),Oe];export{Y as R,ee as S,Be as a,Ne as b,ze as c,ie as d,Ve as g,se as o,C as s};
|