(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multilineTagIndentPastTag;if(d==null){d=true}var w=k.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var c=k.alignCDATA;var f,g;function n(F,E){function C(G){E.tokenize=G;return G(F,E)}var D=F.next();if(D=="<"){if(F.eat("!")){if(F.eat("[")){if(F.match("CDATA[")){return C(v("atom","]]>"))}else{return null}}else{if(F.match("--")){return C(v("comment","-->"))}else{if(F.match("DOCTYPE",true,true)){F.eatWhile(/[\w\._\-]/);return C(z(1))}else{return null}}}}else{if(F.eat("?")){F.eatWhile(/[\w\._\-]/);E.tokenize=v("meta","?>");return"meta"}else{f=F.eat("/")?"closeTag":"openTag";E.tokenize=m;return"tag bracket"}}}else{if(D=="&"){var B;if(F.eat("#")){if(F.eat("x")){B=F.eatWhile(/[a-fA-F\d]/)&&F.eat(";")}else{B=F.eatWhile(/[\d]/)&&F.eat(";")}}else{B=F.eatWhile(/[\w\.\-:]/)&&F.eat(";")}return B?"atom":"error"}else{F.eatWhile(/[^&<]/);return null}}}function m(E,D){var C=E.next();if(C==">"||(C=="/"&&E.eat(">"))){D.tokenize=n;f=C==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(C=="="){f="equals";return null}else{if(C=="<"){D.tokenize=n;D.state=l;D.tagName=D.tagStart=null;var B=D.tokenize(E,D);return B?B+" tag error":"tag error"}else{if(/[\'\"]/.test(C)){D.tokenize=j(C);D.stringStartCol=E.column();return D.tokenize(E,D)}else{E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function j(B){var C=function(E,D){while(!E.eol()){if(E.next()==B){D.tokenize=m;break}}return"string"};C.isInAttribute=true;return C}function v(C,B){return function(E,D){while(!E.eol()){if(E.match(B)){D.tokenize=n;break}E.next()}return C}}function z(B){return function(E,D){var C;while((C=E.next())!=null){if(C=="<"){D.tokenize=z(B+1);return D.tokenize(E,D)}else{if(C==">"){if(B==1){D.tokenize=n;break}else{D.tokenize=z(B-1);return D.tokenize(E,D)}}}}return"meta"}}function r(C,B,D){this.prev=C.context;this.tagName=B;this.indent=C.indented;this.startOfLine=D;if(w.doNotIndent.hasOwnProperty(B)||(C.context&&C.context.noIndent)){this.noIndent=true}}function u(B){if(B.context){B.context=B.context.prev}}function q(D,C){var B;while(true){if(!D.context){return}B=D.context.tagName;if(!w.contextGrabbers.hasOwnProperty(B)||!w.contextGrabbers[B].hasOwnProperty(C)){return}u(D)}}function l(B,D,C){if(B=="openTag"){C.tagStart=D.column();return b}else{if(B=="closeTag"){return t}else{return l}}}function b(B,D,C){if(B=="word"){C.tagName=D.current();g="tag";return e}else{g="error";return b}}function t(C,E,D){if(C=="word"){var B=E.current();if(D.context&&D.context.tagName!=B&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)){u(D)}if(D.context&&D.context.tagName==B){g="tag";return s}else{g="tag error";return A}}else{g="error";return A}}function s(C,B,D){if(C!="endTag"){g="error";return s}u(D);return l}function A(B,D,C){g="error";return s(B,D,C)}function e(E,C,F){if(E=="word"){g="attribute";return i}else{if(E=="endTag"||E=="selfcloseTag"){var D=F.tagName,B=F.tagStart;F.tagName=F.tagStart=null;if(E=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)){q(F,D)}else{q(F,D);F.context=new r(F,D,B==F.indented)}return l}}g="error";return e}function i(B,D,C){if(B=="equals"){return o}if(!w.allowMissing){g="error"}return e(B,D,C)}function o(B,D,C){if(B=="string"){return h}if(B=="word"&&w.allowUnquoted){g="string";return e}g="error";return e(B,D,C)}function h(B,D,C){if(B=="string"){return h}return e(B,D,C)}return{startState:function(){return{tokenize:n,state:l,indented:0,tagName:null,tagStart:null,context:null}},token:function(D,C){if(!C.tagName&&D.sol()){C.indented=D.indentation()}if(D.eatSpace()){return null}f=null;var B=C.tokenize(D,C);if((B||f)&&B!="comment"){g=null;C.state=C.state(f||B,D,C);if(g){B=g=="error"?B+" error":g}}return B},indent:function(G,C,F){var E=G.context;if(G.tokenize.isInAttribute){if(G.tagStart==G.indented){return G.stringStartCol+1}else{return G.indented+p}}if(E&&E.noIndent){return a.Pass}if(G.tokenize!=m&&G.tokenize!=n){return F?F.match(/^(\s*)/)[0].length:0}if(G.tagName){if(d){return G.tagStart+G.tagName.length+2}else{return G.tagStart+p*x}}if(c&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Y,ai){var k=Y.indentUnit;var z=ai.statementIndent;var ay=ai.jsonld;var y=ai.json||ay;var g=ai.typescript;var ar=ai.wordCharacters||/[\w$\xa1-\uffff]/;var ap=function(){function aO(aQ){return{type:aQ,style:"keyword"}}var aJ=aO("keyword a"),aH=aO("keyword b"),aG=aO("keyword c");var aI=aO("operator"),aM={type:"atom",style:"atom"};var aK={"if":aO("if"),"while":aJ,"with":aJ,"else":aH,"do":aH,"try":aH,"finally":aH,"return":aG,"break":aG,"continue":aG,"new":aG,"delete":aG,"throw":aG,"debugger":aG,"var":aO("var"),"const":aO("var"),let:aO("var"),"function":aO("function"),"catch":aO("catch"),"for":aO("for"),"switch":aO("switch"),"case":aO("case"),"default":aO("default"),"in":aI,"typeof":aI,"instanceof":aI,"true":aM,"false":aM,"null":aM,"undefined":aM,"NaN":aM,"Infinity":aM,"this":aO("this"),module:aO("module"),"class":aO("class"),"super":aO("atom"),yield:aG,"export":aO("export"),"import":aO("import"),"extends":aG};if(g){var aP={type:"variable",style:"variable-3"};var aL={"interface":aO("interface"),"extends":aO("extends"),constructor:aO("constructor"),"public":aO("public"),"private":aO("private"),"protected":aO("protected"),"static":aO("static"),string:aP,number:aP,bool:aP,any:aP};for(var aN in aL){aK[aN]=aL[aN]}}return aK}();var O=/[+\-*&%=<>!?|~^]/;var ao=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(aJ){var aH=false,aG,aI=false;while((aG=aJ.next())!=null){if(!aH){if(aG=="/"&&!aI){return}if(aG=="["){aI=true}else{if(aI&&aG=="]"){aI=false}}}aH=!aH&&aG=="\\"}}var R,F;function K(aI,aH,aG){R=aI;F=aG;return aH}function T(aK,aI){var aG=aK.next();if(aG=='"'||aG=="'"){aI.tokenize=Q(aG);return aI.tokenize(aK,aI)}else{if(aG=="."&&aK.match(/^\d+(?:[eE][+\-]?\d+)?/)){return K("number","number")}else{if(aG=="."&&aK.match("..")){return K("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aG)){return K(aG)}else{if(aG=="="&&aK.eat(">")){return K("=>","operator")}else{if(aG=="0"&&aK.eat(/x/i)){aK.eatWhile(/[\da-f]/i);return K("number","number")}else{if(/\d/.test(aG)){aK.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return K("number","number")}else{if(aG=="/"){if(aK.eat("*")){aI.tokenize=ax;return ax(aK,aI)}else{if(aK.eat("/")){aK.skipToEnd();return K("comment","comment")}else{if(aI.lastType=="operator"||aI.lastType=="keyword c"||aI.lastType=="sof"||/^[\[{}\(,;:]$/.test(aI.lastType)){E(aK);aK.eatWhile(/[gimy]/);return K("regexp","string-2")}else{aK.eatWhile(O);return K("operator","operator",aK.current())}}}}else{if(aG=="`"){aI.tokenize=az;return az(aK,aI)}else{if(aG=="#"){aK.skipToEnd();return K("error","error")}else{if(O.test(aG)){aK.eatWhile(O);return K("operator","operator",aK.current())}else{if(ar.test(aG)){aK.eatWhile(ar);var aJ=aK.current(),aH=ap.propertyIsEnumerable(aJ)&&ap[aJ];return(aH&&aI.lastType!=".")?K(aH.type,aH.style,aJ):K("variable","variable",aJ)}}}}}}}}}}}}}function Q(aG){return function(aK,aI){var aJ=false,aH;if(ay&&aK.peek()=="@"&&aK.match(ao)){aI.tokenize=T;return K("jsonld-keyword","meta")}while((aH=aK.next())!=null){if(aH==aG&&!aJ){break}aJ=!aJ&&aH=="\\"}if(!aJ){aI.tokenize=T}return K("string","string")}}function ax(aJ,aI){var aG=false,aH;while(aH=aJ.next()){if(aH=="/"&&aG){aI.tokenize=T;break}aG=(aH=="*")}return K("comment","comment")}function az(aJ,aH){var aI=false,aG;while((aG=aJ.next())!=null){if(!aI&&(aG=="`"||aG=="$"&&aJ.eat("{"))){aH.tokenize=T;break}aI=!aI&&aG=="\\"}return K("quasi","string-2",aJ.current())}var l="([{}])";function au(aM,aJ){if(aJ.fatArrowAt){aJ.fatArrowAt=null}var aI=aM.string.indexOf("=>",aM.start);if(aI<0){return}var aL=0,aH=false;for(var aN=aI-1;aN>=0;--aN){var aG=aM.string.charAt(aN);var aK=l.indexOf(aG);if(aK>=0&&aK<3){if(!aL){++aN;break}if(--aL==0){break}}else{if(aK>=3&&aK<6){++aL}else{if(ar.test(aG)){aH=true}else{if(aH&&!aL){++aN;break}}}}}if(aH&&!aL){aJ.fatArrowAt=aN}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function I(aL,aH,aG,aK,aI,aJ){this.indented=aL;this.column=aH;this.type=aG;this.prev=aI;this.info=aJ;if(aK!=null){this.align=aK}}function r(aJ,aI){for(var aH=aJ.localVars;aH;aH=aH.next){if(aH.name==aI){return true}}for(var aG=aJ.context;aG;aG=aG.prev){for(var aH=aG.vars;aH;aH=aH.next){if(aH.name==aI){return true}}}}function f(aK,aH,aG,aJ,aL){var aM=aK.cc;C.state=aK;C.stream=aL;C.marked=null,C.cc=aM;C.style=aH;if(!aK.lexical.hasOwnProperty("align")){aK.lexical.align=true}while(true){var aI=aM.length?aM.pop():y?am:aE;if(aI(aG,aJ)){while(aM.length&&aM[aM.length-1].lex){aM.pop()()}if(C.marked){return C.marked}if(aG=="variable"&&r(aK,aJ)){return"variable-2"}return aH}}}var C={state:null,column:null,marked:null,cc:null};function Z(){for(var aG=arguments.length-1;aG>=0;aG--){C.cc.push(arguments[aG])}}function ad(){Z.apply(null,arguments);return true}function at(aH){function aG(aK){for(var aJ=aK;aJ;aJ=aJ.next){if(aJ.name==aH){return true}}return false}var aI=C.state;if(aI.context){C.marked="def";if(aG(aI.localVars)){return}aI.localVars={name:aH,next:aI.localVars}}else{if(aG(aI.globalVars)){return}if(ai.globalVars){aI.globalVars={name:aH,next:aI.globalVars}}}}var p={name:"this",next:{name:"arguments"}};function v(){C.state.context={prev:C.state.context,vars:C.state.localVars};C.state.localVars=p}function w(){C.state.localVars=C.state.context.vars;C.state.context=C.state.context.prev}function aC(aH,aI){var aG=function(){var aL=C.state,aJ=aL.indented;if(aL.lexical.type=="stat"){aJ=aL.lexical.indented}else{for(var aK=aL.lexical;aK&&aK.type==")"&&aK.align;aK=aK.prev){aJ=aK.indented}}aL.lexical=new I(aJ,C.stream.column(),aH,null,aL.lexical,aI)};aG.lex=true;return aG}function h(){var aG=C.state;if(aG.lexical.prev){if(aG.lexical.type==")"){aG.indented=aG.lexical.indented}aG.lexical=aG.lexical.prev}}h.lex=true;function q(aG){function aH(aI){if(aI==aG){return ad()}else{if(aG==";"){return Z()}else{return ad(aH)}}}return aH}function aE(aG,aH){if(aG=="var"){return ad(aC("vardef",aH.length),d,q(";"),h)}if(aG=="keyword a"){return ad(aC("form"),am,aE,h)}if(aG=="keyword b"){return ad(aC("form"),aE,h)}if(aG=="{"){return ad(aC("}"),x,h)}if(aG==";"){return ad()}if(aG=="if"){if(C.state.lexical.info=="else"&&C.state.cc[C.state.cc.length-1]==h){C.state.cc.pop()()}return ad(aC("form"),am,aE,h,e)}if(aG=="function"){return ad(L)}if(aG=="for"){return ad(aC("form"),t,aE,h)}if(aG=="variable"){return ad(aC("stat"),aF)}if(aG=="switch"){return ad(aC("form"),am,aC("}","switch"),q("{"),x,h,h)}if(aG=="case"){return ad(am,q(":"))}if(aG=="default"){return ad(q(":"))}if(aG=="catch"){return ad(aC("form"),v,q("("),ae,q(")"),aE,h,w)}if(aG=="module"){return ad(aC("form"),v,G,w,h)}if(aG=="class"){return ad(aC("form"),U,h)}if(aG=="export"){return ad(aC("form"),aD,h)}if(aG=="import"){return ad(aC("form"),af,h)}return Z(aC("stat"),am,q(";"),h)}function am(aG){return X(aG,false)}function aB(aG){return X(aG,true)}function X(aH,aJ){if(C.state.fatArrowAt==C.stream.start){var aG=aJ?M:V;if(aH=="("){return ad(v,aC(")"),aq(i,")"),h,q("=>"),aG,w)}else{if(aH=="variable"){return Z(v,i,q("=>"),aG,w)}}}var aI=aJ?j:aa;if(b.hasOwnProperty(aH)){return ad(aI)}if(aH=="function"){return ad(L,aI)}if(aH=="keyword c"){return ad(aJ?aj:ah)}if(aH=="("){return ad(aC(")"),ah,aw,q(")"),h,aI)}if(aH=="operator"||aH=="spread"){return ad(aJ?aB:am)}if(aH=="["){return ad(aC("]"),m,h,aI)}if(aH=="{"){return av(s,"}",null,aI)}if(aH=="quasi"){return Z(P,aI)}return ad()}function ah(aG){if(aG.match(/[;\}\)\],]/)){return Z()}return Z(am)}function aj(aG){if(aG.match(/[;\}\)\],]/)){return Z()}return Z(aB)}function aa(aG,aH){if(aG==","){return ad(am)}return j(aG,aH,false)}function j(aG,aI,aK){var aH=aK==false?aa:j;var aJ=aK==false?am:aB;if(aG=="=>"){return ad(v,aK?M:V,w)}if(aG=="operator"){if(/\+\+|--/.test(aI)){return ad(aH)}if(aI=="?"){return ad(am,q(":"),aJ)}return ad(aJ)}if(aG=="quasi"){return Z(P,aH)}if(aG==";"){return}if(aG=="("){return av(aB,")","call",aH)}if(aG=="."){return ad(ak,aH)}if(aG=="["){return ad(aC("]"),ah,q("]"),h,aH)}}function P(aG,aH){if(aG!="quasi"){return Z()}if(aH.slice(aH.length-2)!="${"){return ad(P)}return ad(am,o)}function o(aG){if(aG=="}"){C.marked="string-2";C.state.tokenize=az;return ad(P)}}function V(aG){au(C.stream,C.state);return Z(aG=="{"?aE:am)}function M(aG){au(C.stream,C.state);return Z(aG=="{"?aE:aB)}function aF(aG){if(aG==":"){return ad(h,aE)}return Z(aa,q(";"),h)}function ak(aG){if(aG=="variable"){C.marked="property";return ad()}}function s(aG,aH){if(aG=="variable"||C.style=="keyword"){C.marked="property";if(aH=="get"||aH=="set"){return ad(H)}return ad(J)}else{if(aG=="number"||aG=="string"){C.marked=ay?"property":(C.style+" property");return ad(J)}else{if(aG=="jsonld-keyword"){return ad(J)}else{if(aG=="["){return ad(am,q("]"),J)}}}}}function H(aG){if(aG!="variable"){return Z(J)}C.marked="property";return ad(L)}function J(aG){if(aG==":"){return ad(aB)}if(aG=="("){return Z(L)}}function aq(aI,aG){function aH(aK){if(aK==","){var aJ=C.state.lexical;if(aJ.info=="call"){aJ.pos=(aJ.pos||0)+1}return ad(aI,aH)}if(aK==aG){return ad()}return ad(q(aG))}return function(aJ){if(aJ==aG){return ad()}return Z(aI,aH)}}function av(aJ,aG,aI){for(var aH=3;aH=0;--aI){var aN=aM.cc[aI];if(aN==h){aJ=aJ.prev}else{if(aN!=e){break}}}}if(aJ.type=="stat"&&aL=="}"){aJ=aJ.prev}if(z&&aJ.type==")"&&aJ.prev.type=="stat"){aJ=aJ.prev}var aK=aJ.type,aH=aL==aK;if(aK=="vardef"){return aJ.indented+(aM.lastType=="operator"||aM.lastType==","?aJ.info+1:0)}else{if(aK=="form"&&aL=="{"){return aJ.indented}else{if(aK=="form"){return aJ.indented+k}else{if(aK=="stat"){return aJ.indented+(aM.lastType=="operator"||aM.lastType==","?z||k:0)}else{if(aJ.info=="switch"&&!aH&&ai.doubleIndentSwitch!=false){return aJ.indented+(/^(?:case|default)\b/.test(aG)?k:2*k)}else{if(aJ.align){return aJ.column+(aH?0:1)}else{return aJ.indented+(aH?0:k)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",lineComment:y?null:"//",fold:"brace",helperType:y?"json":"javascript",jsonldMode:ay,jsonMode:y}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(n){n.defineMode("css",function(O,C){if(!C.propertyKeywords){C=n.resolveMode("text/css")}var I=O.indentUnit,u=C.tokenHooks,N=C.mediaTypes||{},E=C.mediaFeatures||{},B=C.propertyKeywords||{},v=C.nonStandardPropertyKeywords||{},H=C.colorKeywords||{},K=C.valueKeywords||{},x=C.fontProperties||{},F=C.allowNested;var w,G;function P(S,T){w=T;return S}function R(V,U){var T=V.next();if(u[T]){var S=u[T](V,U);if(S!==false){return S}}if(T=="@"){V.eatWhile(/[\w\\\-]/);return P("def",V.current())}else{if(T=="="||(T=="~"||T=="|")&&V.eat("=")){return P(null,"compare")}else{if(T=='"'||T=="'"){U.tokenize=D(T);return U.tokenize(V,U)}else{if(T=="#"){V.eatWhile(/[\w\\\-]/);return P("atom","hash")}else{if(T=="!"){V.match(/^\s*\w*/);return P("keyword","important")}else{if(/\d/.test(T)||T=="."&&V.eat(/\d/)){V.eatWhile(/[\w.%]/);return P("number","unit")}else{if(T==="-"){if(/[\d.]/.test(V.peek())){V.eatWhile(/[\w.%]/);return P("number","unit")}else{if(V.match(/^\w+-/)){return P("meta","meta")}}}else{if(/[,+>*\/]/.test(T)){return P(null,"select-op")}else{if(T=="."&&V.match(/^-?[_a-z][_a-z0-9-]*/i)){return P("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(T)){return P(null,T)}else{if(T=="u"&&V.match("rl(")){V.backUp(1);U.tokenize=Q;return P("property","word")}else{if(/[\w\\\-]/.test(T)){V.eatWhile(/[\w\\\-]/);return P("property","word")}else{return P(null,null)}}}}}}}}}}}}}function D(S){return function(W,U){var V=false,T;while((T=W.next())!=null){if(T==S&&!V){if(S==")"){W.backUp(1)}break}V=!V&&T=="\\"}if(T==S||!V&&S!=")"){U.tokenize=null}return P("string","string")}}function Q(T,S){T.next();if(!T.match(/\s*[\"\')]/,false)){S.tokenize=D(")")}else{S.tokenize=null}return P(null,"(")}function J(T,S,U){this.type=T;this.indent=S;this.prev=U}function z(T,U,S){T.context=new J(S,U.indentation()+I,T.context);return S}function L(S){S.context=S.context.prev;return S.context.type}function t(S,U,T){return y[T.context.type](S,U,T)}function M(T,V,U,W){for(var S=W||1;S>0;S--){U.context=U.context.prev}return t(T,V,U)}function A(T){var S=T.current().toLowerCase();if(K.hasOwnProperty(S)){G="atom"}else{if(H.hasOwnProperty(S)){G="keyword"}else{G="variable"}}}var y={};y.top=function(S,U,T){if(S=="{"){return z(T,U,"block")}else{if(S=="}"&&T.context.prev){return L(T)}else{if(S=="@media"){return z(T,U,"media")}else{if(S=="@font-face"){return"font_face_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(S)){return"keyframes"}else{if(S&&S.charAt(0)=="@"){return z(T,U,"at")}else{if(S=="hash"){G="builtin"}else{if(S=="word"){G="tag"}else{if(S=="variable-definition"){return"maybeprop"}else{if(S=="interpolation"){return z(T,U,"interpolation")}else{if(S==":"){return"pseudo"}else{if(F&&S=="("){return z(T,U,"parens")}}}}}}}}}}}}return T.context.type};y.block=function(S,V,T){if(S=="word"){var U=V.current().toLowerCase();if(B.hasOwnProperty(U)){G="property";return"maybeprop"}else{if(v.hasOwnProperty(U)){G="string-2";return"maybeprop"}else{if(F){G=V.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{G+=" error";return"maybeprop"}}}}else{if(S=="meta"){return"block"}else{if(!F&&(S=="hash"||S=="qualifier")){G="error";return"block"}else{return y.top(S,V,T)}}}};y.maybeprop=function(S,U,T){if(S==":"){return z(T,U,"prop")}return t(S,U,T)};y.prop=function(S,U,T){if(S==";"){return L(T)}if(S=="{"&&F){return z(T,U,"propBlock")}if(S=="}"||S=="{"){return M(S,U,T)}if(S=="("){return z(T,U,"parens")}if(S=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(U.current())){G+=" error"}else{if(S=="word"){A(U)}else{if(S=="interpolation"){return z(T,U,"interpolation")}}}return"prop"};y.propBlock=function(T,S,U){if(T=="}"){return L(U)}if(T=="word"){G="property";return"maybeprop"}return U.context.type};y.parens=function(S,U,T){if(S=="{"||S=="}"){return M(S,U,T)}if(S==")"){return L(T)}if(S=="("){return z(T,U,"parens")}if(S=="word"){A(U)}return"parens"};y.pseudo=function(S,U,T){if(S=="word"){G="variable-3";return T.context.type}return t(S,U,T)};y.media=function(S,V,T){if(S=="("){return z(T,V,"media_parens")}if(S=="}"){return M(S,V,T)}if(S=="{"){return L(T)&&z(T,V,F?"block":"top")}if(S=="word"){var U=V.current().toLowerCase();if(U=="only"||U=="not"||U=="and"){G="keyword"}else{if(N.hasOwnProperty(U)){G="attribute"}else{if(E.hasOwnProperty(U)){G="property"}else{G="error"}}}}return T.context.type};y.media_parens=function(S,U,T){if(S==")"){return L(T)}if(S=="{"||S=="}"){return M(S,U,T,2)}return y.media(S,U,T)};y.font_face_before=function(S,U,T){if(S=="{"){return z(T,U,"font_face")}return t(S,U,T)};y.font_face=function(S,U,T){if(S=="}"){return L(T)}if(S=="word"){if(!x.hasOwnProperty(U.current().toLowerCase())){G="error"}else{G="property"}return"maybeprop"}return"font_face"};y.keyframes=function(S,U,T){if(S=="word"){G="variable";return"keyframes"}if(S=="{"){return z(T,U,"top")}return t(S,U,T)};y.at=function(S,U,T){if(S==";"){return L(T)}if(S=="{"||S=="}"){return M(S,U,T)}if(S=="word"){G="tag"}else{if(S=="hash"){G="builtin"}}return"at"};y.interpolation=function(S,U,T){if(S=="}"){return L(T)}if(S=="{"||S==";"){return M(S,U,T)}if(S!="variable"){G="error"}return"interpolation"};return{startState:function(S){return{tokenize:null,state:"top",context:new J("top",S||0,null)}},token:function(U,T){if(!T.tokenize&&U.eatSpace()){return null}var S=(T.tokenize||R)(U,T);if(S&&typeof S=="object"){w=S[1];S=S[0]}G=S;T.state=y[T.state](w,U,T);return G},indent:function(W,U){var T=W.context,V=U&&U.charAt(0);var S=T.indent;if(T.type=="prop"&&(V=="}"||V==")")){T=T.prev}if(T.prev&&(V=="}"&&(T.type=="block"||T.type=="top"||T.type=="interpolation"||T.type=="font_face")||V==")"&&(T.type=="parens"||T.type=="media_parens")||V=="{"&&(T.type=="at"||T.type=="media"))){S=T.indent-I;T=T.prev}return S},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function f(v){var u={};for(var t=0;t")){u.match("-->");t.tokenize=null}else{u.skipToEnd()}return["comment","comment"]}n.defineMIME("text/css",{mediaTypes:q,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:d,colorKeywords:k,valueKeywords:o,fontProperties:e,tokenHooks:{"<":function(u,t){if(!u.match("!--")){return false}t.tokenize=g;return g(u,t)},"/":function(u,t){if(!u.eat("*")){return false}t.tokenize=r;return r(u,t)}},name:"css"});n.defineMIME("text/x-scss",{mediaTypes:q,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:d,colorKeywords:k,valueKeywords:o,fontProperties:e,allowNested:true,tokenHooks:{"/":function(u,t){if(u.eat("/")){u.skipToEnd();return["comment","comment"]}else{if(u.eat("*")){t.tokenize=r;return r(u,t)}else{return["operator","operator"]}}},":":function(t){if(t.match(/\s*\{/)){return[null,"{"]}return false},"$":function(t){t.match(/^[\w-]+/);if(t.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(t){if(!t.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});n.defineMIME("text/x-less",{mediaTypes:q,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:d,colorKeywords:k,valueKeywords:o,fontProperties:e,allowNested:true,tokenHooks:{"/":function(u,t){if(u.eat("/")){u.skipToEnd();return["comment","comment"]}else{if(u.eat("*")){t.tokenize=r;return r(u,t)}else{return["operator","operator"]}}},"@":function(t){if(t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,false)){return false}t.eatWhile(/[\w\\\-]/);if(t.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlmixed",function(c,d){var b=a.getMode(c,{name:"xml",htmlMode:true,multilineTagIndentFactor:d.multilineTagIndentFactor,multilineTagIndentPastTag:d.multilineTagIndentPastTag});var n=a.getMode(c,"css");var l=[],k=d&&d.scriptTypes;l.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:a.getMode(c,"javascript")});if(k){for(var e=0;e"){var u=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);u=u?u[1]:"";if(u&&/[\"\']/.test(u.charAt(0))){u=u.slice(1,u.length-1)}for(var o=0;o"){r.token=g;r.localMode=n;r.localState=n.startState(b.indent(r.htmlState,""))}}return q}function h(s,o,p){var r=s.current();var q=r.search(o),i;if(q>-1){s.backUp(r.length-q)}else{if(i=r.match(/<\/?$/)){s.backUp(r.length);if(!s.match(o,false)){s.match(r)}}}return p}function m(o,i){if(o.match(/^<\/\s*script\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*script\s*>/,i.localMode.token(o,i.localState))}function g(o,i){if(o.match(/^<\/\s*style\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*style\s*>/,n.token(o,i.localState))}return{startState:function(){var i=b.startState();return{token:f,localMode:null,localState:null,htmlState:i}},copyState:function(o){if(o.localState){var i=a.copyState(o.localMode,o.localState)}return{token:o.token,localMode:o.localMode,localState:i,htmlState:a.copyState(b,o.htmlState)}},token:function(o,i){return i.token(o,i)},indent:function(o,i){if(!o.localMode||/^\s*<\//.test(i)){return b.indent(o.htmlState,i)}else{if(o.localMode.indent){return o.localMode.indent(o.localState,i)}else{return a.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||b}}}},"xml","javascript","css");a.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlembedded",function(d,f){var b=f.scriptStartRegex||/^<%/i,c=f.scriptEndRegex||/^%>/i;var i,g;function h(k,j){if(k.match(b,false)){j.token=e;return i.token(k,j.scriptState)}else{return g.token(k,j.htmlState)}}function e(k,j){if(k.match(c,false)){j.token=h;return g.token(k,j.htmlState)}else{return i.token(k,j.scriptState)}}return{startState:function(){i=i||a.getMode(d,f.scriptingModeSpec);g=g||a.getMode(d,"htmlmixed");return{token:f.startOpen?e:h,htmlState:a.startState(g),scriptState:a.startState(i)}},token:function(k,j){return j.token(k,j)},indent:function(k,j){if(k.token==h){return g.indent(k.htmlState,j)}else{if(i.indent){return i.indent(k.scriptState,j)}}},copyState:function(j){return{token:j.token,htmlState:a.copyState(g,j.htmlState),scriptState:a.copyState(i,j.scriptState)}},innerMode:function(j){if(j.token==e){return{state:j.scriptState,mode:i}}else{return{state:j.htmlState,mode:g}}}}},"htmlmixed");a.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"});a.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"});a.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"});a.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})});