(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(ar,aE){var q=ar.indentUnit;var J=aE.statementIndent;var aY=aE.jsonld;var G=aE.json||aY;var aQ=aE.trackScope!==false;var h=aE.typescript;var aP=aE.wordCharacters||/[\w$\xa1-\uffff]/;var aN=function(){function bd(bh){return{type:bh,style:"keyword"}}var ba=bd("keyword a"),bg=bd("keyword b"),bf=bd("keyword c"),be=bd("keyword d");var bb=bd("operator"),bc={type:"atom",style:"atom"};return{"if":bd("if"),"while":ba,"with":ba,"else":bg,"do":bg,"try":bg,"finally":bg,"return":be,"break":be,"continue":be,"new":bd("new"),"delete":bf,"void":bf,"throw":bf,"debugger":bd("debugger"),"var":bd("var"),"const":bd("var"),let:bd("var"),"function":bd("function"),"catch":bd("catch"),"for":bd("for"),"switch":bd("switch"),"case":bd("case"),"default":bd("default"),"in":bb,"typeof":bb,"instanceof":bb,"true":bc,"false":bc,"null":bc,"undefined":bc,"NaN":bc,"Infinity":bc,"this":bd("this"),"class":bd("class"),"super":bd("atom"),yield:bf,"export":bd("export"),"import":bd("import"),"extends":bf,await:bf}}();var ac=/[+\-*&%=<>!?|~^@]/;var aM=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(bd){var bb=false,ba,bc=false;while((ba=bd.next())!=null){if(!bb){if(ba=="/"&&!bc){return}if(ba=="["){bc=true}else{if(bc&&ba=="]"){bc=false}}}bb=!bb&&ba=="\\"}}var ah,O;function W(bc,bb,ba){ah=bc;O=ba;return bb}function aj(be,bc){var ba=be.next();if(ba=='"'||ba=="'"){bc.tokenize=ag(ba);return bc.tokenize(be,bc)}else{if(ba=="."&&be.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)){return W("number","number")}else{if(ba=="."&&be.match("..")){return W("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(ba)){return W(ba)}else{if(ba=="="&&be.eat(">")){return W("=>","operator")}else{if(ba=="0"&&be.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)){return W("number","number")}else{if(/\d/.test(ba)){be.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);return W("number","number")}else{if(ba=="/"){if(be.eat("*")){bc.tokenize=aX;return aX(be,bc)}else{if(be.eat("/")){be.skipToEnd();return W("comment","comment")}else{if(a6(be,bc,1)){N(be);be.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return W("regexp","string-2")}else{be.eat("=");return W("operator","operator",be.current())}}}}else{if(ba=="`"){bc.tokenize=a0;return a0(be,bc)}else{if(ba=="#"&&be.peek()=="!"){be.skipToEnd();return W("meta","meta")}else{if(ba=="#"&&be.eatWhile(aP)){return W("variable","property")}else{if(ba=="<"&&be.match("!--")||(ba=="-"&&be.match("->")&&!/\S/.test(be.string.slice(0,be.start)))){be.skipToEnd();return W("comment","comment")}else{if(ac.test(ba)){if(ba!=">"||!bc.lexical||bc.lexical.type!=">"){if(be.eat("=")){if(ba=="!"||ba=="="){be.eat("=")}}else{if(/[<>*+\-|&?]/.test(ba)){be.eat(ba);if(ba==">"){be.eat(ba)}}}}if(ba=="?"&&be.eat(".")){return W(".")}return W("operator","operator",be.current())}else{if(aP.test(ba)){be.eatWhile(aP);var bd=be.current();if(bc.lastType!="."){if(aN.propertyIsEnumerable(bd)){var bb=aN[bd];return W(bb.type,bb.style,bd)}if(bd=="async"&&be.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,false)){return W("async","keyword",bd)}}return W("variable","variable",bd)}}}}}}}}}}}}}}}function ag(ba){return function(be,bc){var bd=false,bb;if(aY&&be.peek()=="@"&&be.match(aM)){bc.tokenize=aj;return W("jsonld-keyword","meta")}while((bb=be.next())!=null){if(bb==ba&&!bd){break}bd=!bd&&bb=="\\"}if(!bd){bc.tokenize=aj}return W("string","string")}}function aX(bd,bc){var ba=false,bb;while(bb=bd.next()){if(bb=="/"&&ba){bc.tokenize=aj;break}ba=(bb=="*")}return W("comment","comment")}function a0(bd,bb){var bc=false,ba;while((ba=bd.next())!=null){if(!bc&&(ba=="`"||ba=="$"&&bd.eat("{"))){bb.tokenize=aj;break}bc=!bc&&ba=="\\"}return W("quasi","string-2",bd.current())}var r="([{}])";function aU(bj,bc){if(bc.fatArrowAt){bc.fatArrowAt=null}var bi=bj.string.indexOf("=>",bj.start);if(bi<0){return}if(h){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(bj.string.slice(bj.start,bi));if(be){bi=be.index}}var bf=0,bd=false;for(var bh=bi-1;bh>=0;--bh){var ba=bj.string.charAt(bh);var bb=r.indexOf(ba);if(bb>=0&&bb<3){if(!bf){++bh;break}if(--bf==0){if(ba=="("){bd=true}break}}else{if(bb>=3&&bb<6){++bf}else{if(aP.test(ba)){bd=true}else{if(/["'\/`]/.test(ba)){for(;;--bh){if(bh==0){return}var bg=bj.string.charAt(bh-1);if(bg==ba&&bj.string.charAt(bh-2)!="\\"){bh--;break}}}else{if(bd&&!bf){++bh;break}}}}}}if(bd&&!bf){bc.fatArrowAt=bh}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"import":true,"jsonld-keyword":true};function U(bf,bb,ba,be,bc,bd){this.indented=bf;this.column=bb;this.type=ba;this.prev=bc;this.info=bd;if(be!=null){this.align=be}}function A(bd,bc){if(!aQ){return false}for(var bb=bd.localVars;bb;bb=bb.next){if(bb.name==bc){return true}}for(var ba=bd.context;ba;ba=ba.prev){for(var bb=ba.vars;bb;bb=bb.next){if(bb.name==bc){return true}}}}function g(be,bb,ba,bd,bf){var bg=be.cc;M.state=be;M.stream=bf;M.marked=null,M.cc=bg;M.style=bb;if(!be.lexical.hasOwnProperty("align")){be.lexical.align=true}while(true){var bc=bg.length?bg.pop():G?aI:a4;if(bc(ba,bd)){while(bg.length&&bg[bg.length-1].lex){bg.pop()()}if(M.marked){return M.marked}if(ba=="variable"&&A(be,bd)){return"variable-2"}return bb}}}var M={state:null,column:null,marked:null,cc:null};function au(){for(var ba=arguments.length-1;ba>=0;ba--){M.cc.push(arguments[ba])}}function az(){au.apply(null,arguments);return true}function f(bb,bc){for(var ba=bc;ba;ba=ba.next){if(ba.name==bb){return true}}return false}function aT(ba){var bb=M.state;M.marked="def";if(!aQ){return}if(bb.context){if(bb.lexical.info=="var"&&bb.context&&bb.context.block){var bc=aS(ba,bb.context);if(bc!=null){bb.context=bc;return}}else{if(!f(ba,bb.localVars)){bb.localVars=new a5(ba,bb.localVars);return}}}if(aE.globalVars&&!f(ba,bb.globalVars)){bb.globalVars=new a5(ba,bb.globalVars)}}function aS(bb,bc){if(!bc){return null}else{if(bc.block){var ba=aS(bb,bc.prev);if(!ba){return null}if(ba==bc.prev){return bc}return new T(ba,bc.vars,true)}else{if(f(bb,bc.vars)){return bc}else{return new T(bc.prev,new a5(bb,bc.vars),false)}}}}function aF(ba){return ba=="public"||ba=="private"||ba=="protected"||ba=="abstract"||ba=="readonly"}function T(ba,bb,bc){this.prev=ba;this.vars=bb;this.block=bc}function a5(ba,bb){this.name=ba;this.next=bb}var y=new a5("this",new a5("arguments",null));function D(){M.state.context=new T(M.state.context,M.state.localVars,false);M.state.localVars=y}function ap(){M.state.context=new T(M.state.context,M.state.localVars,true);M.state.localVars=null}function E(){M.state.localVars=M.state.context.vars;M.state.context=M.state.context.prev}E.lex=true;function a2(bb,bc){var ba=function(){var bf=M.state,bd=bf.indented;if(bf.lexical.type=="stat"){bd=bf.lexical.indented}else{for(var be=bf.lexical;be&&be.type==")"&&be.align;be=be.prev){bd=be.indented}}bf.lexical=new U(bd,M.stream.column(),bb,null,bf.lexical,bc)};ba.lex=true;return ba}function i(){var ba=M.state;if(ba.lexical.prev){if(ba.lexical.type==")"){ba.indented=ba.lexical.indented}ba.lexical=ba.lexical.prev}}i.lex=true;function z(ba){function bb(bc){if(bc==ba){return az()}else{if(ba==";"||bc=="}"||bc==")"||bc=="]"){return au()}else{return az(bb)}}}return bb}function a4(ba,bb){if(ba=="var"){return az(a2("vardef",bb),c,z(";"),i)}if(ba=="keyword a"){return az(a2("form"),aJ,a4,i)}if(ba=="keyword b"){return az(a2("form"),a4,i)}if(ba=="keyword d"){return M.stream.match(/^\s*$/,false)?az():az(a2("stat"),aD,z(";"),i)}if(ba=="debugger"){return az(z(";"))}if(ba=="{"){return az(a2("}"),ap,F,i,E)}if(ba==";"){return az()}if(ba=="if"){if(M.state.lexical.info=="else"&&M.state.cc[M.state.cc.length-1]==i){M.state.cc.pop()()}return az(a2("form"),aJ,a4,i,d)}if(ba=="function"){return az(X)}if(ba=="for"){return az(a2("form"),ap,C,a4,E,i)}if(ba=="class"||(h&&bb=="interface")){M.marked="keyword";return az(a2("form",ba=="class"?ba:bb),am,i)}if(ba=="variable"){if(h&&bb=="declare"){M.marked="keyword";return az(a4)}else{if(h&&(bb=="module"||bb=="enum"||bb=="type")&&M.stream.match(/^\s*\w/,false)){M.marked="keyword";if(bb=="enum"){return az(aR)}else{if(bb=="type"){return az(at,z("operator"),l,z(";"))}else{return az(a2("form"),j,z("{"),a2("}"),F,i,i)}}}else{if(h&&bb=="namespace"){M.marked="keyword";return az(a2("form"),aI,a4,i)}else{if(h&&bb=="abstract"){M.marked="keyword";return az(a4)}else{return az(a2("stat"),a7)}}}}}if(ba=="switch"){return az(a2("form"),aJ,z("{"),a2("}","switch"),ap,F,i,i,E)}if(ba=="case"){return az(aI,z(":"))}if(ba=="default"){return az(z(":"))}if(ba=="catch"){return az(a2("form"),D,aa,a4,i,E)}if(ba=="export"){return az(a2("stat"),a3,i)}if(ba=="import"){return az(a2("stat"),aA,i)}if(ba=="async"){return az(a4)}if(bb=="@"){return az(aI,a4)}return au(a2("stat"),aI,z(";"),i)}function aa(ba){if(ba=="("){return az(ay,z(")"))}}function aI(ba,bb){return aq(ba,bb,false)}function a1(ba,bb){return aq(ba,bb,true)}function aJ(ba){if(ba!="("){return au()}return az(a2(")"),aD,z(")"),i)}function aq(bb,bc,be){if(M.state.fatArrowAt==M.stream.start){var ba=be?Y:an;if(bb=="("){return az(D,a2(")"),aO(ay,")"),i,z("=>"),ba,E)}else{if(bb=="variable"){return au(D,j,z("=>"),ba,E)}}}var bd=be?m:aw;if(b.hasOwnProperty(bb)){return az(bd)}if(bb=="function"){return az(X,bd)}if(bb=="class"||(h&&bc=="interface")){M.marked="keyword";return az(a2("form"),R,i)}if(bb=="keyword c"||bb=="async"){return az(be?a1:aI)}if(bb=="("){return az(a2(")"),aD,z(")"),i,bd)}if(bb=="operator"||bb=="spread"){return az(be?a1:aI)}if(bb=="["){return az(a2("]"),s,i,bd)}if(bb=="{"){return aV(B,"}",null,bd)}if(bb=="quasi"){return au(ad,bd)}if(bb=="new"){return az(Q(be))}return az()}function aD(ba){if(ba.match(/[;\}\)\],]/)){return au()}return au(aI)}function aw(ba,bb){if(ba==","){return az(aD)}return m(ba,bb,false)}function m(ba,bc,be){var bb=be==false?aw:m;var bd=be==false?aI:a1;if(ba=="=>"){return az(D,be?Y:an,E)}if(ba=="operator"){if(/\+\+|--/.test(bc)||h&&bc=="!"){return az(bb)}if(h&&bc=="<"&&M.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,false)){return az(a2(">"),aO(l,">"),i,bb)}if(bc=="?"){return az(aI,z(":"),bd)}return az(bd)}if(ba=="quasi"){return au(ad,bb)}if(ba==";"){return}if(ba=="("){return aV(a1,")","call",bb)}if(ba=="."){return az(aG,bb)}if(ba=="["){return az(a2("]"),aD,z("]"),i,bb)}if(h&&bc=="as"){M.marked="keyword";return az(l,bb)}if(ba=="regexp"){M.state.lastType=M.marked="operator";M.stream.backUp(M.stream.pos-M.stream.start-1);return az(bd)}}function ad(ba,bb){if(ba!="quasi"){return au()}if(bb.slice(bb.length-2)!="${"){return az(ad)}return az(aI,x)}function x(ba){if(ba=="}"){M.marked="string-2";M.state.tokenize=a0;return az(ad)}}function an(ba){aU(M.stream,M.state);return au(ba=="{"?a4:aI)}function Y(ba){aU(M.stream,M.state);return au(ba=="{"?a4:a1)}function Q(ba){return function(bb){if(bb=="."){return az(ba?t:al)}else{if(bb=="variable"&&h){return az(e,ba?m:aw)}else{return au(ba?a1:aI)}}}}function al(ba,bb){if(bb=="target"){M.marked="keyword";return az(aw)}}function t(ba,bb){if(bb=="target"){M.marked="keyword";return az(m)}}function a7(ba){if(ba==":"){return az(i,a4)}return au(aw,z(";"),i)}function aG(ba){if(ba=="variable"){M.marked="property";return az()}}function B(bb,bc){if(bb=="async"){M.marked="property";return az(B)}else{if(bb=="variable"||M.style=="keyword"){M.marked="property";if(bc=="get"||bc=="set"){return az(S)}var ba;if(h&&M.state.fatArrowAt==M.stream.start&&(ba=M.stream.match(/^\s*:\s*/,false))){M.state.fatArrowAt=M.stream.pos+ba[0].length}return az(V)}else{if(bb=="number"||bb=="string"){M.marked=aY?"property":(M.style+" property");return az(V)}else{if(bb=="jsonld-keyword"){return az(V)}else{if(h&&aF(bc)){M.marked="keyword";return az(B)}else{if(bb=="["){return az(aI,ai,z("]"),V)}else{if(bb=="spread"){return az(a1,V)}else{if(bc=="*"){M.marked="keyword";return az(B)}else{if(bb==":"){return au(V)}}}}}}}}}}function S(ba){if(ba!="variable"){return au(V)}M.marked="property";return az(X)}function V(ba){if(ba==":"){return az(a1)}if(ba=="("){return au(X)}}function aO(bd,ba,bb){function bc(bf,bg){if(bb?bb.indexOf(bf)>-1:bf==","){var be=M.state.lexical;if(be.info=="call"){be.pos=(be.pos||0)+1}return az(function(bh,bi){if(bh==ba||bi==ba){return au()}return au(bd)},bc)}if(bf==ba||bg==ba){return az()}if(bb&&bb.indexOf(";")>-1){return au(bd)}return az(z(ba))}return function(be,bf){if(be==ba||bf==ba){return az()}return au(bd,bc)}}function aV(bd,ba,bc){for(var bb=3;bb<arguments.length;bb++){M.cc.push(arguments[bb])}return az(a2(ba,bc),aO(bd,ba),i)}function F(ba){if(ba=="}"){return az()}return au(a4,F)}function ai(ba,bb){if(h){if(ba==":"){return az(l)}if(bb=="?"){return az(ai)}}}function H(ba,bb){if(h&&(ba==":"||bb=="in")){return az(l)}}function Z(ba){if(h&&ba==":"){if(M.stream.match(/^\s*\w+\s+is\b/,false)){return az(aI,ae,l)}else{return az(l)}}}function ae(ba,bb){if(bb=="is"){M.marked="keyword";return az()}}function l(ba,bb){if(bb=="keyof"||bb=="typeof"||bb=="infer"||bb=="readonly"){M.marked="keyword";return az(bb=="typeof"?a1:l)}if(ba=="variable"||bb=="void"){M.marked="type";return az(P)}if(bb=="|"||bb=="&"){return az(l)}if(ba=="string"||ba=="number"||ba=="atom"){return az(P)}if(ba=="["){return az(a2("]"),aO(l,"]",","),i,P)}if(ba=="{"){return az(a2("}"),w,i,P)}if(ba=="("){return az(aO(av,")"),af,P)}if(ba=="<"){return az(aO(l,">"),l)}if(ba=="quasi"){return au(k,P)}}function af(ba){if(ba=="=>"){return az(l)}}function w(ba){if(ba.match(/[\}\)\]]/)){return az()}if(ba==","||ba==";"){return az(w)}return au(aH,w)}function aH(ba,bb){if(ba=="variable"||M.style=="keyword"){M.marked="property";return az(aH)}else{if(bb=="?"||ba=="number"||ba=="string"){return az(aH)}else{if(ba==":"){return az(l)}else{if(ba=="["){return az(z("variable"),H,z("]"),aH)}else{if(ba=="("){return au(a9,aH)}else{if(!ba.match(/[;\}\)\],]/)){return az()}}}}}}}function k(ba,bb){if(ba!="quasi"){return au()}if(bb.slice(bb.length-2)!="${"){return az(k)}return az(l,u)}function u(ba){if(ba=="}"){M.marked="string-2";M.state.tokenize=a0;return az(k)}}function av(ba,bb){if(ba=="variable"&&M.stream.match(/^\s*[?:]/,false)||bb=="?"){return az(av)}if(ba==":"){return az(l)}if(ba=="spread"){return az(av)}return au(l)}function P(ba,bb){if(bb=="<"){return az(a2(">"),aO(l,">"),i,P)}if(bb=="|"||ba=="."||bb=="&"){return az(l)}if(ba=="["){return az(l,z("]"),P)}if(bb=="extends"||bb=="implements"){M.marked="keyword";return az(l)}if(bb=="?"){return az(l,z(":"),l)}}function e(ba,bb){if(bb=="<"){return az(a2(">"),aO(l,">"),i,P)}}function p(){return au(l,ak)}function ak(ba,bb){if(bb=="="){return az(l)}}function c(ba,bb){if(bb=="enum"){M.marked="keyword";return az(aR)}return au(j,ai,ax,ao)}function j(ba,bb){if(h&&aF(bb)){M.marked="keyword";return az(j)}if(ba=="variable"){aT(bb);return az()}if(ba=="spread"){return az(j)}if(ba=="["){return aV(I,"]")}if(ba=="{"){return aV(aZ,"}")}}function aZ(ba,bb){if(ba=="variable"&&!M.stream.match(/^\s*:/,false)){aT(bb);return az(ax)}if(ba=="variable"){M.marked="property"}if(ba=="spread"){return az(j)}if(ba=="}"){return au()}if(ba=="["){return az(aI,z("]"),z(":"),aZ)}return az(z(":"),j,ax)}function I(){return au(j,ax)}function ax(ba,bb){if(bb=="="){return az(a1)}}function ao(ba){if(ba==","){return az(c)}}function d(ba,bb){if(ba=="keyword b"&&bb=="else"){return az(a2("form","else"),a4,i)}}function C(ba,bb){if(bb=="await"){return az(C)}if(ba=="("){return az(a2(")"),L,i)}}function L(ba){if(ba=="var"){return az(c,K)}if(ba=="variable"){return az(K)}return au(K)}function K(ba,bb){if(ba==")"){return az()}if(ba==";"){return az(K)}if(bb=="in"||bb=="of"){M.marked="keyword";return az(aI,K)}return au(aI,K)}function X(ba,bb){if(bb=="*"){M.marked="keyword";return az(X)}if(ba=="variable"){aT(bb);return az(X)}if(ba=="("){return az(D,a2(")"),aO(ay,")"),i,Z,a4,E)}if(h&&bb=="<"){return az(a2(">"),aO(p,">"),i,X)}}function a9(ba,bb){if(bb=="*"){M.marked="keyword";return az(a9)}if(ba=="variable"){aT(bb);return az(a9)}if(ba=="("){return az(D,a2(")"),aO(ay,")"),i,Z,E)}if(h&&bb=="<"){return az(a2(">"),aO(p,">"),i,a9)}}function at(ba,bb){if(ba=="keyword"||ba=="variable"){M.marked="type";return az(at)}else{if(bb=="<"){return az(a2(">"),aO(p,">"),i)}}}function ay(ba,bb){if(bb=="@"){az(aI,ay)}if(ba=="spread"){return az(ay)}if(h&&aF(bb)){M.marked="keyword";return az(ay)}if(h&&ba=="this"){return az(ai,ax)}return au(j,ai,ax)}function R(ba,bb){if(ba=="variable"){return am(ba,bb)}return ab(ba,bb)}function am(ba,bb){if(ba=="variable"){aT(bb);return az(ab)}}function ab(ba,bb){if(bb=="<"){return az(a2(">"),aO(p,">"),i,ab)}if(bb=="extends"||bb=="implements"||(h&&ba==",")){if(bb=="implements"){M.marked="keyword"}return az(h?l:aI,ab)}if(ba=="{"){return az(a2("}"),v,i)}}function v(ba,bb){if(ba=="async"||(ba=="variable"&&(bb=="static"||bb=="get"||bb=="set"||(h&&aF(bb)))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,false))){M.marked="keyword";return az(v)}if(ba=="variable"||M.style=="keyword"){M.marked="property";return az(a8,v)}if(ba=="number"||ba=="string"){return az(a8,v)}if(ba=="["){return az(aI,ai,z("]"),a8,v)}if(bb=="*"){M.marked="keyword";return az(v)}if(h&&ba=="("){return au(a9,v)}if(ba==";"||ba==","){return az(v)}if(ba=="}"){return az()}if(bb=="@"){return az(aI,v)}}function a8(bb,bd){if(bd=="!"){return az(a8)}if(bd=="?"){return az(a8)}if(bb==":"){return az(l,ax)}if(bd=="="){return az(a1)}var ba=M.state.lexical.prev,bc=ba&&ba.info=="interface";return au(bc?a9:X)}function a3(ba,bb){if(bb=="*"){M.marked="keyword";return az(aC,z(";"))}if(bb=="default"){M.marked="keyword";return az(aI,z(";"))}if(ba=="{"){return az(aO(aB,"}"),aC,z(";"))}return au(a4)}function aB(ba,bb){if(bb=="as"){M.marked="keyword";return az(z("variable"))}if(ba=="variable"){return au(a1,aB)}}function aA(ba){if(ba=="string"){return az()}if(ba=="("){return au(aI)}if(ba=="."){return au(aw)}return au(aL,o,aC)}function aL(ba,bb){if(ba=="{"){return aV(aL,"}")}if(ba=="variable"){aT(bb)}if(bb=="*"){M.marked="keyword"}return az(n)}function o(ba){if(ba==","){return az(aL,o)}}function n(ba,bb){if(bb=="as"){M.marked="keyword";return az(aL)}}function aC(ba,bb){if(bb=="from"){M.marked="keyword";return az(aI)}}function s(ba){if(ba=="]"){return az()}return au(aO(a1,"]"))}function aR(){return au(a2("form"),j,z("{"),a2("}"),aO(aW,"}"),i,i)}function aW(){return au(j,ax)}function aK(bb,ba){return bb.lastType=="operator"||bb.lastType==","||ac.test(ba.charAt(0))||/[,.]/.test(ba.charAt(0))}function a6(bc,bb,ba){return bb.tokenize==aj&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(bb.lastType)||(bb.lastType=="quasi"&&/\{\s*$/.test(bc.string.slice(0,bc.pos-(ba||0))))}return{startState:function(bb){var ba={tokenize:aj,lastType:"sof",cc:[],lexical:new U((bb||0)-q,0,"block",false),localVars:aE.localVars,context:aE.localVars&&new T(null,null,false),indented:bb||0};if(aE.globalVars&&typeof aE.globalVars=="object"){ba.globalVars=aE.globalVars}return ba},token:function(bc,bb){if(bc.sol()){if(!bb.lexical.hasOwnProperty("align")){bb.lexical.align=false}bb.indented=bc.indentation();aU(bc,bb)}if(bb.tokenize!=aX&&bc.eatSpace()){return null}var ba=bb.tokenize(bc,bb);if(ah=="comment"){return ba}bb.lastType=ah=="operator"&&(O=="++"||O=="--")?"incdec":ah;return g(bb,ba,ah,O,bc)},indent:function(ba,bd){if(ba.tokenize==aX||ba.tokenize==a0){return a.Pass}if(ba.tokenize!=aj){return 0}var bh=bd&&bd.charAt(0),bi=ba.lexical,bg;if(!/^\s*else\b/.test(bd)){for(var bc=ba.cc.length-1;bc>=0;--bc){var be=ba.cc[bc];if(be==i){bi=bi.prev}else{if(be!=d&&be!=E){break}}}}while((bi.type=="stat"||bi.type=="form")&&(bh=="}"||((bg=ba.cc[ba.cc.length-1])&&(bg==aw||bg==m)&&!/^[,\.=+\-*:?[\(]/.test(bd)))){bi=bi.prev}if(J&&bi.type==")"&&bi.prev.type=="stat"){bi=bi.prev}var bf=bi.type,bb=bh==bf;if(bf=="vardef"){return bi.indented+(ba.lastType=="operator"||ba.lastType==","?bi.info.length+1:0)}else{if(bf=="form"&&bh=="{"){return bi.indented}else{if(bf=="form"){return bi.indented+q}else{if(bf=="stat"){return bi.indented+(aK(ba,bd)?J||q:0)}else{if(bi.info=="switch"&&!bb&&aE.doubleIndentSwitch!=false){return bi.indented+(/^(?:case|default)\b/.test(bd)?q:2*q)}else{if(bi.align){return bi.column+(bb?0:1)}else{return bi.indented+(bb?0:q)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:G?null:"/*",blockCommentEnd:G?null:"*/",blockCommentContinue:G?null:" * ",lineComment:G?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:G?"json":"javascript",jsonldMode:aY,jsonMode:G,expressionAllowed:a6,skipExpression:function(ba){g(ba,"atom","atom","true",new a.StringStream("",2,null))}}});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/manifest+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})});