/i,"").replace(/<\?xml:namespace .*?\/>/i,""),k=k.replace(/ /g,"\x26#xA0;"));MathJax.HTML.setScript(b,k);f.removeChild(c)}else f=MathJax.HTML.Element("span"),f.appendChild(c),MathJax.HTML.setScript(b,f.innerHTML);"none"!==this.config.preview&&this.createPreview(c,b)},ProcessMathFlattened:function(c){var f=c.parentNode,b=document.createElement("script");b.type="math/mml";f.insertBefore(b,c);for(var f="",k,p=c;c&&"/MATH"!==c.nodeName;)k=c,c=c.nextSibling,f+=this.NodeHTML(k),k.parentNode.removeChild(k);c&&"/MATH"===c.nodeName&&c.parentNode.removeChild(c);b.text=f+"\x3c/math\x3e";"none"!==this.config.preview&&this.createPreview(p,b)},NodeHTML:function(c){var f,b,k;if("#text"===c.nodeName)f=this.quoteHTML(c.nodeValue);else if("#comment"===c.nodeName)f="\x3c!--"+c.nodeValue+"--\x3e";else{f="\x3c"+c.nodeName.toLowerCase();b=0;for(k=c.attributes.length;b|\/>)$/)){b=0;for(k=c.childNodes.length;b /g,"\x26gt;").replace(/\"/g,"\x26quot;")},createPreview:function(c,f){var b=this.config.preview;"none"!==b&&("alttext"===b&&(b=c.getAttribute("alttext"),b=null!=b?[this.filterPreview(b)]:null),b&&(b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b),f.parentNode.insertBefore(b,f)))},filterPreview:function(c){return c},InitBrowser:function(){var c=MathJax.HTML.Element("span",{id:"\x3c",className:"mathjax",innerHTML:"\x3cmath\x3e\x3cmi\x3ex\x3c/mi\x3e\x3cmspace /\x3e\x3c/math\x3e"}),f=c.outerHTML||"";this.AttributeBug=""!==f&&!(f.match(/id="<"/)&&f.match(/class="mathjax"/)&&f.match(/<\/math>/));this.MathTagBug=1 Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=h.button.src}},e=n.Touch={last:0,delay:500,start:function(a){var h=(new Date).getTime(),d=h-e.last h;9>h&&(d.LEFTBUTTON=1)},Safari:function(a){n.safariContextMenuBug=!0},Opera:function(a){n.operaPositionBug=!0},Konqueror:function(a){n.noContextMenuBug=!0}});n.topImg=n.msieAlignBug?f.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):f.Element("span",{style:{width:0,height:0,display:"inline-block"}});n.operaPositionBug&&(n.topImg.style.border="1px solid");n.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,f,b,k,p){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,q,n;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){n=MathJax.Extension.MathEvents.Event;m=MathJax.Extension.MathEvents.Event.False;q=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();q.ClearHoverTimer();n.ClearSelection();var b=MathJax.OutputJax[d.jaxID],e=b.getJaxFromMath(d);e.hover&&q.UnHover(e);var g=Math.floor(.85*document.body.clientWidth),t=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),v=f.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":g+"px","max-height":t+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),k=v.lastChild,p=k.firstChild,r=v.firstChild;d.parentNode.insertBefore(v,d);d.parentNode.insertBefore(d,v);p.addEventListener&&p.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var B=f.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});v.insertBefore(B,k)}this.msieZIndexBug&&(f.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=l.styles["#MathJax_ZoomOverlay"]["z-index"]);b=b.Zoom(e,p,d,g,t);this.msiePositionBug&&(this.msieSizeBug&&(k.style.height=b.zH+"px",k.style.width=b.zW+"px"),k.offsetHeight>t&&(k.style.height=t+"px",k.style.width=b.zW+this.scrollSize+"px"),k.offsetWidth>g&&(k.style.width=g+"px",k.style.height=b.zH+this.scrollSize+"px"));this.operaPositionBug&&(k.style.width=Math.min(g,b.zW)+"px");k.offsetWidth&&k.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?f.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):f.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,f,b,k,p){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)))},q=c.Browser.isPC,n=c.Browser.isMSIE,a=8<(document.documentMode||0),h=q?null:"5px",d=c.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(p.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:q?"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:q?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":n?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":n?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:q?"1em":".7em"},".MathJax_MenuLabel":{padding:q?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":q?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:q?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":q?"Highlight":"#606872",color:q?"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 g=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=g.Background(this),delete t.lastItem,delete t.lastMenu,delete g.skipUp,l.Post(["post",g.jax]));var e=f.addElement(b,"div",{onmouseup:g.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;c document.body.offsetWidth-this.margin&&!g.isMobile&&(p="right",c=Math.max(this.margin,c-m-e.offsetWidth+6));q||(e.style["borderRadiusTop"+p]=0,e.style["WebkitBorderRadiusTop"+p]=0,e.style["MozBorderRadiusTop"+p]=0,e.style["KhtmlBorderRadiusTop"+p]=0)}else c+e.offsetWidth>document.body.offsetWidth-this.margin&&(c=document.body.offsetWidth-e.offsetWidth-this.margin),g.isMobile&&(c=Math.max(5,c-Math.floor(e.offsetWidth/2)),k-=20),g.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",g.jax]);var d=document.getElementById("MathJax_MenuFrame");d&&(d.parentNode.removeChild(d),this.msieFixedPositionBug&&detachEvent("onresize",g.Resize));g.jax.hover&&(delete g.jax.hover.nofade,e.UnHover(g.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 g=0,b=this.items.length;g/g,"\x26gt;");var b=m("EqSource","MathJax Equation Source");if(g.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"+b+"\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"+b+"\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 e=d.document.body.firstChild;setTimeout(function(){var a=d.outerHeight-d.innerHeight||30,b=d.outerWidth-d.innerWidth||30,b=Math.max(100,Math.min(Math.floor(.5*screen.width),e.offsetWidth+b+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),e.offsetHeight+a+25));d.resizeTo(b,a);h&&null!=h.screenX&&(b=Math.max(0,Math.min(h.screenX-Math.floor(b/2),screen.width-b-20)),a=Math.max(0,Math.min(h.screenY-Math.floor(a/2),screen.height-a-20)),d.moveTo(b,a))},50)}};g.Scale=function(){var a=p["HTML-CSS"],h=p.NativeMML,d=p.SVG,b=(a||h||d||{config:{scale:100}}).config.scale,e=prompt(m("ScaleMath","Scale all mathematics (compared to surrounding text) by"),b+"%");e&&(e.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(e=parseFloat(e))?e!==b&&(a&&(a.config.scale=e),h&&(h.config.scale=e),d&&(d.config.scale=e),g.cookie.scale=e,g.saveCookie(),c.Reprocess()):alert(m("NonZeroScale","The scale should not be zero")):alert(m("PercentScale","The scale should be a percentage (e.g., 120%%)")))};g.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};g.Renderer=function(){var h=c.outputJax["jax/mml"];if(h[0]!==d.settings.renderer){var b=c.Browser,e,k=g.Renderer.Messages,u;switch(d.settings.renderer){case "NativeMML":d.settings.warnedMML||(b.isChrome&&"24."!==b.version.substr(0,3)?e=k.MML.WebKit:b.isSafari&&!b.versionAtLeast("5.0")?e=k.MML.WebKit:b.isMSIE?b.hasMathPlayer||(e=k.MML.MSIE):e=k.MML[b],u="warnedMML");break;case "SVG":d.settings.warnedSVG||!b.isMSIE||a||(e=k.SVG.MSIE)}if(e){e=m(e[0],e[1]);e=e+"\n\n"+m("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");g.cookie.renderer=h[0].id;g.saveCookie();if(!confirm(e)){g.cookie.renderer=d.settings.renderer=f.Cookie.Get("menu").renderer;g.saveCookie();return}u&&(g.cookie.warned=d.settings.warned=!0);g.cookie.renderer=d.settings.renderer;g.saveCookie()}c.Queue(["setRenderer",c,d.settings.renderer,"jax/mml"],["Rerender",c])}};g.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."]}};g.Font=function(){p["HTML-CSS"]&&document.location.reload()};g.Locale=function(){MathJax.Localization.setLocale(d.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};g.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))}))};g.MPEvents=function(h){var b=d.settings.discoverable,e=g.MPEvents.Messages;a?!b&&"Menu Events"===h.name[1]&&d.settings.mpContext&&alert(m.apply(m,e.IE9warning)):d.settings.mpMouse&&!confirm(m.apply(m,e.IE8warning))?(delete g.cookie.mpContext,delete d.settings.mpContext,delete g.cookie.mpMouse,delete d.settings.mpMouse,g.saveCookie()):(d.settings.mpContext=d.settings.mpMouse,g.cookie.mpContext=g.cookie.mpMouse=d.settings.mpMouse,g.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};g.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 b="BackCompat"===document.compatMode;h=h.versionAtLeast("8.0")&&7 document.documentMode,msieFixedPositionBug:b||!h,msieAboutBug:b});a&&(delete d.styles["#MathJax_About"].filter,delete d.styles[".MathJax_Menu"].filter)},Firefox:function(a){g.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");g.skipMousedown=a.isMobile}});g.isMobile=c.Browser.isMobile;g.noContextMenu=c.Browser.noContextMenu;g.CreateLocaleMenu=function(){if(g.menu){var a=g.menu.Find("Language").menu,h=a.items,d=[],b=MathJax.Localization.strings,e;for(e in b)b.hasOwnProperty(e)&&d.push(e);d=d.sort();a.items=[];e=0;for(var c=d.length;e b.charCodeAt(0)?c.VARIANT.ITALIC:c.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1 f&&(f=(f-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 =p||57344<=p)32>p||126 ]* xmlns:/)&&(b=b.replace(/^<([a-z]+)(:math)/i,'\x3c$1$2 xmlns:$1\x3d"http://www.w3.org/1998/Math/MathML"'));var c=b.match(/^(