/* Copyright 2007 Google Inc. */ (function() { function g(a){throw a;}var i=true,j=null,k=false,aa=encodeURIComponent,ba=window,ca=Object,l=Error,m=undefined,da=parseFloat,ea=String,fa=document,ga=decodeURIComponent,o=Math,ia=Array;function ja(a,b){return a.width=b}function ka(a,b){return a.currentTarget=b}function la(a,b){return a.left=b}function ma(a,b){return a.keyCode=b}function na(a,b){return a.visibility=b}function oa(a,b){return a.toString=b}function qa(a,b){return a.length=b}function ra(a,b){return a.className=b} function sa(a,b){return a.target=b}function ta(a,b){return a.anchor=b}function ua(a,b){return a.contains=b}function va(a,b){return a.height=b} var wa="appendChild",r="push",xa="getBoundingClientRect",ya="relatedTarget",s="width",za="round",u="replace",Aa="nodeType",Ba="getElementById",Ca="offsetWidth",w="indexOf",Da="dispatchEvent",Ea="capture",x="left",Fa="screenX",Ga="screenY",Ha="getBoxObjectFor",Ia="remove",Ja="createElement",Ka="keyCode",La="firstChild",Ma="forEach",Na="clientLeft",Oa="clientTop",Pa="handleEvent",y="type",Qa="defaultView",Ra="name",Sa="clientX",Ta="clientY",Ua="documentElement",Va="scrollTop",Wa="toString",z="length", Xa="propertyIsEnumerable",A="prototype",Ya="clientWidth",Za="document",$a="split",ab="hasOwnProperty",B="style",C="body",bb="removeChild",D="target",E="call",G="anchor",cb="clientHeight",db="scrollLeft",eb="compatMode",H="bottom",fb="contains",gb="apply",hb="parentNode",I="height",ib="offsetHeight",J="right",K,L=this,jb=function(a,b,c){a=a[$a](".");c=c||L;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a[z]&&(d=a.shift());)if(!a[z]&&b!==m)c[d]=b;else c=c[d]?c[d]:(c[d]={})},kb=function(a, b){a=a[$a](".");b=b||L;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b},lb=function(){},mb=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof ia||!(a instanceof ca)&&ca[A][Wa][E](a)=="[object Array]"||typeof a[z]=="number"&&typeof a.splice!="undefined"&&typeof a[Xa]!="undefined"&&!a[Xa]("splice"))return"array";if(!(a instanceof ca)&&(ca[A][Wa][E](a)=="[object Function]"||typeof a[E]!="undefined"&&typeof a[Xa]!="undefined"&&!a[Xa]("call")))return"function"}else return"null"; else if(b=="function"&&typeof a[E]=="undefined")return"object";return b},M=function(a){return mb(a)=="array"},nb=function(a){var b=mb(a);return b=="array"||b=="object"&&typeof a[z]=="number"},N=function(a){return typeof a=="string"},ob=function(a){return mb(a)=="function"},pb=function(a){a=mb(a);return a=="object"||a=="array"||a=="function"},sb=function(a){if(a[ab]&&a[ab](qb))return a[qb];a[qb]||(a[qb]=++rb);return a[qb]},qb="closure_hashCode_"+o.floor(o.random()*2147483648)[Wa](36),rb=0,tb=function(a){var b= mb(a);if(b=="object"||b=="array"){if(a.clone)return a.clone[E](a);b=b=="array"?[]:{};for(var c in a)b[c]=tb(a[c]);return b}return a},ub=function(a,b){var c=b||L;if(arguments[z]>2){var d=ia[A].slice[E](arguments,2);return function(){var e=ia[A].slice[E](arguments);ia[A].unshift[gb](e,d);return a[gb](c,e)}}else return function(){return a[gb](c,arguments)}},vb=Date.now||function(){return+new Date},O=function(a,b){function c(){}c.prototype=b[A];a.superClass_=b[A];a.prototype=new c};var wb=ia[A],xb=wb[w]?function(a,b,c){return wb[w][E](a,b,c)}:function(a,b,c){c=c==j?0:c<0?o.max(0,a[z]+c):c;if(N(a)){if(!N(b)||b[z]!=1)return-1;return a[w](b,c)}for(c=c;c=0)wb.splice[E](a,b,1)[z]==1;return c},Ab=function(a){if(M(a))return a.concat();else{for(var b=[],c=0,d=a[z];c< d;c++)b[c]=a[c];return b}},Bb=function(a){for(var b=1;b")!=-1)a=a[u](Ob,">");if(a[w]('"')!=-1)a=a[u](Pb,""");return a}},Mb=/&/g,Nb=//g,Pb=/\"/g,Qb=/[&<>\"]/,Sb=function(a,b){return a[w](b)!= -1},Ub=function(a,b){var c=0;a=Jb(ea(a))[$a](".");b=Jb(ea(b))[$a](".");for(var d=o.max(a[z],b[z]),e=0;c==0&&eb)return 1;return 0}; vb();var Vb,Wb,Xb,Yb,Zb,$b,ac=function(){return L.navigator?L.navigator.userAgent:j},bc=function(){return L.navigator};Zb=Yb=Xb=Wb=Vb=k;var cc;if(cc=ac()){var dc=bc();Vb=cc[w]("Opera")==0;Wb=!Vb&&cc[w]("MSIE")!=-1;Yb=(Xb=!Vb&&cc[w]("WebKit")!=-1)&&cc[w]("Mobile")!=-1;Zb=!Vb&&!Xb&&dc.product=="Gecko"}var ec=Vb,R=Wb,fc=Zb,S=Xb,gc=Yb,hc=bc(),ic=hc&&hc.platform||"";$b=Sb(ic,"Mac");Sb(ic,"Win");Sb(ic,"Linux");var jc=!!bc()&&Sb(bc().appVersion||"","X11"),kc="",lc; if(ec&&L.opera){var mc=L.opera.version;kc=typeof mc=="function"?mc():mc}else{if(fc)lc=/rv\:([^\);]+)(\)|;)/;else if(R)lc=/MSIE\s+([^\);]+)(\)|;)/;else if(S)lc=/WebKit\/(\S+)/;if(lc){var nc=lc.exec(ac());kc=nc?nc[1]:""}}var oc=kc,pc={},qc=function(a){return pc[a]||(pc[a]=Ub(oc,a)>=0)};var rc;var uc=function(a){return a?new sc(tc(a)):rc||(rc=new sc)},wc=function(a,b){Eb(b,function(c,d){if(d=="style")a[B].cssText=c;else if(d=="class")ra(a,c);else if(d=="for")a.htmlFor=c;else if(d in vc)a.setAttribute(vc[d],c);else a[d]=c})},vc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},xc=function(a){if(a.parentWindow)return a.parentWindow;if(S&&!qc("500")&& !gc){var b=a[Ja]("script");b.innerHTML="document.parentWindow=window";var c=a[Ua];c[wa](b);c[bb](b);return a.parentWindow}return a[Qa]},zc=function(a,b){var c=b[0],d=b[1];if(R&&d&&(d[Ra]||d[y])){c=["<",c];d[Ra]&&c[r](' name="',Rb(d[Ra]),'"');if(d[y]){c[r](' type="',Rb(d[y]),'"');d=tb(d);delete d[y]}c[r](">");c=c.join("")}var e=a[Ja](c);if(d)if(N(d))ra(e,d);else wc(e,d);if(b[z]>2){d=function(h){if(h)e[wa](N(h)?a.createTextNode(h):h)};for(c=2;c0)?yb(yc(f)? Ab(f):f,d):d(f)}}return e},Ac=function(a){return a&&a[hb]?a[hb][bb](a):j},Bc=S&&qc("522"),Cc=function(a,b){if(typeof a[fb]!="undefined"&&!Bc&&b[Aa]==1)return a==b||a[fb](b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b[hb];return b==a},tc=function(a){return a[Aa]==9?a:a.ownerDocument||a[Za]},yc=function(a){if(a&&typeof a[z]=="number")if(pb(a))return typeof a.item=="function"||typeof a.item=="string";else if(ob(a))return typeof a.item== "function";return k},sc=function(a){this.document_=a||L[Za]||fa};sc[A].getDomHelper=uc;var Dc=function(a){return a.document_};sc[A].getElement=function(a){return N(a)?this.document_[Ba](a):a};sc[A].createDom=function(){return zc(this.document_,arguments)};sc[A].createElement=function(a){return this.document_[Ja](a)};sc[A].createTextNode=function(a){return this.document_.createTextNode(a)}; var Ec=function(a){return a.document_[eb]=="CSS1Compat"},Fc=function(a){a=!S&&a.document_[eb]=="CSS1Compat"?a.document_[Ua]:a.document_[C];return new P(a[db],a[Va])};sc[A].appendChild=function(a,b){a[wa](b)};ua(sc[A],Cc);var Gc=function(){};Gc[A].disposed_=k;Gc[A].dispose=function(){if(!this.disposed_){this.disposed_=i;this.disposeInternal()}};Gc[A].disposeInternal=function(){};var Hc=function(a,b){this.type=a;sa(this,b);ka(this,this[D])};O(Hc,Gc);K=Hc[A];K.disposeInternal=function(){delete this[y];delete this[D];delete this.currentTarget};K.propagationStopped_=k;K.returnValue_=i;K.stopPropagation=function(){this.propagationStopped_=i};K.preventDefault=function(){this.returnValue_=k};var Ic=function(a,b){a&&this.init(a,b)};O(Ic,Hc);K=Ic[A];sa(K,j);K.relatedTarget=j;K.offsetX=0;K.offsetY=0;K.clientX=0;K.clientY=0;K.screenX=0;K.screenY=0;K.button=0;ma(K,0);K.charCode=0;K.ctrlKey=k;K.altKey=k;K.shiftKey=k;K.metaKey=k;K.event_=j; K.init=function(a,b){var c=this.type=a[y];sa(this,a[D]||a.srcElement);ka(this,b);if(b=a[ya]){if(fc)try{b=b.nodeName&&b}catch(d){}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==m?a.offsetX:a.layerX;this.offsetY=a.offsetY!==m?a.offsetY:a.layerY;this.clientX=a[Sa]!==m?a[Sa]:a.pageX;this.clientY=a[Ta]!==m?a[Ta]:a.pageY;this.screenX=a[Fa]||0;this.screenY=a[Ga]||0;this.button=a.button;ma(this,a[Ka]||0);this.charCode=a.charCode|| (c=="keypress"?a[Ka]:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.event_=a;delete this.returnValue_;delete this.propagationStopped_};K.stopPropagation=function(){this.propagationStopped_=i;if(this.event_.stopPropagation)this.event_.stopPropagation();else this.event_.cancelBubble=i};var Jc=R&&!qc("8"); Ic[A].preventDefault=function(){this.returnValue_=k;var a=this.event_;if(a.preventDefault)a.preventDefault();else{a.returnValue=k;if(Jc)try{if(a.ctrlKey||a[Ka]>=112&&a[Ka]<=123)ma(a,-1)}catch(b){}}};Ic[A].disposeInternal=function(){Ic.superClass_.disposeInternal[E](this);this.event_=j;sa(this,j);ka(this,j);this.relatedTarget=j};var T=function(a,b){this.maxCount_=b;this.freeQueue_=[];if(a>this.maxCount_)g(l("[goog.structs.SimplePool] Initial cannot be greater than max"));for(b=0;b=0),h;Wc=function(F){h=F};if(f){Rc=function(){return Kc(n)};Sc=function(F){Mc(n,F)};Tc=function(){return Kc(q)};Uc=function(F){Mc(q,F)};Vc=function(){return Kc(p)};Xc=function(){Mc(p,c())};Yc=function(){return Kc(t)};$c=function(F){Mc(t,F)};ad=function(){return Kc(v)};bd=function(F){Mc(v, F)};var n=new T(0,600);n.createObjectFn_=a;var q=new T(0,600);q.createObjectFn_=b;var p=new T(0,600);p.createObjectFn_=c;var t=new T(0,600);t.createObjectFn_=d;var v=new T(0,600);v.createObjectFn_=e}else{Rc=a;Sc=lb;Tc=b;Uc=lb;Vc=c;Xc=lb;Yc=d;$c=lb;ad=e;bd=lb}})();var cd={},U={},dd={},ed={},V=function(a,b,c,d,e){if(b)if(M(b)){for(var f=0;f=0;p--){var t=q[p];if((f||b==t[y])&&(h||c==t[Ea])){hd(t.key);d++}}});else{a=sb(a);if(dd[a]){a=dd[a];for(e=a[z]-1;e>=0;e--){var n=a[e];if((f||b==n[y])&&(h||c==n[Ea])){hd(n.key);d++}}}}return d},fd=function(a){if(a in ed)return ed[a];return ed[a]="on"+a},ld=function(a,b,c,d,e){var f=1;b=sb(b);if(a[b]){a.remaining_--; a=a[b];if(a.locked_)a.locked_++;else a.locked_=1;try{for(var h=a[z],n=0;n=0&&f.remaining_;v--){ka(n,p[v]);e&=ld(f,p[v],c,i,n)}if(h){f= d[k];f.remaining_=f.count_;for(v=0;!n.propagationStopped_&&v=this[x]&&a[J]<=this[J]&&a.top>=this.top&&a[H]<=this[H]:a.x>=this[x]&&a.x<=this[J]&&a.y>=this.top&&a.y<=this[H]}); W[A].expand=function(a,b,c,d){if(pb(a)){this.top-=a.top;this.right+=a[J];this.bottom+=a[H];this.left-=a[x]}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var md=function(a,b){if(b.x>=a[x]&&b.x<=a[J]){if(b.y>=a.top&&b.y<=a[H])return 0;return b.y=a.top&&b.y<=a[H])return b.x1){if(b%2)g(l("Uneven number of arguments"));for(var c=0;c2*this.count_&&sd(this);return i}return k};var sd=function(a){if(a.count_!=a.keys_[z]){for(var b=0,c=0;b=c[z])g(nd);var n=c[b++];return a?n:d[n]}};return h};var td=function(a,b){return ca[A][ab][E](a,b)};var ud=function(a){this.map_=new rd;a&&this.addAll(a)},vd=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+sb(a):b.substr(0,1)+a};K=ud[A];K.add=function(a){this.map_.set(vd(a),a)};K.addAll=function(a){a=pd(a);for(var b=a[z],c=0;c=0&&f.remaining_;h--){ka(a,c[h]);b&=ld(f,c[h],a[y],i,a)&&a.returnValue_!=k}}if(k in e){f=e[k];f.remaining_=f.count_;if(d)for(h=0;!a.propagationStopped_&&h=a[x]+a[s]&&this.top<=a.top&&this.top+this[I]>=a.top+a[I]:a.x>=this[x]&&a.x<=this[x]+this[s]&&a.y>=this.top&&a.y<=this.top+this[I]});var zd,Ad,Bd,Cd,Dd,Ed;Ed=Dd=Cd=Bd=Ad=zd=k;var Fd=ac();if(Fd)if(Fd[w]("Firefox")!=-1)zd=i;else if(Fd[w]("Camino")!=-1)Ad=i;else if(Fd[w]("iPhone")!=-1||Fd[w]("iPod")!=-1)Bd=i;else if(Fd[w]("Android")!=-1)Cd=i;else if(Fd[w]("Chrome")!=-1)Dd=i;else if(Fd[w]("Safari")!=-1)Ed=i;var Gd=function(a,b){var c=tc(a);if(c[Qa]&&c[Qa].getComputedStyle)if(a=c[Qa].getComputedStyle(a,""))return a[b];return j},Hd=function(a,b){return Gd(a,b)||(a.currentStyle?a.currentStyle[b]:j)||a[B][b]},Id=function(a){a=a?a[Aa]==9?a:tc(a):fa;if(R&&!Ec(uc(a)))return a[C];return a[Ua]},Jd=function(a){var b=a[xa]();if(R){a=a.ownerDocument;b.left-=a[Ua][Na]+a[C][Na];b.top-=a[Ua][Oa]+a[C][Oa]}return b},Kd=function(a){if(R)return a.offsetParent;var b=tc(a),c=Hd(a,"position"),d=c=="fixed"||c=="absolute"; for(a=a[hb];a&&a!=b;a=a[hb]){c=Hd(a,"position");d=d&&c=="static"&&a!=b[Ua]&&a!=b[C];if(!d&&(a.scrollWidth>a[Ya]||a.scrollHeight>a[cb]||c=="fixed"||c=="absolute"))return a}return j},Nd=function(a){var b=new W(0,Infinity,Infinity,0),c=uc(a),d=!S&&c.document_[eb]=="CSS1Compat"?c.document_[Ua]:c.document_[C],e;for(a=a;a=Kd(a);)if((!R||a[Ya]!=0)&&(a.scrollWidth!=a[Ya]||a.scrollHeight!=a[cb])&&Hd(a,"overflow")!="visible"){var f=Ld(a),h;h=a;if(fc&&!qc("1.9")){var n=da(Gd(h,"borderLeftWidth"));if(Md(h)){var q= h[Ca]-h[Ya]-n-da(Gd(h,"borderRightWidth"));n+=q}h=new P(n,da(Gd(h,"borderTopWidth")))}else h=new P(h[Na],h[Oa]);f.x+=h.x;f.y+=h.y;b.top=o.max(b.top,f.y);b.right=o.min(b[J],f.x+a[Ya]);b.bottom=o.min(b[H],f.y+a[cb]);la(b,o.max(b[x],f.x));e=e||a!=d}a=d[db];d=d[Va];if(S){b.left+=a;b.top+=d}else{la(b,o.max(b[x],a));b.top=o.max(b.top,d)}if(!e||S){b.right+=a;b.bottom+=d}c=xc(c.document_);c=c||ba;e=c[Za];if(S&&!qc("500")&&!gc){if(typeof c.innerHeight=="undefined")c=ba;e=c.innerHeight;f=c[Za][Ua].scrollHeight; if(c==c.top)if(f=0&&b[x]>=0&&b[H]>b.top&&b[J]>b[x]?b:j},Ld=function(a){var b,c=tc(a),d=Hd(a,"position"),e=fc&&c[Ha]&&!a[xa]&&d=="absolute"&&(b=c[Ha](a))&&(b[Fa]<0||b[Ga]<0),f=new P(0,0),h=Id(c);if(a==h)return f;if(a[xa]){b=Jd(a);a=Fc(uc(c));f.x=b[x]+a.x;f.y=b.top+a.y}else if(c[Ha]&&!e){b=c[Ha](a);a=c[Ha](h);f.x=b[Fa]- a[Fa];f.y=b[Ga]-a[Ga]}else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;if(b!=a){f.x+=b[Na]||0;f.y+=b[Oa]||0}if(S&&Hd(b,"position")=="fixed"){f.x+=c[C][db];f.y+=c[C][Va];break}b=b.offsetParent}while(b&&b!=a);if(ec||S&&d=="absolute")f.y-=c[C].offsetTop;for(b=a;(b=Kd(b))&&b!=c[C]&&b!=h;){f.x-=b[db];if(!ec||b.tagName!="TR")f.y-=b[Va]}}return f},Od=function(a){var b=new P;if(a[Aa]==1)if(a[xa]){var c=Jd(a);b.x=c[x];b.y=c.top}else{c=Fc(uc(a));a=Ld(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a[Sa];b.y=a[Ta]}return b}, Pd=function(a,b,c){if(b instanceof Q){c=b[I];b=b[s]}else{if(c==m)g(l("missing height argument"));c=c}ja(a[B],typeof b=="number"?o[za](b)+"px":b);va(a[B],typeof c=="number"?o[za](c)+"px":c)},Qd=function(a){var b=ec&&!qc("10");if(Hd(a,"display")!="none")return b?new Q(a[Ca]||a[Ya],a[ib]||a[cb]):new Q(a[Ca],a[ib]);var c=a[B],d=c.display,e=c.visibility,f=c.position;na(c,"hidden");c.position="absolute";c.display="inline";if(b){b=a[Ca]||a[Ya];a=a[ib]||a[cb]}else{b=a[Ca];a=a[ib]}c.display=d;c.position=f; na(c,e);return new Q(b,a)},Rd=function(a){var b=Ld(a);a=Qd(a);return new xd(b.x,b.y,a[s],a[I])},Sd=function(a,b){a[B].display=b?"":"none"},Md=function(a){return"rtl"==Hd(a,"direction")};var Ud=function(a,b,c,d,e,f,h,n){var q,p=c.offsetParent;if(p){var t=p.tagName=="HTML"||p.tagName=="BODY";if(!t||Hd(p,"position")!="static"){q=Ld(p);t||(q=Db(q,new P(p[db],p[Va])))}}p=Rd(a);(t=Nd(a))&&p.intersection(new xd(t[x],t.top,t[J]-t[x],t[H]-t.top));t=uc(a);var v=uc(c);if(t.document_!=v.document_){var F=t.document_[C];v=xc(v.document_);var Cb=new P(0,0),ha;ha=(ha=tc(F))?xc(ha):ba;var Zc=F;do{var ge=ha==v?Ld(Zc):Od(Zc);Cb.x+=ge.x;Cb.y+=ge.y}while(ha&&ha!=v&&(Zc=ha.frameElement)&&(ha=ha.parent)); v=Cb;v=Db(v,Ld(F));if(R&&!Ec(t))v=Db(v,Fc(t));p.left+=v.x;p.top+=v.y}a=(b&4&&Md(a)?b^2:b)&-5;b=new P(a&2?p[x]+p[s]:p[x],a&1?p.top+p[I]:p.top);if(q)b=Db(b,q);if(e){b.x+=(a&2?-1:1)*e.x;b.y+=(a&1?-1:1)*e.y}var pa;if(h)if((pa=Nd(c))&&q){pa.top=o.max(0,pa.top-q.y);pa.right-=q.x;pa.bottom-=q.y;la(pa,o.max(0,pa[x]-q.x))}return Td(b,c,d,f,pa,h,n)},Td=function(a,b,c,d,e,f,h){a=a.clone();var n=0,q=(c&4&&Md(b)?c^2:c)&-5;c=Qd(b);h=h?h.clone():c;if(d||q!=0){if(q&2)a.x-=h[s]+(d?d[J]:0);else if(d)a.x+=d[x];if(q& 1)a.y-=h[I]+(d?d[H]:0);else if(d)a.y+=d.top}if(f){n=e?Vd(a,h,e,f):256;if(n&496)return n}e=a;d=fc&&($b||jc)&&qc("1.9");if(e instanceof P){a=e.x;e=e.y}else{a=e;e=m}la(b[B],typeof a=="number"?(d?o[za](a):a)+"px":a);b[B].top=typeof e=="number"?(d?o[za](e):e)+"px":e;(c==h?i:!c||!h?k:c[s]==h[s]&&c[I]==h[I])||Pd(b,h);return n},Vd=function(a,b,c,d){var e=0;if(a.xc[J]&&d&16){b.width-=a.x+b[s]-c[J];e|=4}if(a.x+b[s]>c[J]&&d&1){a.x=o.max(c[J]-b[s],c[x]);e|=1}if(d& 2)e|=(a.xc[J]?32:0);if(a.y=c.top&&a.y+b[I]>c[H]&&d&32){b.height-=a.y+b[I]-c[H];e|=8}if(a.y+b[I]>c[H]&&d&4){a.y=o.max(c[H]-b[I],c.top);e|=2}if(d&8)e|=(a.yc[H]?128:0);return e};var Wd=function(){};Wd[A].reposition=function(){};var Xd=function(a,b){this.element=a;this.corner=b};O(Xd,Wd);Xd[A].reposition=function(a,b,c){Ud(this.element,this.corner,a,b,m,c)};var Yd=function(a,b){this.coordinate=a instanceof P?a:new P(a,b)};O(Yd,Wd);Yd[A].reposition=function(a,b,c,d){Ud(Id(a),0,a,b,this.coordinate,c,j,d)};var Zd=L.window,$d=function(a,b,c){if(ob(a)){if(c)a=ub(a,c)}else if(a&&typeof a[Pa]=="function")a=ub(a[Pa],a);else g(l("Invalid listener argument"));return b>2147483647?-1:Zd.setTimeout(a,b||0)};var ae=function(a){this.handler_=a};O(ae,Gc);var be=new T(0,100);ae[A].listen=function(a,b,c,d,e){if(M(b))for(var f=0;f=0||me[r](this);a=this.getElement();ra(a,this.className);pe(this);V(a,"mouseover",this.handleTooltipMouseOver,k,this);V(a,"mouseout",this.handleTooltipMouseOut,k,this);qe(this);return i}; Z[A].onHide_=function(){zb(me,this);for(var a=this.getElement(),b,c=0;b=me[c];c++)b[G]&&Cc(a,b[G])&&fe(b,k);this.parentTooltip_&&re(this.parentTooltip_);gd(a,"mouseover",this.handleTooltipMouseOver,k,this);gd(a,"mouseout",this.handleTooltipMouseOut,k,this);ta(this,m);if(oe(this)==0)this.seenInteraction_=k;Y[A].onHide_[E](this)};Z[A].maybeShow=function(a,b){if(this[G]==a)if(this.seenInteraction_||!this.requireInteraction_){fe(this,k);this.isVisible_||se(this,a,b)}else ta(this,m);this.showTimer=m}; var se=function(a,b,c){if(c)c=c;else{c=new P(a.cursorPosition.x,a.cursorPosition.y);c=new te(c)}ta(a,b);a.position_=c||m;a.isVisible_&&a.reposition();fe(a,i)};Z[A].maybeHide=function(a){this.hideTimer=m;if(a==this[G])if((this.activeEl_==j||this.activeEl_!=this.getElement()&&!this.elements_[fb](this.activeEl_))&&!(this.childTooltip_&&this.childTooltip_.activeEl_))fe(this,k)}; Z[A].handleMouseOver=function(a){this.activeEl_=a=ue(this,a[D]);pe(this);if(a!=this[G]){ta(this,a);if(!this.showTimer)this.showTimer=$d(ub(this.maybeShow,this,a,m),this.showDelayMs_);ve(this)}};var ue=function(a,b){try{for(;b&&!a.elements_[fb](b);)b=b[hb];return b}catch(c){return j}};Z[A].handleMouseMove=function(a){var b=Fc(this.dom_);this.cursorPosition.x=a[Sa]+b.x;this.cursorPosition.y=a[Ta]+b.y;this.seenInteraction_=i}; Z[A].handleFocus=function(a){this.activeEl_=a=ue(this,a[D]);this.seenInteraction_=i;if(this[G]!=a){ta(this,a);var b=new we(this.activeEl_);pe(this);if(!this.showTimer)this.showTimer=$d(ub(this.maybeShow,this,a,b),this.showDelayMs_);ve(this)}};var ve=function(a){if(a[G])for(var b,c=0;b=me[c];c++)if(Cc(b.getElement(),a[G])){b.childTooltip_=a;a.parentTooltip_=b}}; Z[A].handleMouseOutAndBlur=function(a){var b=ue(this,a[D]),c=ue(this,a[ya]);if(b!=c){if(b==this.activeEl_)this.activeEl_=j;qe(this);this.seenInteraction_=k;if(this.isVisible_&&(!a[ya]||!Cc(this.getElement(),a[ya])))re(this);else ta(this,m)}};Z[A].handleTooltipMouseOver=function(){var a=this.getElement();if(this.activeEl_!=a){pe(this);this.activeEl_=a}};Z[A].handleTooltipMouseOut=function(a){var b=this.getElement();if(this.activeEl_==b&&(!a[ya]||!Cc(b,a[ya]))){this.activeEl_=j;re(this)}}; var qe=function(a){if(a.showTimer){Zd.clearTimeout(a.showTimer);a.showTimer=m}},re=function(a){if(oe(a)==2)a.hideTimer=$d(ub(a.maybeHide,a,a[G]),a.getHideDelayMs())},pe=function(a){if(a.hideTimer){Zd.clearTimeout(a.hideTimer);a.hideTimer=m}};Z[A].disposeInternal=function(){fe(this,k);qe(this);this.detach();this.getElement()&&Ac(this.getElement());this.activeEl_=j;delete this.dom_;Z.superClass_.disposeInternal[E](this)};var te=function(a,b){Yd[E](this,a,b)};O(te,Yd); te[A].reposition=function(a,b,c){b=Id(a);b=Nd(b);c=c?new W(c.top+10,c[J],c[H],c[x]+10):new W(10,0,0,10);Td(this.coordinate,a,4,c,b,9)&496&&Td(this.coordinate,a,4,c,b,5)};var we=function(a){Xd[E](this,a,3)};O(we,Xd);we[A].reposition=function(a,b,c){var d=new P(10,0);Ud(this.element,this.corner,a,b,d,c,9)&496&&Ud(this.element,2,a,1,d,c,5)};var $=function(a,b,c){Z[E](this,a,b,c)};O($,Z);$[A].cursorTracking_=k;$[A].cursorTrackingHideDelayMs_=100;$[A].tracking_=k;var xe=function(a,b){a.hotSpotPadding_=b||j};$[A].onShow_=function(){$.superClass_.onShow_[E](this);this.boundingBox_=yd(Rd(this.getElement()));if(this[G])this.anchorBox_=yd(Rd(this[G]));this.tracking_=this.cursorTracking_;V(Dc(this.getDomHelper()),"mousemove",this.handleMouseMove,k,this)}; $[A].onHide_=function(){gd(Dc(this.getDomHelper()),"mousemove",this.handleMouseMove,k,this);this.anchorBox_=this.boundingBox_=this.paddingBox_=j;this.tracking_=k;$.superClass_.onHide_[E](this)};$[A].isCoordinateInTooltip=function(a){if(this.paddingBox_)return this.paddingBox_[fb](a);return $.superClass_.isCoordinateInTooltip[E](this,a)};var ye=function(a,b){if(a.anchorBox_&&a.anchorBox_[fb](b)||a.isCoordinateInTooltip(b))return i;return!!a.childTooltip_&&a.childTooltip_.isCoordinateInTooltip(b)}; $[A].maybeHide=function(a){this.hideTimer=m;if(a==this[G])if(!ye(this,this.cursorPosition)&&!this.activeEl_&&!(this.childTooltip_&&this.childTooltip_.activeEl_))fc&&this.cursorPosition.x==0&&this.cursorPosition.y==0||fe(this,k)}; $[A].handleMouseMove=function(a){var b=i;if(this.boundingBox_){var c=new P(a[Sa],a[Ta]);if(ye(this,c))b=k;else if(this.tracking_){b=md(this.boundingBox_,this.cursorPosition);b=md(this.boundingBox_,c)>=b}}if(b){re(this);this.activeEl_=j;if(this.childTooltip_)this.childTooltip_.activeEl_=j}else oe(this)==3&&pe(this);$.superClass_.handleMouseMove[E](this,a)}; $[A].handleTooltipMouseOver=function(){if(this.activeEl_!=this.getElement()){this.tracking_=k;this.activeEl_=this.getElement();if(!this.paddingBox_&&this.hotSpotPadding_)this.paddingBox_=this.boundingBox_.clone().expand(this.hotSpotPadding_)}};$[A].getHideDelayMs=function(){return this.tracking_?this.cursorTrackingHideDelayMs_:this.hideDelayMs_};var ze=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Ae=function(a){return a.match(ze)};var Be=function(a,b){var c;if(a instanceof Be){this.setIgnoreCase(b==j?a.ignoreCase_:b);Ce(this,a.scheme_);De(this,a.userInfo_);Ee(this,a.domain_);Fe(this,a.port_);Ge(this,a.path_);He(this,a.queryData_.clone());Ie(this,a.fragment_)}else if(a&&(c=Ae(ea(a)))){this.setIgnoreCase(!!b);Ce(this,c[1]||"",i);De(this,c[2]||"",i);Ee(this,c[3]||"",i);Fe(this,c[4]);Ge(this,c[5]||"",i);He(this,c[6]||"",i);Ie(this,c[7]||"",i)}else{this.setIgnoreCase(!!b);this.queryData_=new Je(j,this,this.ignoreCase_)}};K=Be[A]; K.scheme_="";K.userInfo_="";K.domain_="";K.port_=j;K.path_="";K.fragment_="";K.isReadOnly_=k;K.ignoreCase_=k; oa(K,function(){if(this.cachedToString_)return this.cachedToString_;var a=[];this.scheme_&&a[r](Ke(this.scheme_,Le),":");if(this.domain_){a[r]("//");this.userInfo_&&a[r](Ke(this.userInfo_,Le),"@");a[r](Me(this.domain_));this.port_!=j&&a[r](":",ea(this.port_))}this.path_&&a[r](Ke(this.path_,Ne));var b=ea(this.queryData_);b&&a[r]("?",b);this.fragment_&&a[r]("#",Ke(this.fragment_,Oe));return this.cachedToString_=a.join("")}); K.clone=function(){var a=this.scheme_,b=this.userInfo_,c=this.domain_,d=this.port_,e=this.path_,f=this.queryData_.clone(),h=this.fragment_,n=new Be(j,this.ignoreCase_);a&&Ce(n,a);b&&De(n,b);c&&Ee(n,c);d&&Fe(n,d);e&&Ge(n,e);f&&He(n,f);h&&Ie(n,h);return n}; var Ce=function(a,b,c){Pe(a);delete a.cachedToString_;a.scheme_=c?b?ga(b):"":b;if(a.scheme_)a.scheme_=a.scheme_[u](/:$/,"");return a},De=function(a,b,c){Pe(a);delete a.cachedToString_;a.userInfo_=c?b?ga(b):"":b;return a},Ee=function(a,b,c){Pe(a);delete a.cachedToString_;a.domain_=c?b?ga(b):"":b;return a},Fe=function(a,b){Pe(a);delete a.cachedToString_;if(b){b=Number(b);if(isNaN(b)||b<0)g(l("Bad port number "+b));a.port_=b}else a.port_=j;return a},Ge=function(a,b,c){Pe(a);delete a.cachedToString_; a.path_=c?b?ga(b):"":b;return a},He=function(a,b,c){Pe(a);delete a.cachedToString_;if(b instanceof Je){a.queryData_=b;a.queryData_.uri_=a;a.queryData_.setIgnoreCase(a.ignoreCase_)}else{c||(b=Ke(b,Qe));a.queryData_=new Je(b,a,a.ignoreCase_)}return a},Re=function(a,b,c){Pe(a);delete a.cachedToString_;a.queryData_.set(b,c);return a},Ie=function(a,b,c){Pe(a);delete a.cachedToString_;a.fragment_=c?b?ga(b):"":b;return a},Pe=function(a){if(a.isReadOnly_)g(l("Tried to modify a read-only Uri"))}; Be[A].setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)}; var Me=function(a){if(N(a))return aa(a);return j},Se=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Ke=function(a,b){var c=j;if(N(a)){c=a;Se.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c[u](b,Te)}return c},Te=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15)[Wa](16)+(a&15)[Wa](16)},Le=/[#\/\?@]/g,Ne=/[\#\?]/g,Qe=/[\#\?@]/g,Oe=/#/g,Je=function(a,b,c){this.encodedQuery_=a||j;this.uri_=b||j;this.ignoreCase_=!!c},Ve=function(a){if(!a.keyMap_){a.keyMap_=new rd;if(a.encodedQuery_)for(var b=a.encodedQuery_[$a]("&"), c=0;c=0){e=b[c].substring(0,d);f=b[c].substring(d+1)}else e=b[c];e=ga(e[u](/\+/g," "));e=Ue(a,e);a.add(e,f?ga(f[u](/\+/g," ")):"")}}};K=Je[A];K.keyMap_=j;K.count_=j;K.add=function(a,b){Ve(this);We(this);a=Ue(this,a);if(this.containsKey(a)){var c=this.keyMap_.get(a);M(c)?c[r](b):this.keyMap_.set(a,[c,b])}else this.keyMap_.set(a,b);this.count_++;return this}; K.remove=function(a){Ve(this);a=Ue(this,a);if(this.keyMap_.containsKey(a)){We(this);var b=this.keyMap_.get(a);if(M(b))this.count_-=b[z];else this.count_--;return this.keyMap_[Ia](a)}return k};K.clear=function(){We(this);this.keyMap_&&this.keyMap_.clear();this.count_=0};K.containsKey=function(a){Ve(this);a=Ue(this,a);return this.keyMap_.containsKey(a)}; K.getKeys=function(){Ve(this);for(var a=this.keyMap_.getValues(),b=this.keyMap_.getKeys(),c=[],d=0;d0&&a[r]("&");a[r](f,"=",Lb(e[h]));b++}else{b>0&&a[r]("&");a[r](f,"=",Lb(e));b++}}return this.encodedQuery_=a.join("")});var We=function(a){delete a.decodedQuery_;delete a.encodedQuery_;a.uri_&&delete a.uri_.cachedToString_}; Je[A].clone=function(){var a=new Je;if(this.decodedQuery_)a.decodedQuery_=this.decodedQuery_;if(this.encodedQuery_)a.encodedQuery_=this.encodedQuery_;if(this.keyMap_)a.keyMap_=this.keyMap_.clone();return a};var Ue=function(a,b){b=ea(b);if(a.ignoreCase_)b=b.toLowerCase();return b};Je[A].setIgnoreCase=function(a){if(a&&!this.ignoreCase_){Ve(this);We(this);qd(this.keyMap_,function(b,c){var d=c.toLowerCase();if(c!=d){this[Ia](c);this.add(d,b)}},this)}this.ignoreCase_=a};var Xe,Ye=function(a,b,c){var d="";if(Xe)d=Xe.serverBase;else if(ba.manifest)d=ba.manifest.serverBase;var e=d+"/widgets/Hovercard";if(c.client)e=d+"/ui/Hovercard";d=new Be(e);Re(d,"uid",b);for(var f in c)Re(d,f,c[f]);b=108+(c.embedHeight?c.embedHeight-16:0);if(!a.f_preload){c=fa[Ja]("iframe");ja(c,"320px");va(c,b+"px");c.frameBorder="none";c.scrolling="no";c[B].border="none";a.getElement()[wa](c);c.src=d[Wa]();a.getElement()[B].zIndex="50000"}a.f_preload=i}; jb("addHovercard",function(a,b,c){var d=new $(a);xe(d,new W(5,5,5,5));d.cursorTracking_=i;je(d,new W(10,0,0,10));d.hideDelayMs_=250;d.onDocumentBlur_=function(){};V(a,"mouseover",ub(Ye,j,d,b,c));return d},m);jb("_HovercardLauncherComponentInit",function(a){Xe=a},m);ba._HovercardLauncherManifestInit&&ba._HovercardLauncherManifestInit(); })()