a._allowedJmolSize[1]?a._allowedJmolSize[1]:
e)+(l?l:"")}var l;"object"==typeof e&&null!=e?(l=e[0]||e.width,e=e[1]||e.height):l=e;l=[h(l,"px"),h(e,"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=l[0];e.style.height=l[1];this._containerWidth=l[0];this._containerHeight=l[1];this._is2D&&a._repaint(this,!0)};h._search=function(e,h){a._search(this,e,h)};h._searchDatabase=function(e,h,l){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(e,h,l);this._showInfo(!1);
0<=e.indexOf("?")?a._getInfoFromDatabase(this,h,e.split("?")[0]):(l||(l=a._getScriptForDatabase(h)),e=h+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,l,e))};h._loadFile=function(e,h,l){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,h)){var m=this;a._loadFileData(this,e,function(a){m.__loadModel(a,h,l)},function(){m.__loadModel(null)})}};h._scriptLoad=function(a,h){h||(h="");var l=this._isJava||!this._noscript;l&&this._script("zap;set echo middle center;echo Retrieving data...");
if(!this._isSigned||null!=this._viewSet)return!1;l?this._script('load async "'+a+'";'+h):this._applet.openFile(a);this._checkDeferred("");return!0};h.__loadModel=function(e,h,l){null!=e&&(null!=this._viewSet&&(h||(h=""),h+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!h&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,h,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:l,
data:e}))};h._loadMolData=function(a,h,l){h||(h="");l=l?"append":"model";this._applet.scriptWait('load DATA "'+l+'"'+a+'\nEND "'+l+'" ;'+h)};h._loadModelFromView=function(e){this._currentView=e;var h=e.Jmol;null!=h.data?this.__loadModel(h.data,null,e.info.chemID):null!=e.info.chemID?a._searchMol(this,e.info.chemID,null,!1):(h=e.JME)&&h.applet._show2d(!1,this)};h._reset=function(){this._scriptWait("zap",!0)};h._updateView=function(){null!=this._viewSet&&this._applet&&(chemID=""+this._getPropertyAsJavaObject("variableInfo",
"script('show chemical inchiKey')"),chemID=36>chemID.length()?null:chemID.substring(36).split("\n")[0],a.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate","extractModel","{visible}")}))};h._atomPickedCallback=function(e,h){if(!(0>h)){var l=[h+1];a.View.updateAtomPick(this,l);this._updateAtomPick(l)}};h._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};h._isDeferred=function(){return!this._canvas&&this._cover&&
this._isCovered&&this._deferApplet};h._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};h._cover=function(e){e||!this._deferApplet?this._displayCoverImage(e):(e=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(e+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),this._script(e,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||
this._newCanvas(!1),this._defaultModel&&a._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&a.$html(a.$(this,"appletdiv"),this._javaCode),this._init&&this._init())};h._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,a._getElement(this,"coverdiv").style.display=e?"block":"none")};h._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};h._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};
h._getMol2D=function(){return this._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var m=a.controls={_hasResetForms:!1,_scripts:[""],_checkboxMasters:{},_checkboxItems:{},_actions:{},_buttonCount:0,_checkboxCount:0,_radioGroupCount:0,_radioCount:0,_linkCount:0,_cmdCount:0,_menuCount:0,_previousOnloadHandler:null,_control:null,_element:null,_appletCssClass:null,_appletCssText:"",_buttonCssClass:null,_buttonCssText:"",_checkboxCssClass:null,_checkboxCssText:"",_radioCssClass:null,_radioCssText:"",_linkCssClass:null,_linkCssText:"",_menuCssClass:null,_menuCssText:""};
m._addScript=function(a,h){var e=m._scripts.length;m._scripts[e]=[a,h];return e};m._getIdForControl=function(a,h){return"string"==typeof a?a:!h||!a._canScript||a._canScript(h)?a._id:null};m._radio=function(a,h,e,k,q,s,u,b){var c=m._getIdForControl(a,h);if(null==c)return null;++m._radioCount;void 0!=s&&null!=s||(s="jmolRadioGroup"+(m._radioGroupCount-1));if(!h)return"";void 0!=u&&null!=u||(u="jmolRadio"+(m._radioCount-1));void 0!=e&&null!=e||(e=h.substring(0,32));q||(q="");a="";m._actions[u]=
m._addScript(c,h);h='";0<=e.toLowerCase().indexOf("")&&(h+=a,a="");return h+('"+a+q)};m._scriptExecute=function(l,h){var e=a._applets[h[0]],k=h[1];if("object"==typeof k)k[0](l,k,
e);else"function"==typeof k?k(e):a.script(e,k)};m.__checkScript=function(a,h){var e=0<=h.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(h.value);h.style.color=e?"black":"red";return e};m.__getCmd=function(a,h){if(h._cmds&&h._cmds.length){var e=h._cmds[h._cmdpt=(h._cmdpt+h._cmds.length+a)%h._cmds.length];setTimeout(function(){h.value=e},10);h._cmdadd=1;h._cmddir=a}};m._commandKeyPress=function(l,h,e){l=13==l?13:window.event?window.event.keyCode:l?l.keyCode||l.which:0;var k=document.getElementById(h),
q=a._applets[e];switch(l){case 13:return h=k.value,m._scriptExecute(k,[e,h]),k._cmds||(k._cmds=[],k._cmddir=0,k._cmdpt=-1,k._cmdadd=0),h&&0==k._cmdadd?(++k._cmdpt,k._cmds.splice(k._cmdpt,0,h),k._cmdadd=0,k._cmddir=0):k._cmdadd=0,k.value="",!1;case 27:return setTimeout(function(){k.value=""},20),!1;case 38:m.__getCmd(-1,k);break;case 40:m.__getCmd(1,k);break;default:k._cmdadd=0}setTimeout(function(){m.__checkScript(q,k)},20);return!0};m._click=function(a,h){m._element=a;1==arguments.length&&(h=m._actions[a.id]);
m._scriptExecute(a,m._scripts[h])};m._menuSelected=function(a){var h=a.value;if(void 0!=h)m._scriptExecute(a,m._scripts[h]);else{h=a.length;if("number"==typeof h)for(var e=0;e";a._debugAlert&&alert(h);return a._documentWrite(h)};m._getCheckbox=function(l,h,e,k,q,s,u){var b=m._getIdForControl(l,h);null!=b&&(b=m._getIdForControl(l,e));if(null==b)return"";void 0!=s&&null!=s||(s="jmolCheckbox"+m._checkboxCount);++m._checkboxCount;if(void 0==h||null==h||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==k||null==k)alert("jmolCheckbox requires a label");else return m._actions[s]=[m._addScript(b,h),m._addScript(b,e)],l="",
q='",0<=k.toLowerCase().indexOf("")&&(q+=l,l=""),q+='"+l,a._debugAlert&&alert(q),a._documentWrite(q)};m._getCommandInput=function(l,h,e,k,q,s){l=m._getIdForControl(l,"x");if(null==l)return"";
void 0!=k&&null!=k||(k="jmolCmd"+m._cmdCount);void 0!=h&&null!=h||(h="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=s||(s="help");++m._cmdCount;h='";a._debugAlert&&alert(h);return a._documentWrite(h)};
m._getLink=function(l,h,e,k,q){l=m._getIdForControl(l,h);if(null==l)return"";void 0!=k&&null!=k||(k="jmolLink"+m._linkCount);void 0!=e&&null!=e||(e=h.substring(0,32));++m._linkCount;h=m._addScript(l,h);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)};
m._getMenu=function(l,h,e,k,q){var s=m._getIdForControl(l,null);void 0!=k&&null!=k||(k="jmolMenu"+m._menuCount);++m._menuCount;s=typeof h;if(null!=s&&"object"==s&&h.length){var u=h.length;"number"!=typeof e||1==e?e=null:0>e&&(e=u);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};m._getRadio=function(l,h,e,k,q,s,u,b){0==m._radioGroupCount&&++m._radioGroupCount;s||(s="jmolRadioGroup"+(m._radioGroupCount-1));l=m._radio(l,h,e,k,q,s,u?u:s+"_"+m._radioCount,b?b:0);if(null==
l)return"";a._debugAlert&&alert(l);return a._documentWrite(l)};m._getRadioGroup=function(l,h,e,k,q,s){var u=typeof h;if("object"!=u||null==u||!h.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e=" ");var b=h.length;++m._radioGroupCount;k||(k="jmolRadioGroup"+(m._radioGroupCount-1));for(var c="",d=0;d";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol);
(function(a){var m=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=m("_J2S");a._jarFile=m("_JAR");a._use=m("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(l,h,e){return a._Applet._get(l,h,e)};a.getJMEApplet=function(l,h,e,k){return a._JMEApplet._get(l,h,e,k)};a.getJSVApplet=function(l,h,e){return a._JSVApplet._get(l,h,e)};a.loadFile=function(a,h,e){a._loadFile(h,e)};a.script=function(a,h){a._checkDeferred(h)||
a._script(h)};a.scriptCheck=function(a,h){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(h)};a.scriptWait=function(a,h){return a._scriptWait(h)};a.scriptEcho=function(a,h){return a._scriptEcho(h)};a.scriptMessage=function(a,h){return a._scriptMessage(h)};a.scriptWaitOutput=function(a,h){return a._scriptWait(h)};a.scriptWaitAsArray=function(a,h){return a._scriptWaitAsArray(h)};a.search=function(a,h,e){a._search(h,e)};a.evaluateVar=function(a,h){return a._evaluate(h)};a.evaluate=function(a,h){return a._evaluateDEPRECATED(h)};
a.getAppletHtml=function(l,h){if(h){var e=a._document;a._document=null;l=a.getApplet(l,h);a._document=e}return l._code};a.getPropertyAsArray=function(a,h,e){return a._getPropertyAsArray(h,e)};a.getPropertyAsJavaObject=function(a,h,e){return a._getPropertyAsJavaObject(h,e)};a.getPropertyAsJSON=function(a,h,e){return a._getPropertyAsJSON(h,e)};a.getPropertyAsString=function(a,h,e){return a._getPropertyAsString(h,e)};a.getStatus=function(a,h){return a._getStatus(h)};a.resizeApplet=function(a,h){return a._resizeApplet(h)};
a.restoreOrientation=function(a,h){return a._restoreOrientation(h)};a.restoreOrientationDelayed=function(a,h,e){return a._restoreOrientationDelayed(h,e)};a.saveOrientation=function(a,h){return a._saveOrientation(h)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,h,e){a._info=h;2")};
a.jmolButton=function(l,h,e,k,m){return a.controls._getButton(l,h,e,k,m)};a.jmolCheckbox=function(l,h,e,k,m,s,u){return a.controls._getCheckbox(l,h,e,k,m,s,u)};a.jmolCommandInput=function(l,h,e,k,m,s){return a.controls._getCommandInput(l,h,e,k,m,s)};a.jmolHtml=function(l){return a._documentWrite(l)};a.jmolLink=function(l,h,e,k,m){return a.controls._getLink(l,h,e,k,m)};a.jmolMenu=function(l,h,e,k,m){return a.controls._getMenu(l,h,e,k,m)};a.jmolRadio=function(l,h,e,k,m,s,u,b){return a.controls._getRadio(l,
h,e,k,m,s,u,b)};a.jmolRadioGroup=function(l,h,e,k,m,s){return a.controls._getRadioGroup(l,h,e,k,m,s)};a.setCheckboxGroup=function(l,h){a.controls._cbSetCheckboxGroup(l,h,arguments)};a.setDocument=function(l){a._document=l};a.setXHTML=function(l){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;l&&(a._XhtmlElement=document.getElementById(l),a._XhtmlAppendChild=!0)};a.setAppletCss=function(l,h){null!=l&&(a._appletCssClass=l);a._appletCssText=h?h+" ":l?'class="'+l+'" ':""};a.setButtonCss=function(l,
h){null!=l&&(a.controls._buttonCssClass=l);a.controls._buttonCssText=h?h+" ":l?'class="'+l+'" ':""};a.setCheckboxCss=function(l,h){null!=l&&(a.controls._checkboxCssClass=l);a.controls._checkboxCssText=h?h+" ":l?'class="'+l+'" ':""};a.setRadioCss=function(l,h){null!=l&&(a.controls._radioCssClass=l);a.controls._radioCssText=h?h+" ":l?'class="'+l+'" ':""};a.setLinkCss=function(l,h){null!=l&&(a.controls._linkCssClass=l);a.controls._linkCssText=h?h+" ":l?'class="'+l+'" ':""};a.setMenuCss=function(l,h){null!=
l&&(a.controls._menuCssClass=l);a.controls._menuCssText=h?h+" ":l?'class="'+l+'" ':""};a.setAppletSync=function(l,h,e){a._syncedApplets=l;a._syncedCommands=h;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(l){a._grabberOptions=l};a.setAppletHtml=function(l,h){l._code&&(a.$html(h,l._code),l._init&&!l._deferApplet&&l._init())};a.coverApplet=function(a,h){a._cover&&a._cover(h)};a.setFileCaching=function(l,h){l?l._cacheFiles=h:a.fileCache=h?{}:null};a.resetView=function(l,h){a.View.resetView(l,
h)};a.updateView=function(a,h,e){a._updateView(h,e)};a.getChemicalInfo=function(l,h,e){h||(h="name");"string"!=typeof l&&(l=l._getSmiles());return a._getNCIInfo(l,h,e)};a.saveImage=function(a){switch(a._viewType){case "Jmol":a._script('write PNGJ "'+a._id+'.png"');break;case "JSV":a._script("write PDF");break;case "JME":a._script("print")}}})(Jmol);
LoadClazz=function(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz={_isQuiet:!1,_debugging:!1},function(a,m){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(l){}var h=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){h.push(a);window[a]=b};a.getGlobals=function(){return h.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=
a)};var e=null;a._startProfiling=function(a){e=a&&self.JSON?{}:null};NullObject=function(){};a._supportsNativeObject=window["j2s.object.native"];a._supportsNativeObject?(a._O=function(){},a._O.__CLASS_NAME__="Object",a._O.getClass=function(){return a._O}):a._O=Object;a.Console={};a.dateToString=Date.prototype.toString;a._hashCode=0;var k=a._O.prototype;k.equals=function(a){return this==a};k.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};k.getClass=function(){return a.getClass(this)};
k.clone=function(){return a.clone(this)};a.clone=function(a){var b=new a.constructor,c;for(c in a)b[c]=a[c];return b};k.finalize=function(){};k.notify=function(){};k.notifyAll=function(){};k.wait=function(){};k.to$tring=Object.prototype.toString;k.toString=function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)};a._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");a.extendJO=function(b,
c){c&&(b.__CLASS_NAME__=b.prototype.__CLASS_NAME__=c);if(a._supportsNativeObject)for(var d=0;de)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,h=d.indexOf("(",e);if(0>h)break;d=d.substring(e,h);if(0<=d.indexOf("Array"))return"Array";d=d.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==d||""==d?"Function":d;case "object":if(b.__CLASS_NAME__)return b.__CLASS_NAME__;if(!b.constructor)break;if(!b.constructor.__CLASS_NAME__){if(b instanceof
Number)return"Number";if(b instanceof Boolean)return"Boolean";if(b instanceof Array||b.BYTES_PER_ELEMENT)return"Array";d=b.toString();if("["==d.charAt(0))return a.extractClassName(d)}return a.getClassName(b.constructor,!0)}return"Object"};a.getClass=function(b){if(!b)return a._O;if("function"==typeof b)return b;if(b instanceof a.CastedNull)b=b.clazzName;else switch(typeof b){case "string":return String;case "object":if(!b.__CLASS_NAME__)return b.constructor||a._O;b=b.__CLASS_NAME__;break;default:return b.constructor}return a.evalType(b,
!0)};var q=function(b,c){for(var d=0;dd;){if(e.implementz)for(var h=e.implementz,k=0;k(""+b).indexOf("Error"))return!1;System.out.println(a.getStackTrace());return!0}return d==Exception||d==Throwable||d==NullPointerException&&c(b)};a.getStackTrace=function(a){a||(a=25);var b="\n",c=arguments.callee,d=0>a;d&&(a=-a);for(var e=
0;e",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+h.replace(/function /,""):h)+"\n");if(c==c.caller){b+="\n";break}if(d)for(var h=c.arguments,k=0;kU.indexOf(k)&&(U+=k+"\n");e[k]||(e[k]=0);e[k]++}if(fx.lastParams==h.typeString&&fx.lastClaxxRef===j){if(h.hasCastedNull){j=[];for(d=0;dx[C]){za=!1;break}za&&(x[z.length]=u,G.push(x))}if(0==G.length)G=null;else{Q=G[0];for(u=1;urb(s,c)&&s.push(c);q&&(q.claxxOwner===c?(m[q.funParams]=q,q.claxxOwner=null,q.funParams=null):q.claxxOwner||(m["\\unknown"]=q));h.exClazz=c;m[k]=h;return m};duplicatedMethods={};var K=function(b,c,d){var e=b.prototype[c];if(e&&(e.claxxOwner||e.claxxReference)===b)key=b.__CLASS_NAME__+"."+c+d,(b=duplicatedMethods[key])?(c="Warning! Duplicate method found for "+key,System.out.println(c),
a.alert(c),duplicatedMethods[key]=b+1):duplicatedMethods[key]=1};a.showDuplicates=function(a){var b="",c=duplicatedMethods,d=0,e;for(e in c)1c.length)break;if(c.indexOf(k)==c.length-k.length){c=c.substring(0,c.length-k.length+
1);break}}else c=a._Loader.getClasspathFor(d,!0);else(e=a.binaryFolders)&&e.length&&(c=e[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");e=c.length;e=c.charAt(e-1);"/"!=e&&(c+="/");this.base?d=c+b:(e=d.lastIndexOf("."),d=-1==e||this.base?c+b:c+d.substring(0,e).replace(/\./g,"/")+"/"+b)}c=null;try{if(0>d.indexOf(":/")){var q=document.location.href.split("?")[0].split("/");q[q.length-1]=d;d=q.join("/")}c=new java.net.URL(d)}catch(s){}q=null==c?null:m._getFileData(d.toString());if(!q||"error"==q||0==q.indexOf("[Exception"))return null;
q=(new java.lang.String(q)).getBytes();q=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(q));q.url=c;return q},defineMethod:function(b,c,d){a.defineMethod(this,b,c,d)},defineStaticMethod:function(b,c,d){a.defineMethod(this,b,c,d);this[b]=this.prototype[b]},makeConstructor:function(b,c){a.makeConstructor(this,b,c)}};var Pa=[];a.pu$h=function(a){a||(a=self.c$);a&&Pa.push(a)};a.p0p=function(){return Pa.pop()};a.decorateAsClass=function(b,c,d,e,h,k){var l=null;c&&(l=c.__PKG_NAME__,l||
(l=c.__CLASS_NAME__));var m=(l?l+".":"")+d;a._Loader._classPending[m]&&(delete a._Loader._classPending[m],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+l+"."+d);(l=a.unloadedClasses[m])&&(b=l);db(b,c,d);k?a.inheritClass(b,e,k):e&&a.inheritClass(b,e);h&&a.implementOf(b,h);return b};var db=function(b,c,d){var e;c?c.__PKG_NAME__?(e=c.__PKG_NAME__+"."+d,c[d]=b,c===java.lang&&a.setGlobal(d,b)):(e=c.__CLASS_NAME__+"."+d,
c[d]=b):(e=d,a.setGlobal(d,b));a.extendJO(b,e);c=a.innerFunctionNames;for(d=0;da?Math.ceil(a):Math.floor(a)};a.floatToByte=a.floatToShort=a.floatToLong=a.floatToInt;a.doubleToByte=
a.doubleToShort=a.doubleToLong=a.doubleToInt=a.floatToInt;a.floatToChar=function(a){return String.fromCharCode(0>a?Math.ceil(a):Math.floor(a))};a.doubleToChar=a.floatToChar;var gb=function(a,b){a||(a=0);if("object"==typeof a)var c=a;else for(var c=Array(a),d=0;d>3;c._fake=!0;return c},va=function(a,b){a||(a=0);b||(b=this.length);if(this._fake){var c=new this.constructor(b-a);System.arraycopy(this,a,c,0,b-a);return c}return new this.constructor(this.buffer.slice(a*
this.BYTES_PER_ELEMENT,b*this.BYTES_PER_ELEMENT))};!0==(a.haveInt32=!!(self.Int32Array&&self.Int32Array!=Array))?Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort):(Int32Array=function(a){return gb(a,32)},Int32Array.prototype.sort=Array.prototype.sort,Int32Array.prototype.toString=function(){return"[object Int32Array]"});Int32Array.prototype.slice||(Int32Array.prototype.slice=function(){return va.apply(this,arguments)});Int32Array.prototype.clone=function(){var a=this.slice();
a.BYTES_PER_ELEMENT=4;return a};!0==(a.haveFloat64=!!(self.Float64Array&&self.Float64Array!=Array))?Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort):(Float64Array=function(a){return gb(a,64)},Float64Array.prototype.sort=Array.prototype.sort,Float64Array.prototype.toString=function(){return"[object Float64Array]"});Float64Array.prototype.slice||(Float64Array.prototype.slice=function(){return va.apply(this,arguments)});Float64Array.prototype.clone=function(){return this.slice()};
a.newArray=function(a,b,c,d){if(-1!=a||2==arguments.length)return la(arguments,0);a=b.slice(c,d);a.BYTES_PER_ELEMENT=b.BYTES_PER_ELEMENT;return a};var la=function(a,b){var c=a[0];"string"==typeof c&&(c=c.charCodeAt(0));var d=a.length-1,e=a[d];if(1c&&(c=e);switch(b){case 8:return d=new Int8Array(c),d.BYTES_PER_ELEMENT=1,d;case 32:return d=new Int32Array(c),d.BYTES_PER_ELEMENT=4,d;case 64:return d=
new Float64Array(c),d.BYTES_PER_ELEMENT=8,d;default:d=0>c?e:Array(c);d.BYTES_PER_ELEMENT=0;if(0d)for(;0<=--e;)c[d++]=a[b++];else{d+=e;for(b+=e;0<=--e;)a[--d]=a[--b]}},currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return System.props},getProperty:function(a,b){if(System.props)return System.props.getProperty(a,b);var c=System.$props[a];if("undefined"!=typeof c)return c;if(0=x.STATUS_LOAD_COMPLETE))k?window.setTimeout(g,25):g()}else{var m=
b.getClasspathFor(c);l=e[m];if(!l)for(k=F.length;0<=--k;)if(F[k].path==m||F[k].name==c){l=!0;break}if(l){if(g&&(l=I(c)))if(l.onLoaded){if(g!=l.onLoaded){var r=l.onLoaded,q=g;l.onLoaded=function(){r();q()}}}else l.onLoaded=g}else{l=a.unloadedClasses[c]&&I(c)||new x;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;X(m,c,l);l.onLoaded=g;l.status=x.STATUS_KNOWN;c=!1;for(k=F.length;0<=--k;)if(F[k].status!=x.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(k=F.length;0<=--k&&!F[k].isPackage;)F[k+
1]=F[k];F[++k]=l}else c&&F.push(l);if(!c){var s=!1;g&&(s=ga,ga=!0);h&&(g=null);Ja(d,l,!0);V(l,l.path,l.requiredBy,!1,g?function(){ga=s;g()}:null)}}}};b.loadPackage=function(a,c){c||(c=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,c)};b.jarClasspath=function(a,b){b instanceof Array||(b=[b]);D(b);for(var c=b.length;0<=--c;)E["#"+b[c]]=a;E["$"+a]=b};b.registerPackages=function(c,d){for(var e=b.getClasspathFor(c+".*",!0),g=0;g>");k=e[d];e[d]=!0;Ya(F,
d);M=!0;ra=!1;b._checkLoad&&System.out.println("\t"+d+(g?"\n -- required by "+g:"")+" ajax="+M+" async="+ra);g=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));k||System.out.println("loadScript "+d);b.onScriptLoading(d);if(M&&!ra){var r=m._getFileData(d);try{U(d,g,r,k)}catch(q){alert(q+" loading file "+d+" "+c.name+" "+a.getStackTrace())}l&&l()}else c={dataType:"script",async:!0,type:"GET",url:d,success:ta(d,!1,l),error:ta(d,!0,l)},h++,k?setTimeout(c.success,0):m.$ajax(c)},ta=function(c,d,e){a.getStackTrace();
return function(){g&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0q;q++)for(;m=l[q](x.STATUS_CONTENT_LOADED);)1==q&&r===m&&(m.status=x.STATUS_LOAD_COMPLETE),updateNode(m),r=m;for(;!(la=[],!ma(d,c)););for(q=0;2>q;q++)for(r=null;(m=l[q](x.STATUS_DECLARED))&&r!==m;)updateNode(r=m);r=[];for(q=0;2>q;q++)for(;m=l[q](x.STATUS_DECLARED);)r.push(m),m.status=x.STATUS_LOAD_COMPLETE;if(r.length){for(q=0;q=x.STATUS_DECLARED););if(0<=g){if(b._checkLoad){var h;System.out.println("cycle found loading "+c+" for "+a)}for(;gh;h++){k=j[h];for(g=k.length;0<=--g;)if(k[g].status==x.STATUS_DECLARED&&ma(k[g],c))return!0}d.length=e;return!1};b._classCountPending=0;b._classCountOK=0;b._classPending=
{};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=I(c);d?(a.push(d),System.out.println(va("","",d,"",0))):alert("No node for "+c)}return a};var va=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5=x.STATUS_LOAD_COMPLETE)Da(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,e=d;0<=--e;){var g=a.musts[e];g.requiredBy=a;if(g.statusx.STATUS_KNOWN&&!a.declaration||Ta(a.musts,x.STATUS_LOAD_COMPLETE)&&Ta(a.optionals,x.STATUS_LOAD_COMPLETE)){c=x.STATUS_LOAD_COMPLETE;if(!wa(a,c))return!1;if(a.declaration&&a.declaration.clazzList){j=0;k=a.declaration.clazzList;for(l=k.length;jc.indexOf("Opera")&&document.all?0==h?d:k:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:k:d;wa!=c&&(wa=c,O.style.bottom=wa+4+"px");b&&ma()}};var jb=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&jb(c);try{a.removeChild(c)}catch(d){}}}},kb=function(a){L&&a==Z.DEFAULT_OPACITY&&(window.clearTimeout(L),L=null);fa=a;navigator.userAgent.toLowerCase();O.style.filter="Alpha(Opacity="+a+")";O.style.opacity=a/100},ub=
function(){Z.hideMonitor()},ya=!1,ma=function(){"none"!=O.style.display&&(fa==Z.DEFAULT_OPACITY?(L=window.setTimeout(function(){ma()},750),fa-=5):0<=fa-10?(kb(fa-10),L=window.setTimeout(function(){ma()},40)):O.style.display="none")},D=a.Console,aa=System;D.maxTotalLines=1E4;D.setMaxTotalLines=function(a){D.maxTotalLines=0D.maxTotalLines){for(var d=0;dc.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++;else try{l=c.childNodes[c.childNodes.length-
1]}catch(m){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++}var q=document.createElement("SPAN");l.appendChild(q);q.style.whiteSpace="nowrap";b&&(q.style.color=b);l=h[d];0==l.length&&(l=V);q.appendChild(document.createTextNode(l));D.pinning||(c.scrollTop+=100);D.metLineBreak=d!=k||e}d=c.parentNode.className;!D.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);D.lastOutputTime=(new Date).getTime()};D.clear=function(){try{D.metLineBreak=
!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=b.childNodes,d=c.length;0<=--d;)b.removeChild(c[d]);D.linesCount=0}}catch(e){}};a.alert=function(a){D.consoleOutput(a+"\r\n")};aa.out.print=function(a){D.consoleOutput(a)};aa.out.println=function(a){D.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};aa.out.write=function(a,b,c){aa.out.print(String.instantialize(a).substring(b,b+c))};aa.err.__CLASS_NAME__="java.io.PrintStream";aa.err.print=
function(a){D.consoleOutput(a,"red")};aa.err.println=function(a){D.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};aa.err.write=function(a,b,c){aa.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2016-10-21 06:35:41 -0500 (Fri, 21 Oct 2016) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.6.4_2016.10.21";
| |