@directus/app 17.0.0 → 17.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{@directus_extensions-sdk.quomcmYk.entry.js → @directus_extensions-sdk.cAkiRQ8V.entry.js} +1 -1
- package/dist/assets/active-line-BRlwTRsj.js +1 -0
- package/dist/assets/af-DOk3lUNY.js +1 -0
- package/dist/assets/apl-D3QEV0fA.js +1 -0
- package/dist/assets/ar-DZ-DhPRrFhS.js +1 -0
- package/dist/assets/ar-MA-Blygdx91.js +1 -0
- package/dist/assets/ar-SA-DkByYwZ_.js +1 -0
- package/dist/assets/asciiarmor-Bi1d_zmv.js +1 -0
- package/dist/assets/asn.1-B1m_v5dk.js +1 -0
- package/dist/assets/asterisk-sBA0Kt23.js +1 -0
- package/dist/assets/autorefresh-BzX3gDR4.js +1 -0
- package/dist/assets/az-C7Y5xaai.js +1 -0
- package/dist/assets/be-DuJZLmCc.js +1 -0
- package/dist/assets/bg-bFs9pKGk.js +1 -0
- package/dist/assets/bn-C-SsIdxT.js +1 -0
- package/dist/assets/brainfuck-BFHc8o7r.js +1 -0
- package/dist/assets/ca-B472-l6O.js +1 -0
- package/dist/assets/clike-jxeab1wc.js +1 -0
- package/dist/assets/clojure-B1qPXQA6.js +1 -0
- package/dist/assets/cmake-D5v7Gagp.js +1 -0
- package/dist/assets/cobol-CljPXA9D.js +1 -0
- package/dist/assets/coffeescript-dB5eCI9C.js +1 -0
- package/dist/assets/{collection-Dk6lM6ZC.css → collection-BwdlfHaE.css} +1 -1
- package/dist/assets/collection-Bz3d2XNV.js +1 -0
- package/dist/assets/commonlisp-DErfusuX.js +1 -0
- package/dist/assets/crystal-C2xzuhF6.js +1 -0
- package/dist/assets/cs-B9ugtbd-.js +1 -0
- package/dist/assets/css-D4tELk-6.js +1 -0
- package/dist/assets/cy-CbFDYGr_.js +1 -0
- package/dist/assets/cypher-B0j83z0i.js +4 -0
- package/dist/assets/d-ClMNysQx.js +1 -0
- package/dist/assets/da-Dw5nEEak.js +1 -0
- package/dist/assets/dart-Bjsv7jzz.js +1 -0
- package/dist/assets/de-AT-COFGc13g.js +1 -0
- package/dist/assets/de-BNdIPxgH.js +1 -0
- package/dist/assets/diff-BV5m9hb5.js +1 -0
- package/dist/assets/dist-chJWdeb_.js +46 -0
- package/dist/assets/django-CUPaZflm.js +1 -0
- package/dist/assets/dockerfile-WlPWodQo.js +1 -0
- package/dist/assets/dtd-C4bMsIBQ.js +1 -0
- package/dist/assets/dylan-B6lTS9Ed.js +1 -0
- package/dist/assets/ebnf-jr9J7NgO.js +1 -0
- package/dist/assets/ecl-BPDFcd7w.js +1 -0
- package/dist/assets/eiffel-iuUXotGk.js +1 -0
- package/dist/assets/el-0y3-pPAG.js +1 -0
- package/dist/assets/elm-C4hLrGMl.js +1 -0
- package/dist/assets/en-AU-tXXlsafY.js +1 -0
- package/dist/assets/en-CA-Bt7TXcLo.js +1 -0
- package/dist/assets/en-GB-B1Bpbzv7.js +1 -0
- package/dist/assets/en-IN-BQvbAwAw.js +1 -0
- package/dist/assets/en-NZ-CqJJXofk.js +1 -0
- package/dist/assets/en-ZA-heHCecHm.js +1 -0
- package/dist/assets/eo-DZN0LDf0.js +1 -0
- package/dist/assets/erlang-BjBVmdJZ.js +1 -0
- package/dist/assets/es-C-RNk19y.js +1 -0
- package/dist/assets/et-DMBiWpgE.js +1 -0
- package/dist/assets/eu-DSauadA7.js +1 -0
- package/dist/assets/fa-IR-DCuIwcOm.js +1 -0
- package/dist/assets/fa-IR-DyTDu0AO.js +6 -0
- package/dist/assets/factor-CNe1yD1f.js +1 -0
- package/dist/assets/fcl-CZnOU_C-.js +1 -0
- package/dist/assets/fi-CLfbZODD.js +1 -0
- package/dist/assets/fi-FI-CUtXQ3S2.js +5 -0
- package/dist/assets/forth-LuhMCVKY.js +1 -0
- package/dist/assets/fortran-BE-Viy-n.js +1 -0
- package/dist/assets/fr-C1Y8iZE1.js +1 -0
- package/dist/assets/fr-CA-CvLjrRDU.js +1 -0
- package/dist/assets/fr-CH-CGFkZLAE.js +1 -0
- package/dist/assets/fr-FR-zKH_30fx.js +2 -0
- package/dist/assets/gas-DLKBGDp-.js +1 -0
- package/dist/assets/gd-CPgLKATC.js +1 -0
- package/dist/assets/gfm-DQcVsyHf.js +1 -0
- package/dist/assets/gherkin-CVv5dInW.js +1 -0
- package/dist/assets/gl-D9dhY304.js +1 -0
- package/dist/assets/go-Cy2gFC-k.js +1 -0
- package/dist/assets/groovy-BVL6UOQS.js +1 -0
- package/dist/assets/gu-CaUhPgW3.js +1 -0
- package/dist/assets/haml-owU9KZZp.js +1 -0
- package/dist/assets/handlebars-Cl92J0Qa.js +1 -0
- package/dist/assets/haskell-DqXyRFzP.js +1 -0
- package/dist/assets/haskell-literate-RklBRIjz.js +1 -0
- package/dist/assets/haxe-BE6_NLyt.js +1 -0
- package/dist/assets/he-D4IMcYK-.js +1 -0
- package/dist/assets/hi-Cy-rogQ0.js +1 -0
- package/dist/assets/hr-Cx5g1_op.js +1 -0
- package/dist/assets/ht-CUdOLygB.js +1 -0
- package/dist/assets/htmlembedded-C7VYZm49.js +1 -0
- package/dist/assets/htmlmixed-CosBL-w9.js +1 -0
- package/dist/assets/http-CLiA-myT.js +1 -0
- package/dist/assets/hu-Bk4z95Ms.js +1 -0
- package/dist/assets/hy-DO5yb0EX.js +1 -0
- package/dist/assets/id-BDm6N8hv.js +1 -0
- package/dist/assets/idl-BUyxLLwo.js +1 -0
- package/dist/assets/index-BMHQmbsG.css +1 -0
- package/dist/assets/index.C9zFwJTK.entry.js +3708 -0
- package/dist/assets/input-rich-text-html-Bw73QPms.js +3 -0
- package/dist/assets/input-rich-text-html-Cz3FdIBi.css +1 -0
- package/dist/assets/is-PeFD78EB.js +1 -0
- package/dist/assets/isSameWeek-BlTsU4nV.js +1 -0
- package/dist/assets/it-BBtlBPRD.js +1 -0
- package/dist/assets/item-CeJ7fOFW.js +1 -0
- package/dist/assets/item-SHDqe9XR.css +1 -0
- package/dist/assets/ja-CxBvAvs8.js +1 -0
- package/dist/assets/javascript-hint-bkSA5dd1.js +1 -0
- package/dist/assets/jinja2-C6wvr9Xt.js +1 -0
- package/dist/assets/jsx-D2XCt7p7.js +1 -0
- package/dist/assets/julia-Dh_E5o2p.js +1 -0
- package/dist/assets/ka-D6FSNPt-.js +1 -0
- package/dist/assets/kk-Cm_OVbGg.js +1 -0
- package/dist/assets/kn-DaCMAF16.js +1 -0
- package/dist/assets/ko-DLP9W0VO.js +1 -0
- package/dist/assets/lb-CWSBhWyG.js +1 -0
- package/dist/assets/livescript-CzTrH_1i.js +1 -0
- package/dist/assets/lt-DX0LjWas.js +1 -0
- package/dist/assets/lua-VSqeeqyN.js +1 -0
- package/dist/assets/lv-DOLBBk5l.js +1 -0
- package/dist/assets/mark-selection-CYiyuK9X.js +1 -0
- package/dist/assets/match-Cu3w1GIM.js +1 -0
- package/dist/assets/match-D7f2zFfX.js +1 -0
- package/dist/assets/match-highlighter-CKbCkekC.js +1 -0
- package/dist/assets/mathematica-Dsyfl58K.js +1 -0
- package/dist/assets/mbox-DN4NHsEF.js +1 -0
- package/dist/assets/mirc-BS79rmN-.js +1 -0
- package/dist/assets/mk-KhD7wQxh.js +1 -0
- package/dist/assets/mllike-DikLNoCK.js +1 -0
- package/dist/assets/mn-CFLJx8CK.js +1 -0
- package/dist/assets/modelica-BcaqrEX2.js +1 -0
- package/dist/assets/ms-BPEWxWBl.js +1 -0
- package/dist/assets/mscgen-1nm8ctyj.js +1 -0
- package/dist/assets/mt-Csj9ALAP.js +1 -0
- package/dist/assets/multiplex-CbUQRujJ.js +3 -0
- package/dist/assets/mumps-BTSso3ZW.js +1 -0
- package/dist/assets/nb-DNJUIT8W.js +1 -0
- package/dist/assets/nginx-BZ5lfctU.js +1 -0
- package/dist/assets/nl-BE-CPJLu8EP.js +1 -0
- package/dist/assets/nl-EzCZllBe.js +1 -0
- package/dist/assets/nn-BVLA6Tag.js +1 -0
- package/dist/assets/nsis-CUiiKLZn.js +1 -0
- package/dist/assets/ntriples-NHWTGdVq.js +1 -0
- package/dist/assets/octave-Dp9e8iR1.js +1 -0
- package/dist/assets/overlay-0-8lgelh.js +1 -0
- package/dist/assets/oz-CQJ_be2D.js +1 -0
- package/dist/assets/pascal-_Brx4RJh.js +1 -0
- package/dist/assets/pegjs-Cw6MBL-i.js +1 -0
- package/dist/assets/perl-aNW_k89B.js +1 -0
- package/dist/assets/php-Cbz46cZl.js +1 -0
- package/dist/assets/pig-SMxKqF0n.js +1 -0
- package/dist/assets/pl-r7Qk0rHm.js +1 -0
- package/dist/assets/powershell-DjT1HMdc.js +1 -0
- package/dist/assets/properties-3qq9kZ0i.js +1 -0
- package/dist/assets/protobuf-BcD_hpmL.js +1 -0
- package/dist/assets/pt-BR-D6n_Qpdv.js +1 -0
- package/dist/assets/pt-U23JFBM8.js +1 -0
- package/dist/assets/pug-BD0U6Iuk.js +1 -0
- package/dist/assets/puppet-XCX0MtAd.js +1 -0
- package/dist/assets/python-A9w80PqL.js +1 -0
- package/dist/assets/q-ktwVK1e6.js +1 -0
- package/dist/assets/r-Czqw9OGZ.js +1 -0
- package/dist/assets/ro-DaRoQtEH.js +1 -0
- package/dist/assets/rpm-BvzHGKqr.js +1 -0
- package/dist/assets/rst-DCgBbmHg.js +1 -0
- package/dist/assets/ru-CJV5BYBa.js +1 -0
- package/dist/assets/ruby-Xoi7o9NE.js +1 -0
- package/dist/assets/rust-UIElwn6f.js +1 -0
- package/dist/assets/sas-ooR1e7_E.js +1 -0
- package/dist/assets/sass-DgCamDGh.js +1 -0
- package/dist/assets/scheme-BCgDz9BA.js +1 -0
- package/dist/assets/{shader-background-CNXa8M1y.js → shader-background-B-taT_fk.js} +1 -1
- package/dist/assets/shell-BVreowVN.js +1 -0
- package/dist/assets/show-hint-DhuDJASG.js +1 -0
- package/dist/assets/sieve-a4hRPSzZ.js +1 -0
- package/dist/assets/sk-BYzZRkxQ.js +1 -0
- package/dist/assets/sl-DfsciEkw.js +1 -0
- package/dist/assets/slim-BL0CGowq.js +1 -0
- package/dist/assets/smalltalk-XiCloyGz.js +1 -0
- package/dist/assets/smarty-DrBwxifm.js +1 -0
- package/dist/assets/solr-CjL8DUQT.js +1 -0
- package/dist/assets/soy-gslfUary.js +1 -0
- package/dist/assets/sparql-B_yhfZCL.js +1 -0
- package/dist/assets/spreadsheet-ByGXdURj.js +1 -0
- package/dist/assets/sq-BmbSq_kB.js +1 -0
- package/dist/assets/sql-BZKbwgL0.js +1 -0
- package/dist/assets/sr-DWwP0DJz.js +1 -0
- package/dist/assets/sr-Latn--ORyFXRc.js +1 -0
- package/dist/assets/stex-BEoMoUFq.js +1 -0
- package/dist/assets/stylus-CJk1A9VS.js +1 -0
- package/dist/assets/sv-D7nb_w4g.js +1 -0
- package/dist/assets/swift-84Tt-cXZ.js +1 -0
- package/dist/assets/ta-D7P9QEfD.js +1 -0
- package/dist/assets/tcl-BtVLpQfV.js +1 -0
- package/dist/assets/te-D_Y9kO0g.js +1 -0
- package/dist/assets/textile-YfU-O_j_.js +1 -0
- package/dist/assets/th-DZ71wuoY.js +1 -0
- package/dist/assets/tiddlywiki-B-wqU9G8.js +1 -0
- package/dist/assets/tiki-DtDe74G5.js +1 -0
- package/dist/assets/toml-CM83e3tJ.js +1 -0
- package/dist/assets/tornado-DBYrRha8.js +1 -0
- package/dist/assets/tr-C1kAtdn4.js +1 -0
- package/dist/assets/troff-DV99sF0F.js +1 -0
- package/dist/assets/ttcn-Bo8xhIOW.js +1 -0
- package/dist/assets/ttcn-cfg-D8thUNuD.js +1 -0
- package/dist/assets/turtle-TsWj5TG5.js +1 -0
- package/dist/assets/twig-Dtf_aYNZ.js +1 -0
- package/dist/assets/ug-GQD4_V6W.js +1 -0
- package/dist/assets/uk-Ca4jfvGf.js +1 -0
- package/dist/assets/uz-BnsYZXLN.js +1 -0
- package/dist/assets/vb-BrZczwWL.js +1 -0
- package/dist/assets/vbscript-Bl27hnkS.js +1 -0
- package/dist/assets/velocity-LNxtbaUW.js +1 -0
- package/dist/assets/verilog-BLhX7jrm.js +1 -0
- package/dist/assets/vhdl-IWKXBwJO.js +1 -0
- package/dist/assets/vi-DcVRH9Zd.js +1 -0
- package/dist/assets/vue-Bd6OMMiC.js +1 -0
- package/dist/assets/wast-DEVVUiOZ.js +1 -0
- package/dist/assets/webidl-DGdOIDJM.js +1 -0
- package/dist/assets/xquery-Br7ReLHS.js +1 -0
- package/dist/assets/yacas-FSo4rQJY.js +1 -0
- package/dist/assets/yaml-BAc1k6Lt.js +1 -0
- package/dist/assets/yaml-frontmatter-DI1pfTK1.js +1 -0
- package/dist/assets/z80-DZneblOc.js +1 -0
- package/dist/assets/zh-CN-ZRBqNXXA.js +1 -0
- package/dist/assets/zh-TW-CoktF_UW.js +1 -0
- package/dist/index.html +3 -13
- package/package.json +15 -19
- package/dist/assets/active-line-YmudI2h1.js +0 -1
- package/dist/assets/af-BkTwZZoQ.js +0 -1
- package/dist/assets/apl-_ManTT-W.js +0 -1
- package/dist/assets/ar-DZ-DaEiMVMx.js +0 -1
- package/dist/assets/ar-MA-D8N2rOub.js +0 -1
- package/dist/assets/ar-SA-kIR2QDcQ.js +0 -1
- package/dist/assets/asciiarmor-CZHHClrD.js +0 -1
- package/dist/assets/asn.1-tpPQMXW-.js +0 -1
- package/dist/assets/asterisk-R7OSfPPk.js +0 -1
- package/dist/assets/autorefresh-Dk-1fKAb.js +0 -1
- package/dist/assets/az-5ElIchlk.js +0 -1
- package/dist/assets/be-BvaY4Q-4.js +0 -1
- package/dist/assets/bg-HvJFX0ds.js +0 -1
- package/dist/assets/bn-Ck383NKv.js +0 -1
- package/dist/assets/brainfuck-DrMqBwwe.js +0 -1
- package/dist/assets/buildMatchPatternFn-Dp77wcrT.js +0 -1
- package/dist/assets/ca-36y6TiYs.js +0 -1
- package/dist/assets/clike-a_kATu3R.js +0 -1
- package/dist/assets/clojure-BVYswROk.js +0 -1
- package/dist/assets/cmake-xKBPfEuY.js +0 -1
- package/dist/assets/cobol-BaB6FWmV.js +0 -1
- package/dist/assets/codemirror-CVWB3MYP.js +0 -24
- package/dist/assets/coffeescript-CltuAR-9.js +0 -1
- package/dist/assets/collection-DkLLMxPt.js +0 -1
- package/dist/assets/commonlisp-PJVYWdqS.js +0 -1
- package/dist/assets/crystal-BckoXAqg.js +0 -1
- package/dist/assets/cs-Bi2cf-wQ.js +0 -1
- package/dist/assets/css-C1vKwn3A.js +0 -1
- package/dist/assets/cy-BvVcr3OC.js +0 -1
- package/dist/assets/cypher-CyMMpiIk.js +0 -4
- package/dist/assets/d-Czl1RvrF.js +0 -1
- package/dist/assets/da-CPZbTlGX.js +0 -1
- package/dist/assets/dart-BYm9imad.js +0 -1
- package/dist/assets/de-AT-DTvDrILV.js +0 -1
- package/dist/assets/de-BT_BseT-.js +0 -1
- package/dist/assets/diff-DBsKI2Xf.js +0 -1
- package/dist/assets/dist-BMRDvJHq.js +0 -46
- package/dist/assets/django-x816bCP7.js +0 -1
- package/dist/assets/dockerfile-CqTC_Ivj.js +0 -1
- package/dist/assets/dtd-BQxwPKkU.js +0 -1
- package/dist/assets/dylan-Cl2h3Mxh.js +0 -1
- package/dist/assets/ebnf-BPSwKxDZ.js +0 -1
- package/dist/assets/ecl-B2K7KILA.js +0 -1
- package/dist/assets/eiffel-RGAAZqF8.js +0 -1
- package/dist/assets/el-BHERHMg6.js +0 -1
- package/dist/assets/elm-CqCEIED4.js +0 -1
- package/dist/assets/en-AU-tAW54XkZ.js +0 -1
- package/dist/assets/en-CA-C-tI8ZXT.js +0 -1
- package/dist/assets/en-GB-DkHaArNQ.js +0 -1
- package/dist/assets/en-IN-B7LYifcJ.js +0 -1
- package/dist/assets/en-NZ-C4fEGVIL.js +0 -1
- package/dist/assets/en-US-DsiEsZph.js +0 -6
- package/dist/assets/en-US-RHQ7PWY4.js +0 -1
- package/dist/assets/en-ZA-DnnQtvSu.js +0 -1
- package/dist/assets/eo-DtDcRk4G.js +0 -1
- package/dist/assets/erlang-D9-RiEab.js +0 -1
- package/dist/assets/es-nnrRdGUj.js +0 -1
- package/dist/assets/et-D1CwJx_E.js +0 -1
- package/dist/assets/eu-CzYARi1F.js +0 -1
- package/dist/assets/fa-IR-DS39qDaX.js +0 -2
- package/dist/assets/fa-IR-DZ8Ht2QN.js +0 -1
- package/dist/assets/factor-BVj7ZERL.js +0 -1
- package/dist/assets/fcl-BnWFu0bZ.js +0 -1
- package/dist/assets/fi-FI-BcV7V3Qc.js +0 -1
- package/dist/assets/fi-HvDrQ-gp.js +0 -1
- package/dist/assets/formatDistance-DCGqwC3T.js +0 -1
- package/dist/assets/forth-DIL74-XL.js +0 -1
- package/dist/assets/fortran-CdEgdmWB.js +0 -1
- package/dist/assets/fr-BjCt_GfR.js +0 -1
- package/dist/assets/fr-CA-BTX6SGD-.js +0 -1
- package/dist/assets/fr-CH-DakZhlLJ.js +0 -1
- package/dist/assets/fr-FR-Bopf70Tj.js +0 -2
- package/dist/assets/gas-CeqlwlSH.js +0 -1
- package/dist/assets/gd-hwUZ0CzB.js +0 -1
- package/dist/assets/gfm-JpGe8dcd.js +0 -1
- package/dist/assets/gherkin-clc2sJJJ.js +0 -1
- package/dist/assets/gl-BCSee7I1.js +0 -1
- package/dist/assets/go-uK7jf9mV.js +0 -1
- package/dist/assets/groovy-Bct-BDC2.js +0 -1
- package/dist/assets/gu-C397W2lE.js +0 -1
- package/dist/assets/haml-u1rrGWHR.js +0 -1
- package/dist/assets/handlebars-CKPYDi0O.js +0 -1
- package/dist/assets/haskell-literate-C1dSW4pP.js +0 -1
- package/dist/assets/haskell-tSF53JFj.js +0 -1
- package/dist/assets/haxe-CXFeXpD1.js +0 -1
- package/dist/assets/he-Tx1xRbZG.js +0 -1
- package/dist/assets/hi-mqng4P7M.js +0 -1
- package/dist/assets/hr-BGIcllls.js +0 -1
- package/dist/assets/ht-DgsePQST.js +0 -1
- package/dist/assets/htmlembedded-DWovG2vZ.js +0 -1
- package/dist/assets/htmlmixed-CHDh5Z6h.js +0 -1
- package/dist/assets/http-Dvu479QG.js +0 -1
- package/dist/assets/hu-xFDPq5Cz.js +0 -1
- package/dist/assets/hy-RvZRJ0gb.js +0 -1
- package/dist/assets/id-D_Oo7fcs.js +0 -1
- package/dist/assets/idl-D6i6qXWf.js +0 -1
- package/dist/assets/index-BbVE9pJB.css +0 -1
- package/dist/assets/index.BAglza0U.entry.js +0 -3522
- package/dist/assets/input-rich-text-html-Dcd99INi.css +0 -1
- package/dist/assets/input-rich-text-html-Dy5AzWUt.js +0 -161
- package/dist/assets/is-CT450Y0a.js +0 -1
- package/dist/assets/isSameWeek-Dp0P7_so.js +0 -1
- package/dist/assets/it-SmK4AI3I.js +0 -1
- package/dist/assets/item-CnUpJxoa.css +0 -1
- package/dist/assets/item-DC0GHhzi.js +0 -1
- package/dist/assets/ja--ZdEzDn2.js +0 -1
- package/dist/assets/javascript-C3YPZYgn.js +0 -1
- package/dist/assets/javascript-hint-CaLC4B6L.js +0 -1
- package/dist/assets/jinja2-CVedV-lK.js +0 -1
- package/dist/assets/jsx-BdakxDL7.js +0 -1
- package/dist/assets/julia-CUdHn1pg.js +0 -1
- package/dist/assets/ka-Cj26osRZ.js +0 -1
- package/dist/assets/kk-CNvIYMGs.js +0 -1
- package/dist/assets/kn-vMaF6KjF.js +0 -1
- package/dist/assets/ko-DKR5wWZQ.js +0 -1
- package/dist/assets/lb-dEy8lGgw.js +0 -1
- package/dist/assets/livescript-BFlwkveZ.js +0 -1
- package/dist/assets/lt-CSTjHVkT.js +0 -1
- package/dist/assets/lua-tmsA5jjW.js +0 -1
- package/dist/assets/lv-nDDfRuDV.js +0 -1
- package/dist/assets/mark-selection-BeSSm3PI.js +0 -1
- package/dist/assets/markdown-DOGq9mBg.js +0 -1
- package/dist/assets/match-BHHm3fe_.js +0 -1
- package/dist/assets/match-B_ihCaK6.js +0 -1
- package/dist/assets/match-highlighter-BkAZe0fi.js +0 -1
- package/dist/assets/match-kGbyh5rd.js +0 -1
- package/dist/assets/matchbrackets-_tqFLqC6.js +0 -1
- package/dist/assets/mathematica-C-DoYiWS.js +0 -1
- package/dist/assets/mbox-2Lsc_O4W.js +0 -1
- package/dist/assets/mirc-DaKpU33A.js +0 -1
- package/dist/assets/mk-DJ3uEjXW.js +0 -1
- package/dist/assets/mllike-kn_OM2Vc.js +0 -1
- package/dist/assets/mn-SP8_4X6Z.js +0 -1
- package/dist/assets/modelica-Bhgb5SMD.js +0 -1
- package/dist/assets/ms-4j4iLeNP.js +0 -1
- package/dist/assets/mscgen-KPUtBnNm.js +0 -1
- package/dist/assets/mt-D4uEP8YD.js +0 -1
- package/dist/assets/multiplex-CTAe1dK4.js +0 -3
- package/dist/assets/mumps-m_uX3iVB.js +0 -1
- package/dist/assets/nb-DV-HWuUV.js +0 -1
- package/dist/assets/nginx-CgH3Yti3.js +0 -1
- package/dist/assets/nl-BE-Dkfr2xfD.js +0 -1
- package/dist/assets/nl-DZk1V4mR.js +0 -1
- package/dist/assets/nn-BsAthzhD.js +0 -1
- package/dist/assets/nsis-CVvQiiv0.js +0 -1
- package/dist/assets/ntriples-DFvTBC1f.js +0 -1
- package/dist/assets/octave-DtBgUEb4.js +0 -1
- package/dist/assets/overlay-D97aXLbQ.js +0 -1
- package/dist/assets/oz-DP2zK8KY.js +0 -1
- package/dist/assets/pascal-81HPc7UO.js +0 -1
- package/dist/assets/pegjs-cvpfFC_H.js +0 -1
- package/dist/assets/perl-DDynFSNG.js +0 -1
- package/dist/assets/php-DPsJNGWK.js +0 -1
- package/dist/assets/pig-CpDqm18x.js +0 -1
- package/dist/assets/pl-CSvwzdEx.js +0 -1
- package/dist/assets/powershell-HBjVAzdZ.js +0 -1
- package/dist/assets/properties-BVzilBdI.js +0 -1
- package/dist/assets/protobuf-Epf6_GVg.js +0 -1
- package/dist/assets/pt-BI2vcQBV.js +0 -1
- package/dist/assets/pt-BR-Bpcy4dQv.js +0 -1
- package/dist/assets/pug-VYAX_imA.js +0 -1
- package/dist/assets/puppet-CmpqWY78.js +0 -1
- package/dist/assets/python-CAc7CXn6.js +0 -1
- package/dist/assets/q-DXK7854j.js +0 -1
- package/dist/assets/r-lFCM62TN.js +0 -1
- package/dist/assets/ro-C6CC1aFQ.js +0 -1
- package/dist/assets/rpm-DNaioNIE.js +0 -1
- package/dist/assets/rst-B9hQuPCc.js +0 -1
- package/dist/assets/ru-C8yXW4xK.js +0 -1
- package/dist/assets/ruby-P7Uz3Q0t.js +0 -1
- package/dist/assets/rust-DFyxCTLX.js +0 -1
- package/dist/assets/sas-BZ6nenhx.js +0 -1
- package/dist/assets/sass-Bxjxi0hk.js +0 -1
- package/dist/assets/scheme-DVuWR1ww.js +0 -1
- package/dist/assets/shell-hXxyz6U7.js +0 -1
- package/dist/assets/show-hint-ATySfO62.js +0 -1
- package/dist/assets/sieve-CPxajnXA.js +0 -1
- package/dist/assets/sk-C2OaMN8d.js +0 -1
- package/dist/assets/sl-BoBPOr5Y.js +0 -1
- package/dist/assets/slim-ChZJKkN4.js +0 -1
- package/dist/assets/smalltalk-CaqM0GJV.js +0 -1
- package/dist/assets/smarty-CYKneUrJ.js +0 -1
- package/dist/assets/solr-vS-pfy7E.js +0 -1
- package/dist/assets/soy-CDmHDJhp.js +0 -1
- package/dist/assets/sparql-CiDLOeHJ.js +0 -1
- package/dist/assets/spreadsheet-BBaJ-qB4.js +0 -1
- package/dist/assets/sq-DO2jIxy5.js +0 -1
- package/dist/assets/sql-Bz0peO75.js +0 -1
- package/dist/assets/sr-BWOURdBd.js +0 -1
- package/dist/assets/sr-Latn-Vbvl9qlL.js +0 -1
- package/dist/assets/stex-DWo0gGIM.js +0 -1
- package/dist/assets/stylus-B0ePWUGY.js +0 -1
- package/dist/assets/sv-CaTUy623.js +0 -1
- package/dist/assets/swift-E-SS1X6F.js +0 -1
- package/dist/assets/ta-gXIOj8Nm.js +0 -1
- package/dist/assets/tcl-BRJamgxZ.js +0 -1
- package/dist/assets/te-CfLK2tmR.js +0 -1
- package/dist/assets/textile-DHfdOQiX.js +0 -1
- package/dist/assets/th-C6xxowaS.js +0 -1
- package/dist/assets/tiddlywiki-CmYksiK7.js +0 -1
- package/dist/assets/tiki-BY4ed1Xg.js +0 -1
- package/dist/assets/toml-DS2q9cx1.js +0 -1
- package/dist/assets/tornado-DBg6Kct3.js +0 -1
- package/dist/assets/tr-BFo2IBcz.js +0 -1
- package/dist/assets/troff-CHCDWzy8.js +0 -1
- package/dist/assets/ttcn-ClXRxW2a.js +0 -1
- package/dist/assets/ttcn-cfg-Bq_kCb2A.js +0 -1
- package/dist/assets/turtle-CN2Zs8Qj.js +0 -1
- package/dist/assets/twig-BNcLtFCd.js +0 -1
- package/dist/assets/ug-Yw25QrwP.js +0 -1
- package/dist/assets/uk-BlDP9qY7.js +0 -1
- package/dist/assets/uz-24Tbcf0d.js +0 -1
- package/dist/assets/vb-DvK_ar_c.js +0 -1
- package/dist/assets/vbscript-CMrHgfP7.js +0 -1
- package/dist/assets/velocity-BV2FLMta.js +0 -1
- package/dist/assets/verilog-B_HViVCf.js +0 -1
- package/dist/assets/vhdl-RUNR6eIm.js +0 -1
- package/dist/assets/vi-DzT7Fto8.js +0 -1
- package/dist/assets/vue-DtR4615o.js +0 -1
- package/dist/assets/wast-CyM4yIb9.js +0 -1
- package/dist/assets/webidl-Cr13_oQ6.js +0 -1
- package/dist/assets/xml-lWfDnKJT.js +0 -1
- package/dist/assets/xquery-Cf9t-Zhr.js +0 -1
- package/dist/assets/yacas-CuRkOAMq.js +0 -1
- package/dist/assets/yaml-Cup1-J21.js +0 -1
- package/dist/assets/yaml-frontmatter-Ss_9Tp-L.js +0 -1
- package/dist/assets/z80-BFh4D9Fv.js +0 -1
- package/dist/assets/zh-CN-BqvKVhTz.js +0 -1
- package/dist/assets/zh-TW-DA4G_KdI.js +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Nr as e}from"./vue.runtime.esm-bundler-Cor2aCVe.js";var t=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),ee=n||o&&s>=9;function te(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var ne=function(e,t){var n=e.className,r=te(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return w(e).appendChild(t)}function E(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function D(e,t,n,r){var i=E(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var re=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function ie(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ae(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function oe(e,t){var n=e.className;te(t).test(n)||(e.className+=(n?` `:``)+t)}function O(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!te(n[r]).test(t)&&(t+=` `+n[r]);return t}var se=function(e){e.select()};g?se=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(se=function(e){try{e.select()}catch{}});function k(e){return e.display.wrapper.ownerDocument}function ce(e){return le(e.display.wrapper)}function le(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function ue(e){return k(e).defaultView}function de(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function A(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function fe(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var pe=function(){this.id=null,this.f=null,this.time=0,this.handler=de(this.onTimeout,this)};pe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},pe.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function j(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var me=50,he={toString:function(){return`CodeMirror.Pass`}},ge={scroll:!1},_e={origin:`*mouse`},ve={origin:`+move`};function ye(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var be=[``];function xe(e){for(;be.length<=e;)be.push(M(be)+` `);return be[e]}function M(e){return e[e.length-1]}function Se(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Ce(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function we(){}function Te(e,t){var n;return Object.create?n=Object.create(e):(we.prototype=e,n=new we),t&&A(t,n),n}var Ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function De(e){return/\w/.test(e)||e>``&&(e.toUpperCase()!=e.toLowerCase()||Ee.test(e))}function Oe(e,t){return t?t.source.indexOf(`\\w`)>-1&&De(e)?!0:t.test(e):De(e)}function ke(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function je(e){return e.charCodeAt(0)>=768&&Ae.test(e)}function Me(e,t,n){for(;(n<0?t>0:t<e.length)&&je(e.charAt(t));)t+=n;return t}function Ne(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function Pe(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var Fe=null;function Ie(e,t,n){var r;Fe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:Fe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:Fe=i)}return r??Fe}var Le=(function(){function e(e){return e<=247?`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`.charAt(e):1424<=e&&e<=1524?`R`:1536<=e&&e<=1785?`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`.charAt(e-1536):1774<=e&&e<=2220?`r`:8192<=e&&e<=8203?`w`:e==8204?`b`:`L`}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,c){var l=c==`ltr`?`L`:`R`;if(s.length==0||c==`ltr`&&!t.test(s))return!1;for(var u=s.length,d=[],f=0;f<u;++f)d.push(e(s.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:r.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var ee=void 0;for(ee=S+1;ee<u&&d[ee]==`%`;++ee);for(var te=S&&d[S-1]==`!`||ee<u&&d[ee]==`1`?`1`:`N`,ne=S;ne<ee;++ne)d[ne]=te;S=ee-1}}for(var w=0,T=l;w<u;++w){var E=d[w];T==`L`&&E==`1`?d[w]=`L`:r.test(E)&&(T=E)}for(var D=0;D<u;++D)if(n.test(d[D])){var re=void 0;for(re=D+1;re<u&&n.test(d[re]);++re);for(var ie=(D?d[D-1]:l)==`L`,ae=ie==((re<u?d[re]:l)==`L`)?ie?`L`:`R`:l,oe=D;oe<re;++oe)d[oe]=ae;D=re-1}for(var O=[],se,k=0;k<u;)if(i.test(d[k])){var ce=k;for(++k;k<u&&i.test(d[k]);++k);O.push(new o(0,ce,k))}else{var le=k,ue=O.length,de=+(c==`rtl`);for(++k;k<u&&d[k]!=`L`;++k);for(var A=le;A<k;)if(a.test(d[A])){le<A&&(O.splice(ue,0,new o(1,le,A)),ue+=de);var fe=A;for(++A;A<k&&a.test(d[A]);++A);O.splice(ue,0,new o(2,fe,A)),ue+=de,le=A}else++A;le<k&&O.splice(ue,0,new o(1,le,k))}return c==`ltr`&&(O[0].level==1&&(se=s.match(/^\s+/))&&(O[0].from=se[0].length,O.unshift(new o(0,0,se[0].length))),M(O).level==1&&(se=s.match(/\s+$/))&&(M(O).to-=se[0].length,O.push(new o(0,u-se[0].length,u)))),c==`rtl`?O.reverse():O}})();function Re(e,t){var n=e.order;return n??=e.order=Le(e.text,t),n}var ze=[],N=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||ze).concat(n)}};function Be(e,t){return e._handlers&&e._handlers[t]||ze}function Ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=j(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function P(e,t){var n=Be(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function F(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),P(e,n||t.type,e,t),Ke(t)||t.codemirrorIgnore}function He(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)j(n,t[r])==-1&&n.push(t[r])}function Ue(e,t){return Be(e,t).length>0}function We(e){e.prototype.on=function(e,t){N(this,e,t)},e.prototype.off=function(e,t){Ve(this,e,t)}}function I(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ge(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ke(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function qe(e){I(e),Ge(e)}function Je(e){return e.target||e.srcElement}function Ye(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Xe=function(){if(o&&s<9)return!1;var e=E(`div`);return`draggable`in e||`dragDrop`in e}(),Ze;function Qe(e){if(Ze==null){var t=E(`span`,``);T(e,E(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Ze?E(`span`,``):E(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var $e;function et(e){if($e!=null)return $e;var t=T(e,document.createTextNode(`AخA`)),n=re(t,0,1).getBoundingClientRect(),r=re(t,1,2).getBoundingClientRect();return w(e),!n||n.left==n.right?!1:$e=r.right-n.right<3}var tt=`
|
|
2
|
-
|
|
3
|
-
b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
|
|
4
|
-
`,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},nt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},rt=(function(){var e=E(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),it=null;function at(e){if(it!=null)return it;var t=T(e,E(`span`,`x`)),n=t.getBoundingClientRect(),r=re(t,0,1).getBoundingClientRect();return it=Math.abs(n.left-r.left)>1}var ot={},st={};function ct(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ot[e]=t}function lt(e,t){st[e]=t}function ut(e){if(typeof e==`string`&&st.hasOwnProperty(e))e=st[e];else if(e&&typeof e.name==`string`&&st.hasOwnProperty(e.name)){var t=st[e.name];typeof t==`string`&&(t={name:t}),e=Te(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ut(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ut(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function dt(e,t){t=ut(t);var n=ot[t.name];if(!n)return dt(e,`text/plain`);var r=n(e,t);if(ft.hasOwnProperty(t.name)){var i=ft[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var ft={};function pt(e,t){A(t,ft.hasOwnProperty(e)?ft[e]:ft[e]={})}function mt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function ht(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function gt(e,t,n){return e.startState?e.startState(t,n):!0}var L=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};L.prototype.eol=function(){return this.pos>=this.string.length},L.prototype.sol=function(){return this.pos==this.lineStart},L.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},L.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},L.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},L.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},L.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},L.prototype.skipToEnd=function(){this.pos=this.string.length},L.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},L.prototype.backUp=function(e){this.pos-=e},L.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},L.prototype.indentation=function(){return fe(this.string,null,this.tabSize)-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},L.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},L.prototype.current=function(){return this.string.slice(this.start,this.pos)},L.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},L.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},L.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function R(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function _t(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function vt(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function yt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function z(e){if(e.parent==null)return null;for(var t=e.parent,n=j(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function bt(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function xt(e,t){return t>=e.first&&t<e.first+e.size}function St(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function B(e,t,n){if(n===void 0&&(n=null),!(this instanceof B))return new B(e,t,n);this.line=e,this.ch=t,this.sticky=n}function V(e,t){return e.line-t.line||e.ch-t.ch}function Ct(e,t){return e.sticky==t.sticky&&V(e,t)==0}function wt(e){return B(e.line,e.ch)}function Tt(e,t){return V(e,t)<0?t:e}function Et(e,t){return V(e,t)<0?e:t}function Dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function H(e,t){if(t.line<e.first)return B(e.first,0);var n=e.first+e.size-1;return t.line>n?B(n,R(e,n).text.length):Ot(t,R(e,t.line).text.length)}function Ot(e,t){var n=e.ch;return n==null||n>t?B(e.line,t):n<0?B(e.line,0):e}function kt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=H(e,t[r]);return n}var At=function(e,t){this.state=e,this.lookAhead=t},jt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};jt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},jt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},jt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},jt.fromSaved=function(e,t,n){return t instanceof At?new jt(e,mt(e.mode,t.state),n,t.lookAhead):new jt(e,mt(e.mode,t),n)},jt.prototype.save=function(e){var t=e===!1?this.state:mt(this.doc.mode,this.state);return this.maxLookAhead>0?new At(t,this.maxLookAhead):t};function Mt(e,t,n,r){var i=[e.state.modeGen],a={};Vt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,Vt(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function Nt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Pt(e,z(t)),i=t.text.length>e.options.maxHighlightLength&&mt(e.doc.mode,r.state),a=Mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new jt(r,!0,t);var a=Ht(e,t,n),o=a>r.first&&R(r,a-1).stateAfter,s=o?jt.fromSaved(r,o,a):new jt(r,gt(r.mode),a);return r.iter(a,t,function(n){Ft(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function Ft(e,t,n,r){var i=e.doc.mode,a=new L(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&It(i,n.state);!a.eol();)Lt(i,a,n.state),a.start=a.pos}function It(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=ht(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Lt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=ht(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Rt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function zt(e,t,n,r){var i=e.doc,a=i.mode,o;t=H(i,t);var s=R(i,t.line),c=Pt(e,t.line,n),l=new L(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Lt(a,l,c.state),r&&u.push(new Rt(l,o,mt(i.mode,c.state)));return r?u:new Rt(l,o,c.state)}function Bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function Vt(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new L(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&Bt(It(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&Ft(e,t,r,u.pos),u.pos=t.length,d=null):d=Bt(Lt(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function Ht(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=R(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof At?l.lookAhead:0)<=a.modeFrontier))return s;var u=fe(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function Ut(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=R(e,r).stateAfter;if(i&&(!(i instanceof At)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Wt=!1,Gt=!1;function Kt(){Wt=!0}function qt(){Gt=!0}function Jt(e,t,n){this.marker=e,this.from=t,this.to=n}function Yt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Xt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function Zt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Qt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Jt(o,a.from,s?null:a.to))}}return r}function $t(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Jt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function en(e,t){if(t.full)return null;var n=xt(e,t.from.line)&&R(e,t.from.line).markedSpans,r=xt(e,t.to.line)&&R(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=V(t.from,t.to)==0,s=Qt(n,i,o),c=$t(r,a,o),l=t.text.length==1,u=M(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=Yt(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?Yt(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=tn(s),c&&c!=s&&(c=tn(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Jt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function tn(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function nn(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||j(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(V(l.to,s.from)<0||V(l.from,s.to)>0)){var u=[c,1],d=V(l.from,s.from),f=V(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function rn(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function an(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function on(e){return e.inclusiveLeft?-1:0}function sn(e){return+!!e.inclusiveRight}function cn(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=V(r.from,i.from)||on(e)-on(t);return a?-a:V(r.to,i.to)||sn(e)-sn(t)||t.id-e.id}function ln(e,t){var n=Gt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||cn(r,i.marker)<0)&&(r=i.marker);return r}function un(e){return ln(e,!0)}function dn(e){return ln(e,!1)}function fn(e,t){var n=Gt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||cn(r,a.marker)<0)&&(r=a.marker)}return r}function pn(e,t,n,r,i){var a=R(e,t),o=Gt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=V(l.from,n)||on(c.marker)-on(i),d=V(l.to,r)||sn(c.marker)-sn(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?V(l.to,n)>=0:V(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?V(l.from,r)<=0:V(l.from,r)<0)))return!0}}}function mn(e){for(var t;t=un(e);)e=t.find(-1,!0).line;return e}function hn(e){for(var t;t=dn(e);)e=t.find(1,!0).line;return e}function gn(e){for(var t,n;t=dn(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function _n(e,t){var n=R(e,t),r=mn(n);return n==r?t:z(r)}function vn(e,t){if(t>e.lastLine())return t;var n=R(e,t),r;if(!yn(e,n))return t;for(;r=dn(n);)n=r.find(1,!0).line;return z(n)+1}function yn(e,t){var n=Gt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&bn(e,t,r)))return!0}}function bn(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return bn(e,r.line,Yt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&bn(e,t,i))return!0}function xn(e){e=mn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function Sn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=un(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=dn(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function Cn(e){var t=e.display,n=e.doc;t.maxLine=R(n,n.first),t.maxLineLength=Sn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var wn=function(e,t,n){this.text=e,an(this,t),this.height=n?n(this):1};wn.prototype.lineNo=function(){return z(this)},We(wn);function Tn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),rn(e),an(e,n);var i=r?r(e):1;i!=e.height&&yt(e,i)}function En(e){e.parent=null,rn(e)}var Dn={},On={};function kn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?On:Dn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function An(e,t){var n=D(`span`,null,null,c?`padding-right: .1px`:null),r={pre:D(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=Mn,et(e.display.measure)&&(o=Re(a,e.doc.direction))&&(r.addToken=Pn(r.addToken,o)),r.map=[],In(a,r,Nt(e,a,t!=e.display.externalMeasured&&z(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=O(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=O(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Qe(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return P(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=O(r.pre.className,r.textClass||``)),r}function jn(e){var t=E(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function Mn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Nn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(E(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(E(`span`,xe(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
|
|
5
|
-
`?(_=f.appendChild(E(`span`,m[0]==`\r`?`␍`:``,`cm-invalidchar`)),_.setAttribute(`cm-text`,m[0]),e.col+=1):(_=e.cm.options.specialCharPlaceholder(m[0]),_.setAttribute(`cm-text`,m[0]),o&&s<9?f.appendChild(E(`span`,[_])):f.appendChild(_),e.col+=1);e.map.push(e.pos,e.pos+1,_),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||d||a||c){var b=n||``;r&&(b+=r),i&&(b+=i);var x=E(`span`,[f],b,a);if(c)for(var S in c)c.hasOwnProperty(S)&&S!=`style`&&S!=`class`&&x.setAttribute(S,c[S]);return e.content.appendChild(x)}e.content.appendChild(f)}}function Nn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r=``,i=0;i<e.length;i++){var a=e.charAt(i);a==` `&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(a=`\xA0`),r+=a,n=a==` `}return r}function Pn(e,t){return function(n,r,i,a,o,s,c){i=i?i+` cm-force-border`:`cm-force-border`;for(var l=n.pos,u=l+r.length;;){for(var d=void 0,f=0;f<t.length&&(d=t[f],!(d.to>l&&d.from<=l));f++);if(d.to>=u)return e(n,r,i,a,o,s,c);e(n,r.slice(0,d.to-l),i,a,null,s,c),a=null,r=r.slice(d.to-l),l=d.to}}}function Fn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||=e.content.appendChild(document.createElement(`span`)),i.setAttribute(`cm-marker`,n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function In(e,t,n){var r=e.markedSpans,i=e.text,a=0;if(!r){for(var o=1;o<n.length;o+=2)t.addToken(t,i.slice(a,a=n[o]),kn(n[o+1],t.cm.options));return}for(var s=i.length,c=0,l=1,u=``,d,f,p=0,m,h,g,_,v;;){if(p==c){m=h=g=f=``,v=null,_=null,p=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var S=r[x],C=S.marker;if(C.type==`bookmark`&&S.from==c&&C.widgetNode)y.push(C);else if(S.from<=c&&(S.to==null||S.to>c||C.collapsed&&S.to==c&&S.from==c)){if(S.to!=null&&S.to!=c&&p>S.to&&(p=S.to,h=``),C.className&&(m+=` `+C.className),C.css&&(f=(f?f+`;`:``)+C.css),C.startStyle&&S.from==c&&(g+=` `+C.startStyle),C.endStyle&&S.to==p&&(b||=[]).push(C.endStyle,S.to),C.title&&((v||={}).title=C.title),C.attributes)for(var ee in C.attributes)(v||={})[ee]=C.attributes[ee];C.collapsed&&(!_||cn(_.marker,C)<0)&&(_=S)}else S.from>c&&p>S.from&&(p=S.from)}if(b)for(var te=0;te<b.length;te+=2)b[te+1]==p&&(h+=` `+b[te]);if(!_||_.from==c)for(var ne=0;ne<y.length;++ne)Fn(t,0,y[ne]);if(_&&(_.from||0)==c){if(Fn(t,(_.to==null?s+1:_.to)-c,_.marker,_.from==null),_.to==null)return;_.to==c&&(_=!1)}}if(c>=s)break;for(var w=Math.min(s,p);;){if(u){var T=c+u.length;if(!_){var E=T>w?u.slice(0,w-c):u;t.addToken(t,E,d?d+m:m,g,c+E.length==p?h:``,f,v)}if(T>=w){u=u.slice(w-c),c=w;break}c=T,g=``}u=i.slice(a,a=n[l++]),d=kn(n[l++],t.cm.options)}}}function Ln(e,t,n){this.line=t,this.rest=gn(t),this.size=this.rest?z(M(this.rest))-n+1:1,this.node=this.text=null,this.hidden=yn(e,t)}function Rn(e,t,n){for(var r=[],i,a=t;a<n;a=i){var o=new Ln(e.doc,R(e.doc,a),a);i=a+o.size,r.push(o)}return r}var zn=null;function Bn(e){zn?zn.ops.push(e):e.ownsGroup=zn={ops:[e],delayedCallbacks:[]}}function Vn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Hn(e,t){var n=e.ownsGroup;if(n)try{Vn(n)}finally{zn=null,t(n)}}var Un=null;function U(e,t){var n=Be(e,t);if(n.length){var r=Array.prototype.slice.call(arguments,2),i;zn?i=zn.delayedCallbacks:Un?i=Un:(i=Un=[],setTimeout(Wn,0));for(var a=function(e){i.push(function(){return n[e].apply(null,r)})},o=0;o<n.length;++o)a(o)}}function Wn(){var e=Un;Un=null;for(var t=0;t<e.length;++t)e[t]()}function Gn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];a==`text`?Yn(e,t):a==`gutter`?Zn(e,t,n,r):a==`class`?Xn(e,t):a==`widget`&&Qn(e,t,r)}t.changes=null}function Kn(e){return e.node==e.text&&(e.node=E(`div`,null,null,`position: relative`),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&s<8&&(e.node.style.zIndex=2)),e.node}function qn(e,t){var n=t.bgClass?t.bgClass+` `+(t.line.bgClass||``):t.line.bgClass;if(n&&(n+=` CodeMirror-linebackground`),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Kn(t);t.background=r.insertBefore(E(`div`,null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Jn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):An(e,t)}function Yn(e,t){var n=t.text.className,r=Jn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Xn(e,t)):n&&(t.text.className=n)}function Xn(e,t){qn(e,t),t.line.wrapClass?Kn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className=``);var n=t.textClass?t.textClass+` `+(t.line.textClass||``):t.line.textClass;t.text.className=n||``}function Zn(e,t,n,r){if(t.gutter&&=(t.node.removeChild(t.gutter),null),t.gutterBackground&&=(t.node.removeChild(t.gutterBackground),null),t.line.gutterClass){var i=Kn(t);t.gutterBackground=E(`div`,null,`CodeMirror-gutter-background `+t.line.gutterClass,`left: `+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+`px; width: `+r.gutterTotalWidth+`px`),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=Kn(t),s=t.gutter=E(`div`,null,`CodeMirror-gutter-wrapper`,`left: `+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+`px`);if(s.setAttribute(`aria-hidden`,`true`),e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=` `+t.line.gutterClass),e.options.lineNumbers&&(!a||!a[`CodeMirror-linenumbers`])&&(t.lineNumber=s.appendChild(E(`div`,St(e.options,n),`CodeMirror-linenumber CodeMirror-gutter-elt`,`left: `+r.gutterLeft[`CodeMirror-linenumbers`]+`px; width: `+e.display.lineNumInnerWidth+`px`))),a)for(var c=0;c<e.display.gutterSpecs.length;++c){var l=e.display.gutterSpecs[c].className,u=a.hasOwnProperty(l)&&a[l];u&&s.appendChild(E(`div`,[u],`CodeMirror-gutter-elt`,`left: `+r.gutterLeft[l]+`px; width: `+r.gutterWidth[l]+`px`))}}}function Qn(e,t,n){t.alignable&&=null;for(var r=te(`CodeMirror-linewidget`),i=t.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);er(e,t,n)}function $n(e,t,n,r){var i=Jn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Xn(e,t),Zn(e,t,n,r),er(e,t,r),t.node}function er(e,t,n){if(tr(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)tr(e,t.rest[r],t,n,!1)}function tr(e,t,n,r,i){if(t.widgets)for(var a=Kn(n),o=0,s=t.widgets;o<s.length;++o){var c=s[o],l=E(`div`,[c.node],`CodeMirror-linewidget`+(c.className?` `+c.className:``));c.handleMouseEvents||l.setAttribute(`cm-ignore-events`,`true`),nr(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),U(c,`redraw`)}}function nr(e,t,n,r){if(e.noHScroll){(n.alignable||=[]).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+`px`,e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+`px`),t.style.width=i+`px`}e.coverGutter&&(t.style.zIndex=5,t.style.position=`relative`,e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+`px`))}function rr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ie(document.body,e.node)){var n=`position: relative;`;e.coverGutter&&(n+=`margin-left: -`+t.display.gutters.offsetWidth+`px;`),e.noHScroll&&(n+=`width: `+t.display.wrapper.clientWidth+`px;`),T(t.display.measure,E(`div`,[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function ir(e,t){for(var n=Je(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute(`cm-ignore-events`)==`true`||n.parentNode==e.sizer&&n!=e.mover)return!0}function ar(e){return e.lineSpace.offsetTop}function or(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function sr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,E(`pre`,`x`,`CodeMirror-line-like`)),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function cr(e){return me-e.display.nativeBarWidth}function lr(e){return e.display.scroller.clientWidth-cr(e)-e.display.barWidth}function ur(e){return e.display.scroller.clientHeight-cr(e)-e.display.barHeight}function dr(e,t,n){var r=e.options.lineWrapping,i=r&&lr(e);if(!t.measure.heights||r&&t.measure.width!=i){var a=t.measure.heights=[];if(r){t.measure.width=i;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function fr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(z(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function pr(e,t){t=mn(t);var n=z(t),r=e.display.externalMeasured=new Ln(e.doc,t,n);r.lineN=n;var i=r.built=An(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}function mr(e,t,n,r){return _r(e,gr(e,t),n,r)}function hr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Xr(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function gr(e,t){var n=z(t),r=hr(e,n);r&&!r.text?r=null:r&&r.changes&&(Gn(e,r,n,Gr(e)),e.curOp.forceUpdate=!0),r||=pr(e,t);var i=fr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function _r(e,t,n,r,i){t.before&&(n=-1);var a=n+(r||``),o;return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||=t.view.text.getBoundingClientRect(),t.hasHeights||=(dr(e,t.view,t.rect),!0),o=xr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var vr={left:0,right:0,top:0,bottom:0};function yr(e,t,n){for(var r,i,a,o,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,a=1,o=`left`):t<c?(i=t-s,a=i+1):(l==e.length-3||t==c&&e[l+3]>t)&&(a=c-s,i=a-1,t>=c&&(o=`right`)),i!=null){if(r=e[l+2],s==c&&n==(r.insertLeft?`left`:`right`)&&(o=n),n==`left`&&i==0)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[(l-=3)+2],o=`left`;if(n==`right`&&i==c-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],o=`right`;break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function br(e,t){var n=vr;if(t==`left`)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function xr(e,t,n,r){var i=yr(t.map,n,r),a=i.node,c=i.start,l=i.end,u=i.collapse,d;if(a.nodeType==3){for(var f=0;f<4;f++){for(;c&&je(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+l<i.coverEnd&&je(t.line.text.charAt(i.coverStart+l));)++l;if(d=o&&s<9&&c==0&&l==i.coverEnd-i.coverStart?a.parentNode.getBoundingClientRect():br(re(a,c,l).getClientRects(),r),d.left||d.right||c==0)break;l=c,--c,u=`right`}o&&s<11&&(d=Sr(e.display.measure,d))}else{c>0&&(u=r=`right`);var p;d=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p[r==`right`?p.length-1:0]:a.getBoundingClientRect()}if(o&&s<9&&!c&&(!d||!d.left&&!d.right)){var m=a.parentNode.getClientRects()[0];d=m?{left:m.left,right:m.left+Wr(e.display),top:m.top,bottom:m.bottom}:vr}for(var h=d.top-t.rect.top,g=d.bottom-t.rect.top,_=(h+g)/2,v=t.view.measure.heights,y=0;y<v.length-1&&!(_<v[y]);y++);var b=y?v[y-1]:0,x=v[y],S={left:(u==`right`?d.right:d.left)-t.rect.left,right:(u==`left`?d.left:d.right)-t.rect.left,top:b,bottom:x};return!d.left&&!d.right&&(S.bogus=!0),e.options.singleCursorHeightPerLine||(S.rtop=h,S.rbottom=g),S}function Sr(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!at(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function Cr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function wr(e){e.display.externalMeasure=null,w(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Cr(e.display.view[t])}function Tr(e){wr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Er(e){return u&&_?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Dr(e){return u&&_?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Or(e){var t=mn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=rr(t[r]));return n}function kr(e,t,n,r,i){if(!i){var a=Or(t);n.top+=a,n.bottom+=a}if(r==`line`)return n;r||=`local`;var o=xn(t);if(r==`local`?o+=ar(e.display):o-=e.display.viewOffset,r==`page`||r==`window`){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+(r==`window`?0:Dr(k(e)));var c=s.left+(r==`window`?0:Er(k(e)));n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}function Ar(e,t,n){if(n==`div`)return t;var r=t.left,i=t.top;if(n==`page`)r-=Er(k(e)),i-=Dr(k(e));else if(n==`local`||!n){var a=e.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function jr(e,t,n,r,i){return r||=R(e.doc,t.line),kr(e,r,mr(e,r,t.ch,i),n)}function Mr(e,t,n,r,i,a){r||=R(e.doc,t.line),i||=gr(e,r);function o(t,o){var s=_r(e,i,t,o?`right`:`left`,a);return o?s.left=s.right:s.right=s.left,kr(e,r,s,n)}var s=Re(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l=`before`):c<=0&&(c=0,l=`after`),!s)return o(l==`before`?c-1:c,l==`before`);function u(e,t,n){var r=s[t].level==1;return o(n?e-1:e,r!=n)}var d=Ie(s,c,l),f=Fe,p=u(c,d,l==`before`);return f!=null&&(p.other=u(c,f,l!=`before`)),p}function Nr(e,t){var n=0;t=H(e.doc,t),e.options.lineWrapping||(n=Wr(e.display)*t.ch);var r=R(e.doc,t.line),i=xn(r)+ar(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Pr(e,t,n,r,i){var a=B(e,t,n);return a.xRel=i,r&&(a.outside=r),a}function Fr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Pr(r.first,0,null,-1,-1);var i=bt(r,n),a=r.first+r.size-1;if(i>a)return Pr(r.first+r.size-1,R(r,a).text.length,null,1,1);t<0&&(t=0);for(var o=R(r,i);;){var s=zr(e,o,i,t,n),c=fn(o,s.ch+ +(s.xRel>0||s.outside>0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=R(r,i=l.line)}}function Ir(e,t,n,r){r-=Or(t);var i=t.text.length,a=Ne(function(t){return _r(e,n,t-1).bottom<=r},i,0);return i=Ne(function(t){return _r(e,n,t).top>r},a,i),{begin:a,end:i}}function Lr(e,t,n,r){n||=gr(e,t);var i=kr(e,t,_r(e,n,r),`line`).top;return Ir(e,t,n,i)}function Rr(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function zr(e,t,n,r,i){i-=xn(t);var a=gr(e,t),o=Or(t),s=0,c=t.text.length,l=!0,u=Re(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Vr:Br)(e,t,n,a,u,r,i);l=d.level!=1,s=l?d.from:d.to-1,c=l?d.to:d.from-1}var f=null,p=null,m=Ne(function(t){var n=_r(e,a,t);return n.top+=o,n.bottom+=o,Rr(n,r,i,!1)?(n.top<=i&&n.left<=r&&(f=t,p=n),!0):!1},s,c),h,g,_=!1;if(p){var v=r-p.left<p.right-r,y=v==l;m=f+ +!y,g=y?`after`:`before`,h=v?p.left:p.right}else{!l&&(m==c||m==s)&&m++,g=m==0?`after`:m==t.text.length?`before`:_r(e,a,m-+!!l).bottom+o<=i==l?`after`:`before`;var b=Mr(e,B(n,m,g),`line`,t,a);h=b.left,_=i<b.top?-1:+(i>=b.bottom)}return m=Me(t.text,m,1),Pr(n,m,g,_,r-h)}function Br(e,t,n,r,i,a,o){var s=Ne(function(s){var c=i[s],l=c.level!=1;return Rr(Mr(e,B(n,l?c.to:c.from,l?`before`:`after`),`line`,t,r),a,o,!0)},0,i.length-1),c=i[s];if(s>0){var l=c.level!=1,u=Mr(e,B(n,l?c.from:c.to,l?`after`:`before`),`line`,t,r);Rr(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function Vr(e,t,n,r,i,a,o){var s=Ir(e,t,r,o),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=l||p.to<=c)){var m=_r(e,r,p.level==1?Math.max(c,p.from):Math.min(l,p.to)-1).right,h=m<a?a-m+1e9:m-a;(!u||d>h)&&(u=p,d=h)}}return u||=i[i.length-1],u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}var Hr;function Ur(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Hr==null){Hr=E(`pre`,null,`CodeMirror-line-like`);for(var t=0;t<49;++t)Hr.appendChild(document.createTextNode(`x`)),Hr.appendChild(E(`br`));Hr.appendChild(document.createTextNode(`x`))}T(e.measure,Hr);var n=Hr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function Wr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E(`span`,`xxxxxxxxxx`),n=E(`pre`,[t],`CodeMirror-line-like`);T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Gr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Kr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Kr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function qr(e){var t=Ur(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Wr(e.display)-3);return function(i){if(yn(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*t:a+t}}function Jr(e){var t=e.doc,n=qr(e);t.iter(function(e){var t=n(e);t!=e.height&&yt(e,t)})}function Yr(e,t,n,r){var i=e.display;if(!n&&Je(t).getAttribute(`cm-not-content`)==`true`)return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch{return null}var c=Fr(e,a,o),l;if(r&&c.xRel>0&&(l=R(e.doc,c.line).text).length==c.ch){var u=fe(l,l.length,e.options.tabSize)-l.length;c=B(c.line,Math.max(0,Math.round((a-sr(e.display).left)/Wr(e.display))-u))}return c}function Xr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function W(e,t,n,r){t??=e.doc.first,n??=e.doc.first+e.doc.size,r||=0;var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Gt&&_n(e.doc,t)<i.viewTo&&Qr(e);else if(n<=i.viewFrom)Gt&&vn(e.doc,n+r)>i.viewFrom?Qr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Qr(e);else if(t<=i.viewFrom){var a=$r(e,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Qr(e)}else if(n>=i.viewTo){var o=$r(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Qr(e)}else{var s=$r(e,t,t,-1),c=$r(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(Rn(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Qr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Zr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var a=r.view[Xr(e,t)];if(a.node!=null){var o=a.changes||=[];j(o,n)==-1&&o.push(n)}}}function Qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $r(e,t,n,r){var i=Xr(e,t),a,o=e.display.view;if(!Gt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,c=0;c<i;c++)s+=o[c].size;if(s!=t){if(r>0){if(i==o.length-1)return null;a=s+o[i].size-t,i++}else a=s-t;t+=a,n+=a}for(;_n(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-+(r<0)].size,i+=r}return{index:i,lineN:n}}function ei(e,t,n){var r=e.display;r.view.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Rn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Rn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Xr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Rn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Xr(e,n)))),r.viewTo=n}function ti(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];!i.hidden&&(!i.node||i.changes)&&++n}return n}function ni(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ri(e,t){t===void 0&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=e.options.$customCursor;o&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(!(!t&&s==n.sel.primIndex)){var c=n.sel.ranges[s];if(!(c.from().line>=e.display.viewTo||c.to().line<e.display.viewFrom)){var l=c.empty();if(o){var u=o(e,c);u&&ii(e,u,i)}else(l||e.options.showCursorWhenSelecting)&&ii(e,c.head,i);l||oi(e,c,a)}}return r}function ii(e,t,n){var r=Mr(e,t,`div`,null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(E(`div`,`\xA0`,`CodeMirror-cursor`));if(i.style.left=r.left+`px`,i.style.top=r.top+`px`,i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+`px`,/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var a=jr(e,t,`div`,null,null),o=a.right-a.left;i.style.width=(o>0?o:e.defaultCharWidth())+`px`}if(r.other){var s=n.appendChild(E(`div`,`\xA0`,`CodeMirror-cursor CodeMirror-secondarycursor`));s.style.display=``,s.style.left=r.other.left+`px`,s.style.top=r.other.top+`px`,s.style.height=(r.other.bottom-r.other.top)*.85+`px`}}function ai(e,t){return e.top-t.top||e.left-t.left}function oi(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),o=sr(e.display),s=o.left,c=Math.max(r.sizerWidth,lr(e)-r.sizer.offsetLeft)-o.right,l=i.direction==`ltr`;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(E(`div`,null,`CodeMirror-selected`,`position: absolute; left: `+e+`px;
|
|
6
|
-
top: `+t+`px; width: `+(n??c-e)+`px;
|
|
7
|
-
height: `+(r-t)+`px`))}function d(t,n,r){var a=R(i,t),o=a.text.length,d,f;function p(n,r){return jr(e,B(t,n),`div`,a,r)}function m(t,n,r){var i=Lr(e,a,null,t),o=n==`ltr`==(r==`after`)?`left`:`right`;return p(r==`after`?i.begin:i.end-(/\s/.test(a.text.charAt(i.end-1))?2:1),o)[o]}var h=Re(a,i.direction);return Pe(h,n||0,r??o,function(e,t,i,a){var g=i==`ltr`,_=p(e,g?`left`:`right`),v=p(t-1,g?`right`:`left`),y=n==null&&e==0,b=r==null&&t==o,x=a==0,S=!h||a==h.length-1;if(v.top-_.top<=3){var C=(l?y:b)&&x,ee=(l?b:y)&&S,te=C?s:(g?_:v).left,ne=ee?c:(g?v:_).right;u(te,_.top,ne-te,_.bottom)}else{var w,T,E,D;g?(w=l&&y&&x?s:_.left,T=l?c:m(e,i,`before`),E=l?s:m(t,i,`after`),D=l&&b&&S?c:v.right):(w=l?m(e,i,`before`):s,T=!l&&y&&x?c:_.right,E=!l&&b&&S?s:v.left,D=l?m(t,i,`after`):c),u(w,_.top,T-w,_.bottom),_.bottom<v.top&&u(s,_.bottom,null,v.top),u(E,v.top,D-E,v.bottom)}(!d||ai(_,d)<0)&&(d=_),ai(v,d)<0&&(d=v),(!f||ai(_,f)<0)&&(f=_),ai(v,f)<0&&(f=v)}),{start:d,end:f}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var m=R(i,f.line),h=R(i,p.line),g=mn(m)==mn(h),_=d(f.line,f.ch,g?m.text.length+1:null).end,v=d(p.line,g?0:null,p.ch).start;g&&(_.top<v.top-2?(u(_.right,_.top,null,_.bottom),u(s,v.top,v.left,v.bottom)):u(_.right,_.top,v.left-_.right,_.bottom)),_.bottom<v.top&&u(s,_.bottom,null,v.top)}n.appendChild(a)}function si(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility=``,e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||di(e),t.cursorDiv.style.visibility=(n=!n)?``:`hidden`},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility=`hidden`)}}function ci(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ui(e))}function li(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&di(e))},100)}function ui(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!=`nocursor`&&(e.state.focused||(P(e,`focus`,e,t),e.state.focused=!0,oe(e.display.wrapper,`CodeMirror-focused`),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),c&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),si(e))}function di(e,t){e.state.delayingBlurEvent||(e.state.focused&&(P(e,`blur`,e,t),e.state.focused=!1,ne(e.display.wrapper,`CodeMirror-focused`)),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function fi(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,c=0;c<t.view.length;c++){var l=t.view[c],u=e.options.lineWrapping,d=void 0,f=0;if(!l.hidden){if(i+=l.line.height,o&&s<8){var p=l.node.offsetTop+l.node.offsetHeight;d=p-n,n=p}else{var m=l.node.getBoundingClientRect();d=m.bottom-m.top,!u&&l.text.firstChild&&(f=l.text.firstChild.getBoundingClientRect().right-m.left-1)}var h=l.line.height-d;if((h>.005||h<-.005)&&(i<r&&(a-=h),yt(l.line,d),pi(l.line),l.rest))for(var g=0;g<l.rest.length;g++)pi(l.rest[g]);if(f>e.display.sizerWidth){var _=Math.ceil(f/Wr(e.display));_>e.display.maxLineLength&&(e.display.maxLineLength=_,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function pi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function mi(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-ar(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,a=bt(t,r),o=bt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=bt(t,xn(R(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=o&&(a=bt(t,xn(R(t,c))-e.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function hi(e,t){if(!F(e,`scrollCursorIntoView`)){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,a=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(a.defaultView.innerHeight||a.documentElement.clientHeight)&&(i=!1),i!=null&&!h){var o=E(`div`,``,null,`position: absolute;
|
|
8
|
-
top: `+(t.top-n.viewOffset-ar(e.display))+`px;
|
|
9
|
-
height: `+(t.bottom-t.top+cr(e)+n.barHeight)+`px;
|
|
10
|
-
left: `+t.left+`px; width: `+Math.max(2,t.right-t.left)+`px;`);e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function gi(e,t,n,r){r??=0;var i;!e.options.lineWrapping&&t==n&&(n=t.sticky==`before`?B(t.line,t.ch+1,`before`):t,t=t.ch?B(t.line,t.sticky==`before`?t.ch-1:t.ch,`after`):t);for(var a=0;a<5;a++){var o=!1,s=Mr(e,t),c=!n||n==t?s:Mr(e,n);i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r};var l=vi(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(l.scrollTop!=null&&(Ti(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),l.scrollLeft!=null&&(Di(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(o=!0)),!o)break}return i}function _i(e,t){var n=vi(e,t);n.scrollTop!=null&&Ti(e,n.scrollTop),n.scrollLeft!=null&&Di(e,n.scrollLeft)}function vi(e,t){var n=e.display,r=Ur(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,a=ur(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+or(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)o.scrollTop=c?0:t.top;else if(t.bottom>i+a){var u=Math.min(t.top,(l?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=lr(e)-n.gutters.offsetWidth,m=t.right-t.left>p;return m&&(t.right=t.left+p),t.left<10?o.scrollLeft=0:t.left<f?o.scrollLeft=Math.max(0,t.left+d-(m?0:10)):t.right>p+f-3&&(o.scrollLeft=t.right+(m?0:10)-p),o}function yi(e,t){t!=null&&(Ci(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function bi(e){Ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function xi(e,t,n){(t!=null||n!=null)&&Ci(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Si(e,t){Ci(e),e.curOp.scrollToPos=t}function Ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,wi(e,Nr(e,t.from),Nr(e,t.to),t.margin))}function wi(e,t,n,r){var i=vi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});xi(e,i.scrollLeft,i.scrollTop)}function Ti(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$i(e,{top:t}),Ei(e,t,!0),n&&$i(e),Gi(e,100))}function Ei(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Di(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ra(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Oi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+or(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+cr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var ki=function(e,t,n){this.cm=n;var r=this.vert=E(`div`,[E(`div`,null,null,`min-width: 1px`)],`CodeMirror-vscrollbar`),i=this.horiz=E(`div`,[E(`div`,null,null,`height: 100%; min-height: 1px`)],`CodeMirror-hscrollbar`);r.tabIndex=i.tabIndex=-1,e(r),e(i),N(r,`scroll`,function(){r.clientHeight&&t(r.scrollTop,`vertical`)}),N(i,`scroll`,function(){i.clientWidth&&t(i.scrollLeft,`horizontal`)}),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth=`18px`)};ki.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display=`block`,this.vert.style.bottom=t?r+`px`:`0`;var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+`px`}else this.vert.scrollTop=0,this.vert.style.display=``,this.vert.firstChild.style.height=`0`;if(t){this.horiz.style.display=`block`,this.horiz.style.right=n?r+`px`:`0`,this.horiz.style.left=e.barLeft+`px`;var a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+`px`}else this.horiz.style.display=``,this.horiz.firstChild.style.width=`0`;return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},ki.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,`horiz`)},ki.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,`vert`)},ki.prototype.zeroWidthHack=function(){var e=y&&!m?`12px`:`18px`;this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility=`hidden`,this.disableHoriz=new pe,this.disableVert=new pe},ki.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility=``;function r(){var i=e.getBoundingClientRect();(n==`vert`?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))==e?t.set(1e3,r):e.style.visibility=`hidden`}t.set(1e3,r)},ki.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ai=function(){};Ai.prototype.update=function(){return{bottom:0,right:0}},Ai.prototype.setScrollLeft=function(){},Ai.prototype.setScrollTop=function(){},Ai.prototype.clear=function(){};function ji(e,t){t||=Oi(e);var n=e.display.barWidth,r=e.display.barHeight;Mi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&fi(e),Mi(e,Oi(e)),n=e.display.barWidth,r=e.display.barHeight}function Mi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+`px`,n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+`px`,n.heightForcer.style.borderBottom=r.bottom+`px solid transparent`,r.right&&r.bottom?(n.scrollbarFiller.style.display=`block`,n.scrollbarFiller.style.height=r.bottom+`px`,n.scrollbarFiller.style.width=r.right+`px`):n.scrollbarFiller.style.display=``,r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display=`block`,n.gutterFiller.style.height=r.bottom+`px`,n.gutterFiller.style.width=t.gutterWidth+`px`):n.gutterFiller.style.display=``}var Ni={native:ki,null:Ai};function Pi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ne(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ni[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),N(t,`mousedown`,function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute(`cm-not-content`,`true`)},function(t,n){n==`horizontal`?Di(e,t):Ti(e,t)},e),e.display.scrollbars.addClass&&oe(e.display.wrapper,e.display.scrollbars.addClass)}var Fi=0;function Ii(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fi,markArrays:null},Bn(e.curOp)}function Li(e){var t=e.curOp;t&&Hn(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ri(e)})}function Ri(e){for(var t=e.ops,n=0;n<t.length;n++)zi(t[n]);for(var r=0;r<t.length;r++)Bi(t[r]);for(var i=0;i<t.length;i++)Vi(t[i]);for(var a=0;a<t.length;a++)Hi(t[a]);for(var o=0;o<t.length;o++)Ui(t[o])}function zi(e){var t=e.cm,n=t.display;Ji(t),e.updateMaxLine&&Cn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bi(e){e.updatedDisplay=e.mustUpdate&&Zi(e.cm,e.update)}function Vi(e){var t=e.cm,n=t.display;e.updatedDisplay&&fi(t),e.barMeasure=Oi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=mr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+cr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-lr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Hi(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+`px`,e.maxScrollLeft<t.doc.scrollLeft&&Di(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==ae(ce(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ji(t,e.barMeasure),e.updatedDisplay&&na(t,e.barMeasure),e.selectionChanged&&si(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&ci(e.cm)}function Ui(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Qi(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&Ei(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Di(t,e.scrollLeft,!0,!0),e.scrollToPos&&hi(t,gi(t,H(r,e.scrollToPos.from),H(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||P(i[o],`hide`);if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&P(a[s],`unhide`);n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&P(t,`changes`,t,e.changeObjs),e.update&&e.update.finish()}function Wi(e,t){if(e.curOp)return t();Ii(e);try{return t()}finally{Li(e)}}function G(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ii(e);try{return t.apply(e,arguments)}finally{Li(e)}}}function K(e){return function(){if(this.curOp)return e.apply(this,arguments);Ii(this);try{return e.apply(this,arguments)}finally{Li(this)}}}function q(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ii(t);try{return e.apply(this,arguments)}finally{Li(t)}}}function Gi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,de(Ki,e))}function Ki(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(r.line>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength?mt(t.mode,r.state):null,c=Mt(e,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var d=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!d&&f<o.length;++f)d=o[f]!=a.styles[f];d&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=e.options.maxHighlightLength&&Ft(e,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Gi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Wi(e,function(){for(var t=0;t<i.length;t++)Zr(e,i[t],`text`)})}}var qi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=mi(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=lr(e),this.force=n,this.dims=Gr(e),this.events=[]};qi.prototype.signal=function(e,t){Ue(e,t)&&this.events.push(arguments)},qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)P.apply(null,this.events[e])};function Ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=cr(e)+`px`,t.sizer.style.marginBottom=-t.nativeBarWidth+`px`,t.sizer.style.borderRightWidth=cr(e)+`px`,t.scrollbarsClipped=!0)}function Yi(e){if(e.hasFocus())return null;var t=ae(ce(e));if(!t||!ie(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=ue(e).getSelection();r.anchorNode&&r.extend&&ie(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Xi(e){if(!(!e||!e.activeElt||e.activeElt==ae(le(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ie(document.body,e.anchorNode)&&ie(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Zi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Qr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&ti(e)==0)return!1;ia(e)&&(Qr(e),t.dims=Gr(e));var i=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Gt&&(a=_n(e.doc,a),o=vn(e.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;ei(e,a,o),n.viewOffset=xn(R(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+`px`;var c=ti(e);if(!s&&c==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var l=Yi(e);return c>4&&(n.lineDiv.style.display=`none`),ea(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=``),n.renderedView=n.view,Xi(l),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Gi(e,400)),n.updateLineNumbers=null,!0}function Qi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==lr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+or(e.display)-ur(e),n.top)}),t.visible=mi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=mi(e.display,e.doc,n));if(!Zi(e,t))break;fi(e);var i=Oi(e);ni(e),ji(e,i),na(e,i),t.force=!1}t.signal(e,`update`,e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,`viewportChange`,e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $i(e,t){var n=new qi(e,t);if(Zi(e,n)){fi(e),Qi(e,n);var r=Oi(e);ni(e),ji(e,r),na(e,r),n.finish()}}function ea(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(t){var n=t.nextSibling;return c&&y&&e.display.currentWheelTarget==t?t.style.display=`none`:t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,d=0;d<l.length;d++){var f=l[d];if(!f.hidden)if(!f.node||f.node.parentNode!=a){var p=$n(e,f,u,n);a.insertBefore(p,o)}else{for(;o!=f.node;)o=s(o);var m=i&&t!=null&&t<=u&&f.lineNumber;f.changes&&(j(f.changes,`gutter`)>-1&&(m=!1),Gn(e,f,u,n)),m&&(w(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(St(e.options,u)))),o=f.node.nextSibling}u+=f.size}for(;o;)o=s(o)}function ta(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+`px`,U(e,`gutterChanged`,e)}function na(e,t){e.display.sizer.style.minHeight=t.docHeight+`px`,e.display.heightForcer.style.top=t.docHeight+`px`,e.display.gutters.style.height=t.docHeight+e.display.barHeight+cr(e)+`px`}function ra(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Kr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=r+`px`,o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=r+i+`px`)}}function ia(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=St(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(E(`div`,[E(`div`,n)],`CodeMirror-linenumber CodeMirror-gutter-elt`)),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width=``,r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+`px`,ta(e.display),!0}return!1}function aa(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var a=e[i],o=null;if(typeof a!=`string`&&(o=a.style,a=a.className),a==`CodeMirror-linenumbers`)if(t)r=!0;else continue;n.push({className:a,style:o})}return t&&!r&&n.push({className:`CodeMirror-linenumbers`,style:null}),n}function oa(e){var t=e.gutters,n=e.gutterSpecs;w(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=t.appendChild(E(`div`,null,`CodeMirror-gutter `+a));o&&(s.style.cssText=o),a==`CodeMirror-linenumbers`&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+`px`)}t.style.display=n.length?``:`none`,ta(e)}function sa(e){oa(e.display),W(e),ra(e)}function ca(e,t,r,i){var a=this;this.input=r,a.scrollbarFiller=E(`div`,null,`CodeMirror-scrollbar-filler`),a.scrollbarFiller.setAttribute(`cm-not-content`,`true`),a.gutterFiller=E(`div`,null,`CodeMirror-gutter-filler`),a.gutterFiller.setAttribute(`cm-not-content`,`true`),a.lineDiv=D(`div`,null,`CodeMirror-code`),a.selectionDiv=E(`div`,null,null,`position: relative; z-index: 1`),a.cursorDiv=E(`div`,null,`CodeMirror-cursors`),a.measure=E(`div`,null,`CodeMirror-measure`),a.lineMeasure=E(`div`,null,`CodeMirror-measure`),a.lineSpace=D(`div`,[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,`position: relative; outline: none`),a.mover=E(`div`,[D(`div`,[a.lineSpace],`CodeMirror-lines`)],null,`position: relative`),a.sizer=E(`div`,[a.mover],`CodeMirror-sizer`),a.sizerWidth=null,a.heightForcer=E(`div`,null,null,`position: absolute; height: `+me+`px; width: 1px;`),a.gutters=E(`div`,null,`CodeMirror-gutters`),a.lineGutter=null,a.scroller=E(`div`,[a.sizer,a.heightForcer,a.gutters],`CodeMirror-scroll`),a.scroller.setAttribute(`tabIndex`,`-1`),a.wrapper=E(`div`,[a.scrollbarFiller,a.gutterFiller,a.scroller],`CodeMirror`),u&&d>=105&&(a.wrapper.style.clipPath=`inset(0px)`),a.wrapper.setAttribute(`translate`,`no`),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),!c&&!(n&&v)&&(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=aa(i.gutters,i.lineNumbers),oa(a),r.init(a)}var la=0,ua=null;o?ua=-.53:n?ua=15:u?ua=-.7:p&&(ua=-1/3);function da(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n??=e.wheelDelta,{x:t,y:n}}function fa(e){var t=da(e);return t.x*=ua,t.y*=ua,t}function pa(e,t){u&&d==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents=`none`:clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=``},100));var r=da(t),i=r.x,a=r.y,o=ua;t.deltaMode===0&&(i=t.deltaX,a=t.deltaY,o=1);var s=e.display,l=s.scroller,p=l.scrollWidth>l.clientWidth,m=l.scrollHeight>l.clientHeight;if(i&&p||a&&m){if(a&&y&&c){outer:for(var h=t.target,g=s.view;h!=l;h=h.parentNode)for(var _=0;_<g.length;_++)if(g[_].node==h){e.display.currentWheelTarget=h;break outer}}if(i&&!n&&!f&&o!=null){a&&m&&Ti(e,Math.max(0,l.scrollTop+a*o)),Di(e,Math.max(0,l.scrollLeft+i*o)),(!a||a&&m)&&I(t),s.wheelStartX=null;return}if(a&&o!=null){var v=a*o,b=e.doc.scrollTop,x=b+s.wrapper.clientHeight;v<0?b=Math.max(0,b+v-50):x=Math.min(e.doc.height,x+v+50),$i(e,{top:b,bottom:x})}la<20&&t.deltaMode!==0&&(s.wheelStartX==null?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout(function(){if(s.wheelStartX!=null){var e=l.scrollLeft-s.wheelStartX,t=l.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ua=(ua*la+n)/(la+1),++la)}},200)):(s.wheelDX+=i,s.wheelDY+=a))}}var ma=function(e,t){this.ranges=e,this.primIndex=t};ma.prototype.primary=function(){return this.ranges[this.primIndex]},ma.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!Ct(n.anchor,r.anchor)||!Ct(n.head,r.head))return!1}return!0},ma.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new J(wt(this.ranges[t].anchor),wt(this.ranges[t].head));return new ma(e,this.primIndex)},ma.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ma.prototype.contains=function(e,t){t||=e;for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(V(t,r.from())>=0&&V(e,r.to())<=0)return n}return-1};var J=function(e,t){this.anchor=e,this.head=t};J.prototype.from=function(){return Et(this.anchor,this.head)},J.prototype.to=function(){return Tt(this.anchor,this.head)},J.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ha(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return V(e.from(),t.from())}),n=j(t,i);for(var a=1;a<t.length;a++){var o=t[a],s=t[a-1],c=V(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=Et(s.from(),o.from()),u=Tt(s.to(),o.to()),d=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,t.splice(--a,2,new J(d?u:l,d?l:u))}}return new ma(t,n)}function ga(e,t){return new ma([new J(e,t||e)],0)}function _a(e){return e.text?B(e.from.line+e.text.length-1,M(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function va(e,t){if(V(e,t.from)<0)return e;if(V(e,t.to)<=0)return _a(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=_a(t).ch-t.to.ch),B(n,r)}function ya(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new J(va(i.anchor,t),va(i.head,t)))}return ha(e.cm,n,e.sel.primIndex)}function ba(e,t,n){return e.line==t.line?B(n.line,e.ch-t.ch+n.ch):B(n.line+(e.line-t.line),e.ch)}function xa(e,t,n){for(var r=[],i=B(e.first,0),a=i,o=0;o<t.length;o++){var s=t[o],c=ba(s.from,i,a),l=ba(_a(s),i,a);if(i=s.to,a=l,n==`around`){var u=e.sel.ranges[o],d=V(u.head,u.anchor)<0;r[o]=new J(d?l:c,d?c:l)}else r[o]=new J(c,c)}return new ma(r,e.sel.primIndex)}function Sa(e){e.doc.mode=dt(e.options,e.doc.modeOption),Ca(e)}function Ca(e){e.doc.iter(function(e){e.stateAfter&&=null,e.styles&&=null}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gi(e,100),e.state.modeGen++,e.curOp&&W(e)}function wa(e,t){return t.from.ch==0&&t.to.ch==0&&M(t.text)==``&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ta(e,t,n,r){function i(e){return n?n[e]:null}function a(e,n,i){Tn(e,n,i,r),U(e,`change`,e,t)}function o(e,t){for(var n=[],a=e;a<t;++a)n.push(new wn(l[a],i(a),r));return n}var s=t.from,c=t.to,l=t.text,u=R(e,s.line),d=R(e,c.line),f=M(l),p=i(l.length-1),m=c.line-s.line;if(t.full)e.insert(0,o(0,l.length)),e.remove(l.length,e.size-l.length);else if(wa(e,t)){var h=o(0,l.length-1);a(d,d.text,p),m&&e.remove(s.line,m),h.length&&e.insert(s.line,h)}else if(u==d)if(l.length==1)a(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),p);else{var g=o(1,l.length-1);g.push(new wn(f+u.text.slice(c.ch),p,r)),a(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,g)}else if(l.length==1)a(u,u.text.slice(0,s.ch)+l[0]+d.text.slice(c.ch),i(0)),e.remove(s.line+1,m);else{a(u,u.text.slice(0,s.ch)+l[0],i(0)),a(d,f+d.text.slice(c.ch),p);var _=o(1,l.length-1);m>1&&e.remove(s.line+1,m-1),e.insert(s.line+1,_)}U(e,`change`,e,t)}function Ea(e,t,n){function r(e,i,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,e,c))}}}r(e,null,!0)}function Da(e,t){if(t.cm)throw Error(`This document is already in use.`);e.doc=t,t.cm=e,Jr(e),Sa(e),Oa(e),e.options.direction=t.direction,e.options.lineWrapping||Cn(e),e.options.mode=t.modeOption,W(e)}function Oa(e){(e.doc.direction==`rtl`?oe:ne)(e.display.lineDiv,`CodeMirror-rtl`)}function ka(e){Wi(e,function(){Oa(e),W(e)})}function Aa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ja(e,t){var n={from:wt(t.from),to:_a(t),text:_t(e,t.from,t.to)};return Ra(e,n,t.from.line,t.to.line+1),Ea(e,function(e){return Ra(e,n,t.from.line,t.to.line+1)},!0),n}function Ma(e){for(;e.length&&M(e).ranges;)e.pop()}function Na(e,t){if(t)return Ma(e.done),M(e.done);if(e.done.length&&!M(e.done).ranges)return M(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),M(e.done)}function Pa(e,t,n,r){var i=e.history;i.undone.length=0;var a=+new Date,o,s;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)==`+`&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)==`*`))&&(o=Na(i,i.lastOp==r)))s=M(o.changes),V(t.from,t.to)==0&&V(t.from,s.to)==0?s.to=_a(t):o.changes.push(ja(e,t));else{var c=M(i.done);for((!c||!c.ranges)&&La(e.sel,i.done),o={changes:[ja(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||P(e,`historyAdded`)}function Fa(e,t,n,r){var i=t.charAt(0);return i==`*`||i==`+`&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ia(e,t,n,r){var i=e.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Fa(e,a,M(i.done),t))?i.done[i.done.length-1]=t:La(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&r.clearRedo!==!1&&Ma(i.undone)}function La(e,t){var n=M(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ra(e,t,n,r){var i=t[`spans_`+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||=t[`spans_`+e.id]={})[a]=n.markedSpans),++a})}function za(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||=e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}function Ba(e,t){var n=t[`spans_`+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(za(n[i]));return r}function Va(e,t){var n=Ba(e,t),r=en(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)spans:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue spans;a.push(c)}else o&&(n[i]=o)}return n}function Ha(e,t,n){for(var r=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges){r.push(n?ma.prototype.deepCopy.call(a):a);continue}var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var d in l)(u=d.match(/^spans_(\d+)$/))&&j(t,Number(u[1]))>-1&&(M(s)[d]=l[d],delete l[d])}}return r}function Ua(e,t,n,r){if(r){var i=e.anchor;if(n){var a=V(t,i)<0;a==V(n,i)<0?a!=V(t,n)<0&&(t=n):(i=t,t=n)}return new J(i,t)}else return new J(n||t,t)}function Wa(e,t,n,r,i){i??=e.cm&&(e.cm.display.shift||e.extend),Y(e,new ma([Ua(e.sel.primary(),t,n,i)],0),r)}function Ga(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)r[a]=Ua(e.sel.ranges[a],t[a],null,i);Y(e,ha(e.cm,r,e.sel.primIndex),n)}function Ka(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Y(e,ha(e.cm,i,e.sel.primIndex),r)}function qa(e,t,n,r){Y(e,ga(t,n),r)}function Ja(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new J(H(e,t[n].anchor),H(e,t[n].head))},origin:n&&n.origin};return P(e,`beforeSelectionChange`,e,r),e.cm&&P(e.cm,`beforeSelectionChange`,e.cm,r),r.ranges==t.ranges?t:ha(e.cm,r.ranges,r.ranges.length-1)}function Ya(e,t,n){var r=e.history.done,i=M(r);i&&i.ranges?(r[r.length-1]=t,Xa(e,t,n)):Y(e,t,n)}function Y(e,t,n){Xa(e,t,n),Ia(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Xa(e,t,n){(Ue(e,`beforeSelectionChange`)||e.cm&&Ue(e.cm,`beforeSelectionChange`))&&(t=Ja(e,t,n));var r=n&&n.bias||(V(t.primary().head,e.sel.primary().head)<0?-1:1);Za(e,$a(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&e.cm.getOption(`readOnly`)!=`nocursor`&&bi(e.cm)}function Za(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,He(e.cm)),U(e,`cursorActivity`,e))}function Qa(e){Za(e,$a(e,e.sel,null,!1))}function $a(e,t,n,r){for(var i,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],c=to(e,o.anchor,s&&s.anchor,n,r),l=o.head==o.anchor?c:to(e,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||=t.ranges.slice(0,a),i[a]=new J(c,l))}return i?ha(e.cm,i,t.primIndex):t}function eo(e,t,n,r,i){var a=R(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker,l=`selectLeft`in c?!c.selectLeft:c.inclusiveLeft,u=`selectRight`in c?!c.selectRight:c.inclusiveRight;if((s.from==null||(l?s.from<=t.ch:s.from<t.ch))&&(s.to==null||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(P(c,`beforeCursorEnter`),c.explicitlyCleared))if(a.markedSpans){--o;continue}else break;if(!c.atomic)continue;if(n){var d=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(d=no(e,d,-r,d&&d.line==t.line?a:null)),d&&d.line==t.line&&(f=V(d,n))&&(r<0?f<0:f>0))return eo(e,d,t,r,i)}var p=c.find(r<0?-1:1);return(r<0?l:u)&&(p=no(e,p,r,p.line==t.line?a:null)),p?eo(e,p,t,r,i):null}}return t}function to(e,t,n,r,i){var a=r||1;return eo(e,t,n,a,i)||!i&&eo(e,t,n,a,!0)||eo(e,t,n,-a,i)||!i&&eo(e,t,n,-a,!0)||(e.cantEdit=!0,B(e.first,0))}function no(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?H(e,B(t.line-1)):null:n>0&&t.ch==(r||R(e,t.line)).text.length?t.line<e.first+e.size-1?B(t.line+1,0):null:new B(t.line,t.ch+n)}function ro(e){e.setSelection(B(e.firstLine(),0),B(e.lastLine()),ge)}function io(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,a){t&&(r.from=H(e,t)),n&&(r.to=H(e,n)),i&&(r.text=i),a!==void 0&&(r.origin=a)}),P(e,`beforeChange`,e,r),e.cm&&P(e.cm,`beforeChange`,e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ao(e,t,n){if(e.cm){if(!e.cm.curOp)return G(e.cm,ao)(e,t,n);if(e.cm.state.suppressEdits)return}if(!((Ue(e,`beforeChange`)||e.cm&&Ue(e.cm,`beforeChange`))&&(t=io(e,t,!0),!t))){var r=Wt&&!n&&nn(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)oo(e,{from:r[i].from,to:r[i].to,text:i?[``]:t.text,origin:t.origin});else oo(e,t)}}function oo(e,t){if(!(t.text.length==1&&t.text[0]==``&&V(t.from,t.to)==0)){var n=ya(e,t);Pa(e,t,n,e.cm?e.cm.curOp.id:NaN),lo(e,t,n,en(e,t));var r=[];Ea(e,function(e,n){!n&&j(r,e.history)==-1&&(ho(e.history,t),r.push(e.history)),lo(e,t,null,en(e,t))})}}function so(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,a,o=e.sel,s=t==`undo`?i.done:i.undone,c=t==`undo`?i.undone:i.done,l=0;l<s.length&&(a=s[l],!(n?a.ranges&&!a.equals(e.sel):!a.ranges));l++);if(l!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(a=s.pop(),a.ranges){if(La(a,c),n&&!a.equals(e.sel)){Y(e,a,{clearRedo:!1});return}o=a}else if(r){s.push(a);return}else break;var u=[];La(o,c),c.push({changes:u,generation:i.generation}),i.generation=a.generation||++i.maxGeneration;for(var d=Ue(e,`beforeChange`)||e.cm&&Ue(e.cm,`beforeChange`),f=function(n){var r=a.changes[n];if(r.origin=t,d&&!io(e,r,!1))return s.length=0,{};u.push(ja(e,r)),lo(e,r,n?ya(e,r):M(s),Va(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:_a(r)});var i=[];Ea(e,function(e,t){!t&&j(i,e.history)==-1&&(ho(e.history,r),i.push(e.history)),lo(e,r,null,Va(e,r))})},p=a.changes.length-1;p>=0;--p){var m=f(p);if(m)return m.v}}}}function co(e,t){if(t!=0&&(e.first+=t,e.sel=new ma(Se(e.sel.ranges,function(e){return new J(B(e.anchor.line+t,e.anchor.ch),B(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){W(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Zr(e.cm,r,`gutter`)}}function lo(e,t,n,r){if(e.cm&&!e.cm.curOp)return G(e.cm,lo)(e,t,n,r);if(t.to.line<e.first){co(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);co(e,i),t={from:B(e.first,0),to:B(t.to.line+i,t.to.ch),text:[M(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:B(a,R(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_t(e,t.from,t.to),n||=ya(e,t),e.cm?uo(e.cm,t,r):Ta(e,t,r),Xa(e,n,ge),e.cantEdit&&to(e,B(e.firstLine(),0))&&(e.cantEdit=!1)}}function uo(e,t,n){var r=e.doc,i=e.display,a=t.from,o=t.to,s=!1,c=a.line;e.options.lineWrapping||(c=z(mn(R(r,a.line))),r.iter(c,o.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&He(e),Ta(r,t,n,qr(e)),e.options.lineWrapping||(r.iter(c,a.line+t.text.length,function(e){var t=Sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Ut(r,a.line),Gi(e,400);var l=t.text.length-(o.line-a.line)-1;t.full?W(e):a.line==o.line&&t.text.length==1&&!wa(e.doc,t)?Zr(e,a.line,`text`):W(e,a.line,o.line+1,l);var u=Ue(e,`changes`),d=Ue(e,`change`);if(d||u){var f={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};d&&U(e,`change`,e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function fo(e,t,n,r,i){var a;r||=n,V(r,n)<0&&(a=[r,n],n=a[0],r=a[1]),typeof t==`string`&&(t=e.splitLines(t)),ao(e,{from:n,to:r,text:t,origin:i})}function po(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function mo(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i],o=!0;if(a.ranges){a.copied||(a=e[i]=a.deepCopy(),a.copied=!0);for(var s=0;s<a.ranges.length;s++)po(a.ranges[s].anchor,t,n,r),po(a.ranges[s].head,t,n,r);continue}for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=B(l.from.line+r,l.from.ch),l.to=B(l.to.line+r,l.to.ch);else if(t<=l.to.line){o=!1;break}}o||(e.splice(0,i+1),i=0)}}function ho(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;mo(e.done,n,r,i),mo(e.undone,n,r,i)}function go(e,t,n,r){var i=t,a=t;return typeof t==`number`?a=R(e,Dt(e,t)):i=z(t),i==null?null:(r(a,i)&&e.cm&&Zr(e.cm,i,n),a)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,En(i),U(i,`delete`)}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function vo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}vo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var a=Math.min(t,i-e),o=r.height;if(r.removeInner(e,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),(t-=a)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var c=new _o(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new vo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=j(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new vo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(e<a){var o=Math.min(t,a-e);if(i.iterN(e,o,n))return!0;if((t-=o)==0)break;e=0}else e-=a}}};var yo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};yo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=z(n);if(!(r==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var a=rr(this);yt(n,Math.max(0,n.height-a)),e&&(Wi(e,function(){bo(e,n,-a),Zr(e,r,`widget`)}),U(e,`lineWidgetCleared`,e,this,r))}},yo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=rr(this)-t;i&&(yn(this.doc,r)||yt(r,r.height+i),n&&Wi(n,function(){n.curOp.forceUpdate=!0,bo(n,r,i),U(n,`lineWidgetChanged`,n,e,z(r))}))},We(yo);function bo(e,t,n){xn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&yi(e,n)}function xo(e,t,n,r){var i=new yo(e,n,r),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),go(e,t,`widget`,function(t){var n=t.widgets||=[];if(i.insertAt==null?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,a&&!yn(e,t)){var r=xn(t)<e.scrollTop;yt(t,t.height+rr(i)),r&&yi(a,i.height),a.curOp.forceUpdate=!0}return!0}),a&&U(a,`lineWidgetAdded`,a,i,typeof t==`number`?t:z(t)),i}var So=0,Co=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++So};Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ii(e),Ue(this,`clear`)){var n=this.find();n&&U(this,`clear`,n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Yt(o.markedSpans,this);e&&!this.collapsed?Zr(e,z(o),`text`):e&&(s.to!=null&&(i=z(o)),s.from!=null&&(r=z(o))),o.markedSpans=Xt(o.markedSpans,s),s.from==null&&this.collapsed&&!yn(this.doc,o)&&e&&yt(o,Ur(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=mn(this.lines[c]),u=Sn(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&W(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qa(e.doc)),e&&U(e,`markerCleared`,e,this,r,i),t&&Li(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){e==null&&this.type==`bookmark`&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var a=this.lines[i],o=Yt(a.markedSpans,this);if(o.from!=null&&(n=B(t?a:z(a),o.from),e==-1))return n;if(o.to!=null&&(r=B(t?a:z(a),o.to),e==1))return r}return n&&{from:n,to:r}},Co.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;!t||!r||Wi(r,function(){var i=t.line,a=hr(r,z(t.line));if(a&&(Cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!yn(n.doc,i)&&n.height!=null){var o=n.height;n.height=null;var s=rr(n)-o;s&&yt(i,i.height+s)}U(r,`markerChanged`,r,e)})},Co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||j(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||=[]).push(this)}this.lines.push(e)},Co.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||=[]).push(this)}},We(Co);function wo(e,t,n,r,i){if(r&&r.shared)return Eo(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return G(e.cm,wo)(e,t,n,r,i);var a=new Co(e,i),o=V(t,n);if(r&&A(r,a,!1),o>0||o==0&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=D(`span`,[a.replacedWith],`CodeMirror-widget`),r.handleMouseEvents||a.widgetNode.setAttribute(`cm-ignore-events`,`true`),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(pn(e,t.line,t,n,a)||t.line!=n.line&&pn(e,n.line,t,n,a))throw Error(`Inserting collapsed marker partially overlapping an existing one`);qt()}a.addToHistory&&Pa(e,{from:t,to:n,origin:`markText`},e.sel,NaN);var s=t.line,c=e.cm,l;if(e.iter(s,n.line+1,function(r){c&&a.collapsed&&!c.options.lineWrapping&&mn(r)==c.display.maxLine&&(l=!0),a.collapsed&&s!=t.line&&yt(r,0),Zt(r,new Jt(a,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s}),a.collapsed&&e.iter(t.line,n.line+1,function(t){yn(e,t)&&yt(t,0)}),a.clearOnEnter&&N(a,`beforeCursorEnter`,function(){return a.clear()}),a.readOnly&&(Kt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++So,a.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),a.collapsed)W(c,t.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=n.line;u++)Zr(c,u,`text`);a.atomic&&Qa(c.doc),U(c,`markerAdded`,c,a)}return a}var To=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};To.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();U(this,`clear`)}},To.prototype.find=function(e,t){return this.primary.find(e,t)},We(To);function Eo(e,t,n,r,i){r=A(r),r.shared=!1;var a=[wo(e,t,n,r,i)],o=a[0],s=r.widgetNode;return Ea(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),a.push(wo(e,H(e,t),H(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;o=M(a)}),new To(a,o)}function Do(e){return e.findMarks(B(e.first,0),e.clipPos(B(e.lastLine())),function(e){return e.parent})}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),a=e.clipPos(i.from),o=e.clipPos(i.to);if(V(a,o)){var s=wo(e,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function ko(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ea(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var a=n.markers[i];j(r,a.doc)==-1&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}var Ao=0,X=function(e,t,n,r,i){if(!(this instanceof X))return new X(e,t,n,r,i);n??=0,vo.call(this,[new _o([new wn(``,null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=B(n,0);this.sel=ga(a),this.history=new Aa(null),this.id=++Ao,this.modeOption=t,this.lineSep=r,this.direction=i==`rtl`?`rtl`:`ltr`,this.extend=!1,typeof e==`string`&&(e=this.splitLines(e)),Ta(this,{from:a,to:a,text:e}),Y(this,ga(a),ge)};X.prototype=Te(vo.prototype,{constructor:X,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=vt(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:q(function(e){var t=B(this.first,0),n=this.first+this.size-1;ao(this,{from:t,to:B(n,R(this,n).text.length),text:this.splitLines(e),origin:`setValue`,full:!0},!0),this.cm&&xi(this.cm,0,0),Y(this,ga(t),ge)}),replaceRange:function(e,t,n,r){t=H(this,t),n=n?H(this,n):t,fo(this,e,t,n,r)},getRange:function(e,t,n){var r=_t(this,H(this,e),H(this,t));return n===!1?r:n===``?r.join(``):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(xt(this,e))return R(this,e)},getLineNumber:function(e){return z(e)},getLineHandleVisualStart:function(e){return typeof e==`number`&&(e=R(this,e)),mn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return H(this,e)},getCursor:function(e){var t=this.sel.primary();return e==null||e==`head`?t.head:e==`anchor`?t.anchor:e==`end`||e==`to`||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:q(function(e,t,n){qa(this,H(this,typeof e==`number`?B(e,t||0):e),null,n)}),setSelection:q(function(e,t,n){qa(this,H(this,e),H(this,t||e),n)}),extendSelection:q(function(e,t,n){Wa(this,H(this,e),t&&H(this,t),n)}),extendSelections:q(function(e,t){Ga(this,kt(this,e),t)}),extendSelectionsBy:q(function(e,t){var n=Se(this.sel.ranges,e);Ga(this,kt(this,n),t)}),setSelections:q(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new J(H(this,e[i].anchor),H(this,e[i].head||e[i].anchor));t??=Math.min(e.length-1,this.sel.primIndex),Y(this,ha(this.cm,r,t),n)}}),addSelection:q(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new J(H(this,e),H(this,t||e))),Y(this,ha(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=_t(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=_t(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||`+input`)},replaceSelections:q(function(e,t,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(e[a]),origin:n}}for(var s=t&&t!=`end`&&xa(this,r,t),c=r.length-1;c>=0;c--)ao(this,r[c]);s?Ya(this,s):this.cm&&bi(this.cm)}),undo:q(function(){so(this,`undo`)}),redo:q(function(){so(this,`redo`)}),undoSelection:q(function(){so(this,`undo`,!0)}),redoSelection:q(function(){so(this,`redo`,!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Aa(this.history),Ea(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ha(this.history.done),undone:Ha(this.history.undone)}},setHistory:function(e){var t=this.history=new Aa(this.history);t.done=Ha(e.done.slice(0),null,!0),t.undone=Ha(e.undone.slice(0),null,!0)},setGutterMarker:q(function(e,t,n){return go(this,e,`gutter`,function(e){var r=e.gutterMarkers||={};return r[t]=n,!n&&ke(r)&&(e.gutterMarkers=null),!0})}),clearGutter:q(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&go(t,n,`gutter`,function(){return n.gutterMarkers[e]=null,ke(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e==`number`){if(!xt(this,e)||(t=e,e=R(this,e),!e))return null}else if(t=z(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:q(function(e,t,n){return go(this,e,t==`gutter`?`gutter`:`class`,function(e){var r=t==`text`?`textClass`:t==`background`?`bgClass`:t==`gutter`?`gutterClass`:`wrapClass`;if(!e[r])e[r]=n;else if(te(n).test(e[r]))return!1;else e[r]+=` `+n;return!0})}),removeLineClass:q(function(e,t,n){return go(this,e,t==`gutter`?`gutter`:`class`,function(e){var r=t==`text`?`textClass`:t==`background`?`bgClass`:t==`gutter`?`gutterClass`:`wrapClass`,i=e[r];if(!i)return!1;if(n==null)e[r]=null;else{var a=i.match(te(n));if(!a)return!1;var o=a.index+a[0].length;e[r]=i.slice(0,a.index)+(!a.index||o==i.length?``:` `)+i.slice(o)||null}return!0})}),addLineWidget:q(function(e,t,n){return xo(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return wo(this,H(this,e),H(this,t),n,n&&n.type||`range`)},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=H(this,e),wo(this,e,e,n,`bookmark`)},findMarksAt:function(e){e=H(this,e);var t=[],n=R(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=H(this,e),t=H(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];!(c.to!=null&&i==e.line&&e.ch>=c.to||c.from==null&&i!=e.line||c.from!=null&&i==t.line&&c.from>=t.ch)&&(!n||n(c.marker))&&r.push(c.marker.parent||c.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var a=i.text.length+r;if(a>e)return t=e,!0;e-=a,++n}),H(this,B(n,t))},indexFromPos:function(e){e=H(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new X(vt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||={};var t=this.first,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new X(vt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||=[]).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Oo(r,Do(this)),r},unlinkDoc:function(e){if(e instanceof Z&&(e=e.doc),this.linked){for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ko(Do(this));break}}if(e.history==this.history){var n=[e.id];Ea(e,function(e){return n.push(e.id)},!0),e.history=new Aa(null),e.history.done=Ha(this.history.done,n),e.history.undone=Ha(this.history.undone,n)}},iterLinkedDocs:function(e){Ea(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):tt(e)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
-
`},setDirection:q(function(e){e!=`rtl`&&(e=`ltr`),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ka(this.cm))})}),X.prototype.eachLine=X.prototype.iter;var jo=0;function Mo(e){var t=this;if(Fo(t),!(F(t,e)||ir(t.display,e))){I(e),o&&(jo=+new Date);var n=Yr(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(){++s==i&&G(t,function(){n=H(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(a.filter(function(e){return e!=null}).join(t.doc.lineSeparator())),origin:`paste`};ao(t.doc,e),Ya(t.doc,ga(H(t.doc,n),H(t.doc,_a(e))))})()},l=function(e,n){if(t.options.allowDropFileTypes&&j(t.options.allowDropFileTypes,e.type)==-1){c();return}var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var e=r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)){c();return}a[n]=e,c()},r.readAsText(e)},u=0;u<r.length;u++)l(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData(`Text`);if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Xa(t.doc,ga(n,n)),f)for(var p=0;p<f.length;++p)fo(t.doc,``,f[p].anchor,f[p].head,`drag`);t.replaceSelection(d,`around`,`paste`),t.display.input.focus()}}catch{}}}}function No(e,t){if(o&&(!e.state.draggingText||+new Date-jo<100)){qe(t);return}if(!(F(e,t)||ir(e.display,t))&&(t.dataTransfer.setData(`Text`,e.getSelection()),t.dataTransfer.effectAllowed=`copyMove`,t.dataTransfer.setDragImage&&!p)){var n=E(`img`,null,null,`position: fixed; left: 0; top: 0;`);n.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`,f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Po(e,t){var n=Yr(e,t);if(n){var r=document.createDocumentFragment();ii(e,n,r),e.display.dragCursor||(e.display.dragCursor=E(`div`,null,`CodeMirror-cursors CodeMirror-dragcursors`),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}function Fo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Io(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName(`CodeMirror`),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Lo=!1;function Ro(){Lo||=(zo(),!0)}function zo(){var e;N(window,`resize`,function(){e??=setTimeout(function(){e=null,Io(Bo)},100)}),N(window,`blur`,function(){return Io(di)})}function Bo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Vo={3:`Pause`,8:`Backspace`,9:`Tab`,13:`Enter`,16:`Shift`,17:`Ctrl`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Esc`,32:`Space`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,44:`PrintScrn`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Mod`,92:`Mod`,93:`Mod`,106:`*`,107:`=`,109:`-`,110:`.`,111:`/`,145:`ScrollLock`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`,224:`Mod`,63232:`Up`,63233:`Down`,63234:`Left`,63235:`Right`,63272:`Delete`,63273:`Home`,63275:`End`,63276:`PageUp`,63277:`PageDown`,63302:`Insert`},Ho=0;Ho<10;Ho++)Vo[Ho+48]=Vo[Ho+96]=String(Ho);for(var Uo=65;Uo<=90;Uo++)Vo[Uo]=String.fromCharCode(Uo);for(var Wo=1;Wo<=12;Wo++)Vo[Wo+111]=Vo[Wo+63235]=`F`+Wo;var Go={};Go.basic={Left:`goCharLeft`,Right:`goCharRight`,Up:`goLineUp`,Down:`goLineDown`,End:`goLineEnd`,Home:`goLineStartSmart`,PageUp:`goPageUp`,PageDown:`goPageDown`,Delete:`delCharAfter`,Backspace:`delCharBefore`,"Shift-Backspace":`delCharBefore`,Tab:`defaultTab`,"Shift-Tab":`indentAuto`,Enter:`newlineAndIndent`,Insert:`toggleOverwrite`,Esc:`singleSelection`},Go.pcDefault={"Ctrl-A":`selectAll`,"Ctrl-D":`deleteLine`,"Ctrl-Z":`undo`,"Shift-Ctrl-Z":`redo`,"Ctrl-Y":`redo`,"Ctrl-Home":`goDocStart`,"Ctrl-End":`goDocEnd`,"Ctrl-Up":`goLineUp`,"Ctrl-Down":`goLineDown`,"Ctrl-Left":`goGroupLeft`,"Ctrl-Right":`goGroupRight`,"Alt-Left":`goLineStart`,"Alt-Right":`goLineEnd`,"Ctrl-Backspace":`delGroupBefore`,"Ctrl-Delete":`delGroupAfter`,"Ctrl-S":`save`,"Ctrl-F":`find`,"Ctrl-G":`findNext`,"Shift-Ctrl-G":`findPrev`,"Shift-Ctrl-F":`replace`,"Shift-Ctrl-R":`replaceAll`,"Ctrl-[":`indentLess`,"Ctrl-]":`indentMore`,"Ctrl-U":`undoSelection`,"Shift-Ctrl-U":`redoSelection`,"Alt-U":`redoSelection`,fallthrough:`basic`},Go.emacsy={"Ctrl-F":`goCharRight`,"Ctrl-B":`goCharLeft`,"Ctrl-P":`goLineUp`,"Ctrl-N":`goLineDown`,"Ctrl-A":`goLineStart`,"Ctrl-E":`goLineEnd`,"Ctrl-V":`goPageDown`,"Shift-Ctrl-V":`goPageUp`,"Ctrl-D":`delCharAfter`,"Ctrl-H":`delCharBefore`,"Alt-Backspace":`delWordBefore`,"Ctrl-K":`killLine`,"Ctrl-T":`transposeChars`,"Ctrl-O":`openLine`},Go.macDefault={"Cmd-A":`selectAll`,"Cmd-D":`deleteLine`,"Cmd-Z":`undo`,"Shift-Cmd-Z":`redo`,"Cmd-Y":`redo`,"Cmd-Home":`goDocStart`,"Cmd-Up":`goDocStart`,"Cmd-End":`goDocEnd`,"Cmd-Down":`goDocEnd`,"Alt-Left":`goGroupLeft`,"Alt-Right":`goGroupRight`,"Cmd-Left":`goLineLeft`,"Cmd-Right":`goLineRight`,"Alt-Backspace":`delGroupBefore`,"Ctrl-Alt-Backspace":`delGroupAfter`,"Alt-Delete":`delGroupAfter`,"Cmd-S":`save`,"Cmd-F":`find`,"Cmd-G":`findNext`,"Shift-Cmd-G":`findPrev`,"Cmd-Alt-F":`replace`,"Shift-Cmd-Alt-F":`replaceAll`,"Cmd-[":`indentLess`,"Cmd-]":`indentMore`,"Cmd-Backspace":`delWrappedLineLeft`,"Cmd-Delete":`delWrappedLineRight`,"Cmd-U":`undoSelection`,"Shift-Cmd-U":`redoSelection`,"Ctrl-Up":`goDocStart`,"Ctrl-Down":`goDocEnd`,fallthrough:[`basic`,`emacsy`]},Go.default=y?Go.macDefault:Go.pcDefault;function Ko(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,a,o=0;o<t.length-1;o++){var s=t[o];if(/^(cmd|meta|m)$/i.test(s))a=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))i=!0;else throw Error(`Unrecognized modifier name: `+s)}return n&&(e=`Alt-`+e),r&&(e=`Ctrl-`+e),a&&(e=`Cmd-`+e),i&&(e=`Shift-`+e),e}function qo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r==`...`){delete e[n];continue}for(var i=Se(n.split(` `),Ko),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(` `),o=r):(s=i.slice(0,a+1).join(` `),o=`...`);var c=t[s];if(!c)t[s]=o;else if(c!=o)throw Error(`Inconsistent bindings for `+s)}delete e[n]}for(var l in t)e[l]=t[l];return e}function Jo(e,t,n,r){t=Qo(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return`nothing`;if(i===`...`)return`multi`;if(i!=null&&n(i))return`handled`;if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!=`[object Array]`)return Jo(e,t.fallthrough,n,r);for(var a=0;a<t.fallthrough.length;a++){var o=Jo(e,t.fallthrough[a],n,r);if(o)return o}}}function Yo(e){var t=typeof e==`string`?e:Vo[e.keyCode];return t==`Ctrl`||t==`Alt`||t==`Shift`||t==`Mod`}function Xo(e,t,n){var r=e;return t.altKey&&r!=`Alt`&&(e=`Alt-`+e),(C?t.metaKey:t.ctrlKey)&&r!=`Ctrl`&&(e=`Ctrl-`+e),(C?t.ctrlKey:t.metaKey)&&r!=`Mod`&&(e=`Cmd-`+e),!n&&t.shiftKey&&r!=`Shift`&&(e=`Shift-`+e),e}function Zo(e,t){if(f&&e.keyCode==34&&e.char)return!1;var n=Vo[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),Xo(n,e,t))}function Qo(e){return typeof e==`string`?Go[e]:e}function $o(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=t(n[i]);r.length&&V(a.from,M(r).to)<=0;){var o=r.pop();if(V(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Wi(e,function(){for(var t=r.length-1;t>=0;t--)fo(e.doc,``,r[t].from,r[t].to,`+delete`);bi(e)})}function es(e,t,n){var r=Me(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ts(e,t,n){var r=es(e,t.ch,n);return r==null?null:new B(t.line,r,n<0?`after`:`before`)}function ns(e,t,n,r,i){if(e){t.doc.direction==`rtl`&&(i=-i);var a=Re(n,t.doc.direction);if(a){var o=i<0?M(a):a[0],s=i<0==(o.level==1)?`after`:`before`,c;if(o.level>0||t.doc.direction==`rtl`){var l=gr(t,n);c=i<0?n.text.length-1:0;var u=_r(t,l,c).top;c=Ne(function(e){return _r(t,l,e).top==u},i<0==(o.level==1)?o.from:o.to-1,c),s==`before`&&(c=es(n,c,1))}else c=i<0?o.to:o.from;return new B(r,c,s)}}return new B(r,i<0?n.text.length:0,i<0?`before`:`after`)}function rs(e,t,n,r){var i=Re(t,e.doc.direction);if(!i)return ts(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky=`before`):n.ch<=0&&(n.ch=0,n.sticky=`after`);var a=Ie(i,n.ch,n.sticky),o=i[a];if(e.doc.direction==`ltr`&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return ts(t,n,r);var s=function(e,n){return es(t,e instanceof B?e.ch:e,n)},c,l=function(n){return e.options.lineWrapping?(c||=gr(e,t),Lr(e,t,c,n)):{begin:0,end:t.text.length}},u=l(n.sticky==`before`?s(n,-1):n.ch);if(e.doc.direction==`rtl`||o.level==1){var d=o.level==1==r<0,f=s(n,d?1:-1);if(f!=null&&(d?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){var p=d?`before`:`after`;return new B(n.line,f,p)}}var m=function(e,t,r){for(var a=function(e,t){return t?new B(n.line,s(e,1),`before`):new B(n.line,e,`after`)};e>=0&&e<i.length;e+=t){var o=i[e],c=t>0==(o.level!=1),l=c?r.begin:s(r.end,-1);if(o.from<=l&&l<o.to||(l=c?o.from:s(o.to,-1),r.begin<=l&&l<r.end))return a(l,c)}},h=m(a+r,r,u);if(h)return h;var g=r>0?u.end:s(u.begin,-1);return g!=null&&!(r>0&&g==t.text.length)&&(h=m(r>0?0:i.length-1,r,l(g)),h)?h:null}var is={selectAll:ro,singleSelection:function(e){return e.setSelection(e.getCursor(`anchor`),e.getCursor(`head`),ge)},killLine:function(e){return $o(e,function(t){if(t.empty()){var n=R(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:B(t.head.line+1,0)}:{from:t.head,to:B(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return $o(e,function(t){return{from:B(t.from().line,0),to:H(e.doc,B(t.to().line+1,0))}})},delLineLeft:function(e){return $o(e,function(e){return{from:B(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return $o(e,function(t){var n=e.charCoords(t.head,`div`).top+5;return{from:e.coordsChar({left:0,top:n},`div`),to:t.from()}})},delWrappedLineRight:function(e){return $o(e,function(t){var n=e.charCoords(t.head,`div`).top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},`div`);return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(B(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(B(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return as(e,t.head.line)},{origin:`+move`,bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ss(e,t.head)},{origin:`+move`,bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return os(e,t.head.line)},{origin:`+move`,bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},`div`)},ve)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5;return e.coordsChar({left:0,top:n},`div`)},ve)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,`div`).top+5,r=e.coordsChar({left:0,top:n},`div`);return r.ch<e.getLine(r.line).search(/\S/)?ss(e,t.head):r},ve)},goLineUp:function(e){return e.moveV(-1,`line`)},goLineDown:function(e){return e.moveV(1,`line`)},goPageUp:function(e){return e.moveV(-1,`page`)},goPageDown:function(e){return e.moveV(1,`page`)},goCharLeft:function(e){return e.moveH(-1,`char`)},goCharRight:function(e){return e.moveH(1,`char`)},goColumnLeft:function(e){return e.moveH(-1,`column`)},goColumnRight:function(e){return e.moveH(1,`column`)},goWordLeft:function(e){return e.moveH(-1,`word`)},goGroupRight:function(e){return e.moveH(1,`group`)},goGroupLeft:function(e){return e.moveH(-1,`group`)},goWordRight:function(e){return e.moveH(1,`word`)},delCharBefore:function(e){return e.deleteH(-1,`codepoint`)},delCharAfter:function(e){return e.deleteH(1,`char`)},delWordBefore:function(e){return e.deleteH(-1,`word`)},delWordAfter:function(e){return e.deleteH(1,`word`)},delGroupBefore:function(e){return e.deleteH(-1,`group`)},delGroupAfter:function(e){return e.deleteH(1,`group`)},indentAuto:function(e){return e.indentSelection(`smart`)},indentMore:function(e){return e.indentSelection(`add`)},indentLess:function(e){return e.indentSelection(`subtract`)},insertTab:function(e){return e.replaceSelection(` `)},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=fe(e.getLine(a.line),a.ch,r);t.push(xe(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection(`add`):e.execCommand(`insertTab`)},transposeChars:function(e){return Wi(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,a=R(e.doc,i.line).text;if(a){if(i.ch==a.length&&(i=new B(i.line,i.ch-1)),i.ch>0)i=new B(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),B(i.line,i.ch-2),i,`+transpose`);else if(i.line>e.doc.first){var o=R(e.doc,i.line-1).text;o&&(i=new B(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),B(i.line-1,o.length-1),i,`+transpose`))}}n.push(new J(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Wi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,`+input`);t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);bi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
12
|
-
`,`start`)},toggleOverwrite:function(e){return e.toggleOverwrite()}};function as(e,t){var n=R(e.doc,t),r=mn(n);return r!=n&&(t=z(r)),ns(!0,e,r,t,1)}function os(e,t){var n=R(e.doc,t),r=hn(n);return r!=n&&(t=z(r)),ns(!0,e,n,t,-1)}function ss(e,t){var n=as(e,t.line),r=R(e.doc,n.line),i=Re(r,e.doc.direction);if(!i||i[0].level==0){var a=Math.max(n.ch,r.text.search(/\S/)),o=t.line==n.line&&t.ch<=a&&t.ch;return B(n.line,o?0:a,n.sticky)}return n}function cs(e,t,n){if(typeof t==`string`&&(t=is[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=he}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ls(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Jo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Jo(t,e.options.extraKeys,n,e)||Jo(t,e.options.keyMap,n,e)}var us=new pe;function ds(e,t,n,r){var i=e.state.keySeq;if(i){if(Yo(t))return`handled`;if(/\'$/.test(t)?e.state.keySeq=null:us.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),fs(e,i+` `+t,n,r))return!0}return fs(e,t,n,r)}function fs(e,t,n,r){var i=ls(e,t,r);return i==`multi`&&(e.state.keySeq=t),i==`handled`&&U(e,`keyHandled`,e,t,n),(i==`handled`||i==`multi`)&&(I(n),si(e)),!!i}function ps(e,t){var n=Zo(t,!0);return n?t.shiftKey&&!e.state.keySeq?ds(e,`Shift-`+n,t,function(t){return cs(e,t,!0)})||ds(e,n,t,function(t){if(typeof t==`string`?/^go[A-Z]/.test(t):t.motion)return cs(e,t)}):ds(e,n,t,function(t){return cs(e,t)}):!1}function ms(e,t,n){return ds(e,`'`+n+`'`,t,function(t){return cs(e,t,!0)})}var hs=null;function gs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ae(ce(t)),!F(t,e))){o&&s<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var i=ps(t,e);f&&(hs=i?r:null,!i&&r==88&&!rt&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection(``,null,`cut`)),n&&!y&&!i&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand(`cut`),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&_s(t)}}function _s(e){var t=e.display.lineDiv;oe(t,`CodeMirror-crosshair`);function n(e){(e.keyCode==18||!e.altKey)&&(ne(t,`CodeMirror-crosshair`),Ve(document,`keyup`,n),Ve(document,`mouseover`,n))}N(document,`keyup`,n),N(document,`mouseover`,n)}function vs(e){e.keyCode==16&&(this.doc.sel.shift=!1),F(this,e)}function ys(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ir(t.display,e)||F(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==hs){hs=null,I(e);return}if(!(f&&(!e.which||e.which<10)&&ps(t,e))){var i=String.fromCharCode(r??n);i!=`\b`&&(ms(t,e,i)||t.display.input.onKeyPress(e))}}}var bs=400,xs=function(e,t,n){this.time=e,this.pos=t,this.button=n};xs.prototype.compare=function(e,t,n){return this.time+bs>e&&V(t,this.pos)==0&&n==this.button};var Ss,Cs;function ws(e,t){var n=+new Date;return Cs&&Cs.compare(n,e,t)?(Ss=Cs=null,`triple`):Ss&&Ss.compare(n,e,t)?(Cs=new xs(n,e,t),Ss=null,`double`):(Ss=new xs(n,e,t),Cs=null,`single`)}function Ts(e){var t=this,n=t.display;if(!(F(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,ir(n,e)){c||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Ps(t,e)){var r=Yr(t,e),i=Ye(e),a=r?ws(r,i):`single`;ue(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Es(t,i,r,a,e))&&(i==1?r?Os(t,r,a,e):Je(e)==n.scroller&&I(e):i==2?(r&&Wa(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(ee?t.display.input.onContextMenu(e):li(t)))}}}function Es(e,t,n,r,i){var a=`Click`;return r==`double`?a=`Double`+a:r==`triple`&&(a=`Triple`+a),a=(t==1?`Left`:t==2?`Middle`:`Right`)+a,ds(e,Xo(a,i),i,function(t){if(typeof t==`string`&&(t=is[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=he}finally{e.state.suppressEdits=!1}return r})}function Ds(e,t,n){var r=e.getOption(`configureMouse`),i=r?r(e,t,n):{};return i.unit??=(b?n.shiftKey&&n.metaKey:n.altKey)?`rectangle`:t==`single`?`char`:t==`double`?`word`:`line`,(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew??=y?n.metaKey:n.ctrlKey,i.moveOnDrag??=!(y?n.altKey:n.ctrlKey),i}function Os(e,t,n,r){o?setTimeout(de(ci,e),0):e.curOp.focus=ae(ce(e));var i=Ds(e,n,r),a=e.doc.sel,s;e.options.dragDrop&&Xe&&!e.isReadOnly()&&n==`single`&&(s=a.contains(t))>-1&&(V((s=a.ranges[s]).from(),t)<0||t.xRel>0)&&(V(s.to(),t)>0||t.xRel<0)?ks(e,r,t,i):js(e,r,t,i)}function ks(e,t,n,r){var i=e.display,a=!1,l=G(e,function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:li(e)),Ve(i.wrapper.ownerDocument,`mouseup`,l),Ve(i.wrapper.ownerDocument,`mousemove`,u),Ve(i.scroller,`dragstart`,d),Ve(i.scroller,`drop`,l),a||(I(t),r.addNew||Wa(e.doc,n,null,null,r.extend),c&&!p||o&&s==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){a||=Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return a=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,N(i.wrapper.ownerDocument,`mouseup`,l),N(i.wrapper.ownerDocument,`mousemove`,u),N(i.scroller,`dragstart`,d),N(i.scroller,`drop`,l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function As(e,t,n){if(n==`char`)return new J(t,t);if(n==`word`)return e.findWordAt(t);if(n==`line`)return new J(B(t.line,0),H(e.doc,B(t.line+1,0)));var r=n(e,t);return new J(r.from,r.to)}function js(e,t,n,r){o&&li(e);var i=e.display,a=e.doc;I(t);var s,c,l=a.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=a.sel.contains(n),s=c>-1?u[c]:new J(n,n)):(s=a.sel.primary(),c=a.sel.primIndex),r.unit==`rectangle`)r.addNew||(s=new J(n,n)),n=Yr(e,t,!0,!0),c=-1;else{var d=As(e,n,r.unit);s=r.extend?Ua(s,d.anchor,d.head,r.extend):d}r.addNew?c==-1?(c=u.length,Y(a,ha(e,u.concat([s]),c),{scroll:!1,origin:`*mouse`})):u.length>1&&u[c].empty()&&r.unit==`char`&&!r.extend?(Y(a,ha(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:`*mouse`}),l=a.sel):Ka(a,c,s,_e):(c=0,Y(a,new ma([s],0),_e),l=a.sel);var f=n;function p(t){if(V(f,t)!=0)if(f=t,r.unit==`rectangle`){for(var i=[],o=e.options.tabSize,u=fe(R(a,n.line).text,n.ch,o),d=fe(R(a,t.line).text,t.ch,o),p=Math.min(u,d),m=Math.max(u,d),h=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));h<=g;h++){var _=R(a,h).text,v=ye(_,p,o);p==m?i.push(new J(B(h,v),B(h,v))):_.length>v&&i.push(new J(B(h,v),B(h,ye(_,m,o))))}i.length||i.push(new J(n,n)),Y(a,ha(e,l.ranges.slice(0,c).concat(i),c),{origin:`*mouse`,scroll:!1}),e.scrollIntoView(t)}else{var y=s,b=As(e,t,r.unit),x=y.anchor,S;V(b.anchor,x)>0?(S=b.head,x=Et(y.from(),b.anchor)):(S=b.anchor,x=Tt(y.to(),b.head));var C=l.ranges.slice(0);C[c]=Ms(e,new J(H(a,x),S)),Y(a,ha(e,C,c),_e)}}var m=i.wrapper.getBoundingClientRect(),h=0;function g(t){var n=++h,o=Yr(e,t,!0,r.unit==`rectangle`);if(o)if(V(o,f)!=0){e.curOp.focus=ae(ce(e)),p(o);var s=mi(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(G(e,function(){h==n&&g(t)}),150)}else{var c=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;c&&setTimeout(G(e,function(){h==n&&(i.scroller.scrollTop+=c,g(t))}),50)}}function _(t){e.state.selectingText=!1,h=1/0,t&&(I(t),i.input.focus()),Ve(i.wrapper.ownerDocument,`mousemove`,v),Ve(i.wrapper.ownerDocument,`mouseup`,y),a.history.lastSelOrigin=null}var v=G(e,function(e){e.buttons===0||!Ye(e)?_(e):g(e)}),y=G(e,_);e.state.selectingText=y,N(i.wrapper.ownerDocument,`mousemove`,v),N(i.wrapper.ownerDocument,`mouseup`,y)}function Ms(e,t){var n=t.anchor,r=t.head,i=R(e.doc,n.line);if(V(n,r)==0&&n.sticky==r.sticky)return t;var a=Re(i);if(!a)return t;var o=Ie(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return t;var c=o+(s.from==n.ch==(s.level!=1)?0:1);if(c==0||c==a.length)return t;var l;if(r.line!=n.line)l=(r.line-n.line)*(e.doc.direction==`ltr`?1:-1)>0;else{var u=Ie(a,r.ch,r.sticky),d=u-o||(r.ch-n.ch)*(s.level==1?-1:1);l=u==c-1||u==c?d<0:d>0}var f=a[c+(l?-1:0)],p=l==(f.level==1),m=p?f.from:f.to,h=p?`after`:`before`;return n.ch==m&&n.sticky==h?t:new J(new B(n.line,m,h),r)}function Ns(e,t,n,r){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&I(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!Ue(e,n))return Ke(t);a-=s.top-o.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i){var u=bt(e.doc,a),d=e.display.gutterSpecs[c];return P(e,n,e,u,d.className,t),Ke(t)}}}function Ps(e,t){return Ns(e,t,`gutterClick`,!0)}function Fs(e,t){ir(e.display,t)||Is(e,t)||F(e,t,`contextmenu`)||ee||e.display.input.onContextMenu(t)}function Is(e,t){return Ue(e,`gutterContextMenu`)?Ns(e,t,`gutterContextMenu`,!1):!1}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,``)+e.options.theme.replace(/(^|\s)\s*/g,` cm-s-`),Tr(e)}var Rs={toString:function(){return`CodeMirror.Init`}},zs={},Bs={};function Vs(e){var t=e.optionHandlers;function n(n,r,i,a){e.defaults[n]=r,i&&(t[n]=a?function(e,t,n){n!=Rs&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Rs,n(`value`,``,function(e,t){return e.setValue(t)},!0),n(`mode`,null,function(e,t){e.doc.modeOption=t,Sa(e)},!0),n(`indentUnit`,2,Sa,!0),n(`indentWithTabs`,!1),n(`smartIndent`,!0),n(`tabSize`,4,function(e){Ca(e),Tr(e),W(e)},!0),n(`lineSeparator`,null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(a==-1)break;i=a+t.length,n.push(B(r,a))}r++});for(var i=n.length-1;i>=0;i--)fo(e.doc,t,n[i],B(n[i].line,n[i].ch+t.length))}}),n(`specialChars`,/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=RegExp(t.source+(t.test(` `)?``:`| `),`g`),n!=Rs&&e.refresh()}),n(`specialCharPlaceholder`,jn,function(e){return e.refresh()},!0),n(`electricChars`,!0),n(`inputStyle`,v?`contenteditable`:`textarea`,function(){throw Error(`inputStyle can not (yet) be changed in a running editor`)},!0),n(`spellcheck`,!1,function(e,t){return e.getInputField().spellcheck=t},!0),n(`autocorrect`,!1,function(e,t){return e.getInputField().autocorrect=t},!0),n(`autocapitalize`,!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n(`rtlMoveVisually`,!x),n(`wholeLineUpdateBefore`,!0),n(`theme`,`default`,function(e){Ls(e),sa(e)},!0),n(`keyMap`,`default`,function(e,t,n){var r=Qo(t),i=n!=Rs&&Qo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n(`extraKeys`,null),n(`configureMouse`,null),n(`lineWrapping`,!1,Us,!0),n(`gutters`,[],function(e,t){e.display.gutterSpecs=aa(t,e.options.lineNumbers),sa(e)},!0),n(`fixedGutter`,!0,function(e,t){e.display.gutters.style.left=t?Kr(e.display)+`px`:`0`,e.refresh()},!0),n(`coverGutterNextToScrollbar`,!1,function(e){return ji(e)},!0),n(`scrollbarStyle`,`native`,function(e){Pi(e),ji(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n(`lineNumbers`,!1,function(e,t){e.display.gutterSpecs=aa(e.options.gutters,t),sa(e)},!0),n(`firstLineNumber`,1,sa,!0),n(`lineNumberFormatter`,function(e){return e},sa,!0),n(`showCursorWhenSelecting`,!1,ni,!0),n(`resetSelectionOnContextMenu`,!0),n(`lineWiseCopyCut`,!0),n(`pasteLinesPerSelection`,!0),n(`selectionsMayTouch`,!1),n(`readOnly`,!1,function(e,t){t==`nocursor`&&(di(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n(`screenReaderLabel`,null,function(e,t){t=t===``?null:t,e.display.input.screenReaderLabelChanged(t)}),n(`disableInput`,!1,function(e,t){t||e.display.input.reset()},!0),n(`dragDrop`,!0,Hs),n(`allowDropFileTypes`,null),n(`cursorBlinkRate`,530),n(`cursorScrollMargin`,0),n(`cursorHeight`,1,ni,!0),n(`singleCursorHeightPerLine`,!0,ni,!0),n(`workTime`,100),n(`workDelay`,100),n(`flattenSpans`,!0,Ca,!0),n(`addModeClass`,!1,Ca,!0),n(`pollInterval`,100),n(`undoDepth`,200,function(e,t){return e.doc.history.undoDepth=t}),n(`historyEventDelay`,1250),n(`viewportMargin`,10,function(e){return e.refresh()},!0),n(`maxHighlightLength`,1e4,Ca,!0),n(`moveInputWithCursor`,!0,function(e,t){t||e.display.input.resetPosition()}),n(`tabindex`,null,function(e,t){return e.display.input.getField().tabIndex=t||``}),n(`autofocus`,null),n(`direction`,`ltr`,function(e,t){return e.doc.setDirection(t)},!0),n(`phrases`,null)}function Hs(e,t,n){if(!t!=!(n&&n!=Rs)){var r=e.display.dragFunctions,i=t?N:Ve;i(e.display.scroller,`dragstart`,r.start),i(e.display.scroller,`dragenter`,r.enter),i(e.display.scroller,`dragover`,r.over),i(e.display.scroller,`dragleave`,r.leave),i(e.display.scroller,`drop`,r.drop)}}function Us(e){e.options.lineWrapping?(oe(e.display.wrapper,`CodeMirror-wrap`),e.display.sizer.style.minWidth=``,e.display.sizerWidth=null):(ne(e.display.wrapper,`CodeMirror-wrap`),Cn(e)),Jr(e),W(e),Tr(e),setTimeout(function(){return ji(e)},100)}function Z(e,t){var n=this;if(!(this instanceof Z))return new Z(e,t);this.options=t=t?A(t):{},A(zs,t,!1);var r=t.value;typeof r==`string`?r=new X(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Z.inputStyles[t.inputStyle](this),a=this.display=new ca(e,r,i,t);for(var l in a.wrapper.CodeMirror=this,Ls(this),t.lineWrapping&&(this.display.wrapper.className+=` CodeMirror-wrap`),Pi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new pe,keySeq:null,specialChars:null},t.autofocus&&!v&&a.input.focus(),o&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ws(this),Ro(),Ii(this),this.curOp.forceUpdate=!0,Da(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&ui(n)},20):di(this),Bs)Bs.hasOwnProperty(l)&&Bs[l](this,t[l],Rs);ia(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Gs.length;++u)Gs[u](this);Li(this),c&&t.lineWrapping&&getComputedStyle(a.lineDiv).textRendering==`optimizelegibility`&&(a.lineDiv.style.textRendering=`auto`)}Z.defaults=zs,Z.optionHandlers=Bs;function Ws(e){var t=e.display;N(t.scroller,`mousedown`,G(e,Ts)),o&&s<11?N(t.scroller,`dblclick`,G(e,function(t){if(!F(e,t)){var n=Yr(e,t);if(!(!n||Ps(e,t)||ir(e.display,t))){I(t);var r=e.findWordAt(n);Wa(e.doc,r.anchor,r.head)}}})):N(t.scroller,`dblclick`,function(t){return F(e,t)||I(t)}),N(t.scroller,`contextmenu`,function(t){return Fs(e,t)}),N(t.input.getField(),`contextmenu`,function(n){t.scroller.contains(n.target)||Fs(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function a(e){if(e.touches.length!=1)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(t.left==null)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}N(t.scroller,`touchstart`,function(i){if(!F(e,i)&&!a(i)&&!Ps(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},i.touches.length==1&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),N(t.scroller,`touchmove`,function(){t.activeTouch&&(t.activeTouch.moved=!0)}),N(t.scroller,`touchend`,function(n){var r=t.activeTouch;if(r&&!ir(t,n)&&r.left!=null&&!r.moved&&new Date-r.start<300){var a=e.coordsChar(t.activeTouch,`page`),o=!r.prev||c(r,r.prev)?new J(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new J(B(a.line,0),H(e.doc,B(a.line+1,0)));e.setSelection(o.anchor,o.head),e.focus(),I(n)}i()}),N(t.scroller,`touchcancel`,i),N(t.scroller,`scroll`,function(){t.scroller.clientHeight&&(Ti(e,t.scroller.scrollTop),Di(e,t.scroller.scrollLeft,!0),P(e,`scroll`,e))}),N(t.scroller,`mousewheel`,function(t){return pa(e,t)}),N(t.scroller,`DOMMouseScroll`,function(t){return pa(e,t)}),N(t.wrapper,`scroll`,function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){F(e,t)||qe(t)},over:function(t){F(e,t)||(Po(e,t),qe(t))},start:function(t){return No(e,t)},drop:G(e,Mo),leave:function(t){F(e,t)||Fo(e)}};var l=t.input.getField();N(l,`keyup`,function(t){return vs.call(e,t)}),N(l,`keydown`,G(e,gs)),N(l,`keypress`,G(e,ys)),N(l,`focus`,function(t){return ui(e,t)}),N(l,`blur`,function(t){return di(e,t)})}var Gs=[];Z.defineInitHook=function(e){return Gs.push(e)};function Ks(e,t,n,r){var i=e.doc,a;n??=`add`,n==`smart`&&(i.mode.indent?a=Pt(e,t).state:n=`prev`);var o=e.options.tabSize,s=R(i,t),c=fe(s.text,null,o);s.stateAfter&&=null;var l=s.text.match(/^\s*/)[0],u;if(!r&&!/\S/.test(s.text))u=0,n=`not`;else if(n==`smart`&&(u=i.mode.indent(a,s.text.slice(l.length),s.text),u==he||u>150)){if(!r)return;n=`prev`}n==`prev`?u=t>i.first?fe(R(i,t-1).text,null,o):0:n==`add`?u=c+e.options.indentUnit:n==`subtract`?u=c-e.options.indentUnit:typeof n==`number`&&(u=c+n),u=Math.max(0,u);var d=``,f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/o);p;--p)f+=o,d+=` `;if(f<u&&(d+=xe(u-f)),d!=l)return fo(i,d,B(t,0),B(t,l.length),`+input`),s.stateAfter=null,!0;for(var m=0;m<i.sel.ranges.length;m++){var h=i.sel.ranges[m];if(h.head.line==t&&h.head.ch<l.length){var g=B(t,l.length);Ka(i,m,new J(g,g));break}}}var qs=null;function Js(e){qs=e}function Ys(e,t,n,r,i){var a=e.doc;e.display.shift=!1,r||=a.sel;var o=new Date-200,s=i==`paste`||e.state.pasteIncoming>o,c=tt(t),l=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join(`
|
|
13
|
-
`)==t){if(r.ranges.length%qs.text.length==0){l=[];for(var u=0;u<qs.text.length;u++)l.push(a.splitLines(qs.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=Se(c,function(e){return[e]}));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],m=p.from(),h=p.to();p.empty()&&(n&&n>0?m=B(m.line,m.ch-n):e.state.overwrite&&!s?h=B(h.line,Math.min(R(a,h.line).text.length,h.ch+M(c).length)):s&&qs&&qs.lineWise&&qs.text.join(`
|
|
14
|
-
`)==c.join(`
|
|
15
|
-
`)&&(m=h=B(m.line,0)));var g={from:m,to:h,text:l?l[f%l.length]:c,origin:i||(s?`paste`:e.state.cutIncoming>o?`cut`:`+input`)};ao(e.doc,g),U(e,`inputRead`,e,g)}t&&!s&&Zs(e,t),bi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xs(e,t){var n=e.clipboardData&&e.clipboardData.getData(`Text`);if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Wi(t,function(){return Ys(t,n,0,null,`paste`)}),!0}function Zs(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=Ks(e,i.head.line,`smart`);break}}else a.electricInput&&a.electricInput.test(R(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Ks(e,i.head.line,`smart`));o&&U(e,`electricInput`,e,i.head.line)}}}function Qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,a={anchor:B(i,0),head:B(i+1,0)};n.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:n}}function $s(e,t,n,r){e.setAttribute(`autocorrect`,n?`on`:`off`),e.setAttribute(`autocapitalize`,r?`on`:`off`),e.setAttribute(`spellcheck`,!!t)}function ec(){var e=E(`textarea`,null,null,`position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none`),t=E(`div`,[e],null,`overflow: hidden; position: relative; width: 3px; height: 0px;`);return c?e.style.width=`1000px`:e.setAttribute(`wrap`,`off`),g&&(e.style.border=`1px solid black`),t}function tc(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){ue(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&e!=`mode`||(r[e]=n,t.hasOwnProperty(e)&&G(this,t[e])(this,n,i),P(this,`optionChange`,this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?`push`:`unshift`](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:K(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw Error(`Overlays may not be stateful.`);Ce(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,W(this)}),removeOverlay:K(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||typeof e==`string`&&r.name==e){t.splice(n,1),this.state.modeGen++,W(this);return}}}),indentLine:K(function(e,t,n){typeof t!=`string`&&typeof t!=`number`&&(t=t==null?this.options.smartIndent?`smart`:`prev`:t?`add`:`subtract`),xt(this.doc,e)&&Ks(this,e,t,n)}),indentSelection:K(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ks(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&bi(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-+!o.ch)+1;for(var c=s;c<n;++c)Ks(this,c,e);var l=this.doc.sel.ranges;a.ch==0&&t.length==l.length&&l[r].from().ch>0&&Ka(this.doc,r,new J(a,l[r].to()),ge)}}}),getTokenAt:function(e,t){return zt(this,e,t)},getLineTokens:function(e,t){return zt(this,B(e),t,!0)},getTokenTypeAt:function(e){e=H(this.doc,e);var t=Nt(this,R(this.doc,e.line)),n=0,r=(t.length-1)/2,i=e.ch,a;if(i==0)a=t[2];else for(;;){var o=n+r>>1;if((o?t[o*2-1]:0)>=i)r=o;else if(t[o*2+1]<i)n=o+1;else{a=t[o*2+2];break}}var s=a?a.indexOf(`overlay `):-1;return s<0?a:s==0?null:a.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],a=this.getModeAt(e);if(typeof a[t]==`string`)i[a[t]]&&r.push(i[a[t]]);else if(a[t])for(var o=0;o<a[t].length;o++){var s=i[a[t][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(a,this)&&j(r,l.val)==-1&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=Dt(n,e??n.first+n.size-1),Pt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=e==null?r.head:typeof e==`object`?H(this.doc,e):e?r.from():r.to(),Mr(this,n,t||`page`)},charCoords:function(e,t){return jr(this,H(this.doc,e),t||`page`)},coordsChar:function(e,t){return e=Ar(this,e,t||`page`),Fr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=Ar(this,{top:e,left:0},t||`page`).top,bt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=!1,i;if(typeof e==`number`){var a=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>a&&(e=a,r=!0),i=R(this.doc,e)}else i=e;return kr(this,i,{top:0,left:0},t||`page`,n||r).top+(r?this.doc.height-xn(i):0)},defaultTextHeight:function(){return Ur(this.display)},defaultCharWidth:function(){return Wr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var a=this.display;e=Mr(this,H(this.doc,e));var o=e.bottom,s=e.left;if(t.style.position=`absolute`,t.setAttribute(`cm-ignore-events`,`true`),this.display.input.setUneditable(t),a.sizer.appendChild(t),r==`over`)o=e.top;else if(r==`above`||r==`near`){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);(r==`above`||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(o=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=o+`px`,t.style.left=t.style.right=``,i==`right`?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right=`0px`):(i==`left`?s=0:i==`middle`&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+`px`),n&&_i(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:K(gs),triggerOnKeyPress:K(ys),triggerOnKeyUp:vs,triggerOnMouseDown:K(Ts),execCommand:function(e){if(is.hasOwnProperty(e))return is[e].call(null,this)},triggerElectric:K(function(e){Zs(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var a=H(this.doc,e),o=0;o<t&&(a=nc(this.doc,a,i,n,r),!a.hitSide);++o);return a},moveH:K(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?nc(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},ve)}),deleteH:K(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection(``,null,`+delete`):$o(this,function(n){var i=nc(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,a=r;t<0&&(i=-1,t=-t);for(var o=H(this.doc,e),s=0;s<t;++s){var c=Mr(this,o,`div`);if(a==null?a=c.left:c.left=a,o=rc(this,c,i,n),o.hitSide)break}return o},moveV:K(function(e,t){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(o){if(a)return e<0?o.from():o.to();var s=Mr(n,o.head,`div`);o.goalColumn!=null&&(s.left=o.goalColumn),i.push(s.left);var c=rc(n,s,e,t);return t==`page`&&o==r.sel.primary()&&yi(n,jr(n,c,`div`).top-s.top),c},ve),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]}),findWordAt:function(e){var t=this.doc,n=R(t,e.line).text,r=e.ch,i=e.ch;if(n){var a=this.getHelper(e,`wordChars`);(e.sticky==`before`||i==n.length)&&r?--r:++i;for(var o=n.charAt(r),s=Oe(o,a)?function(e){return Oe(e,a)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!Oe(e)};r>0&&s(n.charAt(r-1));)--r;for(;i<n.length&&s(n.charAt(i));)++i}return new J(B(e.line,r),B(e.line,i))},toggleOverwrite:function(e){e!=null&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?oe(this.display.cursorDiv,`CodeMirror-overwrite`):ne(this.display.cursorDiv,`CodeMirror-overwrite`),P(this,`overwriteToggle`,this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae(ce(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:K(function(e,t){xi(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-cr(this)-this.display.barHeight,width:e.scrollWidth-cr(this)-this.display.barWidth,clientHeight:ur(this),clientWidth:lr(this)}},scrollIntoView:K(function(e,t){e==null?(e={from:this.doc.sel.primary().head,to:null},t??=this.options.cursorScrollMargin):typeof e==`number`?e={from:B(e,0),to:null}:e.from??(e={from:e,to:null}),e.to||=e.from,e.margin=t||0,e.from.line==null?wi(this,e.from,e.to,e.margin):Si(this,e)}),setSize:K(function(e,t){var n=this,r=function(e){return typeof e==`number`||/^\d+$/.test(String(e))?e+`px`:e};e!=null&&(this.display.wrapper.style.width=r(e)),t!=null&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&wr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets){for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Zr(n,i,`widget`);break}}++i}),this.curOp.forceUpdate=!0,P(this,`refresh`,this)}),operation:function(e){return Wi(this,e)},startOperation:function(){return Ii(this)},endOperation:function(){return Li(this)},refresh:K(function(){var e=this.display.cachedTextHeight;W(this),this.curOp.forceUpdate=!0,Tr(this),xi(this,this.doc.scrollLeft,this.doc.scrollTop),ta(this.display),(e==null||Math.abs(e-Ur(this.display))>.5||this.options.lineWrapping)&&Jr(this),P(this,`refresh`,this)}),swapDoc:K(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Da(this,e),Tr(this),this.display.input.reset(),xi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,U(this,`swapDoc`,this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},We(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,a){e.registerHelper(t,r,a),n[t]._global.push({pred:i,val:a})}}function nc(e,t,n,r,i){var a=t,o=n,s=R(e,t.line),c=i&&e.direction==`rtl`?-n:n;function l(){var n=t.line+c;return n<e.first||n>=e.first+e.size?!1:(t=new B(n,t.ch,t.sticky),s=R(e,n))}function u(a){var o;if(r==`codepoint`){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))o=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new B(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else o=i?rs(e.cm,s,t,n):ts(s,t,n);if(o==null)if(!a&&l())t=ns(i,e.cm,s,t.line,c);else return!1;else t=o;return!0}if(r==`char`||r==`codepoint`)u();else if(r==`column`)u(!0);else if(r==`word`||r==`group`)for(var d=null,f=r==`group`,p=e.cm&&e.cm.getHelper(t,`wordChars`),m=!0;!(n<0&&!u(!m));m=!1){var h=s.text.charAt(t.ch)||`
|
|
16
|
-
`,g=Oe(h,p)?`w`:f&&h==`
|
|
17
|
-
`?`n`:!f||/\s/.test(h)?null:`p`;if(f&&!m&&!g&&(g=`s`),d&&d!=g){n<0&&(n=1,u(),t.sticky=`after`);break}if(g&&(d=g),n>0&&!u(!m))break}var _=to(e,t,a,o,!0);return Ct(a,_)&&(_.hitSide=!0),_}function rc(e,t,n,r){var i=e.doc,a=t.left,o;if(r==`page`){var s=Math.min(e.display.wrapper.clientHeight,ue(e).innerHeight||i(e).documentElement.clientHeight),c=Math.max(s-.5*Ur(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else r==`line`&&(o=n>0?t.bottom+3:t.top-3);for(var l;l=Fr(e,a,o),l.outside;){if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=n*5}return l}var Q=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Q.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,$s(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function a(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}N(i,`paste`,function(e){!a(e)||F(r,e)||Xs(e,r)||s<=11&&setTimeout(G(r,function(){return t.updateFromDOM()}),20)}),N(i,`compositionstart`,function(e){t.composing={data:e.data,done:!1}}),N(i,`compositionupdate`,function(e){t.composing||={data:e.data,done:!1}}),N(i,`compositionend`,function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),N(i,`touchstart`,function(){return n.forceCompositionEnd()}),N(i,`input`,function(){t.composing||t.readFromDOMSoon()});function o(e){if(!(!a(e)||F(r,e))){if(r.somethingSelected())Js({lineWise:!1,text:r.getSelections()}),e.type==`cut`&&r.replaceSelection(``,null,`cut`);else if(r.options.lineWiseCopyCut){var t=Qs(r);Js({lineWise:!0,text:t.text}),e.type==`cut`&&r.operation(function(){r.setSelections(t.ranges,0,ge),r.replaceSelection(``,null,`cut`)})}else return;if(e.clipboardData){e.clipboardData.clearData();var o=qs.text.join(`
|
|
18
|
-
`);if(e.clipboardData.setData(`Text`,o),e.clipboardData.getData(`Text`)==o){e.preventDefault();return}}var s=ec(),c=s.firstChild;$s(c),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=qs.text.join(`
|
|
19
|
-
`);var l=ae(le(i));se(c),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()},50)}}N(i,`copy`,o),N(i,`cut`,o)},Q.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute(`aria-label`,e):this.div.removeAttribute(`aria-label`)},Q.prototype.prepareSelection=function(){var e=ri(this.cm,!1);return e.focus=ae(le(this.div))==this.div,e},Q.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Q.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Q.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),a=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom){e.removeAllRanges();return}var o=cc(t,e.anchorNode,e.anchorOffset),s=cc(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&s&&!s.bad&&V(Et(o,s),i)==0&&V(Tt(o,s),a)==0)){var c=t.display.view,l=i.line>=t.display.viewFrom&&ic(t,i)||{node:c[0].measure.map[2],offset:0},u=a.line<t.display.viewTo&&ic(t,a);if(!u){var d=c[c.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!l||!u){e.removeAllRanges();return}var p=e.rangeCount&&e.getRangeAt(0),m;try{m=re(l.node,l.offset,u.offset,u.node)}catch{}m&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),m.collapsed||(e.removeAllRanges(),e.addRange(m))):(e.removeAllRanges(),e.addRange(m)),p&&e.anchorNode==null?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}},Q.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Q.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Q.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Q.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ie(this.div,t)},Q.prototype.focus=function(){this.cm.options.readOnly!=`nocursor`&&((!this.selectionInEditor()||ae(le(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Q.prototype.blur=function(){this.div.blur()},Q.prototype.getField=function(){return this.div},Q.prototype.supportsTouch=function(){return!0},Q.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Wi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},Q.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Q.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(_&&u&&this.cm.display.gutterSpecs.length&&ac(e.anchorNode)){this.cm.triggerOnKeyDown({type:`keydown`,keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=cc(t,e.anchorNode,e.anchorOffset),r=cc(t,e.focusNode,e.focusOffset);n&&r&&Wi(t,function(){Y(t.doc,ga(n,r),ge),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Q.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=B(r.line-1,R(e.doc,r.line-1).length)),i.ch==R(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=B(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var a,o,s;r.line==t.viewFrom||(a=Xr(e,r.line))==0?(o=z(t.view[0].line),s=t.view[0].node):(o=z(t.view[a].line),s=t.view[a-1].node.nextSibling);var c=Xr(e,i.line),l,u;if(c==t.view.length-1?(l=t.viewTo-1,u=t.lineDiv.lastChild):(l=z(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(sc(e,s,u,o,l)),f=_t(e.doc,B(o,0),B(l,R(e.doc,l).text.length));d.length>1&&f.length>1;)if(M(d)==M(f))d.pop(),f.pop(),l--;else if(d[0]==f[0])d.shift(),f.shift(),o++;else break;for(var p=0,m=0,h=d[0],g=f[0],_=Math.min(h.length,g.length);p<_&&h.charCodeAt(p)==g.charCodeAt(p);)++p;for(var v=M(d),y=M(f),b=Math.min(v.length-(d.length==1?p:0),y.length-(f.length==1?p:0));m<b&&v.charCodeAt(v.length-m-1)==y.charCodeAt(y.length-m-1);)++m;if(d.length==1&&f.length==1&&o==r.line)for(;p&&p>r.ch&&v.charCodeAt(v.length-m-1)==y.charCodeAt(y.length-m-1);)p--,m++;d[d.length-1]=v.slice(0,v.length-m).replace(/^\u200b+/,``),d[0]=d[0].slice(p).replace(/\u200b+$/,``);var x=B(o,p),S=B(l,f.length?M(f).length-m:0);if(d.length>1||d[0]||V(x,S))return fo(e.doc,d,x,S,`+input`),!0},Q.prototype.ensurePolled=function(){this.forceCompositionEnd()},Q.prototype.reset=function(){this.forceCompositionEnd()},Q.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Q.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout??=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Q.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return W(e.cm)})},Q.prototype.setUneditable=function(e){e.contentEditable=`false`},Q.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||G(this.cm,Ys)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Q.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!=`nocursor`)},Q.prototype.onContextMenu=function(){},Q.prototype.resetPosition=function(){},Q.prototype.needsContentAttribute=!0;function ic(e,t){var n=hr(e,t.line);if(!n||n.hidden)return null;var r=R(e.doc,t.line),i=fr(n,r,t.line),a=Re(r,e.doc.direction),o=`left`;a&&(o=Ie(a,t.ch)%2?`right`:`left`);var s=yr(i.map,t.ch,o);return s.offset=s.collapse==`right`?s.end:s.start,s}function ac(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function oc(e,t){return t&&(e.bad=!0),e}function sc(e,t,n,r,i){var a=``,o=!1,s=e.doc.lineSeparator(),c=!1;function l(e){return function(t){return t.id==e}}function u(){o&&=(a+=s,c&&(a+=s),c=!1)}function d(e){e&&(u(),a+=e)}function f(t){if(t.nodeType==1){var n=t.getAttribute(`cm-text`);if(n){d(n);return}var a=t.getAttribute(`cm-marker`),p;if(a){var m=e.findMarks(B(r,0),B(i+1,0),l(+a));m.length&&(p=m[0].find(0))&&d(_t(e.doc,p.from,p.to).join(s));return}if(t.getAttribute(`contenteditable`)==`false`)return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&t.textContent.length==0)return;h&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),h&&(o=!0)}else t.nodeType==3&&d(t.nodeValue.replace(/\u200b/g,``).replace(/\u00a0/g,` `))}for(;f(t),t!=n;)t=t.nextSibling,c=!1;return a}function cc(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return oc(e.clipPos(B(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==r)return lc(a,t,n)}}function lc(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!ie(r,t))return oc(B(z(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var a=e.rest?M(e.rest):e.line;return oc(B(z(a),a.text.length),i)}var o=t.nodeType==3?t:null,s=t;for(!o&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(o=t.firstChild,n&&=o.nodeValue.length);s.parentNode!=r;)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==n){var u=z(i<0?e.line:e.rest[i]),d=a[o]+r;return(r<0||s!=t)&&(d=a[o+ +!!r]),B(u,d)}}}var d=u(o,s,n);if(d)return oc(d,i);for(var f=s.nextSibling,p=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0),d)return oc(B(d.line,d.ch-p),i);p+=f.textContent.length}for(var m=s.previousSibling,h=n;m;m=m.previousSibling){if(d=u(m,m.firstChild,-1),d)return oc(B(d.line,d.ch+h),i);h+=m.textContent.length}}var $=function(e){this.cm=e,this.prevInput=``,this.pollingFast=!1,this.polling=new pe,this.hasSelection=!1,this.composing=null,this.resetting=!1};$.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width=`0px`),N(i,`input`,function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),N(i,`paste`,function(e){F(r,e)||Xs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function a(e){if(!F(r,e)){if(r.somethingSelected())Js({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var t=Qs(r);Js({lineWise:!0,text:t.text}),e.type==`cut`?r.setSelections(t.ranges,null,ge):(n.prevInput=``,i.value=t.text.join(`
|
|
20
|
-
`),se(i))}else return;e.type==`cut`&&(r.state.cutIncoming=+new Date)}}N(i,`cut`,a),N(i,`copy`,a),N(e.scroller,`paste`,function(t){if(!(ir(e,t)||F(r,t))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event(`paste`);a.clipboardData=t.clipboardData,i.dispatchEvent(a)}}),N(e.lineSpace,`selectstart`,function(t){ir(e,t)||I(t)}),N(i,`compositionstart`,function(){var e=r.getCursor(`from`);n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor(`to`),{className:`CodeMirror-composing`})}}),N(i,`compositionend`,function(){n.composing&&=(n.poll(),n.composing.range.clear(),null)})},$.prototype.createField=function(e){this.wrapper=ec(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;$s(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},$.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute(`aria-label`,e):this.textarea.removeAttribute(`aria-label`)},$.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ri(e);if(e.options.moveInputWithCursor){var i=Mr(e,n.sel.primary().head,`div`),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},$.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+`px`,this.wrapper.style.left=e.teLeft+`px`)},$.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput=``;var n=t.getSelection();this.textarea.value=n,t.state.focused&&se(this.textarea),o&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value=``,o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},$.prototype.getField=function(){return this.textarea},$.prototype.supportsTouch=function(){return!1},$.prototype.focus=function(){if(this.cm.options.readOnly!=`nocursor`&&(!v||ae(le(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},$.prototype.blur=function(){this.textarea.blur()},$.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$.prototype.receivedFocus=function(){this.slowPoll()},$.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},$.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){!t.poll()&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},$.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||nt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(a==8203&&!r&&(r=``),a==8666)return this.reset(),this.cm.execCommand(`undo`)}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Wi(t,function(){Ys(t,i.slice(c),r.length-c,null,e.composing?`*compose`:null),i.length>1e3||i.indexOf(`
|
|
21
|
-
`)>-1?n.value=e.prevInput=``:e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor(`to`),{className:`CodeMirror-composing`}))}),!0},$.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},$.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Yr(n,e),l=r.scroller.scrollTop;if(!a||f)return;n.options.resetSelectionOnContextMenu&&n.doc.sel.contains(a)==-1&&G(n,Y)(n.doc,ga(a),ge);var u=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText=`position: static`,i.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
22
|
-
top: `+(e.clientY-p.top-5)+`px; left: `+(e.clientX-p.left-5)+`px;
|
|
23
|
-
z-index: 1000; background: `+(o?`rgba(255, 255, 255, .05)`:`transparent`)+`;
|
|
24
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var m;c&&(m=i.ownerDocument.defaultView.scrollY),r.input.focus(),c&&i.ownerDocument.defaultView.scrollTo(null,m),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=` `),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function h(){if(i.selectionStart!=null){var e=n.somethingSelected(),a=``+(e?i.value:``);i.value=`⇚`,i.value=a,t.prevInput=e?``:``,i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=u,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!o||o&&s<9)&&h();var e=0,a=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput==``?G(n,ro)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}if(o&&s>=9&&h(),ee){qe(e);var _=function(){Ve(window,`mouseup`,_),setTimeout(g,20)};N(window,`mouseup`,_)}else setTimeout(g,50)},$.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e==`nocursor`,this.textarea.readOnly=!!e},$.prototype.setUneditable=function(){},$.prototype.needsContentAttribute=!1;function uc(e,t){if(t=t?A(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=ae(le(e));t.autofocus=n==e||e.getAttribute(`autofocus`)!=null&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(N(e.form,`submit`,r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch{}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display=``,e.form&&(Ve(e.form,`submit`,r),!t.leaveSubmitMethodAlone&&typeof e.form.submit==`function`&&(e.form.submit=i))}},e.style.display=`none`;var s=Z(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function dc(e){e.off=Ve,e.on=N,e.wheelEventPixels=fa,e.Doc=X,e.splitLines=tt,e.countColumn=fe,e.findColumn=ye,e.isWordChar=De,e.Pass=he,e.signal=P,e.Line=wn,e.changeEnd=_a,e.scrollbarModel=Ni,e.Pos=B,e.cmpPos=V,e.modes=ot,e.mimeModes=st,e.resolveMode=ut,e.getMode=dt,e.modeExtensions=ft,e.extendMode=pt,e.copyState=mt,e.startState=gt,e.innerMode=ht,e.commands=is,e.keyMap=Go,e.keyName=Zo,e.isModifierKey=Yo,e.lookupKey=Jo,e.normalizeKeyMap=qo,e.StringStream=L,e.SharedTextMarker=To,e.TextMarker=Co,e.LineWidget=yo,e.e_preventDefault=I,e.e_stopPropagation=Ge,e.e_stop=qe,e.addClass=oe,e.contains=ie,e.rmClass=ne,e.keyNames=Vo}Vs(Z),tc(Z);var fc=`iter insert remove copy getEditor constructor`.split(` `);for(var pc in X.prototype)X.prototype.hasOwnProperty(pc)&&j(fc,pc)<0&&(Z.prototype[pc]=(function(e){return function(){return e.apply(this.doc,arguments)}})(X.prototype[pc]));return We(X),Z.inputStyles={textarea:$,contenteditable:Q},Z.defineMode=function(e){!Z.defaults.mode&&e!=`null`&&(Z.defaults.mode=e),ct.apply(this,arguments)},Z.defineMIME=lt,Z.defineMode(`null`,function(){return{token:function(e){return e.skipToEnd()}}}),Z.defineMIME(`text/plain`,`null`),Z.defineExtension=function(e,t){Z.prototype[e]=t},Z.defineDocExtension=function(e,t){X.prototype[e]=t},Z.fromTextArea=uc,dc(Z),Z.version=`5.65.18`,Z}))}));export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nr as e}from"./vue.runtime.esm-bundler-Cor2aCVe.js";import{t}from"./codemirror-CVWB3MYP.js";var n=e(((e,n)=>{(function(r){typeof e==`object`&&typeof n==`object`?r(t()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],r):r(CodeMirror)})(function(e){e.defineMode(`coffeescript`,function(e,t){var n=`error`;function r(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`)}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=r([`and`,`or`,`not`,`is`,`isnt`,`in`,`instanceof`,`typeof`]),l=[`for`,`while`,`loop`,`if`,`unless`,`else`,`switch`,`try`,`catch`,`finally`,`class`],u=r(l.concat([`break`,`by`,`continue`,`debugger`,`delete`,`do`,`in`,`of`,`new`,`return`,`then`,`this`,`@`,`throw`,`when`,`until`,`extends`]));l=r(l);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,p=r([`Infinity`,`NaN`,`undefined`,`null`,`true`,`false`,`on`,`off`,`yes`,`no`]);function m(e,t){if(e.sol()){t.scope.align===null&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>r&&t.scope.type==`coffee`?`indent`:l<r?`dedent`:null}else r>0&&v(e,t)}if(e.eatSpace())return null;var m=e.peek();if(e.match(`####`))return e.skipToEnd(),`comment`;if(e.match(`###`))return t.tokenize=g,t.tokenize(e,t);if(m===`#`)return e.skipToEnd(),`comment`;if(e.match(/^-?[0-9\.]/,!1)){var _=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(_=!0),e.match(/^-?\d+\.\d*/)&&(_=!0),e.match(/^-?\.\d+/)&&(_=!0),_)return e.peek()==`.`&&e.backUp(1),`number`;var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return`number`}if(e.match(d))return t.tokenize=h(e.current(),!1,`string`),t.tokenize(e,t);if(e.match(f)){if(e.current()!=`/`||e.match(/^.*\//,!1))return t.tokenize=h(e.current(),!0,`string-2`),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(c)?`operator`:e.match(a)?`punctuation`:e.match(p)?`atom`:e.match(s)||t.prop&&e.match(o)?`property`:e.match(u)?`keyword`:e.match(o)?`variable`:(e.next(),n)}function h(e,r,i){return function(a,o){for(;!a.eol();)if(a.eatWhile(/[^'"\/\\]/),a.eat(`\\`)){if(a.next(),r&&a.eol())return i}else if(a.match(e))return o.tokenize=m,i;else a.eat(/['"\/]/);return r&&(t.singleLineStringErrors?i=n:o.tokenize=m),i}}function g(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match(`###`)){t.tokenize=m;break}e.eatWhile(`#`)}return`comment`}function _(t,n,r){r||=`coffee`;for(var i=0,a=!1,o=null,s=n.scope;s;s=s.prev)if(s.type===`coffee`||s.type==`}`){i=s.offset+e.indentUnit;break}r===`coffee`?n.scope.align&&(n.scope.align=!1):(a=null,o=t.column()+t.current().length),n.scope={offset:i,type:r,prev:n.scope,align:a,alignOffset:o}}function v(e,t){if(t.scope.prev)if(t.scope.type===`coffee`){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}else return t.scope=t.scope.prev,!1}function y(e,t){var r=t.tokenize(e,t),i=e.current();i===`return`&&(t.dedent=!0),((i===`->`||i===`=>`)&&e.eol()||r===`indent`)&&_(e,t);var a=`[({`.indexOf(i);if(a!==-1&&_(e,t,`])}`.slice(a,a+1)),l.exec(i)&&_(e,t),i==`then`&&v(e,t),r===`dedent`&&v(e,t))return n;if(a=`])}`.indexOf(i),a!==-1){for(;t.scope.type==`coffee`&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&(t.scope.type==`coffee`&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}return{startState:function(e){return{tokenize:m,scope:{offset:e||0,type:`coffee`,prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=t.scope.align===null&&t.scope;n&&e.sol()&&(n.align=!1);var r=y(e,t);return r&&r!=`comment`&&(n&&(n.align=!0),t.prop=r==`punctuation`&&e.current()==`.`),r},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&`])}`.indexOf(t.charAt(0))>-1;if(r)for(;n.type==`coffee`&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-+!!i:(i?n.prev:n).offset},lineComment:`#`,fold:`indent`}}),e.defineMIME(`application/vnd.coffeescript`,`coffeescript`),e.defineMIME(`text/x-coffeescript`,`coffeescript`),e.defineMIME(`text/coffeescript`,`coffeescript`)})}));export default n();export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$t as e,Cn as t,Dr as n,K as r,Ln as i,Qt as a,St as o,Tn as s,Ut as c,Vn as l,Yn as u,ar as d,et as f,jr as p,pr as m,pt as h,q as g,rt as _,tt as v}from"./vue.runtime.esm-bundler-Cor2aCVe.js";import{m as y}from"./dist-BMRDvJHq.js";import{A as b,D as x,E as S,M as C,N as w,O as T,T as E,V as D,X as O,d as k,et as A,i as j,m as M,t as N,v as P}from"./index.BAglza0U.entry.js";o(),i(),m();var F=O(_({__name:`collection`,setup(i){let o=u(`tabular`),m=u(),_=u([]),O=u(null),F=u(null),I=u({}),L=u({fields:[`client_name`,`registration_type`,`token_endpoint_auth_method`,`date_created`]}),{layoutWrapper:R}=y(o),{confirmDelete:z,deleting:B,batchDelete:V,error:H}=G();async function U(){await m.value?.state?.refresh?.()}function W(){O.value=null,F.value=null}function G(){let e=u(!1),t=u(!1),n=u(null);return{confirmDelete:e,deleting:t,batchDelete:r,error:n};async function r(){if(!t.value){t.value=!0;try{await A.delete(`/mcp-oauth/clients`,{data:_.value}),_.value=[],await U(),e.value=!1}catch(e){n.value=e}finally{t.value=!1}}}}return(i,o)=>{let u=a(`tooltip`);return c(),r(e(d(R)),{ref_key:`layoutRef`,ref:m,selection:_.value,"onUpdate:selection":o[6]||=e=>_.value=e,"layout-options":I.value,"onUpdate:layoutOptions":o[7]||=e=>I.value=e,"layout-query":L.value,"onUpdate:layoutQuery":o[8]||=e=>L.value=e,"filter-user":O.value,filter:O.value,search:F.value,collection:`directus_oauth_clients`,"clear-filters":W},{default:t(({layoutState:a})=>[v(d(k),{title:i.$t(`mcp_oauth_clients`),icon:`key`,"show-back":``,"back-to":`/settings/ai`},{headline:t(()=>[v(N,{items:[{name:i.$t(`settings`),to:`/settings`},{name:i.$t(`settings_ai`),to:`/settings/ai`}]},null,8,[`items`])]),"actions:prepend":t(()=>[(c(),r(e(`layout-actions-tabular`),n(h(a)),null,16))]),actions:t(()=>[v(P,{modelValue:F.value,"onUpdate:modelValue":o[0]||=e=>F.value=e,filter:O.value,"onUpdate:filter":o[1]||=e=>O.value=e,collection:`directus_oauth_clients`,small:``},null,8,[`modelValue`,`filter`]),_.value.length>0?(c(),r(w,{key:0,modelValue:d(z),"onUpdate:modelValue":o[3]||=e=>l(z)?z.value=e:null,onEsc:o[4]||=e=>z.value=!1,onApply:d(V)},{activator:t(({on:e})=>[s(v(d(C),{class:`action-delete`,secondary:``,icon:`delete`,onClick:e},null,8,[`onClick`]),[[u,i.$t(`revoke_client`),void 0,{bottom:!0}]])]),default:t(()=>[v(E,null,{default:t(()=>[v(S,null,{default:t(()=>[f(p(i.$t(`revoke_client`)),1)]),_:1}),v(x,null,{default:t(()=>[f(p(i.$t(`revoke_client_confirm`)),1)]),_:1}),v(T,null,{default:t(()=>[v(D,{secondary:``,onClick:o[2]||=e=>z.value=!1},{default:t(()=>[f(p(i.$t(`cancel`)),1)]),_:1}),v(D,{kind:`danger`,loading:d(B),onClick:d(V)},{default:t(()=>[f(p(i.$t(`revoke_client`)),1)]),_:1},8,[`loading`,`onClick`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`onApply`])):g(``,!0)]),navigation:t(()=>[v(j)]),default:t(()=>[(c(),r(e(`layout-tabular`),n(h(a)),{"no-results":t(()=>[v(b,{title:i.$t(`no_results`),icon:`search`,center:``},{append:t(()=>[v(D,{onClick:W},{default:t(()=>[f(p(i.$t(`clear_filters`)),1)]),_:1})]),default:t(()=>[f(p(i.$t(`no_results_copy`))+` `,1)]),_:1},8,[`title`])]),"no-items":t(()=>[v(b,{title:i.$t(`no_oauth_clients`),icon:`key`,center:``},null,8,[`title`])]),_:1},16)),v(w,{"model-value":d(H)!==null},{default:t(()=>[v(E,null,{default:t(()=>[v(S,null,{default:t(()=>[f(p(i.$t(`something_went_wrong`)),1)]),_:1}),v(x,null,{default:t(()=>[v(M,{error:d(H)},null,8,[`error`])]),_:1}),v(T,null,{default:t(()=>[v(D,{onClick:o[5]||=e=>H.value=null},{default:t(()=>[f(p(i.$t(`done`)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,[`model-value`])]),_:2},1032,[`title`])]),_:1},40,[`selection`,`layout-options`,`layout-query`,`filter-user`,`filter`,`search`])}}}),[[`__scopeId`,`data-v-a31d5ce8`]]);export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nr as e}from"./vue.runtime.esm-bundler-Cor2aCVe.js";import{t}from"./codemirror-CVWB3MYP.js";var n=e(((e,n)=>{(function(r){typeof e==`object`&&typeof n==`object`?r(t()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],r):r(CodeMirror)})(function(e){e.defineMode(`commonlisp`,function(e){var t=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,n=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,r=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,i=/[^\s'`,@()\[\]";]/,a;function o(e){for(var t;t=e.next();)if(t==`\\`)e.next();else if(!i.test(t)){e.backUp(1);break}return e.current()}function s(e,i){if(e.eatSpace())return a=`ws`,null;if(e.match(r))return`number`;var s=e.next();if(s==`\\`&&(s=e.next()),s==`"`)return(i.tokenize=c)(e,i);if(s==`(`)return a=`open`,`bracket`;if(s==`)`||s==`]`)return a=`close`,`bracket`;if(s==`;`)return e.skipToEnd(),a=`ws`,`comment`;if(/['`,@]/.test(s))return null;if(s==`|`)return e.skipTo(`|`)?(e.next(),`symbol`):(e.skipToEnd(),`error`);if(s==`#`){var s=e.next();return s==`(`?(a=`open`,`bracket`):/[+\-=\.']/.test(s)||/\d/.test(s)&&e.match(/^\d*#/)?null:s==`|`?(i.tokenize=l)(e,i):s==`:`?(o(e),`meta`):s==`\\`?(e.next(),o(e),`string-2`):`error`}else{var u=o(e);return u==`.`?null:(a=`symbol`,u==`nil`||u==`t`||u.charAt(0)==`:`?`atom`:i.lastType==`open`&&(t.test(u)||n.test(u))?`keyword`:u.charAt(0)==`&`?`variable-2`:`variable`)}}function c(e,t){for(var n=!1,r;r=e.next();){if(r==`"`&&!n){t.tokenize=s;break}n=!n&&r==`\\`}return`string`}function l(e,t){for(var n,r;n=e.next();){if(n==`#`&&r==`|`){t.tokenize=s;break}r=n}return a=`ws`,`comment`}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:s}},token:function(t,r){t.sol()&&typeof r.ctx.indentTo!=`number`&&(r.ctx.indentTo=r.ctx.start+1),a=null;var i=r.tokenize(t,r);return a!=`ws`&&(r.ctx.indentTo==null?a==`symbol`&&n.test(t.current())?r.ctx.indentTo=r.ctx.start+e.indentUnit:r.ctx.indentTo=`next`:r.ctx.indentTo==`next`&&(r.ctx.indentTo=t.column()),r.lastType=a),a==`open`?r.ctx={prev:r.ctx,start:t.column(),indentTo:null}:a==`close`&&(r.ctx=r.ctx.prev||r.ctx),i},indent:function(e,t){var n=e.ctx.indentTo;return typeof n==`number`?n:e.ctx.start+1},closeBrackets:{pairs:`()[]{}""`},lineComment:`;;`,fold:`brace-paren`,blockCommentStart:`#|`,blockCommentEnd:`|#`}}),e.defineMIME(`text/x-common-lisp`,`commonlisp`)})}));export default n();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nr as e}from"./vue.runtime.esm-bundler-Cor2aCVe.js";import{t}from"./codemirror-CVWB3MYP.js";var n=e(((e,n)=>{(function(r){typeof e==`object`&&typeof n==`object`?r(t()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],r):r(CodeMirror)})(function(e){e.defineMode(`crystal`,function(e){function t(e,t){return RegExp((t?``:`^`)+`(?:`+e.join(`|`)+`)`+(t?`$`:`\\b`))}function n(e,t,n){return n.tokenize.push(e),e(t,n)}var r=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,a=/^(?:\[\][?=]?)/,o=/^(?:\.(?:\.{2})?|->|[?:])/,s=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,c=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,l=t(`abstract.alias.as.asm.begin.break.case.class.def.do.else.elsif.end.ensure.enum.extend.for.fun.if.include.instance_sizeof.lib.macro.module.next.of.out.pointerof.private.protected.rescue.return.require.select.sizeof.struct.super.then.type.typeof.uninitialized.union.unless.until.when.while.with.yield.__DIR__.__END_LINE__.__FILE__.__LINE__`.split(`.`)),u=t([`true`,`false`,`nil`,`self`]),d=t([`def`,`fun`,`macro`,`class`,`module`,`struct`,`lib`,`enum`,`union`,`do`,`for`]),f=t([`if`,`unless`,`case`,`while`,`until`,`begin`,`then`]),p=[`end`,`else`,`elsif`,`rescue`,`ensure`],m=t(p),h=[`\\)`,`\\}`,`\\]`],g=RegExp(`^(?:`+h.join(`|`)+`)$`),_={def:C,fun:C,macro:S,class:w,module:w,struct:w,lib:w,enum:w,union:w},v={"[":`]`,"{":`}`,"(":`)`,"<":`>`};function y(e,t){if(e.eatSpace())return null;if(t.lastToken!=`\\`&&e.match(`{%`,!1))return n(x(`%`,`%`),e,t);if(t.lastToken!=`\\`&&e.match(`{{`,!1))return n(x(`{`,`}`),e,t);if(e.peek()==`#`)return e.skipToEnd(),`comment`;var p;if(e.match(s))return e.eat(/[?!]/),p=e.current(),e.eat(`:`)?`atom`:t.lastToken==`.`?`property`:l.test(p)?(d.test(p)?!(p==`fun`&&t.blocks.indexOf(`lib`)>=0)&&!(p==`def`&&t.lastToken==`abstract`)&&(t.blocks.push(p),t.currentIndent+=1):(t.lastStyle==`operator`||!t.lastStyle)&&f.test(p)?(t.blocks.push(p),t.currentIndent+=1):p==`end`&&(t.blocks.pop(),--t.currentIndent),_.hasOwnProperty(p)&&t.tokenize.push(_[p]),`keyword`):u.test(p)?`atom`:`variable`;if(e.eat(`@`))return e.peek()==`[`?n(b(`[`,`]`,`meta`),e,t):(e.eat(`@`),e.match(s)||e.match(c),`variable-2`);if(e.match(c))return`tag`;if(e.eat(`:`))return e.eat(`"`)?n(T(`"`,`atom`,!1),e,t):e.match(s)||e.match(c)||e.match(r)||e.match(i)||e.match(a)?`atom`:(e.eat(`:`),`operator`);if(e.eat(`"`))return n(T(`"`,`string`,!0),e,t);if(e.peek()==`%`){var m=`string`,h=!0,g;if(e.match(`%r`))m=`string-2`,g=e.next();else if(e.match(`%w`))h=!1,g=e.next();else if(e.match(`%q`))h=!1,g=e.next();else if(g=e.match(/^%([^\w\s=])/))g=g[1];else if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return`meta`;else if(e.eat(`%`))return`operator`;return v.hasOwnProperty(g)&&(g=v[g]),n(T(g,m,h),e,t)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?n(E(p[2],!p[1]),e,t):e.eat(`'`)?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat(`'`),`atom`):e.eat(`0`)?(e.eat(`x`)?e.match(/^[0-9a-fA-F_]+/):e.eat(`o`)?e.match(/^[0-7_]+/):e.eat(`b`)&&e.match(/^[01_]+/),`number`):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),`number`):e.match(r)?(e.eat(`=`),`operator`):e.match(i)||e.match(o)?`operator`:(p=e.match(/[({[]/,!1))?(p=p[0],n(b(p,v[p],null),e,t)):e.eat(`\\`)?(e.next(),`meta`):(e.next(),null)}function b(e,t,n,r){return function(i,a){if(!r&&i.match(e))return a.tokenize[a.tokenize.length-1]=b(e,t,n,!0),a.currentIndent+=1,n;var o=y(i,a);return i.current()===t&&(a.tokenize.pop(),--a.currentIndent,o=n),o}}function x(e,t,n){return function(r,i){return!n&&r.match(`{`+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=x(e,t,!0),`meta`):r.match(t+`}`)?(--i.currentIndent,i.tokenize.pop(),`meta`):y(r,i)}}function S(e,t){if(e.eatSpace())return null;var n;if(n=e.match(s)){if(n==`def`)return`keyword`;e.eat(/[?!]/)}return t.tokenize.pop(),`def`}function C(e,t){return e.eatSpace()?null:(e.match(s)?e.eat(/[!?]/):e.match(r)||e.match(i)||e.match(a),t.tokenize.pop(),`def`)}function w(e,t){return e.eatSpace()?null:(e.match(c),t.tokenize.pop(),`def`)}function T(e,t,n){return function(r,i){for(var a=!1;r.peek();)if(a)r.next(),a=!1;else{if(r.match(`{%`,!1))return i.tokenize.push(x(`%`,`%`)),t;if(r.match(`{{`,!1))return i.tokenize.push(x(`{`,`}`)),t;if(n&&r.match(`#{`,!1))return i.tokenize.push(b(`#{`,`}`,`meta`)),t;var o=r.next();if(o==e)return i.tokenize.pop(),t;a=n&&o==`\\`}return t}}function E(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),`string`;for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match(`{%`,!1))return r.tokenize.push(x(`%`,`%`)),`string`;if(n.match(`{{`,!1))return r.tokenize.push(x(`{`,`}`)),`string`;if(t&&n.match(`#{`,!1))return r.tokenize.push(b(`#{`,`}`,`meta`)),`string`;i=n.next()==`\\`&&t}return`string`}}return{startState:function(){return{tokenize:[y],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&n!=`comment`&&(t.lastToken=r,t.lastStyle=n),n},indent:function(t,n){return n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,``),m.test(n)||g.test(n)?e.indentUnit*(t.currentIndent-1):e.indentUnit*t.currentIndent},fold:`indent`,electricInput:t(h.concat(p),!0),lineComment:`#`}}),e.defineMIME(`text/x-crystal`,`crystal`)})}));export default n();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./buildMatchPatternFn-Dp77wcrT.js";var i={lessThanXSeconds:{one:{regular:`méně než 1 sekunda`,past:`před méně než 1 sekundou`,future:`za méně než 1 sekundu`},few:{regular:`méně než {{count}} sekundy`,past:`před méně než {{count}} sekundami`,future:`za méně než {{count}} sekundy`},many:{regular:`méně než {{count}} sekund`,past:`před méně než {{count}} sekundami`,future:`za méně než {{count}} sekund`}},xSeconds:{one:{regular:`1 sekunda`,past:`před 1 sekundou`,future:`za 1 sekundu`},few:{regular:`{{count}} sekundy`,past:`před {{count}} sekundami`,future:`za {{count}} sekundy`},many:{regular:`{{count}} sekund`,past:`před {{count}} sekundami`,future:`za {{count}} sekund`}},halfAMinute:{type:`other`,other:{regular:`půl minuty`,past:`před půl minutou`,future:`za půl minuty`}},lessThanXMinutes:{one:{regular:`méně než 1 minuta`,past:`před méně než 1 minutou`,future:`za méně než 1 minutu`},few:{regular:`méně než {{count}} minuty`,past:`před méně než {{count}} minutami`,future:`za méně než {{count}} minuty`},many:{regular:`méně než {{count}} minut`,past:`před méně než {{count}} minutami`,future:`za méně než {{count}} minut`}},xMinutes:{one:{regular:`1 minuta`,past:`před 1 minutou`,future:`za 1 minutu`},few:{regular:`{{count}} minuty`,past:`před {{count}} minutami`,future:`za {{count}} minuty`},many:{regular:`{{count}} minut`,past:`před {{count}} minutami`,future:`za {{count}} minut`}},aboutXHours:{one:{regular:`přibližně 1 hodina`,past:`přibližně před 1 hodinou`,future:`přibližně za 1 hodinu`},few:{regular:`přibližně {{count}} hodiny`,past:`přibližně před {{count}} hodinami`,future:`přibližně za {{count}} hodiny`},many:{regular:`přibližně {{count}} hodin`,past:`přibližně před {{count}} hodinami`,future:`přibližně za {{count}} hodin`}},xHours:{one:{regular:`1 hodina`,past:`před 1 hodinou`,future:`za 1 hodinu`},few:{regular:`{{count}} hodiny`,past:`před {{count}} hodinami`,future:`za {{count}} hodiny`},many:{regular:`{{count}} hodin`,past:`před {{count}} hodinami`,future:`za {{count}} hodin`}},xDays:{one:{regular:`1 den`,past:`před 1 dnem`,future:`za 1 den`},few:{regular:`{{count}} dny`,past:`před {{count}} dny`,future:`za {{count}} dny`},many:{regular:`{{count}} dní`,past:`před {{count}} dny`,future:`za {{count}} dní`}},aboutXWeeks:{one:{regular:`přibližně 1 týden`,past:`přibližně před 1 týdnem`,future:`přibližně za 1 týden`},few:{regular:`přibližně {{count}} týdny`,past:`přibližně před {{count}} týdny`,future:`přibližně za {{count}} týdny`},many:{regular:`přibližně {{count}} týdnů`,past:`přibližně před {{count}} týdny`,future:`přibližně za {{count}} týdnů`}},xWeeks:{one:{regular:`1 týden`,past:`před 1 týdnem`,future:`za 1 týden`},few:{regular:`{{count}} týdny`,past:`před {{count}} týdny`,future:`za {{count}} týdny`},many:{regular:`{{count}} týdnů`,past:`před {{count}} týdny`,future:`za {{count}} týdnů`}},aboutXMonths:{one:{regular:`přibližně 1 měsíc`,past:`přibližně před 1 měsícem`,future:`přibližně za 1 měsíc`},few:{regular:`přibližně {{count}} měsíce`,past:`přibližně před {{count}} měsíci`,future:`přibližně za {{count}} měsíce`},many:{regular:`přibližně {{count}} měsíců`,past:`přibližně před {{count}} měsíci`,future:`přibližně za {{count}} měsíců`}},xMonths:{one:{regular:`1 měsíc`,past:`před 1 měsícem`,future:`za 1 měsíc`},few:{regular:`{{count}} měsíce`,past:`před {{count}} měsíci`,future:`za {{count}} měsíce`},many:{regular:`{{count}} měsíců`,past:`před {{count}} měsíci`,future:`za {{count}} měsíců`}},aboutXYears:{one:{regular:`přibližně 1 rok`,past:`přibližně před 1 rokem`,future:`přibližně za 1 rok`},few:{regular:`přibližně {{count}} roky`,past:`přibližně před {{count}} roky`,future:`přibližně za {{count}} roky`},many:{regular:`přibližně {{count}} roků`,past:`přibližně před {{count}} roky`,future:`přibližně za {{count}} roků`}},xYears:{one:{regular:`1 rok`,past:`před 1 rokem`,future:`za 1 rok`},few:{regular:`{{count}} roky`,past:`před {{count}} roky`,future:`za {{count}} roky`},many:{regular:`{{count}} roků`,past:`před {{count}} roky`,future:`za {{count}} roků`}},overXYears:{one:{regular:`více než 1 rok`,past:`před více než 1 rokem`,future:`za více než 1 rok`},few:{regular:`více než {{count}} roky`,past:`před více než {{count}} roky`,future:`za více než {{count}} roky`},many:{regular:`více než {{count}} roků`,past:`před více než {{count}} roky`,future:`za více než {{count}} roků`}},almostXYears:{one:{regular:`skoro 1 rok`,past:`skoro před 1 rokem`,future:`skoro za 1 rok`},few:{regular:`skoro {{count}} roky`,past:`skoro před {{count}} roky`,future:`skoro za {{count}} roky`},many:{regular:`skoro {{count}} roků`,past:`skoro před {{count}} roky`,future:`skoro za {{count}} roků`}}},a=(e,t,n)=>{let r,a=i[e];r=a.type===`other`?a.other:t===1?a.one:t>1&&t<5?a.few:a.many;let o=n?.addSuffix===!0,s=n?.comparison,c;return c=o&&s===-1?r.past:o&&s===1?r.future:r.regular,c.replace(`{{count}}`,String(t))},o={date:e({formats:{full:`EEEE, d. MMMM yyyy`,long:`d. MMMM yyyy`,medium:`d. M. yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:e({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:e({formats:{full:`{{date}} 'v' {{time}}`,long:`{{date}} 'v' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},s=[`neděli`,`pondělí`,`úterý`,`středu`,`čtvrtek`,`pátek`,`sobotu`],c={lastWeek:`'poslední' eeee 've' p`,yesterday:`'včera v' p`,today:`'dnes v' p`,tomorrow:`'zítra v' p`,nextWeek:e=>`'v `+s[e.getDay()]+` o' p`,other:`P`},l={code:`cs`,formatDistance:a,formatLong:o,formatRelative:(e,t)=>{let n=c[e];return typeof n==`function`?n(t):n},localize:{ordinalNumber:(e,t)=>Number(e)+`.`,era:n({values:{narrow:[`př. n. l.`,`n. l.`],abbreviated:[`př. n. l.`,`n. l.`],wide:[`před naším letopočtem`,`našeho letopočtu`]},defaultWidth:`wide`}),quarter:n({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`],wide:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:n({values:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`leden`,`únor`,`březen`,`duben`,`květen`,`červen`,`červenec`,`srpen`,`září`,`říjen`,`listopad`,`prosinec`]},defaultWidth:`wide`,formattingValues:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`ledna`,`února`,`března`,`dubna`,`května`,`června`,`července`,`srpna`,`září`,`října`,`listopadu`,`prosince`]},defaultFormattingWidth:`wide`}),day:n({values:{narrow:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],short:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],abbreviated:[`ned`,`pon`,`úte`,`stř`,`čtv`,`pát`,`sob`],wide:[`neděle`,`pondělí`,`úterý`,`středa`,`čtvrtek`,`pátek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:n({values:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:r({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:t({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:t({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:t({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:`any`}),day:t({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:t({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};export{l as cs,l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nr as e}from"./vue.runtime.esm-bundler-Cor2aCVe.js";import{t}from"./codemirror-CVWB3MYP.js";var n=e(((e,n)=>{(function(r){typeof e==`object`&&typeof n==`object`?r(t()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],r):r(CodeMirror)})(function(e){e.defineMode(`css`,function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode(`text/css`));var i=t.indentUnit,a=n.tokenHooks,o=n.documentTypes||{},s=n.mediaTypes||{},c=n.mediaFeatures||{},l=n.mediaValueKeywords||{},u=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},f=n.fontProperties||{},p=n.counterDescriptors||{},m=n.colorKeywords||{},h=n.valueKeywords||{},g=n.allowNested,_=n.lineComment,v=n.supportsAtComponent===!0,y=t.highlightNonStandardPropertyKeywords!==!1,b,x;function S(e,t){return b=t,e}function C(e,t){var n=e.next();if(a[n]){var r=a[n](e,t);if(r!==!1)return r}if(n==`@`)return e.eatWhile(/[\w\\\-]/),S(`def`,e.current());if(n==`=`||(n==`~`||n==`|`)&&e.eat(`=`))return S(null,`compare`);if(n==`"`||n==`'`)return t.tokenize=w(n),t.tokenize(e,t);if(n==`#`)return e.eatWhile(/[\w\\\-]/),S(`atom`,`hash`);if(n==`!`)return e.match(/^\s*\w*/),S(`keyword`,`important`);if(/\d/.test(n)||n==`.`&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(n===`-`){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?S(`variable-2`,`variable-definition`):S(`variable-2`,`variable`);if(e.match(/^\w+-/))return S(`meta`,`meta`)}else if(/[,+>*\/]/.test(n))return S(null,`select-op`);else if(n==`.`&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return S(`qualifier`,`qualifier`);else if(/[:;{}\[\]\(\)]/.test(n))return S(null,n);else if(e.match(/^[\w-.]+(?=\()/))return/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=T),S(`variable callee`,`variable`);else if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),S(`property`,`word`);else return S(null,null)}function w(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),S(`string`,`string`)}}function T(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(`)`),S(null,`(`)}function E(e,t,n){this.type=e,this.indent=t,this.prev=n}function D(e,t,n,r){return e.context=new E(n,t.indentation()+(r===!1?0:i),e.context),n}function O(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function k(e,t,n){return M[n.context.type](e,t,n)}function A(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return k(e,t,n)}function j(e){var t=e.current().toLowerCase();x=h.hasOwnProperty(t)?`atom`:m.hasOwnProperty(t)?`keyword`:`variable`}var M={};return M.top=function(e,t,n){if(e==`{`)return D(n,t,`block`);if(e==`}`&&n.context.prev)return O(n);if(v&&/@component/i.test(e))return D(n,t,`atComponentBlock`);if(/^@(-moz-)?document$/i.test(e))return D(n,t,`documentTypes`);if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return D(n,t,`atBlock`);if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,`restricted_atBlock_before`;if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return`keyframes`;if(e&&e.charAt(0)==`@`)return D(n,t,`at`);if(e==`hash`)x=`builtin`;else if(e==`word`)x=`tag`;else if(e==`variable-definition`)return`maybeprop`;else if(e==`interpolation`)return D(n,t,`interpolation`);else if(e==`:`)return`pseudo`;else if(g&&e==`(`)return D(n,t,`parens`);return n.context.type},M.block=function(e,t,n){if(e==`word`){var r=t.current().toLowerCase();return u.hasOwnProperty(r)?(x=`property`,`maybeprop`):d.hasOwnProperty(r)?(x=y?`string-2`:`property`,`maybeprop`):g?(x=t.match(/^\s*:(?:\s|$)/,!1)?`property`:`tag`,`block`):(x+=` error`,`maybeprop`)}else if(e==`meta`)return`block`;else if(!g&&(e==`hash`||e==`qualifier`))return x=`error`,`block`;else return M.top(e,t,n)},M.maybeprop=function(e,t,n){return e==`:`?D(n,t,`prop`):k(e,t,n)},M.prop=function(e,t,n){if(e==`;`)return O(n);if(e==`{`&&g)return D(n,t,`propBlock`);if(e==`}`||e==`{`)return A(e,t,n);if(e==`(`)return D(n,t,`parens`);if(e==`hash`&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current()))x+=` error`;else if(e==`word`)j(t);else if(e==`interpolation`)return D(n,t,`interpolation`);return`prop`},M.propBlock=function(e,t,n){return e==`}`?O(n):e==`word`?(x=`property`,`maybeprop`):n.context.type},M.parens=function(e,t,n){return e==`{`||e==`}`?A(e,t,n):e==`)`?O(n):e==`(`?D(n,t,`parens`):e==`interpolation`?D(n,t,`interpolation`):(e==`word`&&j(t),`parens`)},M.pseudo=function(e,t,n){return e==`meta`?`pseudo`:e==`word`?(x=`variable-3`,n.context.type):k(e,t,n)},M.documentTypes=function(e,t,n){return e==`word`&&o.hasOwnProperty(t.current())?(x=`tag`,n.context.type):M.atBlock(e,t,n)},M.atBlock=function(e,t,n){if(e==`(`)return D(n,t,`atBlock_parens`);if(e==`}`||e==`;`)return A(e,t,n);if(e==`{`)return O(n)&&D(n,t,g?`block`:`top`);if(e==`interpolation`)return D(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();x=r==`only`||r==`not`||r==`and`||r==`or`?`keyword`:s.hasOwnProperty(r)?`attribute`:c.hasOwnProperty(r)?`property`:l.hasOwnProperty(r)?`keyword`:u.hasOwnProperty(r)?`property`:d.hasOwnProperty(r)?y?`string-2`:`property`:h.hasOwnProperty(r)?`atom`:m.hasOwnProperty(r)?`keyword`:`error`}return n.context.type},M.atComponentBlock=function(e,t,n){return e==`}`?A(e,t,n):e==`{`?O(n)&&D(n,t,g?`block`:`top`,!1):(e==`word`&&(x=`error`),n.context.type)},M.atBlock_parens=function(e,t,n){return e==`)`?O(n):e==`{`||e==`}`?A(e,t,n,2):M.atBlock(e,t,n)},M.restricted_atBlock_before=function(e,t,n){return e==`{`?D(n,t,`restricted_atBlock`):e==`word`&&n.stateArg==`@counter-style`?(x=`variable`,`restricted_atBlock_before`):k(e,t,n)},M.restricted_atBlock=function(e,t,n){return e==`}`?(n.stateArg=null,O(n)):e==`word`?(x=n.stateArg==`@font-face`&&!f.hasOwnProperty(t.current().toLowerCase())||n.stateArg==`@counter-style`&&!p.hasOwnProperty(t.current().toLowerCase())?`error`:`property`,`maybeprop`):`restricted_atBlock`},M.keyframes=function(e,t,n){return e==`word`?(x=`variable`,`keyframes`):e==`{`?D(n,t,`top`):k(e,t,n)},M.at=function(e,t,n){return e==`;`?O(n):e==`{`||e==`}`?A(e,t,n):(e==`word`?x=`tag`:e==`hash`&&(x=`builtin`),`at`)},M.interpolation=function(e,t,n){return e==`}`?O(n):e==`{`||e==`;`?A(e,t,n):(e==`word`?x=`variable`:e!=`variable`&&e!=`(`&&e!=`)`&&(x=`error`),`interpolation`)},{startState:function(e){return{tokenize:null,state:r?`block`:`top`,stateArg:null,context:new E(r?`block`:`top`,e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||C)(e,t);return n&&typeof n==`object`&&(b=n[1],n=n[0]),x=n,b!=`comment`&&(t.state=M[t.state](b,e,t)),x},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),a=n.indent;return n.type==`prop`&&(r==`}`||r==`)`)&&(n=n.prev),n.prev&&(r==`}`&&(n.type==`block`||n.type==`top`||n.type==`interpolation`||n.type==`restricted_atBlock`)?(n=n.prev,a=n.indent):(r==`)`&&(n.type==`parens`||n.type==`atBlock_parens`)||r==`{`&&(n.type==`at`||n.type==`atBlock`))&&(a=Math.max(0,n.indent-i))),a},electricChars:`}`,blockCommentStart:`/*`,blockCommentEnd:`*/`,blockCommentContinue:` * `,lineComment:_,fold:`brace`}});function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}var n=[`domain`,`regexp`,`url`,`url-prefix`],r=t(n),i=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],a=t(i),o=`width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.orientation.device-pixel-ratio.min-device-pixel-ratio.max-device-pixel-ratio.pointer.any-pointer.hover.any-hover.prefers-color-scheme.dynamic-range.video-dynamic-range`.split(`.`),s=t(o),c=[`landscape`,`portrait`,`none`,`coarse`,`fine`,`on-demand`,`hover`,`interlace`,`progressive`,`dark`,`light`,`standard`,`high`],l=t(c),u=`align-content.align-items.align-self.alignment-adjust.alignment-baseline.all.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.binding.bleed.block-size.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-content.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.gap.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-gap.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-gap.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.inset.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.left.letter-spacing.line-break.line-height.line-height-step.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.place-content.place-items.place-self.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotate.rotation.rotation-point.row-gap.ruby-align.ruby-overhang.ruby-position.ruby-span.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-type.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-orientation.text-outline.text-overflow.text-rendering.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.touch-action.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-select.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.paint-order.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode`.split(`.`),d=t(u),f=`accent-color.aspect-ratio.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.content-visibility.margin-block.margin-block-end.margin-block-start.margin-inline.margin-inline-end.margin-inline-start.overflow-anchor.overscroll-behavior.padding-block.padding-block-end.padding-block-start.padding-inline.padding-inline-end.padding-inline-start.scroll-snap-stop.scrollbar-3d-light-color.scrollbar-arrow-color.scrollbar-base-color.scrollbar-dark-shadow-color.scrollbar-face-color.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.shape-inside.zoom`.split(`.`),p=t(f),m=t([`font-display`,`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`]),h=t([`additive-symbols`,`fallback`,`negative`,`pad`,`prefix`,`range`,`speak-as`,`suffix`,`symbols`,`system`]),g=`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`),_=t(g),v=`above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.blur.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.brightness.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.contrast.copy.counter.counters.cover.crop.cross.crosshair.cubic-bezier.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.devanagari.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.drop-shadow.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.georgian.grayscale.graytext.grid.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hard-light.hebrew.help.hidden.hide.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.hue.hue-rotate.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.luminosity.malayalam.manipulation.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.multiple_mask_images.multiply.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.opacity.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturate.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.self-start.self-end.semi-condensed.semi-expanded.separate.sepia.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.somali.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.square-button.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`),y=t(v),b=n.concat(i).concat(o).concat(c).concat(u).concat(f).concat(g).concat(v);e.registerHelper(`hintWords`,`css`,b);function x(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}e.defineMIME(`text/css`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`}),e.defineMIME(`text/x-scss`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},":":function(e){return e.match(/^\s*\{/,!1)?[null,null]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`]},"#":function(e){return e.eat(`{`)?[null,`interpolation`]:!1}},name:`css`,helperType:`scss`}),e.defineMIME(`text/x-less`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},"@":function(e){return e.eat(`{`)?[null,`interpolation`]:e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`])},"&":function(){return[`atom`,`atom`]}},name:`css`,helperType:`less`}),e.defineMIME(`text/x-gss`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`,helperType:`gss`})})}));export{n as t};
|