!function(e,t,a){var i=e.config.menuSettings,s=MathJax.OutputJax,n=a.isMSIE&&(document.documentMode||0)<8,o=MathJax.Extension["fast-preview"]={version:"2.7.0",enabled:!0,config:e.CombineConfig("fast-preview",{Chunks:{EqnChunk:1e4,EqnChunkFactor:1,EqnChunkDelay:0},color:"inherit!important",updateTime:30,updateDelay:6,messageStyle:"none",disabled:a.isMSIE&&!a.versionAtLeast("8.0")}),Config:function(){e.config["CHTML-preview"]&&MathJax.Hub.Config({"fast-preview":e.config["CHTML-preview"]});var t,a,s,n,r,u=this.config;u.disabled||null!=i.FastPreview||e.Config({menuSettings:{FastPreview:!0}}),i.FastPreview&&(MathJax.Ajax.Styles({".MathJax_Preview .MJXf-math":{color:u.color}}),e.Config({"HTML-CSS":u.Chunks,CommonHTML:u.Chunks,SVG:u.Chunks})),e.Register.MessageHook("Begin Math Output",function(){!n&&o.Active()&&(t=e.processUpdateTime,a=e.processUpdateDelay,s=e.config.messageStyle,e.processUpdateTime=u.updateTime,e.processUpdateDelay=u.updateDelay,e.Config({messageStyle:u.messageStyle}),MathJax.Message.Clear(0,0),r=!0)}),e.Register.MessageHook("End Math Output",function(){!n&&r&&(e.processUpdateTime=t,e.processUpdateDelay=a,e.Config({messageStyle:s}),n=!0)})},Disable:function(){this.enabled=!1},Enable:function(){this.enabled=!0},Active:function(){return i.FastPreview&&this.enabled&&!(s[i.renderer]||{}).noFastPreview},Preview:function(e){if(this.Active()&&e.script.parentNode){var a=e.script.MathJax.preview||e.script.previousSibling;return a&&a.className===MathJax.Hub.config.preRemoveClass||(a=t.Element("span",{className:MathJax.Hub.config.preRemoveClass}),e.script.parentNode.insertBefore(a,e.script),e.script.MathJax.preview=a),a.innerHTML="",a.style.color=n?"black":"inherit",this.postFilter(a,e)}},postFilter:function(t,a){if(!a.math.root.toPreviewHTML){var i=MathJax.Callback.Queue();i.Push(["Require",MathJax.Ajax,"[MathJax]/jax/output/PreviewHTML/config.js"],["Require",MathJax.Ajax,"[MathJax]/jax/output/PreviewHTML/jax.js"]),e.RestartAfter(i.Push({}))}a.math.root.toPreviewHTML(t)},Register:function(t){e.Register.StartupHook(t+" Jax Require",function(){var e=MathJax.InputJax[t];e.postfilterHooks.Add(["Preview",MathJax.Extension["fast-preview"]],50)})}};o.Register("TeX"),o.Register("MathML"),o.Register("AsciiMath"),e.Register.StartupHook("End Config",["Config",o]),e.Startup.signal.Post("fast-preview Ready")}(MathJax.Hub,MathJax.HTML,MathJax.Hub.Browser),MathJax.Ajax.loadComplete("[MathJax]/extensions/fast-preview.js");