MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var c="2.7.9",s=MathJax.ElementJax.mml,h=MathJax.OutputJax.CommonHTML,d=MathJax.Localization;s.mglyph.Augment({toCommonHTML:function(a,M){var i=this.getValues("src","width","height","valign","alt");if(a=this.CHTMLcreateNode(a),this.CHTMLhandleStyle(a),this.CHTMLhandleScale(a),i.src===""){var C=this.Get("index");this.CHTMLgetVariant(),C&&this.CHTMLvariant.style&&this.CHTMLhandleText(a,String.fromCharCode(C),this.CHTMLvariant)}else{var t=this.CHTML;if(t.img||(t.img=s.mglyph.GLYPH[i.src]),t.img||(t.img=s.mglyph.GLYPH[i.src]={img:new Image,status:"pending"},t.img.img.onload=MathJax.Callback(["CHTMLimgLoaded",this]),t.img.img.onerror=MathJax.Callback(["CHTMLimgError",this]),t.img.img.src=i.src,MathJax.Hub.RestartAfter(t.img.img.onload)),t.img.status!=="OK"){var g=s.Error(d._(["MathML","BadMglyph"],"Bad mglyph: %1",i.src));g.data[0].data[0].mathsize="75%",this.Append(g),g.toCommonHTML(a),this.data.pop(),t.combine(g.CHTML,0,0,1)}else{var L=h.addElement(a,"img",{isMathJax:!0,src:i.src,alt:i.alt,title:i.alt}),n=i.width,T=i.height,m=t.img.img.width/h.em,e=t.img.img.height/h.em,r=m,l=e;n!==""&&(m=this.CHTMLlength2em(n,r),e=r?m/r*l:0),T!==""&&(e=this.CHTMLlength2em(T,l),n===""&&(m=l?e/l*r:0)),L.style.width=h.Em(m),t.w=t.r=m,L.style.height=h.Em(e),t.h=t.t=e,i.valign&&(t.d=t.b=-this.CHTMLlength2em(i.valign,l),L.style.verticalAlign=h.Em(-t.d),t.h-=t.d,t.t=t.h)}}return this.CHTMLhandleSpace(a),this.CHTMLhandleBBox(a),this.CHTMLhandleColor(a),a},CHTMLimgLoaded:function(a,M){typeof a=="string"&&(M=a),this.CHTML.img.status=M||"OK"},CHTMLimgError:function(){this.CHTML.img.img.onload("error")}},{GLYPH:{}}),MathJax.Hub.Startup.signal.Post("CommonHTML mglyph Ready"),MathJax.Ajax.loadComplete(h.autoloadDir+"/mglyph.js")});
