jupyterlab 4.0.0a35__py3-none-any.whl → 4.0.0a36__py3-none-any.whl
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.
- jupyterlab/_version.py +1 -1
- jupyterlab/extensions/pypi.py +3 -1
- jupyterlab/galata/@jupyterlab/galata-extension/build_log.json +110 -100
- jupyterlab/galata/@jupyterlab/galata-extension/package.json +14 -14
- jupyterlab/galata/@jupyterlab/galata-extension/static/{remoteEntry.4244c175131476dd62d7.js → remoteEntry.bad0ab5ce64f7f5c8312.js} +3 -3
- jupyterlab/node-version-check.js +0 -1
- jupyterlab/schemas/@jupyterlab/application-extension/package.json.orig +16 -16
- jupyterlab/schemas/@jupyterlab/apputils-extension/package.json.orig +21 -20
- jupyterlab/schemas/@jupyterlab/apputils-extension/sanitizer.json +6 -0
- jupyterlab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/celltags-extension/package.json.orig +63 -0
- jupyterlab/schemas/@jupyterlab/celltags-extension/plugin.json +33 -0
- jupyterlab/schemas/@jupyterlab/codemirror-extension/package.json.orig +12 -12
- jupyterlab/schemas/@jupyterlab/completer-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/console-extension/package.json.orig +19 -19
- jupyterlab/schemas/@jupyterlab/csvviewer-extension/package.json.orig +13 -13
- jupyterlab/schemas/@jupyterlab/debugger-extension/package.json.orig +18 -18
- jupyterlab/schemas/@jupyterlab/docmanager-extension/package.json.orig +18 -18
- jupyterlab/schemas/@jupyterlab/documentsearch-extension/package.json.orig +8 -8
- jupyterlab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig +8 -8
- jupyterlab/schemas/@jupyterlab/filebrowser-extension/package.json.orig +17 -17
- jupyterlab/schemas/@jupyterlab/fileeditor-extension/package.json.orig +28 -27
- jupyterlab/schemas/@jupyterlab/help-extension/package.json.orig +13 -13
- jupyterlab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig +10 -10
- jupyterlab/schemas/@jupyterlab/hub-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/imageviewer-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/inspector-extension/package.json.orig +10 -10
- jupyterlab/schemas/@jupyterlab/launcher-extension/package.json.orig +11 -11
- jupyterlab/schemas/@jupyterlab/logconsole-extension/package.json.orig +15 -15
- jupyterlab/schemas/@jupyterlab/lsp-extension/package.json.orig +11 -11
- jupyterlab/schemas/@jupyterlab/mainmenu-extension/package.json.orig +14 -14
- jupyterlab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig +10 -10
- jupyterlab/schemas/@jupyterlab/metadataform-extension/package.json.orig +9 -9
- jupyterlab/schemas/@jupyterlab/notebook-extension/package.json.orig +44 -39
- jupyterlab/schemas/@jupyterlab/notebook-extension/tools.json +143 -0
- jupyterlab/schemas/@jupyterlab/notebook-extension/tracker.json +3 -3
- jupyterlab/schemas/@jupyterlab/running-extension/package.json.orig +14 -14
- jupyterlab/schemas/@jupyterlab/settingeditor-extension/package.json.orig +12 -12
- jupyterlab/schemas/@jupyterlab/shortcuts-extension/package.json.orig +14 -14
- jupyterlab/schemas/@jupyterlab/statusbar-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/terminal-extension/package.json.orig +14 -14
- jupyterlab/schemas/@jupyterlab/toc-extension/package.json.orig +7 -7
- jupyterlab/schemas/@jupyterlab/tooltip-extension/package.json.orig +15 -15
- jupyterlab/schemas/@jupyterlab/translation-extension/package.json.orig +7 -7
- jupyterlab/semver.py +1 -1
- jupyterlab/staging/package.json +153 -149
- jupyterlab/staging/yarn.lock +1965 -1938
- jupyterlab/static/{2091.bd1d16d1337fa22555ee.js → 2091.f770bddee64cc71cbb38.js} +2 -2
- jupyterlab/static/{2646.9f05e0771a4f037dca74.js → 2646.7f21306af05485d0bc39.js} +2 -2
- jupyterlab/static/2800.14c52357e80a857341c2.js +2 -0
- jupyterlab/static/2990.6dd42ddb50a872f3a914.js +2 -0
- jupyterlab/static/3547.f1596a95dc36296cdb06.js +2 -0
- jupyterlab/static/3783.d68dff3a9631f0665413.js +2 -0
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/383.f4744cd0de1e1c8920f2.js → jupyterlab/static/383.9b32cc3cdf831a212dbe.js +2 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/4008.4d194c49554e57f366c7.js → jupyterlab/static/4008.b915ce51b76e4eea444a.js +3 -3
- jupyterlab/static/{5070.c2c3872b77c88e1d2f6d.js → 4207.216305846d1afcde3718.js} +2 -2
- jupyterlab/static/4405.2a2632db9de9492d375b.js +2 -0
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/49.baf8c7be6d15f0d9608b.js → jupyterlab/static/49.ced85eba3bfd117cd00f.js +2 -2
- jupyterlab/static/4986.04c2fe2a543c02880ba9.js +2 -0
- jupyterlab/static/6888.7fab95080c34bfe2cfd0.js +2 -0
- jupyterlab/static/812.f31a0b0d1a5719e044c8.js +2 -0
- jupyterlab/static/{8302.360d573de8ff429363ad.js → 8302.9c4fa45b6f90d0c97e69.js} +2 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/8768.852fee3a754ef67f9529.js → jupyterlab/static/8768.a81e5b90356c6d3f905d.js +3 -3
- jupyterlab/static/8823.bff403d7f8fdfcc8e770.js +2 -0
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/9.b85eb270581c06f724c5.js → jupyterlab/static/9.16e9cdccbe815399d46d.js +2 -2
- jupyterlab/static/9065.c22fad1c8445f09b60ba.js +2 -0
- jupyterlab/static/build_log.json +116 -108
- jupyterlab/static/index.html +1 -1
- jupyterlab/static/jlab_core.96941e5e852fedd23450.js +2 -0
- jupyterlab/static/main.20e744f8e1918f54d90d.js +2 -0
- jupyterlab/static/package.json +153 -149
- jupyterlab/static/third-party-licenses.json +168 -174
- jupyterlab/tests/mock_packages/extension/package.json +3 -3
- jupyterlab/tests/mock_packages/interop/consumer/package.json +3 -3
- jupyterlab/tests/mock_packages/interop/provider/package.json +3 -3
- jupyterlab/tests/mock_packages/interop/token/package.json +2 -2
- jupyterlab/tests/mock_packages/mimeextension/package.json +1 -1
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig +16 -16
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig +21 -20
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json +6 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig +7 -7
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig +63 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json +33 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig +12 -12
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig +7 -7
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig +19 -19
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig +13 -13
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig +18 -18
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig +18 -18
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig +8 -8
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig +8 -8
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig +17 -17
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig +83 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig +13 -13
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig +10 -10
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig +7 -7
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig +7 -7
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig +10 -10
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig +11 -11
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig +15 -15
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig +11 -11
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig +14 -14
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig +10 -10
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig +9 -9
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig +93 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json +143 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json +3 -3
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig +14 -14
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig +12 -12
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig +14 -14
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig +7 -7
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig +14 -14
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig +7 -7
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig +15 -15
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig +7 -7
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/2091.bd1d16d1337fa22555ee.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/2091.f770bddee64cc71cbb38.js +2 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/2646.9f05e0771a4f037dca74.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/2646.7f21306af05485d0bc39.js +2 -2
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/2800.14c52357e80a857341c2.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/2990.6dd42ddb50a872f3a914.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/3547.f1596a95dc36296cdb06.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/3783.d68dff3a9631f0665413.js +2 -0
- jupyterlab/static/383.f4744cd0de1e1c8920f2.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/383.9b32cc3cdf831a212dbe.js +2 -2
- jupyterlab/static/4008.4d194c49554e57f366c7.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/4008.b915ce51b76e4eea444a.js +3 -3
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/5070.c2c3872b77c88e1d2f6d.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/4207.216305846d1afcde3718.js +2 -2
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/4405.2a2632db9de9492d375b.js +2 -0
- jupyterlab/static/49.baf8c7be6d15f0d9608b.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/49.ced85eba3bfd117cd00f.js +2 -2
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/4986.04c2fe2a543c02880ba9.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/6888.7fab95080c34bfe2cfd0.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/812.f31a0b0d1a5719e044c8.js +2 -0
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/8302.360d573de8ff429363ad.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/8302.9c4fa45b6f90d0c97e69.js +2 -2
- jupyterlab/static/8768.852fee3a754ef67f9529.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/8768.a81e5b90356c6d3f905d.js +3 -3
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/8823.bff403d7f8fdfcc8e770.js +2 -0
- jupyterlab/static/9.b85eb270581c06f724c5.js → jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/9.16e9cdccbe815399d46d.js +2 -2
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/9065.c22fad1c8445f09b60ba.js +2 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/build_log.json +116 -108
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/index.html +1 -1
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/jlab_core.96941e5e852fedd23450.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/main.20e744f8e1918f54d90d.js +2 -0
- jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/package.json +321 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/third-party-licenses.json +168 -174
- {jupyterlab-4.0.0a35.dist-info → jupyterlab-4.0.0a36.dist-info}/METADATA +4 -4
- {jupyterlab-4.0.0a35.dist-info → jupyterlab-4.0.0a36.dist-info}/RECORD +379 -371
- jupyterlab/static/2800.16d71ffa4e49ede65248.js +0 -2
- jupyterlab/static/2990.ae4cac57633852d78ace.js +0 -2
- jupyterlab/static/3547.d8386812970c3ca0cb33.js +0 -2
- jupyterlab/static/3783.75d5c774397d9db2a6ef.js +0 -2
- jupyterlab/static/4986.e578a4291819fec6d1c4.js +0 -2
- jupyterlab/static/6269.3431fb9d9d780c0af4e9.js +0 -2
- jupyterlab/static/6888.38cf56f2ba12dfb8ab0d.js +0 -2
- jupyterlab/static/812.da9b1205d52814f0e613.js +0 -2
- jupyterlab/static/8823.a0fc337e55dfe2e131ee.js +0 -2
- jupyterlab/static/jlab_core.f96460172813e60251da.js +0 -2
- jupyterlab/static/main.95c9685538cf2359800e.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig +0 -82
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig +0 -88
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/2800.16d71ffa4e49ede65248.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/2990.ae4cac57633852d78ace.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/3547.d8386812970c3ca0cb33.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/3783.75d5c774397d9db2a6ef.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/4986.e578a4291819fec6d1c4.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/6269.3431fb9d9d780c0af4e9.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/6888.38cf56f2ba12dfb8ab0d.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/812.da9b1205d52814f0e613.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/8823.a0fc337e55dfe2e131ee.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/jlab_core.f96460172813e60251da.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/main.95c9685538cf2359800e.js +0 -2
- jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/package.json +0 -317
- /jupyterlab/static/{4008.4d194c49554e57f366c7.js.LICENSE.txt → 4008.b915ce51b76e4eea444a.js.LICENSE.txt} +0 -0
- /jupyterlab/static/{8768.852fee3a754ef67f9529.js.LICENSE.txt → 8768.a81e5b90356c6d3f905d.js.LICENSE.txt} +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/etc/jupyter/jupyter_server_config.d/jupyterlab.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/workspaces.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1036.f6c57d1265adca83594e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1036.f6c57d1265adca83594e.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1085.36072613d5461d9bc753.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1142.228652acc76ea404048d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1168.6a7f50ce99d9120d558d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1294.d1735230fc7e9a21e8ad.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1410.8dd0e390c69996cecb38.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1420.78e8c0a87a74a5c616ed.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1452.40a07727b78492442421.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1467.3ee02202fa11332e5b99.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1550.373973a4651e6d0cf8b8.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1581.41bb01f5d4047061f002.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1581.41bb01f5d4047061f002.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1608.cf6b65b59e4ff19b5622.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1716.9bf4d1620425b087fc9a.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1776.5218a3aec719d764977f.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1861.762ed9052ac12c338de6.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1903.73f4b592ee795a6b61ab.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1945.dd876fc4110972ab9979.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1954.8b80dffad1ab65f151b3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/1993.2f82b3bafd40aa9605d3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2039.7b8fad64fe512bdd5632.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2090.7c57efa83d49c74accca.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2104.fcc8c0f01e052700b3b0.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2145.2ed879d424a6ee02d531.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2254.13d594629c684d67a6b2.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2295.cf513646f24b357692bc.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2320.24d37d8ae619f877e334.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2363.d86742077aed696694b9.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2459.33094feaa394e0b72837.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2485.2b62703ab935947006af.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2617.af93dca9ab5f243bf60e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2829.d72b2ee221fa5ba98c38.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2857.008f1a1c91b1fa06999e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2909.9a160a86a2172c389238.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/292.7c2a7b3af0bd14d7f49e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2929.686155e4d274cfa9cd32.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/2995.960715f713d01070e5a7.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3056.7ac8b30ccd5aad42e0c7.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3123.1df15835a1681fb411f4.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3127.0bd0b2da7c02c81dc7d7.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3306.19d86a7230d467f0a01a.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3308.49c993cd8597acb46935.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3528.c34d6dc8140ed3d19f4d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3549.05e5283aa1815f6c0b86.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3601.92dd7c517619f0141013.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/373c04fd2418f5c77eea.eot +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/378.1bd75509552813ebea37.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3807.33034141b48b767e6974.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3923.7ffdf2670160c7be7da5.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3935.200aeb85f6884cbd976d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3935.200aeb85f6884cbd976d.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3962.68d34fc6c9af390e95f2.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/3f6d3488cf65374f6f67.woff +0 -0
- /jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/4008.4d194c49554e57f366c7.js.LICENSE.txt → /jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/4008.b915ce51b76e4eea444a.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4017.7cf5c0f4ab2e2fe099f4.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4043.7d4235e5ef237743c246.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4139.640d2da69a839bbb23a1.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4155.784ca1752696680bf373.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4283.5ea107a9413cf350657d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4291.7fc9442700a996c261cd.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4419.8d7204ceb62af06d8422.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4452.e12b3923387884215888.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4519.38b6c4e1bfad86478cf2.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4562.29166c568a222122f128.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4591.314ddb1d18112749d6d0.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/46.0fb036ed8ad4b2af0e5e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4743.290178067fcbe2b935dd.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/4878.9c8b7dff9f2aa987457d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/489.2bb514a4f1aeca4522e4.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5041.8834f33c4d437bd3d845.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5157.3a8e834fbef3a8fc2b4f.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5201.43ed99b05a13cb751923.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5203.d020c43293395b5d5c55.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5331.af889dce3fae12a95db2.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5440.0f50e7c3df2baf685125.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5521.f65521bcfb0c479b5fba.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/581.67a15269b8e899ea2588.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5881.c7ae1a260275cb511eda.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/5959.41c3dbb934f7aa83e2af.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6163.231924d17191f1a9a738.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6207.226a2fd91c0e203aee57.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6243.4fc871a5a7ffb2e327b4.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6267.d266ae2f83d17cb51279.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6359.3b09504ed85bb3f71967.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6443.31e269857ec0085f7934.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6532.31ea041feb9581e651bc.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6595.abbc5e7c2fb4b02cd772.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6815.c467fac9cf7db8d0e236.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/6831.86709d4fba398c4eb414.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7080.0b3dcc246068147dc7a3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7112.a59ee2cd442d601beeeb.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7173.f506f29f75a4ef3362ad.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/720.c0e1eda90fe360aee794.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7245.ba37c7df026eab813275.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7294.78897ca348581a9dae29.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7294.78897ca348581a9dae29.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7317.df1ecbfc7db0b063eedf.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7318.f2a3b81f6c31efdfa363.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7363.edc5172d0cfe93aa9ff3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7384.921ddca683d28f988f4e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7390.186ad933c12e960be502.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/745.bf57c40e3c4951b45c9e.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7451.e06be24e1fee9b2e4387.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7451.e06be24e1fee9b2e4387.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7473.2e5c4257832f1aaa2f7a.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7511.26a3826fcdb9c224c361.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7669.8e939de0670f120fce13.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7702.d3ddc7062e198eb6e938.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7730.7e3a9fb140d2d55a51fc.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7731.987cee17c2debd482054.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7763.bd770588e14bb53e5869.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7763.bd770588e14bb53e5869.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7823.94efbaadd84fc03f9d87.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7827.fee0cdeaf6e306bbef3d.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7848.e49d7a34ea52aebaf01b.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7877.dcf82bd8c368d9f16b51.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/7887.313787ace9dbcea19b08.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/795.f94649e166b50e0e5c10.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/79d088064beb3826054f.eot +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8002.0b0117f4610a941dfe76.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8010.a24689afeaeab57102d3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8012.29bb6d58445d67c859f8.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8285.629ddf7ab87c4102aee2.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/830.8410da9c86cd6835b3ea.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8319.5820120f3fd5db7531d6.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8347.299c1a8fba5fd34992e6.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8405.97a74ca186f6f332afe3.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8493.e3975ff82548a415fac5.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8498.160275f2a073c621d541.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8710.d0976e9e521791ab5b19.js +0 -0
- /jupyterlab-4.0.0a35.data/data/share/jupyter/lab/static/8768.852fee3a754ef67f9529.js.LICENSE.txt → /jupyterlab-4.0.0a36.data/data/share/jupyter/lab/static/8768.a81e5b90356c6d3f905d.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8771.f48f4e16fcd5cc64f473.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8787.94119f9e3846afa58ae0.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8805.52c5236ced15d35e3286.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8875.8da7cb48fb402ac6f8a5.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/8ea8791754915a898a31.woff2 +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9030.d0c99a0b0db0c7b0a0cb.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9055.3d9971cc90ec4423025c.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9109.fab4c4429f3212218a66.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9192.1a84f137ac27348644bf.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9222.f210f5553fdbc1bb5d74.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9265.f021a836a4f8c1e4f2f5.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9362.36daaf0799b79dc3e343.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9409.d6502e7a30f5163c83f6.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/942.cb7b08b587bc7a30269a.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9421.1ef475b30b23aab2395f.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9445.a6d51ef124feeae99757.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9621.9694856bdac57c707675.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9653.b1366d17fefa13259f3a.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9674eb1bd55047179038.svg +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9738.c078f05c0d7cb5bde4a9.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9747.56b3d4353668e791b7de.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9747.56b3d4353668e791b7de.js.LICENSE.txt +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/a3b9817780214caf01e8.svg +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/af6397503fcefbd61397.ttf +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/be0a084962d8066884f7.svg +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/bootstrap.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/cb9e9e693192413cde2b.woff +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/cda59d6efffa685830fd.ttf +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/e4299464e7b012968eed.eot +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/index.out.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/static/style.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-dark-extension/index.css +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-dark-extension/index.js +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.css +0 -0
- {jupyterlab-4.0.0a35.data → jupyterlab-4.0.0a36.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.js +0 -0
- {jupyterlab-4.0.0a35.dist-info → jupyterlab-4.0.0a36.dist-info}/WHEEL +0 -0
- {jupyterlab-4.0.0a35.dist-info → jupyterlab-4.0.0a36.dist-info}/entry_points.txt +0 -0
- {jupyterlab-4.0.0a35.dist-info → jupyterlab-4.0.0a36.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4986],{54986:(t,e,i)=>{i.r(e);i.d(e,{BidiSpan:()=>pe,BlockInfo:()=>Li,BlockType:()=>St,Decoration:()=>xt,Direction:()=>oe,EditorView:()=>Ms,GutterMarker:()=>gn,MatchDecorator:()=>co,RectangleMarker:()=>zs,ViewPlugin:()=>Ut,ViewUpdate:()=>se,WidgetType:()=>yt,__test:()=>_n,closeHoverTooltips:()=>ln,crosshairCursor:()=>zo,drawSelection:()=>Qs,dropCursor:()=>lo,getPanel:()=>fn,getTooltip:()=>on,gutter:()=>yn,gutterLineClass:()=>wn,gutters:()=>xn,hasHoverTooltips:()=>nn,highlightActiveLine:()=>Do,highlightActiveLineGutter:()=>Fn,highlightSpecialChars:()=>vo,highlightTrailingWhitespace:()=>$n,highlightWhitespace:()=>Gn,hoverTooltip:()=>sn,keymap:()=>Bs,layer:()=>Us,lineNumberMarkers:()=>En,lineNumbers:()=>Vn,logException:()=>Gt,panels:()=>cn,placeholder:()=>Ro,rectangularSelection:()=>Po,repositionTooltips:()=>hn,runScopeHandlers:()=>Vs,scrollPastEnd:()=>Ao,showPanel:()=>mn,showTooltip:()=>Xo,tooltips:()=>Ko});var s=i(37496);var o=i(67737);var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};var r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'};var l=typeof navigator!="undefined"&&/Chrome\/(\d+)/.exec(navigator.userAgent);var h=typeof navigator!="undefined"&&/Gecko\/\d+/.test(navigator.userAgent);var a=typeof navigator!="undefined"&&/Mac/.test(navigator.platform);var c=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);var f=a||l&&+l[1]<57;for(var d=0;d<10;d++)n[48+d]=n[96+d]=String(d);for(var d=1;d<=24;d++)n[d+111]="F"+d;for(var d=65;d<=90;d++){n[d]=String.fromCharCode(d+32);r[d]=String.fromCharCode(d)}for(var u in n)if(!r.hasOwnProperty(u))r[u]=n[u];function p(t){var e=f&&(t.ctrlKey||t.altKey||t.metaKey)||c&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified";var i=!e&&t.key||(t.shiftKey?r:n)[t.keyCode]||t.key||"Unidentified";if(i=="Esc")i="Escape";if(i=="Del")i="Delete";if(i=="Left")i="ArrowLeft";if(i=="Up")i="ArrowUp";if(i=="Right")i="ArrowRight";if(i=="Down")i="ArrowDown";return i}function m(t){let e;if(t.nodeType==11){e=t.getSelection?t:t.ownerDocument}else{e=t}return e.getSelection()}function g(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):false}function w(t){let e=t.activeElement;while(e&&e.shadowRoot)e=e.shadowRoot.activeElement;return e}function v(t,e){if(!e.anchorNode)return false;try{return g(t,e.anchorNode)}catch(i){return false}}function b(t){if(t.nodeType==3)return L(t,0,t.nodeValue.length).getClientRects();else if(t.nodeType==1)return t.getClientRects();else return[]}function y(t,e,i,s){return i?x(t,e,i,s,-1)||x(t,e,i,s,1):false}function S(t){for(var e=0;;e++){t=t.previousSibling;if(!t)return e}}function x(t,e,i,s,o){for(;;){if(t==i&&e==s)return true;if(e==(o<0?0:M(t))){if(t.nodeName=="DIV")return false;let i=t.parentNode;if(!i||i.nodeType!=1)return false;e=S(t)+(o<0?0:1);t=i}else if(t.nodeType==1){t=t.childNodes[e+(o<0?-1:0)];if(t.nodeType==1&&t.contentEditable=="false")return false;e=o<0?M(t):0}else{return false}}}function M(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}const k={left:0,right:0,top:0,bottom:0};function C(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function A(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function D(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;){if(c.nodeType==1){let t,f=c==h.body;if(f){t=A(a)}else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();t={left:e.left,right:e.left+c.clientWidth,top:e.top,bottom:e.top+c.clientHeight}}let d=0,u=0;if(o=="nearest"){if(e.top<t.top){u=-(t.top-e.top+r);if(i>0&&e.bottom>t.bottom+u)u=e.bottom-t.bottom+u+r}else if(e.bottom>t.bottom){u=e.bottom-t.bottom+r;if(i<0&&e.top-u<t.top)u=-(t.top+u-e.top+r)}}else{let s=e.bottom-e.top,n=t.bottom-t.top;let l=o=="center"&&s<=n?e.top+s/2-n/2:o=="start"||o=="center"&&i<0?e.top-r:e.bottom-n+r;u=l-t.top}if(s=="nearest"){if(e.left<t.left){d=-(t.left-e.left+n);if(i>0&&e.right>t.right+d)d=e.right-t.right+d+n}else if(e.right>t.right){d=e.right-t.right+n;if(i<0&&e.left<t.left+d)d=-(t.left+d-e.left+n)}}else{let i=s=="center"?e.left+(e.right-e.left)/2-(t.right-t.left)/2:s=="start"==l?e.left-n:e.right-(t.right-t.left)+n;d=i-t.left}if(d||u){if(f){a.scrollBy(d,u)}else{let t=0,i=0;if(u){let t=c.scrollTop;c.scrollTop+=u;i=c.scrollTop-t}if(d){let e=c.scrollLeft;c.scrollLeft+=d;t=c.scrollLeft-e}e={left:e.left-t,top:e.top-i,right:e.right-t,bottom:e.bottom-i};if(t&&Math.abs(t-d)<1)s="nearest";if(i&&Math.abs(i-u)<1)o="nearest"}}if(f)break;c=c.assignedSlot||c.parentNode}else if(c.nodeType==11){c=c.host}else{break}}}function T(t){let e=t.ownerDocument;for(let i=t.parentNode;i;){if(i==e.body){break}else if(i.nodeType==1){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(i.nodeType==11){i=i.host}else{break}}return null}class O{constructor(){this.anchorNode=null;this.anchorOffset=0;this.focusNode=null;this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t;this.anchorOffset=e;this.focusNode=i;this.focusOffset=s}}let E=null;function R(t){if(t.setActive)return t.setActive();if(E)return t.focus(E);let e=[];for(let i=t;i;i=i.parentNode){e.push(i,i.scrollTop,i.scrollLeft);if(i==i.ownerDocument)break}t.focus(E==null?{get preventScroll(){E={preventScroll:true};return true}}:undefined);if(!E){E=false;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],o=e[t++];if(i.scrollTop!=s)i.scrollTop=s;if(i.scrollLeft!=o)i.scrollLeft=o}}}let B;function L(t,e,i=e){let s=B||(B=document.createRange());s.setEnd(t,i);s.setStart(t,e);return s}function H(t,e,i){let s={key:e,code:e,keyCode:i,which:i,cancelable:true};let o=new KeyboardEvent("keydown",s);o.synthetic=true;t.dispatchEvent(o);let n=new KeyboardEvent("keyup",s);n.synthetic=true;t.dispatchEvent(n);return o.defaultPrevented||n.defaultPrevented}function V(t){while(t){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function N(t){while(t.attributes.length)t.removeAttributeNode(t.attributes[0])}function P(t,e){let i=e.focusNode,s=e.focusOffset;if(!i||e.anchorNode!=i||e.anchorOffset!=s)return false;for(;;){if(s){if(i.nodeType!=1)return false;let t=i.childNodes[s-1];if(t.contentEditable=="false")s--;else{i=t;s=M(i)}}else if(i==t){return true}else{s=S(i);i=i.parentNode}}}class W{constructor(t,e,i=true){this.node=t;this.offset=e;this.precise=i}static before(t,e){return new W(t.parentNode,S(t),e)}static after(t,e){return new W(t.parentNode,S(t)+1,e)}}const F=[];class z{constructor(){this.parent=null;this.dom=null;this.dirty=2}get editorView(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let i of this.children){if(i==t)return e;e+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}coordsAt(t,e){return null}sync(t){if(this.dirty&2){let e=this.dom;let i=null,s;for(let o of this.children){if(o.dirty){if(!o.dom&&(s=i?i.nextSibling:e.firstChild)){let t=z.get(s);if(!t||!t.parent&&t.canReuseDOM(o))o.reuseDOM(s)}o.sync(t);o.dirty=0}s=i?i.nextSibling:e.firstChild;if(t&&!t.written&&t.node==e&&s!=o.dom)t.written=true;if(o.dom.parentNode==e){while(s&&s!=o.dom)s=I(s)}else{e.insertBefore(o.dom,s)}i=o.dom}s=i?i.nextSibling:e.firstChild;if(s&&t&&t.node==e)t.written=true;while(s)s=I(s)}else if(this.dirty&1){for(let e of this.children)if(e.dirty){e.sync(t);e.dirty=0}}}reuseDOM(t){}localPosFromDOM(t,e){let i;if(t==this.dom){i=this.dom.childNodes[e]}else{let s=M(t)==0?0:e==0?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;if(s==0&&e.firstChild!=e.lastChild){if(t==e.firstChild)s=-1;else s=1}t=e}if(s<0)i=t;else i=t.nextSibling}if(i==this.dom.firstChild)return 0;while(i&&!z.get(i))i=i.nextSibling;if(!i)return this.length;for(let s=0,o=0;;s++){let t=this.children[s];if(t.dom==i)return o;o+=t.length+t.breakAfter}}domBoundsAround(t,e,i=0){let s=-1,o=-1,n=-1,r=-1;for(let l=0,h=i,a=i;l<this.children.length;l++){let i=this.children[l],c=h+i.length;if(h<t&&c>e)return i.domBoundsAround(t,e,h);if(c>=t&&s==-1){s=l;o=h}if(h>e&&i.dom.parentNode==this.dom){n=l;r=a;break}a=c;h=c+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n<this.children.length&&n>=0?this.children[n].dom:null}}markDirty(t=false){this.dirty|=2;this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t)e.dirty|=2;if(e.dirty&1)return;e.dirty|=1;t=false}}setParent(t){if(this.parent!=t){this.parent=t;if(this.dirty)this.markParentsDirty(true)}}setDOM(t){if(this.dom)this.dom.cmView=null;this.dom=t;t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=F){this.markDirty();for(let s=t;s<e;s++){let t=this.children[s];if(t.parent==this)t.destroy()}this.children.splice(t,e-t,...i);for(let s=0;s<i.length;s++)i[s].setParent(this)}ignoreMutation(t){return false}ignoreEvent(t){return false}childCursor(t=this.length){return new q(this.children,t,this.children.length)}childPos(t,e=1){return this.childCursor().findPos(t,e)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return true}merge(t,e,i,s,o,n){return false}become(t){return false}canReuseDOM(t){return t.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}z.prototype.breakAfter=0;function I(t){let e=t.nextSibling;t.parentNode.removeChild(t);return e}class q{constructor(t,e,i){this.children=t;this.pos=e;this.i=i;this.off=0}findPos(t,e=1){for(;;){if(t>this.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter)){this.off=t-this.pos;return this}let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function K(t,e,i,s,o,n,r,l,h){let{children:a}=t;let c=a.length?a[e]:null;let f=n.length?n[n.length-1]:null;let d=f?f.breakAfter:r;if(e==s&&c&&!r&&!d&&n.length<2&&c.merge(i,o,n.length?f:null,i==0,l,h))return;if(s<a.length){let t=a[s];if(t&&o<t.length){if(e==s){t=t.split(o);o=0}if(!d&&f&&t.merge(0,o,f,true,0,h)){n[n.length-1]=t}else{if(o)t.merge(0,o,null,false,0,h);n.push(t)}}else if(t===null||t===void 0?void 0:t.breakAfter){if(f)f.breakAfter=1;else r=1}s++}if(c){c.breakAfter=r;if(i>0){if(!r&&n.length&&c.merge(i,c.length,n[0],false,l,0)){c.breakAfter=n.shift().breakAfter}else if(i<c.length||c.children.length&&c.children[c.children.length-1].length==0){c.merge(i,c.length,null,false,l,0)}e++}}while(e<s&&n.length){if(a[s-1].become(n[n.length-1])){s--;n.pop();h=n.length?0:l}else if(a[e].become(n[0])){e++;n.shift();l=n.length?0:h}else{break}}if(!n.length&&e&&s<a.length&&!a[e-1].breakAfter&&a[s].merge(0,0,a[e-1],false,l,h))e--;if(e<s||n.length)t.replaceChildren(e,s,n)}function G(t,e,i,s,o,n){let r=t.childCursor();let{i:l,off:h}=r.findPos(i,1);let{i:a,off:c}=r.findPos(e,-1);let f=e-i;for(let d of s)f+=d.length;t.length+=f;K(t,a,c,l,h,s,0,o,n)}let j=typeof navigator!="undefined"?navigator:{userAgent:"",vendor:"",platform:""};let $=typeof document!="undefined"?document:{documentElement:{style:{}}};const _=/Edge\/(\d+)/.exec(j.userAgent);const U=/MSIE \d/.test(j.userAgent);const X=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(j.userAgent);const Y=!!(U||X||_);const Q=!Y&&/gecko\/(\d+)/i.test(j.userAgent);const J=!Y&&/Chrome\/(\d+)/.exec(j.userAgent);const Z="webkitFontSmoothing"in $.documentElement.style;const tt=!Y&&/Apple Computer/.test(j.vendor);const et=tt&&(/Mobile\/\w+/.test(j.userAgent)||j.maxTouchPoints>2);var it={mac:et||/Mac/.test(j.platform),windows:/Win/.test(j.platform),linux:/Linux|X11/.test(j.platform),ie:Y,ie_version:U?$.documentMode||6:X?+X[1]:_?+_[1]:0,gecko:Q,gecko_version:Q?+(/Firefox\/(\d+)/.exec(j.userAgent)||[0,0])[1]:0,chrome:!!J,chrome_version:J?+J[1]:0,ios:et,android:/Android\b/.test(j.userAgent),webkit:Z,safari:tt,webkit_version:Z?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:$.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const st=256;class ot extends z{constructor(t){super();this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){if(!this.dom)this.createDOM();if(this.dom.nodeValue!=this.text){if(t&&t.node==this.dom)t.written=true;this.dom.nodeValue=this.text}}reuseDOM(t){if(t.nodeType==3)this.createDOM(t)}merge(t,e,i){if(i&&(!(i instanceof ot)||this.length-(e-t)+i.length>st))return false;this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e);this.markDirty();return true}split(t){let e=new ot(this.text.slice(t));this.text=this.text.slice(0,t);this.markDirty();return e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new W(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return rt(this.dom,t,e)}}class nt extends z{constructor(t,e=[],i=0){super();this.mark=t;this.children=e;this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){N(t);if(this.mark.class)t.className=this.mark.class;if(this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){if(t.nodeName==this.mark.tagName.toUpperCase()){this.setDOM(t);this.dirty|=4|2}}sync(t){if(!this.dom)this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));else if(this.dirty&4)this.setAttrs(this.dom);super.sync(t)}merge(t,e,i,s,o,n){if(i&&(!(i instanceof nt&&i.mark.eq(this.mark))||t&&o<=0||e<this.length&&n<=0))return false;G(this,t,e,i?i.children:[],o-1,n-1);this.markDirty();return true}split(t){let e=[],i=0,s=-1,o=0;for(let r of this.children){let n=i+r.length;if(n>t)e.push(i<t?r.split(t-i):r);if(s<0&&i>=t)s=o;i=n;o++}let n=this.length-t;this.length=t;if(s>-1){this.children.length=s;this.markDirty()}return new nt(this.mark,e,n)}domAtPos(t){return ut(this,t)}coordsAt(t,e){return mt(this,t,e)}}function rt(t,e,i){let s=t.nodeValue.length;if(e>s)e=s;let o=e,n=e,r=0;if(e==0&&i<0||e==s&&i>=0){if(!(it.chrome||it.gecko)){if(e){o--;r=1}else if(n<s){n++;r=-1}}}else{if(i<0)o--;else if(n<s)n++}let l=L(t,o,n).getClientRects();if(!l.length)return k;let h=l[(r?r<0:i>=0)?0:l.length-1];if(it.safari&&!r&&h.width==0)h=Array.prototype.find.call(l,(t=>t.width))||h;return r?C(h,r<0):h||null}class lt extends z{constructor(t,e,i){super();this.widget=t;this.length=e;this.side=i;this.prevWidget=null}static create(t,e,i){return new(t.customView||lt)(t,e,i)}split(t){let e=lt.create(this.widget,this.length-t,this.side);this.length-=t;return e}sync(){if(!this.dom||!this.widget.updateDOM(this.dom)){if(this.dom&&this.prevWidget)this.prevWidget.destroy(this.dom);this.prevWidget=null;this.setDOM(this.widget.toDOM(this.editorView));this.dom.contentEditable="false"}}getSide(){return this.side}merge(t,e,i,s,o,n){if(i&&(!(i instanceof lt)||!this.widget.compare(i.widget)||t>0&&o<=0||e<this.length&&n<=0))return false;this.length=t+(i?i.length:0)+(this.length-e);return true}become(t){if(t.length==this.length&&t instanceof lt&&t.side==this.side){if(this.widget.constructor==t.widget.constructor){if(!this.widget.eq(t.widget))this.markDirty(true);if(this.dom&&!this.prevWidget)this.prevWidget=this.widget;this.widget=t.widget;return true}}return false}ignoreMutation(){return true}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return s.Text.empty;let t=this;while(t.parent)t=t.parent;let e=t.editorView,i=e&&e.state.doc,o=this.posAtStart;return i?i.slice(o,o+this.length):s.Text.empty}domAtPos(t){return t==0?W.before(this.dom):W.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.dom.getClientRects(),s=null;if(!i.length)return k;for(let o=t>0?i.length-1:0;;o+=t>0?-1:1){s=i[o];if(t>0?o==0:o==i.length-1||s.top<s.bottom)break}return this.length?s:C(s,this.side>0)}get isEditable(){return false}destroy(){super.destroy();if(this.dom)this.widget.destroy(this.dom)}}class ht extends lt{domAtPos(t){let{topView:e,text:i}=this.widget;if(!e)return new W(i,Math.min(t,i.nodeValue.length));return at(t,0,e,i,((t,e)=>t.domAtPos(e)),(t=>new W(i,Math.min(t,i.nodeValue.length))))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;if(!i)return Math.min(e,this.length);return ct(t,e,i,s)}ignoreMutation(){return false}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;if(!i)return rt(s,t,e);return at(t,e,i,s,((t,e,i)=>t.coordsAt(e,i)),((t,e)=>rt(s,t,e)))}destroy(){var t;super.destroy();(t=this.widget.topView)===null||t===void 0?void 0:t.destroy()}get isEditable(){return true}canReuseDOM(){return true}}function at(t,e,i,s,o,n){if(i instanceof nt){for(let r=i.dom.firstChild;r;r=r.nextSibling){let i=z.get(r);if(!i)return n(t,e);let l=g(r,s);let h=i.length+(l?s.nodeValue.length:0);if(t<h||t==h&&i.getSide()<=0)return l?at(t,e,i,s,o,n):o(i,t,e);t-=h}return o(i,i.length,-1)}else if(i.dom==s){return n(t,e)}else{return o(i,t,e)}}function ct(t,e,i,s){if(i instanceof nt){for(let o of i.children){let i=0,n=g(o.dom,s);if(g(o.dom,t))return i+(n?ct(t,e,o,s):o.localPosFromDOM(t,e));i+=n?s.nodeValue.length:o.length}}else if(i.dom==s){return Math.min(e,s.nodeValue.length)}return i.localPosFromDOM(t,e)}class ft extends z{constructor(t){super();this.side=t}get length(){return 0}merge(){return false}become(t){return t instanceof ft&&t.side==this.side}split(){return new ft(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer";t.setAttribute("aria-hidden","true");this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return W.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect();let i=dt(this,this.side>0?-1:1);return i&&i.top<e.bottom&&i.bottom>e.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return s.Text.empty}}ot.prototype.children=lt.prototype.children=ft.prototype.children=F;function dt(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;while(i&&s>=0){if(e<0?s>0:s<i.children.length){let t=i.children[s+e];if(t instanceof ot){let i=t.coordsAt(e<0?t.length:0,e);if(i)return i}s+=e}else if(i instanceof nt&&i.parent){s=i.parent.children.indexOf(i)+(e<0?0:1);i=i.parent}else{let t=i.dom.lastChild;if(t&&t.nodeName=="BR")return t.getClientRects()[0];break}}return undefined}function ut(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;o<s.length;o++){let t=s[o],r=n+t.length;if(r==n&&t.getSide()<=0)continue;if(e>n&&e<r&&t.dom.parentNode==i)return t.domAtPos(e-n);if(e<=n)break;n=r}for(let n=o;n>0;n--){let t=s[n-1];if(t.dom.parentNode==i)return t.domAtPos(t.length)}for(let n=o;n<s.length;n++){let t=s[n];if(t.dom.parentNode==i)return t.domAtPos(0)}return new W(i,0)}function pt(t,e,i){let s,{children:o}=t;if(i>0&&e instanceof nt&&o.length&&(s=o[o.length-1])instanceof nt&&s.mark.eq(e.mark)){pt(s,e.children[0],i-1)}else{o.push(e);e.setParent(t)}t.length+=e.length}function mt(t,e,i){let s=null,o=-1,n=null,r=-1;function l(t,e){for(let i=0,h=0;i<t.children.length&&h<=e;i++){let a=t.children[i],c=h+a.length;if(c>=e){if(a.children.length){l(a,e-h)}else if(!n&&(c>e||h==c&&a.getSide()>0)){n=a;r=e-h}else if(h<e||h==c&&a.getSide()<0){s=a;o=e-h}}h=c}}l(t,e);let h=(i<0?s:n)||s||n;if(h)return h.coordsAt(Math.max(0,h==s?o:r),i);return gt(t)}function gt(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=b(e);return i[i.length-1]||null}function wt(t,e){for(let i in t){if(i=="class"&&e.class)e.class+=" "+t.class;else if(i=="style"&&e.style)e.style+=";"+t.style;else e[i]=t[i]}return e}function vt(t,e){if(t==e)return true;if(!t||!e)return false;let i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return false;for(let o of i){if(s.indexOf(o)==-1||t[o]!==e[o])return false}return true}function bt(t,e,i){let s=null;if(e)for(let o in e)if(!(i&&o in i))t.removeAttribute(s=o);if(i)for(let o in i)if(!(e&&e[o]==i[o]))t.setAttribute(s=o,i[o]);return!!s}class yt{eq(t){return false}updateDOM(t){return false}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}ignoreEvent(t){return true}get customView(){return null}destroy(t){}}var St=function(t){t[t["Text"]=0]="Text";t[t["WidgetBefore"]=1]="WidgetBefore";t[t["WidgetAfter"]=2]="WidgetAfter";t[t["WidgetRange"]=3]="WidgetRange";return t}(St||(St={}));class xt extends s.RangeValue{constructor(t,e,i,s){super();this.startSide=t;this.endSide=e;this.widget=i;this.spec=s}get heightRelevant(){return false}static mark(t){return new Mt(t)}static widget(t){let e=t.side||0,i=!!t.block;e+=i?e>0?3e8:-4e8:e>0?1e8:-1e8;return new Ct(t,e,e,i,t.widget||null,false)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap){i=-5e8;s=4e8}else{let{start:o,end:n}=At(t,e);i=(o?e?-3e8:-1:5e8)-1;s=(n?e?2e8:1:-6e8)+1}return new Ct(t,i,s,e,t.widget||null,true)}static line(t){return new kt(t)}static set(t,e=false){return s.RangeSet.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}xt.none=s.RangeSet.empty;class Mt extends xt{constructor(t){let{start:e,end:i}=At(t);super(e?-1:5e8,i?1:-6e8,null,t);this.tagName=t.tagName||"span";this.class=t.class||"";this.attrs=t.attributes||null}eq(t){return this==t||t instanceof Mt&&this.tagName==t.tagName&&this.class==t.class&&vt(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}Mt.prototype.point=false;class kt extends xt{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof kt&&this.spec.class==t.spec.class&&vt(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}kt.prototype.mapMode=s.MapMode.TrackBefore;kt.prototype.point=true;class Ct extends xt{constructor(t,e,i,o,n,r){super(e,i,n,t);this.block=o;this.isReplace=r;this.mapMode=!o?s.MapMode.TrackDel:e<=0?s.MapMode.TrackBefore:s.MapMode.TrackAfter}get type(){return this.startSide<this.endSide?St.WidgetRange:this.startSide<=0?St.WidgetBefore:St.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(t){return t instanceof Ct&&Dt(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}Ct.prototype.point=true;function At(t,e=false){let{inclusiveStart:i,inclusiveEnd:s}=t;if(i==null)i=t.inclusive;if(s==null)s=t.inclusive;return{start:i!==null&&i!==void 0?i:e,end:s!==null&&s!==void 0?s:e}}function Dt(t,e){return t==e||!!(t&&e&&t.compare(e))}function Tt(t,e,i,s=0){let o=i.length-1;if(o>=0&&i[o]+s>=t)i[o]=Math.max(i[o],e);else i.push(t,e)}class Ot extends z{constructor(){super(...arguments);this.children=[];this.length=0;this.prevAttrs=undefined;this.attrs=null;this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof Ot))return false;if(!this.dom)i.transferDOM(this)}if(s)this.setDeco(i?i.attrs:null);G(this,t,e,i?i.children:[],o,n);return true}split(t){let e=new Ot;e.breakAfter=this.breakAfter;if(this.length==0)return e;let{i,off:s}=this.childPos(t);if(s){e.append(this.children[i].split(s),0);this.children[i].merge(s,this.children[i].length,null,false,0,0);i++}for(let o=i;o<this.children.length;o++)e.append(this.children[o],0);while(i>0&&this.children[i-1].length==0)this.children[--i].destroy();this.children.length=i;this.markDirty();this.length=t;return e}transferDOM(t){if(!this.dom)return;this.markDirty();t.setDOM(this.dom);t.prevAttrs=this.prevAttrs===undefined?this.attrs:this.prevAttrs;this.prevAttrs=undefined;this.dom=null}setDeco(t){if(!vt(this.attrs,t)){if(this.dom){this.prevAttrs=this.attrs;this.markDirty()}this.attrs=t}}append(t,e){pt(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;if(e)this.attrs=wt(e,this.attrs||{});if(i)this.attrs=wt({class:i},this.attrs||{})}domAtPos(t){return ut(this,t)}reuseDOM(t){if(t.nodeName=="DIV"){this.setDOM(t);this.dirty|=4|2}}sync(t){var e;if(!this.dom){this.setDOM(document.createElement("div"));this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}else if(this.dirty&4){N(this.dom);this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}if(this.prevAttrs!==undefined){bt(this.dom,this.prevAttrs,this.attrs);this.dom.classList.add("cm-line");this.prevAttrs=undefined}super.sync(t);let i=this.dom.lastChild;while(i&&z.get(i)instanceof nt)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((e=z.get(i))===null||e===void 0?void 0:e.isEditable)==false&&(!it.ios||!this.children.some((t=>t instanceof ot)))){let t=document.createElement("BR");t.cmIgnore=true;this.dom.appendChild(t)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof ot)||/[^ -~]/.test(e.text))return null;let i=b(e.dom);if(i.length!=1)return null;t+=i[0].width}return!t?null:{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}}coordsAt(t,e){return mt(this,t,e)}become(t){return false}get type(){return St.Text}static find(t,e){for(let i=0,s=0;i<t.children.length;i++){let o=t.children[i],n=s+o.length;if(n>=e){if(o instanceof Ot)return o;if(n>e)break}s=n+o.breakAfter}return null}}class Et extends z{constructor(t,e,i){super();this.widget=t;this.length=e;this.type=i;this.breakAfter=0;this.prevWidget=null}merge(t,e,i,s,o,n){if(i&&(!(i instanceof Et)||!this.widget.compare(i.widget)||t>0&&o<=0||e<this.length&&n<=0))return false;this.length=t+(i?i.length:0)+(this.length-e);return true}domAtPos(t){return t==0?W.before(this.dom):W.after(this.dom,t==this.length)}split(t){let e=this.length-t;this.length=t;let i=new Et(this.widget,e,this.type);i.breakAfter=this.breakAfter;return i}get children(){return F}sync(){if(!this.dom||!this.widget.updateDOM(this.dom)){if(this.dom&&this.prevWidget)this.prevWidget.destroy(this.dom);this.prevWidget=null;this.setDOM(this.widget.toDOM(this.editorView));this.dom.contentEditable="false"}}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):s.Text.empty}domBoundsAround(){return null}become(t){if(t instanceof Et&&t.type==this.type&&t.widget.constructor==this.widget.constructor){if(!t.widget.eq(this.widget))this.markDirty(true);if(this.dom&&!this.prevWidget)this.prevWidget=this.widget;this.widget=t.widget;this.length=t.length;this.breakAfter=t.breakAfter;return true}return false}ignoreMutation(){return true}ignoreEvent(t){return this.widget.ignoreEvent(t)}destroy(){super.destroy();if(this.dom)this.widget.destroy(this.dom)}}class Rt{constructor(t,e,i,s){this.doc=t;this.pos=e;this.end=i;this.disallowBlockEffectsFor=s;this.content=[];this.curLine=null;this.breakAtStart=0;this.pendingBuffer=0;this.bufferMarks=[];this.atCursorPos=true;this.openStart=-1;this.openEnd=-1;this.text="";this.textOff=0;this.cursor=t.iter();this.skip=e}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!t.breakAfter&&!(t instanceof Et&&t.type==St.WidgetBefore)}getLine(){if(!this.curLine){this.content.push(this.curLine=new Ot);this.atCursorPos=true}return this.curLine}flushBuffer(t=this.bufferMarks){if(this.pendingBuffer){this.curLine.append(Bt(new ft(-1),t),t.length);this.pendingBuffer=0}}addBlockWidget(t){this.flushBuffer();this.curLine=null;this.content.push(t)}finish(t){if(this.pendingBuffer&&t<=this.bufferMarks.length)this.flushBuffer();else this.pendingBuffer=0;if(!this.posCovered())this.getLine()}buildText(t,e,i){while(t>0){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);this.skip=0;if(s)throw new Error("Ran out of text content when drawing inline views");if(i){if(!this.posCovered())this.getLine();if(this.content.length)this.content[this.content.length-1].breakAfter=1;else this.breakAtStart=1;this.flushBuffer();this.curLine=null;this.atCursorPos=true;t--;continue}else{this.text=e;this.textOff=0}}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i));this.getLine().append(Bt(new ot(this.text.slice(this.textOff,this.textOff+s)),e),i);this.atCursorPos=true;this.textOff+=s;t-=s;i=0}}span(t,e,i,s){this.buildText(e-t,i,s);this.pos=e;if(this.openStart<0)this.openStart=s}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof Ct){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof Ct){if(i.block){let{type:t}=i;if(t==St.WidgetAfter&&!this.posCovered())this.getLine();this.addBlockWidget(new Et(i.widget||new Lt("div"),r,t))}else{let n=lt.create(i.widget||new Lt("span"),r,r?0:i.startSide);let l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t<e||i.startSide>0);let h=!n.isEditable&&(t<e||o>s.length||i.startSide<=0);let a=this.getLine();if(this.pendingBuffer==2&&!l)this.pendingBuffer=0;this.flushBuffer(s);if(l){a.append(Bt(new ft(1),s),o);o=s.length+Math.max(0,o-s.length)}a.append(Bt(n,s),o);this.atCursorPos=h;this.pendingBuffer=!h?0:t<e||o>s.length?1:2;if(this.pendingBuffer)this.bufferMarks=s.slice()}}else if(this.doc.lineAt(this.pos).from==this.pos){this.getLine().addLineDeco(i)}if(r){if(this.textOff+r<=this.text.length){this.textOff+=r}else{this.skip+=r-(this.text.length-this.textOff);this.text="";this.textOff=0}this.pos=e}if(this.openStart<0)this.openStart=o}static build(t,e,i,o,n){let r=new Rt(t,e,i,n);r.openEnd=s.RangeSet.spans(o,e,i,r);if(r.openStart<0)r.openStart=r.openEnd;r.finish(r.openEnd);return r}}function Bt(t,e){for(let i of e)t=new nt(i,[t],t.length);return t}class Lt extends yt{constructor(t){super();this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}const Ht=s.Facet.define();const Vt=s.Facet.define();const Nt=s.Facet.define();const Pt=s.Facet.define();const Wt=s.Facet.define();const Ft=s.Facet.define();const zt=s.Facet.define({combine:t=>t.some((t=>t))});const It=s.Facet.define({combine:t=>t.some((t=>t))});class qt{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t;this.y=e;this.x=i;this.yMargin=s;this.xMargin=o}map(t){return t.empty?this:new qt(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const Kt=s.StateEffect.define({map:(t,e)=>t.map(e)});function Gt(t,e,i){let s=t.facet(Pt);if(s.length)s[0](e);else if(window.onerror)window.onerror(String(e),i,undefined,undefined,e);else if(i)console.error(i+":",e);else console.error(e)}const jt=s.Facet.define({combine:t=>t.length?t[0]:true});let $t=0;const _t=s.Facet.define();class Ut{constructor(t,e,i,s){this.id=t;this.create=e;this.domEventHandlers=i;this.extension=s(this)}static define(t,e){const{eventHandlers:i,provide:s,decorations:o}=e||{};return new Ut($t++,t,i,(t=>{let e=[_t.of(t)];if(o)e.push(Jt.of((e=>{let i=e.plugin(t);return i?o(i):xt.none})));if(s)e.push(s(t));return e}))}static fromClass(t,e){return Ut.define((e=>new t(e)),e)}}class Xt{constructor(t){this.spec=t;this.mustUpdate=null;this.value=null}update(t){if(!this.value){if(this.spec){try{this.value=this.spec.create(t)}catch(e){Gt(t.state,e,"CodeMirror plugin crashed");this.deactivate()}}}else if(this.mustUpdate){let t=this.mustUpdate;this.mustUpdate=null;if(this.value.update){try{this.value.update(t)}catch(e){Gt(t.state,e,"CodeMirror plugin crashed");if(this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}return this}destroy(t){var e;if((e=this.value)===null||e===void 0?void 0:e.destroy){try{this.value.destroy()}catch(i){Gt(t.state,i,"CodeMirror plugin crashed")}}}deactivate(){this.spec=this.value=null}}const Yt=s.Facet.define();const Qt=s.Facet.define();const Jt=s.Facet.define();const Zt=s.Facet.define();const te=s.Facet.define();const ee=s.Facet.define();class ie{constructor(t,e,i,s){this.fromA=t;this.toA=e;this.fromB=i;this.toB=s}join(t){return new ie(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(s.fromA>i.toA)continue;if(s.toA<i.fromA)break;i=i.join(s);t.splice(e-1,1)}t.splice(e,0,i);return t}static extendWithRanges(t,e){if(e.length==0)return t;let i=[];for(let s=0,o=0,n=0,r=0;;s++){let l=s==t.length?null:t[s],h=n-r;let a=l?l.fromB:1e9;while(o<e.length&&e[o]<a){let t=e[o],s=e[o+1];let n=Math.max(r,t),l=Math.min(a,s);if(n<=l)new ie(n+h,l+h,n,l).addToSet(i);if(s>a)break;else o+=2}if(!l)return i;new ie(l.fromA,l.toA,l.fromB,l.toB).addToSet(i);n=l.toA;r=l.toB}}}class se{constructor(t,e,i){this.view=t;this.state=e;this.transactions=i;this.flags=0;this.startState=t.state;this.changes=s.ChangeSet.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges(((t,e,i,s)=>o.push(new ie(t,e,i,s))));this.changedRanges=o;let n=t.hasFocus;if(n!=t.inputState.notifiedFocused){t.inputState.notifiedFocused=n;this.flags|=1}}static create(t,e,i){return new se(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&(8|2))>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return this.flags==0&&this.transactions.length==0}}var oe=function(t){t[t["LTR"]=0]="LTR";t[t["RTL"]=1]="RTL";return t}(oe||(oe={}));const ne=oe.LTR,re=oe.RTL;function le(t){let e=[];for(let i=0;i<t.length;i++)e.push(1<<+t[i]);return e}const he=le("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008");const ae=le("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");const ce=Object.create(null),fe=[];for(let Un of["()","[]","{}"]){let t=Un.charCodeAt(0),e=Un.charCodeAt(1);ce[t]=e;ce[e]=-t}function de(t){return t<=247?he[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?ae[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8203?256:64336<=t&&t<=65023?4:t==8204?256:1}const ue=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class pe{constructor(t,e,i){this.from=t;this.to=e;this.level=i}get dir(){return this.level%2?re:ne}side(t,e){return this.dir==e==t?this.to:this.from}static find(t,e,i,s){let o=-1;for(let n=0;n<t.length;n++){let r=t[n];if(r.from<=e&&r.to>=e){if(r.level==i)return n;if(o<0||(s!=0?s<0?r.from<e:r.to>e:t[o].level>r.level))o=n}}if(o<0)throw new RangeError("Index out of range");return o}}const me=[];function ge(t,e){let i=t.length,s=e==ne?1:2,o=e==ne?2:1;if(!t||s==1&&!ue.test(t))return we(i);for(let r=0,l=s,h=s;r<i;r++){let e=de(t.charCodeAt(r));if(e==512)e=l;else if(e==8&&h==4)e=16;me[r]=e==4?2:e;if(e&7)h=e;l=e}for(let r=0,l=s,h=s;r<i;r++){let t=me[r];if(t==128){if(r<i-1&&l==me[r+1]&&l&24)t=me[r]=l;else me[r]=256}else if(t==64){let t=r+1;while(t<i&&me[t]==64)t++;let e=r&&l==8||t<i&&me[t]==8?h==1?1:8:256;for(let i=r;i<t;i++)me[i]=e;r=t-1}else if(t==8&&h==1){me[r]=1}l=t;if(t&7)h=t}for(let r=0,l=0,h=0,a,c,f;r<i;r++){if(c=ce[a=t.charCodeAt(r)]){if(c<0){for(let t=l-3;t>=0;t-=3){if(fe[t+1]==-c){let e=fe[t+2];let i=e&2?s:!(e&4)?0:e&1?o:s;if(i)me[r]=me[fe[t]]=i;l=t;break}}}else if(fe.length==189){break}else{fe[l++]=r;fe[l++]=a;fe[l++]=h}}else if((f=me[r])==2||f==1){let t=f==s;h=t?0:1;for(let e=l-3;e>=0;e-=3){let i=fe[e+2];if(i&2)break;if(t){fe[e+2]|=2}else{if(i&4)break;fe[e+2]|=4}}}}for(let r=0;r<i;r++){if(me[r]==256){let t=r+1;while(t<i&&me[t]==256)t++;let e=(r?me[r-1]:s)==1;let o=(t<i?me[t]:s)==1;let n=e==o?e?1:2:s;for(let i=r;i<t;i++)me[i]=n;r=t-1}}let n=[];if(s==1){for(let t=0;t<i;){let e=t,s=me[t++]!=1;while(t<i&&s==(me[t]!=1))t++;if(s){for(let i=t;i>e;){let t=i,s=me[--i]!=2;while(i>e&&s==(me[i-1]!=2))i--;n.push(new pe(i,t,s?2:1))}}else{n.push(new pe(e,t,0))}}}else{for(let t=0;t<i;){let e=t,s=me[t++]==2;while(t<i&&s==(me[t]==2))t++;n.push(new pe(e,t,s?1:2))}}return n}function we(t){return[new pe(0,t,0)]}let ve="";function be(t,e,i,o,n){var r;let l=o.head-t.from,h=-1;if(l==0){if(!n||!t.length)return null;if(e[0].level!=i){l=e[0].side(false,i);h=0}}else if(l==t.length){if(n)return null;let t=e[e.length-1];if(t.level!=i){l=t.side(true,i);h=e.length-1}}if(h<0)h=pe.find(e,l,(r=o.bidiLevel)!==null&&r!==void 0?r:-1,o.assoc);let a=e[h];if(l==a.side(n,i)){a=e[h+=n?1:-1];l=a.side(!n,i)}let c=n==(a.dir==i);let f=(0,s.findClusterBreak)(t.text,l,c);ve=t.text.slice(Math.min(l,f),Math.max(l,f));if(f!=a.side(n,i))return s.EditorSelection.cursor(f+t.from,c?-1:1,a.level);let d=h==(n?e.length-1:0)?null:e[h+(n?1:-1)];if(!d&&a.level!=i)return s.EditorSelection.cursor(n?t.to:t.from,n?-1:1,i);if(d&&d.level<a.level)return s.EditorSelection.cursor(d.side(!n,i)+t.from,n?1:-1,d.level);return s.EditorSelection.cursor(f+t.from,n?-1:1,a.level)}const ye="";class Se{constructor(t,e){this.points=t;this.text="";this.lineSeparator=e.facet(s.EditorState.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=ye}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);this.readNode(s);let t=s.nextSibling;if(t==e)break;let o=z.get(s),n=z.get(t);if(o&&n?o.breakAfter:(o?o.breakAfter:xe(s))||xe(t)&&(s.nodeName!="BR"||s.cmIgnore))this.lineBreak();s=t}this.findPointBefore(i,e);return this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)if(i.node==t)i.pos=this.text.length+Math.min(i.offset,e.length);for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,n=1,r;if(this.lineSeparator){o=e.indexOf(this.lineSeparator,i);n=this.lineSeparator.length}else if(r=s.exec(e)){o=r.index;n=r[0].length}this.append(e.slice(i,o<0?e.length:o));if(o<0)break;this.lineBreak();if(n>1)for(let e of this.points)if(e.node==t&&e.pos>this.text.length)e.pos-=n-1;i=o+n}}readNode(t){if(t.cmIgnore)return;let e=z.get(t);let i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;){if(t.lineBreak)this.lineBreak();else this.append(t.value)}}else if(t.nodeType==3){this.readTextNode(t)}else if(t.nodeName=="BR"){if(t.nextSibling)this.lineBreak()}else if(t.nodeType==1){this.readRange(t.firstChild,null)}}findPointBefore(t,e){for(let i of this.points)if(i.node==t&&t.childNodes[i.offset]==e)i.pos=this.text.length}findPointInside(t,e){for(let i of this.points)if(t.nodeType==3?i.node==t:t.contains(i.node))i.pos=this.text.length+Math.min(e,i.offset)}}function xe(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class Me{constructor(t,e){this.node=t;this.offset=e;this.pos=-1}}class ke extends z{constructor(t){super();this.view=t;this.compositionDeco=xt.none;this.decorations=[];this.dynamicDecorationMap=[];this.minWidth=0;this.minWidthFrom=0;this.minWidthTo=0;this.impreciseAnchor=null;this.impreciseHead=null;this.forceSelection=false;this.lastUpdate=Date.now();this.setDOM(t.contentDOM);this.children=[new Ot];this.children[0].setParent(this);this.updateDeco();this.updateInner([new ie(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){let e=t.changedRanges;if(this.minWidth>0&&e.length){if(!e.every((({fromA:t,toA:e})=>e<this.minWidthFrom||t>this.minWidthTo))){this.minWidth=this.minWidthFrom=this.minWidthTo=0}else{this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1);this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)}}if(this.view.inputState.composing<0)this.compositionDeco=xt.none;else if(t.transactions.length||this.dirty)this.compositionDeco=Te(this.view,t.changes);if((it.ie||it.chrome)&&!this.compositionDeco.size&&t&&t.state.doc.lines!=t.startState.doc.lines)this.forceSelection=true;let i=this.decorations,s=this.updateDeco();let o=Le(i,s,t.changes);e=ie.extendWithRanges(e,o);if(this.dirty==0&&e.length==0){return false}else{this.updateInner(e,t.startState.doc.length);if(t.transactions.length)this.lastUpdate=Date.now();return true}}updateInner(t,e){this.view.viewState.mustMeasureContent=true;this.updateChildren(t,e);let{observer:i}=this.view;i.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px";this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=it.chrome||it.ios?{node:i.selectionRange.focusNode,written:false}:undefined;this.sync(t);this.dirty=0;if(t&&(t.written||i.selectionRange.focusNode!=t.node))this.forceSelection=true;this.dom.style.height=""}));let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)if(o instanceof Et&&o.widget instanceof Ae)s.push(o.dom);i.updateGaps(s)}updateChildren(t,e){let i=this.childCursor(e);for(let s=t.length-1;;s--){let e=s>=0?t[s]:null;if(!e)break;let{fromA:o,toA:n,fromB:r,toB:l}=e;let{content:h,breakAtStart:a,openStart:c,openEnd:f}=Rt.build(this.view.state.doc,r,l,this.decorations,this.dynamicDecorationMap);let{i:d,off:u}=i.findPos(n,1);let{i:p,off:m}=i.findPos(o,-1);K(this,p,m,d,u,h,a,c,f)}}updateSelection(t=false,e=false){if(t||!this.view.observer.selectionRange.focusNode)this.view.observer.readSelectionRange();if(!(e||this.mayControlSelection()))return;let i=this.forceSelection;this.forceSelection=false;let s=this.view.state.selection.main;let o=this.domAtPos(s.anchor);let n=s.empty?o:this.domAtPos(s.head);if(it.gecko&&s.empty&&Ce(o)){let t=document.createTextNode("");this.view.observer.ignore((()=>o.node.insertBefore(t,o.node.childNodes[o.offset]||null)));o=n=new W(t,0);i=true}let r=this.view.observer.selectionRange;if(i||!r.focusNode||!y(o.node,o.offset,r.anchorNode,r.anchorOffset)||!y(n.node,n.offset,r.focusNode,r.focusOffset)){this.view.observer.ignore((()=>{if(it.android&&it.chrome&&this.dom.contains(r.focusNode)&&He(r.focusNode,this.dom)){this.dom.blur();this.dom.focus({preventScroll:true})}let t=m(this.view.root);if(!t);else if(s.empty){if(it.gecko){let t=Re(o.node,o.offset);if(t&&t!=(1|2)){let e=Ee(o.node,o.offset,t==1?1:-1);if(e)o=new W(e,t==1?0:e.nodeValue.length)}}t.collapse(o.node,o.offset);if(s.bidiLevel!=null&&r.cursorBidiLevel!=null)r.cursorBidiLevel=s.bidiLevel}else if(t.extend){t.collapse(o.node,o.offset);try{t.extend(n.node,n.offset)}catch(e){}}else{let e=document.createRange();if(s.anchor>s.head)[o,n]=[n,o];e.setEnd(n.node,n.offset);e.setStart(o.node,o.offset);t.removeAllRanges();t.addRange(e)}}));this.view.observer.setSelectionRange(o,n)}this.impreciseAnchor=o.precise?null:new W(r.anchorNode,r.anchorOffset);this.impreciseHead=n.precise?null:new W(r.focusNode,r.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main;let i=m(t.root);let{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=Ot.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset);i.modify("move",e.assoc<0?"forward":"backward","lineboundary");t.observer.readSelectionRange();let c=t.observer.selectionRange;if(t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from)i.collapse(s,o)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||v(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let t=z.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e<this.children.length-1;){let t=this.children[e];if(i<t.length||t instanceof Ot)break;e++;i=0}return this.children[e].domAtPos(i)}coordsAt(t,e){for(let i=this.length,s=this.children.length-1;;s--){let o=this.children[s],n=i-o.breakAfter-o.length;if(t>n||t==n&&o.type!=St.WidgetBefore&&o.type!=St.WidgetAfter&&(!s||e==2||this.children[s-1].breakAfter||this.children[s-1].type==St.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t;let o=this.view.contentDOM.clientWidth;let n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1;let r=-1,l=this.view.textDirection==oe.LTR;for(let h=0,a=0;a<this.children.length;a++){let t=this.children[a],c=h+t.length;if(c>s)break;if(h>=i){let i=t.dom.getBoundingClientRect();e.push(i.height);if(n){let e=t.dom.lastChild;let s=e?b(e):[];if(s.length){let t=s[s.length-1];let e=l?t.right-i.left:i.right-t.left;if(e>r){r=e;this.minWidth=o;this.minWidthFrom=h;this.minWidthTo=c}}}}h=c+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?oe.RTL:oe.LTR}measureTextSize(){for(let s of this.children){if(s instanceof Ot){let t=s.measureTextSize();if(t)return t}}let t=document.createElement("div"),e,i;t.className="cm-line";t.style.width="99999px";t.textContent="abc def ghi jkl mno pqr stu";this.view.observer.ignore((()=>{this.dom.appendChild(t);let s=b(t.firstChild)[0];e=t.getBoundingClientRect().height;i=s?s.width/27:7;t.remove()}));return{lineHeight:e,charWidth:i}}childCursor(t=this.length){let e=this.children.length;if(e)t-=this.children[--e].length;return new q(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s];let n=o?o.from-1:this.length;if(n>i){let s=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(xt.replace({widget:new Ae(s),block:true,inclusive:true,isBlockGap:true}).range(i,n))}if(!o)break;i=o.to+1}return xt.set(t)}updateDeco(){let t=this.view.state.facet(Jt).map(((t,e)=>{let i=this.dynamicDecorationMap[e]=typeof t=="function";return i?t(this.view):t}));for(let e=t.length;e<t.length+3;e++)this.dynamicDecorationMap[e]=false;return this.decorations=[...t,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){let{range:e}=t;let i=this.coordsAt(e.head,e.empty?e.assoc:e.head>e.anchor?-1:1),s;if(!i)return;if(!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1)))i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)};let o=0,n=0,r=0,l=0;for(let a of this.view.state.facet(te).map((t=>t(this.view))))if(a){let{left:t,right:e,top:i,bottom:s}=a;if(t!=null)o=Math.max(o,t);if(e!=null)n=Math.max(n,e);if(i!=null)r=Math.max(r,i);if(s!=null)l=Math.max(l,s)}let h={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};D(this.view.scrollDOM,h,e.head<e.anchor?-1:1,t.x,t.y,t.xMargin,t.yMargin,this.view.textDirection==oe.LTR)}}function Ce(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class Ae extends yt{constructor(t){super();this.height=t}toDOM(){let t=document.createElement("div");this.updateDOM(t);return t}eq(t){return t.height==this.height}updateDOM(t){t.style.height=this.height+"px";return true}get estimatedHeight(){return this.height}}function De(t){let e=t.observer.selectionRange;let i=e.focusNode&&Ee(e.focusNode,e.focusOffset,0);if(!i)return null;let s=t.docView.nearest(i);if(!s)return null;if(s instanceof Ot){let t=i;while(t.parentNode!=s.dom)t=t.parentNode;let e=t.previousSibling;while(e&&!z.get(e))e=e.previousSibling;let o=e?z.get(e).posAtEnd:s.posAtStart;return{from:o,to:o,node:t,text:i}}else{for(;;){let{parent:t}=s;if(!t)return null;if(t instanceof Ot)break;s=t}let t=s.posAtStart;return{from:t,to:t+s.length,node:s.dom,text:i}}}function Te(t,e){let i=De(t);if(!i)return xt.none;let{from:s,to:o,node:n,text:r}=i;let l=e.mapPos(s,1),h=Math.max(l,e.mapPos(o,-1));let{state:a}=t,c=n.nodeType==3?n.nodeValue:new Se([],a).readRange(n.firstChild,null).text;if(h-l<c.length){if(a.doc.sliceString(l,Math.min(a.doc.length,l+c.length),ye)==c)h=l+c.length;else if(a.doc.sliceString(Math.max(0,h-c.length),h,ye)==c)l=h-c.length;else return xt.none}else if(a.doc.sliceString(l,h,ye)!=c){return xt.none}let f=z.get(n);if(f instanceof ht)f=f.widget.topView;else if(f)f.parent=null;return xt.set(xt.replace({widget:new Oe(n,r,f),inclusive:true}).range(l,h))}class Oe extends yt{constructor(t,e,i){super();this.top=t;this.text=e;this.topView=i}eq(t){return this.top==t.top&&this.text==t.text}toDOM(){return this.top}ignoreEvent(){return false}get customView(){return ht}}function Ee(t,e,i){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0&&i<=0){t=t.childNodes[e-1];e=M(t)}else if(t.nodeType==1&&e<t.childNodes.length&&i>=0){t=t.childNodes[e];e=0}else{return null}}}function Re(t,e){if(t.nodeType!=1)return 0;return(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}class Be{constructor(){this.changes=[]}compareRange(t,e){Tt(t,e,this.changes)}comparePoint(t,e){Tt(t,e,this.changes)}}function Le(t,e,i){let o=new Be;s.RangeSet.compare(t,e,i,o);return o.changes}function He(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode){if(i.nodeType==1&&i.contentEditable=="false"){return true}}return false}function Ve(t,e,i=1){let o=t.charCategorizer(e);let n=t.doc.lineAt(e),r=e-n.from;if(n.length==0)return s.EditorSelection.cursor(e);if(r==0)i=1;else if(r==n.length)i=-1;let l=r,h=r;if(i<0)l=(0,s.findClusterBreak)(n.text,r,false);else h=(0,s.findClusterBreak)(n.text,r);let a=o(n.text.slice(l,h));while(l>0){let t=(0,s.findClusterBreak)(n.text,l,false);if(o(n.text.slice(t,l))!=a)break;l=t}while(h<n.length){let t=(0,s.findClusterBreak)(n.text,h);if(o(n.text.slice(h,t))!=a)break;h=t}return s.EditorSelection.range(l+n.from,h+n.from)}function Ne(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function Pe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function We(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function Fe(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function ze(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ie(t,e,i){let s,o,n,r,l=false;let h,a,c,f;for(let p=t.firstChild;p;p=p.nextSibling){let t=b(p);for(let d=0;d<t.length;d++){let u=t[d];if(o&&We(o,u))u=Fe(ze(u,o.bottom),o.top);let m=Ne(e,u),g=Pe(i,u);if(m==0&&g==0)return p.nodeType==3?qe(p,e,i):Ie(p,e,i);if(!s||r>g||r==g&&n>m){s=p;o=u;n=m;r=g;let h=g?i<u.top?-1:1:m?e<u.left?-1:1:0;l=!h||(h>0?d<t.length-1:d>0)}if(m==0){if(i>u.bottom&&(!c||c.bottom<u.bottom)){h=p;c=u}else if(i<u.top&&(!f||f.top>u.top)){a=p;f=u}}else if(c&&We(c,u)){c=ze(c,u.bottom)}else if(f&&We(f,u)){f=Fe(f,u.top)}}}if(c&&c.bottom>=i){s=h;o=c}else if(f&&f.top<=i){s=a;o=f}if(!s)return{node:t,offset:0};let d=Math.max(o.left,Math.min(o.right,e));if(s.nodeType==3)return qe(s,d,i);if(l&&s.contentEditable!="false")return Ie(s,d,i);let u=Array.prototype.indexOf.call(t.childNodes,s)+(e>=(o.left+o.right)/2?1:0);return{node:t,offset:u}}function qe(t,e,i){let s=t.nodeValue.length;let o=-1,n=1e9,r=0;for(let l=0;l<s;l++){let s=L(t,l,l+1).getClientRects();for(let h=0;h<s.length;h++){let a=s[h];if(a.top==a.bottom)continue;if(!r)r=e-a.left;let c=(a.top>i?a.top-i:i-a.bottom)-1;if(a.left-1<=e&&a.right+1>=e&&c<n){let i=e>=(a.left+a.right)/2,s=i;if(it.chrome||it.gecko){let e=L(t,l).getBoundingClientRect();if(e.left==a.right)s=!i}if(c<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0);n=c}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function Ke(t,{x:e,y:i},s,o=-1){var n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop;let h,{docHeight:a}=t.viewState;let c=i-l;if(c<0)return 0;if(c>a)return t.state.doc.length;for(let w=t.defaultLineHeight/2,v=false;;){h=t.elementAtHeight(c);if(h.type==St.Text)break;for(;;){c=o>0?h.bottom+w:h.top-w;if(c>=0&&c<=a)break;if(v)return s?null:0;v=true;o=-o}}i=l+c;let f=h.from;if(f<t.viewport.from)return t.viewport.from==0?0:s?null:Ge(t,r,h,e,i);if(f>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:s?null:Ge(t,r,h,e,i);let d=t.dom.ownerDocument;let u=t.root.elementFromPoint?t.root:d;let p=u.elementFromPoint(e,i);if(p&&!t.contentDOM.contains(p))p=null;if(!p){e=Math.max(r.left+1,Math.min(r.right-1,e));p=u.elementFromPoint(e,i);if(p&&!t.contentDOM.contains(p))p=null}let m,g=-1;if(p&&((n=t.docView.nearest(p))===null||n===void 0?void 0:n.isEditable)!=false){if(d.caretPositionFromPoint){let t=d.caretPositionFromPoint(e,i);if(t)({offsetNode:m,offset:g}=t)}else if(d.caretRangeFromPoint){let s=d.caretRangeFromPoint(e,i);if(s){({startContainer:m,startOffset:g}=s);if(!t.contentDOM.contains(m)||it.safari&&je(m,g,e)||it.chrome&&$e(m,g,e))m=undefined}}}if(!m||!t.docView.dom.contains(m)){let s=Ot.find(t.docView,f);if(!s)return c>h.top+h.height/2?h.to:h.from;({node:m,offset:g}=Ie(s.dom,e,i))}return t.docView.posFromDOM(m,g)}function Ge(t,e,i,o,n){let r=Math.round((o-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&i.height>t.defaultLineHeight*1.5){let e=Math.floor((n-i.top)/t.defaultLineHeight);r+=e*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(i.from,i.to);return i.from+(0,s.findColumn)(l,r,t.state.tabSize)}function je(t,e,i){let s;if(t.nodeType!=3||e!=(s=t.nodeValue.length))return false;for(let o=t.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return false;return L(t,s-1,s).getBoundingClientRect().left>i}function $e(t,e,i){if(e!=0)return false;for(let o=t;;){let t=o.parentNode;if(!t||t.nodeType!=1||t.firstChild!=o)return false;if(t.classList.contains("cm-line"))break;o=t}let s=t.nodeType==1?t.getBoundingClientRect():L(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-s.left>5}function _e(t,e,i,o){let n=t.state.doc.lineAt(e.head);let r=!o||!t.lineWrapping?null:t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let e=t.dom.getBoundingClientRect();let o=t.textDirectionAt(n.from);let l=t.posAtCoords({x:i==(o==oe.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(l!=null)return s.EditorSelection.cursor(l,i?-1:1)}let l=Ot.find(t.docView,e.head);let h=l?i?l.posAtEnd:l.posAtStart:i?n.to:n.from;return s.EditorSelection.cursor(h,i?-1:1)}function Ue(t,e,i,o){let n=t.state.doc.lineAt(e.head),r=t.bidiSpans(n);let l=t.textDirectionAt(n.from);for(let h=e,a=null;;){let e=be(n,r,l,h,i),c=ve;if(!e){if(n.number==(i?t.state.doc.lines:1))return h;c="\n";n=t.state.doc.line(n.number+(i?1:-1));r=t.bidiSpans(n);e=s.EditorSelection.cursor(i?n.from:n.to)}if(!a){if(!o)return e;a=o(c)}else if(!a(c)){return h}h=e}}function Xe(t,e,i){let o=t.state.charCategorizer(e);let n=o(i);return t=>{let e=o(t);if(n==s.CharCategory.Space)n=e;return n==e}}function Ye(t,e,i,o){let n=e.head,r=i?1:-1;if(n==(i?t.state.doc.length:0))return s.EditorSelection.cursor(n,e.assoc);let l=e.goalColumn,h;let a=t.contentDOM.getBoundingClientRect();let c=t.coordsAtPos(n),f=t.documentTop;if(c){if(l==null)l=c.left-a.left;h=r<0?c.top:c.bottom}else{let e=t.viewState.lineBlockAt(n);if(l==null)l=Math.min(a.right-a.left,t.defaultCharacterWidth*(n-e.from));h=(r<0?e.top:e.bottom)+f}let d=a.left+l;let u=o!==null&&o!==void 0?o:t.defaultLineHeight>>1;for(let p=0;;p+=10){let i=h+(u+p)*r;let o=Ke(t,{x:d,y:i},false,r);if(i<a.top||i>a.bottom||(r<0?o<n:o>n))return s.EditorSelection.cursor(o,e.assoc,undefined,l)}}function Qe(t,e,i){let o=t.state.facet(Zt).map((e=>e(t)));for(;;){let t=false;for(let n of o){n.between(i.from-1,i.from+1,((o,n,r)=>{if(i.from>o&&i.from<n){i=e.head>i.from?s.EditorSelection.cursor(o,1):s.EditorSelection.cursor(n,-1);t=true}}))}if(!t)return i}}class Je{constructor(t){this.lastKeyCode=0;this.lastKeyTime=0;this.lastTouchTime=0;this.lastFocusTime=0;this.lastScrollTop=0;this.lastScrollLeft=0;this.chromeScrollHack=-1;this.pendingIOSKey=undefined;this.lastSelectionOrigin=null;this.lastSelectionTime=0;this.lastEscPress=0;this.lastContextMenu=0;this.scrollHandlers=[];this.registeredEvents=[];this.customHandlers=[];this.composing=-1;this.compositionFirstChange=null;this.compositionEndedAt=0;this.mouseSelection=null;let e=(e,i)=>{if(this.ignoreDuringComposition(i))return;if(i.type=="keydown"&&this.keydown(t,i))return;if(this.mustFlushObserver(i))t.observer.forceFlush();if(this.runCustomHandlers(i.type,t,i))i.preventDefault();else e(t,i)};for(let i in hi){let s=hi[i];t.contentDOM.addEventListener(i,(i=>{if(li(t,i))e(s,i)}),ai[i]);this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",(i=>{if(i.target==t.scrollDOM)e(hi.mousedown,i)}));if(it.chrome&&it.chrome_version==102){t.scrollDOM.addEventListener("wheel",(()=>{if(this.chromeScrollHack<0)t.contentDOM.style.pointerEvents="none";else window.clearTimeout(this.chromeScrollHack);this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1;t.contentDOM.style.pointerEvents=""}),100)}),{passive:true})}this.notifiedFocused=t.hasFocus;if(it.safari)t.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(t){this.lastSelectionOrigin=t;this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;this.customHandlers=[];for(let o of e)if(s=(i=o.update(t).spec)===null||i===void 0?void 0:i.domEventHandlers){this.customHandlers.push({plugin:o.value,handlers:s});for(let e in s)if(this.registeredEvents.indexOf(e)<0&&e!="scroll"){this.registeredEvents.push(e);t.contentDOM.addEventListener(e,(i=>{if(!li(t,i))return;if(this.runCustomHandlers(e,t,i))i.preventDefault()}))}}}runCustomHandlers(t,e,i){for(let o of this.customHandlers){let n=o.handlers[t];if(n){try{if(n.call(o.plugin,i,e)||i.defaultPrevented)return true}catch(s){Gt(e.state,s)}}}return false}runScrollHandlers(t,e){this.lastScrollTop=t.scrollDOM.scrollTop;this.lastScrollLeft=t.scrollDOM.scrollLeft;for(let s of this.customHandlers){let o=s.handlers.scroll;if(o){try{o.call(s.plugin,e,t)}catch(i){Gt(t.state,i)}}}}keydown(t,e){this.lastKeyCode=e.keyCode;this.lastKeyTime=Date.now();if(e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return true;if(it.android&&it.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8)){t.observer.delayAndroidKey(e.key,e.keyCode);return true}let i;if(it.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((i=Ze.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||ti.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)){this.pendingIOSKey=i||e;setTimeout((()=>this.flushIOSKey(t)),250);return true}return false}flushIOSKey(t){let e=this.pendingIOSKey;if(!e)return false;this.pendingIOSKey=undefined;return H(t.contentDOM,e.key,e.keyCode)}ignoreDuringComposition(t){if(!/^key/.test(t.type))return false;if(this.composing>0)return true;if(it.safari&&!it.ios&&Date.now()-this.compositionEndedAt<100){this.compositionEndedAt=0;return true}return false}mustFlushObserver(t){return t.type=="keydown"&&t.keyCode!=229}startMouseSelection(t){if(this.mouseSelection)this.mouseSelection.destroy();this.mouseSelection=t}update(t){if(this.mouseSelection)this.mouseSelection.update(t);if(t.transactions.length)this.lastKeyCode=this.lastSelectionTime=0}destroy(){if(this.mouseSelection)this.mouseSelection.destroy()}}const Ze=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}];const ti="dthko";const ei=[16,17,18,20,91,92,224,225];function ii(t){return t*.7+8}class si{constructor(t,e,i,o){this.view=t;this.style=i;this.mustSelect=o;this.scrollSpeed={x:0,y:0};this.scrolling=-1;this.lastEvent=e;this.scrollParent=T(t.contentDOM);let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this));n.addEventListener("mouseup",this.up=this.up.bind(this));this.extend=e.shiftKey;this.multiple=t.state.facet(s.EditorState.allowMultipleSelections)&&oi(t,e);this.dragMove=ni(t,e);this.dragging=ri(t,e)&&xi(e)==1?null:false;if(this.dragging===false){e.preventDefault();this.select(e)}}move(t){var e;if(t.buttons==0)return this.destroy();if(this.dragging!==false)return;this.select(this.lastEvent=t);let i=0,s=0;let o=((e=this.scrollParent)===null||e===void 0?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};if(t.clientX<=o.left)i=-ii(o.left-t.clientX);else if(t.clientX>=o.right)i=ii(t.clientX-o.right);if(t.clientY<=o.top)s=-ii(o.top-t.clientY);else if(t.clientY>=o.bottom)s=ii(t.clientY-o.bottom);this.setScrollSpeed(i,s)}up(t){if(this.dragging==null)this.select(this.lastEvent);if(!this.dragging)t.preventDefault();this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move);t.removeEventListener("mouseup",this.up);this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e};if(t||e){if(this.scrolling<0)this.scrolling=setInterval((()=>this.scroll()),50)}else if(this.scrolling>-1){clearInterval(this.scrolling);this.scrolling=-1}}scroll(){if(this.scrollParent){this.scrollParent.scrollLeft+=this.scrollSpeed.x;this.scrollParent.scrollTop+=this.scrollSpeed.y}else{this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y)}if(this.dragging===false)this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);if(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)this.view.dispatch({selection:e,userEvent:"select.pointer"});this.mustSelect=false}update(t){if(t.docChanged&&this.dragging)this.dragging=this.dragging.map(t.changes);if(this.style.update(t))setTimeout((()=>this.select(this.lastEvent)),20)}}function oi(t,e){let i=t.state.facet(Ht);return i.length?i[0](e):it.mac?e.metaKey:e.ctrlKey}function ni(t,e){let i=t.state.facet(Vt);return i.length?i[0](e):it.mac?!e.altKey:!e.ctrlKey}function ri(t,e){let{main:i}=t.state.selection;if(i.empty)return false;let s=m(t.root);if(!s||s.rangeCount==0)return true;let o=s.getRangeAt(0).getClientRects();for(let n=0;n<o.length;n++){let t=o[n];if(t.left<=e.clientX&&t.right>=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return true}return false}function li(t,e){if(!e.bubbles)return true;if(e.defaultPrevented)return false;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(s=z.get(i))&&s.ignoreEvent(e))return false;return true}const hi=Object.create(null);const ai=Object.create(null);const ci=it.ie&&it.ie_version<15||it.ios&&it.webkit_version<604;function fi(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px";i.focus();setTimeout((()=>{t.focus();i.remove();di(t,i.value)}),50)}function di(t,e){let{state:i}=t,o,n=1,r=i.toText(e);let l=r.lines==i.selection.ranges.length;let h=Ti!=null&&i.selection.ranges.every((t=>t.empty))&&Ti==r.toString();if(h){let t=-1;o=i.changeByRange((o=>{let h=i.doc.lineAt(o.from);if(h.from==t)return{range:o};t=h.from;let a=i.toText((l?r.line(n++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:a},range:s.EditorSelection.cursor(o.from+a.length)}}))}else if(l){o=i.changeByRange((t=>{let e=r.line(n++);return{changes:{from:t.from,to:t.to,insert:e.text},range:s.EditorSelection.cursor(t.from+e.length)}}))}else{o=i.replaceSelection(r)}t.dispatch(o,{userEvent:"input.paste",scrollIntoView:true})}hi.keydown=(t,e)=>{t.inputState.setSelectionOrigin("select");if(e.keyCode==27)t.inputState.lastEscPress=Date.now();else if(ei.indexOf(e.keyCode)<0)t.inputState.lastEscPress=0};hi.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now();t.inputState.setSelectionOrigin("select.pointer")};hi.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};ai.touchstart=ai.touchmove={passive:true};hi.mousedown=(t,e)=>{t.observer.flush();if(t.inputState.lastTouchTime>Date.now()-2e3)return;let i=null;for(let s of t.state.facet(Nt)){i=s(t,e);if(i)break}if(!i&&e.button==0)i=Mi(t,e);if(i){let s=t.root.activeElement!=t.contentDOM;if(s)t.observer.ignore((()=>R(t.contentDOM)));t.inputState.startMouseSelection(new si(t,e,i,s))}};function ui(t,e,i,o){if(o==1){return s.EditorSelection.cursor(e,i)}else if(o==2){return Ve(t.state,e,i)}else{let i=Ot.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e);let n=i?i.posAtStart:o.from,r=i?i.posAtEnd:o.to;if(r<t.state.doc.length&&r==o.to)r++;return s.EditorSelection.range(n,r)}}let pi=(t,e)=>t>=e.top&&t<=e.bottom;let mi=(t,e,i)=>pi(e,i)&&t>=i.left&&t<=i.right;function gi(t,e,i,s){let o=Ot.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(n==0)return 1;if(n==o.length)return-1;let r=o.coordsAt(n,-1);if(r&&mi(i,s,r))return-1;let l=o.coordsAt(n,1);if(l&&mi(i,s,l))return 1;return r&&pi(s,r)?-1:1}function wi(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);return{pos:i,bias:gi(t,i,e.clientX,e.clientY)}}const vi=it.ie&&it.ie_version<=11;let bi=null,yi=0,Si=0;function xi(t){if(!vi)return t.detail;let e=bi,i=Si;bi=t;Si=Date.now();return yi=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(yi+1)%3:1}function Mi(t,e){let i=wi(t,e),o=xi(e);let n=t.state.selection;return{update(t){if(t.docChanged){i.pos=t.changes.mapPos(i.pos);n=n.map(t.changes)}},get(e,r,l){let h=wi(t,e);let a=ui(t,h.pos,h.bias,o);if(i.pos!=h.pos&&!r){let e=ui(t,i.pos,i.bias,o);let n=Math.min(e.from,a.from),r=Math.max(e.to,a.to);a=n<a.from?s.EditorSelection.range(n,r):s.EditorSelection.range(r,n)}if(r)return n.replaceRange(n.main.extend(a.from,a.to));else if(l&&n.ranges.length>1&&n.ranges.some((t=>t.eq(a))))return ki(n,a);else if(l)return n.addRange(a);else return s.EditorSelection.create([a])}}}function ki(t,e){for(let i=0;;i++){if(t.ranges[i].eq(e))return s.EditorSelection.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}}hi.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;let{mouseSelection:s}=t.inputState;if(s)s.dragging=i;if(e.dataTransfer){e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to));e.dataTransfer.effectAllowed="copyMove"}};function Ci(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},false);e.preventDefault();let{mouseSelection:n}=t.inputState;let r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null;let l={from:o,insert:i};let h=t.state.changes(r?[r,l]:l);t.focus();t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}hi.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0;let n=()=>{if(++o==i.length)Ci(t,e,s.filter((t=>t!=null)).join(t.state.lineBreak),false)};for(let t=0;t<i.length;t++){let e=new FileReader;e.onerror=n;e.onload=()=>{if(!/[\x00-\x08\x0e-\x1f]{2}/.test(e.result))s[t]=e.result;n()};e.readAsText(i[t])}}else{Ci(t,e,e.dataTransfer.getData("Text"),true)}};hi.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=ci?null:e.clipboardData;if(i){di(t,i.getData("text/plain"));e.preventDefault()}else{fi(t)}};function Ai(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px";s.value=e;s.focus();s.selectionEnd=e.length;s.selectionStart=0;setTimeout((()=>{s.remove();t.focus()}),50)}function Di(t){let e=[],i=[],s=false;for(let o of t.selection.ranges)if(!o.empty){e.push(t.sliceDoc(o.from,o.to));i.push(o)}if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);if(n.number>o){e.push(n.text);i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})}o=n.number}s=true}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}let Ti=null;hi.copy=hi.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=Di(t.state);if(!i&&!o)return;Ti=o?i:null;let n=ci?null:e.clipboardData;if(n){e.preventDefault();n.clearData();n.setData("text/plain",i)}else{Ai(t,i)}if(e.type=="cut"&&!t.state.readOnly)t.dispatch({changes:s,scrollIntoView:true,userEvent:"delete.cut"})};function Oi(t){setTimeout((()=>{if(t.hasFocus!=t.inputState.notifiedFocused)t.update([])}),10)}hi.focus=t=>{t.inputState.lastFocusTime=Date.now();if(!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)){t.scrollDOM.scrollTop=t.inputState.lastScrollTop;t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft}Oi(t)};hi.blur=t=>{t.observer.clearSelectionRange();Oi(t)};hi.compositionstart=hi.compositionupdate=t=>{if(t.inputState.compositionFirstChange==null)t.inputState.compositionFirstChange=true;if(t.inputState.composing<0){t.inputState.composing=0}};hi.compositionend=t=>{t.inputState.composing=-1;t.inputState.compositionEndedAt=Date.now();t.inputState.compositionFirstChange=null;if(it.chrome&&it.android)t.observer.flushSoon();setTimeout((()=>{if(t.inputState.composing<0&&t.docView.compositionDeco.size)t.update([])}),50)};hi.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};hi.beforeinput=(t,e)=>{var i;let s;if(it.chrome&&it.android&&(s=Ze.find((t=>t.inputType==e.inputType)))){t.observer.delayAndroidKey(s.key,s.keyCode);if(s.key=="Backspace"||s.key=="Delete"){let e=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout((()=>{var i;if((((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>e+10&&t.hasFocus){t.contentDOM.blur();t.focus()}}),100)}}};const Ei=["pre-wrap","normal","pre-line","break-spaces"];class Ri{constructor(t){this.lineWrapping=t;this.doc=s.Text.empty;this.heightSamples={};this.lineHeight=14;this.charWidth=7;this.lineLength=30;this.heightChanged=false}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;if(this.lineWrapping)i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength);return this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;let e=1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5)));return e*this.lineHeight}setDoc(t){this.doc=t;return this}mustRefreshForWrapping(t){return Ei.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=false;for(let i=0;i<t.length;i++){let s=t[i];if(s<0){i++}else if(!this.heightSamples[Math.floor(s*10)]){e=true;this.heightSamples[Math.floor(s*10)]=true}}return e}refresh(t,e,i,s,o){let n=Ei.indexOf(t)>-1;let r=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=n;this.lineWrapping=n;this.lineHeight=e;this.charWidth=i;this.lineLength=s;if(r){this.heightSamples={};for(let t=0;t<o.length;t++){let e=o[t];if(e<0)t++;else this.heightSamples[Math.floor(e*10)]=true}}return r}}class Bi{constructor(t,e){this.from=t;this.heights=e;this.index=0}get more(){return this.index<this.heights.length}}class Li{constructor(t,e,i,s,o){this.from=t;this.length=e;this.top=i;this.height=s;this.type=o}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(t){let e=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(t.type)?t.type:[t]);return new Li(this.from,this.length+t.length,this.top,this.height+t.height,e)}}var Hi=function(t){t[t["ByPos"]=0]="ByPos";t[t["ByHeight"]=1]="ByHeight";t[t["ByPosNoHeight"]=2]="ByPosNoHeight";return t}(Hi||(Hi={}));const Vi=.001;class Ni{constructor(t,e,i=2){this.length=t;this.height=e;this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&~2}setHeight(t,e){if(this.height!=e){if(Math.abs(this.height-e)>Vi)t.heightChanged=true;this.height=e}}replace(t,e,i){return Ni.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this;for(let n=s.length-1;n>=0;n--){let{fromA:r,toA:l,fromB:h,toB:a}=s[n];let c=o.lineAt(r,Hi.ByPosNoHeight,e,0,0);let f=c.to>=l?c:o.lineAt(l,Hi.ByPosNoHeight,e,0,0);a+=f.to-l;l=f.to;while(n>0&&c.from<=s[n-1].toA){r=s[n-1].fromA;h=s[n-1].fromB;n--;if(r<c.from)c=o.lineAt(r,Hi.ByPosNoHeight,e,0,0)}h+=c.from-r;r=c.from;let d=Ki.build(i,t,h,a);o=o.replace(r,l,d)}return o.updateHeight(i,0)}static empty(){return new Wi(0,0)}static of(t){if(t.length==1)return t[0];let e=0,i=t.length,s=0,o=0;for(;;){if(e==i){if(s>o*2){let o=t[e-1];if(o.break)t.splice(--e,1,o.left,null,o.right);else t.splice(--e,1,o.left,o.right);i+=1+o.break;s-=o.size}else if(o>s*2){let e=t[i];if(e.break)t.splice(i,1,e.left,null,e.right);else t.splice(i,1,e.left,e.right);i+=2+e.break;o-=e.size}else{break}}else if(s<o){let i=t[e++];if(i)s+=i.size}else{let e=t[--i];if(e)o+=e.size}}let n=0;if(t[e-1]==null){n=1;e--}else if(t[e]==null){n=1;i++}return new zi(Ni.of(t.slice(0,e)),n,Ni.of(t.slice(i)))}}Ni.prototype.size=1;class Pi extends Ni{constructor(t,e,i){super(t,e);this.type=i}blockAt(t,e,i,s){return new Li(s,this.length,i,this.height,this.type)}lineAt(t,e,i,s,o){return this.blockAt(0,i,s,o)}forEachLine(t,e,i,s,o,n){if(t<=o+this.length&&e>=o)n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(t,s.heights[s.index++]);this.outdated=false;return this}toString(){return`block(${this.length})`}}class Wi extends Pi{constructor(t,e){super(t,e,St.Text);this.collapsed=0;this.widgetHeight=0}replace(t,e,i){let s=i[0];if(i.length==1&&(s instanceof Wi||s instanceof Fi&&s.flags&4)&&Math.abs(this.length-s.length)<10){if(s instanceof Fi)s=new Wi(s.length,this.height);else s.height=this.height;if(!this.outdated)s.outdated=false;return s}else{return Ni.of(i)}}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(t,s.heights[s.index++]);else if(i||this.outdated)this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed)));this.outdated=false;return this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Fi extends Ni{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,s=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:s,lineHeight:this.height/(s-i+1)}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,lineHeight:r}=this.lines(e,s);let l=Math.max(0,Math.min(n-o,Math.floor((t-i)/r)));let{from:h,length:a}=e.line(o+l);return new Li(h,a,i+r*l,r,St.Text)}lineAt(t,e,i,s,o){if(e==Hi.ByHeight)return this.blockAt(t,i,s,o);if(e==Hi.ByPosNoHeight){let{from:e,to:s}=i.lineAt(t);return new Li(e,s-e,0,0,St.Text)}let{firstLine:n,lineHeight:r}=this.lines(i,o);let{from:l,length:h,number:a}=i.lineAt(t);return new Li(l,h,s+r*(a-n),r,St.Text)}forEachLine(t,e,i,s,o,n){let{firstLine:r,lineHeight:l}=this.lines(i,o);for(let h=Math.max(t,o),a=Math.min(o+this.length,e);h<=a;){let e=i.lineAt(h);if(h==t)s+=l*(e.number-r);n(new Li(e.from,e.length,s,l,St.Text));s+=l;h=e.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let t=i[i.length-1];if(t instanceof Fi)i[i.length-1]=new Fi(t.length+s);else i.push(null,new Fi(s-1))}if(t>0){let e=i[0];if(e instanceof Fi)i[0]=new Fi(t+e.length);else i.unshift(new Fi(t-1),null)}return Ni.of(i)}decomposeLeft(t,e){e.push(new Fi(t-1),null)}decomposeRight(t,e){e.push(null,new Fi(this.length-t-1))}updateHeight(t,e=0,i=false,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;let l=t.heightChanged;if(s.from>e)i.push(new Fi(s.from-e-1).updateHeight(t,e));while(n<=o&&s.more){let e=t.doc.lineAt(n).length;if(i.length)i.push(null);let o=s.heights[s.index++];if(r==-1)r=o;else if(Math.abs(o-r)>=Vi)r=-2;let l=new Wi(e,o);l.outdated=false;i.push(l);n+=e+1}if(n<=o)i.push(null,new Fi(o-n).updateHeight(t,n));let h=Ni.of(i);t.heightChanged=l||r<0||Math.abs(h.height-this.height)>=Vi||Math.abs(r-this.lines(t.doc,e).lineHeight)>=Vi;return h}else if(i||this.outdated){this.setHeight(t,t.heightForGap(e,e+this.length));this.outdated=false}return this}toString(){return`gap(${this.length})`}}class zi extends Ni{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0));this.left=t;this.right=i;this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let o=i+this.left.height;return t<o?this.left.blockAt(t,e,i,s):this.right.blockAt(t,e,o,s+this.left.length+this.break)}lineAt(t,e,i,s,o){let n=s+this.left.height,r=o+this.left.length+this.break;let l=e==Hi.ByHeight?t<n:t<r;let h=l?this.left.lineAt(t,e,i,s,o):this.right.lineAt(t,e,i,n,r);if(this.break||(l?h.to<r:h.from>r))return h;let a=e==Hi.ByPosNoHeight?Hi.ByPosNoHeight:Hi.ByPos;if(l)return h.join(this.right.lineAt(r,a,i,n,r));else return this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break){if(t<l)this.left.forEachLine(t,e,i,s,o,n);if(e>=l)this.right.forEachLine(t,e,i,r,l,n)}else{let h=this.lineAt(l,Hi.ByPos,i,s,o);if(t<h.from)this.left.forEachLine(t,h.from-1,i,s,o,n);if(h.to>=t&&h.from<=e)n(h);if(e>h.to)this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(e<s)return this.balanced(this.left.replace(t,e,i),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];if(t>0)this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0)Ii(o,n-1);if(e<this.length){let t=o.length;this.decomposeRight(e,o);Ii(o,t)}return Ni.of(o)}decomposeLeft(t,e){let i=this.left.length;if(t<=i)return this.left.decomposeLeft(t,e);e.push(this.left);if(this.break){i++;if(t>=i)e.push(null)}if(t>i)this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);if(t<i)this.left.decomposeRight(t,e);if(this.break&&t<s)e.push(null);e.push(this.right)}balanced(t,e){if(t.size>2*e.size||e.size>2*t.size)return Ni.of(this.break?[t,null,e]:[t,e]);this.left=t;this.right=e;this.height=t.height+e.height;this.outdated=t.outdated||e.outdated;this.size=t.size+e.size;this.length=t.length+this.break+e.length;return this}updateHeight(t,e=0,i=false,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;if(s&&s.from<=e+o.length&&s.more)l=o=o.updateHeight(t,e,i,s);else o.updateHeight(t,e,i);if(s&&s.from<=r+n.length&&s.more)l=n=n.updateHeight(t,r,i,s);else n.updateHeight(t,r,i);if(l)return this.balanced(o,n);this.height=this.left.height+this.right.height;this.outdated=false;return this}toString(){return this.left+(this.break?" ":"-")+this.right}}function Ii(t,e){let i,s;if(t[e]==null&&(i=t[e-1])instanceof Fi&&(s=t[e+1])instanceof Fi)t.splice(e-1,3,new Fi(i.length+1+s.length))}const qi=5;class Ki{constructor(t,e){this.pos=t;this.oracle=e;this.nodes=[];this.lineStart=-1;this.lineEnd=-1;this.covering=null;this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];if(i instanceof Wi)i.length+=t-this.pos;else if(t>this.pos||!this.isCovered)this.nodes.push(new Wi(t-this.pos,-1));this.writtenTo=t;if(e>t){this.nodes.push(null);this.writtenTo++;this.lineStart=-1}}this.pos=e}point(t,e,i){if(t<e||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0;if(s<0)s=this.oracle.lineHeight;let o=e-t;if(i.block){this.addBlock(new Pi(o,s,i.type))}else if(o||s>=qi){this.addLineDeco(s,o)}}else if(e>t){this.span(t,e)}if(this.lineEnd>-1&&this.lineEnd<this.pos)this.lineEnd=this.oracle.doc.lineAt(this.pos).to}enterLine(){if(this.lineStart>-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t;this.lineEnd=e;if(this.writtenTo<t){if(this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)this.nodes.push(this.blankContent(this.writtenTo,t-1));this.nodes.push(null)}if(this.pos>t)this.nodes.push(new Wi(this.pos-t,-1));this.writtenTo=this.pos}blankContent(t,e){let i=new Fi(e-t);if(this.oracle.doc.lineAt(t).to==e)i.flags|=4;return i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Wi)return t;let e=new Wi(0,-1);this.nodes.push(e);return e}addBlock(t){this.enterLine();if(t.type==St.WidgetAfter&&!this.isCovered)this.ensureLine();this.nodes.push(t);this.writtenTo=this.pos=this.pos+t.length;if(t.type!=St.WidgetBefore)this.covering=t}addLineDeco(t,e){let i=this.ensureLine();i.length+=e;i.collapsed+=e;i.widgetHeight=Math.max(i.widgetHeight,t);this.writtenTo=this.pos=this.pos+e}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];if(this.lineStart>-1&&!(e instanceof Wi)&&!this.isCovered)this.nodes.push(new Wi(0,-1));else if(this.writtenTo<this.pos||e==null)this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=t;for(let s of this.nodes){if(s instanceof Wi)s.updateHeight(this.oracle,i);i+=s?s.length:1}return this.nodes}static build(t,e,i,o){let n=new Ki(i,t);s.RangeSet.spans(e,i,o,n,0);return n.finish(i)}}function Gi(t,e,i){let o=new ji;s.RangeSet.compare(t,e,i,o,0);return o.changes}class ji{constructor(){this.changes=[]}compareRange(){}comparePoint(t,e,i,s){if(t<e||i&&i.heightRelevant||s&&s.heightRelevant)Tt(t,e,this.changes,5)}}function $i(t,e){let i=t.getBoundingClientRect();let s=t.ownerDocument,o=s.defaultView||window;let n=Math.max(0,i.left),r=Math.min(o.innerWidth,i.right);let l=Math.max(0,i.top),h=Math.min(o.innerHeight,i.bottom);for(let a=t.parentNode;a&&a!=s.body;){if(a.nodeType==1){let e=a;let i=window.getComputedStyle(e);if((e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)&&i.overflow!="visible"){let i=e.getBoundingClientRect();n=Math.max(n,i.left);r=Math.min(r,i.right);l=Math.max(l,i.top);h=a==t.parentNode?i.bottom:Math.min(h,i.bottom)}a=i.position=="absolute"||i.position=="fixed"?e.offsetParent:e.parentNode}else if(a.nodeType==11){a=a.host}else{break}}return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function _i(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class Ui{constructor(t,e,i){this.from=t;this.to=e;this.size=i}static same(t,e){if(t.length!=e.length)return false;for(let i=0;i<t.length;i++){let s=t[i],o=e[i];if(s.from!=o.from||s.to!=o.to||s.size!=o.size)return false}return true}draw(t){return xt.replace({widget:new Xi(this.size,t)}).range(this.from,this.to)}}class Xi extends yt{constructor(t,e){super();this.size=t;this.vertical=e}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");if(this.vertical){t.style.height=this.size+"px"}else{t.style.width=this.size+"px";t.style.height="2px";t.style.display="inline-block"}return t}get estimatedHeight(){return this.vertical?this.size:-1}}class Yi{constructor(t){this.state=t;this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0};this.inView=true;this.paddingTop=0;this.paddingBottom=0;this.contentDOMWidth=0;this.contentDOMHeight=0;this.editorHeight=0;this.editorWidth=0;this.scaler=is;this.scrollTarget=null;this.printing=false;this.mustMeasureContent=true;this.defaultTextDirection=oe.LTR;this.visibleRanges=[];this.mustEnforceCursorAssoc=false;let e=t.facet(Qt).some((t=>typeof t!="function"&&t.class=="cm-lineWrapping"));this.heightOracle=new Ri(e);this.stateDeco=t.facet(Jt).filter((t=>typeof t!="function"));this.heightMap=Ni.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle.setDoc(t.doc),[new ie(0,0,0,t.doc.length)]);this.viewport=this.getViewport(0,null);this.updateViewportLines();this.updateForViewport();this.lineGaps=this.ensureLineGaps([]);this.lineGapDeco=xt.set(this.lineGaps.map((t=>t.draw(false))));this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>s>=t&&s<=e))){let{from:e,to:i}=this.lineBlockAt(s);t.push(new Qi(e,i))}}this.viewports=t.sort(((t,e)=>t.from-e.from));this.scaler=this.heightMap.height<=7e6?is:new ss(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[];this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(t=>{this.viewportLines.push(this.scaler.scale==1?t:os(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Jt).filter((t=>typeof t!="function"));let o=t.changedRanges;let n=ie.extendWithRanges(o,Gi(i,this.stateDeco,t?t.changes:s.ChangeSet.empty(this.state.doc.length)));let r=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),n);if(this.heightMap.height!=r)t.flags|=2;let l=n.length?this.mapViewport(this.viewport,t.changes):this.viewport;if(e&&(e.range.head<l.from||e.range.head>l.to)||!this.viewportIsAppropriate(l))l=this.getViewport(0,e);let h=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l;this.updateForViewport();if(h)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)));t.flags|=this.computeVisibleRanges();if(e)this.scrollTarget=e;if(!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(It))this.mustEnforceCursorAssoc=true}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e);let o=this.heightOracle;let n=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?oe.RTL:oe.LTR;let r=this.heightOracle.mustRefreshForWrapping(n);let l=r||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight;this.mustMeasureContent=false;let h=0,a=0;let c=parseInt(i.paddingTop)||0,f=parseInt(i.paddingBottom)||0;if(this.paddingTop!=c||this.paddingBottom!=f){this.paddingTop=c;this.paddingBottom=f;h|=8|2}if(this.editorWidth!=t.scrollDOM.clientWidth){if(o.lineWrapping)l=true;this.editorWidth=t.scrollDOM.clientWidth;h|=8}let d=(this.printing?_i:$i)(e,this.paddingTop);let u=d.top-this.pixelViewport.top,p=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView){this.inView=m;if(m)l=true}if(!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if(this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight){this.contentDOMWidth=g;this.editorHeight=t.scrollDOM.clientHeight;h|=8}if(l){let e=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(e))r=true;if(r||o.lineWrapping&&Math.abs(g-this.contentDOMWidth)>o.charWidth){let{lineHeight:i,charWidth:s}=t.docView.measureTextSize();r=i>0&&o.refresh(n,i,s,g/s,e);if(r){t.docView.minWidth=0;h|=8}}if(u>0&&p>0)a=Math.max(u,p);else if(u<0&&p<0)a=Math.min(u,p);o.heightChanged=false;for(let i of this.viewports){let n=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(r?Ni.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle,[new ie(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,r,new Bi(i.from,n))}if(o.heightChanged)h|=2}let w=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);if(w)this.viewport=this.getViewport(a,this.scrollTarget);this.updateForViewport();if(h&2||w)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t));h|=this.computeVisibleRanges();if(this.mustEnforceCursorAssoc){this.mustEnforceCursorAssoc=false;t.docView.enforceCursorAssoc()}return h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2));let s=this.heightMap,o=this.state.doc,{visibleTop:n,visibleBottom:r}=this;let l=new Qi(s.lineAt(n-i*1e3,Hi.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,Hi.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(t<l.from||t>l.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top);let n=s.lineAt(t,Hi.ByPos,o,0,0),r;if(e.y=="center")r=(n.top+n.bottom)/2-i/2;else if(e.y=="start"||e.y=="nearest"&&t<l.from)r=n.top;else r=n.bottom-i;l=new Qi(s.lineAt(r-1e3/2,Hi.ByHeight,o,0,0).from,s.lineAt(r+i+1e3/2,Hi.ByHeight,o,0,0).to)}}return l}mapViewport(t,e){let i=e.mapPos(t.from,-1),s=e.mapPos(t.to,1);return new Qi(this.heightMap.lineAt(i,Hi.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(s,Hi.ByPos,this.state.doc,0,0).to)}viewportIsAppropriate({from:t,to:e},i=0){if(!this.inView)return true;let{top:s}=this.heightMap.lineAt(t,Hi.ByPos,this.state.doc,0,0);let{bottom:o}=this.heightMap.lineAt(e,Hi.ByPos,this.state.doc,0,0);let{visibleTop:n,visibleBottom:r}=this;return(t==0||s<=n-Math.max(10,Math.min(-i,250)))&&(e==this.state.doc.length||o>=r+Math.max(10,Math.min(i,250)))&&(s>n-2*1e3&&o<r+2*1e3)}mapLineGaps(t,e){if(!t.length||e.empty)return t;let i=[];for(let s of t)if(!e.touchesRange(s.from,s.to))i.push(new Ui(e.mapPos(s.from),e.mapPos(s.to),s.size));return i}ensureLineGaps(t,e){let i=this.heightOracle.lineWrapping;let o=i?1e4:2e3,n=o>>1,r=o<<1;if(this.defaultTextDirection!=oe.LTR&&!i)return[];let l=[];let h=(o,r,a,c)=>{if(r-o<n)return;let f=this.state.selection.main,d=[f.from];if(!f.empty)d.push(f.to);for(let t of d){if(t>o&&t<r){h(o,t-10,a,c);h(t+10,r,a,c);return}}let u=es(t,(t=>t.from>=a.from&&t.to<=a.to&&Math.abs(t.from-o)<n&&Math.abs(t.to-r)<n&&!d.some((e=>t.from<e&&t.to>e))));if(!u){if(r<a.to&&e&&i&&e.visibleRanges.some((t=>t.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(s.EditorSelection.cursor(r),false,true).head;if(t>o)r=t}u=new Ui(o,r,this.gapSize(a,o,r,c))}l.push(u)};for(let s of this.viewportLines){if(s.length<r)continue;let t=Ji(s.from,s.to,this.stateDeco);if(t.total<r)continue;let e=this.scrollTarget?this.scrollTarget.range.head:null;let n,l;if(i){let i=o/this.heightOracle.lineLength*this.heightOracle.lineHeight;let r,h;if(e!=null){let o=ts(t,e);let n=((this.visibleBottom-this.visibleTop)/2+i)/s.height;r=o-n;h=o+n}else{r=(this.visibleTop-s.top-i)/s.height;h=(this.visibleBottom-s.top+i)/s.height}n=Zi(t,r);l=Zi(t,h)}else{let i=t.total*this.heightOracle.charWidth;let s=o*this.heightOracle.charWidth;let r,h;if(e!=null){let o=ts(t,e);let n=((this.pixelViewport.right-this.pixelViewport.left)/2+s)/i;r=o-n;h=o+n}else{r=(this.pixelViewport.left-s)/i;h=(this.pixelViewport.right+s)/i}n=Zi(t,r);l=Zi(t,h)}if(n>s.from)h(s.from,n,s,t);if(l<s.to)h(l,s.to,s,t)}return l}gapSize(t,e,i,s){let o=ts(s,i)-ts(s,e);if(this.heightOracle.lineWrapping){return t.height*o}else{return s.total*this.heightOracle.charWidth*o}}updateLineGaps(t){if(!Ui.same(t,this.lineGaps)){this.lineGaps=t;this.lineGapDeco=xt.set(t.map((t=>t.draw(this.heightOracle.lineWrapping))))}}computeVisibleRanges(){let t=this.stateDeco;if(this.lineGaps.length)t=t.concat(this.lineGapDeco);let e=[];s.RangeSet.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,i)=>t.from!=e[i].from||t.to!=e[i].to));this.visibleRanges=e;return i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||os(this.heightMap.lineAt(t,Hi.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return os(this.heightMap.lineAt(this.scaler.fromDOM(t),Hi.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return os(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Qi{constructor(t,e){this.from=t;this.to=e}}function Ji(t,e,i){let o=[],n=t,r=0;s.RangeSet.spans(i,t,e,{span(){},point(t,e){if(t>n){o.push({from:n,to:t});r+=t-n}n=e}},20);if(n<e){o.push({from:n,to:e});r+=e-n}return{total:r,ranges:o}}function Zi({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:t,to:i}=e[o],n=i-t;if(s<=n)return t+s;s-=n}}function ts(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}function es(t,e){for(let i of t)if(e(i))return i;return undefined}const is={toDOM(t){return t},fromDOM(t){return t},scale:1};class ss{constructor(t,e,i){let s=0,o=0,n=0;this.viewports=i.map((({from:i,to:o})=>{let n=e.lineAt(i,Hi.ByPos,t,0,0).top;let r=e.lineAt(o,Hi.ByPos,t,0,0).bottom;s+=r-n;return{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}));this.scale=(7e6-s)/(e.height-s);for(let r of this.viewports){r.domTop=n+(r.top-o)*this.scale;n=r.domBottom=r.domTop+(r.bottom-r.top);o=r.bottom}}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=e<this.viewports.length?this.viewports[e]:null;if(!o||t<o.top)return s+(t-i)*this.scale;if(t<=o.bottom)return o.domTop+(t-o.top);i=o.bottom;s=o.domBottom}}fromDOM(t){for(let e=0,i=0,s=0;;e++){let o=e<this.viewports.length?this.viewports[e]:null;if(!o||t<o.domTop)return i+(t-s)/this.scale;if(t<=o.domBottom)return o.top+(t-o.domTop);i=o.bottom;s=o.domBottom}}}function os(t,e){if(e.scale==1)return t;let i=e.toDOM(t.top),s=e.toDOM(t.bottom);return new Li(t.from,t.length,i,s-i,Array.isArray(t.type)?t.type.map((t=>os(t,e))):t.type)}const ns=s.Facet.define({combine:t=>t.join(" ")});const rs=s.Facet.define({combine:t=>t.indexOf(true)>-1});const ls=o.StyleModule.newName(),hs=o.StyleModule.newName(),as=o.StyleModule.newName();const cs={"&light":"."+hs,"&dark":"."+as};function fs(t,e,i){return new o.StyleModule(e,{finish(e){return/&/.test(e)?e.replace(/&\w*/,(e=>{if(e=="&")return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e}})}const ds=fs("."+ls,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},cs);class us{constructor(t,e,i,o){this.typeOver=o;this.bounds=null;this.text="";let{impreciseHead:n,impreciseAnchor:r}=t.docView;if(t.state.readOnly&&e>-1){this.newSel=null}else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=n||r?[]:gs(t);let i=new Se(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM);this.text=i.text;this.newSel=ws(e,this.bounds.from)}else{let e=t.observer.selectionRange;let i=n&&n.node==e.focusNode&&n.offset==e.focusOffset||!g(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset);let o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!g(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=s.EditorSelection.single(o,i)}}}function ps(t,e){let i;let{newSel:o}=e,n=t.state.selection.main;if(e.bounds){let{from:o,to:r}=e.bounds;let l=n.from,h=null;if(t.inputState.lastKeyCode===8&&t.inputState.lastKeyTime>Date.now()-100||it.android&&e.text.length<r-o){l=n.to;h="end"}let a=ms(t.state.doc.sliceString(o,r,ye),e.text,l-o,h);if(a){if(it.chrome&&t.inputState.lastKeyCode==13&&a.toB==a.from+2&&e.text.slice(a.from,a.toB)==ye+ye)a.toB--;i={from:o+a.from,to:o+a.toA,insert:s.Text.of(e.text.slice(a.from,a.toB).split(ye))}}}else if(o&&(!t.hasFocus&&t.state.facet(jt)||o.main.eq(n))){o=null}if(!i&&!o)return false;if(!i&&e.typeOver&&!n.empty&&o&&o.main.empty){i={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,n.to)}}else if(i&&i.from>=n.from&&i.to<=n.to&&(i.from!=n.from||i.to!=n.to)&&n.to-n.from-(i.to-i.from)<=4){i={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,n.to))}}else if((it.mac||it.android)&&i&&i.from==i.to&&i.from==n.head-1&&/^\. ?$/.test(i.insert.toString())){if(o&&i.insert.length==2)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}else if(it.chrome&&i&&i.from==i.to&&i.from==n.head&&i.insert.toString()=="\n "&&t.lineWrapping){if(o)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}if(i){let e=t.state;if(it.ios&&t.inputState.flushIOSKey(t))return true;if(it.android&&(i.from==n.from&&i.to==n.to&&i.insert.length==1&&i.insert.lines==2&&H(t.contentDOM,"Enter",13)||i.from==n.from-1&&i.to==n.to&&i.insert.length==0&&H(t.contentDOM,"Backspace",8)||i.from==n.from&&i.to==n.to+1&&i.insert.length==0&&H(t.contentDOM,"Delete",46)))return true;let r=i.insert.toString();if(t.state.facet(Ft).some((e=>e(t,i.from,i.to,r))))return true;if(t.inputState.composing>=0)t.inputState.composing++;let l;if(i.from>=n.from&&i.to<=n.to&&i.to-i.from>=(n.to-n.from)/3&&(!o||o.main.empty&&o.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let s=n.from<i.from?e.sliceDoc(n.from,i.from):"";let o=n.to>i.to?e.sliceDoc(i.to,n.to):"";l=e.replaceSelection(t.state.toText(s+i.insert.sliceString(0,undefined,t.state.lineBreak)+o))}else{let r=e.changes(i);let h=o&&!e.selection.main.eq(o.main)&&o.main.to<=r.newLength?o.main:undefined;if(e.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=n.to&&i.to>=n.to-10){let o=t.state.sliceDoc(i.from,i.to);let a=De(t)||t.state.doc.lineAt(n.head);let c=n.to-i.to,f=n.to-n.from;l=e.changeByRange((l=>{if(l.from==n.from&&l.to==n.to)return{changes:r,range:h||l.map(r)};let d=l.to-c,u=d-o.length;if(l.to-l.from!=f||t.state.sliceDoc(u,d)!=o||a&&l.to>=a.from&&l.from<=a.to)return{range:l};let p=e.changes({from:u,to:d,insert:i.insert}),m=l.to-n.to;return{changes:p,range:!h?l.map(p):s.EditorSelection.range(Math.max(0,h.anchor+m),Math.max(0,h.head+m))}}))}else{l={changes:r,selection:h&&e.selection.replaceRange(h)}}}let h="input.type";if(t.composing){h+=".compose";if(t.inputState.compositionFirstChange){h+=".start";t.inputState.compositionFirstChange=false}}t.dispatch(l,{scrollIntoView:true,userEvent:h});return true}else if(o&&!o.main.eq(n)){let e=false,i="select";if(t.inputState.lastSelectionTime>Date.now()-50){if(t.inputState.lastSelectionOrigin=="select")e=true;i=t.inputState.lastSelectionOrigin}t.dispatch({selection:o,scrollIntoView:e,userEvent:i});return true}else{return false}}function ms(t,e,i,s){let o=Math.min(t.length,e.length);let n=0;while(n<o&&t.charCodeAt(n)==e.charCodeAt(n))n++;if(n==o&&t.length==e.length)return null;let r=t.length,l=e.length;while(r>0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1)){r--;l--}if(s=="end"){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r<n&&t.length<e.length){let t=i<=n&&i>=r?n-i:0;n-=t;l=n+(l-r);r=n}else if(l<n){let t=i<=n&&i>=l?n-i:0;n-=t;r=n+(r-l);l=n}return{from:n,toA:r,toB:l}}function gs(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;if(i){e.push(new Me(i,s));if(o!=i||n!=s)e.push(new Me(o,n))}return e}function ws(t,e){if(t.length==0)return null;let i=t[0].pos,o=t.length==2?t[1].pos:i;return i>-1&&o>-1?s.EditorSelection.single(i+e,o+e):null}const vs={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true};const bs=it.ie&&it.ie_version<=11;class ys{constructor(t){this.view=t;this.active=false;this.selectionRange=new O;this.selectionChanged=false;this.delayedFlush=-1;this.resizeTimeout=-1;this.queue=[];this.delayedAndroidKey=null;this.flushingAndroidKey=-1;this.lastChange=0;this.scrollTargets=[];this.intersection=null;this.resizeScroll=null;this.resizeContent=null;this.intersecting=false;this.gapIntersection=null;this.gaps=[];this.parentCheck=-1;this.dom=t.contentDOM;this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);if((it.ie&&it.ie_version<=11||it.ios&&t.composing)&&e.some((t=>t.type=="childList"&&t.removedNodes.length||t.type=="characterData"&&t.oldValue.length>t.target.nodeValue.length)))this.flushSoon();else this.flush()}));if(bs)this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue});this.flushSoon()};this.onSelectionChange=this.onSelectionChange.bind(this);this.onResize=this.onResize.bind(this);this.onPrint=this.onPrint.bind(this);this.onScroll=this.onScroll.bind(this);if(typeof ResizeObserver=="function"){this.resizeScroll=new ResizeObserver((()=>{var t;if(((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75)this.onResize()}));this.resizeScroll.observe(t.scrollDOM);this.resizeContent=new ResizeObserver((()=>this.view.requestMeasure()));this.resizeContent.observe(t.contentDOM)}this.addWindowListeners(this.win=t.win);this.start();if(typeof IntersectionObserver=="function"){this.intersection=new IntersectionObserver((t=>{if(this.parentCheck<0)this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3);if(t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting){this.intersecting=!this.intersecting;if(this.intersecting!=this.view.inView)this.onScrollChanged(document.createEvent("Event"))}}),{});this.intersection.observe(this.dom);this.gapIntersection=new IntersectionObserver((t=>{if(t.length>0&&t[t.length-1].intersectionRatio>0)this.onScrollChanged(document.createEvent("Event"))}),{})}this.listenForScroll();this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t);if(this.intersecting)this.view.measure()}onScroll(t){if(this.intersecting)this.flush(false);this.onScrollChanged(t)}onResize(){if(this.resizeTimeout<0)this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1;this.view.requestMeasure()}),50)}onPrint(){this.view.viewState.printing=true;this.view.measure();setTimeout((()=>{this.view.viewState.printing=false;this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(jt)?i.root.activeElement!=this.dom:!v(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){if(!e)this.selectionChanged=false;return}if((it.ie&&it.ie_version<=11||it.android&&it.chrome)&&!i.state.selection.main.empty&&s.focusNode&&y(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset))this.flushSoon();else this.flush(false)}readSelectionRange(){let{view:t}=this;let e=it.safari&&t.root.nodeType==11&&w(this.dom.ownerDocument)==this.dom&&xs(this.view)||m(t.root);if(!e||this.selectionRange.eq(e))return false;let i=v(this.dom,e);if(i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&P(this.dom,e)){this.view.inputState.lastFocusTime=0;t.docView.updateSelection();return false}this.selectionRange.setRange(e);if(i)this.selectionChanged=true;return true}setSelectionRange(t,e){this.selectionRange.set(t.node,t.offset,e.node,e.offset);this.selectionChanged=false}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,e=null;for(let i=this.dom;i;){if(i.nodeType==1){if(!e&&t<this.scrollTargets.length&&this.scrollTargets[t]==i)t++;else if(!e)e=this.scrollTargets.slice(0,t);if(e)e.push(i);i=i.assignedSlot||i.parentNode}else if(i.nodeType==11){i=i.host}else{break}}if(t<this.scrollTargets.length&&!e)e=this.scrollTargets.slice(0,t);if(e){for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);for(let t of this.scrollTargets=e)t.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{this.stop();return t()}finally{this.start();this.clear()}}start(){if(this.active)return;this.observer.observe(this.dom,vs);if(bs)this.dom.addEventListener("DOMCharacterDataModified",this.onCharData);this.active=true}stop(){if(!this.active)return;this.active=false;this.observer.disconnect();if(bs)this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData)}clear(){this.processRecords();this.queue.length=0;this.selectionChanged=false}delayAndroidKey(t,e){var i;if(!this.delayedAndroidKey){let t=()=>{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey();if(!this.flush()&&t.force)H(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}if(!this.delayedAndroidKey||t=="Enter")this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange<Date.now()-50||!!((i=this.delayedAndroidKey)===null||i===void 0?void 0:i.force)}}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey);this.delayedAndroidKey=null;this.flushingAndroidKey=-1}flushSoon(){if(this.delayedFlush<0)this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1;this.flush()}))}forceFlush(){if(this.delayedFlush>=0){this.view.win.cancelAnimationFrame(this.delayedFlush);this.delayedFlush=-1}this.flush()}processRecords(){let t=this.queue;for(let o of this.observer.takeRecords())t.push(o);if(t.length)this.queue=[];let e=-1,i=-1,s=false;for(let o of t){let t=this.readMutation(o);if(!t)continue;if(t.typeOver)s=true;if(e==-1){({from:e,to:i}=t)}else{e=Math.min(t.from,e);i=Math.max(t.to,i)}}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords();let s=this.selectionChanged&&v(this.dom,this.selectionRange);if(t<0&&!s)return null;if(t>-1)this.lastChange=Date.now();this.view.inputState.lastFocusTime=0;this.selectionChanged=false;return new us(this.view,t,e,i)}flush(t=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;if(t)this.readSelectionRange();let e=this.readChange();if(!e)return false;let i=this.view.state;let s=ps(this.view,e);if(this.view.state==i)this.view.update([]);return s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;e.markDirty(t.type=="attributes");if(t.type=="attributes")e.dirty|=4;if(t.type=="childList"){let i=Ss(e,t.previousSibling||t.target.previousSibling,-1);let s=Ss(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:false}}else if(t.type=="characterData"){return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}else{return null}}setWindow(t){if(t!=this.win){this.removeWindowListeners(this.win);this.win=t;this.addWindowListeners(this.win)}}addWindowListeners(t){t.addEventListener("resize",this.onResize);t.addEventListener("beforeprint",this.onPrint);t.addEventListener("scroll",this.onScroll);t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onResize);t.removeEventListener("beforeprint",this.onPrint);t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,s;this.stop();(t=this.intersection)===null||t===void 0?void 0:t.disconnect();(e=this.gapIntersection)===null||e===void 0?void 0:e.disconnect();(i=this.resizeScroll)===null||i===void 0?void 0:i.disconnect();(s=this.resizeContent)===null||s===void 0?void 0:s.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win);clearTimeout(this.parentCheck);clearTimeout(this.resizeTimeout);this.win.cancelAnimationFrame(this.delayedFlush);this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Ss(t,e,i){while(e){let s=z.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}function xs(t){let e=null;function i(t){t.preventDefault();t.stopImmediatePropagation();e=t.getTargetRanges()[0]}t.contentDOM.addEventListener("beforeinput",i,true);t.dom.ownerDocument.execCommand("indent");t.contentDOM.removeEventListener("beforeinput",i,true);if(!e)return null;let s=e.startContainer,o=e.startOffset;let n=e.endContainer,r=e.endOffset;let l=t.docView.domAtPos(t.state.selection.main.anchor);if(y(l.node,l.offset,n,r))[s,o,n,r]=[n,r,s,o];return{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}class Ms{constructor(t={}){this.plugins=[];this.pluginMap=new Map;this.editorAttrs={};this.contentAttrs={};this.bidiCache=[];this.destroyed=false;this.updateState=2;this.measureScheduled=-1;this.measureRequests=[];this.contentDOM=document.createElement("div");this.scrollDOM=document.createElement("div");this.scrollDOM.tabIndex=-1;this.scrollDOM.className="cm-scroller";this.scrollDOM.appendChild(this.contentDOM);this.announceDOM=document.createElement("div");this.announceDOM.style.cssText="position: fixed; top: -10000px";this.announceDOM.setAttribute("aria-live","polite");this.dom=document.createElement("div");this.dom.appendChild(this.announceDOM);this.dom.appendChild(this.scrollDOM);this._dispatch=t.dispatch||(t=>this.update([t]));this.dispatch=this.dispatch.bind(this);this._root=t.root||V(t.parent)||document;this.viewState=new Yi(t.state||s.EditorState.create(t));this.plugins=this.state.facet(_t).map((t=>new Xt(t)));for(let e of this.plugins)e.update(this);this.observer=new ys(this);this.inputState=new Je(this);this.inputState.ensureHandlers(this,this.plugins);this.docView=new ke(this);this.mountStyles();this.updateAttrs();this.updateState=0;this.requestMeasure();if(t.parent)t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(t.length==1&&t[0]instanceof s.Transaction?t[0]:this.state.update(...t))}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=false,i=false,o;let n=this.state;for(let s of t){if(s.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=s.state}if(this.destroyed){this.viewState.state=n;return}let r=this.observer.delayedAndroidKey,l=null;if(r){this.observer.clearDelayedAndroidKey();l=this.observer.readChange();if(l&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))l=null}else{this.observer.clear()}if(n.facet(s.EditorState.phrases)!=this.state.facet(s.EditorState.phrases))return this.setState(n);o=se.create(this,n,t);let h=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(h)h=h.map(e.changes);if(e.scrollIntoView){let{main:t}=e.state.selection;h=new qt(t.empty?t:s.EditorSelection.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)if(t.is(Kt))h=t.value}this.viewState.update(o,h);this.bidiCache=As.update(this.bidiCache,o.changes);if(!o.empty){this.updatePlugins(o);this.inputState.update(o)}e=this.docView.update(o);if(this.state.facet(ee)!=this.styleModules)this.mountStyles();i=this.updateAttrs();this.showAnnouncements(t);this.docView.updateSelection(e,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(ns)!=o.state.facet(ns))this.viewState.mustMeasureContent=true;if(e||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)this.requestMeasure();if(!o.empty)for(let s of this.state.facet(Wt))s(o);if(l){if(!ps(this,l)&&r.force)H(this.contentDOM,r.key,r.keyCode)}}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Yi(t);this.plugins=t.facet(_t).map((t=>new Xt(t)));this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView=new ke(this);this.inputState.ensureHandlers(this,this.plugins);this.mountStyles();this.updateAttrs();this.bidiCache=[]}finally{this.updateState=0}if(e)this.focus();this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(_t),i=t.state.facet(_t);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new Xt(o))}else{let e=this.plugins[i];e.mustUpdate=t;s.push(e)}}for(let e of this.plugins)if(e.mustUpdate!=t)e.destroy(this);this.plugins=s;this.pluginMap.clear();this.inputState.ensureHandlers(this,this.plugins)}else{for(let e of this.plugins)e.mustUpdate=t}for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this)}measure(t=true){if(this.destroyed)return;if(this.measureScheduled>-1)cancelAnimationFrame(this.measureScheduled);this.measureScheduled=0;if(t)this.observer.forceFlush();let e=null;let{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM;let n=s>i-o-4?i:s;try{for(let t=0;;t++){this.updateState=1;let i=this.viewport;let s=this.viewState.lineBlockAtHeight(n);let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];if(!(o&4))[this.measureRequests,l]=[l,this.measureRequests];let h=l.map((t=>{try{return t.read(this)}catch(e){Gt(this.state,e);return Cs}}));let a=se.create(this,this.state,[]),c=false,f=false;a.flags|=o;if(!e)e=a;else e.flags|=o;this.updateState=2;if(!a.empty){this.updatePlugins(a);this.inputState.update(a);this.updateAttrs();c=this.docView.update(a)}for(let t=0;t<l.length;t++)if(h[t]!=Cs){try{let e=l[t];if(e.write)e.write(h[t],this)}catch(r){Gt(this.state,r)}}if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget);this.viewState.scrollTarget=null;f=true}else{let t=this.viewState.lineBlockAt(s.from).top-s.top;if(t>1||t<-1){this.scrollDOM.scrollTop+=t;f=true}}}if(c)this.docView.updateSelection(true);if(this.viewport.from==i.from&&this.viewport.to==i.to&&!f&&this.measureRequests.length==0)break}}finally{this.updateState=0;this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(Wt))l(e)}get themeClasses(){return ls+" "+(this.state.facet(rs)?as:hs)+" "+this.state.facet(ns)}updateAttrs(){let t=Ds(this,Yt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});let e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:!this.state.facet(jt)?"false":"true",class:"cm-content",style:`${it.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};if(this.state.readOnly)e["aria-readonly"]="true";Ds(this,Qt,e);let i=this.observer.ignore((()=>{let i=bt(this.contentDOM,this.contentAttrs,e);let s=bt(this.dom,this.editorAttrs,t);return i||s}));this.editorAttrs=t;this.contentAttrs=e;return i}showAnnouncements(t){let e=true;for(let i of t)for(let t of i.effects)if(t.is(Ms.announce)){if(e)this.announceDOM.textContent="";e=false;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(ee);o.StyleModule.mount(this.root,this.styleModules.concat(ds).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");if(this.updateState==0&&this.measureScheduled>-1)this.measure(false)}requestMeasure(t){if(this.measureScheduled<0)this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()));if(t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null)for(let e=0;e<this.measureRequests.length;e++){if(this.measureRequests[e].key===t.key){this.measureRequests[e]=t;return}}this.measureRequests.push(t)}}plugin(t){let e=this.pluginMap.get(t);if(e===undefined||e&&e.spec!=t)this.pluginMap.set(t,e=this.plugins.find((e=>e.spec==t))||null);return e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){this.readMeasured();return this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){this.readMeasured();return this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return Qe(this,t,Ue(this,t,e,i))}moveByGroup(t,e){return Qe(this,t,Ue(this,t,e,(e=>Xe(this,t.head,e))))}moveToLineBoundary(t,e,i=true){return _e(this,t,e,i)}moveVertically(t,e,i){return Qe(this,t,Ye(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=true){this.readMeasured();return Ke(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);let n=o[pe.find(o,t-s.from,-1,e)];return C(i,n.dir==oe.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){let e=this.state.facet(zt);if(!e||t<this.viewport.from||t>this.viewport.to)return this.textDirection;this.readMeasured();return this.docView.textDirectionAt(t)}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>ks)return we(t.length);let e=this.textDirectionAt(t.from);for(let s of this.bidiCache)if(s.from==t.from&&s.dir==e)return s.order;let i=ge(t.text,e);this.bidiCache.push(new As(t.from,t.to,e,i));return i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||it.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{R(this.contentDOM);this.docView.updateSelection()}))}setRoot(t){if(this._root!=t){this._root=t;this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window);this.mountStyles()}}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[];this.inputState.destroy();this.dom.remove();this.observer.destroy();if(this.measureScheduled>-1)cancelAnimationFrame(this.measureScheduled);this.destroyed=true}static scrollIntoView(t,e={}){return Kt.of(new qt(typeof t=="number"?s.EditorSelection.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return Ut.define((()=>({})),{eventHandlers:t})}static theme(t,e){let i=o.StyleModule.newName();let s=[ns.of(i),ee.of(fs(`.${i}`,t))];if(e&&e.dark)s.push(rs.of(true));return s}static baseTheme(t){return s.Prec.lowest(ee.of(fs("."+ls,t,cs)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content");let s=i&&z.get(i)||z.get(t);return((e=s===null||s===void 0?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}Ms.styleModule=ee;Ms.inputHandler=Ft;Ms.perLineTextDirection=zt;Ms.exceptionSink=Pt;Ms.updateListener=Wt;Ms.editable=jt;Ms.mouseSelectionStyle=Nt;Ms.dragMovesSelection=Vt;Ms.clickAddsSelectionRange=Ht;Ms.decorations=Jt;Ms.atomicRanges=Zt;Ms.scrollMargins=te;Ms.darkTheme=rs;Ms.contentAttributes=Qt;Ms.editorAttributes=Yt;Ms.lineWrapping=Ms.contentAttributes.of({class:"cm-lineWrapping"});Ms.announce=s.StateEffect.define();const ks=4096;const Cs={};class As{constructor(t,e,i,s){this.from=t;this.to=e;this.dir=i;this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:oe.LTR;for(let o=Math.max(0,t.length-10);o<t.length;o++){let n=t[o];if(n.dir==s&&!e.touchesRange(n.from,n.to))i.push(new As(e.mapPos(n.from,1),e.mapPos(n.to,-1),n.dir,n.order))}return i}}function Ds(t,e,i){for(let s=t.state.facet(e),o=s.length-1;o>=0;o--){let e=s[o],n=typeof e=="function"?e(t):e;if(n)wt(n,i)}return i}const Ts=it.mac?"mac":it.windows?"win":it.linux?"linux":"key";function Os(t,e){const i=t.split(/-(?!$)/);let s=i[i.length-1];if(s=="Space")s=" ";let o,n,r,l;for(let h=0;h<i.length-1;++h){const t=i[h];if(/^(cmd|meta|m)$/i.test(t))l=true;else if(/^a(lt)?$/i.test(t))o=true;else if(/^(c|ctrl|control)$/i.test(t))n=true;else if(/^s(hift)?$/i.test(t))r=true;else if(/^mod$/i.test(t)){if(e=="mac")l=true;else n=true}else throw new Error("Unrecognized modifier name: "+t)}if(o)s="Alt-"+s;if(n)s="Ctrl-"+s;if(l)s="Meta-"+s;if(r)s="Shift-"+s;return s}function Es(t,e,i){if(e.altKey)t="Alt-"+t;if(e.ctrlKey)t="Ctrl-"+t;if(e.metaKey)t="Meta-"+t;if(i!==false&&e.shiftKey)t="Shift-"+t;return t}const Rs=s.Prec["default"](Ms.domEventHandlers({keydown(t,e){return Fs(Hs(e.state),t,e,"editor")}}));const Bs=s.Facet.define({enables:Rs});const Ls=new WeakMap;function Hs(t){let e=t.facet(Bs);let i=Ls.get(e);if(!i)Ls.set(e,i=Ws(e.reduce(((t,e)=>t.concat(e)),[])));return i}function Vs(t,e,i){return Fs(Hs(t.state),e,t,i)}let Ns=null;const Ps=4e3;function Ws(t,e=Ts){let i=Object.create(null);let s=Object.create(null);let o=(t,e)=>{let i=s[t];if(i==null)s[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")};let n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null));let c=s.split(/ (?!$)/).map((t=>Os(t,e)));for(let e=1;e<c.length;e++){let i=c.slice(0,e).join(" ");o(i,true);if(!a[i])a[i]={preventDefault:true,run:[e=>{let s=Ns={view:e,prefix:i,scope:t};setTimeout((()=>{if(Ns==s)Ns=null}),Ps);return true}]}}let f=c.join(" ");o(f,false);let d=a[f]||(a[f]={preventDefault:false,run:((h=(l=a._any)===null||l===void 0?void 0:l.run)===null||h===void 0?void 0:h.slice())||[]});if(n)d.run.push(n);if(r)d.preventDefault=true};for(let r of t){let t=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));if(!t._any)t._any={preventDefault:false,run:[]};for(let e in t)t[e].run.push(r.any)}let s=r[e]||r.key;if(!s)continue;for(let e of t){n(e,s,r.run,r.preventDefault);if(r.shift)n(e,"Shift-"+s,r.shift,r.preventDefault)}}return i}function Fs(t,e,i,o){let l=p(e);let h=(0,s.codePointAt)(l,0),a=(0,s.codePointSize)(h)==l.length&&l!=" ";let c="",f=false;if(Ns&&Ns.view==i&&Ns.scope==o){c=Ns.prefix+" ";if(f=ei.indexOf(e.keyCode)<0)Ns=null}let d=new Set;let u=t=>{if(t){for(let s of t.run)if(!d.has(s)){d.add(s);if(s(i,e))return true}if(t.preventDefault)f=true}return false};let m=t[o],g,w;if(m){if(u(m[c+Es(l,e,!a)]))return true;if(a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(it.windows&&e.ctrlKey&&e.altKey)&&(g=n[e.keyCode])&&g!=l){if(u(m[c+Es(g,e,true)]))return true;else if(e.shiftKey&&(w=r[e.keyCode])!=l&&w!=g&&u(m[c+Es(w,e,false)]))return true}else if(a&&e.shiftKey){if(u(m[c+Es(l,e,true)]))return true}if(u(m._any))return true}return f}class zs{constructor(t,e,i,s,o){this.className=t;this.left=e;this.top=i;this.width=s;this.height=o}draw(){let t=document.createElement("div");t.className=this.className;this.adjust(t);return t}update(t,e){if(e.className!=this.className)return false;this.adjust(t);return true}adjust(t){t.style.left=this.left+"px";t.style.top=this.top+"px";if(this.width!=null)t.style.width=this.width+"px";t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=Is(t);return[new zs(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else{return Gs(t,e,i)}}}function Is(t){let e=t.scrollDOM.getBoundingClientRect();let i=t.textDirection==oe.LTR?e.left:e.right-t.scrollDOM.clientWidth;return{left:i-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function qs(t,e,i){let o=s.EditorSelection.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(o,false,true).from),to:Math.min(i.to,t.moveToLineBoundary(o,true,true).from),type:St.Text}}function Ks(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type))for(let s of i.type){if(s.to>e||s.to==e&&(s.to==i.to||s.type==St.Text))return s}return i}function Gs(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to);let n=t.textDirection==oe.LTR;let r=t.contentDOM,l=r.getBoundingClientRect(),h=Is(t);let a=window.getComputedStyle(r.firstChild);let c=l.left+parseInt(a.paddingLeft)+Math.min(0,parseInt(a.textIndent));let f=l.right-parseInt(a.paddingRight);let d=Ks(t,s),u=Ks(t,o);let p=d.type==St.Text?d:null;let m=u.type==St.Text?u:null;if(t.lineWrapping){if(p)p=qs(t,s,p);if(m)m=qs(t,o,m)}if(p&&m&&p.from==m.from){return w(v(i.from,i.to,p))}else{let e=p?v(i.from,null,p):b(d,false);let s=m?v(null,i.to,m):b(u,true);let o=[];if((p||d).to<(m||u).from-1)o.push(g(c,e.bottom,f,s.top));else if(e.bottom<s.top&&t.elementAtHeight((e.bottom+s.top)/2).type==St.Text)e.bottom=s.top=(e.bottom+s.top)/2;return w(e).concat(o).concat(w(s))}function g(t,i,s,o){return new zs(e,t-h.left,i-h.top-.01,s-t,o-i+.01)}function w({top:t,bottom:e,horizontal:i}){let s=[];for(let o=0;o<i.length;o+=2)s.push(g(i[o],t,i[o+1],e));return s}function v(e,i,s){let o=1e9,r=-1e9,l=[];function h(e,i,h,a,d){let u=t.coordsAtPos(e,e==s.to?-2:2);let p=t.coordsAtPos(h,h==s.from?2:-2);o=Math.min(u.top,p.top,o);r=Math.max(u.bottom,p.bottom,r);if(d==oe.LTR)l.push(n&&i?c:u.left,n&&a?f:p.right);else l.push(!n&&a?c:p.left,!n&&i?f:u.right)}let a=e!==null&&e!==void 0?e:s.from,d=i!==null&&i!==void 0?i:s.to;for(let n of t.visibleRanges)if(n.to>a&&n.from<d){for(let s=Math.max(n.from,a),o=Math.min(n.to,d);;){let n=t.state.doc.lineAt(s);for(let r of t.bidiSpans(n)){let t=r.from+n.from,l=r.to+n.from;if(t>=o)break;if(l>s)h(Math.max(t,s),e==null&&t<=a,Math.min(l,o),i==null&&l>=d,r.dir)}s=n.to+1;if(s>=o)break}}if(l.length==0)h(a,e==null,d,i==null,t.textDirection);return{top:o,bottom:r,horizontal:l}}function b(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}function js(t,e){return t.constructor==e.constructor&&t.eq(e)}class $s{constructor(t,e){this.view=t;this.layer=e;this.drawn=[];this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)};this.dom=t.scrollDOM.appendChild(document.createElement("div"));this.dom.classList.add("cm-layer");if(e.above)this.dom.classList.add("cm-layer-above");if(e.class)this.dom.classList.add(e.class);this.dom.setAttribute("aria-hidden","true");this.setOrder(t.state);t.requestMeasure(this.measureReq);if(e.mount)e.mount(this.dom,t)}update(t){if(t.startState.facet(_s)!=t.state.facet(_s))this.setOrder(t.state);if(this.layer.update(t,this.dom)||t.geometryChanged)t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(_s);while(e<i.length&&i[e]!=this.layer)e++;this.dom.style.zIndex=String((this.layer.above?150:-1)-e)}measure(){return this.layer.markers(this.view)}draw(t){if(t.length!=this.drawn.length||t.some(((t,e)=>!js(t,this.drawn[e])))){let e=this.dom.firstChild,i=0;for(let s of t){if(s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])){e=e.nextSibling;i++}else{this.dom.insertBefore(s.draw(),e)}}while(e){let t=e.nextSibling;e.remove();e=t}this.drawn=t}}destroy(){if(this.layer.destroy)this.layer.destroy(this.dom,this.view);this.dom.remove()}}const _s=s.Facet.define();function Us(t){return[Ut.define((e=>new $s(e,t))),_s.of(t)]}const Xs=!it.ios;const Ys=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function Qs(t={}){return[Ys.of(t),Zs,eo,so,It.of(true)]}function Js(t){return t.startState.facet(Ys)!=t.state.facet(Ys)}const Zs=Us({above:true,markers(t){let{state:e}=t,i=e.facet(Ys);let o=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty?!r||Xs:i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary";let i=n.empty?n:s.EditorSelection.cursor(n.head,n.head>n.anchor?-1:1);for(let s of zs.forRange(t,e,i))o.push(s)}}return o},update(t,e){if(t.transactions.some((t=>t.selection)))e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink";let i=Js(t);if(i)to(t.state,e);return t.docChanged||t.selectionSet||i},mount(t,e){to(e.state,t)},class:"cm-cursorLayer"});function to(t,e){e.style.animationDuration=t.facet(Ys).cursorBlinkRate+"ms"}const eo=Us({above:false,markers(t){return t.state.selection.ranges.map((e=>e.empty?[]:zs.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e)))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Js(t)},class:"cm-selectionLayer"});const io={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};if(Xs)io[".cm-line"].caretColor="transparent !important";const so=s.Prec.highest(Ms.theme(io));const oo=s.StateEffect.define({map(t,e){return t==null?null:e.mapPos(t)}});const no=s.StateField.define({create(){return null},update(t,e){if(t!=null)t=e.changes.mapPos(t);return e.effects.reduce(((t,e)=>e.is(oo)?e.value:t),t)}});const ro=Ut.fromClass(class{constructor(t){this.view=t;this.cursor=null;this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(no);if(i==null){if(this.cursor!=null){(e=this.cursor)===null||e===void 0?void 0:e.remove();this.cursor=null}}else{if(!this.cursor){this.cursor=this.view.scrollDOM.appendChild(document.createElement("div"));this.cursor.className="cm-dropCursor"}if(t.startState.field(no)!=i||t.docChanged||t.geometryChanged)this.view.requestMeasure(this.measureReq)}}readPos(){let t=this.view.state.field(no);let e=t!=null&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){if(this.cursor){if(t){this.cursor.style.left=t.left+"px";this.cursor.style.top=t.top+"px";this.cursor.style.height=t.height+"px"}else{this.cursor.style.left="-100000px"}}}destroy(){if(this.cursor)this.cursor.remove()}setDropPos(t){if(this.view.state.field(no)!=t)this.view.dispatch({effects:oo.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){if(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function lo(){return[no,ro]}function ho(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length){if(!n.lineBreak)while(l=e.exec(n.value))o(r+l.index,l)}}function ao(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i){o=Math.max(t.state.doc.lineAt(o).from,o-e);n=Math.min(t.state.doc.lineAt(n).to,n+e);if(s.length&&s[s.length-1].to>=o)s[s.length-1].to=n;else s.push({from:o,to:n})}return s}class co{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=e;if(s){this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e)}else if(typeof i=="function"){this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);if(n)o(s,s+t[0].length,n)}}else if(i){this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i)}else{throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator")}this.boundary=o;this.maxLength=n}createDeco(t){let e=new s.RangeSetBuilder,i=e.add.bind(e);for(let{from:s,to:o}of ao(t,this.maxLength))ho(t.state.doc,this.regexp,s,o,((e,s)=>this.addMatch(s,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;if(t.docChanged)t.changes.iterChanges(((e,o,n,r)=>{if(r>t.view.viewport.from&&n<t.view.viewport.to){i=Math.min(n,i);s=Math.max(r,s)}}));if(t.viewportChanged||s-i>1e3)return this.createDeco(t.view);if(s>-1)return this.updateRange(t.view,e.map(t.changes),i,s);return e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let i=t.state.doc.lineAt(n),s=i.to<r?t.state.doc.lineAt(r):i;let l=Math.max(o.from,i.from),h=Math.min(o.to,s.to);if(this.boundary){for(;n>i.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;r<s.to;r++)if(this.boundary.test(s.text[r-s.from])){h=r;break}}let a=[],c;let f=(t,e,i)=>a.push(i.range(t,e));if(i==s){this.regexp.lastIndex=l-i.from;while((c=this.regexp.exec(i.text))&&c.index<h-i.from)this.addMatch(c,t,c.index+i.from,f)}else{ho(t.state.doc,this.regexp,l,h,((e,i)=>this.addMatch(i,t,e,f)))}e=e.update({filterFrom:l,filterTo:h,filter:(t,e)=>t<l||e>h,add:a})}}return e}}const fo=/x/.unicode!=null?"gu":"g";const uo=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",fo);const po={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let mo=null;function go(){var t;if(mo==null&&typeof document!="undefined"&&document.body){let e=document.body.style;mo=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return mo||false}const wo=s.Facet.define({combine(t){let e=(0,s.combineConfig)(t,{render:null,specialChars:uo,addSpecialChars:null});if(e.replaceTabs=!go())e.specialChars=new RegExp("\t|"+e.specialChars.source,fo);if(e.addSpecialChars)e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,fo);return e}});function vo(t={}){return[wo.of(t),yo()]}let bo=null;function yo(){return bo||(bo=Ut.fromClass(class{constructor(t){this.view=t;this.decorations=xt.none;this.decorationCache=Object.create(null);this.decorator=this.makeDecorator(t.state.facet(wo));this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new co({regexp:t.specialChars,decoration:(e,i,o)=>{let{doc:n}=i.state;let r=(0,s.codePointAt)(e[0],0);if(r==9){let t=n.lineAt(o);let e=i.state.tabSize,r=(0,s.countColumn)(t.text,e,o-t.from);return xt.replace({widget:new ko((e-r%e)*this.view.defaultCharacterWidth)})}return this.decorationCache[r]||(this.decorationCache[r]=xt.replace({widget:new Mo(t,r)}))},boundary:t.replaceTabs?undefined:/[^]/})}update(t){let e=t.state.facet(wo);if(t.startState.facet(wo)!=e){this.decorator=this.makeDecorator(e);this.decorations=this.decorator.createDeco(t.view)}else{this.decorations=this.decorator.updateDeco(t,this.decorations)}}},{decorations:t=>t.decorations}))}const So="•";function xo(t){if(t>=32)return So;if(t==10)return"";return String.fromCharCode(9216+t)}class Mo extends yt{constructor(t,e){super();this.options=t;this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=xo(this.code);let i=t.state.phrase("Control character")+" "+(po[this.code]||"0x"+this.code.toString(16));let s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let o=document.createElement("span");o.textContent=e;o.title=i;o.setAttribute("aria-label",i);o.className="cm-specialChar";return o}ignoreEvent(){return false}}class ko extends yt{constructor(t){super();this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");t.textContent="\t";t.className="cm-tab";t.style.width=this.width+"px";return t}ignoreEvent(){return false}}const Co=Ut.fromClass(class{constructor(){this.height=1e3;this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t;let i=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;if(i!=this.height){this.height=i;this.attrs={style:`padding-bottom: ${i}px`}}}});function Ao(){return[Co,Qt.of((t=>{var e;return((e=t.plugin(Co))===null||e===void 0?void 0:e.attrs)||null}))]}function Do(){return Oo}const To=xt.line({class:"cm-activeLine"});const Oo=Ut.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){if(t.docChanged||t.selectionSet)this.decorations=this.getDeco(t.view)}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);if(o.from>e){i.push(To.range(o.from));e=o.from}}return xt.set(i)}},{decorations:t=>t.decorations});class Eo extends yt{constructor(t){super();this.content=t}toDOM(){let t=document.createElement("span");t.className="cm-placeholder";t.style.pointerEvents="none";t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content);if(typeof this.content=="string")t.setAttribute("aria-label","placeholder "+this.content);else t.setAttribute("aria-hidden","true");return t}ignoreEvent(){return false}}function Ro(t){return Ut.fromClass(class{constructor(e){this.view=e;this.placeholder=xt.set([xt.widget({widget:new Eo(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?xt.none:this.placeholder}},{decorations:t=>t.decorations})}const Bo=2e3;function Lo(t,e,i){let o=Math.min(e.line,i.line),n=Math.max(e.line,i.line);let r=[];if(e.off>Bo||i.off>Bo||e.col<0||i.col<0){let l=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let e=o;e<=n;e++){let i=t.doc.line(e);if(i.length<=h)r.push(s.EditorSelection.range(i.from+l,i.to+h))}}else{let l=Math.min(e.col,i.col),h=Math.max(e.col,i.col);for(let e=o;e<=n;e++){let i=t.doc.line(e);let o=(0,s.findColumn)(i.text,l,t.tabSize,true);if(o<0){r.push(s.EditorSelection.cursor(i.to))}else{let e=(0,s.findColumn)(i.text,h,t.tabSize);r.push(s.EditorSelection.range(i.from+o,i.from+e))}}}return r}function Ho(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function Vo(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);let o=t.state.doc.lineAt(i),n=i-o.from;let r=n>Bo?-1:n==o.length?Ho(t,e.clientX):(0,s.countColumn)(o.text,t.state.tabSize,i-o.from);return{line:o.number,col:r,off:n}}function No(t,e){let i=Vo(t,e),o=t.state.selection;if(!i)return null;return{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from);let s=t.state.doc.lineAt(e);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)};o=o.map(t.changes)}},get(e,n,r){let l=Vo(t,e);if(!l)return o;let h=Lo(t.state,i,l);if(!h.length)return o;if(r)return s.EditorSelection.create(h.concat(o.ranges));else return s.EditorSelection.create(h)}}}function Po(t){let e=(t===null||t===void 0?void 0:t.eventFilter)||(t=>t.altKey&&t.button==0);return Ms.mouseSelectionStyle.of(((t,i)=>e(i)?No(t,i):null))}const Wo={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]};const Fo={style:"cursor: crosshair"};function zo(t={}){let[e,i]=Wo[t.key||"Alt"];let s=Ut.fromClass(class{constructor(t){this.view=t;this.isDown=false}set(t){if(this.isDown!=t){this.isDown=t;this.view.update([])}}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){if(t.keyCode==e||!i(t))this.set(false)},mousemove(t){this.set(i(t))}}});return[s,Ms.contentAttributes.of((t=>{var e;return((e=t.plugin(s))===null||e===void 0?void 0:e.isDown)?Fo:null}))]}const Io="-10000px";class qo{constructor(t,e,i){this.facet=e;this.createTooltipView=i;this.input=t.state.facet(e);this.tooltips=this.input.filter((t=>t));this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet);let s=i.filter((t=>t));if(i===this.input){for(let e of this.tooltipViews)if(e.update)e.update(t);return false}let o=[];for(let n=0;n<s.length;n++){let e=s[n],i=-1;if(!e)continue;for(let t=0;t<this.tooltips.length;t++){let s=this.tooltips[t];if(s&&s.create==e.create)i=t}if(i<0){o[n]=this.createTooltipView(e)}else{let e=o[n]=this.tooltipViews[i];if(e.update)e.update(t)}}for(let n of this.tooltipViews)if(o.indexOf(n)<0){n.dom.remove();(e=n.destroy)===null||e===void 0?void 0:e.call(n)}this.input=i;this.tooltips=s;this.tooltipViews=o;return true}}function Ko(t={}){return jo.of(t)}function Go(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const jo=s.Facet.define({combine:t=>{var e,i,s;return{position:it.ios?"absolute":((e=t.find((t=>t.position)))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find((t=>t.parent)))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((s=t.find((t=>t.tooltipSpace)))===null||s===void 0?void 0:s.tooltipSpace)||Go}}});const $o=Ut.fromClass(class{constructor(t){this.view=t;this.inView=true;this.lastTransaction=0;this.measureTimeout=-1;let e=t.state.facet(jo);this.position=e.position;this.parent=e.parent;this.classes=t.themeClasses;this.createContainer();this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this};this.manager=new qo(t,Xo,(t=>this.createTooltip(t)));this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver((t=>{if(Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1)this.measureSoon()}),{threshold:[1]}):null;this.observeIntersection();t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this));this.maybeMeasure()}createContainer(){if(this.parent){this.container=document.createElement("div");this.container.style.position="relative";this.container.className=this.view.themeClasses;this.parent.appendChild(this.container)}else{this.container=this.view.dom}}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){if(this.measureTimeout<0)this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1;this.maybeMeasure()}),50)}update(t){if(t.transactions.length)this.lastTransaction=Date.now();let e=this.manager.update(t);if(e)this.observeIntersection();let i=e||t.geometryChanged;let s=t.state.facet(jo);if(s.position!=this.position){this.position=s.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=true}if(s.parent!=this.parent){if(this.parent)this.container.remove();this.parent=s.parent;this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=true}else if(this.parent&&this.view.themeClasses!=this.classes){this.classes=this.container.className=this.view.themeClasses}if(i)this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);e.dom.classList.add("cm-tooltip");if(t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow";e.dom.appendChild(t)}e.dom.style.position=this.position;e.dom.style.top=Io;this.container.appendChild(e.dom);if(e.mount)e.mount(this.view);return e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews){i.dom.remove();(t=i.destroy)===null||t===void 0?void 0:t.call(i)}(e=this.intersectionObserver)===null||e===void 0?void 0:e.disconnect();clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(jo).tooltipSpace(this.view)}}writeMeasure(t){let{editor:e,space:i}=t;let s=[];for(let o=0;o<this.manager.tooltips.length;o++){let n=this.manager.tooltips[o],r=this.manager.tooltipViews[o],{dom:l}=r;let h=t.pos[o],a=t.size[o];if(!h||h.bottom<=Math.max(e.top,i.top)||h.top>=Math.min(e.bottom,i.bottom)||h.right<Math.max(e.left,i.left)-.1||h.left>Math.min(e.right,i.right)+.1){l.style.top=Io;continue}let c=n.arrow?r.dom.querySelector(".cm-tooltip-arrow"):null;let f=c?7:0;let d=a.right-a.left,u=a.bottom-a.top;let p=r.offset||Uo,m=this.view.textDirection==oe.LTR;let g=a.width>i.right-i.left?m?i.left:i.right-a.width:m?Math.min(h.left-(c?14:0)+p.x,i.right-d):Math.max(i.left,h.left-d+(c?14:0)-p.x);let w=!!n.above;if(!n.strictSide&&(w?h.top-(a.bottom-a.top)-p.y<i.top:h.bottom+(a.bottom-a.top)+p.y>i.bottom)&&w==i.bottom-h.bottom>h.top-i.top)w=!w;let v=(w?h.top-i.top:i.bottom-h.bottom)-f;if(v<u&&r.resize!==false){if(v<this.view.defaultLineHeight){l.style.top=Io;continue}l.style.height=(u=v)+"px"}else if(l.style.height){l.style.height=""}let b=w?h.top-u-f-p.y:h.bottom+f+p.y;let y=g+d;if(r.overlap!==true)for(let t of s)if(t.left<y&&t.right>g&&t.top<b+u&&t.bottom>b)b=w?t.top-u-2-f:t.bottom+f+2;if(this.position=="absolute"){l.style.top=b-t.parent.top+"px";l.style.left=g-t.parent.left+"px"}else{l.style.top=b+"px";l.style.left=g+"px"}if(c)c.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`;if(r.overlap!==true)s.push({left:g,top:b,right:y,bottom:b+u});l.classList.toggle("cm-tooltip-above",w);l.classList.toggle("cm-tooltip-below",!w);if(r.positioned)r.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length){if(this.view.inView)this.view.requestMeasure(this.measureReq);if(this.inView!=this.view.inView){this.inView=this.view.inView;if(!this.inView)for(let t of this.manager.tooltipViews)t.dom.style.top=Io}}}},{eventHandlers:{scroll(){this.maybeMeasure()}}});const _o=Ms.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}});const Uo={x:0,y:0};const Xo=s.Facet.define({enables:[$o,_o]});const Yo=s.Facet.define();class Qo{constructor(t){this.view=t;this.mounted=false;this.dom=document.createElement("div");this.dom.classList.add("cm-tooltip-hover");this.manager=new qo(t,Yo,(t=>this.createHostedView(t)))}static create(t){return new Qo(t)}createHostedView(t){let e=t.create(this.view);e.dom.classList.add("cm-tooltip-section");this.dom.appendChild(e.dom);if(this.mounted&&e.mount)e.mount(this.view);return e}mount(t){for(let e of this.manager.tooltipViews){if(e.mount)e.mount(t)}this.mounted=true}positioned(t){for(let e of this.manager.tooltipViews){if(e.positioned)e.positioned(t)}}update(t){this.manager.update(t)}}const Jo=Xo.compute([Yo],(t=>{let e=t.facet(Yo).filter((t=>t));if(e.length===0)return null;return{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.filter((t=>t.end!=null)).map((t=>t.end))),create:Qo.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class Zo{constructor(t,e,i,s,o){this.view=t;this.source=e;this.field=i;this.setHover=s;this.hoverTime=o;this.hoverTimeout=-1;this.restartTimeout=-1;this.pending=null;this.lastMove={x:0,y:0,target:t.dom,time:0};this.checkHover=this.checkHover.bind(this);t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this));t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){if(this.pending){this.pending=null;clearTimeout(this.restartTimeout);this.restartTimeout=setTimeout((()=>this.startHover()),20)}}get active(){return this.view.state.field(this.field)}checkHover(){this.hoverTimeout=-1;if(this.active)return;let t=Date.now()-this.lastMove.time;if(t<this.hoverTime)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t);else this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{lastMove:t}=this;let e=this.view.contentDOM.contains(t.target)?this.view.posAtCoords(t):null;if(e==null)return;let i=this.view.coordsAtPos(e);if(i==null||t.y<i.top||t.y>i.bottom||t.x<i.left-this.view.defaultCharacterWidth||t.x>i.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find((t=>t.from<=e&&t.to>=e));let o=s&&s.dir==oe.RTL?-1:1;let n=this.source(this.view,e,t.x<i.left?-o:o);if(n===null||n===void 0?void 0:n.then){let t=this.pending={pos:e};n.then((e=>{if(this.pending==t){this.pending=null;if(e)this.view.dispatch({effects:this.setHover.of(e)})}}),(t=>Gt(this.view.state,t,"hover tooltip")))}else if(n){this.view.dispatch({effects:this.setHover.of(n)})}}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()};if(this.hoverTimeout<0)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime);let i=this.active;if(i&&!tn(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=(e=i===null||i===void 0?void 0:i.end)!==null&&e!==void 0?e:s;if(s==o?this.view.posAtCoords(this.lastMove)!=s:!en(this.view,s,o,t.clientX,t.clientY,6)){this.view.dispatch({effects:this.setHover.of(null)});this.pending=null}}}mouseleave(t){clearTimeout(this.hoverTimeout);this.hoverTimeout=-1;if(this.active&&!tn(t.relatedTarget))this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout);this.view.dom.removeEventListener("mouseleave",this.mouseleave);this.view.dom.removeEventListener("mousemove",this.mousemove)}}function tn(t){for(let e=t;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return true;return false}function en(t,e,i,s,o,n){let r=document.createRange();let l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset);r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;c<a.length;c++){let t=a[c];let e=Math.max(t.top-o,o-t.bottom,t.left-s,s-t.right);if(e<=n)return true}return false}function sn(t,e={}){let i=s.StateEffect.define();let o=s.StateField.define({create(){return null},update(t,o){if(t&&(e.hideOnChange&&(o.docChanged||o.selection)||e.hideOn&&e.hideOn(o,t)))return null;if(t&&o.docChanged){let e=o.changes.mapPos(t.pos,-1,s.MapMode.TrackDel);if(e==null)return null;let i=Object.assign(Object.create(null),t);i.pos=e;if(t.end!=null)i.end=o.changes.mapPos(t.end);t=i}for(let e of o.effects){if(e.is(i))t=e.value;if(e.is(rn))t=null}return t},provide:t=>Yo.from(t)});return[o,Ut.define((s=>new Zo(s,t,o,i,e.hoverTime||300))),Jo]}function on(t,e){let i=t.plugin($o);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}function nn(t){return t.facet(Yo).some((t=>t))}const rn=s.StateEffect.define();const ln=rn.of(null);function hn(t){var e;(e=t.plugin($o))===null||e===void 0?void 0:e.maybeMeasure()}const an=s.Facet.define({combine(t){let e,i;for(let s of t){e=e||s.topContainer;i=i||s.bottomContainer}return{topContainer:e,bottomContainer:i}}});function cn(t){return t?[an.of(t)]:[]}function fn(t,e){let i=t.plugin(dn);let s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}const dn=Ut.fromClass(class{constructor(t){this.input=t.state.facet(mn);this.specs=this.input.filter((t=>t));this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(an);this.top=new un(t,true,e.topContainer);this.bottom=new un(t,false,e.bottomContainer);this.top.sync(this.panels.filter((t=>t.top)));this.bottom.sync(this.panels.filter((t=>!t.top)));for(let i of this.panels){i.dom.classList.add("cm-panel");if(i.mount)i.mount()}}update(t){let e=t.state.facet(an);if(this.top.container!=e.topContainer){this.top.sync([]);this.top=new un(t.view,true,e.topContainer)}if(this.bottom.container!=e.bottomContainer){this.bottom.sync([]);this.bottom=new un(t.view,false,e.bottomContainer)}this.top.syncClasses();this.bottom.syncClasses();let i=t.state.facet(mn);if(i!=this.input){let e=i.filter((t=>t));let s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;if(e<0){l=i(t.view);r.push(l)}else{l=this.panels[e];if(l.update)l.update(t)}s.push(l);(l.top?o:n).push(l)}this.specs=e;this.panels=s;this.top.sync(o);this.bottom.sync(n);for(let t of r){t.dom.classList.add("cm-panel");if(t.mount)t.mount()}}else{for(let e of this.panels)if(e.update)e.update(t)}}destroy(){this.top.sync([]);this.bottom.sync([])}},{provide:t=>Ms.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class un{constructor(t,e,i){this.view=t;this.top=e;this.container=i;this.dom=undefined;this.classes="";this.panels=[];this.syncClasses()}sync(t){for(let e of this.panels)if(e.destroy&&t.indexOf(e)<0)e.destroy();this.panels=t;this.syncDOM()}syncDOM(){if(this.panels.length==0){if(this.dom){this.dom.remove();this.dom=undefined}return}if(!this.dom){this.dom=document.createElement("div");this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels){if(e.dom.parentNode==this.dom){while(t!=e.dom)t=pn(t);t=t.nextSibling}else{this.dom.insertBefore(e.dom,t)}}while(t)t=pn(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!this.container||this.classes==this.view.themeClasses)return;for(let t of this.classes.split(" "))if(t)this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))if(t)this.container.classList.add(t)}}function pn(t){let e=t.nextSibling;t.remove();return e}const mn=s.Facet.define({enables:dn});class gn extends s.RangeValue{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return false}destroy(t){}}gn.prototype.elementClass="";gn.prototype.toDOM=undefined;gn.prototype.mapMode=s.MapMode.TrackBefore;gn.prototype.startSide=gn.prototype.endSide=-1;gn.prototype.point=true;const wn=s.Facet.define();const vn={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>s.RangeSet.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}};const bn=s.Facet.define();function yn(t){return[xn(),bn.of(Object.assign(Object.assign({},vn),t))]}const Sn=s.Facet.define({combine:t=>t.some((t=>t))});function xn(t){let e=[Mn];if(t&&t.fixed===false)e.push(Sn.of(true));return e}const Mn=Ut.fromClass(class{constructor(t){this.view=t;this.prevViewport=t.viewport;this.dom=document.createElement("div");this.dom.className="cm-gutters";this.dom.setAttribute("aria-hidden","true");this.dom.style.minHeight=this.view.contentHeight+"px";this.gutters=t.state.facet(bn).map((e=>new Dn(t,e)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Sn);if(this.fixed){this.dom.style.position="sticky"}this.syncGutters(false);t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport;let s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}if(t.geometryChanged)this.dom.style.minHeight=this.view.contentHeight+"px";if(this.view.state.facet(Sn)!=!this.fixed){this.fixed=!this.fixed;this.dom.style.position=this.fixed?"sticky":""}this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;if(t)this.dom.remove();let i=s.RangeSet.iter(this.view.state.facet(wn),this.view.viewport.from);let o=[];let n=this.gutters.map((t=>new An(t,this.view.viewport,-this.view.documentPadding.top)));for(let s of this.view.viewportLineBlocks){let t;if(Array.isArray(s.type)){for(let e of s.type)if(e.type==St.Text){t=e;break}}else{t=s.type==St.Text?s:undefined}if(!t)continue;if(o.length)o=[];Cn(i,o,s.from);for(let e of n)e.line(this.view,t,o)}for(let s of n)s.finish();if(t)this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(bn),i=t.state.facet(bn);let o=t.docChanged||t.heightChanged||t.viewportChanged||!s.RangeSet.eq(t.startState.facet(wn),t.state.facet(wn),t.view.viewport.from,t.view.viewport.to);if(e==i){for(let e of this.gutters)if(e.update(t))o=true}else{o=true;let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new Dn(this.view,o))}else{this.gutters[i].update(t);s.push(this.gutters[i])}}for(let t of this.gutters){t.dom.remove();if(s.indexOf(t)<0)t.destroy()}for(let t of s)this.dom.appendChild(t.dom);this.gutters=s}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Ms.scrollMargins.of((e=>{let i=e.plugin(t);if(!i||i.gutters.length==0||!i.fixed)return null;return e.textDirection==oe.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}}))});function kn(t){return Array.isArray(t)?t:[t]}function Cn(t,e,i){while(t.value&&t.from<=i){if(t.from==i)e.push(t.value);t.next()}}class An{constructor(t,e,i){this.gutter=t;this.height=i;this.i=0;this.cursor=s.RangeSet.iter(t.markers,e.from)}line(t,e,i){let s=[];Cn(this.cursor,s,e.from);if(i.length)s=s.concat(i);let o=this.gutter.config.lineMarker(t,e,s);if(o)s.unshift(o);let n=this.gutter;if(s.length==0&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let i=new Tn(t,e.height,r,s);n.elements.push(i);n.dom.appendChild(i.dom)}else{n.elements[this.i].update(t,e.height,r,s)}this.height=e.bottom;this.i++}finish(){let t=this.gutter;while(t.elements.length>this.i){let e=t.elements.pop();t.dom.removeChild(e.dom);e.destroy()}}}class Dn{constructor(t,e){this.view=t;this.config=e;this.elements=[];this.spacer=null;this.dom=document.createElement("div");this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers){this.dom.addEventListener(i,(s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){while(o.parentNode!=this.dom)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else{n=s.clientY}let r=t.lineBlockAtHeight(n-t.documentTop);if(e.domEventHandlers[i](t,r,s))s.preventDefault()}))}this.markers=kn(e.markers(t));if(e.initialSpacer){this.spacer=new Tn(t,0,0,[e.initialSpacer(t)]);this.dom.appendChild(this.spacer.dom);this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none"}}update(t){let e=this.markers;this.markers=kn(this.config.markers(t.view));if(this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);if(e!=this.spacer.markers[0])this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!s.RangeSet.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):false)}destroy(){for(let t of this.elements)t.destroy()}}class Tn{constructor(t,e,i,s){this.height=-1;this.above=0;this.markers=[];this.dom=document.createElement("div");this.dom.className="cm-gutterElement";this.update(t,e,i,s)}update(t,e,i,s){if(this.height!=e)this.dom.style.height=(this.height=e)+"px";if(this.above!=i)this.dom.style.marginTop=(this.above=i)?i+"px":"";if(!On(this.markers,s))this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,n=0;;){let r=n,l=o<e.length?e[o++]:null,h=false;if(l){let t=l.elementClass;if(t)i+=" "+t;for(let e=n;e<this.markers.length;e++)if(this.markers[e].compare(l)){r=e;h=true;break}}else{r=this.markers.length}while(n<r){let t=this.markers[n++];if(t.toDOM){t.destroy(s);let e=s.nextSibling;s.remove();s=e}}if(!l)break;if(l.toDOM){if(h)s=s.nextSibling;else this.dom.insertBefore(l.toDOM(t),s)}if(h)n++}this.dom.className=i;this.markers=e}destroy(){this.setMarkers(null,[])}}function On(t,e){if(t.length!=e.length)return false;for(let i=0;i<t.length;i++)if(!t[i].compare(e[i]))return false;return true}const En=s.Facet.define();const Rn=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let s in e){let t=i[s],o=e[s];i[s]=t?(e,i,s)=>t(e,i,s)||o(e,i,s):o}return i}})}});class Bn extends gn{constructor(t){super();this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function Ln(t,e){return t.state.facet(Rn).formatNumber(e,t.state)}const Hn=bn.compute([Rn],(t=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(t){return t.state.facet(En)},lineMarker(t,e,i){if(i.some((t=>t.toDOM)))return null;return new Bn(Ln(t,t.state.doc.lineAt(e.from).number))},lineMarkerChange:t=>t.startState.facet(Rn)!=t.state.facet(Rn),initialSpacer(t){return new Bn(Ln(t,Nn(t.state.doc.lines)))},updateSpacer(t,e){let i=Ln(e.view,Nn(e.view.state.doc.lines));return i==t.number?t:new Bn(i)},domEventHandlers:t.facet(Rn).domEventHandlers})));function Vn(t={}){return[Rn.of(t),xn(),Hn]}function Nn(t){let e=9;while(e<t)e=e*10+9;return e}const Pn=new class extends gn{constructor(){super(...arguments);this.elementClass="cm-activeLineGutter"}};const Wn=wn.compute(["selection"],(t=>{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;if(o>i){i=o;e.push(Pn.range(o))}}return s.RangeSet.of(e)}));function Fn(){return Wn}const zn=new Map;function In(t){let e=zn.get(t);if(!e)zn.set(t,e=xt.mark({attributes:t==="\t"?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":t.replace(/ /g,"·")}}));return e}function qn(t){return Ut.define((e=>({decorations:t.createDeco(e),update(e){this.decorations=t.updateDeco(e,this.decorations)}})),{decorations:t=>t.decorations})}const Kn=qn(new co({regexp:/\t| +/g,decoration:t=>In(t[0]),boundary:/\S/}));function Gn(){return Kn}const jn=qn(new co({regexp:/\s+$/g,decoration:xt.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function $n(){return jn}const _n={HeightMap:Ni,HeightOracle:Ri,MeasuredHeights:Bi,QueryType:Hi,ChangedRange:ie,computeOrder:ge,moveVisually:be}}}]);
|
2
|
+
//# sourceMappingURL=4986.04c2fe2a543c02880ba9.js.map?v=04c2fe2a543c02880ba9
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6888],{16888:(t,e,n)=>{n.d(e,{Be:()=>P,Dv:()=>st,Gn:()=>U,K0:()=>R,Qf:()=>Bt,R_:()=>jt,SQ:()=>g,SS:()=>V,Um:()=>Zt,a0:()=>Kt,c:()=>L,c6:()=>N,il:()=>oe,kU:()=>p,l:()=>v,mi:()=>Ot,n$:()=>Qt,nF:()=>Lt,nY:()=>et,pp:()=>d,qp:()=>k,qz:()=>w,ri:()=>I,tC:()=>Z,uj:()=>W,vw:()=>K,x0:()=>rt,y1:()=>F,ze:()=>X});var r=n(72104);var s=n(37496);var i=n.n(s);var o=n(48839);var a=n.n(o);var l=n(96006);var h=n.n(l);var u=n(67737);var f=n.n(u);var c;const d=new r.md;function p(t){return s.Facet.define({combine:t?e=>e.concat(t):undefined})}class g{constructor(t,e,n=[],r=""){this.data=t;this.name=r;if(!s.EditorState.prototype.hasOwnProperty("tree"))Object.defineProperty(s.EditorState.prototype,"tree",{get(){return w(this)}});this.parser=e;this.extension=[B.of(this),s.EditorState.languageData.of(((t,e,n)=>t.facet(m(t,e,n))))].concat(n)}isActiveAt(t,e,n=-1){return m(t,e,n)==this.data}findRegions(t){let e=t.facet(B);if((e===null||e===void 0?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[];let s=(t,e)=>{if(t.prop(d)==this.data){n.push({from:e,to:e+t.length});return}let i=t.prop(r.md.mounted);if(i){if(i.tree.prop(d)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}else if(i.overlay){let t=n.length;s(i.tree,i.overlay[0].from+e);if(n.length>t)return}}for(let n=0;n<t.children.length;n++){let i=t.children[n];if(i instanceof r.mp)s(i,t.positions[n]+e)}};s(w(t),0);return n}get allowsNesting(){return true}}g.setState=s.StateEffect.define();function m(t,e,n){let s=t.facet(B);if(!s)return null;let i=s.data;if(s.allowsNesting){for(let s=w(t).topNode;s;s=s.enter(e,n,r.vj.ExcludeBuffers))i=s.type.prop(d)||i}return i}class k extends g{constructor(t,e,n){super(t,e,[],n);this.parser=e}static define(t){let e=p(t.languageData);return new k(e,t.parser.configure({props:[d.add((t=>t.isTop?e:undefined))]}),t.name)}configure(t,e){return new k(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function w(t){let e=t.field(g.state,false);return e?e.tree:r.mp.empty}function v(t,e,n=50){var r;let s=(r=t.field(g.state,false))===null||r===void 0?void 0:r.context;if(!s)return null;let i=s.viewport;s.updateViewport({from:0,to:e});let o=s.isDone(e)||s.work(n,e)?s.tree:null;s.updateViewport(i);return o}function b(t,e=t.doc.length){var n;return((n=t.field(g.state,false))===null||n===void 0?void 0:n.context.isDone(e))||false}function x(t,e=t.viewport.to,n=100){let r=v(t.state,e,n);if(r!=w(t.state))t.dispatch({});return!!r}function y(t){var e;return((e=t.plugin(E))===null||e===void 0?void 0:e.isWorking())||false}class S{constructor(t,e=t.length){this.doc=t;this.length=e;this.cursorPos=0;this.string="";this.cursor=t.iter()}syncTo(t){this.string=this.cursor.next(t-this.cursorPos).value;this.cursorPos=t+this.string.length;return this.cursorPos-this.string.length}chunk(t){this.syncTo(t);return this.string}get lineChunks(){return true}read(t,e){let n=this.cursorPos-this.string.length;if(t<n||e>=this.cursorPos)return this.doc.sliceString(t,e);else return this.string.slice(t-n,e-n)}}let A=null;class P{constructor(t,e,n=[],r,s,i,o,a){this.parser=t;this.state=e;this.fragments=n;this.tree=r;this.treeLen=s;this.viewport=i;this.skipped=o;this.scheduleOn=a;this.parse=null;this.tempSkipped=[]}static create(t,e,n){return new P(t,e,[],r.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new S(this.state.doc),this.fragments)}work(t,e){if(e!=null&&e>=this.state.doc.length)e=undefined;if(this.tree!=r.mp.empty&&this.isDone(e!==null&&e!==void 0?e:this.state.doc.length)){this.takeTree();return true}return this.withContext((()=>{var n;if(typeof t=="number"){let e=Date.now()+t;t=()=>Date.now()>e}if(!this.parse)this.parse=this.startParse();if(e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e<this.state.doc.length)this.parse.stopAt(e);for(;;){let s=this.parse.advance();if(s){this.fragments=this.withoutTempSkipped(r.i9.addTree(s,this.fragments,this.parse.stoppedAt!=null));this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length;this.tree=s;this.parse=null;if(this.treeLen<(e!==null&&e!==void 0?e:this.state.doc.length))this.parse=this.startParse();else return true}if(t())return false}}))}takeTree(){let t,e;if(this.parse&&(t=this.parse.parsedPos)>=this.treeLen){if(this.parse.stoppedAt==null||this.parse.stoppedAt>t)this.parse.stopAt(t);this.withContext((()=>{while(!(e=this.parse.advance())){}}));this.treeLen=t;this.tree=e;this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,true));this.parse=null}}withContext(t){let e=A;A=this;try{return t()}finally{A=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=C(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:s,treeLen:i,viewport:o,skipped:a}=this;this.takeTree();if(!t.empty){let e=[];t.iterChangedRanges(((t,n,r,s)=>e.push({fromA:t,toA:n,fromB:r,toB:s})));n=r.i9.applyChanges(n,e);s=r.mp.empty;i=0;o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)};if(this.skipped.length){a=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);if(n<r)a.push({from:n,to:r})}}}return new P(this.parser,e,n,s,i,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return false;this.viewport=t;let e=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:e,to:r}=this.skipped[n];if(e<t.to&&r>t.from){this.fragments=C(this.fragments,e,r);this.skipped.splice(n--,1)}}if(this.skipped.length>=e)return false;this.reset();return true}reset(){if(this.parse){this.takeTree();this.parse=null}}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r._b{createParse(e,n,s){let i=s[0].from,o=s[s.length-1].to;let a={parsedPos:i,advance(){let e=A;if(e){for(let t of s)e.tempSkipped.push(t);if(t)e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t}this.parsedPos=o;return new r.mp(r.Jq.none,[],[],o-i)},stoppedAt:null,stopAt(){}};return a}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return A}}function C(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class D{constructor(t){this.context=t;this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state);let n=this.context.treeLen==t.startState.doc.length?undefined:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);if(!e.work(20,n))e.takeTree();return new D(e)}static init(t){let e=Math.min(3e3,t.doc.length);let n=P.create(t.facet(B).parser,t,{from:0,to:e});if(!n.work(20,e))n.takeTree();return new D(n)}}g.state=s.StateField.define({create:D.init,update(t,e){for(let n of e.effects)if(n.is(g.setState))return n.value;if(e.startState.facet(B)!=e.state.facet(B))return D.init(e.state);return t.apply(e)}});let T=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};if(typeof requestIdleCallback!="undefined")T=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:500-100})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)};const O=typeof navigator!="undefined"&&((c=navigator.scheduling)===null||c===void 0?void 0:c.isInputPending)?()=>navigator.scheduling.isInputPending():null;const E=o.ViewPlugin.fromClass(class t{constructor(t){this.view=t;this.working=null;this.workScheduled=0;this.chunkEnd=-1;this.chunkBudget=-1;this.work=this.work.bind(this);this.scheduleWork()}update(t){let e=this.view.state.field(g.state).context;if(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)this.scheduleWork();if(t.docChanged){if(this.view.hasFocus)this.chunkBudget+=50;this.scheduleWork()}this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(g.state);if(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))this.working=T(this.work)}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)){this.chunkEnd=e+3e4;this.chunkBudget=3e3}if(this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,s=n.field(g.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,t&&!O?Math.max(25,t.timeRemaining()-5):1e9);let o=s.context.treeLen<r&&n.doc.length>r+1e3;let a=s.context.work((()=>O&&O()||Date.now()>i),r+(o?0:1e5));this.chunkBudget-=Date.now()-e;if(a||this.chunkBudget<=0){s.context.takeTree();this.view.dispatch({effects:g.setState.of(new D(s.context))})}if(this.chunkBudget>0&&!(a&&!o))this.scheduleWork();this.checkAsyncSchedule(s.context)}checkAsyncSchedule(t){if(t.scheduleOn){this.workScheduled++;t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>(0,o.logException)(this.view.state,t))).then((()=>this.workScheduled--));t.scheduleOn=null}}destroy(){if(this.working)this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}});const B=s.Facet.define({combine(t){return t.length?t[0]:null},enables:t=>[g.state,E,o.EditorView.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class I{constructor(t,e=[]){this.language=t;this.support=e;this.extension=[t,e]}}class N{constructor(t,e,n,r,s,i=undefined){this.name=t;this.alias=e;this.extensions=n;this.filename=r;this.loadFunc=s;this.support=i;this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((t=>this.support=t),(t=>{this.loading=null;throw t})))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new N(t.name,(t.alias||[]).concat(t.name).map((t=>t.toLowerCase())),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let r of t)if(r.filename&&r.filename.test(e))return r;let n=/\.([^.]+)$/.exec(e);if(n)for(let r of t)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(t,e,n=true){e=e.toLowerCase();for(let r of t)if(r.alias.some((t=>t==e)))return r;if(n)for(let r of t)for(let t of r.alias){let n=e.indexOf(t);if(n>-1&&(t.length>2||!/\w/.test(e[n-1])&&!/\w/.test(e[n+t.length])))return r}return null}}const M=s.Facet.define();const L=s.Facet.define({combine:t=>{if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function F(t){let e=t.facet(L);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function V(t,e){let n="",r=t.tabSize;if(t.facet(L).charCodeAt(0)==9)while(e>=r){n+="\t";e-=r}for(let s=0;s<e;s++)n+=" ";return n}function R(t,e){if(t instanceof s.EditorState)t=new U(t);for(let r of t.state.facet(M)){let n=r(t,e);if(n!==undefined)return n}let n=w(t.state);return n?$(t,n,e):null}function j(t,e,n){let r=Object.create(null);let s=new U(t,{overrideIndentation:t=>{var e;return(e=r[t])!==null&&e!==void 0?e:-1}});let i=[];for(let o=e;o<=n;){let e=t.doc.lineAt(o);o=e.to+1;let n=R(s,e.from);if(n==null)continue;if(!/\S/.test(e.text))n=0;let a=/^\s*/.exec(e.text)[0];let l=V(t,n);if(a!=l){r[e.from]=n;i.push({from:e.from,to:e.from+a.length,insert:l})}}return t.changes(i)}class U{constructor(t,e={}){this.state=t;this.options=e;this.unit=F(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t);let{simulateBreak:r,simulateDoubleBreak:s}=this.options;if(r!=null&&r>=n.from&&r<=n.to){if(s&&r==t)return{text:"",from:t};else if(e<0?r<t:r<=t)return{text:n.text.slice(r-n.from),from:r};else return{text:n.text.slice(0,r-n.from),from:n.from}}return n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e);let s=this.countColumn(n,t-r);let i=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;if(i>-1)s+=i-this.countColumn(n,n.search(/\S|$/));return s}countColumn(t,e=t.length){return(0,s.countColumn)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e);let s=this.options.overrideIndentation;if(s){let t=s(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const W=new r.md;function $(t,e,n){return _(e.resolveInner(n).enterUnfinishedNodesBefore(n),n,t)}function q(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function z(t){let e=t.type.prop(W);if(e)return e;let n=t.firstChild,s;if(n&&(s=n.type.prop(r.md.closedBy))){let e=t.lastChild,n=e&&s.indexOf(e.name)>-1;return t=>Y(t,true,1,undefined,n&&!q(t)?e.from:undefined)}return t.parent==null?J:null}function _(t,e,n){for(;t;t=t.parent){let r=z(t);if(r)return r(G.create(n,e,t))}return null}function J(){return 0}class G extends U{constructor(t,e,n){super(t.state,t.options);this.base=t;this.pos=e;this.node=n}static create(t,e,n){return new G(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let t=this.state.doc.lineAt(this.node.from);for(;;){let e=this.node.resolve(t.from);while(e.parent&&e.parent.from==e.from)e=e.parent;if(H(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}continue(){let t=this.node.parent;return t?_(t,this.pos,this.base):0}}function H(t,e){for(let n=e;n;n=n.parent)if(t==n)return true;return false}function Q(t){let e=t.node;let n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let s=t.options.simulateBreak;let i=t.state.doc.lineAt(n.from);let o=s==null||s<=i.from?i.to:Math.min(i.to,s);for(let a=n.to;;){let t=e.childAfter(a);if(!t||t==r)return null;if(!t.type.isSkipped)return t.from<o?n:null;a=t.to}}function K({closing:t,align:e=true,units:n=1}){return r=>Y(r,e,n,t)}function Y(t,e,n,r,s){let i=t.textAfter,o=i.match(/^\s*/)[0].length;let a=r&&i.slice(o,o+r.length)==r||s==t.pos+o;let l=e?Q(t):null;if(l)return a?t.column(l.from):t.column(l.to);return t.baseIndent+(a?0:t.unit*n)}const X=t=>t.baseIndent;function Z({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const tt=200;function et(){return s.EditorState.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,s=n.lineAt(r);if(r>s.from+tt)return t;let i=n.sliceString(s.from,r);if(!e.some((t=>t.test(i))))return t;let{state:o}=t,a=-1,l=[];for(let{head:h}of o.selection.ranges){let t=o.doc.lineAt(h);if(t.from==a)continue;a=t.from;let e=R(o,t.from);if(e==null)continue;let n=/^\s*/.exec(t.text)[0];let r=V(o,e);if(n!=r)l.push({from:t.from,to:t.from+n.length,insert:r})}return l.length?[t,{changes:l,sequential:true}]:t}))}const nt=s.Facet.define();const rt=new r.md;function st(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function it(t,e,n){let r=w(t);if(r.length<n)return null;let s=r.resolveInner(n,1);let i=null;for(let o=s;o;o=o.parent){if(o.to<=n||o.from>n)continue;if(i&&o.from<e)break;let s=o.type.prop(rt);if(s&&(o.to<r.length-50||r.length==t.doc.length||!ot(o))){let r=s(o,t);if(r&&r.from<=n&&r.from>=e&&r.to>n)i=r}}return i}function ot(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function at(t,e,n){for(let r of t.facet(nt)){let s=r(t,e,n);if(s)return s}return it(t,e,n)}function lt(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?undefined:{from:n,to:r}}const ht=s.StateEffect.define({map:lt});const ut=s.StateEffect.define({map:lt});function ft(t){let e=[];for(let{head:n}of t.state.selection.ranges){if(e.some((t=>t.from<=n&&t.to>=n)))continue;e.push(t.lineBlockAt(n))}return e}const ct=s.StateField.define({create(){return o.Decoration.none},update(t,e){t=t.map(e.changes);for(let n of e.effects){if(n.is(ht)&&!gt(t,n.value.from,n.value.to))t=t.update({add:[Ct.range(n.value.from,n.value.to)]});else if(n.is(ut))t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to})}if(e.selection){let n=false,{head:r}=e.selection.main;t.between(r,r,((t,e)=>{if(t<r&&e>r)n=true}));if(n)t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r})}return t},provide:t=>o.EditorView.decorations.from(t),toJSON(t,e){let n=[];t.between(0,e.doc.length,((t,e)=>{n.push(t,e)}));return n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],s=t[n++];if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(Ct.range(r,s))}return o.Decoration.set(e,true)}});function dt(t){return t.field(ct,false)||RangeSet.empty}function pt(t,e,n){var r;let s=null;(r=t.field(ct,false))===null||r===void 0?void 0:r.between(e,n,((t,e)=>{if(!s||s.from>t)s={from:t,to:e}}));return s}function gt(t,e,n){let r=false;t.between(e,e,((t,s)=>{if(t==e&&s==n)r=true}));return r}function mt(t,e){return t.field(ct,false)?e:e.concat(s.StateEffect.appendConfig.of(Pt()))}const kt=t=>{for(let e of ft(t)){let n=at(t.state,e.from,e.to);if(n){t.dispatch({effects:mt(t.state,[ht.of(n),vt(t,n)])});return true}}return false};const wt=t=>{if(!t.state.field(ct,false))return false;let e=[];for(let n of ft(t)){let r=pt(t.state,n.from,n.to);if(r)e.push(ut.of(r),vt(t,r,false))}if(e.length)t.dispatch({effects:e});return e.length>0};function vt(t,e,n=true){let r=t.state.doc.lineAt(e.from).number,s=t.state.doc.lineAt(e.to).number;return o.EditorView.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${s}.`)}const bt=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let s=t.lineBlockAt(r),i=at(e,s.from,s.to);if(i)n.push(ht.of(i));r=(i?t.lineBlockAt(i.to):s).to+1}if(n.length)t.dispatch({effects:mt(t.state,n)});return!!n.length};const xt=t=>{let e=t.state.field(ct,false);if(!e||!e.size)return false;let n=[];e.between(0,t.state.doc.length,((t,e)=>{n.push(ut.of({from:t,to:e}))}));t.dispatch({effects:n});return true};const yt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:kt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:wt},{key:"Ctrl-Alt-[",run:bt},{key:"Ctrl-Alt-]",run:xt}];const St={placeholderDOM:null,placeholderText:"…"};const At=s.Facet.define({combine(t){return(0,s.combineConfig)(t,St)}});function Pt(t){let e=[ct,Et];if(t)e.push(At.of(t));return e}const Ct=o.Decoration.replace({widget:new class extends o.WidgetType{toDOM(t){let{state:e}=t,n=e.facet(At);let r=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target));let r=pt(t.state,n.from,n.to);if(r)t.dispatch({effects:ut.of(r)});e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r);let s=document.createElement("span");s.textContent=n.placeholderText;s.setAttribute("aria-label",e.phrase("folded code"));s.title=e.phrase("unfold");s.className="cm-foldPlaceholder";s.onclick=r;return s}}});const Dt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class Tt extends o.GutterMarker{constructor(t,e){super();this.config=t;this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");e.textContent=this.open?this.config.openText:this.config.closedText;e.title=t.state.phrase(this.open?"Fold line":"Unfold line");return e}}function Ot(t={}){let e=Object.assign(Object.assign({},Dt),t);let n=new Tt(e,true),r=new Tt(e,false);let i=o.ViewPlugin.fromClass(class{constructor(t){this.from=t.viewport.from;this.markers=this.buildMarkers(t)}update(t){if(t.docChanged||t.viewportChanged||t.startState.facet(B)!=t.state.facet(B)||t.startState.field(ct,false)!=t.state.field(ct,false)||w(t.startState)!=w(t.state)||e.foldingChanged(t))this.markers=this.buildMarkers(t.view)}buildMarkers(t){let e=new s.RangeSetBuilder;for(let s of t.viewportLineBlocks){let i=pt(t.state,s.from,s.to)?r:at(t.state,s.from,s.to)?n:null;if(i)e.add(s.from,s.from,i)}return e.finish()}});let{domEventHandlers:a}=e;return[i,(0,o.gutter)({class:"cm-foldGutter",markers(t){var e;return((e=t.plugin(i))===null||e===void 0?void 0:e.markers)||s.RangeSet.empty},initialSpacer(){return new Tt(e,false)},domEventHandlers:Object.assign(Object.assign({},a),{click:(t,e,n)=>{if(a.click&&a.click(t,e,n))return true;let r=pt(t.state,e.from,e.to);if(r){t.dispatch({effects:ut.of(r)});return true}let s=at(t.state,e.from,e.to);if(s){t.dispatch({effects:ht.of(s)});return true}return false}})}),Pt()]}const Et=o.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Bt{constructor(t,e){this.specs=t;let n;function r(t){let e=u.StyleModule.newName();(n||(n=Object.create(null)))["."+e]=t;return e}const s=typeof e.all=="string"?e.all:e.all?r(e.all):undefined;const i=e.scope;this.scope=i instanceof g?t=>t.prop(d)==i.data:i?t=>t==i:undefined;this.style=(0,l.tagHighlighter)(t.map((t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))}))),{all:s}).style;this.module=n?new u.StyleModule(n):null;this.themeType=e.themeType}static define(t,e){return new Bt(t,e||{})}}const It=s.Facet.define();const Nt=s.Facet.define({combine(t){return t.length?[t[0]]:null}});function Mt(t){let e=t.facet(It);return e.length?e:t.facet(Nt)}function Lt(t,e){let n=[Rt],r;if(t instanceof Bt){if(t.module)n.push(o.EditorView.styleModule.of(t.module));r=t.themeType}if(e===null||e===void 0?void 0:e.fallback)n.push(Nt.of(t));else if(r)n.push(It.computeN([o.EditorView.darkTheme],(e=>e.facet(o.EditorView.darkTheme)==(r=="dark")?[t]:[])));else n.push(It.of(t));return n}function Ft(t,e,n){let r=Mt(t);let s=null;if(r)for(let i of r){if(!i.scope||n&&i.scope(n)){let t=i.style(e);if(t)s=s?s+" "+t:t}}return s}class Vt{constructor(t){this.markCache=Object.create(null);this.tree=w(t.state);this.decorations=this.buildDeco(t,Mt(t.state))}update(t){let e=w(t.state),n=Mt(t.state);let r=n!=Mt(t.startState);if(e.length<t.view.viewport.to&&!r&&e.type==this.tree.type){this.decorations=this.decorations.map(t.changes)}else if(e!=this.tree||t.viewportChanged||r){this.tree=e;this.decorations=this.buildDeco(t.view,n)}}buildDeco(t,e){if(!e||!this.tree.length)return o.Decoration.none;let n=new s.RangeSetBuilder;for(let{from:r,to:s}of t.visibleRanges){(0,l.highlightTree)(this.tree,e,((t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=o.Decoration.mark({class:r})))}),r,s)}return n.finish()}}const Rt=s.Prec.high(o.ViewPlugin.fromClass(Vt,{decorations:t=>t.decorations}));const jt=Bt.define([{tag:l.tags.meta,color:"#404740"},{tag:l.tags.link,textDecoration:"underline"},{tag:l.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.tags.emphasis,fontStyle:"italic"},{tag:l.tags.strong,fontWeight:"bold"},{tag:l.tags.strikethrough,textDecoration:"line-through"},{tag:l.tags.keyword,color:"#708"},{tag:[l.tags.atom,l.tags.bool,l.tags.url,l.tags.contentSeparator,l.tags.labelName],color:"#219"},{tag:[l.tags.literal,l.tags.inserted],color:"#164"},{tag:[l.tags.string,l.tags.deleted],color:"#a11"},{tag:[l.tags.regexp,l.tags.escape,l.tags.special(l.tags.string)],color:"#e40"},{tag:l.tags.definition(l.tags.variableName),color:"#00f"},{tag:l.tags.local(l.tags.variableName),color:"#30a"},{tag:[l.tags.typeName,l.tags.namespace],color:"#085"},{tag:l.tags.className,color:"#167"},{tag:[l.tags.special(l.tags.variableName),l.tags.macroName],color:"#256"},{tag:l.tags.definition(l.tags.propertyName),color:"#00c"},{tag:l.tags.comment,color:"#940"},{tag:l.tags.invalid,color:"#f00"}]);const Ut=o.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}});const Wt=1e4,$t="()[]{}";const qt=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{afterCursor:true,brackets:$t,maxScanDistance:Wt,renderMatch:Jt})}});const zt=o.Decoration.mark({class:"cm-matchingBracket"}),_t=o.Decoration.mark({class:"cm-nonmatchingBracket"});function Jt(t){let e=[];let n=t.matched?zt:_t;e.push(n.range(t.start.from,t.start.to));if(t.end)e.push(n.range(t.end.from,t.end.to));return e}const Gt=s.StateField.define({create(){return o.Decoration.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[];let r=e.state.facet(qt);for(let s of e.state.selection.ranges){if(!s.empty)continue;let t=Zt(e.state,s.head,-1,r)||s.head>0&&Zt(e.state,s.head-1,1,r)||r.afterCursor&&(Zt(e.state,s.head,1,r)||s.head<e.state.doc.length&&Zt(e.state,s.head+1,-1,r));if(t)n=n.concat(r.renderMatch(t,e.state))}return o.Decoration.set(n,true)},provide:t=>o.EditorView.decorations.from(t)});const Ht=[Gt,Ut];function Qt(t={}){return[qt.of(t),Ht]}const Kt=new r.md;function Yt(t,e,n){let s=t.prop(e<0?r.md.openedBy:r.md.closedBy);if(s)return s;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function Xt(t){let e=t.type.prop(Kt);return e?e(t.node):t}function Zt(t,e,n,r={}){let s=r.maxScanDistance||Wt,i=r.brackets||$t;let o=w(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let r=Yt(l.type,n,i);if(r&&l.from<l.to){let s=Xt(l);if(s&&(n>0?e>=s.from&&e<s.to:e>s.from&&e<=s.to))return te(t,e,n,l,s,r,i)}}return ee(t,e,n,o,a.type,s,i)}function te(t,e,n,r,s,i,o){let a=r.parent,l={from:s.from,to:s.to};let h=0,u=a===null||a===void 0?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(h==0&&i.indexOf(u.type.name)>-1&&u.from<u.to){let t=Xt(u);return{start:l,end:t?{from:t.from,to:t.to}:undefined,matched:true}}else if(Yt(u.type,n,o)){h++}else if(Yt(u.type,-n,o)){if(h==0){let t=Xt(u);return{start:l,end:t&&t.from<t.to?{from:t.from,to:t.to}:undefined,matched:false}}h--}}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:false}}function ee(t,e,n,r,s,i,o){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1);let l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e};let u=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let c=0;!u.next().done&&c<=i;){let t=u.value;if(n<0)c+=t.length;let i=e+c*n;for(let e=n>0?0:t.length-1,a=n>0?t.length:-1;e!=a;e+=n){let a=o.indexOf(t[e]);if(a<0||r.resolveInner(i+e,1).type!=s)continue;if(a%2==0==n>0){f++}else if(f==1){return{start:h,end:{from:i+e,to:i+e+1},matched:a>>1==l>>1}}else{f--}}if(n>0)c+=t.length}return u.done?{start:h,matched:false}:null}function ne(t,e,n,r=0,s=0){if(e==null){e=t.search(/[^\s\u00a0]/);if(e==-1)e=t.length}let i=s;for(let o=r;o<e;o++){if(t.charCodeAt(o)==9)i+=n-i%n;else i++}return i}class re{constructor(t,e,n){this.string=t;this.tabSize=e;this.indentUnit=n;this.pos=0;this.start=0;this.lastColumnPos=0;this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||undefined}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e=this.string.charAt(this.pos);let n;if(typeof t=="string")n=e==t;else n=e&&(t instanceof RegExp?t.test(e):t(e));if(n){++this.pos;return e}}eatWhile(t){let e=this.pos;while(this.eat(t)){}return this.pos>e}eatSpace(){let t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1){this.pos=e;return true}}backUp(t){this.pos-=t}column(){if(this.lastColumnPos<this.start){this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue}indentation(){return ne(this.string,null,this.tabSize)}match(t,e,n){if(typeof t=="string"){let r=t=>n?t.toLowerCase():t;let s=this.string.substr(this.pos,t.length);if(r(s)==r(t)){if(e!==false)this.pos+=t.length;return true}else return null}else{let n=this.string.slice(this.pos).match(t);if(n&&n.index>0)return null;if(n&&e!==false)this.pos+=n[0].length;return n}}current(){return this.string.slice(this.start,this.pos)}}function se(t){return{name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>true),copyState:t.copyState||ie,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||ce}}function ie(t){if(typeof t!="object")return t;let e={};for(let n in t){let r=t[n];e[n]=r instanceof Array?r.slice():r}return e}class oe extends g{constructor(t){let e=p(t.languageData);let n=se(t),s;let i=new class extends r._b{createParse(t,e,n){return new ue(s,t,e,n)}};super(e,i,[M.of(((t,e)=>this.getIndent(t,e)))],t.name);this.topNode=xe(e);s=this;this.streamParser=n;this.stateAfter=new r.md({perNode:true});this.tokenTable=t.tokenTable?new ke(n.tokenTable):we}static define(t){return new oe(t)}getIndent(t,e){let n=w(t.state),r=n.resolve(e);while(r&&r.type!=this.topNode)r=r.parent;if(!r)return null;let s=ae(this,n,0,r.from,e),i,o;if(s){o=s.state;i=s.pos+1}else{o=this.streamParser.startState(t.unit);i=0}if(e-i>1e4)return null;while(i<e){let n=t.state.doc.lineAt(i),r=Math.min(e,n.to);if(n.length){let e=new re(n.text,t.state.tabSize,t.unit);while(e.pos<r-n.from)fe(this.streamParser.token,e,o)}else{this.streamParser.blankLine(o,t.unit)}if(r==e)break;i=n.to+1}let{text:a}=t.lineAt(e);return this.streamParser.indent(o,/^\s*(.*)/.exec(a)[1],t)}get allowsNesting(){return false}}function ae(t,e,n,s,i){let o=n>=s&&n+e.length<=i&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:n+e.length};for(let a=e.children.length-1;a>=0;a--){let o=e.children[a],l=n+e.positions[a];let h=o instanceof r.mp&&l<i&&ae(t,o,l,s,i);if(h)return h}return null}function le(t,e,n,s,i){if(i&&n<=0&&s>=e.length)return e;if(!i&&e.type==t.topNode)i=true;for(let o=e.children.length-1;o>=0;o--){let a=e.positions[o],l=e.children[o],h;if(a<s&&l instanceof r.mp){if(!(h=le(t,l,n-a,s-a,i)))break;return!i?h:new r.mp(e.type,e.children.slice(0,o).concat(h),e.positions.slice(0,o+1),a+h.length)}}return null}function he(t,e,n,s){for(let r of e){let e=r.from+(r.openStart?25:0),s=r.to-(r.openEnd?25:0);let i=e<=n&&s>n&&ae(t,r.tree,0-r.offset,n,s),o;if(i&&(o=le(t,r.tree,n+r.offset,i.pos+r.offset,false)))return{state:i.state,tree:o}}return{state:t.streamParser.startState(s?F(s):4),tree:r.mp.empty}}class ue{constructor(t,e,n,r){this.lang=t;this.input=e;this.fragments=n;this.ranges=r;this.stoppedAt=null;this.chunks=[];this.chunkPos=[];this.chunk=[];this.chunkReused=undefined;this.rangeIndex=0;this.to=r[r.length-1].to;let s=P.get(),i=r[0].from;let{state:o,tree:a}=he(t,n,i,s===null||s===void 0?void 0:s.state);this.state=o;this.parsedPos=this.chunkStart=i+a.length;for(let l=0;l<a.children.length;l++){this.chunks.push(a.children[l]);this.chunkPos.push(a.positions[l])}if(s&&this.parsedPos<s.viewport.from-1e5){this.state=this.lang.streamParser.startState(F(s.state));s.skipUntilInView(this.parsedPos,s.viewport.from);this.parsedPos=s.viewport.from}this.moveRangeIndex()}advance(){let t=P.get();let e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt);let n=Math.min(e,this.chunkStart+2048);if(t)n=Math.min(n,t.viewport.to);while(this.parsedPos<n)this.parseLine(t);if(this.chunkStart<this.parsedPos)this.finishChunk();if(this.parsedPos>=e)return this.finish();if(t&&this.parsedPos>=t.viewport.to){t.skipUntilInView(this.parsedPos,e);return this.finish()}return null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(!this.input.lineChunks){let t=e.indexOf("\n");if(t>-1)e=e.slice(0,t)}else if(e=="\n"){e=""}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let r=this.rangeIndex;;){let t=this.ranges[r].to;if(t>=n)break;e=e.slice(0,t-(n-e.length));r++;if(r==this.ranges.length)break;let s=this.ranges[r].from;let i=this.lineAfter(s);e+=i;n=s+i.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let r=this.ranges[this.rangeIndex].to,s=t+e;if(n>0?r>s:r>=s)break;let i=this.ranges[++this.rangeIndex].from;e+=i-r}return e}moveRangeIndex(){while(this.ranges[this.rangeIndex].to<this.parsedPos)this.rangeIndex++}emitToken(t,e,n,r,s){if(this.ranges.length>1){s=this.skipGapsTo(e,s,1);e+=s;let t=this.chunk.length;s=this.skipGapsTo(n,s,-1);n+=s;r+=this.chunk.length-t}this.chunk.push(t,e,n,r);return s}parseLine(t){let{line:e,end:n}=this.nextLine(),r=0,{streamParser:s}=this.lang;let i=new re(e,t?t.state.tabSize:4,t?F(t.state):2);if(i.eol()){s.blankLine(this.state,i.indentUnit)}else{while(!i.eol()){let t=fe(s.token,i,this.state);if(t)r=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+i.start,this.parsedPos+i.pos,4,r);if(i.start>1e4)break}}this.parsedPos=n;this.moveRangeIndex();if(this.parsedPos<this.to)this.parsedPos++}finishChunk(){let t=r.mp.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:pe,topID:0,maxBufferLength:2048,reused:this.chunkReused});t=new r.mp(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]);this.chunks.push(t);this.chunkPos.push(this.chunkStart-this.ranges[0].from);this.chunk=[];this.chunkReused=undefined;this.chunkStart=this.parsedPos}finish(){return new r.mp(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function fe(t,e,n){e.start=e.pos;for(let r=0;r<10;r++){let r=t(e,n);if(e.pos>e.start)return r}throw new Error("Stream parser failed to advance stream.")}const ce=Object.create(null);const de=[r.Jq.none];const pe=new r.Lj(de);const ge=[];const me=Object.create(null);for(let[ye,Se]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])me[ye]=be(ce,Se);class ke{constructor(t){this.extra=t;this.table=Object.assign(Object.create(null),me)}resolve(t){return!t?0:this.table[t]||(this.table[t]=be(this.extra,t))}}const we=new ke(ce);function ve(t,e){if(ge.indexOf(t)>-1)return;ge.push(t);console.warn(e)}function be(t,e){let n=null;for(let r of e.split(".")){let e=t[r]||l.tags[r];if(!e){ve(r,`Unknown highlighting tag ${r}`)}else if(typeof e=="function"){if(!n)ve(r,`Modifier ${r} used at start of tag`);else n=e(n)}else{if(n)ve(r,`Tag ${r} used as modifier`);else n=e}}if(!n)return 0;let s=e.replace(/ /g,"_"),i=r.Jq.define({id:de.length,name:s,props:[(0,l.styleTags)({[s]:n})]});de.push(i);return i.id}function xe(t){let e=r.Jq.define({id:de.length,name:"Document",props:[d.add((()=>t))]});de.push(e);return e}}}]);
|
2
|
+
//# sourceMappingURL=6888.7fab95080c34bfe2cfd0.js.map?v=7fab95080c34bfe2cfd0
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[812],{37796:(e,r,t)=>{t.r(r);t.d(r,{main:()=>K});var o=t(19328);var n=t(95171);var s=t(48435);var l=t(69858);var a=t(48641);var i=t(64331);var c=t(55834);var u=t(28180);var f=t(2542);var A=t(7920);var p=t(38710);var h=t(81554);var y=t(67014);var d=t(77552);var v=t(71821);var b=t(13313);var x=t(23454);var g=t(34802);var j=t(42584);var m=t(54244);var w=t(93814);var C=t(64897);var E=t(94679);var P=t(92121);var O=t(83417);var k=t(83344);var S=t(52109);var _=t(96986);var N=t(70987);var R=t(39721);var J=t(55337);var L=t(32977);var Q=t(95528);var B=t(3268);var I=t(99204);var M=t(38970);var T=t(50168);var U=t(52714);var Y=t(4002);var z=t(57385);var G=t(65540);var V=t(1733);var D=t(30124);async function F(e,r){try{const t=await window._JUPYTERLAB[e].get(r);return t()}catch(t){console.warn(`Failed to create module: package: ${e}; module: ${r}`);throw t}}async function K(){var e=o.PageConfig.getOption("browserTest");if(e.toLowerCase()==="true"){var r=document.createElement("div");r.id="browserTest";document.body.appendChild(r);r.textContent="[]";r.style.display="none";var n=[];var s=false;var l=25e3;var a=function(){if(s){return}s=true;r.className="completed"};window.onerror=function(e,t,o,s,l){n.push(String(l));r.textContent=JSON.stringify(n)};console.error=function(e){n.push(String(e));r.textContent=JSON.stringify(n)}}var i=t(60135).JupyterLab;var c=[];var u=[];var f=[];var A=[];const p=[];const h=[];const y=[];const d=JSON.parse(o.PageConfig.getOption("federated_extensions"));const v=[];d.forEach((e=>{if(e.extension){v.push(e.name);p.push(F(e.name,e.extension))}if(e.mimeExtension){v.push(e.name);h.push(F(e.name,e.mimeExtension))}if(e.style&&!o.PageConfig.Extension.isDisabled(e.name)){y.push(F(e.name,e.style))}}));function*b(e){let r;if(e.hasOwnProperty("__esModule")){r=e.default}else{r=e}let t=Array.isArray(r)?r:[r];for(let n of t){if(o.PageConfig.Extension.isDisabled(n.id)){c.push(n.id);continue}if(o.PageConfig.Extension.isDeferred(n.id)){u.push(n.id);f.push(n.id)}yield n}}const x=[];if(!v.includes("@jupyterlab/javascript-extension")){try{let e=t(62918);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/json-extension")){try{let e=t(26040);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/pdf-extension")){try{let e=t(22795);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/vega5-extension")){try{let e=t(53810);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}const g=await Promise.allSettled(h);g.forEach((e=>{if(e.status==="fulfilled"){for(let r of b(e.value)){x.push(r)}}else{console.error(e.reason)}}));if(!v.includes("@jupyterlab/application-extension")){try{let e=t(62884);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/apputils-extension")){try{let e=t(86051);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/cell-toolbar-extension")){try{let e=t(46210);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/celltags-extension")){try{let e=t(22643);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/codemirror-extension")){try{let e=t(51040);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/completer-extension")){try{let e=t(1117);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/console-extension")){try{let e=t(99067);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/csvviewer-extension")){try{let e=t(61423);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/debugger-extension")){try{let e=t(20184);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/docmanager-extension")){try{let e=t(55251);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/documentsearch-extension")){try{let e=t(98497);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/extensionmanager-extension")){try{let e=t(42126);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/filebrowser-extension")){try{let e=t(11707);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/fileeditor-extension")){try{let e=t(1905);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/help-extension")){try{let e=t(13166);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/htmlviewer-extension")){try{let e=t(46437);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/hub-extension")){try{let e=t(52733);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/imageviewer-extension")){try{let e=t(81888);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/inspector-extension")){try{let e=t(20446);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/launcher-extension")){try{let e=t(51717);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/logconsole-extension")){try{let e=t(35333);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/lsp-extension")){try{let e=t(24622);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/mainmenu-extension")){try{let e=t(62902);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/markdownviewer-extension")){try{let e=t(38523);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/markedparser-extension")){try{let e=t(91079);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/mathjax2-extension")){try{let e=t(48327);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/metadataform-extension")){try{let e=t(58297);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/notebook-extension")){try{let e=t(90473);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/rendermime-extension")){try{let e=t(20071);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/running-extension")){try{let e=t(42343);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/settingeditor-extension")){try{let e=t(30845);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/shortcuts-extension")){try{let e=t(41550);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/statusbar-extension")){try{let e=t(76895);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/terminal-extension")){try{let e=t(90192);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/theme-dark-extension")){try{let e=t(20872);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/theme-light-extension")){try{let e=t(23005);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/toc-extension")){try{let e=t(83738);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/tooltip-extension")){try{let e=t(65868);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/translation-extension")){try{let e=t(1047);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/ui-components-extension")){try{let e=t(87455);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}const j=await Promise.allSettled(p);j.forEach((e=>{if(e.status==="fulfilled"){for(let r of b(e.value)){A.push(r)}}else{console.error(e.reason)}}));(await Promise.allSettled(y)).filter((({status:e})=>e==="rejected")).forEach((({reason:e})=>{console.error(e)}));const m=new i({mimeExtensions:x,disabled:{matches:c,patterns:o.PageConfig.Extension.disabled.map((function(e){return e.raw}))},deferred:{matches:u,patterns:o.PageConfig.Extension.deferred.map((function(e){return e.raw}))}});A.forEach((function(e){m.registerPluginModule(e)}));m.start({ignorePlugins:f});var w=(o.PageConfig.getOption("exposeAppInBrowser")||"").toLowerCase()==="true";var C=(o.PageConfig.getOption("devMode")||"").toLowerCase()==="true";if(w||C){window.jupyterapp=m}if(e.toLowerCase()==="true"){m.restored.then((function(){a(n)})).catch((function(e){a([`RestoreError: ${e.message}`])}));window.setTimeout((function(){a(n)}),l)}}},7413:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVQIHQGlAFr/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7+r3zKmT0/+pk9P/7+r3zAAAAAAAAAAABAAAAAAAAAAA6OPzM+/q9wAAAAAA6OPzMwAAAAAAAAAAAgAAAAAAAAAAGR8NiRQaCgAZIA0AGR8NiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQyoYJ/SY80UAAAAASUVORK5CYII="}}]);
|
2
|
+
//# sourceMappingURL=812.f31a0b0d1a5719e044c8.js.map?v=f31a0b0d1a5719e044c8
|