(function(a,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=a.document?m(a,!0):function(a){if(!a.document)throw Error("jQuery requires a window with a document");return m(a)}:m(a)})("undefined"!==typeof window?window:this,function(a,m){function g(l){var a=l.length,b=h.type(l);return"function"===b||h.isWindow(l)?!1:1===l.nodeType&&a?!0:"array"===b||0===a||"number"===typeof a&&0")).appendTo(a.documentElement),a=(Ba[0].contentWindow||Ba[0].contentDocument).document,a.write(),a.close(),b=Ub(l,a),Ba.detach();Wb[l]=b}return b}function Xb(l,
a){return{get:function(){var b=l();if(null!=b)if(b)delete this.get;else return(this.get=a).apply(this,arguments)}}}function Yb(l,a){if(a in l)return a;for(var b=a.charAt(0).toUpperCase()+a.slice(1),c=a,d=Zb.length;d--;)if(a=Zb[d]+b,a in l)return a;return c}function $b(l,a){for(var b,c,d,f=[],k=0,p=l.length;k
a;a+=2)"margin"===b&&(f+=h.css(l,b+ka[a],!0,d)),c?("content"===b&&(f-=h.css(l,"padding"+ka[a],!0,d)),"margin"!==b&&(f-=
h.css(l,"border"+ka[a]+"Width",!0,d))):(f+=h.css(l,"padding"+ka[a],!0,d),"padding"!==b&&(f+=h.css(l,"border"+ka[a]+"Width",!0,d)));return f}function cc(l,a,b){var c=!0,d="width"===a?l.offsetWidth:l.offsetHeight,f=la(l),k=t.boxSizing()&&"border-box"===h.css(l,"boxSizing",!1,f);if(0>=d||null==d){d=ma(l,a,f);if(0>d||null==d)d=l.style[a];if(La.test(d))return d;c=k&&(t.boxSizingReliable()||d===l.style[a]);d=parseFloat(d)||0}return d+bc(l,a,b||(k?"border":"content"),c,f)+"px"}function N(l,a,b,c,d){return new N.prototype.init(l,
a,b,c,d)}function dc(){setTimeout(function(){ta=void 0});return ta=h.now()}function Ma(l,a){var b,c={height:l},d=0;for(a=a?1:0;4>d;d+=2-a)b=ka[d],c["margin"+b]=c["padding"+b]=l;a&&(c.opacity=c.width=l);return c}function ec(l,a,b){for(var c,d=(Da[a]||[]).concat(Da["*"]),f=0,k=d.length;fb&&w)return a;p.resolveWith(l,[e]);return!1},e=p.promise({elem:l,props:h.extend({},a),opts:h.extend(!0,{specialEasing:{}},b),originalProperties:a,originalOptions:b,startTime:ta||dc(),duration:b.duration,tweens:[],createTween:function(a,b){var c=h.Tween(l,e.opts,a,b,e.opts.specialEasing[a]||e.opts.easing);e.tweens.push(c);return c},stop:function(a){var b=0,c=a?e.tweens.length:0;if(d)return this;for(d=
!0;bl?this[l+this.length]:this[l]:aa.call(this)},pushStack:function(l){l=h.merge(this.constructor(),l);l.prevObject=this;l.context=this.context;return l},each:function(l,a){return h.each(this,l,a)},map:function(l){return this.pushStack(h.map(this,function(a,b){return l.call(a,b,a)}))},slice:function(){return this.pushStack(aa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
eq:function(l){var a=this.length;l=+l+(0>l?a:0);return this.pushStack(0<=l&&lb?Math.max(0,c+b):b:0;bv.cacheLength&&delete l[a.shift()];return l[b+" "]=c}var a=[];return l},T=function(l){l[F]=!0;return l},U=function(l){var a=K.createElement("div");try{return!!l(a)}catch(b){return!1}finally{a.parentNode&&a.parentNode.removeChild(a)}},wb=function(l,a){for(var b=l.split("|"),c=l.length;c--;)v.attrHandle[b[c]]=
a},nc=function(l,a){var b=a&&l,c=b&&1===l.nodeType&&1===a.nodeType&&(~a.sourceIndex||mc)-(~l.sourceIndex||mc);if(c)return c;if(b)for(;b=b.nextSibling;)if(b===a)return-1;return l?1:-1},hd=function(l){return function(a){return"input"===a.nodeName.toLowerCase()&&a.type===l}},id=function(l){return function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&a.type===l}},na=function(l){return T(function(a){a=+a;return T(function(b,c){for(var d,f=l([],b.length,a),k=f.length;k--;)if(b[d=
f[k]])b[d]=!(c[d]=b[d])})})},tb=function(l){return l&&typeof l.getElementsByTagName!==va&&l},oc=function(){},Pa=function(l,a){var b,c,d,f,k,h,p;if(k=pc[l+" "])return a?0:k.slice(0);k=l;h=[];for(p=v.preFilter;k;){if(!b||(c=jd.exec(k)))c&&(k=k.slice(c[0].length)||k),h.push(d=[]);b=!1;if(c=kd.exec(k))b=c.shift(),d.push({value:b,type:c[0].replace(Ra," ")}),k=k.slice(b.length);for(f in v.filter)if((c=Sa[f].exec(k))&&(!p[f]||(c=p[f](c))))b=c.shift(),d.push({value:b,type:f,matches:c}),k=k.slice(b.length);
if(!b)break}return a?k.length:k?z.error(l):pc(l,h).slice(0)},Qa=function(l){for(var a=0,b=l.length,c="";a+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,pd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),qd=RegExp(Cb),rd=RegExp("^"+uc+"$"),Sa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,
TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+vc),PSEUDO:RegExp("^"+Cb),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)",
"i")},sd=/^(?:input|select|textarea|button)$/i,td=/^h\d$/i,Fa=/^[^{]+\{\s*\[native \w/,fd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sb=/[+~]/,gd=/'|\\/g,da=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ea=function(l,a,b){l="0x"+a-65536;return l!==l||b?a:0>l?String.fromCharCode(l+65536):String.fromCharCode(l>>10|55296,l&1023|56320)};try{ca.apply(ga=tc.call(S.childNodes),S.childNodes),ga[S.childNodes.length].nodeType}catch($d){ca={apply:ga.length?function(l,a){od.apply(l,tc.call(a))}:
function(l,a){for(var b=l.length,c=0;l[b++]=a[c++];);l.length=b-1}}}B=z.support={};qc=z.isXML=function(l){return(l=l&&(l.ownerDocument||l).documentElement)?"HTML"!==l.nodeName:!1};ba=z.setDocument=function(l){var a=l?l.ownerDocument||l:S;l=a.defaultView;if(a===K||9!==a.nodeType||!a.documentElement)return K;K=a;Z=a.documentElement;X=!qc(a);l&&l!==l.top&&(l.addEventListener?l.addEventListener("unload",function(){ba()},!1):l.attachEvent&&l.attachEvent("onunload",function(){ba()}));B.attributes=U(function(a){a.className=
"i";return!a.getAttribute("className")});B.getElementsByTagName=U(function(l){l.appendChild(a.createComment(""));return!l.getElementsByTagName("*").length});B.getElementsByClassName=Fa.test(a.getElementsByClassName)&&U(function(a){a.innerHTML="";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});B.getById=U(function(l){Z.appendChild(l).id=F;return!a.getElementsByName||!a.getElementsByName(F).length});B.getById?(v.find.ID=function(a,
l){if(typeof l.getElementById!==va&&X){var b=l.getElementById(a);return b&&b.parentNode?[b]:[]}},v.filter.ID=function(a){var l=a.replace(da,ea);return function(a){return a.getAttribute("id")===l}}):(delete v.find.ID,v.filter.ID=function(a){var l=a.replace(da,ea);return function(a){return(a=typeof a.getAttributeNode!==va&&a.getAttributeNode("id"))&&a.value===l}});v.find.TAG=B.getElementsByTagName?function(a,l){if(typeof l.getElementsByTagName!==va)return l.getElementsByTagName(a)}:function(a,l){var b,
c=[],d=0,f=l.getElementsByTagName(a);if("*"===a){for(;b=f[d++];)1===b.nodeType&&c.push(b);return c}return f};v.find.CLASS=B.getElementsByClassName&&function(a,l){if(typeof l.getElementsByClassName!==va&&X)return l.getElementsByClassName(a)};pa=[];O=[];if(B.qsa=Fa.test(a.querySelectorAll))U(function(a){a.innerHTML="";a.querySelectorAll("[t^='']").length&&O.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||O.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");
a.querySelectorAll(":checked").length||O.push(":checked")}),U(function(l){var b=a.createElement("input");b.setAttribute("type","hidden");l.appendChild(b).setAttribute("name","D");l.querySelectorAll("[name=d]").length&&O.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");l.querySelectorAll(":enabled").length||O.push(":enabled",":disabled");l.querySelectorAll("*,:x");O.push(",.*:")});(B.matchesSelector=Fa.test(Wa=Z.webkitMatchesSelector||Z.mozMatchesSelector||Z.oMatchesSelector||Z.msMatchesSelector))&&U(function(a){B.disconnectedMatch=
Wa.call(a,"div");Wa.call(a,"[s!='']:x");pa.push("!=",Cb)});O=O.length&&RegExp(O.join("|"));pa=pa.length&&RegExp(pa.join("|"));Ea=(l=Fa.test(Z.compareDocumentPosition))||Fa.test(Z.contains)?function(a,l){var b=9===a.nodeType?a.documentElement:a,c=l&&l.parentNode;return a===c||!(!c||!(1===c.nodeType&&(b.contains?b.contains(c):a.compareDocumentPosition&&a.compareDocumentPosition(c)&16)))}:function(a,l){if(l)for(;l=l.parentNode;)if(l===a)return!0;return!1};Bb=l?function(l,b){if(l===b)return xa=!0,0;var c=
!l.compareDocumentPosition-!b.compareDocumentPosition;if(c)return c;c=(l.ownerDocument||l)===(b.ownerDocument||b)?l.compareDocumentPosition(b):1;return c&1||!B.sortDetached&&b.compareDocumentPosition(l)===c?l===a||l.ownerDocument===S&&Ea(S,l)?-1:b===a||b.ownerDocument===S&&Ea(S,b)?1:fa?oa.call(fa,l)-oa.call(fa,b):0:c&4?-1:1}:function(l,b){if(l===b)return xa=!0,0;var c,d=0;c=l.parentNode;var f=b.parentNode,k=[l],h=[b];if(!c||!f)return l===a?-1:b===a?1:c?-1:f?1:fa?oa.call(fa,l)-oa.call(fa,b):0;if(c===
f)return nc(l,b);for(c=l;c=c.parentNode;)k.unshift(c);for(c=b;c=c.parentNode;)h.unshift(c);for(;k[d]===h[d];)d++;return d?nc(k[d],h[d]):k[d]===S?-1:h[d]===S?1:0};return a};z.matches=function(a,b){return z(a,null,null,b)};z.matchesSelector=function(a,b){(a.ownerDocument||a)!==K&&ba(a);b=b.replace(pd,"='$1']");if(B.matchesSelector&&X&&(!pa||!pa.test(b))&&(!O||!O.test(b)))try{var c=Wa.call(a,b);if(c||B.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(d){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},
"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(da,ea);a[3]=(a[4]||a[5]||"").replace(da,ea);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||z.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&z.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[5]&&a[2];if(Sa.CHILD.test(a[0]))return null;if(a[3]&&
void 0!==a[4])a[2]=a[4];else if(c&&qd.test(c)&&(b=Pa(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length))a[0]=a[0].slice(0,b),a[2]=c.slice(0,b);return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(da,ea).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=rc[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&rc(a,function(a){return b.test("string"===typeof a.className&&a.className||
typeof a.getAttribute!==va&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){d=z.attr(d,a);if(null==d)return"!="===b;if(!b)return!0;d+="";return"="===b?d===c:"!="===b?d!==c:"^="===b?c&&0===d.indexOf(c):"*="===b?c&&-1a.nodeType)return!1;return!0},parent:function(a){return!v.pseudos.empty(a)},header:function(a){return td.test(a.nodeName)},input:function(a){return sd.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},
text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b);return a}),gt:na(function(a,b,c){for(c=0>c?c+b:c;++c";return"#"===a.firstChild.getAttribute("href")})||wb("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)});(!B.attributes||!U(function(a){a.innerHTML="";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&wb("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue});U(function(a){return null==a.getAttribute("disabled")})||wb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});h.find=z;h.expr=z.selectors;h.expr[":"]=h.expr.pseudos;h.unique=z.uniqueSort;h.text=z.getText;h.isXMLDoc=z.isXML;h.contains=z.contains;var wc=h.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Uc=/^.[^:#\[\.,]*$/;h.filter=function(a,b,c){var d=b[0];c&&(a=":not("+a+")");return 1===b.length&&1===d.nodeType?h.find.matchesSelector(d,a)?[d]:[]:h.find.matches(a,h.grep(b,function(a){return 1===
a.nodeType}))};h.fn.extend({find:function(a){var b,c=[],d=this,f=d.length;if("string"!==typeof a)return this.pushStack(h(a).filter(function(){for(b=0;b)[^>]*|#([\w-]*))$/;(h.fn.init=function(a,b){var c,d;if(!a)return this;if("string"===typeof a){if((c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:ud.exec(a))&&(c[1]||!b)){if(c[1]){if(b=b instanceof h?b[0]:b,h.merge(this,h.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:u,!0)),xc.test(c[1])&&h.isPlainObject(b))for(c in b)if(h.isFunction(this[c]))this[c](b[c]);else this.attr(c,b[c])}else{if((d=u.getElementById(c[2]))&&
d.parentNode){if(d.id!==c[2])return Ga.find(a);this.length=1;this[0]=d}this.context=u;this.selector=a}return this}return!b||b.jquery?(b||Ga).find(a):this.constructor(b).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(h.isFunction(a))return"undefined"!==typeof Ga.ready?Ga.ready(a):a(h);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return h.makeArray(a,this)}).prototype=h.fn;Ga=h(u);var vd=/^(?:parents|prev(?:Until|All))/,wd={children:!0,contents:!0,
next:!0,prev:!0};h.extend({dir:function(a,b,c){var d=[];for(a=a[b];a&&9!==a.nodeType&&(void 0===c||1!==a.nodeType||!h(a).is(c));)1===a.nodeType&&d.push(a),a=a[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});h.fn.extend({has:function(a){var b,c=h(a,this),d=c.length;return this.filter(function(){for(b=0;bc.nodeType&&(p?-1a";
t.leadingWhitespace=3===L.firstChild.nodeType;t.tbody=!L.getElementsByTagName("tbody").length;t.htmlSerialize=!!L.getElementsByTagName("link").length;t.html5Clone="<:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;Ha.type="checkbox";Ha.checked=!0;Db.appendChild(Ha);t.appendChecked=Ha.checked;L.innerHTML="";t.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue;Db.appendChild(L);L.innerHTML="";t.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked;
t.noCloneEvent=!0;L.attachEvent&&(L.attachEvent("onclick",function(){t.noCloneEvent=!1}),L.cloneNode(!0).click());if(null==t.deleteExpando){t.deleteExpando=!0;try{delete L.test}catch(be){t.deleteExpando=!1}}var Db=L=Ha=null,Za,$a,Ac=u.createElement("div");for(Za in{submit:!0,change:!0,focusin:!0})if($a="on"+Za,!(t[Za+"Bubbles"]=$a in a))Ac.setAttribute($a,"t"),t[Za+"Bubbles"]=!1===Ac.attributes[$a].expando;var Eb=/^(?:input|select|textarea)$/i,yd=/^key/,zd=/^(?:mouse|contextmenu)|click/,Bc=/^(?:focusinfocus|focusoutblur)$/,
Cc=/^([^.]*)(?:\.(.+)|)$/;h.event={global:{},add:function(a,b,c,d,f){var k,p,r,e,g,s,j,q,m;if(r=h._data(a)){c.handler&&(e=c,c=e.handler,f=e.selector);c.guid||(c.guid=h.guid++);if(!(p=r.events))p=r.events={};if(!(g=r.handle))g=r.handle=function(a){return typeof h!==R&&(!a||h.event.triggered!==a.type)?h.event.dispatch.apply(g.elem,arguments):void 0},g.elem=a;b=(b||"").match(Y)||[""];for(r=b.length;r--;)if(k=Cc.exec(b[r])||[],q=s=k[1],m=(k[2]||"").split(".").sort(),q){k=h.event.special[q]||{};q=(f?k.delegateType:
k.bindType)||q;k=h.event.special[q]||{};s=h.extend({type:q,origType:s,data:d,handler:c,guid:c.guid,selector:f,needsContext:f&&h.expr.match.needsContext.test(f),namespace:m.join(".")},e);if(!(j=p[q]))if(j=p[q]=[],j.delegateCount=0,!k.setup||!1===k.setup.call(a,d,m,g))a.addEventListener?a.addEventListener(q,g,!1):a.attachEvent&&a.attachEvent("on"+q,g);k.add&&(k.add.call(a,s),s.handler.guid||(s.handler.guid=c.guid));f?j.splice(j.delegateCount++,0,s):j.push(s);h.event.global[q]=!0}a=null}},remove:function(a,
b,c,d,f){var k,p,r,e,g,s,j,q,m,G,C,P=h.hasData(a)&&h._data(a);if(P&&(s=P.events)){b=(b||"").match(Y)||[""];for(g=b.length;g--;)if(r=Cc.exec(b[g])||[],m=C=r[1],G=(r[2]||"").split(".").sort(),m){j=h.event.special[m]||{};m=(d?j.delegateType:j.bindType)||m;q=s[m]||[];r=r[2]&&RegExp("(^|\\.)"+G.join("\\.(?:.*\\.|)")+"(\\.|$)");for(e=k=q.length;k--;)if(p=q[k],(f||C===p.origType)&&(!c||c.guid===p.guid)&&(!r||r.test(p.namespace))&&(!d||d===p.selector||"**"===d&&p.selector))q.splice(k,1),p.selector&&q.delegateCount--,
j.remove&&j.remove.call(a,p);e&&!q.length&&((!j.teardown||!1===j.teardown.call(a,G,P.handle))&&h.removeEvent(a,m,P.handle),delete s[m])}else for(m in s)h.event.remove(a,m+b[g],c,d,!0);h.isEmptyObject(s)&&(delete P.handle,h._removeData(a,"events"))}},trigger:function(b,c,d,f){var k,p,r,e,g,s,j=[d||u],q=ua.call(b,"type")?b.type:b;g=ua.call(b,"namespace")?b.namespace.split("."):[];r=k=d=d||u;if(!(3===d.nodeType||8===d.nodeType)&&!Bc.test(q+h.event.triggered))if(0<=q.indexOf(".")&&(g=q.split("."),q=g.shift(),
g.sort()),p=0>q.indexOf(":")&&"on"+q,b=b[h.expando]?b:new h.Event(q,"object"===typeof b&&b),b.isTrigger=f?2:3,b.namespace=g.join("."),b.namespace_re=b.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:h.makeArray(c,[b]),g=h.event.special[q]||{},f||!(g.trigger&&!1===g.trigger.apply(d,c))){if(!f&&!g.noBubble&&!h.isWindow(d)){e=g.delegateType||q;Bc.test(e+q)||(r=r.parentNode);for(;r;r=r.parentNode)j.push(r),k=r;if(k===(d.ownerDocument||
u))j.push(k.defaultView||k.parentWindow||a)}for(s=0;(r=j[s++])&&!b.isPropagationStopped();)if(b.type=1]","i"),Fb=/^\s+/,Ec=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fc=/<([\w:]+)/,Gc=/\s*$/g,Q={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:t.htmlSerialize?[0,"",""]:[1,"X","
"]},Gb=G(u).appendChild(u.createElement("div"));Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;h.extend({clone:function(a,b,c){var d,f,k,p,r,e=h.contains(a.ownerDocument,a);t.html5Clone||h.isXMLDoc(a)||!Dc.test("<"+
a.nodeName+">")?k=a.cloneNode(!0):(Gb.innerHTML=a.outerHTML,Gb.removeChild(k=Gb.firstChild));if((!t.noCloneEvent||!t.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!h.isXMLDoc(a)){d=C(k);r=C(a);for(p=0;null!=(f=r[p]);++p)if(d[p]){var g=d[p],s=void 0,j=void 0,q=void 0;if(1===g.nodeType){s=g.nodeName.toLowerCase();if(!t.noCloneEvent&&g[h.expando]){q=h._data(g);for(j in q.events)h.removeEvent(g,j,q.handle);g.removeAttribute(h.expando)}if("script"===s&&g.text!==f.text)x(g).text=f.text,H(g);else if("object"===
s)g.parentNode&&(g.outerHTML=f.outerHTML),t.html5Clone&&(f.innerHTML&&!h.trim(g.innerHTML))&&(g.innerHTML=f.innerHTML);else if("input"===s&&kb.test(f.type))g.defaultChecked=g.checked=f.checked,g.value!==f.value&&(g.value=f.value);else if("option"===s)g.defaultSelected=g.selected=f.defaultSelected;else if("input"===s||"textarea"===s)g.defaultValue=f.defaultValue}}}if(b)if(c){r=r||C(a);d=d||C(k);for(p=0;null!=(f=r[p]);p++)Tb(f,d[p])}else Tb(a,k);d=C(k,"script");0$2>")+g[2];for(f=g[0];f--;)p=p.lastChild;!t.leadingWhitespace&&Fb.test(k)&&q.push(b.createTextNode(Fb.exec(k)[0]));if(!t.tbody)for(f=(k="table"===r&&!Gc.test(k)?p.firstChild:""===
g[1]&&!Gc.test(k)?p:0)&&k.childNodes.length;f--;)h.nodeName(e=k.childNodes[f],"tbody")&&!e.childNodes.length&&k.removeChild(e);h.merge(q,p.childNodes);for(p.textContent="";p.firstChild;)p.removeChild(p.firstChild);p=j.lastChild}else q.push(b.createTextNode(k));p&&j.removeChild(p);t.appendChecked||h.grep(C(q,"input"),P);for(m=0;k=q[m++];)if(!(d&&-1!==h.inArray(k,d))&&(a=h.contains(k.ownerDocument,k),p=C(j.appendChild(k),"script"),a&&I(p),c))for(f=0;k=p[f++];)Hc.test(k.type||"")&&c.push(k);return j},
cleanData:function(a,b){for(var c,d,f,k,p=0,r=h.expando,e=h.cache,g=t.deleteExpando,s=h.event.special;null!=(c=a[p]);p++)if(b||h.acceptData(c))if(k=(f=c[r])&&e[f]){if(k.events)for(d in k.events)s[d]?h.event.remove(c,d):h.removeEvent(c,d,k.handle);e[f]&&(delete e[f],g?delete c[r]:typeof c.removeAttribute!==R?c.removeAttribute(r):c[r]=null,$.push(f))}}});h.fn.extend({text:function(a){return qa(this,function(a){return void 0===a?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a))},
null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&A(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=A(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,
function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?h.filter(a,this):this,f=0;null!=(c=d[f]);f++)!b&&1===c.nodeType&&h.cleanData(C(c)),c.parentNode&&(b&&h.contains(c.ownerDocument,c)&&I(C(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&h.cleanData(C(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&h.nodeName(a,"select")&&(a.options.length=0)}return this},
clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return h.clone(this,a,b)})},html:function(a){return qa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(Ad,""):void 0;if("string"===typeof a&&!Cd.test(a)&&(t.htmlSerialize||!Dc.test(a))&&(t.leadingWhitespace||!Fb.test(a))&&!Q[(Fc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ec,"<$1>$2>");try{for(;ca";Ia=ya.getElementsByTagName("a")[0];
Ia.style.cssText="float:left;opacity:.5";t.opacity=/^0.5/.test(Ia.style.opacity);t.cssFloat=!!Ia.style.cssFloat;ya.style.backgroundClip="content-box";ya.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===ya.style.backgroundClip;Ia=ya=null;t.shrinkWrapBlocks=function(){var a,b,c;if(null==ab){a=u.getElementsByTagName("body")[0];if(!a)return;b=u.createElement("div");c=u.createElement("div");a.appendChild(b).appendChild(c);ab=!1;typeof c.style.zoom!==R&&(c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0;width:1px;padding:1px;zoom:1",
c.innerHTML="",c.firstChild.style.width="5px",ab=3!==c.offsetWidth);a.removeChild(b)}return ab};var Ic=/^margin/,La=RegExp("^("+Ya+")(?!px)[a-z%]+$","i"),la,ma,Fd=/^(top|right|bottom|left)$/;a.getComputedStyle?(la=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},ma=function(a,b,c){var d,f,k=a.style;f=(c=c||la(a))?c.getPropertyValue(b)||c[b]:void 0;c&&(""===f&&!h.contains(a.ownerDocument,a)&&(f=h.style(a,b)),La.test(f)&&Ic.test(b)&&(a=k.width,b=k.minWidth,d=k.maxWidth,
k.minWidth=k.maxWidth=k.width=f,f=c.width,k.width=a,k.minWidth=b,k.maxWidth=d));return void 0===f?f:f+""}):u.documentElement.currentStyle&&(la=function(a){return a.currentStyle},ma=function(a,b,c){var d,f,k,h=a.style;k=(c=c||la(a))?c[b]:void 0;null==k&&(h&&h[b])&&(k=h[b]);if(La.test(k)&&!Fd.test(b)){c=h.left;if(f=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;h.left="fontSize"===b?"1em":k;k=h.pixelLeft+"px";h.left=c;f&&(d.left=f)}return void 0===k?k:k+""||"auto"});var Jb=function(){var b,c,
d=u.getElementsByTagName("body")[0];d&&(b=u.createElement("div"),c=u.createElement("div"),b.style.cssText=Hb,d.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",h.swap(d,null!=d.style.zoom?{zoom:1}:{},function(){Ib=4===c.offsetWidth}),bb=!0,cb=!1,db=!0,a.getComputedStyle&&(cb="1%"!==(a.getComputedStyle(c,null)||{}).top,bb="4px"===(a.getComputedStyle(c,
null)||{width:"4px"}).width),d.removeChild(b),c=d=null)},Ja,eb,Ib,bb,cb,db,za=u.createElement("div"),Hb="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";za.innerHTML=" a";Ja=za.getElementsByTagName("a")[0];Ja.style.cssText="float:left;opacity:.5";t.opacity=/^0.5/.test(Ja.style.opacity);t.cssFloat=!!Ja.style.cssFloat;za.style.backgroundClip="content-box";za.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===
za.style.backgroundClip;Ja=za=null;h.extend(t,{reliableHiddenOffsets:function(){if(null!=eb)return eb;var a,b,c;b=u.createElement("div");var d=u.getElementsByTagName("body")[0];if(d)return b.setAttribute("className","t"),b.innerHTML=" a",a=u.createElement("div"),a.style.cssText=Hb,d.appendChild(a).appendChild(b),b.innerHTML="",b=b.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",
c=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",eb=c&&0===b[0].offsetHeight,d.removeChild(a),eb},boxSizing:function(){null==Ib&&Jb();return Ib},boxSizingReliable:function(){null==bb&&Jb();return bb},pixelPosition:function(){null==cb&&Jb();return cb},reliableMarginRight:function(){var b,c,d,f;if(null==db&&a.getComputedStyle){b=u.getElementsByTagName("body")[0];if(!b)return;c=u.createElement("div");d=u.createElement("div");c.style.cssText=Hb;b.appendChild(c).appendChild(d);f=
d.appendChild(u.createElement("div"));f.style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";f.style.marginRight=f.style.width="0";d.style.width="1px";db=!parseFloat((a.getComputedStyle(f,null)||{}).marginRight);b.removeChild(c)}return db}});h.swap=function(a,b,c,d){var f,k={};for(f in b)k[f]=a.style[f],a.style[f]=b[f];c=c.apply(a,d||[]);for(f in b)a.style[f]=k[f];return c};var Kb=/alpha\([^)]*\)/i,
Gd=/opacity\s*=\s*([^)]*)/,Hd=/^(none|table(?!-c[ea]).+)/,Yc=RegExp("^("+Ya+")(.*)$","i"),Id=RegExp("^([+-])=("+Ya+")","i"),Jd={position:"absolute",visibility:"hidden",display:"block"},Jc={letterSpacing:0,fontWeight:400},Zb=["Webkit","O","Moz","ms"];h.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ma(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":t.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,k,p,r=h.camelCase(b),e=a.style;b=h.cssProps[r]||(h.cssProps[r]=Yb(e,r));p=h.cssHooks[b]||h.cssHooks[r];if(void 0!==c){k=typeof c;if("string"===k&&(f=Id.exec(c)))c=(f[1]+1)*f[2]+parseFloat(h.css(a,b)),k="number";if(!(null==c||c!==c))if("number"===k&&!h.cssNumber[r]&&(c+="px"),!t.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(e[b]="inherit"),!p||!("set"in p)||void 0!==(c=p.set(a,c,d)))try{e[b]=
"",e[b]=c}catch(g){}}else return p&&"get"in p&&void 0!==(f=p.get(a,!1,d))?f:e[b]}},css:function(a,b,c,d){var f,k;k=h.camelCase(b);b=h.cssProps[k]||(h.cssProps[k]=Yb(a.style,k));(k=h.cssHooks[b]||h.cssHooks[k])&&"get"in k&&(f=k.get(a,!0,c));void 0===f&&(f=ma(a,b,d));"normal"===f&&b in Jc&&(f=Jc[b]);return""===c||c?(a=parseFloat(f),!0===c||h.isNumeric(a)?a||0:f):f}});h.each(["height","width"],function(a,b){h.cssHooks[b]={get:function(a,c,d){if(c)return 0===a.offsetWidth&&Hd.test(h.css(a,"display"))?
h.swap(a,Jd,function(){return cc(a,b,d)}):cc(a,b,d)},set:function(a,c,d){var f=d&&la(a);return ac(a,c,d?bc(a,b,d,t.boxSizing()&&"border-box"===h.css(a,"boxSizing",!1,f),f):0)}}});t.opacity||(h.cssHooks.opacity={get:function(a,b){return Gd.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,f=h.isNumeric(b)?"alpha(opacity="+100*b+")":"",k=d&&d.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===
h.trim(k.replace(Kb,""))&&c.removeAttribute)if(c.removeAttribute("filter"),""===b||d&&!d.filter)return;c.filter=Kb.test(k)?k.replace(Kb,f):k+" "+f}});h.cssHooks.marginRight=Xb(t.reliableMarginRight,function(a,b){if(b)return h.swap(a,{display:"inline-block"},ma,[a,"marginRight"])});h.each({margin:"",padding:"",border:"Width"},function(a,b){h.cssHooks[a+b]={expand:function(c){var d=0,f={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)f[a+ka[d]+b]=c[d]||c[d-2]||c[0];return f}};Ic.test(a)||(h.cssHooks[a+
b].set=ac)});h.fn.extend({css:function(a,b){return qa(this,function(a,b,c){var d,f={},k=0;if(h.isArray(b)){c=la(a);for(d=b.length;ka";gb=Ka.getElementsByTagName("a")[0];Lb=u.createElement("select");Mb=Lb.appendChild(u.createElement("option"));ha=Ka.getElementsByTagName("input")[0];
gb.style.cssText="top:1px";t.getSetAttribute="t"!==Ka.className;t.style=/top/.test(gb.getAttribute("style"));t.hrefNormalized="/a"===gb.getAttribute("href");t.checkOn=!!ha.value;t.optSelected=Mb.selected;t.enctype=!!u.createElement("form").enctype;Lb.disabled=!0;t.optDisabled=!Mb.disabled;ha=u.createElement("input");ha.setAttribute("value","");t.input=""===ha.getAttribute("value");ha.value="t";ha.setAttribute("type","radio");t.radioValue="t"===ha.value;var Md=/\r/g;h.fn.extend({val:function(a){var b,
c,d,f=this[0];if(arguments.length)return d=h.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=d?a.call(this,c,h(this).val()):a,null==c?c="":"number"===typeof c?c+="":h.isArray(c)&&(c=h.map(c,function(a){return null==a?"":a+""})),b=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(f){if((b=h.valHooks[f.type]||h.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(f,"value")))return c;c=f.value;
return"string"===typeof c?c.replace(Md,""):null==c?"":c}}});h.extend({valHooks:{option:{get:function(a){var b=h.find.attr(a,"value");return null!=b?b:h.text(a)}},select:{get:function(a){for(var b,c=a.options,d=a.selectedIndex,f=(a="select-one"===a.type||0>d)?null:[],k=a?d+1:c.length,p=0>d?k:a?d:0;pd.indexOf(" "+f+" ")&&(d+=f+" ");d=h.trim(d);c.className!==d&&(c.className=d)}return this},removeClass:function(a){var b,c,d,f,k,p=0,r=this.length;b=0===arguments.length||"string"===typeof a&&a;if(h.isFunction(a))return this.each(function(b){h(this).removeClass(a.call(this,
b,this.className))});if(b)for(b=(a||"").match(Y)||[];pa||304===a;if(d){A=j;for(var D=y,t,u,W,E,H=A.contents,v=A.dataTypes;"*"===v[0];)v.shift(),void 0===u&&(u=A.mimeType||D.getResponseHeader("Content-Type"));if(u)for(E in H)if(H[E]&&H[E].test(u)){v.unshift(E);break}if(v[0]in d)W=v[0];else{for(E in d){if(!v[0]||A.converters[E+" "+v[0]]){W=
E;break}t||(t=E)}W=W||t}W?(W!==v[0]&&v.unshift(W),A=d[W]):A=void 0}a:{d=j;t=A;u=y;W=f;var z,I,B,D={},H=d.dataTypes.slice();if(H[1])for(I in d.converters)D[I.toLowerCase()]=d.converters[I];for(E=H.shift();E;)if(d.responseFields[E]&&(u[d.responseFields[E]]=t),!B&&(W&&d.dataFilter)&&(t=d.dataFilter(t,d.dataType)),B=E,E=H.shift())if("*"===E)E=B;else if("*"!==B&&B!==E){I=D[B+" "+E]||D["* "+E];if(!I)for(z in D)if(A=z.split(" "),A[1]===E&&(I=D[B+" "+A[0]]||D["* "+A[0]])){!0===I?I=D[z]:!0!==D[z]&&(E=A[0],
H.unshift(A[1]));break}if(!0!==I)if(I&&d["throws"])t=I(t);else try{t=I(t)}catch(F){A={state:"parsererror",error:I?F:"No conversion from "+B+" to "+E};break a}}A={state:"success",data:t}}if(f)j.ifModified&&((w=y.getResponseHeader("Last-Modified"))&&(h.lastModified[k]=w),(w=y.getResponseHeader("etag"))&&(h.etag[k]=w)),204===a||"HEAD"===j.type?w="nocontent":304===a?w="notmodified":(w=A.state,l=A.data,s=A.error,f=!s);else if(s=w,a||!w)w="error",0>a&&(a=0);y.status=a;y.statusText=(b||w)+"";f?G.resolveWith(q,
[l,w,y]):G.rejectWith(q,[y,w,s]);y.statusCode(P);P=void 0;e&&m.trigger(f?"ajaxSuccess":"ajaxError",[y,j,f?l:s]);C.fireWith(q,[y,w]);e&&(m.trigger("ajaxComplete",[y,j]),--h.active||h.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var d,f,k,p,r,e,g,s,j=h.ajaxSetup({},b),q=j.context||j,m=j.context&&(q.nodeType||q.jquery)?h(q):h.event,G=h.Deferred(),C=h.Callbacks("once memory"),P=j.statusCode||{},A={},t={},x=0,u="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(2===
x){if(!s)for(s={};b=Rd.exec(p);)s[b[1].toLowerCase()]=b[2];b=s[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===x?p:null},setRequestHeader:function(a,b){var c=a.toLowerCase();x||(a=t[c]=t[c]||a,A[a]=b);return this},overrideMimeType:function(a){x||(j.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>x)for(b in a)P[b]=[P[b],a[b]];else y.always(a[y.status]);return this},abort:function(a){a=a||u;g&&g.abort(a);c(0,a);return this}};G.promise(y).complete=
C.add;y.success=y.done;y.error=y.fail;j.url=((a||j.url||ja)+"").replace(Qd,"").replace(Td,sa[1]+"//");j.type=b.method||b.type||j.method||j.type;j.dataTypes=h.trim(j.dataType||"*").toLowerCase().match(Y)||[""];null==j.crossDomain&&(d=Nc.exec(j.url.toLowerCase()),j.crossDomain=!(!d||!(d[1]!==sa[1]||d[2]!==sa[2]||(d[3]||("http:"===d[1]?"80":"443"))!==(sa[3]||("http:"===sa[1]?"80":"443")))));j.data&&(j.processData&&"string"!==typeof j.data)&&(j.data=h.param(j.data,j.traditional));hc(Oc,j,b,y);if(2===
x)return y;(e=j.global)&&0===h.active++&&h.event.trigger("ajaxStart");j.type=j.type.toUpperCase();j.hasContent=!Sd.test(j.type);k=j.url;j.hasContent||(j.data&&(k=j.url+=(Qb.test(k)?"&":"?")+j.data,delete j.data),!1===j.cache&&(j.url=Mc.test(k)?k.replace(Mc,"$1_="+Pb++):k+(Qb.test(k)?"&":"?")+"_="+Pb++));j.ifModified&&(h.lastModified[k]&&y.setRequestHeader("If-Modified-Since",h.lastModified[k]),h.etag[k]&&y.setRequestHeader("If-None-Match",h.etag[k]));(j.data&&j.hasContent&&!1!==j.contentType||b.contentType)&&
y.setRequestHeader("Content-Type",j.contentType);y.setRequestHeader("Accept",j.dataTypes[0]&&j.accepts[j.dataTypes[0]]?j.accepts[j.dataTypes[0]]+("*"!==j.dataTypes[0]?", "+Pc+"; q=0.01":""):j.accepts["*"]);for(f in j.headers)y.setRequestHeader(f,j.headers[f]);if(j.beforeSend&&(!1===j.beforeSend.call(q,y,j)||2===x))return y.abort();u="abort";for(f in{success:1,error:1,complete:1})y[f](j[f]);if(g=hc(lb,j,b,y)){y.readyState=1;e&&m.trigger("ajaxSend",[y,j]);j.async&&0x)c(-1,H);else throw H;}}else c(-1,"No Transport");return y},getJSON:function(a,b,c){return h.get(a,b,c,"json")},getScript:function(a,b){return h.get(a,void 0,b,"script")}});h.each(["get","post"],function(a,b){h[b]=function(a,c,d,f){h.isFunction(c)&&(f=f||d,d=c,c=void 0);return h.ajax({url:a,type:b,dataType:f,data:c,success:d})}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){h.fn[b]=function(a){return this.on(b,
a)}});h._evalUrl=function(a){return h.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};h.fn.extend({wrapAll:function(a){if(h.isFunction(a))return this.each(function(b){h(this).wrapAll(a.call(this,b))});if(this[0]){var b=h(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return h.isFunction(a)?
this.each(function(b){h(this).wrapInner(a.call(this,b))}):this.each(function(){var b=h(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=h.isFunction(a);return this.each(function(c){h(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}});h.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!t.reliableHiddenOffsets()&&"none"===(a.style&&
a.style.display||h.css(a,"display"))};h.expr.filters.visible=function(a){return!h.expr.filters.hidden(a)};var Ud=/%20/g,$c=/\[\]$/,Qc=/\r?\n/g,Vd=/^(?:submit|button|image|reset|file)$/i,Wd=/^(?:input|select|textarea|keygen)/i;h.param=function(a,b){var c,d=[],f=function(a,b){b=h.isFunction(b)?b():null==b?"":b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=h.ajaxSettings&&h.ajaxSettings.traditional);if(h.isArray(a)||a.jquery&&!h.isPlainObject(a))h.each(a,function(){f(this.name,
this.value)});else for(c in a)nb(c,a[c],b,f);return d.join("&").replace(Ud,"+")};h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=h.prop(this,"elements");return a?h.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!h(this).is(":disabled")&&Wd.test(this.nodeName)&&!Vd.test(a)&&(this.checked||!kb.test(a))}).map(function(a,b){var c=h(this).val();return null==c?null:h.isArray(c)?h.map(c,function(a){return{name:b.name,
value:a.replace(Qc,"\r\n")}}):{name:b.name,value:c.replace(Qc,"\r\n")}}).get()}});h.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&ic()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:ic;h.ajaxSettings.xhr=void 0===a.ActiveXObject?ob:function(){return(this.url==u.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&
ob()||ob(1)};var Xd=0,ib={},jb=h.ajaxSettings.xhr();if(a.ActiveXObject)h(a).on("unload",function(){for(var a in ib)ib[a](void 0,!0)});t.cors=!!jb&&"withCredentials"in jb;(jb=t.ajax=!!jb)&&h.ajaxTransport(function(a){if(!a.crossDomain||t.cors){var b;return{send:function(c,d){var f,k=a.xhr(),p=++Xd;k.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(f in a.xhrFields)k[f]=a.xhrFields[f];a.mimeType&&k.overrideMimeType&&k.overrideMimeType(a.mimeType);!a.crossDomain&&!c["X-Requested-With"]&&
(c["X-Requested-With"]="XMLHttpRequest");for(f in c)void 0!==c[f]&&k.setRequestHeader(f,c[f]+"");k.send(a.hasContent&&a.data||null);b=function(c,f){var r,e,g;if(b&&(f||4===k.readyState))if(delete ib[p],b=void 0,k.onreadystatechange=h.noop,f)4!==k.readyState&&k.abort();else{g={};r=k.status;"string"===typeof k.responseText&&(g.text=k.responseText);try{e=k.statusText}catch(j){e=""}!r&&a.isLocal&&!a.crossDomain?r=g.text?200:404:1223===r&&(r=204)}g&&d(r,e,g,k.getAllResponseHeaders())};a.async?4===k.readyState?
setTimeout(b):k.onreadystatechange=ib[p]=b:b()},abort:function(){b&&b(void 0,!0)}}}});h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){h.globalEval(a);return a}}});h.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});h.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=u.head||h("head")[0]||
u.documentElement;return{send:function(d,f){b=u.createElement("script");b.async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,c){if(c||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Rc=[],Rb=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=
Rc.pop()||h.expando+"_"+Pb++;this[a]=!0;return a}});h.ajaxPrefilter("json jsonp",function(b,c,d){var f,k,p,r=!1!==b.jsonp&&(Rb.test(b.url)?"url":"string"===typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(b.data)&&"data");if(r||"jsonp"===b.dataTypes[0])return f=b.jsonpCallback=h.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,r?b[r]=b[r].replace(Rb,"$1"+f):!1!==b.jsonp&&(b.url+=(Qb.test(b.url)?"&":"?")+b.jsonp+"="+f),b.converters["script json"]=
function(){p||h.error(f+" was not called");return p[0]},b.dataTypes[0]="json",k=a[f],a[f]=function(){p=arguments},d.always(function(){a[f]=k;b[f]&&(b.jsonpCallback=c.jsonpCallback,Rc.push(f));p&&h.isFunction(k)&&k(p[0]);p=k=void 0}),"script"});h.parseHTML=function(a,b,c){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(c=b,b=!1);b=b||u;var d=xc.exec(a);c=!c&&[];if(d)return[b.createElement(d[1])];d=h.buildFragment([a],b,c);c&&c.length&&h(c).remove();return h.merge([],d.childNodes)};var Sc=
h.fn.load;h.fn.load=function(a,b,c){if("string"!==typeof a&&Sc)return Sc.apply(this,arguments);var d,f,k,p=this,r=a.indexOf(" ");0<=r&&(d=a.slice(r,a.length),a=a.slice(0,r));h.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(k="POST");0").append(h.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){p.each(c,f||[a.responseText,b,a])});return this};h.expr.filters.animated=function(a){return h.grep(h.timers,
function(b){return a===b.elem}).length};var Tc=a.document.documentElement;h.offset={setOffset:function(a,b,c){var d,f,k,p=h.css(a,"position"),r=h(a),e={};"static"===p&&(a.style.position="relative");k=r.offset();f=h.css(a,"top");d=h.css(a,"left");("absolute"===p||"fixed"===p)&&-1org.pdb.query.simple.AdvancedKeywordQueryText SearchQUERY",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},
_debugAlert:!1,_document:a,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"http://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};a=a.location.href.toLowerCase();m._httpProto=0==a.indexOf("https")?"https://":"http://";m._isFile=0==a.indexOf("file:");m._ajaxTestSite=m._httpProto+"google.com";a=m._isFile||0==a.indexOf("http://localhost")||0==a.indexOf("http://127.");m._tracker="http://"==m._httpProto&&
!a&&"http://chemapps.stolaf.edu/jmol/JmolTracker.htm?id=UA-45940799-1";m._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");m._isSafari=!m._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");m._isMsie=void 0!==window.ActiveXObject;m._useDataURI=!m._isSafari&&!m._isMsie;for(var g in Jmol)m[g]=Jmol[g];return m}(document,Jmol));
(function(a,m){m(document).ready(function(){a._document=null});a.$=function(a,c){null==a&&alert(c+arguments.callee.caller.toString());return m(c?"#"+a._id+"_"+c:a)};a._$=function(a){return"string"==typeof a?m("#"+a):a};a.$ajax=function(b){a._ajaxCall=b.url;b.cache="NO"!=b.cache;0==b.url.indexOf("http://pubchem.ncbi.nlm.nih")&&(b.url="https://"+b.url.substring(7));return m.ajax(b)};a._getNCIInfo=function(b,c){return a._getFileData("http://cactus.nci.nih.gov/chemical/structure/"+b+"/"+("name"==c?"names":
c))};a.$appEvent=function(b,c,d,e){b=a.$(b,c);b.off(d)&&e&&b.on(d,e)};a.$resize=function(a){return m(window).resize(a)};a.$after=function(a,c){return m(a).after(c)};a.$bind=function(a,c,d){return d?m(a).bind(c,d):m(a).unbind(c)};a.$closest=function(a,c){return m(a).closest(c)};a.$get=function(a,c){return m(a).get(c)};a.$documentOff=function(a,c){return m(document).off(a,"#"+c)};a.$documentOn=function(a,c,d){return m(document).on(a,"#"+c,d)};a.$getAncestorDiv=function(a,c){return m("div."+c+":has(#"+
a+")")[0]};a.$supportsIECrossDomainScripting=function(){return m.support.iecors};a.$attr=function(b,c,d){return a._$(b).attr(c,d)};a.$css=function(b,c){return a._$(b).css(c)};a.$find=function(b,c){return a._$(b).find(c)};a.$focus=function(b){return a._$(b).focus()};a.$html=function(b,c){return a._$(b).html(c)};a.$offset=function(b){return a._$(b).offset()};a.$windowOn=function(a,c){return m(window).on(a,c)};a.$prop=function(b,c,d){var e=a._$(b);return 3==arguments.length?e.prop(c,d):e.prop(c)};a.$remove=
function(b){return a._$(b).remove()};a.$scrollTo=function(b,c){var d=a._$(b);return d.scrollTop(0>c?d[0].scrollHeight:c)};a.$setEnabled=function(b,c){return a._$(b).attr("disabled",c?null:"disabled")};a.$setSize=function(b,c,d){return a._$(b).width(c).height(d)};a.$setVisible=function(b,c){var d=a._$(b);return c?d.show():d.hide()};a.$submit=function(b){return a._$(b).submit()};a.$val=function(b,c){var d=a._$(b);return 1==arguments.length?d.val():d.val(c)};a._clearVars=function(){delete jQuery;delete m;
delete a;delete SwingController;delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var g=document,j=window,e={};e.ua=navigator.userAgent.toLowerCase();var q;a:{q=["linux","unix","mac","win"];for(var d=q.length;d--;)if(-1!=e.ua.indexOf(q[d])){q=q[d];break a}q="unknown"}e.os=q;e.browser=function(){for(var a=e.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),d=0;dnavigator.appVersion.indexOf("MSIE 8");e.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};e._webGLtest=0;e.supportsWebGL=function(){if(!a.featureDetection._webGLtest){var b;a.featureDetection._webGLtest=
j.WebGLRenderingContext&&((b=g.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0=e.browserVersion&&"mac"==c||"webkit"==e.browserName&&125.12>e.browserVersion||"msie"==e.browserName&&"mac"==c||"konqueror"==e.browserName&&3.3>=e.browserVersion)a=!1;return a};e.isFullyCompliant=function(){return e.compliantBrowser()&&e.supportsJava()};e.useIEObject="win"==e.os&&"msie"==e.browserName&&5.5<=
e.browserVersion;e.useHtml4Object="mozilla"==e.browserName&&5<=e.browserVersion||"opera"==e.browserName&&8<=e.browserVersion||"webkit"==e.browserName;e.hasFileReader=j.File&&j.FileReader;a.featureDetection=e;a._ajax=function(b){if(!b.async)return a.$ajax(b).responseText;a._ajaxQueue.push(b);1==a._ajaxQueue.length&&a._ajaxDone()};a._ajaxDone=function(){var b=a._ajaxQueue.shift();b&&a.$ajax(b)};a._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],
["*","PDBe(macromolecules)"]];a._getGrabberOptions=function(b){if(0==a._grabberOptions.length)return"";var c='',d='';1==a._grabberOptions.length?(c=""+c+'',d=""+d):c+="
";for(var c=c+'"+d).replace(/ID/g,b._id);return"
"+c};a._getScriptForDatabase=function(b){return"$"==b?a.db._nciLoadScript:":"==b?a.db._pubChemLoadScript:a.db._fileLoadScript};a._setInfo=function(a,c,d){var e=[],k="";if(0==d.indexOf("ERROR"))k=d;else switch(c){case "=":c=d.split("");e=["");k=c.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=k;a._info=e.join("");a._showInfo(!0)};a._loadSuccess=function(b,c){c&&(a._ajaxDone(),c(b))};a._loadError=function(b){a._ajaxDone();a.say("Error connecting to server: "+a._ajaxCall);null!=b&&b()};a._isDatabaseCall=function(b){return 0<=a.db._databasePrefixes.indexOf(b.substring(0,
1))};a._getDirectDatabaseCall=function(b,c){if(c&&!a.featureDetection.supportsXhr2())return b;var d=2,e,k=a.db._DirectDatabaseCalls[b.substring(0,d)];k||(k=a.db._DirectDatabaseCalls[e=b.substring(0,--d)]);k&&(":"==e?(e=b.toLowerCase(),isNaN(parseInt(b.substring(1)))?0==e.indexOf(":smiles:")?(k+="?POST?smiles="+b.substring(8),b="smiles"):0==e.indexOf(":cid:")?b="cid/"+b.substring(5):(0==e.indexOf(":name:")?b=b.substring(5):0==e.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(d))):
b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(d)),0<=k.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=k.replace(/\%FILENCI/,b)):b=k.replace(/\%FILE/,b));return b};a._getRawDataFromServer=function(b,c,d,e,k,r){b="?call=getRawDataFromDatabase&database="+b+(0<=c.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(c)+(k?"&encoding=base64":"")+(r?"":"&script="+encodeURIComponent(a._getScriptForDatabase(b)));return a._contactServer(b,d,e)};a._checkFileName=function(b,c,d){a._isDatabaseCall(c)&&
(d&&a._setQueryTerm(b,c),c=a._getDirectDatabaseCall(c,!0),a._isDatabaseCall(c)&&(c=a._getDirectDatabaseCall(c,!1),d&&(d[0]=!0)));return c};a._checkCache=function(b,c,d){if(b._cacheFiles&&a._fileCache&&!c.endsWith(".js")){if(b=a._fileCache[c])return System.out.println("using "+b.length+" bytes of cached data for "+c),d(b),null;d=function(b,c){d(a._fileCache[b]=c)}}return d};a._loadFileData=function(b,c,d,e){var k=[];c=a._checkFileName(b,c,k);d=a._checkCache(b,c,d);k[0]?a._getRawDataFromServer("_",
c,d,e):(b={type:"GET",dataType:"text",url:c,async:a._asynchronous,success:function(b){a._loadSuccess(b,d)},error:function(){a._loadError(e)}},a._checkAjaxPost(b),a._ajax(b))};a._getInfoFromDatabase=function(b,c,d){if("===="==c){var e=a.db._restQueryXml.replace(/QUERY/,d),e={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:a.db._restQueryUrl,data:encodeURIComponent(e)+"&req=browser",success:function(k){a._ajaxDone();a._extractInfoFromRCSB(b,c,d,k)},error:function(){a._loadError(null)},
async:a._asynchronous};return a._ajax(e)}d="?call=getInfoFromDatabase&database="+c+"&query="+encodeURIComponent(d);return a._contactServer(d,function(d){a._setInfo(b,c,d)})};a._extractInfoFromRCSB=function(b,c,d,e){var k=e.length/5;if(0!=k&&4==d.length&&1!=k){d=d.toUpperCase();var r=e.indexOf(d);0r.indexOf("?")&&r==b._thisJmolModel)){b._thisJmolModel=r;var g;e&&null!=b._viewSet&&null!=(g=a.View.__findView(b._viewSet,{chemID:r}))?a.View.__setView(g,b,!1):("$"==k||":"==k?b._jmolFileType="MOL":"="==k&&(b._jmolFileType="PDB"),b._searchDatabase(c,k,d))}};a._searchDatabase=function(b,c,d,e){b._showInfo(!1);return 0<=c.indexOf("?")?(a._getInfoFromDatabase(b,d,c.split("?")[0]),
!0):a.db._DirectDatabaseCalls[d]?(b._loadFile(d+c,e),!0):!1};a._syncBinaryOK="?";a._canSyncBinary=function(b){if(self.VBArray)return a._syncBinaryOK=!1;if("?"!=a._syncBinaryOK)return a._syncBinaryOK;a._syncBinaryOK=!0;try{var c=new window.XMLHttpRequest;c.open("text",a._ajaxTestSite,!1);c.hasOwnProperty("responseType")?c.responseType="arraybuffer":c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined")}catch(d){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),
a._alertNoBinary&&!b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._syncBinaryOK=!1}return!0};a._binaryTypes=".gz .jpg .png .zip .jmol .bin .smol .spartan .mrc .pse .map .omap".split(" ");a._isBinaryUrl=function(b){for(var c=a._binaryTypes.length;0<=--c;)if(0<=b.indexOf(a._binaryTypes[c]))return!0;return!1};a._getFileData=function(b,c,d){var e=a._isBinaryUrl(b),k=0<=b.indexOf("pdb.gz")&&0==b.indexOf("http://www.rcsb.org/pdb/files/"),r=e&&!a._canSyncBinary(k);
r&&k&&(b=b.replace(/pdb\.gz/,"pdb"),r=e=!1);k=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var g=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),j=a._isDirectCall(b),q=!g&&a.$supportsIECrossDomainScripting(),m=null;if((!c||r)&&(q||r||!g&&!j))m=a._getRawDataFromServer("_",b,c,c,r,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var x={dataType:e?"binary":"text",async:!!c};k?(x.type="POST",x.url=
b.split("?POST?")[0],x.data=b.split("?POST?")[1]):(x.type="GET",x.url=b);c&&(x.success=function(){c(a._xhrReturn(x.xhr))},x.error=function(){c(xhr.statusText)});x.xhr=a.$ajax(x);c||(m=a._xhrReturn(x.xhr))}if(!d)return m;null==m&&(m="",e=!1);e&&(e=a._canSyncBinary(!0));return e?a._strToBytes(m):JU.SB.newS(m)};a._xhrReturn=function(a){return!a.responseText||self.Clazz&&Clazz.instanceOf(a.response,self.ArrayBuffer)?a.response||a.statusText:a.responseText};a._isDirectCall=function(b){for(var c in a.db._DirectDatabaseCalls)if(0<=
c.indexOf(".")&&0<=b.indexOf(c))return!0;return!1};a._cleanFileData=function(a){return 0<=a.indexOf("\r")&&0<=a.indexOf("\n")?a.replace(/\r\n/g,"\n"):0<=a.indexOf("\r")?a.replace(/\r/g,"\n"):a};a._getFileType=function(a){var c=a.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="==a.substring(1,2)?"LCIF":"PDB";a=a.split(".").pop().toUpperCase();return a.substring(0,Math.min(a.length,3))};a._getZ=function(b,c){return b&&b._z&&b._z[c]||a._z[c]};a._incrZ=function(b,c){return b&&b._z&&++b._z[c]||
++a._z[c]};a._loadFileAsynchronously=function(b,c,d,e){if(0!=d.indexOf("?")){d=a._checkFileName(c,d);var k=function(c){a._setData(b,d,c,e)},k=a._checkCache(c,d,k);return null==k?null:a._getFileData(d,k)}if(!a.featureDetection.hasFileReader)return b.setData("Local file reading is not enabled in your browser",null,e);c._localReader||(k='',
a.$after("#"+c._id+"_appletdiv",k.replace(/ID/g,c._id+"_localReader")),c._localReader=a.$(c,"localReader"));a.$appEvent(c,"localReader_loadfile","click");a.$appEvent(c,"localReader_loadfile","click",function(){var d=a.$(c,"localReader_files")[0].files[0],k=new FileReader;k.onloadend=function(k){k.target.readyState==FileReader.DONE&&(a.$css(a.$(c,"localReader"),{display:"none"}),a._setData(b,d.name,k.target.result,e))};k.readAsArrayBuffer(d)});a.$appEvent(c,"localReader_cancel","click");a.$appEvent(c,
"localReader_cancel","click",function(){a.$css(a.$(c,"localReader"),{display:"none"});b.setData(null,e)});a.$css(a.$(c,"localReader"),{display:"block"})};a._setData=function(b,c,d,e){d=a._strToBytes(d);0<=c.indexOf(".jdx")&&a.Cache.put("cache://"+c,d);b.setData(c,d,e)};a._toBytes=function(a){if("string"==typeof a)return a.getBytes();a=new Uint8Array(a);for(var c=Clazz.newByteArray(a.length,0),d=a.length;0<=--d;)c[d]=a[d];return c};a._doAjax=function(b,c,d){b=b.toString();if(null!=d)return a._saveFile(b,
d);c&&(b+="?POST?"+c);return a._getFileData(b,null,!0)};a._saveFile=function(b,c,d,e){if(a._localFileSaveFunction&&a._localFileSaveFunction(b,c))return"OK";b=b.substring(b.lastIndexOf("/")+1);d||(d=0<=b.indexOf(".pdf")?"application/pdf":0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".jpg")?"image/jpg":"");var k="string"==typeof c;k||(c=(JU?JU:J.util).Base64.getBase64(c).toString());e||(e=k?"":"base64");(k=a._serverUrl)&&0<=k.indexOf("your.server")&&(k="");a._useDataURI||!k?(e||(c=btoa(c)),e=document.createElement("a"),
e.href="data:"+d+";base64,"+c,e.type=d||"text/plain",e.download=b,e.target="_blank",m("body").append(e),e.click(),e.remove()):(a._formdiv||(a.$after("body",'
\t\t\t\t\t\t\t\t\t\t\t\t
'),
a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",k+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",c),a.$val("__jsmolfilename__",b),a.$val("__jsmolmimetype__",d),a.$val("__jsmolencoding__",e),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return a._toBytes(b);for(var c=Clazz.newByteArray(b.length,0),d=b.length;0<=--d;)c[d]=b.charCodeAt(d)&255;return c};a._setConsoleDiv=
function(a){self.Clazz&&Clazz.setConsoleDiv(a)};a._registerApplet=function(b,c){return window[b]=a._applets[b]=a._applets[c]=a._applets[b+"__"+a._syncId+"__"]=c};a._readyCallback=function(b,c,d,e){b=b.split("_object")[0];d=d.booleanValue?d.booleanValue():d;a._track(a._applets[b])._readyCallback(b,c,d,e)};a._getWrapper=function(b,c){var d;if(c){var e="";b._coverImage&&(d=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',e='
",e='
"+e+"
");d='...
IMG......
';
var k=b._height,r=b._width;if("string"!==typeof k||0>k.indexOf("%"))k+="px";if("string"!==typeof r||0>r.indexOf("%"))r+="px";d=d.replace(/IMG/,e).replace(/Hpx/g,k).replace(/Wpx/g,r)}else d='......
......
......
...
';
return d.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};a._documentWrite=function(b){if(a._document){if(a._isXHTML&&!a._XhtmlElement){var c=document.getElementsByTagName("script");a._XhtmlElement=c.item(c.length-1);a._XhtmlAppendChild=!1}a._XhtmlElement?a._domWrite(b):a._document.write(b)}return b};a._domWrite=function(b){for(var c=[0];c[0]
b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use=b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};a._syncedApplets=[];a._syncedCommands=[];a._syncedReady=[];a._syncReady=!1;a._isJmolJSVSync=!1;a._setReady=function(b){a._syncedReady[b]=
1;for(var c=0,d=0;db[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var d=[],e=a.length-1;0<=e;e--)for(var k=0,r=a[e].length;kc.type.indexOf("touch"))return!1;c.preventDefault();var d=a.$offset(b.id),e,k=c.originalEvent;c.pageX||(c.pageX=k.pageX);c.pageY||
(c.pageY=k.pageY);a._mousePageX=c.pageX;a._mousePageY=c.pageY;k.targetTouches&&k.targetTouches[0]?(e=k.targetTouches[0].pageX-d.left,d=k.targetTouches[0].pageY-d.top):k.changedTouches?(e=k.changedTouches[0].pageX-d.left,d=k.changedTouches[0].pageY-d.top):(e=c.pageX-d.left,d=c.pageY-d.top);return void 0==e?null:[Math.round(e),Math.round(d),a._jsGetMouseModifiers(c)]};a._gestureUpdate=function(b,c){c.stopPropagation();c.preventDefault();var d=c.originalEvent;switch(c.type){case "touchstart":a._touching=
!0;break;case "touchend":a._touching=!1}if(!d.touches||2!=d.touches.length)return!1;switch(c.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var e=a.$offset(b.id),k=b._touches[0],r=b._touches[1];k.push([d.touches[0].pageX-e.left,d.touches[0].pageY-e.top]);r.push([d.touches[1].pageX-e.left,d.touches[1].pageY-e.top]);d=k.length;3d?-1:1,0,c]);return!1});a.$bind(b,"contextmenu",function(){return!1});a.$bind(b,"mouseout",function(c){b.applet._applet&&b.applet._applet.startHoverWatcher(!1);a._jsGetXY(b,c);return!1});a.$bind(b,"mouseenter",function(c){b.applet._applet&&b.applet._applet.startHoverWatcher(!0);if(0===c.buttons||0===c.which){b.isDragging=!1;c=a._jsGetXY(b,c);if(!c)return!1;
b.applet._processEvent(504,c);b.applet._processEvent(502,c);return!1}});a.$bind(b,"mousemoveoutjsmol",function(c,d,e){if(b==a._mouseOwner&&b.isDragging)return a._drag(b,e)});b.applet._is2D&&a.$resize(function(){b.applet&&b.applet._resize()});a.$bind("body","mouseup touchend",function(){b.applet&&(b.isDragging=!1);a._setMouseOwner(null)})};a._jsUnsetMouse=function(b){b.applet=null;a.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",
null);a._setMouseOwner(null)};a.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var c=a.Swing;SwingController=c;c.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var c=this;b.bind("mousedown touchstart",function(b){if(c.ignoreMouse)return c.ignoreMouse=!1,!0;a._setMouseOwner(c,!0);c.isDragging=!0;c.pageX=b.pageX;c.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(c.isDragging&&
a._mouseOwner==c)return c.mouseMove(b),!1});b.bind("mouseup touchend",function(b){c.mouseUp(b);a._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&a._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;a._setMouseOwner(null)},b.setPosition=function(){if(null===a._mousePageX){var b=a.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));a._mousePageX=b.left;a._mousePageY=b.top}this.pageX0=a._mousePageX;this.pageY0=
a._mousePageY;this.container.css({top:a._mousePageY+"px",left:a._mousePageX+"px"})},b.mouseMove=function(b){this.isDragging&&a._mouseOwner==this&&(this.timestamp=System.currentTimeMillis(),this.container.css({top:this.pageY0+(b.pageY-this.pageY)+"px",left:this.pageX0+(b.pageX-this.pageX)+"px"}))},b.dragBind=function(b){this.applet._ignoreMouse=!b;this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");this.container.unbind("touchendoutjsmol");
a._setMouseOwner(null);if(b){var c=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,d){c.mouseMove(d)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,d){c.mouseUp(d)})}})};c.JSDialog=function(){};c.setDraggable(c.JSDialog);c.getScreenDimensions=function(a){a.width=m(window).width();a.height=m(window).height()};c.dispose=function(b){a.$remove(b.id+"_mover");delete c.htDialogs[b.id];b.container.obj.dragBind(!1)};c.register=function(a,d){a.id=d+ ++c.count;
c.htDialogs[a.id]=a};c.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var d=b.id+"_mover",e=a._$(d),g;e[0]?(e.html(b.html),g=e[0].jd):(a.$after("body",""+b.html+"
"),g=new c.JSDialog,e=a._$(d),b.container=e,g.applet=b.manager.vwr.html5Applet,g.setContainer(e),g.dialog=b,g.setPosition(),g.dragBind(!0),e[0].jd=g);a.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JComboBox",
"mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){g.ignoreMouse=!0});a.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){g.ignoreMouse=!0})};c.setSelected=function(b){a.$prop(b.id,
"checked",!!b.selected)};c.setSelectedIndex=function(b){a.$prop(b.id,"selectedIndex",b.selectedIndex)};c.setText=function(b){a.$prop(b.id,"value",b.text)};c.setVisible=function(b){a.$setVisible(b.id,b.visible)};c.setEnabled=function(b){a.$setEnabled(b.id,b.enabled)};c.click=function(b,d){var e=c.htDialogs[b.id];if(e){var g=e.toString();if(0<=g.indexOf("JCheck"))e.selected=b.checked;else if(0<=g.indexOf("JCombo"))e.selectedIndex=b.selectedIndex;else if(null!=e.text&&(e.text=b.value,d&&13!=(d.charCode||
d.keyCode)))return}g=c.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];g.manager.actionPerformed(e?e.name:g.registryKey+"/"+b.id)};c.setFront=function(b){var c=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(c,"dialog")&&(b.zIndex=a._incrZ(c,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};c.hideMenus=function(a){if(a=a._menus)for(var d in a)a[d].visible&&c.hideMenu(a[d])};c.windowClosing=function(b){b=c.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):
b.dispose()};a._track=function(b){if(a._tracker){try{var c='';a.$after("body",c)}catch(d){}delete a._tracker}return b};a.getProfile=function(){window["j2s.doProfile"]=!0;if(self.Clazz&&self.JSON)return Clazz._profile||(Clazz._profile={}),Clazz.getProfile()};a._getInChIKey=
function(a,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};a._getAttr=function(a,c){var d=a.indexOf(c+"=");return 0<=d&&0<=(d=a.indexOf('"',d))?a.substring(d+1,a.indexOf('"',d+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(c){c.updateView=function(d,e){if(null!=d._viewSet){e.chemID||(d._searchQuery=null);e.data||(e.data="N/A");e.type=d._viewType;if(null==(d._currentView=c.__findView(d._viewSet,e)))d._currentView=c.__createViewSet(d._viewSet,e.chemID,
e.viewID||e.chemID);d._currentView[e.type].data=e.data;d._currentView[e.type].smiles=d._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(d,"updateView");c.__setView(d._currentView,d,!1)}};c.updateFromSync=function(d,e){d._updateMsg=e;var g=a._getAttr(e,"sourceID")||a._getAttr(e,"file");if(g){var k=c.__findView(d._viewSet,{viewID:g});if(null==k)return a.updateView(d,e);k!=d._currentView&&c.__setView(k,d,!0);var r=(g=a._getAttr(e,"atoms"))&&0<=e.indexOf("selectionhalos ON")?eval("["+
g+"]"):[];setTimeout(function(){d._currentView==k&&c.updateAtomPick(d,r)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(d,"updateFromSync")}};c.updateAtomPick=function(c,b){var d=c._currentView;if(null!=d){for(var k in d)"info"!=k&&d[k].applet!=c&&d[k].applet._updateAtomPick(b);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(c,"updateAtomPick")}};c.dumpViews=function(a){var d=c.sets[a];if(d){var e="View set "+a+":\n";a=c.applets[a];for(var k in a)e+="\napplet "+a[k]._id+" currentView="+
(a[k]._currentView?a[k]._currentView.info.viewID:null);for(k=d.length;0<=--k;){a=d[k];var e=e+("\n\nview="+k+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"\n"),r,g;for(g in a)"info"!=g&&(e+="\nview="+k+" type="+g+" applet="+((r=a[g]).applet?r.applet._id:null)+" SMILES="+r.smiles+"\n atomMap="+JSON.stringify(r.atomMap)+"\n data=\n"+r.data+"\n")}return e}};c.__init=function(a){var d=a._viewSet,e=c.applets;e[d]||(e[d]={});e[d][a._viewType]=a};c.__findView=function(a,d){var e=c.sets[a];null==
e&&(e=c.sets[a]=[]);for(var k=e.length;0<=--k;){var r=e[k];if(d.viewID){if(r.info.viewID==d.viewID)return r}else{if(null!=d.chemID&&d.chemID==r.info.chemID)return r;for(var g in r)if("info"!=g&&(null!=d.data&&null!=r[g].data?d.data==r[g].data:d.type==g))return r}}return null};c.__createViewSet=function(d,e,g){c.count++;e={info:{chemID:e,viewID:g||"model_"+c.count}};for(var k in a._applets)g=a._applets[k],g._viewSet==d&&(e[g._viewType]={applet:g,data:null});c.sets[d].push(e);return e};c.__setView=
function(a,c,b){for(var d in a)if("info"!=d){var e=a[d],g=e.applet,j=b||null!=g&&""==g._molData;if(!(null==g||g==c&&!j)){var q=null==e.data,m=null!=g._currentView;g._currentView=a;if(!m||!(a[d].data==e.data&&!q&!j))if(g._loadModelFromView(a),q)break}}}})(a.View);a.Cache={fileCache:{}};a.Cache.get=function(c){return a.Cache.fileCache[c]};a.Cache.put=function(c,d){a.Cache.fileCache[c]=d};a.Cache.setDragDrop=function(c){a.$appEvent(c,"appletdiv","dragover",function(a){a=a.originalEvent;a.stopPropagation();
a.preventDefault();a.dataTransfer.dropEffect="copy"});a.$appEvent(c,"appletdiv","drop",function(d){var e=d.originalEvent;e.stopPropagation();e.preventDefault();var g=e.dataTransfer.files[0];if(null==g)try{g=""+e.dataTransfer.getData("text"),(0==g.indexOf("file:/")||0==g.indexOf("http:/"))&&c._scriptLoad(g)}catch(k){}else e=new FileReader,e.onloadend=function(k){if(k.target.readyState==FileReader.DONE){var e="cache://DROP_"+g.name;k=a._toBytes(k.target.result);c._applet.cacheFileByName("cache://DROP_*",
!1);"JSV"==c._viewType||e.endsWith(".jdx")?a.Cache.put(e,k):c._applet.cachePut(e,k);(k=a._jsGetXY(c._canvas,d))&&(!c._applet.setStatusDragDropped||c._applet.setStatusDragDropped(0,k[0],k[1],e))&&c._applet.openFileAsyncSpecial(e,1)}},e.readAsArrayBuffer(g)})}})(Jmol,jQuery);Jmol._debugCode=!1;
(function(a){a._coreFiles=[];a.__execLog=[];a.__execStack=[];a.__execTimer=0;a.__coreSet=[];a.__coreMore=[];a.__execDelayMS=100;a.showExecLog=function(){return a.__execLog.join("\n")};a.__addExec=function(m){var g="JSmol load "+m[0]._id+" "+m[3];self.console&&console.log(g+"...");a.__execLog.push(g);a.__execStack.push(m)};a.__addCoreFile=function(m,g,j){if(!(0<=a.__coreSet.join("").indexOf(m))){a.__coreSet.push(m);a.__coreSet.sort();m=a.__coreSet.join("");a._coreFiles=[g+"/core/core"+("jmol"==m?"":
m)+".z.js"];if(j&&(j=j.split(" ")))for(m=0;ma.__coreMore.join("").indexOf(j[m])&&a.__coreMore.push(g+"/core/core"+j[m]+".z.js");for(m=0;m'+g+"._cover(false)\x3c/script>"));e+=a._getWrapper(this,!1);j.addSelectionOptions&&(e+=a._getGrabberOptions(this));a._debugAlert&&!a._document&&alert(e);this._code=a._documentWrite(e)};m._cover=function(g){if(g||!this._deferApplet)this._displayCoverImage(g);else{var j=this._coverScript?this._coverScript:"";this._coverScript="";this._deferUncover&&(j+=";refresh;javascript "+
this._id+"._displayCoverImage(false)");this._script(j,!0);this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading...");this._deferApplet&&this._newCanvas(!1);this._defaultModel&&a._search(this,this._defaultModel);this._showInfo(!1);this._deferUncover||this._displayCoverImage(g);this._init&&this._init()}};m._displayCoverImage=function(g){this._coverImage&&this._isCovered!=g&&(this._isCovered=g,a._getElement(this,"coverdiv").style.display=
g?"block":"none")};m._newCanvas=function(a){this._is2D?this._createCanvas2d(a):this._GLmol.create()};m._createCanvas2d=function(){var g=a.$(this,"appletdiv");try{g[0].removeChild(this._canvas),this._canvas.frontLayer&&g[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&g[0].removeChild(this._canvas.rearLayer),this._canvas.imageLayer&&g[0].removeChild(this._canvas.imageLayer),a._jsUnsetMouse(this._mouseInterface)}catch(j){}var e=Math.round(g.width()),q=Math.round(g.height()),d=document.createElement("canvas");
d.applet=this;this._canvas=d;d.style.width="100%";d.style.height="100%";d.width=e;d.height=q;d.id=this._id+"_canvas2d";g.append(d);a._$(d.id).css({"z-index":a._getZ(this,"main")});if(this._isLayered){var c=document.createElement("div");d.imageLayer=c;c.id=this._id+"_imagelayer";g.append(c);a._$(c.id).css({zIndex:a._getZ(this,"image"),position:"absolute",left:"0px",top:"0px",width:"0px",height:"0px",overflow:"hidden"});this._mouseInterface=this._getLayer("front",g,e,q,!1)}else this._mouseInterface=
d;a._jsSetMouse(this._mouseInterface)};m._getLayer=function(g,j,e,q,d){var c=document.createElement("canvas");this._canvas[g+"Layer"]=c;c.style.width="100%";c.style.height="100%";c.id=this._id+"_"+g+"Layer";c.width=e;c.height=q;j.append(c);c.applet=this;a._$(c.id).css({background:d?"rgb(0,0,0,1)":"rgb(0,0,0,0.001)","z-index":a._getZ(this,g),position:"absolute",left:"0px",top:"0px",overflow:"hidden"});return c};m._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,
monitorZIndex:a._getZ(this,"monitorZIndex")};0==a.__execStack.length&&a.__addExec([this,a.__loadClazz,null,"loadClazz"]);this._isJSV?(a.__addCoreFile("jsv",this._j2sPath,this.__Info.preloadCore),a._debugCode&&(a.__addExec([this,a.__loadClass,"JSV.appletjs.JSVApplet","load JSV"]),this._isPro&&a.__addExec([this,a.__loadClass,"JSV.appletjs.JSVAppletPro","load JSV(signed)"]))):this._isAstex?(a.__addCoreFile("astex",this._j2sPath,this.__Info.preloadCore),a._debugCode&&a.__addExec([this,a.__loadClass,"astex.MoleculeViewerAppletJS",
"load Astex"])):(a.__addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore),this._is2D||a.__addExec([this,a.__loadClass,"J.export.JSExporter","load JSExporter"]),a._debugCode&&a.__addExec([this,a.__loadClass,"J.appletjs.Jmol","load Jmol"]));a.__addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=null;this._canScript=function(){return!0};this._savedOrientations=[];a.__execTimer&&clearTimeout(a.__execTimer);a.__execTimer=setTimeout(a.__nextExecution,
a.__execDelayMS)};m.__startAppletJS=function(g){var j=new java.util.Hashtable;a._setAppletParams(g._availableParams,j,g.__Info,!0);j.put("appletReadyCallback","Jmol._readyCallback");j.put("applet",!0);j.put("name",g._id);j.put("syncId",a._syncId);g._color&&j.put("bgcolor",g._color);g._is2D?g._startupScript&&j.put("script",g._startupScript):j.put("script","set multipleBondSpacing 0.35;");a._syncedApplets.length&&j.put("synccallback","Jmol._mySyncCallback");j.put("signedApplet","true");j.put("platform",
g._platform);g._is2D&&j.put("display",g._id+"_canvas2d");j.put("documentBase",document.location.href);var e=g._j2sPath+"/";if(0>e.indexOf("://")){var q=document.location.href.split("#")[0].split("?")[0].split("/");0==e.indexOf("/")?q=[q[0],e.substring(1)]:q[q.length-1]=e;e=q.join("/")}j.put("codePath",e);a._registerApplet(g._id,g);g._applet=g._isAstex?new astex.MoleculeViewerAppletJS(j):!g._isJSV?new J.appletjs.Jmol(j):g._isPro?new JSV.appletjs.JSVAppletPro(j):new JSV.appletjs.JSVApplet(j);g._is2D||
(g._GLmol.applet=g);g._jsSetScreenDimensions();a.__nextExecution()};m._jsSetScreenDimensions=function(){if(this._applet){var g=a._getElement(this,this._is2D?"canvas2d":"canvas");this._applet.setScreenDimension(g.width,g.height)}};m._show=function(g){a.$setVisible(a.$(this,"appletdiv"),g);g&&a._repaint(this,!0)};m._canScript=function(){return!0};m._delay=function(a,j,e){this._delayID=setTimeout(function(){a.resumeEval(j,!1)},e)};m._createDomNode=function(a,j){a=this._id+"_"+a;var e=document.getElementById(a);
e&&document.body.removeChild(e);if(j){0==j.indexOf("")&&(j=j.substring(j.indexOf("<",1)));if(0<=j.indexOf("/>")){for(var e=j.split("/>"),q=e.length-1;0<=--q;)for(var d=e[q],c=d.lastIndexOf("<")+1,b=c,f=d.length,p="";++b"+p+">";break}j=e.join("")}e=document.createElement("_xml");e.id=a;e.innerHTML=j;e.style.display="none";document.body.appendChild(e);return e}};m.equals=function(a){return this==a};m.clone=function(){return this};
m.hashCode=function(){return parseInt(this._uniqueId)};m._processGesture=function(a){return this._applet.mouse.processTwoPointGesture(a)};m._processEvent=function(a,j){this._applet.processMouseEvent(a,j[0],j[1],j[2],System.currentTimeMillis())};m._resize=function(){var g="__resizeTimeout_"+this._id;a[g]&&clearTimeout(a[g]);var j=this;a[g]=setTimeout(function(){a._repaint(j,!0);a[g]=null},100)};return m};a._repaint=function(m,g){if(m&&m._applet){var j=a.$(m,"appletdiv"),e=Math.round(j.width()),j=Math.round(j.height());
if(m._is2D&&(m._canvas.width!=e||m._canvas.height!=j))m._newCanvas(!0),m._applet.setDisplay(m._canvas);m._applet.setScreenDimension(e,j);g?setTimeout(function(){m._applet&&m._applet.update()}):m._applet.update()}};a._getHiddenCanvas=function(a,g,j,e,q){g=a._id+"_"+g;(a=document.getElementById(g))&&q&&(a=null);a||(a=document.createElement("canvas"));a.width=a.style.width=j;a.height=a.style.height=e;a.id!=g&&(a.id=g);return a};a._loadImage=function(m,g,j,e,q){var d=g[1];if(null==q)return q=new Image,
q.onload=function(){a._loadImage(m,g,null,e,q)},null!=j&&(j=J.io.Base64.getBase64(j).toString(),j=d.substring(url.lastIndexOf("/")+1),0<=j.indexOf(".png")||j.indexOf(".jpg")),q.src=d,!0;j=q.width;var c=q.height,b="echo_"+g[0],f=a._getHiddenCanvas(m.vwr.html5Applet,b,j,c,!0);f.imageWidth=j;f.imageHeight=c;f.id=b;f.image=q;a._setCanvasImage(f,j,c);e(f,d)};a._setCanvasImage=function(a,g,j){a.buf32=null;a.width=g;a.height=j;a.getContext("2d").drawImage(a.image,0,0,g,j)}})(Jmol);
(function(a,m){a._Applet=function(e,g,d){window[e]=this;this._jmolType="Jmol._Applet"+(g.isSigned?" (signed)":"");this._viewType="Jmol";this._isJava=!0;this._syncKeyword="Select:";this._availableParams=";progressbar;progresscolor;boxbgcolor;boxfgcolor;allowjavascript;boxmessage;\t\t\t\t\t\t\t\t\t;messagecallback;pickcallback;animframecallback;appletreadycallback;atommovedcallback;\t\t\t\t\t\t\t\t\t;echocallback;evalcallback;hovercallback;language;loadstructcallback;measurecallback;\t\t\t\t\t\t\t\t\t;minimizationcallback;resizecallback;scriptcallback;statusform;statustext;statustextarea;\t\t\t\t\t\t\t\t\t;synccallback;usecommandthread;syncid;appletid;startupscript;menufile;";
if(d)return this;this._isSigned=g.isSigned;this._readyFunction=g.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=g.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(c,b){var d=!1;a._jarFile&&(b=a._jarFile);if(this._jarFile){var e=this._jarFile;0<=e.indexOf("/")?(alert("This web page URL is requesting that the applet used be "+e+". This is a possible security risk, particularly if the applet is signed, because signed applets can read and write files on your local machine or network."),
"yes"==prompt("Do you want to use applet "+e+"? ","yes or no")?(c=e.substring(0,e.lastIndexOf("/")),b=e.substring(e.lastIndexOf("/")+1)):d=!0):b=e;this_isSigned=g.isSigned=0<=b.indexOf("Signed")}this._jarPath=g.jarPath=c||".";this._jarFile=g.jarFile="string"==typeof b?b:(b?"JmolAppletSigned":"JmolApplet")+"0.jar";d&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==a.controls||a.controls._onloadResetForms()};this._create(e,g);return this};
var g=a._Applet,j=a._Applet.prototype;g._get=function(e,j,d){d||(d=!1);j||(j={});a._addDefaultInfo(j,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",script:null,src:null,readyFunction:null,use:"HTML5",jarPath:"java",jarFile:"JmolApplet0.jar",isSigned:!1,j2sPath:"j2s",coverImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!1,debug:!1});a._debugAlert=j.debug;
a.featureDetection.allowHTML5||(j.use="JAVA");j.serverURL&&(a._serverUrl=j.serverURL);for(var c=!1,b=null,f=j.use.toUpperCase().split("#")[0].split(" "),p=0;pbrowser or your browser is blocking this applet.
\t\t\tCheck the warning message from your browser and/or enable Java applets in
\t\t\tyour web browser preferences, or install the Java Runtime Environment from www.java.com";
g._setCommonMethods=function(a){a._showInfo=j._showInfo;a._search=j._search;a._getName=j._getName;a._readyCallback=j._readyCallback};g._createApplet=function(e,j,d){e._initialize(j.jarPath,j.jarFile);var c=e._jarFile;a._isFile&&(c=c.replace(/0\.jar/,".jar"));var b=0<=e._containerWidth.indexOf("px")?e._containerWidth:"100%",f=0<=e._containerHeight.indexOf("px")?e._containerHeight:"100%",b=' style="width:'+b+";height:"+f+'" ',f="name='"+e._id+"_object' id='"+e._id+"_object' \n"+b+"\n";d.codebase=e._jarPath;
d.codePath=d.codebase+"/";if(0>d.codePath.indexOf("://")){var p=m.location.href.split("#")[0].split("?")[0].split("/");p[p.length-1]=d.codePath;d.codePath=p.join("/")}d.archive=c;d.mayscript="true";d.java_arguments="-Xmx"+Math.round(j.memoryLimit||e._memoryLimit)+"m";d.permissions=e._isSigned?"all-permissions":"sandbox";d.documentLocation=m.location.href;d.documentBase=m.location.href.split("#")[0].split("?")[0];d.jarPath=j.jarPath;a._syncedApplets.length&&(d.synccallback="Jmol._mySyncCallback");
e._startupScript&&(d.script=e._startupScript);var p="\n",s;for(s in d)d[s]&&(p+=" \n");p=a.featureDetection.useIEObject||a.featureDetection.useHtml4Object?"\n":"\n";p=a._getWrapper(e,!0)+p+a._getWrapper(e,!1)+(j.addSelectionOptions?a._getGrabberOptions(e):"");a._debugAlert&&alert(p);e._code=a._documentWrite(p)};j._create=function(e,j){a._setObject(this,e,j);var d={syncId:a._syncId,progressbar:"true",progresscolor:"blue",
boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...",script:this._color?'background "'+this._color+'"':"",code:"JmolApplet.class"};a._setAppletParams(this._availableParams,d,j);var c;j.inlineModel?(c=j.inlineModel,c=c.replace(/\r|\n|\r\n/g,0<=c.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),a._debugAlert&&alert("inline model:\n"+c)):c="";d.loadInline=c;d.appletReadyCallback="Jmol._readyCallback";a._syncedApplets.length&&(d.synccallback="Jmol._mySyncCallback");
d.java_arguments="-Xmx"+Math.round(j.memoryLimit||this._memoryLimit)+"m";this._initialize(j.jarPath,j.jarFile);g._createApplet(this,j,d)};j._readyCallback=function(e,g,d,c){d&&(a._setDestroy(this),this._ready=!0,e=this._readyScript,this._applet=c,this._defaultModel?a._search(this,this._defaultModel,e?";"+e:""):e?this._script(e):this._src&&this._script('load "'+this._src+'"'),this._showInfo(!0),this._showInfo(!1),a.Cache.setDragDrop(this),this._readyFunction&&this._readyFunction(this),a._setReady(this),
(c=this._2dapplet)&&(c._isEmbedded&&c._ready&&c.__Info.visible)&&this._show2d(!0))};j._showInfo=function(e){e&&this._2dapplet&&this._2dapplet._show(!1);a.$html(a.$(this,"infoheaderspan"),this._infoHeader);this._info&&a.$html(a.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!e){this._isInfoVisible=e;if(this._isJava){var g=e?2:"100%";a.$setSize(a.$(this,"appletdiv"),g,g)}a.$setVisible(a.$(this,"infotablediv"),e);a.$setVisible(a.$(this,"infoheaderdiv"),e);this._show(!e)}};j._show2d=function(a){this._2dapplet._show2d(a);
this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!a))};j._getAtomCorrelation=function(a){this._loadMolData(a,"atommap = compare({1.1} {2.1} 'MAP' 'H'); zap 2.1",!0);a=jmol._evaluate("atommap");for(var g=jmol._evaluate("{*}.count"),d=[],c=[],b=0;barguments.length&&
(g=1);var d=this._savedOrientations[a];return!d||""==d?d.replace(/1\.0/,g):this._scriptWait(d)};j._resizeApplet=function(e){function g(c,b){var d=""+c;return 0==d.length?b?"":a._allowedJmolSize[2]:d.indexOf("%")==d.length-1?d:1>=(c=parseFloat(c))&&0a._allowedJmolSize[1]?a._allowedJmolSize[1]:c)+(b?b:"")}var d;"object"==typeof e&&null!=e?(d=e[0]||e.width,e=e[1]||e.height):d=e;d=[g(d,"px"),g(e,
"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=d[0];e.style.height=d[1];this._containerWidth=d[0];this._containerHeight=d[1];this._is2D&&a._repaint(this,!0)};j._search=function(e,g){a._search(this,e,g)};j._searchDatabase=function(e,g,d){if(this._2dapplet&&this._2dapplet._isEmbedded&&a.$(this,"2dappletdiv:visible")[0])return this._2dapplet._searchDatabase(e,g,d);this._showInfo(!1);0<=e.indexOf("?")?a._getInfoFromDatabase(this,g,e.split("?")[0]):(d||(d=a._getScriptForDatabase(g)),e=
g+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,d,e))};j._loadFile=function(e,g,d){this._showInfo(!1);g||(g="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,g)){var c=this;a._loadFileData(this,e,function(a){c.__loadModel(a,g,d)},function(){c.__loadModel(null)})}};j._scriptLoad=function(a,g){g||(g="");var d=this._isJava||!this._noscript;d&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;
d?this._script('load async "'+a+'";'+g):this._applet.openFile(a);this._checkDeferred("");return!0};j.__loadModel=function(e,g,d){null!=e&&(null!=this._viewSet&&(g||(g=""),g+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!g&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,g,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:d,data:e}))};j._loadMolData=function(a,g,d){g||
(g="");d=d?"append":"model";this._applet.scriptWait('load DATA "'+d+'"'+a+'\nEND "'+d+'" ;'+g)};j._loadModelFromView=function(e){this._currentView=e;var g=e.Jmol;null!=g.data?this.__loadModel(g.data,null,e.info.chemID):null!=e.info.chemID?a._searchMol(this,e.info.chemID,null,!1):(g=e.JME)&&g.applet._show2d(!1,this)};j._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}")}))};j._atomPickedCallback=function(e,g){if(!(0>g)){var d=[g+1];a.View.updateAtomPick(this,d);this._updateAtomPick(d)}};j._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};j._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};j._checkDeferred=function(a){return this._isDeferred()?
(this._coverScript=a,this._cover(!1),!0):!1};j._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};j._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};j._getMol2D=function(){return jmol._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,j){var e=m._scripts.length;m._scripts[e]=[a,j];return e};m._getIdForControl=function(a,j){return"string"==typeof a?a:!j||!a._canScript||a._canScript(j)?a._id:null};m._radio=function(a,j,e,q,d,c,b,f){var p=m._getIdForControl(a,j);if(null==p)return null;++m._radioCount;void 0!=c&&null!=c||(c="jmolRadioGroup"+(m._radioGroupCount-1));if(!j)return"";void 0!=b&&null!=b||(b="jmolRadio"+(m._radioCount-1));void 0!=e&&null!=e||(e=j.substring(0,32));d||(d="");a="";m._actions[b]=
m._addScript(p,j);j='";0<=e.toLowerCase().indexOf("")&&(j+=a,a="");return j+('"+a+d)};m._scriptExecute=function(g,j){var e=a._applets[j[0]],m=j[1];if("object"==typeof m)m[0](g,m,
e);else"function"==typeof m?m(e):a.script(e,m)};m.__checkScript=function(a,j){var e=0<=j.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(j.value);j.style.color=e?"black":"red";return e};m.__getCmd=function(a,j){if(j._cmds&&j._cmds.length){var e=j._cmds[j._cmdpt=(j._cmdpt+j._cmds.length+a)%j._cmds.length];setTimeout(function(){j.value=e},10);j._cmdadd=1;j._cmddir=a}};m._commandKeyPress=function(g,j,e){g=13==g?13:window.event?window.event.keyCode:g?g.keyCode||g.which:0;var q=document.getElementById(j),
d=a._applets[e];switch(g){case 13:return j=q.value,m._scriptExecute(q,[e,j]),q._cmds||(q._cmds=[],q._cmddir=0,q._cmdpt=-1,q._cmdadd=0),j&&0==q._cmdadd?(++q._cmdpt,q._cmds.splice(q._cmdpt,0,j),q._cmdadd=0,q._cmddir=0):q._cmdadd=0,q.value="",!1;case 27:return setTimeout(function(){q.value=""},20),!1;case 38:m.__getCmd(-1,q);break;case 40:m.__getCmd(1,q);break;default:q._cmdadd=0}setTimeout(function(){m.__checkScript(d,q)},20);return!0};m._click=function(a,j){m._element=a;1==arguments.length&&(j=m._actions[a.id]);
m._scriptExecute(a,m._scripts[j])};m._menuSelected=function(a){var j=a.value;if(void 0!=j)m._scriptExecute(a,m._scripts[j]);else{j=a.length;if("number"==typeof j)for(var e=0;e";a._debugAlert&&
alert(j);return a._documentWrite(j)};m._getCheckbox=function(g,j,e,q,d,c,b){var f=m._getIdForControl(g,j);null!=f&&(f=m._getIdForControl(g,e));if(null==f)return"";void 0!=c&&null!=c||(c="jmolCheckbox"+m._checkboxCount);++m._checkboxCount;if(void 0==j||null==j||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==q||null==q)alert("jmolCheckbox requires a label");else return m._actions[c]=[m._addScript(f,j),m._addScript(f,e)],g="",d='",0<=q.toLowerCase().indexOf("")&&(d+=g,g=""),d+='"+g,a._debugAlert&&alert(d),a._documentWrite(d)};m._getCommandInput=function(g,j,e,q,d,c){g=m._getIdForControl(g,"x");if(null==g)return"";void 0!=q&&null!=q||(q="jmolCmd"+m._cmdCount);
void 0!=j&&null!=j||(j="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=c||(c="help");++m._cmdCount;j='";a._debugAlert&&alert(j);return a._documentWrite(j)};m._getLink=function(g,
j,e,q,d){g=m._getIdForControl(g,j);if(null==g)return"";void 0!=q&&null!=q||(q="jmolLink"+m._linkCount);void 0!=e&&null!=e||(e=j.substring(0,32));++m._linkCount;j=m._addScript(g,j);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)};
m._getMenu=function(g,j,e,q,d){var c=m._getIdForControl(g,null);void 0!=q&&null!=q||(q="jmolMenu"+m._menuCount);++m._menuCount;c=typeof j;if(null!=c&&"object"==c&&j.length){var b=j.length;"number"!=typeof e||1==e?e=null:0>e&&(e=b);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};m._getRadio=function(g,j,e,q,d,c,b,f){0==m._radioGroupCount&&++m._radioGroupCount;c||(c="jmolRadioGroup"+(m._radioGroupCount-1));g=m._radio(g,j,e,q,d,c,b?b:c+"_"+m._radioCount,f?f:0);if(null==
g)return"";a._debugAlert&&alert(g);return a._documentWrite(g)};m._getRadioGroup=function(g,j,e,q,d,c){var b=typeof j;if("object"!=b||null==b||!j.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e=" ");var f=j.length;++m._radioGroupCount;q||(q="jmolRadioGroup"+(m._radioGroupCount-1));for(var p="",s=0;s";a._debugAlert&&alert(p);return a._documentWrite(p)}}})(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(g,j,e){return a._Applet._get(g,j,e)};a.getJMEApplet=function(g,j,e,m){return a._JMEApplet._get(g,j,e,m)};a.getJSVApplet=function(g,j,e){return a._JSVApplet._get(g,j,e)};a.loadFile=function(a,j,e){a._loadFile(j,e)};a.script=function(a,j){a._checkDeferred(j)||
a._script(j)};a.scriptCheck=function(a,j){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(j)};a.scriptWait=function(a,j){return a._scriptWait(j)};a.scriptEcho=function(a,j){return a._scriptEcho(j)};a.scriptMessage=function(a,j){return a._scriptMessage(j)};a.scriptWaitOutput=function(a,j){return a._scriptWait(j)};a.scriptWaitAsArray=function(a,j){return a._scriptWaitAsArray(j)};a.search=function(a,j,e){a._search(j,e)};a.evaluateVar=function(a,j){return a._evaluate(j)};a.evaluate=function(a,j){return a._evaluateDEPRECATED(j)};
a.getAppletHtml=function(g,j){if(j){var e=a._document;a._document=null;g=a.getApplet(g,j);a._document=e}return g._code};a.getPropertyAsArray=function(a,j,e){return a._getPropertyAsArray(j,e)};a.getPropertyAsJavaObject=function(a,j,e){return a._getPropertyAsJavaObject(j,e)};a.getPropertyAsJSON=function(a,j,e){return a._getPropertyAsJSON(j,e)};a.getPropertyAsString=function(a,j,e){return a._getPropertyAsString(j,e)};a.getStatus=function(a,j){return a._getStatus(j)};a.resizeApplet=function(a,j){return a._resizeApplet(j)};
a.restoreOrientation=function(a,j){return a._restoreOrientation(j)};a.restoreOrientationDelayed=function(a,j,e){return a._restoreOrientationDelayed(j,e)};a.saveOrientation=function(a,j){return a._saveOrientation(j)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,j,e){a._info=j;2")};
a.jmolButton=function(g,j,e,m,d){return a.controls._getButton(g,j,e,m,d)};a.jmolCheckbox=function(g,j,e,m,d,c,b){return a.controls._getCheckbox(g,j,e,m,d,c,b)};a.jmolCommandInput=function(g,j,e,m,d,c){return a.controls._getCommandInput(g,j,e,m,d,c)};a.jmolHtml=function(g){return a._documentWrite(g)};a.jmolLink=function(g,j,e,m,d){return a.controls._getLink(g,j,e,m,d)};a.jmolMenu=function(g,j,e,m,d){return a.controls._getMenu(g,j,e,m,d)};a.jmolRadio=function(g,j,e,m,d,c,b,f){return a.controls._getRadio(g,
j,e,m,d,c,b,f)};a.jmolRadioGroup=function(g,j,e,m,d,c){return a.controls._getRadioGroup(g,j,e,m,d,c)};a.setCheckboxGroup=function(g,j){a.controls._cbSetCheckboxGroup(g,j,arguments)};a.setDocument=function(g){a._document=g};a.setXHTML=function(g){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;g&&(a._XhtmlElement=document.getElementById(g),a._XhtmlAppendChild=!0)};a.setAppletCss=function(g,j){null!=g&&(a.controls._appletCssClass=g);a.controls._appletCssText=j?j+" ":g?'class="'+g+'" ':""};
a.setButtonCss=function(g,j){null!=g&&(a.controls._buttonCssClass=g);a.controls._buttonCssText=j?j+" ":g?'class="'+g+'" ':""};a.setCheckboxCss=function(g,j){null!=g&&(a.controls._checkboxCssClass=g);a.controls._checkboxCssText=j?j+" ":g?'class="'+g+'" ':""};a.setRadioCss=function(g,j){null!=g&&(a.controls._radioCssClass=g);a.controls._radioCssText=j?j+" ":g?'class="'+g+'" ':""};a.setLinkCss=function(g,j){null!=g&&(a.controls._linkCssClass=g);a.controls._linkCssText=j?j+" ":g?'class="'+g+'" ':""};
a.setMenuCss=function(g,j){null!=g&&(a.controls._menuCssClass=g);a.controls._menuCssText=j?j+" ":g?'class="'+g+'" ':""};a.setAppletSync=function(g,j,e){a._syncedApplets=g;a._syncedCommands=j;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(g){a._grabberOptions=g};a.setAppletHtml=function(g,j){g._code&&(a.$html(j,g._code),g._init&&!g._deferApplet&&g._init())};a.coverApplet=function(a,j){a._cover&&a._cover(j)};a.setFileCaching=function(g,j){g?g._cacheFiles=j:a.fileCache=j?{}:null};
a.updateView=function(a,j,e){a._updateView(j,e)};a.getChemicalInfo=function(g,j,e){j||(j="name");"string"!=typeof applet_or_Identifier&&(g=g._getSmiles());return a._getNCIInfo(g,j,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(){window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz=function(){},function(a){a.__debuggingBH=!1;a._globals=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(d,c){a._globals.push(d);window[d]=c};a.getGlobals=function(){return a._globals.sort().join("\n")};a._profile=window["j2s.doProfile"]&&self.JSON?{}:null;a.getProfile=function(){var d="";if(a._profile){var d=[],c;for(c in a._profile){var b=
""+a._profile[c];d.push(" ".substring(b.length)+b+"\t"+c)}d=d.sort().reverse().join("\r\n");a._profile={}}return d};a.addProfile=function(d,c,b){d=d.__CLASS_NAME__+" "+c+" "+JSON.stringify(b);a._profile[d]||(a._profile[d]=0);a._profile[d]++};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.getSignature=
function(a,c,b,f){return f?a[c]=b:a[c]};a.addProto=function(d,c,b){a.getSignature(d,c,b,!0)};var m=a._O.prototype;a.addProto(m,"equals",function(a){return this==a});a.addProto(m,"hashCode",function(){try{return this.toString().hashCode()}catch(a){var c=":",b;for(b in this)c+=b+":";return c.hashCode()}});a.addProto(m,"getClass",function(){return a.getClass(this)});a.addProto(m,"clone",function(){return a.clone(this)});a.clone=function(a){var c=new a.constructor,b;for(b in a)c[b]=a[b];return c};a.addProto(m,
"finalize",function(){});a.addProto(m,"notify",function(){});a.addProto(m,"notifyAll",function(){});a.addProto(m,"wait",function(){});a.addProto(m,"to$tring",Object.prototype.toString);a.addProto(m,"toString",function(){return null!=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(d,c){c&&(d.__CLASS_NAME__=d.prototype.__CLASS_NAME__=
c);if(a._supportsNativeObject)for(var b=0;bf)return"["==b.charAt(0)?a.extractClassName(b):b.replace(/[^a-zA-Z0-9]/g,"");var f=f+8,e=b.indexOf("(",f);if(0>e)return"Object";b=b.substring(f,e);if(0<=b.indexOf("Array"))return"Array";b=b.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==b||""==b?"Function":b;case "object":if(null!=d.__CLASS_NAME__)return d.__CLASS_NAME__;if(null==d.constructor)return"Object";if(null==
d.constructor.__CLASS_NAME__){if(d instanceof Number)return"Number";if(d instanceof Boolean)return"Boolean";if(d instanceof Array)return"Array";b=d.toString();if("["==b.charAt(0))return a.extractClassName(b)}}return a.getClassName(d.constructor,!0)};a.getClass=function(d){if(null==d)return a._O;if("function"==typeof d)return d;var c=null;if(d instanceof a.CastedNull)c=d.clazzName;else{if("string"==typeof d)return String;if("object"==typeof d)if(null!=d.__CLASS_NAME__)c=d.__CLASS_NAME__;else return null==
d.constructor?a._O:d.constructor}return null!=c?a.evalType(c,!0):d.constructor};a.extendsProperties=function(d,c){for(var b in c)"b$"!=b&&("prototype"!=b&&"superClazz"!=b&&"__CLASS_NAME__"!=b&&"implementz"!=b&&!a.checkInnerFunction(c,b))&&(d[b]=c[b])};a.checkInnerFunction=function(d,c){for(var b=0;bb;){if(null!=f.implementz)for(var e=f.implementz,g=0;ge[k]){g=!1;break}g&&(e[c.length]=f,b[b.length]=e)}if(0==b.length)return null;e=b[0];for(f=1;fb.length)break;if(b.indexOf(k)==b.length-k.length){b=b.substring(0,b.length-k.length+1);break}}else b=
a._Loader.getClasspathFor(f,!0);else e=a.binaryFolders,null!=e&&0!=e.length&&(b=e[0]);if(null==b||0==b.length)b="j2s/";b=b.replace(/\\/g,"/");e=b.length;e=b.charAt(e-1);"/"!=e&&(b+="/");null!=this.base?c.url=b+d:(e=f.lastIndexOf("."),c.url=-1==e||null!=this.base?b+d:b+f.substring(0,e).replace(/\./g,"/")+"/"+d)}return c},defineMethod:function(d,c,b){a.defineMethod(this,d,c,b)},defineStaticMethod:function(d,c,b){a.defineMethod(this,d,c,b);this[d]=this.prototype[d]},makeConstructor:function(d,c){a.makeConstructor(this,
d,c)}};a.decorateFunction=function(d,c,b){null!=a._Loader&&a._Loader.checkInteractive();var f=null;null==c?(f=b,a.setGlobal(b,d)):null!=c.__PKG_NAME__?(f=c.__PKG_NAME__+"."+b,c[b]=d,c===java.lang&&a.setGlobal(b,d)):(f=c.__CLASS_NAME__+"."+b,c[b]=d);a.extendJO(d,f);c=a.innerFunctionNames;for(b=0;b")+"\n",b=b.caller;return c};Number.prototype._numberToString=Number.prototype.toString;a.declarePackage("java.io");a.declarePackage("java.lang.annotation");a.declarePackage("java.lang.instrument");a.declarePackage("java.lang.management");
a.declarePackage("java.lang.reflect");a.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;a.declarePackage("java.util");a.declareInterface(java.io,"Closeable");a.declareInterface(java.io,"DataInput");a.declareInterface(java.io,"DataOutput");a.declareInterface(java.io,"Externalizable");a.declareInterface(java.io,"Flushable");a.declareInterface(java.io,"Serializable");a.declareInterface(java.lang,"Iterable");a.declareInterface(java.lang,"CharSequence");a.declareInterface(java.lang,
"Cloneable");a.declareInterface(java.lang,"Appendable");a.declareInterface(java.lang,"Comparable");a.declareInterface(java.lang,"Runnable");a.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};if(null!=window.Clazz&&null==window.Clazz.unloadClass){a.MethodNotFoundException=function(d,c,b,f){d="";null!=f&&(d=f.substring(1).replace(/\\/g,","));this.message=(null!=b&&"construct"!=b?"Method":"Constructor")+" "+a.getClassName(c,!0)+"."+b+"("+d+") is not found!";
this.toString=function(){return"MethodNotFoundException:"+this.message}};a.prepareCallback=function(d,c){var b=c[0];if(null!=d&&null!=b&&b!==window){var f=[];if(null!=d.b$)for(var e in d.b$)"length"!=e&&(f[e]=d.b$[e]);d.b$=f;var g=a.getClassName(b,!0);f[g.replace(/org\.eclipse\.swt\./,"$wt.")]=b;for(g=a.getClass(b);null!=g.superClazz;)g=g.superClazz,f[a.getClassName(g,!0).replace(/org\.eclipse\.swt\./,"$wt.")]=b;b=b.b$;if(null!=b&&b instanceof Array)for(e in b)"length"!=e&&(f[e]=b[e])}for(f=0;fa?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;self.Int32Array&&self.Int32Array!=Array?(a.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort)):(Int32Array=function(a){a||(a=0);var c=Array(a);c.toString=function(){return"[object Int32Array]"};for(var b=
0;b=d.length)return[];var b=d[0];"string"==typeof b&&(b=b.charCodeAt(0));var f=d.length-1,e=d[f];if(2==d.length){if(null==e)return Array(b);if(!0===c&&a.haveInt32)return new Int32Array(b);if(!1===c&&a.haveFloat64)return new Float64Array(b);if(c==Array&&null==e)return Array(b);for(var d=!0===c?new Int32Array:!1===c?new Float64Array:Array(b),g=
b;0<=--g;)d[g]=e;return d}for(var k=Array(f),g=0;ge)return Array(b);try{return c?new Int32Array(b):new Float64Array(b)}catch(g){alert(b+" "+arguments.callee.caller.arguments.callee.caller+g)}}for(e=Array(f);0<=
--f;)e[f]=d[f+1];for(var k=Array(b),f=0;f>24,b=(a&16711680)>>16,e=(a&65280)>>8;a&=255;return 0!=(c&128)?-(((c&127)<<24)+(b<<16)+(e<<8)+a+1):(c<<24)+(b<<16)+(e<<8)+a};a.shortCast=function(){var a=(n&65280)>>8,c=n&255;return 0!=(a&128)?-(((a&127)<<8)+c+1):(a<<8)+b4};a.byteCast=function(a){return 0!=(a&128)?-((a&
127)+1):a&255};a.charCast=function(a){return String.fromCharCode(a&255).charAt(0)};a.floatCast=function(a){return a};a.longMasks=[];a.longReverseMasks=[];a.longBits=[];m=[1];for(g=1;53>g;g++)m[g]=m[g-1]+m[g-1];a.longBits=m;a.longMasks[52]=m[52];for(g=51;0<=g;g--)a.longMasks[g]=a.longMasks[g+1]+m[g];a.longReverseMasks[0]=m[0];for(g=1;52>g;g++)a.longReverseMasks[g]=a.longReverseMasks[g-1]+m[g];a.longLeftShift=function(d,c){if(0==c)return d;if(64<=c)return 0;if(52>c:d>>c};a.intRightShift=function(a,c){return a>>c};a.long0RightShift=function(a,c){return a>>>c};a.int0RightShift=
function(a,c){return a>>>c};a.declarePackage("java.lang.reflect");a.declarePackage("java.security");a.innerFunctionNames=a.innerFunctionNames.concat("getSuperclass isAssignableFrom getMethods getMethod getDeclaredMethods getDeclaredMethod getConstructor getModifiers isArray newInstance".split(" "));a._innerFunctions.getSuperclass=function(){return this.superClazz};a._innerFunctions.isAssignableFrom=function(d){return 0<=a.getInheritedLevel(d,this)};a._innerFunctions.getConstructor=function(){return new java.lang.reflect.Constructor(this,
[],[],java.lang.reflect.Modifier.PUBLIC)};a._innerFunctions.getDeclaredMethods=a._innerFunctions.getMethods=function(){var a=[],c=this.prototype,b;for(b in c)"function"==typeof c[b]&&null==c[b].__CLASS_NAME__&&(a[a.length]=new java.lang.reflect.Method(this,b,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC));c=this;for(b in c)"function"==typeof c[b]&&null==c[b].__CLASS_NAME__&&(a[a.length]=new java.lang.reflect.Method(this,b,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC));
return a};a._innerFunctions.getDeclaredMethod=a._innerFunctions.getMethod=function(a){var c=this.prototype,b;for(b in c)if(a==b&&"function"==typeof c[b]&&null==c[b].__CLASS_NAME__)return new java.lang.reflect.Method(this,b,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC);c=this;for(b in c)if(a==b&&"function"==typeof c[b]&&null==c[b].__CLASS_NAME__)return new java.lang.reflect.Method(this,b,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC);return null};
a._innerFunctions.getModifiers=function(){return java.lang.reflect.Modifier.PUBLIC};a._innerFunctions.isArray=function(){return!1};a._innerFunctions.newInstance=function(){return new this};m=a.innerFunctionNames;for(g=0;gc.loadingTimeLag?0:c.loadingTimeLag)):
(a.onreadystatechange=null,0<=c.loadingTimeLag?window.setTimeout(d,c.loadingTimeLag):c.xhrOnload(a,b));b=a=null}}};c.loadingNextByPath=function(a){0<=c.loadingTimeLag?window.setTimeout(function(){c.tryToLoadNext(a)},c.loadingTimeLag):c.tryToLoadNext(a)};c.ieToLoadScriptAgain=function(a,b){return window.setTimeout(function(){c.takeAnotherTry&&(c.failedScripts[a]=0,c.loadedScripts[a]=!1,0=b.STATUS_DECLARED){f=g;break}d[d.length]=a;if(-1!=f){for(g=f;g=b.STATUS_OPTIONALS_LOADED)c.destroyClassNode(a);else{var d=!1;if(null==a.musts||0==a.musts.length||null==a.declaration)d=!0;else for(var d=!0,e=a.musts.length,f=e-1;0<=f;f--){var g=a.musts[f];g.requiredBy=a;if(g.statusb.STATUS_KNOWN&&null==a.declaration)m=
!0;else{m=!0;for(f=0;f=d||c.updateNode(f)}d==b.STATUS_OPTIONALS_LOADED&&(a.parents=[])}};c.findNextMustClass=function(a,d){if(null!=a){if(null!=a.musts&&0!=a.musts.length)for(var e=
0;e=b.STATUS_OPTIONALS_LOADED))j?window.setTimeout(f,
25):f()};c.loadJ2SApp=function(b,e,f){if(null!=b){var g=b;"$"==b.charAt(0)&&(g="org.eclipse.s"+b.substring(1));var j=-1;if(-1!=(j=g.indexOf("@")))b=g.substring(j+1),c.setPrimaryFolder(b),g=g.substring(0,j),j=g.lastIndexOf("."),-1!=j&&(j=g.substring(0,j),c.packageClasspath(j,b));if(null==e||!(e instanceof Array))e=[];if(null==f){var m=g,p=e;f=function(){a.evalType(m).main(p)}}else f=f(g,e);c.loadClass(g,f)}};c.loadJUnit=function(b,e){c.loadJ2SApp(b,e,function(b){return function(){c.loadClass("junit.textui.TestRunner",
function(){junit.textui.TestRunner.run(a.evalType(b))})}})};c.runtimeLoaded=function(){if(0==c.pkgRefCount&&c.isClassDefined(c.runtimeKeyClass)){for(var a=c.queueBe4KeyClazz,b=0;b=a?999999:a};q.maxLatency=40;q.setMaxLatency=function(a){q.maxLatency=0>=a?40:a};q.pinning=!1;q.enablePinning=function(a){q.pinning=a};q.linesCount=0;q.metLineBreak=!1;q.splitNeedFixed=2!="\n".split(/\n/).length;q.splitIntoLineByR=function(a){for(var c=
[],b=0,e=-1;;)if(b=a.indexOf("\r",e+1),-1!=b){if(c[c.length]=a.substring(e+1,b),e=b,e+1==a.length){c[c.length]="";break}}else{c[c.length]=a.substring(e+1);break}return c};q.splitIntoLines=function(a){var c=[];if(null==a)return c;for(var b=0,e=-1;;){var b=a.indexOf("\n",e+1),g=null;-1!=b?(g=0q.maxTotalLines){for(var e=0;eb.childNodes.length)m=document.createElement("DIV"),
b.appendChild(m),m.style.whiteSpace="nowrap",q.linesCount++;else try{m=b.childNodes[b.childNodes.length-1]}catch(G){m=document.createElement("DIV"),b.appendChild(m),m.style.whiteSpace="nowrap",q.linesCount++}var C=document.createElement("SPAN");m.appendChild(C);C.style.whiteSpace="nowrap";null!=c&&(C.style.color=c);0==j[e].length&&(j[e]=String.fromCharCode(160));C.appendChild(document.createTextNode(j[e]));q.pinning||(b.scrollTop+=100);q.metLineBreak=e!=j.length-1?!0:g}g=b.parentNode.className;!q.pinning&&
(null!=g&&-1!=g.indexOf("composite"))&&(b.parentNode.scrollTop=b.parentNode.scrollHeight);q.lastOutputTime=(new Date).getTime()};q.clear=function(){try{q.metLineBreak=!0;var a=window["j2s.lib"],c=a&&a.console;if(c&&(c=document.getElementById(c))){for(var b=c.childNodes,e=b.length-1;0<=e;e--)c.removeChild(b[e]);q.linesCount=0}}catch(g){}};a.alert=function(a){q.consoleOutput(a+"\r\n")};q.c160=String.fromCharCode(160);q.c160+=q.c160+q.c160+q.c160;System.out.print=function(a){q.consoleOutput(a)};System.out.println=
function(a){q.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};System.out.write=function(a,c,b){System.out.print(String.instantialize(a).substring(c,c+b))};System.err.__CLASS_NAME__="java.io.PrintStream";System.err.print=function(a){q.consoleOutput(a,"red")};System.err.println=function(a){q.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};System.err.write=function(a,c,b){System.err.print(String.instantialize(a).substring(c,c+b))};a.setConsoleDiv=
function(a){window["j2s.lib"]&&(window["j2s.lib"].console=a)};a.binaryFolders=a._Loader.binaryFolders=[a._Loader.getJ2SLibBase()]}(Clazz))};___JmolDate="$Date: 2014-08-05 07:33:08 -0500 (Tue, 05 Aug 2014) $";___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";___JmolVersion="14.2.5_2014.08.05";
| |