MML_HTMLorMML.js 104 KB

12345678910111213
  1. /*
  2. * /MathJax/config/MML_HTMLorMML.js
  3. *
  4. * Copyright (c) 2010-2013 The MathJax Consortium
  5. *
  6. * Part of the MathJax library.
  7. * See http://www.mathjax.org for details.
  8. *
  9. * Licensed under the Apache License, Version 2.0;
  10. * you may not use this file except in compliance with the License.
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. */MathJax.Hub.Config({delayJaxRegistration:!0});MathJax.Ajax.Preloading("[MathJax]/jax/input/MathML/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/mml2jax.js","[MathJax]/extensions/MathEvents.js","[MathJax]/extensions/MathZoom.js","[MathJax]/extensions/MathMenu.js","[MathJax]/jax/element/mml/jax.js","[MathJax]/extensions/toMathML.js","[MathJax]/jax/input/MathML/jax.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.MathML=MathJax.InputJax({id:"MathML",version:"2.2",directory:MathJax.InputJax.directory+"/MathML",extensionDir:MathJax.InputJax.extensionDir+"/MathML",entityDir:MathJax.InputJax.directory+"/MathML/entities",config:{useMathMLspacing:!1}});MathJax.InputJax.MathML.Register("math/mml");MathJax.InputJax.MathML.loadComplete("config.js");MathJax.OutputJax["HTML-CSS"]=MathJax.OutputJax({id:"HTML-CSS",version:"2.2",directory:MathJax.OutputJax.directory+"/HTML-CSS",extensionDir:MathJax.OutputJax.extensionDir+"/HTML-CSS",autoloadDir:MathJax.OutputJax.directory+"/HTML-CSS/autoload",fontDir:MathJax.OutputJax.directory+"/HTML-CSS/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{scale:100,minScaleAdjust:50,availableFonts:["STIX","TeX"],preferredFont:"TeX",webFont:"TeX",imageFont:"TeX",undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",mtextFontInherit:!1,EqnChunk:MathJax.Hub.Browser.isMobile?10:50,EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:!1,width:"container"},styles:{".MathJax_Display":{"text-align":"center",margin:"1em 0em"},".MathJax .merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"1px 3px","font-style":"normal","font-size":"90%"},"#MathJax_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')",padding:"3px 4px","z-index":401}}}});MathJax.Hub.Browser.isMSIE&&9<=document.documentMode&&delete MathJax.OutputJax["HTML-CSS"].config.styles["#MathJax_Tooltip"].filter;MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax["HTML-CSS"].Register("jax/mml");MathJax.Hub.Register.StartupHook("End Config",[function(a,c){var b=a.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(d){var e=a.getJaxFor(d),c=["[Math]"],g=document.createElement("span",{className:"MathJax_Preview"});"TeX"===e.inputJax&&(e.root.Get("displaystyle")?(c=b.displayMathDelimiters,c=[c[0]+e.originalText+c[1]],b.multilineDisplay&&(c=c[0].split(/\n/))):(c=b.inlineMathDelimiters,c=[c[0]+e.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+c[1]]));for(var e=0,l=c.length;e<l;e++)g.appendChild(document.createTextNode(c[e])),e<l-1&&g.appendChild(document.createElement("br"));d.parentNode.insertBefore(g,d)}},a.config["HTML-CSS"]||{});"0.0"===a.Browser.version||a.Browser.versionAtLeast(b.minBrowserVersion[a.Browser]||0)||(c.Translate=b.minBrowserTranslate,a.Config({showProcessingMessages:!1}),MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4E3),a.Startup.signal.Post("MathJax not supported"))},MathJax.Hub,MathJax.OutputJax["HTML-CSS"]]);MathJax.OutputJax["HTML-CSS"].loadComplete("config.js");MathJax.OutputJax.NativeMML=MathJax.OutputJax({id:"NativeMML",version:"2.2",directory:MathJax.OutputJax.directory+"/NativeMML",extensionDir:MathJax.OutputJax.extensionDir+"/NativeMML",config:{scale:100,minScaleAdjust:50,styles:{"DIV.MathJax_MathML":{"text-align":"center",margin:".75em 0px"}}}});MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax.NativeMML.Register("jax/mml");MathJax.OutputJax.NativeMML.loadComplete("config.js");(function(a,c){var b=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}}),d={Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},e="0.0"===c.version||c.versionAtLeast(d[c]||0),k=c.isFirefox&&c.versionAtLeast("1.5")||c.isMSIE&&c.hasMathPlayer||c.isSafari&&c.versionAtLeast("5.0")||c.isOpera&&c.versionAtLeast("9.52");a.Register.StartupHook("End Config",function(){var d=b.prefer&&"object"===typeof b.prefer?b.prefer[MathJax.Hub.Browser]||b.prefer.other||"HTML":b.prefer;e||k?!k||"MML"!==d&&e?(MathJax.OutputJax["HTML-CSS"]?MathJax.OutputJax["HTML-CSS"].Register("jax/mml"):a.config.jax.unshift("output/HTML-CSS"),a.Startup.signal.Post("HTML-CSS output selected")):(MathJax.OutputJax.NativeMML?MathJax.OutputJax.NativeMML.Register("jax/mml"):a.config.jax.unshift("output/NativeMML"),a.Startup.signal.Post("NativeMML output selected")):(a.PreProcess.disabled=!0,a.prepareScripts.disabled=!0,MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4E3),a.Startup.signal.Post("MathJax not supported"))})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js");MathJax.Extension.mml2jax={version:"2.2",config:{preview:"alttext"},MMLnamespace:"http://www.w3.org/1998/Math/MathML",PreProcess:function(a){this.configured||(this.config=MathJax.Hub.CombineConfig("mml2jax",this.config),this.config.Augment&&MathJax.Hub.Insert(this,this.config.Augment),this.InitBrowser(),this.configured=!0);"string"===typeof a&&(a=document.getElementById(a));a||(a=document.body);this.ProcessMathArray(a.getElementsByTagName("math"));a.getElementsByTagNameNS&&this.ProcessMathArray(a.getElementsByTagNameNS(this.MMLnamespace,"math"));var c,b;if("undefined"!==typeof document.namespaces)try{for(c=0,b=document.namespaces.length;c<b;c++){var d=document.namespaces[c];d.urn===this.MMLnamespace&&this.ProcessMathArray(a.getElementsByTagName(d.name+":math"))}}catch(k){}else if(d=document.getElementsByTagName("html")[0])for(c=0,b=d.attributes.length;c<b;c++){var e=d.attributes[c];"xmlns:"===e.nodeName.substr(0,6)&&e.nodeValue===this.MMLnamespace&&this.ProcessMathArray(a.getElementsByTagName(e.nodeName.substr(6)+":math"))}},ProcessMathArray:function(a){var c;if(a.length)if(this.MathTagBug)for(c=a.length-1;0<=c;c--)"MATH"===a[c].nodeName?this.ProcessMathFlattened(a[c]):this.ProcessMath(a[c]);else for(c=a.length-1;0<=c;c--)this.ProcessMath(a[c])},ProcessMath:function(a){var c=a.parentNode,b=document.createElement("script");b.type="math/mml";c.insertBefore(b,a);if(this.AttributeBug){var d=this.OuterHTML(a);this.CleanupHTML&&(d=d.replace(/<\?import .*?>/i,"").replace(/<\?xml:namespace .*?\/>/i,""),d=d.replace(/&nbsp;/g,"\x26#xA0;"));MathJax.HTML.setScript(b,d);c.removeChild(a)}else c=MathJax.HTML.Element("span"),c.appendChild(a),MathJax.HTML.setScript(b,c.innerHTML);"none"!==this.config.preview&&this.createPreview(a,b)},ProcessMathFlattened:function(a){var c=a.parentNode,b=document.createElement("script");b.type="math/mml";c.insertBefore(b,a);for(var c="",d,e=a;a&&"/MATH"!==a.nodeName;)d=a,a=a.nextSibling,c+=this.NodeHTML(d),d.parentNode.removeChild(d);a&&"/MATH"===a.nodeName&&a.parentNode.removeChild(a);b.text=c+"\x3c/math\x3e";"none"!==this.config.preview&&this.createPreview(e,b)},NodeHTML:function(a){var c,b,d;if("#text"===a.nodeName)c=this.quoteHTML(a.nodeValue);else if("#comment"===a.nodeName)c="\x3c!--"+a.nodeValue+"--\x3e";else{c="\x3c"+a.nodeName.toLowerCase();b=0;for(d=a.attributes.length;b<d;b++){var e=a.attributes[b];if(e.specified){c+=" "+e.nodeName.toLowerCase().replace(/xmlns:xmlns/,"xmlns")+"\x3d";var k=e.nodeValue;null==k&&"style"===e.nodeName&&a.style&&(k=a.style.cssText);c+='"'+this.quoteHTML(k)+'"'}}c+="\x3e";if(null!=a.outerHTML&&a.outerHTML.match(/(.<\/[A-Z]+>|\/>)$/)){b=0;for(d=a.childNodes.length;b<d;b++)c+=this.OuterHTML(a.childNodes[b]);c+="\x3c/"+a.nodeName.toLowerCase()+"\x3e"}}return c},OuterHTML:function(a){if("#"===a.nodeName.charAt(0))return this.NodeHTML(a);if(!this.AttributeBug)return a.outerHTML;for(var c=this.NodeHTML(a),b=0,d=a.childNodes.length;b<d;b++)c+=this.OuterHTML(a.childNodes[b]);return c+="\x3c/"+a.nodeName.toLowerCase()+"\x3e"},quoteHTML:function(a){null==a&&(a="");return a.replace(/&/g,"\x26#x26;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/\"/g,"\x26quot;")},createPreview:function(a,c){var b=this.config.preview;"none"!==b&&("alttext"===b&&(b=a.getAttribute("alttext"),b=null!=b?[this.filterPreview(b)]:null),b&&(b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b),c.parentNode.insertBefore(b,c)))},filterPreview:function(a){return a},InitBrowser:function(){var a=MathJax.HTML.Element("span",{id:"\x3c",className:"mathjax",innerHTML:"\x3cmath\x3e\x3cmi\x3ex\x3c/mi\x3e\x3cmspace /\x3e\x3c/math\x3e"}),c=a.outerHTML||"";this.AttributeBug=""!==c&&!(c.match(/id="&lt;"/)&&c.match(/class="mathjax"/)&&c.match(/<\/math>/));this.MathTagBug=1<a.childNodes.length;this.CleanupHTML=MathJax.Hub.Browser.isMSIE}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js");(function(a,c,b,d,e,k,g){var l=MathJax.Extension,p=l.MathEvents={version:"2.2"},m=a.config.menuSettings,q={hover:500,frame:{x:3.5,y:5,bwidth:1,bcolor:"#A6D",hwidth:"15px",hcolor:"#83A"},button:{x:-4,y:-3,wx:-2,src:b.fileURL(k.imageDir+"/MenuArrow-15.png")},fadeinInc:.2,fadeoutInc:.05,fadeDelay:50,fadeoutStart:400,fadeoutDelay:15E3,styles:{".MathJax_Hover_Frame":{"border-radius":".25em","-webkit-border-radius":".25em","-moz-border-radius":".25em","-khtml-border-radius":".25em","box-shadow":"0px 0px 15px #83A","-webkit-box-shadow":"0px 0px 15px #83A","-moz-box-shadow":"0px 0px 15px #83A","-khtml-box-shadow":"0px 0px 15px #83A",border:"1px solid #A6D ! important",display:"inline-block",position:"absolute"},".MathJax_Hover_Arrow":{position:"absolute",width:"15px",height:"11px",cursor:"pointer"}}},h=p.Event={LEFTBUTTON:0,RIGHTBUTTON:2,MENUKEY:"altKey",Mousedown:function(a){return h.Handler(a,"Mousedown",this)},Mouseup:function(a){return h.Handler(a,"Mouseup",this)},Mousemove:function(a){return h.Handler(a,"Mousemove",this)},Mouseover:function(a){return h.Handler(a,"Mouseover",this)},Mouseout:function(a){return h.Handler(a,"Mouseout",this)},Click:function(a){return h.Handler(a,"Click",this)},DblClick:function(a){return h.Handler(a,"DblClick",this)},Menu:function(a){return h.Handler(a,"ContextMenu",this)},Handler:function(a,d,e){if(b.loadingMathMenu)return h.False(a);var c=k[e.jaxID];a||(a=window.event);a.isContextMenu="ContextMenu"===d;if(c[d])return c[d](a,e);if(l.MathZoom)return l.MathZoom.HandleEvent(a,d,e)},False:function(a){a||(a=window.event);a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0,a.returnValue=!1);return!1},ContextMenu:function(c,v,u){var f=k[v.jaxID],w=f.getJaxFromMath(v);if((null!=f.config.showMathMenu?f:a).config.showMathMenu&&("MathJax"===m.context||u)){p.msieEventBug&&(c=window.event||c);h.ClearSelection();r.ClearHoverTimer();w.hover&&(w.hover.remove&&(clearTimeout(w.hover.remove),delete w.hover.remove),w.hover.nofade=!0);var l=MathJax.Menu;if(l){if(l.loadingDomain)return h.False(c);f=e.loadDomain("MathMenu");if(!f)return l.jax=w,v=l.menu.Find("Show Math As").menu,v.items[0].name=w.sourceMenuTitle,v.items[0].format=w.sourceMenuFormat||"MathML",v.items[1].name=g[w.inputJax].sourceMenuTitle,l.menu.Find("Math Settings","MathPlayer").hidden=!("NativeMML"===w.outputJax&&a.Browser.hasMathPlayer),l.menu.Post(c);l.loadingDomain=!0;w=function(){delete l.loadingDomain}}else{if(b.loadingMathMenu)return h.False(c);b.loadingMathMenu=!0;f=b.Require("[MathJax]/extensions/MathMenu.js");w=function(){delete b.loadingMathMenu;MathJax.Menu||(MathJax.Menu={})}}d.Queue(f,w,["ContextMenu",h,{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY},v,u]);return h.False(c)}},AltContextMenu:function(b,d){var e=k[d.jaxID],c=(null!=e.config.showMathMenu?e:a).config.showMathMenu;if(c){c=(null!=e.config.showMathMenuMSIE?e:a).config.showMathMenuMSIE;if("MathJax"===m.context&&!m.mpContext&&c){if(!p.noContextMenuBug||b.button!==h.RIGHTBUTTON)return}else if(!b[h.MENUKEY]||b.button!==h.LEFTBUTTON)return;return e.ContextMenu(b,d,!0)}},ClearSelection:function(){p.safariContextMenuBug&&setTimeout("window.getSelection().empty()",0);document.selection&&setTimeout("document.selection.empty()",0)},getBBox:function(a){a.appendChild(p.topImg);var b=p.topImg.offsetTop,d=a.offsetHeight-b,e=a.offsetWidth;a.removeChild(p.topImg);return{w:e,h:b,d:d}}},r=p.Hover={Mouseover:function(b,d){if(m.discoverable||"Hover"===m.zoom){var e=b.fromElement||b.relatedTarget,c=b.toElement||b.target;if(e&&c&&(e.isMathJax!=c.isMathJax||a.getJaxFor(e)!==a.getJaxFor(c)))return e=this.getJaxFromMath(d),e.hover?r.ReHover(e):r.HoverTimer(e,d),h.False(b)}},Mouseout:function(b,d){if(m.discoverable||"Hover"===m.zoom){var e=b.fromElement||b.relatedTarget,c=b.toElement||b.target;if(e&&c&&(e.isMathJax!=c.isMathJax||a.getJaxFor(e)!==a.getJaxFor(c)))return e=this.getJaxFromMath(d),e.hover?r.UnHover(e):r.ClearHoverTimer(),h.False(b)}},Mousemove:function(a,b){if(m.discoverable||"Hover"===m.zoom){var d=this.getJaxFromMath(b);if(!d.hover&&(r.lastX!=a.clientX||r.lastY!=a.clientY))return r.lastX=a.clientX,r.lastY=a.clientY,r.HoverTimer(d,b),h.False(a)}},HoverTimer:function(a,b){this.ClearHoverTimer();this.hoverTimer=setTimeout(d(["Hover",this,a,b]),q.hover)},ClearHoverTimer:function(){this.hoverTimer&&(clearTimeout(this.hoverTimer),delete this.hoverTimer)},Hover:function(b,d){if(!l.MathZoom||!l.MathZoom.Hover({},d)){var e=k[b.outputJax],f=e.getHoverSpan(b,d),h=e.getHoverBBox(b,f,d),g=(null!=e.config.showMathMenu?e:a).config.showMathMenu,r=q.frame.x,m=q.frame.y,t=q.frame.bwidth;p.msieBorderWidthBug&&(t=0);b.hover={opacity:0,id:b.inputID+"-Hover"};var y=c.Element("span",{id:b.hover.id,isMathJax:!0,style:{display:"inline-block",width:0,height:0,position:"relative"}},[["span",{className:"MathJax_Hover_Frame",isMathJax:!0,style:{display:"inline-block",position:"absolute",top:this.Px(-h.h-m-t-(h.y||0)),left:this.Px(-r-t+(h.x||0)),width:this.Px(h.w+2*r),height:this.Px(h.h+h.d+2*m),opacity:0,filter:"alpha(opacity\x3d0)"}}]]),e=c.Element("span",{isMathJax:!0,id:b.hover.id+"Menu",style:{display:"inline-block","z-index":1,width:0,height:0,position:"relative"}},[["img",{className:"MathJax_Hover_Arrow",isMathJax:!0,math:d,src:q.button.src,onclick:this.HoverMenu,jax:e.id,style:{left:this.Px(h.w+r+t+(h.x||0)+q.button.x),top:this.Px(-h.h-m-t-(h.y||0)-q.button.y),opacity:0,filter:"alpha(opacity\x3d0)"}}]]);h.width&&(y.style.width=e.style.width=h.width,y.style.marginRight=e.style.marginRight="-"+h.width,y.firstChild.style.width=h.width,e.firstChild.style.left="",e.firstChild.style.right=this.Px(q.button.wx));f.parentNode.insertBefore(y,f);g&&f.parentNode.insertBefore(e,f);f.style&&(f.style.position="relative");this.ReHover(b)}},ReHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.remove=setTimeout(d(["UnHover",this,a]),q.fadeoutDelay);this.HoverFadeTimer(a,q.fadeinInc)},UnHover:function(a){a.hover.nofade||this.HoverFadeTimer(a,-q.fadeoutInc,q.fadeoutStart)},HoverFade:function(a){delete a.hover.timer;a.hover.opacity=Math.max(0,Math.min(1,a.hover.opacity+a.hover.inc));a.hover.opacity=Math.floor(1E3*a.hover.opacity)/1E3;var b=document.getElementById(a.hover.id),d=document.getElementById(a.hover.id+"Menu");b.firstChild.style.opacity=a.hover.opacity;b.firstChild.style.filter="alpha(opacity\x3d"+Math.floor(100*a.hover.opacity)+")";d&&(d.firstChild.style.opacity=a.hover.opacity,d.firstChild.style.filter=b.style.filter);1!==a.hover.opacity&&(0<a.hover.opacity?this.HoverFadeTimer(a,a.hover.inc):(b.parentNode.removeChild(b),d&&d.parentNode.removeChild(d),a.hover.remove&&clearTimeout(a.hover.remove),delete a.hover))},HoverFadeTimer:function(a,b,e){a.hover.inc=b;a.hover.timer||(a.hover.timer=setTimeout(d(["HoverFade",this,a]),e||q.fadeDelay))},HoverMenu:function(a){a||(a=window.event);return k[this.jax].ContextMenu(a,this.math,!0)},ClearHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.timer&&clearTimeout(a.hover.timer);r.ClearHoverTimer();delete a.hover},Px:function(a){return.006>Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=q.button.src}},t=p.Touch={last:0,delay:500,start:function(a){var b=(new Date).getTime(),d=b-t.last<t.delay&&t.up;t.last=b;t.up=!1;d&&(t.timeout=setTimeout(t.menu,t.delay,a,this),a.preventDefault())},end:function(a){var b=(new Date).getTime();t.up=b-t.last<t.delay;if(t.timeout)return clearTimeout(t.timeout),delete t.timeout,t.last=0,t.up=!1,a.preventDefault(),h.Handler(a.touches[0]||a.touch,"DblClick",this)},menu:function(a,b){delete t.timeout;t.last=0;t.up=!1;return h.Handler(a.touches[0]||a.touch,"ContextMenu",b)}};if(a.Browser.isMobile){var f=q.styles[".MathJax_Hover_Arrow"];f.width="25px";f.height="18px";q.button.x=-6}a.Browser.Select({MSIE:function(a){var b=document.documentMode||0,d=a.versionAtLeast("8.0");p.msieBorderWidthBug="BackCompat"===document.compatMode;p.msieEventBug=a.isIE9;p.msieAlignBug=!d||8>b;9>b&&(h.LEFTBUTTON=1)},Safari:function(a){p.safariContextMenuBug=!0},Opera:function(a){p.operaPositionBug=!0},Konqueror:function(a){p.noContextMenuBug=!0}});p.topImg=p.msieAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});p.operaPositionBug&&(p.topImg.style.border="1px solid");p.config=q=a.CombineConfig("MathEvents",q);d.Queue(a.Register.StartupHook("End Config",{}),[function(){var a=q.styles[".MathJax_Hover_Frame"];a.border=q.frame.bwidth+"px solid "+q.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+q.frame.hwidth+" "+q.frame.hcolor}],["getImages",r],["Styles",b,q.styles],["Post",a.Startup.signal,"MathEvents Ready"],["loadComplete",b,"[MathJax]/extensions/MathEvents.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.Callback,MathJax.Localization,MathJax.OutputJax,MathJax.InputJax);(function(a,c,b,d,e){var k=a.CombineConfig("MathZoom",{styles:{"#MathJax_Zoom":{position:"absolute","background-color":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",margin:0,"font-weight":"normal","font-style":"normal","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","box-shadow":"5px 5px 15px #AAAAAA","-webkit-box-shadow":"5px 5px 15px #AAAAAA","-moz-box-shadow":"5px 5px 15px #AAAAAA","-khtml-box-shadow":"5px 5px 15px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},"#MathJax_ZoomOverlay":{position:"absolute",left:0,top:0,"z-index":300,display:"inline-block",width:"100%",height:"100%",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"},"#MathJax_ZoomFrame":{position:"relative",display:"inline-block",height:0,width:0},"#MathJax_ZoomEventTrap":{position:"absolute",left:0,top:0,"z-index":302,display:"inline-block",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"}}}),g,l,p;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){p=MathJax.Extension.MathEvents.Event;g=MathJax.Extension.MathEvents.Event.False;l=MathJax.Extension.MathEvents.Hover});var m=MathJax.Extension.MathZoom={version:"2.2",settings:a.config.menuSettings,scrollSize:18,HandleEvent:function(a,b,d){return m.settings.CTRL&&!a.ctrlKey||m.settings.ALT&&!a.altKey||m.settings.CMD&&!a.metaKey||m.settings.Shift&&!a.shiftKey||!m[b]?!0:m[b](a,d)},Click:function(a,b){if("Click"===this.settings.zoom)return this.Zoom(a,b)},DblClick:function(a,b){if("Double-Click"===this.settings.zoom)return this.Zoom(a,b)},Hover:function(a,b){return"Hover"===this.settings.zoom?(this.Zoom(a,b),!0):!1},Zoom:function(b,d){this.Remove();l.ClearHoverTimer();p.ClearSelection();var e=MathJax.OutputJax[d.jaxID],m=e.getJaxFromMath(d);m.hover&&l.UnHover(m);var f=Math.floor(.85*document.body.clientWidth),n=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),v=c.Element("span",{id:"MathJax_ZoomFrame"},[["span",{id:"MathJax_ZoomOverlay",onmousedown:this.Remove}],["span",{id:"MathJax_Zoom",onclick:this.Remove,style:{visibility:"hidden",fontSize:this.settings.zscale,"max-width":f+"px","max-height":n+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),u=v.lastChild,z=u.firstChild,w=v.firstChild;d.parentNode.insertBefore(v,d);d.parentNode.insertBefore(d,v);z.addEventListener&&z.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var x=c.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});v.insertBefore(x,u)}this.msieZIndexBug&&(c.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),v.style.position="relative",v.style.zIndex=k.styles["#MathJax_ZoomOverlay"]["z-index"]);e=e.Zoom(m,z,d,f,n);this.msiePositionBug&&(this.msieSizeBug&&(u.style.height=e.zH+"px",u.style.width=e.zW+"px"),u.offsetHeight>n&&(u.style.height=n+"px",u.style.width=e.zW+this.scrollSize+"px"),u.offsetWidth>f&&(u.style.width=f+"px",u.style.height=e.zH+this.scrollSize+"px"));this.operaPositionBug&&(u.style.width=Math.min(f,e.zW)+"px");u.offsetWidth&&u.offsetWidth<f&&u.offsetHeight<n&&(u.style.overflow="visible");this.Position(u,e);this.msieTrapEventBug&&(x.style.height=u.clientHeight+"px",x.style.width=u.clientWidth+"px",x.style.left=parseFloat(u.style.left)+u.clientLeft+"px",x.style.top=parseFloat(u.style.top)+u.clientTop+"px");u.style.visibility="";"Hover"===this.settings.zoom&&(w.onmouseover=this.Remove);window.addEventListener?addEventListener("resize",this.Resize,!1):window.attachEvent?attachEvent("onresize",this.Resize):(this.onresize=window.onresize,window.onresize=this.Resize);a.signal.Post(["math zoomed",m]);return g(b)},Position:function(a,b){var d=this.Resize(),e=d.y,c=b.mW,k=b.Y;a.style.left=Math.max(-c-Math.floor((a.offsetWidth-c)/2),10-d.x)+"px";a.style.top=Math.max(k,10-e)+"px";m.msiePositionBug||m.SetWH()},Resize:function(a){if(m.onresize)m.onresize(a);var b=document.getElementById("MathJax_ZoomFrame");a=document.getElementById("MathJax_ZoomOverlay");for(var d=m.getXY(b),b=b.parentNode,e=m.getOverflow(b);b.parentNode&&b!==document.body&&"visible"===e;)b=b.parentNode,e=m.getOverflow(b);"visible"!==e&&(a.scroll_parent=b,e=m.getXY(b),d.x-=e.x,d.y-=e.y,e=m.getBorder(b),d.x-=e.x,d.y-=e.y);a.style.left=-d.x+"px";a.style.top=-d.y+"px";m.msiePositionBug?setTimeout(m.SetWH,0):m.SetWH();return d},SetWH:function(){var a=document.getElementById("MathJax_ZoomOverlay");a.style.width=a.style.height="1px";var b=a.scroll_parent||document.documentElement||document.body;a.style.width=b.scrollWidth+"px";a.style.height=Math.max(b.clientHeight,b.scrollHeight)+"px"},getOverflow:window.getComputedStyle?function(a){return getComputedStyle(a).overflow}:function(a){return(a.currentStyle||{overflow:"visible"}).overflow},getBorder:function(a){var b={thin:1,medium:2,thick:3},d=window.getComputedStyle?getComputedStyle(a):a.currentStyle||{borderLeftWidth:0,borderTopWidth:0};a=d.borderLeftWidth;d=d.borderTopWidth;a=b[a]?b[a]:parseInt(a);d=b[d]?b[d]:parseInt(d);return{x:a,y:d}},getXY:function(a){var b=0,d=0,e;for(e=a;e.offsetParent;)b+=e.offsetLeft,e=e.offsetParent;m.operaPositionBug&&(a.style.border="1px solid");for(e=a;e.offsetParent;)d+=e.offsetTop,e=e.offsetParent;m.operaPositionBug&&(a.style.border="");return{x:b,y:d}},Remove:function(b){var d=document.getElementById("MathJax_ZoomFrame");if(d){var e=MathJax.OutputJax[d.previousSibling.jaxID].getJaxFromMath(d.previousSibling);a.signal.Post(["math unzoomed",e]);d.parentNode.removeChild(d);(d=document.getElementById("MathJax_ZoomTracker"))&&d.parentNode.removeChild(d);m.operaRefreshBug&&(d=c.addElement(document.body,"div",{style:{position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"white",opacity:0},id:"MathJax_OperaDiv"}),document.body.removeChild(d));window.removeEventListener?removeEventListener("resize",m.Resize,!1):window.detachEvent?detachEvent("onresize",m.Resize):(window.onresize=m.onresize,delete m.onresize)}return g(b)}};a.Browser.Select({MSIE:function(a){var b=document.documentMode||0,d=9<=b;m.msiePositionBug=!d;m.msieSizeBug=a.versionAtLeast("7.0")&&(!document.documentMode||7===b||8===b);m.msieZIndexBug=7>=b;m.msieInlineBlockAlignBug=7>=b;m.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(m.scrollSize=52);d&&delete k.styles["#MathJax_Zoom"].filter},Opera:function(a){m.operaPositionBug=!0;m.operaRefreshBug=!0}});m.topImg=m.msieInlineBlockAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(m.operaPositionBug||m.msieTopBug)m.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,k.styles],["Post",a.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(a,c,b,d,e){var k=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:k};var g=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},l=a.Browser.isPC,p=a.Browser.isMSIE,m=8<(document.documentMode||0),q=l?null:"5px",h=a.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(e.imageDir+"/CloseX-31.png"),showRenderer:!0,showMathPlayer:!0,showFontMenu:!1,showContext:!1,showDiscoverable:!1,showLocale:!0,showLocaleURL:!1,windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{"#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:l?"2px":"5px 0px",border:"1px solid #CCCCCC",margin:0,cursor:"default",font:"menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":q,"-webkit-border-radius":q,"-moz-border-radius":q,"-khtml-border-radius":q,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_MenuItem":{padding:l?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":p?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":p?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:l?"1em":".7em"},".MathJax_MenuLabel":{padding:l?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":l?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:l?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":l?"Highlight":"#606872",color:l?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),r,t;a.Register.StartupHook("MathEvents Ready",function(){r=MathJax.Extension.MathEvents.Event.False;t=MathJax.Extension.MathEvents.Hover});var f=MathJax.Menu=MathJax.Object.Subclass({version:"2.2",items:[],posted:!1,title:null,margin:5,Init:function(a){this.items=[].slice.call(arguments,0)},With:function(b){b&&a.Insert(this,b);return this},Post:function(a,b){a||(a=window.event);var d=document.getElementById("MathJax_MenuFrame");d||(d=f.Background(this),delete n.lastItem,delete n.lastMenu,delete f.skipUp,k.Post(["post",f.jax]));var e=c.addElement(d,"div",{onmouseup:f.Mouseup,ondblclick:r,ondragstart:r,onselectstart:r,oncontextmenu:r,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(e);for(var g=0,m=this.items.length;g<m;g++)this.items[g].Create(e);f.isMobile&&c.addElement(e,"span",{className:"MathJax_Menu_Close",menu:b,ontouchstart:f.Close,ontouchend:r,onmousedown:f.Close,onmouseup:r},[["img",{src:h.closeImg,style:{width:"100%",height:"100%"}}]]);this.posted=!0;e.style.width=e.offsetWidth+2+"px";g=a.pageX;m=a.pageY;g||m||(g=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,m=a.clientY+document.body.scrollTop+document.documentElement.scrollTop);if(b){for(var p="left",q=b.offsetWidth,g=f.isMobile?30:q-2,m=0;b&&b!==d;)g+=b.offsetLeft,m+=b.offsetTop,b=b.parentNode;g+e.offsetWidth>document.body.offsetWidth-this.margin&&!f.isMobile&&(p="right",g=Math.max(this.margin,g-q-e.offsetWidth+6));l||(e.style["borderRadiusTop"+p]=0,e.style["WebkitBorderRadiusTop"+p]=0,e.style["MozBorderRadiusTop"+p]=0,e.style["KhtmlBorderRadiusTop"+p]=0)}else g+e.offsetWidth>document.body.offsetWidth-this.margin&&(g=document.body.offsetWidth-e.offsetWidth-this.margin),f.isMobile&&(g=Math.max(5,g-Math.floor(e.offsetWidth/2)),m-=20),f.skipUp=a.isContextMenu;e.style.left=g+"px";e.style.top=m+"px";document.selection&&document.selection.empty&&document.selection.empty();return r(a)},Remove:function(a,b){k.Post(["unpost",f.jax]);var d=document.getElementById("MathJax_MenuFrame");d&&(d.parentNode.removeChild(d),this.msieFixedPositionBug&&detachEvent("onresize",f.Resize));f.jax.hover&&(delete f.jax.hover.nofade,t.UnHover(f.jax));return r(a)},Find:function(a){return this.FindN(1,a,[].slice.call(arguments,1))},FindId:function(a){return this.FindN(0,a,[].slice.call(arguments,1))},FindN:function(a,b,d){for(var e=0,c=this.items.length;e<c;e++)if(this.items[e].name[a]===b){if(d.length){if(!this.items[e].menu)break;return this.items[e].menu.FindN(a,d[0],d.slice(1))}return this.items[e]}return null},IndexOf:function(a){return this.IndexOfN(1,a)},IndexOfId:function(a){return this.IndexOfN(0,a)},IndexOfN:function(a,b){for(var d=0,e=this.items.length;d<e;d++)if(this.items[d].name[a]===b)return d;return null}},{config:h,div:null,Close:function(a){return f.Event(a,this.menu||this.parentNode,this.menu?"Touchend":"Remove")},Remove:function(a){return f.Event(a,this,"Remove")},Mouseover:function(a){return f.Event(a,this,"Mouseover")},Mouseout:function(a){return f.Event(a,this,"Mouseout")},Mousedown:function(a){return f.Event(a,this,"Mousedown")},Mouseup:function(a){return f.Event(a,this,"Mouseup")},Touchstart:function(a){return f.Event(a,this,"Touchstart")},Touchend:function(a){return f.Event(a,this,"Touchend")},Event:function(a,b,d,e){if(f.skipMouseover&&"Mouseover"===d&&!e)return r(a);if(f.skipUp){if(d.match(/Mouseup|Touchend/))return delete f.skipUp,r(a);("Touchstart"===d||"Mousedown"===d&&!f.skipMousedown)&&delete f.skipUp}a||(a=window.event);return(e=b.menuItem)&&e[d]?e[d](a,b):null},BGSTYLE:{position:"absolute",left:0,top:0,"z-index":200,width:"100%",height:"100%",border:0,padding:0,margin:0},Background:function(a){a=c.addElement(document.body,"div",{style:this.BGSTYLE,id:"MathJax_MenuFrame"},[["div",{style:this.BGSTYLE,menuItem:a,onmousedown:this.Remove}]]);var b=a.firstChild;f.msieBackgroundBug&&(b.style.backgroundColor="white",b.style.filter="alpha(opacity\x3d0)");f.msieFixedPositionBug?(a.width=a.height=0,this.Resize(),attachEvent("onresize",this.Resize)):b.style.position="fixed";return a},Resize:function(){setTimeout(f.SetWH,0)},SetWH:function(){var a=document.getElementById("MathJax_MenuFrame");a&&(a=a.firstChild,a.style.width=a.style.height="1px",a.style.width=document.body.scrollWidth+"px",a.style.height=document.body.scrollHeight+"px")},saveCookie:function(){c.Cookie.Set("menu",this.cookie)},getCookie:function(){this.cookie=c.Cookie.Get("menu")},getImages:function(){f.isMobile&&((new Image).src=h.closeImg)}}),n=f.ITEM=MathJax.Object.Subclass({name:"",Create:function(a){if(!this.hidden){var b={onmouseover:f.Mouseover,onmouseout:f.Mouseout,onmouseup:f.Mouseup,onmousedown:f.Mousedown,ondragstart:r,onselectstart:r,onselectend:r,ontouchstart:f.Touchstart,ontouchend:f.Touchend,className:"MathJax_MenuItem",menuItem:this};this.disabled&&(b.className+=" MathJax_MenuDisabled");c.addElement(a,"div",b,this.Label(b,a))}},Name:function(){return g(this.name[0],this.name[1])},Mouseover:function(a,b){this.disabled||this.Activate(b);if(!this.menu||!this.menu.posted){for(var d=document.getElementById("MathJax_MenuFrame").childNodes,e=b.parentNode.childNodes,c=0,k=e.length;c<k;c++){var g=e[c].menuItem;g&&g.menu&&g.menu.posted&&g.Deactivate(e[c])}for(k=d.length-1;0<=k&&b.parentNode.menuItem!==d[k].menuItem;)d[k].menuItem.posted=!1,d[k].parentNode.removeChild(d[k]),k--;this.Timer&&!f.isMobile&&this.Timer(a,b)}},Mouseout:function(a,b){this.menu&&this.menu.posted||this.Deactivate(b);this.timer&&(clearTimeout(this.timer),delete this.timer)},Mouseup:function(a,b){return this.Remove(a,b)},Touchstart:function(a,b){return this.TouchEvent(a,b,"Mousedown")},Touchend:function(a,b){return this.TouchEvent(a,b,"Mouseup")},TouchEvent:function(a,b,d){this!==n.lastItem&&(n.lastMenu&&f.Event(a,n.lastMenu,"Mouseout"),f.Event(a,b,"Mouseover",!0),n.lastItem=this,n.lastMenu=b);if(this.nativeTouch)return null;f.Event(a,b,d);return!1},Remove:function(a,b){b=b.parentNode.menuItem;return b.Remove(a,b)},Activate:function(a){this.Deactivate(a);a.className+=" MathJax_MenuActive"},Deactivate:function(a){a.className=a.className.replace(/ MathJax_MenuActive/,"")},With:function(b){b&&a.Insert(this,b);return this}});f.ITEM.COMMAND=f.ITEM.Subclass({action:function(){},Init:function(a,b,d){a instanceof Array||(a=[a,a]);this.name=a;this.action=b;this.With(d)},Label:function(a,b){return[this.Name()]},Mouseup:function(a,b){this.disabled||(this.Remove(a,b),k.Post(["command",this]),this.action.call(this,a));return r(a)}});f.ITEM.SUBMENU=f.ITEM.Subclass({menu:null,marker:l&&!a.Browser.isSafari?"\u25b6":"\u25b8",Init:function(a,b){a instanceof Array||(a=[a,a]);this.name=a;var d=1;b instanceof f.ITEM||(this.With(b),d++);this.menu=f.apply(f,[].slice.call(arguments,d))},Label:function(a,b){this.menu.posted=!1;return[this.Name()+" ",["span",{className:"MathJax_MenuArrow"},[this.marker]]]},Timer:function(a,b){this.timer&&clearTimeout(this.timer);a={clientX:a.clientX,clientY:a.clientY};this.timer=setTimeout(d(["Mouseup",this,a,b]),h.delay)},Touchend:function(a,b){var d=this.menu.posted,e=this.SUPER(arguments).Touchend.apply(this,arguments);d&&(this.Deactivate(b),delete n.lastItem,delete n.lastMenu);return e},Mouseup:function(a,b){if(!this.disabled)if(this.menu.posted)for(var d=document.getElementById("MathJax_MenuFrame").childNodes,e=d.length-1;0<=e;){var c=d[e];c.menuItem.posted=!1;c.parentNode.removeChild(c);if(c.menuItem===this.menu)break;e--}else this.timer&&(clearTimeout(this.timer),delete this.timer),this.menu.Post(a,b);return r(a)}});f.ITEM.RADIO=f.ITEM.Subclass({variable:null,marker:l?"\u25cf":"\u2713",Init:function(a,b,d){a instanceof Array||(a=[a,a]);this.name=a;this.variable=b;this.With(d);null==this.value&&(this.value=this.name[0])},Label:function(a,b){var d={className:"MathJax_MenuRadioCheck"};h.settings[this.variable]!==this.value&&(d={style:{display:"none"}});return[["span",d,[this.marker]]," "+this.Name()]},Mouseup:function(a,b){if(!this.disabled){for(var d=b.parentNode.childNodes,e=0,c=d.length;e<c;e++){var g=d[e].menuItem;g&&g.variable===this.variable&&(d[e].firstChild.style.display="none")}b.firstChild.display="";h.settings[this.variable]=this.value;f.cookie[this.variable]=h.settings[this.variable];f.saveCookie();k.Post(["radio button",this])}this.Remove(a,b);this.action&&!this.disabled&&this.action.call(f,this);return r(a)}});f.ITEM.CHECKBOX=f.ITEM.Subclass({variable:null,marker:"\u2713",Init:function(a,b,d){a instanceof Array||(a=[a,a]);this.name=a;this.variable=b;this.With(d)},Label:function(a,b){var d={className:"MathJax_MenuCheck"};h.settings[this.variable]||(d={style:{display:"none"}});return[["span",d,[this.marker]]," "+this.Name()]},Mouseup:function(a,b){this.disabled||(b.firstChild.display=h.settings[this.variable]?"none":"",h.settings[this.variable]=!h.settings[this.variable],f.cookie[this.variable]=h.settings[this.variable],f.saveCookie(),k.Post(["checkbox",this]));this.Remove(a,b);this.action&&!this.disabled&&this.action.call(f,this);return r(a)}});f.ITEM.LABEL=f.ITEM.Subclass({Init:function(a,b){a instanceof Array||(a=[a,a]);this.name=a;this.With(b)},Label:function(a,b){delete a.onmouseover;delete a.onmouseout;delete a.onmousedown;a.className+=" MathJax_MenuLabel";return[this.Name()]}});f.ITEM.RULE=f.ITEM.Subclass({Label:function(a,b){delete a.onmouseover;delete a.onmouseout;delete a.onmousedown;a.className+=" MathJax_MenuRule";return null}});f.About=function(){var b=e["HTML-CSS"]||{},d=(b.imgFonts?"image":b.fontInUse?(b.webFonts?"web":"local")+" "+b.fontInUse:e.SVG?"web SVG":"generic")+" fonts",b=!b.webFonts||b.imgFonts?null:b.allowWebFonts.replace(/otf/,"woff or otf")+" fonts",k=["MathJax.js v"+MathJax.fileversion,["br"]];k.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);f.About.GetJax(k,MathJax.InputJax,["InputJax","%1 Input Jax v%2"]);f.About.GetJax(k,MathJax.OutputJax,["OutputJax","%1 Output Jax v%2"]);f.About.GetJax(k,MathJax.ElementJax,["ElementJax","%1 Element Jax v%2"]);k.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);f.About.GetJax(k,MathJax.Extension,["Extension","%1 Extension v%2"],!0);k.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}],["center",{},[a.Browser+" v"+a.Browser.version+(b?" \u2014 "+g(b.replace(/ /g,""),b):"")]]);f.About.div=f.Background(f.About);d=c.addElement(f.About.div,"div",{id:"MathJax_About"},[["b",{style:{fontSize:"120%"}},["MathJax"]]," v"+MathJax.version,["br"],g(d.replace(/ /g,""),"using "+d),["br"],["br"],["span",{style:{display:"inline-block","text-align":"left","font-size":"80%","max-height":"20em",overflow:"auto","background-color":"#E4E4E4",padding:".4em .6em",border:"1px inset"}},k],["br"],["br"],["a",{href:"http://www.mathjax.org/"},["www.mathjax.org"]],["img",{src:h.closeImg,style:{width:"21px",height:"21px",position:"absolute",top:".2em",right:".2em"},onclick:f.About.Remove}]]);MathJax.Localization.setCSS(d);b=document.documentElement||{};b=window.innerHeight||b.clientHeight||b.scrollHeight||0;f.prototype.msieAboutBug?(d.style.width="20em",d.style.position="absolute",d.style.left=Math.floor((document.documentElement.scrollWidth-d.offsetWidth)/2)+"px",d.style.top=Math.floor((b-d.offsetHeight)/3)+document.body.scrollTop+"px"):(d.style.marginLeft=Math.floor(-d.offsetWidth/2)+"px",d.style.top=Math.floor((b-d.offsetHeight)/3)+"px")};f.About.Remove=function(a){f.About.div&&(document.body.removeChild(f.About.div),delete f.About.div)};f.About.GetJax=function(a,b,d,e){var c=[],k;for(k in b)b.hasOwnProperty(k)&&b[k]&&(e&&b[k].version||b[k].isa&&b[k].isa(b))&&c.push(g(d[0],d[1],b[k].id||k,b[k].version));c.sort();b=0;for(d=c.length;b<d;b++)a.push(c[b],["br"]);return a};f.Help=function(){b.Require("[MathJax]/extensions/HelpDialog.js",function(){MathJax.Extension.Help.Dialog()})};f.ShowSource=function(a){a||(a=window.event);var e={screenX:a.screenX,screenY:a.screenY};if(f.jax)if("MathML"===this.format){var c=MathJax.ElementJax.mml;if(c&&"undefined"!==typeof c.mbase.prototype.toMathML)try{f.ShowSource.Text(f.jax.root.toMathML(),a)}catch(k){if(!k.restart)throw k;d.After([this,f.ShowSource,e],k.restart)}else b.loadingToMathML||(b.loadingToMathML=!0,f.ShowSource.Window(a),d.Queue(b.Require("[MathJax]/extensions/toMathML.js"),function(){delete b.loadingToMathML;c.mbase.prototype.toMathML||(c.mbase.prototype.toMathML=function(){})},[this,f.ShowSource,e]))}else"Error"===this.format?f.ShowSource.Text(f.jax.errorText,a):null==f.jax.originalText?alert(g("NoOriginalForm","No original form available")):f.ShowSource.Text(f.jax.originalText,a)};f.ShowSource.Window=function(a){if(!f.ShowSource.w){a=[];var b=h.windowSettings,d;for(d in b)b.hasOwnProperty(d)&&a.push(d+"\x3d"+b[d]);f.ShowSource.w=window.open("","_blank",a.join(","))}return f.ShowSource.w};f.ShowSource.Text=function(a,b){var d=f.ShowSource.Window(b);delete f.ShowSource.w;a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;");var e=g("EqSource","MathJax Equation Source");if(f.isMobile)d.document.open(),d.document.write("\x3chtml\x3e\x3chead\x3e\x3cmeta name\x3d'viewport' content\x3d'width\x3ddevice-width, initial-scale\x3d1.0' /\x3e\x3ctitle\x3e"+e+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e"),d.document.write("\x3cpre\x3e"+a+"\x3c/pre\x3e"),d.document.write("\x3chr\x3e\x3cinput type\x3d'button' value\x3d'"+g("Close","Close")+"' onclick\x3d'window.close()' /\x3e"),d.document.write("\x3c/body\x3e\x3c/html\x3e"),d.document.close();else{d.document.open();d.document.write("\x3chtml\x3e\x3chead\x3e\x3ctitle\x3e"+e+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e");d.document.write("\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cpre\x3e"+a+"\x3c/pre\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");d.document.write("\x3c/body\x3e\x3c/html\x3e");d.document.close();var c=d.document.body.firstChild;setTimeout(function(){var a=d.outerHeight-d.innerHeight||30,e=d.outerWidth-d.innerWidth||30,e=Math.max(100,Math.min(Math.floor(.5*screen.width),c.offsetWidth+e+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),c.offsetHeight+a+25));d.resizeTo(e,a);b&&null!=b.screenX&&(e=Math.max(0,Math.min(b.screenX-Math.floor(e/2),screen.width-e-20)),a=Math.max(0,Math.min(b.screenY-Math.floor(a/2),screen.height-a-20)),d.moveTo(e,a))},50)}};f.Scale=function(){var b=e["HTML-CSS"],d=e.NativeMML,c=e.SVG,k=(b||d||c||{config:{scale:100}}).config.scale,h=prompt(g("ScaleMath","Scale all mathematics (compared to surrounding text) by"),k+"%");h&&(h.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(h=parseFloat(h))?h!==k&&(b&&(b.config.scale=h),d&&(d.config.scale=h),c&&(c.config.scale=h),f.cookie.scale=h,f.saveCookie(),a.Reprocess()):alert(g("NonZeroScale","The scale should not be zero")):alert(g("PercentScale","The scale should be a percentage (e.g., 120%%)")))};f.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};f.Renderer=function(){var b=a.outputJax["jax/mml"];if(b[0]!==h.settings.renderer){var d=a.Browser,e,k=f.Renderer.Messages,l;switch(h.settings.renderer){case "NativeMML":h.settings.warnedMML||(d.isChrome&&"24."!==d.version.substr(0,3)?e=k.MML.WebKit:d.isSafari&&!d.versionAtLeast("5.0")?e=k.MML.WebKit:d.isMSIE?d.hasMathPlayer||(e=k.MML.MSIE):e=k.MML[d],l="warnedMML");break;case "SVG":h.settings.warnedSVG||!d.isMSIE||m||(e=k.SVG.MSIE)}if(e){e=g(e[0],e[1]);e=e+"\n\n"+g("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");f.cookie.renderer=b[0].id;f.saveCookie();if(!confirm(e)){f.cookie.renderer=h.settings.renderer=c.Cookie.Get("menu").renderer;f.saveCookie();return}l&&(f.cookie.warned=h.settings.warned=!0);f.cookie.renderer=h.settings.renderer;f.saveCookie()}a.Queue(["setRenderer",a,h.settings.renderer,"jax/mml"],["Rerender",a])}};f.Renderer.Messages={MML:{WebKit:["WebkitNativeMMLWarning","Your browser doesn't seem to support MathML natively, so switching to MathML output may cause the mathematics on the page to become unreadable."],MSIE:["MSIENativeMMLWarning","Internet Explorer requires the MathPlayer plugin in order to process MathML output."],Opera:["OperaNativeMMLWarning","Opera's support for MathML is limited, so switching to MathML output may cause some expressions to render poorly."],Safari:["SafariNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."],Firefox:["FirefoxNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."]},SVG:{MSIE:["MSIESVGWarning","SVG is not implemented in Internet Explorer prior to IE9 or when it is emulating IE8 or below. Switching to SVG output will cause the mathematics to not display properly."]}};f.Font=function(){e["HTML-CSS"]&&document.location.reload()};f.Locale=function(){MathJax.Localization.setLocale(h.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};f.LoadLocale=function(){var a=prompt(g("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(g("BadURL","The URL should be for a javascript file that defines MathJax translation data. Javascript file names should end with '.js'")),b.Require(a,function(d){d!=b.STATUS.OK&&alert(g("BadData","Failed to load translation data from %1",a))}))};f.MPEvents=function(a){var b=h.settings.discoverable,d=f.MPEvents.Messages;m?!b&&"Menu Events"===a.name[1]&&h.settings.mpContext&&alert(g.apply(g,d.IE9warning)):h.settings.mpMouse&&!confirm(g.apply(g,d.IE8warning))?(delete f.cookie.mpContext,delete h.settings.mpContext,delete f.cookie.mpMouse,delete h.settings.mpMouse,f.saveCookie()):(h.settings.mpContext=h.settings.mpMouse,f.cookie.mpContext=f.cookie.mpMouse=h.settings.mpMouse,f.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};f.MPEvents.Messages={IE8warning:["IE8warning","This will disable the MathJax menu and zoom features, but you can Alt-Click on an expression to obtain the MathJax menu instead.\n\nReally change the MathPlayer settings?"],IE9warning:["IE9warning","The MathJax contextual menu will be disabled, but you can Alt-Click on an expression to obtain the MathJax menu instead."]};a.Browser.Select({MSIE:function(a){var b="BackCompat"===document.compatMode;a=a.versionAtLeast("8.0")&&7<document.documentMode;f.Augment({margin:20,msieBackgroundBug:9>document.documentMode,msieFixedPositionBug:b||!a,msieAboutBug:b});m&&(delete h.styles["#MathJax_About"].filter,delete h.styles[".MathJax_Menu"].filter)},Firefox:function(a){f.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");f.skipMousedown=a.isMobile}});f.isMobile=a.Browser.isMobile;f.noContextMenu=a.Browser.noContextMenu;f.CreateLocaleMenu=function(){if(f.menu){var a=f.menu.Find("Language").menu,b=a.items,d=[],e=MathJax.Localization.strings,c;for(c in e)e.hasOwnProperty(c)&&d.push(c);d=d.sort();a.items=[];c=0;for(var k=d.length;c<k;c++){var g=e[d[c]].menuTitle,g=g?g+(" ("+d[c]+")"):d[c];a.items.push(n.RADIO([d[c],g],"locale",{action:f.Locale}))}a.items.push(b[b.length-2],b[b.length-1])}};a.Register.StartupHook("End Config",function(){h.settings=a.config.menuSettings;"undefined"!==typeof h.settings.showRenderer&&(h.showRenderer=h.settings.showRenderer);"undefined"!==typeof h.settings.showFontMenu&&(h.showFontMenu=h.settings.showFontMenu);"undefined"!==typeof h.settings.showContext&&(h.showContext=h.settings.showContext);f.getCookie();f.menu=f(n.SUBMENU(["Show","Show Math As"],n.COMMAND(["MathMLcode","MathML Code"],f.ShowSource,{nativeTouch:!0,format:"MathML"}),n.COMMAND(["Original","Original Form"],f.ShowSource,{nativeTouch:!0}),n.RULE(),n.CHECKBOX(["texHints","Show TeX hints in MathML"],"texHints")),n.RULE(),n.SUBMENU(["Settings","Math Settings"],n.SUBMENU(["ZoomTrigger","Zoom Trigger"],n.RADIO(["Hover","Hover"],"zoom",{action:f.Zoom}),n.RADIO(["Click","Click"],"zoom",{action:f.Zoom}),n.RADIO(["DoubleClick","Double-Click"],"zoom",{action:f.Zoom}),n.RADIO(["NoZoom","No Zoom"],"zoom",{value:"None"}),n.RULE(),n.LABEL(["TriggerRequires","Trigger Requires:"]),n.CHECKBOX(a.Browser.isMac?["Option","Option"]:["Alt","Alt"],"ALT"),n.CHECKBOX(["Command","Command"],"CMD",{hidden:!a.Browser.isMac}),n.CHECKBOX(["Control","Control"],"CTRL",{hidden:a.Browser.isMac}),n.CHECKBOX(["Shift","Shift"],"Shift")),n.SUBMENU(["ZoomFactor","Zoom Factor"],n.RADIO("125%","zscale"),n.RADIO("133%","zscale"),n.RADIO("150%","zscale"),n.RADIO("175%","zscale"),n.RADIO("200%","zscale"),n.RADIO("250%","zscale"),n.RADIO("300%","zscale"),n.RADIO("400%","zscale")),n.RULE(),n.SUBMENU(["Renderer","Math Renderer"],{hidden:!h.showRenderer},n.RADIO("HTML-CSS","renderer",{action:f.Renderer}),n.RADIO("MathML","renderer",{action:f.Renderer,value:"NativeMML"}),n.RADIO("SVG","renderer",{action:f.Renderer})),n.SUBMENU("MathPlayer",{hidden:!a.Browser.isMSIE||!h.showMathPlayer,disabled:!a.Browser.hasMathPlayer},n.LABEL(["MPHandles","Let MathPlayer Handle:"]),n.CHECKBOX(["MenuEvents","Menu Events"],"mpContext",{action:f.MPEvents,hidden:!m}),n.CHECKBOX(["MouseEvents","Mouse Events"],"mpMouse",{action:f.MPEvents,hidden:!m}),n.CHECKBOX(["MenuAndMouse","Mouse and Menu Events"],"mpMouse",{action:f.MPEvents,hidden:m})),n.SUBMENU(["FontPrefs","Font Preference"],{hidden:!h.showFontMenu},n.LABEL(["ForHTMLCSS","For HTML-CSS:"]),n.RADIO(["Auto","Auto"],"font",{action:f.Font}),n.RULE(),n.RADIO(["TeXLocal","TeX (local)"],"font",{action:f.Font}),n.RADIO(["TeXWeb","TeX (web)"],"font",{action:f.Font}),n.RADIO(["TeXImage","TeX (image)"],"font",{action:f.Font}),n.RULE(),n.RADIO(["STIXlocal","STIX (local)"],"font",{action:f.Font})),n.SUBMENU(["ContextMenu","Contextual Menu"],{hidden:!h.showContext},n.RADIO("MathJax","context"),n.RADIO(["Browser","Browser"],"context")),n.COMMAND(["Scale","Scale All Math ..."],f.Scale),n.RULE().With({hidden:!h.showDiscoverable,name:["","discover_rule"]}),n.CHECKBOX(["Discoverable","Highlight on Hover"],"discoverable",{hidden:!h.showDiscoverable})),n.SUBMENU(["Locale","Language"],{hidden:!h.showLocale},n.RADIO("en","locale",{action:f.Locale}),n.RULE().With({hidden:!h.showLocaleURL,name:["","localURL_rule"]}),n.COMMAND(["LoadLocale","Load from URL ..."],f.LoadLocale,{hidden:!h.showLocaleURL})),n.RULE(),n.COMMAND(["About","About MathJax"],f.About),n.COMMAND(["Help","MathJax Help"],f.Help));if(f.isMobile){var b=h.settings,d=f.menu.Find("Math Settings","Zoom Trigger").menu;d.items[0].disabled=d.items[1].disabled=!0;if("Hover"===b.zoom||"Click"==b.zoom)b.zoom="None";d.items=d.items.slice(0,4);navigator.appVersion.match(/[ (]Android[) ]/)&&f.ITEM.SUBMENU.Augment({marker:"\u00bb"})}f.CreateLocaleMenu()});f.showRenderer=function(a){f.cookie.showRenderer=h.showRenderer=a;f.saveCookie();f.menu.Find("Math Settings","Math Renderer").hidden=!a};f.showMathPlayer=function(a){f.cookie.showMathPlayer=h.showMathPlayer=a;f.saveCookie();f.menu.Find("Math Settings","MathPlayer").hidden=!a};f.showFontMenu=function(a){f.cookie.showFontMenu=h.showFontMenu=a;f.saveCookie();f.menu.Find("Math Settings","Font Preference").hidden=!a};f.showContext=function(a){f.cookie.showContext=h.showContext=a;f.saveCookie();f.menu.Find("Math Settings","Contextual Menu").hidden=!a};f.showDiscoverable=function(a){f.cookie.showDiscoverable=h.showDiscoverable=a;f.saveCookie();f.menu.Find("Math Settings","Highlight on Hover").hidden=!a;f.menu.Find("Math Settings","discover_rule").hidden=!a};f.showLocale=function(a){f.cookie.showLocale=h.showLocale=a;f.saveCookie();f.menu.Find("Language").hidden=!a};MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){MathJax.OutputJax["HTML-CSS"].config.imageFont||(f.menu.Find("Math Settings","Font Preference","TeX (image)").disabled=!0)});d.Queue(a.Register.StartupHook("End Config",{}),["getImages",f],["Styles",b,h.styles],["Post",a.Startup.signal,"MathMenu Ready"],["loadComplete",b,"[MathJax]/extensions/MathMenu.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.CallBack,MathJax.OutputJax);MathJax.ElementJax.mml=MathJax.ElementJax({mimeType:"jax/mml"},{id:"mml",version:"2.2",directory:MathJax.ElementJax.directory+"/mml",extensionDir:MathJax.ElementJax.extensionDir+"/mml",optableDir:MathJax.ElementJax.directory+"/mml/optable"});MathJax.ElementJax.mml.Augment({Init:function(){this.root=1===arguments.length&&"math"===arguments[0].type?arguments[0]:MathJax.ElementJax.mml.math.apply(this,arguments);if(this.root.attr&&this.root.attr.mode){this.root.display||"display"!==this.root.attr.mode||(this.root.display="block",this.root.attrNames.push("display"));delete this.root.attr.mode;for(var a=0,c=this.root.attrNames.length;a<c;a++)if("mode"===this.root.attrNames[a]){this.root.attrNames.splice(a,1);break}}}},{INHERIT:"_inherit_",AUTO:"_auto_",SIZE:{INFINITY:"infinity",SMALL:"small",NORMAL:"normal",BIG:"big"},COLOR:{TRANSPARENT:"transparent"},VARIANT:{NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALIGRAPHIC:"-tex-caligraphic",OLDSTYLE:"-tex-oldstyle"},FORM:{PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},LINEBREAK:{AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},LINEBREAKSTYLE:{BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},INDENTALIGN:{LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},INDENTSHIFT:{INDENTSHIFT:"indentshift"},LINETHICKNESS:{THIN:"thin",MEDIUM:"medium",THICK:"thick"},NOTATION:{LONGDIV:"longdiv",ACTUARIAL:"actuarial",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",MADRUWB:"madruwb"},ALIGN:{TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},LINES:{NONE:"none",SOLID:"solid",DASHED:"dashed"},SIDE:{LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},WIDTH:{AUTO:"auto",FIT:"fit"},ACTIONTYPE:{TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},LENGTH:{VERYVERYTHINMATHSPACE:"veryverythinmathspace",VERYTHINMATHSPACE:"verythinmathspace",THINMATHSPACE:"thinmathspace",MEDIUMMATHSPACE:"mediummathspace",THICKMATHSPACE:"thickmathspace",VERYTHICKMATHSPACE:"verythickmathspace",VERYVERYTHICKMATHSPACE:"veryverythickmathspace",NEGATIVEVERYVERYTHINMATHSPACE:"negativeveryverythinmathspace",NEGATIVEVERYTHINMATHSPACE:"negativeverythinmathspace",NEGATIVETHINMATHSPACE:"negativethinmathspace",NEGATIVEMEDIUMMATHSPACE:"negativemediummathspace",NEGATIVETHICKMATHSPACE:"negativethickmathspace",NEGATIVEVERYTHICKMATHSPACE:"negativeverythickmathspace",NEGATIVEVERYVERYTHICKMATHSPACE:"negativeveryverythickmathspace"},OVERFLOW:{LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},UNIT:{EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"},TEXCLASS:{ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},TEXCLASSNAMES:"ORD OP BIN REL OPEN CLOSE PUNCT INNER VCENTER".split(" "),copyAttributes:{fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,id:!0,"class":!0,href:!0,style:!0},skipAttributes:{texClass:!0,useHeight:!0,texprimestyle:!0},copyAttributeNames:"fontfamily fontsize fontweight fontstyle color background id class href style".split(" ")});(function(a){a.mbase=MathJax.Object.Subclass({type:"base",isToken:!1,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT},noInherit:{},noInheritAttribute:{texClass:!0},linebreakContainer:!1,Init:function(){this.data=[];!this.inferRow||1===arguments.length&&arguments[0].inferred||this.Append(a.mrow().With({inferred:!0,notParent:!0}));this.Append.apply(this,arguments)},With:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);return this},Append:function(){if(this.inferRow&&this.data.length)this.data[0].Append.apply(this.data[0],arguments);else for(var a=0,b=arguments.length;a<b;a++)this.SetData(this.data.length,arguments[a])},SetData:function(b,e){null!=e&&(e instanceof a.mbase||(e=this.isToken?a.chars(e):a.mtext(e)),e.parent=this,e.setInherit(this.inheritFromMe?this:this.inherit));this.data[b]=e},Parent:function(){for(var a=this.parent;a&&a.notParent;)a=a.parent;return a},Get:function(b,e){if(null!=this[b])return this[b];if(this.attr&&null!=this.attr[b])return this.attr[b];var c=this.Parent();if(c&&null!=c["adjustChild_"+b])return c["adjustChild_"+b](this.childPosition(),e);for(var g=c=this.inherit;c;){g=c[b];null==g&&c.attr&&(g=c.attr[b]);if(null!=g&&c.noInheritAttribute&&!c.noInheritAttribute[b]){var l=c.noInherit[this.type];if(!l||!l[b])return g}g=c;c=c.inherit}if(!e){if(this.defaults[b]===a.AUTO)return this.autoDefault(b);if(this.defaults[b]!==a.INHERIT&&null!=this.defaults[b])return this.defaults[b];if(g)return g.defaults[b]}return null},hasValue:function(a){return null!=this.Get(a,!0)},getValues:function(){for(var a={},b=0,c=arguments.length;b<c;b++)a[arguments[b]]=this.Get(arguments[b]);return a},adjustChild_scriptlevel:function(a,b){return this.Get("scriptlevel",b)},adjustChild_displaystyle:function(a,b){return this.Get("displaystyle",b)},adjustChild_texprimestyle:function(a,b){return this.Get("texprimestyle",b)},childPosition:function(){for(var a=this,b=a.parent;b.notParent;)a=b,b=a.parent;for(var c=0,g=b.data.length;c<g;c++)if(b.data[c]===a)return c;return null},setInherit:function(a){if(a!==this.inherit&&null==this.inherit){this.inherit=a;for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&this.data[b].setInherit&&this.data[b].setInherit(a)}},setTeXclass:function(a){this.getPrevClass(a);return"undefined"!==typeof this.texClass?this:a},getPrevClass:function(a){a&&(this.prevClass=a.Get("texClass"),this.prevLevel=a.Get("scriptlevel"))},updateTeXclass:function(a){a&&(this.prevClass=a.prevClass,delete a.prevClass,this.prevLevel=a.prevLevel,delete a.prevLevel,this.texClass=a.Get("texClass"))},texSpacing:function(){var b=null!=this.prevClass?this.prevClass:a.TEXCLASS.NONE,e=this.Get("texClass")||a.TEXCLASS.ORD;if(b===a.TEXCLASS.NONE||e===a.TEXCLASS.NONE)return"";b===a.TEXCLASS.VCENTER&&(b=a.TEXCLASS.ORD);e===a.TEXCLASS.VCENTER&&(e=a.TEXCLASS.ORD);b=this.TEXSPACE[b][e];return 0<this.prevLevel&&0<this.Get("scriptlevel")&&0<=b?"":this.TEXSPACELENGTH[Math.abs(b)]},TEXSPACELENGTH:["",a.LENGTH.THINMATHSPACE,a.LENGTH.MEDIUMMATHSPACE,a.LENGTH.THICKMATHSPACE],TEXSPACE:[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],autoDefault:function(a){return""},isSpacelike:function(){return!1},isEmbellished:function(){return!1},Core:function(){return this},CoreMO:function(){return this},hasNewline:function(){if(this.isEmbellished())return this.CoreMO().hasNewline();if(this.isToken||this.linebreakContainer)return!1;for(var a=0,b=this.data.length;a<b;a++)if(this.data[a]&&this.data[a].hasNewline())return!0;return!1},array:function(){return this.inferred?this.data:[this]},toString:function(){return this.type+"("+this.data.join(",")+")"}},{childrenSpacelike:function(){for(var a=0,b=this.data.length;a<b;a++)if(!this.data[a].isSpacelike())return!1;return!0},childEmbellished:function(){return this.data[0]&&this.data[0].isEmbellished()},childCore:function(){return this.data[0]},childCoreMO:function(){return this.data[0]?this.data[0].CoreMO():null},setChildTeXclass:function(a){this.data[0]&&(a=this.data[0].setTeXclass(a),this.updateTeXclass(this.data[0]));return a},setBaseTeXclasses:function(b){this.getPrevClass(b);this.texClass=null;this.data[0]?this.isEmbellished()||this.data[0].isa(a.mi)?(b=this.data[0].setTeXclass(b),this.updateTeXclass(this.Core())):(this.data[0].setTeXclass(),b=this):b=this;for(var e=1,c=this.data.length;e<c;e++)this.data[e]&&this.data[e].setTeXclass();return b},setSeparateTeXclasses:function(a){this.getPrevClass(a);a=0;for(var b=this.data.length;a<b;a++)this.data[a]&&this.data[a].setTeXclass();this.isEmbellished()&&this.updateTeXclass(this.Core());return this}});a.mi=a.mbase.Subclass({type:"mi",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.AUTO,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT},autoDefault:function(b){return"mathvariant"===b?(b=(this.data[0]||"").toString(),1===b.length||2===b.length&&55296<=b.charCodeAt(0)&&56320>b.charCodeAt(0)?a.VARIANT.ITALIC:a.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1<b.length&&b.match(/^[a-z][a-z0-9]*$/i)&&this.texClass===a.TEXCLASS.ORD&&(this.texClass=a.TEXCLASS.OP,this.autoOP=!0);return this}});a.mn=a.mbase.Subclass({type:"mn",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT}});a.mo=a.mbase.Subclass({type:"mo",isToken:!0,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,form:a.AUTO,fence:a.AUTO,separator:a.AUTO,lspace:a.AUTO,rspace:a.AUTO,stretchy:a.AUTO,symmetric:a.AUTO,maxsize:a.AUTO,minsize:a.AUTO,largeop:a.AUTO,movablelimits:a.AUTO,accent:a.AUTO,linebreak:a.LINEBREAK.AUTO,lineleading:a.INHERIT,linebreakstyle:a.AUTO,linebreakmultchar:a.INHERIT,indentalign:a.INHERIT,indentshift:a.INHERIT,indenttarget:a.INHERIT,indentalignfirst:a.INHERIT,indentshiftfirst:a.INHERIT,indentalignlast:a.INHERIT,indentshiftlast:a.INHERIT,texClass:a.AUTO},defaultDef:{form:a.FORM.INFIX,fence:!1,separator:!1,lspace:a.LENGTH.THICKMATHSPACE,rspace:a.LENGTH.THICKMATHSPACE,stretchy:!1,symmetric:!0,maxsize:a.SIZE.INFINITY,minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:a.LINEBREAK.AUTO,lineleading:"1ex",linebreakstyle:"before",indentalign:a.INDENTALIGN.AUTO,indentshift:"0",indenttarget:"",indentalignfirst:a.INDENTALIGN.INDENTALIGN,indentshiftfirst:a.INDENTSHIFT.INDENTSHIFT,indentalignlast:a.INDENTALIGN.INDENTALIGN,indentshiftlast:a.INDENTSHIFT.INDENTSHIFT,texClass:a.TEXCLASS.REL},SPACE_ATTR:{lspace:1,rspace:2,form:4},useMMLspacing:7,autoDefault:function(b,e){var c=this.def;if(!c){if("form"===b)return this.useMMLspacing&=~this.SPACE_ATTR.form,this.getForm();for(var g=this.data.join(""),l=[this.Get("form"),a.FORM.INFIX,a.FORM.POSTFIX,a.FORM.PREFIX],p=0,m=l.length;p<m;p++){var q=this.OPTABLE[l[p]][g];if(q){c=this.makeDef(q);break}}c||(c=this.CheckRange(g));!c&&e?c={}:(c||(c=MathJax.Hub.Insert({},this.defaultDef)),c.form=l[0],this.def=c)}this.useMMLspacing&=~(this.SPACE_ATTR[b]||0);return null!=c[b]?c[b]:e?"":this.defaultDef[b]},CheckRange:function(b){var e=b.charCodeAt(0);55296<=e&&56320>e&&(e=(e-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var c=0,g=this.RANGES.length;c<g&&this.RANGES[c][0]<=e;c++)if(e<=this.RANGES[c][1])return this.RANGES[c][3]&&(e=a.optableDir+"/"+this.RANGES[c][3]+".js",this.RANGES[c][3]=null,MathJax.Hub.RestartAfter(MathJax.Ajax.Require(e))),c=a.TEXCLASSNAMES[this.RANGES[c][2]],c=this.OPTABLE.infix[b]=a.mo.OPTYPES["BIN"===c?"BIN3":c],this.makeDef(c);return null},makeDef:function(b){null==b[2]&&(b[2]=this.defaultDef.texClass);b[3]||(b[3]={});var e=MathJax.Hub.Insert({},b[3]);e.lspace=this.SPACE[b[0]];e.rspace=this.SPACE[b[1]];e.texClass=b[2];e.texClass===a.TEXCLASS.REL&&(this.movablelimits||this.data.join("").match(/^[a-z]+$/i))&&(e.texClass=a.TEXCLASS.OP);return e},getForm:function(){for(var b=this,e=this.parent,c=this.Parent();c&&c.isEmbellished();)b=e,e=c.parent,c=c.Parent();if(e&&"mrow"===e.type&&1!==e.NonSpaceLength()){if(e.FirstNonSpace()===b)return a.FORM.PREFIX;if(e.LastNonSpace()===b)return a.FORM.POSTFIX}return a.FORM.INFIX},isEmbellished:function(){return!0},hasNewline:function(){return this.Get("linebreak")===a.LINEBREAK.NEWLINE},setTeXclass:function(b){this.getValues("lspace","rspace");if(this.useMMLspacing)return this.texClass=a.TEXCLASS.NONE,this;this.texClass=this.Get("texClass");return"\u2061"===this.data.join("")?(b&&(b.texClass=a.TEXCLASS.OP),this.texClass=this.prevClass=a.TEXCLASS.NONE,b):this.adjustTeXclass(b)},adjustTeXclass:function(b){if(this.texClass===a.TEXCLASS.NONE)return b;b?(!b.autoOP||this.texClass!==a.TEXCLASS.BIN&&this.texClass!==a.TEXCLASS.REL||(b.texClass=a.TEXCLASS.ORD),this.prevClass=b.texClass||a.TEXCLASS.ORD,this.prevLevel=b.Get("scriptlevel")):this.prevClass=a.TEXCLASS.NONE;this.texClass!==a.TEXCLASS.BIN||this.prevClass!==a.TEXCLASS.NONE&&this.prevClass!==a.TEXCLASS.BIN&&this.prevClass!==a.TEXCLASS.OP&&this.prevClass!==a.TEXCLASS.REL&&this.prevClass!==a.TEXCLASS.OPEN&&this.prevClass!==a.TEXCLASS.PUNCT?this.prevClass!==a.TEXCLASS.BIN||this.texClass!==a.TEXCLASS.REL&&this.texClass!==a.TEXCLASS.CLOSE&&this.texClass!==a.TEXCLASS.PUNCT||(b.texClass=this.prevClass=a.TEXCLASS.ORD):this.texClass=a.TEXCLASS.ORD;return this}});a.mtext=a.mbase.Subclass({type:"mtext",isToken:!0,isSpacelike:function(){return!0},texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT}});a.mspace=a.mbase.Subclass({type:"mspace",isToken:!0,isSpacelike:function(){return!0},defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,width:"0em",height:"0ex",depth:"0ex",linebreak:a.LINEBREAK.AUTO},hasDimAttr:function(){return this.hasValue("width")||this.hasValue("height")||this.hasValue("depth")},hasNewline:function(){return!this.hasDimAttr()&&this.Get("linebreak")===a.LINEBREAK.NEWLINE}});a.ms=a.mbase.Subclass({type:"ms",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathvariant:a.INHERIT,mathsize:a.INHERIT,mathbackground:a.INHERIT,mathcolor:a.INHERIT,lquote:'"',rquote:'"'}});a.mglyph=a.mbase.Subclass({type:"mglyph",isToken:!0,texClass:a.TEXCLASS.ORD,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,alt:"",src:"",width:a.AUTO,height:a.AUTO,valign:"0em"}});a.mrow=a.mbase.Subclass({type:"mrow",isSpacelike:a.mbase.childrenSpacelike,inferred:!1,notParent:!1,isEmbellished:function(){for(var a=!1,b=0,c=this.data.length;b<c;b++)if(null!=this.data[b])if(this.data[b].isEmbellished()){if(a)return!1;a=!0;this.core=b}else if(!this.data[b].isSpacelike())return!1;return a},NonSpaceLength:function(){for(var a=0,b=0,c=this.data.length;b<c;b++)this.data[b]&&!this.data[b].isSpacelike()&&a++;return a},FirstNonSpace:function(){for(var a=0,b=this.data.length;a<b;a++)if(this.data[a]&&!this.data[a].isSpacelike())return this.data[a];return null},LastNonSpace:function(){for(var a=this.data.length-1;0<=a;a--)if(this.data[0]&&!this.data[a].isSpacelike())return this.data[a];return null},Core:function(){return this.isEmbellished()&&"undefined"!==typeof this.core?this.data[this.core]:this},CoreMO:function(){return this.isEmbellished()&&"undefined"!==typeof this.core?this.data[this.core].CoreMO():this},toString:function(){return this.inferred?"["+this.data.join(",")+"]":this.SUPER(arguments).toString.call(this)},setTeXclass:function(a){for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&(a=this.data[b].setTeXclass(a));this.data[0]&&this.updateTeXclass(this.data[0]);return a}});a.mfrac=a.mbase.Subclass({type:"mfrac",num:0,den:1,linebreakContainer:!0,texClass:a.TEXCLASS.INNER,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,linethickness:a.LINETHICKNESS.MEDIUM,numalign:a.ALIGN.CENTER,denomalign:a.ALIGN.CENTER,bevelled:!1},adjustChild_displaystyle:function(a){return!1},adjustChild_scriptlevel:function(a){a=this.Get("scriptlevel");(!this.Get("displaystyle")||0<a)&&a++;return a},adjustChild_texprimestyle:function(a){return a==this.den?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.msqrt=a.mbase.Subclass({type:"msqrt",inferRow:!0,linebreakContainer:!0,texClass:a.TEXCLASS.ORD,setTeXclass:a.mbase.setSeparateTeXclasses,adjustChild_texprimestyle:function(a){return!0}});a.mroot=a.mbase.Subclass({type:"mroot",linebreakContainer:!0,texClass:a.TEXCLASS.ORD,adjustChild_displaystyle:function(a){return 1===a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel");1===a&&(b+=2);return b},adjustChild_texprimestyle:function(a){return 0===a?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setSeparateTeXclasses});a.mstyle=a.mbase.Subclass({type:"mstyle",isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,inferRow:!0,defaults:{scriptlevel:a.INHERIT,displaystyle:a.INHERIT,scriptsizemultiplier:Math.sqrt(.5),scriptminsize:"8pt",mathbackground:a.INHERIT,mathcolor:a.INHERIT,infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,decimalseparator:"."},adjustChild_scriptlevel:function(a){a=this.scriptlevel;if(null==a)a=this.Get("scriptlevel");else if(String(a).match(/^ *[-+]/)){delete this.scriptlevel;var b=this.Get("scriptlevel");this.scriptlevel=a;a=b+parseInt(a)}return a},inheritFromMe:!0,noInherit:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},setTeXclass:a.mbase.setChildTeXclass});a.merror=a.mbase.Subclass({type:"merror",inferRow:!0,linebreakContainer:!0,texClass:a.TEXCLASS.ORD});a.mpadded=a.mbase.Subclass({type:"mpadded",inferRow:!0,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,width:"",height:"",depth:"",lspace:0,voffset:0},setTeXclass:a.mbase.setChildTeXclass});a.mphantom=a.mbase.Subclass({type:"mphantom",texClass:a.TEXCLASS.ORD,inferRow:!0,isSpacelike:a.mbase.childrenSpacelike,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,setTeXclass:a.mbase.setChildTeXclass});a.mfenced=a.mbase.Subclass({type:"mfenced",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,open:"(",close:")",separators:","},texClass:a.TEXCLASS.OPEN,setTeXclass:function(b){this.getPrevClass(b);var e=this.getValues("open","close","separators");e.open=e.open.replace(/[ \t\n\r]/g,"");e.close=e.close.replace(/[ \t\n\r]/g,"");e.separators=e.separators.replace(/[ \t\n\r]/g,"");""!==e.open&&(this.SetData("open",a.mo(e.open).With({stretchy:!0,texClass:a.TEXCLASS.OPEN})),b=this.data.open.setTeXclass(b));if(""!==e.separators)for(;e.separators.length<this.data.length;)e.separators+=e.separators.charAt(e.separators.length-1);this.data[0]&&(b=this.data[0].setTeXclass(b));for(var c=1,g=this.data.length;c<g;c++)this.data[c]&&(""!==e.separators&&(this.SetData("sep"+c,a.mo(e.separators.charAt(c-1))),b=this.data["sep"+c].setTeXclass(b)),b=this.data[c].setTeXclass(b));""!==e.close&&(this.SetData("close",a.mo(e.close).With({stretchy:!0,texClass:a.TEXCLASS.CLOSE})),b=this.data.close.setTeXclass(b));this.updateTeXclass(this.data.open);return b}});a.menclose=a.mbase.Subclass({type:"menclose",inferRow:!0,linebreakContainer:!0,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,notation:a.NOTATION.LONGDIV,texClass:a.TEXCLASS.ORD},setTeXclass:a.mbase.setSeparateTeXclasses});a.msubsup=a.mbase.Subclass({type:"msubsup",base:0,sub:1,sup:2,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,subscriptshift:"",superscriptshift:"",texClass:a.AUTO},autoDefault:function(b){return"texClass"===b?this.isEmbellished()?this.CoreMO().Get(b):a.TEXCLASS.ORD:0},adjustChild_displaystyle:function(a){return 0<a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel");0<a&&b++;return b},adjustChild_texprimestyle:function(a){return a===this.sub?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.msub=a.msubsup.Subclass({type:"msub"});a.msup=a.msubsup.Subclass({type:"msup",sub:2,sup:1});a.mmultiscripts=a.msubsup.Subclass({type:"mmultiscripts",adjustChild_texprimestyle:function(a){return 1===a%2?!0:this.Get("texprimestyle")}});a.mprescripts=a.mbase.Subclass({type:"mprescripts"});a.none=a.mbase.Subclass({type:"none"});a.munderover=a.mbase.Subclass({type:"munderover",base:0,under:1,over:2,sub:1,sup:2,ACCENTS:["","accentunder","accent"],linebreakContainer:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,accent:a.AUTO,accentunder:a.AUTO,align:a.ALIGN.CENTER,texClass:a.AUTO,subscriptshift:"",superscriptshift:""},autoDefault:function(b){return"texClass"===b?this.isEmbellished()?this.CoreMO().Get(b):a.TEXCLASS.ORD:"accent"===b&&this.data[this.over]?this.data[this.over].CoreMO().Get("accent"):"accentunder"===b&&this.data[this.under]?this.data[this.under].CoreMO().Get("accent"):!1},adjustChild_displaystyle:function(a){return 0<a?!1:this.Get("displaystyle")},adjustChild_scriptlevel:function(a){var b=this.Get("scriptlevel"),c=this.data[this.base]&&!this.Get("displaystyle")&&this.data[this.base].CoreMO().Get("movablelimits");a!=this.under||!c&&this.Get("accentunder")||b++;a!=this.over||!c&&this.Get("accent")||b++;return b},adjustChild_texprimestyle:function(a){return a===this.base&&this.data[this.over]?!0:this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.munder=a.munderover.Subclass({type:"munder"});a.mover=a.munderover.Subclass({type:"mover",over:1,under:2,sup:1,sub:2,ACCENTS:["","accent","accentunder"]});a.mtable=a.mbase.Subclass({type:"mtable",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,align:a.ALIGN.AXIS,rowalign:a.ALIGN.BASELINE,columnalign:a.ALIGN.CENTER,groupalign:"{left}",alignmentscope:!0,columnwidth:a.WIDTH.AUTO,width:a.WIDTH.AUTO,rowspacing:"1ex",columnspacing:".8em",rowlines:a.LINES.NONE,columnlines:a.LINES.NONE,frame:a.LINES.NONE,framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:a.SIDE.RIGHT,minlabelspacing:"0.8em",texClass:a.TEXCLASS.ORD,useHeight:1},inheritFromMe:!0,noInherit:{mover:{align:!0},munder:{align:!0},munderover:{align:!0},mtable:{align:!0,rowalign:!0,columnalign:!0,groupalign:!0,alignmentscope:!0,columnwidth:!0,width:!0,rowspacing:!0,columnspacing:!0,rowlines:!0,columnlines:!0,frame:!0,framespacing:!0,equalrows:!0,equalcolumns:!0,side:!0,minlabelspacing:!0,texClass:!0,useHeight:1}},linebreakContainer:!0,Append:function(){for(var b=0,e=arguments.length;b<e;b++)arguments[b]instanceof a.mtr||arguments[b]instanceof a.mlabeledtr||(arguments[b]=a.mtd(arguments[b]));this.SUPER(arguments).Append.apply(this,arguments)},setTeXclass:a.mbase.setSeparateTeXclasses});a.mtr=a.mbase.Subclass({type:"mtr",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT},inheritFromMe:!0,noInherit:{mrow:{rowalign:!0,columnalign:!0,groupalign:!0},mtable:{rowalign:!0,columnalign:!0,groupalign:!0}},linebreakContainer:!0,Append:function(){for(var b=0,e=arguments.length;b<e;b++)arguments[b]instanceof a.mtd||(arguments[b]=a.mtd(arguments[b]));this.SUPER(arguments).Append.apply(this,arguments)},setTeXclass:a.mbase.setSeparateTeXclasses});a.mtd=a.mbase.Subclass({type:"mtd",inferRow:!0,linebreakContainer:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,rowspan:1,columnspan:1,rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT},setTeXclass:a.mbase.setSeparateTeXclasses});a.maligngroup=a.mbase.Subclass({type:"malign",isSpacelike:function(){return!0},defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,groupalign:a.INHERIT},inheritFromMe:!0,noInherit:{mrow:{groupalign:!0},mtable:{groupalign:!0}}});a.malignmark=a.mbase.Subclass({type:"malignmark",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,edge:a.SIDE.LEFT},isSpacelike:function(){return!0}});a.mlabeledtr=a.mtr.Subclass({type:"mlabeledtr"});a.maction=a.mbase.Subclass({type:"maction",defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,actiontype:a.ACTIONTYPE.TOGGLE,selection:1},selected:function(){return this.data[this.Get("selection")-1]||a.NULL},isEmbellished:function(){return this.selected().isEmbellished()},isSpacelike:function(){return this.selected().isSpacelike()},Core:function(){return this.selected().Core()},CoreMO:function(){return this.selected().CoreMO()},setTeXclass:function(b){this.Get("actiontype")===a.ACTIONTYPE.TOOLTIP&&this.data[1]&&this.data[1].setTeXclass();return this.selected().setTeXclass(b)}});a.semantics=a.mbase.Subclass({type:"semantics",notParent:!0,isEmbellished:a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,defaults:{definitionURL:null,encoding:null},setTeXclass:a.mbase.setChildTeXclass});a.annotation=a.mbase.Subclass({type:"annotation",isToken:!0,linebreakContainer:!0,defaults:{definitionURL:null,encoding:null,cd:"mathmlkeys",name:"",src:null}});a["annotation-xml"]=a.mbase.Subclass({type:"annotation-xml",linebreakContainer:!0,defaults:{definitionURL:null,encoding:null,cd:"mathmlkeys",name:"",src:null}});a.math=a.mstyle.Subclass({type:"math",defaults:{mathvariant:a.VARIANT.NORMAL,mathsize:a.SIZE.NORMAL,mathcolor:"",mathbackground:a.COLOR.TRANSPARENT,scriptlevel:0,displaystyle:a.AUTO,display:"inline",maxwidth:"",overflow:a.OVERFLOW.LINEBREAK,altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:Math.sqrt(.5),scriptminsize:"8px",infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,lineleading:"1ex",indentshift:"auto",indentalign:a.INDENTALIGN.AUTO,indentalignfirst:a.INDENTALIGN.INDENTALIGN,indentshiftfirst:a.INDENTSHIFT.INDENTSHIFT,indentalignlast:a.INDENTALIGN.INDENTALIGN,indentshiftlast:a.INDENTSHIFT.INDENTSHIFT,decimalseparator:".",texprimestyle:!1},autoDefault:function(a){return"displaystyle"===a?"block"===this.Get("display"):""},linebreakContainer:!0,setTeXclass:a.mbase.setChildTeXclass});a.chars=a.mbase.Subclass({type:"chars",Append:function(){this.data.push.apply(this.data,arguments)},value:function(){return this.data.join("")},toString:function(){return this.data.join("")}});a.entity=a.mbase.Subclass({type:"entity",Append:function(){this.data.push.apply(this.data,arguments)},value:function(){return"#x"===this.data[0].substr(0,2)?parseInt(this.data[0].substr(2),16):"#"===this.data[0].substr(0,1)?parseInt(this.data[0].substr(1)):0},toString:function(){var a=this.value();if(65535>=a)return String.fromCharCode(a);a-=65536;return String.fromCharCode((a>>10)+55296)+String.fromCharCode((a&1023)+56320)}});a.xml=a.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var a=0,b=arguments.length;a<b;a++){var c=this.Import(arguments[a]);this.data.push(c);this.div.appendChild(c)}},Import:function(a){if(document.importNode)return document.importNode(a,!0);var b,c,g;if(1===a.nodeType){b=document.createElement(a.nodeName);c=0;for(g=a.attributes.length;c<g;c++){var l=a.attributes[c];l.specified&&null!=l.nodeValue&&""!=l.nodeValue&&b.setAttribute(l.nodeName,l.nodeValue);"style"===l.nodeName&&(b.style.cssText=l.nodeValue)}a.className&&(b.className=a.className)}else if(3===a.nodeType||4===a.nodeType)b=document.createTextNode(a.nodeValue);else if(8===a.nodeType)b=document.createComment(a.nodeValue);else return document.createTextNode("");c=0;for(g=a.childNodes.length;c<g;c++)b.appendChild(this.Import(a.childNodes[c]));return b},value:function(){return this.div},toString:function(){return this.div.innerHTML}});a.TeXAtom=a.mbase.Subclass({type:"texatom",inferRow:!0,notParent:!0,texClass:a.TEXCLASS.ORD,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,isEmbellished:a.mbase.childEmbellished,setTeXclass:function(a){this.data[0].setTeXclass();return this.adjustTeXclass(a)},adjustTeXclass:a.mo.prototype.adjustTeXclass});a.NULL=a.mbase().With({type:"null"});var c=a.TEXCLASS,b={ORD:[0,0,c.ORD],ORD11:[1,1,c.ORD],ORD21:[2,1,c.ORD],ORD02:[0,2,c.ORD],ORD55:[5,5,c.ORD],OP:[1,2,c.OP,{largeop:!0,movablelimits:!0,symmetric:!0}],OPFIXED:[1,2,c.OP,{largeop:!0,movablelimits:!0}],INTEGRAL:[0,1,c.OP,{largeop:!0,symmetric:!0}],INTEGRAL2:[1,2,c.OP,{largeop:!0,symmetric:!0}],BIN3:[3,3,c.BIN],BIN4:[4,4,c.BIN],BIN01:[0,1,c.BIN],BIN5:[5,5,c.BIN],TALLBIN:[4,4,c.BIN,{stretchy:!0}],BINOP:[4,4,c.BIN,{largeop:!0,movablelimits:!0}],REL:[5,5,c.REL],REL1:[1,1,c.REL,{stretchy:!0}],REL4:[4,4,c.REL],RELSTRETCH:[5,5,c.REL,{stretchy:!0}],RELACCENT:[5,5,c.REL,{accent:!0}],WIDEREL:[5,5,c.REL,{accent:!0,stretchy:!0}],OPEN:[0,0,c.OPEN,{fence:!0,stretchy:!0,symmetric:!0}],CLOSE:[0,0,c.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}],INNER:[0,0,c.INNER],PUNCT:[0,3,c.PUNCT],ACCENT:[0,0,c.ORD,{accent:!0}],WIDEACCENT:[0,0,c.ORD,{accent:!0,stretchy:!0}]};a.mo.Augment({SPACE:"0em 0.1111em 0.1667em 0.2222em 0.2667em 0.3333em".split(" "),RANGES:[[32,127,c.REL,"BasicLatin"],[160,255,c.ORD,"Latin1Supplement"],[256,383,c.ORD],[384,591,c.ORD],[688,767,c.ORD,"SpacingModLetters"],[768,879,c.ORD,"CombDiacritMarks"],[880,1023,c.ORD,"GreekAndCoptic"],[7680,7935,c.ORD],[8192,8303,c.PUNCT,"GeneralPunctuation"],[8304,8351,c.ORD],[8352,8399,c.ORD],[8400,8447,c.ORD,"CombDiactForSymbols"],[8448,8527,c.ORD,"LetterlikeSymbols"],[8528,8591,c.ORD],[8592,8703,c.REL,"Arrows"],[8704,8959,c.BIN,"MathOperators"],[8960,9215,c.ORD,"MiscTechnical"],[9312,9471,c.ORD],[9472,9631,c.ORD],[9632,9727,c.ORD,"GeometricShapes"],[9984,10175,c.ORD,"Dingbats"],[10176,10223,c.ORD,"MiscMathSymbolsA"],[10224,10239,c.REL,"SupplementalArrowsA"],[10496,10623,c.REL,"SupplementalArrowsB"],[10624,10751,c.ORD,"MiscMathSymbolsB"],[10752,11007,c.BIN,"SuppMathOperators"],[11008,11263,c.ORD,"MiscSymbolsAndArrows"],[119808,120831,c.ORD]],OPTABLE:{prefix:{"\u2200":b.ORD21,"\u2202":b.ORD21,"\u2203":b.ORD21,"\u2207":b.ORD21,"\u220f":b.OP,"\u2210":b.OP,"\u2211":b.OP,"\u2212":b.BIN01,"\u2213":b.BIN01,"\u221a":[1,1,c.ORD,{stretchy:!0}],"\u2220":b.ORD,"\u222b":b.INTEGRAL,"\u222e":b.INTEGRAL,"\u22c0":b.OP,"\u22c1":b.OP,"\u22c2":b.OP,"\u22c3":b.OP,"\u2308":b.OPEN,"\u230a":b.OPEN,"\u27e8":b.OPEN,"\u27ee":b.OPEN,"\u2a00":b.OP,"\u2a01":b.OP,"\u2a02":b.OP,"\u2a04":b.OP,"\u2a06":b.OP,"\u00ac":b.ORD21,"\u00b1":b.BIN01,"(":b.OPEN,"+":b.BIN01,"-":b.BIN01,"[":b.OPEN,"{":b.OPEN,"|":b.OPEN},postfix:{"!":[1,0,c.CLOSE],"\x26":b.ORD,"\u2032":b.ORD02,"\u203e":b.WIDEACCENT,"\u2309":b.CLOSE,"\u230b":b.CLOSE,"\u23de":b.WIDEACCENT,"\u23df":b.WIDEACCENT,"\u266d":b.ORD02,"\u266e":b.ORD02,"\u266f":b.ORD02,"\u27e9":b.CLOSE,"\u27ef":b.CLOSE,"\u02c6":b.WIDEACCENT,"\u02c7":b.WIDEACCENT,"\u02c9":b.WIDEACCENT,"\u02ca":b.ACCENT,"\u02cb":b.ACCENT,"\u02d8":b.ACCENT,"\u02d9":b.ACCENT,"\u02dc":b.WIDEACCENT,"\u0302":b.WIDEACCENT,"\u00a8":b.ACCENT,"\u00af":b.WIDEACCENT,")":b.CLOSE,"]":b.CLOSE,"^":b.WIDEACCENT,_:b.WIDEACCENT,"`":b.ACCENT,"|":b.CLOSE,"}":b.CLOSE,"~":b.WIDEACCENT},infix:{"":b.ORD,"%":[3,3,c.ORD],"\u2022":b.BIN4,"\u2026":b.INNER,"\u2044":b.TALLBIN,"\u2061":b.ORD,"\u2062":b.ORD,"\u2063":[0,0,c.ORD,{linebreakstyle:"after",separator:!0}],"\u2064":b.ORD,"\u2190":b.WIDEREL,"\u2191":b.RELSTRETCH,"\u2192":b.WIDEREL,"\u2193":b.RELSTRETCH,"\u2194":b.WIDEREL,"\u2195":b.RELSTRETCH,"\u2196":b.RELSTRETCH,"\u2197":b.RELSTRETCH,"\u2198":b.RELSTRETCH,"\u2199":b.RELSTRETCH,"\u21a6":b.WIDEREL,"\u21a9":b.WIDEREL,"\u21aa":b.WIDEREL,"\u21bc":b.WIDEREL,"\u21bd":b.WIDEREL,"\u21c0":b.WIDEREL,"\u21c1":b.WIDEREL,"\u21cc":b.WIDEREL,"\u21d0":b.WIDEREL,"\u21d1":b.RELSTRETCH,"\u21d2":b.WIDEREL,"\u21d3":b.RELSTRETCH,"\u21d4":b.WIDEREL,"\u21d5":b.RELSTRETCH,"\u2208":b.REL,"\u2209":b.REL,"\u220b":b.REL,"\u2212":b.BIN4,"\u2213":b.BIN4,"\u2215":b.TALLBIN,"\u2216":b.BIN4,"\u2217":b.BIN4,"\u2218":b.BIN4,"\u2219":b.BIN4,"\u221d":b.REL,"\u2223":b.REL,"\u2225":b.REL,"\u2227":b.BIN4,"\u2228":b.BIN4,"\u2229":b.BIN4,"\u222a":b.BIN4,"\u223c":b.REL,"\u2240":b.BIN4,"\u2243":b.REL,"\u2245":b.REL,"\u2248":b.REL,"\u224d":b.REL,"\u2250":b.REL,"\u2260":b.REL,"\u2261":b.REL,"\u2264":b.REL,"\u2265":b.REL,"\u226a":b.REL,"\u226b":b.REL,"\u227a":b.REL,"\u227b":b.REL,"\u2282":b.REL,"\u2283":b.REL,"\u2286":b.REL,"\u2287":b.REL,"\u228e":b.BIN4,"\u2291":b.REL,"\u2292":b.REL,"\u2293":b.BIN4,"\u2294":b.BIN4,"\u2295":b.BIN4,"\u2296":b.BIN4,"\u2297":b.BIN4,"\u2298":b.BIN4,"\u2299":b.BIN4,"\u22a2":b.REL,"\u22a3":b.REL,"\u22a4":b.ORD55,"\u22a5":b.REL,"\u22a8":b.REL,"\u22c4":b.BIN4,"\u22c5":b.BIN4,"\u22c6":b.BIN4,"\u22c8":b.REL,"\u22ee":b.ORD55,"\u22ef":b.INNER,"\u22f1":[5,5,c.INNER],"\u25b3":b.BIN4,"\u25b5":b.BIN4,"\u25b9":b.BIN4,"\u25bd":b.BIN4,"\u25bf":b.BIN4,"\u25c3":b.BIN4,"\u2758":b.REL,"\u27f5":b.WIDEREL,"\u27f6":b.WIDEREL,"\u27f7":b.WIDEREL,"\u27f8":b.WIDEREL,"\u27f9":b.WIDEREL,"\u27fa":b.WIDEREL,"\u27fc":b.WIDEREL,"\u2a2f":b.BIN4,"\u2a3f":b.BIN4,"\u2aaf":b.REL,"\u2ab0":b.REL,"\u00b1":b.BIN4,"\u00b7":b.BIN4,"\u00d7":b.BIN4,"\u00f7":b.BIN4,"*":b.BIN3,"+":b.BIN4,",":[0,3,c.PUNCT,{linebreakstyle:"after",separator:!0}],"-":b.BIN4,".":[3,3,c.ORD],"/":b.ORD11,":":[1,2,c.REL],";":[0,3,c.PUNCT,{linebreakstyle:"after",separator:!0}],"\x3c":b.REL,"\x3d":b.REL,"\x3e":b.REL,"?":[1,1,c.CLOSE],"\\":b.ORD,"^":b.ORD11,_:b.ORD11,"|":[2,2,c.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"#":b.ORD,$:b.ORD,".":[0,3,c.PUNCT,{separator:!0}],"\u02b9":b.ORD,"\u0300":b.ACCENT,"\u0301":b.ACCENT,"\u0303":b.WIDEACCENT,"\u0304":b.ACCENT,"\u0306":b.ACCENT,"\u0307":b.ACCENT,"\u0308":b.ACCENT,"\u030c":b.ACCENT,"\u0332":b.WIDEACCENT,"\u0338":b.REL4,"\u2015":[0,0,c.ORD,{stretchy:!0}],"\u2017":[0,0,c.ORD,{stretchy:!0}],"\u2020":b.BIN3,"\u2021":b.BIN3,"\u20d7":b.ACCENT,"\u2111":b.ORD,"\u2113":b.ORD,"\u2118":b.ORD,"\u211c":b.ORD,"\u2205":b.ORD,"\u221e":b.ORD,"\u2305":b.BIN3,"\u2306":b.BIN3,"\u2322":b.REL4,"\u2323":b.REL4,"\u2329":b.OPEN,"\u232a":b.CLOSE,"\u23aa":b.ORD,"\u23af":[0,0,c.ORD,{stretchy:!0}],"\u23b0":b.OPEN,"\u23b1":b.CLOSE,"\u2500":b.ORD,"\u25ef":b.BIN3,"\u2660":b.ORD,"\u2661":b.ORD,"\u2662":b.ORD,"\u2663":b.ORD,"\u3008":b.OPEN,"\u3009":b.CLOSE,"\ufe37":b.WIDEACCENT,"\ufe38":b.WIDEACCENT}}},{OPTYPES:b});a.mo.prototype.OPTABLE.infix["^"]=b.WIDEREL;a.mo.prototype.OPTABLE.infix._=b.WIDEREL})(MathJax.ElementJax.mml);MathJax.ElementJax.mml.loadComplete("jax.js");MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function(){var a=MathJax.ElementJax.mml;SETTINGS=MathJax.Hub.config.menuSettings;a.mbase.Augment({toMathML:function(a){var b=this.inferred&&this.parent.inferRow;null==a&&(a="");var d=this.type,e=this.toMathMLattributes();if("mspace"===d)return a+"\x3c"+d+e+" /\x3e";for(var k=[],g=this.isToken?"":a+(b?"":" "),l=0,p=this.data.length;l<p;l++)this.data[l]?k.push(this.data[l].toMathML(g)):this.isToken||k.push(g+"\x3cmrow /\x3e");return this.isToken?a+"\x3c"+d+e+"\x3e"+k.join("")+"\x3c/"+d+"\x3e":b?k.join("\n"):0===k.length||1===k.length&&""===k[0]?a+"\x3c"+d+e+" /\x3e":a+"\x3c"+d+e+"\x3e\n"+k.join("\n")+"\n"+a+"\x3c/"+d+"\x3e"},toMathMLattributes:function(){var c=[],b=this.defaults,d=this.attrNames||a.copyAttributeNames,e=a.skipAttributes;"math"!==this.type||this.attr&&this.attr.xmlns||c.push('xmlns\x3d"http://www.w3.org/1998/Math/MathML"');if(!this.attrNames){"mstyle"===this.type&&(b=a.math.prototype.defaults);for(var k in b)if(!e[k]&&b.hasOwnProperty(k)){var g="open"===k||"close"===k;if(null!=this[k]&&(g||this[k]!==b[k])){var l=this[k];delete this[k];(g||this.Get(k)!==l)&&c.push(k+'\x3d"'+this.toMathMLattribute(l)+'"');this[k]=l}}}b=0;for(e=d.length;b<e;b++)"class"!==d[b]&&(l=(this.attr||{})[d[b]],null==l&&(l=this[d[b]]),null!=l&&c.push(d[b]+'\x3d"'+this.toMathMLquote(l)+'"'));this.toMathMLclass(c);return c.length?" "+c.join(" "):""},toMathMLclass:function(c){var b=[];this["class"]&&b.push(this["class"]);if(this.isa(a.TeXAtom)&&SETTINGS.texHints){var d="ORD OP BIN REL OPEN CLOSE PUNCT INNER VCENTER".split(" ")[this.texClass];d&&b.push("MJX-TeXAtom-"+d)}this.mathvariant&&this.toMathMLvariants[this.mathvariant]&&b.push("MJX"+this.mathvariant);this.arrow&&b.push("MJX-arrow");this.variantForm&&b.push("MJX-variant");b.length&&c.unshift('class\x3d"'+b.join(" ")+'"')},toMathMLattribute:function(a){return"string"===typeof a&&a.replace(/ /g,"").match(/^(([-+])?(\d+(\.\d*)?|\.\d+))mu$/)?RegExp.$2+(1/18*RegExp.$3).toFixed(3).replace(/\.?0+$/,"")+"em":this.toMathMLvariants[a]?this.toMathMLvariants[a]:this.toMathMLquote(a)},toMathMLvariants:{"-tex-caligraphic":a.VARIANT.SCRIPT,"-tex-caligraphic-bold":a.VARIANT.BOLDSCRIPT,"-tex-oldstyle":a.VARIANT.NORMAL,"-tex-oldstyle-bold":a.VARIANT.BOLD,"-tex-mathit":a.VARIANT.ITALIC},toMathMLquote:function(a){a=String(a).split("");for(var b=0,d=a.length;b<d;b++){var e=a[b].charCodeAt(0);if(55295>=e||57344<=e)32>e||126<e?a[b]="\x26#x"+e.toString(16).toUpperCase()+";":(e={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;"}[a[b]])&&(a[b]=e);else if(b+1<d){var k=a[b+1].charCodeAt(0);a[b]="\x26#x"+((e-55296<<10)+(k-56320)+65536).toString(16).toUpperCase()+";";a[b+1]="";b++}else a[b]=""}return a.join("")}});a.msubsup.Augment({toMathML:function(a){var b=this.type;null==this.data[this.sup]&&(b="msub");null==this.data[this.sub]&&(b="msup");var d=this.toMathMLattributes();delete this.data[0].inferred;for(var e=[],k=0,g=this.data.length;k<g;k++)this.data[k]&&e.push(this.data[k].toMathML(a+" "));return a+"\x3c"+b+d+"\x3e\n"+e.join("\n")+"\n"+a+"\x3c/"+b+"\x3e"}});a.munderover.Augment({toMathML:function(a){var b=this.type;null==this.data[this.under]&&(b="mover");null==this.data[this.over]&&(b="munder");var d=this.toMathMLattributes();delete this.data[0].inferred;for(var e=[],k=0,g=this.data.length;k<g;k++)this.data[k]&&e.push(this.data[k].toMathML(a+" "));return a+"\x3c"+b+d+"\x3e\n"+e.join("\n")+"\n"+a+"\x3c/"+b+"\x3e"}});a.TeXAtom.Augment({toMathML:function(a){var b=this.toMathMLattributes();return b||1!==this.data[0].data.length?a+"\x3cmrow"+b+"\x3e\n"+this.data[0].toMathML(a+" ")+"\n"+a+"\x3c/mrow\x3e":a.substr(2)+this.data[0].toMathML(a)}});a.chars.Augment({toMathML:function(a){return(a||"")+this.toMathMLquote(this.toString())}});a.entity.Augment({toMathML:function(a){return(a||"")+"\x26"+this.data[0]+";\x3c!-- "+this.toString()+" --\x3e"}});a.xml.Augment({toMathML:function(a){return(a||"")+this.toString()}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){a.TeXmathchoice.Augment({toMathML:function(a){return this.Core().toMathML(a)}})});MathJax.Hub.Startup.signal.Post("toMathML Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/toMathML.js");(function(a,c){var b,d=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathML",a]].concat([].slice.call(arguments,1)))};a.Parse=MathJax.Object.Subclass({Init:function(a){this.Parse(a)},Parse:function(b){"string"!==typeof b?b=b.parentNode:(b=a.ParseXML(this.preProcessMath.call(this,b)),null==b&&a.Error(["ErrorParsingMathML","Error parsing MathML"]));var c=b.getElementsByTagName("parsererror")[0];c&&a.Error(["ParsingError","Error parsing MathML: %1",c.textContent.replace(/This page.*?errors:|XML Parsing Error: |Below is a rendering of the page.*/g,"")]);1!==b.childNodes.length&&a.Error(["MathMLSingleElement","MathML must be formed by a single element"]);"html"===b.firstChild.nodeName.toLowerCase()&&(c=b.getElementsByTagName("h1")[0])&&"XML parsing error"===c.textContent&&c.nextSibling&&a.Error(["ParsingError","Error parsing MathML: %1",String(c.nextSibling.nodeValue).replace(/fatal parsing error: /,"")]);"math"!==b.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")&&a.Error(["MathMLRootElement","MathML must be formed by a \x3cmath\x3e element, not %1","\x3c"+b.firstChild.nodeName+"\x3e"]);this.mml=this.MakeMML(b.firstChild)},MakeMML:function(e){var c=String(e.getAttribute("class")||""),g;g=e.nodeName.toLowerCase().replace(/^[a-z]+:/,"");if(c=c.match(/(^| )MJX-TeXAtom-([^ ]*)/))g=this.TeXAtom(c[2]);else if(b[g]&&b[g].isa&&b[g].isa(b.mbase))g=b[g]();else return MathJax.Hub.signal.Post(["MathML Jax - unknown node type",g]),b.merror(d("UnknownNodeType","Unknown node type: %1",g));this.AddAttributes(g,e);this.CheckClass(g,g["class"]);this.AddChildren(g,e);a.config.useMathMLspacing&&(g.useMMLspacing=8);return g},TeXAtom:function(a){a=b.TeXAtom().With({texClass:b.TEXCLASS[a]});a.texClass===b.TEXCLASS.OP&&(a.movesupsub=a.movablelimits=!0);return a},CheckClass:function(a,b){b=(b||"").split(/ /);for(var c=[],d=0,p=b.length;d<p;d++)"MJX-"===b[d].substr(0,4)?"MJX-arrow"===b[d]?a.arrow=!0:"MJX-variant"===b[d]?(a.variantForm=!0,MathJax.Extension["TeX/AMSsymbols"]||MathJax.Hub.RestartAfter(MathJax.Ajax.Require("[MathJax]/extensions/TeX/AMSsymbols.js"))):"MJX-TeXAtom"!==b[d].substr(0,11)&&(a.mathvariant=b[d].substr(3),"-tex-caligraphic-bold"===a.mathvariant||"-tex-oldstyle-bold"===a.mathvariant)&&(MathJax.Extension["TeX/boldsymbol"]||MathJax.Hub.RestartAfter(MathJax.Ajax.Require("[MathJax]/extensions/TeX/boldsymbol.js"))):c.push(b[d]);c.length?a["class"]=c.join(" "):delete a["class"]},AddAttributes:function(a,c){a.attr={};a.attrNames=[];for(var d=0,l=c.attributes.length;d<l;d++){var p=c.attributes[d].name;"xlink:href"==p&&(p="href");if(!p.match(/:/)&&!p.match(/^_moz-math-((column|row)(align|line)|font-style)$/)){var m=c.attributes[d].value,m=this.filterAttribute(p,m);null!=m&&("true"===m.toLowerCase()?m=!0:"false"===m.toLowerCase()&&(m=!1),null!=a.defaults[p]||b.copyAttributes[p]?a[p]=m:a.attr[p]=m,a.attrNames.push(p))}}},filterAttribute:function(a,b){return b},AddChildren:function(e,c){for(var d=0,l=c.childNodes.length;d<l;d++){var p=c.childNodes[d];"#comment"!==p.nodeName&&("#text"===p.nodeName?e.isToken&&!e.mmlSelfClosing?(p=p.nodeValue.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity),e.Append(b.chars(this.trimSpace(p)))):p.nodeValue.match(/\S/)&&a.Error(["UnexpectedTextNode","Unexpected text node: %1","'"+p.nodeValue+"'"]):"annotation-xml"===e.type?e.Append(b.xml(p)):(p=this.MakeMML(p),e.Append(p),p.mmlSelfClosing&&p.data.length&&(e.Append.apply(e,p.data),p.data=[])))}"mrow"===e.type&&2<=e.data.length&&(d=e.data[0],l=e.data[e.data.length-1],"mo"===d.type&&d.Get("fence")&&"mo"===l.type&&l.Get("fence")&&(d.data[0]&&(e.open=d.data.join("")),l.data[0]&&(e.close=l.data.join(""))))},preProcessMath:function(a){a.match(/^<[a-z]+:/i)&&!a.match(/^<[^<>]* xmlns:/)&&(a=a.replace(/^<([a-z]+)(:math)/i,'\x3c$1$2 xmlns:$1\x3d"http://www.w3.org/1998/Math/MathML"'));var b=a.match(/^(<math( ('.*?'|".*?"|[^>])+)>)/i);b&&b[2].match(/ (?!xmlns=)[a-z]+=\"http:/i)&&(a=b[1].replace(/ (?!xmlns=)([a-z]+=(['"])http:.*?\2)/ig," xmlns:$1 $1")+a.substr(b[0].length));a.match(/^<math/i)&&!a.match(/^<[^<>]* xmlns=/)&&(a=a.replace(/^<(math)/i,'\x3cmath xmlns\x3d"http://www.w3.org/1998/Math/MathML"'));a=a.replace(/^\s*(?:\/\/)?<!(--)?\[CDATA\[((.|\n)*)(\/\/)?\]\]\1>\s*$/,"$2");return a.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity)},trimSpace:function(a){return a.replace(/[\t\n\r]/g," ").replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g," ")},replaceEntity:function(b,c){if(c.match(/^(lt|amp|quot)$/))return b;if(a.Parse.Entity[c])return a.Parse.Entity[c];var d=c.charAt(0).toLowerCase(),l=c.match(/^[a-zA-Z](fr|scr|opf)$/);l&&(d=l[1]);a.Parse.loaded[d]||(a.Parse.loaded[d]=!0,MathJax.Hub.RestartAfter(MathJax.Ajax.Require(a.entityDir+"/"+d+".js")));return b}},{loaded:[]});a.Augment({sourceMenuTitle:["OriginalMathML","Original MathML"],prefilterHooks:MathJax.Callback.Hooks(!0),postfilterHooks:MathJax.Callback.Hooks(!0),Translate:function(e){this.ParseXML||(this.ParseXML=this.createParser());var d,g,l={script:e};e.firstChild&&"math"===e.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")?l.math=e.firstChild:(g=MathJax.HTML.getScript(e),c.isMSIE&&(g=g.replace(/(&nbsp;)+$/,"")),l.math=g);this.prefilterHooks.Execute(l);g=l.math;try{d=a.Parse(g).mml}catch(p){if(!p.mathmlError)throw p;d=this.formatError(p,g,e)}l.math=b(d);this.postfilterHooks.Execute(l);return l.math},prefilterMath:function(a,b){return a},prefilterMathML:function(a,b){return a},formatError:function(a,c,d){a=a.message.replace(/\n.*/,"");MathJax.Hub.signal.Post(["MathML Jax - parse error",a,c,d]);return b.merror(a)},Error:function(a){a instanceof Array&&(a=d.apply(d,a));throw MathJax.Hub.Insert(Error(a),{mathmlError:!0});},parseDOM:function(a){return this.parser.parseFromString(a,"text/xml")},parseMS:function(a){return this.parser.loadXML(a)?this.parser:null},parseDIV:function(a){this.div.innerHTML=a.replace(/<([a-z]+)([^>]*)\/>/g,"\x3c$1$2\x3e\x3c/$1\x3e");return this.div},parseError:function(a){return null},createMSParser:function(){for(var a=null,b="MSXML2.DOMDocument.6.0 MSXML2.DOMDocument.5.0 MSXML2.DOMDocument.4.0 MSXML2.DOMDocument.3.0 MSXML2.DOMDocument.2.0 Microsoft.XMLDOM".split(" "),c=0,d=b.length;c<d&&!a;c++)try{a=new ActiveXObject(b[c])}catch(p){}return a},createParser:function(){if(window.DOMParser)return this.parser=new DOMParser,this.parseDOM;if(window.ActiveXObject){this.parser=this.createMSParser();if(!this.parser)return MathJax.Localization.Try(this.parserCreationError),this.parseError;this.parser.async=!1;return this.parseMS}this.div=MathJax.Hub.Insert(document.createElement("div"),{style:{visibility:"hidden",overflow:"hidden",height:"1px",position:"absolute",top:0}});document.body.firstChild?document.body.insertBefore(this.div,document.body.firstChild):document.body.appendChild(this.div);return this.parseDIV},parserCreationError:function(){alert(d("CantCreateXMLParser","MathJax can't create an XML parser for MathML. Check that\nthe 'Script ActiveX controls marked safe for scripting' security\nsetting is enabled (use the Internet Options item in the Tools\nmenu, and select the Security panel, then press the Custom Level\nbutton to check this).\n\nMathML equations will not be able to be processed by MathJax."))},Startup:function(){b=MathJax.ElementJax.mml;b.mspace.Augment({mmlSelfClosing:!0});b.none.Augment({mmlSelfClosing:!0});b.mprescripts.Augment({mmlSelfClosing:!0})}});a.prefilterHooks.Add(function(b){b.math="string"===typeof b.math?a.prefilterMath(b.math,b.script):a.prefilterMathML(b.math,b.script)});a.Parse.Entity={ApplyFunction:"\u2061",Backslash:"\u2216",Because:"\u2235",Breve:"\u02d8",Cap:"\u22d2",CenterDot:"\u00b7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",Congruent:"\u2261",ContourIntegral:"\u222e",Coproduct:"\u2210",Cross:"\u2a2f",Cup:"\u22d3",CupCap:"\u224d",Dagger:"\u2021",Del:"\u2207",Delta:"\u0394",Diamond:"\u22c4",DifferentialD:"\u2146",DotEqual:"\u2250",DoubleDot:"\u00a8",DoubleRightTee:"\u22a8",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownLeftVector:"\u21bd",DownRightVector:"\u21c1",DownTee:"\u22a4",Downarrow:"\u21d3",Element:"\u2208",EqualTilde:"\u2242",Equilibrium:"\u21cc",Exists:"\u2203",ExponentialE:"\u2147",FilledVerySmallSquare:"\u25aa",ForAll:"\u2200",Gamma:"\u0393",Gg:"\u22d9",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Hacek:"\u02c7",Hat:"^",HumpDownHump:"\u224e",HumpEqual:"\u224f",Im:"\u2111",ImaginaryI:"\u2148",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Lambda:"\u039b",Larr:"\u219e",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDownVector:"\u21c3",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftTee:"\u22a3",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpVector:"\u21bf",LeftVector:"\u21bc",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Ll:"\u22d8",Lleftarrow:"\u21da",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lsh:"\u21b0",MinusPlus:"\u2213",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotPrecedes:"\u2280",NotPrecedesSlantEqual:"\u22e0",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsSlantEqual:"\u22e1",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotVerticalBar:"\u2224",Omega:"\u03a9",OverBar:"\u203e",OverBrace:"\u23de",PartialD:"\u2202",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\u00b1",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Product:"\u220f",Proportional:"\u221d",Psi:"\u03a8",Rarr:"\u21a0",Re:"\u211c",ReverseEquilibrium:"\u21cb",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDownVector:"\u21c2",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpVector:"\u21be",RightVector:"\u21c0",Rightarrow:"\u21d2",Rrightarrow:"\u21db",Rsh:"\u21b1",Sigma:"\u03a3",SmallCircle:"\u2218",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Star:"\u22c6",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",Therefore:"\u2234",Theta:"\u0398",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",UnderBar:"_",UnderBrace:"\u23df",Union:"\u22c3",UnionPlus:"\u228e",UpArrow:"\u2191",UpDownArrow:"\u2195",UpTee:"\u22a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",Upsilon:"\u03a5",Vdash:"\u22a9",Vee:"\u22c1",VerticalBar:"\u2223",VerticalTilde:"\u2240",Vvdash:"\u22aa",Wedge:"\u22c0",Xi:"\u039e",acute:"\u00b4",aleph:"\u2135",alpha:"\u03b1",amalg:"\u2a3f",and:"\u2227",ang:"\u2220",angmsd:"\u2221",angsph:"\u2222",ape:"\u224a",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",beta:"\u03b2",beth:"\u2136",between:"\u226c",bigcirc:"\u25ef",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",blacklozenge:"\u29eb",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",bowtie:"\u22c8",boxdl:"\u2510",boxdr:"\u250c",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxur:"\u2514",bsol:"\\",bull:"\u2022",cap:"\u2229",check:"\u2713",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\u00ae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",clubs:"\u2663",colon:":",comp:"\u2201",ctdot:"\u22ef",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cup:"\u222a",curarr:"\u21b7",curlyvee:"\u22ce",curlywedge:"\u22cf",dagger:"\u2020",daleth:"\u2138",ddarr:"\u21ca",deg:"\u00b0",delta:"\u03b4",digamma:"\u03dd",div:"\u00f7",divideontimes:"\u22c7",dot:"\u02d9",doteqdot:"\u2251",dotplus:"\u2214",dotsquare:"\u22a1",dtdot:"\u22f1",ecir:"\u2256",efDot:"\u2252",egs:"\u2a96",ell:"\u2113",els:"\u2a95",empty:"\u2205",epsi:"\u03b5",epsiv:"\u03f5",erDot:"\u2253",eta:"\u03b7",eth:"\u00f0",flat:"\u266d",fork:"\u22d4",frown:"\u2322",gEl:"\u2a8c",gamma:"\u03b3",gap:"\u2a86",gimel:"\u2137",gnE:"\u2269",gnap:"\u2a8a",gne:"\u2a88",gnsim:"\u22e7",gt:"\x3e",gtdot:"\u22d7",harrw:"\u21ad",hbar:"\u210f",hellip:"\u2026",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",imath:"\u0131",infin:"\u221e",intcal:"\u22ba",iota:"\u03b9",jmath:"\u0237",kappa:"\u03ba",kappav:"\u03f0",lEg:"\u2a8b",lambda:"\u03bb",lap:"\u2a85",larrlp:"\u21ab",larrtl:"\u21a2",lbrace:"{",lbrack:"[",le:"\u2264",leftleftarrows:"\u21c7",leftthreetimes:"\u22cb",lessdot:"\u22d6",lmoust:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lne:"\u2a87",lnsim:"\u22e6",longmapsto:"\u27fc",looparrowright:"\u21ac",lowast:"\u2217",loz:"\u25ca",lt:"\x3c",ltimes:"\u22c9",ltri:"\u25c3",macr:"\u00af",malt:"\u2720",mho:"\u2127",mu:"\u03bc",multimap:"\u22b8",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",natur:"\u266e",nearr:"\u2197",nharr:"\u21ae",nlarr:"\u219a",not:"\u00ac",nrarr:"\u219b",nu:"\u03bd",nvDash:"\u22ad",nvdash:"\u22ac",nwarr:"\u2196",omega:"\u03c9",omicron:"\u03bf",or:"\u2228",osol:"\u2298",period:".",phi:"\u03c6",phiv:"\u03d5",pi:"\u03c0",piv:"\u03d6",prap:"\u2ab7",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",prime:"\u2032",psi:"\u03c8",rarrtl:"\u21a3",rbrace:"}",rbrack:"]",rho:"\u03c1",rhov:"\u03f1",rightrightarrows:"\u21c9",rightthreetimes:"\u22cc",ring:"\u02da",rmoust:"\u23b1",rtimes:"\u22ca",rtri:"\u25b9",scap:"\u2ab8",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",sdot:"\u22c5",searr:"\u2198",sect:"\u00a7",sharp:"\u266f",sigma:"\u03c3",sigmav:"\u03c2",simne:"\u2246",smile:"\u2323",spades:"\u2660",sub:"\u2282",subE:"\u2ac5",subnE:"\u2acb",subne:"\u228a",supE:"\u2ac6",supnE:"\u2acc",supne:"\u228b",swarr:"\u2199",tau:"\u03c4",theta:"\u03b8",thetav:"\u03d1",tilde:"\u02dc",times:"\u00d7",triangle:"\u25b5",triangleq:"\u225c",upsi:"\u03c5",upuparrows:"\u21c8",veebar:"\u22bb",vellip:"\u22ee",weierp:"\u2118",xi:"\u03be",yen:"\u00a5",zeta:"\u03b6",zigrarr:"\u21dd"};a.loadComplete("jax.js")})(MathJax.InputJax.MathML,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MML_HTMLorMML.js");