jax.js 68 KB

12345678910111213
  1. /*
  2. * /MathJax/jax/output/HTML-CSS/jax.js
  3. *
  4. * Copyright (c) 2009-2013 The MathJax Consortium
  5. *
  6. * Part of the MathJax library.
  7. * See http://www.mathjax.org for details.
  8. *
  9. * Licensed under the Apache License, Version 2.0;
  10. * you may not use this file except in compliance with the License.
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. */(function(v,t,e){var k,x=function(){var a=[].slice.call(arguments,0);a[0][0]=["HTML-CSS",a[0][0]];return MathJax.Message.Set.apply(MathJax.Message,a)},A=MathJax.Object.Subclass({timeout:1E3*(t.Browser.isMobile?15:8),FontInfo:{STIX:{family:"STIXSizeOneSym",testString:"() {} []"},TeX:{family:"MathJax_Size1",testString:"() {} []"}},comparisonFont:"sans-serif monospace script Times Courier Arial Helvetica".split(" "),testSize:["40px","50px","60px","30px","20px"],Init:function(){this.div=MathJax.HTML.addElement(document.body,"div",{id:"MathJax_Font_Test",style:{position:"absolute",visibility:"hidden",top:0,left:0,width:"auto",padding:0,border:0,margin:0,whiteSpace:"nowrap",textAlign:"left",textIndent:0,textTransform:"none",lineHeight:"normal",letterSpacing:"normal",wordSpacing:"normal",fontSize:this.testSize[0],fontWeight:"normal",fontStyle:"normal",fontSizeAdjust:"none"}},[""]);this.text=this.div.firstChild},findFont:function(a,b){if(b&&this.testCollection(b))return b;for(var c=0,f=a.length;c<f;c++)if(a[c]!==b&&this.testCollection(a[c]))return a[c];return null},testCollection:function(a){return this.testFont(this.FontInfo[a])},testFont:function(a){a.isWebFont&&e.FontFaceBug?this.div.style.fontWeight=this.div.style.fontStyle="normal":(this.div.style.fontWeight=a.weight||"normal",this.div.style.fontStyle=a.style||"normal");var b=this.getComparisonWidths(a.testString,a.noStyleChar);if(b){this.div.style.fontFamily="'"+a.family+"',"+this.comparisonFont[0];if(this.div.offsetWidth==b[0]&&(this.div.style.fontFamily="'"+a.family+"',"+this.comparisonFont[b[2]],this.div.offsetWidth==b[1]))return!1;if(this.div.offsetWidth!=b[3]||this.div.offsetHeight!=b[4]){if(a.noStyleChar||!e.FONTDATA||!e.FONTDATA.hasStyleChar)return!0;for(var b=0,c=this.testSize.length;b<c;b++)if(this.testStyleChar(a,this.testSize[b]))return!0}}return!1},styleChar:"\ueffd",versionChar:"\ueffe",compChar:"\uefff",testStyleChar:function(a,b){var c=3+(a.weight?2:0)+(a.style?4:0),f="",d=0,g=this.div.style.fontSize;this.div.style.fontSize=b;e.msieItalicWidthBug&&"italic"===a.style&&(this.text.nodeValue=f=this.compChar,d=this.div.offsetWidth);e.safariTextNodeBug?this.div.innerHTML=this.compChar+f:this.text.nodeValue=this.compChar+f;var h=this.div.offsetWidth-d;e.safariTextNodeBug?this.div.innerHTML=this.styleChar+f:this.text.nodeValue=this.styleChar+f;var l=Math.floor((this.div.offsetWidth-d)/h+.5);l===c&&(e.safariTextNodeBug?this.div.innerHTML=this.versionChar+f:this.text.nodeValue=this.versionChar+f,a.version=Math.floor((this.div.offsetWidth-d)/h+1.5)/2);this.div.style.fontSize=g;return l===c},getComparisonWidths:function(a,b){e.FONTDATA&&e.FONTDATA.hasStyleChar&&!b&&(a+=this.styleChar+" "+this.compChar);e.safariTextNodeBug?this.div.innerHTML=a:this.text.nodeValue=a;this.div.style.fontFamily=this.comparisonFont[0];var c=this.div.offsetWidth;this.div.style.fontFamily=e.webFontDefault;for(var f=this.div.offsetWidth,d=this.div.offsetHeight,g=1,h=this.comparisonFont.length;g<h;g++)if(this.div.style.fontFamily=this.comparisonFont[g],this.div.offsetWidth!=c)return[c,this.div.offsetWidth,g,f,d];return null},loadWebFont:function(a){t.Startup.signal.Post("HTML-CSS Jax - Web-Font "+e.fontInUse+"/"+a.directory);var b=x(["LoadWebFont","Loading web-font %1",e.fontInUse+"/"+a.directory]),c=MathJax.Callback({}),b=MathJax.Callback(["loadComplete",this,a,b,c]);v.timer.start(v,[this.checkWebFont,a,b],0,this.timeout);return c},loadComplete:function(a,b,c,f){MathJax.Message.Clear(b);f===v.STATUS.OK?(this.webFontLoaded=!0,c()):(this.loadError(a),t.Browser.isFirefox&&e.allowWebFonts&&(b=document.location.protocol+"//"+document.location.hostname,""!=document.location.port&&(b+=":"+document.location.port),b+="/",v.fileURL(e.webfontDir).substr(0,b.length)!==b&&this.firefoxFontError(a)),this.webFontLoaded?c():e.loadWebFontError(a,c))},loadError:function(a){x(["CantLoadWebFont","Can't load web font %1",e.fontInUse+"/"+a.directory],null,2E3);t.Startup.signal.Post(["HTML-CSS Jax - web font error",e.fontInUse+"/"+a.directory,a])},firefoxFontError:function(a){x(["FirefoxCantLoadWebFont","Firefox can't load web fonts from a remote host"],null,3E3);t.Startup.signal.Post("HTML-CSS Jax - Firefox web fonts on remote host error")},checkWebFont:function(a,b,c){a.time(c)||(e.Font.testFont(b)?c(a.STATUS.OK):setTimeout(a,a.delay))},fontFace:function(a){var b=e.allowWebFonts,c=e.FONTDATA.FONTS[a];e.msieFontCSSBug&&!c.family.match(/-Web$/)&&(c.family+="-Web");var f=v.fileURL(e.webfontDir+"/"+b),d=a.replace(/-b/,"-B").replace(/-i/,"-I").replace(/-Bold-/,"-Bold");d.match(/-/)||(d+="-Regular");var d="svg"===b?d+(".svg#"+d):d+("."+b),g={"font-family":c.family,src:"url('"+f+"/"+d+"')"};"otf"===b?(g.src+=" format('opentype')",f=v.fileURL(e.webfontDir+"/woff"),g.src="url('"+f+"/"+d.replace(/otf$/,"woff")+"') format('woff'), "+g.src):"eot"!==b&&(g.src+=" format('"+b+"')");e.FontFaceBug&&c.isWebFont||(a.match(/-bold/)&&(g["font-weight"]="bold"),a.match(/-italic/)&&(g["font-style"]="italic"));return g}}),w,z,y;e.Augment({config:{styles:{".MathJax":{display:"inline","font-style":"normal","font-weight":"normal","line-height":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-align":"left","text-transform":"none","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none",direction:"ltr",border:0,padding:0,margin:0},".MathJax_Display":{position:"relative",display:"block",width:"100%"},".MathJax img, .MathJax nobr, .MathJax a":{border:0,padding:0,margin:0,"max-width":"none","max-height":"none","vertical-align":0,"line-height":"normal","text-decoration":"none"},"img.MathJax_strut":{border:"0 !important",padding:"0 !important",margin:"0 !important","vertical-align":"0 !important"},".MathJax span":{display:"inline",position:"static",border:0,padding:0,margin:0,"vertical-align":0,"line-height":"normal","text-decoration":"none"},".MathJax nobr":{"white-space":"nowrap ! important"},".MathJax img":{display:"inline ! important","float":"none ! important"},".MathJax *":{transition:"none","-webkit-transition":"none","-moz-transition":"none","-ms-transition":"none","-o-transition":"none"},".MathJax_Processing":{visibility:"hidden",position:"fixed",width:0,height:0,overflow:"hidden"},".MathJax_Processed":{display:"none!important"},".MathJax_ExBox":{display:"block",overflow:"hidden",width:"1px",height:"60ex"},".MathJax .MathJax_EmBox":{display:"block",overflow:"hidden",width:"1px",height:"60em"},".MathJax .MathJax_HitBox":{cursor:"text",background:"white",opacity:0,filter:"alpha(opacity\x3d0)"},".MathJax .MathJax_HitBox *":{filter:"none",opacity:1,background:"transparent"},"#MathJax_Tooltip":{position:"absolute",left:0,top:0,width:"auto",height:"auto",display:"none"},"#MathJax_Tooltip *":{filter:"none",opacity:1,background:"transparent"},"@font-face":{"font-family":"MathJax_Blank",src:"url('about:blank')"}}},settings:t.config.menuSettings,hideProcessedMath:!0,Font:null,webFontDefault:"MathJax_Blank",allowWebFonts:"otf",maxStretchyParts:1E3,Config:function(){this.require||(this.require=[]);this.Font=A();this.SUPER(arguments).Config.call(this);var a=this.settings;this.adjustAvailableFonts&&this.adjustAvailableFonts(this.config.availableFonts);a.scale&&(this.config.scale=a.scale);a.font&&"Auto"!==a.font&&("TeX (local)"===a.font?(this.config.availableFonts=["TeX"],this.config.preferredFont=this.config.webFont="TeX"):"STIX (local)"===a.font?(this.config.availableFonts=["STIX"],this.config.preferredFont="STIX",this.config.webFont="TeX"):"TeX (web)"===a.font?(this.config.availableFonts=[],this.config.preferredFont="",this.config.webFont="TeX"):"TeX (image)"===a.font&&(this.config.availableFonts=[],this.config.preferredFont=this.config.webFont=""));a=this.Font.findFont(this.config.availableFonts,this.config.preferredFont);!a&&this.allowWebFonts&&(a=this.config.webFont)&&(this.webFonts=!0);!a&&this.config.imageFont&&(a=this.config.imageFont,this.imgFonts=!0);a?(this.fontInUse=a,this.fontDir+="/"+a,this.webfontDir+="/"+a,this.require.push(this.fontDir+"/fontdata.js"),this.imgFonts&&(this.require.push(this.directory+"/imageFonts.js"),t.Startup.signal.Post("HTML-CSS Jax - using image fonts"))):(x(["CantFindFontUsing","Can't find a valid font using %1","["+this.config.availableFonts.join(", ")+"]"],null,3E3),this.fontInUse="generic",this.FONTDATA={TeX_factor:1,baselineskip:1.2,lineH:.8,lineD:.2,ffLineH:.8,FONTS:{},VARIANT:{normal:{fonts:[]},"-generic-variant":{fonts:[]},"-largeOp":{fonts:[]},"-smallOp":{fonts:[]}},RANGES:[],DELIMITERS:{},RULECHAR:45,REMAP:{}},t.Startup.signal.Post("HTML-CSS Jax - no valid font"));this.require.push(MathJax.OutputJax.extensionDir+"/MathEvents.js")},Startup:function(){w=MathJax.Extension.MathEvents.Event;z=MathJax.Extension.MathEvents.Touch;y=MathJax.Extension.MathEvents.Hover;this.ContextMenu=w.ContextMenu;this.Mousedown=w.AltContextMenu;this.Mouseover=y.Mouseover;this.Mouseout=y.Mouseout;this.Mousemove=y.Mousemove;this.hiddenDiv=this.Element("div",{style:{visibility:"hidden",overflow:"hidden",position:"absolute",top:0,height:"1px",width:"auto",padding:0,border:0,margin:0,textAlign:"left",textIndent:0,textTransform:"none",lineHeight:"normal",letterSpacing:"normal",wordSpacing:"normal"}});document.body.firstChild?document.body.insertBefore(this.hiddenDiv,document.body.firstChild):document.body.appendChild(this.hiddenDiv);this.hiddenDiv=this.addElement(this.hiddenDiv,"div",{id:"MathJax_Hidden"});var a=this.addElement(this.hiddenDiv,"div",{style:{width:"5in"}});this.pxPerInch=a.offsetWidth/5;this.hiddenDiv.removeChild(a);this.startMarker=this.createStrut(this.Element("span"),10,!0);this.endMarker=this.addText(this.Element("span"),"x").parentNode;this.HDspan=this.Element("span");this.operaHeightBug&&this.createStrut(this.HDspan,0);if(this.msieInlineBlockAlignBug){this.HDimg=this.addElement(this.HDspan,"img",{style:{height:"0px",width:"1px"}});try{this.HDimg.src="about:blank"}catch(b){}}else this.HDimg=this.createStrut(this.HDspan,0);this.EmExSpan=this.Element("span",{style:{position:"absolute","font-size-adjust":"none"}},[["span",{className:"MathJax_ExBox"}],["span",{className:"MathJax"},[["span",{className:"MathJax_EmBox"}]]]]);this.linebreakSpan=this.Element("span",null,[["hr",{style:{width:"100%",size:1,padding:0,border:0,margin:0}}]]);return v.Styles(this.config.styles,["InitializeHTML",this])},removeSTIXfonts:function(a){for(var b=0,c=a.length;b<c;b++)"STIX"===a[b]&&(a.splice(b,1),c--,b--);"STIX"===this.config.preferredFont&&(this.config.preferredFont=a[0])},PreloadWebFonts:function(){if(e.allowWebFonts&&e.config.preloadWebFonts)for(var a=0,b=e.config.preloadWebFonts.length;a<b;a++){var c=e.FONTDATA.FONTS[e.config.preloadWebFonts[a]];c.available||e.Font.testFont(c)}},InitializeHTML:function(){this.PreloadWebFonts();document.body.appendChild(this.EmExSpan);document.body.appendChild(this.linebreakSpan);this.defaultEx=this.EmExSpan.firstChild.offsetHeight/60;this.defaultEm=this.EmExSpan.lastChild.firstChild.offsetHeight/60;this.defaultWidth=this.linebreakSpan.firstChild.offsetWidth;document.body.removeChild(this.linebreakSpan);document.body.removeChild(this.EmExSpan)},preTranslate:function(a){var b=a.jax[this.id],c,f=b.length,d,g,e,l,n,m,k=!1,q=this.config.linebreaks.automatic,r=this.config.linebreaks.width;q?((k=null!=r.match(/^\s*(\d+(\.\d*)?%\s*)?container\s*$/))?r=r.replace(/\s*container\s*/,""):m=this.defaultWidth,""===r&&(r="100%")):m=1E5;for(c=0;c<f;c++)if(d=b[c],d.parentNode&&((g=d.previousSibling)&&String(g.className).match(/^MathJax(_Display)?( MathJax_Processing)?$/)&&g.parentNode.removeChild(g),g=d.MathJax.elementJax))g.HTMLCSS={display:"block"===g.root.Get("display")},e=l=this.Element("span",{className:"MathJax",id:g.inputID+"-Frame",isMathJax:!0,jaxID:this.id,oncontextmenu:w.Menu,onmousedown:w.Mousedown,onmouseover:w.Mouseover,onmouseout:w.Mouseout,onmousemove:w.Mousemove,onclick:w.Click,ondblclick:w.DblClick}),t.Browser.noContextMenu&&(e.ontouchstart=z.start,e.ontouchend=z.end),g.HTMLCSS.display?(l=this.Element("div",{className:"MathJax_Display"}),l.appendChild(e)):this.msieDisappearingBug&&(e.style.display="inline-block"),l.setAttribute("role","textbox"),l.setAttribute("aria-readonly","true"),l.className+=" MathJax_Processing",d.parentNode.insertBefore(l,d),d.parentNode.insertBefore(this.EmExSpan.cloneNode(!0),d),k&&l.parentNode.insertBefore(this.linebreakSpan.cloneNode(!0),l);for(c=0;c<f;c++)if(d=b[c],d.parentNode&&(n=d.previousSibling,l=n.previousSibling,g=d.MathJax.elementJax)){d=n.firstChild.offsetHeight/60;n=n.lastChild.firstChild.offsetHeight/60;k&&(m=l.previousSibling.firstChild.offsetWidth);if(0===d||"NaN"===d)this.hiddenDiv.appendChild(l),g.HTMLCSS.isHidden=!0,d=this.defaultEx,n=this.defaultEm,k&&(m=this.defaultWidth);l=Math.floor(Math.max(this.config.minScaleAdjust/100,d/this.TeX.x_height/n)*this.config.scale);g.HTMLCSS.scale=l/100;g.HTMLCSS.fontSize=l+"%";g.HTMLCSS.em=g.HTMLCSS.outerEm=n;this.em=n*l/100;g.HTMLCSS.ex=d;g.HTMLCSS.lineWidth=q?this.length2em(r,1,m/this.em):1E6}for(c=0;c<f;c++)if(d=b[c],d.parentNode&&(n=b[c].previousSibling,g=b[c].MathJax.elementJax))k&&(e=n.previousSibling,g.HTMLCSS.isHidden||(e=e.previousSibling),e.parentNode.removeChild(e)),n.parentNode.removeChild(n);a.HTMLCSSeqn=a.HTMLCSSlast=0;a.HTMLCSSi=-1;a.HTMLCSSchunk=this.config.EqnChunk;a.HTMLCSSdelay=!1},Translate:function(a,b){if(a.parentNode){b.HTMLCSSdelay&&(b.HTMLCSSdelay=!1,t.RestartAfter(MathJax.Callback.Delay(this.config.EqnChunkDelay)));var c=a.MathJax.elementJax,f=c.root,d=document.getElementById(c.inputID+"-Frame"),g=c.HTMLCSS.display?d.parentNode:d;this.em=k.mbase.prototype.em=c.HTMLCSS.em*c.HTMLCSS.scale;this.outerEm=c.HTMLCSS.em;this.scale=c.HTMLCSS.scale;this.linebreakWidth=c.HTMLCSS.lineWidth;d.style.fontSize=c.HTMLCSS.fontSize;this.initImg(d);this.initHTML(f,d);f.setTeXclass();try{f.toHTML(d,g)}catch(e){if(e.restart)for(;d.firstChild;)d.removeChild(d.firstChild);throw e;}c.HTMLCSS.isHidden&&a.parentNode.insertBefore(g,a);g.className=g.className.split(/ /)[0];this.hideProcessedMath&&(g.className+=" MathJax_Processed",a.MathJax.preview&&(c.HTMLCSS.preview=a.MathJax.preview,delete a.MathJax.preview),b.HTMLCSSeqn+=b.i-b.HTMLCSSi,b.HTMLCSSi=b.i,b.HTMLCSSeqn>=b.HTMLCSSlast+b.HTMLCSSchunk&&(this.postTranslate(b),b.HTMLCSSchunk=Math.floor(b.HTMLCSSchunk*this.config.EqnChunkFactor),b.HTMLCSSdelay=!0))}},postTranslate:function(a){var b=a.jax[this.id];if(this.hideProcessedMath){for(var c=a.HTMLCSSlast,f=a.HTMLCSSeqn;c<f;c++){var d=b[c];if(d&&d.MathJax.elementJax){d.previousSibling.className=d.previousSibling.className.split(/ /)[0];var g=d.MathJax.elementJax.HTMLCSS;g.preview&&(g.preview.innerHTML="",d.MathJax.preview=g.preview,delete g.preview)}}this.forceReflow&&(b=(document.styleSheets||[])[0]||{},b.disabled=!0,b.disabled=!1);a.HTMLCSSlast=a.HTMLCSSeqn}},getJaxFromMath:function(a){"MathJax_Display"===a.parentNode.className&&(a=a.parentNode);do a=a.nextSibling;while(a&&"script"!==a.nodeName.toLowerCase());return t.getJaxFor(a)},getHoverSpan:function(a,b){return a.root.HTMLspanElement()},getHoverBBox:function(a,b,c){b=b.bbox;a=a.HTMLCSS.outerEm;a={w:b.w*a,h:b.h*a,d:b.d*a};b.width&&(a.width=b.width);return a},Zoom:function(a,b,c,f,d){b.className="MathJax";b.style.fontSize=a.HTMLCSS.fontSize;d=b.appendChild(this.EmExSpan.cloneNode(!0));var g=d.lastChild.firstChild.offsetHeight/60;this.em=k.mbase.prototype.em=g;this.outerEm=g/a.HTMLCSS.scale;d.parentNode.removeChild(d);this.idPostfix="-zoom";a.root.toHTML(b,b);this.idPostfix="";if(d=a.root.HTMLspanElement().bbox.width){b.style.width=Math.floor(f-1.5*e.em)+"px";b.style.display="inline-block";for(a=document.getElementById((a.root.id||"MathJax-Span-"+a.root.spanID)+"-zoom").firstChild;a&&a.style.width!==d;)a=a.nextSibling;a&&(a.style.width="100%")}b.style.position="absolute";d||(c.style.position="absolute");a=b.offsetWidth;f=b.offsetHeight;d=c.offsetHeight;g=c.offsetWidth;0===g&&(g=c.parentNode.offsetWidth);b.style.position=c.style.position="";return{Y:-w.getBBox(b).h,mW:g,mH:d,zW:a,zH:f}},initImg:function(a){},initHTML:function(a,b){},initFont:function(a){var b=e.FONTDATA.FONTS,c=e.config.availableFonts;if(c&&c.length&&e.Font.testFont(b[a]))return b[a].available=!0,null;if(!this.allowWebFonts)return null;b[a].isWebFont=!0;e.FontFaceBug&&(b[a].family=a,e.msieFontCSSBug&&(b[a].family+="-Web"));return v.Styles({"@font-face":this.Font.fontFace(a)})},Remove:function(a){var b=document.getElementById(a.inputID+"-Frame");b&&(a.HTMLCSS.display&&(b=b.parentNode),b.parentNode.removeChild(b));delete a.HTMLCSS},getHD:function(a){var b=a.style.position;a.style.position="absolute";this.HDimg.style.height="0px";a.appendChild(this.HDspan);var c={h:a.offsetHeight};this.HDimg.style.height=c.h+"px";c.d=a.offsetHeight-c.h;c.h-=c.d;c.h/=this.em;c.d/=this.em;a.removeChild(this.HDspan);a.style.position=b;return c},getW:function(a){var b,c;b=(a.bbox||{}).w;var f=a;if(a.bbox&&a.bbox.exactW)return b;if(a.bbox&&0<=b&&!this.initialSkipBug||this.negativeBBoxes||!a.firstChild)b=a.offsetWidth,c=a.parentNode.offsetHeight;else if(a.bbox&&0>b&&this.msieNegativeBBoxBug)b=-a.offsetWidth,c=a.parentNode.offsetHeight;else{if(this.initialSkipBug){var d=a.style.position;a.style.position="absolute";f=this.startMarker;a.insertBefore(f,a.firstChild)}a.appendChild(this.endMarker);b=this.endMarker.offsetLeft-f.offsetLeft;a.removeChild(this.endMarker);this.initialSkipBug&&(a.removeChild(f),a.style.position=d)}null!=c&&(a.parentNode.HH=c/this.em);return b/this.em},Measured:function(a,b){var c=a.bbox;if(null==c.width&&c.w&&!c.isMultiline){var f=this.getW(a);c.rw+=f-c.w;c.w=f;c.exactW=!0}b||(b=a.parentNode);b.bbox||(b.bbox=c);return a},Remeasured:function(a,b){b.bbox=this.Measured(a,b).bbox},MeasureSpans:function(a){var b=[],c,f,d,g,e;f=0;for(d=a.length;f<d;f++)if(c=a[f])g=c.bbox,e=this.parentNode(c),g.exactW||g.width||0===g.w||g.isMultiline?e.bbox||(e.bbox=g):this.negativeBBoxes||!c.firstChild||0<=g.w&&!this.initialSkipBug||0>g.w&&this.msieNegativeBBoxBug?b.push([c]):this.initialSkipBug?(g=this.startMarker.cloneNode(!0),e=this.endMarker.cloneNode(!0),c.insertBefore(g,c.firstChild),c.appendChild(e),b.push([c,g,e,c.style.position]),c.style.position="absolute"):(e=this.endMarker.cloneNode(!0),c.appendChild(e),b.push([c,null,e]));f=0;for(d=b.length;f<d;f++)c=b[f][0],g=c.bbox,e=this.parentNode(c),0<=g.w&&!this.initialSkipBug||this.negativeBBoxes||!c.firstChild?(a=c.offsetWidth,e.HH=e.offsetHeight/this.em):0>g.w&&this.msieNegativeBBoxBug?(a=-c.offsetWidth,e.HH=e.offsetHeight/this.em):a=b[f][2].offsetLeft-((b[f][1]||{}).offsetLeft||0),a/=this.em,g.rw+=a-g.w,g.w=a,g.exactW=!0,e.bbox||(e.bbox=g);f=0;for(d=b.length;f<d;f++)c=b[f],c[1]&&(c[1].parentNode.removeChild(c[1]),c[0].style.position=c[3]),c[2]&&c[2].parentNode.removeChild(c[2])},Em:function(a){return 6E-4>Math.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},EmRounded:function(a){a=(Math.round(a*e.em)+.05)/e.em;return 6E-4>Math.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},unEm:function(a){return parseFloat(a)},Px:function(a){a*=this.em;return(0>a?"-":"")+Math.abs(a).toFixed(1).replace(/\.?0+$/,"")+"px"},unPx:function(a){return parseFloat(a)/this.em},Percent:function(a){return(100*a).toFixed(1).replace(/\.?0+$/,"")+"%"},length2em:function(a,b,c){"string"!==typeof a&&(a=a.toString());if(""===a)return"";if(a===k.SIZE.NORMAL)return 1;if(a===k.SIZE.BIG)return 2;if(a===k.SIZE.SMALL)return.71;if("infinity"===a)return e.BIGDIMEN;var f=this.FONTDATA.TeX_factor;if(a.match(/mathspace$/))return e.MATHSPACE[a]*f;var d=a.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);a=parseFloat(d[1]||"1");d=d[2];null==c&&(c=1);null==b&&(b=1);return"em"===d?a*f:"ex"===d?a*e.TeX.x_height*f:"%"===d?a/100*c:"px"===d?a/e.em:"pt"===d?a/10*f:"pc"===d?1.2*a*f:"in"===d?a*this.pxPerInch/e.em:"cm"===d?a*this.pxPerInch/e.em/2.54:"mm"===d?a*this.pxPerInch/e.em/25.4:"mu"===d?a/18*f*b:a*f*c},thickness2em:function(a,b){var c=e.TeX.rule_thickness;return a===k.LINETHICKNESS.MEDIUM?c:a===k.LINETHICKNESS.THIN?.67*c:a===k.LINETHICKNESS.THICK?1.67*c:this.length2em(a,b,c)},getPadding:function(a){var b={top:0,right:0,bottom:0,left:0},c=!1,f;for(f in b)if(b.hasOwnProperty(f)){var d=a.style["padding"+f.charAt(0).toUpperCase()+f.substr(1)];d&&(b[f]=this.length2em(d),c=!0)}return c?b:!1},getBorders:function(a){var b={top:0,right:0,bottom:0,left:0},c={},f=!1,d;for(d in b)if(b.hasOwnProperty(d)){var e="border"+d.charAt(0).toUpperCase()+d.substr(1);a.style[e+"Style"]&&(f=!0,b[d]=this.length2em(a.style[e+"Width"]),c[e]=[a.style[e+"Width"],a.style[e+"Style"],a.style[e+"Color"]].join(" "))}b.css=c;return f?b:!1},setBorders:function(a,b){if(b)for(var c in b.css)b.css.hasOwnProperty(c)&&(a.style[c]=b.css[c])},createStrut:function(a,b,c){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:b+"px",width:"1px",marginRight:"-1px"}});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createBlank:function(a,b,c){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:"1px",width:this.Em(b)}});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createShift:function(a,b,c){b=this.Element("span",{style:{marginLeft:this.Em(b)},isMathJax:!0});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createSpace:function(a,b,c,f,d,g){b<-c&&(c=-b);var h=this.Em(b+c),l=this.Em(-c);this.msieInlineBlockAlignBug&&(l=this.Em(e.getHD(a.parentNode).d-c));a.isBox||g?(g=null==a.scale?1:a.scale,a.bbox={exactW:!0,h:b*g,d:c*g,w:f*g,rw:f*g,lw:0},a.style.height=h,a.style.verticalAlign=l,a.HH=(b+c)*g):a=this.addElement(a,"span",{style:{height:h,verticalAlign:l},isMathJax:!0});0<=f?(a.style.width=this.Em(f),a.style.display="inline-block",a.style.overflow="hidden"):(this.msieNegativeSpaceBug&&(a.style.height=""),a.style.marginLeft=this.Em(f),e.safariNegativeSpaceBug&&a.parentNode.firstChild==a&&this.createBlank(a,0,!0));d&&d!==k.COLOR.TRANSPARENT&&(a.style.backgroundColor=d,a.style.position="relative");return a},createRule:function(a,b,c,f,d){b<-c&&(c=-b);var g=e.TeX.min_rule_thickness,h=1;0<f&&f*this.em<g&&(f=g/this.em);0<b+c&&(b+c)*this.em<g&&(h=1/(b+c)*(g/this.em),b*=h,c*=h);d=d?"solid "+d:"solid";d=this.Em(f)+" "+d;g=1===h?this.Em(b+c):g+"px";h=this.Em(-c);d=this.addElement(a,"span",{style:{borderLeft:d,display:"inline-block",overflow:"hidden",width:0,height:g,verticalAlign:h},bbox:{h:b,d:c,w:f,rw:f,lw:0,exactW:!0},noAdjust:!0,HH:b+c,isMathJax:!0});0<f&&0==d.offsetWidth&&(d.style.width=this.Em(f));if(a.isBox||"mspace"==a.className)a.bbox=d.bbox,a.HH=b+c;return d},createFrame:function(a,b,c,f,d,e){b<-c&&(c=-b);var h=2*d;this.msieFrameSizeBug&&(f<h&&(f=h),b+c<h&&(b=h-c));this.msieBorderWidthBug&&(h=0);var l=this.Em(b+c-h),n=this.Em(-c-d),h=this.Em(f-h);d=this.Em(d)+" "+e;a=this.addElement(a,"span",{style:{border:d,display:"inline-block",overflow:"hidden",width:h,height:l},bbox:{h:b,d:c,w:f,rw:f,lw:0,exactW:!0},noAdjust:!0,HH:b+c,isMathJax:!0});n&&(a.style.verticalAlign=n);return a},parentNode:function(a){a=a.parentNode;"a"===a.nodeName.toLowerCase()&&(a=a.parentNode);return a},createStack:function(a,b,c){this.msiePaddingWidthBug&&this.createStrut(a,0);var f=String(c).match(/%$/),d=f||null==c?0:c;a=this.addElement(a,"span",{noAdjust:!0,HH:0,isMathJax:!0,style:{display:"inline-block",position:"relative",width:f?"100%":this.Em(d),height:0}});b||(a.parentNode.bbox=a.bbox={exactW:!0,h:-this.BIGDIMEN,d:-this.BIGDIMEN,w:d,lw:this.BIGDIMEN,rw:f||null==c?-this.BIGDIMEN:c},f&&(a.bbox.width=c));return a},createBox:function(a,b){var c=this.addElement(a,"span",{style:{position:"absolute"},isBox:!0,isMathJax:!0});null!=b&&(c.style.width=b);return c},addBox:function(a,b){b.style.position="absolute";b.isBox=b.isMathJax=!0;return a.appendChild(b)},placeBox:function(a,b,c,f){a.isMathJax=!0;var d=e.parentNode(a),g=a.bbox,h=d.bbox;this.msiePlaceBoxBug&&this.addText(a,this.NBSP);this.imgSpaceBug&&this.addText(a,this.imgSpace);var l,n=0;l=null!=a.HH?a.HH:g?Math.max(3,g.h+g.d):a.offsetHeight/this.em;a.noAdjust||(l=Math.round((l+1)*this.em)/this.em,this.msieInlineBlockAlignBug?this.addElement(a,"img",{className:"MathJax_strut",border:0,src:"about:blank",isMathJax:!0,style:{width:0,height:this.Em(l)}}):(this.addElement(a,"span",{isMathJax:!0,style:{display:"inline-block",width:0,height:this.Em(l)}}),e.chromeHeightBug&&(l-=(a.lastChild.offsetHeight-Math.round(l*this.em))/this.em)));if(g&&(this.initialSkipBug&&(0>g.lw&&(n=g.lw,e.createBlank(a,-n,!0)),g.rw>g.w&&e.createBlank(a,g.rw-g.w+.1)),!this.msieClipRectBug&&!g.noclip&&!f)){f=3/this.em;var m=null==g.H?g.h:g.H,k=l+(null==g.D?g.d:g.D)+f,q=g.lw-3*f,r=1E3;this.initialSkipBug&&0>g.lw&&(q=-3*f);g.isFixed&&(r=g.width-q);a.style.clip="rect("+this.Em(l-m-f)+" "+this.Em(r)+" "+this.Em(k)+" "+this.Em(q)+")"}a.style.top=this.Em(-c-l);a.style.left=this.Em(b+n);g&&h&&(null!=g.H&&(null==h.H||g.H+c>h.H)&&(h.H=g.H+c),null!=g.D&&(null==h.D||g.D-c>h.D)&&(h.D=g.D-c),g.h+c>h.h&&(h.h=g.h+c),g.d-c>h.d&&(h.d=g.d-c),null!=h.H&&h.H<=h.h&&delete h.H,null!=h.D&&h.D<=h.d&&delete h.D,g.w+b>h.w&&(h.w=g.w+b,null==h.width&&(d.style.width=this.Em(h.w))),g.rw+b>h.rw&&(h.rw=g.rw+b),g.lw+b<h.lw&&(h.lw=g.lw+b),null==g.width||g.isFixed||(null==h.width&&(d.style.width=h.width="100%",g.minWidth&&(d.style.minWidth=h.minWidth=g.minWidth)),a.style.width=g.width))},alignBox:function(a,b,c){this.placeBox(a,0,c);c=a.bbox;if(!c.isMultiline){var f=null!=c.width&&!c.isFixed,d=0,e=-c.w/2,h="50%";this.initialSkipBug&&(d=c.w-c.rw-.1,e+=c.lw);e=this.msieMarginScaleBug?e*this.em+"px":this.Em(e);f&&(e="",h=50-parseFloat(c.width)/2+"%");t.Insert(a.style,{right:{left:"",right:this.Em(d)},center:{left:h,marginLeft:e}}[b])}},setStackWidth:function(a,b){if("number"===typeof b){a.style.width=this.Em(Math.max(0,b));var c=a.bbox;c&&(c.w=b,c.exactW=!0);if(c=a.parentNode.bbox)c.w=b,c.exactW=!0}else a.style.width=a.parentNode.style.width="100%",a.bbox&&(a.bbox.width=b),a.parentNode.bbox&&(a.parentNode.bbox.width=b)},createDelimiter:function(a,b,c,f,d){if(b){f||(f=1);c instanceof Array||(c=[c,c]);var e=c[1];c=c[0];for(var h={alias:b};h.alias;)b=h.alias,(h=this.FONTDATA.DELIMITERS[b])||(h={HW:[0,this.FONTDATA.VARIANT[k.VARIANT.NORMAL]]});h.load&&t.RestartAfter(v.Require(this.fontDir+"/fontdata-"+h.load+".js"));for(var l=0,n=h.HW.length;l<n;l++)if(h.HW[l][0]*f>=c-.01||l==n-1&&!h.stretch){h.HW[l][2]&&(f*=h.HW[l][2]);h.HW[l][3]&&(b=h.HW[l][3]);c=this.addElement(a,"span");this.createChar(c,[b,h.HW[l][1]],f,d);a.bbox=c.bbox;a.offset=.65*a.bbox.w;a.scale=f;return}if(h.stretch)this["extendDelimiter"+h.dir](a,e,h.stretch,f,d)}else a.bbox={h:0,d:0,w:this.TeX.nulldelimiterspace,lw:0},a.bbox.rw=a.bbox.w,this.createSpace(a,a.bbox.h,a.bbox.d,a.bbox.w)},extendDelimiterV:function(a,b,c,f,d){var e=this.createStack(a,!0),h=this.createBox(e),l=this.createBox(e);this.createChar(h,c.top||c.ext,f,d);this.createChar(l,c.bot||c.ext,f,d);var n={bbox:{w:0,lw:0,rw:0}},m=n,k,q=h.bbox.h+h.bbox.d+l.bbox.h+l.bbox.d,r=-h.bbox.h;this.placeBox(h,0,r,!0);r-=h.bbox.d;c.mid&&(m=this.createBox(e),this.createChar(m,c.mid,f,d),q+=m.bbox.h+m.bbox.d);c.min&&b<q*c.min&&(b=q*c.min);if(b>q){n=this.Element("span");this.createChar(n,c.ext,f,d);k=n.bbox.h+n.bbox.d;var t=k-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fullExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(k-t);t=k-b;for(r+=b+t-n.bbox.h;0<w--;){for(;0<u--;)this.msieCloneNodeBug?(k=this.Element("span"),this.createChar(k,c.ext,f,d)):k=n.cloneNode(!0),k.bbox=n.bbox,r-=t,this.placeBox(this.addBox(e,k),0,r,!0);r+=b-n.bbox.d;c.mid&&w&&(this.placeBox(m,0,r-m.bbox.h,!0),u=v,r+=-(m.bbox.h+m.bbox.d)+b+t-n.bbox.h)}}else r+=(q-b)/2,c.mid&&(this.placeBox(m,0,r-m.bbox.h,!0),r+=-(m.bbox.h+m.bbox.d)),r+=(q-b)/2;this.placeBox(l,0,r-l.bbox.h,!0);r-=l.bbox.h+l.bbox.d;a.bbox={w:Math.max(h.bbox.w,n.bbox.w,l.bbox.w,m.bbox.w),lw:Math.min(h.bbox.lw,n.bbox.lw,l.bbox.lw,m.bbox.lw),rw:Math.max(h.bbox.rw,n.bbox.rw,l.bbox.rw,m.bbox.rw),h:0,d:-r,exactW:!0};a.scale=f;a.offset=.55*a.bbox.w;a.isMultiChar=!0;this.setStackWidth(e,a.bbox.w)},extendDelimiterH:function(a,b,c,f,d){var e=this.createStack(a,!0),h=this.createBox(e),l=this.createBox(e);this.createChar(h,c.left||c.rep,f,d);this.createChar(l,c.right||c.rep,f,d);var k=this.Element("span");this.createChar(k,c.rep,f,d);var m={bbox:{h:-this.BIGDIMEN,d:-this.BIGDIMEN}},p;this.placeBox(h,-h.bbox.lw,0,!0);var q=h.bbox.rw-h.bbox.lw+(l.bbox.rw-l.bbox.lw)-.05,r=h.bbox.rw-h.bbox.lw-.025;c.mid&&(m=this.createBox(e),this.createChar(m,c.mid,f,d),q+=m.bbox.w);c.min&&b<q*c.min&&(b=q*c.min);if(b>q){p=k.bbox.rw-k.bbox.lw;var t=p-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fillExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(p-t);t=p-b;for(r-=k.bbox.lw+b;0<w--;){for(;0<u--;)this.cloneNodeBug?(p=this.Element("span"),this.createChar(p,c.rep,f,d)):p=k.cloneNode(!0),p.bbox=k.bbox,this.placeBox(this.addBox(e,p),r,0,!0),r+=t;c.mid&&w&&(this.placeBox(m,r,0,!0),r+=m.bbox.w-b,u=v)}}else r-=(q-b)/2,c.mid&&(this.placeBox(m,r,0,!0),r+=m.bbox.w),r-=(q-b)/2;this.placeBox(l,r,0,!0);a.bbox={w:r+l.bbox.rw,lw:0,rw:r+l.bbox.rw,H:Math.max(h.bbox.h,k.bbox.h,l.bbox.h,m.bbox.h),D:Math.max(h.bbox.d,k.bbox.d,l.bbox.d,m.bbox.d),h:k.bbox.h,d:k.bbox.d,exactW:!0};a.scale=f;a.isMultiChar=!0;this.setStackWidth(e,a.bbox.w)},createChar:function(a,b,c,e){a.isMathJax=!0;var d=a,g="",h={fonts:[b[1]],noRemap:!0};e&&e===k.VARIANT.BOLD&&(h.fonts=[b[1]+"-bold",b[1]]);"string"!==typeof b[1]&&(h=b[1]);if(b[0]instanceof Array){e=0;for(var l=b[0].length;e<l;e++)g+=String.fromCharCode(b[0][e])}else g=String.fromCharCode(b[0]);b[4]&&(c*=b[4]);1!==c||b[3]?(d=this.addElement(a,"span",{style:{fontSize:this.Percent(c)},scale:c,isMathJax:!0}),this.handleVariant(d,h,g),a.bbox=d.bbox):this.handleVariant(a,h,g);b[2]&&(a.style.marginLeft=this.Em(b[2]));b[3]&&(a.firstChild.style.verticalAlign=this.Em(b[3]),a.bbox.h+=b[3],0>a.bbox.h&&(a.bbox.h=0));b[5]&&(a.bbox.h+=b[5]);b[6]&&(a.bbox.d+=b[6]);this.AccentBug&&0===a.bbox.w&&(d.firstChild.nodeValue+=this.NBSP)},positionDelimiter:function(a,b){b-=a.bbox.h;a.bbox.d-=b;a.bbox.h+=b;b&&(this.safariVerticalAlignBug||this.konquerorVerticalAlignBug||this.operaVerticalAlignBug&&a.isMultiChar?(""===a.firstChild.style.display&&""!==a.style.top&&(a=a.firstChild,b-=e.unEm(a.style.top)),a.style.position="relative",a.style.top=this.Em(-b)):(a.style.verticalAlign=this.Em(b),e.ffVerticalAlignBug&&e.createRule(a.parentNode,a.bbox.h,0,0)))},handleVariant:function(a,b,c){var e="",d,g,h,l=a,n=!!a.style.fontFamily;if(0!==c.length){a.bbox||(a.bbox={w:0,h:-this.BIGDIMEN,d:-this.BIGDIMEN,rw:-this.BIGDIMEN,lw:this.BIGDIMEN});b||(b=this.FONTDATA.VARIANT[k.VARIANT.NORMAL]);h=b;for(var m=0,p=c.length;m<p;m++){b=h;d=c.charCodeAt(m);c.charAt(m);if(55296<=d&&56319>d)m++,d=(d-55296<<10)+(c.charCodeAt(m)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(d,b),d=b.n,b=b.variant);else{var q,r=this.FONTDATA.RANGES;g=0;for(q=r.length;g<q;g++)if("alpha"!==r[g].name||!b.noLowerCase){var t=b["offset"+r[g].offset];if(t&&d>=r[g].low&&d<=r[g].high){r[g].remap&&r[g].remap[d]?d=t+r[g].remap[d]:(d=d-r[g].low+t,r[g].add&&(d+=r[g].add));b["variant"+r[g].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+r[g].offset]]);break}}}b.remap&&b.remap[d]&&(b.remap[d]instanceof Array?(b=b.remap[d],d=b[0],b=this.FONTDATA.VARIANT[b[1]]):"string"===typeof b.remap[d]?(c=b.remap[d]+c.substr(m+1),m=0,p=c.length,d=c.charCodeAt(0)):(d=b.remap[d],b.remap.variant&&(b=this.FONTDATA.VARIANT[b.remap.variant])));this.FONTDATA.REMAP[d]&&!b.noRemap&&(d=this.FONTDATA.REMAP[d],d instanceof Array&&(b=this.FONTDATA.VARIANT[d[1]],d=d[0]),"string"===typeof d&&(c=d+c.substr(m+1),m=0,p=c.length,d=d.charCodeAt(0)));g=this.lookupChar(b,d);b=g[d];if(n||!this.checkFont(g,l.style)&&!b[5].img)e.length&&(this.addText(l,e),e=""),q=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!g.directory||n,n=!1,l!==a&&(q=!this.checkFont(g,a.style),l=a),q&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,g,l!==a);e=this.handleChar(l,g,b,d,e);(b[5]||{}).space||(b[0]/1E3>a.bbox.h&&(a.bbox.h=b[0]/1E3),b[1]/1E3>a.bbox.d&&(a.bbox.d=b[1]/1E3));a.bbox.w+b[3]/1E3<a.bbox.lw&&(a.bbox.lw=a.bbox.w+b[3]/1E3);a.bbox.w+b[4]/1E3>a.bbox.rw&&(a.bbox.rw=a.bbox.w+b[4]/1E3);a.bbox.w+=b[2]/1E3}e.length&&this.addText(l,e);a.scale&&1!==a.scale&&(a.bbox.h*=a.scale,a.bbox.d*=a.scale,a.bbox.w*=a.scale,a.bbox.lw*=a.scale,a.bbox.rw*=a.scale);1==c.length&&g.skew&&g.skew[d]&&(a.bbox.skew=g.skew[d])}},checkFont:function(a,b){var c=b.fontWeight||"normal";c.match(/^\d+$/)&&(c=600<=parseInt(c)?"bold":"normal");return a.family.replace(/'/g,"")===b.fontFamily.replace(/'/g,"")&&(a.style||"normal")===(b.fontStyle||"normal")&&(a.weight||"normal")===c},handleFont:function(a,b,c){a.style.fontFamily=b.family;b.directory||(a.style.fontSize=Math.floor(100/e.scale+.5)+"%");if(!e.FontFaceBug||!b.isWebFont){var f=b.style||"normal";b=b.weight||"normal";if("normal"!==f||c)a.style.fontStyle=f;if("normal"!==b||c)a.style.fontWeight=b}},handleChar:function(a,b,c,f,d){var g=c[5];if(g.space)return d.length&&this.addText(a,d),e.createShift(a,c[2]/1E3),"";if(g.img)return this.handleImg(a,b,c,f,d);if(g.isUnknown&&this.FONTDATA.DELIMITERS[f])return d.length&&this.addText(a,d),d=a.scale,e.createDelimiter(a,f,0,1,b),"V"===this.FONTDATA.DELIMITERS[f].dir&&(a.style.verticalAlign=this.Em(a.bbox.d),a.bbox.h+=a.bbox.d,a.bbox.d=0),a.scale=d,c[0]=1E3*a.bbox.h,c[1]=1E3*a.bbox.d,c[2]=1E3*a.bbox.w,c[3]=1E3*a.bbox.lw,c[4]=1E3*a.bbox.rw,"";null==g.c&&(65535>=f?g.c=String.fromCharCode(f):(b=f-65536,g.c=String.fromCharCode((b>>10)+55296)+String.fromCharCode((b&1023)+56320)));if(g.rfix)return this.addText(a,d+g.c),e.createShift(a,g.rfix/1E3),"";if(c[2]||!this.msieAccentBug||d.length)return d+g.c;e.createShift(a,c[3]/1E3);e.createShift(a,(c[4]-c[3])/1E3);this.addText(a,g.c);e.createShift(a,-c[4]/1E3);return""},handleImg:function(a,b,c,e,d){return d},lookupChar:function(a,b){var c,f;if(!a.FONTS){var d=this.FONTDATA.FONTS,g=a.fonts||this.FONTDATA.VARIANT.normal.fonts;g instanceof Array||(g=[g]);a.fonts!=g&&(a.fonts=g);a.FONTS=[];c=0;for(f=g.length;c<f;c++)d[g[c]]&&(a.FONTS.push(d[g[c]]),d[g[c]].name=g[c])}c=0;for(f=a.FONTS.length;c<f;c++)if(d=a.FONTS[c],"string"===typeof d&&(delete a.FONTS,this.loadFont(d)),d[b])if(5===d[b].length&&(d[b][5]={}),e.allowWebFonts&&!d.available)this.loadWebFont(d);else return d;else this.findBlock(d,b);return this.unknownChar(a,b)},unknownChar:function(a,b){var c=a.defaultFont||{family:e.config.undefinedFamily};a.bold&&(c.weight="bold");a.italic&&(c.style="italic");c[b]||(c[b]=[800,200,500,0,500,{isUnknown:!0}]);t.signal.Post(["HTML-CSS Jax - unknown char",b,a]);return c},findBlock:function(a,b){if(a.Ranges)for(var c=0,e=a.Ranges.length;c<e&&!(b<a.Ranges[c][0]);c++)if(b<=a.Ranges[c][1]){for(var d=a.Ranges[c][2],g=a.Ranges.length-1;0<=g;g--)a.Ranges[g][2]==d&&a.Ranges.splice(g,1);this.loadFont(a.directory+"/"+d+".js")}},loadFont:function(a){var b=MathJax.Callback.Queue();b.Push(["Require",v,this.fontDir+"/"+a]);this.imgFonts&&(MathJax.isPacked||(a=a.replace(/\/([^\/]*)$/,e.imgPacked+"/$1")),b.Push(["Require",v,this.webfontDir+"/png/"+a]));t.RestartAfter(b.Push({}))},loadWebFont:function(a){a.available=a.isWebFont=!0;e.FontFaceBug&&(a.family=a.name,e.msieFontCSSBug&&(a.family+="-Web"));t.RestartAfter(this.Font.loadWebFont(a))},loadWebFontError:function(a,b){t.Startup.signal.Post("HTML-CSS Jax - disable web fonts");a.isWebFont=!1;this.config.imageFont&&this.config.imageFont===this.fontInUse?(this.imgFonts=!0,t.Startup.signal.Post("HTML-CSS Jax - switch to image fonts"),t.Startup.signal.Post("HTML-CSS Jax - using image fonts"),x(["WebFontNotAvailable","Web-Fonts not available -- using image fonts instead"],null,3E3),v.Require(this.directory+"/imageFonts.js",b)):(this.allowWebFonts=!1,b())},Element:MathJax.HTML.Element,addElement:MathJax.HTML.addElement,TextNode:MathJax.HTML.TextNode,addText:MathJax.HTML.addText,ucMatch:MathJax.HTML.ucMatch,BIGDIMEN:1E7,ID:0,idPostfix:"",GetID:function(){this.ID++;return this.ID},MATHSPACE:{veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18},TeX:{x_height:.430554,quad:1,num1:.676508,num2:.393732,num3:.44373,denom1:.685951,denom2:.344841,sup1:.412892,sup2:.362892,sup3:.288888,sub1:.15,sub2:.247217,sup_drop:.386108,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111111,big_op_spacing2:.166666,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,scriptspace:.1,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.1,min_rule_thickness:1.25},NBSP:"\u00a0",rfuzz:0});MathJax.Hub.Register.StartupHook("mml Jax Ready",function(){k=MathJax.ElementJax.mml;k.mbase.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);"mrow"!=this.type&&(a=this.HTMLhandleSize(a));for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&this.data[b].toHTML(a);for(var e=this.HTMLcomputeBBox(a),d=a.bbox.h,g=a.bbox.d,b=0,c=e.length;b<c;b++)e[b].HTMLstretchV(a,d,g);e.length&&this.HTMLcomputeBBox(a,!0);this.HTMLlineBreaks(a)&&(a=this.HTMLmultiline(a));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLlineBreaks:function(){return!1},HTMLmultiline:function(){k.mbase.HTMLautoloadFile("multiline")},HTMLcomputeBBox:function(a,b,c,e){null==c&&(c=0);null==e&&(e=this.data.length);a=a.bbox={exactW:!0};for(var d=[];c<e;){var g=this.data[c];g&&(!b&&g.HTMLcanStretch("Vertical")&&(d.push(g),g=g.CoreMO()||g),this.HTMLcombineBBoxes(g,a),c++)}this.HTMLcleanBBox(a);return d},HTMLcombineBBoxes:function(a,b){null==b.w&&this.HTMLemptyBBox(b);var c=a.bbox?a:a.HTMLspanElement();if(c&&c.bbox){var f=c.bbox;f.d>b.d&&(b.d=f.d);f.h>b.h&&(b.h=f.h);null!=f.D&&f.D>b.D&&(b.D=f.D);null!=f.H&&f.H>b.H&&(b.H=f.H);c.style.paddingLeft&&(b.w+=e.unEm(c.style.paddingLeft)*(c.scale||1));b.w+f.lw<b.lw&&(b.lw=b.w+f.lw);b.w+f.rw>b.rw&&(b.rw=b.w+f.rw);b.w+=f.w;c.style.paddingRight&&(b.w+=e.unEm(c.style.paddingRight)*(c.scale||1));f.width&&(b.width=f.width,b.minWidth=f.minWidth);f.ic?b.ic=f.ic:delete b.ic;b.exactW&&!f.exactW&&delete b.exactW}},HTMLemptyBBox:function(a){a.h=a.d=a.H=a.D=a.rw=-e.BIGDIMEN;a.w=0;a.lw=e.BIGDIMEN;return a},HTMLcleanBBox:function(a){a.h===this.BIGDIMEN&&(a.h=a.d=a.H=a.D=a.w=a.rw=a.lw=0);a.D<=a.d&&delete a.D;a.H<=a.h&&delete a.H},HTMLzeroBBox:function(){return{h:0,d:0,w:0,lw:0,rw:0}},HTMLcanStretch:function(a){if(this.isEmbellished()){var b=this.Core();if(b&&b!==this)return b.HTMLcanStretch(a)}return!1},HTMLstretchH:function(a,b){return this.HTMLspanElement()},HTMLstretchV:function(a,b,c){return this.HTMLspanElement()},HTMLnotEmpty:function(a){for(;a;){if("mrow"!==a.type&&"texatom"!==a.type||1<a.data.length)return!0;a=a.data[0]}return!1},HTMLmeasureChild:function(a,b){this.data[a]?e.Measured(this.data[a].toHTML(b),b):b.bbox=this.HTMLzeroBBox()},HTMLboxChild:function(a,b){this.data[a]||this.SetData(a,k.mrow());return this.data[a].toHTML(b)},HTMLcreateSpan:function(a){if(this.spanID){var b=this.HTMLspanElement();if(b&&(b.parentNode===a||(b.parentNode||{}).parentNode===a)){for(;b.firstChild;)b.removeChild(b.firstChild);b.bbox=this.HTMLzeroBBox();b.scale=1;b.isMultChar=b.HH=null;b.style.cssText="";return b}}this.href&&(a=e.addElement(a,"a",{href:this.href,isMathJax:!0}));a=e.addElement(a,"span",{className:this.type,isMathJax:!0});e.imgHeightBug&&(a.style.display="inline-block");this["class"]&&(a.className+=" "+this["class"]);this.spanID||(this.spanID=e.GetID());a.id=(this.id||"MathJax-Span-"+this.spanID)+e.idPostfix;a.bbox=this.HTMLzeroBBox();this.styles={};this.style&&(a.style.cssText=this.style,a.style.fontSize&&(this.mathsize=a.style.fontSize,a.style.fontSize=""),this.styles={border:e.getBorders(a),padding:e.getPadding(a)},this.styles.border&&(a.style.border=""),this.styles.padding&&(a.style.padding=""));this.href&&(a.parentNode.bbox=a.bbox);return a},HTMLspanElement:function(){return this.spanID?document.getElementById((this.id||"MathJax-Span-"+this.spanID)+e.idPostfix):null},HTMLhandleVariant:function(a,b,c){e.handleVariant(a,b,c)},HTMLhandleSize:function(a){a.scale||(a.scale=this.HTMLgetScale(),1!==a.scale&&(a.style.fontSize=e.Percent(a.scale)));return a},HTMLhandleColor:function(a){var b=this.getValues("mathcolor","color");this.mathbackground&&(b.mathbackground=this.mathbackground);this.background&&(b.background=this.background);this.style&&a.style.backgroundColor&&(b.mathbackground=a.style.backgroundColor,a.style.backgroundColor="transparent");var c=(this.styles||{}).border,f=(this.styles||{}).padding;b.color&&!this.mathcolor&&(b.mathcolor=b.color);b.background&&!this.mathbackground&&(b.mathbackground=b.background);b.mathcolor&&(a.style.color=b.mathcolor);if(b.mathbackground&&b.mathbackground!==k.COLOR.TRANSPARENT||c||f){var d=a.bbox,g=d.exact?0:1/e.em,h=0,l=0,n=a.style.paddingLeft,m=a.style.paddingRight;this.isToken&&(h=d.lw,l=d.rw-d.w);""!==n&&(h+=e.unEm(n)*(a.scale||1));""!==m&&(l-=e.unEm(m)*(a.scale||1));var l=e.PaddingWidthBug||d.keepPadding||d.exactW?0:l-h,n=Math.max(0,e.getW(a)+l),m=d.h+d.d,p=-d.d,q=0,r=0;0<n&&(n+=2*g,h-=g);0<m&&(m+=2*g,p-=g);l=-n-h;c&&(l-=c.right,p-=c.bottom,q+=c.left,r+=c.right,d.h+=c.top,d.d+=c.bottom,d.w+=c.left+c.right,d.lw-=c.left,d.rw+=c.right);f&&(m+=f.top+f.bottom,n+=f.left+f.right,l-=f.right,p-=f.bottom,q+=f.left,r+=f.right,d.h+=f.top,d.d+=f.bottom,d.w+=f.left+f.right,d.lw-=f.left,d.rw+=f.right);r&&(a.style.paddingRight=e.Em(r));f=e.Element("span",{id:"MathJax-Color-"+this.spanID+e.idPostfix,isMathJax:!0,style:{display:"inline-block",backgroundColor:b.mathbackground,width:e.Em(n),height:e.Em(m),verticalAlign:e.Em(p),marginLeft:e.Em(h),marginRight:e.Em(l)}});e.setBorders(f,c);d.width&&(f.style.width=d.width,f.style.marginRight="-"+d.width);e.msieInlineBlockAlignBug&&(f.style.position="relative",f.style.width=f.style.height=0,f.style.verticalAlign=f.style.marginLeft=f.style.marginRight="",f.style.border=f.style.padding="",c&&e.msieBorderWidthBug&&(m+=c.top+c.bottom,n+=c.left+c.right),f.style.width=e.Em(q+g),e.placeBox(e.addElement(f,"span",{noAdjust:!0,isMathJax:!0,style:{display:"inline-block",position:"absolute",overflow:"hidden",background:b.mathbackground||"transparent",width:e.Em(n),height:e.Em(m)}}),h,d.h+g),e.setBorders(f.firstChild,c));a.parentNode.insertBefore(f,a);e.msieColorPositionBug&&(a.style.position="relative");return f}return null},HTMLremoveColor:function(){var a=document.getElementById("MathJax-Color-"+this.spanID+e.idPostfix);a&&a.parentNode.removeChild(a)},HTMLhandleSpace:function(a){if(this.useMMLspacing){if("mo"===this.type){var b=this.getValues("scriptlevel","lspace","rspace");if(0>=b.scriptlevel||this.hasValue("lspace")||this.hasValue("rspace")){var c=this.HTMLgetMu(a);b.lspace=Math.max(0,e.length2em(b.lspace,c));b.rspace=Math.max(0,e.length2em(b.rspace,c));for(var c=this,f=this.Parent();f&&f.isEmbellished()&&f.Core()===c;)c=f,f=f.Parent(),a=c.HTMLspanElement();b.lspace&&(a.style.paddingLeft=e.Em(b.lspace));b.rspace&&(a.style.paddingRight=e.Em(b.rspace))}}}else b=this.texSpacing(),""!==b&&(b=e.length2em(b,this.HTMLgetScale())/(a.scale||1),a.style.paddingLeft&&(b+=e.unEm(a.style.paddingLeft)),a.style.paddingLeft=e.Em(b))},HTMLgetScale:function(){var a=1,b=this.getValues("mathsize","scriptlevel","fontsize");if(this.style){var c=this.HTMLspanElement();""!=c.style.fontSize&&(b.fontsize=c.style.fontSize)}b.fontsize&&!this.mathsize&&(b.mathsize=b.fontsize);0!==b.scriptlevel&&(2<b.scriptlevel&&(b.scriptlevel=2),a=Math.pow(this.Get("scriptsizemultiplier"),b.scriptlevel),b.scriptminsize=e.length2em(this.Get("scriptminsize")),a<b.scriptminsize&&(a=b.scriptminsize));this.isToken&&(a*=e.length2em(b.mathsize));return a},HTMLgetMu:function(a){var b=1,c=this.getValues("scriptlevel","scriptsizemultiplier");a.scale&&1!==a.scale&&(b=1/a.scale);0!==c.scriptlevel&&(2<c.scriptlevel&&(c.scriptlevel=2),b=Math.sqrt(Math.pow(c.scriptsizemultiplier,c.scriptlevel)));return b},HTMLgetVariant:function(){var a=this.getValues("mathvariant","fontfamily","fontweight","fontstyle");a.hasVariant=this.Get("mathvariant",!0);a.hasVariant||(a.family=a.fontfamily,a.weight=a.fontweight,a.style=a.fontstyle);if(this.style){var b=this.HTMLspanElement();!a.family&&b.style.fontFamily&&(a.family=b.style.fontFamily);!a.weight&&b.style.fontWeight&&(a.weight=b.style.fontWeight);!a.style&&b.style.fontStyle&&(a.style=b.style.fontStyle)}a.weight&&a.weight.match(/^\d+$/)&&(a.weight=600<parseInt(a.weight)?"bold":"normal");b=a.mathvariant;this.variantForm&&(b="-"+e.fontInUse+"-variant");if(a.family&&!a.hasVariant)return!a.weight&&a.mathvariant.match(/bold/)&&(a.weight="bold"),!a.style&&a.mathvariant.match(/italic/)&&(a.style="italic"),{FONTS:[],fonts:[],noRemap:!0,defaultFont:{family:a.family,style:a.style,weight:a.weight}};"bold"===a.weight?b={normal:k.VARIANT.BOLD,italic:k.VARIANT.BOLDITALIC,fraktur:k.VARIANT.BOLDFRAKTUR,script:k.VARIANT.BOLDSCRIPT,"sans-serif":k.VARIANT.BOLDSANSSERIF,"sans-serif-italic":k.VARIANT.SANSSERIFBOLDITALIC}[b]||b:"normal"===a.weight&&(b={bold:k.VARIANT.normal,"bold-italic":k.VARIANT.ITALIC,"bold-fraktur":k.VARIANT.FRAKTUR,"bold-script":k.VARIANT.SCRIPT,"bold-sans-serif":k.VARIANT.SANSSERIF,"sans-serif-bold-italic":k.VARIANT.SANSSERIFITALIC}[b]||b);"italic"===a.style?b={normal:k.VARIANT.ITALIC,bold:k.VARIANT.BOLDITALIC,"sans-serif":k.VARIANT.SANSSERIFITALIC,"bold-sans-serif":k.VARIANT.SANSSERIFBOLDITALIC}[b]||b:"normal"===a.style&&(b={italic:k.VARIANT.NORMAL,"bold-italic":k.VARIANT.BOLD,"sans-serif-italic":k.VARIANT.SANSSERIF,"sans-serif-bold-italic":k.VARIANT.BOLDSANSSERIF}[b]||b);b in e.FONTDATA.VARIANT||(b="normal");return e.FONTDATA.VARIANT[b]}},{HTMLautoload:function(){t.RestartAfter(v.Require(e.autoloadDir+"/"+this.type+".js"))},HTMLautoloadFile:function(a){t.RestartAfter(v.Require(e.autoloadDir+"/"+a+".js"))},HTMLstretchH:function(a,b){this.HTMLremoveColor();return this.toHTML(a,b)},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();return this.toHTML(a,b,c)}});k.chars.Augment({toHTML:function(a,b,c,f){var d=this.data.join("").replace(/[\u2061-\u2064]/g,"");c&&(d=c(d,f));b.fontInherit?(e.addElement(a,"span",{style:{"font-size":Math.floor(100/e.scale+.5)+"%"}},[d]),b.bold&&(a.lastChild.style.fontWeight="bold"),b.italic&&(a.lastChild.style.fontStyle="italic"),b=e.getHD(a),c=e.getW(a),a.bbox={h:b.h,d:b.d,w:c,lw:0,rw:c,exactW:!0}):this.HTMLhandleVariant(a,b,d)}});k.entity.Augment({toHTML:function(a,b,c,f){var d=this.toString().replace(/[\u2061-\u2064]/g,"");c&&(d=c(d,f));b.fontInherit?(e.addElement(a,"span",{style:{"font-size":Math.floor(100/e.scale+.5)+"%"}},[d]),b.bold&&(a.lastChild.style.fontWeight="bold"),b.italic&&(a.lastChild.style.fontStyle="italic"),b=e.getHD(a),c=e.getW(a),a.bbox={h:b.h,d:b.d,w:c,lw:0,rw:c,exactW:!0}):this.HTMLhandleVariant(a,b,d)}});k.mi.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));a.bbox=null;for(var b=this.HTMLgetVariant(),c=0,f=this.data.length;c<f;c++)this.data[c]&&this.data[c].toHTML(a,b);a.bbox||(a.bbox=this.HTMLzeroBBox());c=this.data.join("");f=a.bbox;f.skew&&1!==c.length&&delete f.skew;f.rw>f.w&&1===c.length&&!b.noIC&&(f.ic=f.rw-f.w,e.createBlank(a,f.ic),f.w=f.rw);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.mn.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));a.bbox=null;for(var b=this.HTMLgetVariant(),c=0,e=this.data.length;c<e;c++)this.data[c]&&this.data[c].toHTML(a,b);a.bbox||(a.bbox=this.HTMLzeroBBox());1!==this.data.join("").length&&delete a.bbox.skew;this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.mo.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));if(0==this.data.length)return a;a.bbox=null;var b=this.data.join(""),c=this.HTMLgetVariant(),f=this.getValues("largeop","displaystyle");f.largeop&&(c=e.FONTDATA.VARIANT[f.displaystyle?"-largeOp":"-smallOp"]);var d=this.CoreParent(),g=d&&d.isa(k.msubsup)&&this!==d.data[d.base],h=g?this.HTMLremapChars:null;if(1===b.length&&d&&d.isa(k.munderover)&&1===this.CoreText(d.data[d.base]).length){var l=d.data[d.over],n=d.data[d.under];l&&this===l.CoreMO()&&d.Get("accent")?h=e.FONTDATA.REMAPACCENT:n&&this===n.CoreMO()&&d.Get("accentunder")&&(h=e.FONTDATA.REMAPACCENTUNDER)}g&&b.match(/['`"\u00B4\u2032-\u2037\u2057]/)&&(c=e.FONTDATA.VARIANT["-"+e.fontInUse+"-variant"]);d=0;for(g=this.data.length;d<g;d++)this.data[d]&&this.data[d].toHTML(a,c,this.HTMLremap,h);a.bbox||(a.bbox=this.HTMLzeroBBox());1!==b.length&&delete a.bbox.skew;e.AccentBug&&0===a.bbox.w&&1===b.length&&a.firstChild&&(a.firstChild.nodeValue+=e.NBSP,e.createSpace(a,0,0,-a.offsetWidth/e.em));f.largeop&&(b=(a.bbox.h-a.bbox.d)/2-e.TeX.axis_height*a.scale,e.safariVerticalAlignBug&&"IMG"===a.lastChild.nodeName?a.lastChild.style.verticalAlign=e.Em(e.unEm(a.lastChild.style.verticalAlign||0)/e.em-b/a.scale):e.konquerorVerticalAlignBug&&"IMG"===a.lastChild.nodeName?(a.style.position="relative",a.lastChild.style.position="relative",a.lastChild.style.top=e.Em(b/a.scale)):a.style.verticalAlign=e.Em(-b/a.scale),a.bbox.h-=b,a.bbox.d+=b,a.bbox.rw>a.bbox.w&&(a.bbox.ic=a.bbox.rw-a.bbox.w,e.createBlank(a,a.bbox.ic),a.bbox.w=a.bbox.rw));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},CoreParent:function(){for(var a=this;a&&a.isEmbellished()&&a.CoreMO()===this&&!a.isa(k.math);)a=a.Parent();return a},CoreText:function(a){if(!a)return"";if(a.isEmbellished())return a.CoreMO().data.join("");for(;(a.isa(k.mrow)||a.isa(k.TeXAtom)||a.isa(k.mstyle)||a.isa(k.mphantom))&&1===a.data.length&&a.data[0];)a=a.data[0];return a.isToken?a.data.join(""):""},HTMLremapChars:{"*":"\u2217",'"':"\u2033","\u00b0":"\u2218","\u00b2":"2","\u00b3":"3","\u00b4":"\u2032","\u00b9":"1"},HTMLremap:function(a,b){a=a.replace(/-/g,"\u2212");b&&(a=a.replace(/'/g,"\u2032").replace(/`/g,"\u2035"),1===a.length&&(a=b[a]||a));return a},HTMLcanStretch:function(a){if(!this.Get("stretchy"))return!1;var b=this.data.join("");if(1<b.length)return!1;var c=this.CoreParent();if(c&&c.isa(k.munderover)&&1===this.CoreText(c.data[c.base]).length){var f=c.data[c.over],d=c.data[c.under];f&&this===f.CoreMO()&&c.Get("accent")?b=e.FONTDATA.REMAPACCENT[b]||b:d&&this===d.CoreMO()&&c.Get("accentunder")&&(b=e.FONTDATA.REMAPACCENTUNDER[b]||b)}return(b=e.FONTDATA.DELIMITERS[b.charCodeAt(0)])&&b.dir==a.substr(0,1)},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();var f=this.getValues("symmetric","maxsize","minsize"),d=this.HTMLspanElement(),g=this.HTMLgetMu(d),h,l=e.TeX.axis_height,k=d.scale;h=f.symmetric?2*Math.max(b-l,c+l):b+c;f.maxsize=e.length2em(f.maxsize,g,d.bbox.h+d.bbox.d);f.minsize=e.length2em(f.minsize,g,d.bbox.h+d.bbox.d);h=Math.max(f.minsize,Math.min(f.maxsize,h));d=this.HTMLcreateSpan(a);e.createDelimiter(d,this.data.join("").charCodeAt(0),h,k);h=f.symmetric?(d.bbox.h+d.bbox.d)/2+l:(d.bbox.h+d.bbox.d)*b/(b+c);e.positionDelimiter(d,h);this.HTMLhandleSpace(d);this.HTMLhandleColor(d);return d},HTMLstretchH:function(a,b){this.HTMLremoveColor();var c=this.getValues("maxsize","minsize","mathvariant","fontweight");("bold"===c.fontweight||600<=parseInt(c.fontweight))&&!this.Get("mathvariant",!0)&&(c.mathvariant=k.VARIANT.BOLD);var f=this.HTMLspanElement(),d=this.HTMLgetMu(f),g=f.scale;c.maxsize=e.length2em(c.maxsize,d,f.bbox.w);c.minsize=e.length2em(c.minsize,d,f.bbox.w);b=Math.max(c.minsize,Math.min(c.maxsize,b));f=this.HTMLcreateSpan(a);e.createDelimiter(f,this.data.join("").charCodeAt(0),b,g,c.mathvariant);this.HTMLhandleSpace(f);this.HTMLhandleColor(f);return f}});k.mtext.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));var b=this.HTMLgetVariant();if(e.config.mtextFontInherit||"merror"===this.Parent().type)b={bold:b.bold,italic:b.italic,fontInherit:!0};for(var c=0,f=this.data.length;c<f;c++)this.data[c]&&this.data[c].toHTML(a,b);a.bbox||(a.bbox=this.HTMLzeroBBox());1!==this.data.join("").length&&delete a.bbox.skew;this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.merror.Augment({toHTML:function(a){var b=MathJax.HTML.addElement(a,"span",{style:{display:"inline-block"}});a=this.SUPER(arguments).toHTML.call(this,b);var c=e.getHD(b),f=e.getW(b);b.bbox={h:c.h,d:c.d,w:f,lw:0,rw:f,exactW:!0};b.id=a.id;a.id=null;return b}});k.ms.Augment({toHTML:k.mbase.HTMLautoload});k.mglyph.Augment({toHTML:k.mbase.HTMLautoload});k.mspace.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var b=this.getValues("height","depth","width"),c=this.HTMLgetMu(a);b.mathbackground=this.mathbackground;this.background&&!this.mathbackground&&(b.mathbackground=this.background);var f=e.length2em(b.height,c),d=e.length2em(b.depth,c),c=e.length2em(b.width,c);e.createSpace(a,f,d,c,b.mathbackground,!0);return a}});k.mphantom.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var f=this.data[0].toHTML(a);null!=c?e.Remeasured(this.data[0].HTMLstretchV(a,b,c),a):null!=b?e.Remeasured(this.data[0].HTMLstretchH(a,b),a):f=e.Measured(f,a);a.bbox={w:f.bbox.w,h:f.bbox.h,d:f.bbox.d,lw:0,rw:0,exactW:!0};b=0;for(c=a.childNodes.length;b<c;b++)a.childNodes[b].style.visibility="hidden"}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mpadded.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var f=e.createStack(a,!0),d=e.createBox(f),g=this.data[0].toHTML(d);null!=c?e.Remeasured(this.data[0].HTMLstretchV(d,b,c),d):null!=b?e.Remeasured(this.data[0].HTMLstretchH(d,b),d):e.Measured(g,d);b=this.getValues("height","depth","width","lspace","voffset");var g=c=0,h=this.HTMLgetMu(a);b.lspace&&(c=this.HTMLlength2em(d,b.lspace,h));b.voffset&&(g=this.HTMLlength2em(d,b.voffset,h));e.placeBox(d,c,g);a.bbox={h:d.bbox.h,d:d.bbox.d,w:d.bbox.w,exactW:!0,lw:Math.min(0,d.bbox.lw+c),rw:Math.max(d.bbox.w,d.bbox.rw+c),H:Math.max(null==d.bbox.H?-e.BIGDIMEN:d.bbox.H,d.bbox.h+g),D:Math.max(null==d.bbox.D?-e.BIGDIMEN:d.bbox.D,d.bbox.d-g)};""!==b.height&&(a.bbox.h=this.HTMLlength2em(d,b.height,h,"h",0));""!==b.depth&&(a.bbox.d=this.HTMLlength2em(d,b.depth,h,"d",0));""!==b.width&&(a.bbox.w=this.HTMLlength2em(d,b.width,h,"w",0));a.bbox.H<=a.bbox.h&&delete a.bbox.H;a.bbox.D<=a.bbox.d&&delete a.bbox.D;d=/^\s*(\d+(\.\d*)?|\.\d+)\s*(pt|em|ex|mu|px|pc|in|mm|cm)\s*$/;a.bbox.exact=!!(this.data[0]&&0==this.data[0].data.length||d.exec(b.height)||d.exec(b.width)||d.exec(b.depth));e.setStackWidth(f,a.bbox.w)}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLlength2em:function(a,b,c,f,d){null==d&&(d=-e.BIGDIMEN);var g=String(b).match(/width|height|depth/),g=g?a.bbox[g[0].charAt(0)]:f?a.bbox[f]:0;c=e.length2em(b,c,g);return f&&String(b).match(/^\s*[-+]/)?Math.max(d,a.bbox[f]+c):c},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mrow.Augment({HTMLlineBreaks:function(a){return this.parent.linebreakContainer?e.config.linebreaks.automatic&&a.bbox.w>e.linebreakWidth||this.hasNewline():!1},HTMLstretchH:function(a,b){this.HTMLremoveColor();var c=this.HTMLspanElement();this.data[this.core].HTMLstretchH(c,b);this.HTMLcomputeBBox(c,!0);this.HTMLhandleColor(c);return c},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();a=this.HTMLspanElement();this.data[this.core].HTMLstretchV(a,b,c);this.HTMLcomputeBBox(a,!0);this.HTMLhandleColor(a);return a}});k.mstyle.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var e=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=e.bbox}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mfrac.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var b=e.createStack(a),c=e.createBox(b),f=e.createBox(b);e.MeasureSpans([this.HTMLboxChild(0,c),this.HTMLboxChild(1,f)]);var d=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),g=this.HTMLgetScale(),h=d.displaystyle,l=e.TeX.axis_height*g;if(d.bevelled){var d=h?.4:.15,k=Math.max(c.bbox.h+c.bbox.d,f.bbox.h+f.bbox.d)+2*d,b=e.createBox(b);e.createDelimiter(b,47,k);e.placeBox(c,0,(c.bbox.d-c.bbox.h)/2+l+d);e.placeBox(b,c.bbox.w-d/2,(b.bbox.d-b.bbox.h)/2+l);e.placeBox(f,c.bbox.w+b.bbox.w-d,(f.bbox.d-f.bbox.h)/2+l-d)}else{var k=Math.max(c.bbox.w,f.bbox.w),m=e.thickness2em(d.linethickness,g),p,q,r=e.TeX.min_rule_thickness/this.em;h?(p=e.TeX.num1,q=e.TeX.denom1):(p=0===m?e.TeX.num3:e.TeX.num2,q=e.TeX.denom2);p*=g;q*=g;0===m?(g=Math.max((h?7:3)*e.TeX.rule_thickness,2*r),h=p-c.bbox.d-(f.bbox.h-q),h<g&&(p+=(g-h)/2,q+=(g-h)/2)):(g=Math.max((h?2:0)*r+m,m/2+1.5*r),h=p-c.bbox.d-(l+m/2),h<g&&(p+=g-h),h=l-m/2-(f.bbox.h-q),h<g&&(q+=g-h),b=e.createBox(b),e.createRule(b,m,0,k+2*m),e.placeBox(b,0,l-m/2));e.alignBox(c,d.numalign,p);e.alignBox(f,d.denomalign,-q)}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLcanStretch:function(a){return!1},HTMLhandleSpace:function(a){if(!this.texWithDelims){var b=(this.useMMLspacing?0:e.length2em(this.texSpacing()||0))+.12;a.style.paddingLeft=e.Em(b);a.style.paddingRight=e.Em(.12)}}});k.msqrt.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var b=e.createStack(a),c=e.createBox(b),f=e.createBox(b),d=e.createBox(b),g=this.HTMLgetScale(),h=e.TeX.rule_thickness*g,l,k,m;l=this.Get("displaystyle")?e.TeX.x_height*g:h;l=Math.max(h+l/4,1.5*e.TeX.min_rule_thickness/this.em);var p=this.HTMLboxChild(0,c);k=p.bbox.h+p.bbox.d+l+h;e.createDelimiter(d,8730,k,g);e.MeasureSpans([p,d]);m=p.bbox.w;var q=0;if(d.isMultiChar||e.AdjustSurd&&e.imgFonts)d.bbox.w*=.95;d.bbox.h+d.bbox.d>k&&(l=(d.bbox.h+d.bbox.d-(k-h))/2);k=e.FONTDATA.DELIMITERS[e.FONTDATA.RULECHAR];!k||m<k.HW[0][0]*g||.75>g?e.createRule(f,0,h,m):e.createDelimiter(f,e.FONTDATA.RULECHAR,m,g);k=p.bbox.h+l+h;l=k*e.rfuzz;d.isMultiChar&&(l=e.rfuzz);q=this.HTMLaddRoot(b,d,q,d.bbox.h+d.bbox.d-k,g);e.placeBox(d,q,k-d.bbox.h);e.placeBox(f,q+d.bbox.w,k-f.bbox.h+l);e.placeBox(c,q+d.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,e,d){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,b,c,f,d){a=e.createBox(a);this.data[1]?(c=this.data[1].toHTML(a),c.style.paddingRight=c.style.paddingLeft="",e.Measured(c,a)):a.bbox=this.HTMLzeroBBox();f=this.HTMLrootHeight(b.bbox.h+b.bbox.d,d,a)-f;d=Math.min(a.bbox.w,a.bbox.rw);c=Math.max(d,b.offset);e.placeBox(a,c-d,f);return c-b.offset},HTMLrootHeight:function(a,b,c){return.45*(a-.9*b)+.6*b+Math.max(0,c.bbox.d-.075)}});k.mfenced.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);this.data.open&&this.data.open.toHTML(a);null!=this.data[0]&&this.data[0].toHTML(a);for(var b=1,c=this.data.length;b<c;b++)this.data[b]&&(this.data["sep"+b]&&this.data["sep"+b].toHTML(a),this.data[b].toHTML(a));this.data.close&&this.data.close.toHTML(a);for(var e=this.HTMLcomputeBBox(a),d=a.bbox.h,g=a.bbox.d,b=0,c=e.length;b<c;b++)e[b].HTMLstretchV(a,d,g);e.length&&this.HTMLcomputeBBox(a,!0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLcomputeBBox:function(a,b){var c=a.bbox={},e=[];this.HTMLcheckStretchy(this.data.open,c,e,b);this.HTMLcheckStretchy(this.data[0],c,e,b);for(var d=1,g=this.data.length;d<g;d++)this.data[d]&&(this.HTMLcheckStretchy(this.data["sep"+d],c,e,b),this.HTMLcheckStretchy(this.data[d],c,e,b));this.HTMLcheckStretchy(this.data.close,c,e,b);this.HTMLcleanBBox(c);return e},HTMLcheckStretchy:function(a,b,c,e){a&&(!e&&a.HTMLcanStretch("Vertical")&&(c.push(a),a=a.CoreMO()||a),this.HTMLcombineBBoxes(a,b))}});k.menclose.Augment({toHTML:k.mbase.HTMLautoload});k.maction.Augment({toHTML:k.mbase.HTMLautoload});k.semantics.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var e=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=e.bbox}this.HTMLhandleSpace(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.munderover.Augment({toHTML:function(a,b,c){var f=this.getValues("displaystyle","accent","accentunder","align");if(!f.displaystyle&&null!=this.data[this.base]&&this.data[this.base].CoreMO().Get("movablelimits"))return k.msubsup.prototype.toHTML.call(this,a);a=this.HTMLcreateSpan(a);var d=this.HTMLgetScale(),g=e.createStack(a),h=[],l=[],n=[],m,p,q;p=0;for(q=this.data.length;p<q;p++)null!=this.data[p]&&(m=h[p]=e.createBox(g),l[p]=this.data[p].toHTML(m),p==this.base?(null!=c?this.data[this.base].HTMLstretchV(m,b,c):null!=b&&this.data[this.base].HTMLstretchH(m,b),n[p]=null==c&&null!=b?!1:this.data[p].HTMLcanStretch("Horizontal")):n[p]=this.data[p].HTMLcanStretch("Horizontal"));e.MeasureSpans(l);g=l=-e.BIGDIMEN;p=0;for(q=this.data.length;p<q;p++)this.data[p]&&(h[p].bbox.w>g&&(g=h[p].bbox.w),!n[p]&&g>l&&(l=g));null==c&&null!=b?l=b:l==-e.BIGDIMEN&&(l=g);p=g=0;for(q=this.data.length;p<q;p++)this.data[p]&&(m=h[p],n[p]&&(m.bbox=this.data[p].HTMLstretchH(m,l).bbox),m.bbox.w>g&&(g=m.bbox.w));b=e.TeX.rule_thickness;c=e.FONTDATA.TeX_factor;var n=h[this.base]||{bbox:this.HTMLzeroBBox()},r,t,u,v=0;n.bbox.ic&&(v=1.3*n.bbox.ic+.05);p=0;for(q=this.data.length;p<q;p++)null!=this.data[p]&&(m=h[p],l=e.TeX.big_op_spacing5*d,(u=p!=this.base&&f[this.ACCENTS[p]])&&m.bbox.w<=1/e.em+1E-4&&(m.bbox.w=m.bbox.rw-m.bbox.lw,m.bbox.noclip=!0,m.bbox.lw&&m.insertBefore(e.createSpace(m.parentNode,0,0,-m.bbox.lw),m.firstChild),e.createBlank(m,0,0,m.bbox.rw+.1)),r={left:0,center:(g-m.bbox.w)/2,right:g-m.bbox.w}[f.align],t=0,p==this.over?(u?(u=Math.max(b*d*c,2.5/this.em),l=0,n.bbox.skew&&(r+=n.bbox.skew)):(u=e.TeX.big_op_spacing1*d*c,t=e.TeX.big_op_spacing3*d*c,u=Math.max(u,t-Math.max(0,m.bbox.d))),u=Math.max(u,1.5/this.em),r+=v/2,t=n.bbox.h+m.bbox.d+u,m.bbox.h+=l):p==this.under&&(u?(u=3*b*d*c,l=0):(u=e.TeX.big_op_spacing2*d*c,t=e.TeX.big_op_spacing4*d*c,u=Math.max(u,t-m.bbox.h)),u=Math.max(u,1.5/this.em),r-=v/2,t=-(n.bbox.d+m.bbox.h+u),m.bbox.d+=l),e.placeBox(m,r,t));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.msubsup.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);var f=this.HTMLgetScale(),d=this.HTMLgetMu(a),g=e.createStack(a),h,k=[],n=e.createBox(g);this.data[this.base]?(k.push(this.data[this.base].toHTML(n)),null!=c?this.data[this.base].HTMLstretchV(n,b,c):null!=b&&this.data[this.base].HTMLstretchH(n,b)):n.bbox=this.HTMLzeroBBox();b=e.TeX.x_height*f;c=e.TeX.scriptspace*f*.75;var m;this.HTMLnotEmpty(this.data[this.sup])&&(m=e.createBox(g),k.push(this.data[this.sup].toHTML(m)));this.HTMLnotEmpty(this.data[this.sub])&&(h=e.createBox(g),k.push(this.data[this.sub].toHTML(h)));e.MeasureSpans(k);m&&(m.bbox.w+=c,m.bbox.rw=Math.max(m.bbox.w,m.bbox.rw));h&&(h.bbox.w+=c,h.bbox.rw=Math.max(h.bbox.w,h.bbox.rw));e.placeBox(n,0,0);var k=m?this.data[this.sup].HTMLgetScale():h?this.data[this.sub].HTMLgetScale():this.HTMLgetScale(),p=e.TeX.sup_drop*k,g=n.bbox.h-p,q=n.bbox.d+e.TeX.sub_drop*k,k=0;n.bbox.ic&&(n.bbox.w-=n.bbox.ic,k=1.3*n.bbox.ic+.05);!this.data[this.base]||"mi"!==this.data[this.base].type&&"mo"!==this.data[this.base].type||1!==this.data[this.base].data.join("").length||1!==n.bbox.scale||this.data[this.base].Get("largeop")||(g=q=0);c=this.getValues("subscriptshift","superscriptshift");c.subscriptshift=""===c.subscriptshift?0:e.length2em(c.subscriptshift,d);c.superscriptshift=""===c.superscriptshift?0:e.length2em(c.superscriptshift,d);m?h?(q=Math.max(q,e.TeX.sub2*f),f*=e.TeX.rule_thickness,g-m.bbox.d-(h.bbox.h-q)<3*f&&(q=3*f-g+m.bbox.d+h.bbox.h,p=.8*b-(g-m.bbox.d),0<p&&(g+=p,q-=p)),e.placeBox(m,n.bbox.w+k,Math.max(g,c.superscriptshift)),e.placeBox(h,n.bbox.w,-Math.max(q,c.subscriptshift))):(h=this.getValues("displaystyle","texprimestyle"),h=e.TeX[h.displaystyle?"sup1":h.texprimestyle?"sup3":"sup2"],g=Math.max(g,h*f,m.bbox.d+.25*b,c.superscriptshift),e.placeBox(m,n.bbox.w+k,g,m.bbox)):h&&(q=Math.max(q,e.TeX.sub1*f,h.bbox.h-.8*b,c.subscriptshift),e.placeBox(h,n.bbox.w,-q,h.bbox));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mmultiscripts.Augment({toHTML:k.mbase.HTMLautoload});k.mtable.Augment({toHTML:k.mbase.HTMLautoload});k["annotation-xml"].Augment({toHTML:k.mbase.HTMLautoload});k.math.Augment({toHTML:function(a,b){var c=this.Get("alttext");c&&""!==c&&b.setAttribute("aria-label",c);var f=e.addElement(a,"nobr",{isMathJax:!0});a=this.HTMLcreateSpan(f);var c=e.createStack(a),d=e.createBox(c),g;c.style.fontSize=f.parentNode.style.fontSize;f.parentNode.style.fontSize="";null!=this.data[0]&&(e.msieColorBug&&(this.background&&(this.data[0].background=this.background,delete this.background),this.mathbackground&&(this.data[0].mathbackground=this.mathbackground,delete this.mathbackground)),k.mbase.prototype.displayAlign=t.config.displayAlign,k.mbase.prototype.displayIndent=t.config.displayIndent,g=this.data[0].toHTML(d),g.bbox.exactW=!1,g=e.Measured(g,d));e.placeBox(d,0,0);a.style.width=e.Em((Math.round(g.bbox.w*this.em)+.25)/e.outerEm);a.style.display="inline-block";var f=1/e.em,h=e.em/e.outerEm;e.em/=h;a.bbox.h*=h;a.bbox.d*=h;a.bbox.w*=h;a.bbox.lw*=h;a.bbox.rw*=h;g&&null!=g.bbox.width&&(a.style.minWidth=g.bbox.minWidth||a.style.width,a.style.width=c.style.width=g.bbox.width,d.style.width="100%");this.HTMLhandleColor(a);g&&e.createRule(a,(g.bbox.h+f)*h,(g.bbox.d+f)*h,0);this.isMultiline||"block"!==this.Get("display")||null!=a.bbox.width||(c=this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift"),c.indentalignfirst!==k.INDENTALIGN.INDENTALIGN&&(c.indentalign=c.indentalignfirst),c.indentalign===k.INDENTALIGN.AUTO&&(c.indentalign=this.displayAlign),b.style.textAlign=c.indentalign,c.indentshiftfirst!==k.INDENTSHIFT.INDENTSHIFT&&(c.indentshift=c.indentshiftfirst),"auto"===c.indentshift&&(c.indentshift=this.displayIndent),c.indentshift&&c.indentalign!==k.INDENTALIGN.CENTER&&(a.style[{left:"marginLeft",right:"marginRight"}[c.indentalign]]=e.Em(e.length2em(c.indentshift))));return a},HTMLspanElement:k.mbase.prototype.HTMLspanElement});k.TeXAtom.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);if(null!=this.data[0])if(this.texClass===k.TEXCLASS.VCENTER){var b=e.createStack(a),b=e.createBox(b);e.Measured(this.data[0].toHTML(b),b);e.placeBox(b,0,e.TeX.axis_height-(b.bbox.h+b.bbox.d)/2+b.bbox.d)}else a.bbox=this.data[0].toHTML(a).bbox;this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});MathJax.Hub.Register.StartupHook("onLoad",function(){setTimeout(MathJax.Callback(["loadComplete",e,"jax.js"]),0)})});t.Register.StartupHook("End Config",function(){t.Browser.Select({MSIE:function(a){var b=document.documentMode||0,c=a.versionAtLeast("7.0"),f=a.versionAtLeast("8.0")&&7<b,d="BackCompat"===document.compatMode;9>b&&(e.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white",e.config.styles[".MathJax .MathJax_HitBox"].opacity=0,e.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity\x3d0)");e.Augment({PaddingWidthBug:!0,msieAccentBug:!0,msieColorBug:!0,msieColorPositionBug:!0,msieRelativeWidthBug:d,msieDisappearingBug:8<=b,msieMarginScaleBug:8>b,msiePaddingWidthBug:!0,msieBorderWidthBug:d,msieFrameSizeBug:8>=b,msieInlineBlockAlignBug:!f||d,msiePlaceBoxBug:f&&!d,msieClipRectBug:!f,msieNegativeSpaceBug:d,cloneNodeBug:f&&"8.0"===a.version,initialSkipBug:8>b,msieNegativeBBoxBug:8<=b,msieIE6:!c,msieItalicWidthBug:!0,FontFaceBug:!0,msieFontCSSBug:a.isIE9,allowWebFonts:9<=b?"woff":"eot"})},Firefox:function(a){var b=!1;a.versionAtLeast("3.5")&&(a=String(document.location).replace(/[^\/]*$/,""),"file:"!==document.location.protocol||t.config.root.match(/^https?:\/\//)||(t.config.root+"/").substr(0,a.length)===a)&&(b="otf");e.Augment({ffVerticalAlignBug:!0,AccentBug:!0,allowWebFonts:b})},Safari:function(a){var b=a.versionAtLeast("3.0"),c=a.versionAtLeast("3.1"),f=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/),d=navigator.appVersion.match(/ Android (\d+)\.(\d+)/),d=c&&a.isMobile&&(navigator.platform.match(/iPad|iPod|iPhone/)&&!a.versionAtLeast("5.0")||null!=d&&(2>d[1]||2==d[1]&&2>d[2]));e.Augment({config:{styles:{".MathJax img, .MathJax nobr, .MathJax a":{"max-width":"5000em","max-height":"5000em"}}},rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariVerticalAlignBug:!c,safariTextNodeBug:!b,forceReflow:!0,allowWebFonts:c&&!d?"otf":!1});f&&e.Augment({webFontDefault:a.isMobile?"sans-serif":"serif"});a.isPC&&e.Augment({adjustAvailableFonts:e.removeSTIXfonts,checkWebFontsTwice:!0});d&&((a=t.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):t.config["HTML-CSS"]={availableFonts:[],preferredFont:null})},Chrome:function(a){e.Augment({Em:e.EmRounded,cloneNodeBug:!0,rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariWebFontSerif:[""],forceReflow:!0,allowWebFonts:a.versionAtLeast("4.0")?"otf":"svg"})},Opera:function(a){a.isMini=null!=navigator.appVersion.match("Opera Mini");e.config.styles[".MathJax .merror"]["vertical-align"]=null;e.config.styles[".MathJax span"]["z-index"]=0;e.Augment({operaHeightBug:!0,operaVerticalAlignBug:!0,operaFontSizeBug:a.versionAtLeast("10.61"),initialSkipBug:!0,FontFaceBug:!0,PaddingWidthBug:!0,allowWebFonts:a.versionAtLeast("10.0")&&!a.isMini?"otf":!1,adjustAvailableFonts:e.removeSTIXfonts})},Konqueror:function(a){e.Augment({konquerorVerticalAlignBug:!0})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==t.config.menuSettings.zoom&&v.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]);