-
Notifications
You must be signed in to change notification settings - Fork 0
/
JSmol.min.js
449 lines (449 loc) · 224 KB
/
JSmol.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
(function(b,k){"object"===typeof module&&"object"===typeof module.exports?module.exports=b.document?k(b,!0):function(b){if(!b.document)throw Error("jQuery requires a window with a document");return k(b)}:k(b)})("undefined"!==typeof window?window:this,function(b,k){function f(m){var a=m.length,b=h.type(m);return"function"===b||h.isWindow(m)?!1:1===m.nodeType&&a?!0:"array"===b||0===a||"number"===typeof a&&0<a&&a-1 in m}function g(m,a,b){if(h.isFunction(a))return h.grep(m,function(m,c){return!!a.call(m,
c,m)!==b});if(a.nodeType)return h.grep(m,function(m){return m===a!==b});if("string"===typeof a){if(Sc.test(a))return h.filter(a,m,b);a=h.filter(a,m)}return h.grep(m,function(m){return 0<=h.inArray(m,a)!==b})}function e(m,a){do m=m[a];while(m&&1!==m.nodeType);return m}function n(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",q,!1),b.removeEventListener("load",q,!1)):(u.detachEvent("onreadystatechange",q),b.detachEvent("onload",q))}function q(){if(u.addEventListener||"load"===event.type||
"complete"===u.readyState)n(),h.ready()}function d(m,a,b){if(void 0===b&&1===m.nodeType)if(b="data-"+a.replace(Tc,"-$1").toLowerCase(),b=m.getAttribute(b),"string"===typeof b){try{b="true"===b?!0:"false"===b?!1:"null"===b?null:+b+""===b?+b:Uc.test(b)?h.parseJSON(b):b}catch(c){}h.data(m,a,b)}else b=void 0;return b}function a(m){for(var a in m)if(!("data"===a&&h.isEmptyObject(m[a]))&&"toJSON"!==a)return!1;return!0}function c(m,a,b,c){if(h.acceptData(m)){var d=h.expando,j=m.nodeType,l=j?h.cache:m,e=
j?m[d]:m[d]&&d;if(e&&l[e]&&(c||l[e].data)||!(void 0===b&&"string"===typeof a)){e||(e=j?m[d]=Z.pop()||h.guid++:d);l[e]||(l[e]=j?{}:{toJSON:h.noop});if("object"===typeof a||"function"===typeof a)c?l[e]=h.extend(l[e],a):l[e].data=h.extend(l[e].data,a);m=l[e];c||(m.data||(m.data={}),m=m.data);void 0!==b&&(m[h.camelCase(a)]=b);"string"===typeof a?(b=m[a],null==b&&(b=m[h.camelCase(a)])):b=m;return b}}}function j(m,b,c){if(h.acceptData(m)){var d,j,L=m.nodeType,l=L?h.cache:m,e=L?m[h.expando]:h.expando;if(l[e]){if(b&&
(d=c?l[e]:l[e].data)){h.isArray(b)?b=b.concat(h.map(b,h.camelCase)):b in d?b=[b]:(b=h.camelCase(b),b=b in d?[b]:b.split(" "));for(j=b.length;j--;)delete d[b[j]];if(c?!a(d):!h.isEmptyObject(d))return}if(!c&&(delete l[e].data,!a(l[e])))return;L?h.cleanData([m],!0):s.deleteExpando||l!=l.window?delete l[e]:l[e]=null}}}function p(){return!0}function t(){return!1}function l(){try{return u.activeElement}catch(m){}}function r(m){var a=Rb.split("|");m=m.createDocumentFragment();if(m.createElement)for(;a.length;)m.createElement(a.pop());
return m}function C(m,a){var b,c,d=0,j=typeof m.getElementsByTagName!==P?m.getElementsByTagName(a||"*"):typeof m.querySelectorAll!==P?m.querySelectorAll(a||"*"):void 0;if(!j){j=[];for(b=m.childNodes||m;null!=(c=b[d]);d++)!a||h.nodeName(c,a)?j.push(c):h.merge(j,C(c,a))}return void 0===a||a&&h.nodeName(m,a)?h.merge([m],j):j}function G(m){jb.test(m.type)&&(m.defaultChecked=m.checked)}function D(m,a){return h.nodeName(m,"table")&&h.nodeName(11!==a.nodeType?a:a.firstChild,"tr")?m.getElementsByTagName("tbody")[0]||
m.appendChild(m.ownerDocument.createElement("tbody")):m}function A(m){m.type=(null!==h.find.attr(m,"type"))+"/"+m.type;return m}function x(m){var a=Vc.exec(m.type);a?m.type=a[1]:m.removeAttribute("type");return m}function H(m,a){for(var b,c=0;null!=(b=m[c]);c++)h._data(b,"globalEval",!a||h._data(a[c],"globalEval"))}function Sb(m,a){if(1===a.nodeType&&h.hasData(m)){var b,c,d;c=h._data(m);var j=h._data(a,c),l=c.events;if(l)for(b in delete j.handle,j.events={},l){c=0;for(d=l[b].length;c<d;c++)h.event.add(a,
b,l[b][c])}j.data&&(j.data=h.extend({},j.data))}}function Q(m,a){var c=h(a.createElement(m)).appendTo(a.body),d=b.getDefaultComputedStyle?b.getDefaultComputedStyle(c[0]).display:h.css(c[0],"display");c.detach();return d}function Tb(m){var a=u,b=Ub[m];if(!b){b=Q(m,a);if("none"===b||!b)Aa=(Aa||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(a.documentElement),a=(Aa[0].contentWindow||Aa[0].contentDocument).document,a.write(),a.close(),b=Q(m,a),Aa.detach();Ub[m]=b}return b}function Vb(m,
a){return{get:function(){var b=m();if(null!=b)if(b)delete this.get;else return(this.get=a).apply(this,arguments)}}}function Wb(m,a){if(a in m)return a;for(var b=a.charAt(0).toUpperCase()+a.slice(1),c=a,d=Xb.length;d--;)if(a=Xb[d]+b,a in m)return a;return c}function Yb(m,a){for(var b,c,d,j=[],l=0,e=m.length;l<e;l++)if(c=m[l],c.style)if(j[l]=h._data(c,"olddisplay"),b=c.style.display,a)!j[l]&&"none"===b&&(c.style.display=""),""===c.style.display&&Ba(c)&&(j[l]=h._data(c,"olddisplay",Tb(c.nodeName)));
else if(!j[l]&&(d=Ba(c),b&&"none"!==b||!d))h._data(c,"olddisplay",d?b:h.css(c,"display"));for(l=0;l<e;l++)if(c=m[l],c.style&&(!a||"none"===c.style.display||""===c.style.display))c.style.display=a?j[l]||"":"none";return m}function Zb(m,a,b){return(m=Wc.exec(a))?Math.max(0,m[1]-(b||0))+(m[2]||"px"):a}function $b(m,a,b,c,d){a=b===(c?"border":"content")?4:"width"===a?1:0;for(var j=0;4>a;a+=2)"margin"===b&&(j+=h.css(m,b+ja[a],!0,d)),c?("content"===b&&(j-=h.css(m,"padding"+ja[a],!0,d)),"margin"!==b&&(j-=
h.css(m,"border"+ja[a]+"Width",!0,d))):(j+=h.css(m,"padding"+ja[a],!0,d),"padding"!==b&&(j+=h.css(m,"border"+ja[a]+"Width",!0,d)));return j}function ac(m,a,b){var c=!0,d="width"===a?m.offsetWidth:m.offsetHeight,j=ka(m),l=s.boxSizing()&&"border-box"===h.css(m,"boxSizing",!1,j);if(0>=d||null==d){d=la(m,a,j);if(0>d||null==d)d=m.style[a];if(Ka.test(d))return d;c=l&&(s.boxSizingReliable()||d===m.style[a]);d=parseFloat(d)||0}return d+$b(m,a,b||(l?"border":"content"),c,j)+"px"}function M(m,a,b,c,d){return new M.prototype.init(m,
a,b,c,d)}function bc(){setTimeout(function(){sa=void 0});return sa=h.now()}function La(m,a){var b,c={height:m},d=0;for(a=a?1:0;4>d;d+=2-a)b=ja[d],c["margin"+b]=c["padding"+b]=m;a&&(c.opacity=c.width=m);return c}function cc(m,a,b){for(var c,d=(Ca[a]||[]).concat(Ca["*"]),h=0,j=d.length;h<j;h++)if(c=d[h].call(b,a,m))return c}function dc(m,a,b){var c,d,j=0,l=Ma.length,e=h.Deferred().always(function(){delete f.elem}),f=function(){if(d)return!1;for(var a=sa||bc(),a=Math.max(0,g.startTime+g.duration-a),
b=1-(a/g.duration||0),c=0,v=g.tweens.length;c<v;c++)g.tweens[c].run(b);e.notifyWith(m,[g,b,a]);if(1>b&&v)return a;e.resolveWith(m,[g]);return!1},g=e.promise({elem:m,props:h.extend({},a),opts:h.extend(!0,{specialEasing:{}},b),originalProperties:a,originalOptions:b,startTime:sa||bc(),duration:b.duration,tweens:[],createTween:function(a,b){var c=h.Tween(m,g.opts,a,b,g.opts.specialEasing[a]||g.opts.easing);g.tweens.push(c);return c},stop:function(a){var b=0,c=a?g.tweens.length:0;if(d)return this;for(d=
!0;b<c;b++)g.tweens[b].run(1);a?e.resolveWith(m,[g,a]):e.rejectWith(m,[g,a]);return this}});a=g.props;b=g.opts.specialEasing;var p,n,r,k;for(c in a)if(p=h.camelCase(c),n=b[p],r=a[c],h.isArray(r)&&(n=r[1],r=a[c]=r[0]),c!==p&&(a[p]=r,delete a[c]),(k=h.cssHooks[p])&&"expand"in k)for(c in r=k.expand(r),delete a[p],r)c in a||(a[c]=r[c],b[c]=n);else b[p]=n;for(;j<l;j++)if(c=Ma[j].call(g,m,a,g.opts))return c;h.map(a,cc,g);h.isFunction(g.opts.start)&&g.opts.start.call(m,g);h.fx.timer(h.extend(f,{elem:m,anim:g,
queue:g.opts.queue}));return g.progress(g.opts.progress).done(g.opts.done,g.opts.complete).fail(g.opts.fail).always(g.opts.always)}function ec(m){return function(a,b){"string"!==typeof a&&(b=a,a="*");var c,d=0,j=a.toLowerCase().match(X)||[];if(h.isFunction(b))for(;c=j[d++];)"+"===c.charAt(0)?(c=c.slice(1)||"*",(m[c]=m[c]||[]).unshift(b)):(m[c]=m[c]||[]).push(b)}}function fc(m,a,b,c){function d(e){var g;j[e]=!0;h.each(m[e]||[],function(m,h){var e=h(a,b,c);if("string"===typeof e&&!l&&!j[e])return a.dataTypes.unshift(e),
d(e),!1;if(l)return!(g=e)});return g}var j={},l=m===kb;return d(a.dataTypes[0])||!j["*"]&&d("*")}function lb(m,a){var b,c,d=h.ajaxSettings.flatOptions||{};for(c in a)void 0!==a[c]&&((d[c]?m:b||(b={}))[c]=a[c]);b&&h.extend(!0,m,b);return m}function mb(m,a,b,c){var d;if(h.isArray(a))h.each(a,function(a,v){b||Yc.test(m)?c(m,v):mb(m+"["+("object"===typeof v?a:"")+"]",v,b,c)});else if(!b&&"object"===h.type(a))for(d in a)mb(m+"["+d+"]",a[d],b,c);else c(m,a)}function nb(m){try{return m?new b.ActiveXObject("Microsoft.XMLHTTP"):
new b.XMLHttpRequest}catch(a){}}function gc(){try{return new b.XMLHttpRequest}catch(m){}}function hc(m){return h.isWindow(m)?m:9===m.nodeType?m.defaultView||m.parentWindow:!1}var Z=[],$=Z.slice,ic=Z.concat,ob=Z.push,jc=Z.indexOf,Na={},Zc=Na.toString,ta=Na.hasOwnProperty,pb="".trim,s={},h=function(m,a){return new h.fn.init(m,a)},$c=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ad=/^-ms-/,bd=/-([\da-z])/gi,cd=function(m,a){return a.toUpperCase()};h.fn=h.prototype={jquery:"1.11.0",constructor:h,selector:"",length:0,
toArray:function(){return $.call(this)},get:function(m){return null!=m?0>m?this[m+this.length]:this[m]:$.call(this)},pushStack:function(m){m=h.merge(this.constructor(),m);m.prevObject=this;m.context=this.context;return m},each:function(m,a){return h.each(this,m,a)},map:function(m){return this.pushStack(h.map(this,function(a,b){return m.call(a,b,a)}))},slice:function(){return this.pushStack($.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(m){var a=
this.length;m=+m+(0>m?a:0);return this.pushStack(0<=m&&m<a?[this[m]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ob,sort:Z.sort,splice:Z.splice};h.extend=h.fn.extend=function(){var m,a,b,c,d,j=arguments[0]||{},l=1,e=arguments.length,g=!1;"boolean"===typeof j&&(g=j,j=arguments[l]||{},l++);"object"!==typeof j&&!h.isFunction(j)&&(j={});l===e&&(j=this,l--);for(;l<e;l++)if(null!=(d=arguments[l]))for(c in d)m=j[c],b=d[c],j!==b&&(g&&b&&(h.isPlainObject(b)||(a=h.isArray(b)))?
(a?(a=!1,m=m&&h.isArray(m)?m:[]):m=m&&h.isPlainObject(m)?m:{},j[c]=h.extend(g,m,b)):void 0!==b&&(j[c]=b));return j};h.extend({expando:"jQuery"+("1.11.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(m){throw Error(m);},noop:function(){},isFunction:function(m){return"function"===h.type(m)},isArray:Array.isArray||function(m){return"array"===h.type(m)},isWindow:function(m){return null!=m&&m==m.window},isNumeric:function(m){return 0<=m-parseFloat(m)},isEmptyObject:function(m){for(var a in m)return!1;
return!0},isPlainObject:function(m){var a;if(!m||"object"!==h.type(m)||m.nodeType||h.isWindow(m))return!1;try{if(m.constructor&&!ta.call(m,"constructor")&&!ta.call(m.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}if(s.ownLast)for(a in m)return ta.call(m,a);for(a in m);return void 0===a||ta.call(m,a)},type:function(m){return null==m?m+"":"object"===typeof m||"function"===typeof m?Na[Zc.call(m)]||"object":typeof m},globalEval:function(m){m&&h.trim(m)&&(b.execScript||function(m){b.eval.call(b,
m)})(m)},camelCase:function(m){return m.replace(ad,"ms-").replace(bd,cd)},nodeName:function(m,a){return m.nodeName&&m.nodeName.toLowerCase()===a.toLowerCase()},each:function(m,a,b){var c,d=0,h=m.length;c=f(m);if(b)if(c)for(;d<h&&!(c=a.apply(m[d],b),!1===c);d++);else for(d in m){if(c=a.apply(m[d],b),!1===c)break}else if(c)for(;d<h&&!(c=a.call(m[d],d,m[d]),!1===c);d++);else for(d in m)if(c=a.call(m[d],d,m[d]),!1===c)break;return m},trim:pb&&!pb.call("\ufeff\u00a0")?function(m){return null==m?"":pb.call(m)}:
function(m){return null==m?"":(m+"").replace($c,"")},makeArray:function(m,a){var b=a||[];null!=m&&(f(Object(m))?h.merge(b,"string"===typeof m?[m]:m):ob.call(b,m));return b},inArray:function(m,a,b){var c;if(a){if(jc)return jc.call(a,m,b);c=a.length;for(b=b?0>b?Math.max(0,c+b):b:0;b<c;b++)if(b in a&&a[b]===m)return b}return-1},merge:function(m,a){for(var b=+a.length,c=0,d=m.length;c<b;)m[d++]=a[c++];if(b!==b)for(;void 0!==a[c];)m[d++]=a[c++];m.length=d;return m},grep:function(m,a,b){for(var c=[],d=
0,h=m.length,j=!b;d<h;d++)b=!a(m[d],d),b!==j&&c.push(m[d]);return c},map:function(m,a,b){var c,d=0,h=m.length,j=[];if(f(m))for(;d<h;d++)c=a(m[d],d,b),null!=c&&j.push(c);else for(d in m)c=a(m[d],d,b),null!=c&&j.push(c);return ic.apply([],j)},guid:1,proxy:function(m,a){var b,c;"string"===typeof a&&(c=m[a],a=m,m=c);if(h.isFunction(m))return b=$.call(arguments,2),c=function(){return m.apply(a||this,b.concat($.call(arguments)))},c.guid=m.guid=m.guid||h.guid++,c},now:function(){return+new Date},support:s});
h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(m,a){Na["[object "+a+"]"]=a.toLowerCase()});var qb=b,y=function(m,a,b,c){var d,h,j,l,e;(a?a.ownerDocument||a:R)!==I&&aa(a);a=a||I;b=b||[];if(!m||"string"!==typeof m)return b;if(1!==(l=a.nodeType)&&9!==l)return[];if(W&&!c){if(d=dd.exec(m))if(j=d[1])if(9===l)if((h=a.getElementById(j))&&h.parentNode){if(h.id===j)return b.push(h),b}else return b;else{if(a.ownerDocument&&(h=a.ownerDocument.getElementById(j))&&Da(a,
h)&&h.id===j)return b.push(h),b}else{if(d[2])return ba.apply(b,a.getElementsByTagName(m)),b;if((j=d[3])&&B.getElementsByClassName&&a.getElementsByClassName)return ba.apply(b,a.getElementsByClassName(j)),b}if(B.qsa&&(!N||!N.test(m))){h=d=F;j=a;e=9===l&&m;if(1===l&&"object"!==a.nodeName.toLowerCase()){l=Oa(m);(d=a.getAttribute("id"))?h=d.replace(ed,"\\$&"):a.setAttribute("id",h);h="[id='"+h+"'] ";for(j=l.length;j--;)l[j]=h+Pa(l[j]);j=rb.test(m)&&sb(a.parentNode)||a;e=l.join(",")}if(e)try{return ba.apply(b,
j.querySelectorAll(e)),b}catch(g){}finally{d||a.removeAttribute("id")}}}var f;a:{m=m.replace(Qa,"$1");h=Oa(m);if(!c&&1===h.length){d=h[0]=h[0].slice(0);if(2<d.length&&"ID"===(f=d[0]).type&&B.getById&&9===a.nodeType&&W&&w.relative[d[1].type]){a=(w.find.ID(f.matches[0].replace(ca,da),a)||[])[0];if(!a){f=b;break a}m=m.slice(d.shift().value.length)}for(l=Ra.needsContext.test(m)?0:d.length;l--;){f=d[l];if(w.relative[j=f.type])break;if(j=w.find[j])if(c=j(f.matches[0].replace(ca,da),rb.test(d[0].type)&&
sb(a.parentNode)||a)){d.splice(l,1);m=c.length&&Pa(d);if(!m){ba.apply(b,c);f=b;break a}break}}}tb(m,h)(c,a,!W,b,rb.test(m)&&sb(a.parentNode)||a);f=b}return f},ub=function(){function m(b,c){a.push(b+" ")>w.cacheLength&&delete m[a.shift()];return m[b+" "]=c}var a=[];return m},S=function(a){a[F]=!0;return a},T=function(a){var b=I.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}},vb=function(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=
b},lc=function(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||kc)-(~a.sourceIndex||kc);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1},fd=function(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}},gd=function(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}},ma=function(a){return S(function(b){b=+b;return S(function(c,d){for(var h,j=a([],c.length,b),l=j.length;l--;)if(c[h=
j[l]])c[h]=!(d[h]=c[h])})})},sb=function(a){return a&&typeof a.getElementsByTagName!==ua&&a},mc=function(){},Oa=function(a,b){var c,d,h,j,l,e,g;if(l=nc[a+" "])return b?0:l.slice(0);l=a;e=[];for(g=w.preFilter;l;){if(!c||(d=hd.exec(l)))d&&(l=l.slice(d[0].length)||l),e.push(h=[]);c=!1;if(d=id.exec(l))c=d.shift(),h.push({value:c,type:d[0].replace(Qa," ")}),l=l.slice(c.length);for(j in w.filter)if((d=Ra[j].exec(l))&&(!g[j]||(d=g[j](d))))c=d.shift(),h.push({value:c,type:j,matches:d}),l=l.slice(c.length);
if(!c)break}return b?l.length:l?y.error(a):nc(a,e).slice(0)},Pa=function(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d},wb=function(a,b,c){var d=b.dir,h=c&&"parentNode"===d,j=jd++;return b.first?function(b,c,v){for(;b=b[d];)if(1===b.nodeType||h)return a(b,c,v)}:function(b,c,v){var z,l,e=[U,j];if(v)for(;b=b[d];){if((1===b.nodeType||h)&&a(b,c,v))return!0}else for(;b=b[d];)if(1===b.nodeType||h){l=b[F]||(b[F]={});if((z=l[d])&&z[0]===U&&z[1]===j)return e[2]=z[2];l[d]=e;if(e[2]=a(b,c,v))return!0}}},
xb=function(a){return 1<a.length?function(b,c,d){for(var h=a.length;h--;)if(!a[h](b,c,d))return!1;return!0}:a[0]},Sa=function(a,b,c,d,h){for(var j,l=[],e=0,g=a.length,f=null!=b;e<g;e++)if(j=a[e])if(!c||c(j,d,h))l.push(j),f&&b.push(e);return l},yb=function(a,b,c,d,h,j){d&&!d[F]&&(d=yb(d));h&&!h[F]&&(h=yb(h,j));return S(function(j,l,e,g){var f,p,L=[],n=[],r=l.length,k;if(!(k=j)){k=b||"*";for(var t=e.nodeType?[e]:e,q=[],C=0,G=t.length;C<G;C++)y(k,t[C],q);k=q}k=a&&(j||!b)?Sa(k,L,a,e,g):k;t=c?h||(j?a:
r||d)?[]:l:k;c&&c(k,t,e,g);if(d){f=Sa(t,n);d(f,[],e,g);for(e=f.length;e--;)if(p=f[e])t[n[e]]=!(k[n[e]]=p)}if(j){if(h||a){if(h){f=[];for(e=t.length;e--;)if(p=t[e])f.push(k[e]=p);h(null,t=[],f,g)}for(e=t.length;e--;)if((p=t[e])&&-1<(f=h?na.call(j,p):L[e]))j[f]=!(l[f]=p)}}else t=Sa(t===l?t.splice(r,t.length):t),h?h(null,l,t,g):ba.apply(l,t)})},zb=function(a){var b,c,d,h=a.length,j=w.relative[a[0].type];c=j||w.relative[" "];for(var l=j?1:0,e=wb(function(a){return a===b},c,!0),g=wb(function(a){return-1<
na.call(b,a)},c,!0),f=[function(a,m,c){return!j&&(c||m!==Ta)||((b=m).nodeType?e(a,m,c):g(a,m,c))}];l<h;l++)if(c=w.relative[a[l].type])f=[wb(xb(f),c)];else{c=w.filter[a[l].type].apply(null,a[l].matches);if(c[F]){for(d=++l;d<h&&!w.relative[a[d].type];d++);return yb(1<l&&xb(f),1<l&&Pa(a.slice(0,l-1).concat({value:" "===a[l-2].type?"*":""})).replace(Qa,"$1"),c,l<d&&zb(a.slice(l,d)),d<h&&zb(a=a.slice(d)),d<h&&Pa(a))}f.push(c)}return xb(f)},va,B,w,Ua,oc,tb,Ta,ea,wa,aa,I,Y,W,N,oa,Va,Da,F="sizzle"+-new Date,
R=qb.document,U=0,jd=0,pc=ub(),nc=ub(),qc=ub(),Ab=function(a,b){a===b&&(wa=!0);return 0},ua="undefined",kc=-2147483648,kd={}.hasOwnProperty,fa=[],ld=fa.pop,md=fa.push,ba=fa.push,rc=fa.slice,na=fa.indexOf||function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]===a)return b;return-1},sc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),tc="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+sc+")|)|)[\\x20\\t\\r\\n\\f]*\\]",
Bb=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+tc.replace(3,8)+")*)|.*)\\)|)",Qa=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),hd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,id=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,nd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),od=RegExp(Bb),pd=RegExp("^"+sc+"$"),Ra={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,
TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+tc),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")},qd=/^(?:input|select|textarea|button)$/i,rd=/^h\d$/i,Ea=/^[^{]+\{\s*\[native \w/,dd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rb=/[+~]/,ed=/'|\\/g,ca=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),da=function(a,b,c){a="0x"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{ba.apply(fa=rc.call(R.childNodes),R.childNodes),fa[R.childNodes.length].nodeType}catch(Yd){ba={apply:fa.length?function(a,b){md.apply(a,rc.call(b))}:
function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}B=y.support={};oc=y.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};aa=y.setDocument=function(a){var b=a?a.ownerDocument||a:R;a=b.defaultView;if(b===I||9!==b.nodeType||!b.documentElement)return I;I=b;Y=b.documentElement;W=!oc(b);a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){aa()},!1):a.attachEvent&&a.attachEvent("onunload",function(){aa()}));B.attributes=T(function(a){a.className=
"i";return!a.getAttribute("className")});B.getElementsByTagName=T(function(a){a.appendChild(b.createComment(""));return!a.getElementsByTagName("*").length});B.getElementsByClassName=Ea.test(b.getElementsByClassName)&&T(function(a){a.innerHTML="<div class='a'></div><div class='a i'></div>";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});B.getById=T(function(a){Y.appendChild(a).id=F;return!b.getElementsByName||!b.getElementsByName(F).length});B.getById?(w.find.ID=function(a,
m){if(typeof m.getElementById!==ua&&W){var b=m.getElementById(a);return b&&b.parentNode?[b]:[]}},w.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return(a=typeof a.getAttributeNode!==ua&&a.getAttributeNode("id"))&&a.value===b}});w.find.TAG=B.getElementsByTagName?function(a,b){if(typeof b.getElementsByTagName!==ua)return b.getElementsByTagName(a)}:function(a,b){var m,
c=[],d=0,v=b.getElementsByTagName(a);if("*"===a){for(;m=v[d++];)1===m.nodeType&&c.push(m);return c}return v};w.find.CLASS=B.getElementsByClassName&&function(a,b){if(typeof b.getElementsByClassName!==ua&&W)return b.getElementsByClassName(a)};oa=[];N=[];if(B.qsa=Ea.test(b.querySelectorAll))T(function(a){a.innerHTML="<select t=''><option selected=''></option></select>";a.querySelectorAll("[t^='']").length&&N.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||N.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||N.push(":checked")}),T(function(a){var m=b.createElement("input");m.setAttribute("type","hidden");a.appendChild(m).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&N.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||N.push(":enabled",":disabled");a.querySelectorAll("*,:x");N.push(",.*:")});(B.matchesSelector=Ea.test(Va=Y.webkitMatchesSelector||Y.mozMatchesSelector||Y.oMatchesSelector||Y.msMatchesSelector))&&T(function(a){B.disconnectedMatch=
Va.call(a,"div");Va.call(a,"[s!='']:x");oa.push("!=",Bb)});N=N.length&&RegExp(N.join("|"));oa=oa.length&&RegExp(oa.join("|"));Da=(a=Ea.test(Y.compareDocumentPosition))||Ea.test(Y.contains)?function(a,b){var m=9===a.nodeType?a.documentElement:a,c=b&&b.parentNode;return a===c||!(!c||!(1===c.nodeType&&(m.contains?m.contains(c):a.compareDocumentPosition&&a.compareDocumentPosition(c)&16)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};Ab=a?function(a,m){if(a===m)return wa=!0,0;var c=
!a.compareDocumentPosition-!m.compareDocumentPosition;if(c)return c;c=(a.ownerDocument||a)===(m.ownerDocument||m)?a.compareDocumentPosition(m):1;return c&1||!B.sortDetached&&m.compareDocumentPosition(a)===c?a===b||a.ownerDocument===R&&Da(R,a)?-1:m===b||m.ownerDocument===R&&Da(R,m)?1:ea?na.call(ea,a)-na.call(ea,m):0:c&4?-1:1}:function(a,m){if(a===m)return wa=!0,0;var c,d=0;c=a.parentNode;var h=m.parentNode,j=[a],l=[m];if(!c||!h)return a===b?-1:m===b?1:c?-1:h?1:ea?na.call(ea,a)-na.call(ea,m):0;if(c===
h)return lc(a,m);for(c=a;c=c.parentNode;)j.unshift(c);for(c=m;c=c.parentNode;)l.unshift(c);for(;j[d]===l[d];)d++;return d?lc(j[d],l[d]):j[d]===R?-1:l[d]===R?1:0};return b};y.matches=function(a,b){return y(a,null,null,b)};y.matchesSelector=function(a,b){(a.ownerDocument||a)!==I&&aa(a);b=b.replace(nd,"='$1']");if(B.matchesSelector&&W&&(!oa||!oa.test(b))&&(!N||!N.test(b)))try{var c=Va.call(a,b);if(c||B.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(d){}return 0<y(b,I,null,[a]).length};
y.contains=function(a,b){(a.ownerDocument||a)!==I&&aa(a);return Da(a,b)};y.attr=function(a,b){(a.ownerDocument||a)!==I&&aa(a);var c=w.attrHandle[b.toLowerCase()],c=c&&kd.call(w.attrHandle,b.toLowerCase())?c(a,b,!W):void 0;return void 0!==c?c:B.attributes||!W?a.getAttribute(b):(c=a.getAttributeNode(b))&&c.specified?c.value:null};y.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};y.uniqueSort=function(a){var b,c=[],d=0,h=0;wa=!B.detectDuplicates;ea=!B.sortStable&&a.slice(0);
a.sort(Ab);if(wa){for(;b=a[h++];)b===a[h]&&(d=c.push(h));for(;d--;)a.splice(c[d],1)}ea=null;return a};Ua=y.getText=function(a){var b,c="",d=0;if(b=a.nodeType)if(1===b||9===b||11===b){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=Ua(a)}else{if(3===b||4===b)return a.nodeValue}else for(;b=a[d++];)c+=Ua(b);return c};w=y.selectors={cacheLength:50,createPseudo:S,match:Ra,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},
"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(ca,da);a[3]=(a[4]||a[5]||"").replace(ca,da);"~="===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]||y.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]&&y.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[5]&&a[2];if(Ra.CHILD.test(a[0]))return null;if(a[3]&&
void 0!==a[4])a[2]=a[4];else if(c&&od.test(c)&&(b=Oa(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(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=pc[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&pc(a,function(a){return b.test("string"===typeof a.className&&a.className||
typeof a.getAttribute!==ua&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){d=y.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&&-1<d.indexOf(c):"$="===b?c&&d.slice(-c.length)===c:"~="===b?-1<(" "+d+" ").indexOf(c):"|="===b?d===c||d.slice(0,c.length+1)===c+"-":!1}},CHILD:function(a,b,c,d,h){var j="nth"!==a.slice(0,3),l="last"!==a.slice(-4),e="of-type"===b;return 1===d&&0===h?function(a){return!!a.parentNode}:
function(b,c,v){var z,f,g,p,n;c=j!==l?"nextSibling":"previousSibling";var r=b.parentNode,k=e&&b.nodeName.toLowerCase();v=!v&&!e;if(r){if(j){for(;c;){for(f=b;f=f[c];)if(e?f.nodeName.toLowerCase()===k:1===f.nodeType)return!1;n=c="only"===a&&!n&&"nextSibling"}return!0}n=[l?r.firstChild:r.lastChild];if(l&&v){v=r[F]||(r[F]={});z=v[a]||[];p=z[0]===U&&z[1];g=z[0]===U&&z[2];for(f=p&&r.childNodes[p];f=++p&&f&&f[c]||(g=p=0)||n.pop();)if(1===f.nodeType&&++g&&f===b){v[a]=[U,p,g];break}}else if(v&&(z=(b[F]||(b[F]=
{}))[a])&&z[0]===U)g=z[1];else for(;f=++p&&f&&f[c]||(g=p=0)||n.pop();)if((e?f.nodeName.toLowerCase()===k:1===f.nodeType)&&++g)if(v&&((f[F]||(f[F]={}))[a]=[U,g]),f===b)break;g-=h;return g===d||0===g%d&&0<=g/d}}},PSEUDO:function(a,b){var c,d=w.pseudos[a]||w.setFilters[a.toLowerCase()]||y.error("unsupported pseudo: "+a);return d[F]?d(b):1<d.length?(c=[a,a,"",b],w.setFilters.hasOwnProperty(a.toLowerCase())?S(function(a,m){for(var c,h=d(a,b),j=h.length;j--;)c=na.call(a,h[j]),a[c]=!(m[c]=h[j])}):function(a){return d(a,
0,c)}):d}},pseudos:{not:S(function(a){var b=[],c=[],d=tb(a.replace(Qa,"$1"));return d[F]?S(function(a,b,m,c){c=d(a,null,c,[]);for(var h=a.length;h--;)if(m=c[h])a[h]=!(b[h]=m)}):function(a,m,h){b[0]=a;d(b,null,h,c);return!c.pop()}}),has:S(function(a){return function(b){return 0<y(a,b).length}}),contains:S(function(a){return function(b){return-1<(b.textContent||b.innerText||Ua(b)).indexOf(a)}}),lang:S(function(a){pd.test(a||"")||y.error("unsupported lang: "+a);a=a.replace(ca,da).toLowerCase();return function(b){var c;
do if(c=W?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(a){var b=qb.location&&qb.location.hash;return b&&b.slice(1)===a.id},root:function(a){return a===Y},focus:function(a){return a===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=
a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return rd.test(a.nodeName)},input:function(a){return qd.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:ma(function(){return[0]}),last:ma(function(a,b){return[b-1]}),eq:ma(function(a,b,c){return[0>c?c+b:c]}),even:ma(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:ma(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:ma(function(a,b,c){for(b=0>c?c+b:c;0<=--b;)a.push(b);return a}),gt:ma(function(a,b,c){for(c=0>c?c+b:c;++c<b;)a.push(c);
return a})}};w.pseudos.nth=w.pseudos.eq;for(va in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[va]=fd(va);for(va in{submit:!0,reset:!0})w.pseudos[va]=gd(va);mc.prototype=w.filters=w.pseudos;w.setFilters=new mc;tb=y.compile=function(a,b){var c,d=[],h=[],j=qc[a+" "];if(!j){b||(b=Oa(a));for(c=b.length;c--;)j=zb(b[c]),j[F]?d.push(j):h.push(j);var l=0<d.length,e=0<h.length;c=function(a,b,m,c,j){var v,z,f,g=0,p="0",n=a&&[],L=[],r=Ta,k=a||e&&w.find.TAG("*",j),t=U+=null==r?1:Math.random()||
0.1,q=k.length;for(j&&(Ta=b!==I&&b);p!==q&&null!=(v=k[p]);p++){if(e&&v){for(z=0;f=h[z++];)if(f(v,b,m)){c.push(v);break}j&&(U=t)}l&&((v=!f&&v)&&g--,a&&n.push(v))}g+=p;if(l&&p!==g){for(z=0;f=d[z++];)f(n,L,b,m);if(a){if(0<g)for(;p--;)!n[p]&&!L[p]&&(L[p]=ld.call(c));L=Sa(L)}ba.apply(c,L);j&&(!a&&0<L.length&&1<g+d.length)&&y.uniqueSort(c)}j&&(U=t,Ta=r);return n};c=l?S(c):c;j=qc(a,c)}return j};B.sortStable=F.split("").sort(Ab).join("")===F;B.detectDuplicates=!!wa;aa();B.sortDetached=T(function(a){return a.compareDocumentPosition(I.createElement("div"))&
1});T(function(a){a.innerHTML="<a href='#'></a>";return"#"===a.firstChild.getAttribute("href")})||vb("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)});(!B.attributes||!T(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&vb("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue});T(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,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});h.find=y;h.expr=y.selectors;h.expr[":"]=h.expr.pseudos;h.unique=y.uniqueSort;h.text=y.getText;h.isXMLDoc=y.isXML;h.contains=y.contains;var uc=h.expr.match.needsContext,vc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Sc=/^.[^:#\[\.,]*$/;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,j=d.length;if("string"!==typeof a)return this.pushStack(h(a).filter(function(){for(b=0;b<j;b++)if(h.contains(d[b],this))return!0}));for(b=0;b<j;b++)h.find(a,d[b],c);c=this.pushStack(1<j?h.unique(c):c);c.selector=this.selector?this.selector+" "+a:a;return c},filter:function(a){return this.pushStack(g(this,a||[],!1))},not:function(a){return this.pushStack(g(this,a||[],!0))},is:function(a){return!!g(this,"string"===typeof a&&uc.test(a)?h(a):
a||[],!1).length}});var Fa,u=b.document,sd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\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]:sd.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)),vc.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 Fa.find(a);this.length=1;this[0]=d}this.context=u;this.selector=a}return this}return!b||b.jquery?(b||Fa).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 Fa.ready?Fa.ready(a):a(h);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return h.makeArray(a,this)}).prototype=h.fn;Fa=h(u);var td=/^(?:parents|prev(?:Until|All))/,ud={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;b<d;b++)if(h.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,j=this.length,l=[],e=uc.test(a)||"string"!==typeof a?h(a,
b||this.context):0;d<j;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(11>c.nodeType&&(e?-1<e.index(c):1===c.nodeType&&h.find.matchesSelector(c,a))){l.push(c);break}return this.pushStack(1<l.length?h.unique(l):l)},index:function(a){return!a?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===typeof a?h.inArray(this[0],h(a)):h.inArray(a.jquery?a[0]:a,this)},add:function(a,b){return this.pushStack(h.unique(h.merge(this.get(),h(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:
this.prevObject.filter(a))}});h.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return h.dir(a,"parentNode")},parentsUntil:function(a,b,c){return h.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return h.dir(a,"nextSibling")},prevAll:function(a){return h.dir(a,"previousSibling")},nextUntil:function(a,b,c){return h.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return h.dir(a,
"previousSibling",c)},siblings:function(a){return h.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return h.sibling(a.firstChild)},contents:function(a){return h.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:h.merge([],a.childNodes)}},function(a,b){h.fn[a]=function(c,d){var j=h.map(this,b,c);"Until"!==a.slice(-5)&&(d=c);d&&"string"===typeof d&&(j=h.filter(d,j));1<this.length&&(ud[a]||(j=h.unique(j)),td.test(a)&&(j=j.reverse()));return this.pushStack(j)}});var X=/\S+/g,
wc={};h.Callbacks=function(a){var b;if("string"===typeof a){if(!(b=wc[a])){b=a;var c=wc[b]={};h.each(b.match(X)||[],function(a,b){c[b]=!0});b=c}}else b=h.extend({},a);a=b;var d,j,l,e,f,g,p=[],n=!a.once&&[],r=function(b){j=a.memory&&b;l=!0;f=g||0;g=0;e=p.length;for(d=!0;p&&f<e;f++)if(!1===p[f].apply(b[0],b[1])&&a.stopOnFalse){j=!1;break}d=!1;p&&(n?n.length&&r(n.shift()):j?p=[]:k.disable())},k={add:function(){if(p){var b=p.length;(function Xc(b){h.each(b,function(b,c){var d=h.type(c);"function"===d?
(!a.unique||!k.has(c))&&p.push(c):c&&(c.length&&"string"!==d)&&Xc(c)})})(arguments);d?e=p.length:j&&(g=b,r(j))}return this},remove:function(){p&&h.each(arguments,function(a,b){for(var c;-1<(c=h.inArray(b,p,c));)p.splice(c,1),d&&(c<=e&&e--,c<=f&&f--)});return this},has:function(a){return a?-1<h.inArray(a,p):!(!p||!p.length)},empty:function(){p=[];e=0;return this},disable:function(){p=n=j=void 0;return this},disabled:function(){return!p},lock:function(){n=void 0;j||k.disable();return this},locked:function(){return!n},
fireWith:function(a,b){if(p&&(!l||n))b=b||[],b=[a,b.slice?b.slice():b],d?n.push(b):r(b);return this},fire:function(){k.fireWith(this,arguments);return this},fired:function(){return!!l}};return k};h.extend({Deferred:function(a){var b=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){j.done(arguments).fail(arguments);return this},then:function(){var a=
arguments;return h.Deferred(function(c){h.each(b,function(b,m){var v=h.isFunction(a[b])&&a[b];j[m[1]](function(){var a=v&&v.apply(this,arguments);if(a&&h.isFunction(a.promise))a.promise().done(c.resolve).fail(c.reject).progress(c.notify);else c[m[0]+"With"](this===d?c.promise():this,v?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=a?h.extend(a,d):d}},j={};d.pipe=d.then;h.each(b,function(a,m){var h=m[2],l=m[3];d[m[1]]=h.add;l&&h.add(function(){c=l},b[a^1][2].disable,b[2][2].lock);
j[m[0]]=function(){j[m[0]+"With"](this===j?d:this,arguments);return this};j[m[0]+"With"]=h.fireWith});d.promise(j);a&&a.call(j,j);return j},when:function(a){var b=0,c=$.call(arguments),d=c.length,j=1!==d||a&&h.isFunction(a.promise)?d:0,l=1===j?a:h.Deferred(),e=function(a,b,c){return function(m){b[a]=this;c[a]=1<arguments.length?$.call(arguments):m;c===f?l.notifyWith(b,c):--j||l.resolveWith(b,c)}},f,g,p;if(1<d){f=Array(d);g=Array(d);for(p=Array(d);b<d;b++)c[b]&&h.isFunction(c[b].promise)?c[b].promise().done(e(b,
p,c)).fail(l.reject).progress(e(b,g,f)):--j}j||l.resolveWith(p,c);return l.promise()}});var Wa;h.fn.ready=function(a){h.ready.promise().done(a);return this};h.extend({isReady:!1,readyWait:1,holdReady:function(a){a?h.readyWait++:h.ready(!0)},ready:function(a){if(!(!0===a?--h.readyWait:h.isReady)){if(!u.body)return setTimeout(h.ready);h.isReady=!0;!0!==a&&0<--h.readyWait||(Wa.resolveWith(u,[h]),h.fn.trigger&&h(u).trigger("ready").off("ready"))}}});h.ready.promise=function(a){if(!Wa)if(Wa=h.Deferred(),
"complete"===u.readyState)setTimeout(h.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",q,!1),b.addEventListener("load",q,!1);else{u.attachEvent("onreadystatechange",q);b.attachEvent("onload",q);var c=!1;try{c=null==b.frameElement&&u.documentElement}catch(d){}c&&c.doScroll&&function E(){if(!h.isReady){try{c.doScroll("left")}catch(a){return setTimeout(E,50)}n();h.ready()}}()}return Wa.promise(a)};var P="undefined",xc;for(xc in h(s))break;s.ownLast="0"!==xc;s.inlineBlockNeedsLayout=
!1;h(function(){var a,b,c=u.getElementsByTagName("body")[0];if(c){a=u.createElement("div");a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";b=u.createElement("div");c.appendChild(a).appendChild(b);if(typeof b.style.zoom!==P&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",s.inlineBlockNeedsLayout=3===b.offsetWidth))c.style.zoom=1;c.removeChild(a)}});var vd=u.createElement("div");if(null==s.deleteExpando){s.deleteExpando=
!0;try{delete vd.test}catch(Zd){s.deleteExpando=!1}}h.acceptData=function(a){var b=h.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||!0!==b&&a.getAttribute("classid")===b};var Uc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tc=/([A-Z])/g;h.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(b){b=b.nodeType?h.cache[b[h.expando]]:b[h.expando];return!!b&&!a(b)},data:function(a,b,d){return c(a,b,d)},removeData:function(a,
b){return j(a,b)},_data:function(a,b,d){return c(a,b,d,!0)},_removeData:function(a,b){return j(a,b,!0)}});h.fn.extend({data:function(a,b){var c,j,l,e=this[0],f=e&&e.attributes;if(void 0===a){if(this.length&&(l=h.data(e),1===e.nodeType&&!h._data(e,"parsedAttrs"))){for(c=f.length;c--;)j=f[c].name,0===j.indexOf("data-")&&(j=h.camelCase(j.slice(5)),d(e,j,l[j]));h._data(e,"parsedAttrs",!0)}return l}return"object"===typeof a?this.each(function(){h.data(this,a)}):1<arguments.length?this.each(function(){h.data(this,
a,b)}):e?d(e,a,h.data(e,a)):void 0},removeData:function(a){return this.each(function(){h.removeData(this,a)})}});h.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=h._data(a,b),c&&(!d||h.isArray(c)?d=h._data(a,b,h.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=h.queue(a,b),d=c.length,j=c.shift(),l=h._queueHooks(a,b),e=function(){h.dequeue(a,b)};"inprogress"===j&&(j=c.shift(),d--);j&&("fx"===b&&c.unshift("inprogress"),delete l.stop,j.call(a,e,l));!d&&l&&
l.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return h._data(a,c)||h._data(a,c,{empty:h.Callbacks("once memory").add(function(){h._removeData(a,b+"queue");h._removeData(a,c)})})}});h.fn.extend({queue:function(a,b){var c=2;"string"!==typeof a&&(b=a,a="fx",c--);return arguments.length<c?h.queue(this[0],a):void 0===b?this:this.each(function(){var c=h.queue(this,a,b);h._queueHooks(this,a);"fx"===a&&"inprogress"!==c[0]&&h.dequeue(this,a)})},dequeue:function(a){return this.each(function(){h.dequeue(this,
a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,j=h.Deferred(),l=this,e=this.length,f=function(){--d||j.resolveWith(l,[l])};"string"!==typeof a&&(b=a,a=void 0);for(a=a||"fx";e--;)if((c=h._data(l[e],a+"queueHooks"))&&c.empty)d++,c.empty.add(f);f();return j.promise(b)}});var Xa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ja=["Top","Right","Bottom","Left"],Ba=function(a,b){a=b||a;return"none"===h.css(a,"display")||!h.contains(a.ownerDocument,a)},pa=h.access=
function(a,b,c,d,j,l,e){var f=0,g=a.length,p=null==c;if("object"===h.type(c))for(f in j=!0,c)h.access(a,b,f,c[f],!0,l,e);else if(void 0!==d&&(j=!0,h.isFunction(d)||(e=!0),p&&(e?(b.call(a,d),b=null):(p=b,b=function(a,b,c){return p.call(h(a),c)})),b))for(;f<g;f++)b(a[f],c,e?d:d.call(a[f],f,b(a[f],c)));return j?a:p?b.call(a):g?b(a[0],c):l},jb=/^(?:checkbox|radio)$/i,Cb=u.createDocumentFragment(),K=u.createElement("div"),Ga=u.createElement("input");K.setAttribute("className","t");K.innerHTML=" <link/><table></table><a href='/a'>a</a>";
s.leadingWhitespace=3===K.firstChild.nodeType;s.tbody=!K.getElementsByTagName("tbody").length;s.htmlSerialize=!!K.getElementsByTagName("link").length;s.html5Clone="<:nav></:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;Ga.type="checkbox";Ga.checked=!0;Cb.appendChild(Ga);s.appendChecked=Ga.checked;K.innerHTML="<textarea>x</textarea>";s.noCloneChecked=!!K.cloneNode(!0).lastChild.defaultValue;Cb.appendChild(K);K.innerHTML="<input type='radio' checked='checked' name='t'/>";s.checkClone=K.cloneNode(!0).cloneNode(!0).lastChild.checked;
s.noCloneEvent=!0;K.attachEvent&&(K.attachEvent("onclick",function(){s.noCloneEvent=!1}),K.cloneNode(!0).click());if(null==s.deleteExpando){s.deleteExpando=!0;try{delete K.test}catch($d){s.deleteExpando=!1}}var Cb=K=Ga=null,Ya,Za,yc=u.createElement("div");for(Ya in{submit:!0,change:!0,focusin:!0})if(Za="on"+Ya,!(s[Ya+"Bubbles"]=Za in b))yc.setAttribute(Za,"t"),s[Ya+"Bubbles"]=!1===yc.attributes[Za].expando;var Db=/^(?:input|select|textarea)$/i,wd=/^key/,xd=/^(?:mouse|contextmenu)|click/,zc=/^(?:focusinfocus|focusoutblur)$/,
Ac=/^([^.]*)(?:\.(.+)|)$/;h.event={global:{},add:function(a,b,c,d,j){var l,e,f,g,p,n,r,k,t;if(f=h._data(a)){c.handler&&(g=c,c=g.handler,j=g.selector);c.guid||(c.guid=h.guid++);if(!(e=f.events))e=f.events={};if(!(p=f.handle))p=f.handle=function(a){return typeof h!==P&&(!a||h.event.triggered!==a.type)?h.event.dispatch.apply(p.elem,arguments):void 0},p.elem=a;b=(b||"").match(X)||[""];for(f=b.length;f--;)if(l=Ac.exec(b[f])||[],k=n=l[1],t=(l[2]||"").split(".").sort(),k){l=h.event.special[k]||{};k=(j?l.delegateType:
l.bindType)||k;l=h.event.special[k]||{};n=h.extend({type:k,origType:n,data:d,handler:c,guid:c.guid,selector:j,needsContext:j&&h.expr.match.needsContext.test(j),namespace:t.join(".")},g);if(!(r=e[k]))if(r=e[k]=[],r.delegateCount=0,!l.setup||!1===l.setup.call(a,d,t,p))a.addEventListener?a.addEventListener(k,p,!1):a.attachEvent&&a.attachEvent("on"+k,p);l.add&&(l.add.call(a,n),n.handler.guid||(n.handler.guid=c.guid));j?r.splice(r.delegateCount++,0,n):r.push(n);h.event.global[k]=!0}a=null}},remove:function(a,
b,c,d,j){var l,e,f,g,p,n,r,k,t,q,C,G=h.hasData(a)&&h._data(a);if(G&&(n=G.events)){b=(b||"").match(X)||[""];for(p=b.length;p--;)if(f=Ac.exec(b[p])||[],t=C=f[1],q=(f[2]||"").split(".").sort(),t){r=h.event.special[t]||{};t=(d?r.delegateType:r.bindType)||t;k=n[t]||[];f=f[2]&&RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)");for(g=l=k.length;l--;)if(e=k[l],(j||C===e.origType)&&(!c||c.guid===e.guid)&&(!f||f.test(e.namespace))&&(!d||d===e.selector||"**"===d&&e.selector))k.splice(l,1),e.selector&&k.delegateCount--,
r.remove&&r.remove.call(a,e);g&&!k.length&&((!r.teardown||!1===r.teardown.call(a,q,G.handle))&&h.removeEvent(a,t,G.handle),delete n[t])}else for(t in n)h.event.remove(a,t+b[p],c,d,!0);h.isEmptyObject(n)&&(delete G.handle,h._removeData(a,"events"))}},trigger:function(a,c,d,j){var l,e,f,g,p,n,r=[d||u],k=ta.call(a,"type")?a.type:a;p=ta.call(a,"namespace")?a.namespace.split("."):[];f=l=d=d||u;if(!(3===d.nodeType||8===d.nodeType)&&!zc.test(k+h.event.triggered))if(0<=k.indexOf(".")&&(p=k.split("."),k=p.shift(),
p.sort()),e=0>k.indexOf(":")&&"on"+k,a=a[h.expando]?a:new h.Event(k,"object"===typeof a&&a),a.isTrigger=j?2:3,a.namespace=p.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=d),c=null==c?[a]:h.makeArray(c,[a]),p=h.event.special[k]||{},j||!(p.trigger&&!1===p.trigger.apply(d,c))){if(!j&&!p.noBubble&&!h.isWindow(d)){g=p.delegateType||k;zc.test(g+k)||(f=f.parentNode);for(;f;f=f.parentNode)r.push(f),l=f;if(l===(d.ownerDocument||
u))r.push(l.defaultView||l.parentWindow||b)}for(n=0;(f=r[n++])&&!a.isPropagationStopped();)if(a.type=1<n?g:p.bindType||k,(l=(h._data(f,"events")||{})[a.type]&&h._data(f,"handle"))&&l.apply(f,c),(l=e&&f[e])&&l.apply&&h.acceptData(f))a.result=l.apply(f,c),!1===a.result&&a.preventDefault();a.type=k;if(!j&&!a.isDefaultPrevented()&&(!p._default||!1===p._default.apply(r.pop(),c))&&h.acceptData(d)&&e&&d[k]&&!h.isWindow(d)){(l=d[e])&&(d[e]=null);h.event.triggered=k;try{d[k]()}catch(t){}h.event.triggered=
void 0;l&&(d[e]=l)}return a.result}},dispatch:function(a){a=h.event.fix(a);var b,c,d,j,l=[],e=$.call(arguments);b=(h._data(this,"events")||{})[a.type]||[];var f=h.event.special[a.type]||{};e[0]=a;a.delegateTarget=this;if(!(f.preDispatch&&!1===f.preDispatch.call(this,a))){l=h.event.handlers.call(this,a,b);for(b=0;(d=l[b++])&&!a.isPropagationStopped();){a.currentTarget=d.elem;for(j=0;(c=d.handlers[j++])&&!a.isImmediatePropagationStopped();)if(!a.namespace_re||a.namespace_re.test(c.namespace))if(a.handleObj=
c,a.data=c.data,c=((h.event.special[c.origType]||{}).handle||c.handler).apply(d.elem,e),void 0!==c&&!1===(a.result=c))a.preventDefault(),a.stopPropagation()}f.postDispatch&&f.postDispatch.call(this,a);return a.result}},handlers:function(a,b){var c,d,j,l,e=[],f=b.delegateCount,g=a.target;if(f&&g.nodeType&&(!a.button||"click"!==a.type))for(;g!=this;g=g.parentNode||this)if(1===g.nodeType&&(!0!==g.disabled||"click"!==a.type)){j=[];for(l=0;l<f;l++)d=b[l],c=d.selector+" ",void 0===j[c]&&(j[c]=d.needsContext?
0<=h(c,this).index(g):h.find(c,this,null,[g]).length),j[c]&&j.push(d);j.length&&e.push({elem:g,handlers:j})}f<b.length&&e.push({elem:this,handlers:b.slice(f)});return e},fix:function(a){if(a[h.expando])return a;var b,c,d;b=a.type;var j=a,l=this.fixHooks[b];l||(this.fixHooks[b]=l=xd.test(b)?this.mouseHooks:wd.test(b)?this.keyHooks:{});d=l.props?this.props.concat(l.props):this.props;a=new h.Event(j);for(b=d.length;b--;)c=d[b],a[c]=j[c];a.target||(a.target=j.srcElement||u);3===a.target.nodeType&&(a.target=
a.target.parentNode);a.metaKey=!!a.metaKey;return l.filter?l.filter(a,j):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,
b){var c,d,j=b.button,h=b.fromElement;null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||u,d=c.documentElement,c=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0));!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h);!a.which&&void 0!==j&&(a.which=j&1?1:j&2?3:j&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==
l()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===l()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(h.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return h.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){a=h.extend(new h.Event,c,{type:a,
isSimulated:!0,originalEvent:{}});d?h.event.trigger(a,null,b):h.event.dispatch.call(b,a);a.isDefaultPrevented()&&c.preventDefault()}};h.removeEvent=u.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){b="on"+b;a.detachEvent&&(typeof a[b]===P&&(a[b]=null),a.detachEvent(b,c))};h.Event=function(a,b){if(!(this instanceof h.Event))return new h.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===
a.defaultPrevented&&(!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault())?p:t):this.type=a;b&&h.extend(this,b);this.timeStamp=a&&a.timeStamp||h.now();this[h.expando]=!0};h.Event.prototype={isDefaultPrevented:t,isPropagationStopped:t,isImmediatePropagationStopped:t,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=p;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=p;a&&(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=p;this.stopPropagation()}};h.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){h.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=a.relatedTarget,m=a.handleObj;if(!d||d!==this&&!h.contains(this,d))a.type=m.origType,c=m.handler.apply(this,arguments),a.type=b;return c}}});s.submitBubbles||(h.event.special.submit={setup:function(){if(h.nodeName(this,"form"))return!1;
h.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=h.nodeName(a,"input")||h.nodeName(a,"button")?a.form:void 0)&&!h._data(a,"submitBubbles"))h.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),h._data(a,"submitBubbles",!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&h.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(h.nodeName(this,"form"))return!1;h.event.remove(this,"._submit")}});
s.changeBubbles||(h.event.special.change={setup:function(){if(Db.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)h.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),h.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);h.event.simulate("change",this,a,!0)});return!1}h.event.add(this,"beforeactivate._change",function(a){a=a.target;Db.test(a.nodeName)&&!h._data(a,
"changeBubbles")&&(h.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&h.event.simulate("change",this.parentNode,a,!0)}),h._data(a,"changeBubbles",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){h.event.remove(this,"._change");return!Db.test(this.nodeName)}});s.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},
function(a,b){var c=function(a){h.event.simulate(b,a.target,h.event.fix(a),!0)};h.event.special[b]={setup:function(){var d=this.ownerDocument||this,j=h._data(d,b);j||d.addEventListener(a,c,!0);h._data(d,b,(j||0)+1)},teardown:function(){var d=this.ownerDocument||this,j=h._data(d,b)-1;j?h._data(d,b,j):(d.removeEventListener(a,c,!0),h._removeData(d,b))}}});h.fn.extend({on:function(a,b,c,d,j){var l,e;if("object"===typeof a){"string"!==typeof b&&(c=c||b,b=void 0);for(l in a)this.on(l,b,c,a[l],j);return this}null==
c&&null==d?(d=b,c=b=void 0):null==d&&("string"===typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0));if(!1===d)d=t;else if(!d)return this;1===j&&(e=d,d=function(a){h().off(a);return e.apply(this,arguments)},d.guid=e.guid||(e.guid=h.guid++));return this.each(function(){h.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,h(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,
d.handler),this;if("object"===typeof a){for(d in a)this.off(d,b,a[d]);return this}if(!1===b||"function"===typeof b)c=b,b=void 0;!1===c&&(c=t);return this.each(function(){h.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){h.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return h.event.trigger(a,b,c,!0)}});var Rb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
yd=/ jQuery\d+="(?:null|\d+)"/g,Bc=RegExp("<(?:"+Rb+")[\\s/>]","i"),Eb=/^\s+/,Cc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Dc=/<([\w:]+)/,Ec=/<tbody/i,zd=/<|&#?\w+;/,Ad=/<(?:script|style|link)/i,Bd=/checked\s*(?:[^=]|=\s*.checked.)/i,Fc=/^$|\/(?:java|ecma)script/i,Vc=/^true\/(.*)/,Cd=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,O={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>",
"</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:s.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Fb=r(u).appendChild(u.createElement("div"));O.optgroup=O.option;O.tbody=O.tfoot=O.colgroup=O.caption=O.thead;O.th=O.td;h.extend({clone:function(a,b,c){var d,j,l,e,f,g=h.contains(a.ownerDocument,a);s.html5Clone||h.isXMLDoc(a)||!Bc.test("<"+
a.nodeName+">")?l=a.cloneNode(!0):(Fb.innerHTML=a.outerHTML,Fb.removeChild(l=Fb.firstChild));if((!s.noCloneEvent||!s.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!h.isXMLDoc(a)){d=C(l);f=C(a);for(e=0;null!=(j=f[e]);++e)if(d[e]){var p=d[e],n=void 0,r=void 0,k=void 0;if(1===p.nodeType){n=p.nodeName.toLowerCase();if(!s.noCloneEvent&&p[h.expando]){k=h._data(p);for(r in k.events)h.removeEvent(p,r,k.handle);p.removeAttribute(h.expando)}if("script"===n&&p.text!==j.text)A(p).text=j.text,x(p);else if("object"===
n)p.parentNode&&(p.outerHTML=j.outerHTML),s.html5Clone&&(j.innerHTML&&!h.trim(p.innerHTML))&&(p.innerHTML=j.innerHTML);else if("input"===n&&jb.test(j.type))p.defaultChecked=p.checked=j.checked,p.value!==j.value&&(p.value=j.value);else if("option"===n)p.defaultSelected=p.selected=j.defaultSelected;else if("input"===n||"textarea"===n)p.defaultValue=j.defaultValue}}}if(b)if(c){f=f||C(a);d=d||C(l);for(e=0;null!=(j=f[e]);e++)Sb(j,d[e])}else Sb(a,l);d=C(l,"script");0<d.length&&H(d,!g&&C(a,"script"));return l},
buildFragment:function(a,b,c,d){for(var j,l,e,f,g,p,n=a.length,k=r(b),t=[],q=0;q<n;q++)if((l=a[q])||0===l)if("object"===h.type(l))h.merge(t,l.nodeType?[l]:l);else if(zd.test(l)){e=e||k.appendChild(b.createElement("div"));f=(Dc.exec(l)||["",""])[1].toLowerCase();p=O[f]||O._default;e.innerHTML=p[1]+l.replace(Cc,"<$1></$2>")+p[2];for(j=p[0];j--;)e=e.lastChild;!s.leadingWhitespace&&Eb.test(l)&&t.push(b.createTextNode(Eb.exec(l)[0]));if(!s.tbody)for(j=(l="table"===f&&!Ec.test(l)?e.firstChild:"<table>"===
p[1]&&!Ec.test(l)?e:0)&&l.childNodes.length;j--;)h.nodeName(g=l.childNodes[j],"tbody")&&!g.childNodes.length&&l.removeChild(g);h.merge(t,e.childNodes);for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);e=k.lastChild}else t.push(b.createTextNode(l));e&&k.removeChild(e);s.appendChecked||h.grep(C(t,"input"),G);for(q=0;l=t[q++];)if(!(d&&-1!==h.inArray(l,d))&&(a=h.contains(l.ownerDocument,l),e=C(k.appendChild(l),"script"),a&&H(e),c))for(j=0;l=e[j++];)Fc.test(l.type||"")&&c.push(l);return k},
cleanData:function(a,b){for(var c,d,j,l,e=0,f=h.expando,g=h.cache,p=s.deleteExpando,n=h.event.special;null!=(c=a[e]);e++)if(b||h.acceptData(c))if(l=(j=c[f])&&g[j]){if(l.events)for(d in l.events)n[d]?h.event.remove(c,d):h.removeEvent(c,d,l.handle);g[j]&&(delete g[j],p?delete c[f]:typeof c.removeAttribute!==P?c.removeAttribute(f):c[f]=null,Z.push(j))}}});h.fn.extend({text:function(a){return pa(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)&&D(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=D(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,j=0;null!=(c=d[j]);j++)!b&&1===c.nodeType&&h.cleanData(C(c)),c.parentNode&&(b&&h.contains(c.ownerDocument,c)&&H(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 pa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(yd,""):void 0;if("string"===typeof a&&!Ad.test(a)&&(s.htmlSerialize||!Bc.test(a))&&(s.leadingWhitespace||!Eb.test(a))&&!O[(Dc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Cc,"<$1></$2>");try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(h.cleanData(C(b,!1)),b.innerHTML=
a);b=0}catch(m){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];this.domManip(arguments,function(b){a=this.parentNode;h.cleanData(C(this));a&&a.replaceChild(b,this)});return a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=ic.apply([],a);var c,d,j,l,e=0,f=this.length,g=this,p=f-1,n=a[0],r=h.isFunction(n);if(r||1<f&&"string"===typeof n&&!s.checkClone&&Bd.test(n))return this.each(function(c){var d=
g.eq(c);r&&(a[0]=n.call(this,c,d.html()));d.domManip(a,b)});if(f&&(l=h.buildFragment(a,this[0].ownerDocument,!1,this),c=l.firstChild,1===l.childNodes.length&&(l=c),c)){j=h.map(C(l,"script"),A);for(d=j.length;e<f;e++)c=l,e!==p&&(c=h.clone(c,!0,!0),d&&h.merge(j,C(c,"script"))),b.call(this[e],c,e);if(d){l=j[j.length-1].ownerDocument;h.map(j,x);for(e=0;e<d;e++)if(c=j[e],Fc.test(c.type||"")&&!h._data(c,"globalEval")&&h.contains(l,c))c.src?h._evalUrl&&h._evalUrl(c.src):h.globalEval((c.text||c.textContent||
c.innerHTML||"").replace(Cd,""))}l=c=null}return this}});h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){h.fn[a]=function(a){for(var c=0,d=[],m=h(a),j=m.length-1;c<=j;c++)a=c===j?this:this.clone(!0),h(m[c])[b](a),ob.apply(d,a.get());return this.pushStack(d)}});var Aa,Ub={},Ha,$a,xa=u.createElement("div");xa.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ha=xa.getElementsByTagName("a")[0];
Ha.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ha.style.opacity);s.cssFloat=!!Ha.style.cssFloat;xa.style.backgroundClip="content-box";xa.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===xa.style.backgroundClip;Ha=xa=null;s.shrinkWrapBlocks=function(){var a,b,c;if(null==$a){a=u.getElementsByTagName("body")[0];if(!a)return;b=u.createElement("div");c=u.createElement("div");a.appendChild(b).appendChild(c);$a=!1;typeof c.style.zoom!==P&&(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="<div></div>",c.firstChild.style.width="5px",$a=3!==c.offsetWidth);a.removeChild(b)}return $a};var Gc=/^margin/,Ka=RegExp("^("+Xa+")(?!px)[a-z%]+$","i"),ka,la,Dd=/^(top|right|bottom|left)$/;b.getComputedStyle?(ka=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},la=function(a,b,c){var d,j,l=a.style;j=(c=c||ka(a))?c.getPropertyValue(b)||c[b]:void 0;c&&(""===j&&!h.contains(a.ownerDocument,a)&&(j=h.style(a,b)),Ka.test(j)&&Gc.test(b)&&(a=l.width,b=l.minWidth,d=l.maxWidth,
l.minWidth=l.maxWidth=l.width=j,j=c.width,l.width=a,l.minWidth=b,l.maxWidth=d));return void 0===j?j:j+""}):u.documentElement.currentStyle&&(ka=function(a){return a.currentStyle},la=function(a,b,c){var d,j,h,l=a.style;h=(c=c||ka(a))?c[b]:void 0;null==h&&(l&&l[b])&&(h=l[b]);if(Ka.test(h)&&!Dd.test(b)){c=l.left;if(j=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;l.left="fontSize"===b?"1em":h;h=l.pixelLeft+"px";l.left=c;j&&(d.left=j)}return void 0===h?h:h+""||"auto"});var Ib=function(){var a,c,
d=u.getElementsByTagName("body")[0];d&&(a=u.createElement("div"),c=u.createElement("div"),a.style.cssText=Gb,d.appendChild(a).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(){Hb=4===c.offsetWidth}),ab=!0,bb=!1,cb=!0,b.getComputedStyle&&(bb="1%"!==(b.getComputedStyle(c,null)||{}).top,ab="4px"===(b.getComputedStyle(c,
null)||{width:"4px"}).width),d.removeChild(a),c=d=null)},Ia,db,Hb,ab,bb,cb,ya=u.createElement("div"),Gb="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";ya.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ia=ya.getElementsByTagName("a")[0];Ia.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ia.style.opacity);s.cssFloat=!!Ia.style.cssFloat;ya.style.backgroundClip="content-box";ya.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===
ya.style.backgroundClip;Ia=ya=null;h.extend(s,{reliableHiddenOffsets:function(){if(null!=db)return db;var a,b,c;b=u.createElement("div");var d=u.getElementsByTagName("body")[0];if(d)return b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=u.createElement("div"),a.style.cssText=Gb,d.appendChild(a).appendChild(b),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",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",db=c&&0===b[0].offsetHeight,d.removeChild(a),db},boxSizing:function(){null==Hb&&Ib();return Hb},boxSizingReliable:function(){null==ab&&Ib();return ab},pixelPosition:function(){null==bb&&Ib();return bb},reliableMarginRight:function(){var a,c,d,j;if(null==cb&&b.getComputedStyle){a=u.getElementsByTagName("body")[0];if(!a)return;c=u.createElement("div");d=u.createElement("div");c.style.cssText=Gb;a.appendChild(c).appendChild(d);j=
d.appendChild(u.createElement("div"));j.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";j.style.marginRight=j.style.width="0";d.style.width="1px";cb=!parseFloat((b.getComputedStyle(j,null)||{}).marginRight);a.removeChild(c)}return cb}});h.swap=function(a,b,c,d){var j,h={};for(j in b)h[j]=a.style[j],a.style[j]=b[j];c=c.apply(a,d||[]);for(j in b)a.style[j]=h[j];return c};var Jb=/alpha\([^)]*\)/i,
Ed=/opacity\s*=\s*([^)]*)/,Fd=/^(none|table(?!-c[ea]).+)/,Wc=RegExp("^("+Xa+")(.*)$","i"),Gd=RegExp("^([+-])=("+Xa+")","i"),Hd={position:"absolute",visibility:"hidden",display:"block"},Hc={letterSpacing:0,fontWeight:400},Xb=["Webkit","O","Moz","ms"];h.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=la(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,d){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var j,l,e,f=h.camelCase(b),g=a.style;b=h.cssProps[f]||(h.cssProps[f]=Wb(g,f));e=h.cssHooks[b]||h.cssHooks[f];if(void 0!==c){l=typeof c;if("string"===l&&(j=Gd.exec(c)))c=(j[1]+1)*j[2]+parseFloat(h.css(a,b)),l="number";if(!(null==c||c!==c))if("number"===l&&!h.cssNumber[f]&&(c+="px"),!s.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(g[b]="inherit"),!e||!("set"in e)||void 0!==(c=e.set(a,c,d)))try{g[b]=
"",g[b]=c}catch(p){}}else return e&&"get"in e&&void 0!==(j=e.get(a,!1,d))?j:g[b]}},css:function(a,b,c,d){var j,l;l=h.camelCase(b);b=h.cssProps[l]||(h.cssProps[l]=Wb(a.style,l));(l=h.cssHooks[b]||h.cssHooks[l])&&"get"in l&&(j=l.get(a,!0,c));void 0===j&&(j=la(a,b,d));"normal"===j&&b in Hc&&(j=Hc[b]);return""===c||c?(a=parseFloat(j),!0===c||h.isNumeric(a)?a||0:j):j}});h.each(["height","width"],function(a,b){h.cssHooks[b]={get:function(a,c,d){if(c)return 0===a.offsetWidth&&Fd.test(h.css(a,"display"))?
h.swap(a,Hd,function(){return ac(a,b,d)}):ac(a,b,d)},set:function(a,c,d){var j=d&&ka(a);return Zb(a,c,d?$b(a,b,d,s.boxSizing()&&"border-box"===h.css(a,"boxSizing",!1,j),j):0)}}});s.opacity||(h.cssHooks.opacity={get:function(a,b){return Ed.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,j=h.isNumeric(b)?"alpha(opacity="+100*b+")":"",l=d&&d.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===
h.trim(l.replace(Jb,""))&&c.removeAttribute)if(c.removeAttribute("filter"),""===b||d&&!d.filter)return;c.filter=Jb.test(l)?l.replace(Jb,j):l+" "+j}});h.cssHooks.marginRight=Vb(s.reliableMarginRight,function(a,b){if(b)return h.swap(a,{display:"inline-block"},la,[a,"marginRight"])});h.each({margin:"",padding:"",border:"Width"},function(a,b){h.cssHooks[a+b]={expand:function(c){var d=0,j={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)j[a+ja[d]+b]=c[d]||c[d-2]||c[0];return j}};Gc.test(a)||(h.cssHooks[a+
b].set=Zb)});h.fn.extend({css:function(a,b){return pa(this,function(a,b,c){var d,j={},m=0;if(h.isArray(b)){c=ka(a);for(d=b.length;m<d;m++)j[b[m]]=h.css(a,b[m],!1,c);return j}return void 0!==c?h.style(a,b,c):h.css(a,b)},a,b,1<arguments.length)},show:function(){return Yb(this,!0)},hide:function(){return Yb(this)},toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){Ba(this)?h(this).show():h(this).hide()})}});h.Tween=M;M.prototype={constructor:M,init:function(a,
b,c,d,j,l){this.elem=a;this.prop=c;this.easing=j||"swing";this.options=b;this.start=this.now=this.cur();this.end=d;this.unit=l||(h.cssNumber[c]?"":"px")},cur:function(){var a=M.propHooks[this.prop];return a&&a.get?a.get(this):M.propHooks._default.get(this)},run:function(a){var b,c=M.propHooks[this.prop];this.pos=this.options.duration?b=h.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,
this.now,this);c&&c.set?c.set(this):M.propHooks._default.set(this);return this}};M.prototype.init.prototype=M.prototype;M.propHooks={_default:{get:function(a){if(null!=a.elem[a.prop]&&(!a.elem.style||null==a.elem.style[a.prop]))return a.elem[a.prop];a=h.css(a.elem,a.prop,"");return!a||"auto"===a?0:a},set:function(a){if(h.fx.step[a.prop])h.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[h.cssProps[a.prop]]||h.cssHooks[a.prop])?h.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};M.propHooks.scrollTop=
M.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};h.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};h.fx=M.prototype.init;h.fx.step={};var sa,eb,Id=/^(?:toggle|show|hide)$/,Ic=RegExp("^(?:([+-])=|)("+Xa+")([a-z%]*)$","i"),Jd=/queueHooks$/,Ma=[function(a,b,c){var d,j,l,e,f,g,p=this,n={},r=a.style,k=a.nodeType&&Ba(a),t=h._data(a,"fxshow");c.queue||(e=h._queueHooks(a,"fx"),null==e.unqueued&&(e.unqueued=0,f=e.empty.fire,
e.empty.fire=function(){e.unqueued||f()}),e.unqueued++,p.always(function(){p.always(function(){e.unqueued--;h.queue(a,"fx").length||e.empty.fire()})}));if(1===a.nodeType&&("height"in b||"width"in b))c.overflow=[r.overflow,r.overflowX,r.overflowY],j=h.css(a,"display"),g=Tb(a.nodeName),"none"===j&&(j=g),"inline"===j&&"none"===h.css(a,"float")&&(!s.inlineBlockNeedsLayout||"inline"===g?r.display="inline-block":r.zoom=1);c.overflow&&(r.overflow="hidden",s.shrinkWrapBlocks()||p.always(function(){r.overflow=
c.overflow[0];r.overflowX=c.overflow[1];r.overflowY=c.overflow[2]}));for(d in b)if(j=b[d],Id.exec(j)){delete b[d];l=l||"toggle"===j;if(j===(k?"hide":"show"))if("show"===j&&t&&void 0!==t[d])k=!0;else continue;n[d]=t&&t[d]||h.style(a,d)}if(!h.isEmptyObject(n))for(d in t?"hidden"in t&&(k=t.hidden):t=h._data(a,"fxshow",{}),l&&(t.hidden=!k),k?h(a).show():p.done(function(){h(a).hide()}),p.done(function(){var b;h._removeData(a,"fxshow");for(b in n)h.style(a,b,n[b])}),n)b=cc(k?t[d]:0,d,p),d in t||(t[d]=b.start,
k&&(b.end=b.start,b.start="width"===d||"height"===d?1:0))}],Ca={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),j=Ic.exec(b),l=j&&j[3]||(h.cssNumber[a]?"":"px"),e=(h.cssNumber[a]||"px"!==l&&+d)&&Ic.exec(h.css(c.elem,a)),f=1,g=20;if(e&&e[3]!==l){l=l||e[3];j=j||[];e=+d||1;do f=f||".5",e/=f,h.style(c.elem,a,e+l);while(f!==(f=c.cur()/d)&&1!==f&&--g)}j&&(e=c.start=+e||+d||0,c.unit=l,c.end=j[1]?e+(j[1]+1)*j[2]:+j[2]);return c}]};h.Animation=h.extend(dc,{tweener:function(a,b){h.isFunction(a)?(b=
a,a=["*"]):a=a.split(" ");for(var c,d=0,j=a.length;d<j;d++)c=a[d],Ca[c]=Ca[c]||[],Ca[c].unshift(b)},prefilter:function(a,b){b?Ma.unshift(a):Ma.push(a)}});h.speed=function(a,b,c){var d=a&&"object"===typeof a?h.extend({},a):{complete:c||!c&&b||h.isFunction(a)&&a,duration:a,easing:c&&b||b&&!h.isFunction(b)&&b};d.duration=h.fx.off?0:"number"===typeof d.duration?d.duration:d.duration in h.fx.speeds?h.fx.speeds[d.duration]:h.fx.speeds._default;if(null==d.queue||!0===d.queue)d.queue="fx";d.old=d.complete;
d.complete=function(){h.isFunction(d.old)&&d.old.call(this);d.queue&&h.dequeue(this,d.queue)};return d};h.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ba).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var j=h.isEmptyObject(a),l=h.speed(b,c,d);b=function(){var b=dc(this,h.extend({},a),l);(j||h._data(this,"finish"))&&b.stop(!0)};b.finish=b;return j||!1===l.queue?this.each(b):this.queue(l.queue,b)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop;
b(c)};"string"!==typeof a&&(c=b,b=a,a=void 0);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b=!0,j=null!=a&&a+"queueHooks",l=h.timers,e=h._data(this);if(j)e[j]&&e[j].stop&&d(e[j]);else for(j in e)e[j]&&(e[j].stop&&Jd.test(j))&&d(e[j]);for(j=l.length;j--;)if(l[j].elem===this&&(null==a||l[j].queue===a))l[j].anim.stop(c),b=!1,l.splice(j,1);(b||!c)&&h.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b,c=h._data(this),d=c[a+"queue"];b=c[a+"queueHooks"];
var j=h.timers,l=d?d.length:0;c.finish=!0;h.queue(this,a,[]);b&&b.stop&&b.stop.call(this,!0);for(b=j.length;b--;)j[b].elem===this&&j[b].queue===a&&(j[b].anim.stop(!0),j.splice(b,1));for(b=0;b<l;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}});h.each(["toggle","show","hide"],function(a,b){var c=h.fn[b];h.fn[b]=function(a,d,j){return null==a||"boolean"===typeof a?c.apply(this,arguments):this.animate(La(b,!0),a,d,j)}});h.each({slideDown:La("show"),slideUp:La("hide"),slideToggle:La("toggle"),
fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){h.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});h.timers=[];h.fx.tick=function(){var a,b=h.timers,c=0;for(sa=h.now();c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||h.fx.stop();sa=void 0};h.fx.timer=function(a){h.timers.push(a);a()?h.fx.start():h.timers.pop()};h.fx.interval=13;h.fx.start=function(){eb||(eb=setInterval(h.fx.tick,h.fx.interval))};h.fx.stop=function(){clearInterval(eb);
eb=null};h.fx.speeds={slow:600,fast:200,_default:400};h.fn.delay=function(a,b){a=h.fx?h.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})};var fb,ga,Kb,Lb,Ja=u.createElement("div");Ja.setAttribute("className","t");Ja.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";fb=Ja.getElementsByTagName("a")[0];Kb=u.createElement("select");Lb=Kb.appendChild(u.createElement("option"));ga=Ja.getElementsByTagName("input")[0];
fb.style.cssText="top:1px";s.getSetAttribute="t"!==Ja.className;s.style=/top/.test(fb.getAttribute("style"));s.hrefNormalized="/a"===fb.getAttribute("href");s.checkOn=!!ga.value;s.optSelected=Lb.selected;s.enctype=!!u.createElement("form").enctype;Kb.disabled=!0;s.optDisabled=!Lb.disabled;ga=u.createElement("input");ga.setAttribute("value","");s.input=""===ga.getAttribute("value");ga.value="t";ga.setAttribute("type","radio");s.radioValue="t"===ga.value;var Kd=/\r/g;h.fn.extend({val:function(a){var b,
c,d,j=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(j){if((b=h.valHooks[j.type]||h.valHooks[j.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(j,"value")))return c;c=j.value;
return"string"===typeof c?c.replace(Kd,""):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,j=(a="select-one"===a.type||0>d)?null:[],l=a?d+1:c.length,e=0>d?l:a?d:0;e<l;e++)if(b=c[e],(b.selected||e===d)&&(s.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!h.nodeName(b.parentNode,"optgroup"))){b=h(b).val();if(a)return b;j.push(b)}return j},
set:function(a,b){for(var c,d,j=a.options,l=h.makeArray(b),e=j.length;e--;)if(d=j[e],0<=h.inArray(h.valHooks.option.get(d),l))try{d.selected=c=!0}catch(f){d.scrollHeight}else d.selected=!1;c||(a.selectedIndex=-1);return j}}}});h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(a,b){if(h.isArray(b))return a.checked=0<=h.inArray(h(a).val(),b)}};s.checkOn||(h.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var za,Jc,ha=h.expr.attrHandle,Mb=/^(?:checked|selected)$/i,
qa=s.getSetAttribute,gb=s.input;h.fn.extend({attr:function(a,b){return pa(this,h.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){h.removeAttr(this,a)})}});h.extend({attr:function(a,b,c){var d,j,l=a.nodeType;if(a&&!(3===l||8===l||2===l)){if(typeof a.getAttribute===P)return h.prop(a,b,c);if(1!==l||!h.isXMLDoc(a))b=b.toLowerCase(),d=h.attrHooks[b]||(h.expr.match.bool.test(b)?Jc:za);if(void 0!==c)if(null===c)h.removeAttr(a,b);else{if(d&&"set"in d&&void 0!==(j=d.set(a,
c,b)))return j;a.setAttribute(b,c+"");return c}else{if(d&&"get"in d&&null!==(j=d.get(a,b)))return j;j=h.find.attr(a,b);return null==j?void 0:j}}},removeAttr:function(a,b){var c,d,j=0,l=b&&b.match(X);if(l&&1===a.nodeType)for(;c=l[j++];)d=h.propFix[c]||c,h.expr.match.bool.test(c)?gb&&qa||!Mb.test(c)?a[d]=!1:a[h.camelCase("default-"+c)]=a[d]=!1:h.attr(a,c,""),a.removeAttribute(qa?c:d)},attrHooks:{type:{set:function(a,b){if(!s.radioValue&&"radio"===b&&h.nodeName(a,"input")){var c=a.value;a.setAttribute("type",
b);c&&(a.value=c);return b}}}}});Jc={set:function(a,b,c){!1===b?h.removeAttr(a,c):gb&&qa||!Mb.test(c)?a.setAttribute(!qa&&h.propFix[c]||c,c):a[h.camelCase("default-"+c)]=a[c]=!0;return c}};h.each(h.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ha[b]||h.find.attr;ha[b]=gb&&qa||!Mb.test(b)?function(a,b,d){var j,h;d||(h=ha[b],ha[b]=j,j=null!=c(a,b,d)?b.toLowerCase():null,ha[b]=h);return j}:function(a,b,c){if(!c)return a[h.camelCase("default-"+b)]?b.toLowerCase():null}});if(!gb||!qa)h.attrHooks.value=
{set:function(a,b,c){if(h.nodeName(a,"input"))a.defaultValue=b;else return za&&za.set(a,b,c)}};qa||(za={set:function(a,b,c){var d=a.getAttributeNode(c);d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c));d.value=b+="";if("value"===c||b===a.getAttribute(c))return b}},ha.id=ha.name=ha.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},h.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:za.set},h.attrHooks.contenteditable=
{set:function(a,b,c){za.set(a,""===b?!1:b,c)}},h.each(["width","height"],function(a,b){h.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}}));s.style||(h.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Ld=/^(?:input|select|textarea|button|object)$/i,Md=/^(?:a|area)$/i;h.fn.extend({prop:function(a,b){return pa(this,h.prop,a,b,1<arguments.length)},removeProp:function(a){a=h.propFix[a]||a;return this.each(function(){try{this[a]=
void 0,delete this[a]}catch(b){}})}});h.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,j,l;l=a.nodeType;if(a&&!(3===l||8===l||2===l)){if(l=1!==l||!h.isXMLDoc(a))b=h.propFix[b]||b,j=h.propHooks[b];return void 0!==c?j&&"set"in j&&void 0!==(d=j.set(a,c,b))?d:a[b]=c:j&&"get"in j&&null!==(d=j.get(a,b))?d:a[b]}},propHooks:{tabIndex:{get:function(a){var b=h.find.attr(a,"tabindex");return b?parseInt(b,10):Ld.test(a.nodeName)||Md.test(a.nodeName)&&a.href?0:-1}}}});s.hrefNormalized||
h.each(["href","src"],function(a,b){h.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}});s.optSelected||(h.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}});h.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){h.propFix[this.toLowerCase()]=this});s.enctype||(h.propFix.enctype="encoding");var Nb=/[\t\r\n\f]/g;h.fn.extend({addClass:function(a){var b,
c,d,j,l,e=0,f=this.length;b="string"===typeof a&&a;if(h.isFunction(a))return this.each(function(b){h(this).addClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(X)||[];e<f;e++)if(c=this[e],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Nb," "):" ")){for(l=0;j=b[l++];)0>d.indexOf(" "+j+" ")&&(d+=j+" ");d=h.trim(d);c.className!==d&&(c.className=d)}return this},removeClass:function(a){var b,c,d,j,l,e=0,f=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(X)||[];e<f;e++)if(c=this[e],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Nb," "):"")){for(l=0;j=b[l++];)for(;0<=d.indexOf(" "+j+" ");)d=d.replace(" "+j+" "," ");d=a?h.trim(d):"";c.className!==d&&(c.className=d)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"===typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):h.isFunction(a)?this.each(function(c){h(this).toggleClass(a.call(this,c,this.className,b),b)}):
this.each(function(){if("string"===c)for(var b,d=0,j=h(this),l=a.match(X)||[];b=l[d++];)j.hasClass(b)?j.removeClass(b):j.addClass(b);else if(c===P||"boolean"===c)this.className&&h._data(this,"__className__",this.className),this.className=this.className||!1===a?"":h._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&0<=(" "+this[b].className+" ").replace(Nb," ").indexOf(a))return!0;return!1}});h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){h.fn[b]=function(a,c){return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)}});h.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Ob=h.now(),Pb=/\?/,Nd=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
h.parseJSON=function(a){if(b.JSON&&b.JSON.parse)return b.JSON.parse(a+"");var c,d=null,j=h.trim(a+"");return j&&!h.trim(j.replace(Nd,function(a,b,j,l){c&&b&&(d=0);if(0===d)return a;c=j||b;d+=!l-!j;return""}))?Function("return "+j)():h.error("Invalid JSON: "+a)};h.parseXML=function(a){var c,d;if(!a||"string"!==typeof a)return null;try{b.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(j){c=void 0}(!c||!c.documentElement||
c.getElementsByTagName("parsererror").length)&&h.error("Invalid XML: "+a);return c};var ra,ia,Od=/#.*$/,Kc=/([?&])_=[^&]*/,Pd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Qd=/^(?:GET|HEAD)$/,Rd=/^\/\//,Lc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Mc={},kb={},Nc="*/".concat("*");try{ia=location.href}catch(ae){ia=u.createElement("a"),ia.href="",ia=ia.href}ra=Lc.exec(ia.toLowerCase())||[];h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ia,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ra[1]),
global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?lb(lb(a,
h.ajaxSettings),b):lb(h.ajaxSettings,a)},ajaxPrefilter:ec(Mc),ajaxTransport:ec(kb),ajax:function(a,b){function c(a,b,d,j){var m,n,D,v;v=b;if(2!==s){s=2;f&&clearTimeout(f);p=void 0;e=j||"";x.readyState=0<a?4:0;j=200<=a&&300>a||304===a;if(d){D=r;for(var A=x,z,u,V,E,w=D.contents,y=D.dataTypes;"*"===y[0];)y.shift(),void 0===u&&(u=D.mimeType||A.getResponseHeader("Content-Type"));if(u)for(E in w)if(w[E]&&w[E].test(u)){y.unshift(E);break}if(y[0]in d)V=y[0];else{for(E in d){if(!y[0]||D.converters[E+" "+y[0]]){V=
E;break}z||(z=E)}V=V||z}V?(V!==y[0]&&y.unshift(V),D=d[V]):D=void 0}a:{d=r;z=D;u=x;V=j;var B,H,Q,A={},w=d.dataTypes.slice();if(w[1])for(H in d.converters)A[H.toLowerCase()]=d.converters[H];for(E=w.shift();E;)if(d.responseFields[E]&&(u[d.responseFields[E]]=z),!Q&&(V&&d.dataFilter)&&(z=d.dataFilter(z,d.dataType)),Q=E,E=w.shift())if("*"===E)E=Q;else if("*"!==Q&&Q!==E){H=A[Q+" "+E]||A["* "+E];if(!H)for(B in A)if(D=B.split(" "),D[1]===E&&(H=A[Q+" "+D[0]]||A["* "+D[0]])){!0===H?H=A[B]:!0!==A[B]&&(E=D[0],
w.unshift(D[1]));break}if(!0!==H)if(H&&d["throws"])z=H(z);else try{z=H(z)}catch(F){D={state:"parsererror",error:H?F:"No conversion from "+Q+" to "+E};break a}}D={state:"success",data:z}}if(j)r.ifModified&&((v=x.getResponseHeader("Last-Modified"))&&(h.lastModified[l]=v),(v=x.getResponseHeader("etag"))&&(h.etag[l]=v)),204===a||"HEAD"===r.type?v="nocontent":304===a?v="notmodified":(v=D.state,m=D.data,n=D.error,j=!n);else if(n=v,a||!v)v="error",0>a&&(a=0);x.status=a;x.statusText=(b||v)+"";j?q.resolveWith(k,
[m,v,x]):q.rejectWith(k,[x,v,n]);x.statusCode(G);G=void 0;g&&t.trigger(j?"ajaxSuccess":"ajaxError",[x,r,j?m:n]);C.fireWith(k,[x,v]);g&&(t.trigger("ajaxComplete",[x,r]),--h.active||h.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var d,j,l,e,f,g,p,n,r=h.ajaxSetup({},b),k=r.context||r,t=r.context&&(k.nodeType||k.jquery)?h(k):h.event,q=h.Deferred(),C=h.Callbacks("once memory"),G=r.statusCode||{},D={},A={},s=0,u="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===
s){if(!n)for(n={};b=Pd.exec(e);)n[b[1].toLowerCase()]=b[2];b=n[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===s?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();s||(a=A[c]=A[c]||a,D[a]=b);return this},overrideMimeType:function(a){s||(r.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>s)for(b in a)G[b]=[G[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){a=a||u;p&&p.abort(a);c(0,a);return this}};q.promise(x).complete=
C.add;x.success=x.done;x.error=x.fail;r.url=((a||r.url||ia)+"").replace(Od,"").replace(Rd,ra[1]+"//");r.type=b.method||b.type||r.method||r.type;r.dataTypes=h.trim(r.dataType||"*").toLowerCase().match(X)||[""];null==r.crossDomain&&(d=Lc.exec(r.url.toLowerCase()),r.crossDomain=!(!d||!(d[1]!==ra[1]||d[2]!==ra[2]||(d[3]||("http:"===d[1]?"80":"443"))!==(ra[3]||("http:"===ra[1]?"80":"443")))));r.data&&(r.processData&&"string"!==typeof r.data)&&(r.data=h.param(r.data,r.traditional));fc(Mc,r,b,x);if(2===
s)return x;(g=r.global)&&0===h.active++&&h.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!Qd.test(r.type);l=r.url;r.hasContent||(r.data&&(l=r.url+=(Pb.test(l)?"&":"?")+r.data,delete r.data),!1===r.cache&&(r.url=Kc.test(l)?l.replace(Kc,"$1_="+Ob++):l+(Pb.test(l)?"&":"?")+"_="+Ob++));r.ifModified&&(h.lastModified[l]&&x.setRequestHeader("If-Modified-Since",h.lastModified[l]),h.etag[l]&&x.setRequestHeader("If-None-Match",h.etag[l]));(r.data&&r.hasContent&&!1!==r.contentType||b.contentType)&&
x.setRequestHeader("Content-Type",r.contentType);x.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+Nc+"; q=0.01":""):r.accepts["*"]);for(j in r.headers)x.setRequestHeader(j,r.headers[j]);if(r.beforeSend&&(!1===r.beforeSend.call(k,x,r)||2===s))return x.abort();u="abort";for(j in{success:1,error:1,complete:1})x[j](r[j]);if(p=fc(kb,r,b,x)){x.readyState=1;g&&t.trigger("ajaxSend",[x,r]);r.async&&0<r.timeout&&(f=setTimeout(function(){x.abort("timeout")},
r.timeout));try{s=1,p.send(D,c)}catch(w){if(2>s)c(-1,w);else throw w;}}else c(-1,"No Transport");return x},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,j){h.isFunction(c)&&(j=j||d,d=c,c=void 0);return h.ajax({url:a,type:b,dataType:j,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||!s.reliableHiddenOffsets()&&"none"===(a.style&&
a.style.display||h.css(a,"display"))};h.expr.filters.visible=function(a){return!h.expr.filters.hidden(a)};var Sd=/%20/g,Yc=/\[\]$/,Oc=/\r?\n/g,Td=/^(?:submit|button|image|reset|file)$/i,Ud=/^(?:input|select|textarea|keygen)/i;h.param=function(a,b){var c,d=[],j=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(){j(this.name,
this.value)});else for(c in a)mb(c,a[c],b,j);return d.join("&").replace(Sd,"+")};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")&&Ud.test(this.nodeName)&&!Td.test(a)&&(this.checked||!jb.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(Oc,"\r\n")}}):{name:b.name,value:c.replace(Oc,"\r\n")}}).get()}});h.ajaxSettings.xhr=void 0!==b.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&gc()))a:{try{a=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}a=void 0}return a}:gc;h.ajaxSettings.xhr=void 0===b.ActiveXObject?nb:function(){return(this.url==u.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&
nb()||nb(1)};var Vd=0,hb={},ib=h.ajaxSettings.xhr();if(b.ActiveXObject)h(b).on("unload",function(){for(var a in hb)hb[a](void 0,!0)});s.cors=!!ib&&"withCredentials"in ib;(ib=s.ajax=!!ib)&&h.ajaxTransport(function(a){if(!a.crossDomain||s.cors){var b;return{send:function(c,d){var j,l=a.xhr(),e=++Vd;console.log("xhr.open async="+a.async+" url="+a.url);l.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(j in a.xhrFields)l[j]=a.xhrFields[j];a.mimeType&&l.overrideMimeType&&l.overrideMimeType(a.mimeType);
!a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(j in c)void 0!==c[j]&&l.setRequestHeader(j,c[j]+"");l.send(a.hasContent&&a.data||null);b=function(c,j){var f,g,p;if(b&&(j||4===l.readyState))if(delete hb[e],b=void 0,l.onreadystatechange=h.noop,j)4!==l.readyState&&l.abort();else{p={};f=l.status;"string"===typeof l.responseText&&(p.text=l.responseText);try{g=l.statusText}catch(r){g=""}!f&&a.isLocal&&!a.crossDomain?f=p.text?200:404:1223===f&&(f=204)}p&&d(f,g,p,l.getAllResponseHeaders())};
a.async?4===l.readyState?setTimeout(b):l.onreadystatechange=hb[e]=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,j){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||j(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Pc=[],Qb=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){var a=Pc.pop()||h.expando+"_"+Ob++;this[a]=!0;return a}});h.ajaxPrefilter("json jsonp",function(a,c,d){var j,l,e,f=!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(f||"jsonp"===a.dataTypes[0])return j=a.jsonpCallback=h.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,f?a[f]=a[f].replace(Qb,"$1"+j):!1!==a.jsonp&&(a.url+=(Pb.test(a.url)?"&":"?")+a.jsonp+"="+
j),a.converters["script json"]=function(){e||h.error(j+" was not called");return e[0]},a.dataTypes[0]="json",l=b[j],b[j]=function(){e=arguments},d.always(function(){b[j]=l;a[j]&&(a.jsonpCallback=c.jsonpCallback,Pc.push(j));e&&h.isFunction(l)&&l(e[0]);e=l=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=vc.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 Qc=h.fn.load;h.fn.load=function(a,b,c){if("string"!==typeof a&&Qc)return Qc.apply(this,arguments);var d,j,l,e=this,f=a.indexOf(" ");0<=f&&(d=a.slice(f,a.length),a=a.slice(0,f));h.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(l="POST");0<e.length&&h.ajax({url:a,type:l,dataType:"html",data:b}).done(function(a){j=arguments;e.html(d?h("<div>").append(h.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){e.each(c,j||[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 Rc=b.document.documentElement;h.offset={setOffset:function(a,b,c){var d,j,l,e=h.css(a,"position"),f=h(a),g={};"static"===e&&(a.style.position="relative");l=f.offset();j=h.css(a,"top");d=h.css(a,"left");("absolute"===e||"fixed"===e)&&-1<h.inArray("auto",[j,d])?(d=f.position(),j=d.top,d=d.left):(j=parseFloat(j)||0,d=parseFloat(d)||0);h.isFunction(b)&&(b=b.call(a,c,l));null!=b.top&&(g.top=b.top-l.top+j);null!=b.left&&(g.left=
b.left-l.left+d);"using"in b?b.using.call(a,g):f.css(g)}};h.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){h.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},j=(c=this[0])&&c.ownerDocument;if(j){b=j.documentElement;if(!h.contains(b,c))return d;typeof c.getBoundingClientRect!==P&&(d=c.getBoundingClientRect());c=hc(j);return{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}}},position:function(){if(this[0]){var a,
b,c={top:0,left:0},d=this[0];"fixed"===h.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),h.nodeName(a[0],"html")||(c=a.offset()),c.top+=h.css(a[0],"borderTopWidth",!0),c.left+=h.css(a[0],"borderLeftWidth",!0));return{top:b.top-c.top-h.css(d,"marginTop",!0),left:b.left-c.left-h.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Rc;a&&!h.nodeName(a,"html")&&"static"===h.css(a,"position");)a=a.offsetParent;return a||
Rc})}});h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);h.fn[a]=function(d){return pa(this,function(a,d,j){var l=hc(a);if(void 0===j)return l?b in l?l[b]:l.document.documentElement[d]:a[d];l?l.scrollTo(!c?j:h(l).scrollLeft(),c?j:h(l).scrollTop()):a[d]=j},a,d,arguments.length,null)}});h.each(["top","left"],function(a,b){h.cssHooks[b]=Vb(s.pixelPosition,function(a,c){if(c)return c=la(a,b),Ka.test(c)?h(a).position()[b]+"px":c})});h.each({Height:"height",Width:"width"},
function(a,b){h.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){h.fn[d]=function(d,j){var l=arguments.length&&(c||"boolean"!==typeof d),e=c||(!0===d||!0===j?"margin":"border");return pa(this,function(b,c,d){return h.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(c=b.documentElement,Math.max(b.body["scroll"+a],c["scroll"+a],b.body["offset"+a],c["offset"+a],c["client"+a])):void 0===d?h.css(b,c,e):h.style(b,c,d,e)},b,l?d:void 0,l,null)}})});h.fn.size=function(){return this.length};
h.fn.andSelf=h.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return h});var Wd=b.jQuery,Xd=b.$;h.noConflict=function(a){b.$===h&&(b.$=Xd);a&&b.jQuery===h&&(b.jQuery=Wd);return h};typeof k===P&&(b.jQuery=b.$=h);return h});
(function(b){function k(b){try{return b?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest}catch(g){}}b.ajaxSettings.xhr=void 0===window.ActiveXObject?k:function(){return(this.url==document.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&k()||k(1)};b.ajaxTransport("+script",function(b){var g,e=document.head||jQuery("head")[0]||document.documentElement;return{send:function(n,k){g=document.createElement("script");b.scriptCharset&&
(g.charset=b.scriptCharset);g.src=b.url;g.onload=g.onreadystatechange=function(b,a){if(a||!g.readyState||/loaded|complete/.test(g.readyState))g.onload=g.onreadystatechange=null,g.parentNode&&g.parentNode.removeChild(g),g=null,a||k(200,"success")};e.insertBefore(g,e.firstChild)},abort:function(){if(g)g.onload(void 0,!0)}}});b.extend(b.support,{iecors:!!window.XDomainRequest});b.support.iecors?b.ajaxTransport(function(b){return{send:function(g,e){var n=new window.XDomainRequest;n.onload=function(){e(200,
"OK",{text:n.responseText},{"Content-Type":n.contentType})};b.xhrFields&&(n.onerror=b.xhrFields.error,n.ontimeout=b.xhrFields.timeout);n.open(b.type,b.url);n.send(b.hasContent&&b.data||null)},abort:function(){xdr.abort()}}}):(b.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},responseFields:{binary:"response"}}),b.ajaxTransport("binary",function(b){var g;return{send:function(e,n){var k=b.xhr();console.log("xhr.open binary async="+b.async+" url="+b.url);k.open(b.type,b.url,b.async);
var d=!1;try{k.hasOwnProperty("responseType")&&(k.responseType="arraybuffer",d=!0)}catch(a){}try{!d&&k.overrideMimeType&&k.overrideMimeType("text/plain; charset=x-user-defined")}catch(c){}!b.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(var j in e)k.setRequestHeader(j,e[j])}catch(p){}k.send(b.hasContent&&b.data||null);g=function(){var a=k.status,c="",d=k.getAllResponseHeaders(),j={};try{if(g&&4===k.readyState){g=void 0;try{j.text="string"===typeof k.responseText?
k.responseText:null}catch(e){}try{j.binary=k.response}catch(p){}try{c=k.statusText}catch(A){c=""}!a&&b.isLocal&&!b.crossDomain?a=j.text?200:404:1223===a&&(a=204);n(a,c,j,d)}}catch(x){alert(x),n(-1,x)}};b.async?4===k.readyState?setTimeout(g):k.onreadystatechange=g:g()},abort:function(){}}}))})(jQuery);
(function(b,k,f,g){function e(e,f){function d(c){b(a).each(function(){self.Jmol&&(0<=f.indexOf("mouseup")||0<=f.indexOf("touchend"))&&Jmol._setMouseOwner(null);var a=b(this);this!==c.target&&!a.has(c.target).length&&a.triggerHandler(f,[c.target,c])})}f=f||e+g;var a=b(),c=e+"."+f+"-special-event";b.event.special[f]={setup:function(){a=a.add(this);1===a.length&&b(k).bind(c,d)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);a=a.not(this);0===a.length&&b(k).unbind(c)},add:function(a){var b=
a.handler;a.handler=function(a,c){a.target=c;b.apply(this,arguments)}}}}b.map(f.split(" "),function(b){e(b)});e("focusin","focus"+g);e("focusout","blur"+g)})(jQuery,document,"click mousemove mouseup touchmove touchend","outjsmol");"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined.");self.Jmol||(Jmol={});
Jmol._version||(Jmol=function(b){var k=function(b){return{header:b++,rear:b++,main:b++,image:b++,front:b++,fileOpener:b++,coverImage:b++,dialog:b++,menu:b+9E4,console:b+91E3,monitorZIndex:b+99999}},k={_version:"$Date: 2014-12-19 08:17:57 -0600 (Fri, 19 Dec 2014) $",_alertNoBinary:!0,_allowedJmolSize:[25,2048,300],_appletCssClass:"",_appletCssText:"",_fileCache:null,_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:90,_applets:{},_asynchronous:!0,_ajaxQueue:[],_getZOrders:k,_z:k(Jmol.z||
9E3),_debugCode:!0,db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"",_DirectDatabaseCalls:{"cactus.nci.nih.gov":"%URL","www.rcsb.org":"%URL","pdbe.org":"%URL","www.ebi.ac.uk":"%URL","wwwdev.ebi.ac.uk":"%URL","pubchem.ncbi.nlm.nih.gov":"%URL",
"http://www.nmrdb.org/tools/jmol/predict.php":"%URL",$:"http://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf&get3d=True",$$:"http://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf","=":"http://www.rcsb.org/pdb/files/%FILE.pdb","*":"http://www.ebi.ac.uk/pdbe/entry-files/download/%FILE.cif","==":"http://www.rcsb.org/pdb/files/ligand/%FILE.cif",":":"http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",
_restQueryXml:"<orgPdbQuery><queryType>org.pdb.query.simple.AdvancedKeywordQuery</queryType><description>Text Search</description><keywords>QUERY</keywords></orgPdbQuery>",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:b,_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};b=b.location.href.toLowerCase();k._httpProto=0==b.indexOf("https")?"https://":"http://";k._isFile=0==b.indexOf("file:");k._ajaxTestSite=k._httpProto+"google.com";b=k._isFile||0==b.indexOf("http://localhost")||0==b.indexOf("http://127.");k._tracker="http://"==k._httpProto&&!b&&"http://chemapps.stolaf.edu/jmol/JmolTracker.htm?id=UA-45940799-1";k._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");k._isSafari=!k._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");
k._isMsie=void 0!==window.ActiveXObject;k._useDataURI=!k._isSafari&&!k._isMsie;for(var f in Jmol)k[f]=Jmol[f];return k}(document,Jmol));
(function(b,k){k(document).ready(function(){b._document=null});b.$=function(a,b){null==a&&alert(b+arguments.callee.caller.toString());return k(b?"#"+a._id+"_"+b:a)};b._$=function(a){return"string"==typeof a?k("#"+a):a};b.$ajax=function(a){b._ajaxCall=a.url;a.cache="NO"!=a.cache;0==a.url.indexOf("http://pubchem.ncbi.nlm.nih")&&(a.url="https://"+a.url.substring(7));return k.ajax(a)};b._getNCIInfo=function(a,c){return b._getFileData("http://cactus.nci.nih.gov/chemical/structure/"+a+"/"+("name"==c?"names":
c))};b.$appEvent=function(a,c,d,e){a=b.$(a,c);a.off(d)&&e&&a.on(d,e)};b.$resize=function(a){return k(window).resize(a)};b.$after=function(a,b){return k(a).after(b)};b.$bind=function(a,b,d){return d?k(a).bind(b,d):k(a).unbind(b)};b.$closest=function(a,b){return k(a).closest(b)};b.$get=function(a,b){return k(a).get(b)};b.$documentOff=function(a,b){return k(document).off(a,"#"+b)};b.$documentOn=function(a,b,d){return k(document).on(a,"#"+b,d)};b.$getAncestorDiv=function(a,b){return k("div."+b+":has(#"+
a+")")[0]};b.$supportsIECrossDomainScripting=function(){return k.support.iecors};b.$attr=function(a,c,d){return b._$(a).attr(c,d)};b.$css=function(a,c){return b._$(a).css(c)};b.$find=function(a,c){return b._$(a).find(c)};b.$focus=function(a){return b._$(a).focus()};b.$html=function(a,c){return b._$(a).html(c)};b.$offset=function(a){return b._$(a).offset()};b.$windowOn=function(a,b){return k(window).on(a,b)};b.$prop=function(a,c,d){var e=b._$(a);return 3==arguments.length?e.prop(c,d):e.prop(c)};b.$remove=
function(a){return b._$(a).remove()};b.$scrollTo=function(a,c){var d=b._$(a);return d.scrollTop(0>c?d[0].scrollHeight:c)};b.$setEnabled=function(a,c){return b._$(a).attr("disabled",c?null:"disabled")};b.$setSize=function(a,c,d){return b._$(a).width(c).height(d)};b.$setVisible=function(a,c){var d=b._$(a);return c?d.show():d.hide()};b.$submit=function(a){return b._$(a).submit()};b.$val=function(a,c){var d=b._$(a);return 1==arguments.length?d.val():d.val(c)};b._clearVars=function(){delete jQuery;delete k;
delete b;delete SwingController;delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var f=document,g=window,e={};e.ua=navigator.userAgent.toLowerCase();var n;a:{n=["linux","unix","mac","win"];for(var q=n.length;q--;)if(-1!=e.ua.indexOf(n[q])){n=n[q];break a}n="unknown"}e.os=n;e.browser=function(){for(var a=e.ua,b="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),d=0;d<b.length;d++)if(0<=a.indexOf(b[d]))return b[d];return"unknown"};
e.browserName=e.browser();e.browserVersion=parseFloat(e.ua.substring(e.ua.indexOf(e.browserName)+e.browserName.length+1));e.supportsXhr2=function(){return k.support.cors||k.support.iecors};e.allowDestroy="msie"!=e.browserName;e.allowHTML5="msie"!=e.browserName||0>navigator.appVersion.indexOf("MSIE 8");e.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};e._webGLtest=0;e.supportsWebGL=function(){if(!b.featureDetection._webGLtest){var a;b.featureDetection._webGLtest=
g.WebGLRenderingContext&&((a=f.createElement("canvas")).getContext("webgl")||a.getContext("experimental-webgl"))?1:-1}return 0<b.featureDetection._webGLtest};e.supportsLocalization=function(){for(var a=f.getElementsByTagName("meta"),b=a.length;0<=--b;)if(0<=a[b].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};e.supportsJava=function(){b.featureDetection._javaEnabled||(b.featureDetection._javaEnabled=b._isMsie?navigator.javaEnabled()?1:-1:navigator.javaEnabled()&&(!navigator.mimeTypes||
navigator.mimeTypes["application/x-java-applet"])?1:-1);return 0<b.featureDetection._javaEnabled};e.compliantBrowser=function(){var a=!!f.getElementById,b=e.os;if("opera"==e.browserName&&7.54>=e.browserVersion&&"mac"==b||"webkit"==e.browserName&&125.12>e.browserVersion||"msie"==e.browserName&&"mac"==b||"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=g.File&&g.FileReader;b.featureDetection=e;b._ajax=function(a){if(!a.async)return b.$ajax(a).responseText;b._ajaxQueue.push(a);1==b._ajaxQueue.length&&b._ajaxDone()};b._ajaxDone=function(){var a=b._ajaxQueue.shift();a&&b.$ajax(a)};b._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],
["*","PDBe(macromolecules)"]];b._getGrabberOptions=function(a){if(0==b._grabberOptions.length)return"";var c='<input type="text" id="ID_query" onfocus="jQuery(this).select()" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',d='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==b._grabberOptions.length?(c="<nobr>"+c+'<span style="display:none">',d="</span>"+d):c+="<br /><nobr>";for(var c=c+'<select id="ID_select">',
e=0;e<b._grabberOptions.length;e++)var f=b._grabberOptions[e],c=c+('<option value="'+f[0]+'" '+(0==e?"selected":"")+">"+f[1]+"</option>");c=(c+"</select>"+d).replace(/ID/g,a._id);return"<br />"+c};b._getScriptForDatabase=function(a){return"$"==a?b.db._nciLoadScript:":"==a?b.db._pubChemLoadScript:b.db._fileLoadScript};b._setInfo=function(a,b,d){var e=[],f="";if(0==d.indexOf("ERROR"))f=d;else switch(b){case "=":b=d.split("<dimStructure.structureId>");e=["<table>"];for(d=1;d<b.length;d++)e.push('<tr><td valign=top><a href="javascript:Jmol.search('+
a._id+",'="+b[d].substring(0,4)+"')\">"+b[d].substring(0,4)+"</a></td>"),e.push("<td>"+b[d].split("Title>")[1].split("</")[0]+"</td></tr>");e.push("</table>");f=b.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=f;a._info=e.join("");a._showInfo(!0)};b._loadSuccess=function(a,c){c&&(b._ajaxDone(),c(a))};b._loadError=function(a){b._ajaxDone();b.say("Error connecting to server: "+b._ajaxCall);null!=a&&a()};b._isDatabaseCall=function(a){return 0<=b.db._databasePrefixes.indexOf(a.substring(0,
1))};b._getDirectDatabaseCall=function(a,c){if(c&&!b.featureDetection.supportsXhr2())return a;var d=2,e,f=b.db._DirectDatabaseCalls[a.substring(0,d)];f||(f=b.db._DirectDatabaseCalls[e=a.substring(0,--d)]);f&&(":"==e?(e=a.toLowerCase(),isNaN(parseInt(a.substring(1)))?0==e.indexOf(":smiles:")?(f+="?POST?smiles="+a.substring(8),a="smiles"):0==e.indexOf(":cid:")?a="cid/"+a.substring(5):(0==e.indexOf(":name:")?a=a.substring(5):0==e.indexOf(":cas:")&&(a=a.substring(4)),a="name/"+encodeURIComponent(a.substring(d))):
a="cid/"+a.substring(1)):a=encodeURIComponent(a.substring(d)),0<=f.indexOf("FILENCI")?(a=a.replace(/\%2F/g,"/"),a=f.replace(/\%FILENCI/,a)):a=f.replace(/\%FILE/,a));return a};b._getRawDataFromServer=function(a,c,d,e,f,l){a="?call=getRawDataFromDatabase&database="+a+(0<=c.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(c)+(f?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(b._getScriptForDatabase(a)));return b._contactServer(a,d,e)};b._checkFileName=function(a,c,d){b._isDatabaseCall(c)&&
(d&&b._setQueryTerm(a,c),c=b._getDirectDatabaseCall(c,!0),b._isDatabaseCall(c)&&(c=b._getDirectDatabaseCall(c,!1),d&&(d[0]=!0)));return c};b._checkCache=function(a,c,d){if(a._cacheFiles&&b._fileCache&&!c.endsWith(".js")){if(a=b._fileCache[c])return System.out.println("using "+a.length+" bytes of cached data for "+c),d(a),null;d=function(a,c){d(b._fileCache[a]=c)}}return d};b._loadFileData=function(a,c,d,e){var f=[];c=b._checkFileName(a,c,f);d=b._checkCache(a,c,d);f[0]?b._getRawDataFromServer("_",
c,d,e):(a={type:"GET",dataType:"text",url:c,async:b._asynchronous,success:function(a){b._loadSuccess(a,d)},error:function(){b._loadError(e)}},b._checkAjaxPost(a),b._ajax(a))};b._getInfoFromDatabase=function(a,c,d){if("===="==c){var e=b.db._restQueryXml.replace(/QUERY/,d),e={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:b.db._restQueryUrl,data:encodeURIComponent(e)+"&req=browser",success:function(e){b._ajaxDone();b._extractInfoFromRCSB(a,c,d,e)},error:function(){b._loadError(null)},
async:b._asynchronous};return b._ajax(e)}d="?call=getInfoFromDatabase&database="+c+"&query="+encodeURIComponent(d);return b._contactServer(d,function(d){b._setInfo(a,c,d)})};b._extractInfoFromRCSB=function(a,c,d,e){var f=e.length/5;if(0!=f&&4==d.length&&1!=f){d=d.toUpperCase();var l=e.indexOf(d);0<l&&0<="123456789".indexOf(d.substring(0,1))&&(e=d+","+e.substring(0,l)+e.substring(l+5));50<f&&(e=e.substring(0,250));e=e.replace(/\n/g,",");e=b._restReportUrl.replace(/IDLIST/,e);b._loadFileData(a,e,function(d){b._setInfo(a,
c,d)})}};b._checkAjaxPost=function(a){var b=a.url.indexOf("?POST?");0<b&&(a.data=a.url.substring(b+6),a.url=a.url.substring(0,b),a.type="POST",a.contentType="application/x-www-form-urlencoded")};b._contactServer=function(a,c,d){a={dataType:"text",type:"GET",url:b._serverUrl+a,success:function(a){b._loadSuccess(a,c)},error:function(){b._loadError(d)},async:c?b._asynchronous:!1};b._checkAjaxPost(a);return b._ajax(a)};b._setQueryTerm=function(a,c){if(c&&a._hasOptions&&"http://"!=c.substring(0,7)){if(b._isDatabaseCall(c)){var d=
c.substring(0,1);c=c.substring(1);c.substring(0,1)==d&&0<="=$".indexOf(d)&&(c=c.substring(1));var e=b._getElement(a,"select");if(e&&e.options)for(var f=0;f<e.options.length;f++)e[f].value==d&&(e[f].selected=!0)}b.$val(b.$(a,"query"),c)}};b._search=function(a,c,d){1<arguments.length||(c=null);b._setQueryTerm(a,c);c||(c=b.$val(b.$(a,"query")));0==c.indexOf("!")?a._script(c.substring(1)):(c&&(c=c.replace(/\"/g,"")),a._showInfo(!1),b._searchMol(a,c,d,!0))};b._searchMol=function(a,c,d,e){var f;b._isDatabaseCall(c)?
(f=c.substring(0,1),c=c.substring(1)):f=a._hasOptions?b.$val(b.$(a,"select")):"$";"="==f&&3==c.length&&(c="="+c);var l=f+c;if(c&&!(0>l.indexOf("?")&&l==a._thisJmolModel)){a._thisJmolModel=l;var g;e&&null!=a._viewSet&&null!=(g=b.View.__findView(a._viewSet,{chemID:l}))?b.View.__setView(g,a,!1):("$"==f||":"==f?a._jmolFileType="MOL":"="==f&&(a._jmolFileType="PDB"),a._searchDatabase(c,f,d))}};b._searchDatabase=function(a,c,d,e){a._showInfo(!1);return 0<=c.indexOf("?")?(b._getInfoFromDatabase(a,d,c.split("?")[0]),
!0):b.db._DirectDatabaseCalls[d]?(a._loadFile(d+c,e),!0):!1};b._syncBinaryOK="?";b._canSyncBinary=function(a){if(b._isAsync)return!0;if(self.VBArray)return b._syncBinaryOK=!1;if("?"!=b._syncBinaryOK)return b._syncBinaryOK;b._syncBinaryOK=!0;try{var c=new window.XMLHttpRequest;c.open("text",b._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"),
b._alertNoBinary&&!a&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),b._syncBinaryOK=!1}return!0};b._binaryTypes=".gz .jpg .gif .png .zip .jmol .bin .smol .spartan .mrc .pse .map .omap".split(" ");b._isBinaryUrl=function(a){for(var c=b._binaryTypes.length;0<=--c;)if(0<=a.indexOf(b._binaryTypes[c]))return!0;return!1};b._getFileData=function(a,c,d){var e=b._isBinaryUrl(a),f=0<=a.indexOf("pdb.gz")&&0==a.indexOf("http://www.rcsb.org/pdb/files/"),l=e&&!b._canSyncBinary(f);
l&&f&&(a=a.replace(/pdb\.gz/,"pdb"),l=e=!1);f=0<=a.indexOf("?POST?");0==a.indexOf("file:/")&&0!=a.indexOf("file:///")&&(a="file://"+a.substring(5));var g=0>a.indexOf("://")||0==a.indexOf(document.location.protocol)&&0<=a.indexOf(document.location.host),n=b._isDirectCall(a),k=!g&&b.$supportsIECrossDomainScripting(),q=null;if((!c||l)&&(k||l||!g&&!n))q=b._getRawDataFromServer("_",a,c,c,l,!0);else{a=a.replace(/file:\/\/\/\//,"file://");var A={dataType:e?"binary":"text",async:!!c};f?(A.type="POST",A.url=
a.split("?POST?")[0],A.data=a.split("?POST?")[1]):(A.type="GET",A.url=a);c&&(A.success=function(){c(b._xhrReturn(A.xhr))},A.error=function(){xxi=A;c(A.xhr.statusText)});A.xhr=b.$ajax(A);c||(q=b._xhrReturn(A.xhr))}if(!d)return q;null==q&&(q="",e=!1);e&&(e=b._canSyncBinary(!0));return e?b._strToBytes(q):JU.SB.newS(q)};b._xhrReturn=function(a){return!a.responseText||self.Clazz&&Clazz.instanceOf(a.response,self.ArrayBuffer)?a.response||a.statusText:a.responseText};b._isDirectCall=function(a){for(var c in b.db._DirectDatabaseCalls)if(0<=
c.indexOf(".")&&0<=a.indexOf(c))return!0;return!1};b._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};b._getFileType=function(a){var b=a.substring(0,1);if("$"==b||":"==b)return"MOL";if("="==b)return"="==a.substring(1,2)?"LCIF":"PDB";a=a.split(".").pop().toUpperCase();return a.substring(0,Math.min(a.length,3))};b._getZ=function(a,c){return a&&a._z&&a._z[c]||b._z[c]};b._incrZ=function(a,c){return a&&a._z&&++a._z[c]||
++b._z[c]};b._loadFileAsynchronously=function(a,c,d,e){if(0!=d.indexOf("?")){var f=d;d=b._checkFileName(c,d);var l=function(c){b._setData(a,d,f,c,e)},l=b._checkCache(c,d,l);0<=d.indexOf("|")&&(d=d.split("|")[0]);return null==l?null:b._getFileData(d,l)}if(!b.featureDetection.hasFileReader)return a.setData("Local file reading is not enabled in your browser",null,null,e);c._localReader||(l='<div id="ID" style="z-index:'+b._getZ(c,"fileOpener")+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>',
b.$after("#"+c._id+"_appletdiv",l.replace(/ID/g,c._id+"_localReader")),c._localReader=b.$(c,"localReader"));b.$appEvent(c,"localReader_loadfile","click");b.$appEvent(c,"localReader_loadfile","click",function(){var d=b.$(c,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState==FileReader.DONE&&(b.$css(b.$(c,"localReader"),{display:"none"}),b._setData(a,d.name,d.name,j.target.result,e))};j.readAsArrayBuffer(d)});b.$appEvent(c,"localReader_cancel","click");b.$appEvent(c,
"localReader_cancel","click",function(){b.$css(b.$(c,"localReader"),{display:"none"});a.setData(null,null,null,e)});b.$css(b.$(c,"localReader"),{display:"block"})};b._setData=function(a,c,d,e,f){e=b._strToBytes(e);0<=c.indexOf(".jdx")&&b.Cache.put("cache://"+c,e);a.setData(c,d,e,f)};b._toBytes=function(a){if("string"==typeof a)return a.getBytes();a=new Uint8Array(a);for(var b=Clazz.newByteArray(a.length,0),d=a.length;0<=--d;)b[d]=a[d];return b};b._doAjax=function(a,c,d){a=a.toString();if(null!=d)return b._saveFile(a,
d);c&&(a+="?POST?"+c);return b._getFileData(a,null,!0)};b._saveFile=function(a,c,d,e){if(b._localFileSaveFunction&&b._localFileSaveFunction(a,c))return"OK";a=a.substring(a.lastIndexOf("/")+1);d||(d=0<=a.indexOf(".pdf")?"application/pdf":0<=a.indexOf(".png")?"image/png":0<=a.indexOf(".gif")?"image/gif":0<=a.indexOf(".jpg")?"image/jpg":"");var f="string"==typeof c;f||(c=(JU?JU:J.util).Base64.getBase64(c).toString());e||(e=f?"":"base64");(f=b._serverUrl)&&0<=f.indexOf("your.server")&&(f="");b._useDataURI||
!f?(e||(c=btoa(c)),e=document.createElement("a"),e.href="data:"+d+";base64,"+c,e.type=d||"text/plain",e.download=a,e.target="_blank",k("body").append(e),e.click(),e.remove()):(b._formdiv||(b.$after("body",'<div id="__jsmolformdiv__" style="display:none">\t\t\t\t\t\t<form id="__jsmolform__" method="post" target="_blank" action="">\t\t\t\t\t\t<input name="call" value="saveFile"/>\t\t\t\t\t\t<input id="__jsmolmimetype__" name="mimetype" value=""/>\t\t\t\t\t\t<input id="__jsmolencoding__" name="encoding" value=""/>\t\t\t\t\t\t<input id="__jsmolfilename__" name="filename" value=""/>\t\t\t\t\t\t<textarea id="__jsmoldata__" name="data"></textarea>\t\t\t\t\t\t</form>\t\t\t\t\t\t</div>'),
b._formdiv="__jsmolform__"),b.$attr(b._formdiv,"action",f+"?"+(new Date).getMilliseconds()),b.$val("__jsmoldata__",c),b.$val("__jsmolfilename__",a),b.$val("__jsmolmimetype__",d),b.$val("__jsmolencoding__",e),b.$submit("__jsmolform__"),b.$val("__jsmoldata__",""),b.$val("__jsmolfilename__",""));return"OK"};b._strToBytes=function(a){if(Clazz.instanceOf(a,self.ArrayBuffer))return b._toBytes(a);for(var c=Clazz.newByteArray(a.length,0),d=a.length;0<=--d;)c[d]=a.charCodeAt(d)&255;return c};b._setConsoleDiv=
function(a){self.Clazz&&Clazz.setConsoleDiv(a)};b._registerApplet=function(a,c){return window[a]=b._applets[a]=b._applets[c]=b._applets[a+"__"+b._syncId+"__"]=c};b._readyCallback=function(a,c,d,e){a=a.split("_object")[0];d=d.booleanValue?d.booleanValue():d;b._track(b._applets[a])._readyCallback(a,c,d,e)};b._getWrapper=function(a,c){var d;if(c){var e="";a._coverImage&&(e=' onclick="Jmol.coverApplet(ID, false)" title="'+a._coverTitle+'"',d='<image id="ID_coverclickgo" src="'+a._j2sPath+'/img/play_make_live.jpg" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+
b._getZ(a,"coverImage")+';opacity:0.5;"'+e+" />",e='<div id="ID_coverdiv" style="background-color:red;z-index:'+b._getZ(a,"coverImage")+';width:100%;height:100%;display:inline;position:absolute;top:0px;left:0px"><image id="ID_coverimage" src="'+a._coverImage+'" style="width:100%;height:100%"'+e+"/>"+d+"</div>");d=b._appletCssText.replace(/\'/g,'"');d=0<=d.indexOf('style="')?d.split('style="')[1]:'" '+d;d='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG......<div id="ID_appletdiv" style="z-index:'+
b._getZ(a,"header")+";width:100%;height:100%;position:absolute;top:0px;left:0px;"+d+">";var f=a._height,l=a._width;if("string"!==typeof f||0>f.indexOf("%"))f+="px";if("string"!==typeof l||0>l.indexOf("%"))l+="px";d=d.replace(/IMG/,e).replace(/Hpx/g,f).replace(/Wpx/g,l)}else d='......</div>......<div id="ID_2dappletdiv" style="position:absolute;width:100%;height:100%;overflow:hidden;display:none"></div>......<div id="ID_infotablediv" style="width:100%;height:100%;position:absolute;top:0px;left:0px">.........<div id="ID_infoheaderdiv" style="height:20px;width:100%;background:yellow;display:none"><span id="ID_infoheaderspan"></span><span id="ID_infocheckboxspan" style="position:absolute;text-align:right;right:1px;"><a href="javascript:Jmol.showInfo(ID,false)">[x]</a></span></div>.........<div id="ID_infodiv" style="position:absolute;top:20px;bottom:0px;width:100%;height:100%;overflow:auto"></div>......</div>...</div>';
return d.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,a._id)};b._documentWrite=function(a){if(b._document){if(b._isXHTML&&!b._XhtmlElement){var c=document.getElementsByTagName("script");b._XhtmlElement=c.item(c.length-1);b._XhtmlAppendChild=!1}b._XhtmlElement?b._domWrite(a):b._document.write(a)}return a};b._domWrite=function(a){for(var c=[0];c[0]<a.length;){var d=b._getDomElement(a,c);if(!d)break;b._XhtmlAppendChild?b._XhtmlElement.appendChild(d):b._XhtmlElement.parentNode.insertBefore(d,
_jmol.XhtmlElement)}};b._getDomElement=function(a,b){var d=document.createElement("span");d.innerHTML=a;b[0]=a.length;return d};b._setObject=function(a,c,d){a._id=c;a.__Info={};d.z&&d.zIndexBase&&(b._z=b._getZOrders(d.zIndexBase));for(var e in d)a.__Info[e]=d[e];(a._z=d.z)||d.zIndexBase&&(a._z=a.__Info.z=b._getZOrders(d.zIndexBase));a._width=d.width;a._height=d.height;a._noscript=!a._isJava&&d.noscript;a._console=d.console;a._cacheFiles=!!d.cacheFiles;a._viewSet=null==d.viewSet||a._isJava?null:"Set"+
d.viewSet;null!=a._viewSet&&(b.View.__init(a),a._currentView=null);!b._fileCache&&a._cacheFiles&&(b._fileCache={});a._console||(a._console=a._id+"_infodiv");"none"==a._console&&(a._console=null);a._color=d.color?d.color.replace(/0x/,"#"):"#FFFFFF";a._disableInitialConsole=d.disableInitialConsole;a._noMonitor=d.disableJ2SLoadMonitor;b._j2sPath&&(d.j2sPath=b._j2sPath);a._j2sPath=d.j2sPath;a._coverImage=d.coverImage;a._isCovered=!!a._coverImage;a._deferApplet=d.deferApplet||a._isCovered&&a._isJava;a._deferUncover=
d.deferUncover&&!a._isJava;a._coverScript=d.coverScript;a._coverTitle=d.coverTitle;a._coverTitle||(a._coverTitle=a._deferApplet?"activate 3D model":"3D model is loading...");a._containerWidth=a._width+(a._width==parseFloat(a._width)?"px":"");a._containerHeight=a._height+(a._height==parseFloat(a._height)?"px":"");a._info="";a._infoHeader=a._jmolType+' "'+a._id+'"';a._hasOptions=d.addSelectionOptions;a._defaultModel=d.defaultModel;a._readyScript=d.script?d.script:"";a._readyFunction=d.readyFunction;
a._coverImage&&!a._deferApplet&&(a._readyScript+=";javascript "+c+"._displayCoverImage(false)");a._src=d.src};b._addDefaultInfo=function(a,c){for(var d in c)"undefined"==typeof a[d]&&(a[d]=c[d]);b._use&&(a.use=b._use);0<=a.use.indexOf("SIGNED")&&(0>a.jarFile.indexOf("Signed")&&(a.jarFile=a.jarFile.replace(/Applet/,"AppletSigned")),a.use=a.use.replace(/SIGNED/,"JAVA"),a.isSigned=!0)};b._syncedApplets=[];b._syncedCommands=[];b._syncedReady=[];b._syncReady=!1;b._isJmolJSVSync=!1;b._setReady=function(a){b._syncedReady[a]=
1;for(var c=0,d=0;d<b._syncedApplets.length;d++){if(b._syncedApplets[d]==a._id)b._syncedApplets[d]=a,b._syncedReady[d]=1;else if(!b._syncedReady[d])continue;c++}c==b._syncedApplets.length&&b._setSyncReady()};b._setDestroy=function(a){b.featureDetection.allowDestroy&&b.$windowOn("beforeunload",function(){b._destroy(a)})};b._destroy=function(a){try{a._applet&&a._applet.destroy();a._applet=null;b._unsetMouse(a._canvas);a._canvas=null;for(var c=0,d=0;d<b._syncedApplets.length;d++)b._syncedApplets[d]==
a&&(b._syncedApplets[d]=null),b._syncedApplets[d]&&c++;0<c||b._clearVars()}catch(e){}};b._setSyncReady=function(){b._syncReady=!0;for(var a="",c=0;c<b._syncedApplets.length;c++)b._syncedCommands[c]&&(a+="Jmol.script(Jmol._syncedApplets["+c+"], Jmol._syncedCommands["+c+"]);");setTimeout(a,50)};b._mySyncCallback=function(a,c){app=b._applets[a];if(app._viewSet)b.View.updateFromSync(app,c);else{if(!b._syncReady||!b._isJmolJSVSync)return 1;for(var d=0;d<b._syncedApplets.length;d++)0<=c.indexOf(b._syncedApplets[d]._syncKeyword)&&
b._syncedApplets[d]._syncScript(c);return 0}};b._getElement=function(a,b){return document.getElementById(a._id+"_"+b)||{}};b._evalJSON=function(a,b){a+="";if(!a)return[];if("{"!=a.charAt(0))return 0<=a.indexOf(" | ")&&(a=a.replace(/\ \|\ /g,"\n")),a;var d=(new Function("return "+a))();return!d?null:b&&void 0!=d[b]?d[b]:d};b._sortMessages=function(a){function b(a,c){return a[0]<c[0]?1:a[0]>c[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var d=[],e=a.length-1;0<=e;e--)for(var f=0,l=a[e].length;f<l;f++)d[d.length]=
a[e][f];if(0!=d.length)return d=d.sort(b)};b._setMouseOwner=function(a,c){null==a||c?b._mouseOwner=a:b._mouseOwner==a&&(b._mouseOwner=null)};b._jsGetMouseModifiers=function(a){var b=0;switch(a.button){case 0:b=16;break;case 1:b=8;break;case 2:b=4}a.shiftKey&&(b+=1);a.altKey&&(b+=8);a.ctrlKey&&(b+=2);return b};b._jsGetXY=function(a,c){if(!a.applet._ready||b._touching&&0>c.type.indexOf("touch"))return!1;c.preventDefault();var d=b.$offset(a.id),e,f=c.originalEvent;c.pageX||(c.pageX=f.pageX);c.pageY||
(c.pageY=f.pageY);b._mousePageX=c.pageX;b._mousePageY=c.pageY;f.targetTouches&&f.targetTouches[0]?(e=f.targetTouches[0].pageX-d.left,d=f.targetTouches[0].pageY-d.top):f.changedTouches?(e=f.changedTouches[0].pageX-d.left,d=f.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),b._jsGetMouseModifiers(c)]};b._gestureUpdate=function(a,c){c.stopPropagation();c.preventDefault();var d=c.originalEvent;switch(c.type){case "touchstart":b._touching=
!0;break;case "touchend":b._touching=!1}if(!d.touches||2!=d.touches.length)return!1;switch(c.type){case "touchstart":a._touches=[[],[]];break;case "touchmove":var e=b.$offset(a.id),f=a._touches[0],l=a._touches[1];f.push([d.touches[0].pageX-e.left,d.touches[0].pageY-e.top]);l.push([d.touches[1].pageX-e.left,d.touches[1].pageY-e.top]);d=f.length;3<d&&(f.shift(),l.shift());2<=d&&a.applet._processGesture(a._touches)}return!0};b._jsSetMouse=function(a){b.$bind(a,"mousedown touchstart",function(c){b._setMouseOwner(a,
!0);c.stopPropagation();c.preventDefault();a.isDragging=!0;if("touchstart"==c.type&&b._gestureUpdate(a,c))return!1;b._setConsoleDiv(a.applet._console);var d=b._jsGetXY(a,c);if(!d)return!1;2!=c.button&&b.Swing.hideMenus(a.applet);a.applet._processEvent(501,d);return!1});b.$bind(a,"mouseup touchend",function(c){b._setMouseOwner(null);c.stopPropagation();c.preventDefault();a.isDragging=!1;if("touchend"==c.type&&b._gestureUpdate(a,c))return!1;c=b._jsGetXY(a,c);if(!c)return!1;a.applet._processEvent(502,
c);return!1});b.$bind(a,"mousemove touchmove",function(c){return b._mouseOwner&&b._mouseOwner!=a&&b._mouseOwner.isDragging?(b._mouseOwner.mouseMove(c),!1):b._drag(a,c)});b._drag=function(a,d){d.stopPropagation();d.preventDefault();if("touchmove"==d.type&&b._gestureUpdate(a,d))return!1;var e=b._jsGetXY(a,d);if(!e)return!1;a.isDragging||(e[2]=0);a.applet._processEvent(a.isDragging?506:503,e);return!1};b.$bind(a,"DOMMouseScroll mousewheel",function(c){c.stopPropagation();c.preventDefault();a.isDragging=
!1;var d=c.originalEvent,d=d.detail?d.detail:("mac"==b.featureDetection.os?1:-1)*d.wheelDelta;c=b._jsGetMouseModifiers(c);a.applet._processEvent(-1,[0>d?-1:1,0,c]);return!1});b.$bind(a,"contextmenu",function(){return!1});b.$bind(a,"mouseout",function(c){a.applet._applet&&a.applet._applet.startHoverWatcher(!1);b._jsGetXY(a,c);return!1});b.$bind(a,"mouseenter",function(c){a.applet._applet&&a.applet._applet.startHoverWatcher(!0);if(0===c.buttons||0===c.which){a.isDragging=!1;c=b._jsGetXY(a,c);if(!c)return!1;
a.applet._processEvent(504,c);a.applet._processEvent(502,c);return!1}});b.$bind(a,"mousemoveoutjsmol",function(c,d,e){if(a==b._mouseOwner&&a.isDragging)return b._drag(a,e)});a.applet._is2D&&b.$resize(function(){a.applet&&a.applet._resize()});b.$bind("body","mouseup touchend",function(){a.applet&&(a.isDragging=!1);b._setMouseOwner(null)})};b._jsUnsetMouse=function(a){a.applet=null;b.$bind(a,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",
null);b._setMouseOwner(null)};b.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var d=b.Swing;SwingController=d;d.setDraggable=function(a){a=a.prototype;a.setContainer||(a.setContainer=function(a){this.container=a;a.obj=this;this.ignoreMouse=this.isDragging=!1;var d=this;a.bind("mousedown touchstart",function(a){if(d.ignoreMouse)return d.ignoreMouse=!1,!0;b._setMouseOwner(d,!0);d.isDragging=!0;d.pageX=a.pageX;d.pageY=a.pageY;return!1});a.bind("mousemove touchmove",function(a){if(d.isDragging&&
b._mouseOwner==d)return d.mouseMove(a),!1});a.bind("mouseup touchend",function(a){d.mouseUp(a);b._setMouseOwner(null)})},a.mouseUp=function(a){if(this.isDragging&&b._mouseOwner==this)return this.pageX0+=a.pageX-this.pageX,this.pageY0+=a.pageY-this.pageY,this.isDragging=!1;b._setMouseOwner(null)},a.setPosition=function(){if(null===b._mousePageX){var a=b.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));b._mousePageX=a.left;b._mousePageY=a.top}this.pageX0=b._mousePageX;this.pageY0=
b._mousePageY;this.container.css({top:b._mousePageY+"px",left:b._mousePageX+"px"})},a.mouseMove=function(a){this.isDragging&&b._mouseOwner==this&&(this.timestamp=System.currentTimeMillis(),this.container.css({top:this.pageY0+(a.pageY-this.pageY)+"px",left:this.pageX0+(a.pageX-this.pageX)+"px"}))},a.dragBind=function(a){this.applet._ignoreMouse=!a;this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");this.container.unbind("touchendoutjsmol");
b._setMouseOwner(null);if(a){var d=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,c){d.mouseMove(c)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,c){d.mouseUp(c)})}})};d.JSDialog=function(){};d.setDraggable(d.JSDialog);d.getScreenDimensions=function(a){a.width=k(window).width();a.height=k(window).height()};d.dispose=function(a){b.$remove(a.id+"_mover");delete d.htDialogs[a.id];a.container.obj.dragBind(!1)};d.register=function(a,b){a.id=b+ ++d.count;
d.htDialogs[a.id]=a};d.setDialog=function(a){b._setMouseOwner(null);b.$remove(a.id);var c=a.id+"_mover",j=b._$(c),e;j[0]?(j.html(a.html),e=j[0].jd):(b.$after("body","<div id='"+c+"' style='position:absolute;left:0px;top:0px;'>"+a.html+"</div>"),e=new d.JSDialog,j=b._$(c),a.container=j,e.applet=a.manager.vwr.html5Applet,e.setContainer(j),e.dialog=a,e.setPosition(),e.dragBind(!0),j[0].jd=e);b.$bind("#"+a.id+" .JButton","mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JComboBox",
"mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JCheckBox","mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JTextField","mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JTable","mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JScrollPane","mousedown touchstart",function(){e.ignoreMouse=!0});b.$bind("#"+a.id+" .JEditorPane","mousedown touchstart",function(){e.ignoreMouse=!0})};d.setSelected=function(a){b.$prop(a.id,
"checked",!!a.selected)};d.setSelectedIndex=function(a){b.$prop(a.id,"selectedIndex",a.selectedIndex)};d.setText=function(a){b.$prop(a.id,"value",a.text)};d.setVisible=function(a){b.$setVisible(a.id,a.visible)};d.setEnabled=function(a){b.$setEnabled(a.id,a.enabled)};d.click=function(a,c){var e=d.htDialogs[a.id];if(e){var f=e.toString();if(0<=f.indexOf("JCheck"))e.selected=a.checked;else if(0<=f.indexOf("JCombo"))e.selectedIndex=a.selectedIndex;else if(null!=e.text&&(e.text=a.value,c&&13!=(c.charCode||
c.keyCode)))return}f=d.htDialogs[b.$getAncestorDiv(a.id,"JDialog").id];f.manager.actionPerformed(e?e.name:f.registryKey+"/"+a.id)};d.setFront=function(a){var c=a.manager.vwr.html5Applet;a.zIndex!=b._getZ(c,"dialog")&&(a.zIndex=b._incrZ(c,"dialog"));a.container&&((a.container[0]||a.container).style.zIndex=a.zIndex)};d.hideMenus=function(a){if(a=a._menus)for(var b in a)a[b].visible&&d.hideMenu(a[b])};d.windowClosing=function(a){a=d.htDialogs[b.$getAncestorDiv(a.id,"JDialog").id];a.registryKey?a.manager.processWindowClosing(a.registryKey):
a.dispose()};b._track=function(a){if(b._tracker){try{var c='<iframe style="display:none" width="0" height="0" frameborder="0" tabindex="-1" src="'+(b._tracker+"&applet="+a._jmolType+"&version="+b._version+"&appver="+b.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+'"></iframe>';b.$after("body",c)}catch(d){}delete b._tracker}return a};b.getProfile=function(){window["j2s.doProfile"]=!0;if(self.Clazz&&self.JSON)return Clazz._profile||(Clazz._profile={}),Clazz.getProfile()};b._getInChIKey=
function(a,b){0<=b.indexOf("MOL=")&&b.split("MOL=")[1].split('"')};b._getAttr=function(a,b){var d=a.indexOf(b+"=");return 0<=d&&0<=(d=a.indexOf('"',d))?a.substring(d+1,a.indexOf('"',d+1)):null};b.User={viewUpdatedCallback:null};b.View={count:0,applets:{},sets:{}};(function(a){a.updateView=function(c,d){if(null!=c._viewSet){d.chemID||(c._searchQuery=null);d.data||(d.data="N/A");d.type=c._viewType;if(null==(c._currentView=a.__findView(c._viewSet,d)))c._currentView=a.__createViewSet(c._viewSet,d.chemID,
d.viewID||d.chemID);c._currentView[d.type].data=d.data;c._currentView[d.type].smiles=c._getSmiles();b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(c,"updateView");a.__setView(c._currentView,c,!1)}};a.updateFromSync=function(c,d){c._updateMsg=d;var e=b._getAttr(d,"sourceID")||b._getAttr(d,"file");if(e){var f=a.__findView(c._viewSet,{viewID:e});if(null==f)return b.updateView(c,d);f!=c._currentView&&a.__setView(f,c,!0);var l=(e=b._getAttr(d,"atoms"))&&0<=d.indexOf("selectionhalos ON")?eval("["+
e+"]"):[];setTimeout(function(){c._currentView==f&&a.updateAtomPick(c,l)},10);b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(c,"updateFromSync")}};a.updateAtomPick=function(a,d){var e=a._currentView;if(null!=e){for(var f in e)"info"!=f&&e[f].applet!=a&&e[f].applet._updateAtomPick(d);b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(a,"updateAtomPick")}};a.dumpViews=function(b){var d=a.sets[b];if(d){var e="View set "+b+":\n";b=a.applets[b];for(var f in b)e+="\napplet "+b[f]._id+" currentView="+
(b[f]._currentView?b[f]._currentView.info.viewID:null);for(f=d.length;0<=--f;){b=d[f];var e=e+("\n\n<b>view="+f+" viewID="+b.info.viewID+" chemID="+b.info.chemID+"</b>\n"),l,g;for(g in b)"info"!=g&&(e+="\nview="+f+" type="+g+" applet="+((l=b[g]).applet?l.applet._id:null)+" SMILES="+l.smiles+"\n atomMap="+JSON.stringify(l.atomMap)+"\n data=\n"+l.data+"\n")}return e}};a.__init=function(b){var d=b._viewSet,e=a.applets;e[d]||(e[d]={});e[d][b._viewType]=b};a.__findView=function(b,d){var e=a.sets[b];null==
e&&(e=a.sets[b]=[]);for(var f=e.length;0<=--f;){var l=e[f];if(d.viewID){if(l.info.viewID==d.viewID)return l}else{if(null!=d.chemID&&d.chemID==l.info.chemID)return l;for(var g in l)if("info"!=g&&(null!=d.data&&null!=l[g].data?d.data==l[g].data:d.type==g))return l}}return null};a.__createViewSet=function(c,d,e){a.count++;d={info:{chemID:d,viewID:e||"model_"+a.count}};for(var f in b._applets)e=b._applets[f],e._viewSet==c&&(d[e._viewType]={applet:e,data:null});a.sets[c].push(d);return d};a.__setView=
function(a,b,d){for(var e in a)if("info"!=e){var l=a[e],f=l.applet,g=d||null!=f&&"<modified>"==f._molData;if(!(null==f||f==b&&!g)){var n=null==l.data,k=null!=f._currentView;f._currentView=a;if(!k||!(a[e].data==l.data&&!n&!g))if(f._loadModelFromView(a),n)break}}}})(b.View);b.Cache={fileCache:{}};b.Cache.get=function(a){return b.Cache.fileCache[a]};b.Cache.put=function(a,c){b.Cache.fileCache[a]=c};b.Cache.setDragDrop=function(a){b.$appEvent(a,"appletdiv","dragover",function(a){a=a.originalEvent;a.stopPropagation();
a.preventDefault();a.dataTransfer.dropEffect="copy"});b.$appEvent(a,"appletdiv","drop",function(c){var d=c.originalEvent;d.stopPropagation();d.preventDefault();var e=d.dataTransfer.files[0];if(null==e)try{e=""+d.dataTransfer.getData("text"),(0==e.indexOf("file:/")||0==e.indexOf("http:/"))&&a._scriptLoad(e)}catch(f){}else d=new FileReader,d.onloadend=function(d){if(d.target.readyState==FileReader.DONE){var j="cache://DROP_"+e.name;d=b._toBytes(d.target.result);j.endsWith(".spt")||a._applet.cacheFileByName("cache://DROP_*",
!1);"JSV"==a._viewType||j.endsWith(".jdx")?b.Cache.put(j,d):a._applet.cachePut(j,d);(d=b._jsGetXY(a._canvas,c))&&(!a._applet.setStatusDragDropped||a._applet.setStatusDragDropped(0,d[0],d[1],j))&&a._applet.openFileAsyncSpecial(j,1)}},d.readAsArrayBuffer(e)})}})(Jmol,jQuery);Jmol._debugCode=!1;
(function(b){b._isAsync=!1;b._asyncCallbacks={};b._coreFiles=[];b.__execLog=[];b.__execStack=[];b.__execTimer=0;b.__coreSet=[];b.__coreMore=[];b.__execDelayMS=100;b.showExecLog=function(){return b.__execLog.join("\n")};b.__addExec=function(k){var f="JSmol load "+k[0]._id+" "+k[3];self.console&&console.log(f+"...");b.__execLog.push(f);b.__execStack.push(k)};b.__addCoreFile=function(k,f,g){if(!(0<=b.__coreSet.join("").indexOf(k))){b.__coreSet.push(k);b.__coreSet.sort();k=b.__coreSet.join("");b._coreFiles=
[f+"/core/core"+("jmol"==k?"":k)+".z.js"];if(g&&(g=g.split(" ")))for(k=0;k<g.length;k++)0>b.__coreMore.join("").indexOf(g[k])&&b.__coreMore.push(f+"/core/core"+g[k]+".z.js");for(k=0;k<b.__coreMore.length;k++)b._coreFiles.push(b.__coreMore[k])}};b._loadZJars=function(k){k<b._coreFiles.length?Clazz._Loader.loadZJar(b._coreFiles[k],Clazz._Loader.runtimeKeyClass,function(){b._loadZJars(k+1)}):(window["java.registered"]=!0,b._nextExecution())};b.__nextExecution=function(k){delete b.__execTimer;for(var f=
b.__execStack,g;0<f.length&&"done"==(g=f[0])[4];)f.shift();0!=f.length&&(!b._isAsync&&!k?setTimeout("Jmol.__nextExecution(true)",10):(g.push("done"),k="JSmol exec "+g[0]._id+" "+g[3]+" "+g[2],self.System&&System.out.println(k),self.console&&console.log(k+" -- OK"),b.__execLog.push(k),g[1](g[0],g[2])))};b.__loadClazz=function(k){b.__clazzLoaded?b.__nextExecution():(b.__clazzLoaded=!0,LoadClazz(),k._noMonitor&&(Clazz._LoaderProgressMonitor.showStatus=function(){}),LoadClazz=null,Clazz._Loader.onGlobalLoaded=
function(){Clazz._LoaderProgressMonitor.showStatus("Application loaded.",!0);if(!b._debugCode||!b.haveCore)b.haveCore=!0,b.__nextExecution()},Clazz._Loader.loadPackageClasspath("java",null,!0,b.__nextExecution))};b.__loadClass=function(k,f){Clazz._Loader.loadClass(f,function(){b.__nextExecution()})};b._Canvas2D=function(k,f,g,e){this._uniqueId=(""+Math.random()).substring(3);this._id=k;this._is2D=!0;this._isJava=!1;this._jmolType="Jmol._Canvas2D ("+g+")";switch(g){case "Jmol":this._platform="J.awtjs2d.Platform";
break;case "JSV":this._isLayered=this._isJSV=!0;this._platform="JSV.awtjs2d.Platform";break;case "Astex":this._isAstex=!0,this._platform="astex.awtjs2d.Platform"}if(e)return this;window[k]=this;this._createCanvas(k,f);if(!b._document||this._deferApplet)return this;this._init();return this};b._setAppletParams=function(k,f,g,e){for(var n in g)if(!k||0<=k.indexOf(";"+n.toLowerCase()+";"))null==g[n]||"language"==n&&!b.featureDetection.supportsLocalization()||(e?f.put(n,!0===g[n]?Boolean.TRUE:!1===g[n]?
Boolean.FALSE:g[n]):f[n]=g[n])};b._jsSetPrototype=function(k){k._init=function(){this._setupJS();this._showInfo(!0);this._disableInitialConsole&&this._showInfo(!1)};k._createCanvas=function(f,g,e){b._setObject(this,f,g);e&&(this._GLmol=e,this._GLmol.applet=this,this._GLmol.id=this._id);e=b._getWrapper(this,!0);this._deferApplet||(b._document?(b._documentWrite(e),this._newCanvas(!1),e=""):(this._deferApplet=!0,e+='<script type="text/javascript">'+f+"._cover(false)\x3c/script>"));e+=b._getWrapper(this,
!1);g.addSelectionOptions&&(e+=b._getGrabberOptions(this));b._debugAlert&&!b._document&&alert(e);this._code=b._documentWrite(e)};k._newCanvas=function(b){this._is2D?this._createCanvas2d(b):this._GLmol.create()};k._createCanvas2d=function(){var f=b.$(this,"appletdiv");try{f[0].removeChild(this._canvas),this._canvas.frontLayer&&f[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&f[0].removeChild(this._canvas.rearLayer),this._canvas.imageLayer&&f[0].removeChild(this._canvas.imageLayer),
b._jsUnsetMouse(this._mouseInterface)}catch(g){}var e=Math.round(f.width()),n=Math.round(f.height()),k=document.createElement("canvas");k.applet=this;this._canvas=k;k.style.width="100%";k.style.height="100%";k.width=e;k.height=n;k.id=this._id+"_canvas2d";f.append(k);b._$(k.id).css({"z-index":b._getZ(this,"main")});if(this._isLayered){var d=document.createElement("div");k.imageLayer=d;d.id=this._id+"_imagelayer";f.append(d);b._$(d.id).css({zIndex:b._getZ(this,"image"),position:"absolute",left:"0px",
top:"0px",width:"0px",height:"0px",overflow:"hidden"});this._mouseInterface=this._getLayer("front",f,e,n,!1)}else this._mouseInterface=k;b._jsSetMouse(this._mouseInterface)};k._getLayer=function(f,g,e,n,k){var d=document.createElement("canvas");this._canvas[f+"Layer"]=d;d.style.width="100%";d.style.height="100%";d.id=this._id+"_"+f+"Layer";d.width=e;d.height=n;g.append(d);d.applet=this;b._$(d.id).css({background:k?"rgb(0,0,0,1)":"rgb(0,0,0,0.001)","z-index":b._getZ(this,f),position:"absolute",left:"0px",
top:"0px",overflow:"hidden"});return d};k._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:b._getZ(this,"monitorZIndex")};0==b.__execStack.length&&b.__addExec([this,b.__loadClazz,null,"loadClazz"]);this._isJSV?(b.__addCoreFile("jsv",this._j2sPath,this.__Info.preloadCore),b._debugCode&&(b.__addExec([this,b.__loadClass,"JSV.appletjs.JSVApplet","load JSV"]),this._isPro&&b.__addExec([this,b.__loadClass,"JSV.appletjs.JSVAppletPro","load JSV(signed)"]))):
this._isAstex?(b.__addCoreFile("astex",this._j2sPath,this.__Info.preloadCore),b._debugCode&&b.__addExec([this,b.__loadClass,"astex.MoleculeViewerAppletJS","load Astex"])):(b.__addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore),this._is2D||b.__addExec([this,b.__loadClass,"J.export.JSExporter","load JSExporter"]),b._debugCode&&b.__addExec([this,b.__loadClass,"J.appletjs.Jmol","load Jmol"]));b.__addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=
null;this._canScript=function(){return!0};this._savedOrientations=[];b.__execTimer&&clearTimeout(b.__execTimer);b.__execTimer=setTimeout(b.__nextExecution,b.__execDelayMS)};k.__startAppletJS=function(f){0==b._version.indexOf("$Date: ")&&(b._version=(b._version.substring(7)+" -").split(" -")[0]+" (JSmol/j2s)");var g=Clazz._4Name("java.util.Hashtable").newInstance();b._setAppletParams(f._availableParams,g,f.__Info,!0);g.put("appletReadyCallback","Jmol._readyCallback");g.put("applet",!0);g.put("name",
f._id);g.put("syncId",b._syncId);b._isAsync&&g.put("async",!0);f._color&&g.put("bgcolor",f._color);f._is2D?f._startupScript&&g.put("script",f._startupScript):g.put("script","set multipleBondSpacing 0.35;");b._syncedApplets.length&&g.put("synccallback","Jmol._mySyncCallback");g.put("signedApplet","true");g.put("platform",f._platform);f._is2D&&g.put("display",f._id+"_canvas2d");g.put("documentBase",document.location.href);var e=f._j2sPath+"/";if(0>e.indexOf("://")){var n=document.location.href.split("#")[0].split("?")[0].split("/");
0==e.indexOf("/")?n=[n[0],e.substring(1)]:n[n.length-1]=e;e=n.join("/")}g.put("codePath",e);b._registerApplet(f._id,f);try{f._newApplet(g)}catch(k){System.out.println((b._isAsync?"normal async abort from ":"")+k);return}f._jsSetScreenDimensions();b.__nextExecution()};k._restoreState=function(f,g){System.out.println("\n\nasynchronous restore state for "+f+" "+g);var e=this,n=e._applet&&e._applet.viewer;switch(g){case "setOptions":return function(){e.__startAppletJS(e)};case "render":return function(){setTimeout(function(){n.refresh(2)},
10)};default:switch(f){case "J.shape.Balls":case "J.shape.Sticks":case "J.shape.Frank":return null}if(n&&n.isScriptExecuting&&n.isScriptExecuting()){if(b._asyncCallbacks[f])return System.out.println("...ignored"),1;var k=n.getEvalContextAndHoldQueue(n.eval),d=k.pc-1;k.asyncID=f;b._asyncCallbacks[f]=function(a){k.pc=a;System.out.println("sc.asyncID="+k.asyncID+" sc.pc = "+k.pc);n.eval.resumeEval(k)};n.eval.pc=n.eval.pcEnd;System.out.println("setting resume for pc="+k.pc+" "+f+" to "+b._asyncCallbacks[f]+
"//");return function(){System.out.println("resuming "+f+" "+b._asyncCallbacks[f]);b._asyncCallbacks[f](d)}}System.out.println(f+"?????????????????????"+g);return function(){setTimeout(function(){n.refresh(2)},10)}}};k._jsSetScreenDimensions=function(){if(this._applet){var f=b._getElement(this,this._is2D?"canvas2d":"canvas");this._applet.setScreenDimension(f.width,f.height)}};k._show=function(f){b.$setVisible(b.$(this,"appletdiv"),f);f&&b._repaint(this,!0)};k._canScript=function(){return!0};k._delay=
function(b,g,e){this._delayID=setTimeout(function(){b.resumeEval(g,!1)},e)};k._createDomNode=function(b,g){b=this._id+"_"+b;var e=document.getElementById(b);e&&document.body.removeChild(e);if(g){0==g.indexOf("<?")&&(g=g.substring(g.indexOf("<",1)));if(0<=g.indexOf("/>")){for(var e=g.split("/>"),n=e.length-1;0<=--n;)for(var k=e[n],d=k.lastIndexOf("<")+1,a=d,c=k.length,j="";++a<c;)if(0<=" \t\n\r".indexOf(k.charAt(a))){j=k.substring(d,a);e[n]=k+"></"+j+">";break}g=e.join("")}e=document.createElement("_xml");
e.id=b;e.innerHTML=g;e.style.display="none";document.body.appendChild(e);return e}};k.equals=function(b){return this==b};k.clone=function(){return this};k.hashCode=function(){return parseInt(this._uniqueId)};k._processGesture=function(b){return this._applet.processTwoPointGesture(b)};k._processEvent=function(b,g){this._applet.processMouseEvent(b,g[0],g[1],g[2],System.currentTimeMillis())};k._resize=function(){var f="__resizeTimeout_"+this._id;b[f]&&clearTimeout(b[f]);var g=this;b[f]=setTimeout(function(){b._repaint(g,
!0);b[f]=null},100)};return k};b._repaint=function(k,f){if(k&&k._applet){var g=b.$(k,"appletdiv"),e=Math.round(g.width()),g=Math.round(g.height());if(k._is2D&&(k._canvas.width!=e||k._canvas.height!=g))k._newCanvas(!0),k._applet.setDisplay(k._canvas);k._applet.setScreenDimension(e,g);f?setTimeout(function(){k._applet&&k._applet.update()}):k._applet.update()}};b._getHiddenCanvas=function(b,f,g,e,n){f=b._id+"_"+f;(b=document.getElementById(f))&&n&&(b=null);b||(b=document.createElement("canvas"));b.width=
b.style.width=g;b.height=b.style.height=e;b.id!=f&&(b.id=f);return b};b._loadImage=function(k,f,g,e,n){var q=f[1];if(null==n)return n=new Image,n.onload=function(){b._loadImage(k,f,null,e,n)},null!=g&&(g=J.io.Base64.getBase64(g).toString(),g=q.substring(url.lastIndexOf("/")+1),0<=g.indexOf(".png")||g.indexOf(".jpg")),n.src=q,!0;g=n.width;var d=n.height,a="echo_"+f[0],c=b._getHiddenCanvas(k.vwr.html5Applet,a,g,d,!0);c.imageWidth=g;c.imageHeight=d;c.id=a;c.image=n;b._setCanvasImage(c,g,d);e(c,q)};b._setCanvasImage=
function(b,f,g){b.buf32=null;b.width=f;b.height=g;b.getContext("2d").drawImage(b.image,0,0,f,g)}})(Jmol);
(function(b,k){b._Applet=function(e,f,g){window[e]=this;this._jmolType="Jmol._Applet"+(f.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(g)return this;
this._isSigned=f.isSigned;this._readyFunction=f.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=f.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(d,a){var c=!1;b._jarFile&&(a=b._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")?(d=e.substring(0,e.lastIndexOf("/")),a=e.substring(e.lastIndexOf("/")+1)):c=!0):a=e;this_isSigned=f.isSigned=0<=a.indexOf("Signed")}this._jarPath=f.jarPath=d||".";this._jarFile=f.jarFile="string"==typeof a?a:(a?"JmolAppletSigned":"JmolApplet")+"0.jar";c&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==b.controls||b.controls._onloadResetForms()};this._create(e,f);return this};
var f=b._Applet,g=b._Applet.prototype;f._get=function(e,g,k){k||(k=!1);g||(g={});b._addDefaultInfo(g,{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});b._debugAlert=g.debug;
g.serverURL&&(b._serverUrl=g.serverURL);for(var d=!1,a=null,c=g.use.toUpperCase().split("#")[0].split(" "),j=0;j<c.length;j++){switch(c[j]){case "JAVA":d=!0;b.featureDetection.supportsJava()&&(a=new f(e,g,k));break;case "WEBGL":a=f._getCanvas(e,g,k,!0);break;case "HTML5":b.featureDetection.allowHTML5?a=f._getCanvas(e,g,k,!1):c.push("JAVA");break;case "IMAGE":a=new b._Image(e,g,k)}if(null!=a)break}null==a&&(k||!d?a={_jmolType:"none"}:d&&(a=new f(e,g)));return k?a:b._registerApplet(e,a)};f._getCanvas=
function(e,g,k,d){return d&&b.featureDetection.supportsWebGL()?(b._Canvas3D.prototype=b.GLmol.extendApplet(b._jsSetPrototype(new f(e,g,!0))),new b._Canvas3D(e,g,"Jmol",k)):!d?(b._Canvas2D.prototype=b._jsSetPrototype(new f(e,g,!0)),new b._Canvas2D(e,g,"Jmol",k)):null};f._noJavaMsg="Either you do not have Java applets enabled in your web<br />browser or your browser is blocking this applet.<br />\t\t\tCheck the warning message from your browser and/or enable Java applets in<br />\t\t\tyour web browser preferences, or install the Java Runtime Environment from <a href='http://www.java.com'>www.java.com</a>";
f._setCommonMethods=function(b){b._showInfo=g._showInfo;b._search=g._search;b._getName=g._getName;b._readyCallback=g._readyCallback};f._createApplet=function(e,g,q){e._initialize(g.jarPath,g.jarFile);var d=e._jarFile;b._isFile&&(d=d.replace(/0\.jar/,".jar"));var a=0<=e._containerWidth.indexOf("px")?e._containerWidth:"100%",c=0<=e._containerHeight.indexOf("px")?e._containerHeight:"100%",a=' style="width:'+a+";height:"+c+'" ',c="name='"+e._id+"_object' id='"+e._id+"_object' \n"+a+"\n";q.codebase=e._jarPath;
q.codePath=q.codebase+"/";if(0>q.codePath.indexOf("://")){var j=k.location.href.split("#")[0].split("?")[0].split("/");j[j.length-1]=q.codePath;q.codePath=j.join("/")}q.archive=d;q.mayscript="true";q.java_arguments="-Xmx"+Math.round(g.memoryLimit||e._memoryLimit)+"m";q.permissions=e._isSigned?"all-permissions":"sandbox";q.documentLocation=k.location.href;q.documentBase=k.location.href.split("#")[0].split("?")[0];q.jarPath=g.jarPath;b._syncedApplets.length&&(q.synccallback="Jmol._mySyncCallback");
e._startupScript&&(q.script=e._startupScript);var j="\n",p;for(p in q)q[p]&&(j+=" <param name='"+p+"' value='"+q[p]+"' />\n");j=b.featureDetection.useIEObject||b.featureDetection.useHtml4Object?"<object "+c+(b.featureDetection.useIEObject?" classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' codebase='http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab'>":" type='application/x-java-applet'>")+j+"<p style='background-color:yellow;"+a.split('"')[1]+";text-align:center;vertical-align:middle;'>\n"+
f._noJavaMsg+"</p></object>\n":"<applet "+c+" code='"+q.code+"' codebase='"+e._jarPath+"' archive='"+d+"' mayscript='true'>\n"+j+"<table bgcolor='yellow'><tr><td align='center' valign='middle' "+a+">\n"+f._noJavaMsg+"</td></tr></table></applet>\n";e._deferApplet&&(e._javaCode=j,j="");j=b._getWrapper(e,!0)+j+b._getWrapper(e,!1)+(g.addSelectionOptions?b._getGrabberOptions(e):"");b._debugAlert&&alert(j);e._code=b._documentWrite(j)};g._newApplet=function(b){this._viewerOptions=b;return new J.appletjs.Jmol(b)};
g._create=function(e,g){b._setObject(this,e,g);var k={syncId:b._syncId,progressbar:"true",progresscolor:"blue",boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...",script:this._color?'background "'+this._color+'"':"",code:"JmolApplet.class"};b._setAppletParams(this._availableParams,k,g);var d;g.inlineModel?(d=g.inlineModel,d=d.replace(/\r|\n|\r\n/g,0<=d.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),b._debugAlert&&alert("inline model:\n"+d)):d="";k.loadInline=
d;k.appletReadyCallback="Jmol._readyCallback";b._syncedApplets.length&&(k.synccallback="Jmol._mySyncCallback");k.java_arguments="-Xmx"+Math.round(g.memoryLimit||this._memoryLimit)+"m";this._initialize(g.jarPath,g.jarFile);f._createApplet(this,g,k)};g._readyCallback=function(e,f,g,d){g&&(b._setDestroy(this),this._ready=!0,e=this._readyScript,this._applet=d,this._defaultModel?b._search(this,this._defaultModel,e?";"+e:""):e?this._script(e):this._src&&this._script('load "'+this._src+'"'),this._showInfo(!0),
this._showInfo(!1),b.Cache.setDragDrop(this),this._readyFunction&&this._readyFunction(this),b._setReady(this),(d=this._2dapplet)&&(d._isEmbedded&&d._ready&&d.__Info.visible)&&this._show2d(!0))};g._showInfo=function(e){e&&this._2dapplet&&this._2dapplet._show(!1);b.$html(b.$(this,"infoheaderspan"),this._infoHeader);this._info&&b.$html(b.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!e){this._isInfoVisible=e;if(this._isJava){var f=e?2:"100%";b.$setSize(b.$(this,"appletdiv"),f,f)}b.$setVisible(b.$(this,
"infotablediv"),e);b.$setVisible(b.$(this,"infoheaderdiv"),e);this._show(!e)}};g._show2d=function(b){this._2dapplet._show2d(b);this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!b),this._2dapplet.__showContainer(!0,!0))};g._getAtomCorrelation=function(b){this._loadMolData(b,"atommap = compare({1.1} {2.1} 'MAP' 'H'); zap 2.1",!0);b=jmol._evaluate("atommap");for(var f=jmol._evaluate("{*}.count"),g=[],d=[],a=0;a<b.length;a++){var c=b[a];g[c[0]+1]=c[1]-f+1;d[c[1]-f+1]=c[0]+1}return{fromJmol:g,
toJmol:d}};g._show=function(e){var f=!e?2:"100%";b.$setSize(b.$(this,"object"),f,f);this._isJava||b.$setVisible(b.$(this,"appletdiv"),e)};g._clearConsole=function(){this._console==this._id+"_infodiv"&&(this.info="");self.Clazz&&(b._setConsoleDiv(this._console),Clazz.Console.clear())};g._addScript=function(b){this._readyScript||(this.readyScript="");this._readyScript&&(this._readyScript+=";");this._readyScript+=b;return!0};g._script=function(e){if(!this._ready)return this._addScript(e);b._setConsoleDiv(this._console);
this._applet.script(e)};g._syncScript=function(b){this._applet.syncScript(b)};g._scriptCheck=function(b){return this._ready&&this._applet.scriptCheck(b)};g._scriptWait=function(b,f){var g=this._scriptWaitAsArray(b),d="";if(!f)for(var a=g.length;0<=--a;)for(var c=0,j=g[a].length;c<j;c++)d+=g[a][c]+"\n";return d};g._scriptEcho=function(b){b=this._scriptWaitAsArray(b);for(var f="",g=b.length;0<=--g;)for(var d=b[g].length;0<=--d;)"scriptEcho"==b[g][d][1]&&(f+=b[g][d][3]+"\n");return f.replace(/ \| /g,
"\n")};g._scriptMessage=function(b){b=this._scriptWaitAsArray(b);for(var f="",g=b.length;0<=--g;)for(var d=b[g].length;0<=--d;)"scriptStatus"==b[g][d][1]&&(f+=b[g][d][3]+"\n");return f.replace(/ \| /g,"\n")};g._scriptWaitOutput=function(b){var f="";try{b&&(f+=this._applet.scriptWaitOutput(b))}catch(g){}return f};g._scriptWaitAsArray=function(e){var f="";try{if(this._getStatus("scriptEcho,scriptMessage,scriptStatus,scriptError"),e&&(f+=this._applet.scriptWait(e),f=b._evalJSON(f,"jmolStatus"),"object"==
typeof f))return f}catch(g){}return[[f]]};g._getStatus=function(e){return b._sortMessages(this._getPropertyAsArray("jmolStatus",e))};g._getPropertyAsArray=function(e,f){return b._evalJSON(this._getPropertyAsJSON(e,f),e)};g._getPropertyAsString=function(b,f){void 0==f&&(f="");return this._applet.getPropertyAsString(b,f)+""};g._getPropertyAsJSON=function(b,f){void 0==f&&(f="");try{return this._applet.getPropertyAsJSON(b,f)+""}catch(g){return""}};g._getPropertyAsJavaObject=function(b,f){void 0==f&&(f=
"");return this._applet.getProperty(b,f)};g._evaluate=function(b){null!=b||(b="");return this._getPropertyAsArray("variableInfo",b)};g._evaluateDEPRECATED=function(b){b=""+this._getPropertyAsJavaObject("evaluate",b);var f=b.replace(/\-*\d+/,"");if(""==f&&!isNaN(parseInt(b)))return parseInt(b);f=b.replace(/\-*\d*\.\d*/,"");return""==f&&!isNaN(parseFloat(b))?parseFloat(b):b};g._saveOrientation=function(b){return this._savedOrientations[b]=this._getPropertyAsArray("orientationInfo","info").moveTo};g._restoreOrientation=
function(b){b=this._savedOrientations[b];return!b||""==b?b.replace(/1\.0/,"0"):this._scriptWait(b)};g._restoreOrientationDelayed=function(b,f){1>arguments.length&&(f=1);var g=this._savedOrientations[b];return!g||""==g?g.replace(/1\.0/,f):this._scriptWait(g)};g._resizeApplet=function(e){function f(d,a){var c=""+d;return 0==c.length?a?"":b._allowedJmolSize[2]:c.indexOf("%")==c.length-1?c:1>=(d=parseFloat(d))&&0<d?100*d+"%":(isNaN(d=Math.floor(d))?b._allowedJmolSize[2]:d<b._allowedJmolSize[0]?b._allowedJmolSize[0]:
d>b._allowedJmolSize[1]?b._allowedJmolSize[1]:d)+(a?a:"")}var g;"object"==typeof e&&null!=e?(g=e[0]||e.width,e=e[1]||e.height):g=e;g=[f(g,"px"),f(e,"px")];e=b._getElement(this,"appletinfotablediv");e.style.width=g[0];e.style.height=g[1];this._containerWidth=g[0];this._containerHeight=g[1];this._is2D&&b._repaint(this,!0)};g._search=function(e,f){b._search(this,e,f)};g._searchDatabase=function(e,f,g){if(this._2dapplet&&this._2dapplet._isEmbedded&&!b.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(e,
f,g);this._showInfo(!1);0<=e.indexOf("?")?b._getInfoFromDatabase(this,f,e.split("?")[0]):(g||(g=b._getScriptForDatabase(f)),e=f+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,g,e))};g._loadFile=function(e,f,g){this._showInfo(!1);f||(f="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,f)){var d=this;b._loadFileData(this,e,function(a){d.__loadModel(a,f,g)},function(){d.__loadModel(null)})}};g._scriptLoad=function(b,f){f||(f="");var g=this._isJava||!this._noscript;
g&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;g?this._script('load async "'+b+'";'+f):this._applet.openFile(b);this._checkDeferred("");return!0};g.__loadModel=function(e,f,g){null!=e&&(null!=this._viewSet&&(f||(f=""),f+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!f&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,
f,!1),null!=this._viewSet&&b.View.updateView(this,{chemID:g,data:e}))};g._loadMolData=function(b,f,g){f||(f="");g=g?"append":"model";this._applet.scriptWait('load DATA "'+g+'"'+b+'\nEND "'+g+'" ;'+f)};g._loadModelFromView=function(e){this._currentView=e;var f=e.Jmol;null!=f.data?this.__loadModel(f.data,null,e.info.chemID):null!=e.info.chemID?b._searchMol(this,e.info.chemID,null,!1):(f=e.JME)&&f.applet._show2d(!1,this)};g._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],b.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate","extractModel","{visible}")}))};g._atomPickedCallback=function(e,f){if(!(0>f)){var g=[f+1];b.View.updateAtomPick(this,g);this._updateAtomPick(g)}};g._updateAtomPick=function(b){this._script(0==b.length?"select none":"select on visible and (@"+b.join(",@")+")")};g._isDeferred=function(){return!this._canvas&&this._cover&&
this._isCovered&&this._deferApplet};g._checkDeferred=function(b){return this._isDeferred()?(this._coverScript=b,this._cover(!1),!0):!1};g._cover=function(e){e||!this._deferApplet?this._displayCoverImage(e):(e=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(e+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),this._script(e,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(b._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||
this._newCanvas(!1),this._defaultModel&&b._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&b.$html(b.$(this,"appletdiv"),this._javaCode),this._init&&this._init())};g._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,b._getElement(this,"coverdiv").style.display=e?"block":"none")};g._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};g._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};
g._getMol2D=function(){return jmol._evaluate("script('select visible;show chemical sdf')")};b.jmolSmiles=function(b){return b._getSmiles()}})(Jmol,document);
(function(b){var k=b.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:""};
k._addScript=function(b,g){var e=k._scripts.length;k._scripts[e]=[b,g];return e};k._getIdForControl=function(b,g){return"string"==typeof b?b:!g||!b._canScript||b._canScript(g)?b._id:null};k._radio=function(b,g,e,n,q,d,a,c){var j=k._getIdForControl(b,g);if(null==j)return null;++k._radioCount;void 0!=d&&null!=d||(d="jmolRadioGroup"+(k._radioGroupCount-1));if(!g)return"";void 0!=a&&null!=a||(a="jmolRadio"+(k._radioCount-1));void 0!=e&&null!=e||(e=g.substring(0,32));q||(q="");b="</span>";k._actions[a]=
k._addScript(j,g);g='<span id="span_'+a+'"'+(c?' title="'+c+'"':"")+"><input name='"+d+"' id='"+a+"' type='radio' onclick='Jmol.controls._click(this);return true;' onmouseover='Jmol.controls._mouseOver(this);return true;' onmouseout='Jmol.controls._mouseOut()' "+(n?"checked='true' ":"")+k._radioCssText+" />";0<=e.toLowerCase().indexOf("<td>")&&(g+=b,b="");return g+('<label for="'+a+'">'+e+"</label>"+b+q)};k._scriptExecute=function(f,g){var e=b._applets[g[0]],k=g[1];if("object"==typeof k)k[0](f,k,
e);else"function"==typeof k?k(e):b.script(e,k)};k.__checkScript=function(b,g){var e=0<=g.value.indexOf("JSCONSOLE ")||""===b._scriptCheck(g.value);g.style.color=e?"black":"red";return e};k.__getCmd=function(b,g){if(g._cmds&&g._cmds.length){var e=g._cmds[g._cmdpt=(g._cmdpt+g._cmds.length+b)%g._cmds.length];setTimeout(function(){g.value=e},10);g._cmdadd=1;g._cmddir=b}};k._commandKeyPress=function(f,g,e){f=13==f?13:window.event?window.event.keyCode:f?f.keyCode||f.which:0;var n=document.getElementById(g),
q=b._applets[e];switch(f){case 13:return g=n.value,k._scriptExecute(n,[e,g]),n._cmds||(n._cmds=[],n._cmddir=0,n._cmdpt=-1,n._cmdadd=0),g&&0==n._cmdadd?(++n._cmdpt,n._cmds.splice(n._cmdpt,0,g),n._cmdadd=0,n._cmddir=0):n._cmdadd=0,n.value="",!1;case 27:return setTimeout(function(){n.value=""},20),!1;case 38:k.__getCmd(-1,n);break;case 40:k.__getCmd(1,n);break;default:n._cmdadd=0}setTimeout(function(){k.__checkScript(q,n)},20);return!0};k._click=function(b,g){k._element=b;1==arguments.length&&(g=k._actions[b.id]);
k._scriptExecute(b,k._scripts[g])};k._menuSelected=function(b){var g=b.value;if(void 0!=g)k._scriptExecute(b,k._scripts[g]);else{g=b.length;if("number"==typeof g)for(var e=0;e<g;++e)if(b[e].selected){k._click(b[e],b[e].value);return}alert("?Que? menu selected bug #8734")}};k._cbNotifyMaster=function(b){var g=!0,e=!0,n;for(n in b.chkGroup)b.chkGroup[n].checked?e=!1:g=!1;g&&(b.chkMaster.checked=!0);e&&(b.chkMaster.checked=!1);(g||e)&&k._checkboxItems[b.chkMaster.id]&&k._cbNotifyMaster(k._checkboxItems[b.chkMaster.id])};
k._cbNotifyGroup=function(b,g){for(var e in b.chkGroup){var n=b.chkGroup[e];n.checked!=g&&(n.checked=g,k._cbClick(n));k._checkboxMasters[n.id]&&k._cbNotifyGroup(k._checkboxMasters[n.id],g)}};k._cbSetCheckboxGroup=function(b,g,e){var n=b;"number"==typeof n&&(n="jmolCheckbox"+n);(b=document.getElementById(n))||alert("jmolSetCheckboxGroup: master checkbox not found: "+n);var q=k._checkboxMasters[n]={};q.chkMaster=b;q.chkGroup={};"string"==typeof g?(g=e,n=1):n=0;for(b=n;b<g.length;b++)n=g[b],"number"==
typeof n&&(n="jmolCheckbox"+n),(checkboxItem=document.getElementById(n))||alert("jmolSetCheckboxGroup: group checkbox not found: "+n),q.chkGroup[n]=checkboxItem,k._checkboxItems[n]=q};k._cbClick=function(b){k._control=b;var g=k._actions[b.id][0],e=k._actions[b.id][1];k._click(b,b.checked?g:e);k._checkboxMasters[b.id]&&k._cbNotifyGroup(k._checkboxMasters[b.id],b.checked);k._checkboxItems[b.id]&&k._cbNotifyMaster(k._checkboxItems[b.id])};k._cbOver=function(b){var g=k._actions[b.id][0],e=k._actions[b.id][1];
window.status=k._scripts[b.checked?e:g]};k._mouseOver=function(b,g){1==arguments.length&&(g=k._actions[b.id]);window.status=k._scripts[g]};k._mouseOut=function(){window.status=" ";return!0};k._onloadResetForms=function(){k._hasResetForms||(k._hasResetForms=!0,k._previousOnloadHandler=window.onload,window.onload=function(){if(0<k._buttonCount+k._checkboxCount+k._menuCount+k._radioCount+k._radioGroupCount)for(var b=document.forms,g=b.length;0<=--g;)b[g].reset();k._previousOnloadHandler&&k._previousOnloadHandler()})};
k._getButton=function(f,g,e,n,q){f=k._getIdForControl(f,g);if(null==f)return"";void 0!=n&&null!=n||(n="jmolButton"+k._buttonCount);void 0!=e&&null!=e||(e=g.substring(0,32));++k._buttonCount;k._actions[n]=k._addScript(f,g);g='<span id="span_'+n+'"'+(q?' title="'+q+'"':"")+"><input type='button' name='"+n+"' id='"+n+"' value='"+e+"' onclick='Jmol.controls._click(this)' onmouseover='Jmol.controls._mouseOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+k._buttonCssText+" /></span>";b._debugAlert&&
alert(g);return b._documentWrite(g)};k._getCheckbox=function(f,g,e,n,q,d,a){var c=k._getIdForControl(f,g);null!=c&&(c=k._getIdForControl(f,e));if(null==c)return"";void 0!=d&&null!=d||(d="jmolCheckbox"+k._checkboxCount);++k._checkboxCount;if(void 0==g||null==g||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==n||null==n)alert("jmolCheckbox requires a label");else return k._actions[d]=[k._addScript(c,g),k._addScript(c,e)],f="</span>",q='<span id="span_'+d+'"'+(a?' title="'+
a+'"':"")+"><input type='checkbox' name='"+d+"' id='"+d+"' onclick='Jmol.controls._cbClick(this)' onmouseover='Jmol.controls._cbOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+(q?"checked='true' ":"")+k._checkboxCssText+" />",0<=n.toLowerCase().indexOf("<td>")&&(q+=f,f=""),q+='<label for="'+d+'">'+n+"</label>"+f,b._debugAlert&&alert(q),b._documentWrite(q)};k._getCommandInput=function(f,g,e,n,q,d){f=k._getIdForControl(f,"x");if(null==f)return"";void 0!=n&&null!=n||(n="jmolCmd"+k._cmdCount);
void 0!=g&&null!=g||(g="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=d||(d="help");++k._cmdCount;g='<span id="span_'+n+'"'+(q?' title="'+q+'"':"")+"><input name='"+n+"' id='"+n+"' size='"+e+"' onkeydown='return Jmol.controls._commandKeyPress(event,\""+n+'","'+f+"\")' value='"+d+"'/><input type='button' name='"+n+"Btn' id='"+n+"Btn' value = '"+g+"' onclick='Jmol.controls._commandKeyPress(13,\""+n+'","'+f+"\")' /></span>";b._debugAlert&&alert(g);return b._documentWrite(g)};k._getLink=function(f,
g,e,n,q){f=k._getIdForControl(f,g);if(null==f)return"";void 0!=n&&null!=n||(n="jmolLink"+k._linkCount);void 0!=e&&null!=e||(e=g.substring(0,32));++k._linkCount;g=k._addScript(f,g);e='<span id="span_'+n+'"'+(q?' title="'+q+'"':"")+"><a name='"+n+"' id='"+n+"' href='javascript:Jmol.controls._click(null,"+g+");' onmouseover='Jmol.controls._mouseOver(null,"+g+");return true;' onmouseout='Jmol.controls._mouseOut()' "+k._linkCssText+">"+e+"</a></span>";b._debugAlert&&alert(e);return b._documentWrite(e)};
k._getMenu=function(f,g,e,n,q){var d=k._getIdForControl(f,null);void 0!=n&&null!=n||(n="jmolMenu"+k._menuCount);++k._menuCount;d=typeof g;if(null!=d&&"object"==d&&g.length){var a=g.length;"number"!=typeof e||1==e?e=null:0>e&&(e=a);e='<span id="span_'+n+'"'+(q?' title="'+q+'"':"")+"><select name='"+n+"' id='"+n+"' onChange='Jmol.controls._menuSelected(this)'"+(e?" size='"+e+"' ":"")+k._menuCssText+">";for(n=0;n<a;++n){var c=g[n],d=typeof c,j=null,p=q=null;"object"==d&&null!=c?(j=c[0],q=c[1],p=c[2]):
j=q=c;d=k._getIdForControl(f,j);if(null==d)return"";null==q&&(q=j);"#optgroup"==j?e+="<optgroup label='"+q+"'>":"#optgroupEnd"==j?e+="</optgroup>":(d=k._addScript(d,j),e+="<option value='"+d+(p?"' selected='true'>":"'>")+q+"</option>")}e+="</select></span>";b._debugAlert&&alert(e);return b._documentWrite(e)}};k._getRadio=function(f,g,e,n,q,d,a,c){0==k._radioGroupCount&&++k._radioGroupCount;d||(d="jmolRadioGroup"+(k._radioGroupCount-1));f=k._radio(f,g,e,n,q,d,a?a:d+"_"+k._radioCount,c?c:0);if(null==
f)return"";b._debugAlert&&alert(f);return b._documentWrite(f)};k._getRadioGroup=function(f,g,e,n,q,d){var a=typeof g;if("object"!=a||null==a||!g.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e="  ");var c=g.length;++k._radioGroupCount;n||(n="jmolRadioGroup"+(k._radioGroupCount-1));for(var j="<span id='"+(q?q:n)+"'>",p=0;p<c;++p){p==c-1&&(e="");var t=g[p],a=typeof t,l=null,j="object"==a?j+(l=k._radio(f,t[0],t[1],t[2],e,n,3<t.length?t[3]:(q?q:n)+"_"+p,4<t.length?t[4]:0,
d)):j+(l=k._radio(f,t,null,null,e,n,(q?q:n)+"_"+p,d));if(null==l)return""}j+="</span>";b._debugAlert&&alert(j);return b._documentWrite(j)}}})(Jmol);
(function(b){var k=function(b){b="&"+b+"=";return decodeURI(("&"+document.location.search.substring(1)+b).split(b)[1].split("&")[0])};b._j2sPath=k("_J2S");b._jarFile=k("_JAR");b._use=k("_USE");b.getVersion=function(){return b._jmolInfo.version};b.getApplet=function(f,g,e){return b._Applet._get(f,g,e)};b.getJMEApplet=function(f,g,e,k){return b._JMEApplet._get(f,g,e,k)};b.getJSVApplet=function(f,g,e){return b._JSVApplet._get(f,g,e)};b.loadFile=function(b,g,e){b._loadFile(g,e)};b.script=function(b,g){b._checkDeferred(g)||
b._script(g)};b.scriptCheck=function(b,g){return b&&b._scriptCheck&&b._ready&&b._scriptCheck(g)};b.scriptWait=function(b,g){return b._scriptWait(g)};b.scriptEcho=function(b,g){return b._scriptEcho(g)};b.scriptMessage=function(b,g){return b._scriptMessage(g)};b.scriptWaitOutput=function(b,g){return b._scriptWait(g)};b.scriptWaitAsArray=function(b,g){return b._scriptWaitAsArray(g)};b.search=function(b,g,e){b._search(g,e)};b.evaluateVar=function(b,g){return b._evaluate(g)};b.evaluate=function(b,g){return b._evaluateDEPRECATED(g)};
b.getAppletHtml=function(f,g){if(g){var e=b._document;b._document=null;f=b.getApplet(f,g);b._document=e}return f._code};b.getPropertyAsArray=function(b,g,e){return b._getPropertyAsArray(g,e)};b.getPropertyAsJavaObject=function(b,g,e){return b._getPropertyAsJavaObject(g,e)};b.getPropertyAsJSON=function(b,g,e){return b._getPropertyAsJSON(g,e)};b.getPropertyAsString=function(b,g,e){return b._getPropertyAsString(g,e)};b.getStatus=function(b,g){return b._getStatus(g)};b.resizeApplet=function(b,g){return b._resizeApplet(g)};
b.restoreOrientation=function(b,g){return b._restoreOrientation(g)};b.restoreOrientationDelayed=function(b,g,e){return b._restoreOrientationDelayed(g,e)};b.saveOrientation=function(b,g){return b._saveOrientation(g)};b.say=function(b){alert(b)};b.clearConsole=function(b){b._clearConsole()};b.getInfo=function(b){return b._info};b.setInfo=function(b,g,e){b._info=g;2<arguments.length&&b._showInfo(e)};b.showInfo=function(b,g){b._showInfo(g)};b.show2d=function(b,g){b._show2d(g)};b.jmolBr=function(){return b._documentWrite("<br />")};
b.jmolButton=function(f,g,e,k,q){return b.controls._getButton(f,g,e,k,q)};b.jmolCheckbox=function(f,g,e,k,q,d,a){return b.controls._getCheckbox(f,g,e,k,q,d,a)};b.jmolCommandInput=function(f,g,e,k,q,d){return b.controls._getCommandInput(f,g,e,k,q,d)};b.jmolHtml=function(f){return b._documentWrite(f)};b.jmolLink=function(f,g,e,k,q){return b.controls._getLink(f,g,e,k,q)};b.jmolMenu=function(f,g,e,k,q){return b.controls._getMenu(f,g,e,k,q)};b.jmolRadio=function(f,g,e,k,q,d,a,c){return b.controls._getRadio(f,
g,e,k,q,d,a,c)};b.jmolRadioGroup=function(f,g,e,k,q,d){return b.controls._getRadioGroup(f,g,e,k,q,d)};b.setCheckboxGroup=function(f,g){b.controls._cbSetCheckboxGroup(f,g,arguments)};b.setDocument=function(f){b._document=f};b.setXHTML=function(f){b._isXHTML=!0;b._XhtmlElement=null;b._XhtmlAppendChild=!1;f&&(b._XhtmlElement=document.getElementById(f),b._XhtmlAppendChild=!0)};b.setAppletCss=function(f,g){null!=f&&(b._appletCssClass=f);b._appletCssText=g?g+" ":f?'class="'+f+'" ':""};b.setButtonCss=function(f,
g){null!=f&&(b.controls._buttonCssClass=f);b.controls._buttonCssText=g?g+" ":f?'class="'+f+'" ':""};b.setCheckboxCss=function(f,g){null!=f&&(b.controls._checkboxCssClass=f);b.controls._checkboxCssText=g?g+" ":f?'class="'+f+'" ':""};b.setRadioCss=function(f,g){null!=f&&(b.controls._radioCssClass=f);b.controls._radioCssText=g?g+" ":f?'class="'+f+'" ':""};b.setLinkCss=function(f,g){null!=f&&(b.controls._linkCssClass=f);b.controls._linkCssText=g?g+" ":f?'class="'+f+'" ':""};b.setMenuCss=function(f,g){null!=
f&&(b.controls._menuCssClass=f);b.controls._menuCssText=g?g+" ":f?'class="'+f+'" ':""};b.setAppletSync=function(f,g,e){b._syncedApplets=f;b._syncedCommands=g;b._syncedReady={};b._isJmolJSVSync=e};b.setGrabberOptions=function(f){b._grabberOptions=f};b.setAppletHtml=function(f,g){f._code&&(b.$html(g,f._code),f._init&&!f._deferApplet&&f._init())};b.coverApplet=function(b,g){b._cover&&b._cover(g)};b.setFileCaching=function(f,g){f?f._cacheFiles=g:b.fileCache=g?{}:null};b.updateView=function(b,g,e){b._updateView(g,
e)};b.getChemicalInfo=function(f,g,e){g||(g="name");"string"!=typeof applet_or_Identifier&&(f=f._getSmiles());return b._getNCIInfo(f,g,e)};b.saveImage=function(b){switch(b._viewType){case "Jmol":b._script('write PNGJ "'+b._id+'.png"');break;case "JSV":b._script("write PDF");break;case "JME":b._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(b){b.__debuggingBH=!1;b._globals=["j2s.clazzloaded","j2s.object.native"];b.setGlobal=function(d,a){b._globals.push(d);window[d]=a};b.getGlobals=function(){return b._globals.sort().join("\n")};b.setConsoleDiv=function(b){window["j2s.lib"]&&(window["j2s.lib"].console=b)};b._profile=window["j2s.doProfile"]&&
self.JSON?{}:null;b.getProfile=function(){var d="";if(b._profile){var d=[],a;for(a in b._profile){var c=""+b._profile[a];d.push(" ".substring(c.length)+c+"\t"+a)}d=d.sort().reverse().join("\r\n");b._profile={}}return d};b.addProfile=function(d,a,c){d=d.__CLASS_NAME__+" "+a+" "+JSON.stringify(c);b._profile[d]||(b._profile[d]=0);b._profile[d]++};NullObject=function(){};b._supportsNativeObject=window["j2s.object.native"];b._supportsNativeObject?(b._O=function(){},b._O.__CLASS_NAME__="Object",
b._O.getClass=function(){return b._O}):b._O=Object;b.Console={};b.dateToString=Date.prototype.toString;b.getSignature=function(b,a,c,e){return e?b[a]=c:b[a]};b.addProto=function(d,a,c){b.getSignature(d,a,c,!0)};var k=b._O.prototype;b.addProto(k,"equals",function(b){return this==b});b.addProto(k,"hashCode",function(){try{return this.toString().hashCode()}catch(b){var a=":",c;for(c in this)a+=c+":";return a.hashCode()}});b.addProto(k,"getClass",function(){return b.getClass(this)});b.addProto(k,"clone",
function(){return b.clone(this)});b.clone=function(b){var a=new b.constructor,c;for(c in b)a[c]=b[c];return a};b.addProto(k,"finalize",function(){});b.addProto(k,"notify",function(){});b.addProto(k,"notifyAll",function(){});b.addProto(k,"wait",function(){});b.addProto(k,"to$tring",Object.prototype.toString);b.addProto(k,"toString",function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)});b._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");
b.extendJO=function(d,a){a&&(d.__CLASS_NAME__=d.prototype.__CLASS_NAME__=a);if(b._supportsNativeObject)for(var c=0;c<b._extendedObjectMethods.length;c++){var e=b._extendedObjectMethods[c];b.getSignature(d.prototype,e,b._O.prototype[e],!0)}};b.extractClassName=function(b){b=b.substring(1,b.length-1);return 0<=b.indexOf("Array")?"Array":0<=b.indexOf("object ")?b.substring(7):b};b.getClassName=function(d,a){if(null==d)return"NullObject";if(d instanceof b.CastedNull)return d.clazzName;switch(typeof d){case "number":return"Number";
case "boolean":return"Boolean";case "string":return"String";case "function":if(d.__CLASS_NAME__)return a?d.__CLASS_NAME__:"Class";var c=d.toString(),e=c.indexOf("function");if(0>e)return"["==c.charAt(0)?b.extractClassName(c):c.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,f=c.indexOf("(",e);if(0>f)return"Object";c=c.substring(e,f);if(0<=c.indexOf("Array"))return"Array";c=c.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==c||""==c?"Function":c;case "object":if(d.__CLASS_NAME__)return d.__CLASS_NAME__;
if(!d.constructor)return"Object";if(!d.constructor.__CLASS_NAME__){if(d instanceof Number)return"Number";if(d instanceof Boolean)return"Boolean";if(d instanceof Array)return"Array";c=d.toString();if("["==c.charAt(0))return b.extractClassName(c)}}return b.getClassName(d.constructor,!0)};b.getClass=function(d){if(!d)return b._O;if("function"==typeof d)return d;if(d instanceof b.CastedNull)d=d.clazzName;else switch(typeof d){case "string":return String;case "object":if(!d.__CLASS_NAME__)return d.constructor||
b._O;d=d.__CLASS_NAME__;break;default:return d.constructor}return b.evalType(d,!0)};b.extendsProperties=function(d,a){for(var c in a)"b$"!=c&&("prototype"!=c&&"superClazz"!=c&&"__CLASS_NAME__"!=c&&"implementz"!=c&&!b.checkInnerFunction(a,c))&&(d[c]=a[c])};b.checkInnerFunction=function(d,a){for(var c=0;c<b.innerFunctionNames.length;c++)if(a==b.innerFunctionNames[c]&&b._innerFunctions[a]===d[a])return!0;return!1};b.implementsProperties=function(d,a){for(var c in a)if("b$"!=c&&"prototype"!=c&&"superClazz"!=
c&&"__CLASS_NAME__"!=c&&"implementz"!=c&&("function"!=typeof a[c]||!b.checkInnerFunction(a,c)))d[c]=d.prototype[c]=a[c]};b.args4InheritClass=function(){};b.inheritArgs=new b.args4InheritClass;b.inheritClass=function(d,a,c){b.extendsProperties(d,a);b.unloadedClasses[b.getClassName(d,!0)]||(d.prototype=c?c:a!==Number?new a(b.inheritArgs):new Number);d.superClazz=a;d.prototype.__CLASS_NAME__=d.__CLASS_NAME__};b.implementOf=function(d,a){if(2<=arguments.length){d.implementz||(d.implementz=[]);var c=d.implementz;
if(2==arguments.length)if("function"==typeof a)c.push(a),b.implementsProperties(d,a);else{if(a instanceof Array)for(var e=0;e<a.length;e++)c.push(a[e]),b.implementsProperties(d,a[e])}else for(e=1;e<arguments.length;e++)c.push(arguments[e]),b.implementsProperties(d,arguments[e])}};b.extendInterface=b.implementOf;b.equalsOrExtendsLevel=function(d,a){if(d===a)return 0;if(d.implementz)for(var c=d.implementz,e=0;e<c.length;e++){var f=b.equalsOrExtendsLevel(c[e],a);if(0<=f)return f+1}return-1};b.getInheritedLevel=
function(d,a){if(d===a)return 0;var c="string"==typeof d;if(c&&("void"==d||"unknown"==d))return-1;var e="string"==typeof a;if(e&&("void"==a||"unknown"==a))return-1;if(d===(c?"NullObject":NullObject))switch(a){case Number:case Boolean:case NullObject:break;default:return 0}c&&(d=b.evalType(d));e&&(a=b.evalType(a));if(!a||!d)return-1;c=0;for(e=d;e!==a&&10>c;){if(e.implementz)for(var f=e.implementz,g=0;g<f.length;g++){var l=b.equalsOrExtendsLevel(f[g],a);if(0<=l)return c+l+1}e=e.superClazz;if(!e)return a===
Object||a===b._O?c+1.5:-1;c++}return c};b.instanceOf=function(d,a){return null!=d&&a&&(d instanceof a||0<=b.getInheritedLevel(b.getClassName(d),a))};b.superCall=function(d,a,c,e){var f=null,g=-1,l=d[c];if(l)if(l.claxxOwner)l.claxxOwner!==a&&(f=l);else if(!l.stacks&&(!l.lastClaxxRef||!l.lastClaxxRef.prototype[c]||!l.lastClaxxRef.prototype[c].stacks))f=l;else{var k=l.stacks;k||(k=l.lastClaxxRef.prototype[c].stacks);for(g=k.length;0<=--g;)if(a===k[g]){0<g?(g--,f=k[g].prototype[c]):f=k[0].prototype[c]["\\unknown"];
break}else if(0<b.getInheritedLevel(a,k[g])){f=k[g].prototype[c];break}}if(f)return 0==g&&"construct"==c&&(a=l.stacks)&&(!a[0].superClazz&&a[0].con$truct)&&a[0].con$truct.apply(d,[]),f.apply(d,e||[]);if("construct"!=c)throw b.alert(["j2slib","no class found",e.typeString]),new b.MethodNotFoundException(d,a,c,b.getParamsType(e).typeString);};b.findArrayItem=function(b,a){if(b&&a)for(var c=b.length;0<=--c;)if(b[c]===a)return c;return-1};b.removeArrayItem=function(d,a){var c=b.findArrayItem(d,a);if(0<=
c){for(var e=d.length-1;c<e;c++)d[c]=d[c+1];d.length--;return!0}};b.superConstructor=function(d,a,c){b.superCall(d,a,"construct",c);a.con$truct&&a.con$truct.apply(d,[])};b.CastedNull=function(d){this.clazzName=d?d instanceof String?d:d instanceof Function?b.getClassName(d,!0):""+d:"Object";this.toString=function(){return null};this.valueOf=function(){return null}};b.castNullAs=function(d){return new b.CastedNull(d)};b.MethodException=function(){};b.MethodNotFoundException=function(){this.toString=
function(){return"MethodNotFoundException"}};b.getParamsType=function(d){var a=d.length;switch(a){case 0:var c=["void"];c.typeString="\\void";return c;case 1:if((c=d[0])&&"number"==typeof c)return c=["Number"],c.typeString="\\Number",c}c=[];c.hasCastedNull=!1;if(d)for(var e=0;e<a;e++)c[e]=b.getClassName(d[e]),d[e]instanceof b.CastedNull&&(c.hasCastedNull=!0);c.typeString="\\"+c.join("\\");return c};b.searchAndExecuteMethod=function(d,a,c,e){var f=d[c],g=b.getParamsType(e);b._profile&&b.addProfile(a,
c,g);if(f.lastParams==g.typeString&&f.lastClaxxRef===a){if(g.hasCastedNull){a=[];for(c=0;c<e.length;c++)a[c]=e[c]instanceof b.CastedNull?null:e[c]}else a=e;return f.lastMethod?f.lastMethod.apply(d,a):null}f.lastParams=g.typeString;f.lastClaxxRef=a;var l=f.stacks;l||(l=a.prototype[c].stacks);for(var k=!1,n=l.length;0<=--n;)if(k||l[n]===a){k=b.tryToSearchAndExecute(c,d,l[n].prototype[c],g,e,f);if(!(k instanceof b.MethodException))return k;k=!0}if("construct"!=c)throw new b.MethodNotFoundException(d,
a,c,g.typeString);};b.tryToSearchAndExecute=function(d,a,c,e,f,g){var l=[];d=!0;for(var k in c)if(92==k.charCodeAt(0)){var n=k.substring(1).split("\\");n.length==e.length&&l.push(n);d=!1}else if(d&&"funParams"==k&&c.funParams){k=c.funParams;n=k.substring(1).split("\\");n.length==e.length&&(l[0]=n);break}if(0==l.length)return new b.MethodException;if(l=b.searchMethod(l,e)){k=null;k=d?c:c["\\"+l];c=null;if(e.hasCastedNull){c=[];for(e=0;e<f.length;e++)c[e]=f[e]instanceof b.CastedNull?null:f[e]}else c=
f;g.lastMethod=k;return k.apply(a,c)}return new b.MethodException};b._initializingException=!1;b.searchMethod=function(d,a){for(var c=[],e=d.length,f=0;f<e;f++){for(var g=[],l=!0,k=d[f].length,n=0;n<k;n++)if(g[n]=b.getInheritedLevel(a[n],d[f][n]),0>g[n]){l=!1;break}l&&(g[a.length]=f,c.push(g))}if(0==c.length)return null;e=c[0];for(f=1;f<c.length;f++){g=!0;for(n=0;n<a.length;n++)if(e[n]<c[f][n]){g=!1;break}g&&(e=c[f])}return d[e[a.length]].join("\\")};b.generateDelegatingMethod=function(b,a){var c=
function(){var a=arguments;return SAEM(this,a.callee.claxxReference,a.callee.methodName,a)};c.methodName=a;c.claxxReference=b;return c};SAEM=b.searchAndExecuteMethod;b.expExpandParameters=function(b,a){switch(a){case "N":return"Number";case "B":return"Boolean";case "S":return"String";case "O":return"Object";case "A":return"Array"}return"Unknown"};b.formatParameters=function(d){return d?d.replace(/~([NABSO])/g,b.expExpandParameters).replace(/\s+/g,"").replace(/^|,/g,"\\").replace(/\$/g,"org.eclipse.s"):
"\\void"};b.overrideMethod=function(d,a,c,e){b.assureInnerClass&&b.assureInnerClass(d,c);c.exName=a;e=b.formatParameters(e);c.funParams=e;c.claxxOwner=d;return b.getSignature(d.prototype,a,c,!0)};b.defineMethod=function(d,a,c,e){b.assureInnerClass&&b.assureInnerClass(d,c);c.exName=a;e=b.formatParameters(e);var f=d.prototype,g=b.getSignature(f,a,c,!1);if(!g||g.claxxOwner===d&&g.funParams==e)return c.funParams=e,c.claxxOwner=d,c.exClazz=d,b.getSignature(f,a,c,!0);var l=null,k=[];g.stacks?k=g.stacks:
(l=g,g.claxxOwner&&(k[0]=l.claxxOwner));if(!g.stacks||g.claxxReference!==d){g=b.getSignature(f,a,b.generateDelegatingMethod(d,a,g),!0);a=[];for(f=0;f<k.length;f++)a[f]=k[f];g.stacks=a}k=g.stacks;0>b.findArrayItem(k,d)&&k.push(d);l&&(l.claxxOwner===d?(g[l.funParams]=l,l.claxxOwner=null,l.funParams=null):l.claxxOwner||(g["\\unknown"]=l));c.exClazz=d;g[e]=c;return g};b.makeConstructor=function(d,a,c){b.defineMethod(d,"construct",a,c);d.con$truct&&(d.con$truct.index=d.con$truct.stacks.length)};b.overrideConstructor=
function(d,a,c){b.overrideMethod(d,"construct",a,c);d.con$truct&&(d.con$truct.index=d.con$truct.stacks.length)};b.allPackage={};b.allClasses={};b.lastPackageName=null;b.lastPackage=null;b.unloadedClasses=[];b.declarePackage=function(d){if(b.lastPackageName==d)return b.lastPackage;if(d&&d.length){for(var a=d.split(/\./),c=b.allPackage,e=0;e<a.length;e++)c[a[e]]||(c[a[e]]={__PKG_NAME__:c.__PKG_NAME__?c.__PKG_NAME__+"."+a[e]:a[e]},0==e&&b.setGlobal(a[e],c[a[e]])),c=c[a[e]];b.lastPackageName=d;return b.lastPackage=
c}};b.evalType=function(d,a){var c=d.lastIndexOf(".");if(-1!=c){var e=d.substring(0,c),e=b.declarePackage(e),c=d.substring(c+1);return e[c]}if(a)return window[d];switch(d){case "string":return String;case "number":return Number;case "object":return b._O;case "boolean":return Boolean;case "function":return Function;case "void":case "undefined":case "unknown":return d;case "NullObject":return NullObject;default:return window[d]}};b.defineType=function(d,a,c,e){var f=b.unloadedClasses[d];f&&(a=f);f=
d.lastIndexOf(".");if(-1!=f){var g=d.substring(0,f),g=b.declarePackage(g),f=d.substring(f+1);if(g[f])return g[f];g[f]=a}else{if(window[d])return window[d];b.setGlobal(d,a)}b.decorateAsType(a,d,c,e);d=b._innerFunctions;a.defineMethod=d.defineMethod;a.defineStaticMethod=d.defineStaticMethod;a.makeConstructor=d.makeConstructor;return a};b.isSafari=-1!=navigator.userAgent.indexOf("Safari");b.isSafari4Plus=!1;if(b.isSafari){var k=navigator.userAgent,f=k.indexOf("Version/");-1!=f&&(k=k.substring(f+8),k=
parseFloat(k),b.isSafari4Plus=4<=k)}b.instantialize=function(d,a){if(!a||!(1==a.length&&a[0]&&a[0]instanceof b.args4InheritClass)){d instanceof Number&&(d.valueOf=function(){return this});if(b.isSafari4Plus){for(var c=[],e=0;e<a.length;e++)c[e]=a[e];a=c}(c=d.construct)?d.con$truct?d.getClass().superClazz?c.claxxOwner&&c.claxxOwner===d.getClass()||c.stacks&&c.stacks[c.stacks.length-1]==d.getClass()?c.apply(d,a):(c.claxxOwner&&!c.claxxOwner.superClazz&&c.claxxOwner.con$truct?c.claxxOwner.con$truct.apply(d,
[]):c.stacks&&(1==c.stacks.length&&!c.stacks[0].superClazz)&&c.stacks[0].con$truct.apply(d,[]),c.apply(d,a),d.con$truct.apply(d,[])):(d.con$truct.apply(d,[]),c.apply(d,a)):c.apply(d,a):d.con$truct&&d.con$truct.apply(d,[])}};b.innerFunctionNames="equals hashCode getName getClassLoader getResource getResourceAsStream defineMethod defineStaticMethod makeConstructor".split(" ");b._innerFunctions={equals:function(b){return this===b},hashCode:function(){return this.getName().hashCode()},toString:function(){return"class "+
this.getName()},getName:function(){return b.getClassName(this,!0)},getClassLoader:function(){var d=this.__CLASS_NAME__,a=b._Loader.getClasspathFor(d),c=a.lastIndexOf(d.replace(/\./g,"/")),a=-1!=c?a.substring(0,c):b._Loader.getClasspathFor(d,!0),d=b._Loader.requireLoaderByBase(a);d.getResourceAsStream=b._innerFunctions.getResourceAsStream;d.getResource=b._innerFunctions.getResource;return d},getResource:function(b){return this.getResourceAsStream(b).url},getResourceAsStream:function(d){if(!d)return null;
var a=null;java.io.InputStream?a=new java.io.InputStream:(a=new b._O,a.__CLASS_NAME__="java.io.InputStream",a.close=NullObject);a.read=function(){return 0};d=d.replace(/\\/g,"/");var c=null,e=this.__CLASS_NAME__;2==arguments.length&&0!=d.indexOf("/")&&(d="/"+d);if(0==d.indexOf("/"))if(2==arguments.length?(c=arguments[1])||(c=b._Loader.binaryFolders[0]):b._Loader&&(c=b._Loader.getClasspathFor(e,!0)),c){var c=c.replace(/\\/g,"/"),f=c.length,f=c.charAt(f-1);"/"!=f&&(c+="/");a.url=c+d.substring(1)}else a.url=
d.substring(1);else{if(this.base)c=this.base;else if(b._Loader)if(c=b._Loader.getClasspathFor(e),f=c.lastIndexOf(e.replace(/\./g,"/")),-1!=f)c=c.substring(0,f);else if(f=-1,c.indexOf(".z.js")==c.length-5&&-1!=(f=c.lastIndexOf("/")))for(var c=c.substring(0,f+1),f=e.split(/\./),g=1;g<f.length;g++){for(var l="/",k=0;k<g;k++)l+=f[k]+"/";if(l.length>c.length)break;if(c.indexOf(l)==c.length-l.length){c=c.substring(0,c.length-l.length+1);break}}else c=b._Loader.getClasspathFor(e,!0);else(f=b.binaryFolders)&&
f.length&&(c=f[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");f=c.length;f=c.charAt(f-1);"/"!=f&&(c+="/");this.base?a.url=c+d:(f=e.lastIndexOf("."),a.url=-1==f||this.base?c+d:c+e.substring(0,f).replace(/\./g,"/")+"/"+d)}return a},defineMethod:function(d,a,c){b.defineMethod(this,d,a,c)},defineStaticMethod:function(d,a,c){b.defineMethod(this,d,a,c);this[d]=this.prototype[d]},makeConstructor:function(d,a){b.makeConstructor(this,d,a)}};b.decorateFunction=function(d,a,c){var e;a?a.__PKG_NAME__?(e=a.__PKG_NAME__+
"."+c,a[c]=d,a===java.lang&&b.setGlobal(c,d)):(e=a.__CLASS_NAME__+"."+c,a[c]=d):(e=c,b.setGlobal(c,d));b.extendJO(d,e);a=b.innerFunctionNames;for(c=0;c<a.length;c++)d[a[c]]=b._innerFunctions[a[c]];b._Loader&&(d=b._Loader.findClass(e))&&d.status==b._Node.STATUS_KNOWN&&window.setTimeout(function(a){return function(){b._Loader.updateNode(a)}}(d),1)};b.currentPath="";b.declareInterface=function(d,a,c){var e=function(){};b.decorateFunction(e,d,a);c&&b.implementOf(e,c);return e};b.decorateAsClass=function(d,
a,c,e,f,g){var l=null;a&&(l=a.__PKG_NAME__,l||(l=a.__CLASS_NAME__));(l=b.unloadedClasses[(l?l+".":"")+c])&&(d=l);b.decorateFunction(d,a,c);g?b.inheritClass(d,e,g):e&&b.inheritClass(d,e);f&&b.implementOf(d,f);return d};b.declareType=function(d,a,c,e,f){return b.decorateAsClass(function(){b.instantialize(this,arguments)},d,a,c,e,f)};b.declareAnonymous=function(d,a,c,e,f){return b.decorateAsClass(function(){b.prepareCallback(this,arguments);b.instantialize(this,arguments)},d,a,c,e,f)};b.decorateAsType=
function(d,a,c,e,f,g){b.extendJO(d,a);d.equals=b._innerFunctions.equals;d.getName=b._innerFunctions.getName;if(g)for(a=0;a<b.innerFunctionNames.length;a++)g=b.innerFunctionNames[a],d[g]=b._innerFunctions[g];f?b.inheritClass(d,c,f):c&&b.inheritClass(d,c);e&&b.implementOf(d,e);return d};b._ex_reg=function(b,a,c){c||(c="[^\\s]+");var e=b.indexOf(a);b=b.substring(0,e)+c+b.substring(e+a.length);return RegExp("^"+b+"$")};try{null.hello()}catch(g){/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)?(k=g.message.indexOf(":"),
f=g.message.indexOf(":",k+2),b._NPEMsgFragment=g.message.substr(k+1,f-k-20),b._isNPEExceptionPredicate=function(d){return-1!=d.message.indexOf(b._NPEMsgFragment)}):-1!=navigator.userAgent.toLowerCase().indexOf("webkit")?(b._exceptionNPERegExp=b._ex_reg(g.message,"hello"),b._isNPEExceptionPredicate=function(d){return b._exceptionNPERegExp.test(d.message)}):(b._exceptionNPERegExp=b._ex_reg(g.message,"$$o$$"),b._isNPEExceptionPredicate=function(d){return b._exceptionNPERegExp.test(d.message)})}b.exceptionOf=
function(d,a){return d.__CLASS_NAME__?b.instanceOf(d,a):a==Error?(0<=(""+d).indexOf("Error")&&System.out.println(b.getStackTrace()),0<=(""+d).indexOf("Error")):a==Exception||a==Throwable||a==NullPointerException&&b._isNPEExceptionPredicate(d)};b.getStackTrace=function(b){b||(b=25);for(var a="\n",c=arguments.callee.caller,e=0;e<b&&c;e++)a+=e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName:c.toString?c.toString().substring(0,c.toString().indexOf("{")):"<native method>")+"\n",
c=c.caller;return a};Number.prototype._numberToString=Number.prototype.toString;b.declarePackage("java.io");b.declarePackage("java.lang.annotation");b.declarePackage("java.lang.instrument");b.declarePackage("java.lang.management");b.declarePackage("java.lang.reflect");b.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;b.declarePackage("java.util");b.declareInterface(java.io,"Closeable");b.declareInterface(java.io,"DataInput");b.declareInterface(java.io,"DataOutput");b.declareInterface(java.io,
"Externalizable");b.declareInterface(java.io,"Flushable");b.declareInterface(java.io,"Serializable");b.declareInterface(java.lang,"Iterable");b.declareInterface(java.lang,"CharSequence");b.declareInterface(java.lang,"Cloneable");b.declareInterface(java.lang,"Appendable");b.declareInterface(java.lang,"Comparable");b.declareInterface(java.lang,"Runnable");b.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};if(window.Clazz&&!window.Clazz.unloadClass){b.MethodNotFoundException=
function(d,a,c,e){d="";e&&(d=e.substring(1).replace(/\\/g,","));this.message=(c&&"construct"!=c?"Method":"Constructor")+" "+b.getClassName(a,!0)+"."+c+"("+d+") is not found!";this.toString=function(){return"MethodNotFoundException:"+this.message}};b.prepareCallback=function(d,a){var c=a[0];if(d&&c&&c!==window){var e=b.getClassName(c,!0),f={};if(d.b$)for(var g in d.b$)f[g]=d.b$[g];d.b$=f;f[e]=c;for(e=b.getClass(c);e.superClazz;)e=e.superClazz,f[b.getClassName(e,!0)]=c;if(c=c.b$)for(g in c)f[g]=c[g]}for(f=
0;f<a.length-1;f++)a[f]=a[f+1];a.length--};b.innerTypeInstance=function(d,a,c){d||(d=arguments.callee.caller);var e;if(c||a.$finals)if(e=new d(a,b.inheritArgs),c)if(a.f$){var f={},g;for(g in a.f$)f[g]=a.f$[g];for(g in c)f[g]=c[g];e.f$=f}else e.f$=c;else a.f$&&(e.f$=a.f$);else switch(arguments.length){case 3:return new d(a);case 4:return a.__CLASS_NAME__==d.__CLASS_NAME__&&arguments[3]===b.inheritArgs?a:new d(a,arguments[3]);case 5:return new d(a,arguments[3],arguments[4]);case 6:return new d(a,arguments[3],
arguments[4],arguments[5]);case 7:return new d(a,arguments[3],arguments[4],arguments[5],arguments[6]);case 8:return new d(a,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7]);case 9:return new d(a,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);case 10:return new d(a,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);default:e=new d(a,b.inheritArgs)}g=arguments.length-3;for(f=Array(g);0<=--g;)f[g]=arguments[g+3];
b.instantialize(e,f);return e};b.cloneFinals=function(){for(var b={},a=arguments.length/2;0<=--a;)b[arguments[a+a]]=arguments[a+a+1];return b};b.isClassDefined=b.isDefinedClass=function(d){if(!d)return!1;if(b.allClasses[d])return!0;for(var a=d.split(/\./),c=null,e=0;e<a.length;e++)if(!(c=c?c[a[e]]:b.allPackage[a[0]]))return!1;return c&&(b.allClasses[d]=!0)};b.defineEnumConstant=function(b,a,c,e,f){f=f?new f:new b;f.$name=a;f.$ordinal=c;e&&e.length&&f.construct.apply(f,e);b[a]=f;b.prototype[a]=f;b["$ values"]||
(b["$ values"]=[],b.values=function(){return this["$ values"]});b["$ values"].push(f);return f};b.floatToInt=function(b){return 0>b?Math.ceil(b):Math.floor(b)};b.floatToByte=b.floatToShort=b.floatToLong=b.floatToInt;b.doubleToByte=b.doubleToShort=b.doubleToLong=b.doubleToInt=b.floatToInt;b.floatToChar=function(b){return String.fromCharCode(0>b?Math.ceil(b):Math.floor(b))};b.doubleToChar=b.floatToChar;self.Int32Array&&self.Int32Array!=Array?(b.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=
Array.prototype.sort)):(Int32Array=function(b){b||(b=0);var a=Array(b);a.toString=function(){return"[object Int32Array]"};for(var c=0;c<b;c++)a[c]=0;return a},b.haveInt32=!1,Int32Array.prototype.sort=Array.prototype.sort,Int32Array.prototype.int32Fake=function(){});self.Float64Array&&self.Float64Array!=Array?(b.haveFloat64=!0,Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort)):(b.haveFloat64=!1,Float64Array=function(b){b||(b=0);for(var a=Array(b),c=0;c<b;c++)a[c]=0;return a},
Float64Array.prototype.sort=Array.prototype.sort,Float64Array.prototype.float64Fake=function(){},Float64Array.prototype.toString=function(){return"[object Float64Array]"});b.newArray=function(){if(arguments[0]instanceof Array)var d=arguments[0],a=arguments[1];else d=arguments,a=Array;if(1>=d.length)return[];var c=d[0];"string"==typeof c&&(c=c.charCodeAt(0));var e=d.length-1,f=d[e];if(2==d.length){if(null==f)return Array(c);if(!0===a&&b.haveInt32)return new Int32Array(c);if(!1===a&&b.haveFloat64)return new Float64Array(c);
if(a==Array&&null==f)return Array(c);for(var d=!0===a?new Int32Array:!1===a?new Float64Array:Array(c),g=c;0<=--g;)d[g]=f;return d}for(var l=Array(e),g=0;g<e;g++)l[g]=d[g+1];d=Array(c);if(null==f||0<=f||2<e)for(g=0;g<c;g++)d[g]=b.newArray(l,a);return d};b.newArray32=function(d,a){var c=d[0];"string"==typeof c&&(c=c.charCodeAt(0));var e=d.length-1,f=d[e];switch(d.length){case 0:case 1:return alert("ERROR IN newArray32 -- args length < 2"),[];case 2:if(0>f)return Array(c);try{return a?new Int32Array(c):
new Float64Array(c)}catch(g){alert(c+" "+arguments.callee.caller.arguments.callee.caller+g)}}for(f=Array(e);0<=--e;)f[e]=d[e+1];for(var l=Array(c),e=0;e<c;e++)l[e]=b.newArray(f,a);return l};b.newInt32Array=function(){return b.newArray32(arguments,!0)};b.newFloat64Array=function(){return b.newArray32(arguments,!1)};b.newFloatArray=b.newDoubleArray=b.newFloat64Array;b.newIntArray=b.newLongArray=b.newShortArray=b.newByteArray=b.newInt32Array;b.newCharArray=b.newBooleanArray=b.newArray;b.arrayIs=function(b,
a){return b.constructor&&b.constructor!=Number&&0<=b.constructor.toString().indexOf(a)};b.isAS=function(d){return d&&"object"==typeof d&&b.arrayIs(d," Array")&&("string"==typeof d[0]||"undefined"==typeof d[0])};b.isASS=function(d){return d&&"object"==typeof d&&b.isAS(d[0])};b.isAP=function(d){return d&&"JU.P3"==b.getClassName(d[0])};b.isAI=function(d){return d&&"object"==typeof d&&(b.haveInt32?b.arrayIs(d,"Int32Array"):d.int32Fake?!0:!1)};b.isAII=function(d){return d&&"object"==typeof d&&b.isAI(d[0])};
b.isAF=function(d){return d&&"object"==typeof d&&(b.haveFloat64?b.arrayIs(d,"Float64Array"):d.float64Fake?!0:!1)};b.isAFF=function(d){return d&&"object"==typeof d&&b.isAF(d[0])};b.isAFFF=function(d){return d&&"object"==typeof d&&b.isAFF(d[0])};b.isAFloat=function(d){return d&&"object"==typeof d&&b.arrayIs(d," Array")&&b.instanceOf(d[0],Float)};b.defineStatics=function(b){for(var a=arguments.length,c=(a-1)/2;0<=--c;){var e=arguments[--a],f=arguments[--a];b[f]=b.prototype[f]=e}};b.prepareFields=function(d,
a){var c=[];if(d.con$truct)for(var e=d.con$truct.stacks,f=0;f<e.length;f++)c[f]=e[f];b.addProto(d.prototype,"con$truct",d.con$truct=function(){var a=arguments.callee.stacks;if(a)for(var b=0;b<a.length;b++)a[b].apply(this,[])});c.push(a);d.con$truct.stacks=c;d.con$truct.index=0};b.registerSerializableFields=function(b){var a=arguments,c=a.length,e=[];if(b.declared$Fields)for(var f=0;f<b.declared$Fields.length;f++)e[f]=b.declared$Fields[f];b.declared$Fields=e;if(0<c&&1==c%2){e=b.declared$Fields;c=(c-
1)/2;for(f=1;f<=c;f++){for(var g={name:a[f+f-1],type:a[f+f]},l=!1,k=0;k<e.length;k++)if(e[k].name==g.name){e[k].type=g.type;l=!0;break}l||e.push(g)}}};b.getMixedCallerMethod=function(d){var a={};if((d=d.callee.caller)&&d!==b.tryToSearchAndExecute)d=d.arguments.callee.caller;if(d!==b.tryToSearchAndExecute||(d=d.arguments.callee.caller)!==b.searchAndExecuteMethod)return null;a.claxxRef=d.arguments[1];a.fxName=d.arguments[2];a.paramTypes=b.getParamsType(d.arguments[3]);d=d.arguments.callee.caller&&d.arguments.callee.caller;
if(!d)return null;a.caller=d;return a};c$=null;b.cStack=[];b.pu$h=function(d){d&&b.cStack.push(d)};b.p0p=function(){return b.cStack.pop()};b.tracingCalling=!1;b._initializingException=!1;b.callingStack=function(b,a){this.caller=b;this.owner=a};b._callingStackTraces=[];java.lang.Object=b._O;b._O.getName=b._innerFunctions.getName;System={props:null,$props:{},arraycopy:function(b,a,c,e,f){if(b!==c)for(var g=0;g<f;g++)c[e+g]=b[a+g];else{for(var l=[],g=0;g<f;g++)l[g]=b[a+g];for(g=0;g<f;g++)c[e+g]=l[g]}},
currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return System.props},getProperty:function(b,a){if(System.props)return System.props.getProperty(b,a);var c=System.$props[b];return c?c:1==arguments.length?null:a?a:b},getSecurityManager:function(){return null},setProperties:function(b){System.props=b},setProperty:function(b,a){if(!System.props)return System.$props[b]=a;System.props.setProperty(b,a)}};System.setProperty("line.separator",0<=navigator.userAgent.indexOf("Windows")?
"\r\n":"\n");System.setProperty("os.name",navigator.userAgent);System.out=new b._O;System.out.__CLASS_NAME__="java.io.PrintStream";System.out.print=function(){};System.out.printf=function(){};System.out.println=function(){};System.out.write=function(){};System.err=new b._O;System.err.__CLASS_NAME__="java.io.PrintStream";System.err.print=function(){};System.err.printf=function(){};System.err.println=function(){};System.err.write=function(){};b.popup=b.assert=b.log=b.error=window.alert;Thread=function(){};
Thread.J2S_THREAD=Thread.prototype.J2S_THREAD=new Thread;Thread.currentThread=Thread.prototype.currentThread=function(){return this.J2S_THREAD};b.declarePackage("java.lang.reflect");b.declarePackage("java.security");b.innerFunctionNames=b.innerFunctionNames.concat("getSuperclass isAssignableFrom getMethods getMethod getDeclaredMethods getDeclaredMethod getConstructor getModifiers newInstance".split(" "));b._innerFunctions.getSuperclass=function(){return this.superClazz};b._innerFunctions.isAssignableFrom=
function(d){return 0<=b.getInheritedLevel(d,this)};b._innerFunctions.getConstructor=function(){return new java.lang.reflect.Constructor(this,[],[],java.lang.reflect.Modifier.PUBLIC)};b._innerFunctions.getDeclaredMethods=b._innerFunctions.getMethods=function(){var b=[],a=this.prototype,c;for(c in a)"function"==typeof a[c]&&!a[c].__CLASS_NAME__&&b.push(new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC));a=this;for(c in a)"function"==typeof a[c]&&!a[c].__CLASS_NAME__&&
b.push(new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC));return b};b._innerFunctions.getDeclaredMethod=b._innerFunctions.getMethod=function(b){var a=this.prototype,c;for(c in a)if(b==c&&"function"==typeof a[c]&&!a[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC);a=this;for(c in a)if(b==c&&"function"==typeof a[c]&&!a[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,
c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC);return null};b._innerFunctions.getModifiers=function(){return java.lang.reflect.Modifier.PUBLIC};b._innerFunctions.newInstance=function(){return new this};k=b.innerFunctionNames;for(f=0;f<k.length;f++)b._O[k[f]]=b._innerFunctions[k[f]],Array[k[f]]=b._innerFunctions[k[f]];b.cleanDelegateMethod=function(b){b&&("function"==typeof b&&b.lastMethod&&b.lastParams&&b.lastClaxxRef)&&(b.lastMethod=null,b.lastParams=
null,b.lastClaxxRef=null)};b.unloadClass=function(d){var a=b.evalType(d);if(a){b.unloadedClasses[d]=a;for(var c=d.split(/\./),e=null,f=0;f<c.length-1;f++)e=e?e[c[f]]:b.allPackage[c[0]];if(e)for(g in e[c[c.length-1]]=null,e)0==g.indexOf(c[c.length-1]+"$")&&(b.unloadClass(e.__PKG_NAME__+"."+g),e[g]=null);else{b.allPackage[c[0]]=null;window[c[0]]=null;for(var g in window)0==g.indexOf(d+"$")&&(b.unloadClass(g),window[g]=null)}if(b.allClasses[d])for(g in b.allClasses[d]=!1,b.allClasses)0==g.indexOf(d+
"$")&&(b.allClasses[g]=!1);for(var l in a)b.cleanDelegateMethod(a[l]);for(l in a.prototype)b.cleanDelegateMethod(a.prototype[l]);b._Loader&&b._Loader.unloadClassExt(d);return!0}return!1}}b._Loader=function(){};b._Node=function(){b._Loader.initNode(this)};(function(b,a,c){a.initNode=function(a){a.parents=[];a.musts=[];a.optionals=[];a.declaration=null;a.name=null;a.path=null;a.requires=null;a.requiresMap=null;a.onRequiredLoaded=null;a.status=0;a.random=0.13412};c.prototype.toString=function(){return this.name||
this.path||"ClazzNode"};c.STATUS_UNKNOWN=0;c.STATUS_KNOWN=1;c.STATUS_CONTENT_LOADED=2;c.STATUS_MUSTS_LOADED=3;c.STATUS_DECLARED=4;c.STATUS_OPTIONALS_LOADED=5;a.loaders=[];a.requireLoaderByBase=function(b){for(var c=0;c<a.loaders.length;c++)if(a.loaders[c].base==b)return a.loaders[c];c=new a;c.base=b;a.loaders.push(c);return c};a.clazzTreeRoot=new c;a.loadedScripts={};a.inLoadingThreads=0;a.maxLoadingThreads=6;a.userAgent=navigator.userAgent.toLowerCase();a.isOpera=-1!=a.userAgent.indexOf("opera");
a.isIE=-1!=a.userAgent.indexOf("msie")&&!a.isOpera;a.isGecko=-1!=a.userAgent.indexOf("gecko");if(a.isOpera){a.maxLoadingThreads=1;var e=a.userAgent.indexOf("opera/");if(-1!=e){var f=9;try{f=parseFloat(a.userAgent.subString(e+6))}catch(g){}9.6<=f&&(a.maxLoadingThreads=6)}}window.Clazz&&b.isClassDefined?a.isClassDefined=b.isClassDefined:(a.definedClasses={},a.isClassDefined=function(b){return!0==a.definedClasses[b]});a.unwrapArray=function(a){if(!a||0==a.length)return[];for(var b=null,c=0;c<a.length;c++)if(a[c]){if("$"==
a[c].charAt(0))if("."==a[c].charAt(1)){if(!b)continue;var d=b.lastIndexOf(".");-1!=d&&(b=b.substring(0,d),a[c]=b+a[c].substring(1))}else a[c]="org.eclipse.s"+a[c].substring(1);b=a[c]}return a};a.classQueue=[];a.classpathMap={};a.loadPackageClasspath=function(b,c,d,e,f,g){var j=a.classpathMap;f||(f=0);e||(e=null);g||(g=0);var k=d&&j["@"+b];if(0==f&&(d&&!j["@java"]&&0!=b.indexOf("java")&&a.needPackage("java"))&&(a.loadPackage("java",e?function(){a.loadPackageClasspath(b,c,d,e,1)}:null),e))return;if(b instanceof
Array)if(a.unwrapArray(b),e)g<b.length?a.loadPackageClasspath(b[g],c,d,function(){a.loadPackageClasspath(b,c,d,e,1,g+1)},1):e();else for(j=0;j<b.length;j++)a.loadPackageClasspath(b[j],c,d,null);else{switch(b){case "java.*":b="java";case "java":c&&(f="@net.sf.j2s.ajax",j[f]||(j[f]=c),f="@net.sf.j2s",j[f]||(j[f]=c));break;case "swt":b="org.eclipse.swt";break;case "ajax":b="net.sf.j2s.ajax";break;case "j2s":b="net.sf.j2s";break;default:b.lastIndexOf(".*")==b.length-2&&(b=b.substring(0,b.length-2))}c&&
(j["@"+b]=c);d&&!k&&!window[b+".registered"]?(a.pkgRefCount++,"java"==b&&(b="core"),a.loadClass(b+".package",function(){0==--a.pkgRefCount&&a.runtimeLoaded()},!0,!0,1)):e&&e()}};a.loadClass=function(e,f,g,j,k){k||(k=0);null==j&&(j=!1);if("boolean"==typeof f)return b.evalType(e);a.needPackage("java")&&a.loadPackage("java");a.needPackage("core")&&a.loadPackage("core");a.keepOnLoading=!0;if(!g&&(a.pkgRefCount&&e.lastIndexOf(".package")!=e.length-8||0!=e.indexOf("java.")&&!a.isClassDefined(a.runtimeKeyClass)))a.queueBe4KeyClazz.push([e,
f]);else if((g=a.isClassDefined(e))||a.isClassExcluded(e)){if(g&&f&&(e=a.findClass(e),!e||e.status>=c.STATUS_OPTIONALS_LOADED))j?window.setTimeout(f,25):f()}else{var n=a.getClasspathFor(e);k=a.loadedScripts[n];j=a.classQueue;if(!k)for(g=j.length;0<=--g;)if(j[g].path==n||j[g].name==e){k=!0;break}if(k){if(f&&(k=a.findClass(e)))if(k.onRequiredLoaded){if(f!=k.onRequiredLoaded){var p=k.onRequiredLoaded;k.onRequiredLoaded=function(){p();f()}}}else k.onRequiredLoaded=f}else{k=b.unloadedClasses[e]&&a.findClass(e)||
new c;k.name=e;k.path=n;k.isPackage=n.lastIndexOf("package.js")==n.length-10;a.mappingPathNameNode(n,e,k);k.onRequiredLoaded=f;k.status=c.STATUS_KNOWN;e=!1;for(g=j.length;0<=--g;)if(j[g].status!=c.STATUS_OPTIONALS_LOADED){e=!0;break}if(k.isPackage){for(g=j.length;0<=--g&&!j[g].isPackage;)j[g+1]=j[g];j[++g]=k}else e&&j.push(k);if(!e){var q=!1;f&&(q=a.isLoadingEntryClass,a.isLoadingEntryClass=!0);a.addChildClassNode(a.clazzTreeRoot,k,!0);a.loadScript(k.path,k.requiredBy,!1,f?function(){a.isLoadingEntryClass=
q;f()}:null)}}}};a.needPackage=function(b){return null!=window[b+".registered"]&&!a.classpathMap["@"+b]};a.loadPackage=function(b,c){c||(c=null);window[b+".registered"]=!1;a.loadPackageClasspath(b,a.J2SLibBase||(a.J2SLibBase=a.getJ2SLibBase()||"j2s/"),!0,c)};a.pkgRefCount=0;a.jarClasspath=function(b,c){c instanceof Array||(c=[classes]);a.unwrapArray(c);for(var d=c.length;0<=--d;)a.classpathMap["#"+c[d]]=b;a.classpathMap["$"+b]=c};a.registerPackages=function(c,e){for(var f=a.getClasspathFor(c+".*",
!0),g=0;g<e.length;g++)window.Clazz&&b.declarePackage(c+"."+e[g]),a.loadPackageClasspath(c+"."+e[g],f)};a.getClasspathFor=function(c,e,f){var g=a.classpathMap["#"+c];if(!g||e||f){var j,k;if(g){if(c=c.replace(/\./g,"/"),0<=(k=g.lastIndexOf(c))||0<=(k=c.lastIndexOf("/"))&&0<=(k=g.lastIndexOf(c.substring(0,k))))j=g.substring(0,k)}else{for(k=c.length+2;0<=(k=c.lastIndexOf(".",k-2))&&!(j=a.classpathMap["@"+c.substring(0,k)]););e||(c=c.replace(/\./g,"/"))}null==j&&(j=window.Clazz&&b.binaryFolders&&b.binaryFolders.length?
b.binaryFolders[0]:a.binaryFolders&&a.binaryFolders.length?a.binaryFolders[0]:"j2s");g=(j.lastIndexOf("/")==j.length-1?j:j+"/")+(e?"":c.lastIndexOf("/*")==c.length-2?c.substring(0,k+1):c+(!f?".js":"."!=f.charAt(0)?"."+f:f))}return g};a.excludeClassMap={};a.ignore=function(){var b=1==arguments.length&&arguments[0]instanceof Array?b=arguments[0]:null,c=b?b.length:arguments.length;if(!b)for(var b=Array(c),d=0;d<c;d++)b[d]=arguments[d];a.unwrapArray(b);for(d=0;d<c;d++)a.excludeClassMap["@"+b[d]]=1};a.isClassExcluded=
function(b){return a.excludeClassMap["@"+b]};a.onScriptLoading=function(){};a.onScriptLoaded=function(){};a.onScriptInitialized=function(){};a.onScriptCompleted=function(){};a.onClassUnloaded=function(){};a.onGlobalLoaded=function(){};a.keepOnLoading=!0;a.mapPath2ClassNode={};a.evaluate=function(c,e){try{eval(e)}catch(f){var g="[Java2Script] Script error: "+f.message+" \n"+c+"\n\n"+e;alert(g);b.alert(g);throw f;}a.onScriptLoaded(c);a.tryToLoadNext(c)};a.failedHandles={};a.generateRemovingFunction=
function(a){return function(){if("interactive"!=a.readyState){try{a.parentNode&&a.parentNode.removeChild(a)}catch(b){}a=null}}};a.removeScriptNode=function(b){window["j2s.script.debugging"]||window.setTimeout(a.generateRemovingFunction(b),1)};b._4Name=function(c,e,f){if(b.isClassDefined(c))return b.evalType(c);e=Jmol._isAsync&&e?e._restoreState(c,f):null;if(1==e)return null;if(a.setLoadingMode(e?a.MODE_SCRIPT:"xhr.sync"))return a.loadClass(c,e,!1,!0,1),null;a.loadClass(c);return b.evalType(c)};a.loadScript=
function(c,e,f,g){b.currentPath=c;!f&&a.loadedScripts[c]?a.tryToLoadNext(c):(a.loadedScripts[c]=!0,b.removeArrayItem(a.classQueue,c),System.out.println("\t"+c+(e?"\n -- required by "+e:"")+" ajax="+a.isUsingXMLHttpRequest+" async="+a.isAsynchronousLoading),a.onScriptLoading(c),a.isUsingXMLHttpRequest&&!a.isAsynchronousLoading?(e=Jmol._getFileData(c),a.evaluate(c,e)):(e={dataType:"script",async:!0,type:"GET",url:c,success:a.W3CScriptOnCallback(c,!1,g),error:function(){a.W3CScriptOnCallback(c,!0,g)}},
a.inLoadingThreads++,Jmol.$ajax(e)))};a.W3CScriptOnCallback=function(c,e,f){return function(){e&&b.__debuggingBH&&b.alert("############ forError="+e+" path="+c+" ####"+(e?"NOT":"")+"LOADED###");a.isGecko&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0<a.inLoadingThreads&&a.inLoadingThreads--;this.onerror=this.onload=null;e&&alert("There was a problem loading "+c);a.onScriptLoaded(c);var g=this,j=function(){a.removeScriptNode(g);f&&f()};0<=a.loadingTimeLag?
window.setTimeout(function(){a.tryToLoadNext(c,j)},a.loadingTimeLag):a.tryToLoadNext(c,j)}};a.isLoadingEntryClass=!0;a.besidesJavaPackage=!1;a.tryToLoadNext=function(b,d){var e=a.mapPath2ClassNode["@"+b];if(e){var f,g=a.classpathMap["$"+b];if(g)for(var j=0;j<g.length;j++){var k=g[j];if(k!=e.name&&(f=a.findClass(k)))f.status<c.STATUS_CONTENT_LOADED&&(f.status=c.STATUS_CONTENT_LOADED,a.updateNode(f));else{f=new c;f.name=k;var n=a.classpathMap["#"+k];n||(alert(k+" J2S error in tryToLoadNext"),error("Java2Script implementation error! Please report this bug!"));
f.path=n;a.mappingPathNameNode(f.path,k,f);f.status=c.STATUS_CONTENT_LOADED;a.addChildClassNode(a.clazzTreeRoot,f,!1);a.updateNode(f)}}if(e instanceof Array)for(j=0;j<e.length;j++)e[j].status<c.STATUS_CONTENT_LOADED&&(e[j].status=c.STATUS_CONTENT_LOADED,a.updateNode(e[j]));else if(e.status<c.STATUS_CONTENT_LOADED){f=!1;g=document.getElementsByTagName("SCRIPT");for(j=0;j<g.length;j++)if(a.isIE){if(g[j].onreadystatechange&&g[j].onreadystatechange.path==e.path&&"interactive"==g[j].readyState){f=!0;break}}else if(g[j].onload&&
g[j].onload.path==e.path){f=!0;break}f||(e.status=c.STATUS_CONTENT_LOADED,a.updateNode(e))}if(a.keepOnLoading){e=!0;if(f=a.findNextMustClass(c.STATUS_KNOWN))for(a.loadClassNode(f);a.inLoadingThreads<a.maxLoadingThreads&&(f=a.findNextMustClass(c.STATUS_KNOWN));)a.loadClassNode(f);else if(0!=(j=a.classQueue).length)f=j.shift(),!a.loadedScripts[f.path]||0!=j.length||!a.isLoadingEntryClass||f.musts.length||f.optionals.length?(a.addChildClassNode(a.clazzTreeRoot,f,!0),a.loadScript(f.path,f.requiredBy)):
a.isLoadingEntryClass&&(a.isLoadingEntryClass=!1);else if(f=a.findNextRequiredClass(c.STATUS_KNOWN))for(a.loadClassNode(f);a.inLoadingThreads<a.maxLoadingThreads&&(f=a.findNextRequiredClass(c.STATUS_KNOWN));)a.loadClassNode(f);else e=!1;if(!(e||0<a.inLoadingThreads)){e=[a.findNextMustClass,a.findNextRequiredClass];g=null;for(j=0;2>j;j++)for(;f=e[j](c.STATUS_CONTENT_LOADED);)1==j&&g===f&&(f.status=c.STATUS_OPTIONALS_LOADED),a.updateNode(f),g=f;for(;!(a.tracks=[],!a.checkCycle(a.clazzTreeRoot)););for(j=
0;2>j;j++)for(g=null;(f=e[j](c.STATUS_DECLARED))&&g!==f;)a.updateNode(g=f);g=[];for(j=0;2>j;j++)for(;f=e[j](c.STATUS_DECLARED);)g.push(f),f.status=c.STATUS_OPTIONALS_LOADED;if(g.length){for(j=0;j<g.length;j++)a.destroyClassNode(g[j]);for(j=0;j<g.length;j++)if(e=g[j].onRequiredLoaded)g[j].onRequiredLoaded=null,e()}a.onGlobalLoaded();d&&d()}}}};a.tracks=[];a.checkCycle=function(b){for(var d=a.tracks,e=d.length,f=e;0<=--f&&!(d[f]===b&&d[f].status>=c.STATUS_DECLARED););d.push(b);if(0<=f){for(;f<d.length;f++){d[f].status=
c.STATUS_OPTIONALS_LOADED;a.destroyClassNode(d[f]);for(e=0;e<d[f].parents.length;e++)a.updateNode(d[f].parents[e]);d[f].parents=[];if(e=d[f].onRequiredLoaded)d[f].onRequiredLoaded=null,e()}d.length=0;return!0}b=[b.musts,b.optionals];for(var g=0;2>g;g++)for(var j=b[g],f=j.length;0<=--f;)if(j[f].status==c.STATUS_DECLARED&&a.checkCycle(j[f]))return!0;d.length=e;return!1};a.updateNode=function(b){if(!b.name||b.status>=c.STATUS_OPTIONALS_LOADED)a.destroyClassNode(b);else{var d=!0;if(b.musts.length&&b.declaration)for(var e=
b.musts.length,f=e;0<=--f;){var g=b.musts[f];g.requiredBy=b;if(g.status<c.STATUS_DECLARED&&a.isClassDefined(g.name)){var j=[];g.status=c.STATUS_OPTIONALS_LOADED;a.destroyClassNode(g);if(g.declaration&&g.declaration.clazzList){for(var k=0,n=g.declaration.clazzList,p=n.length;k<p;k++){var q=a.findClass(n[k]);q&&(q.status!=c.STATUS_OPTIONALS_LOADED&&q!==g)&&(q.status=g.status,q.declaration=null,a.destroyClassNode(q),q.onRequiredLoaded&&j.push(q))}g.declaration=null}g.onRequiredLoaded&&j.push(g);for(k=
0;k<j.length;k++)if(n=j[k].onRequiredLoaded)j[k].onRequiredLoaded=null,n()}else g.status==c.STATUS_CONTENT_LOADED&&a.updateNode(g),g.status<c.STATUS_DECLARED&&(d=!1);b.musts.length!=e&&(f=e=b.musts.length,d=!0)}if(d){if(b.status<c.STATUS_DECLARED){if(k=b.declaration)k(),k.executed=!0;b.status=c.STATUS_DECLARED;a.definedClasses&&(a.definedClasses[b.name]=!0);a.onScriptInitialized(b.path);if(b.declaration&&b.declaration.clazzList){k=0;n=b.declaration.clazzList;for(p=n.length;k<p;k++)if((q=a.findClass(n[k]))&&
q.status!=c.STATUS_DECLARED&&q!==b)q.status=c.STATUS_DECLARED,a.definedClasses&&(a.definedClasses[q.name]=!0),a.onScriptInitialized(q.path)}}d=c.STATUS_DECLARED;if(0==b.optionals.length&&0==b.musts.length||b.status>c.STATUS_KNOWN&&!b.declaration||a.checkStatusIs(b.musts,c.STATUS_OPTIONALS_LOADED)&&a.checkStatusIs(b.optionals,c.STATUS_OPTIONALS_LOADED)){d=c.STATUS_OPTIONALS_LOADED;if(!a.doneLoading(b,d))return!1;if(b.declaration&&b.declaration.clazzList){k=0;n=b.declaration.clazzList;for(p=n.length;k<
p;k++)if((q=a.findClass(n[k]))&&q.status!=d&&q!==b)if(q.declaration=null,!a.doneLoading(q,d))return!1}}a.updateParents(b,d)}}};a.checkStatusIs=function(a,b){for(var c=a.length;0<=--c;)if(a[c].status<b)return!1;return!0};a.doneLoading=function(b,c){b.status=c;a.onScriptCompleted(b.path);var d=b.onRequiredLoaded;if(d&&(b.onRequiredLoaded=null,d(),!a.keepOnLoading))return!1;a.destroyClassNode(b);return!0};a.updateParents=function(b,d){if(b.parents&&0!=b.parents.length){for(var e=0;e<b.parents.length;e++){var f=
b.parents[e];f.status<d&&a.updateNode(f)}d==c.STATUS_OPTIONALS_LOADED&&(b.parents=[])}};a.usedRandoms={};a.usedRandoms["r0.13412"]=1;a.getRnd=function(){for(;;){var b=Math.random(),c="r"+b;if(!a.usedRandoms[c])return a.usedRandoms[c]=1,a.clazzTreeRoot.random=b}};a.findClass=function(b){a.getRnd();return a.findClassUnderNode(b,a.clazzTreeRoot)};a.findNextRequiredClass=function(b){a.getRnd();return a.findNextRequiredNode(a.clazzTreeRoot,b)};a.findNextMustClass=function(b){return a.findNextMustNode(a.clazzTreeRoot,
b)};a.findClassUnderNode=function(b,c){var d;return c.name==b?c:(d=a.findNodeUnderNode(b,c.musts))||(d=a.findNodeUnderNode(b,c.optionals))?d:null};a.findNodeUnderNode=function(b,c){for(var d=a.clazzTreeRoot.random,e=c.length;0<=--e;){var f=c[e];if(f.name==b||f.random!=d&&(f.random=d,f=a.findClassUnderNode(b,f)))return f}return null};a.checkStatus=function(b,d){return b.status==d&&(d!=c.STATUS_KNOWN||!a.loadedScripts[b.path])&&(d==c.STATUS_DECLARED||!a.isClassDefined(b.name))};a.findNextMustNode=function(b,
c){for(var d=b.musts.length;0<=--d;){var e=b.musts[d];if(a.checkStatus(e,c)||(e=a.findNextMustNode(e,c)))return e}return a.checkStatus(b,c)?b:null};a.findNextRequiredNode=function(b,c){var d;return(d=a.searchClassArray(b.musts,c))||(d=a.searchClassArray(b.optionals,c))||a.checkStatus(d=b,c)?d:null};a.searchClassArray=function(b,c){if(b)for(var d=a.clazzTreeRoot.random,e=0;e<b.length;e++){var f=b[e];if(a.checkStatus(f,c)||f.random!=d&&(f.random=d,f=a.findNextRequiredNode(f,c)))return f}return null};
a.innerLoadedScripts={};a.load=function(b,d,e,f){if(d instanceof Array){a.unwrapArray(d);for(var g=0;g<d.length;g++)a.load(b,d[g],e,f,d)}else{g=a.mapPath2ClassNode["#"+d];g||(g=(g=a.findClass(d))?g:new c,g.name=d,g.path=a.classpathMap["#"+d]||"unknown",a.mappingPathNameNode(g.path,d,g),g.status=c.STATUS_KNOWN,a.addChildClassNode(a.clazzTreeRoot,g,!1));a.processRequired(g,b,!0);5==arguments.length&&f&&(f.status=g.status,f.clazzList=arguments[4]);if(g.declaration=f)g.status=c.STATUS_CONTENT_LOADED;
a.processRequired(g,e,!1)}};a.processRequired=function(b,d,e){if(d&&d.length){a.unwrapArray(d);for(var f=0;f<d.length;f++){var g=d[f];if(g&&!a.isClassDefined(g)&&!a.isClassExcluded(g)){var j=a.findClass(g);j||(j=new c,j.name=g,j.status=c.STATUS_KNOWN);j.requiredBy=b;a.addChildClassNode(b,j,e)}}}};window.Clazz&&(b.load=a.load);a.mappingPathNameNode=function(b,c,d){var e=a.mapPath2ClassNode,f="@"+b;if(b=e[f])if(b instanceof Array){for(var f=!1,g=0;g<b.length;g++)if(b[g].name==c){f=!0;break}f||b.push(d)}else e[f]=
[b,d];else e[f]=d;e["#"+c]=d};a.loadClassNode=function(b){var c=b.name;if(!a.isClassDefined(c)&&!a.isClassExcluded(c)){var d=a.getClasspathFor(c);b.path=d;a.mappingPathNameNode(d,c,b);if(!a.loadedScripts[d])return a.loadScript(d,b.requiredBy),!0}return!1};a.runtimeKeyClass="java.lang.String";a.queueBe4KeyClazz=[];a.getJ2SLibBase=function(){var a=window["j2s.lib"];return a?a.base+("."==a.alias?"":(a.alias?a.alias:a.version?a.version:"1.0.0")+"/"):null};a.isAsynchronousLoading=!0;a.isUsingXMLHttpRequest=
!1;a.loadingTimeLag=-1;a.MODE_SCRIPT=4;a.MODE_XHR=2;a.MODE_SYNC=1;a.setLoadingMode=function(b,c){var d=!0,e=!0;"string"==typeof b?(b=b.toLowerCase(),0<=b.indexOf("script")?e=!1:b.indexOf("async"),d=!1):b&a.MODE_SCRIPT?e=!1:d=!(b&a.MODE_SYNC);a.isUsingXMLHttpRequest=e;a.isAsynchronousLoading=d;a.loadingTimeLag=d&&0<=c?c:-1;return d};a.runtimeLoaded=function(){if(!a.pkgRefCount&&a.isClassDefined(a.runtimeKeyClass)){for(var b=a.queueBe4KeyClazz,c=0;c<b.length;c++)a.loadClass(b[c][0],b[c][1]);a.queueBe4KeyClazz=
[]}};a.loadZJar=function(b,c){var d=null,e=c instanceof Array;e?c=c[c.length-1]:d=c==a.runtimeKeyClass?a.runtimeLoaded:null;a.jarClasspath(b,e?c:[c]);a.loadClass(c,d,!0)};a._nodeMap={};a._allNodes=[];a.addChildClassNode=function(b,c,d){var e=!1;d?(d=b.musts,c.requiredBy||(c.requiredBy=b),b.requires||(b.requires=[],b.requiresMap={}),b.requiresMap[c.name]||(b.requiresMap[c.name]=1,b.requires.push[c])):d=b.optionals;a._nodeMap[c.name]||(a._allNodes.push(c),a._nodeMap[c.name]=c);for(var f=0;f<d.length;f++)if(d[f].name==
c.name){e=!0;break}e||(d.push(c),a.isLoadingEntryClass&&(0!=c.name.indexOf("java")&&0!=c.name.indexOf("net.sf.j2s.ajax"))&&(a.besidesJavaPackage&&(a.isLoadingEntryClass=!1),a.besidesJavaPackage=!0));a.addParentClassNode(c,b)};a.addParentClassNode=function(b,c){if(c.name&&c!=a.clazzTreeRoot&&c!=b)for(var d=0;d<b.parents.length;d++)if(b.parents[d].name==c.name)return;b.parents.push(c)};a.destroyClassNode=function(a){var c=a.parents;if(c)for(var e=c.length;0<=--e;)b.removeArrayItem(c[e].musts,a)||b.removeArrayItem(c[e].optionals,
a)};a.unloadClassExt=function(e){a.definedClasses&&(a.definedClasses[e]=!1);if(a.classpathMap["#"+e]){var f=a.classpathMap["#"+e];a.classpathMap["#"+e]=null;var g=a.classpathMap["$"+f];b.removeArrayItem(g,e)&&(a.classpathMap["$"+f]=g)}if(f=a.findClass(e))f.status=c.STATUS_KNOWN,a.loadedScripts[f.path]=!1;f=a.getClasspathFor(e);a.loadedScripts[f]=!1;a.innerLoadedScripts[f]&&(a.innerLoadedScripts[f]=!1);a.onClassUnloaded(e)};a.assureInnerClass=function(a,c){a=a.__CLASS_NAME__;if(b.unloadedClasses[a]&&
!(0<=a.indexOf("$"))){var e=[],f=a+"$",g;for(g in b.unloadedClasses)b.unloadedClasses[g]&&0==g.indexOf(f)&&e.push(g);if(e.length){c=""+c;var j,k;if(!(0>(j=c.indexOf(f))||0>(k=c.indexOf('"',j+f.length))))if(a=c.substring(j,k),b.unloadedClasses[a]&&0!=(j=c.indexOf("{",k)+1))if(!(0>(k=c.indexOf("("+a+",",j+3))||0>(k=c.lastIndexOf("}",k-1))))eval(c.substring(j,k)),b.unloadedClasses[a]=null}}};b.binaryFolders=a.binaryFolders=[a.getJ2SLibBase()]})(b,b._Loader,b._Node);b._LoaderProgressMonitor=function(){};
var e=b._LoaderProgressMonitor;e.fadeOutTimer=null;e.fadeAlpha=0;e.monitorEl=null;e.lastScrollTop=0;e.bindingParent=null;e.DEFAULT_OPACITY=self.Jmol&&Jmol._j2sLoadMonitorOpacity?Jmol._j2sLoadMonitorOpacity:55;e.clearChildren=function(b){if(b)for(var a=b.childNodes.length;0<=--a;){var c=b.childNodes[a];if(c){c.childNodes&&c.childNodes.length&&this.clearChildren(c);try{b.removeChild(c)}catch(e){}}}};e.setAlpha=function(b){this.fadeOutTimer&&b==this.DEFAULT_OPACITY&&(window.clearTimeout(this.fadeOutTimer),
this.fadeOutTimer=null);this.fadeAlpha=b;navigator.userAgent.toLowerCase();this.monitorEl.style.filter="Alpha(Opacity="+b+")";this.monitorEl.style.opacity=b/100};e.hiddingOnMouseOver=function(){this.style.display="none"};e.attached=!1;e.cleanup=function(){e.monitorEl=null;e.bindingParent=null;e.attached=!1};e.createHandle=function(){var b=document.createElement("DIV");b.id="clazzloader-status";b.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px 8px;z-index:"+(window["j2s.lib"].monitorZIndex||
1E4)+";background-color:#8e0000;color:yellow;font-family:Arial, sans-serif;font-size:10pt;white-space:nowrap;";b.onmouseover=this.hiddingOnMouseOver;this.monitorEl=b;this.bindingParent?this.bindingParent.appendChild(b):document.body.appendChild(b);return b};e.fadeOut=function(){"none"!=this.monitorEl.style.display&&(this.fadeAlpha==this.DEFAULT_OPACITY?(this.fadeOutTimer=window.setTimeout(function(){e.fadeOut()},750),this.fadeAlpha-=5):0<=this.fadeAlpha-10?(this.setAlpha(this.fadeAlpha-10),this.fadeOutTimer=
window.setTimeout(function(){e.fadeOut()},40)):this.monitorEl.style.display="none")};e.getFixedOffsetTop=function(){if(this.bindingParent){var b=this.bindingParent;return b.scrollTop}var a=navigator.userAgent,b=document.body,c=b.parentNode,e=c.clientHeight,b=b.scrollTop+b.offsetTop,f=c.scrollTop+c.offsetTop;return 0>a.indexOf("Opera")&&document.all?0==e?b:f:0>a.indexOf("Gecko")?e==c.offsetHeight&&e==c.scrollHeight?b:f:b};e.showStatus=function(b,a){this.monitorEl||(this.createHandle(),this.attached||
(this.attached=!0));this.clearChildren(this.monitorEl);this.monitorEl.appendChild(document.createTextNode(""+b));"none"==this.monitorEl.style.display&&(this.monitorEl.style.display="");this.setAlpha(this.DEFAULT_OPACITY);var c=this.getFixedOffsetTop();this.lastScrollTop!=c&&(this.lastScrollTop=c,this.monitorEl.style.bottom=this.lastScrollTop+4+"px");a&&this.fadeOut()};window.ClazzLoader&&(ClazzLoader.onScriptLoading=function(b){e.showStatus("Loading "+b+"...")},ClazzLoader.onScriptLoaded=function(b){e.showStatus(b+
" loaded.",!0)},ClazzLoader.onGlobalLoaded=function(){e.showStatus("Application loaded.",!0)},ClazzLoader.onClassUnloaded=function(b){e.showStatus("Class "+b+" is unloaded.",!0)});var n=b.Console,q=System;n.maxTotalLines=1E4;n.setMaxTotalLines=function(b){n.maxTotalLines=0<b?b:999999};n.maxLatency=40;n.setMaxLatency=function(b){n.maxLatency=0<b?b:40};n.pinning=!1;n.enablePinning=function(b){n.pinning=b};n.linesCount=0;n.metLineBreak=!1;n.createConsoleWindow=function(){var b=document.createElement("DIV");
b.style.cssText="font-family:monospace, Arial, sans-serif;";document.body.appendChild(b);return b};n.consoleOutput=function(b,a){var c=window["j2s.lib"];(c=c&&c.console)&&"string"==typeof c&&(c=document.getElementById(c));if(!c)return!1;if(n.linesCount>n.maxTotalLines){for(var e=0;e<n.linesCount-n.maxTotalLines;e++)c&&0<c.childNodes.length&&c.removeChild(c.childNodes[0]);n.linesCount=n.maxTotalLines}var f=!1;b=("undefined"==typeof b?"":null==b?"null":""+b).replace(/\t/g,n.c160);if(0<b.length)switch(b.charAt(b.length-
1)){case "\n":case "\r":b=1<b.length?b.substring(0,b.length-("\r"==b.charAt(b.length-2)?2:1)):"",f=!0}var g=null;b=b.replace(/\t/g,n.c160);for(var g=b.split(/\r\n|\r|\n/g),e=0,k=g.length-1;e<=k;e++){var q=null;if(n.metLineBreak||0==n.linesCount||1>c.childNodes.length)q=document.createElement("DIV"),c.appendChild(q),q.style.whiteSpace="nowrap",n.linesCount++;else try{q=c.childNodes[c.childNodes.length-1]}catch(C){q=document.createElement("DIV"),c.appendChild(q),q.style.whiteSpace="nowrap",n.linesCount++}var G=
document.createElement("SPAN");q.appendChild(G);G.style.whiteSpace="nowrap";a&&(G.style.color=a);q=g[e];0==q.length&&(q=n.c160);G.appendChild(document.createTextNode(q));n.pinning||(c.scrollTop+=100);n.metLineBreak=e!=k||f}e=c.parentNode.className;!n.pinning&&(e&&-1!=e.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);n.lastOutputTime=(new Date).getTime()};n.clear=function(){try{n.metLineBreak=!0;var b=window["j2s.lib"],a=b&&b.console;if(a&&(a=document.getElementById(a))){for(var c=
a.childNodes,e=c.length;0<=--e;)a.removeChild(c[e]);n.linesCount=0}}catch(f){}};b.alert=function(b){n.consoleOutput(b+"\r\n")};n.c160=String.fromCharCode(160);n.c160+=n.c160+n.c160+n.c160;q.out.print=function(b){n.consoleOutput(b)};q.out.println=function(b){n.consoleOutput("undefined"==typeof b?"\r\n":null==b?"null\r\n":b+"\r\n")};q.out.write=function(b,a,c){q.out.print(String.instantialize(b).substring(a,a+c))};q.err.__CLASS_NAME__="java.io.PrintStream";q.err.print=function(b){n.consoleOutput(b,
"red")};q.err.println=function(b){n.consoleOutput("undefined"==typeof b?"\r\n":null==b?"null\r\n":b+"\r\n","red")};q.err.write=function(b,a,c){q.err.print(String.instantialize(b).substring(a,a+c))}}(Clazz))};Jmol.___JmolDate="$Date: 2015-01-22 21:48:31 -0600 (Thu, 22 Jan 2015) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.2.12_2015.01.22";