-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
115 lines (115 loc) · 57.1 KB
/
index.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
function aa(a){return function(b){this[a]=b}}function ba(a){return function(){return this[a]}}var f,m=this;function ca(){}
function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function n(a){return void 0!==a}function p(a){return"array"==da(a)}function ea(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function r(a){return"string"==typeof a}function fa(a){return"function"==da(a)}function ga(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function t(a){return a[ha]||(a[ha]=++ia)}var ha="closure_uid_"+(1E9*Math.random()>>>0),ia=0;
function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function u(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ja:ka;return u.apply(null,arguments)}
function la(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var v=Date.now||function(){return+new Date};function w(a,b){function c(){}c.prototype=b.prototype;a.g=b.prototype;a.prototype=new c};function ma(a){Error.captureStackTrace?Error.captureStackTrace(this,ma):this.stack=Error().stack||"";a&&(this.message=String(a))}w(ma,Error);ma.prototype.name="CustomError";function na(a){if(!oa.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(pa,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(qa,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(ra,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(sa,"\x26quot;"));return a}var pa=/&/g,qa=/</g,ra=/>/g,sa=/\"/g,oa=/[&<>\"]/;function ta(a){return-1!=a.indexOf("\x26")?"document"in m?ua(a):va(a):a}
function ua(a){var b={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"'},c=document.createElement("div");return a.replace(wa,function(a,e){var g=b[a];if(g)return g;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function va(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"\x26";case "lt":return"\x3c";case "gt":return"\x3e";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var wa=/&([^;\s<&]+);?/g;var x=Array.prototype,xa=x.indexOf?function(a,b,c){return x.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(r(a))return r(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},y=x.forEach?function(a,b,c){x.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},ya=x.filter?function(a,b,c){return x.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=r(a)?
a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},za=x.some?function(a,b,c){return x.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1};function Aa(a,b){var c;a:{c=a.length;for(var d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:r(a)?a.charAt(c):a[c]}function Ba(a,b){var c=xa(a,b),d;(d=0<=c)&&x.splice.call(a,c,1);return d}
function Ca(a){return x.concat.apply(x,arguments)}function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ea(a,b,c){return 2>=arguments.length?x.slice.call(a,b):x.slice.call(a,b,c)};var Fa,Ga,Ha,Ia,z,Ja;function Ka(){return m.navigator?m.navigator.userAgent:null}Ia=Ha=Ga=Fa=!1;var La;if(La=Ka()){var Ma=m.navigator;Fa=0==La.lastIndexOf("Opera",0);Ga=!Fa&&(-1!=La.indexOf("MSIE")||-1!=La.indexOf("Trident"));Ha=!Fa&&-1!=La.indexOf("WebKit");Ia=!Fa&&!Ha&&!Ga&&"Gecko"==Ma.product}var Na=Fa,B=Ga,C=Ia,D=Ha,Oa,Pa=m.navigator;Oa=Pa&&Pa.platform||"";z=-1!=Oa.indexOf("Mac");Ja=-1!=Oa.indexOf("Win");var Qa=-1!=Oa.indexOf("Linux");
function Ra(){var a=m.document;return a?a.documentMode:void 0}var Sa;a:{var Ta="",Ua;if(Na&&m.opera)var Va=m.opera.version,Ta="function"==typeof Va?Va():Va;else if(C?Ua=/rv\:([^\);]+)(\)|;)/:B?Ua=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:D&&(Ua=/WebKit\/(\S+)/),Ua)var Wa=Ua.exec(Ka()),Ta=Wa?Wa[1]:"";if(B){var Xa=Ra();if(Xa>parseFloat(Ta)){Sa=String(Xa);break a}}Sa=Ta}var Ya={};
function E(a){var b;if(!(b=Ya[a])){b=0;for(var c=String(Sa).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var h=c[g]||"",k=d[g]||"",l=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var A=l.exec(h)||["","",""],s=q.exec(k)||["","",""];if(0==A[0].length&&0==s[0].length)break;b=((0==A[1].length?0:parseInt(A[1],10))<(0==s[1].length?0:parseInt(s[1],10))?-1:(0==A[1].length?0:parseInt(A[1],
10))>(0==s[1].length?0:parseInt(s[1],10))?1:0)||((0==A[2].length)<(0==s[2].length)?-1:(0==A[2].length)>(0==s[2].length)?1:0)||(A[2]<s[2]?-1:A[2]>s[2]?1:0)}while(0==b)}b=Ya[a]=0<=b}return b}var Za=m.document,F=Za&&B?Ra()||("CSS1Compat"==Za.compatMode?parseInt(Sa,10):5):void 0;var $a,ab=!B||B&&9<=F;!C&&!B||B&&B&&9<=F||C&&E("1.9.1");B&&E("9");function bb(a){a=a.className;return r(a)&&a.match(/\S+/g)||[]}function cb(a,b){for(var c=bb(a),d=Ea(arguments,1),e=c.length+d.length,g=c,h=0;h<d.length;h++)0<=xa(g,d[h])||g.push(d[h]);a.className=c.join(" ");return c.length==e}function db(a,b){var c=bb(a),d=Ea(arguments,1),c=eb(c,d);a.className=c.join(" ")}function eb(a,b){return ya(a,function(a){return!(0<=xa(b,a))})};function G(a,b,c){return Math.min(Math.max(a,b),c)};function H(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}H.prototype.aa=function(){return new H(this.x,this.y)};H.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};H.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function fb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function gb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function hb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function ib(){var a=jb,b;for(b in a)return!1;return!0}var kb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function lb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<kb.length;g++)c=kb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function I(a){return a?new mb(J(a)):$a||($a=new mb)}function K(a){return r(a)?document.getElementById(a):a}function nb(a,b){var c,d,e,g;c=document;c=b||c;if(c.querySelectorAll&&c.querySelector&&a)return c.querySelectorAll(""+(a?"."+a:""));if(a&&c.getElementsByClassName){var h=c.getElementsByClassName(a);return h}h=c.getElementsByTagName("*");if(a){g={};for(d=e=0;c=h[d];d++){var k=c.className;"function"==typeof k.split&&0<=xa(k.split(/\s+/),a)&&(g[e++]=c)}g.length=e;return g}return h}
function ob(a,b){fb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in pb?a.setAttribute(pb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var pb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function qb(a,b,c){return rb(document,arguments)}function rb(a,b){var c=b[0],d=b[1];if(!ab&&d&&(d.name||d.type)){c=["\x3c",c];d.name&&c.push(' name\x3d"',na(d.name),'"');if(d.type){c.push(' type\x3d"',na(d.type),'"');var e={};lb(e,d);delete e.type;d=e}c.push("\x3e");c=c.join("")}c=a.createElement(c);d&&(r(d)?c.className=d:p(d)?cb.apply(null,[c].concat(d)):ob(c,d));2<b.length&&sb(a,c,b);return c}
function sb(a,b,c){function d(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var g=c[e];!ea(g)||ga(g)&&0<g.nodeType?d(g):y(tb(g)?Da(g):g,d)}}function ub(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function vb(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function J(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function tb(a){if(a&&"number"==typeof a.length){if(ga(a))return"function"==typeof a.item||"string"==typeof a.item;if(fa(a))return"function"==typeof a.item}return!1}function mb(a){this.q=a||m.document||document}f=mb.prototype;f.Na=I;f.a=function(a){return r(a)?this.q.getElementById(a):a};f.wa=function(a,b,c){return rb(this.q,arguments)};f.createElement=function(a){return this.q.createElement(a)};f.createTextNode=function(a){return this.q.createTextNode(String(a))};
function wb(a){var b=a.q;a=D||"CSS1Compat"!=b.compatMode?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return B&&E("10")&&b.pageYOffset!=a.scrollTop?new H(a.scrollLeft,a.scrollTop):new H(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}f.appendChild=function(a,b){a.appendChild(b)};f.contains=vb;var xb=!B||B&&9<=F,yb=!B||B&&9<=F,zb=B&&!E("9");!D||E("528");C&&E("1.9b")||B&&E("8")||Na&&E("9.5")||D&&E("528");C&&!E("8")||B&&E("9");function L(){0!=Ab&&(this.jd=Error().stack,Bb[t(this)]=this)}var Ab=0,Bb={};L.prototype.Ab=!1;L.prototype.w=function(){if(!this.Ab&&(this.Ab=!0,this.e(),0!=Ab)){var a=t(this);delete Bb[a]}};L.prototype.e=function(){if(this.Sa)for(;this.Sa.length;)this.Sa.shift()()};function Cb(a){a&&"function"==typeof a.w&&a.w()}function Db(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Db.apply(null,d):Cb(d)}};function M(a,b){this.type=a;this.currentTarget=this.target=b}f=M.prototype;f.e=function(){};f.w=function(){};f.ga=!1;f.defaultPrevented=!1;f.sc=!0;f.stopPropagation=function(){this.ga=!0};f.preventDefault=function(){this.defaultPrevented=!0;this.sc=!1};function Eb(a){a.preventDefault()};function Fb(a){Fb[" "](a);return a}Fb[" "]=ca;function N(a,b){a&&Gb(this,a,b)}w(N,M);var Hb=[1,4,2];f=N.prototype;f.target=null;f.relatedTarget=null;f.offsetX=0;f.offsetY=0;f.clientX=0;f.clientY=0;f.screenX=0;f.screenY=0;f.button=0;f.keyCode=0;f.charCode=0;f.ctrlKey=!1;f.altKey=!1;f.shiftKey=!1;f.metaKey=!1;f.ad=!1;f.r=null;
function Gb(a,b,c){var d=a.type=b.type;M.call(a,d);a.target=b.target||b.srcElement;a.currentTarget=c;if(c=b.relatedTarget){if(C){var e;a:{try{Fb(c.nodeName);e=!0;break a}catch(g){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;a.offsetX=D||void 0!==b.offsetX?b.offsetX:b.layerX;a.offsetY=D||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||0;
a.screenY=b.screenY||0;a.button=b.button;a.keyCode=b.keyCode||0;a.charCode=b.charCode||("keypress"==d?b.keyCode:0);a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.ad=z?b.metaKey:b.ctrlKey;a.state=b.state;a.r=b;b.defaultPrevented&&a.preventDefault();delete a.ga}f.stopPropagation=function(){N.g.stopPropagation.call(this);this.r.stopPropagation?this.r.stopPropagation():this.r.cancelBubble=!0};
f.preventDefault=function(){N.g.preventDefault.call(this);var a=this.r;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,zb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.Mc=ba("r");f.e=function(){};var Ib="closure_listenable_"+(1E6*Math.random()|0),Jb=0;function Kb(a,b,c,d,e,g){this.S=a;this.rc=b;this.src=c;this.type=d;this.capture=!!e;this.na=g;this.key=++Jb;this.Z=this.va=!1}function Lb(a){a.Z=!0;a.S=null;a.rc=null;a.src=null;a.na=null};var Mb={},O={},Nb={},Ob={};
function P(a,b,c,d,e){if(p(b)){for(var g=0;g<b.length;g++)P(a,b[g],c,d,e);return null}c=Pb(c);if(a&&a[Ib])a=a.l(b,c,d,e);else a:{if(!b)throw Error("Invalid event type");d=!!d;var h=O;b in h||(h[b]={d:0});h=h[b];d in h||(h[d]={d:0},h.d++);var h=h[d],g=t(a),k;if(h[g]){k=h[g];for(var l=0;l<k.length;l++)if(h=k[l],h.S==c&&h.na==e){if(h.Z)break;k[l].va=!1;a=k[l];break a}}else k=h[g]=[],h.d++;l=Qb();h=new Kb(c,l,a,b,d,e);h.va=!1;l.src=a;l.S=h;k.push(h);Nb[g]||(Nb[g]=[]);Nb[g].push(h);a.addEventListener?
a.addEventListener(b,l,d):a.attachEvent(b in Ob?Ob[b]:Ob[b]="on"+b,l);a=Mb[h.key]=h}return a}function Qb(){var a=Rb,b=yb?function(c){return a.call(b.src,b.S,c)}:function(c){c=a.call(b.src,b.S,c);if(!c)return c};return b}function Sb(a,b,c,d,e){if(p(b))for(var g=0;g<b.length;g++)Sb(a,b[g],c,d,e);else if(c=Pb(c),a&&a[Ib])a.Za(b,c,d,e);else if(d=!!d,a=Tb(a,b,d))for(g=0;g<a.length;g++)if(a[g].S==c&&a[g].capture==d&&a[g].na==e){Q(a[g]);break}}
function Q(a){if("number"==typeof a||!a||a.Z)return!1;var b=a.src;if(b&&b[Ib])return Ub(b.ca,a);var c=a.type,d=a.rc,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in Ob?Ob[c]:Ob[c]="on"+c,d);b=t(b);Nb[b]&&(d=Nb[b],Ba(d,a),0==d.length&&delete Nb[b]);Lb(a);if(d=O[c][e][b])Ba(d,a),0==d.length&&(delete O[c][e][b],O[c][e].d--),0==O[c][e].d&&(delete O[c][e],O[c].d--),0==O[c].d&&delete O[c];delete Mb[a.key];return!0}
function Tb(a,b,c){var d=O;return b in d&&(d=d[b],c in d&&(d=d[c],a=t(a),d[a]))?d[a]:null}function Vb(a,b,c){var d=1;b=t(b);if(a[b])for(a=Da(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.Z&&(d&=!1!==Wb(e,c))}return Boolean(d)}function Wb(a,b){var c=a.S,d=a.na||a.src;a.va&&Q(a);return c.call(d,b)}
function Rb(a,b){if(a.Z)return!0;var c=a.type,d=O;if(!(c in d))return!0;var d=d[c],e,g;if(!yb){if(!(c=b))a:{for(var c=["window","event"],h=m;e=c.shift();)if(null!=h[e])h=h[e];else{c=null;break a}c=h}e=c;c=!0 in d;h=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var k=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){k=!0}if(k||void 0==e.returnValue)e.returnValue=!0}}k=new N;Gb(k,e,this);e=!0;try{if(c){for(var q=[],A=k.currentTarget;A;A=A.parentNode)q.push(A);g=d[!0];for(var s=
q.length-1;!k.ga&&0<=s;s--)k.currentTarget=q[s],e&=Vb(g,q[s],k);if(h)for(g=d[!1],s=0;!k.ga&&s<q.length;s++)k.currentTarget=q[s],e&=Vb(g,q[s],k)}else e=Wb(a,k)}finally{q&&(q.length=0)}return e}d=new N(b,this);return e=Wb(a,d)}var Xb="__closure_events_fn_"+(1E9*Math.random()>>>0);function Pb(a){return fa(a)?a:a[Xb]||(a[Xb]=function(b){return a.handleEvent(b)})};function Yb(a){if("function"==typeof a.W)return a.W();if(r(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return gb(a)}function Zb(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||r(a))y(a,b,c);else{var d;if("function"==typeof a.ya)d=a.ya();else if("function"!=typeof a.W)if(ea(a)||r(a)){d=[];for(var e=a.length,g=0;g<e;g++)d.push(g)}else d=hb(a);else d=void 0;for(var e=Yb(a),g=e.length,h=0;h<g;h++)b.call(c,e[h],d&&d[h],a)}};function $b(a,b){this.X={};this.i=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof $b?(c=a.ya(),d=a.W()):(c=hb(a),d=gb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=$b.prototype;f.d=0;f.zc=0;f.W=function(){ac(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.X[this.i[b]]);return a};f.ya=function(){ac(this);return this.i.concat()};f.Ia=function(a){return bc(this.X,a)};
f.remove=function(a){return bc(this.X,a)?(delete this.X[a],this.d--,this.zc++,this.i.length>2*this.d&&ac(this),!0):!1};function ac(a){if(a.d!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];bc(a.X,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.d!=a.i.length){for(var e={},c=b=0;b<a.i.length;)d=a.i[b],bc(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}}f.get=function(a,b){return bc(this.X,a)?this.X[a]:b};f.set=function(a,b){bc(this.X,a)||(this.d++,this.i.push(a),this.zc++);this.X[a]=b};f.aa=function(){return new $b(this)};
function bc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var cc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function dc(a){if(ec){ec=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=(c=dc(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw ec=!0,Error();}}return a.match(cc)}var ec=D;function fc(a,b){var c;if(a instanceof fc)this.G=n(b)?b:a.G,gc(this,a.Fa),c=a.ub,R(this),this.ub=c,c=a.Ja,R(this),this.Ja=c,hc(this,a.pb),c=a.ob,R(this),this.ob=c,ic(this,a.ha.aa()),c=a.gb,R(this),this.gb=c;else if(a&&(c=dc(String(a)))){this.G=!!b;gc(this,c[1]||"",!0);var d=c[2]||"";R(this);this.ub=d?decodeURIComponent(d):"";d=c[3]||"";R(this);this.Ja=d?decodeURIComponent(d):"";hc(this,c[4]);d=c[5]||"";R(this);this.ob=d?decodeURIComponent(d):"";ic(this,c[6]||"",!0);c=c[7]||"";R(this);this.gb=c?decodeURIComponent(c):
""}else this.G=!!b,this.ha=new jc(null,0,this.G)}f=fc.prototype;f.Fa="";f.ub="";f.Ja="";f.pb=null;f.ob="";f.gb="";f.Uc=!1;f.G=!1;f.toString=function(){var a=[],b=this.Fa;b&&a.push(kc(b,lc),":");if(b=this.Ja){a.push("//");var c=this.ub;c&&a.push(kc(c,lc),"@");a.push(encodeURIComponent(String(b)));b=this.pb;null!=b&&a.push(":",String(b))}if(b=this.ob)this.Ja&&"/"!=b.charAt(0)&&a.push("/"),a.push(kc(b,"/"==b.charAt(0)?mc:nc));(b=this.ha.toString())&&a.push("?",b);(b=this.gb)&&a.push("#",kc(b,oc));return a.join("")};
f.aa=function(){return new fc(this)};function gc(a,b,c){R(a);a.Fa=c?b?decodeURIComponent(b):"":b;a.Fa&&(a.Fa=a.Fa.replace(/:$/,""))}function hc(a,b){R(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.pb=b}else a.pb=null}function ic(a,b,c){R(a);b instanceof jc?(a.ha=b,a.ha.Qb(a.G)):(c||(b=kc(b,pc)),a.ha=new jc(b,0,a.G))}function qc(a,b,c){R(a);p(c)||(c=[String(c)]);rc(a.ha,b,c)}function R(a){if(a.Uc)throw Error("Tried to modify a read-only Uri");}
f.Qb=function(a){this.G=a;this.ha&&this.ha.Qb(a);return this};function kc(a,b){return r(a)?encodeURI(a).replace(b,sc):null}function sc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var lc=/[#\/\?@]/g,nc=/[\#\?:]/g,mc=/[\#\?]/g,pc=/[\#\?@]/g,oc=/#/g;function jc(a,b,c){this.B=a||null;this.G=!!c}
function tc(a){if(!a.h&&(a.h=new $b,a.d=0,a.B))for(var b=a.B.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=uc(a,e);a.add(e,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}f=jc.prototype;f.h=null;f.d=null;f.add=function(a,b){tc(this);this.B=null;a=uc(this,a);var c=this.h.get(a);c||this.h.set(a,c=[]);c.push(b);this.d++;return this};
f.remove=function(a){tc(this);a=uc(this,a);return this.h.Ia(a)?(this.B=null,this.d-=this.h.get(a).length,this.h.remove(a)):!1};f.Ia=function(a){tc(this);a=uc(this,a);return this.h.Ia(a)};f.ya=function(){tc(this);for(var a=this.h.W(),b=this.h.ya(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.W=function(a){tc(this);var b=[];if(a)this.Ia(a)&&(b=Ca(b,this.h.get(uc(this,a))));else{a=this.h.W();for(var c=0;c<a.length;c++)b=Ca(b,a[c])}return b};
f.set=function(a,b){tc(this);this.B=null;a=uc(this,a);this.Ia(a)&&(this.d-=this.h.get(a).length);this.h.set(a,[b]);this.d++;return this};f.get=function(a,b){var c=a?this.W(a):[];return 0<c.length?String(c[0]):b};function rc(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.h.set(uc(a,b),Da(c)),a.d+=c.length)}
f.toString=function(){if(this.B)return this.B;if(!this.h)return"";for(var a=[],b=this.h.ya(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.W(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="\x3d"+encodeURIComponent(String(d[g])));a.push(h)}return this.B=a.join("\x26")};f.aa=function(){var a=new jc;a.B=this.B;this.h&&(a.h=this.h.aa(),a.d=this.d);return a};function uc(a,b){var c=String(b);a.G&&(c=c.toLowerCase());return c}
f.Qb=function(a){a&&!this.G&&(tc(this),this.B=null,Zb(this.h,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),rc(this,d,a))},this));this.G=a};function vc(a){return function(){throw a;}};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function wc(a,b){this.Ua=[];this.pd=a;this.Hc=b||null}f=wc.prototype;f.Ma=!1;f.Oa=!1;f.xb=!1;f.Cc=!1;f.uc=!1;f.Dc=0;f.Xb=function(a,b){this.xb=!1;xc(this,a,b)};function xc(a,b,c){a.Ma=!0;a.Pb=c;a.Oa=!b;yc(a)}function zc(a){if(a.Ma){if(!a.uc)throw new Ac(a);a.uc=!1}}function Bc(a){return za(a.Ua,function(a){return fa(a[1])})}
function yc(a){a.Ub&&(a.Ma&&Bc(a))&&(m.clearTimeout(a.Ub),delete a.Ub);a.qa&&(a.qa.Dc--,delete a.qa);for(var b=a.Pb,c=!1,d=!1;a.Ua.length&&!a.xb;){var e=a.Ua.shift(),g=e[0],h=e[1],e=e[2];if(g=a.Oa?h:g)try{var k=g.call(e||a.Hc,b);n(k)&&(a.Oa=a.Oa&&(k==b||k instanceof Error),a.Pb=b=k);b instanceof wc&&(d=!0,a.xb=!0)}catch(l){b=l,a.Oa=!0,Bc(a)||(c=!0)}}a.Pb=b;d&&(d=b,k=u(a.Xb,a,!0),g=u(a.Xb,a,!1),d.Ua.push([k,g,void 0]),d.Ma&&yc(d),b.Cc=!0);c&&(a.Ub=m.setTimeout(vc(b),0))}
function Ac(a){ma.call(this);this.kd=a}w(Ac,ma);Ac.prototype.message="Deferred has already fired";Ac.prototype.name="AlreadyCalledError";function Cc(a,b){var c=b||{},d=c.document||document,e=document.createElement("SCRIPT"),g={tc:e,sb:void 0},h=new wc(Dc,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Ec(e,!0);var b=new Fc(Gc,"Timeout reached for loading script "+a);zc(h);xc(h,!1,b)},l),g.sb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Ec(e,c.Gc||!1,k),zc(h),xc(h,!0,null))};e.onerror=function(){Ec(e,!0,k);var b=new Fc(Hc,"Error while loading script "+
a);zc(h);xc(h,!1,b)};ob(e,{type:"text/javascript",charset:"UTF-8",src:a});Ic(d).appendChild(e);return h}function Ic(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function Dc(){if(this&&this.tc){var a=this.tc;a&&"SCRIPT"==a.tagName&&Ec(a,!0,this.sb)}}function Ec(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){ub(a)},0)}var Hc=0,Gc=1;
function Fc(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ma.call(this,c);this.code=a}w(Fc,ma);function Jc(a,b){this.ed=new fc(a);this.Ec=b?b:"callback";this.sb=5E3}var Kc=0;Jc.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Kc++).toString(36)+v().toString(36);m._callbacks_||(m._callbacks_={});var e=this.ed.aa();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||qc(e,g,a[g]);b&&(m._callbacks_[d]=Lc(d,b),qc(e,this.Ec,"_callbacks_."+d));b=Cc(e.toString(),{timeout:this.sb,Gc:!0});b.Ua.push([null,Mc(d,a,c),void 0]);b.Ma&&yc(b);return{R:d,ld:b}};
function Mc(a,b,c){return function(){Nc(a,!1);c&&c(b)}}function Lc(a,b){return function(c){Nc(a,!0);b.apply(void 0,arguments)}}function Nc(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function S(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}S.prototype.aa=function(){return new S(this.top,this.right,this.bottom,this.left)};S.prototype.contains=function(a){return this&&a?a instanceof S?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
S.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};S.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Oc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Oc.prototype.aa=function(){return new Oc(this.left,this.top,this.width,this.height)};Oc.prototype.contains=function(a){return a instanceof Oc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
Oc.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Oc.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Pc(a,b){var c=J(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function T(a,b){return Pc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Qc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}B&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Rc(a){if(B&&!(B&&8<=F))return a.offsetParent;var b=J(a),c=T(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=T(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function Sc(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Qc(a),b=new H(b.left,b.top);else{b=wb(I(a));var c,d=J(a),e=T(a,"position"),g=C&&d.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==e&&(c=d.getBoxObjectFor(a))&&(0>c.screenX||0>c.screenY),h=new H(0,0),k;c=d?J(d):document;(k=!B)||(k=B&&9<=F)||(k="CSS1Compat"==I(c).q.compatMode);k=k?c.documentElement:c.body;if(a!=k)if(a.getBoundingClientRect)c=Qc(a),d=wb(I(d)),h.x=c.left+d.x,h.y=c.top+d.y;else if(d.getBoxObjectFor&&!g)c=d.getBoxObjectFor(a),
d=d.getBoxObjectFor(k),h.x=c.screenX-d.screenX,h.y=c.screenY-d.screenY;else{g=a;do{h.x+=g.offsetLeft;h.y+=g.offsetTop;g!=a&&(h.x+=g.clientLeft||0,h.y+=g.clientTop||0);if(D&&"fixed"==T(g,"position")){h.x+=d.body.scrollLeft;h.y+=d.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(Na||D&&"absolute"==e)h.y-=d.body.offsetTop;for(g=a;(g=Rc(g))&&g!=d.body&&g!=k;)h.x-=g.scrollLeft,Na&&"TR"==g.tagName||(h.y-=g.scrollTop)}b=new H(h.x-b.x,h.y-b.y)}if(C&&!E(12)){var l;B?l="-ms-transform":D?l="-webkit-transform":
Na?l="-o-transform":C&&(l="-moz-transform");var q;l&&(q=T(a,l));q||(q=T(a,"transform"));a=q?(a=q.match(Tc))?new H(parseFloat(a[1]),parseFloat(a[2])):new H(0,0):new H(0,0);a=new H(b.x+a.x,b.y+a.y)}else a=b;return a}l=fa(a.Mc);q=a;a.targetTouches?q=a.targetTouches[0]:l&&a.r.targetTouches&&(q=a.r.targetTouches[0]);return new H(q.clientX,q.clientY)}function U(a,b){a.style.display=b?"":"none"}function Uc(a){return"rtl"==T(a,"direction")}var Vc={thin:2,medium:4,thick:6};
function Wc(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null,d;if(c in Vc)d=Vc[c];else if(/^\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d}
function Xc(a){if(B){var b=Wc(a,"borderLeft"),c=Wc(a,"borderRight"),d=Wc(a,"borderTop");a=Wc(a,"borderBottom");return new S(d,c,a,b)}b=Pc(a,"borderLeftWidth");c=Pc(a,"borderRightWidth");d=Pc(a,"borderTopWidth");a=Pc(a,"borderBottomWidth");return new S(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Tc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;var Yc;function Zc(a,b,c){ea(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(Yc||(Yc={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),c=Yc,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)};function $c(a){this.src=a;this.u={};this.tb=0}$c.prototype.add=function(a,b,c,d,e){var g=this.u[a];g||(g=this.u[a]=[],this.tb++);var h=ad(g,b,d,e);-1<h?(a=g[h],c||(a.va=!1)):(a=new Kb(b,null,this.src,a,!!d,e),a.va=c,g.push(a));return a};$c.prototype.remove=function(a,b,c,d){if(!(a in this.u))return!1;var e=this.u[a];b=ad(e,b,c,d);return-1<b?(Lb(e[b]),x.splice.call(e,b,1),0==e.length&&(delete this.u[a],this.tb--),!0):!1};
function Ub(a,b){var c=b.type;if(!(c in a.u))return!1;var d=Ba(a.u[c],b);d&&(Lb(b),0==a.u[c].length&&(delete a.u[c],a.tb--));return d}$c.prototype.Ea=function(a){var b=0,c;for(c in this.u)if(!a||c==a){for(var d=this.u[c],e=0;e<d.length;e++)++b,d[e].Z=!0;delete this.u[c];this.tb--}return b};$c.prototype.Eb=function(a,b,c,d){a=this.u[a];var e=-1;a&&(e=ad(a,b,c,d));return-1<e?a[e]:null};
function ad(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.Z&&g.S==b&&g.capture==!!c&&g.na==d)return e}return-1};function V(){L.call(this);this.ca=new $c(this);this.Bc=this}w(V,L);V.prototype[Ib]=!0;f=V.prototype;f.nb=null;f.Rb=aa("nb");f.addEventListener=function(a,b,c,d){P(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Sb(this,a,b,c,d)};
f.dispatchEvent=function(a){var b,c=this.nb;if(c)for(b=[];c;c=c.nb)b.push(c);var c=this.Bc,d=a.type||a;if(r(a))a=new M(a,c);else if(a instanceof M)a.target=a.target||c;else{var e=a;a=new M(d,c);lb(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.ga&&0<=h;h--)g=a.currentTarget=b[h],e=bd(g,d,!0,a)&&e;a.ga||(g=a.currentTarget=c,e=bd(g,d,!0,a)&&e,a.ga||(e=bd(g,d,!1,a)&&e));if(b)for(h=0;!a.ga&&h<b.length;h++)g=a.currentTarget=b[h],e=bd(g,d,!1,a)&&e;return e};
f.e=function(){V.g.e.call(this);this.ca&&this.ca.Ea(void 0);this.nb=null};f.l=function(a,b,c,d){return this.ca.add(a,b,!1,c,d)};f.Za=function(a,b,c,d){return this.ca.remove(a,b,c,d)};function bd(a,b,c,d){b=a.ca.u[b];if(!b)return!0;b=Da(b);for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.Z&&h.capture==c){var k=h.S,l=h.na||h.src;h.va&&Ub(a.ca,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.sc}f.Eb=function(a,b,c,d){return this.ca.Eb(a,b,c,d)};function cd(a,b){V.call(this);this.Aa=a||1;this.Ga=b||m;this.yb=u(this.dd,this);this.Jb=v()}w(cd,V);f=cd.prototype;f.enabled=!1;f.V=null;f.dd=function(){if(this.enabled){var a=v()-this.Jb;0<a&&a<0.8*this.Aa?this.V=this.Ga.setTimeout(this.yb,this.Aa-a):(this.V&&(this.Ga.clearTimeout(this.V),this.V=null),this.dispatchEvent(dd),this.enabled&&(this.V=this.Ga.setTimeout(this.yb,this.Aa),this.Jb=v()))}};f.start=function(){this.enabled=!0;this.V||(this.V=this.Ga.setTimeout(this.yb,this.Aa),this.Jb=v())};
f.stop=function(){this.enabled=!1;this.V&&(this.Ga.clearTimeout(this.V),this.V=null)};f.e=function(){cd.g.e.call(this);this.stop();delete this.Ga};var dd="tick";function ed(a,b,c){if(fa(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)};function fd(a,b,c,d,e){if(!(B||D&&E("525")))return!0;if(z&&e)return gd(a);if(e&&!d||!c&&(17==b||18==b||z&&91==b))return!1;if(D&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(B&&d&&b==a)return!1;switch(a){case 13:return!(B&&B&&9<=F);case 27:return!D}return gd(a)}
function gd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||D&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function hd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function id(a,b){V.call(this);a&&(this.jb&&this.detach(),this.f=a,this.ib=P(this.f,"keypress",this,b),this.Hb=P(this.f,"keydown",this.Gb,b,this),this.jb=P(this.f,"keyup",this.Nc,b,this))}w(id,V);f=id.prototype;f.f=null;f.ib=null;f.Hb=null;f.jb=null;f.A=-1;f.fa=-1;f.vb=!1;
var jd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},kd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},ld=B||D&&E("525"),md=z&&C;f=id.prototype;
f.Gb=function(a){D&&(17==this.A&&!a.ctrlKey||18==this.A&&!a.altKey||z&&91==this.A&&!a.metaKey)&&(this.fa=this.A=-1);-1==this.A&&(a.ctrlKey&&17!=a.keyCode?this.A=17:a.altKey&&18!=a.keyCode?this.A=18:a.metaKey&&91!=a.keyCode&&(this.A=91));ld&&!fd(a.keyCode,this.A,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.fa=C?hd(a.keyCode):a.keyCode,md&&(this.vb=a.altKey))};f.Nc=function(a){this.fa=this.A=-1;this.vb=a.altKey};
f.handleEvent=function(a){var b=a.r,c,d,e=b.altKey;B&&"keypress"==a.type?(c=this.fa,d=13!=c&&27!=c?b.keyCode:0):D&&"keypress"==a.type?(c=this.fa,d=0<=b.charCode&&63232>b.charCode&&gd(c)?b.charCode:0):Na?(c=this.fa,d=gd(c)?b.keyCode:0):(c=b.keyCode||this.fa,d=b.charCode||0,md&&(e=this.vb),z&&(63==d&&224==c)&&(c=191));var g=c,h=b.keyIdentifier;c?63232<=c&&c in jd?g=jd[c]:25==c&&a.shiftKey&&(g=9):h&&h in kd&&(g=kd[h]);a=g==this.A;this.A=g;b=new nd(g,d,a,b);b.altKey=e;this.dispatchEvent(b)};f.a=ba("f");
f.detach=function(){this.ib&&(Q(this.ib),Q(this.Hb),Q(this.jb),this.jb=this.Hb=this.ib=null);this.f=null;this.fa=this.A=-1};f.e=function(){id.g.e.call(this);this.detach()};function nd(a,b,c,d){d&&Gb(this,d,void 0);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}w(nd,N);function od(a,b){V.call(this);this.f=a;var c=ga(this.f)&&1==this.f.nodeType?this.f:this.f?this.f.body:null;this.Vc=!!c&&Uc(c);this.kc=P(this.f,C?"DOMMouseScroll":"mousewheel",this,b)}w(od,V);
od.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.r;if("mousewheel"==a.type){c=1;if(B||D&&(Ja||E("532.0")))c=40;d=pd(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=pd(-a.wheelDeltaX,c),c=pd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),n(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.lc&&(b=G(b,-this.lc,this.lc));"number"==typeof this.mc&&(c=G(c,-this.mc,this.mc));this.Vc&&(b=-b);b=new qd(d,a,b,c);this.dispatchEvent(b)};
function pd(a,b){return D&&(z||Qa)&&0!=a%b?a:a/b}od.prototype.e=function(){od.g.e.call(this);Q(this.kc);this.kc=null};function qd(a,b,c,d){b&&Gb(this,b,void 0);this.type="mousewheel";this.detail=a;this.ja=c;this.ka=d}w(qd,N);function rd(a){L.call(this);this.Pa=a;this.i={}}w(rd,L);var sd=[];f=rd.prototype;f.l=function(a,b,c,d,e){p(b)||(sd[0]=b,b=sd);for(var g=0;g<b.length;g++){var h=P(a,b[g],c||this,d||!1,e||this.Pa||this);this.i[h.key]=h}return this};
f.Za=function(a,b,c,d,e){if(p(b))for(var g=0;g<b.length;g++)this.Za(a,b[g],c,d,e);else{a:if(e=e||this.Pa||this,d=!!d,c=Pb(c||this),a&&a[Ib])a=a.Eb(b,c,d,e);else{if(a=Tb(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Z&&a[b].S==c&&a[b].capture==d&&a[b].na==e){a=a[b];break a}a=null}a&&(Q(a),delete this.i[a.key])}return this};f.Ea=function(){fb(this.i,Q);this.i={}};f.e=function(){rd.g.e.call(this);this.Ea()};f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function W(){V.call(this);this.n=X;this.Ka=this.startTime=null}w(W,V);var X=0;W.prototype.mb=function(){this.v("begin")};W.prototype.Da=function(){this.v("end")};W.prototype.v=function(a){this.dispatchEvent(a)};function td(){W.call(this);this.Y=[]}w(td,W);td.prototype.add=function(a){0<=xa(this.Y,a)||(this.Y.push(a),P(a,"finish",this.oc,!1,this))};td.prototype.remove=function(a){Ba(this.Y,a)&&Sb(a,"finish",this.oc,!1,this)};td.prototype.e=function(){y(this.Y,function(a){a.w()});this.Y.length=0;td.g.e.call(this)};function ud(){td.call(this);this.Db=0}w(ud,td);
ud.prototype.play=function(a){if(0==this.Y.length)return!1;if(a||this.n==X)this.Db=0,this.mb();else if(1==this.n)return!1;this.v("play");-1==this.n&&this.v("resume");var b=-1==this.n&&!a;this.startTime=v();this.Ka=null;this.n=1;y(this.Y,function(c){b&&-1!=c.n||c.play(a)});return!0};ud.prototype.stop=function(a){y(this.Y,function(b){b.n==X||b.stop(a)});this.n=X;this.Ka=v();this.v("stop");this.Da()};
ud.prototype.oc=function(){this.Db++;this.Db==this.Y.length&&(this.Ka=v(),this.n=X,this.v("finish"),this.Da())};function vd(a){var b=a.offsetLeft,c=a.offsetParent;c||"fixed"!=T(a,"position")||(c=J(a).documentElement);if(!c)return b;if(C)var d=Xc(c),b=b+d.left;else B&&8<=F&&(d=Xc(c),b-=d.left);return Uc(c)?c.clientWidth-(b+a.offsetWidth):b};function wd(a,b,c){V.call(this);this.target=a;this.handle=b||a;this.jc=c||new Oc(NaN,NaN,NaN,NaN);this.q=J(a);this.Q=new rd(this);a=la(Cb,this.Q);this.Sa||(this.Sa=[]);this.Sa.push(u(a,void 0));P(this.handle,["touchstart","mousedown"],this.vc,!1,this)}w(wd,V);var xd=B||C&&E("1.9.3");f=wd.prototype;f.clientX=0;f.clientY=0;f.screenX=0;f.screenY=0;f.wc=0;f.xc=0;f.ja=0;f.ka=0;f.Cb=!0;f.la=!1;f.fc=0;f.Xc=0;f.Sc=!1;f.sa=!1;f.ba=aa("sa");f.ma=ba("Q");
f.e=function(){wd.g.e.call(this);Sb(this.handle,["touchstart","mousedown"],this.vc,!1,this);this.Q.Ea();xd&&this.q.releaseCapture();this.handle=this.target=null};function yd(a){n(a.T)||(a.T=Uc(a.target));return a.T}
f.vc=function(a){var b="mousedown"==a.type;if(!this.Cb||this.la||b&&(!(xb?0==a.r.button:"click"==a.type||a.r.button&Hb[0])||D&&z&&a.ctrlKey))this.dispatchEvent("earlycancel");else{zd(a);if(0==this.fc)if(this.dispatchEvent(new Ad("start",this,a.clientX,a.clientY,a)))this.la=!0,a.preventDefault();else return;else a.preventDefault();var b=this.q,c=b.documentElement,d=!xd;this.Q.l(b,["touchmove","mousemove"],this.Qc,d);this.Q.l(b,["touchend","mouseup"],this.eb,d);xd?(c.setCapture(!1),this.Q.l(c,"losecapture",
this.eb)):this.Q.l(b?b.parentWindow||b.defaultView:window,"blur",this.eb);B&&this.Sc&&this.Q.l(b,"dragstart",Eb);this.bd&&this.Q.l(this.bd,"scroll",this.Zc,d);this.clientX=this.wc=a.clientX;this.clientY=this.xc=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.ja=this.sa?vd(this.target):this.target.offsetLeft;this.ka=this.target.offsetTop;this.Ob=wb(I(this.q));this.Xc=v()}};
f.eb=function(a,b){this.Q.Ea();xd&&this.q.releaseCapture();if(this.la){zd(a);this.la=!1;var c=Bd(this,this.ja),d=Cd(this,this.ka);this.dispatchEvent(new Ad("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else this.dispatchEvent("earlycancel")};function zd(a){var b=a.type;"touchstart"==b||"touchmove"==b?Gb(a,a.r.targetTouches[0],a.currentTarget):"touchend"!=b&&"touchcancel"!=b||Gb(a,a.r.changedTouches[0],a.currentTarget)}
f.Qc=function(a){if(this.Cb){zd(a);var b=(this.sa&&yd(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.la){var d=this.wc-this.clientX,e=this.xc-this.clientY;if(d*d+e*e>this.fc)if(this.dispatchEvent(new Ad("start",this,a.clientX,a.clientY,a)))this.la=!0;else{this.Ab||this.eb(a);return}}c=Dd(this,b,c);b=c.x;c=c.y;this.la&&this.dispatchEvent(new Ad("beforedrag",this,a.clientX,a.clientY,a,
b,c))&&(Ed(this,a,b,c),a.preventDefault())}};function Dd(a,b,c){var d=wb(I(a.q));b+=d.x-a.Ob.x;c+=d.y-a.Ob.y;a.Ob=d;a.ja+=b;a.ka+=c;b=Bd(a,a.ja);a=Cd(a,a.ka);return new H(b,a)}f.Zc=function(a){var b=Dd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Ed(this,a,b.x,b.y)};function Ed(a,b,c,d){a.zb(c,d);a.dispatchEvent(new Ad("drag",a,b.clientX,b.clientY,b,c,d))}
function Bd(a,b){var c=a.jc,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function Cd(a,b){var c=a.jc,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}f.zb=function(a,b){this.sa&&yd(this)?this.target.style.right=a+"px":this.target.style.left=a+"px";this.target.style.top=b+"px"};
function Ad(a,b,c,d,e,g,h,k){M.call(this,a);this.clientX=c;this.clientY=d;this.gd=e;this.left=n(g)?g:b.ja;this.top=n(h)?h:b.ka;this.Bb=b;this.md=!!k}w(Ad,M);function Fd(a,b,c){L.call(this);this.Kb=a;this.Aa=b||0;this.Pa=c;this.Fc=u(this.Jc,this)}w(Fd,L);f=Fd.prototype;f.R=0;f.e=function(){Fd.g.e.call(this);this.stop();delete this.Kb;delete this.Pa};f.start=function(a){this.stop();this.R=ed(this.Fc,n(a)?a:this.Aa)};f.stop=function(){0!=this.R&&m.clearTimeout(this.R);this.R=0};f.Jc=function(){this.R=0;this.Kb&&this.Kb.call(this.Pa)};var jb={},Gd=null;function Hd(a){a=t(a);delete jb[a];ib()&&Gd&&Gd.stop()}function Id(){Gd||(Gd=new Fd(function(){Jd()},20));var a=Gd;0!=a.R||a.start()}function Jd(){var a=v();fb(jb,function(b){Kd(b,a)});ib()||Id()};function Ld(a,b,c,d){W.call(this);if(!p(a)||!p(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.Wa=a;this.Lc=b;this.duration=c;this.Vb=d;this.coords=[];this.sa=!1}w(Ld,W);f=Ld.prototype;f.ba=aa("sa");f.Yb=0;f.I=0;f.Ib=null;
f.play=function(a){if(a||this.n==X)this.I=0,this.coords=this.Wa;else if(1==this.n)return!1;Hd(this);this.startTime=a=v();-1==this.n&&(this.startTime-=this.duration*this.I);this.Ka=this.startTime+this.duration;this.Ib=this.startTime;this.I||this.mb();this.v("play");-1==this.n&&this.v("resume");this.n=1;var b=t(this);b in jb||(jb[b]=this);Id();Kd(this,a);return!0};f.stop=function(a){Hd(this);this.n=X;a&&(this.I=1);Md(this,this.I);this.v("stop");this.Da()};
f.e=function(){this.n==X||this.stop(!1);this.v("destroy");Ld.g.e.call(this)};function Kd(a,b){a.I=(b-a.startTime)/(a.Ka-a.startTime);1<=a.I&&(a.I=1);a.Yb=1E3/(b-a.Ib);a.Ib=b;Md(a,a.I);1==a.I?(a.n=X,Hd(a),a.v("finish"),a.Da()):1==a.n&&a.Nb()}function Md(a,b){fa(a.Vb)&&(b=a.Vb(b));a.coords=Array(a.Wa.length);for(var c=0;c<a.Wa.length;c++)a.coords[c]=(a.Lc[c]-a.Wa[c])*b+a.Wa[c]}f.Nb=function(){this.v("animate")};f.v=function(a){this.dispatchEvent(new Nd(a,this))};
function Nd(a,b){M.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.I=b.I;this.nd=b.Yb;this.state=b.n;this.fd=b}w(Nd,M);function Y(a,b,c,d,e){Ld.call(this,b,c,d,e);this.element=a}w(Y,Ld);f=Y.prototype;f.Ha=ca;f.Ba=function(){n(this.T)||(this.T=Uc(this.element));return this.T};f.Nb=function(){this.Ha();Y.g.Nb.call(this)};f.Da=function(){this.Ha();Y.g.Da.call(this)};f.mb=function(){this.Ha();Y.g.mb.call(this)};function Od(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Y.apply(this,arguments)}w(Od,Y);
Od.prototype.Ha=function(){var a=this.sa&&this.Ba()?"right":"left";this.element.style[a]=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};function Pd(a,b,c,d,e){Y.call(this,a,[b],[c],d,e)}w(Pd,Y);Pd.prototype.Ha=function(){this.element.style.width=Math.round(this.coords[0])+"px"};function Qd(a,b,c,d,e){Y.call(this,a,[b],[c],d,e)}w(Qd,Y);Qd.prototype.Ha=function(){this.element.style.height=Math.round(this.coords[0])+"px"};function Rd(){}Rd.Zb=function(){return Rd.hc?Rd.hc:Rd.hc=new Rd};Rd.prototype.Yc=0;Rd.Zb();function Sd(a){V.call(this);this.xa=a||I();this.T=Td}w(Sd,V);Sd.prototype.Rc=Rd.Zb();var Td=null;f=Sd.prototype;f.R=null;f.oa=!1;f.f=null;f.T=null;f.Wc=null;f.qa=null;f.ab=null;f.$a=null;f.Ac=!1;f.a=ba("f");f.ma=function(){return this.za||(this.za=new rd(this))};f.Rb=function(a){if(this.qa&&this.qa!=a)throw Error("Method not supported");Sd.g.Rb.call(this,a)};f.Na=ba("xa");f.wa=function(){this.f=this.xa.createElement("div")};f.cb=aa("f");
f.fb=function(){this.oa=!0;Ud(this,function(a){!a.oa&&a.a()&&a.fb()})};f.La=function(){Ud(this,function(a){a.oa&&a.La()});this.za&&this.za.Ea();this.oa=!1};f.e=function(){this.oa&&this.La();this.za&&(this.za.w(),delete this.za);Ud(this,function(a){a.w()});!this.Ac&&this.f&&ub(this.f);this.qa=this.Wc=this.f=this.$a=this.ab=null;Sd.g.e.call(this)};f.Ba=function(){null==this.T&&(this.T=Uc(this.oa?this.f:this.xa.q.body));return this.T};function Ud(a,b){a.ab&&y(a.ab,b,void 0)}
f.removeChild=function(a,b){if(a){var c=r(a)?a:a.R||(a.R=":"+(a.Rc.Yc++).toString(36)),d;this.$a&&c?(d=this.$a,d=(c in d?d[c]:void 0)||null):d=null;a=d;if(c&&a){d=this.$a;c in d&&delete d[c];Ba(this.ab,a);b&&(a.La(),a.f&&ub(a.f));c=a;if(null==c)throw Error("Unable to set parent component");c.qa=null;Sd.g.Rb.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function Vd(){V.call(this)}w(Vd,V);f=Vd.prototype;f.ta=0;f.M=0;f.H=100;f.s=0;f.$=1;f.t=!1;f.pa=!1;f.U=function(a){a=Wd(this,a);this.ta!=a&&(this.ta=a+this.s>this.H?this.H-this.s:a<this.M?this.M:a,this.t||this.pa||this.dispatchEvent("change"))};f.k=function(){return Wd(this,this.ta)};f.ia=function(a){a=Wd(this,a);this.s!=a&&(this.s=0>a?0:this.ta+a>this.H?this.H-this.ta:a,this.t||this.pa||this.dispatchEvent("change"))};f.F=function(){return null==this.$?this.s:Math.round(this.s/this.$)*this.$};
f.rb=function(a){if(this.M!=a){var b=this.t;this.t=!0;this.M=a;a+this.s>this.H&&(this.s=this.H-this.M);a>this.ta&&this.U(a);a>this.H&&(this.s=0,this.Va(a),this.U(a));(this.t=b)||this.pa||this.dispatchEvent("change")}};f.j=function(){return Wd(this,this.M)};f.Va=function(a){a=Wd(this,a);if(this.H!=a){var b=this.t;this.t=!0;this.H=a;a<this.ta+this.s&&this.U(a-this.s);a<this.M&&(this.s=0,this.rb(a),this.U(this.H));a<this.M+this.s&&(this.s=this.H-this.M);(this.t=b)||this.pa||this.dispatchEvent("change")}};
f.o=function(){return Wd(this,this.H)};f.Fb=ba("$");f.Sb=function(a){this.$!=a&&(this.$=a,a=this.t,this.t=!0,this.Va(this.o()),this.ia(this.F()),this.U(this.k()),(this.t=a)||this.pa||this.dispatchEvent("change"))};function Wd(a,b){return null==a.$?b:a.M+Math.round((b-a.M)/a.$)*a.$};function Z(a){Sd.call(this,a);this.Wb=null;this.b=new Vd;P(this.b,"change",this.bc,!1,this)}w(Z,Sd);f=Z.prototype;f.N="horizontal";f.hb=!1;f.nc=!1;f.P=10;f.lb=0;f.Tc=!0;f.Cb=!0;f.D=!1;f.wa=function(){Z.g.wa.call(this);var a=this.Na().wa("div",Xd(this.N));this.cb(a)};
f.cb=function(a){Z.g.cb.call(this,a);cb(a,Xd(this.N));a=nb("goog-twothumbslider-value-thumb",this.a())[0];var b=nb("goog-twothumbslider-extent-thumb",this.a())[0],c=nb("goog-twothumbslider-rangehighlight",this.a())[0];a||(a=Yd(this,"goog-twothumbslider-value-thumb"),this.a().appendChild(a));b||(b=Yd(this,"goog-twothumbslider-extent-thumb"),this.a().appendChild(b));c||(c=this.Na().wa("div","goog-twothumbslider-rangehighlight"),this.Na(),a.parentNode&&a.parentNode.insertBefore(c,a));this.c=a;this.C=
b;this.p=c;this.a().setAttribute("role","slider");Zd(this)};
f.fb=function(){Z.g.fb.call(this);this.O=new wd(this.c);this.da=new wd(this.C);this.O.ba(this.D);this.da.ba(this.D);this.O.zb=this.da.zb=ca;this.Ra=new id(this.a());this.ma().l(this.O,"beforedrag",this.$b).l(this.da,"beforedrag",this.$b).l(this.O,["start","end"],this.cc).l(this.da,["start","end"],this.cc).l(this.Ra,"key",this.Gb).l(this.a(),"mousedown",this.Oc);this.Tc&&(this.Ca||(this.Ca=new od(this.a())),this.ma().l(this.Ca,"mousewheel",this.Pc));this.a().tabIndex=0;$d(this)};
f.La=function(){Z.g.La.call(this);Db(this.O,this.da,this.Ra,this.Ca)};f.$b=function(a){var b=a.Bb==this.O?this.c:this.C,c;"vertical"==this.N?(c=this.a().clientHeight-b.offsetHeight,c=(c-a.top)/c*(this.o()-this.j())+this.j()):c=a.left/(this.a().clientWidth-b.offsetWidth)*(this.o()-this.j())+this.j();c=a.Bb==this.O?Math.min(Math.max(c,this.j()),this.k()+this.F()):Math.min(Math.max(c,this.k()),this.o());ae(this,b,c)};
f.cc=function(a){var b="start"==a.type,c=this.a();b?cb(c,"goog-slider-dragging"):db(c,"goog-slider-dragging");c=a.target.handle;b?cb(c,"goog-slider-thumb-dragging"):db(c,"goog-slider-thumb-dragging");a=a.Bb==this.O;b?(this.dispatchEvent("e"),this.dispatchEvent(a?"a":"c")):(this.dispatchEvent("f"),this.dispatchEvent(a?"b":"d"))};
f.Gb=function(a){var b=!0;switch(a.keyCode){case 36:be(this,this.j());break;case 35:be(this,this.o());break;case 33:ce(this,this.P);break;case 34:ce(this,-this.P);break;case 37:var c=this.D&&this.Ba()?1:-1;ce(this,a.shiftKey?c*this.P:c*this.Ya);break;case 40:ce(this,a.shiftKey?-this.P:-this.Ya);break;case 39:c=this.D&&this.Ba()?-1:1;ce(this,a.shiftKey?c*this.P:c*this.Ya);break;case 38:ce(this,a.shiftKey?this.P:this.Ya);break;default:b=!1}b&&a.preventDefault()};
f.Oc=function(a){this.a().focus&&this.a().focus();var b=a.target;vb(this.c,b)||vb(this.C,b)||(this.nc?be(this,de(this,a)):(this.Tb(a),this.J=ee(this,de(this,a)),this.gc="vertical"==this.N?this.kb<this.J.offsetTop:this.kb>fe(this,this.J)+this.J.offsetWidth,a=J(this.a()),this.ma().l(a,"mouseup",this.yc,!0).l(this.a(),"mousemove",this.Tb),this.ea||(this.ea=new cd(200),this.ma().l(this.ea,dd,this.dc)),this.dc(),this.ea.start()))};f.Pc=function(a){ce(this,(0<a.detail?-1:1)*this.Ya);a.preventDefault()};
f.dc=function(){var a;if("vertical"==this.N){var b=this.kb,c=this.J.offsetTop;this.gc?b<c&&(a=$(this,this.J)+this.P):b>c+this.J.offsetHeight&&(a=$(this,this.J)-this.P)}else b=this.kb,c=fe(this,this.J),this.gc?b>c+this.J.offsetWidth&&(a=$(this,this.J)+this.P):b<c&&(a=$(this,this.J)-this.P);n(a)&&ae(this,this.J,a)};f.yc=function(){this.ea&&this.ea.stop();var a=J(this.a());this.ma().Za(a,"mouseup",this.yc,!0).Za(this.a(),"mousemove",this.Tb)};
function ge(a,b){var c,d=a.a();c=Sc(b);d=Sc(d);c=new H(c.x-d.x,c.y-d.y);return"vertical"==a.N?c.y:a.D&&a.Ba()?a.a().clientWidth-c.x:c.x}f.Tb=function(a){this.kb=ge(this,a)};function de(a,b){var c=a.j(),d=a.o();if("vertical"==a.N){var e=a.c.offsetHeight,g=a.a().clientHeight-e,e=ge(a,b)-e/2;return(d-c)*(g-e)/g+c}e=a.c.offsetWidth;g=a.a().clientWidth-e;e=ge(a,b)-e/2;return(d-c)*e/g+c}
function $(a,b){if(b==a.c)return a.b.k();if(b==a.C)return a.b.k()+a.b.F();throw Error("Illegal thumb element. Neither minThumb nor maxThumb");}function ce(a,b){var c=$(a,a.c)+b,d=$(a,a.C)+b,c=G(c,a.j(),a.o()-a.lb),d=G(d,a.j()+a.lb,a.o());he(a,c,d-c)}function ae(a,b,c){var d=Wd(a.b,c);c=b==a.c?d:a.b.k();b=b==a.C?d:a.b.k()+a.b.F();c>=a.j()&&(b>=c+a.lb&&a.o()>=b)&&he(a,c,b-c)}
function he(a,b,c){a.j()<=b&&(b<=a.o()-c&&a.lb<=c&&c<=a.o()-b)&&(b!=a.k()||c!=a.F())&&(a.b.pa=!0,a.b.ia(0),a.b.U(b),a.b.ia(c),a.b.pa=!1,a.bc())}f.j=function(){return this.b.j()};f.rb=function(a){this.b.rb(a)};f.o=function(){return this.b.o()};f.Va=function(a){this.b.Va(a)};function ee(a,b){return b<=a.b.k()+a.b.F()/2?a.c:a.C}f.bc=function(){$d(this);Zd(this);this.dispatchEvent("change")};
function $d(a){if(a.c&&!a.hb){var b=ie(a,$(a,a.c)),c=ie(a,$(a,a.C));if("vertical"==a.N)a.c.style.top=b.y+"px",a.C.style.top=c.y+"px",a.p&&(b=je(c.y,b.y,a.c.offsetHeight),a.p.style.top=b.offset+"px",a.p.style.height=b.size+"px");else{var d=a.D&&a.Ba()?"right":"left";a.c.style[d]=b.x+"px";a.C.style[d]=c.x+"px";a.p&&(b=je(b.x,c.x,a.c.offsetWidth),a.p.style[d]=b.offset+"px",a.p.style.width=b.size+"px")}}}function je(a,b,c){var d=Math.ceil(c/2);return{offset:a+d,size:Math.max(b-a+c-2*d,0)}}
function ie(a,b){var c=new H;if(a.c){var d=a.j(),e=a.o(),e=b==d&&d==e?0:(b-d)/(e-d);"vertical"==a.N?(d=a.a().clientHeight-a.c.offsetHeight,e=Math.round(e*d),c.x=fe(a,a.c),c.y=d-e):(d=Math.round(e*(a.a().clientWidth-a.c.offsetWidth)),c.x=d,c.y=a.c.offsetTop)}return c}
function be(a,b){b=G(b,a.j(),a.o());a.hb&&a.bb.stop(!0);var c=new ud,d,e=ee(a,b),g=a.k(),h=a.F(),k=$(a,e),l=ie(a,k);d=a.Fb();Math.abs(b-k)<d&&(b=G(k+(b>k?d:-d),a.j(),a.o()));ae(a,e,b);k=ie(a,$(a,e));d="vertical"==a.N?[fe(a,e),k.y]:[k.x,e.offsetTop];l=new Od(e,[l.x,l.y],d,100);l.ba(a.D);c.add(l);a.p&&ke(a,e,g,h,k,c);a.Wb&&(e=a.Wb.hd(g,b,100),y(e,function(a){c.add(a)}));a.bb=c;a.ma().l(c,"end",a.Kc);a.hb=!0;c.play(!1)}
function ke(a,b,c,d,e,g){var h=ie(a,c),k=ie(a,c+d);c=h;d=k;b==a.c?c=e:d=e;"vertical"==a.N?(b=je(k.y,h.y,a.c.offsetHeight),h=je(d.y,c.y,a.c.offsetHeight),e=new Od(a.p,[fe(a,a.p),b.offset],[fe(a,a.p),h.offset],100),b=new Qd(a.p,b.size,h.size,100)):(b=je(h.x,k.x,a.c.offsetWidth),h=je(c.x,d.x,a.c.offsetWidth),e=new Od(a.p,[b.offset,a.p.offsetTop],[h.offset,a.p.offsetTop],100),b=new Pd(a.p,b.size,h.size,100));e.ba(a.D);b.ba(a.D);g.add(e);g.add(b)}f.Kc=function(){this.hb=!1};
f.e=function(){Z.g.e.call(this);this.ea&&this.ea.w();delete this.ea;this.bb&&this.bb.w();delete this.bb;delete this.c;delete this.C;this.p&&delete this.p;this.b.w();delete this.b;this.Ra&&(this.Ra.w(),delete this.Ra);this.Ca&&(this.Ca.w(),delete this.Ca);this.O&&(this.O.w(),delete this.O);this.da&&(this.da.w(),delete this.da)};f.Ya=1;f.Fb=function(){return this.b.Fb()};f.Sb=function(a){this.b.Sb(a)};f.k=function(){return this.b.k()};f.U=function(a){ae(this,this.c,a)};f.F=function(){return this.b.F()};
f.ia=function(a){ae(this,this.C,this.b.k()+a)};function Zd(a){var b=a.a();b&&(Zc(b,"valuemin",a.j()),Zc(b,"valuemax",a.o()),Zc(b,"valuenow",a.k()))}function fe(a,b){return a.D?vd(b):b.offsetLeft};function le(a){Z.call(this,a);this.b.U(this.j());this.b.ia(this.o()-this.j())}w(le,Z);function Xd(a){return"vertical"==a?"goog-twothumbslider-vertical":"goog-twothumbslider-horizontal"}function Yd(a,b){var c=a.Na().wa("div",b);c.setAttribute("role","button");return c};function me(){this.Lb=K("loading");this.Ta=K("results1");this.qb=K("results2");this.cd=K("s1");this.$c=K("out1");this.Qa=K("q");this.qc=K("period");this.ua=K("byareacheckbox");U(this.Lb,!1);U(this.Ta,!1);U(this.qb,!1);var a=this.m=new le,b=this.cd;if(a.oa)throw Error("Component already rendered");if(b){a.Ac=!0;var c=J(b);a.xa&&a.xa.q==c||(a.xa=I(b));a.cb(b);a.fb()}else throw Error("Invalid element to decorate");this.m.rb(1750);this.m.Va(2010);this.m.ia(260);this.m.Sb(5);this.m.nc=!0;this.K=new WebGLEarth("earth",
{sky:!1});a=this.K.initMap(WebGLEarth.Maps.OSM);this.K.setBaseMap(a);this.K.setPosition(36,15,void 0,4E6,void 0,27);this.ra=0;this.Xa=null;this.pc="";this.Mb=[];this.wb=new cd(750);this.L=[0,0,0,0];this.od=0;ne(this);oe(this)}
function ne(a){P(a.m,"change",function(){this.$c.innerHTML="start: "+this.m.k()+" end: "+(this.m.k()+this.m.F());pe(this)},!1,a);P(a.Qa,"change",function(){pe(this)},!1,a);P(a.qc,"change",function(){var a=this.qc.value,c=parseInt(a.replace(/.*\(/g,"").replace(/-.*/g,""),10),c=G(c,1750,2010),a=parseInt(a.replace(/\)/g,"").replace(/.*-/g,""),10),a=G(a,1750,2010);this.m.U(c);this.m.ia(a-c)},!1,a);P(a.Ta,"click",function(a){this.ra++;pe(this,!0);a.preventDefault();a.stopPropagation()},!1,a);P(a.ua,"change",
a.ac,!1,a);P(a.wb,dd,function(){qe(this)&&pe(this)},!1,a)}me.prototype.ac=function(){this.ua.checked?(qe(this),this.wb.start()):this.wb.stop();pe(this)};
function oe(a){a.ic="";var b=u(function(){var a=this.K.getPosition(),a="#q\x3d"+this.Qa.value+";from\x3d"+this.m.k()+";to\x3d"+(this.m.k()+this.m.F())+";byarea\x3d"+(this.ua.checked?"1":"0")+";ll\x3d"+a[0].toFixed(5)+","+a[1].toFixed(5)+";alt\x3d"+this.K.getAltitude().toFixed(0),b=this.K.getHeading(),c=this.K.getTilt();0.001<Math.abs(b)&&(a+=";h\x3d"+b.toFixed(3));0.001<Math.abs(c)&&(a+=";t\x3d"+c.toFixed(3));window.location.hash.toString()!=a&&(this.ic=a,window.location.hash=a)},a),c=u(function(){if(window.location.hash!=
this.ic){var a=window.location.hash.substr(1).split(";"),b=function(b){b+="\x3d";var c=Aa(a,function(a){return 0===a.indexOf(b)});if(null!=c&&(c=c.substr(b.length),0<c.length))return c},c=b("q"),h=b("from"),k=b("to"),l=b("byarea");null!=c&&(this.Qa.value=c);null!=h&&(this.m.U(parseFloat(h)),null!=k&&this.m.ia(parseFloat(k)-parseFloat(h)));null!=l&&(this.ua.checked="1"==l?!0:!1,this.ac());k=b("ll");c=b("alt");h=b("h");b=b("t");if(null!=k&&(k=k.split(","),1<k.length&&!isNaN(k[0])&&!isNaN(k[1]))){if(!c||
isNaN(c))c=4E6;if(!b||isNaN(b))b=0;if(!h||isNaN(h))h=0;this.K.setPosition(parseFloat(k[0]),parseFloat(k[1]),void 0,parseFloat(c),parseFloat(h),parseFloat(b))}qe(this);pe(this)}},a);a.ec=new cd(2E3);P(a.ec,dd,b);a.ec.start();P(window,"hashchange",c);c()}function qe(a){var b=a.K.getBounds(void 0,7),c=!1;b&&a.L&&(c=1E-4>=Math.abs(a.L[0]-b[0])&&1E-4>=Math.abs(a.L[1]-b[1])&&1E-4>=Math.abs(a.L[2]-b[2])&&1E-4>=Math.abs(a.L[3]-b[3]));a.L=b;return!c}
function pe(a,b){!0!==b&&(a.ra=0);U(a.Lb,!0);a.Xa&&(m.clearTimeout(a.Xa),a.Xa=null);var c=u(function(){(new Jc("http://www.europeana.eu/api/v2/search.json"+this.pc)).send({},u(this.Ic,this))},a),d=a.m.k(),e=d+a.m.F(),g=10,h=-20,k=80,l=110;if(a.ua.checked){if(!a.L)return;g=Math.max(g,a.L[0]);k=Math.min(k,a.L[1]);h=Math.max(h,a.L[2]);l=Math.min(l,a.L[3])}var q="\x26rows\x3d16\x26query\x3deuropeana_type:*IMAGE*";a.Qa.value&&(q+="+AND+"+a.Qa.value);a.pc="?wskey\x3dymDLchp8i"+(q+("\x26qf\x3dYEAR:["+d+
"+TO+"+e+"]\x26qf\x3dpl_wgs84_pos_lat:["+g+"+TO+"+k+"]\x26qf\x3dpl_wgs84_pos_long:["+h+"+TO+"+l+"]"))+"\x26start\x3d"+(16*a.ra+1);0==a.ra?a.Xa=ed(c,500,a):c()}
me.prototype.Ic=function(a){var b=a.items;if(0==this.ra&&b&&!this.ua.checked){var c=90,d=180,e=-90,g=-180;y(b,function(a){var b=a.edmPlaceLatitude;a=a.edmPlaceLongitude;b&&a&&(b=parseFloat(b[b.length-1]),a=parseFloat(a[a.length-1]),c=Math.min(c,b),e=Math.max(e,b),d=Math.min(d,a),g=Math.max(g,a))});this.K.flyToFitBounds(c,e,d,g)}re(this,b,0<this.ra);this.Xa=null;U(this.Lb,!1);0<a.totalResults-16*(this.ra+1)?(U(this.Ta,!0),U(this.qb,!1),this.Ta.innerHTML="Load more from "+a.totalResults+" results..."):
(U(this.Ta,!1),U(this.qb,!0),this.qb.innerHTML=0==a.totalResults?"No records found.":"All "+a.totalResults+" records loaded.")};
function re(a,b,c){!0!==c&&(y(a.Mb,function(a){this.K.removeMarker(a)},a),a.Mb=[]);b&&y(b,function(a){if(a.edmPreview){var b=a.edmPlaceLatitude,c=a.edmPlaceLongitude;if(b&&c){var b=parseFloat(b[b.length-1]),c=parseFloat(c[c.length-1]),h=a.edmPreview,k=a.guid,l=ta((a.title||[""])[0]);a=ta((a.dcCreator||[""])[0]+" ("+a.provider+")");a=qb("div",{"class":"makertitle"},document.createTextNode(String(l)),qb("div",{style:"color:#ccc"},document.createTextNode(String(a))));a=qb("a",{"class":"marker",href:k,
target:"_blank"},qb("img",{src:h}),a);b=new WebGLEarth.CustomMarker(b*Math.PI/180,c*Math.PI/180,a);this.Mb.push(b);this.K.initMarker(b)}}},a)}var se=["Main"],te=m;se[0]in te||!te.execScript||te.execScript("var "+se[0]);for(var ue;se.length&&(ue=se.shift());)se.length||void 0===me?te=te[ue]?te[ue]:te[ue]={}:te[ue]=me;