!function(t,e,a,o){var n,i,r;o.Augment({settings:e.config.menuSettings,Config:function(){this.require||(this.require=[]),this.SUPER(arguments).Config.call(this),this.require.push(MathJax.OutputJax.extensionDir+"/MathEvents.js")},Startup:function(){return n=MathJax.Extension.MathEvents.Event,i=MathJax.Extension.MathEvents.Touch,r=MathJax.Extension.MathEvents.Hover,this.ContextMenu=n.ContextMenu,this.Mousedown=n.AltContextMenu,this.Mouseover=r.Mouseover,this.Mouseout=r.Mouseout,this.Mousemove=r.Mousemove,t.Styles(this.config.styles)},preTranslate:function(t){var o,r,s,u,d,l,h=t.jax[this.id],c=h.length;for(o=0;o<c;o++)r=h[o],r.parentNode&&(s=r.previousSibling,s&&String(s.className).match(/^MathJax(_PlainSource)?(_Display)?( MathJax_Process(ing|ed))?$/)&&s.parentNode.removeChild(s),l=r.MathJax.elementJax,l&&(l.PlainSource={display:"block"===l.root.Get("display")},u=d=a.Element("span",{className:"MathJax_PlainSource",id:l.inputID+"-Frame",isMathJax:!0,jaxID:this.id,oncontextmenu:n.Menu,onmousedown:n.Mousedown,onmouseover:n.Mouseover,onmouseout:n.Mouseout,onmousemove:n.Mousemove,onclick:n.Click,ondblclick:n.DblClick,onkeydown:n.Keydown,tabIndex:e.getTabOrder(l)},[["span"]]),e.Browser.noContextMenu&&(u.ontouchstart=i.start,u.ontouchend=i.end),l.PlainSource.display&&(d=a.Element("div",{className:"MathJax_PlainSource_Display"}),d.appendChild(u)),r.parentNode.insertBefore(d,r)))},Translate:function(t,e){if(t.parentNode){var o=t.MathJax.elementJax,n=o.root,i=document.getElementById(o.inputID+"-Frame");this.initPlainSource(n,i);var r=o.originalText;if("MathML"===o.inputJax&&o.root.data[0].data.length>0&&"semantics"===o.root.data[0].data[0].type)for(var s=o.root.data[0].data[0].data,u=0;u<s.length;u++){if("application/x-tex"===s[u].attr.encoding){r=o.root.data[0].data[0].data[u].data[0].data[0];break}"text/x-asciimath"===s[u].attr.encoding&&(r=o.root.data[0].data[0].data[u].data[0].data[0])}o.PlainSource.source=r,a.addText(i.firstChild,r)}},postTranslate:function(t){},getJaxFromMath:function(t){t.parentNode.className.match(/MathJax_PlainSource_Display/)&&(t=t.parentNode);do t=t.nextSibling;while(t&&"script"!==t.nodeName.toLowerCase());return e.getJaxFor(t)},Zoom:function(t,e,o,n,i){var r=Math.round(e.parentNode.offsetWidth/2);e.style.whiteSpace="pre",a.addText(e,t.PlainSource.source);var s=o.offsetWidth,u=o.offsetHeight,d=e.offsetWidth,l=e.offsetHeight,h=-Math.round((l+u)/2)-(t.PlainSource.display?0:r);return{mW:s,mH:u,zW:d,zH:l,Y:h}},initPlainSource:function(t,e){},Remove:function(t){var e=document.getElementById(t.inputID+"-Frame");e&&(t.PlainSource.display&&(e=e.parentNode),e.parentNode.removeChild(e)),delete t.PlainSource}}),MathJax.Hub.Register.StartupHook("mml Jax Ready",function(){MathJax.Hub.Register.StartupHook("onLoad",function(){setTimeout(MathJax.Callback(["loadComplete",o,"jax.js"]),0)})}),MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==e.config.menuSettings.zoom&&t.Require("[MathJax]/extensions/MathZoom.js")})}(MathJax.Ajax,MathJax.Hub,MathJax.HTML,MathJax.OutputJax.PlainSource);