/* * /MathJax/jax/output/NativeMML/jax.js * * Copyright (c) 2010 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Unpack([ ['(','function','(b,e,d','){var ','a,c=e.Browser.isMSIE;','b.Augment({','LEFTBUTTON',':(c?1:0),MENUKEY:"altKey",','noContextMenuBug',':e.Browser.isKonequeror,msieQuirks:(c&&!(document.compatMode==="BackCompat")),','config:{styles',':{}},settings:','e.config.menuSettings',',Startup:',1,'(){','return ','MathJax.','Ajax.Styles(','this.config.','styles)},Config:',1,'(){this.SUPER(arguments).Config','.call(this',');if(','this.settings.scale','){',19,'scale=',25,'}},Translate:',1,'(g){if(!g','.parentNode','){return','}var k=g','.previousSibling',';if(k&&String(k.className).match(/^MathJax(_MathML|_Display)?$/)){k',33,'.removeChild(','k)}var j=g.',17,'elementJax.root;var i=(j.Get("display")==="block"?"div":"span");var h=document.','createElement','(i),f=h;h.className="','MathJax_MathML','";h.style.fontSize=',19,'scale+"%";if(c){f=','MathJax.HTML.addElement(','h,"span",{className:"MathJax_MathContainer",','style:{display:"inline-block",','position:"relative','"}})}j.','toNativeMML(','f);g',33,'.insertBefore(h,g);if(c){if(',19,'showMathMenuMSIE){this.MSIEoverlay(h)}}else{j=h','.firstChild',';j.','oncontextmenu','=this.','ContextMenu',';j.','onmouseover',63,'Mouseover',';j.','onmousedown',63,'Mousedown;j.onclick',63,'Click',';j.','ondblclick',63,'DblClick','}},Remove:',1,'(f',3,'g=f.SourceElement();if(!g',34,'}g=g',36,';if(!g',34,'}if(g.className.match(/',45,'/)){g',33,39,'g)}},MMLnamespace:"http://www.w3.org/1998/Math/MathML",MSIEoverlay:',1,'(m',3,'l=m',60,';','m.style.position','="absolute";var n','=m.scrollHeight',',h=m.offsetWidth;var j=',49,'m,"img",{src:"about:blank",style:{','width:0,height:','n+"px"}});var f',103,'-n;m',39,'j);',101,'="";var k,i,g=(m',33,'.nodeName.toLowerCase()==="','div");if(g&&this.quirks){k=-n;i=Math.floor(-h/2)}else{k=f-n,i=-h}',49,'m,"span",{',51,107,'0,',52,'"}},[["span",{',51,'position:"absolute",left:i+"px",top:k+"px",width:l.offsetWidth+"px",height:n+"px",cursor:"pointer","background-color":"white",filter:"alpha(opacity=0)"},',70,':this.MSIEevent',',',62,128,',onclick',128,',onmousemove',128,',',76,128,',',66,128,',onmouseout',128,'}]])},MSIEmath:',1,'(f',3,'g=f',33,36,60,';return(g',116,'span"?g',60,':g)},MSIEevent:',1,'(){var g=b.MSIEmath(this);var f','=window.event',';var h=b["MSIE"+f.type];if(h&&h.call(b,f,g,this)){','return false','}g.fireEvent("on"+f.type,f);',161,'},MSIEmousedown:',1,'(h,g,f){if(','h[this.MENUKEY]&&h.button===this.',6,'&&this','.settings.context','!=="','MathJax"){this.trapUp=this.trapClick=true;this.ContextMenu.call(f,h,true);return true}','if(','this.MSIEzoomKeys','&&',174,'(h)){this.trapUp=true;',16,'true}',161,'},MSIEcontextmenu:',1,166,'this',170,'==="',172,161,'},',64,':',1,'(i,j','){if(b.config.showMathMenu','&&(b',170,'==="MathJax','"||j)){if(b.safariContextMenuBug','){setTimeout("','window.getSelection().','empty()",0)}var ','g=',17,'Menu;if(g){if(','document.selection',199,205,'.',201,'f=(c?this',33,33,'.nextSibling',':this',33,213,');g.jax=e.getJaxFor(f);g.menu.items[1].menu.items[1].name=(','g.jax.inputJax.id','==="MathML"?"Original":',218,');','delete ','b.trapClick;',222,'b.trapUp;',16,'g.menu.Post(i)}else{if(!','d.loadingMathMenu','){',228,'=true;if(!i){i',159,'}var h={pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY};',17,'Callback.Queue(','d.Require("[MathJax]/extensions/','MathMenu.js"),',1,'(){',222,228,'},[this,arguments.callee,h,j])}if(!i){i',159,'}if(','i.preventDefault','){',245,'()}if(','i.stopPropagation','){',249,'()}i.cancelBubble=true;i.returnValue=false;',161,'}}},Mousedown:',1,'(f',194,'){if(!f){f',159,'}if(b',170,197,'"){if(!b.',8,'||f.button!==2',34,'}}else{if(!f[b.MENUKEY]||f.button!==b.',6,34,'}}',16,'b.',64,23,',f,true)}},',68,':',1,'(f){b.HandleEvent(f,"',68,'",this)},',74,':',1,279,74,281,78,':',1,279,78,281,'HandleEvent:',1,'(h,f,g){},NAMEDSPACE:{negativeveryverythinmathspace:"-.0556em",negativeverythinmathspace:"-.1111em",negativethinmathspace:"-.1667em",negativemediummathspace:"-.2222em",negativethickmathspace:"-.2778em",negativeverythickmathspace:"-.3333em",negativeveryverythickmathspace:"-.3889em"}});','MathJax.Hub.Register.StartupHook("','mml Jax Ready",',1,'(){a=',17,'ElementJax.mml;a.mbase','.Augment({toNativeMML:function(','k',3,'h=','this.NativeMMLelement','(this.type);','this.NativeMMLattributes(h);','for(var j=','0',',g=this.data.length;j