CodeMirror.defineMode("css",function(s){return CodeMirror.getMode(s,"text/css")});
CodeMirror.defineMode("css-base",function(s,d){function f(a,g){k=g;return a}function n(a,g){var b=a.next();if(c[b]){var h=c[b](a,g);if(!1!==h)return h}if("@"==b)return a.eatWhile(/[\w\\\-]/),f("def",a.current());if("="==b)f(null,"compare");else{if(("~"==b||"|"==b)&&a.eat("="))return f(null,"compare");if('"'==b||"'"==b)return g.tokenize=t(b),g.tokenize(a,g);if("#"==b)return a.eatWhile(/[\w\\\-]/),f("atom","hash");if("!"==b)return a.match(/^\s*\w*/),f("keyword","important");if(/\d/.test(b))return a.eatWhile(/[\w.%]/),
f("number","unit");if("-"===b){if(/\d/.test(a.peek()))return a.eatWhile(/[\w.%]/),f("number","unit");if(a.match(/^[^-]+-/))return f("meta","meta")}else{if(/[,+>*\/]/.test(b))return f(null,"select-op");if("."==b&&a.match(/^-?[_a-z][_a-z0-9-]*/i))return f("qualifier","qualifier");if(":"==b)return f("operator",b);if(/[;{}\[\]\(\)]/.test(b))return f(null,b);"u"==b&&a.match("rl(")?(a.backUp(1),g.tokenize=u):a.eatWhile(/[\w\\\-]/);return f("property","variable")}}}function t(a,g){return function(b,h){for(var c=
!1,k;null!=(k=b.next())&&(k!=a||c);)c=!c&&"\\"==k;c||(g&&b.backUp(1),h.tokenize=n);return f("string","string")}}function u(a,g){a.next();g.tokenize=a.match(/\s*[\"\']/,!1)?n:t(")",!0);return f(null,"(")}var r=s.indentUnit,c=d.hooks||{},a=d.atMediaTypes||{},B=d.atMediaFeatures||{},x=d.propertyKeywords||{},v=d.colorKeywords||{},g=d.valueKeywords||{},h=!!d.allowNested,k=null;return{startState:function(a){return{tokenize:n,baseIndent:a||0,stack:[]}},token:function(c,e){e.tokenize=e.tokenize||n;if(e.tokenize==
n&&c.eatSpace())return null;var b=e.tokenize(c,e);b&&"string"!=typeof b&&(b=f(b[0],b[1]));var l=e.stack[e.stack.length-1];if("variable"==b)return"variable-definition"==k&&e.stack.push("propertyValue"),"variable-2";if("property"==b){var d=c.current().toLowerCase();"propertyValue"==l?b=g.hasOwnProperty(d)?"string-2":v.hasOwnProperty(d)?"keyword":"variable-2":"rule"==l?x.hasOwnProperty(d)||(b+=" error"):"block"==l?b=x.hasOwnProperty(d)?"property":v.hasOwnProperty(d)?"keyword":g.hasOwnProperty(d)?"string-2":
"tag":!l||"@media{"==l?b="tag":"@media"==l?b=a[c.current()]?"attribute":/^(only|not)$/.test(d)?"keyword":"and"==d?"error":B.hasOwnProperty(d)?"error":"attribute error":"@mediaType"==l?a.hasOwnProperty(d)?b="attribute":"and"==d?b="operator":(/^(only|not)$/.test(d),b="error"):"@mediaType("==l?x.hasOwnProperty(d)||(b=a.hasOwnProperty(d)?"error":"and"==d?"operator":/^(only|not)$/.test(d)?"error":b+" error"):b="@import"==l?"tag":"error"}else"atom"==b?!l||"@media{"==l||"block"==l?b="builtin":"propertyValue"==
l?/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(c.current())||(b+=" error"):b="error":"@media"==l&&"{"==k&&(b="error");"{"==k?"@media"==l||"@mediaType"==l?(e.stack.pop(),e.stack[e.stack.length-1]="@media{"):e.stack.push(h?"block":"rule"):"}"==k?("interpolation"==e.stack[e.stack.length-1]&&(b="operator"),e.stack.pop(),"propertyValue"==l&&e.stack.pop()):"interpolation"==k?e.stack.push("interpolation"):"@media"==k?e.stack.push("@media"):"@import"==k?e.stack.push("@import"):"@media"==l&&/\b(keyword|attribute)\b/.test(b)?
e.stack.push("@mediaType"):"@mediaType"==l&&","==c.current()?e.stack.pop():"@mediaType"==l&&"("==k?e.stack.push("@mediaType("):"@mediaType("==l&&")"==k?e.stack.pop():("rule"==l||"block"==l)&&":"==k?e.stack.push("propertyValue"):"propertyValue"==l&&";"==k?e.stack.pop():"@import"==l&&";"==k&&e.stack.pop();return b},indent:function(a,g){var b=a.stack.length;/^\}/.test(g)&&(b-="propertyValue"==a.stack[a.stack.length-1]?2:1);return a.baseIndent+b*r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/"}});
(function(){function s(c){for(var a={},d=0;d<c.length;++d)a[c[d]]=!0;return a}function d(c,a){for(var d=!1,f;null!=(f=c.next());){if(d&&"/"==f){a.tokenize=null;break}d="*"==f}return["comment","comment"]}var f=s("all aural braille handheld print projection screen tty tv embossed".split(" ")),n=s("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".split(" ")),
t=s("align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration 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 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-cell grid-column grid-column-align grid-column-sizing grid-column-span grid-columns grid-flow grid-row grid-row-align grid-row-sizing grid-row-span grid-rows grid-template 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 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 rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span 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-shadow 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-profile 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 kerning text-anchor writing-mode".split(" ")),
u=s("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 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 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".split(" ")),
r=s("above absolute activeborder activecaption afar after-white-space ahead alias all all-scroll alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks auto avoid background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break-all break-word button button-bevel buttonface buttonhighlight buttonshadow buttontext cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse compact condensed contain content content-box context-menu continuous copy cover crop cross crosshair currentcolor cursive dashed decimal decimal-leading-zero default default-button destination-atop destination-in destination-out destination-over devanagari disc discard document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element 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 ew-resize expanded extra-condensed extra-expanded fantasy fast fill fixed flat 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-table inset inside intrinsic invert italic justify kannada katakana katakana-iroha khmer landscape lao large larger left level lighter line-through linear 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 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 nw-resize nwse-resize oblique octal open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside overlay overline padding padding-box painted paused persian plus-darker plus-lighter pointer portrait pre pre-line pre-wrap preserve-3d progress push-button radio read-only read-write read-write-plaintext-only relative repeat repeat-x repeat-y reset reverse rgb rgba ridge right round row-resize rtl run-in running s-resize sans-serif scroll scrollbar se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration semi-condensed semi-expanded separate serif show sidama single 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 square square-button start static status-bar stretch stroke sub subpixel-antialiased super sw-resize table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group 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 transparent ultra-condensed ultra-expanded underline up upper-alpha upper-armenian upper-greek upper-hexadecimal upper-latin upper-norwegian upper-roman uppercase urdu url vertical vertical-text visible visibleFill visiblePainted visibleStroke visual w-resize wait wave wider window windowframe windowtext x-large x-small xor xx-large xx-small".split(" "));
CodeMirror.defineMIME("text/css",{atMediaTypes:f,atMediaFeatures:n,propertyKeywords:t,colorKeywords:u,valueKeywords:r,hooks:{"<":function(c,a){function d(a,c){for(var g=0,h;null!=(h=a.next());){if(2<=g&&">"==h){c.tokenize=null;break}g="-"==h?g+1:0}return["comment","comment"]}if(c.eat("!"))return a.tokenize=d,d(c,a)},"/":function(c,a){return c.eat("*")?(a.tokenize=d,d(c,a)):!1}},name:"css-base"});CodeMirror.defineMIME("text/x-scss",{atMediaTypes:f,atMediaFeatures:n,propertyKeywords:t,colorKeywords:u,
valueKeywords:r,allowNested:!0,hooks:{$:function(c){c.match(/^[\w-]+/);return":"==c.peek()?["variable","variable-definition"]:["variable","variable"]},"/":function(c,a){return c.eat("/")?(c.skipToEnd(),["comment","comment"]):c.eat("*")?(a.tokenize=d,d(c,a)):["operator","operator"]},"#":function(c){if(c.eat("{"))return["operator","interpolation"];c.eatWhile(/[\w\\\-]/);return["atom","hash"]}},name:"css-base"})})();CodeMirror.defineMode("htmlmixed",function(s,d){function f(g,h){var d=h.htmlState.tagName,f=r.token(g,h.htmlState);if("script"==d&&/\btag\b/.test(f)&&">"==g.current()){(d=(d=g.string.slice(Math.max(0,g.pos-100),g.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i))?d[1]:"")&&/[\"\']/.test(d.charAt(0))&&(d=d.slice(1,d.length-1));for(var e=0;e<a.length;++e){var b=a[e];if("string"==typeof b.matches?d==b.matches:b.matches.test(d)){b.mode&&(h.token=t,h.localMode=b.mode,h.localState=b.mode.startState&&
b.mode.startState(r.indent(h.htmlState,"")));break}}}else"style"==d&&(/\btag\b/.test(f)&&">"==g.current())&&(h.token=u,h.localMode=c,h.localState=c.startState(r.indent(h.htmlState,"")));return f}function n(a,c,d){var f=a.current(),e=f.search(c);-1<e?a.backUp(f.length-e):f.match(/<\/?$/)&&(a.backUp(f.length),a.match(c,!1)||a.match(f[0]));return d}function t(a,c){return a.match(/^<\/\s*script\s*>/i,!1)?(c.token=f,c.localState=c.localMode=null,f(a,c)):n(a,/<\/\s*script\s*>/,c.localMode.token(a,c.localState))}
function u(a,d){return a.match(/^<\/\s*style\s*>/i,!1)?(d.token=f,d.localState=d.localMode=null,f(a,d)):n(a,/<\/\s*style\s*>/,c.token(a,d.localState))}var r=CodeMirror.getMode(s,{name:"xml",htmlMode:!0}),c=CodeMirror.getMode(s,"css"),a=[],B=d&&d.scriptTypes;a.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(s,"javascript")});if(B)for(var x=0;x<B.length;++x){var v=B[x];a.push({matches:v.matches,mode:v.mode&&CodeMirror.getMode(s,v.mode)})}a.push({matches:/./,
mode:CodeMirror.getMode(s,"text/plain")});return{startState:function(){var a=r.startState();return{token:f,localMode:null,localState:null,htmlState:a}},copyState:function(a){if(a.localState)var c=CodeMirror.copyState(a.localMode,a.localState);return{token:a.token,localMode:a.localMode,localState:c,htmlState:CodeMirror.copyState(r,a.htmlState)}},token:function(a,c){return c.token(a,c)},indent:function(a,c){return!a.localMode||/^\s*<\//.test(c)?r.indent(a.htmlState,c):a.localMode.indent?a.localMode.indent(a.localState,
c):CodeMirror.Pass},electricChars:"/{}:",innerMode:function(a){return{state:a.localState||a.htmlState,mode:a.localMode||r}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");CodeMirror.defineMode("javascript",function(s,d){function f(a,c){for(var b=!1,d;null!=(d=a.next());){if(d==c&&!b)return!1;b=!b&&"\\"==d}return b}function n(a,c,b){G=a;J=b;return c}function t(a,c){var b=a.next();if('"'==b||"'"==b){var d=function(a,$){f(a,b)||($.tokenize=t);return n("string","string")};c.tokenize=d;return d(a,c)}if(/[\[\]{}\(\),;\:\.]/.test(b))return n(b);if("0"==b&&a.eat(/x/i))return a.eatWhile(/[\da-f]/i),n("number","number");if(/\d/.test(b)||"-"==b&&a.eat(/\d/))return a.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),
n("number","number");if("/"==b){if(a.eat("*"))return d=u,c.tokenize=d,d(a,c);if(a.eat("/"))return a.skipToEnd(),n("comment","comment");if("operator"==c.lastType||"keyword c"==c.lastType||/^[\[{}\(,;:]$/.test(c.lastType))return f(a,"/"),a.eatWhile(/[gimy]/),n("regexp","string-2");a.eatWhile(O);return n("operator",null,a.current())}if("#"==b)return a.skipToEnd(),n("error","error");if(O.test(b))return a.eatWhile(O),n("operator",null,a.current());a.eatWhile(/[\w\$_]/);var d=a.current(),j=P.propertyIsEnumerable(d)&&
P[d];return j&&"."!=c.lastType?n(j.type,j.style,d):n("variable","variable",d)}function u(a,c){for(var b=!1,d;d=a.next();){if("/"==d&&b){c.tokenize=t;break}b="*"==d}return n("comment","comment")}function r(a,c,b,d,j,e){this.indented=a;this.column=c;this.type=b;this.prev=j;this.info=e;null!=d&&(this.align=d)}function c(){for(var a=arguments.length-1;0<=a;a--)m.cc.push(arguments[a])}function a(){c.apply(null,arguments);return!0}function B(a){function c(b){for(;b;b=b.next)if(b.name==a)return!0;return!1}
var b=m.state;b.context?(m.marked="def",c(b.localVars)||(b.localVars={name:a,next:b.localVars})):c(b.globalVars)||(b.globalVars={name:a,next:b.globalVars})}function x(){m.state.context={prev:m.state.context,vars:m.state.localVars};m.state.localVars=aa}function v(){m.state.localVars=m.state.context.vars;m.state.context=m.state.context.prev}function g(a,b){var c=function(){var c=m.state;c.lexical=new r(c.indented,m.stream.column(),a,null,c.lexical,b)};c.lex=!0;return c}function h(){var a=m.state;a.lexical.prev&&
(")"==a.lexical.type&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function k(b){return function(d){return d==b?a():";"==b?c():a(arguments.callee)}}function w(b){if("var"==b)return a(g("vardef"),Q,k(";"),h);if("keyword a"==b)return a(g("form"),e,w,h);if("keyword b"==b)return a(g("form"),w,h);if("{"==b)return a(g("}"),R,h);if(";"==b)return a();if("if"==b){b=a;var d=g("form"),j=m.state.indented;return b(d,e,w,h,function(b,d){return"keyword b"==b&&"else"==d?(m.state.lexical=new r(j,0,"form",
null,m.state.lexical),a(w,h)):c()})}return"function"==b?a(K):"for"==b?a(g("form"),k("("),g(")"),ba,k(")"),h,w,h):"variable"==b?a(g("stat"),L):"switch"==b?a(g("form"),e,g("}","switch"),k("{"),R,h,h):"case"==b?a(e,k(":")):"default"==b?a(k(":")):"catch"==b?a(g("form"),x,k("("),W,k(")"),w,h,v):c(g("stat"),e,k(";"),h)}function e(a){return l(a,z)}function b(a){return l(a,p)}function l(c,d){return X.hasOwnProperty(c)?a(d):"function"==c?a(K):"keyword c"==c?a(A):"("==c?a(g(")"),A,k(")"),h,d):"operator"==c?
a(e):"["==c?a(g("]"),M(b,"]"),h,d):"{"==c?a(g("}"),M(j,"}"),h,d):a()}function A(a){return a.match(/[;\}\)\],]/)?c():c(e)}function z(a,b){return","==a?c():p(a,b,z)}function p(c,d,j){j||(j=p);if("operator"==c)return/\+\+|--/.test(d)?a(j):"?"==d?a(e,k(":"),e):a(e);if(";"!=c){if("("==c)return a(g(")","call"),M(b,")"),h,j);if("."==c)return a(y,j);if("["==c)return a(g("]"),e,k("]"),h,j)}}function L(b){return":"==b?a(h,w):c(z,k(";"),h)}function y(b){if("variable"==b)return m.marked="property",a()}function j(c,
d){if("variable"==c){if(m.marked="property","get"==d||"set"==d)return a(ca)}else if("number"==c||"string"==c)m.marked=c+" property";if(X.hasOwnProperty(c))return a(k(":"),b)}function ca(b){if(":"==b)return a(e);if("variable"!=b)return a(k(":"),e);m.marked="property";return a(K)}function M(b,d){function j(c){return","==c?(c=m.state.lexical,"call"==c.info&&(c.pos=(c.pos||0)+1),a(b,j)):c==d?a():a(k(d))}return function(e){return e==d?a():c(b,j)}}function R(b){return"}"==b?a():c(w,R)}function Y(b){return":"==
b?a(da):c()}function da(b){return"variable"==b?(m.marked="variable-3",a()):c()}function Q(b,d){return"variable"==b?(B(d),S?a(Y,T):a(T)):c()}function T(c,d){if("="==d)return a(b,T);if(","==c)return a(Q)}function ba(b){return"var"==b?a(Q,k(";"),N):";"==b?a(N):"variable"==b?a(ea):c(e,k(";"),N)}function ea(b,c){return"in"==c?a(e):a(z,N)}function N(b,d){return";"==b?a(Z):"in"==d?a(e):c(e,k(";"),Z)}function Z(b){")"!=b&&a(e)}function K(b,c){if("variable"==b)return B(c),a(K);if("("==b)return a(g(")"),x,
M(W,")"),h,w,v)}function W(b,c){if("variable"==b)return B(c),S?a(Y):a()}var D=s.indentUnit,H=d.json,S=d.typescript,P,q=function(a){return{type:a,style:"keyword"}},I=q("keyword a"),C=q("keyword b"),E=q("keyword c"),U=q("operator"),F={type:"atom",style:"atom"},I={"if":q("if"),"while":I,"with":I,"else":C,"do":C,"try":C,"finally":C,"return":E,"break":E,"continue":E,"new":E,"delete":E,"throw":E,"var":q("var"),"const":q("var"),let:q("var"),"function":q("function"),"catch":q("catch"),"for":q("for"),"switch":q("switch"),
"case":q("case"),"default":q("default"),"in":U,"typeof":U,"instanceof":U,"true":F,"false":F,"null":F,undefined:F,NaN:F,Infinity:F,"this":q("this")};if(S){var C={type:"variable",style:"variable-3"},q={"interface":q("interface"),"class":q("class"),"extends":q("extends"),constructor:q("constructor"),"public":q("public"),"private":q("private"),"protected":q("protected"),"static":q("static"),"super":q("super"),string:C,number:C,bool:C,any:C},V;for(V in q)I[V]=q[V]}P=I;var O=/[+\-*&%=<>!?|~^]/,G,J,X={atom:!0,
number:!0,variable:!0,string:!0,regexp:!0,"this":!0},m={state:null,column:null,marked:null,cc:null},aa={name:"this",next:{name:"arguments"}};h.lex=!0;return{startState:function(a){return{tokenize:t,lastType:null,cc:[],lexical:new r((a||0)-D,0,"block",!1),localVars:d.localVars,globalVars:d.globalVars,context:d.localVars&&{vars:d.localVars},indented:0}},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation());if(b.tokenize!=u&&a.eatSpace())return null;
var c=b.tokenize(a,b);if("comment"==G)return c;b.lastType="operator"==G&&("++"==J||"--"==J)?"incdec":G;a:{var d=G,j=J,f=b.cc;m.state=b;m.stream=a;m.marked=null;m.cc=f;b.lexical.hasOwnProperty("align")||(b.lexical.align=!0);for(;;)if((f.length?f.pop():H?e:w)(d,j)){for(;f.length&&f[f.length-1].lex;)f.pop()();if(m.marked){c=m.marked;break a}if(d="variable"==d)b:{for(d=b.localVars;d;d=d.next)if(d.name==j){d=!0;break b}d=void 0}if(d){c="variable-2";break a}break a}c=void 0}return c},indent:function(a,
b){if(a.tokenize==u)return CodeMirror.Pass;if(a.tokenize!=t)return 0;var c=b&&b.charAt(0),j=a.lexical;"stat"==j.type&&"}"==c&&(j=j.prev);var e=j.type,f=c==e;return null!=d.statementIndent&&(")"==e&&(j.prev&&"stat"==j.prev.type)&&(j=j.prev),"stat"==j.type)?j.indented+d.statementIndent:"vardef"==e?j.indented+("operator"==a.lastType||","==a.lastType?4:0):"form"==e&&"{"==c?j.indented:"form"==e?j.indented+D:"stat"==e?j.indented+("operator"==a.lastType||","==a.lastType?D:0):"switch"==j.info&&!f?j.indented+
(/^(?:case|default)\b/.test(b)?D:2*D):j.align?j.column+(f?0:1):j.indented+(f?0:D)},electricChars:":{}",blockCommentStart:H?null:"/*",blockCommentEnd:H?null:"*/",lineComment:H?null:"//",jsonMode:H}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});
CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMode("xml",function(s,d){function f(a,b){function c(d){b.tokenize=d;return d(a,b)}var d=a.next();if("<"==d){if(a.eat("!"))return a.eat("[")?a.match("CDATA[")?c(t("atom","]]\x3e")):null:a.match("--")?c(t("comment","--\x3e")):a.match("DOCTYPE",!0,!0)?(a.eatWhile(/[\w\._\-]/),c(u(1))):null;if(a.eat("?"))return a.eatWhile(/[\w\._\-]/),b.tokenize=t("meta","?>"),"meta";d=a.eat("/");A="";for(var e;e=a.eat(/[^\s\u00a0=<>\"\'\/?]/);)A+=e;if(!A)return"error";z=d?"closeTag":"openTag";b.tokenize=
n;return"tag"}if("&"==d)return(a.eat("#")?a.eat("x")?a.eatWhile(/[a-fA-F\d]/)&&a.eat(";"):a.eatWhile(/[\d]/)&&a.eat(";"):a.eatWhile(/[\w\.\-:]/)&&a.eat(";"))?"atom":"error";a.eatWhile(/[^&<]/);return null}function n(a,b){var c=a.next();if(">"==c||"/"==c&&a.eat(">"))return b.tokenize=f,z=">"==c?"endTag":"selfcloseTag","tag";if("="==c)return z="equals",null;if(/[\'\"]/.test(c))return b.tokenize=function(a,b){for(;!a.eol();)if(a.next()==c){b.tokenize=n;break}return"string"},b.tokenize(a,b);a.eatWhile(/[^\s\u00a0=<>\"\']/);
return"word"}function t(a,b){return function(c,d){for(;!c.eol();){if(c.match(b)){d.tokenize=f;break}c.next()}return a}}function u(a){return function(b,c){for(var d;null!=(d=b.next());){if("<"==d)return c.tokenize=u(a+1),c.tokenize(b,c);if(">"==d)if(1==a){c.tokenize=f;break}else return c.tokenize=u(a-1),c.tokenize(b,c)}return"meta"}}function r(){for(var a=arguments.length-1;0<=a;a--)p.cc.push(arguments[a])}function c(){r.apply(null,arguments);return!0}function a(){p.context&&(p.context=p.context.prev)}
function B(d){if("openTag"==d){p.tagName=A;p.tagStart=L.column();var e=p.startOfLine;return c(v,function(a){var d=p.tagName;p.tagName=p.tagStart=null;if("selfcloseTag"==a||"endTag"==a&&b.autoSelfClosers.hasOwnProperty(d.toLowerCase()))return x(d.toLowerCase()),c();"endTag"==a&&(x(d.toLowerCase()),a=b.doNotIndent.hasOwnProperty(d)||p.context&&p.context.noIndent,p.context={prev:p.context,tagName:d,indent:p.indented,startOfLine:e,noIndent:a});return c()})}if("closeTag"==d){d=!1;p.context?p.context.tagName!=
A&&(b.implicitlyClosed.hasOwnProperty(p.context.tagName.toLowerCase())&&a(),d=!p.context||p.context.tagName!=A):d=!0;d&&(y="error");var f=d;return c(function(b){f&&(y="error");if("endTag"==b)return a(),c();y="error";return c(arguments.callee)})}return c()}function x(c){for(var d;p.context;){d=p.context.tagName.toLowerCase();if(!b.contextGrabbers.hasOwnProperty(d)||!b.contextGrabbers[d].hasOwnProperty(c))break;a()}}function v(a){if("word"==a)return y="attribute",c(g,v);if("endTag"==a||"selfcloseTag"==
a)return r();y="error";return c(v)}function g(a){if("equals"==a)return c(h,v);b.allowMissing?"word"==a&&(y="attribute"):y="error";return"endTag"==a||"selfcloseTag"==a?r():c()}function h(a){if("string"==a)return c(k);if("word"==a&&b.allowUnquoted)return y="string",c();y="error";return"endTag"==a||"selfCloseTag"==a?r():c()}function k(a){return"string"==a?c(k):r()}var w=s.indentUnit,e=d.multilineTagIndentFactor||1,b=d.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},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}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1},l=d.alignCDATA,A,z,p,L,y;return{startState:function(){return{tokenize:f,cc:[],indented:0,startOfLine:!0,tagName:null,tagStart:null,context:null}},token:function(a,b){!b.tagName&&
a.sol()&&(b.startOfLine=!0,b.indented=a.indentation());if(a.eatSpace())return null;y=z=A=null;var c=b.tokenize(a,b);b.type=z;if((c||z)&&"comment"!=c){p=b;for(L=a;!(b.cc.pop()||B)(z||c););}b.startOfLine=!1;return y||c},indent:function(a,b,c){var d=a.context;if(a.tokenize!=n&&a.tokenize!=f||d&&d.noIndent)return c?c.match(/^(\s*)/)[0].length:0;if(a.tagName)return a.tagStart+w*e;if(l&&/<!\[CDATA\[/.test(b))return 0;d&&/^<\//.test(b)&&(d=d.prev);for(;d&&!d.startOfLine;)d=d.prev;return d?d.indent+w:0},
electricChars:"/",blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:d.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});