mw.loader.implement("ext.math.mathjax.extensions",function($,jQuery){},{},{});mw.loader.implement("ext.math.mathjax.extensions.TeX",function($,jQuery){MathJax.Extension.wiki2jax={version:"1.0",config:{element:null},PreProcess:function(element){if(!this.configured){this.config=MathJax.Hub.CombineConfig("wiki2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.previewClass=MathJax.Hub.config.preRemoveClass;this.setupPrefilter();this.configured=true;}var that=this;$('.mwe-math-fallback-png-display, .mwe-math-fallback-png-inline, .mwe-math-fallback-source-display,'+'.mwe-math-fallback-source-inline, strong.texerror',element||document).each(function(i,span){that.ConvertMath(span);});},setupPrefilter:function(){MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){MathJax.InputJax.TeX.prefilterHooks.Add(function(data){data.math=data.math.replace(/^\s*\\scriptstyle(\W)/,"\\textstyle$1").replace(/^\s*\\scriptscriptstyle(\W)/,"\\scriptstyle$1");if( data.script.type.match(/(;|\s|\n)mode\s*=\s*display-nobreak(;|\s|\n|$)/)!=null)data.math="\\displaystyle "+data.math;});});},ConvertMath:function(node){var parent=node.parentNode,mode="",tex;if(node.nodeName=='IMG'){tex=node.alt;}else{if(node.nodeName=='STRONG'){tex=$(node).text().replace(/^[^:]*: (.*)$/,"$1");}else{tex=$(node).text().replace(/^\$/,"").replace(/\$$/,"");}tex=tex.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/ /g," ");}if($(node).hasClass("mwe-math-fallback-png-display")||$(node).hasClass("mwe-math-fallback-source-display")){mode="; mode=display";}tex=tex.replace(/([^\\])%/g,"$1\\%");tex=tex.replace(/\\iiint([^!]*)!\\!\\!\\!\\!.*\\subset\\!\\supset/g,"\\iiint$1mkern-2.5em\\subset\\!\\supset").replace(/\\iint([^!]*)!\\!\\!\\!\\!\\!\\!\\!\\!\\!\\!(.*)\\subset\\!\\supset/g,"\\iint$1mkern-1.65em$2\\subset\\!\\!\\supset").replace(/\\int\\!\\!\\!(\\!)+\\int\\!\\!\\!(\\!)+\\int([^!]*)!\\!\\!\\!\\!.*\\bigcirc(\\,)*/g, "\\iiint$3mkern-2.5em\\subset\\!\\supset").replace(/\\int\\!\\!\\!(\\!)+\\int([^!]*)!\\!\\!\\!\\!\\!\\!\\!\\!(.*)\\bigcirc(\\,)*/g,"\\iint$2mkern-1.65em$3\\subset\\!\\!\\supset");if(mode===""&&parent.firstChild===node)mode="; mode=display-nobreak";var script=document.createElement("script");script.type="math/tex"+mode;MathJax.HTML.setScript(script,tex);if(node.nextSibling){parent.insertBefore(script,node.nextSibling)}else{parent.appendChild(script)}var preview=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass});preview.appendChild(parent.removeChild(node));parent.insertBefore(preview,script);}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.wiki2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/wiki2jax.js");MathJax.Extension["TeX/noUndefined"]={version:"2.3",config:MathJax.Hub.CombineConfig("TeX.noUndefined",{disabled:false,attributes:{mathcolor:"red"}})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var CONFIG=MathJax. Extension["TeX/noUndefined"].config;var MML=MathJax.ElementJax.mml;var UNDEFINED=MathJax.InputJax.TeX.Parse.prototype.csUndefined;MathJax.InputJax.TeX.Parse.Augment({csUndefined:function(name){if(CONFIG.disabled){return UNDEFINED.apply(this,arguments)}MathJax.Hub.signal.Post(["TeX Jax - undefined control sequence",name]);this.Push(MML.mtext(name).With(CONFIG.attributes));}});MathJax.Hub.Startup.signal.Post("TeX noUndefined Ready");});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/noUndefined.js");MathJax.Extension["TeX/AMSmath"]={version:"2.3",number:0,startNumber:0,labels:{},eqlabels:{},refs:[]};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var MML=MathJax.ElementJax.mml,TEX=MathJax.InputJax.TeX,AMS=MathJax.Extension["TeX/AMSmath"];var TEXDEF=TEX.Definitions,STACKITEM=TEX.Stack.Item,CONFIG=TEX.config.equationNumbers;var COLS=function(W){var WW=[];for(var i=0,m=W.length;i0){align+="rl";spacing.push("0em 0em");n--}spacing=spacing.join(" ");if(taggable){return this.AMSarray(begin,numbered,taggable,align,spacing)}var array=this.Array.call(this,begin,null,null,align,spacing,".5em",'D');return this.setArrayAlign(array,valign);},EquationBegin:function(begin,force){this.checkEqnEnv();this.stack.global.forcetag=(force&&CONFIG.autoNumber!=="none");return begin;},EquationStar:function(begin,row){this.stack.global.tagged=true;return row;},checkEqnEnv:function(){if(this.stack.global.eqnenv){TEX.Error(["ErroneousNestingEq","Erroneous nesting of equation structures"])}this.stack.global.eqnenv=true;},MultiIntegral:function(name,integral){var next=this.GetNext( );if(next==="\\"){var i=this.i;next=this.GetArgument(name);this.i=i;if(next==="\\limits"){if(name==="\\idotsint"){integral="\\!\\!\\mathop{\\,\\,"+integral+"}"}else{integral="\\!\\!\\!\\mathop{\\,\\,\\,"+integral+"}"}}}this.string=integral+" "+this.string.slice(this.i);this.i=0;},xArrow:function(name,chr,l,r){var def={width:"+"+(l+r)+"mu",lspace:l+"mu"};var bot=this.GetBrackets(name),top=this.ParseArg(name);var arrow=MML.mo(MML.chars(String.fromCharCode(chr))).With({stretchy:true,texClass:MML.TEXCLASS.REL});var mml=MML.munderover(arrow);mml.SetData(mml.over,MML.mpadded(top).With(def).With({voffset:".15em"}));if(bot){bot=TEX.Parse(bot,this.stack.env).mml() mml.SetData(mml.under,MML.mpadded(bot).With(def).With({voffset:"-.24em"}));}this.Push(mml);},GetDelimiterArg:function(name){var c=this.trimSpaces(this.GetArgument(name));if(c==""){return null}if(TEXDEF.delimiter[c]==null){TEX.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",name]);}return this.convertDelimiter(c);},GetStar:function(){var star=(this.GetNext()==="*");if(star){this.i++}return star;}});STACKITEM.Augment({autoTag:function(){var global=this.global;if(!global.notag){AMS.number++;global.tagID=CONFIG.formatNumber(AMS.number.toString());var mml=TEX.Parse("\\text{"+CONFIG.formatTag(global.tagID)+"}",{}).mml();global.tag=MML.mtd(mml.With({id:CONFIG.formatID(global.tagID)}));}},getTag:function(){var global=this.global,tag=global.tag;global.tagged=true;if(global.label){AMS.eqlabels[global.label]=global.tagID;if(CONFIG.useLabelIds){tag.id=CONFIG.formatID(global.label)}}delete global.tag;delete global.tagID;delete global.label;return tag;}});STACKITEM. multline=STACKITEM.array.Subclass({type:"multline",Init:function(numbered,stack){this.SUPER(arguments).Init.apply(this);this.numbered=(numbered&&CONFIG.autoNumber!=="none");this.save={notag:stack.global.notag};stack.global.tagged=!numbered&&!stack.global.forcetag;},EndEntry:function(){var mtd=MML.mtd.apply(MML,this.data);if(this.data.shove){mtd.columnalign=this.data.shove}this.row.push(mtd);this.data=[];},EndRow:function(){if(this.row.length!=1){TEX.Error(["MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline"]);}this.table.push(this.row);this.row=[];},EndTable:function(){this.SUPER(arguments).EndTable.call(this);if(this.table.length){var m=this.table.length-1,i,label=-1;if(!this.table[0][0].columnalign){this.table[0][0].columnalign=MML.ALIGN.LEFT}if(!this.table[m][0].columnalign){this.table[m][0].columnalign=MML.ALIGN.RIGHT}if(!this.global.tag&&this.numbered){this.autoTag()}if(this.global.tag&&!this.global.notags){label=(this.arraydef.side=== "left"?0:this.table.length-1);this.table[label]=[this.getTag()].concat(this.table[label]);}for(i=0,m=this.table.length;i1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","rgb",0,1]);}n=Math.floor(n*255).toString(16);if(n.length<2){n="0"+n}RGB+=n;}return RGB;},get_RGB:function(rgb){rgb=rgb.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var RGB="#";if(rgb.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","RGB"])}for(var i=0;i<3;i++){if(!rgb[i].match(/^\d+$/)){this.TEX.Error(["InvalidNumber","Invalid number"])}var n=parseInt(rgb[i]);if(n>255){this.TEX.Error(["ModelArg2", "Color values for the %1 model must be between %2 and %3","RGB",0,255]);}n=n.toString(16);if(n.length<2){n="0"+n}RGB+=n;}return RGB;},get_gray:function(gray){if(!gray.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var n=parseFloat(gray);if(n<0||n>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","gray",0,1]);}n=Math.floor(n*255).toString(16);if(n.length<2){n="0"+n}return"#"+n+n+n;},get_named:function(name){if(this.colors[name]){return this.colors[name]}return name;},padding:function(){var pad="+"+this.config.padding;var unit=this.config.padding.replace(/^.*?([a-z]*)$/,"$1");var pad2="+"+(2*parseFloat(pad))+unit;return{width:pad2,height:pad,depth:pad,lspace:this.config.padding};}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var TEX=MathJax.InputJax.TeX,MML=MathJax.ElementJax.mml;var STACKITEM=TEX.Stack.Item;var COLOR=MathJax.Extension["TeX/color"];COLOR.TEX=TEX;TEX.Definitions .Add({macros:{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"fColorBox"}},null,true);TEX.Parse.Augment({Color:function(name){var model=this.GetBrackets(name),color=this.GetArgument(name);color=COLOR.getColor(model,color);var mml=STACKITEM.style().With({styles:{mathcolor:color}});this.stack.env.color=color;this.Push(mml);},TextColor:function(name){var model=this.GetBrackets(name),color=this.GetArgument(name);color=COLOR.getColor(model,color);var old=this.stack.env.color;this.stack.env.color=color;var math=this.ParseArg(name);if(old){this.stack.env.color}else{delete this.stack.env.color}this.Push(MML.mstyle(math).With({mathcolor:color}));},DefineColor:function(name){var cname=this.GetArgument(name),model=this.GetArgument(name),def=this.GetArgument(name);COLOR.colors[cname]=COLOR.getColor(model,def);},ColorBox:function(name){var cname=this.GetArgument(name),arg=this.InternalMath(this.GetArgument(name));this.Push(MML.mpadded.apply(MML,arg).With ({mathbackground:COLOR.getColor("named",cname)}).With(COLOR.padding()));},fColorBox:function(name){var fname=this.GetArgument(name),cname=this.GetArgument(name),arg=this.InternalMath(this.GetArgument(name));this.Push(MML.mpadded.apply(MML,arg).With({mathbackground:COLOR.getColor("named",cname),style:"border: "+COLOR.config.border+" solid "+COLOR.getColor("named",fname)}).With(COLOR.padding()));}});MathJax.Hub.Startup.signal.Post("TeX color Ready");});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/color.js");MathJax.Extension["TeX/cancel"]={version:"2.3",ALLOWED:{color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var TEX=MathJax.InputJax.TeX,MML=MathJax.ElementJax.mml,CANCEL=MathJax.Extension["TeX/cancel"];CANCEL.setAttributes=function(def,attr){if(attr!==""){attr=attr.replace(/ /g,"").split(/,/);for(var i=0,m=attr.length;i0){this.selection=Math.min(3,values.scriptlevel+1)}else{this.selection=(values.displaystyle?0:1)}}return this.selection;},selected:function(){return this.data[this.choice()]},setTeXclass:function(prev){return this.selected().setTeXclass(prev)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished: function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(span){span=this.HTMLcreateSpan(span);span.bbox=this.Core().toHTML(span).bbox;if(span.firstChild&&span.firstChild.style.marginLeft){span.style.marginLeft=span.firstChild.style.marginLeft;span.firstChild.style.marginLeft="";}return span;},toSVG:function(){var svg=this.Core().toSVG();this.SVGsaveData(svg);return svg;}});MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready");});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js");MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var VERSION="1.0";var MML=MathJax.ElementJax.mml;MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions,{mathchar0mi:{thetasym:'03B8',koppa:'03DF',stigma:'03DB',coppa:'03D9',C:['0043',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],cnums:['0043',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],Complex:['0043',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],H:[ '210D',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],N:['004E',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],natnums:['004E',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],Q:['0051',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],R:['0052',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],reals:['0052',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],Reals:['0052',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],Z:['005A',{mathvariant:MML.VARIANT.DOUBLESTRUCK}],sect:'00A7',P:'00B6',AA:['00C5',{mathvariant:MML.VARIANT.NORMAL}],alef:['2135',{mathvariant:MML.VARIANT.NORMAL}],alefsym:['2135',{mathvariant:MML.VARIANT.NORMAL}],weierp:['2118',{mathvariant:MML.VARIANT.NORMAL}],real:['211C',{mathvariant:MML.VARIANT.NORMAL}],part:['2202',{mathvariant:MML.VARIANT.NORMAL}],infin:['221E',{mathvariant:MML.VARIANT.NORMAL}],empty:['2205',{mathvariant:MML.VARIANT.NORMAL}],O:['2205',{mathvariant:MML.VARIANT.NORMAL}],ang:['2220',{mathvariant:MML.VARIANT.NORMAL}],exist:['2203',{mathvariant:MML.VARIANT.NORMAL}],clubs:['2663',{mathvariant:MML.VARIANT.NORMAL}], diamonds:['2662',{mathvariant:MML.VARIANT.NORMAL}],hearts:['2661',{mathvariant:MML.VARIANT.NORMAL}],spades:['2660',{mathvariant:MML.VARIANT.NORMAL}],textvisiblespace:'2423'},mathchar0mo:{and:'2227',or:'2228',bull:'2219',plusmn:'00B1',sdot:'22C5',sup:'2283',sub:'2282',supe:'2287',sube:'2286',isin:'2208',hAar:'21D4',hArr:'21D4',Harr:'21D4',Lrarr:'21D4',lrArr:'21D4',lArr:'21D0',Larr:'21D0',rArr:'21D2',Rarr:'21D2',harr:'2194',lrarr:'2194',larr:'2190',gets:'2190',rarr:'2192',oiint:['222F',{texClass:MML.TEXCLASS.OP}],oiiint:['2230',{texClass:MML.TEXCLASS.OP}]},mathchar7:{Alpha:'0391',Beta:'0392',Epsilon:'0395',Zeta:'0396',Eta:'0397',Iota:'0399',Kappa:'039A',Mu:'039C',Nu:'039D',Omicron:'039F',Rho:'03A1',Tau:'03A4',Chi:'03A7',Koppa:'03DE',Stigma:'03DA',Coppa:'03D8'},delimiter:{'\\uarr':'2191','\\darr':'2193','\\Uarr':'21D1','\\uArr':'21D1','\\Darr':'21D3','\\dArr':'21D3','\\rang':'27E9','\\lang':'27E8'},macros:{sgn:'NamedFn',arccot:'NamedFn',arcsec:'NamedFn',arccsc:'NamedFn',bold:['Macro', '\\mathbf{#1}',1],href:'NamedFn',style:'NamedFn',pagecolor:['Macro','',1],vline:['Macro','\\smash{\\large\\lvert}',0],image:['Macro','\\Im']}});});MathJax.Hub.Startup.signal.Post("TeX texvc Ready");MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/texvc.js");},{},{});mw.loader.implement("ext.math.mathjax.extensions.mml2jax",function($,jQuery){MathJax.Extension.mml2jax={version:"2.3",config:{preview:"mathml"},MMLnamespace:"http://www.w3.org/1998/Math/MathML",PreProcess:function(element){if(!this.configured){this.config=MathJax.Hub.CombineConfig("mml2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.InitBrowser();this.configured=true;}if(typeof(element)==="string"){element=document.getElementById(element)}if(!element){element=document.body}var mathArray=[];this.PushMathElements(mathArray,element,"math");this.PushMathElements(mathArray,element,"math",this.MMLnamespace);var i,m;if(typeof(document.namespaces)!=="undefined"){try{for(i=0,m=document. namespaces.length;i/i,"").replace(/<\?xml:namespace .*?\/>/i,"");html=html.replace(/ /g," ");}MathJax.HTML.setScript(script,html);parent.removeChild(math);}else{var span=MathJax.HTML.Element("span");span.appendChild(math);MathJax.HTML.setScript(script,span.innerHTML);}if(this.config.preview!=="none"){this.createPreview(math,script)}},ProcessMathFlattened:function(math){var parent=math.parentNode;if(!parent||parent.className===MathJax.Hub.config.preRemoveClass)return;var script=document.createElement("script");script.type= "math/mml";parent.insertBefore(script,math);var mml="",node,MATH=math;while(math&&math.nodeName!=="/MATH"){node=math;math=math.nextSibling;mml+=this.NodeHTML(node);node.parentNode.removeChild(node);}if(math&&math.nodeName==="/MATH"){math.parentNode.removeChild(math)}script.text=mml+"";if(this.config.preview!=="none"){this.createPreview(MATH,script)}},NodeHTML:function(node){var html,i,m;if(node.nodeName==="#text"){html=this.quoteHTML(node.nodeValue);}else if(node.nodeName==="#comment"){html=""}else{html="<"+node.nodeName.toLowerCase();for(i=0,m=node.attributes.length;i";if(node.outerHTML!=null&&node.outerHTML.match(/(.<\/[A-Z]+>|\/>)$/)){for(i=0,m=node. childNodes.length;i";}}return html;},OuterHTML:function(node){if(node.nodeName.charAt(0)==="#"){return this.NodeHTML(node)}if(!this.AttributeBug){return node.outerHTML}var html=this.NodeHTML(node);for(var i=0,m=node.childNodes.length;i";return html;},quoteHTML:function(string){if(string==null){string=""}return string.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""");},createPreview:function(math,script){var preview=this.config.preview;if(preview==="none")return;var isNodePreview=false;if(preview==="mathml"){isNodePreview=true;if(this.MathTagBug){preview="alttext"}else{preview=math.cloneNode(false)}}if(preview==="alttext"||preview==="altimg"){isNodePreview=true;var alttext=this.filterPreview(math.getAttribute("alttext"));if(preview==="alttext"){if(alttext!=null){preview= MathJax.HTML.TextNode(alttext)}else{preview=null}}else{var src=math.getAttribute("altimg");if(src!=null){var style={width:math.getAttribute("altimg-width"),height:math.getAttribute("altimg-height")};preview=MathJax.HTML.Element("img",{src:src,alt:alttext,style:style});}else{preview=null}}}if(preview){var span;if(isNodePreview){span=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass});span.appendChild(preview);}else{span=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},preview);}script.parentNode.insertBefore(span,script);}},filterPreview:function(text){return text},InitBrowser:function(){var test=MathJax.HTML.Element("span",{id:"<",className:"mathjax",innerHTML:"x"});var html=test.outerHTML||"";this.AttributeBug=html!==""&&!(html.match(/id="<"/)&&html.match(/class="mathjax"/)&&html.match(/<\/math>/));this.MathTagBug=test.childNodes.length>1;this.CleanupHTML=MathJax.Hub.Browser.isMSIE;}};MathJax.Hub. Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax],5);MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js");},{},{});mw.loader.implement("ext.math.mathjax.extensions.ui",function($,jQuery){(function(HUB,HTML,AJAX,CALLBACK,LOCALE,OUTPUT,INPUT){var VERSION="2.3";var EXTENSION=MathJax.Extension;var ME=EXTENSION.MathEvents={version:VERSION};var SETTINGS=HUB.config.menuSettings;var CONFIG={hover:500,frame:{x:3.5,y:5,bwidth:1,bcolor:"#A6D",hwidth:"15px",hcolor:"#83A"},button:{x:-4,y:-3,wx:-2,src:AJAX.fileURL(OUTPUT.imageDir+"/MenuArrow-15.png")},fadeinInc:.2,fadeoutInc:.05,fadeDelay:50,fadeoutStart:400,fadeoutDelay:15*1000,styles:{".MathJax_Hover_Frame":{"border-radius":".25em","-webkit-border-radius":".25em","-moz-border-radius":".25em","-khtml-border-radius":".25em","box-shadow":"0px 0px 15px #83A","-webkit-box-shadow":"0px 0px 15px #83A","-moz-box-shadow":"0px 0px 15px #83A","-khtml-box-shadow":"0px 0px 15px #83A",border:"1px solid #A6D ! important",display: "inline-block",position:"absolute"},".MathJax_Hover_Arrow":{position:"absolute",width:"15px",height:"11px",cursor:"pointer"}}};var EVENT=ME.Event={LEFTBUTTON:0,RIGHTBUTTON:2,MENUKEY:"altKey",Mousedown:function(event){return EVENT.Handler(event,"Mousedown",this)},Mouseup:function(event){return EVENT.Handler(event,"Mouseup",this)},Mousemove:function(event){return EVENT.Handler(event,"Mousemove",this)},Mouseover:function(event){return EVENT.Handler(event,"Mouseover",this)},Mouseout:function(event){return EVENT.Handler(event,"Mouseout",this)},Click:function(event){return EVENT.Handler(event,"Click",this)},DblClick:function(event){return EVENT.Handler(event,"DblClick",this)},Menu:function(event){return EVENT.Handler(event,"ContextMenu",this)},Handler:function(event,type,math){if(AJAX.loadingMathMenu){return EVENT.False(event)}var jax=OUTPUT[math.jaxID];if(!event){event=window.event}event.isContextMenu=(type==="ContextMenu");if(jax[type]){return jax[type](event,math)}if(EXTENSION.MathZoom){ return EXTENSION.MathZoom.HandleEvent(event,type,math)}},False:function(event){if(!event){event=window.event}if(event){if(event.preventDefault){event.preventDefault()}if(event.stopPropagation){event.stopPropagation()}event.cancelBubble=true;event.returnValue=false;}return false;},ContextMenu:function(event,math,force){var JAX=OUTPUT[math.jaxID],jax=JAX.getJaxFromMath(math);var show=(JAX.config.showMathMenu!=null?JAX:HUB).config.showMathMenu;if(!show||(SETTINGS.context!=="MathJax"&&!force))return;if(ME.msieEventBug){event=window.event||event}EVENT.ClearSelection();HOVER.ClearHoverTimer();if(jax.hover){if(jax.hover.remove){clearTimeout(jax.hover.remove);delete jax.hover.remove}jax.hover.nofade=true;}var MENU=MathJax.Menu;var load,fn;if(MENU){if(MENU.loadingDomain){return EVENT.False(event)}load=LOCALE.loadDomain("MathMenu");if(!load){MENU.jax=jax;var source=MENU.menu.Find("Show Math As").menu;source.items[0].name=jax.sourceMenuTitle;source.items[0].format=(jax.sourceMenuFormat||"MathML") ;source.items[1].name=INPUT[jax.inputJax].sourceMenuTitle;var annotations=source.items[2];annotations.disabled=true;var annotationItems=annotations.menu.items;annotationList=MathJax.Hub.Config.semanticsAnnotations;for(var i=0,m=annotationItems.length;i0){this.HoverFadeTimer(jax,jax.hover.inc);return}frame.parentNode.removeChild(frame);if(button){button.parentNode.removeChild(button)}if(jax.hover.remove){clearTimeout(jax.hover.remove)}delete jax.hover;},HoverFadeTimer:function(jax,inc,delay){jax.hover.inc=inc;if(!jax.hover.timer){jax.hover.timer=setTimeout(CALLBACK(["HoverFade",this,jax]),(delay||CONFIG.fadeDelay));}},HoverMenu:function(event){if(!event){event=window.event}return OUTPUT[this.jax].ContextMenu(event,this.math,true);},ClearHover:function(jax){if(jax.hover.remove){clearTimeout(jax.hover.remove)}if(jax.hover. timer){clearTimeout(jax.hover.timer)}HOVER.ClearHoverTimer();delete jax.hover;},Px:function(m){if(Math.abs(m)<.006){return"0px"}return m.toFixed(2).replace(/\.?0+$/,"")+"px";},getImages:function(){var menu=new Image();menu.src=CONFIG.button.src;}};var TOUCH=ME.Touch={last:0,delay:500,start:function(event){var now=new Date().getTime();var dblTap=(now-TOUCH.lastMh){zoom.style.height=Mh+"px";zoom.style.width=(bbox.zW+this.scrollSize)+"px"}if(zoom.offsetWidth>Mw){zoom.style.width=Mw+"px";zoom.style.height=(bbox.zH+this.scrollSize)+"px"}}if(this.operaPositionBug){zoom.style.width=Math.min(Mw,bbox.zW)+"px"}if(zoom.offsetWidth&&zoom.offsetWidth=9);ZOOM.msiePositionBug=!isIE9;ZOOM.msieSizeBug=browser.versionAtLeast("7.0")&&(!document.documentMode||mode===7||mode===8);ZOOM.msieZIndexBug=(mode<=7);ZOOM.msieInlineBlockAlignBug=(mode<=7);ZOOM.msieTrapEventBug=!window.addEventListener;if(document.compatMode==="BackCompat"){ZOOM.scrollSize=52}if(isIE9){delete CONFIG.styles["#MathJax_Zoom"].filter}},Opera:function(browser){ZOOM.operaPositionBug=true;ZOOM.operaRefreshBug=true;}});ZOOM.topImg=(ZOOM.msieInlineBlockAlignBug?HTML.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):HTML.Element("span",{style:{width:0,height:0,display:"inline-block"}}));if(ZOOM.operaPositionBug||ZOOM.msieTopBug){ZOOM.topImg. style.border="1px solid"}MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",AJAX,CONFIG.styles],["Post",HUB.Startup.signal,"MathZoom Ready"],["loadComplete",AJAX,"[MathJax]/extensions/MathZoom.js"]);})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(HUB,HTML,AJAX,CALLBACK,OUTPUT){var VERSION="2.3";var SIGNAL=MathJax.Callback.Signal("menu") MathJax.Extension.MathMenu={version:VERSION,signal:SIGNAL};var _=function(id){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",id]].concat([].slice.call(arguments,1)));};var isPC=HUB.Browser.isPC,isMSIE=HUB.Browser.isMSIE,isIE9=((document.documentMode||0)>8);var ROUND=(isPC?null:"5px");var CONFIG=HUB.CombineConfig("MathMenu",{delay:150,closeImg:AJAX.fileURL(OUTPUT.imageDir+"/CloseX-31.png"),showRenderer:true,showMathPlayer:true,showFontMenu:false,showContext:false,showDiscoverable:false,showLocale:true,showLocaleURL:false,semanticsAnnotations:{"TeX":["TeX","LaTeX","application/x-tex"],"StarMath":["StarMath 5.0"],"Maple":["Maple"],"ContentMathML":["MathML-Content","application/mathml-content+xml"],"OpenMath":["OpenMath"]},windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{ "#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:(isPC?"2px":"5px 0px"),border:"1px solid #CCCCCC",margin:0,cursor:"default",font: "menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":ROUND,"-webkit-border-radius":ROUND,"-moz-border-radius":ROUND,"-khtml-border-radius":ROUND,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')"},".MathJax_MenuItem":{padding:(isPC?"2px 2em":"1px 2em"),background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":(isMSIE?"'Arial unicode MS'":null)},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":(isMSIE?"'Arial unicode MS'":null)},".MathJax_MenuRadioCheck":{position: "absolute",left:(isPC?"1em":".7em")},".MathJax_MenuLabel":{padding:(isPC?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em"),"font-style":"italic"},".MathJax_MenuRule":{"border-top":(isPC?"1px solid #CCCCCC":"1px solid #DDDDDD"),margin:(isPC?"4px 1px 0px":"4px 3px")},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":(isPC?"Highlight":"#606872"),color:(isPC?"HighlightText":"white")},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}});var FALSE,HOVER;HUB.Register.StartupHook("MathEvents Ready",function(){FALSE=MathJax.Extension.MathEvents.Event.False;HOVER=MathJax.Extension.MathEvents.Hover;});var MENU=MathJax.Menu=MathJax.Object.Subclass({version:VERSION,items:[],posted:false,title:null,margin:5,Init:function(def){this.items=[].slice.call(arguments,0)},With:function(def){if(def){HUB.Insert(this,def)};return this},Post:function(event,parent){if(!event){event=window.event};var div=document.getElementById( "MathJax_MenuFrame");if(!div){div=MENU.Background(this);delete ITEM.lastItem;delete ITEM.lastMenu;delete MENU.skipUp;SIGNAL.Post(["post",MENU.jax]);}var menu=HTML.addElement(div,"div",{onmouseup:MENU.Mouseup,ondblclick:FALSE,ondragstart:FALSE,onselectstart:FALSE,oncontextmenu:FALSE,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(menu);for(var i=0,m=this.items.length;idocument.body.offsetWidth-this.margin){x= document.body.offsetWidth-menu.offsetWidth-this.margin}if(MENU.isMobile){x=Math.max(5,x-Math.floor(menu.offsetWidth/2));y-=20}MENU.skipUp=event.isContextMenu;}else{var side="left",mw=parent.offsetWidth;x=(MENU.isMobile?30:mw-2);y=0;while(parent&&parent!==div){x+=parent.offsetLeft;y+=parent.offsetTop;parent=parent.parentNode;}if(x+menu.offsetWidth>document.body.offsetWidth-this.margin&&!MENU.isMobile){side="right";x=Math.max(this.margin,x-mw-menu.offsetWidth+6)}if(!isPC){menu.style["borderRadiusTop"+side]=0;menu.style["WebkitBorderRadiusTop"+side]=0;menu.style["MozBorderRadiusTop"+side]=0;menu.style["KhtmlBorderRadiusTop"+side]=0;}}menu.style.left=x+"px";menu.style.top=y+"px";if(document.selection&&document.selection.empty){document.selection.empty()}return FALSE(event);},Remove:function(event,menu){SIGNAL.Post(["unpost",MENU.jax]);var div=document.getElementById("MathJax_MenuFrame");if(div){div.parentNode.removeChild(div);if(this.msieFixedPositionBug){detachEvent("onresize",MENU.Resize )}}if(MENU.jax.hover){delete MENU.jax.hover.nofade;HOVER.UnHover(MENU.jax);}return FALSE(event);},Find:function(name){return this.FindN(1,name,[].slice.call(arguments,1))},FindId:function(name){return this.FindN(0,name,[].slice.call(arguments,1))},FindN:function(n,name,names){for(var i=0,m=this.items.length;i=0&&menu.parentNode.menuItem!==menus[m].menuItem){menus[m].menuItem.posted=false;menus[m].parentNode.removeChild(menus[m]);m--;}if(this.Timer&&!MENU.isMobile){this.Timer(event,menu)}}},Mouseout:function(event,menu){if(!this.menu||!this.menu.posted){this.Deactivate(menu)}if(this.timer){clearTimeout(this.timer);delete this. timer}},Mouseup:function(event,menu){return this.Remove(event,menu)},Touchstart:function(event,menu){return this.TouchEvent(event,menu,"Mousedown")},Touchend:function(event,menu){return this.TouchEvent(event,menu,"Mouseup")},TouchEvent:function(event,menu,type){if(this!==ITEM.lastItem){if(ITEM.lastMenu){MENU.Event(event,ITEM.lastMenu,"Mouseout")}MENU.Event(event,menu,"Mouseover",true);ITEM.lastItem=this;ITEM.lastMenu=menu;}if(this.nativeTouch){return null}MENU.Event(event,menu,type);return false;},Remove:function(event,menu){menu=menu.parentNode.menuItem;return menu.Remove(event,menu);},Activate:function(menu){this.Deactivate(menu);menu.className+=" MathJax_MenuActive"},Deactivate:function(menu){menu.className=menu.className.replace(/ MathJax_MenuActive/,"")},With:function(def){if(def){HUB.Insert(this,def)};return this}});MENU.ITEM.COMMAND=MENU.ITEM.Subclass({action:function(){},Init:function(name,action,def){if(!(name instanceof Array)){name=[name,name]}this.name=name;this.action= action;this.With(def);},Label:function(def,menu){return[this.Name()]},Mouseup:function(event,menu){if(!this.disabled){this.Remove(event,menu);SIGNAL.Post(["command",this]);this.action.call(this,event);}return FALSE(event);}});MENU.ITEM.SUBMENU=MENU.ITEM.Subclass({menu:null,marker:(isPC&&!HUB.Browser.isSafari?"\u25B6":"\u25B8"),Init:function(name,def){if(!(name instanceof Array)){name=[name,name]}this.name=name;var i=1;if(!(def instanceof MENU.ITEM)){this.With(def),i++}this.menu=MENU.apply(MENU,[].slice.call(arguments,i));},Label:function(def,menu){this.menu.posted=false;return[this.Name()+" ",["span",{className:"MathJax_MenuArrow"},[this.marker]]];},Timer:function(event,menu){if(this.timer){clearTimeout(this.timer)}event={clientX:event.clientX,clientY:event.clientY};this.timer=setTimeout(CALLBACK(["Mouseup",this,event,menu]),CONFIG.delay);},Touchend:function(event,menu){var forceout=this.menu.posted;var result=this.SUPER(arguments).Touchend.apply(this,arguments);if(forceout){this. Deactivate(menu);delete ITEM.lastItem;delete ITEM.lastMenu}return result;},Mouseup:function(event,menu){if(!this.disabled){if(!this.menu.posted){if(this.timer){clearTimeout(this.timer);delete this.timer}this.menu.Post(event,menu);}else{var menus=document.getElementById("MathJax_MenuFrame").childNodes,m=menus.length-1;while(m>=0){var child=menus[m];child.menuItem.posted=false;child.parentNode.removeChild(child);if(child.menuItem===this.menu){break};m--;}}}return FALSE(event);}});MENU.ITEM.RADIO=MENU.ITEM.Subclass({variable:null,marker:(isPC?"\u25CF":"\u2713"),Init:function(name,variable,def){if(!(name instanceof Array)){name=[name,name]}this.name=name;this.variable=variable;this.With(def);if(this.value==null){this.value=this.name[0]}},Label:function(def,menu){var span={className:"MathJax_MenuRadioCheck"};if(CONFIG.settings[this.variable]!==this.value){span={style:{display:"none"}}}return[["span",span,[this.marker]]," "+this.Name()];},Mouseup:function(event,menu){if(!this.disabled){var child=menu.parentNode.childNodes;for(var i=0,m=child.length;i/g,">");var title=_("EqSource","MathJax Equation Source");if(MENU.isMobile){w.document.open();w.document.write(""+title+"");w.document.write("
"+text+"
");w.document.write("
");w.document.write("");w.document.close();}else{w.document.open();w.document.write(""+title+"");w.document.write("
"+text+"
");w.document.write("");w.document.close();var table=w.document.body.firstChild;setTimeout(function(){var H=(w.outerHeight-w.innerHeight)||30,W=(w.outerWidth-w.innerWidth)||30,x,y;W=Math.max(100,Math.min(Math.floor(.5*screen.width),table.offsetWidth+W+25)); H=Math.max(40,Math.min(Math.floor(.5*screen.height),table.offsetHeight+H+25));w.resizeTo(W,H);if(event&&event.screenX!=null){x=Math.max(0,Math.min(event.screenX-Math.floor(W/2),screen.width-W-20));y=Math.max(0,Math.min(event.screenY-Math.floor(H/2),screen.height-H-20));w.moveTo(x,y);}},50);}};MENU.Scale=function(){var HTMLCSS=OUTPUT["HTML-CSS"],nMML=OUTPUT.NativeMML,SVG=OUTPUT.SVG;var SCALE=(HTMLCSS||nMML||SVG||{config:{scale:100}}).config.scale;var scale=prompt(_("ScaleMath","Scale all mathematics (compared to surrounding text) by"),SCALE+"%");if(scale){if(scale.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)){scale=parseFloat(scale);if(scale){if(scale!==SCALE){if(HTMLCSS){HTMLCSS.config.scale=scale}if(nMML){nMML.config.scale=scale}if(SVG){SVG.config.scale=scale}MENU.cookie.scale=scale;MENU.saveCookie();HUB.Reprocess();}}else{alert(_("NonZeroScale","The scale should not be zero"))}}else{alert(_("PercentScale","The scale should be a percentage (e.g., 120%%)"))}}};MENU.Zoom=function(){if(!MathJax. Extension.MathZoom){AJAX.Require("[MathJax]/extensions/MathZoom.js")}};MENU.Renderer=function(){var jax=HUB.outputJax["jax/mml"];if(jax[0]!==CONFIG.settings.renderer){var BROWSER=HUB.Browser,message,MESSAGE=MENU.Renderer.Messages,warned;switch(CONFIG.settings.renderer){case"NativeMML":if(!CONFIG.settings.warnedMML){if(BROWSER.isChrome&&BROWSER.version.substr(0,3)!=="24."){message=MESSAGE.MML.WebKit}else if(BROWSER.isSafari&&!BROWSER.versionAtLeast("5.0")){message=MESSAGE.MML.WebKit}else if(BROWSER.isMSIE){if(!BROWSER.hasMathPlayer){message=MESSAGE.MML.MSIE}}else{message=MESSAGE.MML[BROWSER]}warned="warnedMML";}break;case"SVG":if(!CONFIG.settings.warnedSVG){if(BROWSER.isMSIE&&!isIE9){message=MESSAGE.SVG.MSIE}}break;}if(message){message=_(message[0],message[1]);message+="\n\n";message+=_("SwitchAnyway","Switch the renderer anyway?\n\n"+"(Press OK to switch, CANCEL to continue with the current renderer)");MENU.cookie.renderer=jax[0].id;MENU.saveCookie();if(!confirm(message)){MENU.cookie. renderer=CONFIG.settings.renderer=HTML.Cookie.Get("menu").renderer;MENU.saveCookie();return;}if(warned){MENU.cookie.warned=CONFIG.settings.warned=true}MENU.cookie.renderer=CONFIG.settings.renderer;MENU.saveCookie();}HUB.Queue(["setRenderer",HUB,CONFIG.settings.renderer,"jax/mml"],["Rerender",HUB]);}};MENU.Renderer.Messages={MML:{WebKit:["WebkitNativeMMLWarning","Your browser doesn't seem to support MathML natively, "+"so switching to MathML output may cause the mathematics "+"on the page to become unreadable."],MSIE:["MSIENativeMMLWarning","Internet Explorer requires the MathPlayer plugin "+"in order to process MathML output."],Opera:["OperaNativeMMLWarning","Opera's support for MathML is limited, so switching to "+"MathML output may cause some expressions to render poorly."],Safari:["SafariNativeMMLWarning","Your browser's native MathML does not implement all the features "+"used by MathJax, so some expressions may not render properly."],Firefox:["FirefoxNativeMMLWarning", "Your browser's native MathML does not implement all the features "+"used by MathJax, so some expressions may not render properly."]},SVG:{MSIE:["MSIESVGWarning","SVG is not implemented in Internet Explorer prior to "+"IE9 or when it is emulating IE8 or below. "+"Switching to SVG output will cause the mathematics to "+"not display properly."]}};MENU.Font=function(){var HTMLCSS=OUTPUT["HTML-CSS"];if(!HTMLCSS)return;document.location.reload();};MENU.Locale=function(){MathJax.Localization.setLocale(CONFIG.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub]);};MENU.LoadLocale=function(){var url=prompt(_("LoadURL","Load translation data from this URL:"));if(url){if(!url.match(/\.js$/)){alert(_("BadURL","The URL should be for a javascript file that defines MathJax translation data. "+"Javascript file names should end with '.js'"));}AJAX.Require(url,function(status){if(status!=AJAX.STATUS.OK){alert(_("BadData","Failed to load translation data from %1",url))}});}};MENU.MPEvents= function(item){var discoverable=CONFIG.settings.discoverable,MESSAGE=MENU.MPEvents.Messages;if(!isIE9){if(CONFIG.settings.mpMouse&&!confirm(_.apply(_,MESSAGE.IE8warning))){delete MENU.cookie.mpContext;delete CONFIG.settings.mpContext;delete MENU.cookie.mpMouse;delete CONFIG.settings.mpMouse;MENU.saveCookie();return;}CONFIG.settings.mpContext=CONFIG.settings.mpMouse;MENU.cookie.mpContext=MENU.cookie.mpMouse=CONFIG.settings.mpMouse;MENU.saveCookie();MathJax.Hub.Queue(["Rerender",MathJax.Hub])}else if(!discoverable&&item.name[1]==="Menu Events"&&CONFIG.settings.mpContext){alert(_.apply(_,MESSAGE.IE9warning));}};MENU.MPEvents.Messages={IE8warning:["IE8warning","This will disable the MathJax menu and zoom features, "+"but you can Alt-Click on an expression to obtain the MathJax "+"menu instead.\n\nReally change the MathPlayer settings?"],IE9warning:["IE9warning","The MathJax contextual menu will be disabled, but you can "+"Alt-Click on an expression to obtain the MathJax menu instead."]}; HUB.Browser.Select({MSIE:function(browser){var quirks=(document.compatMode==="BackCompat");var isIE8=browser.versionAtLeast("8.0")&&document.documentMode>7;MENU.Augment({margin:20,msieBackgroundBug:(document.documentMode<9),msieFixedPositionBug:(quirks||!isIE8),msieAboutBug:quirks});if(isIE9){delete CONFIG.styles["#MathJax_About"].filter;delete CONFIG.styles[".MathJax_Menu"].filter;}},Firefox:function(browser){MENU.skipMouseover=browser.isMobile&&browser.versionAtLeast("6.0");MENU.skipMousedown=browser.isMobile;}});MENU.isMobile=HUB.Browser.isMobile;MENU.noContextMenu=HUB.Browser.noContextMenu;MENU.CreateLocaleMenu=function(){if(!MENU.menu)return;var menu=MENU.menu.Find("Language").menu,items=menu.items;var locales=[],LOCALE=MathJax.Localization.strings;for(var id in LOCALE){if(LOCALE.hasOwnProperty(id)){locales.push(id)}}locales=locales.sort();menu.items=[];for(var i=0,m=locales.length;i"}var data=[];var SPACE=(this.isToken?"":space+(inferred?"":" "));for(var i=0,m=this.data.length;i")}}if(this.isToken){return space+"<"+tag+attr+">"+data.join("")+""}if(inferred){return data.join("\n")}if(data.length===0||(data.length===1&&data[0]==="")){return space+"<"+tag+attr+" />"}return space+"<"+tag+attr+">\n"+data.join("\n")+"\n"+space+"";},toMathMLattributes:function(){var attr=[],defaults=this.defaults;var copy=(this.attrNames||MML.copyAttributeNames),skip=MML.skipAttributes;if(this.type==="math"&&(!this.attr||!this.attr.xmlns)){attr.push('xmlns="http://www.w3.org/1998/Math/MathML"')}if(! this.attrNames){if(this.type==="mstyle"){defaults=MML.math.prototype.defaults}for(var id in defaults){if(!skip[id]&&defaults.hasOwnProperty(id)){var force=(id==="open"||id==="close");if(this[id]!=null&&(force||this[id]!==defaults[id])){var value=this[id];delete this[id];if(force||this.Get(id)!==value){attr.push(id+'="'+this.toMathMLattribute(value)+'"')}this[id]=value;}}}}for(var i=0,m=copy.length;i0x7E){string[i]="&#x"+n.toString(16).toUpperCase()+";";}else{var c={'&':'&','<':'<','>':'>','"':'"'}[string[i]];if(c){string[i]=c}}}else if(i+1\n"+data.join("\n")+"\n"+space+"";}});MML.munderover.Augment({toMathML:function(space){var tag=this.type;if(this.data[this.under]==null){tag="mover"}if(this.data[this.over]==null){tag="munder"}var attr=this.toMathMLattributes();delete this.data[0].inferred;var data=[];for(var i=0,m=this.data.length;i\n"+ data.join("\n")+"\n"+space+"";}});MML.TeXAtom.Augment({toMathML:function(space){var attr=this.toMathMLattributes();if(!attr&&this.data[0].data.length===1){return space.substr(2)+this.data[0].toMathML(space)}return space+"\n"+this.data[0].toMathML(space+" ")+"\n"+space+"";}});MML.chars.Augment({toMathML:function(space){return(space||"")+this.toMathMLquote(this.toString())}});MML.entity.Augment({toMathML:function(space){return(space||"")+"&"+this.data[0]+";"}});MML.xml.Augment({toMathML:function(space){return(space||"")+this.toString()}});MathJax.Hub.Register.StartupHook("TeX mathchoice Ready",function(){MML.TeXmathchoice.Augment({toMathML:function(space){return this.Core().toMathML(space)}});});MathJax.Hub.Startup.signal.Post("toMathML Ready");});MathJax.Ajax.loadComplete("[MathJax]/extensions/toMathML.js");},{},{}); /* cache key: cybsr1_mediawiki_d:resourceloader:filter:minify-js:7:ce7d4389b80fd5b1086306a08addc574 */