(function(e){if("function"==typeofbootstrap)bootstrap("katex",e);elseif("object"==typeofexports)module.exports=e();elseif("function"==typeofdefine&&define.amd)define(e);elseif("undefined"!=typeofses){if(!ses.ok())return;ses.makeKatex=e}else"undefined"!=typeofwindow?window.katex=e():global.katex=e()})(function(){vare,t,i,h,a;returnfunctionl(e,t,i){functionh(s,r){if(!t[s]){if(!e[s]){varp=typeofrequire=="function"&&require;if(!r&&p)returnp(s,!0);if(a)returna(s,!0);thrownewError("Cannot find module '"+s+"'")}varc=t[s]={exports:{}};e[s][0].call(c.exports,function(t){vari=e[s][1][t];returnh(i?i:t)},c,c.exports,l,e,t,i)}returnt[s].exports}vara=typeofrequire=="function"&&require;for(vars=0;s<i.length;s++)h(i[s]);returnh}({1:[function(e,t,i){varh=e("./src/ParseError");vara=e("./src/buildTree");varl=e("./src/parseTree");vars=e("./src/utils");varr=function(e,t){s.clearNode(t);vari=l(e);varh=a(i).toNode();t.appendChild(h)};if(typeofdocument!=="undefined"){if(document.compatMode!=="CSS1Compat"){typeofconsole!=="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your "+"website has a suitable doctype.");r=function(){thrownewh("KaTeX doesn't work in quirks mode.")}}}varp=function(e){vart=l(e);returna(t).toMarkup()};t.exports={render:r,renderToString:p,ParseError:h}},{"./src/ParseError":4,"./src/buildTree":8,"./src/parseTree":13,"./src/utils":15}],2:[function(e,t,i){varh=e("./ParseError");functiona(e){this._input=e}functionl(e,t,i){this.text=e;this.data=t;this.position=i}vars=[/^[/|@.""`0-9a-zA-Z]/,/^[*+-]/,/^[=<>:]/,/^[,;]/,/^['\^_{}]/,/^[(\[]/,/^[)\]?!]/,/^~/];varr=[/^[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/,/^[{}]/,/^~/];varp=/^\s*/;varc=/^( +|\\ +)/;varg=/^\\(?:[a-zA-Z]+|.)/;a.prototype._innerLex=function(e,t,i){vara=this._input.slice(e);vars;if(i){s=a.match(p)[0];e+=s.length;a=a.slice(s.length)}else{s=a.match(c);if(s!==null){returnnewl(" ",null,e+s[0].length)}}if(a.length===0){returnnewl("EOF",null,e)}varr;if(r=a.match(g)){returnnewl(r[0],null,e+r[0].length)}else{for(vard=0;d<t.length;d++){varn=t[d];if(r=a.match(n)){returnnewl(r[0],null,e+r[0].length)}}}thrownewh("Unexpected character: '"+a[0]+"'",this,e)};vard=/^(#[a-z0-9]+|[a-z]+)/i;a.prototype._innerLexColor=function(e){vart=this._input.slice(e);vari=t.match(p)[0];e+=i.length;t=t.slice(i.length);vara;if(a=t.match(d)){returnnewl(a[0],null,e+a[0].length)}else{thrownewh("Invalid color",this,e)}};varn=/^(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;a.prototype._innerLexSize=function(e){vart=this._input.slice(e);vari=t.match(p)[0];e+=i.length;t=t.slice(i.length);vara;if(a=t.match(n)){vars=a[3];if(s!=="em"&&s!=="ex"){thrownewh("Invalid unit: '"+s+"'",this,e)}returnnewl(a[0],{number:+(a[1]+a[2]),unit:s},e+a[0].length)}thrownewh("Invalid size",this,e)};a.prototype._innerLexWhitespace=function(e){vart=this._input.slice(e);vari=t.match(p)[0];e+=i.length;returnnewl(i,null,e)};a.prototype.lex=function(e,t){if(t==="math"){returnthis._innerLex(e,s,true)}elseif(t==="text"){returnthis._innerLex(e,r,false)}elseif(t==="color"){returnthis._innerLexColor(e)}elseif(t==="size"){returnthis._innerLexSize(e)}elseif(t==="whitespace"){returnthis._innerLexWhitespace(e)}};t.exports=a},{"./ParseError":4}],3:[function(e,t,i){functionh(e,t,i,h,a){this.style=e;this.color=i;this.size=t;if(h===undefined){h=e}this.parentStyle=h;if(a===undefined){a=t}this.parentSize=a}h.prototype.withStyle=function(e){returnnewh(e,this.size,this.color,this.style,this.size)};h.prototype.withSize=function(e){returnnewh(this.style,e,this.color,this.style,this.size)};h.prototype.withColor=function(e){returnnewh(this.style,this.size,e,this.style,this.size)};h.prototype.reset=function(){returnnewh(this.style,this.size,this.color,this.style,this.size)};vara={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd"};h.prototype.getColor=function(){returna[this.color]||this.color};t.exports=h},{}],4:[function(e,