diff --git a/dist/hesh.css b/dist/hesh.css index eb4efdf..6e8f214 100644 --- a/dist/hesh.css +++ b/dist/hesh.css @@ -1,10 +1,10 @@ /*! * Plugin Name: HTML Editor Syntax Highlighter * Author: James Bradford - * Author URI: http://arniebradfo.com/ + * Author URI: http://bradford.digital/ * Author: Peter Mukhortov * Author URI: http://mukhortov.com/ - * Version: 2.3.0 + * Version: 2.3.1 **/.CodeMirror { font-family: monospace; height: 300px; @@ -747,98 +747,6 @@ span.CodeMirror-selectedtext { box-shadow: none; } -.cm-s-base16-dark.CodeMirror { - background: #151515; - color: #e0e0e0; -} - -.cm-s-base16-dark div.CodeMirror-selected { - background: #303030; -} - -.cm-s-base16-dark .CodeMirror-line::selection,.cm-s-base16-dark .CodeMirror-line>span::selection,.cm-s-base16-dark .CodeMirror-line>span>span::selection { - background: rgba(48,48,48,.99); -} - -.cm-s-base16-dark .CodeMirror-line::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span>span::-moz-selection { - background: rgba(48,48,48,.99); -} - -.cm-s-base16-dark .CodeMirror-gutters { - background: #151515; - border-right: 0; -} - -.cm-s-base16-dark .CodeMirror-guttermarker { - color: #ac4142; -} - -.cm-s-base16-dark .CodeMirror-guttermarker-subtle,.cm-s-base16-dark .CodeMirror-linenumber { - color: #505050; -} - -.cm-s-base16-dark .CodeMirror-cursor { - border-left: 1px solid #b0b0b0; -} - -.cm-s-base16-dark span.cm-comment { - color: #8f5536; -} - -.cm-s-base16-dark span.cm-atom,.cm-s-base16-dark span.cm-number { - color: #aa759f; -} - -.cm-s-base16-dark span.cm-attribute,.cm-s-base16-dark span.cm-property { - color: #90a959; -} - -.cm-s-base16-dark span.cm-keyword { - color: #ac4142; -} - -.cm-s-base16-dark span.cm-string { - color: #f4bf75; -} - -.cm-s-base16-dark span.cm-variable { - color: #90a959; -} - -.cm-s-base16-dark span.cm-variable-2 { - color: #6a9fb5; -} - -.cm-s-base16-dark span.cm-def { - color: #d28445; -} - -.cm-s-base16-dark span.cm-bracket { - color: #e0e0e0; -} - -.cm-s-base16-dark span.cm-tag { - color: #ac4142; -} - -.cm-s-base16-dark span.cm-link { - color: #aa759f; -} - -.cm-s-base16-dark span.cm-error { - background: #ac4142; - color: #b0b0b0; -} - -.cm-s-base16-dark .CodeMirror-activeline-background { - background: #202020; -} - -.cm-s-base16-dark .CodeMirror-matchingbracket { - text-decoration: underline; - color: #fff!important; -} - .cm-s-ambiance .cm-header { color: blue; } @@ -999,6 +907,98 @@ span.CodeMirror-selectedtext { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQ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YGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC"); } +.cm-s-base16-dark.CodeMirror { + background: #151515; + color: #e0e0e0; +} + +.cm-s-base16-dark div.CodeMirror-selected { + background: #303030; +} + +.cm-s-base16-dark .CodeMirror-line::selection,.cm-s-base16-dark .CodeMirror-line>span::selection,.cm-s-base16-dark .CodeMirror-line>span>span::selection { + background: rgba(48,48,48,.99); +} + +.cm-s-base16-dark .CodeMirror-line::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span>span::-moz-selection { + background: rgba(48,48,48,.99); +} + +.cm-s-base16-dark .CodeMirror-gutters { + background: #151515; + border-right: 0; +} + +.cm-s-base16-dark .CodeMirror-guttermarker { + color: #ac4142; +} + +.cm-s-base16-dark .CodeMirror-guttermarker-subtle,.cm-s-base16-dark .CodeMirror-linenumber { + color: #505050; +} + +.cm-s-base16-dark .CodeMirror-cursor { + border-left: 1px solid #b0b0b0; +} + +.cm-s-base16-dark span.cm-comment { + color: #8f5536; +} + +.cm-s-base16-dark span.cm-atom,.cm-s-base16-dark span.cm-number { + color: #aa759f; +} + +.cm-s-base16-dark span.cm-attribute,.cm-s-base16-dark span.cm-property { + color: #90a959; +} + +.cm-s-base16-dark span.cm-keyword { + color: #ac4142; +} + +.cm-s-base16-dark span.cm-string { + color: #f4bf75; +} + +.cm-s-base16-dark span.cm-variable { + color: #90a959; +} + +.cm-s-base16-dark span.cm-variable-2 { + color: #6a9fb5; +} + +.cm-s-base16-dark span.cm-def { + color: #d28445; +} + +.cm-s-base16-dark span.cm-bracket { + color: #e0e0e0; +} + +.cm-s-base16-dark span.cm-tag { + color: #ac4142; +} + +.cm-s-base16-dark span.cm-link { + color: #aa759f; +} + +.cm-s-base16-dark span.cm-error { + background: #ac4142; + color: #b0b0b0; +} + +.cm-s-base16-dark .CodeMirror-activeline-background { + background: #202020; +} + +.cm-s-base16-dark .CodeMirror-matchingbracket { + text-decoration: underline; + color: #fff!important; +} + .cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; @@ -1267,511 +1267,511 @@ span.CodeMirror-selectedtext { color: #fff!important; } -.cm-s-cobalt.CodeMirror { - background: #002240; - color: #fff; +.cm-s-colorforth.CodeMirror { + background: #000; + color: #f8f8f8; } -.cm-s-cobalt div.CodeMirror-selected { - background: #b36539; +.cm-s-colorforth .CodeMirror-gutters { + background: #0a001f; + border-right: 1px solid #aaa; } -.cm-s-cobalt .CodeMirror-line::selection,.cm-s-cobalt .CodeMirror-line>span::selection,.cm-s-cobalt .CodeMirror-line>span>span::selection { - background: rgba(179,101,57,.99); +.cm-s-colorforth .CodeMirror-guttermarker { + color: #ffbd40; } -.cm-s-cobalt .CodeMirror-line::-moz-selection,.cm-s-cobalt .CodeMirror-line>span::-moz-selection,.cm-s-cobalt .CodeMirror-line>span>span::-moz-selection { - background: rgba(179,101,57,.99); +.cm-s-colorforth .CodeMirror-guttermarker-subtle { + color: #78846f; } -.cm-s-cobalt .CodeMirror-gutters { - background: #002240; - border-right: 1px solid #aaa; +.cm-s-colorforth .CodeMirror-linenumber { + color: #bababa; } -.cm-s-cobalt .CodeMirror-guttermarker { - color: #ffee80; +.cm-s-colorforth .CodeMirror-cursor { + border-left: 1px solid #fff; } -.cm-s-cobalt .CodeMirror-guttermarker-subtle,.cm-s-cobalt .CodeMirror-linenumber { - color: #d0d0d0; +.cm-s-colorforth span.cm-comment { + color: #ededed; } -.cm-s-cobalt .CodeMirror-cursor { - border-left: 1px solid #fff; +.cm-s-colorforth span.cm-def { + color: #ff1c1c; + font-weight: 700; } -.cm-s-cobalt span.cm-comment { - color: #08f; +.cm-s-colorforth span.cm-keyword { + color: #ffd900; } -.cm-s-cobalt span.cm-atom { - color: #845dc4; +.cm-s-colorforth span.cm-builtin { + color: #00d95a; } -.cm-s-cobalt span.cm-attribute,.cm-s-cobalt span.cm-number { - color: #ff80e1; +.cm-s-colorforth span.cm-variable { + color: #73ff00; } -.cm-s-cobalt span.cm-keyword { - color: #ffee80; +.cm-s-colorforth span.cm-string { + color: #007bff; } -.cm-s-cobalt span.cm-string { - color: #3ad900; +.cm-s-colorforth span.cm-number { + color: #00c4ff; } -.cm-s-cobalt span.cm-meta { - color: #ff9d00; +.cm-s-colorforth span.cm-atom { + color: #606060; } -.cm-s-cobalt span.cm-tag,.cm-s-cobalt span.cm-variable-2 { - color: #9effff; +.cm-s-colorforth span.cm-variable-2 { + color: #eee; } -.cm-s-cobalt .cm-type,.cm-s-cobalt span.cm-def,.cm-s-cobalt span.cm-variable-3 { - color: #fff; +.cm-s-colorforth span.cm-type,.cm-s-colorforth span.cm-variable-3 { + color: #ddd; } -.cm-s-cobalt span.cm-bracket { - color: #d8d8d8; -} - -.cm-s-cobalt span.cm-builtin,.cm-s-cobalt span.cm-special { - color: #ff9e59; +.cm-s-colorforth span.cm-meta { + color: #ff0; } -.cm-s-cobalt span.cm-link { - color: #845dc4; +.cm-s-colorforth span.cm-qualifier { + color: #fff700; } -.cm-s-cobalt span.cm-error { - color: #9d1e15; +.cm-s-colorforth span.cm-bracket { + color: #cc7; } -.cm-s-cobalt .CodeMirror-activeline-background { - background: #002d57; +.cm-s-colorforth span.cm-tag { + color: #ffbd40; } -.cm-s-cobalt .CodeMirror-matchingbracket { - outline: 1px solid grey; - color: #fff!important; +.cm-s-colorforth span.cm-attribute { + color: #fff700; } -.cm-s-colorforth.CodeMirror { - background: #000; - color: #f8f8f8; +.cm-s-colorforth span.cm-error { + color: red; } -.cm-s-colorforth .CodeMirror-gutters { - background: #0a001f; - border-right: 1px solid #aaa; +.cm-s-colorforth div.CodeMirror-selected { + background: #333d53; } -.cm-s-colorforth .CodeMirror-guttermarker { - color: #ffbd40; +.cm-s-colorforth span.cm-compilation { + background: hsla(0,0%,100%,.12); } -.cm-s-colorforth .CodeMirror-guttermarker-subtle { - color: #78846f; +.cm-s-colorforth .CodeMirror-activeline-background { + background: #253540; } -.cm-s-colorforth .CodeMirror-linenumber { - color: #bababa; +.cm-s-dracula.CodeMirror,.cm-s-dracula .CodeMirror-gutters { + background-color: #282a36!important; + color: #f8f8f2!important; + border: none; } -.cm-s-colorforth .CodeMirror-cursor { - border-left: 1px solid #fff; +.cm-s-dracula .CodeMirror-gutters { + color: #282a36; } -.cm-s-colorforth span.cm-comment { - color: #ededed; +.cm-s-dracula .CodeMirror-cursor { + border-left: thin solid #f8f8f0; } -.cm-s-colorforth span.cm-def { - color: #ff1c1c; - font-weight: 700; +.cm-s-dracula .CodeMirror-linenumber { + color: #6d8a88; } -.cm-s-colorforth span.cm-keyword { - color: #ffd900; +.cm-s-dracula .CodeMirror-selected { + background: hsla(0,0%,100%,.1); } -.cm-s-colorforth span.cm-builtin { - color: #00d95a; +.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection { + background: hsla(0,0%,100%,.1); } -.cm-s-colorforth span.cm-variable { - color: #73ff00; +.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection { + background: hsla(0,0%,100%,.1); } -.cm-s-colorforth span.cm-string { - color: #007bff; +.cm-s-dracula span.cm-comment { + color: #6272a4; } -.cm-s-colorforth span.cm-number { - color: #00c4ff; +.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2 { + color: #f1fa8c; } -.cm-s-colorforth span.cm-atom { - color: #606060; +.cm-s-dracula span.cm-number { + color: #bd93f9; } -.cm-s-colorforth span.cm-variable-2 { - color: #eee; +.cm-s-dracula span.cm-variable { + color: #50fa7b; } -.cm-s-colorforth span.cm-type,.cm-s-colorforth span.cm-variable-3 { - color: #ddd; +.cm-s-dracula span.cm-variable-2 { + color: #fff; } -.cm-s-colorforth span.cm-meta { - color: #ff0; +.cm-s-dracula span.cm-def { + color: #50fa7b; } -.cm-s-colorforth span.cm-qualifier { - color: #fff700; +.cm-s-dracula span.cm-keyword,.cm-s-dracula span.cm-operator { + color: #ff79c6; } -.cm-s-colorforth span.cm-bracket { - color: #cc7; +.cm-s-dracula span.cm-atom { + color: #bd93f9; } -.cm-s-colorforth span.cm-tag { - color: #ffbd40; +.cm-s-dracula span.cm-meta { + color: #f8f8f2; } -.cm-s-colorforth span.cm-attribute { - color: #fff700; +.cm-s-dracula span.cm-tag { + color: #ff79c6; } -.cm-s-colorforth span.cm-error { - color: red; +.cm-s-dracula span.cm-attribute,.cm-s-dracula span.cm-qualifier { + color: #50fa7b; } -.cm-s-colorforth div.CodeMirror-selected { - background: #333d53; +.cm-s-dracula span.cm-property { + color: #66d9ef; } -.cm-s-colorforth span.cm-compilation { - background: hsla(0,0%,100%,.12); +.cm-s-dracula span.cm-builtin { + color: #50fa7b; } -.cm-s-colorforth .CodeMirror-activeline-background { - background: #253540; +.cm-s-dracula span.cm-type,.cm-s-dracula span.cm-variable-3 { + color: #ffb86c; } -.cm-s-darcula { - font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; +.cm-s-dracula .CodeMirror-activeline-background { + background: hsla(0,0%,100%,.1); } -.cm-s-darcula.CodeMirror { - background: #2b2b2b; - color: #a9b7c6; +.cm-s-dracula .CodeMirror-matchingbracket { + text-decoration: underline; + color: #fff!important; } -.cm-s-darcula span.cm-meta { - color: #bbb529; +.cm-s-cobalt.CodeMirror { + background: #002240; + color: #fff; } -.cm-s-darcula span.cm-number { - color: #6897bb; +.cm-s-cobalt div.CodeMirror-selected { + background: #b36539; } -.cm-s-darcula span.cm-keyword { - color: #cc7832; - line-height: 1em; - font-weight: 700; +.cm-s-cobalt .CodeMirror-line::selection,.cm-s-cobalt .CodeMirror-line>span::selection,.cm-s-cobalt .CodeMirror-line>span>span::selection { + background: rgba(179,101,57,.99); } -.cm-s-darcula span.cm-def { - color: #a9b7c6; - font-style: italic; +.cm-s-cobalt .CodeMirror-line::-moz-selection,.cm-s-cobalt .CodeMirror-line>span::-moz-selection,.cm-s-cobalt .CodeMirror-line>span>span::-moz-selection { + background: rgba(179,101,57,.99); } -.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2 { - color: #a9b7c6; +.cm-s-cobalt .CodeMirror-gutters { + background: #002240; + border-right: 1px solid #aaa; } -.cm-s-darcula span.cm-variable-3 { - color: #9876aa; +.cm-s-cobalt .CodeMirror-guttermarker { + color: #ffee80; } -.cm-s-darcula span.cm-type { - color: #abc; - font-weight: 700; +.cm-s-cobalt .CodeMirror-guttermarker-subtle,.cm-s-cobalt .CodeMirror-linenumber { + color: #d0d0d0; } -.cm-s-darcula span.cm-property { - color: #ffc66d; +.cm-s-cobalt .CodeMirror-cursor { + border-left: 1px solid #fff; } -.cm-s-darcula span.cm-operator { - color: #a9b7c6; +.cm-s-cobalt span.cm-comment { + color: #08f; } -.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2 { - color: #6a8759; +.cm-s-cobalt span.cm-atom { + color: #845dc4; } -.cm-s-darcula span.cm-comment { - color: #61a151; - font-style: italic; +.cm-s-cobalt span.cm-attribute,.cm-s-cobalt span.cm-number { + color: #ff80e1; } -.cm-s-darcula span.cm-atom,.cm-s-darcula span.cm-link { - color: #cc7832; +.cm-s-cobalt span.cm-keyword { + color: #ffee80; } -.cm-s-darcula span.cm-error { - color: #bc3f3c; +.cm-s-cobalt span.cm-string { + color: #3ad900; } -.cm-s-darcula span.cm-tag { - color: #629755; - font-weight: 700; - font-style: italic; - text-decoration: underline; +.cm-s-cobalt span.cm-meta { + color: #ff9d00; } -.cm-s-darcula span.cm-attribute { - color: #6897bb; +.cm-s-cobalt span.cm-tag,.cm-s-cobalt span.cm-variable-2 { + color: #9effff; } -.cm-s-darcula span.cm-qualifier { - color: #6a8759; +.cm-s-cobalt .cm-type,.cm-s-cobalt span.cm-def,.cm-s-cobalt span.cm-variable-3 { + color: #fff; } -.cm-s-darcula span.cm-bracket { - color: #a9b7c6; +.cm-s-cobalt span.cm-bracket { + color: #d8d8d8; } -.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special { +.cm-s-cobalt span.cm-builtin,.cm-s-cobalt span.cm-special { color: #ff9e59; } -.cm-s-darcula .CodeMirror-cursor { - border-left: 1px solid #a9b7c6; +.cm-s-cobalt span.cm-link { + color: #845dc4; } -.cm-s-darcula .CodeMirror-activeline-background { - background: #323232; +.cm-s-cobalt span.cm-error { + color: #9d1e15; } -.cm-s-darcula .CodeMirror-gutters { - background: #313335; - border-right: 1px solid #313335; +.cm-s-cobalt .CodeMirror-activeline-background { + background: #002d57; } -.cm-s-darcula .CodeMirror-guttermarker { - color: #ffee80; +.cm-s-cobalt .CodeMirror-matchingbracket { + outline: 1px solid grey; + color: #fff!important; } -.cm-s-darcula .CodeMirror-guttermarker-subtle { - color: #d0d0d0; +.cm-s-duotone-dark.CodeMirror { + background: #2a2734; + color: #6c6783; } -.cm-s-darcula .CodeMirrir-linenumber { - color: #606366; +.cm-s-duotone-dark div.CodeMirror-selected { + background: #545167!important; } -.cm-s-darcula .CodeMirror-matchingbracket { - background-color: #3b514d; - color: #ffef28!important; - font-weight: 700; +.cm-s-duotone-dark .CodeMirror-gutters { + background: #2a2734; + border-right: 0; } -.cm-s-darcula div.CodeMirror-selected { - background: #214283; +.cm-s-duotone-dark .CodeMirror-linenumber { + color: #545167; } -.CodeMirror-hints.darcula { - font-family: Menlo,Monaco,Consolas,Courier New,monospace; - color: #9c9e9e; - background-color: #3b3e3f!important; +.cm-s-duotone-dark .CodeMirror-cursor { + border-left: 1px solid #ffad5c; + border-right: .5em solid #ffad5c; + opacity: .5; } -.CodeMirror-hints.darcula .CodeMirror-hint-active { - background-color: #494d4e!important; - color: #9c9e9e!important; +.cm-s-duotone-dark .CodeMirror-activeline-background { + background: #363342; + opacity: .5; } -.cm-s-dracula.CodeMirror,.cm-s-dracula .CodeMirror-gutters { - background-color: #282a36!important; - color: #f8f8f2!important; - border: none; +.cm-s-duotone-dark .cm-fat-cursor .CodeMirror-cursor { + background: #ffad5c; + opacity: .5; } -.cm-s-dracula .CodeMirror-gutters { - color: #282a36; +.cm-s-duotone-dark span.cm-atom,.cm-s-duotone-dark span.cm-attribute,.cm-s-duotone-dark span.cm-hr,.cm-s-duotone-dark span.cm-keyword,.cm-s-duotone-dark span.cm-link,.cm-s-duotone-dark span.cm-number,.cm-s-duotone-dark span.cm-quote,.cm-s-duotone-dark span.cm-variable { + color: #fc9; } -.cm-s-dracula .CodeMirror-cursor { - border-left: thin solid #f8f8f0; +.cm-s-duotone-dark span.cm-property { + color: #9a86fd; } -.cm-s-dracula .CodeMirror-linenumber { - color: #6d8a88; +.cm-s-duotone-dark span.cm-negative,.cm-s-duotone-dark span.cm-punctuation,.cm-s-duotone-dark span.cm-unit { + color: #e09142; } -.cm-s-dracula .CodeMirror-selected { - background: hsla(0,0%,100%,.1); +.cm-s-duotone-dark span.cm-string { + color: #ffb870; } -.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection { - background: hsla(0,0%,100%,.1); +.cm-s-duotone-dark span.cm-operator { + color: #ffad5c; } -.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection { - background: hsla(0,0%,100%,.1); +.cm-s-duotone-dark span.cm-positive { + color: #6a51e6; } -.cm-s-dracula span.cm-comment { - color: #6272a4; +.cm-s-duotone-dark span.cm-string-2,.cm-s-duotone-dark span.cm-type,.cm-s-duotone-dark span.cm-url,.cm-s-duotone-dark span.cm-variable-2,.cm-s-duotone-dark span.cm-variable-3 { + color: #7a63ee; } -.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2 { - color: #f1fa8c; +.cm-s-duotone-dark span.cm-builtin,.cm-s-duotone-dark span.cm-def,.cm-s-duotone-dark span.cm-em,.cm-s-duotone-dark span.cm-header,.cm-s-duotone-dark span.cm-qualifier,.cm-s-duotone-dark span.cm-tag { + color: #eeebff; } -.cm-s-dracula span.cm-number { - color: #bd93f9; +.cm-s-duotone-dark span.cm-bracket,.cm-s-duotone-dark span.cm-comment { + color: #6c6783; } -.cm-s-dracula span.cm-variable { - color: #50fa7b; +.cm-s-duotone-dark span.cm-error,.cm-s-duotone-dark span.cm-invalidchar { + color: red; } -.cm-s-dracula span.cm-variable-2 { - color: #fff; +.cm-s-duotone-dark span.cm-header { + font-weight: 400; } -.cm-s-dracula span.cm-def { - color: #50fa7b; +.cm-s-duotone-dark .CodeMirror-matchingbracket { + text-decoration: underline; + color: #eeebff!important; } -.cm-s-dracula span.cm-keyword,.cm-s-dracula span.cm-operator { - color: #ff79c6; +.cm-s-darcula { + font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; } -.cm-s-dracula span.cm-atom { - color: #bd93f9; +.cm-s-darcula.CodeMirror { + background: #2b2b2b; + color: #a9b7c6; } -.cm-s-dracula span.cm-meta { - color: #f8f8f2; +.cm-s-darcula span.cm-meta { + color: #bbb529; } -.cm-s-dracula span.cm-tag { - color: #ff79c6; +.cm-s-darcula span.cm-number { + color: #6897bb; } -.cm-s-dracula span.cm-attribute,.cm-s-dracula span.cm-qualifier { - color: #50fa7b; +.cm-s-darcula span.cm-keyword { + color: #cc7832; + line-height: 1em; + font-weight: 700; } -.cm-s-dracula span.cm-property { - color: #66d9ef; +.cm-s-darcula span.cm-def { + color: #a9b7c6; + font-style: italic; } -.cm-s-dracula span.cm-builtin { - color: #50fa7b; +.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2 { + color: #a9b7c6; } -.cm-s-dracula span.cm-type,.cm-s-dracula span.cm-variable-3 { - color: #ffb86c; +.cm-s-darcula span.cm-variable-3 { + color: #9876aa; } -.cm-s-dracula .CodeMirror-activeline-background { - background: hsla(0,0%,100%,.1); +.cm-s-darcula span.cm-type { + color: #abc; + font-weight: 700; } -.cm-s-dracula .CodeMirror-matchingbracket { - text-decoration: underline; - color: #fff!important; +.cm-s-darcula span.cm-property { + color: #ffc66d; } -.cm-s-duotone-dark.CodeMirror { - background: #2a2734; - color: #6c6783; +.cm-s-darcula span.cm-operator { + color: #a9b7c6; } -.cm-s-duotone-dark div.CodeMirror-selected { - background: #545167!important; +.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2 { + color: #6a8759; } -.cm-s-duotone-dark .CodeMirror-gutters { - background: #2a2734; - border-right: 0; +.cm-s-darcula span.cm-comment { + color: #61a151; + font-style: italic; } -.cm-s-duotone-dark .CodeMirror-linenumber { - color: #545167; +.cm-s-darcula span.cm-atom,.cm-s-darcula span.cm-link { + color: #cc7832; } -.cm-s-duotone-dark .CodeMirror-cursor { - border-left: 1px solid #ffad5c; - border-right: .5em solid #ffad5c; - opacity: .5; +.cm-s-darcula span.cm-error { + color: #bc3f3c; } -.cm-s-duotone-dark .CodeMirror-activeline-background { - background: #363342; - opacity: .5; +.cm-s-darcula span.cm-tag { + color: #629755; + font-weight: 700; + font-style: italic; + text-decoration: underline; } -.cm-s-duotone-dark .cm-fat-cursor .CodeMirror-cursor { - background: #ffad5c; - opacity: .5; +.cm-s-darcula span.cm-attribute { + color: #6897bb; +} + +.cm-s-darcula span.cm-qualifier { + color: #6a8759; } -.cm-s-duotone-dark span.cm-atom,.cm-s-duotone-dark span.cm-attribute,.cm-s-duotone-dark span.cm-hr,.cm-s-duotone-dark span.cm-keyword,.cm-s-duotone-dark span.cm-link,.cm-s-duotone-dark span.cm-number,.cm-s-duotone-dark span.cm-quote,.cm-s-duotone-dark span.cm-variable { - color: #fc9; +.cm-s-darcula span.cm-bracket { + color: #a9b7c6; } -.cm-s-duotone-dark span.cm-property { - color: #9a86fd; +.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special { + color: #ff9e59; } -.cm-s-duotone-dark span.cm-negative,.cm-s-duotone-dark span.cm-punctuation,.cm-s-duotone-dark span.cm-unit { - color: #e09142; +.cm-s-darcula .CodeMirror-cursor { + border-left: 1px solid #a9b7c6; } -.cm-s-duotone-dark span.cm-string { - color: #ffb870; +.cm-s-darcula .CodeMirror-activeline-background { + background: #323232; } -.cm-s-duotone-dark span.cm-operator { - color: #ffad5c; +.cm-s-darcula .CodeMirror-gutters { + background: #313335; + border-right: 1px solid #313335; } -.cm-s-duotone-dark span.cm-positive { - color: #6a51e6; +.cm-s-darcula .CodeMirror-guttermarker { + color: #ffee80; } -.cm-s-duotone-dark span.cm-string-2,.cm-s-duotone-dark span.cm-type,.cm-s-duotone-dark span.cm-url,.cm-s-duotone-dark span.cm-variable-2,.cm-s-duotone-dark span.cm-variable-3 { - color: #7a63ee; +.cm-s-darcula .CodeMirror-guttermarker-subtle { + color: #d0d0d0; } -.cm-s-duotone-dark span.cm-builtin,.cm-s-duotone-dark span.cm-def,.cm-s-duotone-dark span.cm-em,.cm-s-duotone-dark span.cm-header,.cm-s-duotone-dark span.cm-qualifier,.cm-s-duotone-dark span.cm-tag { - color: #eeebff; +.cm-s-darcula .CodeMirrir-linenumber { + color: #606366; } -.cm-s-duotone-dark span.cm-bracket,.cm-s-duotone-dark span.cm-comment { - color: #6c6783; +.cm-s-darcula .CodeMirror-matchingbracket { + background-color: #3b514d; + color: #ffef28!important; + font-weight: 700; } -.cm-s-duotone-dark span.cm-error,.cm-s-duotone-dark span.cm-invalidchar { - color: red; +.cm-s-darcula div.CodeMirror-selected { + background: #214283; } -.cm-s-duotone-dark span.cm-header { - font-weight: 400; +.CodeMirror-hints.darcula { + font-family: Menlo,Monaco,Consolas,Courier New,monospace; + color: #9c9e9e; + background-color: #3b3e3f!important; } -.cm-s-duotone-dark .CodeMirror-matchingbracket { - text-decoration: underline; - color: #eeebff!important; +.CodeMirror-hints.darcula .CodeMirror-hint-active { + background-color: #494d4e!important; + color: #9c9e9e!important; } .cm-s-duotone-light.CodeMirror { @@ -5393,223 +5393,223 @@ div.cm-s-mdn-like span.CodeMirror-matchingbracket { font-weight: 700; } -.cm-s-twilight.CodeMirror { - background: #141414; - color: #f7f7f7; +.cm-s-vibrant-ink.CodeMirror { + background: #000; + color: #fff; } -.cm-s-twilight div.CodeMirror-selected { - background: #323232; +.cm-s-vibrant-ink div.CodeMirror-selected { + background: #35493c; } -.cm-s-twilight .CodeMirror-line::selection,.cm-s-twilight .CodeMirror-line>span::selection,.cm-s-twilight .CodeMirror-line>span>span::selection { - background: rgba(50,50,50,.99); +.cm-s-vibrant-ink .CodeMirror-line::selection,.cm-s-vibrant-ink .CodeMirror-line>span::selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::selection { + background: rgba(53,73,60,.99); } -.cm-s-twilight .CodeMirror-line::-moz-selection,.cm-s-twilight .CodeMirror-line>span::-moz-selection,.cm-s-twilight .CodeMirror-line>span>span::-moz-selection { - background: rgba(50,50,50,.99); +.cm-s-vibrant-ink .CodeMirror-line::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::-moz-selection { + background: rgba(53,73,60,.99); } -.cm-s-twilight .CodeMirror-gutters { - background: #222; +.cm-s-vibrant-ink .CodeMirror-gutters { + background: #002240; border-right: 1px solid #aaa; } -.cm-s-twilight .CodeMirror-guttermarker { +.cm-s-vibrant-ink .CodeMirror-guttermarker { color: #fff; } -.cm-s-twilight .CodeMirror-guttermarker-subtle,.cm-s-twilight .CodeMirror-linenumber { - color: #aaa; +.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle,.cm-s-vibrant-ink .CodeMirror-linenumber { + color: #d0d0d0; } -.cm-s-twilight .CodeMirror-cursor { +.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid #fff; } -.cm-s-twilight .cm-keyword { - color: #f9ee98; +.cm-s-vibrant-ink .cm-keyword { + color: #cc7832; } -.cm-s-twilight .cm-atom { +.cm-s-vibrant-ink .cm-atom { color: #fc0; } -.cm-s-twilight .cm-number { - color: #ca7841; +.cm-s-vibrant-ink .cm-number { + color: #ffee98; } -.cm-s-twilight .cm-def { +.cm-s-vibrant-ink .cm-def { color: #8da6ce; } -.cm-s-twilight span.cm-def,.cm-s-twilight span.cm-tag,.cm-s-twilight span.cm-type,.cm-s-twilight span.cm-variable-2,.cm-s-twilight span.cm-variable-3 { - color: #607392; -} - -.cm-s-twilight .cm-operator { - color: #cda869; -} - -.cm-s-twilight .cm-comment { - color: #777; - font-style: italic; - font-weight: 400; +.cm-s-vibrant-ink span.cm-variable-2,.cm-s-vibrant-ink span.cm-variable-3,.cm-s-vibrant span.cm-def,.cm-s-vibrant span.cm-tag,.cm-s-vibrant span.cm-type { + color: #ffc66d; } -.cm-s-twilight .cm-string { - color: #8f9d6a; - font-style: italic; +.cm-s-vibrant-ink .cm-operator { + color: #888; } -.cm-s-twilight .cm-string-2 { - color: #bd6b18; +.cm-s-vibrant-ink .cm-comment { + color: gray; + font-weight: 700; } -.cm-s-twilight .cm-meta { - background-color: #141414; - color: #f7f7f7; +.cm-s-vibrant-ink .cm-string { + color: #a5c25c; } -.cm-s-twilight .cm-builtin { - color: #cda869; +.cm-s-vibrant-ink .cm-string-2 { + color: red; } -.cm-s-twilight .cm-tag { - color: #997643; +.cm-s-vibrant-ink .cm-meta { + color: #d8fa3c; } -.cm-s-twilight .cm-attribute { - color: #d6bb6d; +.cm-s-vibrant-ink .cm-attribute,.cm-s-vibrant-ink .cm-builtin,.cm-s-vibrant-ink .cm-tag { + color: #8da6ce; } -.cm-s-twilight .cm-header { +.cm-s-vibrant-ink .cm-header { color: #ff6400; } -.cm-s-twilight .cm-hr { +.cm-s-vibrant-ink .cm-hr { color: #aeaeae; } -.cm-s-twilight .cm-link { - color: #ad9361; - font-style: italic; - text-decoration: none; +.cm-s-vibrant-ink .cm-link { + color: blue; } -.cm-s-twilight .cm-error { +.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } -.cm-s-twilight .CodeMirror-activeline-background { +.cm-s-vibrant-ink .CodeMirror-activeline-background { background: #27282e; } -.cm-s-twilight .CodeMirror-matchingbracket { +.cm-s-vibrant-ink .CodeMirror-matchingbracket { outline: 1px solid grey; color: #fff!important; } -.cm-s-vibrant-ink.CodeMirror { - background: #000; - color: #fff; +.cm-s-twilight.CodeMirror { + background: #141414; + color: #f7f7f7; } -.cm-s-vibrant-ink div.CodeMirror-selected { - background: #35493c; +.cm-s-twilight div.CodeMirror-selected { + background: #323232; } -.cm-s-vibrant-ink .CodeMirror-line::selection,.cm-s-vibrant-ink .CodeMirror-line>span::selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::selection { - background: rgba(53,73,60,.99); +.cm-s-twilight .CodeMirror-line::selection,.cm-s-twilight .CodeMirror-line>span::selection,.cm-s-twilight .CodeMirror-line>span>span::selection { + background: rgba(50,50,50,.99); } -.cm-s-vibrant-ink .CodeMirror-line::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::-moz-selection { - background: rgba(53,73,60,.99); +.cm-s-twilight .CodeMirror-line::-moz-selection,.cm-s-twilight .CodeMirror-line>span::-moz-selection,.cm-s-twilight .CodeMirror-line>span>span::-moz-selection { + background: rgba(50,50,50,.99); } -.cm-s-vibrant-ink .CodeMirror-gutters { - background: #002240; +.cm-s-twilight .CodeMirror-gutters { + background: #222; border-right: 1px solid #aaa; } -.cm-s-vibrant-ink .CodeMirror-guttermarker { +.cm-s-twilight .CodeMirror-guttermarker { color: #fff; } -.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle,.cm-s-vibrant-ink .CodeMirror-linenumber { - color: #d0d0d0; +.cm-s-twilight .CodeMirror-guttermarker-subtle,.cm-s-twilight .CodeMirror-linenumber { + color: #aaa; } -.cm-s-vibrant-ink .CodeMirror-cursor { +.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid #fff; } -.cm-s-vibrant-ink .cm-keyword { - color: #cc7832; +.cm-s-twilight .cm-keyword { + color: #f9ee98; } -.cm-s-vibrant-ink .cm-atom { +.cm-s-twilight .cm-atom { color: #fc0; } -.cm-s-vibrant-ink .cm-number { - color: #ffee98; +.cm-s-twilight .cm-number { + color: #ca7841; } -.cm-s-vibrant-ink .cm-def { +.cm-s-twilight .cm-def { color: #8da6ce; } -.cm-s-vibrant-ink span.cm-variable-2,.cm-s-vibrant-ink span.cm-variable-3,.cm-s-vibrant span.cm-def,.cm-s-vibrant span.cm-tag,.cm-s-vibrant span.cm-type { - color: #ffc66d; +.cm-s-twilight span.cm-def,.cm-s-twilight span.cm-tag,.cm-s-twilight span.cm-type,.cm-s-twilight span.cm-variable-2,.cm-s-twilight span.cm-variable-3 { + color: #607392; } -.cm-s-vibrant-ink .cm-operator { - color: #888; +.cm-s-twilight .cm-operator { + color: #cda869; } -.cm-s-vibrant-ink .cm-comment { - color: gray; - font-weight: 700; +.cm-s-twilight .cm-comment { + color: #777; + font-style: italic; + font-weight: 400; } -.cm-s-vibrant-ink .cm-string { - color: #a5c25c; +.cm-s-twilight .cm-string { + color: #8f9d6a; + font-style: italic; } -.cm-s-vibrant-ink .cm-string-2 { - color: red; +.cm-s-twilight .cm-string-2 { + color: #bd6b18; } -.cm-s-vibrant-ink .cm-meta { - color: #d8fa3c; +.cm-s-twilight .cm-meta { + background-color: #141414; + color: #f7f7f7; } -.cm-s-vibrant-ink .cm-attribute,.cm-s-vibrant-ink .cm-builtin,.cm-s-vibrant-ink .cm-tag { - color: #8da6ce; +.cm-s-twilight .cm-builtin { + color: #cda869; } -.cm-s-vibrant-ink .cm-header { +.cm-s-twilight .cm-tag { + color: #997643; +} + +.cm-s-twilight .cm-attribute { + color: #d6bb6d; +} + +.cm-s-twilight .cm-header { color: #ff6400; } -.cm-s-vibrant-ink .cm-hr { +.cm-s-twilight .cm-hr { color: #aeaeae; } -.cm-s-vibrant-ink .cm-link { - color: blue; +.cm-s-twilight .cm-link { + color: #ad9361; + font-style: italic; + text-decoration: none; } -.cm-s-vibrant-ink .cm-error { +.cm-s-twilight .cm-error { border-bottom: 1px solid red; } -.cm-s-vibrant-ink .CodeMirror-activeline-background { +.cm-s-twilight .CodeMirror-activeline-background { background: #27282e; } -.cm-s-vibrant-ink .CodeMirror-matchingbracket { +.cm-s-twilight .CodeMirror-matchingbracket { outline: 1px solid grey; color: #fff!important; } diff --git a/dist/hesh.js b/dist/hesh.js index 58cbebf..0ca79b7 100644 --- a/dist/hesh.js +++ b/dist/hesh.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,m=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),w=r||n||i,k=w&&(r?document.documentMode||6:+(i||n)[1]),b=!i&&/WebKit\//.test(e),o=b&&/Qt\/\d+\.\d+/.test(e),a=!i&&/Chrome\//.test(e),g=/Opera\//.test(e),l=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),c=/PhantomJS/.test(e),u=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),f=/Android/.test(e),d=u||f||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=u||/Mac/.test(t),h=/\bCrOS\b/.test(e),p=/win/i.test(t),v=g&&e.match(/Version\/(\d*\.\d*)/);v&&(v=Number(v[1])),v&&15<=v&&(b=!(g=!1));var y=x&&(o||g&&(null==v||v<12.11)),C=m||w&&9<=k;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,L=function(e,t){var r=e.className,n=S(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;0=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&to?ge(o,le(e,o).text.length):(n=le(e,(r=t).line).text.length,null==(i=r.ch)||n=t:o.to>t);(n||(n=[])).push(new Me(a,o.from,s?null:o.to))}}return n}(r,i,a),l=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.fromt)&&(!r||Be(r,o.marker)<0)&&(r=o.marker)}return r}function qe(e,t,r,n,i){var o=le(e,t),a=Le&&o.markedSpans;if(a)for(var s=0;se.lastLine())return t;var r,n=le(e,t);if(!Ue(e,n))return t;for(;r=ze(n);)n=r.find(1,!0).line;return de(n)+1}function Ue(e,t){var r=Le&&t.markedSpans;if(r)for(var n=void 0,i=0;ir.maxLineLength&&(r.maxLineLength=t,r.maxLine=e)})}var Ye=null;function Qe(e,t,r){var n;Ye=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Ye=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Ye=i)}return null!=n?n:Ye}var Je=function(){var D="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",F="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,W=/[stwN]/,q=/[LRr]/,H=/[Lb1n]/,j=/[1n]/;function K(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var r="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!z.test(e))return!1;for(var n,i=e.length,o=[],a=0;a=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(-1e.options.maxHighlightLength&&Et(e.doc.mode,n.state),o=Dt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function zt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return new Bt(t,!0,n);var o=function(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;at.first&&le(t,o-1).stateAfter,s=a?Bt.fromSaved(t,a,o):new Bt(t,It(t.mode),o);return t.iter(o,n,function(e){Wt(r,e.text,s);var t=s.line;e.stateAfter=t==n-1||t%5==0||t>=i.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Bt.prototype.nextLine=function(){this.line++,0e.options.maxHighlightLength?(s=!1,a&&Wt(e,t,n,f.pos),f.pos=t.length,null):Ut(Ht(r,f,n.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;cs&&c.from<=s);u++);if(c.to>=l)return f(e,t,r,n,i,o,a);f(e,t.slice(0,c.to-s),r,n,null,o,a),n=null,t=t.slice(c.to-s),s=c.to}}}function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var a,s,l,c,u,f,d,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=c=u=s="",f=d=null,v=1/0;for(var y=[],b=void 0,x=0;xp||k.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==p&&(u+=" "+k.startStyle),k.endStyle&&w.to==v&&(b||(b=[])).push(k.endStyle,w.to),k.title&&((d||(d={})).title=k.title),k.attributes)for(var C in k.attributes)(d||(d={}))[C]=k.attributes[C];k.collapsed&&(!f||Be(f.marker,k)<0)&&(f=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var S=0;Sr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Tr(e,t,r,n){return Er(e,Or(e,t),r,n)}function Ar(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=l-s)-1,l<=t&&(a="right")),null!=i){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],a="left";if("right"==r&&i==l-s)for(;c=o.text.length?(t=o.text.length,r="before"):t<=0&&(t=0,r="after"),!c)return l("before"==r?t-1:t,"before"==r);function u(e,t,r){return l(r?e-1:e,1==c[t].level!=r)}var f=Qe(c,t,r),d=Ye,h=u(t,f,"before"==r);return null!=d&&(h.other=u(t,d,"before"!=r)),h}function Vr(e,t){var r=0;t=Ce(e.doc,t),e.options.lineWrapping||(r=en(e.display)*t.ch);var n=le(e.doc,t.line),i=$e(n)+wr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function $r(e,t,r,n,i){var o=ge(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function Gr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return $r(n.first,0,null,!0,-1);var i=he(n,r),o=n.first+n.size-1;if(on},o,i)}}function Yr(e,t,r,n){return r||(r=Or(e,t)),Xr(e,t,r,Hr(e,t,Er(e,r,n),"line").top)}function Qr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Jr(r,e,t,n,i){i-=$e(e);var o=Or(r,e),a=qr(e),s=0,l=e.text.length,c=!0,u=Ze(e,r.doc.direction);if(u){var f=(r.options.lineWrapping?function(e,t,r,n,i,o,a){var s=Xr(e,t,n,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||h.to<=l)){var p=1!=h.level,m=Er(e,n,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,g=mc&&(u={from:u.from,to:c,level:u.level});return u}:function(n,i,o,a,s,l,c){var e=ae(function(e){var t=s[e],r=1!=t.level;return Qr(Ur(n,ge(o,r?t.to:t.from,r?"before":"after"),"line",i,a),l,c,!0)},0,s.length-1),t=s[e];if(0c&&(t=s[e-1])}return t})(r,e,t,o,u,n,i);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,h,p=null,m=null,g=ae(function(e){var t=Er(r,o,e);return t.top+=a,t.bottom+=a,!!Qr(t,n,i,!1)&&(t.top<=i&&t.left<=n&&(p=e,m=t),!0)},s,l),v=!1;if(m){var y=n-m.left=x.bottom}return $r(t,g=oe(e.text,g,1),h,v,n-d)}function Zr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nr){Nr=O("pre");for(var t=0;t<49;++t)Nr.appendChild(document.createTextNode("x")),Nr.appendChild(O("br"));Nr.appendChild(document.createTextNode("x"))}T(e.measure,Nr);var r=Nr.offsetHeight/50;return 3=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n=e.display.viewTo||s.to().linet||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(_,y||0,null==b?k:b,function(e,t,r,n){var i="ltr"==r,o=C(e,i?"left":"right"),a=C(t-1,i?"right":"left"),s=null==y&&0==e,l=null==b&&t==k,c=0==n,u=!_||n==_.length-1;if(a.top-o.top<=3){var f=(T?l:s)&&u,d=(T?s:l)&&c?L:(i?o:a).left,h=f?M:(i?a:o).right;A(d,o.top,h-d,o.bottom)}else{var p,m,g,v;v=i?(p=T&&s&&c?L:o.left,m=T?M:S(e,r,"before"),g=T?L:S(t,r,"after"),T&&l&&u?M:a.right):(p=T?S(e,r,"before"):L,m=!T&&s&&c?M:o.right,g=!T&&l&&u?L:a.left,T?S(t,r,"after"):M),A(p,o.top,m-p,o.bottom),o.bottome.display.sizerWidth){var d=Math.ceil(s/en(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function bn(e){if(e.widgets)for(var t=0;t=a&&(o=he(t,$e(le(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function wn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=rn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;ao&&(t.bottom=t.top+o);var s=e.doc.height+kr(r),l=t.tops-n;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,d=_r(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Sn(e,t){null!=t&&(Mn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function _n(e){Mn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ln(e,t,r){null==t&&null==r||Mn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Mn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Tn(e,Vr(e,t.from),Vr(e,t.to),t.margin))}function Tn(e,t,r,n){var i=Cn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Ln(e,i.scrollLeft,i.scrollTop)}function An(e,t){Math.abs(e.doc.scrollTop-t)<2||(m||ai(e,{top:t}),On(e,t,!0),m&&ai(e),ti(e,100))}function On(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function En(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,wn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+kr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Sr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var In=function(e,t,r){this.cm=r;var n=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),tt(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};In.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0=i.viewTo)||i.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ni(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jn(e){var t=e.cm,r=t.display;e.updatedDisplay&&yn(t),e.barMeasure=Nn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Tr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Sr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-_r(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Kn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!c){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-wr(e.display))+"px;\n height: "+(t.bottom-t.top+Sr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?ge(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ge(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Ur(e,t),l=r&&r!=t?Ur(e,r):s,c=Cn(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(An(e,c.scrollTop),1t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Le&&je(e.doc,t)i.viewFrom?Jn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Jn(e);else if(t<=i.viewFrom){var o=Zn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Jn(e)}else if(r>=i.viewTo){var a=Zn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Jn(e)}else{var s=Zn(e,t,t,-1),l=Zn(e,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(ir(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):Jn(e)}var c=i.externalMeasured;c&&(r=i.lineN&&t=n.viewTo)){var o=n.view[sn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,r)&&a.push(r)}}}function Jn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zn(e,t,r,n){var i,o=sn(e,t),a=e.display.view;if(!Le||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,l=0;l=l.display.viewTo)){var u=+new Date+l.options.workTime,f=zt(l,c.highlightFrontier),d=[];c.iter(f.line,Math.min(c.first+c.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles,r=e.text.length>l.options.maxHighlightLength?Et(c.mode,f.state):null,n=Dt(l,e,f,!0);r&&(f.state=r),e.styles=n.styles;var i=e.styleClasses,o=n.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var a=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),s=0;!a&&su)return ti(l,l.options.workDelay),!0}),c.highlightFrontier=f.line,c.modeFrontier=Math.max(c.modeFrontier,f.line),d.length&&Vn(l,function(){for(var e=0;e=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==ei(e))return!1;kn(e)&&(Jn(e),t.dims=tn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Le&&(o=je(e.doc,o),a=Ke(e.doc,a));var s,l,c,u,f=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;l=o,c=a,0==(u=(s=e).display).view.length||l>=u.viewTo||c<=u.viewFrom?(u.view=ir(s,l,c),u.viewFrom=l):(u.viewFrom>l?u.view=ir(s,l,u.viewFrom).concat(u.view):u.viewFromc&&(u.view=u.view.slice(0,sn(s,c)))),u.viewTo=c,r.viewOffset=$e(le(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var d=ei(e);if(!f&&0==d&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var h=function(e){if(e.hasFocus())return null;var t=N();if(!t||!E(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&E(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return 4=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ii(e,t);n=!1){yn(e);var i=Nn(e);ln(e),Rn(e,i),li(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ai(e,t){var r=new ni(e,t);if(ii(e,r)){yn(e),oi(e,r);var n=Nn(e);ln(e),Rn(e,n),li(e,n),r.finish()}}function si(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function li(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sr(e)+"px"}function ci(e){var t=e.display.gutters,r=e.options.gutters;M(t);for(var n=0;na.clientWidth,l=a.scrollHeight>a.clientHeight;if(n&&s||i&&l){if(i&&x&&b)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var f=0;fl-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(s=i).lastOp==n?(Ii(s.done),X(s.done)):s.done.length&&!X(s.done).ranges?X(s.done):1i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,a||it(e,"historyAdded")}function Ri(e,t,r,n){var i,o,a,s,l,c=e.history,u=n&&n.origin;r==c.lastSelOp||u&&c.lastSelOrigin==u&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==u||(i=e,o=u,a=X(c.done),s=t,"*"==(l=o.charAt(0))||"+"==l&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?c.done[c.done.length-1]=t:Bi(t,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=u,c.lastSelOp=r,n&&!1!==n.clearRedo&&Ii(c.undone)}function Bi(e,t){var r=X(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Di(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,n),function(e){e.markedSpans&&((i||(i=r["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Fi(e){if(!e)return null;for(var t,r=0;r=t.ch:s.to>t.ch))){if(i&&(it(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(r){var c=l.find(n<0?1:-1),u=void 0;if((n<0?l.inclusiveRight:l.inclusiveLeft)&&(c=eo(e,c,-n,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=ve(c,r))&&(n<0?u<0:0e.first?Ce(e,ge(t.line-1)):null:0e.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ge(o,le(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ce(e,t.from,t.to),r||(r=ki(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=de(He(le(n,o.line))),n.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0}));-1i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiert.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Yn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Yi(t.doc)),t&&sr(t,"markerCleared",t,this,i,o),r&&qn(t),this.parent&&this.parent.clear()}},bo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,a){i=Ce(this,i),o=Ce(this,o);var s=[],l=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var r=0;r=n.to||null==n.from&&l!=i.line||null!=n.from&&l==o.line&&n.from>=o.ch||a&&!a(n.marker)||s.push(n.marker.parent||n.marker)}++l}),s},getAllMarks:function(){var n=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var r=0;rt&&(t=e.from),null!=e.to&&e.toe.text.length?null:n}function $o(e,t,r){var n=Vo(e,t.ch,r);return null==n?null:new ge(t.line,n,r<0?"after":"before")}function Go(e,t,r,n,i){if(e){var o=Ze(r,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level)?"after":"before";if(0a.doc.first){var o=le(a.doc,n.line-1).text;o&&(n=new ge(n.line,1),a.replaceRange(i.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),ge(n.line-1,o.length-1),n,"+transpose"))}t.push(new vi(n,n))}a.setSelections(t)})},newlineAndIndent:function(n){return Vn(n,function(){for(var e=n.listSelections(),t=e.length-1;0<=t;t--)n.replaceRange(n.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=n.listSelections();for(var r=0;ru&&t.push(new vi(ge(s,u),ge(s,V(c,a,r))))}t.length||t.push(new vi(v,v)),$i(b,yi(g,k.ranges.slice(0,w).concat(t),w),{origin:"*mouse",scroll:!1}),g.scrollIntoView(e)}else{var f,d=x,h=fa(g,e,y.unit),p=d.anchor;p=0=i.to||n.linel.bottom?20:0;o&&setTimeout($n(g,function(){c==r&&(a.scroller.scrollTop+=o,e(t))}),50)}}(e):n(e)}),o=$n(g,n);g.state.selectingText=o,tt(a.wrapper.ownerDocument,"mousemove",i),tt(a.wrapper.ownerDocument,"mouseup",o)}(e,n,t,o)}(t,a,l,e):ht(e)==r.scroller&&ct(e):2==s?(a&&Hi(t.doc,a),setTimeout(function(){return r.input.focus()},20)):3==s&&(C?t.display.input.onContextMenu(e):mn(t)))}}function fa(e,t,r){if("char"==r)return new vi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new vi(ge(t.line,0),Ce(e.doc,ge(t.line+1,0)));var n=r(e,t);return new vi(n.from,n.to)}function da(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ct(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!st(e,r))return ft(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return it(e,r,e,he(e.doc,o),e.options.gutters[l],t),ft(t)}}function ha(e,t){return da(e,t,"gutterClick",!0)}function pa(e,t){var r,n;xr(e.display,t)||(n=t,st(r=e,"gutterContextMenu")&&da(r,n,"gutterContextMenu",!1))||(ot(e,t,"contextmenu")||C||e.display.input.onContextMenu(t))}function ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fr(e)}ca.prototype.compare=function(e,t,r){return this.time+400>e&&0==ve(t,this.pos)&&r==this.button};var ga={toString:function(){return"CodeMirror.Init"}},va={},ya={};function ba(e){ci(e),Yn(e),wn(e)}function xa(e,t,r){if(!t!=!(r&&r!=ga)){var n=e.display.dragFunctions,i=t?tt:nt;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function wa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),Xe(e)),on(e),Yn(e),Fr(e),setTimeout(function(){return Rn(e)},100)}function ka(e,t){var r=this;if(!(this instanceof ka))return new ka(e,t);this.options=t=t?D(t):{},D(va,t,!1),ui(t);var n=t.value;"string"==typeof n?n=new _o(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new ka.inputStyles[t.inputStyle](this),o=this.display=new se(e,n,i);for(var a in ci(o.wrapper.CodeMirror=this),ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!d&&o.input.focus(),w&&k<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(i){var o=i.display;tt(o.scroller,"mousedown",$n(i,ua)),tt(o.scroller,"dblclick",w&&k<11?$n(i,function(e){if(!ot(i,e)){var t=an(i,e);if(t&&!ha(i,e)&&!xr(i.display,e)){ct(e);var r=i.findWordAt(t);Hi(i.doc,r.anchor,r.head)}}}):function(e){return ot(i,e)||ct(e)});tt(o.scroller,"contextmenu",function(e){return pa(i,e)});var r,n={end:0};function a(){o.activeTouch&&(r=setTimeout(function(){return o.activeTouch=null},1e3),(n=o.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return 400o.first?F(le(o,t-1).text,null,a):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)d+=a,f+="\t";if(d=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var n=Qe(l,s.ch,s.sticky),i=l[n];if("ltr"==t.doc.direction&&i.level%2==0&&(0s.ch:i.from=i.from&&d>=u.begin)){var h=f?"before":"after";return new ge(s.line,d,h)}}var p=function(e,t,r){for(var n=function(e,t){return t?new ge(s.line,c(e,1),"before"):new ge(s.line,e,"after")};0<=e&&e=n.first+n.size||(i=new ge(r,i.ch,i.sticky),!(s=le(n,r))))return!1;i=Go(a,n.cm,s,i.line,o)}else i=t;return!0}if("char"==e)l();else if("column"==e)l(!0);else if("word"==e||"group"==e)for(var c=null,u="group"==e,f=n.cm&&n.cm.getHelper(i,"wordChars"),d=!0;!(o<0)||l(!d);d=!1){var h=s.text.charAt(i.ch)||"\n",p=te(h,f)?"w":u&&"\n"==h?"n":!u||/\s/.test(h)?null:"p";if(!u||d||p||(p="s"),c&&c!=p){o<0&&(o=1,l(),i.sticky="after");break}if(p&&(c=p),0=a.height){o.hitSide=!0;break}i+=5*r}return o}var Ra=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(e,t){var r=Ar(e,t.line);if(!r||r.hidden)return null;var n=le(e.doc,t.line),i=Mr(r,n,t.line),o=Ze(n,e.doc.direction),a="left";o&&(a=Qe(o,t.ch)%2?"right":"left");var s=Pr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Da(e,t){return t&&(e.bad=!0),e}function Fa(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Da(e.clipPos(ge(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&Ba(t,n)||{node:s[0].measure.map[2],offset:0},c=i.linen.firstLine()&&(a=ge(a.line-1,le(n.doc,a.line-1).length)),s.ch==le(n.doc,s.line).text.length&&s.linei.viewTo-1)return!1;r=a.line==i.viewFrom||0==(e=sn(n,a.line))?(t=de(i.view[0].line),i.view[0].node):(t=de(i.view[e].line),i.view[e-1].node.nextSibling);var l,c,u=sn(n,s.line);if(c=u==i.view.length-1?(l=i.viewTo-1,i.lineDiv.lastChild):(l=de(i.view[u+1].line)-1,i.view[u+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(l,e,t,c,u){var r="",f=!1,d=l.doc.lineSeparator(),h=!1;function p(){f&&(r+=d,h&&(r+=d),f=h=!1)}function m(e){e&&(p(),r+=e)}function g(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(t)return void m(t);var r,n=e.getAttribute("cm-marker");if(n){var i=l.findMarks(ge(c,0),ge(u+1,0),(s=+n,function(e){return e.id==s}));return void(i.length&&(r=i[0].find(0))&&m(ce(l.doc,r.from,r.to).join(d)))}if("false"==e.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;o&&p();for(var a=0;aa.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var w=ge(t,h),k=ge(l,d.length?X(d).length-p:0);return 1n&&(Sa(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&_n(t));else{var a=o.from(),s=o.to(),l=Math.max(n,a.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c>1;if((a?r[2*a-1]:0)>=o)i=a;else{if(!(r[2*a+1]f)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(c=e.bottom),u+t.offsetWidth>d&&(u=d-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),r&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Cn(o,a)).scrollTop&&An(o,s.scrollTop),null!=s.scrollLeft&&En(o,s.scrollLeft))},triggerOnKeyDown:Gn(ia),triggerOnKeyPress:Gn(aa),triggerOnKeyUp:oa,triggerOnMouseDown:Gn(ua),execCommand:function(e){if(Xo.hasOwnProperty(e))return Xo[e].call(null,this)},triggerElectric:Gn(function(e){Aa(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=Ce(this.doc,e),a=0;a")):null:t.match("--")?e(i("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function n(i){return function(e,t){for(var r;null!=(r=e.next());){if("<"==r)return t.tokenize=n(i+1),t.tokenize(e,t);if(">"==r){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=c;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),r.tokenize=i("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",r.tokenize=u,"tag bracket"):"&"!=n?(t.eatWhile(/[^&<]/),null):(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error"}function u(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=c,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"!=r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,(i=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}).isInAttribute=!0,i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=c,t.state=p,t.tagName=t.tagStart=null;var n,i,o=t.tokenize(e,t);return o?o+" tag error":"tag error"}function i(r,n){return function(e,t){for(;!e.eol();){if(e.match(n)){t.tokenize=c;break}e.next()}return r}}function f(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function p(e,t,r){return"openTag"==e?(r.tagStart=t.column(),m):"closeTag"==e?g:p}function m(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",b):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",b(e,t,r)):(o="error",m)}function g(e,t,r){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",v(e,t,r)):(o="error",y);var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",v):(o="tag error",y)}function v(e,t,r){return"endTag"!=e?(o="error",v):(d(r),p)}function y(e,t,r){return o="error",v(e,0,r)}function b(e,t,r){if("word"==e)return o="attribute",x;if("endTag"!=e&&"selfcloseTag"!=e)return o="error",b;var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?h(r,n):(h(r,n),r.context=new f(r,n,i==r.indented)),p}function x(e,t,r){return"equals"==e?w:(l.allowMissing||(o="error"),b(e,0,r))}function w(e,t,r){return"string"==e?k:"word"==e&&l.allowUnquoted?(o="string",b):(o="error",b(e,0,r))}function k(e,t,r){return"string"==e?k:b(e,0,r)}return c.isInText=!0,{startState:function(e){var t={tokenize:c,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(e,t,r){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(n&&n.noIndent)return C.Pass;if(e.tokenize!=u&&e.tokenize!=c)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=b)}}}),C.defineMIME("text/xml","xml"),C.defineMIME("application/xml","xml"),C.mimeModes.hasOwnProperty("text/html")||C.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function($e){"use strict";$e.defineMode("javascript",function(e,f){var n,i,d=e.indentUnit,h=f.statementIndent,a=f.jsonld,s=f.json||a,c=f.typescript,u=f.wordCharacters||/[\w$\xa1-\uffff]/,l=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e,t,r){return n=e,i=r,t}function v(e,t){var i,r=e.next();if('"'==r||"'"==r)return t.tokenize=(i=r,function(e,t){var r,n=!1;if(a&&"@"==e.peek()&&e.match(m))return t.tokenize=v,g("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=i||n);)n=!n&&"\\"==r;return n||(t.tokenize=v),g("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==r&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("="==r&&e.eat(">"))return g("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return g("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),g("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y)(e,t):e.eat("/")?(e.skipToEnd(),g("comment","comment")):Ve(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==r)return(t.tokenize=b)(e,t);if("#"==r)return e.skipToEnd(),g("error","error");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),g("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var n=e.current();if("."!=t.lastType){if(l.propertyIsEnumerable(n)){var o=l[n];return g(o.type,o.style,n)}if("async"==n&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",n)}return g("variable","variable",n)}}function y(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=v;break}n="*"==r}return g("comment","comment")}function b(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=v;break}n=!n&&"\\"==r}return g("quasi","string-2",e.current())}var x="([{}])";function o(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,a=r-1;0<=a;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(0<=l&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(3<=l&&l<6)++i;else if(u.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function k(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function C(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var S={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;0<=e;e--)S.cc.push(arguments[e])}function L(){return _.apply(null,arguments),!0}function M(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function r(e){var t=S.state;if(S.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,r){{if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new A(n,r.vars,!0):null}return M(t,r.vars)?r:new A(r.prev,new O(t,r.vars),!1)}return null}}(e,t.context);if(null!=r)return void(t.context=r)}else if(!M(e,t.localVars))return void(t.localVars=new O(e,t.localVars));f.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new O(e,t.globalVars))}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,r){this.prev=e,this.vars=t,this.block=r}function O(e,t){this.name=e,this.next=t}var t=new O("this",new O("arguments",null));function E(){S.state.context=new A(S.state.context,S.state.localVars,!1),S.state.localVars=t}function N(){S.state.context=new A(S.state.context,S.state.localVars,!0),S.state.localVars=null}function I(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function P(n,i){var e=function(){var e=S.state,t=e.indented;if("stat"==e.lexical.type)t=e.lexical.indented;else for(var r=e.lexical;r&&")"==r.type&&r.align;r=r.prev)t=r.indented;e.lexical=new k(t,S.stream.column(),n,null,e.lexical,i)};return e.lex=!0,e}function R(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(r){return function e(t){return t==r?L():";"==r||"}"==t||")"==t||"]"==t?_():L(e)}}function D(e,t){return"var"==e?L(P("vardef",t),ve,B(";"),R):"keyword a"==e?L(P("form"),q,D,R):"keyword b"==e?L(P("form"),D,R):"keyword d"==e?S.stream.match(/^\s*$/,!1)?L():L(P("stat"),j,B(";"),R):"debugger"==e?L(B(";")):"{"==e?L(P("}"),N,oe,R,I):";"==e?L():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==R&&S.state.cc.pop()(),L(P("form"),q,D,R,Ce)):"function"==e?L(Ae):"for"==e?L(P("form"),Se,D,R):"class"==e||c&&"interface"==t?(S.marked="keyword",L(P("form"),Ne,R)):"variable"==e?c&&"declare"==t?(S.marked="keyword",L(D)):c&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?L(Ke):"type"==t?L(ce,B("operator"),ce,B(";")):L(P("form"),ye,B("{"),P("}"),oe,R,R)):c&&"namespace"==t?(S.marked="keyword",L(P("form"),z,oe,R)):c&&"abstract"==t?(S.marked="keyword",L(D)):L(P("stat"),J):"switch"==e?L(P("form"),q,B("{"),P("}","switch"),N,oe,R,R,I):"case"==e?L(z,B(":")):"default"==e?L(B(":")):"catch"==e?L(P("form"),E,F,D,R,I):"export"==e?L(P("stat"),Be,R):"import"==e?L(P("stat"),Fe,R):"async"==e?L(D):"@"==t?L(z,D):_(P("stat"),z,B(";"),R)}function F(e){if("("==e)return L(Oe,B(")"))}function z(e,t){return H(e,t,!1)}function W(e,t){return H(e,t,!0)}function q(e){return"("!=e?_():L(P(")"),z,B(")"),R)}function H(e,t,r){if(S.state.fatArrowAt==S.stream.start){var n=r?X:G;if("("==e)return L(E,P(")"),ne(Oe,")"),R,B("=>"),n,I);if("variable"==e)return _(E,ye,B("=>"),n,I)}var i,o=r?U:K;return w.hasOwnProperty(e)?L(o):"function"==e?L(Ae,o):"class"==e||c&&"interface"==t?(S.marked="keyword",L(P("form"),Ee,R)):"keyword c"==e||"async"==e?L(r?W:z):"("==e?L(P(")"),j,B(")"),R,o):"operator"==e||"spread"==e?L(r?W:z):"["==e?L(P("]"),je,R,o):"{"==e?ie(ee,"}",null,o):"quasi"==e?_(V,o):"new"==e?L((i=r,function(e){return"."==e?L(i?Q:Y):"variable"==e&&c?L(pe,i?U:K):_(i?W:z)})):"import"==e?L(z):L()}function j(e){return e.match(/[;\}\)\],]/)?_():_(z)}function K(e,t){return","==e?L(z):U(e,t,!1)}function U(e,t,r){var n=0==r?K:U,i=0==r?z:W;return"=>"==e?L(E,r?X:G,I):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?L(n):c&&"<"==t&&S.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?L(P(">"),ne(ce,">"),R,n):"?"==t?L(z,B(":"),i):L(i):"quasi"==e?_(V,n):";"!=e?"("==e?ie(W,")","call",n):"."==e?L(Z,n):"["==e?L(P("]"),j,B("]"),R,n):c&&"as"==t?(S.marked="keyword",L(ce,n)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),L(i)):void 0:void 0}function V(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?L(V):L(z,$)}function $(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,L(V)}function G(e){return o(S.stream,S.state),_("{"==e?D:z)}function X(e){return o(S.stream,S.state),_("{"==e?D:W)}function Y(e,t){if("target"==t)return S.marked="keyword",L(K)}function Q(e,t){if("target"==t)return S.marked="keyword",L(U)}function J(e){return":"==e?L(R,D):_(K,B(";"),R)}function Z(e){if("variable"==e)return S.marked="property",L()}function ee(e,t){if("async"==e)return S.marked="property",L(ee);if("variable"==e||"keyword"==S.style){return S.marked="property","get"==t||"set"==t?L(te):(c&&S.state.fatArrowAt==S.stream.start&&(r=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+r[0].length),L(re));var r}else{if("number"==e||"string"==e)return S.marked=a?"property":S.style+" property",L(re);if("jsonld-keyword"==e)return L(re);if(c&&T(t))return S.marked="keyword",L(ee);if("["==e)return L(z,ae,B("]"),re);if("spread"==e)return L(W,re);if("*"==t)return S.marked="keyword",L(ee);if(":"==e)return _(re)}}function te(e){return"variable"!=e?_(re):(S.marked="property",L(Ae))}function re(e){return":"==e?L(W):"("==e?_(Ae):void 0}function ne(n,i,o){function a(e,t){if(o?-1"),ce):void 0}function ue(e){if("=>"==e)return L(ce)}function fe(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",L(fe)):"?"==t?L(fe):":"==e?L(ce):"["==e?L(z,ae,B("]"),fe):void 0}function de(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?L(de):":"==e?L(ce):_(ce)}function he(e,t){return"<"==t?L(P(">"),ne(ce,">"),R,he):"|"==t||"."==e||"&"==t?L(ce):"["==e?L(B("]"),he):"extends"==t||"implements"==t?(S.marked="keyword",L(ce)):void 0}function pe(e,t){if("<"==t)return L(P(">"),ne(ce,">"),R,he)}function me(){return _(ce,ge)}function ge(e,t){if("="==t)return L(ce)}function ve(e,t){return"enum"==t?(S.marked="keyword",L(Ke)):_(ye,ae,we,ke)}function ye(e,t){return c&&T(t)?(S.marked="keyword",L(ye)):"variable"==e?(r(t),L()):"spread"==e?L(ye):"["==e?ie(xe,"]"):"{"==e?ie(be,"}"):void 0}function be(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?L(ye):"}"==e?_():"["==e?L(z,B("]"),B(":"),be):L(B(":"),ye,we)):(r(t),L(we))}function xe(){return _(ye,we)}function we(e,t){if("="==t)return L(W)}function ke(e){if(","==e)return L(ve)}function Ce(e,t){if("keyword b"==e&&"else"==t)return L(P("form","else"),D,R)}function Se(e,t){return"await"==t?L(Se):"("==e?L(P(")"),_e,B(")"),R):void 0}function _e(e){return"var"==e?L(ve,B(";"),Me):";"==e?L(Me):"variable"==e?L(Le):_(z,B(";"),Me)}function Le(e,t){return"in"==t||"of"==t?(S.marked="keyword",L(z)):L(K,Me)}function Me(e,t){return";"==e?L(Te):"in"==t||"of"==t?(S.marked="keyword",L(z)):_(z,B(";"),Te)}function Te(e){")"!=e&&L(z)}function Ae(e,t){return"*"==t?(S.marked="keyword",L(Ae)):"variable"==e?(r(t),L(Ae)):"("==e?L(E,P(")"),ne(Oe,")"),R,se,D,I):c&&"<"==t?L(P(">"),ne(me,">"),R,Ae):void 0}function Oe(e,t){return"@"==t&&L(z,Oe),"spread"==e?L(Oe):c&&T(t)?(S.marked="keyword",L(Oe)):_(ye,ae,we)}function Ee(e,t){return"variable"==e?Ne(e,t):Ie(e,t)}function Ne(e,t){if("variable"==e)return r(t),L(Ie)}function Ie(e,t){return"<"==t?L(P(">"),ne(me,">"),R,Ie):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(S.marked="keyword"),L(c?ce:z,Ie)):"{"==e?L(P("}"),Pe,R):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&T(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",L(Pe)):"variable"==e||"keyword"==S.style?(S.marked="property",L(c?Re:Ae,Pe)):"["==e?L(z,ae,B("]"),c?Re:Ae,Pe):"*"==t?(S.marked="keyword",L(Pe)):";"==e?L(Pe):"}"==e?L():"@"==t?L(z,Pe):void 0}function Re(e,t){return"?"==t?L(Re):":"==e?L(ce,we):"="==t?L(W):_(Ae)}function Be(e,t){return"*"==t?(S.marked="keyword",L(He,B(";"))):"default"==t?(S.marked="keyword",L(z,B(";"))):"{"==e?L(ne(De,"}"),He,B(";")):_(D)}function De(e,t){return"as"==t?(S.marked="keyword",L(B("variable"))):"variable"==e?_(W,De):void 0}function Fe(e){return"string"==e?L():"("==e?_(z):_(ze,We,He)}function ze(e,t){return"{"==e?ie(ze,"}"):("variable"==e&&r(t),"*"==t&&(S.marked="keyword"),L(qe))}function We(e){if(","==e)return L(ze,We)}function qe(e,t){if("as"==t)return S.marked="keyword",L(ze)}function He(e,t){if("from"==t)return S.marked="keyword",L(z)}function je(e){return"]"==e?L():_(ne(W,"]"))}function Ke(){return _(P("form"),ye,B("{"),P("}"),ne(Ue,"}"),R,R)}function Ue(){return _(ye,we)}function Ve(e,t,r){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return R.lex=I.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new k((e||0)-d,0,"block",!1),localVars:f.localVars,context:f.localVars&&new A(null,null,!1),indented:e||0};return f.globalVars&&"object"==typeof f.globalVars&&(t.globalVars=f.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),o(e,t)),t.tokenize!=y&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",function(e,t,r,n,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?z:D)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==r&&C(e,n)?"variable-2":t}}(t,r,n,i,e))},indent:function(e,t){if(e.tokenize==y)return $e.Pass;if(e.tokenize!=v)return 0;var r,n=t&&t.charAt(0),i=e.lexical;if(!/^\s*else\b/.test(t))for(var o=e.cc.length-1;0<=o;--o){var a=e.cc[o];if(a==R)i=i.prev;else if(a!=Ce)break}for(;("stat"==i.type||"form"==i.type)&&("}"==n||(r=e.cc[e.cc.length-1])&&(r==K||r==U)&&!/^[,\.=+\-*:?[\(]/.test(t));)i=i.prev;h&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var s,l,c=i.type,u=n==c;return"vardef"==c?i.indented+("operator"==e.lastType||","==e.lastType?i.info.length+1:0):"form"==c&&"{"==n?i.indented:"form"==c?i.indented+d:"stat"==c?i.indented+(l=t,"operator"==(s=e).lastType||","==s.lastType||p.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?h||d:0):"switch"!=i.info||u||0==f.doubleIndentSwitch?i.align?i.column+(u?0:1):i.indented+(u?0:d):i.indented+(/^(?:case|default)\b/.test(t)?d:2*d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:Ve,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=z&&t!=W||e.cc.pop()}}}),$e.registerHelper("wordChars","javascript",/[\w$]/),$e.defineMIME("text/javascript","javascript"),$e.defineMIME("text/ecmascript","javascript"),$e.defineMIME("application/javascript","javascript"),$e.defineMIME("application/x-javascript","javascript"),$e.defineMIME("application/ecmascript","javascript"),$e.defineMIME("application/json",{name:"javascript",json:!0}),$e.defineMIME("application/x-json",{name:"javascript",json:!0}),$e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),$e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),$e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(O){"use strict";function e(e){for(var t={},r=0;r*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=k,x("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0})(e,t);return r&&"object"==typeof r&&(n=r[1],r=r[0]),i=r,"comment"!=n&&(t.state=A[t.state](n,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-o)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}});var t=["domain","regexp","url","url-prefix"],r=e(t),n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(n),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],a=e(o),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=e(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=e(c),f=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],d=e(f),h=e(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),p=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=e(m),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],y=e(v),b=t.concat(n).concat(o).concat(s).concat(c).concat(f).concat(m).concat(v);function x(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}O.registerHelper("hintWords","css",b),O.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:p,colorKeywords:g,valueKeywords:y,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x)(e,t)}},name:"css"}),O.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x)(e,t):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),O.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x)(e,t):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),O.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:a,propertyKeywords:u,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:p,colorKeywords:g,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x)(e,t)}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(p){"use strict";var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var o={};function m(e,t){var r,n=e.match(o[r=t]||(o[r]=new RegExp("\\s+"+r+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function g(e,t){return new RegExp((t?"^":"")+"","i")}function a(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],o=i.length-1;0<=o;o--)n.unshift(i[o])}p.defineMode("htmlmixed",function(u,e){var f=p.getMode(u,{name:"xml",htmlMode:!0,multilineTagIndentFactor:e.multilineTagIndentFactor,multilineTagIndentPastTag:e.multilineTagIndentPastTag}),d={},t=e&&e.tags,r=e&&e.scriptTypes;if(a(i,d),t&&a(t,d),r)for(var n=r.length-1;0<=n;n--)d.script.unshift(["type",r[n].matches,r[n].mode]);function h(e,t){var r,n=f.token(e,t.htmlState),i=/\btag\b/.test(n);if(i&&!/[<>\s\/]/.test(e.current())&&(r=t.htmlState.tagName&&t.htmlState.tagName.toLowerCase())&&d.hasOwnProperty(r))t.inTag=r+" ";else if(t.inTag&&i&&/>$/.test(e.current())){var o=/^([\S]+) (.*)/.exec(t.inTag);t.inTag=null;var a=">"==e.current()&&function(e,t){for(var r=0;r|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function R(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function e(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,_=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,L=s.isReservedIdentifier||!1;function M(e,t){var o,r=e.next();if(y[r]){var n=y[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=(o=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==o&&!n){i=!0;break}n=!n&&"\\"==r}return(i||!n&&!b)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(w.test(r))return a=r,null;if(k.test(r)){if(e.backUp(1),e.match(C))return"number";e.next()}if("/"==r){if(e.eat("*"))return(t.tokenize=T)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(S););return"operator"}if(e.eatWhile(_),x)for(;e.match(x);)e.eatWhile(_);var i=e.current();return B(d,i)?(B(m,i)&&(a="newstatement"),B(g,i)&&(l=!0),"keyword"):B(h,i)?"type":B(p,i)||L&&L(i)?(B(m,i)&&(a="newstatement"),"builtin"):B(v,i)?"atom":"variable"}function T(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function A(e,t){s.typeFirstDefinitions&&e.eol()&&R(t.context)&&(t.typeAtEndOfLine=P(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new E((e||0)-c,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return A(e,t),null;a=l=null;var n=(t.tokenize||M)(e,t);if("comment"==n||"meta"==n)return n;if(null==r.align&&(r.align=!0),";"==a||":"==a||","==a&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)I(t);else if("{"==a)N(t,e.column(),"}");else if("["==a)N(t,e.column(),"]");else if("("==a)N(t,e.column(),")");else if("}"==a){for(;"statement"==r.type;)r=I(t);for("}"==r.type&&(r=I(t));"statement"==r.type;)r=I(t)}else a==r.type?I(t):o&&(("}"==r.type||"top"==r.type)&&";"!=a||"statement"==r.type&&"newstatement"==a)&&N(t,e.column(),"statement",e.current());if("variable"==n&&("def"==t.prevToken||s.typeFirstDefinitions&&P(e,t,e.start)&&R(t.context)&&e.match(/^\s*\(/,!1))&&(n="def"),y.token){var i=y.token(e,t,n);void 0!==i&&(n=i)}return"def"==n&&!1===s.styleDefs&&(n="variable"),t.startOfLine=!1,t.prevToken=l?"def":n||a,A(e,t),n},indent:function(e,t){if(e.tokenize!=M&&null!=e.tokenize||e.typeAtEndOfLine)return O.Pass;var r=e.context,n=t&&t.charAt(0),i=n==r.type;if("statement"==r.type&&"}"==n&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(y.indent){var o=y.indent(e,r,t,c);if("number"==typeof o)return o}var a=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(n)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==n?0:u):!r.align||f&&")"==r.type?")"!=r.type||i?r.indented+(i?0:c)+(i||!a||/^(?:case|default)\b/.test(t)?0:c):r.indented+u:r.column+(i?0:1)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",r=e("int long char short double float unsigned signed void bool"),n=e("SEL instancetype id Class Protocol BOOL");function i(e){return B(r,e)||/.+_t/.test(e)}var o="case do else for if switch while struct enum union",a="struct enum union";function s(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=s;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function l(e,t){return"type"==t.prevToken&&"type"}function c(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function u(e){return e.eatWhile(/[\w\.']/),"number"}function f(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],(t.tokenize=h)(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function d(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function h(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function p(e,t){"string"==typeof e&&(e=[e]);var r=[];function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}n(t.keywords),n(t.types),n(t.builtin),n(t.atoms),r.length&&(t.helperType=e[0],O.registerHelper("hintWords",e[0],r));for(var i=0;i!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=m,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,t){var r=t.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(t.context=new E(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function n(i){return function(e,t){for(var r;r=e.next();){if("*"==r&&e.eat("/")){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=null;break}if("/"==r&&e.eat("*"))return t.tokenize=n(i+1),t.tokenize(e,t)}return"comment"}}(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),p("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var o;return t.tokenize=(o=e.match('""'),function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!o&&!n&&e.match('"')){i=!0;break}if(o&&e.match('"""')){i=!0;break}r=e.next(),!n&&"$"==r&&e.match("{")&&e.skipTo("}"),n=!n&&"\\"==r&&!o}return!i&&o||(t.tokenize=null),"string"}),t.tokenize(e,t)},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),p(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:e("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:e("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),p("text/x-nesc",{name:"clike",keywords:e(t+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i,blockKeywords:e(o),atoms:e("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),p("text/x-objectivec",{name:"clike",keywords:e(t+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(e){return i(e)||B(n,e)},builtin:e("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:e(o+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:e(a+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:e("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":s,"*":l},modeProps:{fold:["brace","include"]}}),p("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i,blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:!0,atoms:e("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var g=null;p("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function o(a){return function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!n&&e.match('"')&&("single"==a||e.match('""'))){i=!0;break}if(!n&&e.match("``")){g=o(a),i=!0;break}r=e.next(),n="single"==a&&!n&&"\\"==r}return i&&(t.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!g||!e.match("`"))&&(t.tokenize=g,g=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(c){"use strict";function e(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=s([[["->",null]],[[/[\w]+/,"variable"]]],r,n)),"variable-2";var i=!1;for(;!e.eol()&&(i||!1===n||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}(e,t,r,n)}}var t="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",r="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";c.registerHelper("hintWords","php",[t,r,n].join(" ").split(" ")),c.registerHelper("wordChars","php",/[\w$]/);var i={name:"clike",helperType:"php",keywords:e(t),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(r),builtin:e(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var n=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(r[0].length+(n?2:1));if(n&&e.eat(n),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=l(i,"'"!=n),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=l('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&0")?(t.curMode=s,t.curState=t.html,t.php.context.prev||(t.php=null),"meta"):l.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=l,t.php||(t.php=c.startState(l,s.indent(t.html,""))),t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else n=t.pending&&e.pos/.test(o)?t.pending=i[0]:t.pending={end:e.pos,style:n},e.backUp(o.length-a)),n},indent:function(e,t){return e.curMode!=l&&/^\s*<\//.test(t)||e.curMode==l&&/^\?>/.test(t)?s.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),c.defineMIME("application/x-httpd-php","php"),c.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),c.defineMIME("text/x-php",i)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var C={allowUnquoted:!0,allowMissing:!0,caseFold:!0};e.defineMode("shortcode",function(e,t){var a,s,o=e.indentUnit,l={},r=C;for(var n in r)l[n]=r[n];for(var i in t)l[i]=t[i];function c(e,t){return"["===e.next()?"["===e.peek()?(t.tokenize=u,"comment"):/\s/.test(e.peek())?null:(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):(e.eatWhile(/[^\[]/),null)}function u(e,t){var r=function(e,t){return e.next(),t.tokenize=c,"comment"};return r.isInEscape=!0,"]"===e.next()&&"]"===e.peek()&&(t.tokenize=r),e.eatWhile(/[^\]]/),null}function f(e,t){var r=e.next();if("]"===r||"/"===r&&e.eat("]"))return t.tokenize=c,a="endTag","tag bracket";if("="===r)return a="equals",null;if("["!==r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,(i=function(e,t){var r=e.next();return r===n?(t.tokenize=f,"string"):/[\[\]]/.test(r)?"string error":(e.eatWhile(/[^\[\]\'\"]/),"string")}).isInAttribute=!0,i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=\[\]\"\']*[^\s\u00a0=\[\]\"\'\/]/),"word");t.tokenize=c,t.state=p,t.tagName=t.tagStart=null;var n,i,o=t.tokenize(e,t);return o?o+" tag error":"tag error"}function d(e,t,r){this.tagHistory=[t],e.context&&(this.tagHistory=this.tagHistory.concat(e.context.tagHistory)),this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r}function h(e){e.context&&(e.context=e.context.prev)}function p(e,t,r){return"openTag"===e?(r.tagStart=t.column(),m):"closeTag"===e?g:p}function m(e,t,r){if("word"!==e)return s="error",m;var n=t.current();return s=/[\[\]\/\'\"<>&]/.test(n)?"error":(r.tagName=t.current(),"tag"),b}function g(e,t,r){if("word"!==e)return s="error",y;var n=t.current();if(r.context&&r.context.tagName===n||!1===l.matchClosing)return s="tag",v;if(r.context&&0?/.test(e.current())&&!t.htmlmixedState.localState&&"comment"===r&&(e.backUp(e.current().length),t.token=u);return r}function u(e,t){return e.match("\x3c!--more")?"meta":e.match("--\x3e")||e.match("\x3c!--noteaser--\x3e")||e.match("\x3c!--nextpage--\x3e")?(t.token=c,"meta"):(e.eatWhile(/[^\-/]/),"string")}return{startState:function(){return{token:c,isInShortcode:!1,shortcodeState:null,htmlmixedState:a.startState()}},copyState:function(e){var t;return e.shortcodeState&&(t=r.copyState(s,e.shortcodeState)),{token:e.token,shortcodeState:t,htmlmixedState:r.copyState(a,e.htmlmixedState)}},token:function(e,t){return t.token(e,t)},indent:function(e,t){return e.isInShortcode?e.isInShortcode?s.indent(e.shortcodeState,t):r.Pass:a.indent(e.htmlmixedState,t)},innerMode:function(e){return e.isInShortcode?{state:e.shortcodeState,mode:s}:{state:e.htmlmixedState,mode:a}}}},"htmlmixed","shortcode")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){"use strict";var s="CodeMirror-activeline",l="CodeMirror-activeline-background",c="CodeMirror-activeline-gutter";function u(e){for(var t=0;t>1,s=n(e.slice(0,a)).length;if(s==r)return a;ro.cursorCoords(t,"window").top&&((f=r).style.opacity=.4)}))};a=x(i=o),s=u,l=d,c=function(e,t){var r=h.keyName(e),n=o.getOption("extraKeys"),i=n&&n[r]||h.keyMap[o.getOption("keyMap")][r];"findNext"==i||"findPrev"==i||"findPersistentNext"==i||"findPersistentPrev"==i?(h.e_stop(e),v(o,p(o),t),o.execCommand(i)):"find"!=i&&"findPersistent"!=i||(h.e_stop(e),d(t,e))},i.openDialog(a,l,{value:s,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){b(i)},onKeyDown:c}),r&&u&&(v(o,n,u),y(o,t))}else g(o,x(o),"Search for:",u,function(e){e&&!n.query&&o.operation(function(){v(o,n,e),n.posFrom=n.posTo=o.getCursor(),y(o,t)})})}function y(r,n,i){r.operation(function(){var e=p(r),t=m(r,e.query,n?e.posFrom:e.posTo);(t.find(n)||(t=m(r,e.query,n?h.Pos(r.lastLine()):h.Pos(r.firstLine(),0))).find(n))&&(r.setSelection(t.from(),t.to()),r.scrollIntoView({from:t.from(),to:t.to()},20),e.posFrom=t.from(),e.posTo=t.to(),i&&i(t.from(),t.to()))})}function b(t){t.operation(function(){var e=p(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))})}function x(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function w(t,n,i){t.operation(function(){for(var e=m(t,n);e.findNext();)if("string"!=typeof n){var r=t.getRange(e.from(),e.to()).match(n);e.replace(i.replace(/\$(\d)/g,function(e,t){return r[t]}))}else e.replace(i)})}function i(d,e){if(!d.getOption("readOnly")){var t=d.getSelection()||p(d).lastQuery,r=''+(e?d.phrase("Replace all:"):d.phrase("Replace:"))+"";g(d,r+(' '+d.phrase("(Use /re/ syntax for regexp search)")+""),r,t,function(f){f&&(f=a(f),g(d,''+d.phrase("With:")+' ',d.phrase("Replace with:"),"",function(s){if(s=n(s),e)w(d,f,s);else{b(d);var l=m(d,f,d.getCursor("from")),c=function(){var e,t,r,n,i,o,a=l.from();!(e=l.findNext())&&(l=m(d,f),!(e=l.findNext())||a&&l.from().line==a.line&&l.from().ch==a.ch)||(d.setSelection(l.from(),l.to()),d.scrollIntoView({from:l.from(),to:l.to()}),r=''+(o=t=d).phrase("Replace?")+" ",n=d.phrase("Replace?"),i=[function(){u(e)},c,function(){w(d,f,s)}],t.openConfirm?t.openConfirm(r,i):confirm(n)&&i[0]())},u=function(r){l.replace("string"==typeof f?s:s.replace(/\$(\d)/g,function(e,t){return r[t]})),c()};c()}}))})}}h.commands.find=function(e){b(e),r(e)},h.commands.findPersistent=function(e){b(e),r(e,!1,!0)},h.commands.findPersistentNext=function(e){r(e,!1,!0,!0)},h.commands.findPersistentPrev=function(e){r(e,!0,!0,!0)},h.commands.findNext=r,h.commands.findPrev=function(e){r(e,!0)},h.commands.clearSearch=b,h.commands.replace=i,h.commands.replaceAll=function(e){i(e,!0)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(f){function d(e,t,r){var n,i=e.getWrapperElement();return(n=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?n.innerHTML=t:n.appendChild(t),f.addClass(i,"dialog-opened"),n}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}f.defineExtension("openDialog",function(e,t,r){r||(r={}),h(this,null);var n=d(this,e,r.bottom),i=!1,o=this;function a(e){if("string"==typeof e)l.value=e;else{if(i)return;i=!0,f.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n),o.focus(),r.onClose&&r.onClose(n)}}var s,l=n.getElementsByTagName("input")[0];return l?(l.focus(),r.value&&(l.value=r.value,!1!==r.selectValueOnOpen&&l.select()),r.onInput&&f.on(l,"input",function(e){r.onInput(e,l.value,a)}),r.onKeyUp&&f.on(l,"keyup",function(e){r.onKeyUp(e,l.value,a)}),f.on(l,"keydown",function(e){r&&r.onKeyDown&&r.onKeyDown(e,l.value,a)||((27==e.keyCode||!1!==r.closeOnEnter&&13==e.keyCode)&&(l.blur(),f.e_stop(e),a()),13==e.keyCode&&t(l.value,e))}),!1!==r.closeOnBlur&&f.on(l,"blur",a)):(s=n.getElementsByTagName("button")[0])&&(f.on(s,"click",function(){a(),o.focus()}),!1!==r.closeOnBlur&&f.on(s,"blur",a),s.focus()),a}),f.defineExtension("openConfirm",function(e,t,r){h(this,null);var n=d(this,e,r&&r.bottom),i=n.getElementsByTagName("button"),o=!1,a=this,s=1;function l(){o||(o=!0,f.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n),a.focus())}i[0].focus();for(var c=0;cr.right?1:0:e.clientYr.bottom?1:0,a.moveTo(a.pos+t*a.screen)}),s.on(this.node,"mousewheel",n),s.on(this.node,"DOMMouseScroll",n)}n.prototype.setPos=function(e,t){return e<0&&(e=0),e>this.total-this.screen&&(e=this.total-this.screen),!(!t&&e==this.pos)&&(this.pos=e,this.inner.style["horizontal"==this.orientation?"left":"top"]=e*(this.size/this.total)+"px",!0)},n.prototype.moveTo=function(e){this.setPos(e)&&this.scroll(e,this.orientation)};function r(e,t,r){this.addClass=e,this.horiz=new n(e,"horizontal",r),t(this.horiz.node),this.vert=new n(e,"vertical",r),t(this.vert.node),this.width=null}n.prototype.update=function(e,t,r){var n=this.screen!=t||this.total!=e||this.size!=r;n&&(this.screen=t,this.total=e,this.size=r);var i=this.screen*(this.size/this.total);i<10&&(this.size-=10-i,i=10),this.inner.style["horizontal"==this.orientation?"width":"height"]=i+"px",this.setPos(this.pos,n)},r.prototype.update=function(e){if(null==this.width){var t=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;t&&(this.width=parseInt(t.height))}var r=this.width||0,n=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1;return this.vert.node.style.display=i?"block":"none",this.horiz.node.style.display=n?"block":"none",i&&(this.vert.update(e.scrollHeight,e.clientHeight,e.viewHeight-(n?r:0)),this.vert.node.style.bottom=n?r+"px":"0"),n&&(this.horiz.update(e.scrollWidth,e.clientWidth,e.viewWidth-(i?r:0)-e.barLeft),this.horiz.node.style.right=i?r+"px":"0",this.horiz.node.style.left=e.barLeft+"px"),{right:i?r:0,bottom:n?r:0}},r.prototype.setScrollTop=function(e){this.vert.setPos(e)},r.prototype.setScrollLeft=function(e){this.horiz.setPos(e)},r.prototype.clear=function(){var e=this.horiz.node.parentNode;e.removeChild(this.horiz.node),e.removeChild(this.vert.node)},s.scrollbarModel.simple=function(e,t){return new r("CodeMirror-simplescroll",e,t)},s.scrollbarModel.overlay=function(e,t){return new r("CodeMirror-overlayscroll",e,t)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var L={},M=/[^\s\u00a0]/,T=e.Pos;function d(e){var t=e.search(M);return-1==t?0:t}function A(e,t){var r=e.getMode();return!1!==r.useInnerComments&&r.innerMode?e.getModeAt(t):r}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=L);for(var t=1/0,r=this.listSelections(),n=null,i=r.length-1;0<=i;i--){var o=r[i].from(),a=r[i].to();o.line>=t||(a.line>=t&&(a=T(t,0)),t=o.line,null==n?n=this.uncomment(o,a,e)?"un":(this.lineComment(o,a,e),"line"):"un"==n?this.uncomment(o,a,e):this.lineComment(o,a,e))}}),e.defineExtension("lineComment",function(o,e,a){a||(a=L);var s=this,t=A(s,o),r=s.getLine(o.line);if(null!=r&&(n=o,i=r,!/\bstring\b/.test(s.getTokenTypeAt(T(n.line,0)))||/^[\'\"\`]/.test(i))){var n,i,l=a.lineComment||t.lineComment;if(l){var c=Math.min(0!=e.ch||e.line==o.line?e.line+1:e.line,s.lastLine()+1),u=null==a.padding?" ":a.padding,f=a.commentBlankLines||o.line==e.line;s.operation(function(){if(a.indent){for(var e=null,t=o.line;tr.length)&&(e=r)}for(t=o.line;tu||a.operation(function(){if(0!=o.fullLines){var e=M.test(a.getLine(u));a.replaceRange(f+c,T(u)),a.replaceRange(l+f,T(n.line,0));var t=o.blockCommentLead||s.blockCommentLead;if(null!=t)for(var r=n.line+1;r<=u;++r)(r!=u||e)&&a.replaceRange(t+f,T(r,0))}else a.replaceRange(c,i),a.replaceRange(l,n)})}}else(o.lineComment||s.lineComment)&&0!=o.fullLines&&a.lineComment(n,i,o)}),e.defineExtension("uncomment",function(e,t,r){r||(r=L);var i,o=this,n=A(o,e),a=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,o.lastLine()),s=Math.min(e.line,a),l=r.lineComment||n.lineComment,c=[],u=null==r.padding?" ":r.padding;e:if(l){for(var f=s;f<=a;++f){var d=o.getLine(f),h=d.indexOf(l);if(-1i.firstLine();)o=u.Pos(o.line-1,0),r=t(!1);if(r&&!r.cleared&&"unfold"!==a){var n=function(e,t){var r=f(e,t,"widget");if("string"==typeof r){var n=document.createTextNode(r);(r=document.createElement("span")).appendChild(n),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}(i,e);u.on(n,"mousedown",function(e){c.clear(),u.e_preventDefault(e)});var c=i.markText(r.from,r.to,{replacedWith:n,clearOnEnter:f(i,e,"clearOnEnter"),__isFold:!0});c.on("clear",function(e,t){u.signal(i,"unfold",i,e,t)}),u.signal(i,"fold",i,r.from,r.to)}}u.newFoldFunction=function(r,n){return function(e,t){i(e,t,{rangeFinder:r,widget:n})}},u.defineExtension("foldCode",function(e,t,r){i(this,e,t,r)}),u.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r=s&&(t=f(o.indicatorOpen))}i.setGutterMarker(e,o.gutter,t),++a})}function a(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation(function(){o(e,t.from,t.to)}),r.from=t.from,r.to=t.to)}function s(e,t,r){var n=e.state.foldGutter;if(n){var i=n.options;if(r==i.gutter){var o=u(e,t);o?o.clear():e.foldCode(c(t,0),i.rangeFinder)}}}function l(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},r.foldOnChangeTimeSpan||600)}}function d(t){var r=t.state.foldGutter;if(r){var e=r.options;clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout(function(){var e=t.getViewport();r.from==r.to||20r.to&&(o(t,r.to,e.to),r.to=e.to)})},e.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var n=t.line;n>=r.from&&n=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function a(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function f(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(o(e))continue;return}if(i(e,t+1)){var r=e.text.lastIndexOf("/",t),n=-1",e.ch-1):-1;if(-1==t){if(a(e))continue;return}if(i(e,t+1)){var r=e.text.lastIndexOf("/",t),n=-1")||-1!=n.text.indexOf("<")){var i=f(n),o=i&&l(n.line,n.ch),a=i&&d(n);if(i&&a&&!(0",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function v(e){return e&&e.bracketRegex||/[(){}[\]]/}function f(e,t,r){var n=e.getLineHandle(t.line),i=t.ch-1,o=r&&r.afterCursor;null==o&&(o=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var a=v(r),s=!o&&0<=i&&a.test(n.text.charAt(i))&&g[n.text.charAt(i)]||a.test(n.text.charAt(i+1))&&g[n.text.charAt(++i)];if(!s)return null;var l=">"==s.charAt(1)?1:-1;if(r&&r.strict&&0o))for(u==t.line&&(d=t.ch-(r<0?1:0));d!=h;d+=r){var p=f.charAt(d);if(l.test(p)&&(void 0===n||e.getTokenTypeAt(m(u,d+1))==n))if(">"==g[p].charAt(1)==0=e.options.minChars&&u(c,n,!1,e.options.style)}}else{for(var i=!0===e.options.showToken?/[\w$]/:e.options.showToken,o=c.getCursor(),a=c.getLine(o.line),s=o.ch,l=s;s&&i.test(a.charAt(s-1));)--s;for(;l'"]=function(e){return function(e){if(e.getOption("disableInput"))return y.Pass;for(var t=e.listSelections(),r=[],n=e.getOption("autoCloseTags"),i=0;io.ch&&(d=d.slice(0,d.length-a.end+o.ch));var h=d.toLowerCase();if(!d||"string"==a.type&&(a.end!=o.ch||!/[\"\']/.test(a.string.charAt(a.string.length-1))||1==a.string.length)||"tag"==a.type&&"closeTag"==l.type||a.string.indexOf("/")==a.string.length-1||u&&-1"+(p?"\n\n":"")+"",newPos:p?y.Pos(o.line+1,0):y.Pos(o.line,o.ch+1)}}for(var m="object"==typeof n&&n.dontIndentOnAutoClose,i=t.length-1;0<=i;i--){var g=r[i];e.replaceRange(g.text,t[i].head,t[i].anchor,"+insert");var v=e.listSelections().slice(0);v[i]={head:g.newPos,anchor:g.newPos},e.setSelections(v),!m&&g.indent&&(e.indentLine(g.newPos.line,null,!0),e.indentLine(g.newPos.line+1,null,!0))}}(e)}),e.addKeyMap(n)}});var b=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(e,t){for(var r=e.listSelections(),n=[],i=t?"/":""!=e.getLine(c.line).charAt(u.end)&&(l+=">"),n[s]=l}if(e.replaceSelections(n),r=e.listSelections(),!a)for(s=0;s=n.length)return e.clipPos(d(t.line+1,0));for(var i,o="start",a=t.ch,s=r<0?0:n.length,l=0;a!=s;a+=r,l++){var c=n.charAt(r<0?a-1:a),u="_"!=c&&f.isWordChar(c)?"w":"o";if("w"==u&&c.toUpperCase()==c&&(u="W"),"start"==o)"o"!=u&&(o="in",i=u);else if("in"==o&&i!=u){if("w"==i&&"W"==u&&r<0&&a--,"W"==i&&"w"==u&&0=r&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},e.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var r=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=r&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},e.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],n=0;ni.line&&a==o.line&&0==o.ch||r.push({anchor:a==i.line?i:d(a,0),head:a==o.line?o:d(a)});e.setSelections(r,0)},e.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},e.selectLine=function(e){for(var t=e.listSelections(),r=[],n=0;ni.lastLine()?i.replaceRange("\n"+n,d(i.lastLine()),null,"+swapLine"):i.replaceRange(n+"\n",d(r,0),null,"+swapLine")}i.setSelections(a),i.scrollIntoView()})},e.swapLineDown=function(i){if(i.isReadOnly())return f.Pass;for(var e=i.listSelections(),o=[],t=i.lastLine()+1,r=e.length-1;0<=r;r--){var n=e[r],a=n.to().line+1,s=n.from().line;0!=n.to().ch||n.empty()||a--,a=e.firstLine();){for(var o=e.getLine(r),a=null==n?o.length:n;0',n,{bottom:!0}):n(prompt(t,""))},"Ctrl-X Tab":function(e){e.indentSelection(m(e,!0)||e.getOption("indentUnit"))},"Ctrl-X Ctrl-X":function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},"Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X U":g("undo"),"Ctrl-X K":"close","Ctrl-X Delete":function(e){u(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},"Ctrl-X H":"selectAll","Ctrl-Q Tab":g("insertTab"),"Ctrl-U":function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(E),e.on("keyHandled",L),e.on("inputRead",L)}}),E={"Ctrl-G":S};function N(t){E[t]=function(e){w(e,t)},O["Ctrl-"+t]=function(e){w(e,t)},k["Ctrl-"+t]=!0}for(var I=0;I<10;++I)N(String(I));N("-")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/dialog/dialog"),require("../addon/edit/matchbrackets.js")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/dialog/dialog","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(Ge){"use strict";var Xe=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0}},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Ye=Xe.length,Qe=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Je=Ge.Pos;Ge.Vim=function(){function e(e,t){var r;this==Ge.keyMap.vim&&(Ge.rmClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(function(e){var t=e.state.fatCursorMarks;if(t)for(var r=0;r")}(e);if(!r)return!1;var n=Ge.Vim.findKey(t,r);return"function"==typeof n&&Ge.signal(t,"vim-keypress",r),n}}Ge.defineOption("vimMode",!1,function(e,t,r){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&r!=Ge.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")});var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},l={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function c(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(V(e.getCursor(),0,1)),j.enterInsertMode(e,{},t))}),t.onPasteFn}var m=/[\d]/,g=[Ge.isWordChar,function(e){return e&&!Ge.isWordChar(e)&&!/\s/.test(e)}],v=[function(e){return/\S/.test(e)}];function r(e,t){for(var r=[],n=e;n"]),h=[].concat(n,u,f,["-",'"',".",":","/"]);function y(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function p(e){return/^[a-z]$/.test(e)}function b(e){return/^[A-Z]$/.test(e)}function N(e){return/^\s*$/.test(e)}function x(e){return-1!=".?!".indexOf(e)}function w(e,t){for(var r=0;r"==l)return P(s),c.visualMode?le(s):c.insertMode&&Fe(s),!0}return!1===(e=c.insertMode?function(){if(u())return!0;for(var e=c.inputState.keyBuffer=c.inputState.keyBuffer+l,t=1==l.length,r=F.matchCommand(e,Xe,c.inputState,"insert");1|<\w+>|./.exec(e),l=t[0],e=e.substring(t.index+l.length),Ge.Vim.handleKey(s,l,"mapping")}(e.toKeys):F.processCommand(s,c,e)}catch(e){throw s.state.vim=void 0,A(s),Ge.Vim.suppressErrorLogging||console.log(e),e}return!0})}},handleEx:function(e,t){De.processCommand(e,t)},defineMotion:function(e,t){W[e]=t},defineAction:function(e,t){j[e]=t},defineOperator:function(e,t){H[e]=t},mapCommand:function(e,t,r,n,i){var o={keys:e,type:t};for(var a in o[t]=r,o[t+"Args"]=n,i)o[a]=i[a];ze(o)},_mapCommand:ze,defineRegister:function(e,t){var r=z.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(r[e])throw Error("Register already defined "+e);r[e]=t,h.push(e)},exitVisualMode:le,exitInsertMode:Fe};function I(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function P(e,t){e.state.vim.inputState=new I,Ge.signal(e,"vim-command-done",t)}function R(e,t,r){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!r}function B(e){this.registers=e,this.unnamedRegister=e['"']=new R,e["."]=new R,e[":"]=new R,e["/"]=new R}function D(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}I.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},I.prototype.getRepeat=function(){var e=0;return(0=r.length?(this.iterator=r.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);-1"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),r=t?t[1]:e.slice(-1);if(1":r="\n";break;case"":r=" ";break;default:r=""}return r}(e);if(!l)return{type:"none"};r.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,r){switch(t.inputState.repeatOverride=r.repeatOverride,r.type){case"motion":this.processMotion(e,t,r);break;case"operator":this.processOperator(e,t,r);break;case"operatorMotion":this.processOperatorMotion(e,t,r);break;case"action":this.processAction(e,t,r);break;case"search":this.processSearch(e,t,r);break;case"ex":case"keyToEx":this.processEx(e,t,r)}},processMotion:function(e,t,r){t.inputState.motion=r.motion,t.inputState.motionArgs=U(r.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,r){var n=t.inputState;if(n.operator){if(n.operator==r.operator)return n.motion="expandToLine",n.motionArgs={linewise:!0},void this.evalInput(e,t);P(e)}n.operator=r.operator,n.operatorArgs=U(r.operatorArgs),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,r){var n=t.visualMode,i=U(r.operatorMotionArgs);i&&n&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,r),n||this.processMotion(e,t,r)},processAction:function(e,t,r){var n=t.inputState,i=n.getRepeat(),o=!!i,a=U(r.actionArgs)||{};n.selectedCharacter&&(a.selectedCharacter=n.selectedCharacter),r.operator&&this.processOperator(e,t,r),r.motion&&this.processMotion(e,t,r),(r.motion||r.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=n.registerName,P(e),t.lastMotion=null,r.isEdit&&this.recordLastEdit(t,n,r),j[r.action](e,a,t)},processSearch:function(s,n,i){if(s.getSearchCursor){var l=i.searchArgs.forward,e=i.searchArgs.wholeWordOnly;xe(s).setReversed(!l);var t=l?"/":"?",o=xe(s).getQuery(),c=s.getScrollInfo();switch(i.searchArgs.querySrc){case"prompt":var r=z.macroModeState;r.isPlaying?d(f=r.replaySearchQueries.shift(),!0,!1):Te(s,{onClose:function(e){s.scrollTo(c.left,c.top),d(e,!0,!0);var t=z.macroModeState;t.isRecording&&function(e,t){if(!e.isPlaying){var r=e.latestRegister,n=z.registerController.getRegister(r);n&&n.pushSearchQuery&&n.pushSearchQuery(t)}}(t,e)},prefix:t,desc:Me,onKeyUp:function(e,t,r){var n,i,o,a=Ge.keyName(e);"Up"==a||"Down"==a?(n="Up"==a,i=e.target?e.target.selectionEnd:0,r(t=z.searchHistoryController.nextMatch(t,n)||""),i&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(i,e.target.value.length))):"Left"!=a&&"Right"!=a&&"Ctrl"!=a&&"Alt"!=a&&"Shift"!=a&&z.searchHistoryController.reset();try{o=Ae(s,t,!0,!0)}catch(e){}o?s.scrollIntoView(Ee(s,!l,o),30):(Ne(s),s.scrollTo(c.left,c.top))},onKeyDown:function(e,t,r){var n=Ge.keyName(e);"Esc"==n||"Ctrl-C"==n||"Ctrl-["==n||"Backspace"==n&&""==t?(z.searchHistoryController.pushInput(t),z.searchHistoryController.reset(),Ae(s,o),Ne(s),s.scrollTo(c.left,c.top),Ge.e_stop(e),P(s),r(),s.focus()):"Up"==n||"Down"==n?Ge.e_stop(e):"Ctrl-U"==n&&(Ge.e_stop(e),r(""))}});break;case"wordUnderCursor":var a=ue(s,!1,0,!1,!0),u=!0;if(a||(a=ue(s,!1,0,!1,!1),u=!1),!a)return;var f=s.getLine(a.start.line).substring(a.start.ch,a.end.ch);f=u&&e?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),z.jumpList.cachedCursor=s.getCursor(),s.setCursor(a.start),d(f,!0,!1)}}function d(t,e,r){z.searchHistoryController.pushInput(t),z.searchHistoryController.reset();try{Ae(s,t,e,r)}catch(e){return Le(s,"Invalid regex: "+t),void P(s)}F.processMotion(s,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:i.searchArgs.toJumplist}})}},processEx:function(a,e,t){function r(e){z.exCommandHistoryController.pushInput(e),z.exCommandHistoryController.reset(),De.processCommand(a,e)}function n(e,t,r){var n,i,o=Ge.keyName(e);("Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==t)&&(z.exCommandHistoryController.pushInput(t),z.exCommandHistoryController.reset(),Ge.e_stop(e),P(a),r(),a.focus()),"Up"==o||"Down"==o?(Ge.e_stop(e),n="Up"==o,i=e.target?e.target.selectionEnd:0,r(t=z.exCommandHistoryController.nextMatch(t,n)||""),i&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(i,e.target.value.length))):"Ctrl-U"==o?(Ge.e_stop(e),r("")):"Left"!=o&&"Right"!=o&&"Ctrl"!=o&&"Alt"!=o&&"Shift"!=o&&z.exCommandHistoryController.reset()}"keyToEx"==t.type?De.processCommand(a,t.exArgs.input):e.visualMode?Te(a,{onClose:r,prefix:":",value:"'<,'>",onKeyDown:n,selectValueOnOpen:!1}):Te(a,{onClose:r,prefix:":",onKeyDown:n})},evalInput:function(e,t){var r,n,i,o,a=t.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},f=a.registerName,d=t.sel,h=X(t.visualMode?K(e,d.head):e.getCursor("head")),p=X(t.visualMode?K(e,d.anchor):e.getCursor("anchor")),m=X(h),g=X(p);if(c&&this.recordLastEdit(t,a),0<(i=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===i)&&(i=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=i,P(e),s){var v=W[s](e,h,l,t);if(t.lastMotion=W[s],!v)return;if(l.toJumplist){var y=z.jumpList,b=y.cachedCursor;b?(fe(e,b,v),delete y.cachedCursor):fe(e,h,v)}(r=v instanceof Array?(n=v[0],v[1]):v)||(r=X(h)),t.visualMode?(t.visualBlock&&r.ch===1/0||(r=K(e,r,t.visualBlock)),n&&(n=K(e,n,!0)),n=n||g,d.anchor=n,d.head=r,ae(e),ve(e,t,"<",Q(n,r)?n:r),ve(e,t,">",Q(n,r)?r:n)):c||(r=K(e,r),e.setCursor(r.line,r.ch))}if(c){if(u.lastSel){n=g;var x=u.lastSel,w=Math.abs(x.head.line-x.anchor.line),k=Math.abs(x.head.ch-x.anchor.ch);r=x.visualLine?Je(g.line+w,g.ch):x.visualBlock?Je(g.line+w,g.ch+k):x.head.line==x.anchor.line?Je(g.line,g.ch+k):Je(g.line+w,g.ch),t.visualMode=!0,t.visualLine=x.visualLine,t.visualBlock=x.visualBlock,d=t.sel={anchor:n,head:r},ae(e)}else t.visualMode&&(u.lastSel={anchor:X(d.anchor),head:X(d.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var C,S,_,L,M;if(t.visualMode){if(C=J(d.head,d.anchor),S=Z(d.head,d.anchor),_=t.visualLine||u.linewise,M=se(e,{anchor:C,head:S},L=t.visualBlock?"block":_?"line":"char"),_){var T=M.ranges;if("block"==L)for(var A=0;A=t.line.length){if(t.ln+=t.dir,!y(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=0]/}).to:n},moveToStartOfLine:function(e,t){return Je(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,r){var n=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(n=r.repeat-e.getOption("firstLineNumber")),Je(n,ce(e.getLine(n)))},textObjectManipulation:function(e,t,r,n){var i=r.selectedCharacter;"b"==i?i="(":"B"==i&&(i="{");var o,a,s,l,c,u,f,d,h=!r.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[i])o=function(e,t,r,n){var i,o,a=t,s={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(a.line).charAt(a.ch)===l?1:0;if(i=e.scanForBracket(Je(a.line,a.ch+c),-1,void 0,{bracketRegex:s}),o=e.scanForBracket(Je(a.line,a.ch+c),1,void 0,{bracketRegex:s}),!i||!o)return{start:a,end:a};if(i=i.pos,o=o.pos,i.line==o.line&&i.ch>o.ch||i.line>o.line){var u=i;i=o,o=u}return n?o.ch+=1:i.ch+=1,{start:i,end:o}}(e,t,i,h);else if({"'":!0,'"':!0}[i])o=function(e,t,r,n){var i,o,a,s,l=X(t),c=e.getLine(l.line).split(""),u=c.indexOf(r);if(l.che.lastLine()&&t.linewise&&!d?e.replaceRange("",f,l):e.replaceRange("",s,l),t.linewise&&(d||(e.setCursor(f),Ge.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),n=s}z.registerController.pushText(t.registerName,"change",i,t.linewise,1c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u=i.anchor.line?V(i.head,0,1):Je(i.anchor.line,0);else if("inplace"==n&&r.visualMode)return;e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),Ge.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),Ge.signal(e,"vim-mode-change",{mode:"insert"})),z.macroModeState.isPlaying||(e.on("change",qe),Ge.on(e.getInputField(),"keydown",Ue)),r.visualMode&&le(e),ie(e,o,a)}},toggleVisualMode:function(e,t,r){var n,i=t.repeat,o=e.getCursor();r.visualMode?r.visualLine^t.linewise||r.visualBlock^t.blockwise?(r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),ae(e)):le(e):(r.visualMode=!0,r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,n=K(e,Je(o.line,o.ch+i-1),!0),r.sel={anchor:o,head:n},Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),ae(e),ve(e,r,"<",J(o,n)),ve(e,r,">",Z(o,n)))},reselectLastSelection:function(e,t,r){var n=r.lastSelection;if(r.visualMode&&oe(e,r),n){var i=n.anchorMark.find(),o=n.headMark.find();if(!i||!o)return;r.sel={anchor:i,head:o},r.visualMode=!0,r.visualLine=n.visualLine,r.visualBlock=n.visualBlock,ae(e),ve(e,r,"<",J(i,o)),ve(e,r,">",Z(i,o)),Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,r){var n,i;if(r.visualMode){if(n=e.getCursor("anchor"),Q(i=e.getCursor("head"),n)){var o=i;i=n,n=o}i.ch=te(e,i.line)-1}else{var a=Math.max(t.repeat,2);n=e.getCursor(),i=K(e,Je(n.line+a-1,1/0))}for(var s=0,l=n.line;ln.lastLine()&&n.replaceRange("\n",Je(F,0)),te(n,F)l.length&&(n=l.length),i=Je(a.line,n)}if("\n"==o)r.visualMode||e.replaceRange("",a,i),(Ge.commands.newlineAndIndentContinueComment||Ge.commands.newlineAndIndent)(e);else{var c=e.getRange(a,i);if(c=c.replace(/[^\n]/g,o),r.visualBlock){var u=new Array(e.getOption("tabSize")+1).join(" ");c=(c=e.getSelection()).replace(/\t/g,u).replace(/[^\n]/g,o).split("\n"),e.replaceSelections(c)}else e.replaceRange(c,a,i);r.visualMode?(a=Q(s[0].anchor,s[0].head)?s[0].anchor:s[0].head,e.setCursor(a),le(e,!1)):e.setCursor(V(i,0,-1))}},incrementNumberToken:function(e,t){for(var r,n,i,o,a=e.getCursor(),s=e.getLine(a.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=l.exec(s))&&(i=(n=r.index)+r[0].length,!(a.ch"!=t.slice(-11))return e==t?"full":0==t.indexOf(e)&&"partial";var r=t.length-11,n=e.slice(0,r),i=t.slice(0,r);return n==i&&e.length>r?"full":0==i.indexOf(n)&&"partial"}function G(t,r,n){return function(){for(var e=0;el&&(i.line=l),i.ch=te(e,i.line)}return{ranges:[{anchor:o,head:i}],primary:0}}if("block"==r){for(var c=Math.min(o.line,i.line),u=Math.min(o.ch,i.ch),f=Math.max(o.line,i.line),d=Math.max(o.ch,i.ch)+1,h=f-c+1,p=i.line==c?0:h-1,m=[],g=0;g=l.length)return null;n?u=v[0]:(u=g[0])(l.charAt(c))||(u=g[1]);for(var f=c,d=c;u(l.charAt(f))&&f'+t+"",{bottom:!0,duration:5e3}):alert(t)}var Me="(Javascript regexp)";function Te(e,t){var r,n,i,o,a,s,l,c,u=(t.prefix||"")+" "+(t.desc||""),f=(r=t.prefix,n=t.desc,i=''+(r||"")+'',n&&(i+=' '+n+""),i);o=e,a=f,s=u,l=t.onClose,c=t,o.openDialog?o.openDialog(a,l,{bottom:!0,value:c.value,onKeyDown:c.onKeyDown,onKeyUp:c.onKeyUp,selectValueOnOpen:!1}):l(prompt(s,""))}function Ae(e,t,r,n){if(t){var i=xe(e),o=_e(t,!!r,!!n);if(o)return Oe(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var r=["global","multiline","ignoreCase","source"],n=0;n
";if(r){r=r.join("");for(var o=0;o")}else for(var a in n){var s=n[a].toString();s.length&&(i+='"'+a+" "+s+"
")}Le(e,i)},sort:function(e,o){var a,s,l,c,u,t=function(){if(o.argString){var e=new Ge.StringStream(o.argString);if(e.eat("!")&&(a=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var t=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!t&&!e.eol())return"Invalid arguments";if(t[1]){s=-1!=t[1].indexOf("i"),l=-1!=t[1].indexOf("u");var r=-1!=t[1].indexOf("d")||-1!=t[1].indexOf("n")&&1,n=-1!=t[1].indexOf("x")&&1,i=-1!=t[1].indexOf("o")&&1;if(1");if(n){var d=0,h=function(){if(d"+l+" (y/n/a/q/l)",onKeyDown:function(e,t,r){switch(Ge.e_stop(e),Ge.keyName(e)){case"Y":h(),p();break;case"N":p();break;case"A":var n=c;c=void 0,i.operation(d),c=n;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":m(r)}return u&&m(r),!0}}):(d(),c&&c())}(t,c,u,d,h,t.getSearchCursor(f,p),f,l,e.callback)}else Le(t,"No previous substitute regular expression")},redo:Ge.commands.redo,undo:Ge.commands.undo,write:function(e){Ge.commands.save?Ge.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Ne(e)},yank:function(e){var t=X(e.getCursor()).line,r=e.getLine(t);z.registerController.pushText("0","yank",r,!0,!0)},delmarks:function(e,t){if(t.argString&&re(t.argString))for(var r=e.state.vim,n=new Ge.StringStream(re(t.argString));!n.eol();){n.eatSpace();var i=n.pos;if(!n.match(/[a-zA-Z]/,!1))return void Le(e,"Invalid argument: "+t.argString.substring(i));var o=n.next();if(n.match("-",!0)){if(!n.match(/[a-zA-Z]/,!1))return void Le(e,"Invalid argument: "+t.argString.substring(i));var a=o,s=n.next();if(!(p(a)&&p(s)||b(a)&&b(s)))return void Le(e,"Invalid argument: "+a+"-");var l=a.charCodeAt(0),c=s.charCodeAt(0);if(c<=l)return void Le(e,"Invalid argument: "+t.argString.substring(i));for(var u=0;u<=c-l;u++){var f=String.fromCharCode(l+u);delete r.marks[f]}}else delete r.marks[o]}else Le(e,"Argument required")}},De=new Re;function Fe(e){var t=e.state.vim,r=z.macroModeState,n=z.registerController.getRegister("."),i=r.isPlaying,o=r.lastInsertModeChanges;i||(e.off("change",qe),Ge.off(e.getInputField(),"keydown",Ue)),!i&&1|<\w+>|./.exec(u))[0],u=u.substring(l.index+c.length),Ge.Vim.handleKey(e,c,"macro"),t.insertMode){var f=i.insertModeChanges[a++].changes;$e(e,z.macroModeState.lastInsertModeChanges.changes=f,1),Fe(e)}r.isPlaying=!1}function qe(e,t){var r=z.macroModeState,n=r.lastInsertModeChanges;if(!r.isPlaying)for(;t;){if(n.expectCursorActivityForChange=!0,1",Z(n,r))}else t.insertMode||(t.lastHPos=e.getCursor().ch)}(e,t);t.visualMode&&je(e)}function je(e){var t=e.state.vim,r=K(e,X(t.sel.head)),n=V(r,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(r,n,{className:"cm-animate-fat-cursor"})}function Ke(e){this.keyName=e}function Ue(e){var t=z.macroModeState.lastInsertModeChanges,r=Ge.keyName(e);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||Ge.lookupKey(r,"vim-insert",function(){return t.maybeReset&&(t.changes=[],t.maybeReset=!1),t.changes.push(new Ke(r)),!0}))}function Ve(r,n,e,t){var i=z.macroModeState;i.isPlaying=!0;var o=!!n.lastEditActionCommand,a=n.inputState;function s(){o?F.processAction(r,n,n.lastEditActionCommand):F.evalInput(r,n)}function l(e){if(0'),l.getElementById("cm_content_fullscreen").onclick=P;!function(){d.getWrapperElement().appendChild(p),p.style.display="block",p.querySelector(".CodeMirror-settings__toggle").addEventListener("click",M),p.querySelector(".CodeMirror-settings__toggle-advanced").addEventListener("click",M),new MutationObserver(L).observe(d.getWrapperElement(),{childList:!0});for(var e=p.querySelectorAll(".CodeMirror-settings__option"),t=0;t * { text-indent: 0px; }",a=l.head||l.getElementsByTagName("head")[0],(s=l.createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=o:s.appendChild(l.createTextNode(o)),a.appendChild(s),d.on("renderLine",function(e,t,r){var n=c.countColumn(t.text,null,e.getOption("tabSize"))*y.charWidth;r.style.textIndent="-"+n+"px",r.style.paddingLeft=4+n+"px"}),d.refresh()}}function Z(){y.isActive()&&(T("closed"),d.toTextArea(),d=void 0)}function ee(){if(y.isThemeOrPlugin)J();else if(y.isGutenberg){var e=y.isGutenbergVisualActive();wp.data.subscribe(function(){y.isGutenbergVisualActive()!==e&&((e=y.isGutenbergVisualActive())?(console.log("mode change to Visual"),Z()):u.setTimeout(function(){console.log("mode change to Code"),J()},0))}),e||J()}else y.isVisualEnabled?(r.addEventListener("click",function(){u.setTimeout(J,0)}),i.addEventListener("click",Z),y.isVisualActive()||J()):(J(),l.body.className+=" visual-editor-is-disabled")}"complete"!==l.readyState?u.addEventListener?u.addEventListener("load",ee,!1):u.attachEvent&&u.attachEvent("onload",ee):ee()}(document,window,window.CodeMirror,window.jQuery,window.heshOptions); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,m=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),w=r||n||i,k=w&&(r?document.documentMode||6:+(i||n)[1]),b=!i&&/WebKit\//.test(e),o=b&&/Qt\/\d+\.\d+/.test(e),a=!i&&/Chrome\//.test(e),g=/Opera\//.test(e),l=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),c=/PhantomJS/.test(e),u=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),f=/Android/.test(e),d=u||f||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=u||/Mac/.test(t),h=/\bCrOS\b/.test(e),p=/win/i.test(t),v=g&&e.match(/Version\/(\d*\.\d*)/);v&&(v=Number(v[1])),v&&15<=v&&(b=!(g=!1));var y=x&&(o||g&&(null==v||v<12.11)),C=m||w&&9<=k;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,L=function(e,t){var r=e.className,n=S(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;0=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&to?ge(o,le(e,o).text.length):(n=le(e,(r=t).line).text.length,null==(i=r.ch)||n=t:o.to>t);(n||(n=[])).push(new Me(a,o.from,s?null:o.to))}}return n}(r,i,a),l=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.fromt)&&(!r||Be(r,o.marker)<0)&&(r=o.marker)}return r}function qe(e,t,r,n,i){var o=le(e,t),a=Le&&o.markedSpans;if(a)for(var s=0;se.lastLine())return t;var r,n=le(e,t);if(!Ue(e,n))return t;for(;r=ze(n);)n=r.find(1,!0).line;return de(n)+1}function Ue(e,t){var r=Le&&t.markedSpans;if(r)for(var n=void 0,i=0;ir.maxLineLength&&(r.maxLineLength=t,r.maxLine=e)})}var Ye=null;function Qe(e,t,r){var n;Ye=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Ye=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Ye=i)}return null!=n?n:Ye}var Je=function(){var D="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",F="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,W=/[stwN]/,q=/[LRr]/,H=/[Lb1n]/,j=/[1n]/;function K(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var r="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!z.test(e))return!1;for(var n,i=e.length,o=[],a=0;a=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(-1e.options.maxHighlightLength&&Et(e.doc.mode,n.state),o=Dt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function zt(r,n,e){var t=r.doc,i=r.display;if(!t.mode.startState)return new Bt(t,!0,n);var o=function(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;at.first&&le(t,o-1).stateAfter,s=a?Bt.fromSaved(t,a,o):new Bt(t,It(t.mode),o);return t.iter(o,n,function(e){Wt(r,e.text,s);var t=s.line;e.stateAfter=t==n-1||t%5==0||t>=i.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Bt.prototype.nextLine=function(){this.line++,0e.options.maxHighlightLength?(s=!1,a&&Wt(e,t,n,f.pos),f.pos=t.length,null):Ut(Ht(r,f,n.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;cs&&c.from<=s);u++);if(c.to>=l)return f(e,t,r,n,i,o,a);f(e,t.slice(0,c.to-s),r,n,null,o,a),n=null,t=t.slice(c.to-s),s=c.to}}}function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var a,s,l,c,u,f,d,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=c=u=s="",f=d=null,v=1/0;for(var y=[],b=void 0,x=0;xp||k.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==p&&(u+=" "+k.startStyle),k.endStyle&&w.to==v&&(b||(b=[])).push(k.endStyle,w.to),k.title&&((d||(d={})).title=k.title),k.attributes)for(var C in k.attributes)(d||(d={}))[C]=k.attributes[C];k.collapsed&&(!f||Be(f.marker,k)<0)&&(f=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var S=0;Sr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Tr(e,t,r,n){return Er(e,Or(e,t),r,n)}function Ar(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=l-s)-1,l<=t&&(a="right")),null!=i){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],a="left";if("right"==r&&i==l-s)for(;c=o.text.length?(t=o.text.length,r="before"):t<=0&&(t=0,r="after"),!c)return l("before"==r?t-1:t,"before"==r);function u(e,t,r){return l(r?e-1:e,1==c[t].level!=r)}var f=Qe(c,t,r),d=Ye,h=u(t,f,"before"==r);return null!=d&&(h.other=u(t,d,"before"!=r)),h}function Vr(e,t){var r=0;t=Ce(e.doc,t),e.options.lineWrapping||(r=en(e.display)*t.ch);var n=le(e.doc,t.line),i=$e(n)+wr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function $r(e,t,r,n,i){var o=ge(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function Gr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return $r(n.first,0,null,!0,-1);var i=he(n,r),o=n.first+n.size-1;if(on},o,i)}}function Yr(e,t,r,n){return r||(r=Or(e,t)),Xr(e,t,r,Hr(e,t,Er(e,r,n),"line").top)}function Qr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Jr(r,e,t,n,i){i-=$e(e);var o=Or(r,e),a=qr(e),s=0,l=e.text.length,c=!0,u=Ze(e,r.doc.direction);if(u){var f=(r.options.lineWrapping?function(e,t,r,n,i,o,a){var s=Xr(e,t,n,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||h.to<=l)){var p=1!=h.level,m=Er(e,n,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,g=mc&&(u={from:u.from,to:c,level:u.level});return u}:function(n,i,o,a,s,l,c){var e=ae(function(e){var t=s[e],r=1!=t.level;return Qr(Ur(n,ge(o,r?t.to:t.from,r?"before":"after"),"line",i,a),l,c,!0)},0,s.length-1),t=s[e];if(0c&&(t=s[e-1])}return t})(r,e,t,o,u,n,i);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,h,p=null,m=null,g=ae(function(e){var t=Er(r,o,e);return t.top+=a,t.bottom+=a,!!Qr(t,n,i,!1)&&(t.top<=i&&t.left<=n&&(p=e,m=t),!0)},s,l),v=!1;if(m){var y=n-m.left=x.bottom}return $r(t,g=oe(e.text,g,1),h,v,n-d)}function Zr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nr){Nr=O("pre");for(var t=0;t<49;++t)Nr.appendChild(document.createTextNode("x")),Nr.appendChild(O("br"));Nr.appendChild(document.createTextNode("x"))}T(e.measure,Nr);var r=Nr.offsetHeight/50;return 3=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n=e.display.viewTo||s.to().linet||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(_,y||0,null==b?k:b,function(e,t,r,n){var i="ltr"==r,o=C(e,i?"left":"right"),a=C(t-1,i?"right":"left"),s=null==y&&0==e,l=null==b&&t==k,c=0==n,u=!_||n==_.length-1;if(a.top-o.top<=3){var f=(T?l:s)&&u,d=(T?s:l)&&c?L:(i?o:a).left,h=f?M:(i?a:o).right;A(d,o.top,h-d,o.bottom)}else{var p,m,g,v;v=i?(p=T&&s&&c?L:o.left,m=T?M:S(e,r,"before"),g=T?L:S(t,r,"after"),T&&l&&u?M:a.right):(p=T?S(e,r,"before"):L,m=!T&&s&&c?M:o.right,g=!T&&l&&u?L:a.left,T?S(t,r,"after"):M),A(p,o.top,m-p,o.bottom),o.bottome.display.sizerWidth){var d=Math.ceil(s/en(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function bn(e){if(e.widgets)for(var t=0;t=a&&(o=he(t,$e(le(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function wn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=rn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;ao&&(t.bottom=t.top+o);var s=e.doc.height+kr(r),l=t.tops-n;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,d=_r(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Sn(e,t){null!=t&&(Mn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function _n(e){Mn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ln(e,t,r){null==t&&null==r||Mn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Mn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Tn(e,Vr(e,t.from),Vr(e,t.to),t.margin))}function Tn(e,t,r,n){var i=Cn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Ln(e,i.scrollLeft,i.scrollTop)}function An(e,t){Math.abs(e.doc.scrollTop-t)<2||(m||ai(e,{top:t}),On(e,t,!0),m&&ai(e),ti(e,100))}function On(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function En(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,wn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+kr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Sr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var In=function(e,t,r){this.cm=r;var n=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),tt(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};In.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0=i.viewTo)||i.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ni(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jn(e){var t=e.cm,r=t.display;e.updatedDisplay&&yn(t),e.barMeasure=Nn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Tr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Sr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-_r(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Kn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!c){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-wr(e.display))+"px;\n height: "+(t.bottom-t.top+Sr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?ge(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ge(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Ur(e,t),l=r&&r!=t?Ur(e,r):s,c=Cn(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(An(e,c.scrollTop),1t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Le&&je(e.doc,t)i.viewFrom?Jn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Jn(e);else if(t<=i.viewFrom){var o=Zn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Jn(e)}else if(r>=i.viewTo){var a=Zn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Jn(e)}else{var s=Zn(e,t,t,-1),l=Zn(e,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(ir(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):Jn(e)}var c=i.externalMeasured;c&&(r=i.lineN&&t=n.viewTo)){var o=n.view[sn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,r)&&a.push(r)}}}function Jn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zn(e,t,r,n){var i,o=sn(e,t),a=e.display.view;if(!Le||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,l=0;l=l.display.viewTo)){var u=+new Date+l.options.workTime,f=zt(l,c.highlightFrontier),d=[];c.iter(f.line,Math.min(c.first+c.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles,r=e.text.length>l.options.maxHighlightLength?Et(c.mode,f.state):null,n=Dt(l,e,f,!0);r&&(f.state=r),e.styles=n.styles;var i=e.styleClasses,o=n.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var a=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),s=0;!a&&su)return ti(l,l.options.workDelay),!0}),c.highlightFrontier=f.line,c.modeFrontier=Math.max(c.modeFrontier,f.line),d.length&&Vn(l,function(){for(var e=0;e=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==ei(e))return!1;kn(e)&&(Jn(e),t.dims=tn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Le&&(o=je(e.doc,o),a=Ke(e.doc,a));var s,l,c,u,f=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;l=o,c=a,0==(u=(s=e).display).view.length||l>=u.viewTo||c<=u.viewFrom?(u.view=ir(s,l,c),u.viewFrom=l):(u.viewFrom>l?u.view=ir(s,l,u.viewFrom).concat(u.view):u.viewFromc&&(u.view=u.view.slice(0,sn(s,c)))),u.viewTo=c,r.viewOffset=$e(le(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var d=ei(e);if(!f&&0==d&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var h=function(e){if(e.hasFocus())return null;var t=N();if(!t||!E(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&E(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return 4=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ii(e,t);n=!1){yn(e);var i=Nn(e);ln(e),Rn(e,i),li(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ai(e,t){var r=new ni(e,t);if(ii(e,r)){yn(e),oi(e,r);var n=Nn(e);ln(e),Rn(e,n),li(e,n),r.finish()}}function si(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function li(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sr(e)+"px"}function ci(e){var t=e.display.gutters,r=e.options.gutters;M(t);for(var n=0;na.clientWidth,l=a.scrollHeight>a.clientHeight;if(n&&s||i&&l){if(i&&x&&b)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var f=0;fl-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(s=i).lastOp==n?(Ii(s.done),X(s.done)):s.done.length&&!X(s.done).ranges?X(s.done):1i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,a||it(e,"historyAdded")}function Ri(e,t,r,n){var i,o,a,s,l,c=e.history,u=n&&n.origin;r==c.lastSelOp||u&&c.lastSelOrigin==u&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==u||(i=e,o=u,a=X(c.done),s=t,"*"==(l=o.charAt(0))||"+"==l&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?c.done[c.done.length-1]=t:Bi(t,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=u,c.lastSelOp=r,n&&!1!==n.clearRedo&&Ii(c.undone)}function Bi(e,t){var r=X(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Di(t,r,e,n){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,n),function(e){e.markedSpans&&((i||(i=r["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Fi(e){if(!e)return null;for(var t,r=0;r=t.ch:s.to>t.ch))){if(i&&(it(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(r){var c=l.find(n<0?1:-1),u=void 0;if((n<0?l.inclusiveRight:l.inclusiveLeft)&&(c=eo(e,c,-n,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=ve(c,r))&&(n<0?u<0:0e.first?Ce(e,ge(t.line-1)):null:0e.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ge(o,le(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ce(e,t.from,t.to),r||(r=ki(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=de(He(le(n,o.line))),n.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0}));-1i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiert.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Yn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Yi(t.doc)),t&&sr(t,"markerCleared",t,this,i,o),r&&qn(t),this.parent&&this.parent.clear()}},bo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,a){i=Ce(this,i),o=Ce(this,o);var s=[],l=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var r=0;r=n.to||null==n.from&&l!=i.line||null!=n.from&&l==o.line&&n.from>=o.ch||a&&!a(n.marker)||s.push(n.marker.parent||n.marker)}++l}),s},getAllMarks:function(){var n=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var r=0;rt&&(t=e.from),null!=e.to&&e.toe.text.length?null:n}function $o(e,t,r){var n=Vo(e,t.ch,r);return null==n?null:new ge(t.line,n,r<0?"after":"before")}function Go(e,t,r,n,i){if(e){var o=Ze(r,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level)?"after":"before";if(0a.doc.first){var o=le(a.doc,n.line-1).text;o&&(n=new ge(n.line,1),a.replaceRange(i.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),ge(n.line-1,o.length-1),n,"+transpose"))}t.push(new vi(n,n))}a.setSelections(t)})},newlineAndIndent:function(n){return Vn(n,function(){for(var e=n.listSelections(),t=e.length-1;0<=t;t--)n.replaceRange(n.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=n.listSelections();for(var r=0;ru&&t.push(new vi(ge(s,u),ge(s,V(c,a,r))))}t.length||t.push(new vi(v,v)),$i(b,yi(g,k.ranges.slice(0,w).concat(t),w),{origin:"*mouse",scroll:!1}),g.scrollIntoView(e)}else{var f,d=x,h=fa(g,e,y.unit),p=d.anchor;p=0=i.to||n.linel.bottom?20:0;o&&setTimeout($n(g,function(){c==r&&(a.scroller.scrollTop+=o,e(t))}),50)}}(e):n(e)}),o=$n(g,n);g.state.selectingText=o,tt(a.wrapper.ownerDocument,"mousemove",i),tt(a.wrapper.ownerDocument,"mouseup",o)}(e,n,t,o)}(t,a,l,e):ht(e)==r.scroller&&ct(e):2==s?(a&&Hi(t.doc,a),setTimeout(function(){return r.input.focus()},20)):3==s&&(C?t.display.input.onContextMenu(e):mn(t)))}}function fa(e,t,r){if("char"==r)return new vi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new vi(ge(t.line,0),Ce(e.doc,ge(t.line+1,0)));var n=r(e,t);return new vi(n.from,n.to)}function da(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ct(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!st(e,r))return ft(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return it(e,r,e,he(e.doc,o),e.options.gutters[l],t),ft(t)}}function ha(e,t){return da(e,t,"gutterClick",!0)}function pa(e,t){var r,n;xr(e.display,t)||(n=t,st(r=e,"gutterContextMenu")&&da(r,n,"gutterContextMenu",!1))||(ot(e,t,"contextmenu")||C||e.display.input.onContextMenu(t))}function ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fr(e)}ca.prototype.compare=function(e,t,r){return this.time+400>e&&0==ve(t,this.pos)&&r==this.button};var ga={toString:function(){return"CodeMirror.Init"}},va={},ya={};function ba(e){ci(e),Yn(e),wn(e)}function xa(e,t,r){if(!t!=!(r&&r!=ga)){var n=e.display.dragFunctions,i=t?tt:nt;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function wa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),Xe(e)),on(e),Yn(e),Fr(e),setTimeout(function(){return Rn(e)},100)}function ka(e,t){var r=this;if(!(this instanceof ka))return new ka(e,t);this.options=t=t?D(t):{},D(va,t,!1),ui(t);var n=t.value;"string"==typeof n?n=new _o(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new ka.inputStyles[t.inputStyle](this),o=this.display=new se(e,n,i);for(var a in ci(o.wrapper.CodeMirror=this),ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!d&&o.input.focus(),w&&k<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(i){var o=i.display;tt(o.scroller,"mousedown",$n(i,ua)),tt(o.scroller,"dblclick",w&&k<11?$n(i,function(e){if(!ot(i,e)){var t=an(i,e);if(t&&!ha(i,e)&&!xr(i.display,e)){ct(e);var r=i.findWordAt(t);Hi(i.doc,r.anchor,r.head)}}}):function(e){return ot(i,e)||ct(e)});tt(o.scroller,"contextmenu",function(e){return pa(i,e)});var r,n={end:0};function a(){o.activeTouch&&(r=setTimeout(function(){return o.activeTouch=null},1e3),(n=o.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return 400o.first?F(le(o,t-1).text,null,a):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)d+=a,f+="\t";if(d=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var n=Qe(l,s.ch,s.sticky),i=l[n];if("ltr"==t.doc.direction&&i.level%2==0&&(0s.ch:i.from=i.from&&d>=u.begin)){var h=f?"before":"after";return new ge(s.line,d,h)}}var p=function(e,t,r){for(var n=function(e,t){return t?new ge(s.line,c(e,1),"before"):new ge(s.line,e,"after")};0<=e&&e=n.first+n.size||(i=new ge(r,i.ch,i.sticky),!(s=le(n,r))))return!1;i=Go(a,n.cm,s,i.line,o)}else i=t;return!0}if("char"==e)l();else if("column"==e)l(!0);else if("word"==e||"group"==e)for(var c=null,u="group"==e,f=n.cm&&n.cm.getHelper(i,"wordChars"),d=!0;!(o<0)||l(!d);d=!1){var h=s.text.charAt(i.ch)||"\n",p=te(h,f)?"w":u&&"\n"==h?"n":!u||/\s/.test(h)?null:"p";if(!u||d||p||(p="s"),c&&c!=p){o<0&&(o=1,l(),i.sticky="after");break}if(p&&(c=p),0=a.height){o.hitSide=!0;break}i+=5*r}return o}var Ra=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(e,t){var r=Ar(e,t.line);if(!r||r.hidden)return null;var n=le(e.doc,t.line),i=Mr(r,n,t.line),o=Ze(n,e.doc.direction),a="left";o&&(a=Qe(o,t.ch)%2?"right":"left");var s=Pr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Da(e,t){return t&&(e.bad=!0),e}function Fa(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Da(e.clipPos(ge(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&Ba(t,n)||{node:s[0].measure.map[2],offset:0},c=i.linen.firstLine()&&(a=ge(a.line-1,le(n.doc,a.line-1).length)),s.ch==le(n.doc,s.line).text.length&&s.linei.viewTo-1)return!1;r=a.line==i.viewFrom||0==(e=sn(n,a.line))?(t=de(i.view[0].line),i.view[0].node):(t=de(i.view[e].line),i.view[e-1].node.nextSibling);var l,c,u=sn(n,s.line);if(c=u==i.view.length-1?(l=i.viewTo-1,i.lineDiv.lastChild):(l=de(i.view[u+1].line)-1,i.view[u+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(l,e,t,c,u){var r="",f=!1,d=l.doc.lineSeparator(),h=!1;function p(){f&&(r+=d,h&&(r+=d),f=h=!1)}function m(e){e&&(p(),r+=e)}function g(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(t)return void m(t);var r,n=e.getAttribute("cm-marker");if(n){var i=l.findMarks(ge(c,0),ge(u+1,0),(s=+n,function(e){return e.id==s}));return void(i.length&&(r=i[0].find(0))&&m(ce(l.doc,r.from,r.to).join(d)))}if("false"==e.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;o&&p();for(var a=0;aa.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var w=ge(t,h),k=ge(l,d.length?X(d).length-p:0);return 1n&&(Sa(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&_n(t));else{var a=o.from(),s=o.to(),l=Math.max(n,a.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c>1;if((a?r[2*a-1]:0)>=o)i=a;else{if(!(r[2*a+1]f)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(c=e.bottom),u+t.offsetWidth>d&&(u=d-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),r&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Cn(o,a)).scrollTop&&An(o,s.scrollTop),null!=s.scrollLeft&&En(o,s.scrollLeft))},triggerOnKeyDown:Gn(ia),triggerOnKeyPress:Gn(aa),triggerOnKeyUp:oa,triggerOnMouseDown:Gn(ua),execCommand:function(e){if(Xo.hasOwnProperty(e))return Xo[e].call(null,this)},triggerElectric:Gn(function(e){Aa(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=Ce(this.doc,e),a=0;a")):null:t.match("--")?e(i("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function n(i){return function(e,t){for(var r;null!=(r=e.next());){if("<"==r)return t.tokenize=n(i+1),t.tokenize(e,t);if(">"==r){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=c;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),r.tokenize=i("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",r.tokenize=u,"tag bracket"):"&"!=n?(t.eatWhile(/[^&<]/),null):(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error"}function u(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=c,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"!=r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,(i=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}).isInAttribute=!0,i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=c,t.state=p,t.tagName=t.tagStart=null;var n,i,o=t.tokenize(e,t);return o?o+" tag error":"tag error"}function i(r,n){return function(e,t){for(;!e.eol();){if(e.match(n)){t.tokenize=c;break}e.next()}return r}}function f(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function p(e,t,r){return"openTag"==e?(r.tagStart=t.column(),m):"closeTag"==e?g:p}function m(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",b):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",b(e,t,r)):(o="error",m)}function g(e,t,r){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",v(e,t,r)):(o="error",y);var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",v):(o="tag error",y)}function v(e,t,r){return"endTag"!=e?(o="error",v):(d(r),p)}function y(e,t,r){return o="error",v(e,0,r)}function b(e,t,r){if("word"==e)return o="attribute",x;if("endTag"!=e&&"selfcloseTag"!=e)return o="error",b;var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?h(r,n):(h(r,n),r.context=new f(r,n,i==r.indented)),p}function x(e,t,r){return"equals"==e?w:(l.allowMissing||(o="error"),b(e,0,r))}function w(e,t,r){return"string"==e?k:"word"==e&&l.allowUnquoted?(o="string",b):(o="error",b(e,0,r))}function k(e,t,r){return"string"==e?k:b(e,0,r)}return c.isInText=!0,{startState:function(e){var t={tokenize:c,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(e,t,r){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(n&&n.noIndent)return C.Pass;if(e.tokenize!=u&&e.tokenize!=c)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=b)}}}),C.defineMIME("text/xml","xml"),C.defineMIME("application/xml","xml"),C.mimeModes.hasOwnProperty("text/html")||C.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function($e){"use strict";$e.defineMode("javascript",function(e,f){var n,i,d=e.indentUnit,h=f.statementIndent,a=f.jsonld,s=f.json||a,c=f.typescript,u=f.wordCharacters||/[\w$\xa1-\uffff]/,l=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e,t,r){return n=e,i=r,t}function v(e,t){var i,r=e.next();if('"'==r||"'"==r)return t.tokenize=(i=r,function(e,t){var r,n=!1;if(a&&"@"==e.peek()&&e.match(m))return t.tokenize=v,g("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=i||n);)n=!n&&"\\"==r;return n||(t.tokenize=v),g("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==r&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("="==r&&e.eat(">"))return g("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return g("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),g("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y)(e,t):e.eat("/")?(e.skipToEnd(),g("comment","comment")):Ve(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==r)return(t.tokenize=b)(e,t);if("#"==r)return e.skipToEnd(),g("error","error");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),g("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var n=e.current();if("."!=t.lastType){if(l.propertyIsEnumerable(n)){var o=l[n];return g(o.type,o.style,n)}if("async"==n&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",n)}return g("variable","variable",n)}}function y(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=v;break}n="*"==r}return g("comment","comment")}function b(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=v;break}n=!n&&"\\"==r}return g("quasi","string-2",e.current())}var x="([{}])";function o(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,a=r-1;0<=a;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(0<=l&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(3<=l&&l<6)++i;else if(u.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function k(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function C(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var S={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;0<=e;e--)S.cc.push(arguments[e])}function L(){return _.apply(null,arguments),!0}function M(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function r(e){var t=S.state;if(S.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,r){{if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new A(n,r.vars,!0):null}return M(t,r.vars)?r:new A(r.prev,new O(t,r.vars),!1)}return null}}(e,t.context);if(null!=r)return void(t.context=r)}else if(!M(e,t.localVars))return void(t.localVars=new O(e,t.localVars));f.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new O(e,t.globalVars))}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,r){this.prev=e,this.vars=t,this.block=r}function O(e,t){this.name=e,this.next=t}var t=new O("this",new O("arguments",null));function E(){S.state.context=new A(S.state.context,S.state.localVars,!1),S.state.localVars=t}function N(){S.state.context=new A(S.state.context,S.state.localVars,!0),S.state.localVars=null}function I(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function P(n,i){var e=function(){var e=S.state,t=e.indented;if("stat"==e.lexical.type)t=e.lexical.indented;else for(var r=e.lexical;r&&")"==r.type&&r.align;r=r.prev)t=r.indented;e.lexical=new k(t,S.stream.column(),n,null,e.lexical,i)};return e.lex=!0,e}function R(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(r){return function e(t){return t==r?L():";"==r||"}"==t||")"==t||"]"==t?_():L(e)}}function D(e,t){return"var"==e?L(P("vardef",t),ve,B(";"),R):"keyword a"==e?L(P("form"),q,D,R):"keyword b"==e?L(P("form"),D,R):"keyword d"==e?S.stream.match(/^\s*$/,!1)?L():L(P("stat"),j,B(";"),R):"debugger"==e?L(B(";")):"{"==e?L(P("}"),N,oe,R,I):";"==e?L():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==R&&S.state.cc.pop()(),L(P("form"),q,D,R,Ce)):"function"==e?L(Ae):"for"==e?L(P("form"),Se,D,R):"class"==e||c&&"interface"==t?(S.marked="keyword",L(P("form"),Ne,R)):"variable"==e?c&&"declare"==t?(S.marked="keyword",L(D)):c&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?L(Ke):"type"==t?L(ce,B("operator"),ce,B(";")):L(P("form"),ye,B("{"),P("}"),oe,R,R)):c&&"namespace"==t?(S.marked="keyword",L(P("form"),z,oe,R)):c&&"abstract"==t?(S.marked="keyword",L(D)):L(P("stat"),J):"switch"==e?L(P("form"),q,B("{"),P("}","switch"),N,oe,R,R,I):"case"==e?L(z,B(":")):"default"==e?L(B(":")):"catch"==e?L(P("form"),E,F,D,R,I):"export"==e?L(P("stat"),Be,R):"import"==e?L(P("stat"),Fe,R):"async"==e?L(D):"@"==t?L(z,D):_(P("stat"),z,B(";"),R)}function F(e){if("("==e)return L(Oe,B(")"))}function z(e,t){return H(e,t,!1)}function W(e,t){return H(e,t,!0)}function q(e){return"("!=e?_():L(P(")"),z,B(")"),R)}function H(e,t,r){if(S.state.fatArrowAt==S.stream.start){var n=r?X:G;if("("==e)return L(E,P(")"),ne(Oe,")"),R,B("=>"),n,I);if("variable"==e)return _(E,ye,B("=>"),n,I)}var i,o=r?U:K;return w.hasOwnProperty(e)?L(o):"function"==e?L(Ae,o):"class"==e||c&&"interface"==t?(S.marked="keyword",L(P("form"),Ee,R)):"keyword c"==e||"async"==e?L(r?W:z):"("==e?L(P(")"),j,B(")"),R,o):"operator"==e||"spread"==e?L(r?W:z):"["==e?L(P("]"),je,R,o):"{"==e?ie(ee,"}",null,o):"quasi"==e?_(V,o):"new"==e?L((i=r,function(e){return"."==e?L(i?Q:Y):"variable"==e&&c?L(pe,i?U:K):_(i?W:z)})):"import"==e?L(z):L()}function j(e){return e.match(/[;\}\)\],]/)?_():_(z)}function K(e,t){return","==e?L(z):U(e,t,!1)}function U(e,t,r){var n=0==r?K:U,i=0==r?z:W;return"=>"==e?L(E,r?X:G,I):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?L(n):c&&"<"==t&&S.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?L(P(">"),ne(ce,">"),R,n):"?"==t?L(z,B(":"),i):L(i):"quasi"==e?_(V,n):";"!=e?"("==e?ie(W,")","call",n):"."==e?L(Z,n):"["==e?L(P("]"),j,B("]"),R,n):c&&"as"==t?(S.marked="keyword",L(ce,n)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),L(i)):void 0:void 0}function V(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?L(V):L(z,$)}function $(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,L(V)}function G(e){return o(S.stream,S.state),_("{"==e?D:z)}function X(e){return o(S.stream,S.state),_("{"==e?D:W)}function Y(e,t){if("target"==t)return S.marked="keyword",L(K)}function Q(e,t){if("target"==t)return S.marked="keyword",L(U)}function J(e){return":"==e?L(R,D):_(K,B(";"),R)}function Z(e){if("variable"==e)return S.marked="property",L()}function ee(e,t){if("async"==e)return S.marked="property",L(ee);if("variable"==e||"keyword"==S.style){return S.marked="property","get"==t||"set"==t?L(te):(c&&S.state.fatArrowAt==S.stream.start&&(r=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+r[0].length),L(re));var r}else{if("number"==e||"string"==e)return S.marked=a?"property":S.style+" property",L(re);if("jsonld-keyword"==e)return L(re);if(c&&T(t))return S.marked="keyword",L(ee);if("["==e)return L(z,ae,B("]"),re);if("spread"==e)return L(W,re);if("*"==t)return S.marked="keyword",L(ee);if(":"==e)return _(re)}}function te(e){return"variable"!=e?_(re):(S.marked="property",L(Ae))}function re(e){return":"==e?L(W):"("==e?_(Ae):void 0}function ne(n,i,o){function a(e,t){if(o?-1"),ce):void 0}function ue(e){if("=>"==e)return L(ce)}function fe(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",L(fe)):"?"==t?L(fe):":"==e?L(ce):"["==e?L(z,ae,B("]"),fe):void 0}function de(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?L(de):":"==e?L(ce):_(ce)}function he(e,t){return"<"==t?L(P(">"),ne(ce,">"),R,he):"|"==t||"."==e||"&"==t?L(ce):"["==e?L(B("]"),he):"extends"==t||"implements"==t?(S.marked="keyword",L(ce)):void 0}function pe(e,t){if("<"==t)return L(P(">"),ne(ce,">"),R,he)}function me(){return _(ce,ge)}function ge(e,t){if("="==t)return L(ce)}function ve(e,t){return"enum"==t?(S.marked="keyword",L(Ke)):_(ye,ae,we,ke)}function ye(e,t){return c&&T(t)?(S.marked="keyword",L(ye)):"variable"==e?(r(t),L()):"spread"==e?L(ye):"["==e?ie(xe,"]"):"{"==e?ie(be,"}"):void 0}function be(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?L(ye):"}"==e?_():"["==e?L(z,B("]"),B(":"),be):L(B(":"),ye,we)):(r(t),L(we))}function xe(){return _(ye,we)}function we(e,t){if("="==t)return L(W)}function ke(e){if(","==e)return L(ve)}function Ce(e,t){if("keyword b"==e&&"else"==t)return L(P("form","else"),D,R)}function Se(e,t){return"await"==t?L(Se):"("==e?L(P(")"),_e,B(")"),R):void 0}function _e(e){return"var"==e?L(ve,B(";"),Me):";"==e?L(Me):"variable"==e?L(Le):_(z,B(";"),Me)}function Le(e,t){return"in"==t||"of"==t?(S.marked="keyword",L(z)):L(K,Me)}function Me(e,t){return";"==e?L(Te):"in"==t||"of"==t?(S.marked="keyword",L(z)):_(z,B(";"),Te)}function Te(e){")"!=e&&L(z)}function Ae(e,t){return"*"==t?(S.marked="keyword",L(Ae)):"variable"==e?(r(t),L(Ae)):"("==e?L(E,P(")"),ne(Oe,")"),R,se,D,I):c&&"<"==t?L(P(">"),ne(me,">"),R,Ae):void 0}function Oe(e,t){return"@"==t&&L(z,Oe),"spread"==e?L(Oe):c&&T(t)?(S.marked="keyword",L(Oe)):_(ye,ae,we)}function Ee(e,t){return"variable"==e?Ne(e,t):Ie(e,t)}function Ne(e,t){if("variable"==e)return r(t),L(Ie)}function Ie(e,t){return"<"==t?L(P(">"),ne(me,">"),R,Ie):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(S.marked="keyword"),L(c?ce:z,Ie)):"{"==e?L(P("}"),Pe,R):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&T(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",L(Pe)):"variable"==e||"keyword"==S.style?(S.marked="property",L(c?Re:Ae,Pe)):"["==e?L(z,ae,B("]"),c?Re:Ae,Pe):"*"==t?(S.marked="keyword",L(Pe)):";"==e?L(Pe):"}"==e?L():"@"==t?L(z,Pe):void 0}function Re(e,t){return"?"==t?L(Re):":"==e?L(ce,we):"="==t?L(W):_(Ae)}function Be(e,t){return"*"==t?(S.marked="keyword",L(He,B(";"))):"default"==t?(S.marked="keyword",L(z,B(";"))):"{"==e?L(ne(De,"}"),He,B(";")):_(D)}function De(e,t){return"as"==t?(S.marked="keyword",L(B("variable"))):"variable"==e?_(W,De):void 0}function Fe(e){return"string"==e?L():"("==e?_(z):_(ze,We,He)}function ze(e,t){return"{"==e?ie(ze,"}"):("variable"==e&&r(t),"*"==t&&(S.marked="keyword"),L(qe))}function We(e){if(","==e)return L(ze,We)}function qe(e,t){if("as"==t)return S.marked="keyword",L(ze)}function He(e,t){if("from"==t)return S.marked="keyword",L(z)}function je(e){return"]"==e?L():_(ne(W,"]"))}function Ke(){return _(P("form"),ye,B("{"),P("}"),ne(Ue,"}"),R,R)}function Ue(){return _(ye,we)}function Ve(e,t,r){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return R.lex=I.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new k((e||0)-d,0,"block",!1),localVars:f.localVars,context:f.localVars&&new A(null,null,!1),indented:e||0};return f.globalVars&&"object"==typeof f.globalVars&&(t.globalVars=f.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),o(e,t)),t.tokenize!=y&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",function(e,t,r,n,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?z:D)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==r&&C(e,n)?"variable-2":t}}(t,r,n,i,e))},indent:function(e,t){if(e.tokenize==y)return $e.Pass;if(e.tokenize!=v)return 0;var r,n=t&&t.charAt(0),i=e.lexical;if(!/^\s*else\b/.test(t))for(var o=e.cc.length-1;0<=o;--o){var a=e.cc[o];if(a==R)i=i.prev;else if(a!=Ce)break}for(;("stat"==i.type||"form"==i.type)&&("}"==n||(r=e.cc[e.cc.length-1])&&(r==K||r==U)&&!/^[,\.=+\-*:?[\(]/.test(t));)i=i.prev;h&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var s,l,c=i.type,u=n==c;return"vardef"==c?i.indented+("operator"==e.lastType||","==e.lastType?i.info.length+1:0):"form"==c&&"{"==n?i.indented:"form"==c?i.indented+d:"stat"==c?i.indented+(l=t,"operator"==(s=e).lastType||","==s.lastType||p.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?h||d:0):"switch"!=i.info||u||0==f.doubleIndentSwitch?i.align?i.column+(u?0:1):i.indented+(u?0:d):i.indented+(/^(?:case|default)\b/.test(t)?d:2*d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:Ve,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=z&&t!=W||e.cc.pop()}}}),$e.registerHelper("wordChars","javascript",/[\w$]/),$e.defineMIME("text/javascript","javascript"),$e.defineMIME("text/ecmascript","javascript"),$e.defineMIME("application/javascript","javascript"),$e.defineMIME("application/x-javascript","javascript"),$e.defineMIME("application/ecmascript","javascript"),$e.defineMIME("application/json",{name:"javascript",json:!0}),$e.defineMIME("application/x-json",{name:"javascript",json:!0}),$e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),$e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),$e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(O){"use strict";function e(e){for(var t={},r=0;r*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=k,x("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0})(e,t);return r&&"object"==typeof r&&(n=r[1],r=r[0]),i=r,"comment"!=n&&(t.state=A[t.state](n,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-o)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}});var t=["domain","regexp","url","url-prefix"],r=e(t),n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(n),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],a=e(o),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=e(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=e(c),f=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],d=e(f),h=e(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),p=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=e(m),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],y=e(v),b=t.concat(n).concat(o).concat(s).concat(c).concat(f).concat(m).concat(v);function x(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}O.registerHelper("hintWords","css",b),O.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:p,colorKeywords:g,valueKeywords:y,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x)(e,t)}},name:"css"}),O.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x)(e,t):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),O.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:a,mediaValueKeywords:l,propertyKeywords:u,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x)(e,t):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),O.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:a,propertyKeywords:u,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:p,colorKeywords:g,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x)(e,t)}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(p){"use strict";var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var o={};function m(e,t){var r,n=e.match(o[r=t]||(o[r]=new RegExp("\\s+"+r+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function g(e,t){return new RegExp((t?"^":"")+"","i")}function a(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],o=i.length-1;0<=o;o--)n.unshift(i[o])}p.defineMode("htmlmixed",function(u,e){var f=p.getMode(u,{name:"xml",htmlMode:!0,multilineTagIndentFactor:e.multilineTagIndentFactor,multilineTagIndentPastTag:e.multilineTagIndentPastTag}),d={},t=e&&e.tags,r=e&&e.scriptTypes;if(a(i,d),t&&a(t,d),r)for(var n=r.length-1;0<=n;n--)d.script.unshift(["type",r[n].matches,r[n].mode]);function h(e,t){var r,n=f.token(e,t.htmlState),i=/\btag\b/.test(n);if(i&&!/[<>\s\/]/.test(e.current())&&(r=t.htmlState.tagName&&t.htmlState.tagName.toLowerCase())&&d.hasOwnProperty(r))t.inTag=r+" ";else if(t.inTag&&i&&/>$/.test(e.current())){var o=/^([\S]+) (.*)/.exec(t.inTag);t.inTag=null;var a=">"==e.current()&&function(e,t){for(var r=0;r|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function R(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function e(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,_=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,L=s.isReservedIdentifier||!1;function M(e,t){var o,r=e.next();if(y[r]){var n=y[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=(o=r,function(e,t){for(var r,n=!1,i=!1;null!=(r=e.next());){if(r==o&&!n){i=!0;break}n=!n&&"\\"==r}return(i||!n&&!b)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(w.test(r))return a=r,null;if(k.test(r)){if(e.backUp(1),e.match(C))return"number";e.next()}if("/"==r){if(e.eat("*"))return(t.tokenize=T)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(S););return"operator"}if(e.eatWhile(_),x)for(;e.match(x);)e.eatWhile(_);var i=e.current();return B(d,i)?(B(m,i)&&(a="newstatement"),B(g,i)&&(l=!0),"keyword"):B(h,i)?"type":B(p,i)||L&&L(i)?(B(m,i)&&(a="newstatement"),"builtin"):B(v,i)?"atom":"variable"}function T(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function A(e,t){s.typeFirstDefinitions&&e.eol()&&R(t.context)&&(t.typeAtEndOfLine=P(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new E((e||0)-c,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return A(e,t),null;a=l=null;var n=(t.tokenize||M)(e,t);if("comment"==n||"meta"==n)return n;if(null==r.align&&(r.align=!0),";"==a||":"==a||","==a&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)I(t);else if("{"==a)N(t,e.column(),"}");else if("["==a)N(t,e.column(),"]");else if("("==a)N(t,e.column(),")");else if("}"==a){for(;"statement"==r.type;)r=I(t);for("}"==r.type&&(r=I(t));"statement"==r.type;)r=I(t)}else a==r.type?I(t):o&&(("}"==r.type||"top"==r.type)&&";"!=a||"statement"==r.type&&"newstatement"==a)&&N(t,e.column(),"statement",e.current());if("variable"==n&&("def"==t.prevToken||s.typeFirstDefinitions&&P(e,t,e.start)&&R(t.context)&&e.match(/^\s*\(/,!1))&&(n="def"),y.token){var i=y.token(e,t,n);void 0!==i&&(n=i)}return"def"==n&&!1===s.styleDefs&&(n="variable"),t.startOfLine=!1,t.prevToken=l?"def":n||a,A(e,t),n},indent:function(e,t){if(e.tokenize!=M&&null!=e.tokenize||e.typeAtEndOfLine)return O.Pass;var r=e.context,n=t&&t.charAt(0),i=n==r.type;if("statement"==r.type&&"}"==n&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(y.indent){var o=y.indent(e,r,t,c);if("number"==typeof o)return o}var a=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(n)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==n?0:u):!r.align||f&&")"==r.type?")"!=r.type||i?r.indented+(i?0:c)+(i||!a||/^(?:case|default)\b/.test(t)?0:c):r.indented+u:r.column+(i?0:1)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",r=e("int long char short double float unsigned signed void bool"),n=e("SEL instancetype id Class Protocol BOOL");function i(e){return B(r,e)||/.+_t/.test(e)}var o="case do else for if switch while struct enum union",a="struct enum union";function s(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=s;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function l(e,t){return"type"==t.prevToken&&"type"}function c(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function u(e){return e.eatWhile(/[\w\.']/),"number"}function f(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],(t.tokenize=h)(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function d(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function h(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function p(e,t){"string"==typeof e&&(e=[e]);var r=[];function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}n(t.keywords),n(t.types),n(t.builtin),n(t.atoms),r.length&&(t.helperType=e[0],O.registerHelper("hintWords",e[0],r));for(var i=0;i!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=m,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,t){var r=t.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(t.context=new E(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function n(i){return function(e,t){for(var r;r=e.next();){if("*"==r&&e.eat("/")){if(1!=i)return t.tokenize=n(i-1),t.tokenize(e,t);t.tokenize=null;break}if("/"==r&&e.eat("*"))return t.tokenize=n(i+1),t.tokenize(e,t)}return"comment"}}(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),p("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var o;return t.tokenize=(o=e.match('""'),function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!o&&!n&&e.match('"')){i=!0;break}if(o&&e.match('"""')){i=!0;break}r=e.next(),!n&&"$"==r&&e.match("{")&&e.skipTo("}"),n=!n&&"\\"==r&&!o}return!i&&o||(t.tokenize=null),"string"}),t.tokenize(e,t)},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),p(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:e("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:e("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),p("text/x-nesc",{name:"clike",keywords:e(t+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i,blockKeywords:e(o),atoms:e("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),p("text/x-objectivec",{name:"clike",keywords:e(t+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(e){return i(e)||B(n,e)},builtin:e("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:e(o+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:e(a+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:e("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":s,"*":l},modeProps:{fold:["brace","include"]}}),p("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i,blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:!0,atoms:e("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var g=null;p("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function o(a){return function(e,t){for(var r,n=!1,i=!1;!e.eol();){if(!n&&e.match('"')&&("single"==a||e.match('""'))){i=!0;break}if(!n&&e.match("``")){g=o(a),i=!0;break}r=e.next(),n="single"==a&&!n&&"\\"==r}return i&&(t.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!g||!e.match("`"))&&(t.tokenize=g,g=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(c){"use strict";function e(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=s([[["->",null]],[[/[\w]+/,"variable"]]],r,n)),"variable-2";var i=!1;for(;!e.eol()&&(i||!1===n||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}(e,t,r,n)}}var t="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",r="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";c.registerHelper("hintWords","php",[t,r,n].join(" ").split(" ")),c.registerHelper("wordChars","php",/[\w$]/);var i={name:"clike",helperType:"php",keywords:e(t),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(r),builtin:e(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var n=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(r[0].length+(n?2:1));if(n&&e.eat(n),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=l(i,"'"!=n),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=l('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&0")?(t.curMode=s,t.curState=t.html,t.php.context.prev||(t.php=null),"meta"):l.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=l,t.php||(t.php=c.startState(l,s.indent(t.html,""))),t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else n=t.pending&&e.pos/.test(o)?t.pending=i[0]:t.pending={end:e.pos,style:n},e.backUp(o.length-a)),n},indent:function(e,t){return e.curMode!=l&&/^\s*<\//.test(t)||e.curMode==l&&/^\?>/.test(t)?s.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),c.defineMIME("application/x-httpd-php","php"),c.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),c.defineMIME("text/x-php",i)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var C={allowUnquoted:!0,allowMissing:!0,caseFold:!0};e.defineMode("shortcode",function(e,t){var a,s,o=e.indentUnit,l={},r=C;for(var n in r)l[n]=r[n];for(var i in t)l[i]=t[i];function c(e,t){return"["===e.next()?"["===e.peek()?(t.tokenize=u,"comment"):/\s/.test(e.peek())?null:(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):(e.eatWhile(/[^\[]/),null)}function u(e,t){var r=function(e,t){return e.next(),t.tokenize=c,"comment"};return r.isInEscape=!0,"]"===e.next()&&"]"===e.peek()&&(t.tokenize=r),e.eatWhile(/[^\]]/),null}function f(e,t){var r=e.next();if("]"===r||"/"===r&&e.eat("]"))return t.tokenize=c,a="endTag","tag bracket";if("="===r)return a="equals",null;if("["!==r)return/[\'\"]/.test(r)?(t.tokenize=(n=r,(i=function(e,t){var r=e.next();return r===n?(t.tokenize=f,"string"):/[\[\]]/.test(r)?"string error":(e.eatWhile(/[^\[\]\'\"]/),"string")}).isInAttribute=!0,i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=\[\]\"\']*[^\s\u00a0=\[\]\"\'\/]/),"word");t.tokenize=c,t.state=p,t.tagName=t.tagStart=null;var n,i,o=t.tokenize(e,t);return o?o+" tag error":"tag error"}function d(e,t,r){this.tagHistory=[t],e.context&&(this.tagHistory=this.tagHistory.concat(e.context.tagHistory)),this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r}function h(e){e.context&&(e.context=e.context.prev)}function p(e,t,r){return"openTag"===e?(r.tagStart=t.column(),m):"closeTag"===e?g:p}function m(e,t,r){if("word"!==e)return s="error",m;var n=t.current();return s=/[\[\]\/\'\"<>&]/.test(n)?"error":(r.tagName=t.current(),"tag"),b}function g(e,t,r){if("word"!==e)return s="error",y;var n=t.current();if(r.context&&r.context.tagName===n||!1===l.matchClosing)return s="tag",v;if(r.context&&0?/.test(e.current())&&!t.htmlmixedState.localState&&"comment"===r&&(e.backUp(e.current().length),t.token=u);return r}function u(e,t){return e.match("\x3c!--more")?"meta":e.match("--\x3e")||e.match("\x3c!--noteaser--\x3e")||e.match("\x3c!--nextpage--\x3e")?(t.token=c,"meta"):(e.eatWhile(/[^\-/]/),"string")}return{startState:function(){return{token:c,isInShortcode:!1,shortcodeState:null,htmlmixedState:a.startState()}},copyState:function(e){var t;return e.shortcodeState&&(t=r.copyState(s,e.shortcodeState)),{token:e.token,shortcodeState:t,htmlmixedState:r.copyState(a,e.htmlmixedState)}},token:function(e,t){return t.token(e,t)},indent:function(e,t){return e.isInShortcode?e.isInShortcode?s.indent(e.shortcodeState,t):r.Pass:a.indent(e.htmlmixedState,t)},innerMode:function(e){return e.isInShortcode?{state:e.shortcodeState,mode:s}:{state:e.htmlmixedState,mode:a}}}},"htmlmixed","shortcode")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){"use strict";var s="CodeMirror-activeline",l="CodeMirror-activeline-background",c="CodeMirror-activeline-gutter";function u(e){for(var t=0;t>1,s=n(e.slice(0,a)).length;if(s==r)return a;ro.cursorCoords(t,"window").top&&((f=r).style.opacity=.4)}))};a=x(i=o),s=u,l=d,c=function(e,t){var r=h.keyName(e),n=o.getOption("extraKeys"),i=n&&n[r]||h.keyMap[o.getOption("keyMap")][r];"findNext"==i||"findPrev"==i||"findPersistentNext"==i||"findPersistentPrev"==i?(h.e_stop(e),v(o,p(o),t),o.execCommand(i)):"find"!=i&&"findPersistent"!=i||(h.e_stop(e),d(t,e))},i.openDialog(a,l,{value:s,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){b(i)},onKeyDown:c}),r&&u&&(v(o,n,u),y(o,t))}else g(o,x(o),"Search for:",u,function(e){e&&!n.query&&o.operation(function(){v(o,n,e),n.posFrom=n.posTo=o.getCursor(),y(o,t)})})}function y(r,n,i){r.operation(function(){var e=p(r),t=m(r,e.query,n?e.posFrom:e.posTo);(t.find(n)||(t=m(r,e.query,n?h.Pos(r.lastLine()):h.Pos(r.firstLine(),0))).find(n))&&(r.setSelection(t.from(),t.to()),r.scrollIntoView({from:t.from(),to:t.to()},20),e.posFrom=t.from(),e.posTo=t.to(),i&&i(t.from(),t.to()))})}function b(t){t.operation(function(){var e=p(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))})}function x(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function w(t,n,i){t.operation(function(){for(var e=m(t,n);e.findNext();)if("string"!=typeof n){var r=t.getRange(e.from(),e.to()).match(n);e.replace(i.replace(/\$(\d)/g,function(e,t){return r[t]}))}else e.replace(i)})}function i(d,e){if(!d.getOption("readOnly")){var t=d.getSelection()||p(d).lastQuery,r=''+(e?d.phrase("Replace all:"):d.phrase("Replace:"))+"";g(d,r+(' '+d.phrase("(Use /re/ syntax for regexp search)")+""),r,t,function(f){f&&(f=a(f),g(d,''+d.phrase("With:")+' ',d.phrase("Replace with:"),"",function(s){if(s=n(s),e)w(d,f,s);else{b(d);var l=m(d,f,d.getCursor("from")),c=function(){var e,t,r,n,i,o,a=l.from();!(e=l.findNext())&&(l=m(d,f),!(e=l.findNext())||a&&l.from().line==a.line&&l.from().ch==a.ch)||(d.setSelection(l.from(),l.to()),d.scrollIntoView({from:l.from(),to:l.to()}),r=''+(o=t=d).phrase("Replace?")+" ",n=d.phrase("Replace?"),i=[function(){u(e)},c,function(){w(d,f,s)}],t.openConfirm?t.openConfirm(r,i):confirm(n)&&i[0]())},u=function(r){l.replace("string"==typeof f?s:s.replace(/\$(\d)/g,function(e,t){return r[t]})),c()};c()}}))})}}h.commands.find=function(e){b(e),r(e)},h.commands.findPersistent=function(e){b(e),r(e,!1,!0)},h.commands.findPersistentNext=function(e){r(e,!1,!0,!0)},h.commands.findPersistentPrev=function(e){r(e,!0,!0,!0)},h.commands.findNext=r,h.commands.findPrev=function(e){r(e,!0)},h.commands.clearSearch=b,h.commands.replace=i,h.commands.replaceAll=function(e){i(e,!0)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(f){function d(e,t,r){var n,i=e.getWrapperElement();return(n=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?n.innerHTML=t:n.appendChild(t),f.addClass(i,"dialog-opened"),n}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}f.defineExtension("openDialog",function(e,t,r){r||(r={}),h(this,null);var n=d(this,e,r.bottom),i=!1,o=this;function a(e){if("string"==typeof e)l.value=e;else{if(i)return;i=!0,f.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n),o.focus(),r.onClose&&r.onClose(n)}}var s,l=n.getElementsByTagName("input")[0];return l?(l.focus(),r.value&&(l.value=r.value,!1!==r.selectValueOnOpen&&l.select()),r.onInput&&f.on(l,"input",function(e){r.onInput(e,l.value,a)}),r.onKeyUp&&f.on(l,"keyup",function(e){r.onKeyUp(e,l.value,a)}),f.on(l,"keydown",function(e){r&&r.onKeyDown&&r.onKeyDown(e,l.value,a)||((27==e.keyCode||!1!==r.closeOnEnter&&13==e.keyCode)&&(l.blur(),f.e_stop(e),a()),13==e.keyCode&&t(l.value,e))}),!1!==r.closeOnBlur&&f.on(l,"blur",a)):(s=n.getElementsByTagName("button")[0])&&(f.on(s,"click",function(){a(),o.focus()}),!1!==r.closeOnBlur&&f.on(s,"blur",a),s.focus()),a}),f.defineExtension("openConfirm",function(e,t,r){h(this,null);var n=d(this,e,r&&r.bottom),i=n.getElementsByTagName("button"),o=!1,a=this,s=1;function l(){o||(o=!0,f.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n),a.focus())}i[0].focus();for(var c=0;cr.right?1:0:e.clientYr.bottom?1:0,a.moveTo(a.pos+t*a.screen)}),s.on(this.node,"mousewheel",n),s.on(this.node,"DOMMouseScroll",n)}n.prototype.setPos=function(e,t){return e<0&&(e=0),e>this.total-this.screen&&(e=this.total-this.screen),!(!t&&e==this.pos)&&(this.pos=e,this.inner.style["horizontal"==this.orientation?"left":"top"]=e*(this.size/this.total)+"px",!0)},n.prototype.moveTo=function(e){this.setPos(e)&&this.scroll(e,this.orientation)};function r(e,t,r){this.addClass=e,this.horiz=new n(e,"horizontal",r),t(this.horiz.node),this.vert=new n(e,"vertical",r),t(this.vert.node),this.width=null}n.prototype.update=function(e,t,r){var n=this.screen!=t||this.total!=e||this.size!=r;n&&(this.screen=t,this.total=e,this.size=r);var i=this.screen*(this.size/this.total);i<10&&(this.size-=10-i,i=10),this.inner.style["horizontal"==this.orientation?"width":"height"]=i+"px",this.setPos(this.pos,n)},r.prototype.update=function(e){if(null==this.width){var t=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;t&&(this.width=parseInt(t.height))}var r=this.width||0,n=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1;return this.vert.node.style.display=i?"block":"none",this.horiz.node.style.display=n?"block":"none",i&&(this.vert.update(e.scrollHeight,e.clientHeight,e.viewHeight-(n?r:0)),this.vert.node.style.bottom=n?r+"px":"0"),n&&(this.horiz.update(e.scrollWidth,e.clientWidth,e.viewWidth-(i?r:0)-e.barLeft),this.horiz.node.style.right=i?r+"px":"0",this.horiz.node.style.left=e.barLeft+"px"),{right:i?r:0,bottom:n?r:0}},r.prototype.setScrollTop=function(e){this.vert.setPos(e)},r.prototype.setScrollLeft=function(e){this.horiz.setPos(e)},r.prototype.clear=function(){var e=this.horiz.node.parentNode;e.removeChild(this.horiz.node),e.removeChild(this.vert.node)},s.scrollbarModel.simple=function(e,t){return new r("CodeMirror-simplescroll",e,t)},s.scrollbarModel.overlay=function(e,t){return new r("CodeMirror-overlayscroll",e,t)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var L={},M=/[^\s\u00a0]/,T=e.Pos;function d(e){var t=e.search(M);return-1==t?0:t}function A(e,t){var r=e.getMode();return!1!==r.useInnerComments&&r.innerMode?e.getModeAt(t):r}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=L);for(var t=1/0,r=this.listSelections(),n=null,i=r.length-1;0<=i;i--){var o=r[i].from(),a=r[i].to();o.line>=t||(a.line>=t&&(a=T(t,0)),t=o.line,null==n?n=this.uncomment(o,a,e)?"un":(this.lineComment(o,a,e),"line"):"un"==n?this.uncomment(o,a,e):this.lineComment(o,a,e))}}),e.defineExtension("lineComment",function(o,e,a){a||(a=L);var s=this,t=A(s,o),r=s.getLine(o.line);if(null!=r&&(n=o,i=r,!/\bstring\b/.test(s.getTokenTypeAt(T(n.line,0)))||/^[\'\"\`]/.test(i))){var n,i,l=a.lineComment||t.lineComment;if(l){var c=Math.min(0!=e.ch||e.line==o.line?e.line+1:e.line,s.lastLine()+1),u=null==a.padding?" ":a.padding,f=a.commentBlankLines||o.line==e.line;s.operation(function(){if(a.indent){for(var e=null,t=o.line;tr.length)&&(e=r)}for(t=o.line;tu||a.operation(function(){if(0!=o.fullLines){var e=M.test(a.getLine(u));a.replaceRange(f+c,T(u)),a.replaceRange(l+f,T(n.line,0));var t=o.blockCommentLead||s.blockCommentLead;if(null!=t)for(var r=n.line+1;r<=u;++r)(r!=u||e)&&a.replaceRange(t+f,T(r,0))}else a.replaceRange(c,i),a.replaceRange(l,n)})}}else(o.lineComment||s.lineComment)&&0!=o.fullLines&&a.lineComment(n,i,o)}),e.defineExtension("uncomment",function(e,t,r){r||(r=L);var i,o=this,n=A(o,e),a=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,o.lastLine()),s=Math.min(e.line,a),l=r.lineComment||n.lineComment,c=[],u=null==r.padding?" ":r.padding;e:if(l){for(var f=s;f<=a;++f){var d=o.getLine(f),h=d.indexOf(l);if(-1i.firstLine();)o=u.Pos(o.line-1,0),r=t(!1);if(r&&!r.cleared&&"unfold"!==a){var n=function(e,t){var r=f(e,t,"widget");if("string"==typeof r){var n=document.createTextNode(r);(r=document.createElement("span")).appendChild(n),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}(i,e);u.on(n,"mousedown",function(e){c.clear(),u.e_preventDefault(e)});var c=i.markText(r.from,r.to,{replacedWith:n,clearOnEnter:f(i,e,"clearOnEnter"),__isFold:!0});c.on("clear",function(e,t){u.signal(i,"unfold",i,e,t)}),u.signal(i,"fold",i,r.from,r.to)}}u.newFoldFunction=function(r,n){return function(e,t){i(e,t,{rangeFinder:r,widget:n})}},u.defineExtension("foldCode",function(e,t,r){i(this,e,t,r)}),u.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r=s&&(t=f(o.indicatorOpen))}i.setGutterMarker(e,o.gutter,t),++a})}function a(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation(function(){o(e,t.from,t.to)}),r.from=t.from,r.to=t.to)}function s(e,t,r){var n=e.state.foldGutter;if(n){var i=n.options;if(r==i.gutter){var o=u(e,t);o?o.clear():e.foldCode(c(t,0),i.rangeFinder)}}}function l(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},r.foldOnChangeTimeSpan||600)}}function d(t){var r=t.state.foldGutter;if(r){var e=r.options;clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout(function(){var e=t.getViewport();r.from==r.to||20r.to&&(o(t,r.to,e.to),r.to=e.to)})},e.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var n=t.line;n>=r.from&&n=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function a(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function f(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(o(e))continue;return}if(i(e,t+1)){var r=e.text.lastIndexOf("/",t),n=-1",e.ch-1):-1;if(-1==t){if(a(e))continue;return}if(i(e,t+1)){var r=e.text.lastIndexOf("/",t),n=-1")||-1!=n.text.indexOf("<")){var i=f(n),o=i&&l(n.line,n.ch),a=i&&d(n);if(i&&a&&!(0",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function v(e){return e&&e.bracketRegex||/[(){}[\]]/}function f(e,t,r){var n=e.getLineHandle(t.line),i=t.ch-1,o=r&&r.afterCursor;null==o&&(o=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var a=v(r),s=!o&&0<=i&&a.test(n.text.charAt(i))&&g[n.text.charAt(i)]||a.test(n.text.charAt(i+1))&&g[n.text.charAt(++i)];if(!s)return null;var l=">"==s.charAt(1)?1:-1;if(r&&r.strict&&0o))for(u==t.line&&(d=t.ch-(r<0?1:0));d!=h;d+=r){var p=f.charAt(d);if(l.test(p)&&(void 0===n||e.getTokenTypeAt(m(u,d+1))==n))if(">"==g[p].charAt(1)==0=e.options.minChars&&u(c,n,!1,e.options.style)}}else{for(var i=!0===e.options.showToken?/[\w$]/:e.options.showToken,o=c.getCursor(),a=c.getLine(o.line),s=o.ch,l=s;s&&i.test(a.charAt(s-1));)--s;for(;l'"]=function(e){return function(e){if(e.getOption("disableInput"))return y.Pass;for(var t=e.listSelections(),r=[],n=e.getOption("autoCloseTags"),i=0;io.ch&&(d=d.slice(0,d.length-a.end+o.ch));var h=d.toLowerCase();if(!d||"string"==a.type&&(a.end!=o.ch||!/[\"\']/.test(a.string.charAt(a.string.length-1))||1==a.string.length)||"tag"==a.type&&"closeTag"==l.type||a.string.indexOf("/")==a.string.length-1||u&&-1"+(p?"\n\n":"")+"",newPos:p?y.Pos(o.line+1,0):y.Pos(o.line,o.ch+1)}}for(var m="object"==typeof n&&n.dontIndentOnAutoClose,i=t.length-1;0<=i;i--){var g=r[i];e.replaceRange(g.text,t[i].head,t[i].anchor,"+insert");var v=e.listSelections().slice(0);v[i]={head:g.newPos,anchor:g.newPos},e.setSelections(v),!m&&g.indent&&(e.indentLine(g.newPos.line,null,!0),e.indentLine(g.newPos.line+1,null,!0))}}(e)}),e.addKeyMap(n)}});var b=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(e,t){for(var r=e.listSelections(),n=[],i=t?"/":""!=e.getLine(c.line).charAt(u.end)&&(l+=">"),n[s]=l}if(e.replaceSelections(n),r=e.listSelections(),!a)for(s=0;s=n.length)return e.clipPos(d(t.line+1,0));for(var i,o="start",a=t.ch,s=r<0?0:n.length,l=0;a!=s;a+=r,l++){var c=n.charAt(r<0?a-1:a),u="_"!=c&&f.isWordChar(c)?"w":"o";if("w"==u&&c.toUpperCase()==c&&(u="W"),"start"==o)"o"!=u&&(o="in",i=u);else if("in"==o&&i!=u){if("w"==i&&"W"==u&&r<0&&a--,"W"==i&&"w"==u&&0=r&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},e.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var r=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=r&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},e.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],n=0;ni.line&&a==o.line&&0==o.ch||r.push({anchor:a==i.line?i:d(a,0),head:a==o.line?o:d(a)});e.setSelections(r,0)},e.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},e.selectLine=function(e){for(var t=e.listSelections(),r=[],n=0;ni.lastLine()?i.replaceRange("\n"+n,d(i.lastLine()),null,"+swapLine"):i.replaceRange(n+"\n",d(r,0),null,"+swapLine")}i.setSelections(a),i.scrollIntoView()})},e.swapLineDown=function(i){if(i.isReadOnly())return f.Pass;for(var e=i.listSelections(),o=[],t=i.lastLine()+1,r=e.length-1;0<=r;r--){var n=e[r],a=n.to().line+1,s=n.from().line;0!=n.to().ch||n.empty()||a--,a=e.firstLine();){for(var o=e.getLine(r),a=null==n?o.length:n;0',n,{bottom:!0}):n(prompt(t,""))},"Ctrl-X Tab":function(e){e.indentSelection(m(e,!0)||e.getOption("indentUnit"))},"Ctrl-X Ctrl-X":function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},"Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X U":g("undo"),"Ctrl-X K":"close","Ctrl-X Delete":function(e){u(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},"Ctrl-X H":"selectAll","Ctrl-Q Tab":g("insertTab"),"Ctrl-U":function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(E),e.on("keyHandled",L),e.on("inputRead",L)}}),E={"Ctrl-G":S};function N(t){E[t]=function(e){w(e,t)},O["Ctrl-"+t]=function(e){w(e,t)},k["Ctrl-"+t]=!0}for(var I=0;I<10;++I)N(String(I));N("-")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/dialog/dialog"),require("../addon/edit/matchbrackets.js")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/dialog/dialog","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(Ge){"use strict";var Xe=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0}},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Ye=Xe.length,Qe=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Je=Ge.Pos;Ge.Vim=function(){function e(e,t){var r;this==Ge.keyMap.vim&&(Ge.rmClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(function(e){var t=e.state.fatCursorMarks;if(t)for(var r=0;r")}(e);if(!r)return!1;var n=Ge.Vim.findKey(t,r);return"function"==typeof n&&Ge.signal(t,"vim-keypress",r),n}}Ge.defineOption("vimMode",!1,function(e,t,r){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&r!=Ge.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")});var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},l={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function c(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(V(e.getCursor(),0,1)),j.enterInsertMode(e,{},t))}),t.onPasteFn}var m=/[\d]/,g=[Ge.isWordChar,function(e){return e&&!Ge.isWordChar(e)&&!/\s/.test(e)}],v=[function(e){return/\S/.test(e)}];function r(e,t){for(var r=[],n=e;n"]),h=[].concat(n,u,f,["-",'"',".",":","/"]);function y(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function p(e){return/^[a-z]$/.test(e)}function b(e){return/^[A-Z]$/.test(e)}function N(e){return/^\s*$/.test(e)}function x(e){return-1!=".?!".indexOf(e)}function w(e,t){for(var r=0;r"==l)return P(s),c.visualMode?le(s):c.insertMode&&Fe(s),!0}return!1===(e=c.insertMode?function(){if(u())return!0;for(var e=c.inputState.keyBuffer=c.inputState.keyBuffer+l,t=1==l.length,r=F.matchCommand(e,Xe,c.inputState,"insert");1|<\w+>|./.exec(e),l=t[0],e=e.substring(t.index+l.length),Ge.Vim.handleKey(s,l,"mapping")}(e.toKeys):F.processCommand(s,c,e)}catch(e){throw s.state.vim=void 0,A(s),Ge.Vim.suppressErrorLogging||console.log(e),e}return!0})}},handleEx:function(e,t){De.processCommand(e,t)},defineMotion:function(e,t){W[e]=t},defineAction:function(e,t){j[e]=t},defineOperator:function(e,t){H[e]=t},mapCommand:function(e,t,r,n,i){var o={keys:e,type:t};for(var a in o[t]=r,o[t+"Args"]=n,i)o[a]=i[a];ze(o)},_mapCommand:ze,defineRegister:function(e,t){var r=z.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(r[e])throw Error("Register already defined "+e);r[e]=t,h.push(e)},exitVisualMode:le,exitInsertMode:Fe};function I(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function P(e,t){e.state.vim.inputState=new I,Ge.signal(e,"vim-command-done",t)}function R(e,t,r){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!r}function B(e){this.registers=e,this.unnamedRegister=e['"']=new R,e["."]=new R,e[":"]=new R,e["/"]=new R}function D(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}I.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},I.prototype.getRepeat=function(){var e=0;return(0=r.length?(this.iterator=r.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);-1"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),r=t?t[1]:e.slice(-1);if(1":r="\n";break;case"":r=" ";break;default:r=""}return r}(e);if(!l)return{type:"none"};r.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,r){switch(t.inputState.repeatOverride=r.repeatOverride,r.type){case"motion":this.processMotion(e,t,r);break;case"operator":this.processOperator(e,t,r);break;case"operatorMotion":this.processOperatorMotion(e,t,r);break;case"action":this.processAction(e,t,r);break;case"search":this.processSearch(e,t,r);break;case"ex":case"keyToEx":this.processEx(e,t,r)}},processMotion:function(e,t,r){t.inputState.motion=r.motion,t.inputState.motionArgs=U(r.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,r){var n=t.inputState;if(n.operator){if(n.operator==r.operator)return n.motion="expandToLine",n.motionArgs={linewise:!0},void this.evalInput(e,t);P(e)}n.operator=r.operator,n.operatorArgs=U(r.operatorArgs),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,r){var n=t.visualMode,i=U(r.operatorMotionArgs);i&&n&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,r),n||this.processMotion(e,t,r)},processAction:function(e,t,r){var n=t.inputState,i=n.getRepeat(),o=!!i,a=U(r.actionArgs)||{};n.selectedCharacter&&(a.selectedCharacter=n.selectedCharacter),r.operator&&this.processOperator(e,t,r),r.motion&&this.processMotion(e,t,r),(r.motion||r.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=n.registerName,P(e),t.lastMotion=null,r.isEdit&&this.recordLastEdit(t,n,r),j[r.action](e,a,t)},processSearch:function(s,n,i){if(s.getSearchCursor){var l=i.searchArgs.forward,e=i.searchArgs.wholeWordOnly;xe(s).setReversed(!l);var t=l?"/":"?",o=xe(s).getQuery(),c=s.getScrollInfo();switch(i.searchArgs.querySrc){case"prompt":var r=z.macroModeState;r.isPlaying?d(f=r.replaySearchQueries.shift(),!0,!1):Te(s,{onClose:function(e){s.scrollTo(c.left,c.top),d(e,!0,!0);var t=z.macroModeState;t.isRecording&&function(e,t){if(!e.isPlaying){var r=e.latestRegister,n=z.registerController.getRegister(r);n&&n.pushSearchQuery&&n.pushSearchQuery(t)}}(t,e)},prefix:t,desc:Me,onKeyUp:function(e,t,r){var n,i,o,a=Ge.keyName(e);"Up"==a||"Down"==a?(n="Up"==a,i=e.target?e.target.selectionEnd:0,r(t=z.searchHistoryController.nextMatch(t,n)||""),i&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(i,e.target.value.length))):"Left"!=a&&"Right"!=a&&"Ctrl"!=a&&"Alt"!=a&&"Shift"!=a&&z.searchHistoryController.reset();try{o=Ae(s,t,!0,!0)}catch(e){}o?s.scrollIntoView(Ee(s,!l,o),30):(Ne(s),s.scrollTo(c.left,c.top))},onKeyDown:function(e,t,r){var n=Ge.keyName(e);"Esc"==n||"Ctrl-C"==n||"Ctrl-["==n||"Backspace"==n&&""==t?(z.searchHistoryController.pushInput(t),z.searchHistoryController.reset(),Ae(s,o),Ne(s),s.scrollTo(c.left,c.top),Ge.e_stop(e),P(s),r(),s.focus()):"Up"==n||"Down"==n?Ge.e_stop(e):"Ctrl-U"==n&&(Ge.e_stop(e),r(""))}});break;case"wordUnderCursor":var a=ue(s,!1,0,!1,!0),u=!0;if(a||(a=ue(s,!1,0,!1,!1),u=!1),!a)return;var f=s.getLine(a.start.line).substring(a.start.ch,a.end.ch);f=u&&e?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),z.jumpList.cachedCursor=s.getCursor(),s.setCursor(a.start),d(f,!0,!1)}}function d(t,e,r){z.searchHistoryController.pushInput(t),z.searchHistoryController.reset();try{Ae(s,t,e,r)}catch(e){return Le(s,"Invalid regex: "+t),void P(s)}F.processMotion(s,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:i.searchArgs.toJumplist}})}},processEx:function(a,e,t){function r(e){z.exCommandHistoryController.pushInput(e),z.exCommandHistoryController.reset(),De.processCommand(a,e)}function n(e,t,r){var n,i,o=Ge.keyName(e);("Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==t)&&(z.exCommandHistoryController.pushInput(t),z.exCommandHistoryController.reset(),Ge.e_stop(e),P(a),r(),a.focus()),"Up"==o||"Down"==o?(Ge.e_stop(e),n="Up"==o,i=e.target?e.target.selectionEnd:0,r(t=z.exCommandHistoryController.nextMatch(t,n)||""),i&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(i,e.target.value.length))):"Ctrl-U"==o?(Ge.e_stop(e),r("")):"Left"!=o&&"Right"!=o&&"Ctrl"!=o&&"Alt"!=o&&"Shift"!=o&&z.exCommandHistoryController.reset()}"keyToEx"==t.type?De.processCommand(a,t.exArgs.input):e.visualMode?Te(a,{onClose:r,prefix:":",value:"'<,'>",onKeyDown:n,selectValueOnOpen:!1}):Te(a,{onClose:r,prefix:":",onKeyDown:n})},evalInput:function(e,t){var r,n,i,o,a=t.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},f=a.registerName,d=t.sel,h=X(t.visualMode?K(e,d.head):e.getCursor("head")),p=X(t.visualMode?K(e,d.anchor):e.getCursor("anchor")),m=X(h),g=X(p);if(c&&this.recordLastEdit(t,a),0<(i=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===i)&&(i=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=i,P(e),s){var v=W[s](e,h,l,t);if(t.lastMotion=W[s],!v)return;if(l.toJumplist){var y=z.jumpList,b=y.cachedCursor;b?(fe(e,b,v),delete y.cachedCursor):fe(e,h,v)}(r=v instanceof Array?(n=v[0],v[1]):v)||(r=X(h)),t.visualMode?(t.visualBlock&&r.ch===1/0||(r=K(e,r,t.visualBlock)),n&&(n=K(e,n,!0)),n=n||g,d.anchor=n,d.head=r,ae(e),ve(e,t,"<",Q(n,r)?n:r),ve(e,t,">",Q(n,r)?r:n)):c||(r=K(e,r),e.setCursor(r.line,r.ch))}if(c){if(u.lastSel){n=g;var x=u.lastSel,w=Math.abs(x.head.line-x.anchor.line),k=Math.abs(x.head.ch-x.anchor.ch);r=x.visualLine?Je(g.line+w,g.ch):x.visualBlock?Je(g.line+w,g.ch+k):x.head.line==x.anchor.line?Je(g.line,g.ch+k):Je(g.line+w,g.ch),t.visualMode=!0,t.visualLine=x.visualLine,t.visualBlock=x.visualBlock,d=t.sel={anchor:n,head:r},ae(e)}else t.visualMode&&(u.lastSel={anchor:X(d.anchor),head:X(d.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var C,S,_,L,M;if(t.visualMode){if(C=J(d.head,d.anchor),S=Z(d.head,d.anchor),_=t.visualLine||u.linewise,M=se(e,{anchor:C,head:S},L=t.visualBlock?"block":_?"line":"char"),_){var T=M.ranges;if("block"==L)for(var A=0;A=t.line.length){if(t.ln+=t.dir,!y(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=0]/}).to:n},moveToStartOfLine:function(e,t){return Je(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,r){var n=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(n=r.repeat-e.getOption("firstLineNumber")),Je(n,ce(e.getLine(n)))},textObjectManipulation:function(e,t,r,n){var i=r.selectedCharacter;"b"==i?i="(":"B"==i&&(i="{");var o,a,s,l,c,u,f,d,h=!r.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[i])o=function(e,t,r,n){var i,o,a=t,s={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(a.line).charAt(a.ch)===l?1:0;if(i=e.scanForBracket(Je(a.line,a.ch+c),-1,void 0,{bracketRegex:s}),o=e.scanForBracket(Je(a.line,a.ch+c),1,void 0,{bracketRegex:s}),!i||!o)return{start:a,end:a};if(i=i.pos,o=o.pos,i.line==o.line&&i.ch>o.ch||i.line>o.line){var u=i;i=o,o=u}return n?o.ch+=1:i.ch+=1,{start:i,end:o}}(e,t,i,h);else if({"'":!0,'"':!0}[i])o=function(e,t,r,n){var i,o,a,s,l=X(t),c=e.getLine(l.line).split(""),u=c.indexOf(r);if(l.che.lastLine()&&t.linewise&&!d?e.replaceRange("",f,l):e.replaceRange("",s,l),t.linewise&&(d||(e.setCursor(f),Ge.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),n=s}z.registerController.pushText(t.registerName,"change",i,t.linewise,1c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u=i.anchor.line?V(i.head,0,1):Je(i.anchor.line,0);else if("inplace"==n&&r.visualMode)return;e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),Ge.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),Ge.signal(e,"vim-mode-change",{mode:"insert"})),z.macroModeState.isPlaying||(e.on("change",qe),Ge.on(e.getInputField(),"keydown",Ue)),r.visualMode&&le(e),ie(e,o,a)}},toggleVisualMode:function(e,t,r){var n,i=t.repeat,o=e.getCursor();r.visualMode?r.visualLine^t.linewise||r.visualBlock^t.blockwise?(r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),ae(e)):le(e):(r.visualMode=!0,r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,n=K(e,Je(o.line,o.ch+i-1),!0),r.sel={anchor:o,head:n},Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),ae(e),ve(e,r,"<",J(o,n)),ve(e,r,">",Z(o,n)))},reselectLastSelection:function(e,t,r){var n=r.lastSelection;if(r.visualMode&&oe(e,r),n){var i=n.anchorMark.find(),o=n.headMark.find();if(!i||!o)return;r.sel={anchor:i,head:o},r.visualMode=!0,r.visualLine=n.visualLine,r.visualBlock=n.visualBlock,ae(e),ve(e,r,"<",J(i,o)),ve(e,r,">",Z(i,o)),Ge.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,r){var n,i;if(r.visualMode){if(n=e.getCursor("anchor"),Q(i=e.getCursor("head"),n)){var o=i;i=n,n=o}i.ch=te(e,i.line)-1}else{var a=Math.max(t.repeat,2);n=e.getCursor(),i=K(e,Je(n.line+a-1,1/0))}for(var s=0,l=n.line;ln.lastLine()&&n.replaceRange("\n",Je(F,0)),te(n,F)l.length&&(n=l.length),i=Je(a.line,n)}if("\n"==o)r.visualMode||e.replaceRange("",a,i),(Ge.commands.newlineAndIndentContinueComment||Ge.commands.newlineAndIndent)(e);else{var c=e.getRange(a,i);if(c=c.replace(/[^\n]/g,o),r.visualBlock){var u=new Array(e.getOption("tabSize")+1).join(" ");c=(c=e.getSelection()).replace(/\t/g,u).replace(/[^\n]/g,o).split("\n"),e.replaceSelections(c)}else e.replaceRange(c,a,i);r.visualMode?(a=Q(s[0].anchor,s[0].head)?s[0].anchor:s[0].head,e.setCursor(a),le(e,!1)):e.setCursor(V(i,0,-1))}},incrementNumberToken:function(e,t){for(var r,n,i,o,a=e.getCursor(),s=e.getLine(a.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=l.exec(s))&&(i=(n=r.index)+r[0].length,!(a.ch"!=t.slice(-11))return e==t?"full":0==t.indexOf(e)&&"partial";var r=t.length-11,n=e.slice(0,r),i=t.slice(0,r);return n==i&&e.length>r?"full":0==i.indexOf(n)&&"partial"}function G(t,r,n){return function(){for(var e=0;el&&(i.line=l),i.ch=te(e,i.line)}return{ranges:[{anchor:o,head:i}],primary:0}}if("block"==r){for(var c=Math.min(o.line,i.line),u=Math.min(o.ch,i.ch),f=Math.max(o.line,i.line),d=Math.max(o.ch,i.ch)+1,h=f-c+1,p=i.line==c?0:h-1,m=[],g=0;g=l.length)return null;n?u=v[0]:(u=g[0])(l.charAt(c))||(u=g[1]);for(var f=c,d=c;u(l.charAt(f))&&f'+t+"",{bottom:!0,duration:5e3}):alert(t)}var Me="(Javascript regexp)";function Te(e,t){var r,n,i,o,a,s,l,c,u=(t.prefix||"")+" "+(t.desc||""),f=(r=t.prefix,n=t.desc,i=''+(r||"")+'',n&&(i+=' '+n+""),i);o=e,a=f,s=u,l=t.onClose,c=t,o.openDialog?o.openDialog(a,l,{bottom:!0,value:c.value,onKeyDown:c.onKeyDown,onKeyUp:c.onKeyUp,selectValueOnOpen:!1}):l(prompt(s,""))}function Ae(e,t,r,n){if(t){var i=xe(e),o=_e(t,!!r,!!n);if(o)return Oe(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var r=["global","multiline","ignoreCase","source"],n=0;n
";if(r){r=r.join("");for(var o=0;o")}else for(var a in n){var s=n[a].toString();s.length&&(i+='"'+a+" "+s+"
")}Le(e,i)},sort:function(e,o){var a,s,l,c,u,t=function(){if(o.argString){var e=new Ge.StringStream(o.argString);if(e.eat("!")&&(a=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var t=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!t&&!e.eol())return"Invalid arguments";if(t[1]){s=-1!=t[1].indexOf("i"),l=-1!=t[1].indexOf("u");var r=-1!=t[1].indexOf("d")||-1!=t[1].indexOf("n")&&1,n=-1!=t[1].indexOf("x")&&1,i=-1!=t[1].indexOf("o")&&1;if(1");if(n){var d=0,h=function(){if(d"+l+" (y/n/a/q/l)",onKeyDown:function(e,t,r){switch(Ge.e_stop(e),Ge.keyName(e)){case"Y":h(),p();break;case"N":p();break;case"A":var n=c;c=void 0,i.operation(d),c=n;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":m(r)}return u&&m(r),!0}}):(d(),c&&c())}(t,c,u,d,h,t.getSearchCursor(f,p),f,l,e.callback)}else Le(t,"No previous substitute regular expression")},redo:Ge.commands.redo,undo:Ge.commands.undo,write:function(e){Ge.commands.save?Ge.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Ne(e)},yank:function(e){var t=X(e.getCursor()).line,r=e.getLine(t);z.registerController.pushText("0","yank",r,!0,!0)},delmarks:function(e,t){if(t.argString&&re(t.argString))for(var r=e.state.vim,n=new Ge.StringStream(re(t.argString));!n.eol();){n.eatSpace();var i=n.pos;if(!n.match(/[a-zA-Z]/,!1))return void Le(e,"Invalid argument: "+t.argString.substring(i));var o=n.next();if(n.match("-",!0)){if(!n.match(/[a-zA-Z]/,!1))return void Le(e,"Invalid argument: "+t.argString.substring(i));var a=o,s=n.next();if(!(p(a)&&p(s)||b(a)&&b(s)))return void Le(e,"Invalid argument: "+a+"-");var l=a.charCodeAt(0),c=s.charCodeAt(0);if(c<=l)return void Le(e,"Invalid argument: "+t.argString.substring(i));for(var u=0;u<=c-l;u++){var f=String.fromCharCode(l+u);delete r.marks[f]}}else delete r.marks[o]}else Le(e,"Argument required")}},De=new Re;function Fe(e){var t=e.state.vim,r=z.macroModeState,n=z.registerController.getRegister("."),i=r.isPlaying,o=r.lastInsertModeChanges;i||(e.off("change",qe),Ge.off(e.getInputField(),"keydown",Ue)),!i&&1|<\w+>|./.exec(u))[0],u=u.substring(l.index+c.length),Ge.Vim.handleKey(e,c,"macro"),t.insertMode){var f=i.insertModeChanges[a++].changes;$e(e,z.macroModeState.lastInsertModeChanges.changes=f,1),Fe(e)}r.isPlaying=!1}function qe(e,t){var r=z.macroModeState,n=r.lastInsertModeChanges;if(!r.isPlaying)for(;t;){if(n.expectCursorActivityForChange=!0,1",Z(n,r))}else t.insertMode||(t.lastHPos=e.getCursor().ch)}(e,t);t.visualMode&&je(e)}function je(e){var t=e.state.vim,r=K(e,X(t.sel.head)),n=V(r,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(r,n,{className:"cm-animate-fat-cursor"})}function Ke(e){this.keyName=e}function Ue(e){var t=z.macroModeState.lastInsertModeChanges,r=Ge.keyName(e);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||Ge.lookupKey(r,"vim-insert",function(){return t.maybeReset&&(t.changes=[],t.maybeReset=!1),t.changes.push(new Ke(r)),!0}))}function Ve(r,n,e,t){var i=z.macroModeState;i.isPlaying=!0;var o=!!n.lastEditActionCommand,a=n.inputState;function s(){o?F.processAction(r,n,n.lastEditActionCommand):F.evalInput(r,n)}function l(e){if(0'),l.getElementById("cm_content_fullscreen").onclick=P;!function(){d.getWrapperElement().appendChild(p),p.style.display="block",p.querySelector(".CodeMirror-settings__toggle").addEventListener("click",M),p.querySelector(".CodeMirror-settings__toggle-advanced").addEventListener("click",M),new MutationObserver(L).observe(d.getWrapperElement(),{childList:!0});for(var e=p.querySelectorAll(".CodeMirror-settings__option"),t=0;t * { text-indent: 0px; }",a=l.head||l.getElementsByTagName("head")[0],(s=l.createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=o:s.appendChild(l.createTextNode(o)),a.appendChild(s),d.on("renderLine",function(e,t,r){var n=c.countColumn(t.text,null,e.getOption("tabSize"))*y.charWidth;r.style.textIndent="-"+n+"px",r.style.paddingLeft=4+n+"px"}),d.refresh()}}function Z(){y.isActive()&&(T("closed"),d.toTextArea(),d=void 0)}function ee(){if(y.isThemeOrPlugin)J();else if(y.isGutenberg){var e=y.isGutenbergVisualActive();wp.data.subscribe(function(){y.isGutenbergVisualActive()!==e&&((e=y.isGutenbergVisualActive())?Z():u.setTimeout(J,0))}),e||J()}else y.isVisualEnabled?(r.addEventListener("click",function(){u.setTimeout(J,0)}),i.addEventListener("click",Z),y.isVisualActive()||J()):(J(),l.body.className+=" visual-editor-is-disabled")}"complete"!==l.readyState?u.addEventListener?u.addEventListener("load",ee,!1):u.attachEvent&&u.attachEvent("onload",ee):ee()}(document,window,window.CodeMirror,window.jQuery,window.heshOptions); \ No newline at end of file diff --git a/html-editor-syntax-highlighter.php b/html-editor-syntax-highlighter.php index b64cafb..1e03f60 100644 --- a/html-editor-syntax-highlighter.php +++ b/html-editor-syntax-highlighter.php @@ -2,25 +2,25 @@ /** - * @since 2.3.0 + * @since 2.3.1 * @package HESH_plugin * * Plugin Name: HTML Editor Syntax Highlighter * Plugin URI: http://wordpress.org/extend/plugins/html-editor-syntax-highlighter/ * Description: Add syntax highlighting to the all WordPress code editors using Codemirror.js * Text Domain: html-editor-syntax-highlighter - * Author: Petr Mukhortov - * Author URI: http://mukhortov.com/ * Author: James Bradford * Author URI: http://bradford.digital/ + * Author: Petr Mukhortov + * Author URI: http://mukhortov.com/ * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * GitHub Branch: master * GitHub Plugin URI: https://github.com/mukhortov/HESH-WordPress-Plugin - * Version: 2.3.0 + * Version: 2.3.1 * Requires at least: 4.0.15 * Tested up to: 5.0.3 - * Stable tag: 2.3.0 + * Stable tag: 2.3.1 **/ // Check for required PHP version diff --git a/readme.txt b/readme.txt index b90dfae..99a7cdb 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/mukhortov/5 Tags: syntax highlighter, codemirror, text editor, code highlighter, code coloring, editor, html editor, gutenberg, code editor, theme editor, plugin editor, syntax, highlighting, highlighter, syntax highlighting, codemirror.js, code, Requires at least: 4.0.15 Tested up to: 5.0.3 -Stable tag: 2.3.0 +Stable tag: 2.3.1 License: GPL-2.0 License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -48,6 +48,10 @@ Yes! Search with `Ctrl+F` (`Cmd+F` on Mac). Replace with `Ctrl+alt+F` (`Cmd+alt+ == Changelog == += 2.3.1 = +* Fixing JS error in issue #81 _(Hopefully?)_ +* Updating authorship so James can get a job. Will revert to Petr Later... + = 2.3.0 = * Support for Gutenberg Code Editor! * Added new themes: Codepen and Wordpress (which is now the default).