/* * /MathJax/config/AM_HTMLorMML-full.js * * Copyright (c) 2010-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */MathJax.Hub.Config({delayJaxRegistration:!0});MathJax.Ajax.Preloading("[MathJax]/jax/input/AsciiMath/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/asciimath2jax.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/AsciiMath/jax.js","[MathJax]/jax/output/NativeMML/jax.js","[MathJax]/jax/output/HTML-CSS/jax.js","[MathJax]/jax/output/HTML-CSS/autoload/mtable.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.AsciiMath=MathJax.InputJax({id:"AsciiMath",version:"2.2",directory:MathJax.InputJax.directory+"/AsciiMath",extensionDir:MathJax.InputJax.extensionDir+"/AsciiMath",config:{displaystyle:!0,decimalsign:"."}});MathJax.InputJax.AsciiMath.Register("math/asciimath");MathJax.InputJax.AsciiMath.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(c,g){var b=c.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(k){var g=c.getJaxFor(k),l=["[Math]"],m=document.createElement("span",{className:"MathJax_Preview"});"TeX"===g.inputJax&&(g.root.Get("displaystyle")?(l=b.displayMathDelimiters,l=[l[0]+g.originalText+l[1]],b.multilineDisplay&&(l=l[0].split(/\n/))):(l=b.inlineMathDelimiters,l=[l[0]+g.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+l[1]]));for(var g=0,t=l.length;g(document.documentMode||0)};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js");(function(c,g,b,k,n,l,m){var t=MathJax.Extension,p=t.MathEvents={version:"2.2"},a=c.config.menuSettings,h={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(l.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"}}},d=p.Event={LEFTBUTTON:0,RIGHTBUTTON:2,MENUKEY:"altKey",Mousedown:function(a){return d.Handler(a,"Mousedown",this)},Mouseup:function(a){return d.Handler(a,"Mouseup",this)},Mousemove:function(a){return d.Handler(a,"Mousemove",this)},Mouseover:function(a){return d.Handler(a,"Mouseover",this)},Mouseout:function(a){return d.Handler(a,"Mouseout",this)},Click:function(a){return d.Handler(a,"Click",this)},DblClick:function(a){return d.Handler(a,"DblClick",this)},Menu:function(a){return d.Handler(a,"ContextMenu",this)},Handler:function(a,h,f){if(b.loadingMathMenu)return d.False(a);var e=l[f.jaxID];a||(a=window.event);a.isContextMenu="ContextMenu"===h;if(e[h])return e[h](a,f);if(t.MathZoom)return t.MathZoom.HandleEvent(a,h,f)},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(h,f,e){var r=l[f.jaxID],g=r.getJaxFromMath(f);if((null!=r.config.showMathMenu?r:c).config.showMathMenu&&("MathJax"===a.context||e)){p.msieEventBug&&(h=window.event||h);d.ClearSelection();u.ClearHoverTimer();g.hover&&(g.hover.remove&&(clearTimeout(g.hover.remove),delete g.hover.remove),g.hover.nofade=!0);var w=MathJax.Menu;if(w){if(w.loadingDomain)return d.False(h);r=n.loadDomain("MathMenu");if(!r)return w.jax=g,f=w.menu.Find("Show Math As").menu,f.items[0].name=g.sourceMenuTitle,f.items[0].format=g.sourceMenuFormat||"MathML",f.items[1].name=m[g.inputJax].sourceMenuTitle,w.menu.Find("Math Settings","MathPlayer").hidden=!("NativeMML"===g.outputJax&&c.Browser.hasMathPlayer),w.menu.Post(h);w.loadingDomain=!0;g=function(){delete w.loadingDomain}}else{if(b.loadingMathMenu)return d.False(h);b.loadingMathMenu=!0;r=b.Require("[MathJax]/extensions/MathMenu.js");g=function(){delete b.loadingMathMenu;MathJax.Menu||(MathJax.Menu={})}}k.Queue(r,g,["ContextMenu",d,{pageX:h.pageX,pageY:h.pageY,clientX:h.clientX,clientY:h.clientY},f,e]);return d.False(h)}},AltContextMenu:function(h,f){var e=l[f.jaxID],b=(null!=e.config.showMathMenu?e:c).config.showMathMenu;if(b){b=(null!=e.config.showMathMenuMSIE?e:c).config.showMathMenuMSIE;if("MathJax"===a.context&&!a.mpContext&&b){if(!p.noContextMenuBug||h.button!==d.RIGHTBUTTON)return}else if(!h[d.MENUKEY]||h.button!==d.LEFTBUTTON)return;return e.ContextMenu(h,f,!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 h=p.topImg.offsetTop,d=a.offsetHeight-h,f=a.offsetWidth;a.removeChild(p.topImg);return{w:f,h:h,d:d}}},u=p.Hover={Mouseover:function(h,f){if(a.discoverable||"Hover"===a.zoom){var e=h.fromElement||h.relatedTarget,b=h.toElement||h.target;if(e&&b&&(e.isMathJax!=b.isMathJax||c.getJaxFor(e)!==c.getJaxFor(b)))return e=this.getJaxFromMath(f),e.hover?u.ReHover(e):u.HoverTimer(e,f),d.False(h)}},Mouseout:function(h,f){if(a.discoverable||"Hover"===a.zoom){var e=h.fromElement||h.relatedTarget,b=h.toElement||h.target;if(e&&b&&(e.isMathJax!=b.isMathJax||c.getJaxFor(e)!==c.getJaxFor(b)))return e=this.getJaxFromMath(f),e.hover?u.UnHover(e):u.ClearHoverTimer(),d.False(h)}},Mousemove:function(h,f){if(a.discoverable||"Hover"===a.zoom){var e=this.getJaxFromMath(f);if(!e.hover&&(u.lastX!=h.clientX||u.lastY!=h.clientY))return u.lastX=h.clientX,u.lastY=h.clientY,u.HoverTimer(e,f),d.False(h)}},HoverTimer:function(a,d){this.ClearHoverTimer();this.hoverTimer=setTimeout(k(["Hover",this,a,d]),h.hover)},ClearHoverTimer:function(){this.hoverTimer&&(clearTimeout(this.hoverTimer),delete this.hoverTimer)},Hover:function(a,d){if(!t.MathZoom||!t.MathZoom.Hover({},d)){var f=l[a.outputJax],e=f.getHoverSpan(a,d),b=f.getHoverBBox(a,e,d),u=(null!=f.config.showMathMenu?f:c).config.showMathMenu,k=h.frame.x,n=h.frame.y,m=h.frame.bwidth;p.msieBorderWidthBug&&(m=0);a.hover={opacity:0,id:a.inputID+"-Hover"};var z=g.Element("span",{id:a.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(-b.h-n-m-(b.y||0)),left:this.Px(-k-m+(b.x||0)),width:this.Px(b.w+2*k),height:this.Px(b.h+b.d+2*n),opacity:0,filter:"alpha(opacity\x3d0)"}}]]),f=g.Element("span",{isMathJax:!0,id:a.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:h.button.src,onclick:this.HoverMenu,jax:f.id,style:{left:this.Px(b.w+k+m+(b.x||0)+h.button.x),top:this.Px(-b.h-n-m-(b.y||0)-h.button.y),opacity:0,filter:"alpha(opacity\x3d0)"}}]]);b.width&&(z.style.width=f.style.width=b.width,z.style.marginRight=f.style.marginRight="-"+b.width,z.firstChild.style.width=b.width,f.firstChild.style.left="",f.firstChild.style.right=this.Px(h.button.wx));e.parentNode.insertBefore(z,e);u&&e.parentNode.insertBefore(f,e);e.style&&(e.style.position="relative");this.ReHover(a)}},ReHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.remove=setTimeout(k(["UnHover",this,a]),h.fadeoutDelay);this.HoverFadeTimer(a,h.fadeinInc)},UnHover:function(a){a.hover.nofade||this.HoverFadeTimer(a,-h.fadeoutInc,h.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 h=document.getElementById(a.hover.id),d=document.getElementById(a.hover.id+"Menu");h.firstChild.style.opacity=a.hover.opacity;h.firstChild.style.filter="alpha(opacity\x3d"+Math.floor(100*a.hover.opacity)+")";d&&(d.firstChild.style.opacity=a.hover.opacity,d.firstChild.style.filter=h.style.filter);1!==a.hover.opacity&&(0Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=h.button.src}},e=p.Touch={last:0,delay:500,start:function(a){var h=(new Date).getTime(),d=h-e.lasth;9>h&&(d.LEFTBUTTON=1)},Safari:function(a){p.safariContextMenuBug=!0},Opera:function(a){p.operaPositionBug=!0},Konqueror:function(a){p.noContextMenuBug=!0}});p.topImg=p.msieAlignBug?g.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):g.Element("span",{style:{width:0,height:0,display:"inline-block"}});p.operaPositionBug&&(p.topImg.style.border="1px solid");p.config=h=c.CombineConfig("MathEvents",h);k.Queue(c.Register.StartupHook("End Config",{}),[function(){var a=h.styles[".MathJax_Hover_Frame"];a.border=h.frame.bwidth+"px solid "+h.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+h.frame.hwidth+" "+h.frame.hcolor}],["getImages",u],["Styles",b,h.styles],["Post",c.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(c,g,b,k,n){var l=c.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)"}}}),m,t,p;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){p=MathJax.Extension.MathEvents.Event;m=MathJax.Extension.MathEvents.Event.False;t=MathJax.Extension.MathEvents.Hover});var a=MathJax.Extension.MathZoom={version:"2.2",settings:c.config.menuSettings,scrollSize:18,HandleEvent:function(h,d,b){return a.settings.CTRL&&!h.ctrlKey||a.settings.ALT&&!h.altKey||a.settings.CMD&&!h.metaKey||a.settings.Shift&&!h.shiftKey||!a[d]?!0:a[d](h,b)},Click:function(a,d){if("Click"===this.settings.zoom)return this.Zoom(a,d)},DblClick:function(a,d){if("Double-Click"===this.settings.zoom)return this.Zoom(a,d)},Hover:function(a,d){return"Hover"===this.settings.zoom?(this.Zoom(a,d),!0):!1},Zoom:function(a,d){this.Remove();t.ClearHoverTimer();p.ClearSelection();var b=MathJax.OutputJax[d.jaxID],e=b.getJaxFromMath(d);e.hover&&t.UnHover(e);var f=Math.floor(.85*document.body.clientWidth),k=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),y=g.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":k+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),v=y.lastChild,r=v.firstChild,n=y.firstChild;d.parentNode.insertBefore(y,d);d.parentNode.insertBefore(d,y);r.addEventListener&&r.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var w=g.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});y.insertBefore(w,v)}this.msieZIndexBug&&(g.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),y.style.position="relative",y.style.zIndex=l.styles["#MathJax_ZoomOverlay"]["z-index"]);b=b.Zoom(e,r,d,f,k);this.msiePositionBug&&(this.msieSizeBug&&(v.style.height=b.zH+"px",v.style.width=b.zW+"px"),v.offsetHeight>k&&(v.style.height=k+"px",v.style.width=b.zW+this.scrollSize+"px"),v.offsetWidth>f&&(v.style.width=f+"px",v.style.height=b.zH+this.scrollSize+"px"));this.operaPositionBug&&(v.style.width=Math.min(f,b.zW)+"px");v.offsetWidth&&v.offsetWidth=d;a.msieInlineBlockAlignBug=7>=d;a.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(a.scrollSize=52);b&&delete l.styles["#MathJax_Zoom"].filter},Opera:function(h){a.operaPositionBug=!0;a.operaRefreshBug=!0}});a.topImg=a.msieInlineBlockAlignBug?g.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):g.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(a.operaPositionBug||a.msieTopBug)a.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,l.styles],["Post",c.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(c,g,b,k,n){var l=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:l};var m=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},t=c.Browser.isPC,p=c.Browser.isMSIE,a=8<(document.documentMode||0),h=t?null:"5px",d=c.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(n.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:t?"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":h,"-webkit-border-radius":h,"-moz-border-radius":h,"-khtml-border-radius":h,"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:t?"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:t?"1em":".7em"},".MathJax_MenuLabel":{padding:t?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":t?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:t?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":t?"Highlight":"#606872",color:t?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),u,e;c.Register.StartupHook("MathEvents Ready",function(){u=MathJax.Extension.MathEvents.Event.False;e=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(a){a&&c.Insert(this,a);return this},Post:function(a,h){a||(a=window.event);var b=document.getElementById("MathJax_MenuFrame");b||(b=f.Background(this),delete q.lastItem,delete q.lastMenu,delete f.skipUp,l.Post(["post",f.jax]));var e=g.addElement(b,"div",{onmouseup:f.Mouseup,ondblclick:u,ondragstart:u,onselectstart:u,oncontextmenu:u,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(e);for(var c=0,k=this.items.length;cdocument.body.offsetWidth-this.margin&&!f.isMobile&&(n="right",c=Math.max(this.margin,c-m-e.offsetWidth+6));t||(e.style["borderRadiusTop"+n]=0,e.style["WebkitBorderRadiusTop"+n]=0,e.style["MozBorderRadiusTop"+n]=0,e.style["KhtmlBorderRadiusTop"+n]=0)}else c+e.offsetWidth>document.body.offsetWidth-this.margin&&(c=document.body.offsetWidth-e.offsetWidth-this.margin),f.isMobile&&(c=Math.max(5,c-Math.floor(e.offsetWidth/2)),k-=20),f.skipUp=a.isContextMenu;e.style.left=c+"px";e.style.top=k+"px";document.selection&&document.selection.empty&&document.selection.empty();return u(a)},Remove:function(a,h){l.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,e.UnHover(f.jax));return u(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,h,d){for(var f=0,e=this.items.length;f/g,"\x26gt;");var e=m("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'"+m("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 b=d.document.body.firstChild;setTimeout(function(){var a=d.outerHeight-d.innerHeight||30,f=d.outerWidth-d.innerWidth||30,f=Math.max(100,Math.min(Math.floor(.5*screen.width),b.offsetWidth+f+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),b.offsetHeight+a+25));d.resizeTo(f,a);h&&null!=h.screenX&&(f=Math.max(0,Math.min(h.screenX-Math.floor(f/2),screen.width-f-20)),a=Math.max(0,Math.min(h.screenY-Math.floor(a/2),screen.height-a-20)),d.moveTo(f,a))},50)}};f.Scale=function(){var a=n["HTML-CSS"],h=n.NativeMML,d=n.SVG,e=(a||h||d||{config:{scale:100}}).config.scale,b=prompt(m("ScaleMath","Scale all mathematics (compared to surrounding text) by"),e+"%");b&&(b.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(b=parseFloat(b))?b!==e&&(a&&(a.config.scale=b),h&&(h.config.scale=b),d&&(d.config.scale=b),f.cookie.scale=b,f.saveCookie(),c.Reprocess()):alert(m("NonZeroScale","The scale should not be zero")):alert(m("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 h=c.outputJax["jax/mml"];if(h[0]!==d.settings.renderer){var e=c.Browser,b,k=f.Renderer.Messages,u;switch(d.settings.renderer){case "NativeMML":d.settings.warnedMML||(e.isChrome&&"24."!==e.version.substr(0,3)?b=k.MML.WebKit:e.isSafari&&!e.versionAtLeast("5.0")?b=k.MML.WebKit:e.isMSIE?e.hasMathPlayer||(b=k.MML.MSIE):b=k.MML[e],u="warnedMML");break;case "SVG":d.settings.warnedSVG||!e.isMSIE||a||(b=k.SVG.MSIE)}if(b){b=m(b[0],b[1]);b=b+"\n\n"+m("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");f.cookie.renderer=h[0].id;f.saveCookie();if(!confirm(b)){f.cookie.renderer=d.settings.renderer=g.Cookie.Get("menu").renderer;f.saveCookie();return}u&&(f.cookie.warned=d.settings.warned=!0);f.cookie.renderer=d.settings.renderer;f.saveCookie()}c.Queue(["setRenderer",c,d.settings.renderer,"jax/mml"],["Rerender",c])}};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(){n["HTML-CSS"]&&document.location.reload()};f.Locale=function(){MathJax.Localization.setLocale(d.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};f.LoadLocale=function(){var a=prompt(m("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(m("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(h){h!=b.STATUS.OK&&alert(m("BadData","Failed to load translation data from %1",a))}))};f.MPEvents=function(h){var e=d.settings.discoverable,b=f.MPEvents.Messages;a?!e&&"Menu Events"===h.name[1]&&d.settings.mpContext&&alert(m.apply(m,b.IE9warning)):d.settings.mpMouse&&!confirm(m.apply(m,b.IE8warning))?(delete f.cookie.mpContext,delete d.settings.mpContext,delete f.cookie.mpMouse,delete d.settings.mpMouse,f.saveCookie()):(d.settings.mpContext=d.settings.mpMouse,f.cookie.mpContext=f.cookie.mpMouse=d.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."]};c.Browser.Select({MSIE:function(h){var e="BackCompat"===document.compatMode;h=h.versionAtLeast("8.0")&&7document.documentMode,msieFixedPositionBug:e||!h,msieAboutBug:e});a&&(delete d.styles["#MathJax_About"].filter,delete d.styles[".MathJax_Menu"].filter)},Firefox:function(a){f.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");f.skipMousedown=a.isMobile}});f.isMobile=c.Browser.isMobile;f.noContextMenu=c.Browser.noContextMenu;f.CreateLocaleMenu=function(){if(f.menu){var a=f.menu.Find("Language").menu,h=a.items,d=[],e=MathJax.Localization.strings,b;for(b in e)e.hasOwnProperty(b)&&d.push(b);d=d.sort();a.items=[];b=0;for(var c=d.length;bb.charCodeAt(0)?c.VARIANT.ITALIC:c.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1g&&(g=(g-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var l=0,m=this.RANGES.length;l=b)return String.fromCharCode(b);b-=65536;return String.fromCharCode((b>>10)+55296)+String.fromCharCode((b&1023)+56320)}});c.xml=c.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var b=0,c=arguments.length;b=n||57344<=n)32>n||126b.input?1:-1}function k(){var a=[],h;for(h=0;h=h.charCodeAt(d);d+=1);return h.slice(d)}function t(a,b,h){if(0==h){var d,e;h=-1;for(d=a.length;h+1>1,a[e]=D[b];O=E;if(""!=e)return E=x[h].ttype,x[h];E=0;b=1;d=a.slice(0,1);for(h=!0;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;if(d==C&&(d=a.slice(b,b+1),"0"<=d&&"9">=d))for(h=!1,b++;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;h&&1d||"Z"d||"z"q.charCodeAt(g)?b+String.fromCharCode(d.codes[q.charCodeAt(g)-65]):b+q.charAt(g);"mi"==f[0].nodeName?f[0]=n("mo").appendChild(v.createTextNode(b)):f[0].replaceChild(n("mo").appendChild(v.createTextNode(b)),f[0].childNodes[c])}e=l(d.tag,f[0]);e.setAttribute(d.atname,d.atval)}return[e,f[1]];case 2:b=m(b,d.input.length);f=h(b);if(null==f[0])return[l("mo",v.createTextNode(d.input)),b];a(f[0]);c=h(f[1]);if(null==c[0])return[l("mo",v.createTextNode(d.input)),b];a(c[0]);"root"!=d.input&&"stackrel"!=d.input||g.appendChild(c[0]);g.appendChild(f[0]);"frac"==d.input&&g.appendChild(c[0]);return[l(d.tag,g),c[1]];case 3:return b=m(b,d.input.length),[l("mo",v.createTextNode(d.output)),b];case 6:return b=m(b,d.input.length),e=n("mspace"),e.setAttribute("width","1ex"),g.appendChild(e),g.appendChild(l(d.tag,v.createTextNode(d.output))),e=n("mspace"),e.setAttribute("width","1ex"),g.appendChild(e),[l("mrow",g),b];case 9:H++;b=m(b,d.input.length);f=u(b,!1);H--;q="";null!=f[0].lastChild&&(q=f[0].lastChild.firstChild.nodeValue);if("|"==q)return e=l("mo",v.createTextNode(d.output)),e=l("mrow",e),e.appendChild(f[0]),[e,f[1]];e=l("mo",v.createTextNode(d.output));e=l("mrow",e);return[e,b];default:return b=m(b,d.input.length),[l(d.tag,v.createTextNode(d.output)),b]}}function d(b){var d,e,f,c;b=m(b,0);e=p(b);c=h(b);f=c[0];b=c[1];d=p(b);3==d.ttype&&"/"!=d.input&&(b=m(b,d.input.length),c=h(b),null==c[0]?c[0]=l("mo",v.createTextNode("\u25a1")):a(c[0]),b=c[1],"_"==d.input?(d=p(b),e=7==e.ttype,"^"==d.input?(b=m(b,d.input.length),d=h(b),a(d[0]),b=d[1],f=l(e?"munderover":"msubsup",f),f.appendChild(c[0]),f.appendChild(d[0]),f=l("mrow",f)):(f=l(e?"munder":"msub",f),f.appendChild(c[0]))):(f=l(d.tag,f),f.appendChild(c[0])));return[f,b]}function u(b,h){var e,f,c,u=v.createDocumentFragment();do b=m(b,0),c=d(b),f=c[0],b=c[1],e=p(b),3==e.ttype&&"/"==e.input?(b=m(b,e.input.length),c=d(b),null==c[0]?c[0]=l("mo",v.createTextNode("\u25a1")):a(c[0]),b=c[1],a(f),f=l(e.tag,f),f.appendChild(c[0]),u.appendChild(f),e=p(b)):void 0!=f&&u.appendChild(f);while((5!=e.ttype&&(9!=e.ttype||h)||0==H)&&null!=e&&""!=e.output);if(5==e.ttype||9==e.ttype){f=u.childNodes.length;if(0=d-1&&(this.lastChild=a);this.childNodes[h]=a;a.nextSibling=b.nextSibling;b.nextSibling=b.parent=null;return b},toString:function(){return"{"+this.childNodes.join("")+"}"}}),y=function(){f=MathJax.ElementJax.mml;var a=f.mbase.prototype.Init;f.mbase.Augment({firstChild:null,lastChild:null,nodeValue:"",nextSibling:null,Init:function(){var b=a.apply(this,arguments)||this;b.childNodes=b.data;b.nodeName=b.type;return b},appendChild:function(a){a.parent&&a.parent.removeChild(a);var b=arguments;a.isa(q)&&(b=a.childNodes,a.data=a.childNodes=[],a.firstChild=a.lastChild=null);for(var h=0,d=b.length;h=d-1&&(this.lastChild=a);this.SetData(h,a);a.nextSibling=b.nextSibling;this.nodeValue="";h=0;for(d=this.childNodes.length;hd&&(d=k,b.style.width=d+"px")}this.msieIE8HeightBug&&(b.style.position="");return{Y:-m.getBBox(b.parentNode).h,mW:a,mH:h,zW:d,zH:g}},NAMEDSPACE:{negativeveryverythinmathspace:"-.0556em",negativeverythinmathspace:"-.1111em",negativethinmathspace:"-.1667em",negativemediummathspace:"-.2222em",negativethickmathspace:"-.2778em",negativeverythickmathspace:"-.3333em",negativeveryverythickmathspace:"-.3889em"}});g.Register.StartupHook("mml Jax Ready",function(){n=MathJax.ElementJax.mml;n.mbase.Augment({toNativeMML:function(a){var b=this.NativeMMLelement(this.type);this.NativeMMLattributes(b);for(var h=0,d=this.data.length;h=b.HTMLCSSlast+b.HTMLCSSchunk&&(this.postTranslate(b),b.HTMLCSSchunk=Math.floor(b.HTMLCSSchunk*this.config.EqnChunkFactor),b.HTMLCSSdelay=!0))}},postTranslate:function(a){var b=a.jax[this.id];if(this.hideProcessedMath){for(var d=a.HTMLCSSlast,c=a.HTMLCSSeqn;db&&this.msieNegativeBBoxBug)b=-a.offsetWidth,d=a.parentNode.offsetHeight;else{if(this.initialSkipBug){var e=a.style.position;a.style.position="absolute";c=this.startMarker;a.insertBefore(c,a.firstChild)}a.appendChild(this.endMarker);b=this.endMarker.offsetLeft-c.offsetLeft;a.removeChild(this.endMarker);this.initialSkipBug&&(a.removeChild(c),a.style.position=e)}null!=d&&(a.parentNode.HH=d/this.em);return b/this.em},Measured:function(a,b){var d=a.bbox;if(null==d.width&&d.w&&!d.isMultiline){var c=this.getW(a);d.rw+=c-d.w;d.w=c;d.exactW=!0}b||(b=a.parentNode);b.bbox||(b.bbox=d);return a},Remeasured:function(a,b){b.bbox=this.Measured(a,b).bbox},MeasureSpans:function(a){var b=[],d,c,e,f,g;c=0;for(e=a.length;cf.w&&this.msieNegativeBBoxBug?b.push([d]):this.initialSkipBug?(f=this.startMarker.cloneNode(!0),g=this.endMarker.cloneNode(!0),d.insertBefore(f,d.firstChild),d.appendChild(g),b.push([d,f,g,d.style.position]),d.style.position="absolute"):(g=this.endMarker.cloneNode(!0),d.appendChild(g),b.push([d,null,g]));c=0;for(e=b.length;cf.w&&this.msieNegativeBBoxBug?(a=-d.offsetWidth,g.HH=g.offsetHeight/this.em):a=b[c][2].offsetLeft-((b[c][1]||{}).offsetLeft||0),a/=this.em,f.rw+=a-f.w,f.w=a,f.exactW=!0,g.bbox||(g.bbox=f);c=0;for(e=b.length;cMath.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},EmRounded:function(a){a=(Math.round(a*b.em)+.05)/b.em;return 6E-4>Math.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},unEm:function(a){return parseFloat(a)},Px:function(a){a*=this.em;return(0>a?"-":"")+Math.abs(a).toFixed(1).replace(/\.?0+$/,"")+"px"},unPx:function(a){return parseFloat(a)/this.em},Percent:function(a){return(100*a).toFixed(1).replace(/\.?0+$/,"")+"%"},length2em:function(a,h,d){"string"!==typeof a&&(a=a.toString());if(""===a)return"";if(a===k.SIZE.NORMAL)return 1;if(a===k.SIZE.BIG)return 2;if(a===k.SIZE.SMALL)return.71;if("infinity"===a)return b.BIGDIMEN;var c=this.FONTDATA.TeX_factor;if(a.match(/mathspace$/))return b.MATHSPACE[a]*c;var e=a.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);a=parseFloat(e[1]||"1");e=e[2];null==d&&(d=1);null==h&&(h=1);return"em"===e?a*c:"ex"===e?a*b.TeX.x_height*c:"%"===e?a/100*d:"px"===e?a/b.em:"pt"===e?a/10*c:"pc"===e?1.2*a*c:"in"===e?a*this.pxPerInch/b.em:"cm"===e?a*this.pxPerInch/b.em/2.54:"mm"===e?a*this.pxPerInch/b.em/25.4:"mu"===e?a/18*c*h:a*c*d},thickness2em:function(a,h){var d=b.TeX.rule_thickness;return a===k.LINETHICKNESS.MEDIUM?d:a===k.LINETHICKNESS.THIN?.67*d:a===k.LINETHICKNESS.THICK?1.67*d:this.length2em(a,h,d)},getPadding:function(a){var b={top:0,right:0,bottom:0,left:0},d=!1,c;for(c in b)if(b.hasOwnProperty(c)){var e=a.style["padding"+c.charAt(0).toUpperCase()+c.substr(1)];e&&(b[c]=this.length2em(e),d=!0)}return d?b:!1},getBorders:function(a){var b={top:0,right:0,bottom:0,left:0},d={},c=!1,e;for(e in b)if(b.hasOwnProperty(e)){var f="border"+e.charAt(0).toUpperCase()+e.substr(1);a.style[f+"Style"]&&(c=!0,b[e]=this.length2em(a.style[f+"Width"]),d[f]=[a.style[f+"Width"],a.style[f+"Style"],a.style[f+"Color"]].join(" "))}b.css=d;return c?b:!1},setBorders:function(a,b){if(b)for(var d in b.css)b.css.hasOwnProperty(d)&&(a.style[d]=b.css[d])},createStrut:function(a,b,d){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:b+"px",width:"1px",marginRight:"-1px"}});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createBlank:function(a,b,d){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:"1px",width:this.Em(b)}});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createShift:function(a,b,d){b=this.Element("span",{style:{marginLeft:this.Em(b)},isMathJax:!0});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createSpace:function(a,h,d,c,e,f){h<-d&&(d=-h);var g=this.Em(h+d),l=this.Em(-d);this.msieInlineBlockAlignBug&&(l=this.Em(b.getHD(a.parentNode).d-d));a.isBox||f?(f=null==a.scale?1:a.scale,a.bbox={exactW:!0,h:h*f,d:d*f,w:c*f,rw:c*f,lw:0},a.style.height=g,a.style.verticalAlign=l,a.HH=(h+d)*f):a=this.addElement(a,"span",{style:{height:g,verticalAlign:l},isMathJax:!0});0<=c?(a.style.width=this.Em(c),a.style.display="inline-block",a.style.overflow="hidden"):(this.msieNegativeSpaceBug&&(a.style.height=""),a.style.marginLeft=this.Em(c),b.safariNegativeSpaceBug&&a.parentNode.firstChild==a&&this.createBlank(a,0,!0));e&&e!==k.COLOR.TRANSPARENT&&(a.style.backgroundColor=e,a.style.position="relative");return a},createRule:function(a,h,d,c,e){h<-d&&(d=-h);var f=b.TeX.min_rule_thickness,g=1;0f.lw&&(l=f.lw,b.createBlank(a,-l,!0)),f.rw>f.w&&b.createBlank(a,f.rw-f.w+.1)),!this.msieClipRectBug&&!f.noclip&&!c)){c=3/this.em;var r=null==f.H?f.h:f.H,m=k+(null==f.D?f.d:f.D)+c,w=f.lw-3*c,n=1E3;this.initialSkipBug&&0>f.lw&&(w=-3*c);f.isFixed&&(n=f.width-w);a.style.clip="rect("+this.Em(k-r-c)+" "+this.Em(n)+" "+this.Em(m)+" "+this.Em(w)+")"}a.style.top=this.Em(-d-k);a.style.left=this.Em(h+l);f&&g&&(null!=f.H&&(null==g.H||f.H+d>g.H)&&(g.H=f.H+d),null!=f.D&&(null==g.D||f.D-d>g.D)&&(g.D=f.D-d),f.h+d>g.h&&(g.h=f.h+d),f.d-d>g.d&&(g.d=f.d-d),null!=g.H&&g.H<=g.h&&delete g.H,null!=g.D&&g.D<=g.d&&delete g.D,f.w+h>g.w&&(g.w=f.w+h,null==g.width&&(e.style.width=this.Em(g.w))),f.rw+h>g.rw&&(g.rw=f.rw+h),f.lw+h=d-.01||l==v-1&&!q.stretch){q.HW[l][2]&&(u*=q.HW[l][2]);q.HW[l][3]&&(b=q.HW[l][3]);d=this.addElement(a,"span");this.createChar(d,[b,q.HW[l][1]],u,e);a.bbox=d.bbox;a.offset=.65*a.bbox.w;a.scale=u;return}if(q.stretch)this["extendDelimiter"+q.dir](a,f,q.stretch,u,e)}else a.bbox={h:0,d:0,w:this.TeX.nulldelimiterspace,lw:0},a.bbox.rw=a.bbox.w,this.createSpace(a,a.bbox.h,a.bbox.d,a.bbox.w)},extendDelimiterV:function(a,b,d,c,e){var f=this.createStack(a,!0),g=this.createBox(f),k=this.createBox(f);this.createChar(g,d.top||d.ext,c,e);this.createChar(k,d.bot||d.ext,c,e);var l={bbox:{w:0,lw:0,rw:0}},r=l,m,n=g.bbox.h+g.bbox.d+k.bbox.h+k.bbox.d,p=-g.bbox.h;this.placeBox(g,0,p,!0);p-=g.bbox.d;d.mid&&(r=this.createBox(f),this.createChar(r,d.mid,c,e),n+=r.bbox.h+r.bbox.d);d.min&&bn){l=this.Element("span");this.createChar(l,d.ext,c,e);m=l.bbox.h+l.bbox.d;var t=m-.05,C,z,G=d.mid?2:1;z=C=Math.min(Math.ceil((b-n)/(G*t)),this.maxStretchyParts);d.fullExtenders||(t=(b-n)/(G*C));b=C/(C+1)*(m-t);t=m-b;for(p+=b+t-l.bbox.h;0n){m=l.bbox.rw-l.bbox.lw;var t=m-.05,C,z,G=d.mid?2:1;z=C=Math.min(Math.ceil((b-n)/(G*t)),this.maxStretchyParts);d.fillExtenders||(t=(b-n)/(G*C));b=C/(C+1)*(m-t);t=m-b;for(p-=l.bbox.lw+b;0a.bbox.h&&(a.bbox.h=0));b[5]&&(a.bbox.h+=b[5]);b[6]&&(a.bbox.d+=b[6]);this.AccentBug&&0===a.bbox.w&&(e.firstChild.nodeValue+=this.NBSP)},positionDelimiter:function(a,h){h-=a.bbox.h;a.bbox.d-=h;a.bbox.h+=h;h&&(this.safariVerticalAlignBug||this.konquerorVerticalAlignBug||this.operaVerticalAlignBug&&a.isMultiChar?(""===a.firstChild.style.display&&""!==a.style.top&&(a=a.firstChild,h-=b.unEm(a.style.top)),a.style.position="relative",a.style.top=this.Em(-h)):(a.style.verticalAlign=this.Em(h),b.ffVerticalAlignBug&&b.createRule(a.parentNode,a.bbox.h,0,0)))},handleVariant:function(a,b,d){var c="",e,f,g,l=a,m=!!a.style.fontFamily;if(0!==d.length){a.bbox||(a.bbox={w:0,h:-this.BIGDIMEN,d:-this.BIGDIMEN,rw:-this.BIGDIMEN,lw:this.BIGDIMEN});b||(b=this.FONTDATA.VARIANT[k.VARIANT.NORMAL]);g=b;for(var r=0,n=d.length;re)r++,e=(e-55296<<10)+(d.charCodeAt(r)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(e,b),e=b.n,b=b.variant);else{var p,t=this.FONTDATA.RANGES;f=0;for(p=t.length;f=t[f].low&&e<=t[f].high){t[f].remap&&t[f].remap[e]?e=A+t[f].remap[e]:(e=e-t[f].low+A,t[f].add&&(e+=t[f].add));b["variant"+t[f].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+t[f].offset]]);break}}}b.remap&&b.remap[e]&&(b.remap[e]instanceof Array?(b=b.remap[e],e=b[0],b=this.FONTDATA.VARIANT[b[1]]):"string"===typeof b.remap[e]?(d=b.remap[e]+d.substr(r+1),r=0,n=d.length,e=d.charCodeAt(0)):(e=b.remap[e],b.remap.variant&&(b=this.FONTDATA.VARIANT[b.remap.variant])));this.FONTDATA.REMAP[e]&&!b.noRemap&&(e=this.FONTDATA.REMAP[e],e instanceof Array&&(b=this.FONTDATA.VARIANT[e[1]],e=e[0]),"string"===typeof e&&(d=e+d.substr(r+1),r=0,n=d.length,e=e.charCodeAt(0)));f=this.lookupChar(b,e);b=f[e];if(m||!this.checkFont(f,l.style)&&!b[5].img)c.length&&(this.addText(l,c),c=""),p=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!f.directory||m,m=!1,l!==a&&(p=!this.checkFont(f,a.style),l=a),p&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,f,l!==a);c=this.handleChar(l,f,b,e,c);(b[5]||{}).space||(b[0]/1E3>a.bbox.h&&(a.bbox.h=b[0]/1E3),b[1]/1E3>a.bbox.d&&(a.bbox.d=b[1]/1E3));a.bbox.w+b[3]/1E3a.bbox.rw&&(a.bbox.rw=a.bbox.w+b[4]/1E3);a.bbox.w+=b[2]/1E3}c.length&&this.addText(l,c);a.scale&&1!==a.scale&&(a.bbox.h*=a.scale,a.bbox.d*=a.scale,a.bbox.w*=a.scale,a.bbox.lw*=a.scale,a.bbox.rw*=a.scale);1==d.length&&f.skew&&f.skew[e]&&(a.bbox.skew=f.skew[e])}},checkFont:function(a,b){var d=b.fontWeight||"normal";d.match(/^\d+$/)&&(d=600<=parseInt(d)?"bold":"normal");return a.family.replace(/'/g,"")===b.fontFamily.replace(/'/g,"")&&(a.style||"normal")===(b.fontStyle||"normal")&&(a.weight||"normal")===d},handleFont:function(a,c,d){a.style.fontFamily=c.family;c.directory||(a.style.fontSize=Math.floor(100/b.scale+.5)+"%");if(!b.FontFaceBug||!c.isWebFont){var g=c.style||"normal";c=c.weight||"normal";if("normal"!==g||d)a.style.fontStyle=g;if("normal"!==c||d)a.style.fontWeight=c}},handleChar:function(a,c,d,g,e){var f=d[5];if(f.space)return e.length&&this.addText(a,e),b.createShift(a,d[2]/1E3),"";if(f.img)return this.handleImg(a,c,d,g,e);if(f.isUnknown&&this.FONTDATA.DELIMITERS[g])return e.length&&this.addText(a,e),e=a.scale,b.createDelimiter(a,g,0,1,c),"V"===this.FONTDATA.DELIMITERS[g].dir&&(a.style.verticalAlign=this.Em(a.bbox.d),a.bbox.h+=a.bbox.d,a.bbox.d=0),a.scale=e,d[0]=1E3*a.bbox.h,d[1]=1E3*a.bbox.d,d[2]=1E3*a.bbox.w,d[3]=1E3*a.bbox.lw,d[4]=1E3*a.bbox.rw,"";null==f.c&&(65535>=g?f.c=String.fromCharCode(g):(c=g-65536,f.c=String.fromCharCode((c>>10)+55296)+String.fromCharCode((c&1023)+56320)));if(f.rfix)return this.addText(a,e+f.c),b.createShift(a,f.rfix/1E3),"";if(d[2]||!this.msieAccentBug||e.length)return e+f.c;b.createShift(a,d[3]/1E3);b.createShift(a,(d[4]-d[3])/1E3);this.addText(a,f.c);b.createShift(a,-d[4]/1E3);return""},handleImg:function(a,b,d,c,e){return e},lookupChar:function(a,c){var d,g;if(!a.FONTS){var e=this.FONTDATA.FONTS,f=a.fonts||this.FONTDATA.VARIANT.normal.fonts;f instanceof Array||(f=[f]);a.fonts!=f&&(a.fonts=f);a.FONTS=[];d=0;for(g=f.length;dc.d&&(c.d=g.d);g.h>c.h&&(c.h=g.h);null!=g.D&&g.D>c.D&&(c.D=g.D);null!=g.H&&g.H>c.H&&(c.H=g.H);d.style.paddingLeft&&(c.w+=b.unEm(d.style.paddingLeft)*(d.scale||1));c.w+g.lwc.rw&&(c.rw=c.w+g.rw);c.w+=g.w;d.style.paddingRight&&(c.w+=b.unEm(d.style.paddingRight)*(d.scale||1));g.width&&(c.width=g.width,c.minWidth=g.minWidth);g.ic?c.ic=g.ic:delete c.ic;c.exactW&&!g.exactW&&delete c.exactW}},HTMLemptyBBox:function(a){a.h=a.d=a.H=a.D=a.rw=-b.BIGDIMEN;a.w=0;a.lw=b.BIGDIMEN;return a},HTMLcleanBBox:function(a){a.h===this.BIGDIMEN&&(a.h=a.d=a.H=a.D=a.w=a.rw=a.lw=0);a.D<=a.d&&delete a.D;a.H<=a.h&&delete a.H},HTMLzeroBBox:function(){return{h:0,d:0,w:0,lw:0,rw:0}},HTMLcanStretch:function(a){if(this.isEmbellished()){var b=this.Core();if(b&&b!==this)return b.HTMLcanStretch(a)}return!1},HTMLstretchH:function(a,b){return this.HTMLspanElement()},HTMLstretchV:function(a,b,d){return this.HTMLspanElement()},HTMLnotEmpty:function(a){for(;a;){if("mrow"!==a.type&&"texatom"!==a.type||1=c.scriptlevel||this.hasValue("lspace")||this.hasValue("rspace")){var d=this.HTMLgetMu(a);c.lspace=Math.max(0,b.length2em(c.lspace,d));c.rspace=Math.max(0,b.length2em(c.rspace,d));for(var d=this,g=this.Parent();g&&g.isEmbellished()&&g.Core()===d;)d=g,g=g.Parent(),a=d.HTMLspanElement();c.lspace&&(a.style.paddingLeft=b.Em(c.lspace));c.rspace&&(a.style.paddingRight=b.Em(c.rspace))}}}else c=this.texSpacing(),""!==c&&(c=b.length2em(c,this.HTMLgetScale())/(a.scale||1),a.style.paddingLeft&&(c+=b.unEm(a.style.paddingLeft)),a.style.paddingLeft=b.Em(c))},HTMLgetScale:function(){var a=1,c=this.getValues("mathsize","scriptlevel","fontsize");if(this.style){var d=this.HTMLspanElement();""!=d.style.fontSize&&(c.fontsize=d.style.fontSize)}c.fontsize&&!this.mathsize&&(c.mathsize=c.fontsize);0!==c.scriptlevel&&(2g.w&&1===d.length&&!c.noIC&&(g.ic=g.rw-g.w,b.createBlank(a,g.ic),g.w=g.rw);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.mn.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));a.bbox=null;for(var b=this.HTMLgetVariant(),c=0,g=this.data.length;ca.bbox.w&&(a.bbox.ic=a.bbox.rw-a.bbox.w,b.createBlank(a,a.bbox.ic),a.bbox.w=a.bbox.rw));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},CoreParent:function(){for(var a=this;a&&a.isEmbellished()&&a.CoreMO()===this&&!a.isa(k.math);)a=a.Parent();return a},CoreText:function(a){if(!a)return"";if(a.isEmbellished())return a.CoreMO().data.join("");for(;(a.isa(k.mrow)||a.isa(k.TeXAtom)||a.isa(k.mstyle)||a.isa(k.mphantom))&&1===a.data.length&&a.data[0];)a=a.data[0];return a.isToken?a.data.join(""):""},HTMLremapChars:{"*":"\u2217",'"':"\u2033","\u00b0":"\u2218","\u00b2":"2","\u00b3":"3","\u00b4":"\u2032","\u00b9":"1"},HTMLremap:function(a,b){a=a.replace(/-/g,"\u2212");b&&(a=a.replace(/'/g,"\u2032").replace(/`/g,"\u2035"),1===a.length&&(a=b[a]||a));return a},HTMLcanStretch:function(a){if(!this.Get("stretchy"))return!1;var c=this.data.join("");if(1b.linebreakWidth||this.hasNewline():!1},HTMLstretchH:function(a,b){this.HTMLremoveColor();var c=this.HTMLspanElement();this.data[this.core].HTMLstretchH(c,b);this.HTMLcomputeBBox(c,!0);this.HTMLhandleColor(c);return c},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();a=this.HTMLspanElement();this.data[this.core].HTMLstretchV(a,b,c);this.HTMLcomputeBBox(a,!0);this.HTMLhandleColor(a);return a}});k.mstyle.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var g=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=g.bbox}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mfrac.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var c=b.createStack(a),d=b.createBox(c),g=b.createBox(c);b.MeasureSpans([this.HTMLboxChild(0,d),this.HTMLboxChild(1,g)]);var e=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),f=this.HTMLgetScale(),k=e.displaystyle,l=b.TeX.axis_height*f;if(e.bevelled){var e=k?.4:.15,m=Math.max(d.bbox.h+d.bbox.d,g.bbox.h+g.bbox.d)+2*e,c=b.createBox(c);b.createDelimiter(c,47,m);b.placeBox(d,0,(d.bbox.d-d.bbox.h)/2+l+e);b.placeBox(c,d.bbox.w-e/2,(c.bbox.d-c.bbox.h)/2+l);b.placeBox(g,d.bbox.w+c.bbox.w-e,(g.bbox.d-g.bbox.h)/2+l-e)}else{var m=Math.max(d.bbox.w,g.bbox.w),r=b.thickness2em(e.linethickness,f),n,p,t=b.TeX.min_rule_thickness/this.em;k?(n=b.TeX.num1,p=b.TeX.denom1):(n=0===r?b.TeX.num3:b.TeX.num2,p=b.TeX.denom2);n*=f;p*=f;0===r?(f=Math.max((k?7:3)*b.TeX.rule_thickness,2*t),k=n-d.bbox.d-(g.bbox.h-p),km&&(l=(e.bbox.h+e.bbox.d-(m-k))/2);m=b.FONTDATA.DELIMITERS[b.FONTDATA.RULECHAR];!m||nf?b.createRule(g,0,k,n):b.createDelimiter(g,b.FONTDATA.RULECHAR,n,f);m=p.bbox.h+l+k;l=m*b.rfuzz;e.isMultiChar&&(l=b.rfuzz);t=this.HTMLaddRoot(c,e,t,e.bbox.h+e.bbox.d-m,f);b.placeBox(e,t,m-e.bbox.h);b.placeBox(g,t+e.bbox.w,m-g.bbox.h+l);b.placeBox(d,t+e.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,g,e){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,c,d,g,e){a=b.createBox(a);this.data[1]?(d=this.data[1].toHTML(a),d.style.paddingRight=d.style.paddingLeft="",b.Measured(d,a)):a.bbox=this.HTMLzeroBBox();g=this.HTMLrootHeight(c.bbox.h+c.bbox.d,e,a)-g;e=Math.min(a.bbox.w,a.bbox.rw);d=Math.max(e,c.offset);b.placeBox(a,d-e,g);return d-c.offset},HTMLrootHeight:function(a,b,c){return.45*(a-.9*b)+.6*b+Math.max(0,c.bbox.d-.075)}});k.mfenced.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);this.data.open&&this.data.open.toHTML(a);null!=this.data[0]&&this.data[0].toHTML(a);for(var b=1,c=this.data.length;bf&&(f=l[p].bbox.w),!n[p]&&f>m&&(m=f));null==d&&null!=c?m=c:m==-b.BIGDIMEN&&(m=f);p=f=0;for(t=this.data.length;pf&&(f=r.bbox.w));c=b.TeX.rule_thickness;d=b.FONTDATA.TeX_factor;var n=l[this.base]||{bbox:this.HTMLzeroBBox()},F,A,C,z=0;n.bbox.ic&&(z=1.3*n.bbox.ic+.05);p=0;for(t=this.data.length;pc&&(b.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white",b.config.styles[".MathJax .MathJax_HitBox"].opacity=0,b.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity\x3d0)");b.Augment({PaddingWidthBug:!0,msieAccentBug:!0,msieColorBug:!0,msieColorPositionBug:!0,msieRelativeWidthBug:e,msieDisappearingBug:8<=c,msieMarginScaleBug:8>c,msiePaddingWidthBug:!0,msieBorderWidthBug:e,msieFrameSizeBug:8>=c,msieInlineBlockAlignBug:!g||e,msiePlaceBoxBug:g&&!e,msieClipRectBug:!g,msieNegativeSpaceBug:e,cloneNodeBug:g&&"8.0"===a.version,initialSkipBug:8>c,msieNegativeBBoxBug:8<=c,msieIE6:!d,msieItalicWidthBug:!0,FontFaceBug:!0,msieFontCSSBug:a.isIE9,allowWebFonts:9<=c?"woff":"eot"})},Firefox:function(a){var c=!1;a.versionAtLeast("3.5")&&(a=String(document.location).replace(/[^\/]*$/,""),"file:"!==document.location.protocol||g.config.root.match(/^https?:\/\//)||(g.config.root+"/").substr(0,a.length)===a)&&(c="otf");b.Augment({ffVerticalAlignBug:!0,AccentBug:!0,allowWebFonts:c})},Safari:function(a){var c=a.versionAtLeast("3.0"),d=a.versionAtLeast("3.1"),k=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/),e=navigator.appVersion.match(/ Android (\d+)\.(\d+)/),e=d&&a.isMobile&&(navigator.platform.match(/iPad|iPod|iPhone/)&&!a.versionAtLeast("5.0")||null!=e&&(2>e[1]||2==e[1]&&2>e[2]));b.Augment({config:{styles:{".MathJax img, .MathJax nobr, .MathJax a":{"max-width":"5000em","max-height":"5000em"}}},rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariVerticalAlignBug:!d,safariTextNodeBug:!c,forceReflow:!0,allowWebFonts:d&&!e?"otf":!1});k&&b.Augment({webFontDefault:a.isMobile?"sans-serif":"serif"});a.isPC&&b.Augment({adjustAvailableFonts:b.removeSTIXfonts,checkWebFontsTwice:!0});e&&((a=g.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):g.config["HTML-CSS"]={availableFonts:[],preferredFont:null})},Chrome:function(a){b.Augment({Em:b.EmRounded,cloneNodeBug:!0,rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariWebFontSerif:[""],forceReflow:!0,allowWebFonts:a.versionAtLeast("4.0")?"otf":"svg"})},Opera:function(a){a.isMini=null!=navigator.appVersion.match("Opera Mini");b.config.styles[".MathJax .merror"]["vertical-align"]=null;b.config.styles[".MathJax span"]["z-index"]=0;b.Augment({operaHeightBug:!0,operaVerticalAlignBug:!0,operaFontSizeBug:a.versionAtLeast("10.61"),initialSkipBug:!0,FontFaceBug:!0,PaddingWidthBug:!0,allowWebFonts:a.versionAtLeast("10.0")&&!a.isMini?"otf":!1,adjustAvailableFonts:b.removeSTIXfonts})},Konqueror:function(a){b.Augment({konquerorVerticalAlignBug:!0})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==g.config.menuSettings.zoom&&c.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]);MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c=MathJax.ElementJax.mml,g=MathJax.OutputJax["HTML-CSS"];c.mtable.Augment({toHTML:function(b){b=this.HTMLcreateSpan(b);if(0===this.data.length)return b;var k=this.getValues("columnalign","rowalign","columnspacing","rowspacing","columnwidth","equalcolumns","equalrows","columnlines","rowlines","frame","framespacing","align","useHeight","width","side","minlabelspacing"),n=k.width.match(/%$/),l=g.createStack(b),m=this.HTMLgetScale(),t=this.HTMLgetMu(b),p=[],a=[],h=[],d=[],u=[],e,f,q=-1,y,v,r,B,w,F,A=[],C=g.FONTDATA.baselineskip*m*k.useHeight,z,G=g.FONTDATA.lineH*m,N=g.FONTDATA.lineD*m;e=0;for(y=this.data.length;eq&&(q=f),u[f]=g.createStack(g.createBox(l)),h[f]=-g.BIGDIMEN),d[e][f]=g.createBox(u[f]),A.push(B.data[f-r].toHTML(d[e][f]));g.MeasureSpans(A);e=0;for(y=this.data.length;ep[e]&&(p[e]=A*J.h/z),A*J.d/z>a[e]&&(a[e]=A*J.d/z)}else F.HTMLcanStretch("Horizontal")&&(A=g.length2em(A,t,J.w),A>h[f]&&(h[f]=A))}d[e][f].bbox.h>p[e]&&(p[e]=d[e][f].bbox.h);d[e][f].bbox.d>a[e]&&(a[e]=d[e][f].bbox.d);d[e][f].bbox.w>h[f]&&(h[f]=d[e][f].bbox.w)}p[0]+a[0]&&(p[0]=Math.max(p[0],G));p[d.length-1]+a[d.length-1]&&(a[d.length-1]=Math.max(a[d.length-1],N));var I=MathJax.Hub.SplitList,A=I(k.columnspacing),G=I(k.rowspacing);v=I(k.columnalign);var x=I(k.rowalign),J=I(k.columnlines),N=I(k.rowlines),D=I(k.columnwidth),H=[];e=0;for(y=A.length;ef&&(f=d.length+1+f),1>f?f=1:f>d.length&&(f=d.length),I=0,m=-(z+e)+p[0],e=0,y=f-1;eK)for(E=(E-K)/z,e=0,y=r.length;e