p&&((s=new e.Token("text","",0)).content=_.slice(p,d),s.level=m,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",E]],s.level=m++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=S,s.level=m,c.push(s),(s=new e.Token("link_close","a",-1)).level=--m,s.markup="linkify",s.info="auto",c.push(s),p=h[u].lastIndex);p<_.length&&((s=new e.Token("text","",0)).content=_.slice(p),s.level=m,c.push(s)),T[n].children=o=r(o,t,c)}}else for(t--;o[t].level!==l.level&&"link_open"!==o[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,o={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function s(e,t){return o[t.toLowerCase()]}function l(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function c(e){var t,n,a=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||a||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&l(e.tokens[t].children),r.test(e.tokens[t].content)&&c(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(7).isWhiteSpace,a=n(7).isPunctChar,i=n(7).isMdAsciiPunct,o=/['"]/,s=/['"]/g,l="\u2019";function c(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,o,u,_,d,p,m,g,f,E,S,h,b,T,v,y,C,N,R,O,A;for(R=[],n=0;n=0&&!(R[C].level<=m);C--);if(R.length=C+1,"text"===o.type){d=0,p=(u=o.content).length;e:for(;d=0)f=u.charCodeAt(_.index-1);else for(C=n-1;C>=0&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C--)if("text"===e[C].type){f=e[C].content.charCodeAt(e[C].content.length-1);break}if(E=32,d
=48&&f<=57&&(y=v=!1),v&&y&&(v=S,y=h),v||y){if(y)for(C=R.length-1;C>=0&&(g=R[C],!(R[C].level=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(34);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r,e.exports=a},function(e,t,n){"use strict";var r=n(33),a=[["table",n(171),["paragraph","reference"]],["code",n(172)],["fence",n(173),["paragraph","reference","blockquote","list"]],["blockquote",n(174),["paragraph","reference","blockquote","list"]],["hr",n(175),["paragraph","reference","blockquote","list"]],["list",n(176),["paragraph","reference","blockquote"]],["reference",n(177)],["heading",n(178),["paragraph","reference","blockquote"]],["lheading",n(179)],["html_block",n(180),["paragraph","reference","blockquote"]],["paragraph",n(182)]];function i(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[o]=l){e.line=n;break}for(r=0;rn)return!1;if(_=t+1,e.sCount[_]=4)return!1;if((c=e.bMarks[_]+e.tShift[_])>=e.eMarks[_])return!1;if(124!==(s=e.src.charCodeAt(c++))&&45!==s&&58!==s)return!1;for(;c=4)return!1;if((p=(d=i(l.replace(/^\||\|$/g,""))).length)>g.length)return!1;if(o)return!0;for((m=e.push("table_open","table",1)).map=E=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4);_++){for(d=i(l.replace(/^\||\|$/g,"")),m=e.push("tr_open","tr",1),u=0;u=4))break;a=++r}return e.line=a,(i=e.push("code_block","code",0)).content=e.getLines(t,a,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var a,i,o,s,l,c,u,_=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(a=e.src.charCodeAt(d))&&96!==a)return!1;if(l=d,(i=(d=e.skipChars(d,a))-l)<3)return!1;if(u=e.src.slice(l,d),o=e.src.slice(d,p),96===a&&o.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((d=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]=4)&&!((d=e.skipChars(d,a))-l=4)return!1;if(62!==e.src.charCodeAt(R++))return!1;if(a)return!0;for(l=p=e.sCount[t]+R-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(R)?(R++,l++,p++,i=!1,b=!0):9===e.src.charCodeAt(R)?(b=!0,(e.bsCount[t]+p)%4===3?(R++,l++,p++,i=!1):i=!0):b=!1,m=[e.bMarks[t]],e.bMarks[t]=R;R=O,S=[e.sCount[t]],e.sCount[t]=p-l,h=[e.tShift[t]],e.tShift[t]=R-e.bMarks[t],v=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",C=!1,d=t+1;d=(O=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(R++)||C){if(u)break;for(T=!1,s=0,c=v.length;s=O,g.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),S.push(e.sCount[d]),e.sCount[d]=p-l,h.push(e.tShift[d]),e.tShift[d]=R-e.bMarks[d]}for(f=e.blkIndent,e.blkIndent=0,(y=e.push("blockquote_open","blockquote",1)).markup=">",y.map=_=[t,0],e.md.block.tokenize(e,t,d),(y=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=N,e.parentType=E,_[1]=e.line,s=0;s=4)return!1;if(42!==(i=e.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(o=1;c=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-a>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(L=!0),(A=i(e,t))>=0){if(d=!0,D=e.bMarks[t]+e.tShift[t],S=Number(e.src.substr(D,A-D-1)),L&&1!==S)return!1}else{if(!((A=a(e,t))>=0))return!1;d=!1}if(L&&e.skipSpaces(A)>=e.eMarks[t])return!1;if(E=e.src.charCodeAt(A-1),r)return!0;for(f=e.tokens.length,d?(M=e.push("ordered_list_open","ol",1),1!==S&&(M.attrs=[["start",S]])):M=e.push("bullet_list_open","ul",1),M.map=g=[t,0],M.markup=String.fromCharCode(E),b=t,I=!1,w=e.md.block.ruler.getRules("list"),y=e.parentType,e.parentType="list";b=h?1:T-_)>4&&(u=1),c=_+u,(M=e.push("list_item_open","li",1)).markup=String.fromCharCode(E),M.map=p=[t,0],R=e.tight,N=e.tShift[t],C=e.sCount[t],v=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=T,s>=h&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!I||(k=!1),I=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=v,e.tShift[t]=N,e.sCount[t]=C,e.tight=R,(M=e.push("list_item_close","li",-1)).markup=String.fromCharCode(E),b=t=e.line,p[1]=b,s=e.bMarks[t],b>=n)break;if(e.sCount[b]=4)break;for(x=!1,l=0,m=w.length;l=4)return!1;if(91!==e.src.charCodeAt(y))return!1;for(;++y3)&&!(e.sCount[N]<0)){for(h=!1,_=0,d=b.length;_=4)return!1;if(35!==(i=e.src.charCodeAt(c))||c>=u)return!1;for(o=1,i=e.src.charCodeAt(++c);35===i&&c6||cc&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,s,l,c,u,_,d,p=t+1,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";p3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(c=e.eMarks[p])&&(45===(_=e.src.charCodeAt(l))||61===_)&&(l=e.skipChars(l,_),(l=e.skipSpaces(l))>=c)){u=61===_?1:2;break}if(!(e.sCount[p]<0)){for(a=!1,i=0,o=m.length;i|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var a,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),a=0;a3)&&!(e.sCount[l]<0)){for(r=!1,a=0,i=c.length;a0&&this.level++,this.tokens.push(a),a},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!a(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,o,s,l,c,u,_,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;dn?new Array(o-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(33),a=[["text",n(185)],["newline",n(186)],["escape",n(187)],["backticks",n(188)],["strikethrough",n(60).tokenize],["emphasis",n(61).tokenize],["link",n(189)],["image",n(190)],["autolink",n(191)],["html_inline",n(192)],["entity",n(193)]],i=[["balance_pairs",n(194)],["strikethrough",n(60).postProcess],["emphasis",n(61).postProcess],["text_collapse",n(195)]];function o(){var e;for(this.ruler=new r,e=0;e=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var a,i,o,s=new this.State(e,t,n,r);for(this.tokenize(s),o=(i=this.ruler2.getRules("")).length,a=0;a=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,i=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i=g)return!1;for(f=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p=""),f=c;c=g||41!==e.src.charCodeAt(c))&&(E=!0),c++}if(E){if("undefined"===typeof e.env.references)return!1;if(c=0?o=e.src.slice(f,c++):c=s+1):c=s+1,o||(o=e.src.slice(l,s)),!(_=e.env.references[r(o)]))return e.pos=m,!1;p=_.href,d=_.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0}},function(e,t,n){"use strict";var r=n(7).normalizeReference,a=n(7).isSpace;e.exports=function(e,t){var n,i,o,s,l,c,u,_,d,p,m,g,f,E="",S=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)=h)return!1;for(f=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(E=e.md.normalizeLink(d.str),e.md.validateLink(E)?u=d.pos:E=""),f=u;u=h||41!==e.src.charCodeAt(u))return e.pos=S,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u=0?s=e.src.slice(f,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(_=e.env.references[r(s)]))return e.pos=S,!1;E=_.href,p=_.title}return t||(o=e.src.slice(c,l),e.md.inline.parse(o,e.md,e.env,g=[]),(m=e.push("image","img",0)).attrs=n=[["src",E],["alt",""]],m.children=g,m.content=o,p&&n.push(["title",p])),e.pos=u,e.posMax=h,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,a=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,o,s,l,c,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(a.test(n)?(s=(i=n.match(a))[0].slice(1,-1),l=e.md.normalizeLink(s),!!e.md.validateLink(l)&&(t||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(s=(o=n.match(r))[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(l)&&(t||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(59).HTML_TAG_RE;e.exports=function(e,t){var n,a,i,o=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(o)||o+2>=i)&&(!(33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(o).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+a[0].length)),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(54),a=n(7).has,i=n(7).isValidEntityCode,o=n(7).fromCodePoint,s=/^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,_=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<_)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=i(n)?o(n):o(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&a(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";function r(e,t){var n,r,a,i,o,s,l,c,u={},_=t.length;for(n=0;n<_;n++)if((a=t[n]).length=a.length||0,a.close){for(u.hasOwnProperty(a.marker)||(u[a.marker]=[-1,-1,-1]),o=u[a.marker][a.length%3],s=-1,r=n-a.jump-1;r>o;r-=i.jump+1)if((i=t[r]).marker===a.marker&&(-1===s&&(s=r),i.open&&i.end<0&&i.level===a.level&&(l=!1,(i.close||a.open)&&(i.length+a.length)%3===0&&(i.length%3===0&&a.length%3===0||(l=!0)),!l))){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,a.jump=n-r+c,a.open=!1,i.end=n,i.jump=c,i.close=!1,s=-1;break}-1!==s&&(u[a.marker][(a.length||0)%3]=s)}}e.exports=function(e){var t,n=e.tokens_meta,a=e.tokens_meta.length;for(r(0,e.delimiters),t=0;t0&&r++,"text"===a[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(a),this.tokens_meta.push(i),a},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,_,d,p,m=e,g=!0,f=!0,E=this.posMax,S=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;m=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function _(e){var t=e.re=n(198)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===a(n))return!function(e){return"[object RegExp]"===a(e)}(n.validate)?i(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===a(e)}(n)?u(t,n):l.push(t)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var _=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+_+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+_+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},_(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,_(this),this},m.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,a,i,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(a=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o)),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),_(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(56).source,t.src_Cc=n(57).source,t.src_Z=n(58).source,t.src_P=n(32).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><\uff5c]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){(function(e,r){var a;!function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=36,u=1,_=26,d=38,p=700,m=72,g=128,f="-",E=/^xn--/,S=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=c-u,v=Math.floor,y=String.fromCharCode;function C(e){throw new RangeError(b[e])}function N(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function R(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+N((e=e.replace(h,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],a=0,i=e.length;a=55296&&t<=56319&&a65535&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=y(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?v(e/p):e>>1,e+=v(e/t);e>T*_>>1;r+=c)e=v(e/T);return v(r+(T+1)*e/(e+d))}function x(e){var t,n,r,a,i,o,s,d,p,E,S,h=[],b=e.length,T=0,y=g,N=m;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r=128&&C("not-basic"),h.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=b&&C("invalid-input"),((d=(S=e.charCodeAt(a++))-48<10?S-22:S-65<26?S-65:S-97<26?S-97:c)>=c||d>v((l-T)/o))&&C("overflow"),T+=d*o,!(d<(p=s<=N?u:s>=N+_?_:s-N));s+=c)o>v(l/(E=c-p))&&C("overflow"),o*=E;N=D(T-i,t=h.length+1,0==i),v(T/t)>l-y&&C("overflow"),y+=v(T/t),T%=t,h.splice(T++,0,y)}return A(h)}function w(e){var t,n,r,a,i,o,s,d,p,E,S,h,b,T,N,R=[];for(h=(e=O(e)).length,t=g,n=0,i=m,o=0;o=t&&Sv((l-n)/(b=r+1))&&C("overflow"),n+=(s-t)*b,t=s,o=0;ol&&C("overflow"),S==t){for(d=n,p=c;!(d<(E=p<=i?u:p>=i+_?_:p-i));p+=c)N=d-E,T=c-E,R.push(y(I(E+N%T,0))),d=v(N/T);R.push(y(I(d,0))),i=D(n,b,r==a),n=0,++r}++n,++t}return R.join("")}s={version:"1.4.1",ucs2:{decode:O,encode:A},decode:x,encode:w,toASCII:function(e){return R(e,function(e){return S.test(e)?"xn--"+w(e):e})},toUnicode:function(e){return R(e,function(e){return E.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n(200)(e),n(52))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){var r=n(13),a=n(62),i=n(205),o=n(212),s=n(11),l=function(e,t,n){s.clearNode(t);var r=new a(n),l=o(e,r),c=i(l,e,r).toNode();t.appendChild(c)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),l=function(){throw new r("KaTeX doesn't work in quirks mode.")});e.exports={render:l,renderToString:function(e,t){var n=new a(t),r=o(e,n);return i(r,e,n).toMarkup()},__parse:function(e,t){var n=new a(t);return o(e,n)},ParseError:r}},function(e,t,n){var r=n(206),a=n(209),i=n(20),o=n(211),s=n(62),l=n(19),c=i.makeSpan;e.exports=function(e,t,n){n=n||new s({});var i=l.TEXT;n.displayMode&&(i=l.DISPLAY);var u=new o({style:i,size:"size5"}),_=a(e,t,u),d=r(e,u),p=c(["katex"],[_,d]);return n.displayMode?c(["katex-display"],[p]):p}},function(e,t,n){var r=n(13),a=n(19),i=n(20),o=n(208),s=n(63),l=n(15),c=n(11),u=i.makeSpan,_=function(e,t,n){for(var r=[],a=0;a0&&(d+=C,m-=C)}b=i.makeVList([{type:"elem",elem:o,shift:m},{type:"elem",elem:r,shift:-d}],"individualShift",null,t),h instanceof s.symbolNode&&(b.children[0].style.marginLeft=-h.italic+"em"),b.children[0].style.marginRight=v,b.children[1].style.marginRight=v}else d=Math.max(d,f,c.depth+.25*l.metrics.xHeight),(b=i.makeVList([{type:"elem",elem:r}],"shift",-d,t)).children[0].style.marginRight=v;else m=Math.max(m,l.metrics.sub1,_.height-.8*l.metrics.xHeight),(b=i.makeVList([{type:"elem",elem:o}],"shift",m,t)).children[0].style.marginRight=v,h instanceof s.symbolNode&&(b.children[0].style.marginLeft=-h.italic+"em");return u([p(e.value.base)],[h,b])},E.genfrac=function(e,t,n){var r=t.style;"display"===e.value.size?r=a.DISPLAY:"text"===e.value.size&&(r=a.TEXT);var s,c,_,d,p,m,g,E,h=r.fracNum(),b=r.fracDen(),T=S(e.value.numer,t.withStyle(h)),v=u([r.reset(),h.cls()],[T]),y=S(e.value.denom,t.withStyle(b)),C=u([r.reset(),b.cls()],[y]);if(s=e.value.hasBarLine?l.metrics.defaultRuleThickness/t.style.sizeMultiplier:0,r.size===a.DISPLAY.size?(c=l.metrics.num1,_=s>0?3*s:7*l.metrics.defaultRuleThickness,d=l.metrics.denom1):(s>0?(c=l.metrics.num2,_=s):(c=l.metrics.num3,_=3*l.metrics.defaultRuleThickness),d=l.metrics.denom2),0===s){var N=c-T.depth-(y.height-d);N<_&&(c+=.5*(_-N),d+=.5*(_-N)),p=i.makeVList([{type:"elem",elem:C,shift:d},{type:"elem",elem:v,shift:-c}],"individualShift",null,t)}else{var R=l.metrics.axisHeight;c-T.depth-(R+.5*s)<_&&(c+=_-(c-T.depth-(R+.5*s))),R-.5*s-(y.height-d)<_&&(d+=_-(R-.5*s-(y.height-d)));var O=u([t.style.reset(),a.TEXT.cls(),"frac-line"]);O.height=s;var A=-(R-.5*s);p=i.makeVList([{type:"elem",elem:C,shift:d},{type:"elem",elem:O,shift:A},{type:"elem",elem:v,shift:-c}],"individualShift",null,t)}return p.height*=r.sizeMultiplier/t.style.sizeMultiplier,p.depth*=r.sizeMultiplier/t.style.sizeMultiplier,m=r.size===a.DISPLAY.size?l.metrics.delim1:l.metrics.getDelim2(r),g=null==e.value.leftDelim?f(t):o.customSizedDelim(e.value.leftDelim,m,!0,t.withStyle(r),e.mode),E=null==e.value.rightDelim?f(t):o.customSizedDelim(e.value.rightDelim,m,!0,t.withStyle(r),e.mode),u(["mord",t.style.reset(),r.cls()],[g,u(["mfrac"],[p]),E],t.getColor())},E.array=function(e,t,n){var a,o,s=e.value.body.length,_=0,d=new Array(s),p=1/l.metrics.ptPerEm,m=5*p,g=12*p,f=c.deflt(e.value.arraystretch,1)*g,E=.7*f,h=.3*f,b=0;for(a=0;a0&&(y<(R+=h)&&(y=R),R=0)}C.height=v,C.depth=y,b+=v,C.pos=b,b+=y+R,d[a]=C}var O,A,I=b/2+l.metrics.axisHeight,D=e.value.cols||[],x=[];for(o=0,A=0;o<_||A=_)){var k;(o>0||e.value.hskipBeforeAndAfter)&&0!==(k=c.deflt(w.pregap,m))&&((O=u(["arraycolsep"],[])).style.width=k+"em",x.push(O));var P=[];for(a=0;ar.height+r.depth+d&&(d=(d+g-r.height-r.depth)/2);var f,E=-(r.height+d+s)+m.height;if(m.style.top=E+"em",m.height-=E,m.depth+=E,f=0===r.height&&0===r.depth?u():i.makeVList([{type:"elem",elem:r},{type:"kern",size:d},{type:"elem",elem:c},{type:"kern",size:s}],"firstBaseline",null,t),e.value.index){var h=S(e.value.index,t.withStyle(a.SCRIPTSCRIPT)),b=u([t.style.reset(),a.SCRIPTSCRIPT.cls()],[h]),T=.6*(Math.max(m.height,f.height)-Math.max(m.depth,f.depth)),v=i.makeVList([{type:"elem",elem:b}],"shift",-T,t),y=u(["root"],[v]);return u(["sqrt","mord"],[y,m,f])}return u(["sqrt","mord"],[m,f])},E.sizing=function(e,t,n){var r=_(e.value.value,t.withSize(e.value.size),n),a=u(["mord"],[u(["sizing","reset-"+t.size,e.value.size,t.style.cls()],r)]),o=i.sizingMultiplier[e.value.size];return a.maxFontSize=o*t.style.sizeMultiplier,a},E.styling=function(e,t,n){var r={display:a.DISPLAY,text:a.TEXT,script:a.SCRIPT,scriptscript:a.SCRIPTSCRIPT}[e.value.style],i=_(e.value.value,t.withStyle(r),n);return u([t.style.reset(),r.cls()],i)},E.font=function(e,t,n){var r=e.value.font;return S(e.value.body,t.withFont(r),n)},E.delimsizing=function(e,t,n){var r=e.value.value;return"."===r?u([d[e.value.delimType]]):u([d[e.value.delimType]],[o.sizedDelim(r,e.value.size,t,e.mode)])},E.leftright=function(e,t,n){for(var r,a,i=_(e.value.body,t.reset()),s=0,l=0,c=0;c","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],S=[0,1.2,1.8,2.4,3],h=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],b=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"stack"}],T=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],v=function(e,t,n,r,a){"<"===e||"\\lt"===e?e="\\langle":">"!==e&&"\\gt"!==e||(e="\\rangle");var s=function(e,t,n,r){for(var a,i=Math.min(2,3-r.style.size);it)return n[i]}return n[n.length-1]}(e,t,l.contains(E,e)?h:l.contains(g,e)?T:b,r);return"small"===s.type?function(e,t,n,r,a){var s=i.makeSymbol(e,"Main-Regular",a),l=_(s,t,r);if(n){var c=(1-r.style.sizeMultiplier/t.sizeMultiplier)*o.metrics.axisHeight;l.style.top=c+"em",l.height-=c,l.depth+=c}return l}(e,s.style,n,r,a):"large"===s.type?d(e,s.size,n,r,a):"stack"===s.type?m(e,t,n,r,a):void 0};e.exports={sizedDelim:function(e,t,n,a){if("<"===e||"\\lt"===e?e="\\langle":">"!==e&&"\\gt"!==e||(e="\\rangle"),l.contains(g,e)||l.contains(E,e))return d(e,t,!1,n,a);if(l.contains(f,e))return m(e,S[t],!1,n,a);throw new r("Illegal delimiter: '"+e+"'")},customSizedDelim:v,leftRightDelim:function(e,t,n,r,a){var i=o.metrics.axisHeight*r.style.sizeMultiplier,s=5/o.metrics.ptPerEm,l=Math.max(t-i,n+i),c=Math.max(l/500*901,2*l-s);return v(e,c,!0,r,a)}}},function(e,t,n){var r=n(20),a=n(15),i=n(210),o=n(13),s=n(21),l=n(11),c=r.makeSpan,u=r.fontMap,_=function(e,t){return s[t][e]&&s[t][e].replace&&(e=s[t][e].replace),new i.TextNode(e)},d=function(e,t){var n=t.font;if(!n)return null;var r=e.mode;if("mathit"===n)return"italic";var i=e.value;if(l.contains(["\\imath","\\jmath"],i))return null;s[r][i]&&s[r][i].replace&&(i=s[r][i].replace);var o=u[n].fontName;return a.getCharacterMetrics(i,o)?u[t.font].variant:null},p={mathord:function(e,t){var n=new i.MathNode("mi",[_(e.value,e.mode)]),r=d(e,t);return r&&n.setAttribute("mathvariant",r),n},textord:function(e,t){var n,r=_(e.value,e.mode),a=d(e,t)||"normal";return/[0-9]/.test(e.value)?(n=new i.MathNode("mn",[r]),t.font&&n.setAttribute("mathvariant",a)):(n=new i.MathNode("mi",[r])).setAttribute("mathvariant",a),n},bin:function(e){return new i.MathNode("mo",[_(e.value,e.mode)])},rel:function(e){return new i.MathNode("mo",[_(e.value,e.mode)])},open:function(e){return new i.MathNode("mo",[_(e.value,e.mode)])},close:function(e){return new i.MathNode("mo",[_(e.value,e.mode)])},inner:function(e){return new i.MathNode("mo",[_(e.value,e.mode)])},punct:function(e){var t=new i.MathNode("mo",[_(e.value,e.mode)]);return t.setAttribute("separator","true"),t},ordgroup:function(e,t){var n=m(e.value,t);return new i.MathNode("mrow",n)},text:function(e,t){var n=m(e.value.body,t);return new i.MathNode("mtext",n)},color:function(e,t){var n=m(e.value.value,t),r=new i.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.value.color),r},supsub:function(e,t){var n,r=[g(e.value.base,t)];return e.value.sub&&r.push(g(e.value.sub,t)),e.value.sup&&r.push(g(e.value.sup,t)),n=e.value.sub?e.value.sup?"msubsup":"msub":"msup",new i.MathNode(n,r)},genfrac:function(e,t){var n=new i.MathNode("mfrac",[g(e.value.numer,t),g(e.value.denom,t)]);if(e.value.hasBarLine||n.setAttribute("linethickness","0px"),null!=e.value.leftDelim||null!=e.value.rightDelim){var r=[];if(null!=e.value.leftDelim){var a=new i.MathNode("mo",[new i.TextNode(e.value.leftDelim)]);a.setAttribute("fence","true"),r.push(a)}if(r.push(n),null!=e.value.rightDelim){var o=new i.MathNode("mo",[new i.TextNode(e.value.rightDelim)]);o.setAttribute("fence","true"),r.push(o)}return new i.MathNode("mrow",r)}return n},array:function(e,t){return new i.MathNode("mtable",e.value.body.map(function(e){return new i.MathNode("mtr",e.map(function(e){return new i.MathNode("mtd",[g(e,t)])}))}))},sqrt:function(e,t){return e.value.index?new i.MathNode("mroot",[g(e.value.body,t),g(e.value.index,t)]):new i.MathNode("msqrt",[g(e.value.body,t)])},leftright:function(e,t){var n=m(e.value.body,t);if("."!==e.value.left){var r=new i.MathNode("mo",[_(e.value.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.value.right){var a=new i.MathNode("mo",[_(e.value.right,e.mode)]);a.setAttribute("fence","true"),n.push(a)}return new i.MathNode("mrow",n)},accent:function(e,t){var n=new i.MathNode("mo",[_(e.value.accent,e.mode)]),r=new i.MathNode("mover",[g(e.value.base,t),n]);return r.setAttribute("accent","true"),r},spacing:function(e){var t;return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?t=new i.MathNode("mtext",[new i.TextNode("\xa0")]):(t=new i.MathNode("mspace")).setAttribute("width",r.spacingFunctions[e.value].size),t},op:function(e){return e.value.symbol?new i.MathNode("mo",[_(e.value.body,e.mode)]):new i.MathNode("mi",[new i.TextNode(e.value.body.slice(1))])},katex:function(e){return new i.MathNode("mtext",[new i.TextNode("KaTeX")])},font:function(e,t){var n=e.value.font;return g(e.value.body,t.withFont(n))},delimsizing:function(e){var t=[];"."!==e.value.value&&t.push(_(e.value.value,e.mode));var n=new i.MathNode("mo",t);return"open"===e.value.delimType||"close"===e.value.delimType?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n},styling:function(e,t){var n=m(e.value.value,t),r=new i.MathNode("mstyle",n),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.value.style];return r.setAttribute("scriptlevel",a[0]),r.setAttribute("displaystyle",a[1]),r},sizing:function(e,t){var n=m(e.value.value,t),a=new i.MathNode("mstyle",n);return a.setAttribute("mathsize",r.sizingMultiplier[e.value.size]+"em"),a},overline:function(e,t){var n=new i.MathNode("mo",[new i.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new i.MathNode("mover",[g(e.value.body,t),n]);return r.setAttribute("accent","true"),r},underline:function(e,t){var n=new i.MathNode("mo",[new i.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new i.MathNode("munder",[g(e.value.body,t),n]);return r.setAttribute("accentunder","true"),r},rule:function(e){return new i.MathNode("mrow")},llap:function(e,t){var n=new i.MathNode("mpadded",[g(e.value.body,t)]);return n.setAttribute("lspace","-1width"),n.setAttribute("width","0px"),n},rlap:function(e,t){var n=new i.MathNode("mpadded",[g(e.value.body,t)]);return n.setAttribute("width","0px"),n},phantom:function(e,t,n){var r=m(e.value.value,t);return new i.MathNode("mphantom",r)}},m=function(e,t){for(var n=[],r=0;r";for(var n=0;n"},i.prototype.toNode=function(){return document.createTextNode(this.text)},i.prototype.toMarkup=function(){return r.escape(this.text)},e.exports={MathNode:a,TextNode:i}},function(e,t){function n(e){this.style=e.style,this.color=e.color,this.size=e.size,this.phantom=e.phantom,this.font=e.font,void 0===e.parentStyle?this.parentStyle=e.style:this.parentStyle=e.parentStyle,void 0===e.parentSize?this.parentSize=e.size:this.parentSize=e.parentSize}n.prototype.extend=function(e){var t={style:this.style,size:this.size,color:this.color,parentStyle:this.style,parentSize:this.size,phantom:this.phantom,font:this.font};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new n(t)},n.prototype.withStyle=function(e){return this.extend({style:e})},n.prototype.withSize=function(e){return this.extend({size:e})},n.prototype.withColor=function(e){return this.extend({color:e})},n.prototype.withPhantom=function(){return this.extend({phantom:!0})},n.prototype.withFont=function(e){return this.extend({font:e})},n.prototype.reset=function(){return this.extend({})};var r={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#c7e9f1","katex-blueB":"#9cdceb","katex-blueC":"#58c4dd","katex-blueD":"#29abca","katex-blueE":"#1c758a","katex-tealA":"#acead7","katex-tealB":"#76ddc0","katex-tealC":"#5cd0b3","katex-tealD":"#55c1a7","katex-tealE":"#49a88f","katex-greenA":"#c9e2ae","katex-greenB":"#a6cf8c","katex-greenC":"#83c167","katex-greenD":"#77b05d","katex-greenE":"#699c52","katex-goldA":"#f7c797","katex-goldB":"#f9b775","katex-goldC":"#f0ac5f","katex-goldD":"#e1a158","katex-goldE":"#c78d46","katex-redA":"#f7a1a3","katex-redB":"#ff8080","katex-redC":"#fc6255","katex-redD":"#e65a4c","katex-redE":"#cf5044","katex-maroonA":"#ecabc1","katex-maroonB":"#ec92ab","katex-maroonC":"#c55f73","katex-maroonD":"#a24d61","katex-maroonE":"#94424f","katex-purpleA":"#caa3e8","katex-purpleB":"#b189c6","katex-purpleC":"#9a72ac","katex-purpleD":"#715582","katex-purpleE":"#644172","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#fdfdfd","katex-grayB":"#f7f7f7","katex-grayC":"#eeeeee","katex-grayD":"#dddddd","katex-grayE":"#cccccc","katex-grayF":"#aaaaaa","katex-grayG":"#999999","katex-grayH":"#555555","katex-grayI":"#333333","katex-kaBlue":"#314453","katex-kaGreen":"#639b24"};n.prototype.getColor=function(){return this.phantom?"transparent":r[this.color]||this.color},e.exports=n},function(e,t,n){var r=n(213);e.exports=function(e,t){return new r(e,t).parse()}},function(e,t,n){var r=n(214),a=n(215),i=n(216),o=n(21),s=n(11),l=n(64),c=n(13);function u(e,t){this.lexer=new i(e),this.settings=t}var _=l.ParseNode;function d(e,t){this.result=e,this.isFunction=t}u.prototype.expect=function(e,t){if(this.nextToken.text!==e)throw new c("Expected '"+e+"', got '"+this.nextToken.text+"'",this.lexer,this.nextToken.position);!1!==t&&this.consume()},u.prototype.consume=function(){this.pos=this.nextToken.position,this.nextToken=this.lexer.lex(this.pos,this.mode)},u.prototype.parse=function(){return this.mode="math",this.pos=0,this.nextToken=this.lexer.lex(this.pos,this.mode),this.parseInput()},u.prototype.parseInput=function(){var e=this.parseExpression(!1);return this.expect("EOF",!1),e};var p=["}","\\end","\\right","&","\\\\","\\cr"];u.prototype.parseExpression=function(e,t){for(var n=[];;){var r=this.nextToken,a=this.pos;if(-1!==p.indexOf(r.text))break;if(t&&r.text===t)break;var i=this.parseAtom();if(!i){if(!this.settings.throwOnError&&"\\"===r.text[0]){var o=this.handleUnsupportedCmd();n.push(o),a=r.position;continue}break}if(e&&"infix"===i.type){this.pos=a,this.nextToken=r;break}n.push(i)}return this.handleInfixNodes(n)},u.prototype.handleInfixNodes=function(e){for(var t,n=-1,r=0;r1)return this.parseFunction(a);throw new c("Got function '"+a.result+"' with no arguments as "+e,this.lexer,n+1)}return a.result}if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new c("Expected group after '"+t+"'",this.lexer,n+1);return this.handleUnsupportedCmd()},u.prototype.handleUnsupportedCmd=function(){for(var e=this.nextToken.text,t=[],n=0;na))throw new c("Got function '"+l.result+"' as argument to '"+e+"'",this.lexer,this.pos-1);u=this.parseFunction(l)}else u=l.result;o.push(u),i.push(this.pos)}return o.push(i),o},u.prototype.parseSpecialGroup=function(e,t){var n,r=this.mode;if("original"===e&&(e=r),"color"===e||"size"===e){var a=this.nextToken;if(t&&"["!==a.text)return null;this.mode=e,this.expect(t?"[":"{");var i,o=this.nextToken;return this.mode=r,i="color"===e?o.text:o.data,this.consume(),this.expect(t?"]":"}"),new d(new _(e,i,r),!1)}if("text"===e){var s=this.lexer.lex(this.pos,"whitespace");this.pos=s.position}return this.mode=e,this.nextToken=this.lexer.lex(this.pos,e),n=t?this.parseOptionalGroup():this.parseGroup(),this.mode=r,this.nextToken=this.lexer.lex(this.pos,r),n},u.prototype.parseGroup=function(){if("{"===this.nextToken.text){this.consume();var e=this.parseExpression(!1);return this.expect("}"),new d(new _("ordgroup",e,this.mode),!1)}return this.parseSymbol()},u.prototype.parseOptionalGroup=function(){if("["===this.nextToken.text){this.consume();var e=this.parseExpression(!1,"]");return this.expect("]"),new d(new _("ordgroup",e,this.mode),!1)}return null},u.prototype.parseSymbol=function(){var e=this.nextToken;return r[e.text]?(this.consume(),new d(e.text,!0)):o[this.mode][e.text]?(this.consume(),new d(new _(o[this.mode][e.text].group,e.text,this.mode),!1)):null},u.prototype.ParseNode=_,e.exports=u},function(e,t,n){var r=n(11),a=n(13);function i(t,n,r){"string"===typeof t&&(t=[t]),"number"===typeof n&&(n={numArgs:n});for(var a={numArgs:n.numArgs,argTypes:n.argTypes,greediness:void 0===n.greediness?1:n.greediness,allowedInText:!!n.allowedInText,numOptionalArgs:n.numOptionalArgs||0,handler:r},i=0;i","\\langle","\\rangle","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],l={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};i(["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple","\\blueA","\\blueB","\\blueC","\\blueD","\\blueE","\\tealA","\\tealB","\\tealC","\\tealD","\\tealE","\\greenA","\\greenB","\\greenC","\\greenD","\\greenE","\\goldA","\\goldB","\\goldC","\\goldD","\\goldE","\\redA","\\redB","\\redC","\\redD","\\redE","\\maroonA","\\maroonB","\\maroonC","\\maroonD","\\maroonE","\\purpleA","\\purpleB","\\purpleC","\\purpleD","\\purpleE","\\mintA","\\mintB","\\mintC","\\grayA","\\grayB","\\grayC","\\grayD","\\grayE","\\grayF","\\grayG","\\grayH","\\grayI","\\kaBlue","\\kaGreen"],{numArgs:1,allowedInText:!0,greediness:3},function(e,t){var n,r=t[0];return n="ordgroup"===r.type?r.value:[r],{type:"color",color:"katex-"+e.funcName.slice(1),value:n}}),i(["\\arcsin","\\arccos","\\arctan","\\arg","\\cos","\\cosh","\\cot","\\coth","\\csc","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\tan","\\tanh"],{numArgs:0},function(e){return{type:"op",limits:!1,symbol:!1,body:e.funcName}}),i(["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],{numArgs:0},function(e){return{type:"op",limits:!0,symbol:!1,body:e.funcName}}),i(["\\int","\\iint","\\iiint","\\oint"],{numArgs:0},function(e){return{type:"op",limits:!1,symbol:!0,body:e.funcName}}),i(["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],{numArgs:0},function(e){return{type:"op",limits:!0,symbol:!0,body:e.funcName}}),i(["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom"],{numArgs:2,greediness:2},function(e,t){var n,r=t[0],a=t[1],i=null,o=null,s="auto";switch(e.funcName){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,i="(",o=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e.funcName){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text"}return{type:"genfrac",numer:r,denom:a,hasBarLine:n,leftDelim:i,rightDelim:o,size:s}}),i(["\\llap","\\rlap"],{numArgs:1,allowedInText:!0},function(e,t){var n=t[0];return{type:e.funcName.slice(1),body:n}}),i(["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg","\\left","\\right"],{numArgs:1},function(e,t){var n=t[0];if(!r.contains(s,n.value))throw new a("Invalid delimiter: '"+n.value+"' after '"+e.funcName+"'",e.lexer,e.positions[1]);return"\\left"===e.funcName||"\\right"===e.funcName?{type:"leftright",value:n.value}:{type:"delimsizing",size:o[e.funcName].size,delimType:o[e.funcName].type,value:n.value}}),i(["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],0,null),i(["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],0,null),i(["\\mathrm","\\mathit","\\mathbf","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],{numArgs:1,greediness:2},function(e,t){var n=t[0],r=e.funcName;return r in l&&(r=l[r]),{type:"font",font:r.slice(1),body:n}}),i(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot"],{numArgs:1},function(e,t){var n=t[0];return{type:"accent",accent:e.funcName,base:n}}),i(["\\over","\\choose"],{numArgs:0},function(e){var t;switch(e.funcName){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:t}}),i(["\\\\","\\cr"],{numArgs:0,numOptionalArgs:1,argTypes:["size"]},function(e,t){return{type:"cr",size:t[0]}}),i(["\\begin","\\end"],{numArgs:1,argTypes:["text"]},function(e,t){var n=t[0];if("ordgroup"!==n.type)throw new a("Invalid environment name",e.lexer,e.positions[1]);for(var r="",i=0;i0&&(l=2),t.value.cols[a]={type:"align",align:i,pregap:l,postgap:0}}return t})},function(e,t,n){var r=n(217),a=n(13);function i(e){this._input=e}function o(e,t,n){this.text=e,this.data=t,this.position=n}var s=new RegExp("([ \r\n\t]+)|(---?|[!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]|[\ud800-\udbff][\udc00-\udfff]|\\\\(?:[a-zA-Z]+|[^\ud800-\udfff]))"),l=/\s*/;i.prototype._innerLex=function(e,t){var n=this._input;if(e===n.length)return new o("EOF",null,e);var i=r(s,n,e);if(null===i)throw new a("Unexpected character: '"+n[e]+"'",this,e);return i[2]?new o(i[2],null,e+i[2].length):t?this._innerLex(e+i[1].length,!0):new o(" ",null,e+i[1].length)};var c=/#[a-z0-9]+|[a-z]+/i;i.prototype._innerLexColor=function(e){var t,n=this._input;if(e+=r(l,n,e)[0].length,t=r(c,n,e))return new o(t[0],null,e+t[0].length);throw new a("Invalid color",this,e)};var u=/(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;i.prototype._innerLexSize=function(e){var t,n=this._input;if(e+=r(l,n,e)[0].length,t=r(u,n,e)){var i=t[3];if("em"!==i&&"ex"!==i)throw new a("Invalid unit: '"+i+"'",this,e);return new o(t[0],{number:+(t[1]+t[2]),unit:i},e+t[0].length)}throw new a("Invalid size",this,e)},i.prototype._innerLexWhitespace=function(e){var t=this._input,n=r(l,t,e)[0];return e+=n.length,new o(n[0],null,e)},i.prototype.lex=function(e,t){return"math"===t?this._innerLex(e,!0):"text"===t?this._innerLex(e,!1):"color"===t?this._innerLexColor(e):"size"===t?this._innerLexSize(e):"whitespace"===t?this._innerLexWhitespace(e):void 0},e.exports=i},function(e,t){e.exports=function(e,t,n){if(e.global||e.sticky)throw new Error("matchAt(...): Only non-global regexes are supported");var r=function(e){if(!e.__matchAtRelocatable){var t=e.source+"|()",n="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"");e.__matchAtRelocatable=new RegExp(t,n)}return e.__matchAtRelocatable}(e);r.lastIndex=n;var a=r.exec(t);return null==a[a.length-1]?(a.length=a.length-1,a):null}},function(e,t,n){var r=n(219),a=n(223),i=n(227),o=n(230),s=n(231),l=n(233),c=n(234);function u(e){Object.freeze(e);var t="function"===typeof e;return Object.getOwnPropertyNames(e).forEach(function(n){!Object.hasOwnProperty.call(e,n)||null===e[n]||"object"!==typeof e[n]&&"function"!==typeof e[n]||t&&("caller"===n||"callee"===n||"arguments"===n)||Object.isFrozen(e[n])||u(e[n])}),e}var _=function(){"use strict";function e(t){l(this,e),void 0===t.data&&(t.data={}),this.data=t.data}return c(e,[{key:"ignoreMatch",value:function(){this.ignore=!0}}]),e}();function d(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function p(e){var t={};for(var n in e)t[n]=e[n];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i"}function l(e){a+=""+m(e)+">"}function c(e){("start"===e.event?s:l)(e.node)}for(;e.length||t.length;){var u=o();if(a+=d(n.substring(r,u[0].offset)),r=u[0].offset,u===e){i.reverse().forEach(l);do{c(u.splice(0,1)[0]),u=o()}while(u===e&&u.length&&u[0].offset===r);i.reverse().forEach(s)}else"start"===u[0].event?i.push(u[0].node):i.pop(),c(u.splice(0,1)[0])}return a+d(n.substr(r))}}),f=function(e){return!!e.kind},E=function(){"use strict";function e(t,n){l(this,e),this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}return c(e,[{key:"addText",value:function(e){this.buffer+=d(e)}},{key:"openNode",value:function(e){if(f(e)){var t=e.kind;e.sublanguage||(t="".concat(this.classPrefix).concat(t)),this.span(t)}}},{key:"closeNode",value:function(e){f(e)&&(this.buffer+="")}},{key:"value",value:function(){return this.buffer}},{key:"span",value:function(e){this.buffer+='')}}]),e}(),S=function(){"use strict";function e(){l(this,e),this.rootNode={children:[]},this.stack=[this.rootNode]}return c(e,[{key:"add",value:function(e){this.top.children.push(e)}},{key:"openNode",value:function(e){var t={kind:e,children:[]};this.add(t),this.stack.push(t)}},{key:"closeNode",value:function(){if(this.stack.length>1)return this.stack.pop()}},{key:"closeAllNodes",value:function(){for(;this.closeNode(););}},{key:"toJSON",value:function(){return JSON.stringify(this.rootNode,null,4)}},{key:"walk",value:function(e){return this.constructor._walk(e,this.rootNode)}},{key:"top",get:function(){return this.stack[this.stack.length-1]}},{key:"root",get:function(){return this.rootNode}}],[{key:"_walk",value:function(e,t){var n=this;return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(function(t){return n._walk(e,t)}),e.closeNode(t)),e}},{key:"_collapse",value:function(t){"string"!==typeof t&&t.children&&(t.children.every(function(e){return"string"===typeof e})?t.children=[t.children.join("")]:t.children.forEach(function(t){e._collapse(t)}))}}]),e}(),h=function(e){"use strict";function t(e){var n;return l(this,t),(n=i(this,o(t).call(this))).options=e,n}return s(t,S),c(t,[{key:"addKeyword",value:function(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}},{key:"addText",value:function(e){""!==e&&this.add(e)}},{key:"addSublanguage",value:function(e,t){var n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}},{key:"toHTML",value:function(){return new E(this,this.options).value()}},{key:"finalize",value:function(){return!0}}]),t}();function b(e){return e?"string"===typeof e?e:e.source:null}function T(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=p({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(R),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},A=O("//","$"),I=O("/\\*","\\*/"),D=O("#","$"),x={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},w={className:"number",begin:v,relevance:0},M={className:"number",begin:"\\b(0b[01]+)",relevance:0},L={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},k={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},P={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},U={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},F={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},B=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:v,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^#![ ]*\//;return e.binary&&(e.begin=T(t,/.*\b/,e.binary,/\b.*/)),p({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":function(e,t){0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:y,APOS_STRING_MODE:C,QUOTE_STRING_MODE:N,PHRASAL_WORDS_MODE:R,COMMENT:O,C_LINE_COMMENT_MODE:A,C_BLOCK_COMMENT_MODE:I,HASH_COMMENT_MODE:D,NUMBER_MODE:x,C_NUMBER_MODE:w,BINARY_NUMBER_MODE:M,CSS_NUMBER_MODE:L,REGEXP_MODE:k,TITLE_MODE:P,UNDERSCORE_TITLE_MODE:U,METHOD_GUARD:F,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":function(e,t){t.data._beginMatch=e[1]},"on:end":function(e,t){t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}}),G="of and for in not or if then".split(" ");function Y(e){function t(t,n){return new RegExp(b(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}var n=function(){"use strict";function e(){l(this,e),this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}return c(e,[{key:"addRule",value:function(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}},{key:"compile",value:function(){0===this.regexes.length&&(this.exec=function(){return null});var e=this.regexes.map(function(e){return e[1]});this.matcherRe=t(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"|",n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,a="",i=0;i0&&(a+=t),a+="(";s.length>0;){var l=n.exec(s);if(null==l){a+=s;break}a+=s.substring(0,l.index),s=s.substring(l.index+l[0].length),"\\"===l[0][0]&&l[1]?a+="\\"+String(Number(l[1])+o):(a+=l[0],"("===l[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}},{key:"exec",value:function(e){this.matcherRe.lastIndex=this.lastIndex;var t=this.matcherRe.exec(e);if(!t)return null;var n=t.findIndex(function(e,t){return t>0&&void 0!==e}),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}]),e}(),i=function(){"use strict";function e(){l(this,e),this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}return c(e,[{key:"getMatcher",value:function(e){if(this.multiRegexes[e])return this.multiRegexes[e];var t=new n;return this.rules.slice(e).forEach(function(e){var n=a(e,2),r=n[0],i=n[1];return t.addRule(r,i)}),t.compile(),this.multiRegexes[e]=t,t}},{key:"considerAll",value:function(){this.regexIndex=0}},{key:"addRule",value:function(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}},{key:"exec",value:function(e){var t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;var n=t.exec(e);return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&(this.regexIndex=0)),n}}]),e}();function o(e,t){var n=e.input[e.index-1],r=e.input[e.index+e[0].length];"."!==n&&"."!==r||t.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return function n(a,s){var l,c=a;if(a.compiled)return c;a.compiled=!0,a.__beforeBegin=null,a.keywords=a.keywords||a.beginKeywords;var u=null;if("object"===typeof a.keywords&&(u=a.keywords.$pattern,delete a.keywords.$pattern),a.keywords&&(a.keywords=function(e,t){var n={};return"string"===typeof e?r("keyword",e):Object.keys(e).forEach(function(t){r(t,e[t])}),n;function r(e,r){t&&(r=r.toLowerCase()),r.split(" ").forEach(function(t){var r=t.split("|");n[r[0]]=[e,z(r[0],r[1])]})}}(a.keywords,e.case_insensitive)),a.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c.keywordPatternRe=t(a.lexemes||u||/\w+/,!0),s&&(a.beginKeywords&&(a.begin="\\b("+a.beginKeywords.split(" ").join("|")+")(?=\\b|\\s)",a.__beforeBegin=o),a.begin||(a.begin=/\B|\b/),c.beginRe=t(a.begin),a.endSameAsBegin&&(a.end=a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(c.endRe=t(a.end)),c.terminator_end=b(a.end)||"",a.endsWithParent&&s.terminator_end&&(c.terminator_end+=(a.end?"|":"")+s.terminator_end)),a.illegal&&(c.illegalRe=t(a.illegal)),void 0===a.relevance&&(a.relevance=1),a.contains||(a.contains=[]),a.contains=(l=[]).concat.apply(l,r(a.contains.map(function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return p(e,{variants:null},t)})),e.cached_variants?e.cached_variants:function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e)?p(e,{starts:e.starts?p(e.starts):null}):Object.isFrozen(e)?p(e):e}("self"===e?a:e)}))),a.contains.forEach(function(e){n(e,c)}),a.starts&&n(a.starts,s),c.matcher=function(e){var t=new i;return e.contains.forEach(function(e){return t.addRule(e.begin,{rule:e,type:"begin"})}),e.terminator_end&&t.addRule(e.terminator_end,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(c),c}(e)}function z(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}var q=d,H=p,V=g.nodeStream,W=g.mergeStreams,$=Symbol("nomatch"),j=function(e){var t=[],n={},r={},i=[],o=!0,s=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]},d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function p(e){return d.noHighlightRe.test(e)}function m(e,t,n,r){var a={code:t,language:e};C("before:highlight",a);var i=a.result?a.result:g(a.language,a.code,n,r);return i.code=a.code,C("after:highlight",i),i}function g(e,t,r,i){var s=t;function c(e,t){var n=v.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function u(){null!=N.subLanguage?function(){if(""!==A){var e=null;if("string"===typeof N.subLanguage){if(!n[N.subLanguage])return void O.addText(A);e=g(N.subLanguage,A,!0,R[N.subLanguage]),R[N.subLanguage]=e.top}else e=f(A,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(I+=e.relevance),O.addSublanguage(e.emitter,e.language)}}():function(){if(N.keywords){var e=0;N.keywordPatternRe.lastIndex=0;for(var t=N.keywordPatternRe.exec(A),n="";t;){n+=A.substring(e,t.index);var r=c(N,t);if(r){var i=a(r,2),o=i[0],s=i[1];O.addText(n),n="",I+=s,O.addKeyword(t[0],o)}else n+=t[0];e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(A)}n+=A.substr(e),O.addText(n)}else O.addText(A)}(),A=""}function p(e){return e.className&&O.openNode(e.className),N=Object.create(e,{parent:{value:N}})}function m(e){return 0===N.matcher.regexIndex?(A+=e[0],1):(w=!0,0)}function E(e){for(var t=e[0],n=e.rule,r=new _(n),a=0,i=[n.__beforeBegin,n["on:begin"]];a")+'"');throw l.mode=N,l}if("end"===n.type){var c=S(n);if(c!==$)return c}if("illegal"===n.type&&""===a)return 1;if(x>1e5&&x>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return A+=a,a.length}var v=T(e);if(!v)throw console.error(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');var y=Y(v),C="",N=i||y,R={},O=new d.__emitter(d);!function(){for(var e=[],t=N;t!==v;t=t.parent)t.className&&e.unshift(t.className);e.forEach(function(e){return O.openNode(e)})}();var A="",I=0,D=0,x=0,w=!1;try{for(N.matcher.considerAll();;){x++,w?w=!1:(N.matcher.lastIndex=D,N.matcher.considerAll());var M=N.matcher.exec(s);if(!M)break;var L=b(s.substring(D,M.index),M);D=M.index+L}return b(s.substr(D)),O.closeAllNodes(),O.finalize(),C=O.toHTML(),{relevance:I,value:C,language:e,illegal:!1,emitter:O,top:N}}catch(k){if(k.message&&k.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:k.message,context:s.slice(D-100,D+100),mode:k.mode},sofar:C,relevance:0,value:q(s),emitter:O};if(o)return{illegal:!1,relevance:0,value:q(s),emitter:O,language:e,top:N,errorRaised:k};throw k}}function f(e,t){t=t||d.languages||Object.keys(n);var r=function(e){var t={relevance:0,emitter:new d.__emitter(d),value:q(e),illegal:!1,top:c};return t.emitter.addText(e),t}(e),a=r;return t.filter(T).filter(y).forEach(function(t){var n=g(t,e,!1);n.language=t,n.relevance>a.relevance&&(a=n),n.relevance>r.relevance&&(a=r,r=n)}),a.language&&(r.second_best=a),r}function E(e){return d.tabReplace||d.useBR?e.replace(s,function(e){return"\n"===e?d.useBR?"
":e:d.tabReplace?e.replace(/\t/g,d.tabReplace):e}):e}function S(e){var t=null,n=function(e){var t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";var n=d.languageDetectRe.exec(t);if(n){var r=T(n[1]);return r||(console.warn(l.replace("{}",n[1])),console.warn("Falling back to no-highlight mode for this block.",e)),r?n[1]:"no-highlight"}return t.split(/\s+/).find(function(e){return p(e)||T(e)})}(e);if(!p(n)){C("before:highlightBlock",{block:e,language:n}),d.useBR?(t=document.createElement("div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/
/g,"\n"):t=e;var a=t.textContent,i=n?m(n,a,!0):f(a),o=V(t);if(o.length){var s=document.createElement("div");s.innerHTML=i.value,i.value=W(o,V(s),a)}i.value=E(i.value),C("after:highlightBlock",{block:e,result:i}),e.innerHTML=i.value,e.className=function(e,t,n){var a=t?r[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.includes(a)||i.push(a),i.join(" ").trim()}(e.className,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}}var b=function e(){if(!e.called){e.called=!0;var n=document.querySelectorAll("pre code");t.forEach.call(n,S)}};function T(e){return e=(e||"").toLowerCase(),n[e]||n[r[e]]}function v(e,t){var n=t.languageName;"string"===typeof e&&(e=[e]),e.forEach(function(e){r[e]=n})}function y(e){var t=T(e);return t&&!t.disableAutodetect}function C(e,t){var n=e;i.forEach(function(e){e[n]&&e[n](t)})}for(var N in Object.assign(e,{highlight:m,highlightAuto:f,fixMarkup:E,highlightBlock:S,configure:function(e){d=H(d,e)},initHighlighting:b,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",b,!1)},registerLanguage:function(t,r){var a=null;try{a=r(e)}catch(i){if(console.error("Language definition for '{}' could not be registered.".replace("{}",t)),!o)throw i;console.error(i),a=c}a.name||(a.name=t),n[t]=a,a.rawDefinition=r.bind(null,e),a.aliases&&v(a.aliases,{languageName:t})},listLanguages:function(){return Object.keys(n)},getLanguage:T,registerAliases:v,requireLanguage:function(e){var t=T(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:y,inherit:H,addPlugin:function(e){i.push(e)}}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.1.1",B)"object"===typeof B[N]&&u(B[N]);return Object.assign(e,B),e}({});e.exports=j},function(e,t,n){var r=n(220),a=n(221),i=n(222);e.exports=function(e){return r(e)||a(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t|$)",illegal:"[]{}%#'\"",contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[n,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:"[]{}%#'\""},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[n,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:"[]{}%#'\""},r,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:"[]{}%#'\""}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:"[]{}%#'\""},r]}}},function(e,t){e.exports=function(e){var t={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[r],n.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunctions*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"interface namespace",end:"{",illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:"{",illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}},function(e,t){e.exports=function(e){var t={className:"number",begin:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"?",end:">",contains:[t,{className:"number",begin:":\\d{1,5}"},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",{className:"number",begin:"[\\$%]\\d+"}]},t,{className:"number",begin:"\\d+"},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},function(e,t){e.exports=function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},r=e.COMMENT("--","$"),a=[r,e.COMMENT("\\(\\*","\\*\\)",{contains:["self",r]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(a),illegal:"//|->|=>|\\[\\["}}},function(e,t){e.exports=function(e){var t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},i={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,a]};a.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,r,e.REGEXP_MODE];var o=a.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",aliases:["arcade"],keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:o}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){function t(e){return"(?:"+e+")?"}var n="(decltype\\(auto\\)|"+t("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+t("<.*?>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s={className:"title",begin:t("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=t("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",c={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},u=[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:c,contains:u.concat([{begin:/\(/,end:/\)/,keywords:c,contains:u.concat(["self"]),relevance:0}]),relevance:0},d={className:"function",begin:"("+n+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:c,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:c,relevance:0},{begin:l,returnBegin:!0,contains:[s],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r,{begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r]}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:c,disableAutodetect:!0,illegal:"",contains:[].concat(_,d,u,[o,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:c,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:c},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin:/,end:/>/,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:o,strings:a,keywords:c}}}},function(e,t){e.exports=function(e){var t=e.getLanguage("c-like").rawDefinition();return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}},function(e,t){e.exports=function(e){var t="boolean byte word String",n="setup loop KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",r="DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW",a=e.requireLanguage("cpp").rawDefinition(),i=a.keywords;return i.keyword+=" "+t,i.literal+=" "+r,i.built_in+=" "+n,a.name="Arduino",a}},function(e,t){e.exports=function(e){var t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}},function(e,t){e.exports=function(e){var t={className:"symbol",begin:"&[a-z]+;|[0-9]+;|[a-f0-9]+;"},n={begin:"\\s",contains:[{className:"meta-keyword",begin:"#?[a-z_][a-z1-9_-]+",illegal:"\\n"}]},r=e.inherit(n,{begin:"\\(",end:"\\)"}),a=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),i=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),o={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[n,i,a,r,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"",contains:[n,r,i,a]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},t,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"