a?this[a+this.length]:this[a]:W.call(this)},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},each:function(a,g){return d.each(this,a,g)},map:function(a){return this.pushStack(d.map(this,function(g,k){return a.call(g,k,g)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var g= this.length;a=+a+(0>a?g:0);return this.pushStack(0<=a&&ak?Math.max(0,b+k):k:0;ky.cacheLength&&delete a[g.shift()];return a[k+" "]=b}var g=[];return a},P=function(a){a[C]=!0;return a},Q=function(a){var g=H.createElement("div");try{return!!a(g)}catch(k){return!1}finally{g.parentNode&&g.parentNode.removeChild(g)}},vb=function(a,g){for(var k=a.split("|"),b=a.length;b--;)y.attrHandle[k[b]]=g},nc=function(a, g){var k=g&&a,b=k&&1===a.nodeType&&1===g.nodeType&&(~g.sourceIndex||mc)-(~a.sourceIndex||mc);if(b)return b;if(k)for(;k=k.nextSibling;)if(k===g)return-1;return a?1:-1},id=function(a){return function(g){return"input"===g.nodeName.toLowerCase()&&g.type===a}},jd=function(a){return function(g){var k=g.nodeName.toLowerCase();return("input"===k||"button"===k)&&g.type===a}},ja=function(a){return P(function(g){g=+g;return P(function(k,b){for(var d,c=a([],k.length,g),e=c.length;e--;)if(k[d=c[e]])k[d]=!(b[d]= k[d])})})},sb=function(a){return a&&typeof a.getElementsByTagName!==ra&&a},oc=function(){},Na=function(a,g){var k,b,d,c,e,f,h;if(e=pc[a+" "])return g?0:e.slice(0);e=a;f=[];for(h=y.preFilter;e;){if(!k||(b=kd.exec(e)))b&&(e=e.slice(b[0].length)||e),f.push(d=[]);k=!1;if(b=ld.exec(e))k=b.shift(),d.push({value:k,type:b[0].replace(Pa," ")}),e=e.slice(k.length);for(c in y.filter)if((b=Qa[c].exec(e))&&(!h[c]||(b=h[c](b))))k=b.shift(),d.push({value:k,type:c,matches:b}),e=e.slice(k.length);if(!k)break}return g? e.length:e?z.error(a):pc(a,f).slice(0)},Oa=function(a){for(var g=0,k=a.length,b="";g +~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,qd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),rd=RegExp(Bb),sd=RegExp("^"+uc+"$"),Qa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+vc), PSEUDO:RegExp("^"+Bb),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")},td=/^(?:input|select|textarea|button)$/i,ud=/^h\d$/i,Ca=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rb=/[+~]/,hd=/'|\\/g,Z=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),aa=function(a,g,k){a="0x"+g-65536;return a!==a||k?g:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{Y.apply(ca=tc.call(O.childNodes),O.childNodes),ca[O.childNodes.length].nodeType}catch(ae){Y={apply:ca.length?function(a,g){pd.apply(a,tc.call(g))}: function(a,g){for(var k=a.length,b=0;a[k++]=g[b++];);a.length=k-1}}}x=z.support={};qc=z.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};X=z.setDocument=function(a){var g=a?a.ownerDocument||a:O;a=g.defaultView;if(g===H||9!==g.nodeType||!g.documentElement)return H;H=g;U=g.documentElement;S=!qc(g);a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){X()},!1):a.attachEvent&&a.attachEvent("onunload",function(){X()}));x.attributes=Q(function(a){a.className= "i";return!a.getAttribute("className")});x.getElementsByTagName=Q(function(a){a.appendChild(g.createComment(""));return!a.getElementsByTagName("*").length});x.getElementsByClassName=Ca.test(g.getElementsByClassName)&&Q(function(a){a.innerHTML="";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});x.getById=Q(function(a){U.appendChild(a).id=C;return!g.getElementsByName||!g.getElementsByName(C).length});x.getById?(y.find.ID=function(a, g){if(typeof g.getElementById!==ra&&S){var b=g.getElementById(a);return b&&b.parentNode?[b]:[]}},y.filter.ID=function(a){var g=a.replace(Z,aa);return function(a){return a.getAttribute("id")===g}}):(delete y.find.ID,y.filter.ID=function(a){var g=a.replace(Z,aa);return function(a){return(a=typeof a.getAttributeNode!==ra&&a.getAttributeNode("id"))&&a.value===g}});y.find.TAG=x.getElementsByTagName?function(a,g){if(typeof g.getElementsByTagName!==ra)return g.getElementsByTagName(a)}:function(a,g){var b, d=[],c=0,e=g.getElementsByTagName(a);if("*"===a){for(;b=e[c++];)1===b.nodeType&&d.push(b);return d}return e};y.find.CLASS=x.getElementsByClassName&&function(a,g){if(typeof g.getElementsByClassName!==ra&&S)return g.getElementsByClassName(a)};la=[];I=[];if(x.qsa=Ca.test(g.querySelectorAll))Q(function(a){a.innerHTML="";a.querySelectorAll("[t^='']").length&&I.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||I.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||I.push(":checked")}),Q(function(a){var b=g.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&I.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||I.push(":enabled",":disabled");a.querySelectorAll("*,:x");I.push(",.*:")});(x.matchesSelector=Ca.test(Ua=U.webkitMatchesSelector||U.mozMatchesSelector||U.oMatchesSelector||U.msMatchesSelector))&&Q(function(a){x.disconnectedMatch= Ua.call(a,"div");Ua.call(a,"[s!='']:x");la.push("!=",Bb)});I=I.length&&RegExp(I.join("|"));la=la.length&&RegExp(la.join("|"));Ba=(a=Ca.test(U.compareDocumentPosition))||Ca.test(U.contains)?function(a,g){var b=9===a.nodeType?a.documentElement:a,d=g&&g.parentNode;return a===d||!(!d||!(1===d.nodeType&&(b.contains?b.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16)))}:function(a,g){if(g)for(;g=g.parentNode;)if(g===a)return!0;return!1};Ab=a?function(a,b){if(a===b)return ta=!0,0;var d= !a.compareDocumentPosition-!b.compareDocumentPosition;if(d)return d;d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return d&1||!x.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===O&&Ba(O,a)?-1:b===g||b.ownerDocument===O&&Ba(O,b)?1:ba?ka.call(ba,a)-ka.call(ba,b):0:d&4?-1:1}:function(a,b){if(a===b)return ta=!0,0;var d,c=0;d=a.parentNode;var e=b.parentNode,f=[a],h=[b];if(!d||!e)return a===g?-1:b===g?1:d?-1:e?1:ba?ka.call(ba,a)-ka.call(ba,b):0;if(d=== e)return nc(a,b);for(d=a;d=d.parentNode;)f.unshift(d);for(d=b;d=d.parentNode;)h.unshift(d);for(;f[c]===h[c];)c++;return c?nc(f[c],h[c]):f[c]===O?-1:h[c]===O?1:0};return g};z.matches=function(a,g){return z(a,null,null,g)};z.matchesSelector=function(a,g){(a.ownerDocument||a)!==H&&X(a);g=g.replace(qd,"='$1']");if(x.matchesSelector&&S&&(!la||!la.test(g))&&(!I||!I.test(g)))try{var k=Ua.call(a,g);if(k||x.disconnectedMatch||a.document&&11!==a.document.nodeType)return k}catch(b){}return 0 ":{dir:"parentNode",first:!0}," ":{dir:"parentNode"}, "+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(Z,aa);a[3]=(a[4]||a[5]||"").replace(Z,aa);"~="===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 g,k=!a[5]&&a[2];if(Qa.CHILD.test(a[0]))return null;if(a[3]&& void 0!==a[4])a[2]=a[4];else if(k&&rd.test(k)&&(g=Na(k,!0))&&(g=k.indexOf(")",k.length-g)-k.length))a[0]=a[0].slice(0,g),a[2]=k.slice(0,g);return a.slice(0,3)}},filter:{TAG:function(a){var g=a.replace(Z,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===g}},CLASS:function(a){var g=rc[a+" "];return g||(g=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&rc(a,function(a){return g.test("string"===typeof a.className&&a.className|| typeof a.getAttribute!==ra&&a.getAttribute("class")||"")})},ATTR:function(a,g,k){return function(b){b=z.attr(b,a);if(null==b)return"!="===g;if(!g)return!0;b+="";return"="===g?b===k:"!="===g?b!==k:"^="===g?k&&0===b.indexOf(k):"*="===g?k&&-1 a.nodeType)return!1;return!0},parent:function(a){return!y.pseudos.empty(a)},header:function(a){return ud.test(a.nodeName)},input:function(a){return td.test(a.nodeName)},button:function(a){var g=a.nodeName.toLowerCase();return"input"===g&&"button"===a.type||"button"===g}, text:function(a){var g;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(g=a.getAttribute("type"))||"text"===g.toLowerCase())},first:ja(function(){return[0]}),last:ja(function(a,g){return[g-1]}),eq:ja(function(a,g,k){return[0>k?k+g:k]}),even:ja(function(a,g){for(var k=0;k k?k+g:k;0<=--g;)a.push(g);return a}),gt:ja(function(a,g,k){for(k=0>k?k+g:k;++k ";return"#"===a.firstChild.getAttribute("href")})||vb("type|href|height|width",function(a,g,k){if(!k)return a.getAttribute(g,"type"===g.toLowerCase()?1:2)});(!x.attributes||!Q(function(a){a.innerHTML="";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&vb("value",function(a,g,k){if(!k&&"input"===a.nodeName.toLowerCase())return a.defaultValue});Q(function(a){return null==a.getAttribute("disabled")})||vb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", function(a,g,k){var b;if(!k)return!0===a[g]?g.toLowerCase():(b=a.getAttributeNode(g))&&b.specified?b.value:null});d.find=z;d.expr=z.selectors;d.expr[":"]=d.expr.pseudos;d.unique=z.uniqueSort;d.text=z.getText;d.isXMLDoc=z.isXML;d.contains=z.contains;var wc=d.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Uc=/^.[^:#\[\.,]*$/;d.filter=function(a,g,k){var b=g[0];k&&(a=":not("+a+")");return 1===g.length&&1===b.nodeType?d.find.matchesSelector(b,a)?[b]:[]:d.find.matches(a,d.grep(g,function(a){return 1=== a.nodeType}))};d.fn.extend({find:function(a){var g,k=[],b=this,c=b.length;if("string"!==typeof a)return this.pushStack(d(a).filter(function(){for(g=0;g )[^>]*|#([\w-]*))$/;(d.fn.init=function(a,g){var k,b;if(!a)return this;if("string"===typeof a){if((k="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:vd.exec(a))&&(k[1]||!g)){if(k[1]){if(g=g instanceof d?g[0]:g,d.merge(this,d.parseHTML(k[1],g&&g.nodeType?g.ownerDocument||g:t,!0)),xc.test(k[1])&&d.isPlainObject(g))for(k in g)if(d.isFunction(this[k]))this[k](g[k]);else this.attr(k,g[k])}else{if((b=t.getElementById(k[2]))&& b.parentNode){if(b.id!==k[2])return Da.find(a);this.length=1;this[0]=b}this.context=t;this.selector=a}return this}return!g||g.jquery?(g||Da).find(a):this.constructor(g).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(d.isFunction(a))return"undefined"!==typeof Da.ready?Da.ready(a):a(d);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)}).prototype=d.fn;Da=d(t);var wd=/^(?:parents|prev(?:Until|All))/,xd={children:!0,contents:!0, next:!0,prev:!0};d.extend({dir:function(a,g,k){var b=[];for(a=a[g];a&&9!==a.nodeType&&(void 0===k||1!==a.nodeType||!d(a).is(k));)1===a.nodeType&&b.push(a),a=a[g];return b},sibling:function(a,g){for(var k=[];a;a=a.nextSibling)1===a.nodeType&&a!==g&&k.push(a);return k}});d.fn.extend({has:function(a){var g,k=d(a,this),b=k.length;return this.filter(function(){for(g=0;gk.nodeType&&(f?-1 a"; s.leadingWhitespace=3===D.firstChild.nodeType;s.tbody=!D.getElementsByTagName("tbody").length;s.htmlSerialize=!!D.getElementsByTagName("link").length;s.html5Clone="<:nav>"!==t.createElement("nav").cloneNode(!0).outerHTML;Ea.type="checkbox";Ea.checked=!0;Cb.appendChild(Ea);s.appendChecked=Ea.checked;D.innerHTML="";s.noCloneChecked=!!D.cloneNode(!0).lastChild.defaultValue;Cb.appendChild(D);D.innerHTML="";s.checkClone=D.cloneNode(!0).cloneNode(!0).lastChild.checked; s.noCloneEvent=!0;D.attachEvent&&(D.attachEvent("onclick",function(){s.noCloneEvent=!1}),D.cloneNode(!0).click());if(null==s.deleteExpando){s.deleteExpando=!0;try{delete D.test}catch(ce){s.deleteExpando=!1}}var Cb=D=Ea=null,Xa,Ya,Ac=t.createElement("div");for(Xa in{submit:!0,change:!0,focusin:!0})if(Ya="on"+Xa,!(s[Xa+"Bubbles"]=Ya in c))Ac.setAttribute(Ya,"t"),s[Xa+"Bubbles"]=!1===Ac.attributes[Ya].expando;var Db=/^(?:input|select|textarea)$/i,zd=/^key/,Ad=/^(?:mouse|contextmenu)|click/,Bc=/^(?:focusinfocus|focusoutblur)$/, Cc=/^([^.]*)(?:\.(.+)|)$/;d.event={global:{},add:function(a,g,b,c,e){var f,h,p,j,l,r,m,n,v;if(p=d._data(a)){b.handler&&(j=b,b=j.handler,e=j.selector);b.guid||(b.guid=d.guid++);if(!(h=p.events))h=p.events={};if(!(l=p.handle))l=p.handle=function(a){return typeof d!==N&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(l.elem,arguments):void 0},l.elem=a;g=(g||"").match(T)||[""];for(p=g.length;p--;)if(f=Cc.exec(g[p])||[],n=r=f[1],v=(f[2]||"").split(".").sort(),n){f=d.event.special[n]||{};n=(e?f.delegateType: f.bindType)||n;f=d.event.special[n]||{};r=d.extend({type:n,origType:r,data:c,handler:b,guid:b.guid,selector:e,needsContext:e&&d.expr.match.needsContext.test(e),namespace:v.join(".")},j);if(!(m=h[n]))if(m=h[n]=[],m.delegateCount=0,!f.setup||!1===f.setup.call(a,c,v,l))a.addEventListener?a.addEventListener(n,l,!1):a.attachEvent&&a.attachEvent("on"+n,l);f.add&&(f.add.call(a,r),r.handler.guid||(r.handler.guid=b.guid));e?m.splice(m.delegateCount++,0,r):m.push(r);d.event.global[n]=!0}a=null}},remove:function(a, g,b,c,e){var f,h,p,j,l,r,n,m,v,B,s,E=d.hasData(a)&&d._data(a);if(E&&(r=E.events)){g=(g||"").match(T)||[""];for(l=g.length;l--;)if(p=Cc.exec(g[l])||[],v=s=p[1],B=(p[2]||"").split(".").sort(),v){n=d.event.special[v]||{};v=(c?n.delegateType:n.bindType)||v;m=r[v]||[];p=p[2]&&RegExp("(^|\\.)"+B.join("\\.(?:.*\\.|)")+"(\\.|$)");for(j=f=m.length;f--;)if(h=m[f],(e||s===h.origType)&&(!b||b.guid===h.guid)&&(!p||p.test(h.namespace))&&(!c||c===h.selector||"**"===c&&h.selector))m.splice(f,1),h.selector&&m.delegateCount--, n.remove&&n.remove.call(a,h);j&&!m.length&&((!n.teardown||!1===n.teardown.call(a,B,E.handle))&&d.removeEvent(a,v,E.handle),delete r[v])}else for(v in r)d.event.remove(a,v+g[l],b,c,!0);d.isEmptyObject(r)&&(delete E.handle,d._removeData(a,"events"))}},trigger:function(a,g,b,e){var f,h,p,j,l,r,n=[b||t],m=qa.call(a,"type")?a.type:a;l=qa.call(a,"namespace")?a.namespace.split("."):[];p=f=b=b||t;if(!(3===b.nodeType||8===b.nodeType)&&!Bc.test(m+d.event.triggered))if(0<=m.indexOf(".")&&(l=m.split("."),m=l.shift(), l.sort()),h=0>m.indexOf(":")&&"on"+m,a=a[d.expando]?a:new d.Event(m,"object"===typeof a&&a),a.isTrigger=e?2:3,a.namespace=l.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=b),g=null==g?[a]:d.makeArray(g,[a]),l=d.event.special[m]||{},e||!(l.trigger&&!1===l.trigger.apply(b,g))){if(!e&&!l.noBubble&&!d.isWindow(b)){j=l.delegateType||m;Bc.test(j+m)||(p=p.parentNode);for(;p;p=p.parentNode)n.push(p),f=p;if(f===(b.ownerDocument|| t))n.push(f.defaultView||f.parentWindow||c)}for(r=0;(p=n[r++])&&!a.isPropagationStopped();)if(a.type=1
]","i"),Eb=/^\s+/,Ec=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fc=/<([\w:]+)/,Gc=/\s*$/g,L={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1," ","
"],tr:[2,"","
"],col:[2,""],td:[3,"
"," "],_default:s.htmlSerialize?[0,"",""]:[1,"X
"," ",""]},Fb=B(t).appendChild(t.createElement("div"));L.optgroup=L.option;L.tbody=L.tfoot=L.colgroup=L.caption=L.thead;L.th=L.td;d.extend({clone:function(a,g,b){var c,e,f,h,p,j=d.contains(a.ownerDocument,a);s.html5Clone||d.isXMLDoc(a)||!Dc.test("<"+ a.nodeName+">")?f=a.cloneNode(!0):(Fb.innerHTML=a.outerHTML,Fb.removeChild(f=Fb.firstChild));if((!s.noCloneEvent||!s.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){c=E(f);p=E(a);for(h=0;null!=(e=p[h]);++h)if(c[h]){var l=c[h],r=void 0,m=void 0,n=void 0;if(1===l.nodeType){r=l.nodeName.toLowerCase();if(!s.noCloneEvent&&l[d.expando]){n=d._data(l);for(m in n.events)d.removeEvent(l,m,n.handle);l.removeAttribute(d.expando)}if("script"===r&&l.text!==e.text)jb(l).text=e.text,xa(l);else if("object"=== r)l.parentNode&&(l.outerHTML=e.outerHTML),s.html5Clone&&(e.innerHTML&&!d.trim(l.innerHTML))&&(l.innerHTML=e.innerHTML);else if("input"===r&&ib.test(e.type))l.defaultChecked=l.checked=e.checked,l.value!==e.value&&(l.value=e.value);else if("option"===r)l.defaultSelected=l.selected=e.defaultSelected;else if("input"===r||"textarea"===r)l.defaultValue=e.defaultValue}}}if(g)if(b){p=p||E(a);c=c||E(f);for(h=0;null!=(e=p[h]);h++)Tb(e,c[h])}else Tb(a,f);c=E(f,"script");0$2>")+l[2];for(e=l[0];e--;)h=h.lastChild;!s.leadingWhitespace&&Eb.test(f)&&n.push(g.createTextNode(Eb.exec(f)[0]));if(!s.tbody)for(e=(f="table"===p&&!Gc.test(f)?h.firstChild:" "=== l[1]&&!Gc.test(f)?h:0)&&f.childNodes.length;e--;)d.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j);d.merge(n,h.childNodes);for(h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=m.lastChild}else n.push(g.createTextNode(f));h&&m.removeChild(h);s.appendChecked||d.grep(E(n,"input"),Xc);for(v=0;f=n[v++];)if(!(c&&-1!==d.inArray(f,c))&&(a=d.contains(f.ownerDocument,f),h=E(m.appendChild(f),"script"),a&&F(h),b))for(e=0;f=h[e++];)Hc.test(f.type||"")&&b.push(f);return m}, cleanData:function(a,g){for(var b,c,e,f,h=0,p=d.expando,j=d.cache,l=s.deleteExpando,r=d.event.special;null!=(b=a[h]);h++)if(g||d.acceptData(b))if(f=(e=b[p])&&j[e]){if(f.events)for(c in f.events)r[c]?d.event.remove(b,c):d.removeEvent(b,c,f.handle);j[e]&&(delete j[e],l?delete b[p]:typeof b.removeAttribute!==N?b.removeAttribute(p):b[p]=null,V.push(e))}}});d.fn.extend({text:function(a){return ma(this,function(a){return void 0===a?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a))}, null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&Sb(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var g=Sb(this,a);g.insertBefore(a,g.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,g){for(var b,c=a?d.filter(a,this):this,e=0;null!=(b=c[e]);e++)!g&&1===b.nodeType&&d.cleanData(E(b)),b.parentNode&&(g&&d.contains(b.ownerDocument,b)&&F(E(b,"script")),b.parentNode.removeChild(b));return this},empty:function(){for(var a,g=0;null!=(a=this[g]);g++){for(1===a.nodeType&&d.cleanData(E(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&d.nodeName(a,"select")&&(a.options.length=0)}return this}, clone:function(a,g){a=null==a?!1:a;g=null==g?a:g;return this.map(function(){return d.clone(this,a,g)})},html:function(a){return ma(this,function(a){var b=this[0]||{},c=0,e=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(Bd,""):void 0;if("string"===typeof a&&!Dd.test(a)&&(s.htmlSerialize||!Dc.test(a))&&(s.leadingWhitespace||!Eb.test(a))&&!L[(Fc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ec,"<$1>$2>");try{for(;c
a";Fa=ua.getElementsByTagName("a")[0]; Fa.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Fa.style.opacity);s.cssFloat=!!Fa.style.cssFloat;ua.style.backgroundClip="content-box";ua.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===ua.style.backgroundClip;Fa=ua=null;s.shrinkWrapBlocks=function(){var a,g,b;if(null==Za){a=t.getElementsByTagName("body")[0];if(!a)return;g=t.createElement("div");b=t.createElement("div");a.appendChild(g).appendChild(b);Za=!1;typeof b.style.zoom!==N&&(b.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", b.innerHTML="",b.firstChild.style.width="5px",Za=3!==b.offsetWidth);a.removeChild(g)}return Za};var Ic=/^margin/,Ia=RegExp("^("+Wa+")(?!px)[a-z%]+$","i"),ha,ia,Gd=/^(top|right|bottom|left)$/;c.getComputedStyle?(ha=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},ia=function(a,g,b){var c,e,f=a.style;e=(b=b||ha(a))?b.getPropertyValue(g)||b[g]:void 0;b&&(""===e&&!d.contains(a.ownerDocument,a)&&(e=d.style(a,g)),Ia.test(e)&&Ic.test(g)&&(a=f.width,g=f.minWidth,c=f.maxWidth, f.minWidth=f.maxWidth=f.width=e,e=b.width,f.width=a,f.minWidth=g,f.maxWidth=c));return void 0===e?e:e+""}):t.documentElement.currentStyle&&(ha=function(a){return a.currentStyle},ia=function(a,b,c){var d,e,f,h=a.style;f=(c=c||ha(a))?c[b]:void 0;null==f&&(h&&h[b])&&(f=h[b]);if(Ia.test(f)&&!Gd.test(b)){c=h.left;if(e=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;h.left="fontSize"===b?"1em":f;f=h.pixelLeft+"px";h.left=c;e&&(d.left=e)}return void 0===f?f:f+""||"auto"});var Ib=function(){var a,b, e=t.getElementsByTagName("body")[0];e&&(a=t.createElement("div"),b=t.createElement("div"),a.style.cssText=Gb,e.appendChild(a).appendChild(b),b.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%",d.swap(e,null!=e.style.zoom?{zoom:1}:{},function(){Hb=4===b.offsetWidth}),$a=!0,ab=!1,bb=!0,c.getComputedStyle&&(ab="1%"!==(c.getComputedStyle(b,null)||{}).top,$a="4px"===(c.getComputedStyle(b, null)||{width:"4px"}).width),e.removeChild(a),b=e=null)},Ga,cb,Hb,$a,ab,bb,va=t.createElement("div"),Gb="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";va.innerHTML="
a";Ga=va.getElementsByTagName("a")[0];Ga.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ga.style.opacity);s.cssFloat=!!Ga.style.cssFloat;va.style.backgroundClip="content-box";va.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"=== va.style.backgroundClip;Ga=va=null;d.extend(s,{reliableHiddenOffsets:function(){if(null!=cb)return cb;var a,b,c;b=t.createElement("div");var d=t.getElementsByTagName("body")[0];if(d)return b.setAttribute("className","t"),b.innerHTML="
a",a=t.createElement("div"),a.style.cssText=Gb,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",cb=c&&0===b[0].offsetHeight,d.removeChild(a),cb},boxSizing:function(){null==Hb&&Ib();return Hb},boxSizingReliable:function(){null==$a&&Ib();return $a},pixelPosition:function(){null==ab&&Ib();return ab},reliableMarginRight:function(){var a,b,d,e;if(null==bb&&c.getComputedStyle){a=t.getElementsByTagName("body")[0];if(!a)return;b=t.createElement("div");d=t.createElement("div");b.style.cssText=Gb;a.appendChild(b).appendChild(d);e= d.appendChild(t.createElement("div"));e.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";e.style.marginRight=e.style.width="0";d.style.width="1px";bb=!parseFloat((c.getComputedStyle(e,null)||{}).marginRight);a.removeChild(b)}return bb}});d.swap=function(a,b,c,d){var e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];c=c.apply(a,d||[]);for(e in b)a.style[e]=f[e];return c};var Jb=/alpha\([^)]*\)/i, Hd=/opacity\s*=\s*([^)]*)/,Id=/^(none|table(?!-c[ea]).+)/,Zc=RegExp("^("+Wa+")(.*)$","i"),Jd=RegExp("^([+-])=("+Wa+")","i"),Kd={position:"absolute",visibility:"hidden",display:"block"},Jc={letterSpacing:0,fontWeight:400},Zb=["Webkit","O","Moz","ms"];d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ia(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":s.cssFloat? "cssFloat":"styleFloat"},style:function(a,b,c,e){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,h,p,j=d.camelCase(b),l=a.style;b=d.cssProps[j]||(d.cssProps[j]=Yb(l,j));p=d.cssHooks[b]||d.cssHooks[j];if(void 0!==c){h=typeof c;if("string"===h&&(f=Jd.exec(c)))c=(f[1]+1)*f[2]+parseFloat(d.css(a,b)),h="number";if(!(null==c||c!==c))if("number"===h&&!d.cssNumber[j]&&(c+="px"),!s.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(l[b]="inherit"),!p||!("set"in p)||void 0!==(c=p.set(a,c,e)))try{l[b]= "",l[b]=c}catch(r){}}else return p&&"get"in p&&void 0!==(f=p.get(a,!1,e))?f:l[b]}},css:function(a,b,c,e){var f,h;h=d.camelCase(b);b=d.cssProps[h]||(d.cssProps[h]=Yb(a.style,h));(h=d.cssHooks[b]||d.cssHooks[h])&&"get"in h&&(f=h.get(a,!0,c));void 0===f&&(f=ia(a,b,e));"normal"===f&&b in Jc&&(f=Jc[b]);return""===c||c?(a=parseFloat(f),!0===c||d.isNumeric(a)?a||0:f):f}});d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){if(c)return 0===a.offsetWidth&&Id.test(d.css(a,"display"))? d.swap(a,Kd,function(){return cc(a,b,e)}):cc(a,b,e)},set:function(a,c,e){var f=e&&ha(a);return ac(a,c,e?bc(a,b,e,s.boxSizing()&&"border-box"===d.css(a,"boxSizing",!1,f),f):0)}}});s.opacity||(d.cssHooks.opacity={get:function(a,b){return Hd.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,e=a.currentStyle,f=d.isNumeric(b)?"alpha(opacity="+100*b+")":"",h=e&&e.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""=== d.trim(h.replace(Jb,""))&&c.removeAttribute)if(c.removeAttribute("filter"),""===b||e&&!e.filter)return;c.filter=Jb.test(h)?h.replace(Jb,f):h+" "+f}});d.cssHooks.marginRight=Xb(s.reliableMarginRight,function(a,b){if(b)return d.swap(a,{display:"inline-block"},ia,[a,"marginRight"])});d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var d=0,e={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)e[a+ga[d]+b]=c[d]||c[d-2]||c[0];return e}};Ic.test(a)||(d.cssHooks[a+ b].set=ac)});d.fn.extend({css:function(a,b){return ma(this,function(a,b,g){var c,e={},f=0;if(d.isArray(b)){g=ha(a);for(c=b.length;f
t a";eb=Ha.getElementsByTagName("a")[0];Kb=t.createElement("select");Lb=Kb.appendChild(t.createElement("option"));da=Ha.getElementsByTagName("input")[0]; eb.style.cssText="top:1px";s.getSetAttribute="t"!==Ha.className;s.style=/top/.test(eb.getAttribute("style"));s.hrefNormalized="/a"===eb.getAttribute("href");s.checkOn=!!da.value;s.optSelected=Lb.selected;s.enctype=!!t.createElement("form").enctype;Kb.disabled=!0;s.optDisabled=!Lb.disabled;da=t.createElement("input");da.setAttribute("value","");s.input=""===da.getAttribute("value");da.value="t";da.setAttribute("type","radio");s.radioValue="t"===da.value;var Nd=/\r/g;d.fn.extend({val:function(a){var b, c,e,f=this[0];if(arguments.length)return e=d.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=e?a.call(this,c,d(this).val()):a,null==c?c="":"number"===typeof c?c+="":d.isArray(c)&&(c=d.map(c,function(a){return null==a?"":a+""})),b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(f){if((b=d.valHooks[f.type]||d.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(Nd,""):null==c?"":c}}});d.extend({valHooks:{option:{get:function(a){var b=d.find.attr(a,"value");return null!=b?b:d.text(a)}},select:{get:function(a){for(var b,c=a.options,e=a.selectedIndex,f=(a="select-one"===a.type||0>e)?null:[],h=a?e+1:c.length,p=0>e?h:a?e:0;p
e.indexOf(" "+f+" ")&&(e+=f+" ");e=d.trim(e);c.className!==e&&(c.className=e)}return this},removeClass:function(a){var b,c,e,f,h,p=0,j=this.length;b=0===arguments.length||"string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this, b,this.className))});if(b)for(b=(a||"").match(T)||[];p a||304===a;if(g){m=n;for(var t=A,K,w,z,x,C=m.contents,F=m.dataTypes;"*"===F[0];)F.shift(),void 0===w&&(w=m.mimeType||t.getResponseHeader("Content-Type"));if(w)for(x in C)if(C[x]&&C[x].test(w)){F.unshift(x);break}if(F[0]in g)z=F[0];else{for(x in g){if(!F[0]||m.converters[x+" "+F[0]]){z= x;break}K||(K=x)}z=z||K}z?(z!==F[0]&&F.unshift(z),m=g[z]):m=void 0}a:{g=n;K=m;w=A;z=e;var H,D,G,t={},C=g.dataTypes.slice();if(C[1])for(D in g.converters)t[D.toLowerCase()]=g.converters[D];for(x=C.shift();x;)if(g.responseFields[x]&&(w[g.responseFields[x]]=K),!G&&(z&&g.dataFilter)&&(K=g.dataFilter(K,g.dataType)),G=x,x=C.shift())if("*"===x)x=G;else if("*"!==G&&G!==x){D=t[G+" "+x]||t["* "+x];if(!D)for(H in t)if(m=H.split(" "),m[1]===x&&(D=t[G+" "+m[0]]||t["* "+m[0]])){!0===D?D=t[H]:!0!==t[H]&&(x=m[0], C.unshift(m[1]));break}if(!0!==D)if(D&&g["throws"])K=D(K);else try{K=D(K)}catch(I){m={state:"parsererror",error:D?I:"No conversion from "+G+" to "+x};break a}}m={state:"success",data:K}}if(e)n.ifModified&&((q=A.getResponseHeader("Last-Modified"))&&(d.lastModified[h]=q),(q=A.getResponseHeader("etag"))&&(d.etag[h]=q)),204===a||"HEAD"===n.type?q="nocontent":304===a?q="notmodified":(q=m.state,f=m.data,k=m.error,e=!k);else if(k=q,a||!q)q="error",0>a&&(a=0);A.status=a;A.statusText=(b||q)+"";e?s.resolveWith(v, [f,q,A]):s.rejectWith(v,[A,q,k]);A.statusCode(u);u=void 0;l&&B.trigger(e?"ajaxSuccess":"ajaxError",[A,n,e?f:k]);E.fireWith(v,[A,q]);l&&(B.trigger("ajaxComplete",[A,n]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var e,f,h,p,j,l,r,m,n=d.ajaxSetup({},b),v=n.context||n,B=n.context&&(v.nodeType||v.jquery)?d(v):d.event,s=d.Deferred(),E=d.Callbacks("once memory"),u=n.statusCode||{},t={},w={},y=0,z="canceled",A={readyState:0,getResponseHeader:function(a){var b;if(2=== y){if(!m)for(m={};b=Sd.exec(p);)m[b[1].toLowerCase()]=b[2];b=m[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===y?p:null},setRequestHeader:function(a,b){var c=a.toLowerCase();y||(a=w[c]=w[c]||a,t[a]=b);return this},overrideMimeType:function(a){y||(n.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>y)for(b in a)u[b]=[u[b],a[b]];else A.always(a[A.status]);return this},abort:function(a){a=a||z;r&&r.abort(a);c(0,a);return this}};s.promise(A).complete= E.add;A.success=A.done;A.error=A.fail;n.url=((a||n.url||fa)+"").replace(Rd,"").replace(Ud,oa[1]+"//");n.type=b.method||b.type||n.method||n.type;n.dataTypes=d.trim(n.dataType||"*").toLowerCase().match(T)||[""];null==n.crossDomain&&(e=Nc.exec(n.url.toLowerCase()),n.crossDomain=!(!e||!(e[1]!==oa[1]||e[2]!==oa[2]||(e[3]||("http:"===e[1]?"80":"443"))!==(oa[3]||("http:"===oa[1]?"80":"443")))));n.data&&(n.processData&&"string"!==typeof n.data)&&(n.data=d.param(n.data,n.traditional));hc(Oc,n,b,A);if(2=== y)return A;(l=n.global)&&0===d.active++&&d.event.trigger("ajaxStart");n.type=n.type.toUpperCase();n.hasContent=!Td.test(n.type);h=n.url;n.hasContent||(n.data&&(h=n.url+=(Pb.test(h)?"&":"?")+n.data,delete n.data),!1===n.cache&&(n.url=Mc.test(h)?h.replace(Mc,"$1_="+Ob++):h+(Pb.test(h)?"&":"?")+"_="+Ob++));n.ifModified&&(d.lastModified[h]&&A.setRequestHeader("If-Modified-Since",d.lastModified[h]),d.etag[h]&&A.setRequestHeader("If-None-Match",d.etag[h]));(n.data&&n.hasContent&&!1!==n.contentType||b.contentType)&& A.setRequestHeader("Content-Type",n.contentType);A.setRequestHeader("Accept",n.dataTypes[0]&&n.accepts[n.dataTypes[0]]?n.accepts[n.dataTypes[0]]+("*"!==n.dataTypes[0]?", "+Pc+"; q=0.01":""):n.accepts["*"]);for(f in n.headers)A.setRequestHeader(f,n.headers[f]);if(n.beforeSend&&(!1===n.beforeSend.call(v,A,n)||2===y))return A.abort();z="abort";for(f in{success:1,error:1,complete:1})A[f](n[f]);if(r=hc(kb,n,b,A)){A.readyState=1;l&&B.trigger("ajaxSend",[A,n]);n.async&&0 y)c(-1,x);else throw x;}}else c(-1,"No Transport");return A},getJSON:function(a,b,c){return d.get(a,b,c,"json")},getScript:function(a,b){return d.get(a,void 0,b,"script")}});d.each(["get","post"],function(a,b){d[b]=function(a,c,e,f){d.isFunction(c)&&(f=f||e,e=c,c=void 0);return d.ajax({url:a,type:b,dataType:f,data:c,success:e})}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b, a)}});d._evalUrl=function(a){return d.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};d.fn.extend({wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(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 d.isFunction(a)? this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}});d.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!s.reliableHiddenOffsets()&&"none"===(a.style&& a.style.display||d.css(a,"display"))};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)};var Vd=/%20/g,ad=/\[\]$/,Qc=/\r?\n/g,Wd=/^(?:submit|button|image|reset|file)$/i,Xd=/^(?:input|select|textarea|keygen)/i;d.param=function(a,b){var c,e=[],f=function(a,b){b=d.isFunction(b)?b():null==b?"":b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=d.ajaxSettings&&d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name, this.value)});else for(c in a)mb(c,a[c],b,f);return e.join("&").replace(Vd,"+")};d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&Xd.test(this.nodeName)&&!Wd.test(a)&&(this.checked||!ib.test(a))}).map(function(a,b){var c=d(this).val();return null==c?null:d.isArray(c)?d.map(c,function(a){return{name:b.name, value:a.replace(Qc,"\r\n")}}):{name:b.name,value:c.replace(Qc,"\r\n")}}).get()}});d.ajaxSettings.xhr=void 0!==c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&ic()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ic;d.ajaxSettings.xhr=void 0===c.ActiveXObject?nb:function(){return(this.url==t.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&& nb()||nb(1)};var Yd=0,gb={},hb=d.ajaxSettings.xhr();if(c.ActiveXObject)d(c).on("unload",function(){for(var a in gb)gb[a](void 0,!0)});s.cors=!!hb&&"withCredentials"in hb;(hb=s.ajax=!!hb)&&d.ajaxTransport(function(a){if(!a.crossDomain||s.cors){var b;return{send:function(c,e){var f,h=a.xhr(),p=++Yd;console.log("xhr.open async="+a.async+" url="+a.url);h.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(f in a.xhrFields)h[f]=a.xhrFields[f];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType); !a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(f in c)void 0!==c[f]&&h.setRequestHeader(f,c[f]+"");h.send(a.hasContent&&a.data||null);b=function(c,f){var k,j,l;if(b&&(f||4===h.readyState))if(delete gb[p],b=void 0,h.onreadystatechange=d.noop,f)4!==h.readyState&&h.abort();else{l={};k=h.status;"string"===typeof h.responseText&&(l.text=h.responseText);try{j=h.statusText}catch(n){j=""}!k&&a.isLocal&&!a.crossDomain?k=l.text?200:404:1223===k&&(k=204)}l&&e(k,j,l,h.getAllResponseHeaders())}; a.async?4===h.readyState?setTimeout(b):h.onreadystatechange=gb[p]=b:b()},abort:function(){b&&b(void 0,!0)}}}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var b, c=t.head||d("head")[0]||t.documentElement;return{send:function(e,d){b=t.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||d(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Rc=[],Qb=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback", jsonpCallback:function(){var a=Rc.pop()||d.expando+"_"+Ob++;this[a]=!0;return a}});d.ajaxPrefilter("json jsonp",function(a,b,e){var f,h,p,j=!1!==a.jsonp&&(Qb.test(a.url)?"url":"string"===typeof a.data&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qb.test(a.data)&&"data");if(j||"jsonp"===a.dataTypes[0])return f=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,j?a[j]=a[j].replace(Qb,"$1"+f):!1!==a.jsonp&&(a.url+=(Pb.test(a.url)?"&":"?")+a.jsonp+"="+ f),a.converters["script json"]=function(){p||d.error(f+" was not called");return p[0]},a.dataTypes[0]="json",h=c[f],c[f]=function(){p=arguments},e.always(function(){c[f]=h;a[f]&&(a.jsonpCallback=b.jsonpCallback,Rc.push(f));p&&d.isFunction(h)&&h(p[0]);p=h=void 0}),"script"});d.parseHTML=function(a,b,c){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(c=b,b=!1);b=b||t;var e=xc.exec(a);c=!c&&[];if(e)return[b.createElement(e[1])];e=d.buildFragment([a],b,c);c&&c.length&&d(c).remove();return d.merge([], e.childNodes)};var Sc=d.fn.load;d.fn.load=function(a,b,c){if("string"!==typeof a&&Sc)return Sc.apply(this,arguments);var e,f,h,p=this,j=a.indexOf(" ");0<=j&&(e=a.slice(j,a.length),a=a.slice(0,j));d.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(h="POST");0 ").append(d.parseHTML(a)).find(e):a)}).complete(c&&function(a,b){p.each(c,f||[a.responseText,b,a])});return this};d.expr.filters.animated= function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var Tc=c.document.documentElement;d.offset={setOffset:function(a,b,c){var e,f,h,p=d.css(a,"position"),j=d(a),l={};"static"===p&&(a.style.position="relative");h=j.offset();f=d.css(a,"top");e=d.css(a,"left");("absolute"===p||"fixed"===p)&&-1 org.pdb.query.simple.AdvancedKeywordQuery Text Search QUERY ",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:c,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"https://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3), _touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};c=c.location.href.toLowerCase();m._debugCore=0<=c.indexOf("j2sdebugcore");m._httpProto=0==c.indexOf("https")?"https://":"http://";m._isFile=0==c.indexOf("file:");m._isFile&&$.ajaxSetup({mimeType:"text/plain"});m._ajaxTestSite=m._httpProto+"google.com";c=m._isFile||0==c.indexOf("http://localhost")||0==c.indexOf("http://127.");m._tracker=!c&&"https://chemapps.stolaf.edu/jmol/JmolTracker.php?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._isEdge=0<=navigator.userAgent.indexOf("Edge/");m._useDataURI=!m._isSafari&&!m._isMsie&&!m._isEdge;window.requestAnimationFrame||(window.requestAnimationFrame=window.setTimeout);for(var h in Jmol)m[h]=Jmol[h];return m}(document,Jmol)); (function(c,m){c.__$=m;m(document).ready(function(){c._document=null});c.$=function(b,c){null==b&&alert(c+arguments.callee.caller.toString());return m(c?"#"+b._id+"_"+c:b)};c._$=function(b){return"string"==typeof b?m("#"+b):b};c.$ajax=function(b){c._ajaxCall=b.url;b.cache="NO"!=b.cache;b.url=c._fixProtocol(b.url);return m.ajax(b)};c._fixProtocol=function(b){0<=b.indexOf("get3d=True")&&(b=b.replace(/get3d\=True/,"get3d=true"));return 0==b.indexOf("http://www.rcsb.org/pdb/files/")&&0>b.indexOf("/ligand/")? "http://files.rcsb.org/view/"+b.substring(30).replace(/\.gz/,""):0==b.indexOf("http://")&&("https://"==c._httpProto||0e?f[0].scrollHeight:e)}; c.$setEnabled=function(b,e){return c._$(b).attr("disabled",e?null:"disabled")};c.$getSize=function(b){b=c._$(b);return[b.width(),b.height()]};c.$setSize=function(b,e,f){return c._$(b).width(e).height(f)};c.$is=function(b,e){return c._$(b).is(e)};c.$setVisible=function(b,e){var f=c._$(b);return e?f.show():f.hide()};c.$submit=function(b){return c._$(b).submit()};c.$val=function(b,e){var f=c._$(b);return 1==arguments.length?f.val():f.val(e)};c._clearVars=function(){delete jQuery;delete m;delete c;delete SwingController; delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var h=document,j=window,l={};l.ua=navigator.userAgent.toLowerCase();var n;a:{n=["linux","unix","mac","win"];for(var v=n.length;v--;)if(-1!=l.ua.indexOf(n[v])){n=n[v];break a}n="unknown"}l.os=n;l.browser=function(){for(var b=l.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),f=0;f navigator.appVersion.indexOf("MSIE 8");l.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};l._webGLtest=0;l.supportsWebGL=function(){if(!c.featureDetection._webGLtest){var b;c.featureDetection._webGLtest=j.WebGLRenderingContext&& ((b=h.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0 =l.browserVersion&&"mac"==c||"webkit"==l.browserName&&125.12>l.browserVersion||"msie"==l.browserName&&"mac"==c||"konqueror"==l.browserName&&3.3>=l.browserVersion)b=!1;return b};l.isFullyCompliant=function(){return l.compliantBrowser()&&l.supportsJava()};l.useIEObject="win"==l.os&&"msie"==l.browserName&&5.5<=l.browserVersion;l.useHtml4Object="mozilla"==l.browserName&& 5<=l.browserVersion||"opera"==l.browserName&&8<=l.browserVersion||"webkit"==l.browserName;l.hasFileReader=j.File&&j.FileReader;c.featureDetection=l;c._ajax=function(b){if(!b.async)return c.$ajax(b).responseText;c._ajaxQueue.push(b);1==c._ajaxQueue.length&&c._ajaxDone()};c._ajaxDone=function(){var b=c._ajaxQueue.shift();b&&c.$ajax(b)};c._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],["*","PDBe(macromolecules)"]];c._getGrabberOptions=function(b){if(0== c._grabberOptions.length)return"";var e='',f='';1==c._grabberOptions.length?(e=" "+e+' "+f):e+="";for(var e=e+'"+f).replace(/ID/g,b._id);return"
"+e};c._getScriptForDatabase=function(b){return"$"==b?c.db._nciLoadScript:":"==b?c.db._pubChemLoadScript:c.db._fileLoadScript};c._setInfo=function(b,c,f){var h=[],j="";if(0==f.indexOf("ERROR"))j=f;else switch(c){case "=":c=f.split("");h=[" "];for(f=1;f
");j=c.length-1+" matches";break;case "$":case ":":break;default:return}b._infoHeader=j;b._info=h.join("");b._showInfo(!0)};c._loadSuccess=function(b,e){e&&(c._ajaxDone(),e(b))};c._loadError=function(b){c._ajaxDone();c.say("Error connecting to server: "+c._ajaxCall);null!=b&&b()};c._isDatabaseCall=function(b){return 0<=c.db._databasePrefixes.indexOf(b.substring(0, 1))};c._getDirectDatabaseCall=function(b,e){if(e&&!c.featureDetection.supportsXhr2())return b;var f=2,h=b.substring(0,f),j=c.db._DirectDatabaseCalls[h]||c.db._DirectDatabaseCalls[h=b.substring(0,--f)];j&&(":"==h?(h=b.toLowerCase(),isNaN(parseInt(b.substring(1)))?0==h.indexOf(":smiles:")?(j+="?POST?smiles="+b.substring(8),b="smiles"):0==h.indexOf(":cid:")?b="cid/"+b.substring(5):(0==h.indexOf(":name:")?b=b.substring(5):0==h.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(f))): b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(f)),0<=b.indexOf(".mmtf")?b="http://mmtf.rcsb.org/full/"+b.replace(/\.mmtf/,""):0<=j.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=j.replace(/\%FILENCI/,b)):b=j.replace(/\%FILE/,b));return b};c._getRawDataFromServer=function(b,e,f,h,j,l){b="?call=getRawDataFromDatabase&database="+b+(0<=e.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(e)+(j?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(c._getScriptForDatabase(b))); return c._contactServer(b,f,h)};c._checkFileName=function(b,e,f){c._isDatabaseCall(e)&&(f&&c._setQueryTerm(b,e),e=c._getDirectDatabaseCall(e,!0),c._isDatabaseCall(e)&&(e=c._getDirectDatabaseCall(e,!1),f&&(f[0]=!0)));return e};c._checkCache=function(b,e,f){if(b._cacheFiles&&c._fileCache&&!e.endsWith(".js")){if(b=c._fileCache[e])return System.out.println("using "+b.length+" bytes of cached data for "+e),f(b),null;f=function(b,e){f(c._fileCache[b]=e)}}return f};c._playAudio=function(b){var c=document.createElement("audio"); c.controls="true";c.src=b;c.play()};c._loadFileData=function(b,e,f,h){var j=[];e=c._checkFileName(b,e,j);f=c._checkCache(b,e,f);j[0]?c._getRawDataFromServer("_",e,f,h):(b={type:"GET",dataType:"text",url:e,async:c._asynchronous,success:function(b){c._loadSuccess(b,f)},error:function(){c._loadError(h)}},c._checkAjaxPost(b),c._ajax(b))};c._getInfoFromDatabase=function(b,e,f){if("===="==e){var h=c.db._restQueryXml.replace(/QUERY/,f),h={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded", url:c.db._restQueryUrl,data:encodeURIComponent(h)+"&req=browser",success:function(h){c._ajaxDone();c._extractInfoFromRCSB(b,e,f,h)},error:function(){c._loadError(null)},async:c._asynchronous};return c._ajax(h)}f="?call=getInfoFromDatabase&database="+e+"&query="+encodeURIComponent(f);return c._contactServer(f,function(f){c._setInfo(b,e,f)})};c._extractInfoFromRCSB=function(b,e,f,h){var j=h.length/5;if(0!=j&&4==f.length&&1!=j){f=f.toUpperCase();var l=h.indexOf(f);0"+c[f].substring(0,4)+" "),h.push(""+c[f].split("Title>")[1].split("")[0]+" ");h.push("l.indexOf("?")&&l==b._thisJmolModel)){b._thisJmolModel=l;var n;h&&null!=b._viewSet&&null!=(n=c.View.__findView(b._viewSet,{chemID:l}))?c.View.__setView(n, b,!1):("$"==j||":"==j?b._jmolFileType="MOL":"="==j&&(b._jmolFileType="PDB"),b._searchDatabase(e,j,f))}};c._searchDatabase=function(b,e,f,h){b._showInfo(!1);return 0<=e.indexOf("?")?(c._getInfoFromDatabase(b,f,e.split("?")[0]),!0):c.db._DirectDatabaseCalls[f]?(b._loadFile(f+e,h),!0):!1};c._syncBinaryOK="?";c._canSyncBinary=function(b){if(c._isAsync)return!0;if(self.VBArray)return c._syncBinaryOK=!1;if("?"!=c._syncBinaryOK)return c._syncBinaryOK;c._syncBinaryOK=!0;try{var e=new window.XMLHttpRequest; e.open("text",c._ajaxTestSite,!1);e.hasOwnProperty("responseType")?e.responseType="arraybuffer":e.overrideMimeType&&e.overrideMimeType("text/plain; charset=x-user-defined")}catch(f){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),c._alertNoBinary&&!b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),c._syncBinaryOK=!1}return!0};c._binaryTypes="mmtf .gz .bz2 .jpg .gif .png .zip .jmol .bin .smol .spartan .pmb .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd".split(" "); c._isBinaryUrl=function(b){for(var e=c._binaryTypes.length;0<=--e;)if(0<=b.indexOf(c._binaryTypes[e]))return!0;return!1};c._getFileData=function(b,e,f){var h=c._isBinaryUrl(b),j=0<=b.indexOf(".gz")&&0<=b.indexOf("rcsb.org");j&&(b=b.replace(/\.gz/,""),h=!1);var j=h&&!e&&!c._canSyncBinary(j),l=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var n=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),m= "https://"==c._httpProto&&0==b.indexOf("http://"),v=c._isDirectCall(b);!v&&0<=b.indexOf("?ALLOWSORIGIN?")&&(v=!0,b=b.replace(/\?ALLOWSORIGIN\?/,""));var u=!n&&c.$supportsIECrossDomainScripting(),w=null;if(m||j||!n&&!v||!e&&u)w=c._getRawDataFromServer("_",b,e,e,j,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var F={dataType:h?"binary":"text",async:!!e};l?(F.type="POST",F.url=b.split("?POST?")[0],F.data=b.split("?POST?")[1]):(F.type="GET",F.url=b);e&&(F.success=function(){e(c._xhrReturn(F.xhr))}, F.error=function(){e(F.xhr.statusText)});F.xhr=c.$ajax(F);e||(w=c._xhrReturn(F.xhr))}if(!f)return w;null==w&&(w="",h=!1);h&&(h=c._canSyncBinary(!0));return h?c._strToBytes(w):JU.SB.newS(w)};c._xhrReturn=function(b){return!b.responseText||self.Clazz&&Clazz.instanceOf(b.response,self.ArrayBuffer)?b.response||b.statusText:b.responseText};c._isDirectCall=function(b){if(0<=b.indexOf("?ALLOWSORIGIN?"))return!0;for(var e in c.db._DirectDatabaseCalls)if(0<=e.indexOf(".")&&0<=b.indexOf(e))return!0;return!1}; c._cleanFileData=function(b){return 0<=b.indexOf("\r")&&0<=b.indexOf("\n")?b.replace(/\r\n/g,"\n"):0<=b.indexOf("\r")?b.replace(/\r/g,"\n"):b};c._getFileType=function(b){var c=b.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="==b.substring(1,2)?"LCIF":"PDB";b=b.split(".").pop().toUpperCase();return b.substring(0,Math.min(b.length,3))};c._getZ=function(b,e){return b&&b._z&&b._z[e]||c._z[e]};c._incrZ=function(b,e){return b&&b._z&&++b._z[e]||++c._z[e]};c._hideLocalFileReader=function(b){b._localReader&& c.$setVisible(b._localReader,!1);b._readingLocal=!1;c._setCursor(b,0)};c.loadFileFromDialog=function(b){c._loadFileAsynchronously(null,b,null,null)};c._loadFileAsynchronously=function(b,e,f,h){if(f&&0!=f.indexOf("?")){var j=f;f=c._checkFileName(e,f);var l=function(l){c._setData(b,f,j,l,h,e)},l=c._checkCache(e,f,l);0<=f.indexOf("|")&&(f=f.split("|")[0]);return null==l?null:c._getFileData(f,l)}if(!c.featureDetection.hasFileReader)return b?b.setData("Local file reading is not enabled in your browser", null,null,h,e):alert("Local file reading is not enabled in your browser");e._localReader||(l=' ',c.$after("#"+e._id+"_appletdiv",l.replace(/ID/g,e._id+"_localReader")),e._localReader=c.$(e,"localReader")); c.$appEvent(e,"localReader_loadurl","click");c.$appEvent(e,"localReader_loadurl","click",function(){var b=prompt("Enter a URL");b&&(c._hideLocalFileReader(e,0),c._setData(null,b,b,null,h,e))});c.$appEvent(e,"localReader_loadfile","click");c.$appEvent(e,"localReader_loadfile","click",function(){var f=c.$(e,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState==FileReader.DONE&&(c._hideLocalFileReader(e,0),c._setData(b,f.name,f.name,j.target.result,h,e))};try{j.readAsArrayBuffer(f)}catch(l){alert("You must select a file first.")}}); c.$appEvent(e,"localReader_cancel","click");c.$appEvent(e,"localReader_cancel","click",function(){c._hideLocalFileReader(e);b&&b.setData("#CANCELED#",null,null,h,e)});c.$setVisible(e._localReader,!0);e._readingLocal=!0};c._setData=function(b,e,f,h,j,l){h&&(h=c._strToBytes(h));null!=h&&(null==b||0<=e.indexOf(".jdx"))&&c.Cache.put("cache://"+e,h);null==b?l._applet.openFileAsyncSpecial(null==h?e:"cache://"+e,1):b.setData(e,f,h,j)};c._doAjax=function(b,e,f){b=b.toString();if(null!=f)return c._saveFile(b, f);e&&(b+="?POST?"+e);return c._getFileData(b,null,!0)};c._saveFile=function(b,e,f,h){if(c._localFileSaveFunction&&c._localFileSaveFunction(b,e))return"OK";b=b.substring(b.lastIndexOf("/")+1);f||(f=0<=b.indexOf(".pdf")?"application/pdf":0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".gif")?"image/gif":0<=b.indexOf(".jpg")?"image/jpg":"");e=(JU?JU:J.util).Base64.getBase64("string"==typeof e?e.getBytes("UTF-8"):e).toString();h||(h="base64");var j=c._serverUrl;j&&0<=j.indexOf("your.server")&&(j=""); c._useDataURI||!j?(h=document.createElement("a"),h.href="data:"+f+";base64,"+e,h.type=f||"text/plain;charset=utf-8",h.download=b,h.target="_blank",m("body").append(h),h.click(),h.remove()):(c._formdiv||(c.$after("body",''), c._formdiv="__jsmolform__"),c.$attr(c._formdiv,"action",j+"?"+(new Date).getMilliseconds()),c.$val("__jsmoldata__",e),c.$val("__jsmolfilename__",b),c.$val("__jsmolmimetype__",f),c.$val("__jsmolencoding__",h),c.$submit("__jsmolform__"),c.$val("__jsmoldata__",""),c.$val("__jsmolfilename__",""));return"OK"};c._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return Clazz.newByteArray(-1,b);for(var c=Clazz.newByteArray(b.length,0),f=b.length;0<=--f;)c[f]=b.charCodeAt(f)&255;return c};c._setConsoleDiv= function(b){self.Clazz&&Clazz.setConsoleDiv(b)};c._registerApplet=function(b,e){return window[b]=c._applets[b]=c._applets[b+"__"+c._syncId+"__"]=e};c._readyCallback=function(b,e,f,h,j){b=b.split("_object")[0];var l=c._applets[b];if(f=f.booleanValue?f.booleanValue():f)l._appletPanel=j||h,l._applet=h;c._track(l)._readyCallback(b,e,f)};c._getWrapper=function(b,e){var f;if(e){var h="";if(b._coverImage)var h=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',j='",h=' ";j=b._isJava?"":' ';f=c._appletCssText.replace(/\'/g,'"');var l=b._getSpinner&&b._getSpinner();b._spinner=l=!l||"none"==l?"":"background-image:url("+l+"); background-repeat:no-repeat; background-position:center;";f=l+(0<=f.indexOf('style="')?f.split('style="')[1]:'" '+f);f='..."+j+" IMG WAIT......'; return f.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};c._hideLoadingSpinner=function(b){b._spinner&&c.$css(c.$(b,"appletdiv"),{"background-image":""})};c._documentWrite=function(b){if(c._document){if(c._isXHTML&&!c._XhtmlElement){var e=document.getElementsByTagName("script");c._XhtmlElement=e.item(e.length-1);c._XhtmlAppendChild=!1}c._XhtmlElement?c._domWrite(b):c._document.write(b)}return b};c._domWrite=function(b){for(var e=[0];e[0]";var l=b._height,n=b._width;if("string"!==typeof l||0>l.indexOf("%"))l+="px";if("string"!==typeof n||0>n.indexOf("%"))n+="px";f=f.replace(/IMG/,h).replace(/WAIT/,j).replace(/Hpx/g,l).replace(/Wpx/g,n)}else f='.............................. ...............b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use= b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};c._syncedApplets=[];c._syncedCommands=[];c._syncedReady=[];c._syncReady=!1;c._isJmolJSVSync=!1;c._setReady=function(b){c._syncedReady[b]=1;for(var e=0,f=0;f e[0]?-1:0}if(!b||"object"!=typeof b)return[];for(var f=[],h=b.length-1;0<=h;h--)for(var j=0,l=b[h].length;j e.type.indexOf("touch"))return!1;var f=c.$offset(b.id),h,j=e.originalEvent;e.pageX||(e.pageX=j.pageX);e.pageY||(e.pageY=j.pageY);c._mousePageX=e.pageX;c._mousePageY=e.pageY;j.targetTouches&&j.targetTouches[0]?(h=j.targetTouches[0].pageX-f.left,f=j.targetTouches[0].pageY-f.top):j.changedTouches?(h=j.changedTouches[0].pageX-f.left,f=j.changedTouches[0].pageY-f.top):(h=e.pageX-f.left,f=e.pageY-f.top);return void 0== h?null:[Math.round(h),Math.round(f),c._jsGetMouseModifiers(e)]};c._setCursor=function(b,e){if(!b._isJava&&!b._readingLocal){var f;switch(e){case 1:f="crosshair";break;case 3:f="wait";c.$setVisible(c.$(b,"waitimage"),!0);break;case 8:f="ns-resize";break;case 12:f="grab";break;case 13:f="move";break;default:c.$setVisible(c.$(b,"waitimage"),!1),f="default"}b._canvas.style.cursor=f}};c._gestureUpdate=function(b,e){e.stopPropagation();e.preventDefault();var f=e.originalEvent;switch(e.type){case "touchstart":c._touching= !0;break;case "touchend":c._touching=!1}if(!f.touches||2!=f.touches.length)return!1;switch(e.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var h=c.$offset(b.id),j=b._touches[0],l=b._touches[1];j.push([f.touches[0].pageX-h.left,f.touches[0].pageY-h.top]);l.push([f.touches[1].pageX-h.left,f.touches[1].pageY-h.top]);f=j.length;3 h? -1:1,0,f]);return!1});c.$bind(b,"contextmenu",function(){return!1});c.$bind(b,"mouseout",function(f){if(e(f))return!0;c._mouseOwner&&!c._mouseOwner.mouseMove&&c._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);c._jsGetXY(b,f);return!1});c.$bind(b,"mouseenter",function(f){if(e(f))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===f.buttons||0===f.which){b.isDragging=!1;f=c._jsGetXY(b,f);if(!f)return!1;b.applet._processEvent(504, f);b.applet._processEvent(502,f);return!1}});c.$bind(b,"mousemoveoutjsmol",function(f,h,j){if(e(j))return!0;if(b==c._mouseOwner&&b.isDragging)return c._drag(b,j)});b.applet._is2D&&c.$resize(function(){b.applet&&b.applet._resize()});c.$bind("body","mouseup touchend",function(f){if(e(f))return!0;b.applet&&(b.isDragging=!1);c._setMouseOwner(null)})};c._jsUnsetMouse=function(b){b.applet=null;c.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter", null);c._setMouseOwner(null)};c.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var u=c.Swing;SwingController=u;u.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var f=this;b.bind("mousedown touchstart",function(b){if(f.ignoreMouse)return f.ignoreMouse=!1,!0;c._setMouseOwner(f,!0);f.isDragging=!0;f.pageX=b.pageX;f.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(f.isDragging&& c._mouseOwner==f)return f.mouseMove(b),!1});b.bind("mouseup touchend",function(b){f.mouseUp(b);c._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&c._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;c._setMouseOwner(null)},b.setPosition=function(){if(null===c._mousePageX){var b=c.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));c._mousePageX=b.left;c._mousePageY=b.top}this.pageX0=c._mousePageX;this.pageY0= c._mousePageY;this.container.css({top:c._mousePageY+"px",left:c._mousePageX+"px"})},b.mouseMove=function(b){if(this.isDragging&&c._mouseOwner==this){this.timestamp=System.currentTimeMillis();var f=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);c._mousePageX=f;c._mousePageY=b;this.container.css({top:b+"px",left:f+"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");c._setMouseOwner(null);if(b){var f=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(b,c,e){f.mouseMove(e)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(b,c,e){f.mouseUp(e)})}})};u.JSDialog=function(){};u.setDraggable(u.JSDialog);u.getScreenDimensions=function(b){b.width=m(window).width();b.height=m(window).height()};u.dispose=function(b){c.$remove(b.id+"_mover");delete u.htDialogs[b.id];b.container.obj.dragBind(!1)}; u.register=function(b,c){b.id=c+ ++u.count;u.htDialogs[b.id]=b};u.setDialog=function(b){c._setMouseOwner(null);c.$remove(b.id);var e=b.id+"_mover",f=c._$(e),h;f[0]?(f.html(b.html),h=f[0].jd):(c.$after("body"," "+b.html+""),h=new u.JSDialog,f=c._$(e),b.container=f,h.applet=b.manager.vwr.html5Applet,h.setContainer(f),h.dialog=b,h.setPosition(),h.dragBind(!0),f[0].jd=h);c.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){h.ignoreMouse= !0});c.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){h.ignoreMouse= !0})};u.setSelected=function(b){c.$prop(b.id,"checked",!!b.selected)};u.setSelectedIndex=function(b){c.$prop(b.id,"selectedIndex",b.selectedIndex)};u.setText=function(b){c.$prop(b.id,"value",b.text)};u.setVisible=function(b){c.$setVisible(b.id,b._visible)};u.setEnabled=function(b){c.$setEnabled(b.id,b.enabled)};u.click=function(b,e){var f=u.htDialogs[b.id];if(f){var h=f.toString();if(0<=h.indexOf("JCheck"))f.selected=b.checked;else if(0<=h.indexOf("JCombo"))f.selectedIndex=b.selectedIndex;else if(null!= f.text&&(f.text=b.value,e&&13!=(e.charCode||e.keyCode)))return}h=u.htDialogs[c.$getAncestorDiv(b.id,"JDialog").id];h.manager.actionPerformed(f?f.name:h.registryKey+"/"+b.id)};u.setFront=function(b){var e=b.manager.vwr.html5Applet;b.zIndex!=c._getZ(e,"dialog")&&(b.zIndex=c._incrZ(e,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};u.hideMenus=function(b){if(b=b._menus)for(var c in b)b[c]._visible&&u.hideMenu(b[c])};u.windowClosing=function(b){b=u.htDialogs[c.$getAncestorDiv(b.id, "JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};c._track=function(b){if(c._tracker){try{var e='';c.$after("body",e)}catch(f){}delete c._tracker}return b};var w;c.getProfile=function(b){if(self.Clazz&&self.JSON)return w||Clazz._startProfiling(w= 0==arguments.length||b),Clazz.getProfile()};c._getInChIKey=function(b,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};c._getAttr=function(b,c){var f=b.indexOf(c+"=");return 0<=f&&0<=(f=b.indexOf('"',f))?b.substring(f+1,b.indexOf('"',f+1)):null};c.User={viewUpdatedCallback:null};c.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,f){debugger;if(f){if(f._viewSet){var h=c.View.applets[f._viewSet];for(b in h)b!=f&&c.View.resetView(b)}}else b&&(b._reset(),c.View.updateView(b))}; b.updateView=function(e,f){if(null!=e._viewSet){f||(f={});f.chemID||(e._searchQuery=null);f.data||(f.data="N/A");f.type=e._viewType;if(null==(e._currentView=b.__findView(e._viewSet,f)))e._currentView=b.__createViewSet(e._viewSet,f.chemID,f.viewID||f.chemID);e._currentView[f.type].data=f.data;e._currentView[f.type].smiles=e._getSmiles();c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(e,"updateView");b.__setView(e._currentView,e,!1)}};b.updateFromSync=function(e,f){e._updateMsg=f;var h=c._getAttr(f, "sourceID")||c._getAttr(f,"file");if(h){var j=b.__findView(e._viewSet,{viewID:h});if(null==j)return c.updateView(e,f);j!=e._currentView&&b.__setView(j,e,!0);var l=(h=c._getAttr(f,"atoms"))&&0<=f.indexOf("selectionhalos ON")?eval("["+h+"]"):[];setTimeout(function(){e._currentView==j&&b.updateAtomPick(e,l)},10);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(e,"updateFromSync")}};b.updateAtomPick=function(b,f){var h=b._currentView;if(null!=h){for(var j in h)"info"!=j&&h[j].applet!=b&&h[j].applet._updateAtomPick(f); c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(c){var f=b.sets[c];if(f){var h="View set "+c+":\n";c=b.applets[c];for(var j in c)h+="\napplet "+c[j]._id+" currentView="+(c[j]._currentView?c[j]._currentView.info.viewID:null);for(j=f.length;0<=--j;){c=f[j];var h=h+("\n\nview="+j+" viewID="+c.info.viewID+" chemID="+c.info.chemID+"\n"),l,n;for(n in c)"info"!=n&&(h+="\nview="+j+" type="+n+" applet="+((l=c[n]).applet?l.applet._id:null)+" SMILES="+ l.smiles+"\n atomMap="+JSON.stringify(l.atomMap)+"\n data=\n"+l.data+"\n")}return h}};b.__init=function(c){var f=c._viewSet,h=b.applets;h[f]||(h[f]={});h[f][c._viewType]=c};b.__findView=function(c,f){var h=b.sets[c];null==h&&(h=b.sets[c]=[]);for(var j=h.length;0<=--j;){var l=h[j];if(f.viewID){if(l.info.viewID==f.viewID)return l}else{if(null!=f.chemID&&f.chemID==l.info.chemID)return l;for(var n in l)if("info"!=n&&(null!=f.data&&null!=l[n].data?f.data==l[n].data:f.type==n))return l}}return null};b.__createViewSet= function(e,f,h){b.count++;f={info:{chemID:f,viewID:h||"model_"+b.count}};for(var j in c._applets)h=c._applets[j],h._viewSet==e&&(f[h._viewType]={applet:h,data:null});b.sets[e].push(f);return f};b.__setView=function(b,c,h){for(var j in b)if("info"!=j){var l=b[j],n=l.applet,m=h||null!=n&&""==n._molData;if(!(null==n||n==c&&!m)){var v=null==l.data,u=null!=n._currentView;n._currentView=b;if(!u||!(b[j].data==l.data&&!v&!m))if(n._loadModelFromView(b),v)break}}}})(c.View);c.Cache={fileCache:{}}; c.Cache.get=function(b){return c.Cache.fileCache[b]};c.Cache.put=function(b,e){c.Cache.fileCache[b]=e};c.Cache.setDragDrop=function(b){c.$appEvent(b,"appletdiv","dragover",function(b){b=b.originalEvent;b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="copy"});c.$appEvent(b,"appletdiv","drop",function(e){var f=e.originalEvent;f.stopPropagation();f.preventDefault();var h=f.dataTransfer.files[0];if(null==h)try{h=""+f.dataTransfer.getData("text"),(0==h.indexOf("file:/")||0==h.indexOf("http:/")|| 0==h.indexOf("https:/"))&&b._scriptLoad(h)}catch(j){}else f=new FileReader,f.onloadend=function(f){if(f.target.readyState==FileReader.DONE){var j="cache://DROP_"+h.name;f=Clazz.newByteArray(-1,f.target.result);j.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||j.endsWith(".jdx")?c.Cache.put(j,f):b._appletPanel.cachePut(j,f);(f=c._jsGetXY(b._canvas,e))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,f[0],f[1],j))&&b._appletPanel.openFileAsyncSpecial(j, 1)}},f.readAsArrayBuffer(h)})}})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)};Jmol._TMApplet=function(c,m,h){this._uniqueId=(""+Math.random()).substring(3);this._id=c;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(h)return this;this._createCanvas(c,m);return this}; Jmol._TMApplet._getApplet=function(c,m,h){if(!Jmol.featureDetection.allowHTML5)return null;h||(h=!1);m||(m={});Jmol._addDefaultInfo(m,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});m=new Jmol._TMApplet(c,m, h);return h?m:Jmol._registerApplet(c,m)};Jmol.getTMApplet=Jmol._TMApplet._getApplet; (function(c){c._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");c._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" "); c._elemNo={};var m=c.prototype;m.spin=function(c){this.__Info.spin=c;this._spin(c)};m._spin=function(c){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)c=!1;if(c){var j=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){j._spin(!0)},c)}};m._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/ 2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new c.M3;this.shadeAtoms=!1;this._setParams()};m._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY|| 0;this.spinFPS=this.__Info.spinFPS||0;var c=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!c&&this._setAtomShades()};m._setAtomShades=function(){if(this.atoms)for(var c=this.atoms.length;0<=--c;)this.atoms[c].color50=this._getColor(this.atoms[c].color,0.5)};m._createCanvas=function(c,j){Jmol._setObject(this,c,j);this._color=this._color.replace(/0x/,"#");var l=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(l),this._createCanvas2d(!1),l=""):l+='