From cf16ba6fee54d9e75f6989d04dbf3a29ddcb38ee Mon Sep 17 00:00:00 2001 From: DeanWu Date: Wed, 16 Jan 2019 12:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=9D=99=E6=80=81?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/lib/codemirror/addons.min.js | 4 ---- .../static/js/lib/codemirror/modes.min.js | 10 -------- .../static/{ => mdeditor}/css/editormd.css | 0 .../{ => mdeditor}/css/editormd.logo.css | 0 .../{ => mdeditor}/css/editormd.logo.min.css | 0 .../{ => mdeditor}/css/editormd.min.css | 0 .../{ => mdeditor}/css/editormd.preview.css | 0 .../css/editormd.preview.min.css | 0 mdeditor/static/{ => mdeditor}/css/style.css | 0 .../{ => mdeditor}/fonts/FontAwesome.otf | Bin .../{ => mdeditor}/fonts/editormd-logo.eot | Bin .../{ => mdeditor}/fonts/editormd-logo.svg | 0 .../{ => mdeditor}/fonts/editormd-logo.ttf | Bin .../{ => mdeditor}/fonts/editormd-logo.woff | Bin .../fonts/fontawesome-webfont.eot | Bin .../fonts/fontawesome-webfont.svg | 0 .../fonts/fontawesome-webfont.ttf | Bin .../fonts/fontawesome-webfont.woff | Bin .../fonts/fontawesome-webfont.woff2 | Bin .../static/{ => mdeditor}/images/loading.gif | Bin .../{ => mdeditor}/images/loading@2x.gif | Bin .../{ => mdeditor}/images/loading@3x.gif | Bin .../images/logos/editormd-favicon-16x16.ico | Bin .../images/logos/editormd-favicon-24x24.ico | Bin .../images/logos/editormd-favicon-32x32.ico | Bin .../images/logos/editormd-favicon-48x48.ico | Bin .../images/logos/editormd-favicon-64x64.ico | Bin .../images/logos/editormd-logo-114x114.png | Bin .../images/logos/editormd-logo-120x120.png | Bin .../images/logos/editormd-logo-144x144.png | Bin .../images/logos/editormd-logo-16x16.png | Bin .../images/logos/editormd-logo-180x180.png | Bin .../images/logos/editormd-logo-240x240.png | Bin .../images/logos/editormd-logo-24x24.png | Bin .../images/logos/editormd-logo-320x320.png | Bin .../images/logos/editormd-logo-32x32.png | Bin .../images/logos/editormd-logo-48x48.png | Bin .../images/logos/editormd-logo-57x57.png | Bin .../images/logos/editormd-logo-64x64.png | Bin .../images/logos/editormd-logo-72x72.png | Bin .../images/logos/editormd-logo-96x96.png | Bin .../static/{ => mdeditor}/images/logos/vi.png | Bin mdeditor/static/{ => mdeditor}/js/editormd.js | 0 .../static/{ => mdeditor}/js/editormd.min.js | 0 .../static/{ => mdeditor}/js/jquery.min.js | 0 .../{ => mdeditor}/js/lib/codemirror/AUTHORS | 0 .../{ => mdeditor}/js/lib/codemirror/LICENSE | 0 .../js/lib/codemirror/README.md | 0 .../lib/codemirror/addon/comment/comment.js | 0 .../addon/comment/continuecomment.js | 0 .../js/lib/codemirror/addon/dialog/dialog.css | 0 .../js/lib/codemirror/addon/dialog/dialog.js | 0 .../codemirror/addon/display/fullscreen.css | 0 .../codemirror/addon/display/fullscreen.js | 0 .../js/lib/codemirror/addon/display/panel.js | 0 .../codemirror/addon/display/placeholder.js | 0 .../js/lib/codemirror/addon/display/rulers.js | 0 .../codemirror/addon/edit/closebrackets.js | 0 .../js/lib/codemirror/addon/edit/closetag.js | 0 .../lib/codemirror/addon/edit/continuelist.js | 0 .../codemirror/addon/edit/matchbrackets.js | 0 .../js/lib/codemirror/addon/edit/matchtags.js | 0 .../codemirror/addon/edit/trailingspace.js | 0 .../lib/codemirror/addon/fold/brace-fold.js | 0 .../lib/codemirror/addon/fold/comment-fold.js | 0 .../js/lib/codemirror/addon/fold/foldcode.js | 0 .../lib/codemirror/addon/fold/foldgutter.css | 0 .../lib/codemirror/addon/fold/foldgutter.js | 0 .../lib/codemirror/addon/fold/indent-fold.js | 0 .../codemirror/addon/fold/markdown-fold.js | 0 .../js/lib/codemirror/addon/fold/xml-fold.js | 0 .../lib/codemirror/addon/hint/anyword-hint.js | 0 .../js/lib/codemirror/addon/hint/css-hint.js | 0 .../js/lib/codemirror/addon/hint/html-hint.js | 0 .../codemirror/addon/hint/javascript-hint.js | 0 .../lib/codemirror/addon/hint/show-hint.css | 0 .../js/lib/codemirror/addon/hint/show-hint.js | 0 .../js/lib/codemirror/addon/hint/sql-hint.js | 0 .../js/lib/codemirror/addon/hint/xml-hint.js | 0 .../addon/lint/coffeescript-lint.js | 0 .../js/lib/codemirror/addon/lint/css-lint.js | 0 .../codemirror/addon/lint/javascript-lint.js | 0 .../js/lib/codemirror/addon/lint/json-lint.js | 0 .../js/lib/codemirror/addon/lint/lint.css | 0 .../js/lib/codemirror/addon/lint/lint.js | 0 .../js/lib/codemirror/addon/lint/yaml-lint.js | 0 .../js/lib/codemirror/addon/merge/merge.css | 0 .../js/lib/codemirror/addon/merge/merge.js | 0 .../js/lib/codemirror/addon/mode/loadmode.js | 0 .../js/lib/codemirror/addon/mode/multiplex.js | 0 .../codemirror/addon/mode/multiplex_test.js | 0 .../js/lib/codemirror/addon/mode/overlay.js | 0 .../js/lib/codemirror/addon/mode/simple.js | 0 .../lib/codemirror/addon/runmode/colorize.js | 0 .../addon/runmode/runmode-standalone.js | 0 .../lib/codemirror/addon/runmode/runmode.js | 0 .../codemirror/addon/runmode/runmode.node.js | 0 .../addon/scroll/annotatescrollbar.js | 0 .../codemirror/addon/scroll/scrollpastend.js | 0 .../addon/scroll/simplescrollbars.css | 0 .../addon/scroll/simplescrollbars.js | 0 .../addon/search/match-highlighter.js | 0 .../addon/search/matchesonscrollbar.css | 0 .../addon/search/matchesonscrollbar.js | 0 .../js/lib/codemirror/addon/search/search.js | 0 .../codemirror/addon/search/searchcursor.js | 0 .../codemirror/addon/selection/active-line.js | 0 .../addon/selection/mark-selection.js | 0 .../addon/selection/selection-pointer.js | 0 .../js/lib/codemirror/addon/tern/tern.css | 0 .../js/lib/codemirror/addon/tern/tern.js | 0 .../js/lib/codemirror/addon/tern/worker.js | 0 .../js/lib/codemirror/addon/wrap/hardwrap.js | 0 .../mdeditor/js/lib/codemirror/addons.min.js | 4 ++++ .../js/lib/codemirror/bower.json | 0 .../js/lib/codemirror/codemirror.min.css | 0 .../js/lib/codemirror/codemirror.min.js | 0 .../js/lib/codemirror/lib/codemirror.css | 0 .../js/lib/codemirror/lib/codemirror.js | 0 .../js/lib/codemirror/mode/apl/apl.js | 0 .../js/lib/codemirror/mode/apl/index.html | 2 +- .../lib/codemirror/mode/asterisk/asterisk.js | 0 .../lib/codemirror/mode/asterisk/index.html | 0 .../js/lib/codemirror/mode/clike/clike.js | 0 .../js/lib/codemirror/mode/clike/index.html | 0 .../js/lib/codemirror/mode/clike/scala.html | 0 .../js/lib/codemirror/mode/clojure/clojure.js | 0 .../js/lib/codemirror/mode/clojure/index.html | 0 .../js/lib/codemirror/mode/cobol/cobol.js | 0 .../js/lib/codemirror/mode/cobol/index.html | 0 .../mode/coffeescript/coffeescript.js | 0 .../codemirror/mode/coffeescript/index.html | 0 .../codemirror/mode/commonlisp/commonlisp.js | 0 .../lib/codemirror/mode/commonlisp/index.html | 0 .../js/lib/codemirror/mode/css/css.js | 0 .../js/lib/codemirror/mode/css/index.html | 0 .../js/lib/codemirror/mode/css/less.html | 0 .../js/lib/codemirror/mode/css/less_test.js | 0 .../js/lib/codemirror/mode/css/scss.html | 0 .../js/lib/codemirror/mode/css/scss_test.js | 0 .../js/lib/codemirror/mode/css/test.js | 0 .../js/lib/codemirror/mode/cypher/cypher.js | 0 .../js/lib/codemirror/mode/cypher/index.html | 0 .../js/lib/codemirror/mode/d/d.js | 0 .../js/lib/codemirror/mode/d/index.html | 0 .../js/lib/codemirror/mode/dart/dart.js | 0 .../js/lib/codemirror/mode/dart/index.html | 0 .../js/lib/codemirror/mode/diff/diff.js | 0 .../js/lib/codemirror/mode/diff/index.html | 0 .../js/lib/codemirror/mode/django/django.js | 0 .../js/lib/codemirror/mode/django/index.html | 0 .../codemirror/mode/dockerfile/dockerfile.js | 0 .../lib/codemirror/mode/dockerfile/index.html | 0 .../js/lib/codemirror/mode/dtd/dtd.js | 0 .../js/lib/codemirror/mode/dtd/index.html | 0 .../js/lib/codemirror/mode/dylan/dylan.js | 0 .../js/lib/codemirror/mode/dylan/index.html | 0 .../js/lib/codemirror/mode/ebnf/ebnf.js | 0 .../js/lib/codemirror/mode/ebnf/index.html | 0 .../js/lib/codemirror/mode/ecl/ecl.js | 0 .../js/lib/codemirror/mode/ecl/index.html | 0 .../js/lib/codemirror/mode/eiffel/eiffel.js | 0 .../js/lib/codemirror/mode/eiffel/index.html | 0 .../js/lib/codemirror/mode/erlang/erlang.js | 0 .../js/lib/codemirror/mode/erlang/index.html | 0 .../js/lib/codemirror/mode/forth/forth.js | 0 .../js/lib/codemirror/mode/forth/index.html | 0 .../js/lib/codemirror/mode/fortran/fortran.js | 0 .../js/lib/codemirror/mode/fortran/index.html | 0 .../js/lib/codemirror/mode/gas/gas.js | 0 .../js/lib/codemirror/mode/gas/index.html | 0 .../js/lib/codemirror/mode/gfm/gfm.js | 0 .../js/lib/codemirror/mode/gfm/index.html | 0 .../js/lib/codemirror/mode/gfm/test.js | 0 .../js/lib/codemirror/mode/gherkin/gherkin.js | 0 .../js/lib/codemirror/mode/gherkin/index.html | 0 .../js/lib/codemirror/mode/go/go.js | 0 .../js/lib/codemirror/mode/go/index.html | 0 .../js/lib/codemirror/mode/groovy/groovy.js | 0 .../js/lib/codemirror/mode/groovy/index.html | 0 .../js/lib/codemirror/mode/haml/haml.js | 0 .../js/lib/codemirror/mode/haml/index.html | 0 .../js/lib/codemirror/mode/haml/test.js | 0 .../js/lib/codemirror/mode/haskell/haskell.js | 0 .../js/lib/codemirror/mode/haskell/index.html | 0 .../js/lib/codemirror/mode/haxe/haxe.js | 0 .../js/lib/codemirror/mode/haxe/index.html | 0 .../mode/htmlembedded/htmlembedded.js | 0 .../codemirror/mode/htmlembedded/index.html | 0 .../codemirror/mode/htmlmixed/htmlmixed.js | 0 .../lib/codemirror/mode/htmlmixed/index.html | 0 .../js/lib/codemirror/mode/http/http.js | 0 .../js/lib/codemirror/mode/http/index.html | 0 .../js/lib/codemirror/mode/idl/idl.js | 0 .../js/lib/codemirror/mode/idl/index.html | 0 .../js/lib/codemirror/mode/index.html | 0 .../js/lib/codemirror/mode/jade/index.html | 0 .../js/lib/codemirror/mode/jade/jade.js | 0 .../lib/codemirror/mode/javascript/index.html | 0 .../codemirror/mode/javascript/javascript.js | 0 .../codemirror/mode/javascript/json-ld.html | 0 .../js/lib/codemirror/mode/javascript/test.js | 0 .../mode/javascript/typescript.html | 0 .../js/lib/codemirror/mode/jinja2/index.html | 0 .../js/lib/codemirror/mode/jinja2/jinja2.js | 0 .../js/lib/codemirror/mode/julia/index.html | 0 .../js/lib/codemirror/mode/julia/julia.js | 0 .../js/lib/codemirror/mode/kotlin/index.html | 0 .../js/lib/codemirror/mode/kotlin/kotlin.js | 0 .../lib/codemirror/mode/livescript/index.html | 0 .../codemirror/mode/livescript/livescript.js | 0 .../js/lib/codemirror/mode/lua/index.html | 0 .../js/lib/codemirror/mode/lua/lua.js | 0 .../lib/codemirror/mode/markdown/index.html | 0 .../lib/codemirror/mode/markdown/markdown.js | 0 .../js/lib/codemirror/mode/markdown/test.js | 0 .../js/lib/codemirror/mode/meta.js | 0 .../js/lib/codemirror/mode/mirc/index.html | 0 .../js/lib/codemirror/mode/mirc/mirc.js | 0 .../js/lib/codemirror/mode/mllike/index.html | 0 .../js/lib/codemirror/mode/mllike/mllike.js | 0 .../lib/codemirror/mode/modelica/index.html | 0 .../lib/codemirror/mode/modelica/modelica.js | 0 .../js/lib/codemirror/mode/nginx/index.html | 0 .../js/lib/codemirror/mode/nginx/nginx.js | 0 .../lib/codemirror/mode/ntriples/index.html | 0 .../lib/codemirror/mode/ntriples/ntriples.js | 0 .../js/lib/codemirror/mode/octave/index.html | 0 .../js/lib/codemirror/mode/octave/octave.js | 0 .../js/lib/codemirror/mode/pascal/index.html | 0 .../js/lib/codemirror/mode/pascal/pascal.js | 0 .../js/lib/codemirror/mode/pegjs/index.html | 0 .../js/lib/codemirror/mode/pegjs/pegjs.js | 0 .../js/lib/codemirror/mode/perl/index.html | 0 .../js/lib/codemirror/mode/perl/perl.js | 0 .../js/lib/codemirror/mode/php/index.html | 2 +- .../js/lib/codemirror/mode/php/php.js | 0 .../js/lib/codemirror/mode/php/test.js | 0 .../js/lib/codemirror/mode/pig/index.html | 0 .../js/lib/codemirror/mode/pig/pig.js | 0 .../lib/codemirror/mode/properties/index.html | 0 .../codemirror/mode/properties/properties.js | 0 .../js/lib/codemirror/mode/puppet/index.html | 0 .../js/lib/codemirror/mode/puppet/puppet.js | 0 .../js/lib/codemirror/mode/python/index.html | 0 .../js/lib/codemirror/mode/python/python.js | 0 .../js/lib/codemirror/mode/q/index.html | 0 .../js/lib/codemirror/mode/q/q.js | 0 .../js/lib/codemirror/mode/r/index.html | 0 .../js/lib/codemirror/mode/r/r.js | 0 .../codemirror/mode/rpm/changes/index.html | 0 .../js/lib/codemirror/mode/rpm/index.html | 0 .../js/lib/codemirror/mode/rpm/rpm.js | 0 .../js/lib/codemirror/mode/rst/index.html | 0 .../js/lib/codemirror/mode/rst/rst.js | 0 .../js/lib/codemirror/mode/ruby/index.html | 0 .../js/lib/codemirror/mode/ruby/ruby.js | 0 .../js/lib/codemirror/mode/ruby/test.js | 0 .../js/lib/codemirror/mode/rust/index.html | 0 .../js/lib/codemirror/mode/rust/rust.js | 0 .../js/lib/codemirror/mode/sass/index.html | 0 .../js/lib/codemirror/mode/sass/sass.js | 0 .../js/lib/codemirror/mode/scheme/index.html | 0 .../js/lib/codemirror/mode/scheme/scheme.js | 0 .../js/lib/codemirror/mode/shell/index.html | 0 .../js/lib/codemirror/mode/shell/shell.js | 0 .../js/lib/codemirror/mode/shell/test.js | 0 .../js/lib/codemirror/mode/sieve/index.html | 0 .../js/lib/codemirror/mode/sieve/sieve.js | 0 .../js/lib/codemirror/mode/slim/index.html | 0 .../js/lib/codemirror/mode/slim/slim.js | 0 .../js/lib/codemirror/mode/slim/test.js | 0 .../lib/codemirror/mode/smalltalk/index.html | 0 .../codemirror/mode/smalltalk/smalltalk.js | 0 .../js/lib/codemirror/mode/smarty/index.html | 0 .../js/lib/codemirror/mode/smarty/smarty.js | 0 .../codemirror/mode/smartymixed/index.html | 12 +++++----- .../mode/smartymixed/smartymixed.js | 0 .../js/lib/codemirror/mode/solr/index.html | 0 .../js/lib/codemirror/mode/solr/solr.js | 0 .../js/lib/codemirror/mode/soy/index.html | 0 .../js/lib/codemirror/mode/soy/soy.js | 0 .../js/lib/codemirror/mode/sparql/index.html | 0 .../js/lib/codemirror/mode/sparql/sparql.js | 0 .../codemirror/mode/spreadsheet/index.html | 0 .../mode/spreadsheet/spreadsheet.js | 0 .../js/lib/codemirror/mode/sql/index.html | 0 .../js/lib/codemirror/mode/sql/sql.js | 0 .../js/lib/codemirror/mode/stex/index.html | 0 .../js/lib/codemirror/mode/stex/stex.js | 0 .../js/lib/codemirror/mode/stex/test.js | 0 .../js/lib/codemirror/mode/stylus/index.html | 0 .../js/lib/codemirror/mode/stylus/stylus.js | 0 .../js/lib/codemirror/mode/tcl/index.html | 0 .../js/lib/codemirror/mode/tcl/tcl.js | 0 .../js/lib/codemirror/mode/textile/index.html | 0 .../js/lib/codemirror/mode/textile/test.js | 0 .../js/lib/codemirror/mode/textile/textile.js | 0 .../lib/codemirror/mode/tiddlywiki/index.html | 0 .../codemirror/mode/tiddlywiki/tiddlywiki.css | 0 .../codemirror/mode/tiddlywiki/tiddlywiki.js | 0 .../js/lib/codemirror/mode/tiki/index.html | 0 .../js/lib/codemirror/mode/tiki/tiki.css | 0 .../js/lib/codemirror/mode/tiki/tiki.js | 0 .../js/lib/codemirror/mode/toml/index.html | 0 .../js/lib/codemirror/mode/toml/toml.js | 0 .../js/lib/codemirror/mode/tornado/index.html | 0 .../js/lib/codemirror/mode/tornado/tornado.js | 0 .../js/lib/codemirror/mode/turtle/index.html | 0 .../js/lib/codemirror/mode/turtle/turtle.js | 0 .../js/lib/codemirror/mode/vb/index.html | 0 .../js/lib/codemirror/mode/vb/vb.js | 0 .../lib/codemirror/mode/vbscript/index.html | 0 .../lib/codemirror/mode/vbscript/vbscript.js | 0 .../lib/codemirror/mode/velocity/index.html | 0 .../lib/codemirror/mode/velocity/velocity.js | 0 .../js/lib/codemirror/mode/verilog/index.html | 0 .../js/lib/codemirror/mode/verilog/test.js | 0 .../js/lib/codemirror/mode/verilog/verilog.js | 0 .../js/lib/codemirror/mode/xml/index.html | 0 .../js/lib/codemirror/mode/xml/test.js | 0 .../js/lib/codemirror/mode/xml/xml.js | 0 .../js/lib/codemirror/mode/xquery/index.html | 0 .../js/lib/codemirror/mode/xquery/test.js | 0 .../js/lib/codemirror/mode/xquery/xquery.js | 0 .../js/lib/codemirror/mode/yaml/index.html | 0 .../js/lib/codemirror/mode/yaml/yaml.js | 0 .../js/lib/codemirror/mode/z80/index.html | 0 .../js/lib/codemirror/mode/z80/z80.js | 0 .../mdeditor/js/lib/codemirror/modes.min.js | 10 ++++++++ .../js/lib/codemirror/package.json | 3 ++- .../js/lib/codemirror/theme/3024-day.css | 0 .../js/lib/codemirror/theme/3024-night.css | 0 .../lib/codemirror/theme/ambiance-mobile.css | 0 .../js/lib/codemirror/theme/ambiance.css | 0 .../js/lib/codemirror/theme/base16-dark.css | 0 .../js/lib/codemirror/theme/base16-light.css | 0 .../js/lib/codemirror/theme/blackboard.css | 0 .../js/lib/codemirror/theme/cobalt.css | 0 .../js/lib/codemirror/theme/colorforth.css | 0 .../js/lib/codemirror/theme/eclipse.css | 0 .../js/lib/codemirror/theme/elegant.css | 0 .../js/lib/codemirror/theme/erlang-dark.css | 0 .../js/lib/codemirror/theme/lesser-dark.css | 0 .../js/lib/codemirror/theme/mbo.css | 0 .../js/lib/codemirror/theme/mdn-like.css | 0 .../js/lib/codemirror/theme/midnight.css | 0 .../js/lib/codemirror/theme/monokai.css | 0 .../js/lib/codemirror/theme/neat.css | 0 .../js/lib/codemirror/theme/neo.css | 0 .../js/lib/codemirror/theme/night.css | 0 .../js/lib/codemirror/theme/paraiso-dark.css | 0 .../js/lib/codemirror/theme/paraiso-light.css | 0 .../lib/codemirror/theme/pastel-on-dark.css | 0 .../js/lib/codemirror/theme/rubyblue.css | 0 .../js/lib/codemirror/theme/solarized.css | 0 .../js/lib/codemirror/theme/the-matrix.css | 0 .../theme/tomorrow-night-bright.css | 0 .../theme/tomorrow-night-eighties.css | 0 .../js/lib/codemirror/theme/twilight.css | 0 .../js/lib/codemirror/theme/vibrant-ink.css | 0 .../js/lib/codemirror/theme/xq-dark.css | 0 .../js/lib/codemirror/theme/xq-light.css | 0 .../js/lib/codemirror/theme/zenburn.css | 0 .../{ => mdeditor}/js/lib/flowchart.min.js | 0 .../js/lib/jquery.flowchart.min.js | 2 +- .../{ => mdeditor}/js/lib/marked.min.js | 0 .../{ => mdeditor}/js/lib/prettify.min.js | 0 .../{ => mdeditor}/js/lib/raphael.min.js | 0 .../js/lib/sequence-diagram.min.js | 0 .../{ => mdeditor}/js/lib/underscore.min.js | 8 +++---- .../code-block-dialog/code-block-dialog.js | 2 +- .../js/plugins/emoji-dialog/emoji-dialog.js | 2 +- .../js/plugins/emoji-dialog/emoji.json | 0 .../goto-line-dialog/goto-line-dialog.js | 2 +- .../js/plugins/help-dialog/help-dialog.js | 2 +- .../js/plugins/help-dialog/help.md | 0 .../html-entities-dialog.js | 2 +- .../html-entities-dialog/html-entities.json | 0 .../js/plugins/image-dialog/image-dialog.js | 2 +- .../js/plugins/link-dialog/link-dialog.js | 2 +- .../js/plugins/plugin-template.js | 0 .../preformatted-text-dialog.js | 2 +- .../reference-link-dialog.js | 2 +- .../js/plugins/table-dialog/table-dialog.js | 2 +- .../js/plugins/test-plugin/test-plugin.js | 2 +- mdeditor/templates/markdown.html | 2 +- mdeditor/widgets.py | 6 ++--- mdeditor_demo_app/templates/show.html | 22 +++++++++--------- 389 files changed, 55 insertions(+), 54 deletions(-) delete mode 100755 mdeditor/static/js/lib/codemirror/addons.min.js delete mode 100755 mdeditor/static/js/lib/codemirror/modes.min.js rename mdeditor/static/{ => mdeditor}/css/editormd.css (100%) rename mdeditor/static/{ => mdeditor}/css/editormd.logo.css (100%) rename mdeditor/static/{ => mdeditor}/css/editormd.logo.min.css (100%) rename mdeditor/static/{ => mdeditor}/css/editormd.min.css (100%) rename mdeditor/static/{ => mdeditor}/css/editormd.preview.css (100%) rename mdeditor/static/{ => mdeditor}/css/editormd.preview.min.css (100%) rename mdeditor/static/{ => mdeditor}/css/style.css (100%) rename mdeditor/static/{ => mdeditor}/fonts/FontAwesome.otf (100%) rename mdeditor/static/{ => mdeditor}/fonts/editormd-logo.eot (100%) rename mdeditor/static/{ => mdeditor}/fonts/editormd-logo.svg (100%) rename mdeditor/static/{ => mdeditor}/fonts/editormd-logo.ttf (100%) rename mdeditor/static/{ => mdeditor}/fonts/editormd-logo.woff (100%) rename mdeditor/static/{ => mdeditor}/fonts/fontawesome-webfont.eot (100%) rename mdeditor/static/{ => mdeditor}/fonts/fontawesome-webfont.svg (100%) rename mdeditor/static/{ => mdeditor}/fonts/fontawesome-webfont.ttf (100%) rename mdeditor/static/{ => mdeditor}/fonts/fontawesome-webfont.woff (100%) rename mdeditor/static/{ => mdeditor}/fonts/fontawesome-webfont.woff2 (100%) rename mdeditor/static/{ => mdeditor}/images/loading.gif (100%) rename mdeditor/static/{ => mdeditor}/images/loading@2x.gif (100%) rename mdeditor/static/{ => mdeditor}/images/loading@3x.gif (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-favicon-16x16.ico (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-favicon-24x24.ico (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-favicon-32x32.ico (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-favicon-48x48.ico (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-favicon-64x64.ico (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-114x114.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-120x120.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-144x144.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-16x16.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-180x180.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-240x240.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-24x24.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-320x320.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-32x32.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-48x48.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-57x57.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-64x64.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-72x72.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/editormd-logo-96x96.png (100%) rename mdeditor/static/{ => mdeditor}/images/logos/vi.png (100%) rename mdeditor/static/{ => mdeditor}/js/editormd.js (100%) rename mdeditor/static/{ => mdeditor}/js/editormd.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/jquery.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/AUTHORS (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/LICENSE (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/README.md (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/comment/comment.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/comment/continuecomment.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/dialog/dialog.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/dialog/dialog.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/display/fullscreen.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/display/fullscreen.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/display/panel.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/display/placeholder.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/display/rulers.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/closebrackets.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/closetag.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/continuelist.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/matchbrackets.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/matchtags.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/edit/trailingspace.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/brace-fold.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/comment-fold.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/foldcode.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/foldgutter.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/foldgutter.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/indent-fold.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/markdown-fold.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/fold/xml-fold.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/anyword-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/css-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/html-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/javascript-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/show-hint.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/show-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/sql-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/hint/xml-hint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/coffeescript-lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/css-lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/javascript-lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/json-lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/lint.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/lint/yaml-lint.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/merge/merge.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/merge/merge.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/mode/loadmode.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/mode/multiplex.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/mode/multiplex_test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/mode/overlay.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/mode/simple.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/runmode/colorize.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/runmode/runmode-standalone.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/runmode/runmode.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/runmode/runmode.node.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/scroll/annotatescrollbar.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/scroll/scrollpastend.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/scroll/simplescrollbars.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/scroll/simplescrollbars.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/search/match-highlighter.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/search/matchesonscrollbar.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/search/matchesonscrollbar.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/search/search.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/search/searchcursor.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/selection/active-line.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/selection/mark-selection.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/selection/selection-pointer.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/tern/tern.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/tern/tern.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/tern/worker.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/addon/wrap/hardwrap.js (100%) create mode 100755 mdeditor/static/mdeditor/js/lib/codemirror/addons.min.js rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/bower.json (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/codemirror.min.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/codemirror.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/lib/codemirror.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/lib/codemirror.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/apl/apl.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/apl/index.html (98%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/asterisk/asterisk.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/asterisk/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/clike/clike.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/clike/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/clike/scala.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/clojure/clojure.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/clojure/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/cobol/cobol.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/cobol/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/coffeescript/coffeescript.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/coffeescript/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/commonlisp/commonlisp.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/commonlisp/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/css.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/less.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/less_test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/scss.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/scss_test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/css/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/cypher/cypher.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/cypher/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/d/d.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/d/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dart/dart.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dart/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/diff/diff.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/diff/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/django/django.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/django/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dockerfile/dockerfile.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dockerfile/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dtd/dtd.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dtd/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dylan/dylan.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/dylan/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ebnf/ebnf.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ebnf/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ecl/ecl.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ecl/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/eiffel/eiffel.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/eiffel/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/erlang/erlang.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/erlang/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/forth/forth.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/forth/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/fortran/fortran.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/fortran/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gas/gas.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gas/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gfm/gfm.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gfm/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gfm/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gherkin/gherkin.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/gherkin/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/go/go.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/go/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/groovy/groovy.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/groovy/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haml/haml.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haml/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haml/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haskell/haskell.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haskell/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haxe/haxe.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/haxe/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/htmlembedded/htmlembedded.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/htmlembedded/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/htmlmixed/htmlmixed.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/htmlmixed/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/http/http.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/http/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/idl/idl.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/idl/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/jade/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/jade/jade.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/javascript/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/javascript/javascript.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/javascript/json-ld.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/javascript/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/javascript/typescript.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/jinja2/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/jinja2/jinja2.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/julia/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/julia/julia.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/kotlin/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/kotlin/kotlin.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/livescript/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/livescript/livescript.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/lua/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/lua/lua.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/markdown/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/markdown/markdown.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/markdown/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/meta.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/mirc/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/mirc/mirc.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/mllike/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/mllike/mllike.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/modelica/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/modelica/modelica.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/nginx/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/nginx/nginx.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ntriples/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ntriples/ntriples.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/octave/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/octave/octave.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pascal/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pascal/pascal.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pegjs/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pegjs/pegjs.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/perl/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/perl/perl.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/php/index.html (96%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/php/php.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/php/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pig/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/pig/pig.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/properties/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/properties/properties.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/puppet/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/puppet/puppet.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/python/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/python/python.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/q/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/q/q.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/r/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/r/r.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rpm/changes/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rpm/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rpm/rpm.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rst/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rst/rst.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ruby/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ruby/ruby.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/ruby/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rust/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/rust/rust.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sass/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sass/sass.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/scheme/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/scheme/scheme.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/shell/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/shell/shell.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/shell/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sieve/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sieve/sieve.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/slim/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/slim/slim.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/slim/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smalltalk/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smalltalk/smalltalk.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smarty/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smarty/smarty.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smartymixed/index.html (89%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/smartymixed/smartymixed.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/solr/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/solr/solr.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/soy/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/soy/soy.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sparql/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sparql/sparql.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/spreadsheet/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/spreadsheet/spreadsheet.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sql/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/sql/sql.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/stex/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/stex/stex.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/stex/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/stylus/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/stylus/stylus.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tcl/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tcl/tcl.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/textile/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/textile/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/textile/textile.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiddlywiki/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiddlywiki/tiddlywiki.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiddlywiki/tiddlywiki.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiki/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiki/tiki.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tiki/tiki.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/toml/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/toml/toml.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tornado/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/tornado/tornado.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/turtle/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/turtle/turtle.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/vb/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/vb/vb.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/vbscript/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/vbscript/vbscript.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/velocity/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/velocity/velocity.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/verilog/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/verilog/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/verilog/verilog.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xml/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xml/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xml/xml.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xquery/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xquery/test.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/xquery/xquery.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/yaml/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/yaml/yaml.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/z80/index.html (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/mode/z80/z80.js (100%) create mode 100755 mdeditor/static/mdeditor/js/lib/codemirror/modes.min.js rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/package.json (95%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/3024-day.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/3024-night.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/ambiance-mobile.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/ambiance.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/base16-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/base16-light.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/blackboard.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/cobalt.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/colorforth.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/eclipse.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/elegant.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/erlang-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/lesser-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/mbo.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/mdn-like.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/midnight.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/monokai.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/neat.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/neo.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/night.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/paraiso-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/paraiso-light.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/pastel-on-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/rubyblue.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/solarized.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/the-matrix.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/tomorrow-night-bright.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/tomorrow-night-eighties.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/twilight.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/vibrant-ink.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/xq-dark.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/xq-light.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/codemirror/theme/zenburn.css (100%) rename mdeditor/static/{ => mdeditor}/js/lib/flowchart.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/jquery.flowchart.min.js (99%) rename mdeditor/static/{ => mdeditor}/js/lib/marked.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/prettify.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/raphael.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/sequence-diagram.min.js (100%) rename mdeditor/static/{ => mdeditor}/js/lib/underscore.min.js (99%) rename mdeditor/static/{ => mdeditor}/js/plugins/code-block-dialog/code-block-dialog.js (99%) rename mdeditor/static/{ => mdeditor}/js/plugins/emoji-dialog/emoji-dialog.js (99%) rename mdeditor/static/{ => mdeditor}/js/plugins/emoji-dialog/emoji.json (100%) rename mdeditor/static/{ => mdeditor}/js/plugins/goto-line-dialog/goto-line-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/help-dialog/help-dialog.js (97%) rename mdeditor/static/{ => mdeditor}/js/plugins/help-dialog/help.md (100%) rename mdeditor/static/{ => mdeditor}/js/plugins/html-entities-dialog/html-entities-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/html-entities-dialog/html-entities.json (100%) rename mdeditor/static/{ => mdeditor}/js/plugins/image-dialog/image-dialog.js (99%) rename mdeditor/static/{ => mdeditor}/js/plugins/link-dialog/link-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/plugin-template.js (100%) rename mdeditor/static/{ => mdeditor}/js/plugins/preformatted-text-dialog/preformatted-text-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/reference-link-dialog/reference-link-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/table-dialog/table-dialog.js (98%) rename mdeditor/static/{ => mdeditor}/js/plugins/test-plugin/test-plugin.js (95%) diff --git a/mdeditor/static/js/lib/codemirror/addons.min.js b/mdeditor/static/js/lib/codemirror/addons.min.js deleted file mode 100755 index 5081104..0000000 --- a/mdeditor/static/js/lib/codemirror/addons.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! Editor.md v1.5.0 | addons.min.js | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */ -!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){e.defineOption("showTrailingSpace",!1,function(t,i,o){o==e.Init&&(o=!1),o&&!i?t.removeOverlay("trailingspace"):!o&&i&&t.addOverlay({token:function(e){for(var t=e.string.length,i=t;i&&/\s/.test(e.string.charAt(i-1));--i);return i>e.pos?(e.pos=i,null):(e.pos=t,"trailingspace")},name:"trailingspace"})})}),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){function t(e,t,i){var o,r=e.getWrapperElement();return o=r.appendChild(document.createElement("div")),i?o.className="CodeMirror-dialog CodeMirror-dialog-bottom":o.className="CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?o.innerHTML=t:o.appendChild(t),o}function i(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(o,r,n){function a(e){if("string"==typeof e)h.value=e;else{if(c)return;c=!0,l.parentNode.removeChild(l),d.focus(),n.onClose&&n.onClose(l)}}n||(n={}),i(this,null);var s,l=t(this,o,n.bottom),c=!1,d=this,h=l.getElementsByTagName("input")[0];return h?(n.value&&(h.value=n.value,h.select()),n.onInput&&e.on(h,"input",function(e){n.onInput(e,h.value,a)}),n.onKeyUp&&e.on(h,"keyup",function(e){n.onKeyUp(e,h.value,a)}),e.on(h,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,h.value,a)||((27==t.keyCode||n.closeOnEnter!==!1&&13==t.keyCode)&&(h.blur(),e.e_stop(t),a()),13==t.keyCode&&r(h.value,t))}),n.closeOnBlur!==!1&&e.on(h,"blur",a),h.focus()):(s=l.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){a(),d.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",a),s.focus()),a}),e.defineExtension("openConfirm",function(o,r,n){function a(){c||(c=!0,s.parentNode.removeChild(s),d.focus())}i(this,null);var s=t(this,o,n&&n.bottom),l=s.getElementsByTagName("button"),c=!1,d=this,h=1;l[0].focus();for(var u=0;u=h&&a()},200)}),e.on(f,"focus",function(){++h})}}),e.defineExtension("openNotification",function(o,r){function n(){l||(l=!0,clearTimeout(a),s.parentNode.removeChild(s))}i(this,n);var a,s=t(this,o,r&&r.bottom),l=!1,c=r&&"undefined"!=typeof r.duration?r.duration:5e3;return e.on(s,"click",function(t){e.e_preventDefault(t),n()}),c&&(a=setTimeout(n,c)),n})}),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";function t(e,t,r,n){if(this.atOccurrence=!1,this.doc=e,null==n&&"string"==typeof t&&(n=!1),r=r?e.clipPos(r):o(0,0),this.pos={from:r,to:r},"string"!=typeof t)t.global||(t=new RegExp(t.source,t.ignoreCase?"ig":"g")),this.matches=function(i,r){if(i){t.lastIndex=0;for(var n,a,s=e.getLine(r.line).slice(0,r.ch),l=0;;){t.lastIndex=l;var c=t.exec(s);if(!c)break;if(n=c,a=n.index,l=n.index+(n[0].length||1),l==s.length)break}var d=n&&n[0].length||0;d||(0==a&&0==s.length?n=void 0:a!=e.getLine(r.line).length&&d++)}else{t.lastIndex=r.ch;var s=e.getLine(r.line),n=t.exec(s),d=n&&n[0].length||0,a=n&&n.index;a+d==s.length||d||(d=1)}return n&&d?{from:o(r.line,a),to:o(r.line,a+d),match:n}:void 0};else{var a=t;n&&(t=t.toLowerCase());var s=n?function(e){return e.toLowerCase()}:function(e){return e},l=t.split("\n");if(1==l.length)t.length?this.matches=function(r,n){if(r){var l=e.getLine(n.line).slice(0,n.ch),c=s(l),d=c.lastIndexOf(t);if(d>-1)return d=i(l,c,d),{from:o(n.line,d),to:o(n.line,d+a.length)}}else{var l=e.getLine(n.line).slice(n.ch),c=s(l),d=c.indexOf(t);if(d>-1)return d=i(l,c,d)+n.ch,{from:o(n.line,d),to:o(n.line,d+a.length)}}}:this.matches=function(){};else{var c=a.split("\n");this.matches=function(t,i){var r=l.length-1;if(t){if(i.line-(l.length-1)=1;--d,--a)if(l[d]!=s(e.getLine(a)))return;var h=e.getLine(a),u=h.length-c[0].length;if(s(h.slice(u))!=l[0])return;return{from:o(a,u),to:n}}if(!(i.line+(l.length-1)>e.lastLine())){var h=e.getLine(i.line),u=h.length-c[0].length;if(s(h.slice(u))==l[0]){for(var f=o(i.line,u),a=i.line+1,d=1;r>d;++d,++a)if(l[d]!=s(e.getLine(a)))return;if(s(e.getLine(a).slice(0,c[r].length))==l[r])return{from:f,to:o(a,c[r].length)}}}}}}}function i(e,t,i){if(e.length==t.length)return i;for(var o=Math.min(i,e.length);;){var r=e.slice(0,o).toLowerCase().length;if(i>r)++o;else{if(!(r>i))return o;--o}}}var o=e.Pos;t.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=o(e,0);return i.pos={from:t,to:t},i.atOccurrence=!1,!1}for(var i=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return t(0);r=o(r.line-1,this.doc.getLine(r.line-1).length)}else{var n=this.doc.lineCount();if(r.line==n-1)return t(n);r=o(r.line+1,0)}}},from:function(){return this.atOccurrence?this.pos.from:void 0},to:function(){return this.atOccurrence?this.pos.to:void 0},replace:function(t){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to),this.pos.to=o(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,i,o){return new t(this.doc,e,i,o)}),e.defineDocExtension("getSearchCursor",function(e,i,o){return new t(this,e,i,o)}),e.defineExtension("selectMatches",function(t,i){for(var o,r=[],n=this.getSearchCursor(t,this.getCursor("from"),i);(o=n.findNext())&&!(e.cmpPos(n.to(),this.getCursor("to"))>0);)r.push({anchor:n.from(),head:n.to()});r.length&&this.setSelections(r,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var i=e.exec(t.string);return i&&i.index==t.pos?(t.pos+=i[0].length,"searching"):void(i?t.pos=i.index:t.skipToEnd())}}}function i(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new i)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function n(e,t,i){return e.getSearchCursor(t,i,r(t))}function a(e,t,i,o,r){e.openDialog?e.openDialog(t,r,{value:o}):r(prompt(i,o))}function s(e,t,i,o){e.openConfirm?e.openConfirm(t,o):confirm(i)&&o[0]()}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(i){}return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,i){var n=o(e);return n.query?d(e,i):void a(e,f,"Search for:",e.getSelection(),function(o){e.operation(function(){o&&!n.query&&(n.query=l(o),e.removeOverlay(n.overlay,r(n.query)),n.overlay=t(n.query,r(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,r(n.query))),n.posFrom=n.posTo=e.getCursor(),d(e,i))})})}function d(t,i){t.operation(function(){var r=o(t),a=n(t,r.query,i?r.posFrom:r.posTo);(a.find(i)||(a=n(t,r.query,i?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),a.find(i)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()}),r.posFrom=a.from(),r.posTo=a.to())})}function h(e){e.operation(function(){var t=o(e);t.query&&(t.query=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function u(e,t){e.getOption("readOnly")||a(e,g,"Replace:",e.getSelection(),function(i){i&&(i=l(i),a(e,p,"Replace with:","",function(o){if(t)e.operation(function(){for(var t=n(e,i);t.findNext();)if("string"!=typeof i){var r=e.getRange(t.from(),t.to()).match(i);t.replace(o.replace(/\$(\d)/g,function(e,t){return r[t]}))}else t.replace(o)});else{h(e);var r=n(e,i,e.getCursor()),a=function(){var t,o=r.from();!(t=r.findNext())&&(r=n(e,i),!(t=r.findNext())||o&&r.from().line==o.line&&r.from().ch==o.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),s(e,m,"Replace?",[function(){l(t)},a]))},l=function(e){r.replace("string"==typeof i?o:o.replace(/\$(\d)/g,function(t,i){return e[i]})),a()};a()}}))})}var f='Search: (Use /re/ syntax for regexp search)',g='Replace: (Use /re/ syntax for regexp search)',p='With: ',m="Replace? ";e.commands.find=function(e){h(e),c(e)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=h,e.commands.replace=u,e.commands.replaceAll=function(e){u(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(e){"use strict";function t(e,t){function i(e){clearTimeout(o.doRedraw),o.doRedraw=setTimeout(function(){o.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var o=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(o.doUpdate),o.doUpdate=setTimeout(function(){o.computeScale()&&i(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),t.listenForChanges!==!1&&e.on("change",this.changeHandler=function(){i(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.heightAtLine(e.lastLine()+1,"local");return t!=this.hScale?(this.hScale=t,!0):void 0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){e!==!1&&this.computeScale();var t=this.cm,i=this.hScale,o=document.createDocumentFragment(),r=this.annotations;if(t.display.barWidth)for(var n,a=0;ac+.9));)s=r[++a],c=t.charCoords(s.to,"local").bottom*i;if(c!=l){var d=Math.max(c-l,3),h=o.appendChild(document.createElement("div"));h.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(l+this.buttonHeight)+"px; height: "+d+"px",h.className=this.options.className}}this.div.textContent="",this.div.appendChild(o)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,i,o){this.cm=e;var r={listenForChanges:!1};for(var n in o)r[n]=o[n];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=i,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function i(e,t,i){return t>=e?e:Math.max(t,e+i)}e.defineExtension("showMatchesOnScrollbar",function(e,i,o){return"string"==typeof o&&(o={className:o}),o||(o={}),new t(this,e,i,o)});var o=1e3;t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to)break;i.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold);r.findNext();){var i={from:r.from(),to:r.to()};if(i.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>o)break}this.gap=null}},t.prototype.onChange=function(t){var o=t.from.line,r=e.changeEnd(t).line,n=r-t.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,o,n),t.from.line),this.gap.to=Math.max(i(this.gap.to,o,n),t.from.line)):this.gap={from:t.from.line,to:r+1},n)for(var a=0;ac.ch&&(v=v.slice(0,v.length-d.end+c.ch));var w=v.toLowerCase();if(!v||"string"==d.type&&(d.end!=c.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&"closeTag"==u.type||d.string.indexOf("/")==d.string.length-1||p&&r(p,w)>-1||n(t,v,c,u,!0))return e.Pass;var b=m&&r(m,w)>-1;o[l]={indent:b,text:">"+(b?"\n\n":"")+"",newPos:b?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}for(var l=i.length-1;l>=0;l--){var y=o[l];t.replaceRange(y.text,i[l].head,i[l].anchor,"+insert");var k=t.listSelections().slice(0);k[l]={head:y.newPos,anchor:y.newPos},t.setSelections(k),y.indent&&(t.indentLine(y.newPos.line,null,!0),t.indentLine(y.newPos.line+1,null,!0))}}function i(t,i){for(var o=t.listSelections(),r=[],a=i?"/":"";else{if("htmlmixed"!=t.getMode().name||"css"!=d.mode.name)return e.Pass;r[s]=a+"style>"}else{if(!h.context||!h.context.tagName||n(t,h.context.tagName,l,h))return e.Pass;r[s]=a+h.context.tagName+">"}}t.replaceSelections(r),o=t.listSelections();for(var s=0;si;++i)if(e[i]==t)return i;return-1}function n(t,i,o,r,n){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,o.line+500),s=e.scanForClosingTag(t,o,null,a);if(!s||s.tag!=i)return!1;for(var l=r.context,c=n?1:0;l&&l.tagName==i;l=l.prev)++c;o=s.to;for(var d=1;c>d;d++){var h=e.scanForClosingTag(t,o,null,a);if(!h||h.tag!=i)return!1;o=h.to}return!0}e.defineOption("autoCloseTags",!1,function(i,r,n){if(n!=e.Init&&n&&i.removeKeyMap("autoCloseTags"),r){var a={name:"autoCloseTags"};("object"!=typeof r||r.whenClosing)&&(a["'/'"]=function(e){return o(e)}),("object"!=typeof r||r.whenOpening)&&(a["'>'"]=function(e){return t(e)}),i.addKeyMap(a)}});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["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"];e.commands.closeTag=function(e){return i(e)}}),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";function t(t,r,n,a){function s(e){var i=l(t,r);if(!i||i.to.line-i.from.linet.firstLine();)r=e.Pos(r.line-1,0),d=s(!1);if(d&&!d.cleared&&"unfold"!==a){var h=i(t,n);e.on(h,"mousedown",function(t){u.clear(),e.e_preventDefault(t)});var u=t.markText(d.from,d.to,{replacedWith:h,clearOnEnter:!0,__isFold:!0});u.on("clear",function(i,o){e.signal(t,"unfold",t,i,o)}),e.signal(t,"fold",t,d.from,d.to)}}function i(e,t){var i=o(e,t,"widget");if("string"==typeof i){var r=document.createTextNode(i);i=document.createElement("span"),i.appendChild(r),i.className="CodeMirror-foldmarker"}return i}function o(e,t,i){if(t&&void 0!==t[i])return t[i];var o=e.options.foldOptions;return o&&void 0!==o[i]?o[i]:r[i]}e.newFoldFunction=function(e,i){return function(o,r){t(o,r,{rangeFinder:e,widget:i})}},e.defineExtension("foldCode",function(e,i,o){t(this,e,i,o)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),i=0;i=i;i++)t.foldCode(e.Pos(i,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var i=t.firstLine(),o=t.lastLine();o>=i;i++)t.foldCode(e.Pos(i,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,i){for(var o=0;o=s&&(i=r(n.indicatorOpen))}e.setGutterMarker(t,n.gutter,i),++a})}function a(e){var t=e.getViewport(),i=e.state.foldGutter;i&&(e.operation(function(){n(e,t.from,t.to)}),i.from=t.from,i.to=t.to)}function s(e,t,i){var o=e.state.foldGutter;if(o){var r=o.options;i==r.gutter&&e.foldCode(h(t,0),r.rangeFinder)}}function l(e){var t=e.state.foldGutter;if(t){var i=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},i.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var i=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var i=e.getViewport();t.from==t.to||i.from-t.to>20||t.from-i.to>20?a(e):e.operation(function(){i.fromt.to&&(n(e,t.to,i.to),t.to=i.to)})},i.updateViewportTimeSpan||400)}}function d(e,t){var i=e.state.foldGutter;if(i){var o=t.line;o>=i.from&&o=l;++l){var d=t.getLine(l),h=n(d);if(h>a)s=l;else if(/\S/.test(d))break}return s?{from:e.Pos(i.line,r.length),to:e.Pos(s,t.getLine(s).length)}:void 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.registerHelper("fold","brace",function(t,i){function o(o){for(var r=i.ch,l=0;;){var c=0>=r?-1:s.lastIndexOf(o,r-1);if(-1!=c){if(1==l&&c=g;++g)for(var p=t.getLine(g),m=g==a?r:0;;){var v=p.indexOf(l,m),w=p.indexOf(c,m);if(0>v&&(v=p.length),0>w&&(w=p.length),m=Math.min(v,w),m==p.length)break;if(t.getTokenTypeAt(e.Pos(g,m+1))==n)if(m==v)++u;else if(!--u){d=g,h=m;break e}++m}if(null!=d&&(a!=d||h!=r))return{from:e.Pos(a,r),to:e.Pos(d,h)}}}),e.registerHelper("fold","import",function(t,i){function o(i){if(it.lastLine())return null;var o=t.getTokenAt(e.Pos(i,1));if(/\S/.test(o.string)||(o=t.getTokenAt(e.Pos(i,o.end+1))),"keyword"!=o.type||"import"!=o.string)return null;for(var r=i,n=Math.min(t.lastLine(),i+10);n>=r;++r){var a=t.getLine(r),s=a.indexOf(";");if(-1!=s)return{startCh:o.end,end:e.Pos(r,s)}}}var r,i=i.line,n=o(i);if(!n||o(i-1)||(r=o(i-2))&&r.end.line==i-1)return null;for(var a=n.end;;){var s=o(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(i,n.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,i){function o(i){if(it.lastLine())return null;var o=t.getTokenAt(e.Pos(i,1));return/\S/.test(o.string)||(o=t.getTokenAt(e.Pos(i,o.end+1))),"meta"==o.type&&"#include"==o.string.slice(0,8)?o.start+8:void 0}var i=i.line,r=o(i);if(null==r||null!=o(i-1))return null;for(var n=i;;){var a=o(n+1);if(null==a)break;++n}return{from:e.Pos(i,r+1),to:t.clipPos(e.Pos(n))}})}),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";function t(e,t){return e.line-t.line||e.ch-t.ch}function i(e,t,i,o){this.line=t,this.ch=i,this.cm=e,this.text=e.getLine(t),this.min=o?o.from:e.firstLine(),this.max=o?o.to-1:e.lastLine()}function o(e,t){var i=e.cm.getTokenTypeAt(u(e.line,t));return i&&/\btag\b/.test(i)}function r(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function n(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}{if(o(e,t+1)){var i=e.text.lastIndexOf("/",t),n=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(n(e))continue;return}if(o(e,t+1)){p.lastIndex=t,e.ch=t;var i=p.exec(e.text);if(i&&i.index==t)return i}else e.ch=t}}function l(e){for(;;){p.lastIndex=e.ch;var t=p.exec(e.text);if(!t){if(r(e))continue;return}{if(o(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(n(e))continue;return}{if(o(e,t+1)){var i=e.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}}function d(e,t){for(var i=[];;){var o,r=l(e),n=e.line,s=e.ch-(r?r[0].length:0);if(!r||!(o=a(e)))return;if("selfClose"!=o)if(r[1]){for(var c=i.length-1;c>=0;--c)if(i[c]==r[2]){i.length=c;break}if(0>c&&(!t||t==r[2]))return{tag:r[2],from:u(n,s),to:u(e.line,e.ch)}}else i.push(r[2])}}function h(e,t){for(var i=[];;){var o=c(e);if(!o)return;if("selfClose"!=o){var r=e.line,n=e.ch,a=s(e);if(!a)return;if(a[1])i.push(a[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==a[2]){i.length=l;break}if(0>l&&(!t||t==a[2]))return{tag:a[2],from:u(e.line,e.ch),to:u(r,n)}}}else s(e)}}var u=e.Pos,f="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",g=f+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+f+"]["+g+"]*)","g");e.registerHelper("fold","xml",function(e,t){for(var o=new i(e,t.line,0);;){var r,n=l(o);if(!n||o.line!=t.line||!(r=a(o)))return;if(!n[1]&&"selfClose"!=r){var t=u(o.line,o.ch),s=d(o,n[2]);return s&&{from:t,to:s.from}}}}),e.findMatchingTag=function(e,o,r){var n=new i(e,o.line,o.ch,r);if(-1!=n.text.indexOf(">")||-1!=n.text.indexOf("<")){var l=a(n),c=l&&u(n.line,n.ch),f=l&&s(n);if(l&&f&&!(t(n,o)>0)){var g={from:u(n.line,n.ch),to:c,tag:f[2]};return"selfClose"==l?{open:g,close:null,at:"open"}:f[1]?{open:h(n,f[2]),close:g,at:"close"}:(n=new i(e,c.line,c.ch,r),{open:g,close:d(n,f[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,o){for(var r=new i(e,t.line,t.ch,o);;){var n=h(r);if(!n)break;var a=new i(e,t.line,t.ch,o),s=d(a,n.tag);if(s)return{open:n,close:s}}},e.scanForClosingTag=function(e,t,o,r){var n=new i(e,t.line,t.ch,r?{from:0,to:r}:null);return d(n,o)}}),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.registerHelper("fold","markdown",function(t,i){function o(i){var o=t.getTokenTypeAt(e.Pos(i,0));return o&&/\bheader\b/.test(o)}function r(e,t,i){var r=t&&t.match(/^#+/);return r&&o(e)?r[0].length:(r=i&&i.match(/^[=\-]+\s*$/),r&&o(e+1)?"="==i[0]?1:2:n)}var n=100,a=t.getLine(i.line),s=t.getLine(i.line+1),l=r(i.line,a,s);if(l===n)return void 0;for(var c=t.lastLine(),d=i.line,h=t.getLine(d+2);c>d&&!(r(d+1,s,h)<=l);)++d,s=h,h=t.getLine(d+2);return{from:e.Pos(i.line,a.length),to:e.Pos(d,t.getLine(d).length)}})}),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.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,i){var o=t.getModeAt(i),r=o.blockCommentStart,n=o.blockCommentEnd;if(r&&n){for(var a,s=i.line,l=t.getLine(s),c=i.ch,d=0;;){var h=0>=c?-1:l.lastIndexOf(r,c-1);if(-1!=h){if(1==d&&h=m;++m)for(var v=t.getLine(m),w=m==s?a:0;;){var b=v.indexOf(r,w),y=v.indexOf(n,w);if(0>b&&(b=v.length),0>y&&(y=v.length),w=Math.min(b,y),w==v.length)break;if(w==b)++g;else if(!--g){u=m,f=w;break e}++w}if(null!=u&&(s!=u||f!=a))return{from:e.Pos(s,a),to:e.Pos(u,f)}}})}),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.overlayMode=function(t,i,o){return{startState:function(){return{base:e.startState(t),overlay:e.startState(i),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:e.copyState(t,o.base),overlay:e.copyState(i,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(e,r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)=i.ch+1)return/\bstring2?\b/.test(s);a.start=a.pos}}function o(o,r){for(var n={name:"autoCloseBrackets",Backspace:function(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),n=0;n=0;n--){var s=r[n].head;i.replaceRange("",c(s.line,s.ch-1),c(s.line,s.ch+1))}}},a="",s=0;s1&&r.indexOf(t)>=0&&n.getRange(c(p.line,p.ch-2),p)==t+t&&(p.ch<=2||n.getRange(c(p.line,p.ch-3),c(p.line,p.ch-2))!=t))f="addFour";else if('"'==t||"'"==t){if(e.isWordChar(d)||!i(n,p,t))return e.Pass;f="both"}else{if(!(n.getLine(p.line).length==p.ch||a.indexOf(d)>=0||l.test(d)))return e.Pass;f="both"}else f="surround";if(s){if(s!=f)return e.Pass}else s=f}n.operation(function(){if("skip"==s)n.execCommand("goCharRight");else if("skipThree"==s)for(var e=0;3>e;e++)n.execCommand("goCharRight");else if("surround"==s){for(var i=n.getSelections(),e=0;es&&e.addOverlay(t.overlay=a(n.slice(s,l),i,t.style)))}var c=e.getCursor("from"),d=e.getCursor("to");if(c.line==d.line&&(!t.wordsOnly||r(e,c,d))){var h=e.getRange(c,d).replace(/^\s+|\s+$/g,"");h.length>=t.minChars&&e.addOverlay(t.overlay=a(h,!1,t.style))}})}function r(e,t,i){var o=e.getRange(t,i);if(null!==o.match(/^\w+$/)){if(t.ch>0){var r={line:t.line,ch:t.ch-1},n=e.getRange(r,t);if(null===n.match(/\W/))return!1}if(i.ch-1&&t.substring(i+1,t.length);return o?e.findModeByExtension(o):void 0},e.findModeByName=function(t){t=t.toLowerCase();for(var r=0;r")?(e.match("-->"),t.tokenize=null):e.skipToEnd(),["comment","comment"]}e.defineMode("css",function(t,r){function n(e,t){return m=t,e}function i(e,t){var r=e.next();if(g[r]){var i=g[r](e,t);if(i!==!1)return i}return"@"==r?(e.eatWhile(/[\w\\\-]/),n("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?n(null,"compare"):'"'==r||"'"==r?(t.tokenize=o(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),n("atom","hash")):"!"==r?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),n("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):"u"==r&&e.match(/rl(-prefix)?\(/)||"d"==r&&e.match("omain(")||"r"==r&&e.match("egexp(")?(e.backUp(1),t.tokenize=a,n("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function o(e){return function(t,r){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==i}return(i==e||!o&&")"!=e)&&(r.tokenize=null),n("string","string")}}function a(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),n(null,"(")}function s(e,t,r){this.type=e,this.indent=t,this.prev=r}function l(e,t,r){return e.context=new s(r,t.indentation()+p,e.context),r}function c(e){return e.context=e.context.prev,e.context.type}function u(e,t,r){return M[r.context.type](e,t,r)}function d(e,t,r,n){for(var i=n||1;i>0;i--)r.context=r.context.prev;return u(e,t,r)}function f(e){var t=e.current().toLowerCase();h=S.hasOwnProperty(t)?"atom":C.hasOwnProperty(t)?"keyword":"variable"}r.propertyKeywords||(r=e.resolveMode("text/css"));var m,h,p=t.indentUnit,g=r.tokenHooks,v=r.documentTypes||{},b=r.mediaTypes||{},y=r.mediaFeatures||{},x=r.propertyKeywords||{},k=r.nonStandardPropertyKeywords||{},w=r.fontProperties||{},_=r.counterDescriptors||{},C=r.colorKeywords||{},S=r.valueKeywords||{},T=r.allowNested,M={};return M.top=function(e,t,r){if("{"==e)return l(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(/@(media|supports|(-moz-)?document)/.test(e))return l(r,t,"atBlock");if(/@(font-face|counter-style)/.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(r,t,"at");if("hash"==e)h="builtin";else if("word"==e)h="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(r,t,"interpolation");if(":"==e)return"pseudo";if(T&&"("==e)return l(r,t,"parens")}return r.context.type},M.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return x.hasOwnProperty(n)?(h="property","maybeprop"):k.hasOwnProperty(n)?(h="string-2","maybeprop"):T?(h=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(h+=" error","maybeprop")}return"meta"==e?"block":T||"hash"!=e&&"qualifier"!=e?M.top(e,t,r):(h="error","block")},M.maybeprop=function(e,t,r){return":"==e?l(r,t,"prop"):u(e,t,r)},M.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&T)return l(r,t,"propBlock");if("}"==e||"{"==e)return d(e,t,r);if("("==e)return l(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t.current())){if("word"==e)f(t);else if("interpolation"==e)return l(r,t,"interpolation")}else h+=" error";return"prop"},M.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(h="property","maybeprop"):r.context.type},M.parens=function(e,t,r){return"{"==e||"}"==e?d(e,t,r):")"==e?c(r):"("==e?l(r,t,"parens"):("word"==e&&f(t),"parens")},M.pseudo=function(e,t,r){return"word"==e?(h="variable-3",r.context.type):u(e,t,r)},M.atBlock=function(e,t,r){if("("==e)return l(r,t,"atBlock_parens");if("}"==e)return d(e,t,r);if("{"==e)return c(r)&&l(r,t,T?"block":"top");if("word"==e){var n=t.current().toLowerCase();h="only"==n||"not"==n||"and"==n||"or"==n?"keyword":v.hasOwnProperty(n)?"tag":b.hasOwnProperty(n)?"attribute":y.hasOwnProperty(n)?"property":x.hasOwnProperty(n)?"property":k.hasOwnProperty(n)?"string-2":S.hasOwnProperty(n)?"atom":"error"}return r.context.type},M.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?d(e,t,r,2):M.atBlock(e,t,r)},M.restricted_atBlock_before=function(e,t,r){return"{"==e?l(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(h="variable","restricted_atBlock_before"):u(e,t,r)},M.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(h="@font-face"==r.stateArg&&!w.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!_.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},M.keyframes=function(e,t,r){return"word"==e?(h="variable","keyframes"):"{"==e?l(r,t,"top"):u(e,t,r)},M.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?d(e,t,r):("word"==e?h="tag":"hash"==e&&(h="builtin"),"at")},M.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?d(e,t,r):("variable"!=e&&(h="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new s("top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||i)(e,t);return r&&"object"==typeof r&&(m=r[1],r=r[0]),h=r,t.state=M[t.state](m,e,t),h},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=r.indent-p,r=r.prev),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var i=["domain","regexp","url","url-prefix"],o=t(i),a=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],s=t(a),l=["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"],c=t(l),u=["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-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","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-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","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","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","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","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","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","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","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"],d=t(u),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"],m=t(f),h=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],p=t(h),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],v=t(g),b=["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"],y=t(b),x=["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","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","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","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","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","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","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","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","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","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-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","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","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","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","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","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","x-large","x-small","xor","xx-large","xx-small"],k=t(x),w=i.concat(a).concat(l).concat(u).concat(f).concat(b).concat(x);e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:o,mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:m,fontProperties:p,counterDescriptors:v,colorKeywords:y,valueKeywords:k,tokenHooks:{"<":function(e,t){return e.match("!--")?(t.tokenize=n,n(e,t)):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=r,r(e,t)):!1}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:m,colorKeywords:y,valueKeywords:k,fontProperties:p,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return e.match(/\s*\{/)?[null,"{"]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return e.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:m,colorKeywords:y,valueKeywords:k,fontProperties:p,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)?!1:(e.eatWhile(/[\w\\\-]/), -e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})}),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("sass",function(e){function t(e){return new RegExp("^"+e.join("|"))}function r(e,t){var r=e.peek();return")"===r?(e.next(),t.tokenizer=l,"operator"):"("===r?(e.next(),e.eatSpace(),"operator"):"'"===r||'"'===r?(t.tokenizer=i(e.next()),"string"):(t.tokenizer=i(")",!1),"string")}function n(e,t){return function(r,n){return r.sol()&&r.indentation()<=e?(n.tokenizer=l,l(r,n)):(t&&r.skipTo("*/")?(r.next(),r.next(),n.tokenizer=l):r.skipToEnd(),"comment")}}function i(e,t){function r(n,i){var a=n.next(),s=n.peek(),c=n.string.charAt(n.pos-2),u="\\"!==a&&s===e||a===e&&"\\"!==c;return u?(a!==e&&t&&n.next(),i.tokenizer=l,"string"):"#"===a&&"{"===s?(i.tokenizer=o(r),n.next(),"operator"):"string"}return null==t&&(t=!0),r}function o(e){return function(t,r){return"}"===t.peek()?(t.next(),r.tokenizer=e,"operator"):l(t,r)}}function a(t){if(0==t.indentCount){t.indentCount++;var r=t.scopes[0].offset,n=r+e.indentUnit;t.scopes.unshift({offset:n})}}function s(e){1!=e.scopes.length&&e.scopes.shift()}function l(e,t){var c=e.peek();if(e.match("/*"))return t.tokenizer=n(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=n(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=o(l),"operator";if('"'===c||"'"===c)return e.next(),t.tokenizer=i(c),"string";if(t.cursorHalf){if("#"===c&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return e.peek()||(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return e.peek()||(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return e.peek()||(t.cursorHalf=0),"unit";if(e.match(d))return e.peek()||(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=r,e.peek()||(t.cursorHalf=0),"atom";if("$"===c)return e.next(),e.eatWhile(/[\w-]/),e.peek()||(t.cursorHalf=0),"variable-3";if("!"===c)return e.next(),e.peek()||(t.cursorHalf=0),e.match(/^[\w]+/)?"keyword":"operator";if(e.match(m))return e.peek()||(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return e.peek()||(t.cursorHalf=0),"attribute";if(!e.peek())return t.cursorHalf=0,null}else{if("."===c){if(e.next(),e.match(/^[\w-]+/))return a(t),"atom";if("#"===e.peek())return a(t),"atom"}if("#"===c){if(e.next(),e.match(/^[\w-]+/))return a(t),"atom";if("#"===e.peek())return a(t),"atom"}if("$"===c)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(d))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=r,"atom";if("="===c&&e.match(/^=[\w-]+/))return a(t),"meta";if("+"===c&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===c&&e.match(/@extend/)&&(e.match(/\s*[\w]/)||s(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return a(t),"meta";if("@"===c)return e.next(),e.eatWhile(/[\w-]/),"meta";if(e.eatWhile(/[\w-]/))return e.match(/ *: *[\w-\+\$#!\("']/,!1)?"propery":e.match(/ *:/,!1)?(a(t),t.cursorHalf=1,"atom"):e.match(/ *,/,!1)?"atom":(a(t),"atom");if(":"===c)return e.match(h)?"keyword":(e.next(),t.cursorHalf=1,"operator")}return e.match(m)?"operator":(e.next(),null)}function c(t,r){t.sol()&&(r.indentCount=0);var n=r.tokenizer(t,r),i=t.current();if(("@return"===i||"}"===i)&&s(r),null!==n){for(var o=t.pos-i.length,a=o+e.indentUnit*r.indentCount,l=[],c=0;c","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],m=t(f),h=/^::?[a-zA-Z_][\w\-]*/;return{startState:function(){return{tokenizer:l,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var r=c(e,t);return t.lastToken={style:r,content:e.current()},r},indent:function(e){return e.scopes[0].offset}}}),e.defineMIME("text/x-sass","sass")}),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("shell",function(){function e(e,t){for(var r=t.split(" "),n=0;n1&&e.eat("$");var i=e.next(),o=/\w/;return"{"===i&&(o=/[^}]/),"("===i?(t.tokens[0]=r(")"),n(e,t)):(/\d/.test(i)||(e.eatWhile(o),e.eat("}")),t.tokens.shift(),"def")};return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)},lineComment:"#",fold:"brace"}}),e.defineMIME("text/x-sh","shell")}),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("sql",function(t,r){function n(e,t){var r=e.next();if(h[r]){var n=h[r](e,t);if(n!==!1)return n}if(1==m.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(1==m.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),1==m.decimallessFloat&&e.eat("."),"number";if("?"==r&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==r||'"'==r&&m.doubleQuote)return t.tokenize=i(r),t.tokenize(e,t);if((1==m.nCharCast&&("n"==r||"N"==r)||1==m.charsetCast&&"_"==r&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(r))return null;if(m.commentSlashSlash&&"/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(m.commentHash&&"#"==r||"-"==r&&e.eat("-")&&(!m.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==r&&e.eat("*"))return t.tokenize=o,t.tokenize(e,t);if("."!=r){if(f.test(r))return e.eatWhile(f),null;if("{"==r&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return p.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":c.hasOwnProperty(a)?"atom":u.hasOwnProperty(a)?"builtin":d.hasOwnProperty(a)?"keyword":l.hasOwnProperty(a)?"string-2":null}return 1==m.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":1==m.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0}function i(e){return function(t,r){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){r.tokenize=n;break}o=!o&&"\\"==i}return"string"}}function o(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=n;break}}return"comment"}function a(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function s(e){e.indent=e.context.indent,e.context=e.context.prev}var l=r.client||{},c=r.atoms||{"false":!0,"true":!0,"null":!0},u=r.builtin||{},d=r.keywords||{},f=r.operatorChars||/^[*+\-%<>!=&|~^]/,m=r.support||{},h=r.hooks||{},p=r.dateSQL||{date:!0,time:!0,timestamp:!0};return{startState:function(){return{tokenize:n,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var n=e.current();return"("==n?a(e,t,")"):"["==n?a(e,t,"]"):t.context&&t.context.type==n&&s(t),r},indent:function(r,n){var i=r.context;if(!i)return e.Pass;var o=n.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:m.commentSlashSlash?"//":m.commentHash?"#":null}}),function(){function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function n(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function i(e){for(var t={},r=e.split(" "),n=0;n!=]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered"),builtin:i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group groupby_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":n}}),e.defineMIME("text/x-mariadb",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":n}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("use select from using consistency where limit first reversed first and in insert into values using consistency ttl update set delete truncate begin batch apply create keyspace with columnfamily primary key index on drop alter type add any one quorum all local_quorum each_quorum"),builtin:i("ascii bigint blob boolean counter decimal double float int text timestamp uuid varchar varint"),atoms:i("false true"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:i("date time timestamp"),support:i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")})}()}),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";function t(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/;return{startState:function(e){return{tokenize:null,context:new a((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},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 null;c=null;var i=(t.tokenize||n)(e,t);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"!=c&&":"!=c&&","!=c||"statement"!=r.type)if("{"==c)s(t,e.column(),"}");else if("["==c)s(t,e.column(),"]");else if("("==c)s(t,e.column(),")");else if("}"==c){for(;"statement"==r.type;)r=l(t);for("}"==r.type&&(r=l(t));"statement"==r.type;)r=l(t)}else c==r.type?l(t):y&&(("}"==r.type||"top"==r.type)&&";"!=c||"statement"==r.type&&"newstatement"==c)&&s(t,e.column(),"statement");else l(t);return t.startOfLine=!1,i},indent:function(t,r){if(t.tokenize!=n&&null!=t.tokenize)return e.Pass;var i=t.context,o=r&&r.charAt(0);"statement"==i.type&&"}"==o&&(i=i.prev);var a=o==i.type;return"statement"==i.type?i.indented+("{"==o?0:d):!i.align||f&&")"==i.type?")"!=i.type||a?i.indented+(a?0:u):i.indented+d:i.column+(a?0:1)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var l="auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile";a(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:t(l),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":r},modeProps:{fold:["brace","include"]}}),a(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:t(l+" asm dynamic_cast namespace reinterpret_cast try bool explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),blockKeywords:t("catch class do else finally for if struct switch try while"),atoms:t("true false null"),hooks:{"#":r,u:n,U:n,L:n,R:n},modeProps:{fold:["brace","include"]}}),a("text/x-java",{name:"clike",keywords:t("abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while"),blockKeywords:t("catch class do else finally for if switch try while"),atoms:t("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"}},modeProps:{fold:["brace","import"]}}),a("text/x-csharp",{name:"clike",keywords:t("abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),blockKeywords:t("catch class do else finally for foreach if struct switch try while"),builtin:t("Boolean Byte Char DateTime DateTimeOffset Decimal Double Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),atoms:t("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=i,i(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),a("text/x-scala",{name:"clike",keywords:t("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try trye type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: 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"), -multiLineStrings:!0,blockKeywords:t("catch class do else finally for forSome if match switch try while"),atoms:t("true false null"),indentStatements:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return e.match('""')?(t.tokenize=s,t.tokenize(e,t)):!1},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"}}}),a(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:t("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),blockKeywords:t("for while do if else struct"),builtin:t("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:t("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"),hooks:{"#":r},modeProps:{fold:["brace","include"]}}),a("text/x-nesc",{name:"clike",keywords:t(l+"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"),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":r},modeProps:{fold:["brace","include"]}}),a("text/x-objectivec",{name:"clike",keywords:t(l+"inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),atoms:t("YES NO NULL NILL ON OFF"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":r},modeProps:{fold:"brace"}})}),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(e){"use strict";function t(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],n)),"variable-2";for(var i=!1;!e.eol()&&(i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(n)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}var o="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",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="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 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 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";e.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),atoms:t(a),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){if(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=n('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=n(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,r){function n(e,t){var r=t.curMode==o;if(e.sol()&&t.pending&&'"'!=t.pending&&"'"!=t.pending&&(t.pending=null),r)return r&&null==t.php.tokenize&&e.match("?>")?(t.curMode=i,t.curState=t.html,"meta"):o.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=o,t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else if(t.pending&&e.pos/.test(s)?t.pending=a[0]:t.pending={end:e.pos,style:n},e.backUp(s.length-l)),n}var i=e.getMode(t,"text/html"),o=e.getMode(t,l);return{startState:function(){var t=e.startState(i),n=e.startState(o);return{html:t,php:n,curMode:r.startOpen?o:i,curState:r.startOpen?n:t,pending:null}},copyState:function(t){var r,n=t.html,a=e.copyState(i,n),s=t.php,l=e.copyState(o,s);return r=t.curMode==i?a:l,{html:a,php:l,curMode:t.curMode,curState:r,pending:t.pending}},token:n,indent:function(e,t){return e.curMode!=o&&/^\s*<\//.test(t)||e.curMode==o&&/^\?>/.test(t)?i.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"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)}),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("xml",function(t,r){function n(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(a("atom","]]>")):null:e.match("--")?r(a("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=a("meta","?>"),"meta"):(_=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=n,_=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return _="equals",null;if("<"==r){t.tokenize=n,t.state=d,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=o(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function a(e,t){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=n;break}r.next()}return e}}function s(e){return function(t,r){for(var i;null!=(i=t.next());){if("<"==i)return r.tokenize=s(e+1),r.tokenize(t,r);if(">"==i){if(1==e){r.tokenize=n;break}return r.tokenize=s(e-1),r.tokenize(t,r)}}return"meta"}}function l(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(S.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function c(e){e.context&&(e.context=e.context.prev)}function u(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!S.contextGrabbers.hasOwnProperty(r)||!S.contextGrabbers[r].hasOwnProperty(t))return;c(e)}}function d(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?m:d}function f(e,t,r){return"word"==e?(r.tagName=t.current(),C="tag",g):(C="error",f)}function m(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&S.implicitlyClosed.hasOwnProperty(r.context.tagName)&&c(r),r.context&&r.context.tagName==n?(C="tag",h):(C="tag error",p)}return C="error",p}function h(e,t,r){return"endTag"!=e?(C="error",h):(c(r),d)}function p(e,t,r){return C="error",h(e,t,r)}function g(e,t,r){if("word"==e)return C="attribute",v;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||S.autoSelfClosers.hasOwnProperty(n)?u(r,n):(u(r,n),r.context=new l(r,n,i==r.indented)),d}return C="error",g}function v(e,t,r){return"equals"==e?b:(S.allowMissing||(C="error"),g(e,t,r))}function b(e,t,r){return"string"==e?y:"word"==e&&S.allowUnquoted?(C="string",g):(C="error",g(e,t,r))}function y(e,t,r){return"string"==e?y:g(e,t,r)}var x=t.indentUnit,k=r.multilineTagIndentFactor||1,w=r.multilineTagIndentPastTag;null==w&&(w=!0);var _,C,S=r.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},T=r.alignCDATA;return{startState:function(){return{tokenize:n,state:d,indented:0,tagName:null,tagStart:null,context:null}},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;_=null;var r=t.tokenize(e,t);return(r||_)&&"comment"!=r&&(C=null,t.state=t.state(_||r,e,t),C&&(r="error"==C?r+" error":C)),r},indent:function(t,r,o){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+x;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=n)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return w?t.tagStart+t.tagName.length+2:t.tagStart+x*k;if(T&&/$/,blockCommentStart:"",configuration:r.htmlMode?"html":"xml",helperType:r.htmlMode?"html":"xml"}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../meta")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("markdown",function(t,r){function n(r){if(e.findModeByName){var n=e.findModeByName(r);n&&(r=n.mime||n.mimes[0])}var i=e.getMode(t,r);return"null"==i.name?null:i}function i(e,t,r){return t.f=t.inline=r,r(e,t)}function o(e,t,r){return t.f=t.block=r,r(e,t)}function a(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,k||e.f!=l||(e.f=m,e.block=s),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.thisLineHasContent=!1,null}function s(e,t){var o=e.sol(),a=t.list!==!1;t.list!==!1&&t.indentationDiff>=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):t.list!==!1&&t.indentation>0?(t.list=null,t.listDepth=Math.floor(t.indentation/4)):t.list!==!1&&(t.list=!1,t.listDepth=0);var s=null;if(t.indentationDiff>=4)return t.indentation-=4,e.skipToEnd(),S;if(e.eatSpace())return null;if(s=e.match(U))return t.header=s[0].length<=6?s[0].length:6,r.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(t.prevLineHasContent&&(s=e.match(W)))return t.header="="==s[0].charAt(0)?1:2,r.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(e.eat(">"))return t.indentation++,t.quote=o?1:t.quote+1,r.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),d(t);if("["===e.peek())return i(e,t,v);if(e.match(F,!0))return q;if((!t.prevLineHasContent||a)&&(e.match(H,!1)||e.match(N,!1))){var l=null;return e.match(H,!0)?l="ul":(e.match(N,!0),l="ol"),t.indentation+=4,t.list=!0,t.listDepth++,r.taskLists&&e.match(B,!1)&&(t.taskList=!0),t.f=t.inline,r.highlightFormatting&&(t.formatting=["list","list-"+l]),d(t)}return r.fencedCodeBlocks&&e.match(/^```[ \t]*([\w+#]*)/,!0)?(t.localMode=n(RegExp.$1),t.localMode&&(t.localState=t.localMode.startState()),t.f=t.block=c,r.highlightFormatting&&(t.formatting="code-block"),t.code=!0,d(t)):i(e,t,t.inline)}function l(e,t){var r=w.token(e,t.htmlState);return(k&&null===t.htmlState.tagStart&&!t.htmlState.context||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=m,t.block=s,t.htmlState=null),r}function c(e,t){return e.sol()&&e.match("```",!1)?(t.localMode=t.localState=null,t.f=t.block=u,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),S)}function u(e,t){e.match("```"),t.block=s,t.f=m,r.highlightFormatting&&(t.formatting="code-block"),t.code=!0;var n=d(t);return t.code=!1,n}function d(e){var t=[];if(e.formatting){t.push(z),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n=e.quote?z+"-"+e.formatting[n]+"-"+e.quote:"error")}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref)return t.push(A),t.length?t.join(" "):null;if(e.strong&&t.push(O),e.em&&t.push($),e.strikethrough&&t.push(R),e.linkText&&t.push(D),e.code&&t.push(S),e.header&&(t.push(C),t.push(C+"-"+e.header)),e.quote&&(t.push(T),t.push(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=e.quote?T+"-"+e.quote:T+"-"+r.maxBlockquoteDepth)),e.list!==!1){var i=(e.listDepth-1)%3;t.push(i?1===i?L:E:M)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function f(e,t){return e.match(V,!0)?d(t):void 0}function m(t,n){var i=n.text(t,n);if("undefined"!=typeof i)return i;if(n.list)return n.list=null,d(n);if(n.taskList){var a="x"!==t.match(B,!0)[1];return a?n.taskOpen=!0:n.taskClosed=!0,r.highlightFormatting&&(n.formatting="task"),n.taskList=!1,d(n)}if(n.taskOpen=!1,n.taskClosed=!1,n.header&&t.match(/^#+$/,!0))return r.highlightFormatting&&(n.formatting="header"),d(n);var s=t.sol(),c=t.next();if("\\"===c&&(t.next(),r.highlightFormatting)){var u=d(n);return u?u+" formatting-escape":"formatting-escape"}if(n.linkTitle){n.linkTitle=!1;var f=c;"("===c&&(f=")"),f=(f+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var m="^\\s*(?:[^"+f+"\\\\]+|\\\\\\\\|\\\\.)"+f;if(t.match(new RegExp(m),!0))return A}if("`"===c){var g=n.formatting;r.highlightFormatting&&(n.formatting="code");var v=d(n),b=t.pos;t.eatWhile("`");var y=1+t.pos-b;return n.code?y===_?(n.code=!1,v):(n.formatting=g,d(n)):(_=y,n.code=!0,d(n))}if(n.code)return d(n);if("!"===c&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.match(/\[[^\]]*\]/),n.inline=n.f=p,j;if("["===c&&t.match(/.*\](\(.*\)| ?\[.*\])/,!1))return n.linkText=!0,r.highlightFormatting&&(n.formatting="link"),d(n);if("]"===c&&n.linkText&&t.match(/\(.*\)| ?\[.*\]/,!1)){r.highlightFormatting&&(n.formatting="link");var u=d(n);return n.linkText=!1,n.inline=n.f=p,u}if("<"===c&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=h,r.highlightFormatting&&(n.formatting="link");var u=d(n);return u?u+=" ":u="",u+I}if("<"===c&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=h,r.highlightFormatting&&(n.formatting="link");var u=d(n);return u?u+=" ":u="",u+P}if("<"===c&&t.match(/^\w/,!1)){if(-1!=t.string.indexOf(">")){var x=t.string.substring(1,t.string.indexOf(">"));/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(x)&&(n.md_inside=!0)}return t.backUp(1),n.htmlState=e.startState(w),o(t,n,l)}if("<"===c&&t.match(/^\/\w*?>/))return n.md_inside=!1,"tag";var k=!1;if(!r.underscoresBreakWords&&"_"===c&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var C=t.pos-2;if(C>=0){var S=t.string.charAt(C);"_"!==S&&S.match(/(\w)/,!1)&&(k=!0)}}if("*"===c||"_"===c&&!k)if(s&&" "===t.peek());else{if(n.strong===c&&t.eat(c)){r.highlightFormatting&&(n.formatting="strong");var v=d(n);return n.strong=!1,v}if(!n.strong&&t.eat(c))return n.strong=c,r.highlightFormatting&&(n.formatting="strong"),d(n);if(n.em===c){r.highlightFormatting&&(n.formatting="em");var v=d(n);return n.em=!1,v}if(!n.em)return n.em=c,r.highlightFormatting&&(n.formatting="em"),d(n)}else if(" "===c&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(n);t.backUp(1)}if(r.strikethrough)if("~"===c&&t.eatWhile(c)){if(n.strikethrough){r.highlightFormatting&&(n.formatting="strikethrough");var v=d(n);return n.strikethrough=!1,v}if(t.match(/^[^\s]/,!1))return n.strikethrough=!0,r.highlightFormatting&&(n.formatting="strikethrough"),d(n)}else if(" "===c&&t.match(/^~~/,!0)){if(" "===t.peek())return d(n);t.backUp(2)}return" "===c&&(t.match(/ +$/,!1)?n.trailingSpace++:n.trailingSpace&&(n.trailingSpaceNewLine=!0)),d(n)}function h(e,t){var n=e.next();if(">"===n){t.f=t.inline=m,r.highlightFormatting&&(t.formatting="link");var i=d(t);return i?i+=" ":i="",i+I}return e.match(/^[^>]+/,!0),I}function p(e,t){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(t.f=t.inline=g("("===n?")":"]"),r.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function g(e){return function(t,n){var i=t.next();if(i===e){n.f=n.inline=m,r.highlightFormatting&&(n.formatting="link-string");var o=d(n);return n.linkHref=!1,o}return t.match(x(e),!0)&&t.backUp(1),n.linkHref=!0,d(n)}}function v(e,t){return e.match(/^[^\]]*\]:/,!1)?(t.f=b,e.next(),r.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):i(e,t,m)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=y,r.highlightFormatting&&(t.formatting="link");var n=d(t);return t.linkText=!1,n}return e.match(/^[^\]]+/,!0),D}function y(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=m,A)}function x(e){return K[e]||(e=(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),K[e]=new RegExp("^(?:[^\\\\]|\\\\.)*?("+e+")")),K[e]}var k=e.modes.hasOwnProperty("xml"),w=e.getMode(t,k?{name:"xml",htmlMode:!0}:"text/plain");void 0===r.highlightFormatting&&(r.highlightFormatting=!1),void 0===r.maxBlockquoteDepth&&(r.maxBlockquoteDepth=0),void 0===r.underscoresBreakWords&&(r.underscoresBreakWords=!0),void 0===r.fencedCodeBlocks&&(r.fencedCodeBlocks=!1),void 0===r.taskLists&&(r.taskLists=!1),void 0===r.strikethrough&&(r.strikethrough=!1);var _=0,C="header",S="comment",T="quote",M="variable-2",L="variable-3",E="keyword",q="hr",j="tag",z="formatting",I="link",P="link",D="link",A="string",$="em",O="strong",R="strikethrough",F=/^([*\-=_])(?:\s*\1){2,}\s*$/,H=/^[*\-+]\s+/,N=/^[0-9]+\.\s+/,B=/^\[(x| )\](?=\s)/,U=/^#+/,W=/^(?:\={1,}|-{1,})$/,V=/^[^#!\[\]*_\\<>` "'(~]+/,K=[],Z={startState:function(){return{f:s,prevLineHasContent:!1,thisLineHasContent:!1,block:s,htmlState:null,indentation:0,inline:m,text:f,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,em:!1,strong:!1,header:0,taskList:!1,list:!1,listDepth:0,quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1}},copyState:function(t){return{f:t.f,prevLineHasContent:t.prevLineHasContent,thisLineHasContent:t.thisLineHasContent,block:t.block,htmlState:t.htmlState&&e.copyState(w,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkTitle:t.linkTitle,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,taskList:t.taskList,list:t.list,listDepth:t.listDepth,quote:t.quote, -trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside}},token:function(e,t){if(t.formatting=!1,e.sol()){var r=!!t.header;if(t.header=0,e.match(/^\s*$/,!0)||r)return t.prevLineHasContent=!1,a(t),r?this.token(e,t):null;t.prevLineHasContent=t.thisLineHasContent,t.thisLineHasContent=!0,t.taskList=!1,t.code=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length,i=4*Math.floor((n-t.indentation)/4);i>4&&(i=4);var o=t.indentation+i;if(t.indentationDiff=o-t.indentation,t.indentation=o,n>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:w}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:Z}},blankLine:a,getType:d,fold:"markdown"};return Z},"xml"),e.defineMIME("text/x-markdown","markdown")}),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(t,r){function n(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}}function i(e,t,r){return pe=e,ge=r,t}function o(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=a(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==r&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return i(r);if("="==r&&e.eat(">"))return i("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==r)return e.eat("*")?(t.tokenize=s,s(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(n(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eatWhile(Ce),i("operator","operator",e.current()));if("`"==r)return t.tokenize=l,l(e,t);if("#"==r)return e.skipToEnd(),i("error","error");if(Ce.test(r))return e.eatWhile(Ce),i("operator","operator",e.current());if(we.test(r)){e.eatWhile(we);var o=e.current(),c=_e.propertyIsEnumerable(o)&&_e[o];return c&&"."!=t.lastType?i(c.type,c.style,o):i("variable","variable",o)}}function a(e){return function(t,r){var n,a=!1;if(ye&&"@"==t.peek()&&t.match(Se))return r.tokenize=o,i("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=o),i("string","string")}}function s(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return i("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(0>r)){for(var n=0,i=!1,o=r-1;o>=0;--o){var a=e.string.charAt(o),s=Te.indexOf(a);if(s>=0&&3>s){if(!n){++o;break}if(0==--n)break}else if(s>=3&&6>s)++n;else if(we.test(a))i=!0;else{if(/["'\/]/.test(a))return;if(i&&!n){++o;break}}}i&&!n&&(t.fatArrowAt=o)}}function u(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 d(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(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function f(e,t,r,n,i){var o=e.cc;for(Le.state=e,Le.stream=i,Le.marked=null,Le.cc=o,Le.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=o.length?o.pop():xe?w:k;if(a(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Le.marked?Le.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Le.cc.push(arguments[e])}function h(){return m.apply(null,arguments),!0}function p(e){function t(t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}var n=Le.state;if(n.context){if(Le.marked="def",t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function g(){Le.state.context={prev:Le.state.context,vars:Le.state.localVars},Le.state.localVars=Ee}function v(){Le.state.localVars=Le.state.context.vars,Le.state.context=Le.state.context.prev}function b(e,t){var r=function(){var r=Le.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new u(n,Le.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function y(){var e=Le.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function x(e){function t(r){return r==e?h():";"==e?m():h(t)}return t}function k(e,t){return"var"==e?h(b("vardef",t.length),B,x(";"),y):"keyword a"==e?h(b("form"),w,k,y):"keyword b"==e?h(b("form"),k,y):"{"==e?h(b("}"),F,y):";"==e?h():"if"==e?("else"==Le.state.lexical.info&&Le.state.cc[Le.state.cc.length-1]==y&&Le.state.cc.pop()(),h(b("form"),w,k,y,Z)):"function"==e?h(ee):"for"==e?h(b("form"),G,k,y):"variable"==e?h(b("stat"),I):"switch"==e?h(b("form"),w,b("}","switch"),x("{"),F,y,y):"case"==e?h(w,x(":")):"default"==e?h(x(":")):"catch"==e?h(b("form"),g,x("("),te,x(")"),k,y,v):"module"==e?h(b("form"),g,ae,v,y):"class"==e?h(b("form"),re,y):"export"==e?h(b("form"),se,y):"import"==e?h(b("form"),le,y):m(b("stat"),w,x(";"),y)}function w(e){return C(e,!1)}function _(e){return C(e,!0)}function C(e,t){if(Le.state.fatArrowAt==Le.stream.start){var r=t?z:j;if("("==e)return h(g,b(")"),O(U,")"),y,x("=>"),r,v);if("variable"==e)return m(g,U,x("=>"),r,v)}var n=t?L:M;return Me.hasOwnProperty(e)?h(n):"function"==e?h(ee,n):"keyword c"==e?h(t?T:S):"("==e?h(b(")"),S,me,x(")"),y,n):"operator"==e||"spread"==e?h(t?_:w):"["==e?h(b("]"),de,y,n):"{"==e?R(D,"}",null,n):"quasi"==e?m(E,n):h()}function S(e){return e.match(/[;\}\)\],]/)?m():m(w)}function T(e){return e.match(/[;\}\)\],]/)?m():m(_)}function M(e,t){return","==e?h(w):L(e,t,!1)}function L(e,t,r){var n=0==r?M:L,i=0==r?w:_;return"=>"==e?h(g,r?z:j,v):"operator"==e?/\+\+|--/.test(t)?h(n):"?"==t?h(w,x(":"),i):h(i):"quasi"==e?m(E,n):";"!=e?"("==e?R(_,")","call",n):"."==e?h(P,n):"["==e?h(b("]"),S,x("]"),y,n):void 0:void 0}function E(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?h(E):h(w,q)}function q(e){return"}"==e?(Le.marked="string-2",Le.state.tokenize=l,h(E)):void 0}function j(e){return c(Le.stream,Le.state),m("{"==e?k:w)}function z(e){return c(Le.stream,Le.state),m("{"==e?k:_)}function I(e){return":"==e?h(y,k):m(M,x(";"),y)}function P(e){return"variable"==e?(Le.marked="property",h()):void 0}function D(e,t){return"variable"==e||"keyword"==Le.style?(Le.marked="property",h("get"==t||"set"==t?A:$)):"number"==e||"string"==e?(Le.marked=ye?"property":Le.style+" property",h($)):"jsonld-keyword"==e?h($):"["==e?h(w,x("]"),$):void 0}function A(e){return"variable"!=e?m($):(Le.marked="property",h(ee))}function $(e){return":"==e?h(_):"("==e?m(ee):void 0}function O(e,t){function r(n){if(","==n){var i=Le.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),h(e,r)}return n==t?h():h(x(t))}return function(n){return n==t?h():m(e,r)}}function R(e,t,r){for(var n=3;n!?|~^]/,Se=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Te="([{}])",Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},Le={state:null,column:null,marked:null,cc:null},Ee={name:"this",next:{name:"arguments"}};return y.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-ve,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=s&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==pe?r:(t.lastType="operator"!=pe||"++"!=ge&&"--"!=ge?pe:"incdec",f(t,r,pe,ge,e))},indent:function(t,n){if(t.tokenize==s)return e.Pass;if(t.tokenize!=o)return 0;var i=n&&n.charAt(0),a=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==y)a=a.prev;else if(c!=Z)break}"stat"==a.type&&"}"==i&&(a=a.prev),be&&")"==a.type&&"stat"==a.prev.type&&(a=a.prev);var u=a.type,d=i==u;return"vardef"==u?a.indented+("operator"==t.lastType||","==t.lastType?a.info+1:0):"form"==u&&"{"==i?a.indented:"form"==u?a.indented+ve:"stat"==u?a.indented+(he(t,n)?be||ve:0):"switch"!=a.info||d||0==r.doubleIndentSwitch?a.align?a.column+(d?0:1):a.indented+(d?0:ve):a.indented+(/^(?:case|default)\b/.test(n)?ve:2*ve)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:xe?null:"/*",blockCommentEnd:xe?null:"*/",lineComment:xe?null:"//",fold:"brace",helperType:xe?"json":"javascript",jsonldMode:ye,jsonMode:xe}}),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"),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(e){"use strict";e.defineMode("htmlmixed",function(t,r){function n(e,t){var r=t.htmlState.tagName;r&&(r=r.toLowerCase());var n=s.token(e,t.htmlState);if("script"==r&&/\btag\b/.test(n)&&">"==e.current()){var i=e.string.slice(Math.max(0,e.pos-100),e.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);i=i?i[1]:"",i&&/[\"\']/.test(i.charAt(0))&&(i=i.slice(1,i.length-1));for(var u=0;u"==e.current()&&(t.token=a,t.localMode=l,t.localState=l.startState(s.indent(t.htmlState,"")));return n}function i(e,t,r){var n,i=e.current(),o=i.search(t);return o>-1?e.backUp(i.length-o):(n=i.match(/<\/?$/))&&(e.backUp(i.length),e.match(t,!1)||e.match(i)),r}function o(e,t){return e.match(/^<\/\s*script\s*>/i,!1)?(t.token=n,t.localState=t.localMode=null,null):i(e,/<\/\s*script\s*>/,t.localMode.token(e,t.localState))}function a(e,t){return e.match(/^<\/\s*style\s*>/i,!1)?(t.token=n,t.localState=t.localMode=null,null):i(e,/<\/\s*style\s*>/,l.token(e,t.localState))}var s=e.getMode(t,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag}),l=e.getMode(t,"css"),c=[],u=r&&r.scriptTypes;if(c.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:e.getMode(t,"javascript")}),u)for(var d=0;d]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i)&&"]("!=e.string.slice(e.start-2,e.start)?(t.combineTokens=!0,"link"):(e.next(),null)},blankLine:n},a={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:!0,strikethrough:!0};for(var s in r)a[s]=r[s];return a.name="markdown",e.defineMIME("gfmBase",a),e.overlayMode(e.getMode(t,"gfmBase"),o)},"markdown")}),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("http",function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,n){return t.match(/^HTTP\/\d\.\d/)?(n.cur=r,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(n.cur=i,"keyword"):e(t,n)}function r(t,r){var i=t.match(/^\d+/);if(!i)return e(t,r);r.cur=n;var o=Number(i[0]);return o>=100&&200>o?"positive informational":o>=200&&300>o?"positive success":o>=300&&400>o?"positive redirect":o>=400&&500>o?"negative client-error":o>=500&&600>o?"negative server-error":"error"}function n(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,r){return t.match(/^HTTP\/\d\.\d$/)?(r.cur=a,"keyword"):e(t,r)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var r=t.cur;return r!=a&&r!=s&&e.eatSpace()?null:r(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}}),e.defineMIME("message/http","http")}),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("go",function(e){function t(e,t){var i=e.next();if('"'==i||"'"==i||"`"==i)return t.tokenize=r(i),t.tokenize(e,t);if(/[\d\.]/.test(i))return"."==i?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==i?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(i))return s=i,null;if("/"==i){if(e.eat("*"))return t.tokenize=n,n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(d.test(i))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return c.propertyIsEnumerable(o)?(("case"==o||"default"==o)&&(s="case"),"keyword"):u.propertyIsEnumerable(o)?"atom":"variable"}function r(e){return function(r,n){for(var i,o=!1,a=!1;null!=(i=r.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return(a||!o&&"`"!=e)&&(n.tokenize=t),"string"}}function n(e,r){for(var n,i=!1;n=e.next();){if("/"==n&&i){r.tokenize=t;break}i="*"==n}return"comment"}function i(e,t,r,n,i){this.indented=e,this.column=t,this.type=r,this.align=n,this.prev=i}function o(e,t,r){return e.context=new i(e.indented,t,r,null,e.context)}function a(e){if(e.context.prev){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}}var s,l=e.indentUnit,c={"break":!0,"case":!0,chan:!0,"const":!0,"continue":!0,"default":!0,defer:!0,"else":!0,fallthrough:!0,"for":!0,func:!0,go:!0,"goto":!0,"if":!0,"import":!0,"interface":!0,map:!0,"package":!0,range:!0,"return":!0,select:!0,struct:!0,"switch":!0,type:!0,"var":!0,bool:!0,"byte":!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,"int":!0,uint:!0,uintptr:!0},u={"true":!0,"false":!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,imag:!0,len:!0,make:!0,"new":!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/;return{startState:function(e){return{tokenize:null,context:new i((e||0)-l,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,r){var n=r.context;if(e.sol()&&(null==n.align&&(n.align=!1),r.indented=e.indentation(),r.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;s=null;var i=(r.tokenize||t)(e,r);return"comment"==i?i:(null==n.align&&(n.align=!0),"{"==s?o(r,e.column(),"}"):"["==s?o(r,e.column(),"]"):"("==s?o(r,e.column(),")"):"case"==s?n.type="case":"}"==s&&"}"==n.type?n=a(r):s==n.type&&a(r),r.startOfLine=!1,i)},indent:function(e,r){if(e.tokenize!=t&&null!=e.tokenize)return 0;var n=e.context,i=r&&r.charAt(0);if("case"==n.type&&/^(?:case|default)\b/.test(r))return e.context.type="}",n.indented;var o=i==n.type;return n.align?n.column+(o?0:1):n.indented+(o?0:l)},electricChars:"{}):",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;rr&&"coffee"==t.scope.type?"indent":r>n?"dedent":null}r>0&&s(e,t)}if(e.eatSpace())return null;var a=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=o,t.tokenize(e,t);if("#"===a)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var l=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(l=!0),e.match(/^-?\d+\.\d*/)&&(l=!0),e.match(/^-?\.\d+/)&&(l=!0),l)return"."==e.peek()&&e.backUp(1),"number";var p=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(p=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(p=!0),e.match(/^-?0(?![\dx])/i)&&(p=!0),p)return"number"}if(e.match(b))return t.tokenize=i(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(y)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=i(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(u)||e.match(h)?"operator":e.match(d)?"punctuation":e.match(k)?"atom":e.match(v)?"keyword":e.match(f)?"variable":e.match(m)?"property":(e.next(),c)}function i(e,r,i){return function(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return a.tokenize=n,i;o.eat(/['"\/]/)}return r&&(t.singleLineStringErrors?i=c:a.tokenize=n),i}}function o(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=n;break}e.eatWhile("#")}return"comment"}function a(t,r,n){n=n||"coffee";for(var i=0,o=!1,a=null,s=r.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==n?(o=null,a=t.column()+t.current().length):r.scope.align&&(r.scope.align=!1),r.scope={offset:i,type:n,prev:r.scope,align:o,alignOffset:a}}function s(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var r=e.indentation(),n=!1,i=t.scope;i;i=i.prev)if(r===i.offset){n=!0;break}if(!n)return!0;for(;t.scope.prev&&t.scope.offset!==r;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function l(e,t){var r=t.tokenize(e,t),n=e.current();if("."===n)return r=t.tokenize(e,t),n=e.current(),/^\.[\w$]+$/.test(n)?"variable":c;"return"===n&&(t.dedent=!0),("->"!==n&&"=>"!==n||t.lambda||e.peek())&&"indent"!==r||a(e,t);var i="[({".indexOf(n);if(-1!==i&&a(e,t,"])}".slice(i,i+1)),p.exec(n)&&a(e,t),"then"==n&&s(e,t),"dedent"===r&&s(e,t))return c;if(i="])}".indexOf(n),-1!==i){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==n&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}var c="error",u=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,d=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,f=/^[_A-Za-z$][_A-Za-z$0-9]*/,m=/^(@|this\.)[_A-Za-z$][_A-Za-z$0-9]*/,h=r(["and","or","not","is","isnt","in","instanceof","typeof"]),p=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],g=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],v=r(p.concat(g));p=r(p);var b=/^('{3}|\"{3}|['\"])/,y=/^(\/{3}|\/)/,x=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],k=r(x),w={startState:function(e){return{tokenize:n,scope:{offset:e||0,type:"coffee",prev:null,align:!1},lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var r=null===t.scope.align&&t.scope;r&&e.sol()&&(r.align=!1);var n=l(e,t);return r&&n&&"comment"!=n&&(r.align=!0),t.lastToken={style:n,content:e.current()},e.eol()&&e.lambda&&(t.lambda=!1),n},indent:function(e,t){if(e.tokenize!=n)return 0;var r=e.scope,i=t&&"])}".indexOf(t.charAt(0))>-1;if(i)for(;"coffee"==r.type&&r.prev;)r=r.prev;var o=i&&r.type===t.charAt(0);return r.align?r.alignOffset-(o?1:0):(o?r.prev:r).offset},lineComment:"#",fold:"indent"};return w}),e.defineMIME("text/x-coffeescript","coffeescript")}),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("nginx",function(e){function t(e){for(var t={},r=e.split(" "),n=0;n*\/]/.test(s)?r(null,"select-op"):/[;{}:\[\]]/.test(s)?r(null,s):(e.eatWhile(/[\w\\\-]/),r("variable","variable")):r(null,"compare"):void r(null,"compare")}function i(e,t){for(var i,o=!1;null!=(i=e.next());){if(o&&"/"==i){t.tokenize=n;break}o="*"==i}return r("comment","comment")}function o(e,t){for(var i,o=0;null!=(i=e.next());){if(o>=2&&">"==i){t.tokenize=n;break}o="-"==i?o+1:0}return r("comment","comment")}function a(e){return function(t,i){for(var o,a=!1;null!=(o=t.next())&&(o!=e||a);)a=!a&&"\\"==o;return a||(i.tokenize=n),r("string","string")}}var s,l=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),c=t("http mail events server types location upstream charset_map limit_except if geo map"),u=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),d=e.indentUnit; - -return{startState:function(e){return{tokenize:n,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;s=null;var r=t.tokenize(e,t),n=t.stack[t.stack.length-1];return"hash"==s&&"rule"==n?r="atom":"variable"==r&&("rule"==n?r="number":n&&"@media{"!=n||(r="tag")),"rule"==n&&/^[\{\};]$/.test(s)&&t.stack.pop(),"{"==s?"@media"==n?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==s?t.stack.pop():"@media"==s?t.stack.push("@media"):"{"==n&&"comment"!=s&&t.stack.push("rule"),r},indent:function(e,t){var r=e.stack.length;return/^\}/.test(t)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*d},electricChars:"}"}}),e.defineMIME("text/nginx","text/x-nginx-conf")}),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";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function r(e){return e.scopes[e.scopes.length-1]}var n=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"],a={builtins:["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"],keywords:["exec","print"]},s={builtins:["ascii","bytes","exec","print"],keywords:["nonlocal","False","True","None"]};e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",function(l,c){function u(e,t){if(e.sol()&&"py"==r(t).type){var n=r(t).offset;if(e.eatSpace()){var i=e.indentation();return i>n?m(e,t,"py"):n>i&&h(e,t)&&(t.errorToken=!0),null}var o=d(e,t);return n>0&&h(e,t)&&(o+=" "+g),o}return d(e,t)}function d(e,t){if(e.eatSpace())return null;var r=e.peek();if("#"==r)return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^\d+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f]+/i)&&(o=!0),e.match(/^0b[01]+/i)&&(o=!0),e.match(/^0o[0-7]+/i)&&(o=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}return e.match(T)?(t.tokenize=f(e.current()),t.tokenize(e,t)):e.match(x)||e.match(y)?null:e.match(b)||e.match(k)||e.match(n)?"operator":e.match(v)?null:e.match(M)?"keyword":e.match(L)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(w)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),g)}function f(e){function t(t,i){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),r&&t.eol())return n}else{if(t.match(e))return i.tokenize=u,n;t.eat(/['"]/)}if(r){if(c.singleLineStringErrors)return g;i.tokenize=u}return n}for(;"rub".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=1==e.length,n="string";return t.isString=!0,t}function m(e,t,n){var i=0,o=null;if("py"==n)for(;"py"!=r(t).type;)t.scopes.pop();i=r(t).offset+("py"==n?l.indentUnit:_),"py"==n||e.match(/^(\s|#.*)*$/,!1)||(o=e.column()+1),t.scopes.push({offset:i,type:n,align:o})}function h(e,t){for(var n=e.indentation();r(t).offset>n;){if("py"!=r(t).type)return!0;t.scopes.pop()}return r(t).offset!=n}function p(e,t){var n=t.tokenize(e,t),i=e.current();if("."==i)return n=e.match(w,!1)?null:g,null==n&&"meta"==t.lastStyle&&(n="meta"),n;if("@"==i)return c.version&&3==parseInt(c.version,10)?e.match(w,!1)?"meta":"operator":e.match(w,!1)?"meta":g;"variable"!=n&&"builtin"!=n||"meta"!=t.lastStyle||(n="meta"),("pass"==i||"return"==i)&&(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=r(t).type||m(e,t,"py");var o=1==i.length?"[({".indexOf(i):-1;if(-1!=o&&m(e,t,"])}".slice(o,o+1)),o="])}".indexOf(i),-1!=o){if(r(t).type!=i)return g;t.scopes.pop()}return t.dedent>0&&e.eol()&&"py"==r(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}var g="error",v=c.singleDelimiters||new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),b=c.doubleOperators||new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),y=c.doubleDelimiters||new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),x=c.tripleDelimiters||new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");if(c.version&&3==parseInt(c.version,10))var k=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!@]"),w=c.identifiers||new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");else var k=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"),w=c.identifiers||new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var _=c.hangingIndent||l.indentUnit,C=i,S=o;if(void 0!=c.extra_keywords&&(C=C.concat(c.extra_keywords)),void 0!=c.extra_builtins&&(S=S.concat(c.extra_builtins)),c.version&&3==parseInt(c.version,10)){C=C.concat(s.keywords),S=S.concat(s.builtins);var T=new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))","i")}else{C=C.concat(a.keywords),S=S.concat(a.builtins);var T=new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var M=t(C),L=t(S),E={startState:function(e){return{tokenize:u,scopes:[{offset:e||0,type:"py",align:null}],lastStyle:null,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var r=t.errorToken;r&&(t.errorToken=!1);var n=p(e,t);t.lastStyle=n;var i=e.current();return i&&n&&(t.lastToken=i),e.eol()&&t.lambda&&(t.lambda=!1),r?n+" "+g:n},indent:function(t,n){if(t.tokenize!=u)return t.tokenize.isString?e.Pass:0;var i=r(t),o=n&&n.charAt(0)==i.type;return null!=i.align?i.align-(o?1:0):o&&t.scopes.length>1?t.scopes[t.scopes.length-2].offset:i.offset},lineComment:"#",fold:"indent"};return E}),e.defineMIME("text/x-python","python");var l=function(e){return e.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:l("by cdef cimport cpdef ctypedef enum exceptextern gil include nogil property publicreadonly struct union DEF IF ELIF ELSE")})}),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";function t(e,t){return e.string.charAt(e.pos+(t||0))}function r(e,t){if(t){var r=e.pos-t;return e.string.substr(r>=0?r:0,t)}return e.string.substr(0,e.pos-1)}function n(e,t){var r=e.string.length,n=r-e.pos+1;return e.string.substr(e.pos,t&&r>t?t:n)}function i(e,t){var r,n=e.pos+t;0>=n?e.pos=0:n>=(r=e.string.length-1)?e.pos=r:e.pos=n}e.defineMode("perl",function(){function e(e,t,r,n,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,s=!1,l=0;o=e.next();){if(o===r[l]&&!s)return void 0!==r[++l]?(t.chain=r[l],t.style=n,t.tail=i):i&&e.eatWhile(i),t.tokenize=a,n;s=!s&&"\\"==o}return n},t.tokenize(e,t)}function o(e,t,r){return t.tokenize=function(e,t){return e.string==r&&(t.tokenize=a),e.skipToEnd(),"string"},t.tokenize(e,t)}function a(a,u){if(a.eatSpace())return null;if(u.chain)return e(a,u,u.chain,u.style,u.tail);if(a.match(/^\-?[\d\.]/,!1)&&a.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(a.match(/^<<(?=\w)/))return a.eatWhile(/\w/),o(a,u,a.current().substr(2));if(a.sol()&&a.match(/^\=item(?!\w)/))return o(a,u,"=cut");var d=a.next();if('"'==d||"'"==d){if(r(a,3)=="<<"+d){var f=a.pos;a.eatWhile(/\w/);var m=a.current().substr(1);if(m&&a.eat(d))return o(a,u,m);a.pos=f}return e(a,u,[d],"string")}if("q"==d){var h=t(a,-2);if(!h||!/\w/.test(h))if(h=t(a,0),"x"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],l,c);if("["==h)return i(a,2),e(a,u,["]"],l,c);if("{"==h)return i(a,2),e(a,u,["}"],l,c);if("<"==h)return i(a,2),e(a,u,[">"],l,c);if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],l,c)}else if("q"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],"string");if("["==h)return i(a,2),e(a,u,["]"],"string");if("{"==h)return i(a,2),e(a,u,["}"],"string");if("<"==h)return i(a,2),e(a,u,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],"string")}else if("w"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],"bracket");if("["==h)return i(a,2),e(a,u,["]"],"bracket");if("{"==h)return i(a,2),e(a,u,["}"],"bracket");if("<"==h)return i(a,2),e(a,u,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],"bracket")}else if("r"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],l,c);if("["==h)return i(a,2),e(a,u,["]"],l,c);if("{"==h)return i(a,2),e(a,u,["}"],l,c);if("<"==h)return i(a,2),e(a,u,[">"],l,c);if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(a,1),e(a,u,[")"],"string");if("["==h)return i(a,1),e(a,u,["]"],"string");if("{"==h)return i(a,1),e(a,u,["}"],"string");if("<"==h)return i(a,1),e(a,u,[">"],"string");if(/[\^'"!~\/]/.test(h))return e(a,u,[a.eat(h)],"string")}}if("m"==d){var h=t(a,-2);if((!h||!/\w/.test(h))&&(h=a.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return e(a,u,[h],l,c);if("("==h)return e(a,u,[")"],l,c);if("["==h)return e(a,u,["]"],l,c);if("{"==h)return e(a,u,["}"],l,c);if("<"==h)return e(a,u,[">"],l,c)}}if("s"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat(/[(\[{<\^'"!~\/]/)))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("y"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat(/[(\[{<\^'"!~\/]/)))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("t"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat("r"),h&&(h=a.eat(/[(\[{<\^'"!~\/]/))))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("`"==d)return e(a,u,[d],"variable-2");if("/"==d)return/~\s*$/.test(r(a))?e(a,u,[d],l,c):"operator";if("$"==d){var f=a.pos;if(a.eatWhile(/\d/)||a.eat("{")&&a.eatWhile(/\d/)&&a.eat("}"))return"variable-2";a.pos=f}if(/[$@%]/.test(d)){var f=a.pos;if(a.eat("^")&&a.eat(/[A-Z]/)||!/[@$%&]/.test(t(a,-2))&&a.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=a.current();if(s[h])return"variable-2"}a.pos=f}if(/[$@%&]/.test(d)&&(a.eatWhile(/[\w$\[\]]/)||a.eat("{")&&a.eatWhile(/[\w$\[\]]/)&&a.eat("}"))){var h=a.current();return s[h]?"variable-2":"variable"}if("#"==d&&"$"!=t(a,-2))return a.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){var f=a.pos;if(a.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[a.current()])return"operator";a.pos=f}if("_"==d&&1==a.pos){if("_END__"==n(a,6))return e(a,u,["\x00"],"comment");if("_DATA__"==n(a,7))return e(a,u,["\x00"],"variable-2");if("_C__"==n(a,7))return e(a,u,["\x00"],"string")}if(/\w/.test(d)){var f=a.pos;if("{"==t(a,-2)&&("}"==t(a,0)||a.eatWhile(/\w/)&&"}"==t(a,0)))return"string";a.pos=f}if(/[A-Z]/.test(d)){var p=t(a,-2),f=a.pos;if(a.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(a,0))){var h=s[a.current()];return h?(h[1]&&(h=h[0]),":"!=p?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"}a.pos=f}if(/[a-zA-Z_]/.test(d)){var p=t(a,-2);a.eatWhile(/\w/);var h=s[a.current()];return h?(h[1]&&(h=h[0]),":"!=p?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"}return null}var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,"if":[1,1],elsif:[1,1],"else":[1,1],"while":[1,1],unless:[1,1],"for":[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,"break":1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,"continue":[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,"default":1,defined:1,"delete":1,die:1,"do":1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,"goto":1,grep:1,hex:1,"import":1,index:1,"int":1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,"new":1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,"package":1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,"return":1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string-2",c=/[goseximacplud]/;return{startState:function(){return{tokenize:a,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||a)(e,t)},lineComment:"#"}}),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}),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("lua",function(e,t){function r(e){return new RegExp("^(?:"+e.join("|")+")","i")}function n(e){return new RegExp("^(?:"+e.join("|")+")$","i")}function i(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function o(e,t){var r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=a(i(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=s(r))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=a(i(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function a(e,t){return function(r,n){for(var i,a=null;null!=(i=r.next());)if(null==a)"]"==i&&(a=0);else if("="==i)++a;else{if("]"==i&&a==e){n.cur=o;break}a=null}return t}}function s(e){return function(t,r){for(var n,i=!1;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.cur=o),"string"}}var l=e.indentUnit,c=n(t.specials||[]),u=n(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),d=n(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),f=n(["function","if","repeat","do","\\(","{"]),m=n(["end","until","\\)","}"]),h=r(["end","until","\\)","}","else","elseif"]);return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:o}},token:function(e,t){if(e.eatSpace())return null;var r=t.cur(e,t),n=e.current();return"variable"==r&&(d.test(n)?r="keyword":u.test(n)?r="builtin":c.test(n)&&(r="variable-2")),"comment"!=r&&"string"!=r&&(f.test(n)?++t.indentDepth:m.test(n)&&--t.indentDepth),r},indent:function(e,t){var r=h.test(t);return e.basecol+l*(e.indentDepth-(r?1:0))},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),e.defineMIME("text/x-lua","lua")}),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("r",function(e){function t(e){for(var t=e.split(" "),r={},n=0;n=!&|~$:]/;return{startState:function(){return{tokenize:r,ctx:{type:"top",indent:-e.indentUnit,align:!1},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(null==t.ctx.align&&(t.ctx.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var r=t.tokenize(e,t);"comment"!=r&&null==t.ctx.align&&(t.ctx.align=!0);var n=t.ctx.type;return";"!=a&&"{"!=a&&"}"!=a||"block"!=n||o(t),"{"==a?i(t,"}",e):"("==a?(i(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==a?i(t,"]",e):"block"==a?i(t,"block",e):a==n&&o(t),t.afterIdent="variable"==r||"keyword"==r,r},indent:function(t,n){if(t.tokenize!=r)return 0;var i=n&&n.charAt(0),o=t.ctx,a=i==o.type;return"block"==o.type?o.indent+("{"==i?0:e.indentUnit):o.align?o.column+(a?0:1):o.indent+(a?0:e.indentUnit)},lineComment:"#"}}),e.defineMIME("text/x-rsrc","r")}),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("ruby",function(e){function t(e){for(var t={},r=0,n=e.length;n>r;++r)t[e[r]]=!0;return t}function r(e,t,r){return r.tokenize.push(e),e(t,r)}function n(e,t){if(c=null,e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(l),"comment";if(e.eatSpace())return null;var n,i=e.next();if("`"==i||"'"==i||'"'==i)return r(a(i,"string",'"'==i||"`"==i),e,t);if("/"==i){var o=e.current().length;if(e.skipTo("/")){var u=e.current().length;e.backUp(e.current().length-o);for(var d=0;e.current().lengthd)break}if(e.backUp(e.current().length-o),0==d)return r(a(i,"string-2",!0),e,t)}return"operator"}if("%"==i){var h="string",p=!0;e.eat("s")?h="atom":e.eat(/[WQ]/)?h="string":e.eat(/[r]/)?h="string-2":e.eat(/[wxq]/)&&(h="string",p=!1);var g=e.eat(/[^\w\s=]/);return g?(m.propertyIsEnumerable(g)&&(g=m[g]),r(a(g,h,p,!0),e,t)):"operator"}if("#"==i)return e.skipToEnd(),"comment";if("<"==i&&(n=e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return r(s(n[1]),e,t);if("0"==i)return e.eatWhile(e.eat("x")?/[\da-fA-F]/:e.eat("b")?/[01]/:/[0-7]/),"number";if(/\d/.test(i))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==i){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==i)return e.eat("'")?r(a("'","atom",!1),e,t):e.eat('"')?r(a('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==i&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==i)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(i))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=i||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(i))return c=i,null;if("-"==i&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(i)){var v=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=i||v||(c="."),"operator"}return null}return c="|",null}function i(e){return e||(e=1),function(t,r){if("}"==t.peek()){if(1==e)return r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r);r.tokenize[r.tokenize.length-1]=i(e-1)}else"{"==t.peek()&&(r.tokenize[r.tokenize.length-1]=i(e+1));return n(t,r)}}function o(){var e=!1;return function(t,r){return e?(r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r)):(e=!0,n(t,r))}}function a(e,t,r,n){return function(a,s){var l,c=!1;for("read-quoted-paused"===s.context.type&&(s.context=s.context.prev,a.eat("}"));null!=(l=a.next());){if(l==e&&(n||!c)){s.tokenize.pop();break}if(r&&"#"==l&&!c){if(a.eat("{")){"}"==e&&(s.context={prev:s.context,type:"read-quoted-paused"}),s.tokenize.push(i());break}if(/[@\$]/.test(a.peek())){s.tokenize.push(o());break}}c=!c&&"\\"==l}return t}}function s(e){return function(t,r){return t.match(e)?r.tokenize.pop():t.skipToEnd(),"string"}}function l(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}var c,u=t(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),d=t(["def","class","case","for","while","module","then","catch","loop","proc","begin"]),f=t(["end","until"]),m={"[":"]","{":"}","(":")"};return{startState:function(){return{tokenize:[n],indented:0,context:{type:"top",indented:-e.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){e.sol()&&(t.indented=e.indentation());var r,n=t.tokenize[t.tokenize.length-1](e,t),i=c;if("ident"==n){var o=e.current();n="."==t.lastTok?"property":u.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable","keyword"==n&&(i=o,d.propertyIsEnumerable(o)?r="indent":f.propertyIsEnumerable(o)?r="dedent":"if"!=o&&"unless"!=o||e.column()!=e.indentation()?"do"==o&&t.context.indented\\?]*[^\\W_])?)",y=new RegExp(r("^{0}",b)),x="(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",k=r("(?:{0}|`{1}`)",b,x),w="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",_="(?:[^\\`]+)",C=new RegExp(r("^{0}",_)),S=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),T=new RegExp(r("^\\.\\.{0}",p)),M=new RegExp(r("^_{0}:{1}|^__:{1}",k,g)),L=new RegExp(r("^{0}::{1}",k,g)),E=new RegExp(r("^\\|{0}\\|{1}{2}::{3}",w,p,k,g)),q=new RegExp(r("^\\[(?:\\d+|#{0}?|\\*)]{1}",k,g)),j=new RegExp(r("^\\[{0}\\]{1}",k,g)),z=new RegExp(r("^\\|{0}\\|",w)),I=new RegExp(r("^\\[(?:\\d+|#{0}?|\\*)]_",k)),P=new RegExp(r("^\\[{0}\\]_",k)),D=new RegExp(r("^{0}__?",k)),A=new RegExp(r("^`{0}`_",_)),$=new RegExp(r("^:{0}:`{1}`{2}",b,_,g)),O=new RegExp(r("^`{1}`:{0}:{2}",b,_,g)),R=new RegExp(r("^:{0}:{1}",b,g)),F=new RegExp(r("^{0}",k)),H=new RegExp(r("^::{0}",g)),N=new RegExp(r("^\\|{0}\\|",w)),B=new RegExp(r("^{0}",p)),U=new RegExp(r("^{0}",k)),W=new RegExp(r("^::{0}",g)),V=new RegExp("^_"),K=new RegExp(r("^{0}|_",k)),Z=new RegExp(r("^:{0}",g)),G=new RegExp("^::\\s*$"),X=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");return{startState:function(){return{tok:n,ctx:c(void 0,0)}},copyState:function(t){var r=t.ctx,n=t.tmp;return r.local&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),n&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),{tok:t.tok,ctx:r,tmp:n}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}},"python","stex"),e.defineMIME("text/x-rst","rst")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../smarty/smarty")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../smarty/smarty"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("smartymixed",function(t){function r(e){return e.replace(/[^\s\w]/g,"\\$&")}var n=e.getMode(t,"htmlmixed"),i=e.getMode(t,"smarty"),o={rightDelimiter:"}",leftDelimiter:"{"};t.hasOwnProperty("leftDelimiter")&&(o.leftDelimiter=t.leftDelimiter),t.hasOwnProperty("rightDelimiter")&&(o.rightDelimiter=t.rightDelimiter);var a=r(o.leftDelimiter),s=r(o.rightDelimiter),l={smartyComment:new RegExp("^"+s+"\\*"),literalOpen:new RegExp(a+"literal"+s),literalClose:new RegExp(a+"/literal"+s),hasLeftDelimeter:new RegExp(".*"+a),htmlHasLeftDelimeter:new RegExp("[^<>]*"+a)},c={chain:function(e,t,r){return t.tokenize=r,r(e,t)},cleanChain:function(e,t,r){return t.tokenize=null,t.localState=null,t.localMode=null,"string"==typeof r?r?r:null:r(e,t)},maybeBackup:function(e,t,r){var n,i=e.current(),o=i.search(t);return o>-1?e.backUp(i.length-o):(n=i.match(/<\/?$/))&&(e.backUp(i.length),e.match(t,!1)||e.match(i[0])),r}},u={html:function(e,t){var r=t.htmlMixedState.htmlState.context&&t.htmlMixedState.htmlState.context.tagName?t.htmlMixedState.htmlState.context.tagName:null;return!t.inLiteral&&e.match(l.htmlHasLeftDelimeter,!1)&&null===r?(t.tokenize=u.smarty,t.localMode=i,t.localState=i.startState(n.indent(t.htmlMixedState,"")),c.maybeBackup(e,o.leftDelimiter,i.token(e,t.localState))):!t.inLiteral&&e.match(o.leftDelimiter,!1)?(t.tokenize=u.smarty,t.localMode=i,t.localState=i.startState(n.indent(t.htmlMixedState,"")),c.maybeBackup(e,o.leftDelimiter,i.token(e,t.localState))):n.token(e,t.htmlMixedState)},smarty:function(e,t){if(e.match(o.leftDelimiter,!1)){if(e.match(l.smartyComment,!1))return c.chain(e,t,u.inBlock("comment","*"+o.rightDelimiter))}else if(e.match(o.rightDelimiter,!1))return e.eat(o.rightDelimiter),t.tokenize=u.html,t.localMode=n,t.localState=t.htmlMixedState,"tag";return c.maybeBackup(e,o.rightDelimiter,i.token(e,t.localState))},inBlock:function(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){c.cleanChain(r,n,"");break}r.next()}return e}}};return{startState:function(){var e=n.startState();return{token:u.html,localMode:null,localState:null,htmlMixedState:e,tokenize:null,inLiteral:!1}},copyState:function(t){var r=null,o=t.tokenize||t.token;return t.localState&&(r=e.copyState(o!=u.html?i:n,t.localState)),{token:t.token,tokenize:t.tokenize,localMode:t.localMode,localState:r,htmlMixedState:e.copyState(n,t.htmlMixedState),inLiteral:t.inLiteral}},token:function(e,t){if(e.match(o.leftDelimiter,!1)){if(!t.inLiteral&&e.match(l.literalOpen,!0))return t.inLiteral=!0,"keyword";if(t.inLiteral&&e.match(l.literalClose,!0))return t.inLiteral=!1,"keyword"}t.inLiteral&&t.localState!=t.htmlMixedState&&(t.tokenize=u.html,t.localMode=n,t.localState=t.htmlMixedState);var r=(t.tokenize||t.token)(e,t);return r},indent:function(t,r){return t.localMode==i||t.inLiteral&&!t.localMode||l.hasLeftDelimeter.test(r)?e.Pass:n.indent(t.htmlMixedState,r)},innerMode:function(e){return{state:e.localState||e.htmlMixedState,mode:e.localMode||n}}}},"htmlmixed","smarty"),e.defineMIME("text/x-smarty","smartymixed")}),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("vb",function(e,t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function n(e,t){t.currentIndent++}function i(e,t){t.currentIndent--}function o(e,t){if(e.eatSpace())return null;var r=e.peek();if("'"===r)return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var o=!1;if(e.match(/^\d*\.\d+F?/i)?o=!0:e.match(/^\d+\.\d*F?/)?o=!0:e.match(/^\.\d+F?/)&&(o=!0),o)return e.eat(/J/i),"number";var s=!1;if(e.match(/^&H[0-9a-f]+/i)?s=!0:e.match(/^&O[0-7]+/i)?s=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),s=!0):e.match(/^0(?![\dx])/i)&&(s=!0),s)return e.eat(/L/i),"number"}return e.match(_)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(m)||e.match(f)?null:e.match(d)||e.match(c)||e.match(b)?"operator":e.match(u)?null:e.match(L)?(n(e,t),t.doInCurrentLine=!0,"keyword"):e.match(C)?(t.doInCurrentLine?t.doInCurrentLine=!1:n(e,t),"keyword"):e.match(S)?"keyword":e.match(M)?(i(e,t),i(e,t),"keyword"):e.match(T)?(i(e,t),"keyword"):e.match(w)?"keyword":e.match(k)?"keyword":e.match(h)?"variable":(e.next(),l)}function a(e){var r=1==e.length,n="string";return function(i,a){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return a.tokenize=o,n;i.eat(/['"]/)}if(r){if(t.singleLineStringErrors)return l;a.tokenize=o}return n}}function s(e,t){var r=t.tokenize(e,t),o=e.current();if("."===o)return r=t.tokenize(e,t),o=e.current(),"variable"===r?"variable":l;var a="[({".indexOf(o);return-1!==a&&n(e,t),"dedent"===E&&i(e,t)?l:(a="])}".indexOf(o),-1!==a&&i(e,t)?l:r)}var l="error",c=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),u=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),d=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),f=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),m=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),h=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),p=["class","module","sub","enum","select","while","if","function","get","set","property","try"],g=["else","elseif","case","catch"],v=["next","loop"],b=r(["and","or","not","xor","in"]),y=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],x=["integer","string","double","decimal","boolean","short","char","float","single"],k=r(y),w=r(x),_='"',C=r(p),S=r(g),T=r(v),M=r(["end"]),L=r(["do"]),E=null,q={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:o,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=s(e,t);return t.lastToken={style:r,content:e.current()},r},indent:function(t,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match(T)||n.match(M)||n.match(S)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}};return q}),e.defineMIME("text/x-vb","vb")}),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("vbscript",function(e,t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function n(e,t){t.currentIndent++}function i(e,t){t.currentIndent--}function o(e,t){if(e.eatSpace())return"space";var r=e.peek();if("'"===r)return e.skipToEnd(),"comment";if(e.match(H))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var o=!1;if(e.match(/^\d*\.\d+/i)?o=!0:e.match(/^\d+\.\d*/)?o=!0:e.match(/^\.\d+/)&&(o=!0),o)return e.eat(/J/i),"number";var s=!1;if(e.match(/^&H[0-9a-f]+/i)?s=!0:e.match(/^&O[0-7]+/i)?s=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),s=!0):e.match(/^0(?![\dx])/i)&&(s=!0),s)return e.eat(/L/i),"number"}return e.match(P)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(u)||e.match(c)||e.match(v)?"operator":e.match(d)?null:e.match(f)?"bracket":e.match(F)?(t.doInCurrentLine=!0,"keyword"):e.match(R)?(n(e,t),t.doInCurrentLine=!0,"keyword"):e.match(D)?(t.doInCurrentLine?t.doInCurrentLine=!1:n(e,t),"keyword"):e.match(A)?"keyword":e.match(O)?(i(e,t),i(e,t),"keyword"):e.match($)?(t.doInCurrentLine?t.doInCurrentLine=!1:i(e,t),"keyword"):e.match(E)?"keyword":e.match(q)?"atom":e.match(I)?"variable-2":e.match(j)?"builtin":e.match(z)?"variable-2":e.match(m)?"variable":(e.next(),l)}function a(e){var r=1==e.length,n="string";return function(i,a){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return a.tokenize=o,n;i.eat(/['"]/)}if(r){if(t.singleLineStringErrors)return l;a.tokenize=o}return n}}function s(e,t){var r=t.tokenize(e,t),n=e.current();return"."===n?(r=t.tokenize(e,t),n=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?l:(("builtin"===r||"keyword"===r)&&(r="variable"),L.indexOf(n.substr(1))>-1&&(r="variable-2"),r)):r}var l="error",c=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),u=new RegExp("^((<>)|(<=)|(>=))"),d=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),m=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),h=["class","sub","select","while","if","function","property","with","for"],p=["else","elseif","case"],g=["next","loop","wend"],v=r(["and","or","not","xor","is","mod","eqv","imp"]),b=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],y=["true","false","nothing","empty","null"],x=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],k=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],w=["WScript","err","debug","RegExp"],_=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],C=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],S=["server","response","request","session","application"],T=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],M=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],L=C.concat(_);w=w.concat(k),e.isASP&&(w=w.concat(S),L=L.concat(M,T));var E=r(b),q=r(y),j=r(x),z=r(w),I=r(L),P='"',D=r(h),A=r(p),$=r(g),O=r(["end"]),R=r(["do"]),F=r(["on error resume next","exit"]),H=r(["rem"]),N={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:o,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=s(e,t);return t.lastToken={style:r,content:e.current()},"space"===r&&(r=null),r},indent:function(t,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match($)||n.match(O)||n.match(A)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}};return N}),e.defineMIME("text/vbscript","vbscript")}),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("velocity",function(){function e(e){for(var t={},r=e.split(" "),n=0;nf.length&&"."==e.string.charAt(e.pos-f.length-1)&&r.lastTokenWasBuiltin?"builtin":(r.lastTokenWasBuiltin=!1,null)}return r.lastTokenWasBuiltin=!1,r.inString?(r.inString=!1,"string"):r.inParams?t(e,r,n(d)):void 0}function n(e){return function(t,n){for(var i,o=!1,a=!1;null!=(i=t.next());){if(i==e&&!o){a=!0;break}if('"'==e&&"$"==t.peek()&&!o){n.inString=!0,a=!0;break}o=!o&&"\\"==i}return a&&(n.tokenize=r),"string"}}function i(e,t){for(var n,i=!1;n=e.next();){if("#"==n&&i){t.tokenize=r;break}i="*"==n}return"comment"}function o(e,t){for(var n,i=0;n=e.next();){if("#"==n&&2==i){t.tokenize=r;break}"]"==n?i++:" "!=n&&(i=0)}return"meta"}var a=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),s=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),l=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),c=/[+\-*&%=<>!?:\/|]/;return{startState:function(){return{tokenize:r,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),e.defineMIME("text/velocity","velocity")}),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("xquery",function(){function e(e,t,r){return y=e,x=r,t}function t(e,t,r){return t.tokenize=r,r(e,t)}function r(r,s){var f=r.next(),h=!1,g=p(r);if("<"==f){if(r.match("!--",!0))return t(r,s,l);if(r.match("![CDATA",!1))return s.tokenize=c,e("tag","tag");if(r.match("?",!1))return t(r,s,u);var y=r.eat("/");r.eatSpace();for(var x,w="";x=r.eat(/[^\s\u00a0=<>\"\'\/?]/);)w+=x;return t(r,s,a(w,y))}if("{"==f)return v(s,{type:"codeblock"}),e("",null);if("}"==f)return b(s),e("",null);if(d(s))return">"==f?e("tag","tag"):"/"==f&&r.eat(">")?(b(s),e("tag","tag")):e("word","variable");if(/\d/.test(f))return r.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),e("number","atom");if("("===f&&r.eat(":"))return v(s,{type:"comment"}),t(r,s,n);if(g||'"'!==f&&"'"!==f){if("$"===f)return t(r,s,o);if(":"===f&&r.eat("="))return e("operator","keyword");if("("===f)return v(s,{type:"paren"}),e("",null);if(")"===f)return b(s),e("",null);if("["===f)return v(s,{type:"bracket"}),e("",null);if("]"===f)return b(s),e("",null);var _=k.propertyIsEnumerable(f)&&k[f];if(g&&'"'===f)for(;'"'!==r.next(););if(g&&"'"===f)for(;"'"!==r.next(););_||r.eatWhile(/[\w\$_-]/);var C=r.eat(":");!r.eat(":")&&C&&r.eatWhile(/[\w\$_-]/),r.match(/^[ \t]*\(/,!1)&&(h=!0);var S=r.current();return _=k.propertyIsEnumerable(S)&&k[S],h&&!_&&(_={type:"function_call",style:"variable def"}),m(s)?(b(s),e("word","variable",S)):(("element"==S||"attribute"==S||"axis_specifier"==_.type)&&v(s,{type:"xmlconstructor"}),_?e(_.type,_.style,S):e("word","variable",S))}return t(r,s,i(f))}function n(t,r){for(var n,i=!1,o=!1,a=0;n=t.next();){if(")"==n&&i){if(!(a>0)){b(r);break}a--}else":"==n&&o&&a++;i=":"==n,o="("==n}return e("comment","comment")}function i(t,n){return function(o,a){var s;if(h(a)&&o.current()==t)return b(a),n&&(a.tokenize=n),e("string","string");if(v(a,{type:"string",name:t,tokenize:i(t,n)}),o.match("{",!1)&&f(a))return a.tokenize=r,e("string","string");for(;s=o.next();){if(s==t){b(a),n&&(a.tokenize=n);break}if(o.match("{",!1)&&f(a))return a.tokenize=r,e("string","string")}return e("string","string")}}function o(t,n){var i=/[\w\$_-]/;if(t.eat('"')){for(;'"'!==t.next(););t.eat(":")}else t.eatWhile(i),t.match(":=",!1)||t.eat(":");return t.eatWhile(i),n.tokenize=r,e("variable","variable")}function a(t,n){return function(i,o){return i.eatSpace(),n&&i.eat(">")?(b(o),o.tokenize=r,e("tag","tag")):(i.eat("/")||v(o,{type:"tag",name:t,tokenize:r}),i.eat(">")?(o.tokenize=r,e("tag","tag")):(o.tokenize=s,e("tag","tag")))}}function s(n,o){var a=n.next();return"/"==a&&n.eat(">")?(f(o)&&b(o),d(o)&&b(o),e("tag","tag")):">"==a?(f(o)&&b(o),e("tag","tag")):"="==a?e("",null):'"'==a||"'"==a?t(n,o,i(a,s)):(f(o)||v(o,{type:"attribute",tokenize:s}),n.eat(/[a-zA-Z_:]/),n.eatWhile(/[-a-zA-Z0-9_:.]/),n.eatSpace(),(n.match(">",!1)||n.match("/",!1))&&(b(o),o.tokenize=r),e("attribute","attribute"))}function l(t,n){for(var i;i=t.next();)if("-"==i&&t.match("->",!0))return n.tokenize=r,e("comment","comment")}function c(t,n){for(var i;i=t.next();)if("]"==i&&t.match("]",!0))return n.tokenize=r,e("comment","comment")}function u(t,n){for(var i;i=t.next();)if("?"==i&&t.match(">",!0))return n.tokenize=r,e("comment","comment meta")}function d(e){return g(e,"tag")}function f(e){return g(e,"attribute")}function m(e){return g(e,"xmlconstructor")}function h(e){return g(e,"string")}function p(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()?e.match(/^[^\"]+\'\:/,!1):!1}function g(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function v(e,t){e.stack.push(t)}function b(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||r}var y,x,k=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},l={"if":t,"switch":t,"while":t,"for":t,"else":r,then:r,"try":r,"finally":r,"catch":r,element:n,attribute:n,let:n,"implements":n,"import":n,module:n,namespace:n,"return":n,"super":n,"this":n,"throws":n,where:n,"private":n,",":a,"null":o,"fn:false()":o,"fn:true()":o},c=["after","ancestor","ancestor-or-self","and","as","ascending","assert","attribute","before","by","case","cast","child","comment","declare","default","define","descendant","descendant-or-self","descending","document","document-node","element","else","eq","every","except","external","following","following-sibling","follows","for","function","if","import","in","instance","intersect","item","let","module","namespace","node","node","of","only","or","order","parent","precedes","preceding","preceding-sibling","processing-instruction","ref","return","returns","satisfies","schema","schema-element","self","some","sortby","stable","text","then","to","treat","typeswitch","union","variable","version","where","xquery","empty-sequence"],u=0,d=c.length;d>u;u++)l[c[u]]=e(c[u]);for(var f=["xs:string","xs:float","xs:decimal","xs:double","xs:integer","xs:boolean","xs:date","xs:dateTime","xs:time","xs:duration","xs:dayTimeDuration","xs:time","xs:yearMonthDuration","numeric","xs:hexBinary","xs:base64Binary","xs:anyURI","xs:QName","xs:byte","xs:boolean","xs:anyURI","xf:yearMonthDuration"],u=0,d=f.length;d>u;u++)l[f[u]]=o;for(var m=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],u=0,d=m.length;d>u;u++)l[m[u]]=i;for(var h=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"],u=0,d=h.length;d>u;u++)l[h[u]]=s;return l}();return{startState:function(){return{tokenize:r,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var r=t.tokenize(e,t);return r},blockCommentStart:"(:",blockCommentEnd:":)"}}),e.defineMIME("application/xquery","xquery")}),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("yaml",function(){var e=["true","false","on","off","yes","no"],t=new RegExp("\\b(("+e.join(")|(")+"))$","i");return{token:function(e,r){var n=e.peek(),i=r.escaped;if(r.escaped=!1,"#"==n&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(r.literal&&e.indentation()>r.keyCol)return e.skipToEnd(),"string";if(r.literal&&(r.literal=!1),e.sol()){if(r.keyCol=0,r.pair=!1,r.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?r.inlinePairs++:"}"==n?r.inlinePairs--:"["==n?r.inlineList++:r.inlineList--,"meta";if(r.inlineList>0&&!i&&","==n)return e.next(),"meta";if(r.inlinePairs>0&&!i&&","==n)return r.keyCol=0,r.pair=!1,r.pairStart=!1,e.next(),"meta";if(r.pairStart){if(e.match(/^\s*(\||\>)\s*/))return r.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==r.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(r.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(t))return"keyword"}return!r.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(r.pair=!0,r.keyCol=e.indentation(),"atom"):r.pair&&e.match(/^:\s*/)?(r.pairStart=!0,"meta"):(r.pairStart=!1,r.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}}}}),e.defineMIME("text/x-yaml","yaml")}),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.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",function(t){function r(e,t){if(t.in_string)return t.in_string=!o(e),u(t,e,"string");if(t.in_atom)return t.in_atom=!a(e),u(t,e,"atom");if(e.eatSpace())return u(t,e,"whitespace");if(!h(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return c(e.current(),T)?u(t,e,"type"):u(t,e,"attribute");var r=e.next();if("%"==r)return e.skipToEnd(),u(t,e,"comment");if(":"==r)return u(t,e,"colon");if("?"==r)return e.eatSpace(),e.eatWhile(R),u(t,e,"macro");if("#"==r)return e.eatSpace(),e.eatWhile(R),u(t,e,"record");if("$"==r)return"\\"!=e.next()||e.match(F)?u(t,e,"number"):u(t,e,"error");if("."==r)return u(t,e,"dot");if("'"==r){if(!(t.in_atom=!a(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return u(t,e,"function")}return u(t,e,"atom")}if('"'==r)return t.in_string=!o(e),u(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(R),u(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(R),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");var s=e.current();return c(s,M)?u(t,e,"keyword"):c(s,q)?u(t,e,"operator"):e.match(/\s*\(/,!1)?!c(s,O)||":"==h(t).token&&"erlang"!=h(t,2).token?c(s,$)?u(t,e,"guard"):u(t,e,"function"):u(t,e,"builtin"):c(s,q)?u(t,e,"operator"):":"==l(e)?"erlang"==s?u(t,e,"builtin"):u(t,e,"function"):c(s,["true","false"])?u(t,e,"boolean"):c(s,["true","false"])?u(t,e,"boolean"):u(t,e,"atom")}var d=/[0-9]/,f=/[0-9a-zA-Z]/;return d.test(r)?(e.eatWhile(d),e.eat("#")?e.eatWhile(f)||e.backUp(1):e.eat(".")&&(e.eatWhile(d)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(d)||e.backUp(2):e.eatWhile(d)||e.backUp(1)):e.backUp(1)),u(t,e,"number")):n(e,I,P)?u(t,e,"open_paren"):n(e,D,A)?u(t,e,"close_paren"):i(e,L,E)?u(t,e,"separator"):i(e,j,z)?u(t,e,"operator"):u(t,e,null)}function n(e,t,r){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),c(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function i(e,t,r){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0r?!1:e.tokenStack[r-n]}function p(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=g(e.tokenStack,t),e.tokenStack=v(e.tokenStack))}function g(e,t){var r=e.length-1;return r>0&&"record"===e[r].type&&"dot"===t.type?e.pop():r>0&&"group"===e[r].type?(e.pop(),e.push(t)):e.push(t),e}function v(e){var t=e.length-1;if("dot"===e[t].type)return[];if("fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[e.length-1].token){case"}":return b(e,{g:["{"]});case"]":return b(e,{i:["["]});case")":return b(e,{i:["("]});case">>":return b(e,{i:["<<"]});case"end":return b(e,{i:["begin","case","fun","if","receive","try"]});case",":return b(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return b(e,{r:["when"],m:["try","if","case","receive"]});case";":return b(e,{E:["case","fun","if","receive","try","when"]});case"catch":return b(e,{e:["try"]});case"of":return b(e,{e:["case"]});case"after":return b(e,{e:["receive","try"]});default:return e}}function b(e,t){for(var r in t)for(var n=e.length-1,i=t[r],o=n-1;o>-1;o--)if(c(e[o].token,i)){var a=e.slice(0,o);switch(r){case"m":return a.concat(e[o]).concat(e[n]);case"r":return a.concat(e[n]);case"i":return a;case"g":return a.concat(m("group"));case"E":return a.concat(e[o]);case"e":return a.concat(e[o])}}return"E"==r?[]:e}function y(r,n){var i,o=t.indentUnit,a=x(n),s=h(r,1),l=h(r,2);return r.in_string||r.in_atom?e.Pass:l?"when"==s.token?s.column+o:"when"===a&&"function"===l.type?l.indent+o:"("===a&&"fun"===s.token?s.column+3:"catch"===a&&(i=_(r,["try"]))?i.column:c(a,["end","after","of"])?(i=_(r,["begin","case","fun","if","receive","try"]),i?i.column:e.Pass):c(a,A)?(i=_(r,P),i?i.column:e.Pass):c(s.token,[",","|","||"])||c(a,[",","|","||"])?(i=k(r),i?i.column+i.token.length:o):"->"==s.token?c(l.token,["receive","case","if","try"])?l.column+o+o:l.column+o:c(s.token,P)?s.column+s.token.length:(i=w(r),S(i)?i.column+o:0):0}function x(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return S(t)&&0===t.index?t[0]:""}function k(e){var t=e.tokenStack.slice(0,-1),r=C(t,"type",["open_paren"]);return S(t[r])?t[r]:!1}function w(e){var t=e.tokenStack,r=C(t,"type",["open_paren","separator","keyword"]),n=C(t,"type",["operator"]);return S(r)&&S(n)&&n>r?t[r+1]:S(r)?t[r]:!1}function _(e,t){var r=e.tokenStack,n=C(r,"token",t); - -return S(r[n])?r[n]:!1}function C(e,t,r){for(var n=e.length-1;n>-1;n--)if(c(e[n][t],r))return n;return!1}function S(e){return e!==!1&&null!=e}var T=["-type","-spec","-export_type","-opaque"],M=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],L=/[\->,;]/,E=["->",";",","],q=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],j=/[\+\-\*\/<>=\|:!]/,z=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],I=/[<\(\[\{]/,P=["<<","(","[","{"],D=/[>\)\]\}]/,A=["}","]",")",">>"],$=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],O=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],R=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,F=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return r(e,t)},indent:function(e,t){return y(e,t)},lineComment:"%"}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../javascript/javascript"),require("../css/css"),require("../htmlmixed/htmlmixed")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("jade",function(t){function r(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=Q.startState(),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function n(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var r=Q.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),r||!0}}function i(e,t){if(t.javaScriptArguments){if(0===t.javaScriptArgumentsDepth&&"("!==e.peek())return void(t.javaScriptArguments=!1);if("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth)return void(t.javaScriptArguments=!1);var r=Q.token(e,t.jsState);return r||!0}}function o(e){return e.match(/^yield\b/)?"keyword":void 0}function a(e){return e.match(/^(?:doctype) *([^\n]+)?/)?K:void 0}function s(e,t){return e.match("#{")?(t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"):void 0}function l(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"puncutation"}else"{"===e.peek()&&t.interpolationNesting++;return Q.token(e,t.jsState)||!0}}function c(e,t){return e.match(/^case\b/)?(t.javaScriptLine=!0,V):void 0}function u(e,t){return e.match(/^when\b/)?(t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,V):void 0}function d(e){return e.match(/^default\b/)?V:void 0}function f(e,t){return e.match(/^extends?\b/)?(t.restOfLine="string",V):void 0}function m(e,t){return e.match(/^append\b/)?(t.restOfLine="variable",V):void 0}function h(e,t){return e.match(/^prepend\b/)?(t.restOfLine="variable",V):void 0}function p(e,t){return e.match(/^block\b *(?:(prepend|append)\b)?/)?(t.restOfLine="variable",V):void 0}function g(e,t){return e.match(/^include\b/)?(t.restOfLine="string",V):void 0}function v(e,t){return e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include")?(t.isIncludeFiltered=!0,V):void 0}function b(e,t){if(t.isIncludeFiltered){var r=M(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",r}}function y(e,t){return e.match(/^mixin\b/)?(t.javaScriptLine=!0,V):void 0}function x(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match(/^\+#{/,!1)?(e.next(),t.mixinCallAfter=!0,s(e,t)):void 0}function k(e,t){return t.mixinCallAfter?(t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0):void 0}function w(e,t){return e.match(/^(if|unless|else if|else)\b/)?(t.javaScriptLine=!0,V):void 0}function _(e,t){return e.match(/^(- *)?(each|for)\b/)?(t.isEach=!0,V):void 0}function C(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,V;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}function S(e,t){return e.match(/^while\b/)?(t.javaScriptLine=!0,V):void 0}function T(e,t){var r;return(r=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))?(t.lastTag=r[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"):void 0}function M(r,n){if(r.match(/^:([\w\-]+)/)){var i;return t&&t.innerModes&&(i=t.innerModes(r.current().substring(1))),i||(i=r.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),F(r,n,i),"atom"}}function L(e,t){return e.match(/^(!?=|-)/)?(t.javaScriptLine=!0,"punctuation"):void 0}function E(e){return e.match(/^#([\w-]+)/)?Z:void 0}function q(e){return e.match(/^\.([\w-]+)/)?G:void 0}function j(e,t){return"("==e.peek()?(e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"):void 0}function z(e,t){if(t.isAttrs){if(X[e.peek()]&&t.attrsNest.push(X[e.peek()]),t.attrsNest[t.attrsNest.length-1]===e.peek())t.attrsNest.pop();else if(e.eat(")"))return t.isAttrs=!1,"punctuation";if(t.inAttributeName&&e.match(/^[^=,\)!]+/))return("="===e.peek()||"!"===e.peek())&&(t.inAttributeName=!1,t.jsState=Q.startState(),"script"===t.lastTag&&"type"===e.current().trim().toLowerCase()?t.attributeIsType=!0:t.attributeIsType=!1),"attribute";var r=Q.token(e,t.jsState);if(t.attributeIsType&&"string"===r&&(t.scriptType=e.current().toString()),0===t.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),t.inAttributeName=!0,t.attrValue="",e.backUp(e.current().length),z(e,t)}catch(n){}return t.attrValue+=e.current(),r||!0}}function I(e,t){return e.match(/^&attributes\b/)?(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"):void 0}function P(e){return e.sol()&&e.eatSpace()?"indent":void 0}function D(e,t){return e.match(/^ *\/\/(-)?([^\n]*)/)?(t.indentOf=e.indentation(),t.indentToken="comment","comment"):void 0}function A(e){return e.match(/^: */)?"colon":void 0}function $(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(F(e,t,"htmlmixed"),t.innerModeForLine=!0,H(e,t,!0)):void 0}function O(e,t){if(e.eat(".")){var r=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?r=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(r="css"),F(e,t,r),"dot"}}function R(e){return e.next(),null}function F(r,n,i){i=e.mimeModes[i]||i,i=t.innerModes?t.innerModes(i)||i:i,i=e.mimeModes[i]||i,i=e.getMode(t,i),n.indentOf=r.indentation(),i&&"null"!==i.name?n.innerMode=i:n.indentToken="string"}function H(e,t,r){return e.indentation()>t.indentOf||t.innerModeForLine&&!e.sol()||r?t.innerMode?(t.innerState||(t.innerState=t.innerMode.startState?t.innerMode.startState(e.indentation()):{}),e.hideFirstChars(t.indentOf+2,function(){return t.innerMode.token(e,t.innerState)||!0})):(e.skipToEnd(),t.indentToken):void(e.sol()&&(t.indentOf=1/0,t.indentToken=null,t.innerMode=null,t.innerState=null))}function N(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var r=t.restOfLine;return t.restOfLine="",r}}function B(){return new r}function U(e){return e.copy()}function W(e,t){var r=H(e,t)||N(e,t)||l(e,t)||b(e,t)||C(e,t)||z(e,t)||n(e,t)||i(e,t)||k(e,t)||o(e,t)||a(e,t)||s(e,t)||c(e,t)||u(e,t)||d(e,t)||f(e,t)||m(e,t)||h(e,t)||p(e,t)||g(e,t)||v(e,t)||y(e,t)||x(e,t)||w(e,t)||_(e,t)||S(e,t)||T(e,t)||M(e,t)||L(e,t)||E(e,t)||q(e,t)||j(e,t)||I(e,t)||P(e,t)||$(e,t)||D(e,t)||A(e,t)||O(e,t)||R(e,t);return r===!0?null:r}var V="keyword",K="meta",Z="builtin",G="qualifier",X={"{":"}","(":")","[":"]"},Q=e.getMode(t,"javascript");return r.prototype.copy=function(){var t=new r;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.intpolationNesting,t.jsState=e.copyState(Q,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:B,copyState:U,token:W}}),e.defineMIME("text/x-jade","jade")}); \ No newline at end of file diff --git a/mdeditor/static/css/editormd.css b/mdeditor/static/mdeditor/css/editormd.css similarity index 100% rename from mdeditor/static/css/editormd.css rename to mdeditor/static/mdeditor/css/editormd.css diff --git a/mdeditor/static/css/editormd.logo.css b/mdeditor/static/mdeditor/css/editormd.logo.css similarity index 100% rename from mdeditor/static/css/editormd.logo.css rename to mdeditor/static/mdeditor/css/editormd.logo.css diff --git a/mdeditor/static/css/editormd.logo.min.css b/mdeditor/static/mdeditor/css/editormd.logo.min.css similarity index 100% rename from mdeditor/static/css/editormd.logo.min.css rename to mdeditor/static/mdeditor/css/editormd.logo.min.css diff --git a/mdeditor/static/css/editormd.min.css b/mdeditor/static/mdeditor/css/editormd.min.css similarity index 100% rename from mdeditor/static/css/editormd.min.css rename to mdeditor/static/mdeditor/css/editormd.min.css diff --git a/mdeditor/static/css/editormd.preview.css b/mdeditor/static/mdeditor/css/editormd.preview.css similarity index 100% rename from mdeditor/static/css/editormd.preview.css rename to mdeditor/static/mdeditor/css/editormd.preview.css diff --git a/mdeditor/static/css/editormd.preview.min.css b/mdeditor/static/mdeditor/css/editormd.preview.min.css similarity index 100% rename from mdeditor/static/css/editormd.preview.min.css rename to mdeditor/static/mdeditor/css/editormd.preview.min.css diff --git a/mdeditor/static/css/style.css b/mdeditor/static/mdeditor/css/style.css similarity index 100% rename from mdeditor/static/css/style.css rename to mdeditor/static/mdeditor/css/style.css diff --git a/mdeditor/static/fonts/FontAwesome.otf b/mdeditor/static/mdeditor/fonts/FontAwesome.otf similarity index 100% rename from mdeditor/static/fonts/FontAwesome.otf rename to mdeditor/static/mdeditor/fonts/FontAwesome.otf diff --git a/mdeditor/static/fonts/editormd-logo.eot b/mdeditor/static/mdeditor/fonts/editormd-logo.eot similarity index 100% rename from mdeditor/static/fonts/editormd-logo.eot rename to mdeditor/static/mdeditor/fonts/editormd-logo.eot diff --git a/mdeditor/static/fonts/editormd-logo.svg b/mdeditor/static/mdeditor/fonts/editormd-logo.svg similarity index 100% rename from mdeditor/static/fonts/editormd-logo.svg rename to mdeditor/static/mdeditor/fonts/editormd-logo.svg diff --git a/mdeditor/static/fonts/editormd-logo.ttf b/mdeditor/static/mdeditor/fonts/editormd-logo.ttf similarity index 100% rename from mdeditor/static/fonts/editormd-logo.ttf rename to mdeditor/static/mdeditor/fonts/editormd-logo.ttf diff --git a/mdeditor/static/fonts/editormd-logo.woff b/mdeditor/static/mdeditor/fonts/editormd-logo.woff similarity index 100% rename from mdeditor/static/fonts/editormd-logo.woff rename to mdeditor/static/mdeditor/fonts/editormd-logo.woff diff --git a/mdeditor/static/fonts/fontawesome-webfont.eot b/mdeditor/static/mdeditor/fonts/fontawesome-webfont.eot similarity index 100% rename from mdeditor/static/fonts/fontawesome-webfont.eot rename to mdeditor/static/mdeditor/fonts/fontawesome-webfont.eot diff --git a/mdeditor/static/fonts/fontawesome-webfont.svg b/mdeditor/static/mdeditor/fonts/fontawesome-webfont.svg similarity index 100% rename from mdeditor/static/fonts/fontawesome-webfont.svg rename to mdeditor/static/mdeditor/fonts/fontawesome-webfont.svg diff --git a/mdeditor/static/fonts/fontawesome-webfont.ttf b/mdeditor/static/mdeditor/fonts/fontawesome-webfont.ttf similarity index 100% rename from mdeditor/static/fonts/fontawesome-webfont.ttf rename to mdeditor/static/mdeditor/fonts/fontawesome-webfont.ttf diff --git a/mdeditor/static/fonts/fontawesome-webfont.woff b/mdeditor/static/mdeditor/fonts/fontawesome-webfont.woff similarity index 100% rename from mdeditor/static/fonts/fontawesome-webfont.woff rename to mdeditor/static/mdeditor/fonts/fontawesome-webfont.woff diff --git a/mdeditor/static/fonts/fontawesome-webfont.woff2 b/mdeditor/static/mdeditor/fonts/fontawesome-webfont.woff2 similarity index 100% rename from mdeditor/static/fonts/fontawesome-webfont.woff2 rename to mdeditor/static/mdeditor/fonts/fontawesome-webfont.woff2 diff --git a/mdeditor/static/images/loading.gif b/mdeditor/static/mdeditor/images/loading.gif similarity index 100% rename from mdeditor/static/images/loading.gif rename to mdeditor/static/mdeditor/images/loading.gif diff --git a/mdeditor/static/images/loading@2x.gif b/mdeditor/static/mdeditor/images/loading@2x.gif similarity index 100% rename from mdeditor/static/images/loading@2x.gif rename to mdeditor/static/mdeditor/images/loading@2x.gif diff --git a/mdeditor/static/images/loading@3x.gif b/mdeditor/static/mdeditor/images/loading@3x.gif similarity index 100% rename from mdeditor/static/images/loading@3x.gif rename to mdeditor/static/mdeditor/images/loading@3x.gif diff --git a/mdeditor/static/images/logos/editormd-favicon-16x16.ico b/mdeditor/static/mdeditor/images/logos/editormd-favicon-16x16.ico similarity index 100% rename from mdeditor/static/images/logos/editormd-favicon-16x16.ico rename to mdeditor/static/mdeditor/images/logos/editormd-favicon-16x16.ico diff --git a/mdeditor/static/images/logos/editormd-favicon-24x24.ico b/mdeditor/static/mdeditor/images/logos/editormd-favicon-24x24.ico similarity index 100% rename from mdeditor/static/images/logos/editormd-favicon-24x24.ico rename to mdeditor/static/mdeditor/images/logos/editormd-favicon-24x24.ico diff --git a/mdeditor/static/images/logos/editormd-favicon-32x32.ico b/mdeditor/static/mdeditor/images/logos/editormd-favicon-32x32.ico similarity index 100% rename from mdeditor/static/images/logos/editormd-favicon-32x32.ico rename to mdeditor/static/mdeditor/images/logos/editormd-favicon-32x32.ico diff --git a/mdeditor/static/images/logos/editormd-favicon-48x48.ico b/mdeditor/static/mdeditor/images/logos/editormd-favicon-48x48.ico similarity index 100% rename from mdeditor/static/images/logos/editormd-favicon-48x48.ico rename to mdeditor/static/mdeditor/images/logos/editormd-favicon-48x48.ico diff --git a/mdeditor/static/images/logos/editormd-favicon-64x64.ico b/mdeditor/static/mdeditor/images/logos/editormd-favicon-64x64.ico similarity index 100% rename from mdeditor/static/images/logos/editormd-favicon-64x64.ico rename to mdeditor/static/mdeditor/images/logos/editormd-favicon-64x64.ico diff --git a/mdeditor/static/images/logos/editormd-logo-114x114.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-114x114.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-114x114.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-114x114.png diff --git a/mdeditor/static/images/logos/editormd-logo-120x120.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-120x120.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-120x120.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-120x120.png diff --git a/mdeditor/static/images/logos/editormd-logo-144x144.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-144x144.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-144x144.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-144x144.png diff --git a/mdeditor/static/images/logos/editormd-logo-16x16.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-16x16.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-16x16.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-16x16.png diff --git a/mdeditor/static/images/logos/editormd-logo-180x180.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-180x180.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-180x180.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-180x180.png diff --git a/mdeditor/static/images/logos/editormd-logo-240x240.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-240x240.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-240x240.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-240x240.png diff --git a/mdeditor/static/images/logos/editormd-logo-24x24.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-24x24.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-24x24.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-24x24.png diff --git a/mdeditor/static/images/logos/editormd-logo-320x320.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-320x320.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-320x320.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-320x320.png diff --git a/mdeditor/static/images/logos/editormd-logo-32x32.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-32x32.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-32x32.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-32x32.png diff --git a/mdeditor/static/images/logos/editormd-logo-48x48.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-48x48.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-48x48.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-48x48.png diff --git a/mdeditor/static/images/logos/editormd-logo-57x57.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-57x57.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-57x57.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-57x57.png diff --git a/mdeditor/static/images/logos/editormd-logo-64x64.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-64x64.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-64x64.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-64x64.png diff --git a/mdeditor/static/images/logos/editormd-logo-72x72.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-72x72.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-72x72.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-72x72.png diff --git a/mdeditor/static/images/logos/editormd-logo-96x96.png b/mdeditor/static/mdeditor/images/logos/editormd-logo-96x96.png similarity index 100% rename from mdeditor/static/images/logos/editormd-logo-96x96.png rename to mdeditor/static/mdeditor/images/logos/editormd-logo-96x96.png diff --git a/mdeditor/static/images/logos/vi.png b/mdeditor/static/mdeditor/images/logos/vi.png similarity index 100% rename from mdeditor/static/images/logos/vi.png rename to mdeditor/static/mdeditor/images/logos/vi.png diff --git a/mdeditor/static/js/editormd.js b/mdeditor/static/mdeditor/js/editormd.js similarity index 100% rename from mdeditor/static/js/editormd.js rename to mdeditor/static/mdeditor/js/editormd.js diff --git a/mdeditor/static/js/editormd.min.js b/mdeditor/static/mdeditor/js/editormd.min.js similarity index 100% rename from mdeditor/static/js/editormd.min.js rename to mdeditor/static/mdeditor/js/editormd.min.js diff --git a/mdeditor/static/js/jquery.min.js b/mdeditor/static/mdeditor/js/jquery.min.js similarity index 100% rename from mdeditor/static/js/jquery.min.js rename to mdeditor/static/mdeditor/js/jquery.min.js diff --git a/mdeditor/static/js/lib/codemirror/AUTHORS b/mdeditor/static/mdeditor/js/lib/codemirror/AUTHORS similarity index 100% rename from mdeditor/static/js/lib/codemirror/AUTHORS rename to mdeditor/static/mdeditor/js/lib/codemirror/AUTHORS diff --git a/mdeditor/static/js/lib/codemirror/LICENSE b/mdeditor/static/mdeditor/js/lib/codemirror/LICENSE similarity index 100% rename from mdeditor/static/js/lib/codemirror/LICENSE rename to mdeditor/static/mdeditor/js/lib/codemirror/LICENSE diff --git a/mdeditor/static/js/lib/codemirror/README.md b/mdeditor/static/mdeditor/js/lib/codemirror/README.md similarity index 100% rename from mdeditor/static/js/lib/codemirror/README.md rename to mdeditor/static/mdeditor/js/lib/codemirror/README.md diff --git a/mdeditor/static/js/lib/codemirror/addon/comment/comment.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/comment.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/comment/comment.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/comment.js diff --git a/mdeditor/static/js/lib/codemirror/addon/comment/continuecomment.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/continuecomment.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/comment/continuecomment.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/continuecomment.js diff --git a/mdeditor/static/js/lib/codemirror/addon/dialog/dialog.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/dialog/dialog.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/dialog/dialog.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/dialog/dialog.css diff --git a/mdeditor/static/js/lib/codemirror/addon/dialog/dialog.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/dialog/dialog.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/dialog/dialog.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/dialog/dialog.js diff --git a/mdeditor/static/js/lib/codemirror/addon/display/fullscreen.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/display/fullscreen.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/display/fullscreen.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/display/fullscreen.css diff --git a/mdeditor/static/js/lib/codemirror/addon/display/fullscreen.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/display/fullscreen.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/display/fullscreen.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/display/fullscreen.js diff --git a/mdeditor/static/js/lib/codemirror/addon/display/panel.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/display/panel.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/display/panel.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/display/panel.js diff --git a/mdeditor/static/js/lib/codemirror/addon/display/placeholder.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/display/placeholder.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/display/placeholder.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/display/placeholder.js diff --git a/mdeditor/static/js/lib/codemirror/addon/display/rulers.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/display/rulers.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/display/rulers.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/display/rulers.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/closebrackets.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/closebrackets.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/closebrackets.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/closebrackets.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/closetag.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/closetag.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/closetag.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/closetag.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/continuelist.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/continuelist.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/continuelist.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/continuelist.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/matchbrackets.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/matchbrackets.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/matchbrackets.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/matchbrackets.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/matchtags.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/matchtags.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/matchtags.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/matchtags.js diff --git a/mdeditor/static/js/lib/codemirror/addon/edit/trailingspace.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/trailingspace.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/edit/trailingspace.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/edit/trailingspace.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/brace-fold.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/brace-fold.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/brace-fold.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/brace-fold.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/comment-fold.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/comment-fold.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/comment-fold.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/comment-fold.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/foldcode.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldcode.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/foldcode.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldcode.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/foldgutter.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldgutter.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/foldgutter.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldgutter.css diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/foldgutter.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldgutter.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/foldgutter.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldgutter.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/indent-fold.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/indent-fold.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/indent-fold.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/indent-fold.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/markdown-fold.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/markdown-fold.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/markdown-fold.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/markdown-fold.js diff --git a/mdeditor/static/js/lib/codemirror/addon/fold/xml-fold.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/xml-fold.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/fold/xml-fold.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/xml-fold.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/anyword-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/anyword-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/anyword-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/anyword-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/css-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/css-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/css-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/css-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/html-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/html-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/html-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/html-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/javascript-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/javascript-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/javascript-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/javascript-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/show-hint.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/show-hint.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/show-hint.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/show-hint.css diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/show-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/show-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/show-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/show-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/sql-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/sql-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/sql-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/sql-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/hint/xml-hint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/xml-hint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/hint/xml-hint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/xml-hint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/coffeescript-lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/coffeescript-lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/coffeescript-lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/coffeescript-lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/css-lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/css-lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/css-lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/css-lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/javascript-lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/javascript-lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/javascript-lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/javascript-lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/json-lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/json-lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/json-lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/json-lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/lint.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/lint.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/lint.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/lint.css diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/lint/yaml-lint.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/yaml-lint.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/lint/yaml-lint.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/lint/yaml-lint.js diff --git a/mdeditor/static/js/lib/codemirror/addon/merge/merge.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/merge/merge.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/merge/merge.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/merge/merge.css diff --git a/mdeditor/static/js/lib/codemirror/addon/merge/merge.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/merge/merge.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/merge/merge.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/merge/merge.js diff --git a/mdeditor/static/js/lib/codemirror/addon/mode/loadmode.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/loadmode.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/mode/loadmode.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/loadmode.js diff --git a/mdeditor/static/js/lib/codemirror/addon/mode/multiplex.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/multiplex.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/mode/multiplex.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/multiplex.js diff --git a/mdeditor/static/js/lib/codemirror/addon/mode/multiplex_test.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/multiplex_test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/mode/multiplex_test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/multiplex_test.js diff --git a/mdeditor/static/js/lib/codemirror/addon/mode/overlay.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/overlay.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/mode/overlay.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/overlay.js diff --git a/mdeditor/static/js/lib/codemirror/addon/mode/simple.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/simple.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/mode/simple.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/mode/simple.js diff --git a/mdeditor/static/js/lib/codemirror/addon/runmode/colorize.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/colorize.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/runmode/colorize.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/colorize.js diff --git a/mdeditor/static/js/lib/codemirror/addon/runmode/runmode-standalone.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode-standalone.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/runmode/runmode-standalone.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode-standalone.js diff --git a/mdeditor/static/js/lib/codemirror/addon/runmode/runmode.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/runmode/runmode.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode.js diff --git a/mdeditor/static/js/lib/codemirror/addon/runmode/runmode.node.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode.node.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/runmode/runmode.node.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode.node.js diff --git a/mdeditor/static/js/lib/codemirror/addon/scroll/annotatescrollbar.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/annotatescrollbar.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/scroll/annotatescrollbar.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/annotatescrollbar.js diff --git a/mdeditor/static/js/lib/codemirror/addon/scroll/scrollpastend.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/scrollpastend.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/scroll/scrollpastend.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/scrollpastend.js diff --git a/mdeditor/static/js/lib/codemirror/addon/scroll/simplescrollbars.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/simplescrollbars.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/scroll/simplescrollbars.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/simplescrollbars.css diff --git a/mdeditor/static/js/lib/codemirror/addon/scroll/simplescrollbars.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/simplescrollbars.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/scroll/simplescrollbars.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/scroll/simplescrollbars.js diff --git a/mdeditor/static/js/lib/codemirror/addon/search/match-highlighter.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/search/match-highlighter.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/search/match-highlighter.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/search/match-highlighter.js diff --git a/mdeditor/static/js/lib/codemirror/addon/search/matchesonscrollbar.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/search/matchesonscrollbar.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/search/matchesonscrollbar.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/search/matchesonscrollbar.css diff --git a/mdeditor/static/js/lib/codemirror/addon/search/matchesonscrollbar.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/search/matchesonscrollbar.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/search/matchesonscrollbar.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/search/matchesonscrollbar.js diff --git a/mdeditor/static/js/lib/codemirror/addon/search/search.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/search/search.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/search/search.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/search/search.js diff --git a/mdeditor/static/js/lib/codemirror/addon/search/searchcursor.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/search/searchcursor.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/search/searchcursor.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/search/searchcursor.js diff --git a/mdeditor/static/js/lib/codemirror/addon/selection/active-line.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/active-line.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/selection/active-line.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/active-line.js diff --git a/mdeditor/static/js/lib/codemirror/addon/selection/mark-selection.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/mark-selection.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/selection/mark-selection.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/mark-selection.js diff --git a/mdeditor/static/js/lib/codemirror/addon/selection/selection-pointer.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/selection-pointer.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/selection/selection-pointer.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/selection-pointer.js diff --git a/mdeditor/static/js/lib/codemirror/addon/tern/tern.css b/mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/tern.css similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/tern/tern.css rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/tern.css diff --git a/mdeditor/static/js/lib/codemirror/addon/tern/tern.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/tern.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/tern/tern.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/tern.js diff --git a/mdeditor/static/js/lib/codemirror/addon/tern/worker.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/worker.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/tern/worker.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/tern/worker.js diff --git a/mdeditor/static/js/lib/codemirror/addon/wrap/hardwrap.js b/mdeditor/static/mdeditor/js/lib/codemirror/addon/wrap/hardwrap.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/addon/wrap/hardwrap.js rename to mdeditor/static/mdeditor/js/lib/codemirror/addon/wrap/hardwrap.js diff --git a/mdeditor/static/mdeditor/js/lib/codemirror/addons.min.js b/mdeditor/static/mdeditor/js/lib/codemirror/addons.min.js new file mode 100755 index 0000000..5d98e6c --- /dev/null +++ b/mdeditor/static/mdeditor/js/lib/codemirror/addons.min.js @@ -0,0 +1,4 @@ +/*! Editor.md v1.5.0 | addons.min.js | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */ +!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){e.defineOption("showTrailingSpace",!1,function(t, i, o){o==e.Init&&(o=!1),o&&!i?t.removeOverlay("trailingspace"):!o&&i&&t.addOverlay({token:function(e){for(var t=e.string.length,i=t; i&&/\s/.test(e.string.charAt(i-1)); --i);return i>e.pos?(e.pos=i,null):(e.pos=t,"trailingspace")},name:"trailingspace"})})}),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){function t(e, t, i){var o,r=e.getWrapperElement();return o=r.appendChild(document.createElement("div")),i?o.className="CodeMirror-dialog CodeMirror-dialog-bottom":o.className="CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?o.innerHTML=t:o.appendChild(t),o}function i(e, t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(o, r, n){function a(e){if("string"==typeof e)h.value=e;else{if(c)return;c=!0,l.parentNode.removeChild(l),d.focus(),n.onClose&&n.onClose(l)}}n||(n={}),i(this,null);var s,l=t(this,o,n.bottom),c=!1,d=this,h=l.getElementsByTagName("input")[0];return h?(n.value&&(h.value=n.value,h.select()),n.onInput&&e.on(h,"input",function(e){n.onInput(e,h.value,a)}),n.onKeyUp&&e.on(h,"keyup",function(e){n.onKeyUp(e,h.value,a)}),e.on(h,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,h.value,a)||((27==t.keyCode||n.closeOnEnter!==!1&&13==t.keyCode)&&(h.blur(),e.e_stop(t),a()),13==t.keyCode&&r(h.value,t))}),n.closeOnBlur!==!1&&e.on(h,"blur",a),h.focus()):(s=l.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){a(),d.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",a),s.focus()),a}),e.defineExtension("openConfirm",function(o,r,n){function a(){c||(c=!0,s.parentNode.removeChild(s),d.focus())}i(this,null);var s=t(this,o,n&&n.bottom),l=s.getElementsByTagName("button"),c=!1,d=this,h=1;l[0].focus();for(var u=0; u=h&&a()},200)}),e.on(f,"focus",function(){++h})}}),e.defineExtension("openNotification",function(o, r){function n(){l||(l=!0,clearTimeout(a),s.parentNode.removeChild(s))}i(this,n);var a,s=t(this,o,r&&r.bottom),l=!1,c=r&&"undefined"!=typeof r.duration?r.duration:5e3;return e.on(s,"click",function(t){e.e_preventDefault(t),n()}),c&&(a=setTimeout(n,c)),n})}),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";function t(e, t, r, n){if(this.atOccurrence=!1,this.doc=e,null==n&&"string"==typeof t&&(n=!1),r=r?e.clipPos(r):o(0,0),this.pos={from:r,to:r},"string"!=typeof t)t.global||(t=new RegExp(t.source,t.ignoreCase?"ig":"g")),this.matches=function(i, r){if(i){t.lastIndex=0;for(var n,a,s=e.getLine(r.line).slice(0,r.ch),l=0;;){t.lastIndex=l;var c=t.exec(s);if(!c)break;if(n=c,a=n.index,l=n.index+(n[0].length||1),l==s.length)break}var d=n&&n[0].length||0;d||(0==a&&0==s.length?n=void 0:a!=e.getLine(r.line).length&&d++)}else{t.lastIndex=r.ch;var s=e.getLine(r.line),n=t.exec(s),d=n&&n[0].length||0,a=n&&n.index;a+d==s.length||d||(d=1)}return n&&d?{from:o(r.line,a),to:o(r.line,a+d),match:n}:void 0};else{var a=t;n&&(t=t.toLowerCase());var s=n?function(e){return e.toLowerCase()}:function(e){return e},l=t.split("\n");if(1==l.length)t.length?this.matches=function(r,n){if(r){var l=e.getLine(n.line).slice(0,n.ch),c=s(l),d=c.lastIndexOf(t);if(d>-1)return d=i(l,c,d),{from:o(n.line,d),to:o(n.line,d+a.length)}}else{var l=e.getLine(n.line).slice(n.ch),c=s(l),d=c.indexOf(t);if(d>-1)return d=i(l,c,d)+n.ch,{from:o(n.line,d),to:o(n.line,d+a.length)}}}:this.matches=function(){};else{var c=a.split("\n");this.matches=function(t,i){var r=l.length-1;if(t){if(i.line-(l.length-1)=1;--d,--a)if(l[d]!=s(e.getLine(a)))return;var h=e.getLine(a),u=h.length-c[0].length;if(s(h.slice(u))!=l[0])return;return{from:o(a,u),to:n}}if(!(i.line+(l.length-1)>e.lastLine())){var h=e.getLine(i.line),u=h.length-c[0].length;if(s(h.slice(u))==l[0]){for(var f=o(i.line,u),a=i.line+1,d=1;r>d;++d,++a)if(l[d]!=s(e.getLine(a)))return;if(s(e.getLine(a).slice(0,c[r].length))==l[r])return{from:f,to:o(a,c[r].length)}}}}}}}function i(e,t,i){if(e.length==t.length)return i;for(var o=Math.min(i,e.length);;){var r=e.slice(0,o).toLowerCase().length;if(i>r)++o;else{if(!(r>i))return o;--o}}}var o=e.Pos;t.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=o(e,0);return i.pos={from:t,to:t},i.atOccurrence=!1,!1}for(var i=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return t(0);r=o(r.line-1,this.doc.getLine(r.line-1).length)}else{var n=this.doc.lineCount();if(r.line==n-1)return t(n);r=o(r.line+1,0)}}},from:function(){return this.atOccurrence?this.pos.from:void 0},to:function(){return this.atOccurrence?this.pos.to:void 0},replace:function(t){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to),this.pos.to=o(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e, i, o){return new t(this.doc,e,i,o)}),e.defineDocExtension("getSearchCursor",function(e, i, o){return new t(this,e,i,o)}),e.defineExtension("selectMatches",function(t, i){for(var o,r=[],n=this.getSearchCursor(t,this.getCursor("from"),i); (o=n.findNext())&&!(e.cmpPos(n.to(),this.getCursor("to"))>0);)r.push({anchor:n.from(),head:n.to()});r.length&&this.setSelections(r,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("./lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["./lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e, t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var i=e.exec(t.string);return i&&i.index==t.pos?(t.pos+=i[0].length,"searching"):void(i?t.pos=i.index:t.skipToEnd())}}}function i(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new i)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function n(e,t,i){return e.getSearchCursor(t,i,r(t))}function a(e,t,i,o,r){e.openDialog?e.openDialog(t,r,{value:o}):r(prompt(i,o))}function s(e,t,i,o){e.openConfirm?e.openConfirm(t,o):confirm(i)&&o[0]()}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(i){}return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,i){var n=o(e);return n.query?d(e,i):void a(e,f,"Search for:",e.getSelection(),function(o){e.operation(function(){o&&!n.query&&(n.query=l(o),e.removeOverlay(n.overlay,r(n.query)),n.overlay=t(n.query,r(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,r(n.query))),n.posFrom=n.posTo=e.getCursor(),d(e,i))})})}function d(t,i){t.operation(function(){var r=o(t),a=n(t,r.query,i?r.posFrom:r.posTo);(a.find(i)||(a=n(t,r.query,i?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),a.find(i)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()}),r.posFrom=a.from(),r.posTo=a.to())})}function h(e){e.operation(function(){var t=o(e);t.query&&(t.query=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function u(e,t){e.getOption("readOnly")||a(e,g,"Replace:",e.getSelection(),function(i){i&&(i=l(i),a(e,p,"Replace with:","",function(o){if(t)e.operation(function(){for(var t=n(e,i);t.findNext();)if("string"!=typeof i){var r=e.getRange(t.from(),t.to()).match(i);t.replace(o.replace(/\$(\d)/g,function(e,t){return r[t]}))}else t.replace(o)});else{h(e);var r=n(e,i,e.getCursor()),a=function(){var t,o=r.from();!(t=r.findNext())&&(r=n(e,i),!(t=r.findNext())||o&&r.from().line==o.line&&r.from().ch==o.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),s(e,m,"Replace?",[function(){l(t)},a]))},l=function(e){r.replace("string"==typeof i?o:o.replace(/\$(\d)/g,function(t,i){return e[i]})),a()};a()}}))})}var f='Search: (Use /re/ syntax for regexp search)',g='Replace: (Use /re/ syntax for regexp search)',p='With: ',m="Replace? ";e.commands.find=function(e){h(e),c(e)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=h,e.commands.replace=u,e.commands.replaceAll=function(e){u(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(e){"use strict";function t(e, t){function i(e){clearTimeout(o.doRedraw),o.doRedraw=setTimeout(function(){o.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var o=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(o.doUpdate),o.doUpdate=setTimeout(function(){o.computeScale()&&i(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),t.listenForChanges!==!1&&e.on("change",this.changeHandler=function(){i(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.heightAtLine(e.lastLine()+1,"local");return t!=this.hScale?(this.hScale=t,!0):void 0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){e!==!1&&this.computeScale();var t=this.cm,i=this.hScale,o=document.createDocumentFragment(),r=this.annotations;if(t.display.barWidth)for(var n,a=0; ac+.9));)s=r[++a],c=t.charCoords(s.to,"local").bottom*i;if(c!=l){var d=Math.max(c-l,3),h=o.appendChild(document.createElement("div"));h.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(l+this.buttonHeight)+"px; height: "+d+"px",h.className=this.options.className}}this.div.textContent="",this.div.appendChild(o)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("./lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["./lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e, t, i, o){this.cm=e;var r={listenForChanges:!1};for(var n in o)r[n]=o[n];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=i,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e, t){a.onChange(t)})}function i(e,t,i){return t>=e?e:Math.max(t,e+i)}e.defineExtension("showMatchesOnScrollbar",function(e,i,o){return"string"==typeof o&&(o={className:o}),o||(o={}),new t(this,e,i,o)});var o=1e3;t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to)break;i.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold);r.findNext();){var i={from:r.from(),to:r.to()};if(i.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>o)break}this.gap=null}},t.prototype.onChange=function(t){var o=t.from.line,r=e.changeEnd(t).line,n=r-t.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,o,n),t.from.line),this.gap.to=Math.max(i(this.gap.to,o,n),t.from.line)):this.gap={from:t.from.line,to:r+1},n)for(var a=0; ac.ch&&(v=v.slice(0,v.length-d.end+c.ch));var w=v.toLowerCase();if(!v||"string"==d.type&&(d.end!=c.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&"closeTag"==u.type||d.string.indexOf("/")==d.string.length-1||p&&r(p,w)>-1||n(t,v,c,u,!0))return e.Pass;var b=m&&r(m,w)>-1;o[l]={indent:b,text:">"+(b?"\n\n":"")+"",newPos:b?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}for(var l=i.length-1;l>=0;l--){var y=o[l];t.replaceRange(y.text,i[l].head,i[l].anchor,"+insert");var k=t.listSelections().slice(0);k[l]={head:y.newPos,anchor:y.newPos},t.setSelections(k),y.indent&&(t.indentLine(y.newPos.line,null,!0),t.indentLine(y.newPos.line+1,null,!0))}}function i(t,i){for(var o=t.listSelections(),r=[],a=i?"/":"";else{if("htmlmixed"!=t.getMode().name||"css"!=d.mode.name)return e.Pass;r[s]=a+"style>"}else{if(!h.context||!h.context.tagName||n(t,h.context.tagName,l,h))return e.Pass;r[s]=a+h.context.tagName+">"}}t.replaceSelections(r),o=t.listSelections();for(var s=0;si;++i)if(e[i]==t)return i;return-1}function n(t,i,o,r,n){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,o.line+500),s=e.scanForClosingTag(t,o,null,a);if(!s||s.tag!=i)return!1;for(var l=r.context,c=n?1:0;l&&l.tagName==i;l=l.prev)++c;o=s.to;for(var d=1;c>d;d++){var h=e.scanForClosingTag(t,o,null,a);if(!h||h.tag!=i)return!1;o=h.to}return!0}e.defineOption("autoCloseTags",!1,function(i,r,n){if(n!=e.Init&&n&&i.removeKeyMap("autoCloseTags"),r){var a={name:"autoCloseTags"};("object"!=typeof r||r.whenClosing)&&(a["'/'"]=function(e){return o(e)}),("object"!=typeof r||r.whenOpening)&&(a["'>'"]=function(e){return t(e)}),i.addKeyMap(a)}});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["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"];e.commands.closeTag=function(e){return i(e)}}),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";function t(t, r, n, a){function s(e){var i=l(t,r);if(!i||i.to.line-i.from.linet.firstLine();)r=e.Pos(r.line-1,0),d=s(!1);if(d&&!d.cleared&&"unfold"!==a){var h=i(t,n);e.on(h,"mousedown",function(t){u.clear(),e.e_preventDefault(t)});var u=t.markText(d.from,d.to,{replacedWith:h,clearOnEnter:!0,__isFold:!0});u.on("clear",function(i,o){e.signal(t,"unfold",t,i,o)}),e.signal(t,"fold",t,d.from,d.to)}}function i(e,t){var i=o(e,t,"widget");if("string"==typeof i){var r=document.createTextNode(i);i=document.createElement("span"),i.appendChild(r),i.className="CodeMirror-foldmarker"}return i}function o(e,t,i){if(t&&void 0!==t[i])return t[i];var o=e.options.foldOptions;return o&&void 0!==o[i]?o[i]:r[i]}e.newFoldFunction=function(e,i){return function(o,r){t(o,r,{rangeFinder:e,widget:i})}},e.defineExtension("foldCode",function(e,i,o){t(this,e,i,o)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),i=0;i=i;i++)t.foldCode(e.Pos(i,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var i=t.firstLine(),o=t.lastLine();o>=i;i++)t.foldCode(e.Pos(i,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t, i){for(var o=0; o=s&&(i=r(n.indicatorOpen))}e.setGutterMarker(t,n.gutter,i),++a})}function a(e){var t=e.getViewport(),i=e.state.foldGutter;i&&(e.operation(function(){n(e,t.from,t.to)}),i.from=t.from,i.to=t.to)}function s(e,t,i){var o=e.state.foldGutter;if(o){var r=o.options;i==r.gutter&&e.foldCode(h(t,0),r.rangeFinder)}}function l(e){var t=e.state.foldGutter;if(t){var i=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},i.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var i=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var i=e.getViewport();t.from==t.to||i.from-t.to>20||t.from-i.to>20?a(e):e.operation(function(){i.fromt.to&&(n(e,t.to,i.to),t.to=i.to)})},i.updateViewportTimeSpan||400)}}function d(e,t){var i=e.state.foldGutter;if(i){var o=t.line;o>=i.from&&o=l; ++l){var d=t.getLine(l),h=n(d);if(h>a)s=l;else if(/\S/.test(d))break}return s?{from:e.Pos(i.line,r.length),to:e.Pos(s,t.getLine(s).length)}:void 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.registerHelper("fold","brace",function(t, i){function o(o){for(var r=i.ch,l=0;;){var c=0>=r?-1:s.lastIndexOf(o,r-1);if(-1!=c){if(1==l&&c=g; ++g)for(var p=t.getLine(g),m=g==a?r:0;;){var v=p.indexOf(l,m),w=p.indexOf(c,m);if(0>v&&(v=p.length),0>w&&(w=p.length),m=Math.min(v,w),m==p.length)break;if(t.getTokenTypeAt(e.Pos(g,m+1))==n)if(m==v)++u;else if(!--u){d=g,h=m;break e}++m}if(null!=d&&(a!=d||h!=r))return{from:e.Pos(a,r),to:e.Pos(d,h)}}}),e.registerHelper("fold","import",function(t,i){function o(i){if(it.lastLine())return null;var o=t.getTokenAt(e.Pos(i,1));if(/\S/.test(o.string)||(o=t.getTokenAt(e.Pos(i,o.end+1))),"keyword"!=o.type||"import"!=o.string)return null;for(var r=i,n=Math.min(t.lastLine(),i+10);n>=r;++r){var a=t.getLine(r),s=a.indexOf(";");if(-1!=s)return{startCh:o.end,end:e.Pos(r,s)}}}var r,i=i.line,n=o(i);if(!n||o(i-1)||(r=o(i-2))&&r.end.line==i-1)return null;for(var a=n.end;;){var s=o(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(i,n.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t, i){function o(i){if(it.lastLine())return null;var o=t.getTokenAt(e.Pos(i,1));return/\S/.test(o.string)||(o=t.getTokenAt(e.Pos(i,o.end+1))),"meta"==o.type&&"#include"==o.string.slice(0,8)?o.start+8:void 0}var i=i.line,r=o(i);if(null==r||null!=o(i-1))return null;for(var n=i;;){var a=o(n+1);if(null==a)break;++n}return{from:e.Pos(i,r+1),to:t.clipPos(e.Pos(n))}})}),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";function t(e, t){return e.line-t.line||e.ch-t.ch}function i(e, t, i, o){this.line=t,this.ch=i,this.cm=e,this.text=e.getLine(t),this.min=o?o.from:e.firstLine(),this.max=o?o.to-1:e.lastLine()}function o(e, t){var i=e.cm.getTokenTypeAt(u(e.line,t));return i&&/\btag\b/.test(i)}function r(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function n(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}{if(o(e,t+1)){var i=e.text.lastIndexOf("/",t),n=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(n(e))continue;return}if(o(e,t+1)){p.lastIndex=t,e.ch=t;var i=p.exec(e.text);if(i&&i.index==t)return i}else e.ch=t}}function l(e){for(;;){p.lastIndex=e.ch;var t=p.exec(e.text);if(!t){if(r(e))continue;return}{if(o(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(n(e))continue;return}{if(o(e,t+1)){var i=e.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}}function d(e,t){for(var i=[];;){var o,r=l(e),n=e.line,s=e.ch-(r?r[0].length:0);if(!r||!(o=a(e)))return;if("selfClose"!=o)if(r[1]){for(var c=i.length-1;c>=0;--c)if(i[c]==r[2]){i.length=c;break}if(0>c&&(!t||t==r[2]))return{tag:r[2],from:u(n,s),to:u(e.line,e.ch)}}else i.push(r[2])}}function h(e,t){for(var i=[];;){var o=c(e);if(!o)return;if("selfClose"!=o){var r=e.line,n=e.ch,a=s(e);if(!a)return;if(a[1])i.push(a[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==a[2]){i.length=l;break}if(0>l&&(!t||t==a[2]))return{tag:a[2],from:u(e.line,e.ch),to:u(r,n)}}}else s(e)}}var u=e.Pos,f="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",g=f+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+f+"]["+g+"]*)","g");e.registerHelper("fold","xml",function(e,t){for(var o=new i(e,t.line,0);;){var r,n=l(o);if(!n||o.line!=t.line||!(r=a(o)))return;if(!n[1]&&"selfClose"!=r){var t=u(o.line,o.ch),s=d(o,n[2]);return s&&{from:t,to:s.from}}}}),e.findMatchingTag=function(e,o,r){var n=new i(e,o.line,o.ch,r);if(-1!=n.text.indexOf(">")||-1!=n.text.indexOf("<")){var l=a(n),c=l&&u(n.line,n.ch),f=l&&s(n);if(l&&f&&!(t(n,o)>0)){var g={from:u(n.line,n.ch),to:c,tag:f[2]};return"selfClose"==l?{open:g,close:null,at:"open"}:f[1]?{open:h(n,f[2]),close:g,at:"close"}:(n=new i(e,c.line,c.ch,r),{open:g,close:d(n,f[2]),at:"open"})}}},e.findEnclosingTag=function(e, t, o){for(var r=new i(e,t.line,t.ch,o);;){var n=h(r);if(!n)break;var a=new i(e,t.line,t.ch,o),s=d(a,n.tag);if(s)return{open:n,close:s}}},e.scanForClosingTag=function(e, t, o, r){var n=new i(e,t.line,t.ch,r?{from:0,to:r}:null);return d(n,o)}}),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.registerHelper("fold","markdown",function(t, i){function o(i){var o=t.getTokenTypeAt(e.Pos(i,0));return o&&/\bheader\b/.test(o)}function r(e, t, i){var r=t&&t.match(/^#+/);return r&&o(e)?r[0].length:(r=i&&i.match(/^[=\-]+\s*$/),r&&o(e+1)?"="==i[0]?1:2:n)}var n=100,a=t.getLine(i.line),s=t.getLine(i.line+1),l=r(i.line,a,s);if(l===n)return void 0;for(var c=t.lastLine(),d=i.line,h=t.getLine(d+2); c>d&&!(r(d+1,s,h)<=l);)++d,s=h,h=t.getLine(d+2);return{from:e.Pos(i.line,a.length),to:e.Pos(d,t.getLine(d).length)}})}),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.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t, i){var o=t.getModeAt(i),r=o.blockCommentStart,n=o.blockCommentEnd;if(r&&n){for(var a,s=i.line,l=t.getLine(s),c=i.ch,d=0;;){var h=0>=c?-1:l.lastIndexOf(r,c-1);if(-1!=h){if(1==d&&h=m; ++m)for(var v=t.getLine(m),w=m==s?a:0;;){var b=v.indexOf(r,w),y=v.indexOf(n,w);if(0>b&&(b=v.length),0>y&&(y=v.length),w=Math.min(b,y),w==v.length)break;if(w==b)++g;else if(!--g){u=m,f=w;break e}++w}if(null!=u&&(s!=u||f!=a))return{from:e.Pos(s,a),to:e.Pos(u,f)}}})}),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.overlayMode=function(t, i, o){return{startState:function(){return{base:e.startState(t),overlay:e.startState(i),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:e.copyState(t,o.base),overlay:e.copyState(i,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(e, r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)=i.ch+1)return/\bstring2?\b/.test(s);a.start=a.pos}}function o(o, r){for(var n={name:"autoCloseBrackets",Backspace:function(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),n=0;n=0;n--){var s=r[n].head;i.replaceRange("",c(s.line,s.ch-1),c(s.line,s.ch+1))}}},a="",s=0; s1&&r.indexOf(t)>=0&&n.getRange(c(p.line,p.ch-2),p)==t+t&&(p.ch<=2||n.getRange(c(p.line,p.ch-3),c(p.line,p.ch-2))!=t))f="addFour";else if('"'==t||"'"==t){if(e.isWordChar(d)||!i(n,p,t))return e.Pass;f="both"}else{if(!(n.getLine(p.line).length==p.ch||a.indexOf(d)>=0||l.test(d)))return e.Pass;f="both"}else f="surround";if(s){if(s!=f)return e.Pass}else s=f}n.operation(function(){if("skip"==s)n.execCommand("goCharRight");else if("skipThree"==s)for(var e=0;3>e;e++)n.execCommand("goCharRight");else if("surround"==s){for(var i=n.getSelections(),e=0;es&&e.addOverlay(t.overlay=a(n.slice(s,l),i,t.style)))}var c=e.getCursor("from"),d=e.getCursor("to");if(c.line==d.line&&(!t.wordsOnly||r(e,c,d))){var h=e.getRange(c,d).replace(/^\s+|\s+$/g,"");h.length>=t.minChars&&e.addOverlay(t.overlay=a(h,!1,t.style))}})}function r(e,t,i){var o=e.getRange(t,i);if(null!==o.match(/^\w+$/)){if(t.ch>0){var r={line:t.line,ch:t.ch-1},n=e.getRange(r,t);if(null===n.match(/\W/))return!1}if(i.ch - + diff --git a/mdeditor/static/js/lib/codemirror/mode/asterisk/asterisk.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/asterisk/asterisk.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/asterisk/asterisk.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/asterisk/asterisk.js diff --git a/mdeditor/static/js/lib/codemirror/mode/asterisk/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/asterisk/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/asterisk/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/asterisk/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/clike/clike.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/clike.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/clike/clike.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/clike.js diff --git a/mdeditor/static/js/lib/codemirror/mode/clike/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/clike/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/clike/scala.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/scala.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/clike/scala.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/clike/scala.html diff --git a/mdeditor/static/js/lib/codemirror/mode/clojure/clojure.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/clojure/clojure.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/clojure/clojure.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/clojure/clojure.js diff --git a/mdeditor/static/js/lib/codemirror/mode/clojure/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/clojure/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/clojure/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/clojure/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/cobol/cobol.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/cobol/cobol.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/cobol/cobol.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/cobol/cobol.js diff --git a/mdeditor/static/js/lib/codemirror/mode/cobol/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/cobol/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/cobol/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/cobol/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/coffeescript/coffeescript.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/coffeescript/coffeescript.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/coffeescript/coffeescript.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/coffeescript/coffeescript.js diff --git a/mdeditor/static/js/lib/codemirror/mode/coffeescript/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/coffeescript/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/coffeescript/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/coffeescript/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/commonlisp/commonlisp.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/commonlisp/commonlisp.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/commonlisp/commonlisp.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/commonlisp/commonlisp.js diff --git a/mdeditor/static/js/lib/codemirror/mode/commonlisp/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/commonlisp/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/commonlisp/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/commonlisp/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/css/css.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/css.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/css.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/css.js diff --git a/mdeditor/static/js/lib/codemirror/mode/css/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/css/less.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/less.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/less.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/less.html diff --git a/mdeditor/static/js/lib/codemirror/mode/css/less_test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/less_test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/less_test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/less_test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/css/scss.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/scss.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/scss.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/scss.html diff --git a/mdeditor/static/js/lib/codemirror/mode/css/scss_test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/scss_test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/scss_test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/scss_test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/css/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/css/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/css/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/css/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/cypher/cypher.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/cypher/cypher.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/cypher/cypher.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/cypher/cypher.js diff --git a/mdeditor/static/js/lib/codemirror/mode/cypher/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/cypher/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/cypher/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/cypher/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/d/d.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/d/d.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/d/d.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/d/d.js diff --git a/mdeditor/static/js/lib/codemirror/mode/d/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/d/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/d/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/d/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/dart/dart.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dart/dart.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dart/dart.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dart/dart.js diff --git a/mdeditor/static/js/lib/codemirror/mode/dart/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dart/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dart/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dart/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/diff/diff.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/diff/diff.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/diff/diff.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/diff/diff.js diff --git a/mdeditor/static/js/lib/codemirror/mode/diff/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/diff/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/diff/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/diff/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/django/django.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/django/django.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/django/django.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/django/django.js diff --git a/mdeditor/static/js/lib/codemirror/mode/django/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/django/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/django/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/django/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/dockerfile/dockerfile.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dockerfile/dockerfile.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dockerfile/dockerfile.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dockerfile/dockerfile.js diff --git a/mdeditor/static/js/lib/codemirror/mode/dockerfile/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dockerfile/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dockerfile/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dockerfile/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/dtd/dtd.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dtd/dtd.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dtd/dtd.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dtd/dtd.js diff --git a/mdeditor/static/js/lib/codemirror/mode/dtd/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dtd/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dtd/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dtd/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/dylan/dylan.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dylan/dylan.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dylan/dylan.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dylan/dylan.js diff --git a/mdeditor/static/js/lib/codemirror/mode/dylan/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/dylan/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/dylan/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/dylan/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/ebnf/ebnf.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ebnf/ebnf.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ebnf/ebnf.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ebnf/ebnf.js diff --git a/mdeditor/static/js/lib/codemirror/mode/ebnf/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ebnf/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ebnf/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ebnf/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/ecl/ecl.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ecl/ecl.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ecl/ecl.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ecl/ecl.js diff --git a/mdeditor/static/js/lib/codemirror/mode/ecl/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ecl/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ecl/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ecl/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/eiffel/eiffel.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/eiffel/eiffel.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/eiffel/eiffel.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/eiffel/eiffel.js diff --git a/mdeditor/static/js/lib/codemirror/mode/eiffel/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/eiffel/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/eiffel/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/eiffel/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/erlang/erlang.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/erlang/erlang.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/erlang/erlang.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/erlang/erlang.js diff --git a/mdeditor/static/js/lib/codemirror/mode/erlang/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/erlang/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/erlang/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/erlang/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/forth/forth.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/forth/forth.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/forth/forth.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/forth/forth.js diff --git a/mdeditor/static/js/lib/codemirror/mode/forth/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/forth/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/forth/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/forth/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/fortran/fortran.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/fortran/fortran.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/fortran/fortran.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/fortran/fortran.js diff --git a/mdeditor/static/js/lib/codemirror/mode/fortran/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/fortran/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/fortran/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/fortran/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/gas/gas.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gas/gas.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gas/gas.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gas/gas.js diff --git a/mdeditor/static/js/lib/codemirror/mode/gas/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gas/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gas/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gas/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/gfm/gfm.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/gfm.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gfm/gfm.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/gfm.js diff --git a/mdeditor/static/js/lib/codemirror/mode/gfm/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gfm/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/gfm/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gfm/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gfm/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/gherkin/gherkin.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gherkin/gherkin.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gherkin/gherkin.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gherkin/gherkin.js diff --git a/mdeditor/static/js/lib/codemirror/mode/gherkin/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/gherkin/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/gherkin/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/gherkin/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/go/go.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/go/go.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/go/go.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/go/go.js diff --git a/mdeditor/static/js/lib/codemirror/mode/go/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/go/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/go/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/go/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/groovy/groovy.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/groovy/groovy.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/groovy/groovy.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/groovy/groovy.js diff --git a/mdeditor/static/js/lib/codemirror/mode/groovy/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/groovy/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/groovy/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/groovy/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/haml/haml.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/haml.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haml/haml.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/haml.js diff --git a/mdeditor/static/js/lib/codemirror/mode/haml/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haml/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/haml/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haml/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haml/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/haskell/haskell.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haskell/haskell.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haskell/haskell.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haskell/haskell.js diff --git a/mdeditor/static/js/lib/codemirror/mode/haskell/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haskell/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haskell/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haskell/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/haxe/haxe.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haxe/haxe.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haxe/haxe.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haxe/haxe.js diff --git a/mdeditor/static/js/lib/codemirror/mode/haxe/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/haxe/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/haxe/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/haxe/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/htmlembedded/htmlembedded.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlembedded/htmlembedded.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/htmlembedded/htmlembedded.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlembedded/htmlembedded.js diff --git a/mdeditor/static/js/lib/codemirror/mode/htmlembedded/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlembedded/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/htmlembedded/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlembedded/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/htmlmixed/htmlmixed.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlmixed/htmlmixed.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/htmlmixed/htmlmixed.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlmixed/htmlmixed.js diff --git a/mdeditor/static/js/lib/codemirror/mode/htmlmixed/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlmixed/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/htmlmixed/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/htmlmixed/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/http/http.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/http/http.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/http/http.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/http/http.js diff --git a/mdeditor/static/js/lib/codemirror/mode/http/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/http/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/http/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/http/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/idl/idl.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/idl/idl.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/idl/idl.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/idl/idl.js diff --git a/mdeditor/static/js/lib/codemirror/mode/idl/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/idl/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/idl/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/idl/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/jade/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/jade/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/jade/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/jade/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/jade/jade.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/jade/jade.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/jade/jade.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/jade/jade.js diff --git a/mdeditor/static/js/lib/codemirror/mode/javascript/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/javascript/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/javascript/javascript.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/javascript.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/javascript/javascript.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/javascript.js diff --git a/mdeditor/static/js/lib/codemirror/mode/javascript/json-ld.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/json-ld.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/javascript/json-ld.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/json-ld.html diff --git a/mdeditor/static/js/lib/codemirror/mode/javascript/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/javascript/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/javascript/typescript.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/typescript.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/javascript/typescript.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/javascript/typescript.html diff --git a/mdeditor/static/js/lib/codemirror/mode/jinja2/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/jinja2/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/jinja2/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/jinja2/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/jinja2/jinja2.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/jinja2/jinja2.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/jinja2/jinja2.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/jinja2/jinja2.js diff --git a/mdeditor/static/js/lib/codemirror/mode/julia/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/julia/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/julia/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/julia/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/julia/julia.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/julia/julia.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/julia/julia.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/julia/julia.js diff --git a/mdeditor/static/js/lib/codemirror/mode/kotlin/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/kotlin/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/kotlin/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/kotlin/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/kotlin/kotlin.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/kotlin/kotlin.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/kotlin/kotlin.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/kotlin/kotlin.js diff --git a/mdeditor/static/js/lib/codemirror/mode/livescript/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/livescript/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/livescript/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/livescript/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/livescript/livescript.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/livescript/livescript.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/livescript/livescript.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/livescript/livescript.js diff --git a/mdeditor/static/js/lib/codemirror/mode/lua/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/lua/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/lua/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/lua/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/lua/lua.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/lua/lua.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/lua/lua.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/lua/lua.js diff --git a/mdeditor/static/js/lib/codemirror/mode/markdown/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/markdown/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/markdown/markdown.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/markdown.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/markdown/markdown.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/markdown.js diff --git a/mdeditor/static/js/lib/codemirror/mode/markdown/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/markdown/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/markdown/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/meta.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/meta.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/meta.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/meta.js diff --git a/mdeditor/static/js/lib/codemirror/mode/mirc/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/mirc/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/mirc/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/mirc/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/mirc/mirc.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/mirc/mirc.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/mirc/mirc.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/mirc/mirc.js diff --git a/mdeditor/static/js/lib/codemirror/mode/mllike/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/mllike/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/mllike/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/mllike/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/mllike/mllike.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/mllike/mllike.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/mllike/mllike.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/mllike/mllike.js diff --git a/mdeditor/static/js/lib/codemirror/mode/modelica/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/modelica/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/modelica/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/modelica/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/modelica/modelica.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/modelica/modelica.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/modelica/modelica.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/modelica/modelica.js diff --git a/mdeditor/static/js/lib/codemirror/mode/nginx/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/nginx/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/nginx/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/nginx/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/nginx/nginx.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/nginx/nginx.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/nginx/nginx.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/nginx/nginx.js diff --git a/mdeditor/static/js/lib/codemirror/mode/ntriples/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ntriples/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ntriples/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ntriples/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/ntriples/ntriples.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ntriples/ntriples.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ntriples/ntriples.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ntriples/ntriples.js diff --git a/mdeditor/static/js/lib/codemirror/mode/octave/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/octave/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/octave/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/octave/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/octave/octave.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/octave/octave.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/octave/octave.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/octave/octave.js diff --git a/mdeditor/static/js/lib/codemirror/mode/pascal/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pascal/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pascal/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pascal/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/pascal/pascal.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pascal/pascal.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pascal/pascal.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pascal/pascal.js diff --git a/mdeditor/static/js/lib/codemirror/mode/pegjs/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pegjs/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pegjs/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pegjs/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/pegjs/pegjs.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pegjs/pegjs.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pegjs/pegjs.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pegjs/pegjs.js diff --git a/mdeditor/static/js/lib/codemirror/mode/perl/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/perl/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/perl/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/perl/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/perl/perl.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/perl/perl.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/perl/perl.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/perl/perl.js diff --git a/mdeditor/static/js/lib/codemirror/mode/php/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/php/index.html similarity index 96% rename from mdeditor/static/js/lib/codemirror/mode/php/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/php/index.html index adf6b1b..80bf649 100755 --- a/mdeditor/static/js/lib/codemirror/mode/php/index.html +++ b/mdeditor/static/mdeditor/js/lib/codemirror/mode/php/index.html @@ -57,7 +57,7 @@

PHP mode

Simple HTML/PHP mode based on - the C-like mode. Depends on XML, + the C-like mode. Depends on XML, JavaScript, CSS, HTMLMixed, and C-like modes.

MIME types defined: application/x-httpd-php (HTML with PHP code), text/x-php (plain, non-wrapped PHP code).

diff --git a/mdeditor/static/js/lib/codemirror/mode/php/php.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/php/php.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/php/php.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/php/php.js diff --git a/mdeditor/static/js/lib/codemirror/mode/php/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/php/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/php/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/php/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/pig/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pig/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pig/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pig/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/pig/pig.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/pig/pig.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/pig/pig.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/pig/pig.js diff --git a/mdeditor/static/js/lib/codemirror/mode/properties/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/properties/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/properties/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/properties/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/properties/properties.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/properties/properties.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/properties/properties.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/properties/properties.js diff --git a/mdeditor/static/js/lib/codemirror/mode/puppet/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/puppet/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/puppet/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/puppet/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/puppet/puppet.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/puppet/puppet.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/puppet/puppet.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/puppet/puppet.js diff --git a/mdeditor/static/js/lib/codemirror/mode/python/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/python/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/python/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/python/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/python/python.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/python/python.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/python/python.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/python/python.js diff --git a/mdeditor/static/js/lib/codemirror/mode/q/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/q/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/q/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/q/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/q/q.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/q/q.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/q/q.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/q/q.js diff --git a/mdeditor/static/js/lib/codemirror/mode/r/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/r/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/r/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/r/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/r/r.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/r/r.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/r/r.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/r/r.js diff --git a/mdeditor/static/js/lib/codemirror/mode/rpm/changes/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/changes/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rpm/changes/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/changes/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/rpm/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rpm/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/rpm/rpm.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/rpm.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rpm/rpm.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rpm/rpm.js diff --git a/mdeditor/static/js/lib/codemirror/mode/rst/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rst/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rst/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rst/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/rst/rst.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rst/rst.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rst/rst.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rst/rst.js diff --git a/mdeditor/static/js/lib/codemirror/mode/ruby/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ruby/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/ruby/ruby.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/ruby.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ruby/ruby.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/ruby.js diff --git a/mdeditor/static/js/lib/codemirror/mode/ruby/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/ruby/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/rust/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rust/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rust/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rust/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/rust/rust.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/rust/rust.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/rust/rust.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/rust/rust.js diff --git a/mdeditor/static/js/lib/codemirror/mode/sass/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/sass/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/sass/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/sass/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/sass/sass.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/sass/sass.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/sass/sass.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/sass/sass.js diff --git a/mdeditor/static/js/lib/codemirror/mode/scheme/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/scheme/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/scheme/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/scheme/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/scheme/scheme.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/scheme/scheme.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/scheme/scheme.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/scheme/scheme.js diff --git a/mdeditor/static/js/lib/codemirror/mode/shell/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/shell/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/shell/shell.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/shell.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/shell/shell.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/shell.js diff --git a/mdeditor/static/js/lib/codemirror/mode/shell/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/shell/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/shell/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/sieve/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/sieve/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/sieve/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/sieve/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/sieve/sieve.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/sieve/sieve.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/sieve/sieve.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/sieve/sieve.js diff --git a/mdeditor/static/js/lib/codemirror/mode/slim/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/slim/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/slim/slim.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/slim.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/slim/slim.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/slim.js diff --git a/mdeditor/static/js/lib/codemirror/mode/slim/test.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/test.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/slim/test.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/slim/test.js diff --git a/mdeditor/static/js/lib/codemirror/mode/smalltalk/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smalltalk/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/smalltalk/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/smalltalk/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/smalltalk/smalltalk.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smalltalk/smalltalk.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/smalltalk/smalltalk.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/smalltalk/smalltalk.js diff --git a/mdeditor/static/js/lib/codemirror/mode/smarty/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smarty/index.html similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/smarty/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/smarty/index.html diff --git a/mdeditor/static/js/lib/codemirror/mode/smarty/smarty.js b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smarty/smarty.js similarity index 100% rename from mdeditor/static/js/lib/codemirror/mode/smarty/smarty.js rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/smarty/smarty.js diff --git a/mdeditor/static/js/lib/codemirror/mode/smartymixed/index.html b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smartymixed/index.html similarity index 89% rename from mdeditor/static/js/lib/codemirror/mode/smartymixed/index.html rename to mdeditor/static/mdeditor/js/lib/codemirror/mode/smartymixed/index.html index 3a216ab..c5a7b97 100755 --- a/mdeditor/static/js/lib/codemirror/mode/smartymixed/index.html +++ b/mdeditor/static/mdeditor/js/lib/codemirror/mode/smartymixed/index.html @@ -6,12 +6,12 @@ - - - - - - + + + + + +