!function(t,e){var i="2.7.1",a=MathJax.Hub.CombineConfig("MatchWebFonts",{matchFor:{"HTML-CSS":!0,NativeMML:!0,SVG:!0},fontCheckDelay:500,fontCheckTimeout:15e3});MathJax.Extension.MatchWebFonts={version:i,config:a},t.Register.StartupHook("HTML-CSS Jax Ready",function(){var i=MathJax.OutputJax["HTML-CSS"],s=i.postTranslate;i.Augment({postTranslate:function(t,i){return!i&&a.matchFor["HTML-CSS"]&&this.config.matchFontHeight&&e.timer.start(e,["checkFonts",this,t.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout),s.apply(this,arguments)},checkFonts:function(e,i){if(!e.time(function(){})){var a,s,r=[],o=!1;for(a=0,s=i.length;a<s;a++)script=i[a],script.parentNode&&script.MathJax.elementJax&&script.parentNode.insertBefore(this.EmExSpan.cloneNode(!0),script);for(a=0,s=i.length;a<s;a++)if(script=i[a],script.parentNode){o=!0;var n=script.MathJax.elementJax;if(n){var h=script.previousSibling,c=h.firstChild.offsetHeight/60,l=h.lastChild.lastChild.offsetHeight/60;if(0!==c&&"NaN"!==c||(c=this.defaultEx,l=this.defaultEm),c!==n.HTMLCSS.ex||l!==n.HTMLCSS.em){var f=c/this.TeX.x_height/l;f=Math.floor(Math.max(this.config.minScaleAdjust/100,f)*this.config.scale),f/100!==n.scale&&(r.push(script),i[a]={})}}}for(i=i.concat(r),a=0,s=i.length;a<s;a++)script=i[a],script&&script.parentNode&&script.MathJax.elementJax&&script.parentNode.removeChild(script.previousSibling);r.length&&t.Queue(["Rerender",t,[r],{}]),o&&setTimeout(e,e.delay)}}})}),t.Register.StartupHook("SVG Jax Ready",function(){var i=MathJax.OutputJax.SVG,s=i.postTranslate;i.Augment({postTranslate:function(t,i){return!i&&a.matchFor.SVG&&e.timer.start(e,["checkFonts",this,t.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout),s.apply(this,arguments)},checkFonts:function(e,i){if(!e.time(function(){})){var a,s,r=[],o=!1;for(a=0,s=i.length;a<s;a++)script=i[a],script.parentNode&&script.MathJax.elementJax&&script.parentNode.insertBefore(this.ExSpan.cloneNode(!0),script);for(a=0,s=i.length;a<s;a++)if(script=i[a],script.parentNode){o=!0;var n=script.MathJax.elementJax;if(n){var h=script.previousSibling,c=h.firstChild.offsetHeight/60;0!==c&&"NaN"!==c||(c=this.defaultEx),c!==n.SVG.ex&&(r.push(script),i[a]={})}}for(i=i.concat(r),a=0,s=i.length;a<s;a++)script=i[a],script.parentNode&&script.MathJax.elementJax&&script.parentNode.removeChild(script.previousSibling);r.length&&t.Queue(["Rerender",t,[r],{}]),o&&setTimeout(e,e.delay)}}})}),t.Register.StartupHook("NativeMML Jax Ready",function(){var i=MathJax.OutputJax.NativeMML,s=i.postTranslate;i.Augment({postTranslate:function(i){!t.Browser.isMSIE&&a.matchFor.NativeMML&&e.timer.start(e,["checkFonts",this,i.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout),s.apply(this,arguments)},checkFonts:function(t,e){if(!t.time(function(){})){var i,a,s,r=[],o=[],n=[];for(i=0,a=e.length;i<a;i++)s=e[i],s.parentNode&&s.MathJax.elementJax&&s.parentNode.insertBefore(this.EmExSpan.cloneNode(!0),s);for(i=0,a=e.length;i<a;i++)if(s=e[i],s.parentNode){var h=s.MathJax.elementJax;if(h){var c=document.getElementById(h.inputID+"-Frame"),l=c.getElementsByTagName("math")[0];if(l){h=h.NativeMML;var f=s.previousSibling,p=f.firstChild.offsetWidth/60,d=f.lastChild.offsetWidth/60;0!==p&&"NaN"!==p||(p=this.defaultEx,d=this.defaultMEx);var x=p!==h.ex;if(x||d!=h.mex){var u=this.config.matchFontHeight&&d>1?p/d:1;u=Math.floor(Math.max(this.config.minScaleAdjust/100,u)*this.config.scale),u/100!==h.scale&&n.push([c.style,u]),h.scale=u/100,h.fontScale=u+"%",h.ex=p,h.mex=d}if("scrollWidth"in h&&(x||h.scrollWidth!==l.firstChild.scrollWidth)&&(h.scrollWidth=l.firstChild.scrollWidth,r.push([l.parentNode.style,h.scrollWidth/h.ex/h.scale])),l.MathJaxMtds)for(var m=0,M=l.MathJaxMtds.length;m<M;m++)l.MathJaxMtds[m].parentNode&&(x||l.MathJaxMtds[m].firstChild.scrollWidth!==h.mtds[m])&&(h.mtds[m]=l.MathJaxMtds[m].firstChild.scrollWidth,o.push([l.MathJaxMtds[m],h.mtds[m]/h.ex]))}}}for(i=0,a=e.length;i<a;i++)s=e[i],s.parentNode&&s.MathJax.elementJax&&s.parentNode.removeChild(s.previousSibling);for(i=0,a=n.length;i<a;i++)n[i][0].fontSize=n[i][1]+"%";for(i=0,a=r.length;i<a;i++)r[i][0].width=r[i][1].toFixed(3)+"ex";for(i=0,a=o.length;i<a;i++){var g=o[i][0].getAttribute("style");g=g.replace(/(($|;)\s*min-width:).*?ex/,"$1 "+o[i][1].toFixed(3)+"ex"),o[i][0].setAttribute("style",g)}setTimeout(t,t.delay)}}})}),t.Startup.signal.Post("MatchWebFonts Extension Ready"),e.loadComplete("[MathJax]/extensions/MatchWebFonts.js")}(MathJax.Hub,MathJax.Ajax);