function e(a){throw a;}var i=void 0,o=null;function aa(){return function(){}}function p(a){return function(){return this[a]}}function q(a){return function(){return a}}var s,t=this;function ba(){}function ca(a){a.C=function(){return a.Gb||(a.Gb=new a)}}
function da(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function v(a){return da(a)=="array"}function fa(a){var b=da(a);return b=="array"||b=="object"&&typeof a.length=="number"}function w(a){return typeof a=="string"}function x(a){return da(a)=="function"}function ga(a){a=da(a);return a=="object"||a=="array"||a=="function"}function z(a){return a[ha]||(a[ha]=++ia)}var ha="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ia=0;
function ja(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var ka=Date.now||function(){return+new Date};function A(a,b){function c(){}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a};function la(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function ma(a){if(!na.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(oa,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(pa,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(qa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(ra,"&quot;"));return a}var oa=/&/g,pa=/</g,qa=/>/g,ra=/\"/g,na=/[&<>\"]/;
function sa(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),g=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,g.length),h=0;c==0&&h<f;h++){var j=d[h]||"",l=g[h]||"",k=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var m=k.exec(j)||["","",""],r=n.exec(l)||["","",""];if(m[0].length==0&&r[0].length==0)break;c=ta(m[1].length==0?0:parseInt(m[1],10),r[1].length==0?0:parseInt(r[1],10))||ta(m[2].length==0,r[2].length==0)||ta(m[2],r[2])}while(c==
0)}return c}function ta(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var ua,va,wa,xa,za,Aa;function Ba(){return t.navigator?t.navigator.userAgent:o}function Ca(){return t.navigator}za=xa=wa=va=ua=!1;var Da;if(Da=Ba()){var Ea=Ca();ua=Da.indexOf("Opera")==0;va=!ua&&Da.indexOf("MSIE")!=-1;xa=(wa=!ua&&Da.indexOf("WebKit")!=-1)&&Da.indexOf("Mobile")!=-1;za=!ua&&!wa&&Ea.product=="Gecko"}var Fa=ua,B=va,C=za,D=wa,Ga=xa,Ha=Ca();Aa=(Ha&&Ha.platform||"").indexOf("Mac")!=-1;var Ia=!!Ca()&&(Ca().appVersion||"").indexOf("X11")!=-1,Ja;
a:{var Ka="",La;if(Fa&&t.opera)var Ma=t.opera.version,Ka=typeof Ma=="function"?Ma():Ma;else if(C?La=/rv\:([^\);]+)(\)|;)/:B?La=/MSIE\s+([^\);]+)(\)|;)/:D&&(La=/WebKit\/(\S+)/),La)var Na=La.exec(Ba()),Ka=Na?Na[1]:"";if(B){var Oa,Pa=t.document;Oa=Pa?Pa.documentMode:i;if(Oa>parseFloat(Ka)){Ja=String(Oa);break a}}Ja=Ka}var Qa={};function E(a){return Qa[a]||(Qa[a]=sa(Ja,a)>=0)};function Ra(a,b){for(var c in a)b.call(i,a[c],c,a)}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Ua=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];function Va(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var g=0;g<Ua.length;g++)b=Ua[g],Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])}}
function Wa(){var a=arguments.length;if(a==1&&v(arguments[0]))return Wa.apply(o,arguments[0]);a%2&&e(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};function F(a,b){this.x=a!==i?a:0;this.y=b!==i?b:0}F.prototype.clone=function(){return new F(this.x,this.y)};F.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function Xa(a,b){return new F(a.x-b.x,a.y-b.y)};function Ya(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ya.prototype.clone=function(){return new Ya(this.top,this.right,this.bottom,this.left)};Ya.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};Ya.prototype.contains=function(a){a=!this||!a?!1:a instanceof Ya?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;return a};var G=Array.prototype,Za=G.indexOf?function(a,b,c){return G.indexOf.call(a,b,c)}:function(a,b,c){c=c==o?0:c<0?Math.max(0,a.length+c):c;if(w(a)){if(!w(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},$a=G.forEach?function(a,b,c){G.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=w(a)?a.split(""):a,f=0;f<d;f++)f in g&&b.call(c,g[f],f,a)},ab=G.map?function(a,b,c){return G.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=Array(d),
f=w(a)?a.split(""):a,h=0;h<d;h++)h in f&&(g[h]=b.call(c,f[h],h,a));return g},bb=G.every?function(a,b,c){return G.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=w(a)?a.split(""):a,f=0;f<d;f++)if(f in g&&!b.call(c,g[f],f,a))return!1;return!0};function cb(a,b){return Za(a,b)>=0}function db(a,b){var c=Za(a,b);c>=0&&G.splice.call(a,c,1)}function eb(){return G.concat.apply(G,arguments)}function fb(a){if(v(a))return eb(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}
function gb(a){G.splice.apply(a,hb(arguments,1))}function hb(a,b,c){return arguments.length<=2?G.slice.call(a,b):G.slice.call(a,b,c)};function H(a,b){this.width=a;this.height=b}H.prototype.clone=function(){return new H(this.width,this.height)};H.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};H.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};H.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function ib(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}ib.prototype.clone=function(){return new ib(this.left,this.top,this.width,this.height)};ib.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
ib.prototype.contains=function(a){return a instanceof ib?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};var lb;function mb(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function nb(a){var b=mb(a),c=hb(arguments,1),d;d=b;for(var g=0,f=0;f<c.length;f++)cb(d,c[f])||(d.push(c[f]),g++);d=g==c.length;a.className=b.join(" ");return d}function ob(a){var b=mb(a),c=hb(arguments,1),d;d=b;for(var g=0,f=0;f<d.length;f++)cb(c,d[f])&&(gb(d,f--,1),g++);d=g==c.length;a.className=b.join(" ");return d};var pb=!B||E("9");!C&&!B||B&&E("9")||C&&E("1.9.1");var qb=B&&!E("9");function I(a){return a?new rb(J(a)):lb||(lb=new rb)}function sb(a,b){Ra(b,function(b,d){d=="style"?a.style.cssText=b:d=="class"?a.className=b:d=="for"?a.htmlFor=b:d in tb?a.setAttribute(tb[d],b):a[d]=b})}var tb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};function ub(a){return!D&&a.compatMode=="CSS1Compat"?a.documentElement:a.body}
function vb(a,b,c){function d(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(var g=2;g<c.length;g++){var f=c[g];if(fa(f)&&!(ga(f)&&f.nodeType>0)){var h;a:{if(f&&typeof f.length=="number")if(ga(f)){h=typeof f.item=="function"||typeof f.item=="string";break a}else if(x(f)){h=typeof f.item=="function";break a}h=!1}$a(h?fb(f):f,d)}else d(f)}}function wb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function xb(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function J(a){return a.nodeType==9?a:a.ownerDocument||a.document}var yb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},zb={IMG:" ",BR:"\n"};function Ab(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified)return a=a.tabIndex,typeof a=="number"&&a>=0;return!1}
function Bb(a){var b=[];Cb(a,b,!1);return b.join("")}function Cb(a,b,c){if(!(a.nodeName in yb))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in zb)b.push(zb[a.nodeName]);else for(a=a.firstChild;a;)Cb(a,b,c),a=a.nextSibling}function rb(a){this.g=a||t.document||document}s=rb.prototype;s.J=I;s.a=function(a){return w(a)?this.g.getElementById(a):a};
s.l=function(){var a=this.g,b=arguments,c=b[0],d=b[1];if(!pb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ma(d.name),'"');if(d.type){c.push(' type="',ma(d.type),'"');var g={};Va(g,d);d=g;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)w(d)?c.className=d:v(d)?nb.apply(o,[c].concat(d)):sb(c,d);b.length>2&&vb(a,c,b);return c};s.createElement=function(a){return this.g.createElement(a)};s.createTextNode=function(a){return this.g.createTextNode(a)};
function Db(a){var b=a.g,a=ub(b),b=b.parentWindow||b.defaultView;return new F(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}s.appendChild=function(a,b){a.appendChild(b)};s.contains=xb;function Eb(a,b){var c=J(a);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,o)))return c[b]||c.getPropertyValue(b);return""}function K(a,b){return Eb(a,b)||(a.currentStyle?a.currentStyle[b]:o)||a.style[b]}function Fb(a){var a=a?a.nodeType==9?a:J(a):document,b;if(b=B)if(b=!E(9))b=I(a).g.compatMode!="CSS1Compat";if(b)return a.body;return a.documentElement}
function Gb(a){var b=a.getBoundingClientRect();if(B)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b}
function Hb(a){if(B)return a.offsetParent;for(var b=J(a),c=K(a,"position"),d=c=="fixed"||c=="absolute",a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=K(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return o}
function Ib(a){for(var b=new Ya(0,Infinity,Infinity,0),c=I(a),d=c.g.body,g=ub(c.g),f;a=Hb(a);)if((!B||a.clientWidth!=0)&&(!D||a.clientHeight!=0||a!=d)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&K(a,"overflow")!="visible"){var h=Jb(a),j;j=a;if(C&&!E("1.9")){var l=parseFloat(Eb(j,"borderLeftWidth"));if(Kb(j)){var k=j.offsetWidth-j.clientWidth-l-parseFloat(Eb(j,"borderRightWidth"));l+=k}j=new F(l,parseFloat(Eb(j,"borderTopWidth")))}else j=new F(j.clientLeft,j.clientTop);h.x+=j.x;
h.y+=j.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x);f=f||a!=g}d=g.scrollLeft;g=g.scrollTop;D?(b.left+=d,b.top+=g):(b.left=Math.max(b.left,d),b.top=Math.max(b.top,g));if(!f||D)b.right+=d,b.bottom+=g;c=c.g.parentWindow||c.g.defaultView||window;f=c.document;D&&!E("500")&&!Ga?(typeof c.innerHeight=="undefined"&&(c=window),f=c.innerHeight,a=c.document.documentElement.scrollHeight,c==c.top&&a<f&&(f-=15),
c=new H(c.innerWidth,f)):(c=f.compatMode=="CSS1Compat"?f.documentElement:f.body,c=new H(c.clientWidth,c.clientHeight));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:o}
function Jb(a){var b,c=J(a),d=K(a,"position"),g=C&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new F(0,0),h=Fb(c);if(a==h)return f;if(a.getBoundingClientRect)b=Gb(a),a=Db(I(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!g)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(D&&
K(b,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Fa||D&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=Hb(b))&&b!=c.body&&b!=h;)if(f.x-=b.scrollLeft,!Fa||b.tagName!="TR")f.y-=b.scrollTop}return f}function Lb(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}
function Mb(a){if(K(a,"display")!="none")return new H(a.offsetWidth,a.offsetHeight);var b=a.style,c=b.display,d=b.visibility,g=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";var f=a.offsetWidth,a=a.offsetHeight;b.display=c;b.position=g;b.visibility=d;return new H(f,a)}function Kb(a){return"rtl"==K(a,"direction")}var Nb=C?"MozUserSelect":D?"WebkitUserSelect":o;
function Ob(a,b,c){c=!c?a.getElementsByTagName("*"):o;if(Nb){if(b=b?"none":"",a.style[Nb]=b,c)for(var a=0,d;d=c[a];a++)d.style[Nb]=b}else if(B||Fa)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)};function Pb(a,b){a||e(Error("Invalid class name "+a));x(b)||e(Error("Invalid decorator function "+b))}var Qb={};var Rb;var Sb=!B||E("9"),Tb=B&&!E("8");function L(){Ub&&(Vb[z(this)]=this)}var Ub=!1,Vb={};L.prototype.Ja=!1;L.prototype.I=function(){if(!this.Ja&&(this.Ja=!0,this.h(),Ub)){var a=z(this);Vb.hasOwnProperty(a)||e(Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call"));delete Vb[a]}};L.prototype.h=aa();function Wb(a,b){L.call(this);this.type=a;this.currentTarget=this.target=b}A(Wb,L);s=Wb.prototype;s.h=function(){delete this.type;delete this.target;delete this.currentTarget};s.U=!1;s.ma=!0;s.stopPropagation=function(){this.U=!0};s.preventDefault=function(){this.ma=!1};var Xb=new Function("a","return a");function Yb(a,b){a&&this.ia(a,b)}A(Yb,Wb);var Zb=[1,4,2];s=Yb.prototype;s.target=o;s.relatedTarget=o;s.offsetX=0;s.offsetY=0;s.clientX=0;s.clientY=0;s.screenX=0;s.screenY=0;s.button=0;s.keyCode=0;s.charCode=0;s.ctrlKey=!1;s.altKey=!1;s.shiftKey=!1;s.metaKey=!1;s.Mb=!1;s.s=o;
s.ia=function(a,b){var c=this.type=a.type;Wb.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(C){var g;a:{try{Xb(d.nodeName);g=!0;break a}catch(f){}g=!1}g||(d=o)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?a.clientY:a.pageY;this.screenX=
a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Mb=Aa?a.metaKey:a.ctrlKey;this.state=a.state;this.s=a;delete this.ma;delete this.U};function $b(a){return Sb?a.s.button==0:a.type=="click"?!0:!!(a.s.button&Zb[0])}
s.stopPropagation=function(){Yb.b.stopPropagation.call(this);this.s.stopPropagation?this.s.stopPropagation():this.s.cancelBubble=!0};s.preventDefault=function(){Yb.b.preventDefault.call(this);var a=this.s;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Tb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};s.wb=p("s");s.h=function(){Yb.b.h.call(this);this.relatedTarget=this.currentTarget=this.target=this.s=o};function ac(){}var bc=0;s=ac.prototype;s.key=0;s.$=!1;s.Xa=!1;s.ia=function(a,b,c,d,g,f){x(a)?this.hb=!0:a&&a.handleEvent&&x(a.handleEvent)?this.hb=!1:e(Error("Invalid listener argument"));this.Y=a;this.pb=b;this.src=c;this.type=d;this.capture=!!g;this.ya=f;this.Xa=!1;this.key=++bc;this.$=!1};s.handleEvent=function(a){if(this.hb)return this.Y.call(this.ya||this.src,a);return this.Y.handleEvent.call(this.Y,a)};var cc,ec=(cc="ScriptEngine"in t&&t.ScriptEngine()=="JScript")?t.ScriptEngineMajorVersion()+"."+t.ScriptEngineMinorVersion()+"."+t.ScriptEngineBuildVersion():"0";function M(a,b){L.call(this);this.kb=b;this.S=[];a>this.kb&&e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.S.push(this.H?this.H():{})}A(M,L);M.prototype.H=o;M.prototype.cb=o;M.prototype.getObject=function(){if(this.S.length)return this.S.pop();return this.H?this.H():{}};function fc(a,b){a.S.length<a.kb?a.S.push(b):gc(a,b)}function gc(a,b){if(a.cb)a.cb(b);else if(ga(b))if(x(b.I))b.I();else for(var c in b)delete b[c]}
M.prototype.h=function(){M.b.h.call(this);for(var a=this.S;a.length;)gc(this,a.pop());delete this.S};var hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc;
(function(){function a(){return{k:0,z:0}}function b(){return[]}function c(){function a(b){return h.call(a.src,a.key,b)}return a}function d(){return new ac}function g(){return new Yb}var f=cc&&!(sa(ec,"5.7")>=0),h;mc=function(a){h=a};if(f){hc=function(){return j.getObject()};ic=function(a){fc(j,a)};jc=function(){return l.getObject()};kc=function(a){fc(l,a)};lc=function(){return k.getObject()};nc=function(){fc(k,c())};oc=function(){return n.getObject()};pc=function(a){fc(n,a)};qc=function(){return m.getObject()};
rc=function(a){fc(m,a)};var j=new M(0,600);j.H=a;var l=new M(0,600);l.H=b;var k=new M(0,600);k.H=c;var n=new M(0,600);n.H=d;var m=new M(0,600);m.H=g}else hc=a,ic=ba,jc=b,kc=ba,lc=c,nc=ba,oc=d,pc=ba,qc=g,rc=ba})();var sc={},N={},P={},tc={};
function uc(a,b,c,d,g){if(b)if(v(b)){for(var f=0;f<b.length;f++)uc(a,b[f],c,d,g);return o}else{var d=!!d,h=N;b in h||(h[b]=hc());h=h[b];d in h||(h[d]=hc(),h.k++);var h=h[d],j=z(a),l;h.z++;if(h[j]){l=h[j];for(f=0;f<l.length;f++)if(h=l[f],h.Y==c&&h.ya==g){if(h.$)break;return l[f].key}}else l=h[j]=jc(),h.k++;f=lc();f.src=a;h=oc();h.ia(c,f,a,b,d,g);c=h.key;f.key=c;l.push(h);sc[c]=h;P[j]||(P[j]=jc());P[j].push(h);a.addEventListener?(a==t||!a.bb)&&a.addEventListener(b,f,d):a.attachEvent(vc(b),f);return c}else e(Error("Invalid event type"))}
function wc(a,b,c,d,g){if(v(b))for(var f=0;f<b.length;f++)wc(a,b[f],c,d,g);else if(d=!!d,a=xc(a,b,d))for(f=0;f<a.length;f++)if(a[f].Y==c&&a[f].capture==d&&a[f].ya==g){Q(a[f].key);break}}function Q(a){if(sc[a]){var b=sc[a];if(!b.$){var c=b.src,d=b.type,g=b.pb,f=b.capture;c.removeEventListener?(c==t||!c.bb)&&c.removeEventListener(d,g,f):c.detachEvent&&c.detachEvent(vc(d),g);c=z(c);g=N[d][f][c];if(P[c]){var h=P[c];db(h,b);h.length==0&&delete P[c]}b.$=!0;g.lb=!0;yc(d,f,c,g);delete sc[a]}}}
function yc(a,b,c,d){if(!d.Ca&&d.lb){for(var g=0,f=0;g<d.length;g++)if(d[g].$){var h=d[g].pb;h.src=o;nc(h);pc(d[g])}else g!=f&&(d[f]=d[g]),f++;d.length=f;d.lb=!1;f==0&&(kc(d),delete N[a][b][c],N[a][b].k--,N[a][b].k==0&&(ic(N[a][b]),delete N[a][b],N[a].k--),N[a].k==0&&(ic(N[a]),delete N[a]))}}
function zc(a){var b,c=0,d=b==o;b=!!b;if(a==o)Ra(P,function(a){for(var f=a.length-1;f>=0;f--){var g=a[f];if(d||b==g.capture)Q(g.key),c++}});else if(a=z(a),P[a])for(var a=P[a],g=a.length-1;g>=0;g--){var f=a[g];if(d||b==f.capture)Q(f.key),c++}}function xc(a,b,c){var d=N;if(b in d&&(d=d[b],c in d&&(d=d[c],a=z(a),d[a])))return d[a];return o}function vc(a){if(a in tc)return tc[a];return tc[a]="on"+a}
function Ac(a,b,c,d,g){var f=1,b=z(b);if(a[b]){a.z--;a=a[b];a.Ca?a.Ca++:a.Ca=1;try{for(var h=a.length,j=0;j<h;j++){var l=a[j];l&&!l.$&&(f&=Bc(l,g)!==!1)}}finally{a.Ca--,yc(c,d,b,a)}}return Boolean(f)}function Bc(a,b){var c=a.handleEvent(b);a.Xa&&Q(a.key);return c}
mc(function(a,b){if(!sc[a])return!0;var c=sc[a],d=c.type,g=N;if(!(d in g))return!0;var g=g[d],f,h;Rb===i&&(Rb=B&&!t.addEventListener);if(Rb){var j;if(!(j=b))a:{j="window.event".split(".");for(var l=t;f=j.shift();)if(l[f]!=o)l=l[f];else{j=o;break a}j=l}f=j;j=!0 in g;l=!1 in g;if(j){if(f.keyCode<0||f.returnValue!=i)return!0;a:{var k=!1;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(n){k=!0}if(k||f.returnValue==i)f.returnValue=!0}}k=qc();k.ia(f,this);f=!0;try{if(j){for(var m=jc(),r=k.currentTarget;r;r=
r.parentNode)m.push(r);h=g[!0];h.z=h.k;for(var u=m.length-1;!k.U&&u>=0&&h.z;u--)k.currentTarget=m[u],f&=Ac(h,m[u],d,!0,k);if(l){h=g[!1];h.z=h.k;for(u=0;!k.U&&u<m.length&&h.z;u++)k.currentTarget=m[u],f&=Ac(h,m[u],d,!1,k)}}else f=Bc(c,k)}finally{if(m)m.length=0,kc(m);k.I();rc(k)}return f}d=new Yb(b,this);try{f=Bc(c,d)}finally{d.I()}return f});function Cc(a){L.call(this);this.gb=a}A(Cc,L);var Dc=new M(0,100),Ec=[];function R(a,b,c,d,g){v(c)||(Ec[0]=c,c=Ec);for(var f=0;f<c.length;f++){var h=a,j=uc(b,c[f],d||a,g||!1,a.gb||a);h.d?h.d[j]=!0:h.P?(h.d=Dc.getObject(),h.d[h.P]=!0,h.P=o,h.d[j]=!0):h.P=j}return a}
function S(a,b,c,d,g,f){if(a.P||a.d)if(v(c))for(var h=0;h<c.length;h++)S(a,b,c[h],d,g,f);else{a:{d=d||a;f=f||a.gb||a;g=!!g;if(b=xc(b,c,g))for(c=0;c<b.length;c++)if(b[c].Y==d&&b[c].capture==g&&b[c].ya==f){b=b[c];break a}b=o}if(b)if(b=b.key,Q(b),a.d)c=a.d,b in c&&delete c[b];else if(a.P==b)a.P=o}return a}function Fc(a){if(a.d){for(var b in a.d)Q(b),delete a.d[b];fc(Dc,a.d);a.d=o}else a.P&&Q(a.P)}Cc.prototype.h=function(){Cc.b.h.call(this);Fc(this)};Cc.prototype.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};function Gc(){}ca(Gc);Gc.prototype.Jb=0;Gc.C();function Hc(){L.call(this)}A(Hc,L);s=Hc.prototype;s.bb=!0;s.Da=o;s.Ta=function(a){this.Da=a};s.addEventListener=function(a,b,c,d){uc(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){wc(this,a,b,c,d)};
s.dispatchEvent=function(a){var b=a.type||a,c=N;if(b in c){if(w(a))a=new Wb(a,this);else if(a instanceof Wb)a.target=a.target||this;else{var d=a,a=new Wb(b,this);Va(a,d)}var d=1,g,c=c[b],b=!0 in c,f;if(b){g=[];for(f=this;f;f=f.Da)g.push(f);f=c[!0];f.z=f.k;for(var h=g.length-1;!a.U&&h>=0&&f.z;h--)a.currentTarget=g[h],d&=Ac(f,g[h],a.type,!0,a)&&a.ma!=!1}if(!1 in c)if(f=c[!1],f.z=f.k,b)for(h=0;!a.U&&h<g.length&&f.z;h++)a.currentTarget=g[h],d&=Ac(f,g[h],a.type,!1,a)&&a.ma!=!1;else for(g=this;!a.U&&g&&
f.z;g=g.Da)a.currentTarget=g,d&=Ac(f,g,a.type,!1,a)&&a.ma!=!1;a=Boolean(d)}else a=!0;return a};s.h=function(){Hc.b.h.call(this);zc(this);this.Da=o};function T(a){L.call(this);this.qa=a||I();this.na=Ic}A(T,Hc);T.prototype.Fb=Gc.C();var Ic=o;function Jc(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}e(Error("Invalid component state"))}s=T.prototype;s.za=o;s.f=!1;s.c=o;s.na=o;s.Ra=o;s.D=o;s.q=o;s.M=o;s.Nb=!1;
function Kc(a){return a.za||(a.za=":"+(a.Fb.Jb++).toString(36))}s.a=p("c");function Lc(a){return a.W||(a.W=new Cc(a))}function Mc(a,b){a==b&&e(Error("Unable to set parent component"));b&&a.D&&a.za&&Nc(a.D,a.za)&&a.D!=b&&e(Error("Unable to set parent component"));a.D=b;T.b.Ta.call(a,b)}s.getParent=p("D");s.Ta=function(a){this.D&&this.D!=a&&e(Error("Method not supported"));T.b.Ta.call(this,a)};s.J=p("qa");s.l=function(){this.c=this.qa.createElement("div")};
function Oc(a,b,c){a.f&&e(Error("Component already rendered"));a.c||a.l();b?b.insertBefore(a.c,c||o):a.qa.g.body.appendChild(a.c);(!a.D||a.D.f)&&a.u()}s.u=function(){this.f=!0;Pc(this,function(a){!a.f&&a.a()&&a.u()})};s.R=function(){Pc(this,function(a){a.f&&a.R()});this.W&&Fc(this.W);this.f=!1};s.h=function(){T.b.h.call(this);this.f&&this.R();this.W&&(this.W.I(),delete this.W);Pc(this,function(a){a.I()});!this.Nb&&this.c&&wb(this.c);this.D=this.Ra=this.c=this.M=this.q=o};
s.Ea=function(a,b){this.Fa(a,Qc(this),b)};
s.Fa=function(a,b,c){a.f&&(c||!this.f)&&e(Error("Component already rendered"));(b<0||b>Qc(this))&&e(Error("Child component index out of bounds"));if(!this.M||!this.q)this.M={},this.q=[];if(a.getParent()==this)this.M[Kc(a)]=a,db(this.q,a);else{var d=this.M,g=Kc(a);g in d&&e(Error('The object already contains the key "'+g+'"'));d[g]=a}Mc(a,this);gb(this.q,b,0,a);a.f&&this.f&&a.getParent()==this?(c=this.v(),c.insertBefore(a.a(),c.childNodes[b]||o)):c?(this.c||this.l(),b=U(this,b+1),Oc(a,this.v(),b?b.c:
o)):this.f&&!a.f&&a.c&&a.u()};s.v=p("c");function Rc(a){if(a.na==o)a.na=Kb(a.f?a.c:a.qa.g.body);return a.na}s.oa=function(a){this.f&&e(Error("Component already rendered"));this.na=a};function Qc(a){return a.q?a.q.length:0}function Nc(a,b){var c;a.M&&b?(c=a.M,c=b in c?c[b]:i,c=c||o):c=o;return c}function U(a,b){return a.q?a.q[b]||o:o}function Pc(a,b,c){a.q&&$a(a.q,b,c)}function Sc(a,b){return a.q&&b?Za(a.q,b):-1}
s.removeChild=function(a,b){if(a){var c=w(a)?a:Kc(a),a=Nc(this,c);if(c&&a){var d=this.M;c in d&&delete d[c];db(this.q,a);b&&(a.R(),a.c&&wb(a.c));Mc(a,o)}}a||e(Error("Child is not in parent component"));return a};function Tc(a,b){a.setAttribute("role",b);a.Ob=b};function Uc(){}var Vc;ca(Uc);s=Uc.prototype;s.ea=aa();s.l=function(a){return a.J().l("div",this.ta(a).join(" "),a.V)};s.v=function(a){return a};s.da=function(a,b,c){if(a=a.a?a.a():a)if(B&&!E("7")){var d=Wc(mb(a),b);d.push(b);ja(c?nb:ob,a).apply(o,d)}else c?nb(a,b):ob(a,b)};s.ja=function(a){Rc(a)&&this.oa(a.a(),!0);a.isEnabled()&&this.aa(a,a.i)};s.Sa=function(a,b){Ob(a,!b,!B&&!Fa)};s.oa=function(a,b){this.da(a,this.n()+"-rtl",b)};s.X=function(a){var b;if(a.r&32&&(b=a.m()))return Ab(b);return!1};
s.aa=function(a,b){var c;if(a.r&32&&(c=a.m())){if(!b&&a.p&32){try{c.blur()}catch(d){}a.p&32&&a.T(o)}if(Ab(c)!=b)b?c.tabIndex=0:c.removeAttribute("tabIndex")}};s.G=function(a,b){a.style.display=b?"":"none"};s.F=function(a,b,c){var d=a.a();if(d){var g=this.sa(b);g&&this.da(a,g,c);Vc||(Vc=Wa(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(a=Vc[b])&&d.setAttribute("aria-"+a,c)}};s.m=function(a){return a.a()};s.n=q("goog-control");
s.ta=function(a){var b=this.n(),c=[b],d=this.n();d!=b&&c.push(d);b=a.p;for(d=[];b;){var g=b&-b;d.push(this.sa(g));b&=~g}c.push.apply(c,d);(a=a.B)&&c.push.apply(c,a);B&&!E("7")&&c.push.apply(c,Wc(c));return c};function Wc(a,b){var c=[];b&&(a=a.concat([b]));$a([],function(d){bb(d,ja(cb,a))&&(!b||cb(d,b))&&c.push(d.join("_"))});return c}s.sa=function(a){if(!this.Za){var b=this.n();this.Za=Wa(1,b+"-disabled",2,b+"-hover",4,b+"-active",8,b+"-selected",16,b+"-checked",32,b+"-focused",64,b+"-open")}return this.Za[a]};function Xc(a,b,c,d,g){if(!B&&(!D||!E("525")))return!0;if(Aa&&g)return Yc(a);if(g&&!d)return!1;if(!c&&(b==17||b==18))return!1;if(B&&d&&b==a)return!1;switch(a){case 13:return!0;case 27:return!D}return Yc(a)}
function Yc(a){if(a>=48&&a<=57)return!0;if(a>=96&&a<=106)return!0;if(a>=65&&a<=90)return!0;if(D&&a==0)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};function Zc(a,b){L.call(this);a&&this.Ia(a,b)}A(Zc,Hc);s=Zc.prototype;s.c=o;s.Aa=o;s.Qa=o;s.Ba=o;s.Q=-1;s.O=-1;
var $c={"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},ad={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},bd={61:187,
59:186},cd=B||D&&E("525");s=Zc.prototype;s.Bb=function(a){if(D&&(this.Q==17&&!a.ctrlKey||this.Q==18&&!a.altKey))this.O=this.Q=-1;cd&&!Xc(a.keyCode,this.Q,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.O=C&&a.keyCode in bd?bd[a.keyCode]:a.keyCode};s.Cb=function(){this.O=this.Q=-1};
s.handleEvent=function(a){var b=a.s,c,d;B&&a.type=="keypress"?(c=this.O,d=c!=13&&c!=27?b.keyCode:0):D&&a.type=="keypress"?(c=this.O,d=b.charCode>=0&&b.charCode<63232&&Yc(c)?b.charCode:0):Fa?(c=this.O,d=Yc(c)?b.keyCode:0):(c=b.keyCode||this.O,d=b.charCode||0,Aa&&d==63&&!c&&(c=191));var g=c,f=b.keyIdentifier;c?c>=63232&&c in $c?g=$c[c]:c==25&&a.shiftKey&&(g=9):f&&f in ad&&(g=ad[f]);a=g==this.Q;this.Q=g;b=new dd(g,d,a,b);try{this.dispatchEvent(b)}finally{b.I()}};s.a=p("c");
s.Ia=function(a,b){this.Ba&&this.detach();this.c=a;this.Aa=uc(this.c,"keypress",this,b);this.Qa=uc(this.c,"keydown",this.Bb,b,this);this.Ba=uc(this.c,"keyup",this.Cb,b,this)};s.detach=function(){if(this.Aa)Q(this.Aa),Q(this.Qa),Q(this.Ba),this.Ba=this.Qa=this.Aa=o;this.c=o;this.O=this.Q=-1};s.h=function(){Zc.b.h.call(this);this.detach()};function dd(a,b,c,d){d&&this.ia(d,i);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}A(dd,Yb);function V(a,b,c){T.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=z(b);if(d=Qb[d])break;b=b.b?b.b.constructor:o}b=d?x(d.C)?d.C():new d:o}this.e=b;this.V=a}A(V,T);s=V.prototype;s.V=o;s.p=0;s.r=39;s.vb=255;s.Ua=0;s.i=!0;s.B=o;s.ga=!0;s.Ha=!1;s.m=function(){return this.e.m(this)};s.ua=function(){return this.t||(this.t=new Zc)};
s.da=function(a,b){if(b){if(a)this.B?cb(this.B,a)||this.B.push(a):this.B=[a],this.e.da(this,a,!0)}else if(a&&this.B){db(this.B,a);if(this.B.length==0)this.B=o;this.e.da(this,a,!1)}};s.l=function(){var a=this.e.l(this);this.c=a;var b=this.e.ea();b&&Tc(a,b);this.Ha||this.e.Sa(a,!1);this.i||this.e.G(a,!1)};s.v=function(){return this.e.v(this.a())};
s.u=function(){V.b.u.call(this);this.e.ja(this);if(this.r&-2&&(this.ga&&ed(this,!0),this.r&32)){var a=this.m();if(a){var b=this.ua();b.Ia(a);R(R(R(Lc(this),b,"key",this.N),a,"focus",this.xa),a,"blur",this.T)}}};function ed(a,b){var c=Lc(a),d=a.a();b?(R(R(R(R(c,d,"mouseover",a.Pa),d,"mousedown",a.fa),d,"mouseup",a.ha),d,"mouseout",a.Oa),B&&R(c,d,"dblclick",a.fb)):(S(S(S(S(c,d,"mouseover",a.Pa),d,"mousedown",a.fa),d,"mouseup",a.ha),d,"mouseout",a.Oa),B&&S(c,d,"dblclick",a.fb))}
s.R=function(){V.b.R.call(this);this.t&&this.t.detach();this.i&&this.isEnabled()&&this.e.aa(this,!1)};s.h=function(){V.b.h.call(this);this.t&&(this.t.I(),delete this.t);delete this.e;this.B=this.V=o};
s.La=function(){var a=this.V;if(!a)return"";if(!w(a))if(v(a))a=ab(a,Bb).join("");else{if(qb&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Cb(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");B||(a=a.replace(/ +/g," "));a!=" "&&(a=a.replace(/^\s*/,""))}return la(a)};s.oa=function(a){V.b.oa.call(this,a);var b=this.a();b&&this.e.oa(b,a)};s.Sa=function(a){this.Ha=a;var b=this.a();b&&this.e.Sa(b,a)};
s.G=function(a,b){if(b||this.i!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.e.G(c,a);this.isEnabled()&&this.e.aa(this,a);this.i=a;return!0}return!1};s.isEnabled=function(){return!(this.p&1)};s.K=function(a){fd(this,2,a)&&this.F(2,a)};s.setActive=function(a){fd(this,4,a)&&this.F(4,a)};function gd(a,b){fd(a,64,b)&&a.F(64,b)}s.F=function(a,b){if(this.r&a&&b!=!!(this.p&a))this.e.F(this,a,b),this.p=b?this.p|a:this.p&~a};
function W(a,b){a.f&&a.p&b&&e(Error("Component already rendered"));a.p&b&&a.F(b,!1);a.r&=~b}function X(a,b){return!!(a.vb&b)&&!!(a.r&b)}function fd(a,b,c){return!!(a.r&b)&&!!(a.p&b)!=c&&(!(a.Ua&b)||a.dispatchEvent(Jc(b,c)))&&!a.Ja}s.Pa=function(a){(!a.relatedTarget||!xb(this.a(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&X(this,2)&&this.K(!0)};
s.Oa=function(a){if((!a.relatedTarget||!xb(this.a(),a.relatedTarget))&&this.dispatchEvent("leave"))X(this,4)&&this.setActive(!1),X(this,2)&&this.K(!1)};s.fa=function(a){if(this.isEnabled()&&(X(this,2)&&this.K(!0),$b(a)&&(!D||!Aa||!a.ctrlKey)))X(this,4)&&this.setActive(!0),this.e.X(this)&&this.m().focus();!this.Ha&&$b(a)&&(!D||!Aa||!a.ctrlKey)&&a.preventDefault()};s.ha=function(a){this.isEnabled()&&(X(this,2)&&this.K(!0),this.p&4&&hd(this,a)&&X(this,4)&&this.setActive(!1))};
s.fb=function(a){this.isEnabled()&&hd(this,a)};function hd(a,b){if(X(a,16)){var c=!(a.p&16);fd(a,16,c)&&a.F(16,c)}X(a,8)&&fd(a,8,!0)&&a.F(8,!0);X(a,64)&&gd(a,!(a.p&64));c=new Wb("action",a);if(b)for(var d=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],g,f=0;g=d[f];f++)c[g]=b[g];return a.dispatchEvent(c)}s.xa=function(){X(this,32)&&fd(this,32,!0)&&this.F(32,!0)};s.T=function(){X(this,4)&&this.setActive(!1);X(this,32)&&fd(this,32,!1)&&this.F(32,!1)};
s.N=function(a){if(this.i&&this.isEnabled()&&this.Na(a))return a.preventDefault(),a.stopPropagation(),!0;return!1};s.Na=function(a){return a.keyCode==13&&hd(this,a)};x(V)||e(Error("Invalid component class "+V));x(Uc)||e(Error("Invalid renderer class "+Uc));var id=z(V);Qb[id]=Uc;Pb("goog-control",function(){return new V(o)});function jd(){this.$a=[]}A(jd,Uc);ca(jd);function kd(a,b){var c=a.$a[b];if(!c){switch(b){case 0:c=a.n()+"-highlight";break;case 1:c=a.n()+"-checkbox";break;case 2:c=a.n()+"-content"}a.$a[b]=c}return c}s=jd.prototype;s.ea=q("menuitem");
s.l=function(a){var b=a.J().l("div",this.ta(a).join(" "),ld(this,a.V,a.J())),c=!!(a.r&8)||!!(a.r&16),d;if(d=this.v(b)){d=d.firstChild;var g=kd(this,1);d=!!d&&!!d.className&&d.className.indexOf(g)!=-1}else d=!1;c!=d&&(c?nb(b,"goog-option"):ob(b,"goog-option"),d=this.v(b),c?(c=kd(this,1),d.insertBefore(a.J().l("div",c),d.firstChild||o)):d.removeChild(d.firstChild));return b};s.v=function(a){return a&&a.firstChild};function ld(a,b,c){a=kd(a,2);return c.l("div",a,b)}
s.sa=function(a){switch(a){case 2:return kd(this,0);case 16:case 8:return"goog-option-selected";default:return jd.b.sa.call(this,a)}};s.n=q("goog-menuitem");function Y(a,b,c,d){V.call(this,a,d||jd.C(),c);this.Ra=b}A(Y,V);Y.prototype.La=function(){var a=this.V;if(v(a))return a=ab(a,function(a){return cb(mb(a),"goog-menuitem-accel")?"":Bb(a)}).join(""),la(a);return Y.b.La.call(this)};Y.prototype.ha=function(a){var b=this.getParent();if(b){var c=b.ob;b.ob=o;if(b=c&&typeof a.clientX=="number")b=new F(a.clientX,a.clientY),b=c==b?!0:!c||!b?!1:c.x==b.x&&c.y==b.y;if(b)return}Y.b.ha.call(this,a)};Pb("goog-menuitem",function(){return new Y(o)});function md(a,b,c,d,g,f,h,j){var l,k=c.offsetParent;if(k){var n=k.tagName=="HTML"||k.tagName=="BODY";if(!n||K(k,"position")!="static")l=Jb(k),n||(l=Xa(l,new F(k.scrollLeft,k.scrollTop)))}k=Jb(a);n=Mb(a);k=new ib(k.x,k.y,n.width,n.height);if(n=Ib(a)){var m=new ib(n.left,n.top,n.right-n.left,n.bottom-n.top),n=Math.max(k.left,m.left),r=Math.min(k.left+k.width,m.left+m.width);if(n<=r){var u=Math.max(k.top,m.top),m=Math.min(k.top+k.height,m.top+m.height);if(u<=m)k.left=n,k.top=u,k.width=r-n,k.height=m-
u}}n=I(a);u=I(c);if(n.g!=u.g){var r=n.g.body,u=u.g.parentWindow||u.g.defaultView,m=new F(0,0),ya=J(r)?J(r).parentWindow||J(r).defaultView:window,dc=r;do{var O;if(ya==u)O=Jb(dc);else{var y=dc;O=new F;if(y.nodeType==1)if(y.getBoundingClientRect)y=Gb(y),O.x=y.left,O.y=y.top;else{var jb=Db(I(y)),y=Jb(y);O.x=y.x-jb.x;O.y=y.y-jb.y}else{var jb=x(y.wb),kb=y;y.targetTouches?kb=y.targetTouches[0]:jb&&y.s.targetTouches&&(kb=y.s.targetTouches[0]);O.x=kb.clientX;O.y=kb.clientY}}m.x+=O.x;m.y+=O.y}while(ya&&ya!=
u&&(dc=ya.frameElement)&&(ya=ya.parent));r=Xa(m,Jb(r));B&&n.g.compatMode!="CSS1Compat"&&(r=Xa(r,Db(n)));k.left+=r.x;k.top+=r.y}a=(b&4&&Kb(a)?b^2:b)&-5;b=new F(a&2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);l&&(b=Xa(b,l));g&&(b.x+=(a&2?-1:1)*g.x,b.y+=(a&1?-1:1)*g.y);var ea;if(h&&(ea=Ib(c))&&l)ea.top=Math.max(0,ea.top-l.y),ea.right-=l.x,ea.bottom-=l.y,ea.left=Math.max(0,ea.left-l.x);return nd(b,c,d,f,ea,h,j)}
function nd(a,b,c,d,g,f,h){var a=a.clone(),j=0,l=(c&4&&Kb(b)?c^2:c)&-5,c=Mb(b),h=h?h.clone():c;if(d||l!=0)l&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),l&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(g){j=a;d=0;if(j.x<g.left&&f&1)j.x=g.left,d|=1;j.x<g.left&&j.x+h.width>g.right&&f&16&&(h.width-=j.x+h.width-g.right,d|=4);if(j.x+h.width>g.right&&f&1)j.x=Math.max(g.right-h.width,g.left),d|=1;f&2&&(d|=(j.x<g.left?16:0)|(j.x+h.width>g.right?32:0));if(j.y<g.top&&f&4)j.y=g.top,d|=2;j.y>=g.top&&
j.y+h.height>g.bottom&&f&32&&(h.height-=j.y+h.height-g.bottom,d|=8);if(j.y+h.height>g.bottom&&f&4)j.y=Math.max(g.bottom-h.height,g.top),d|=2;f&8&&(d|=(j.y<g.top?64:0)|(j.y+h.height>g.bottom?128:0));j=d}else j=256;if(j&496)return j}f=a;g=C&&(Aa||Ia)&&E("1.9");f instanceof F?(a=f.x,f=f.y):(a=f,f=i);b.style.left=Lb(a,g);b.style.top=Lb(f,g);c=c==h?!0:!c||!h?!1:c.width==h.width&&c.height==h.height;if(!c){var c=h,k;c instanceof H?(k=c.height,c=c.width):e(Error("missing height argument"));b.style.width=
Lb(c,!0);b.style.height=Lb(k,!0)}return j};function od(){}od.prototype.la=aa();function pd(a,b){this.element=a;this.ca=b}A(pd,od);pd.prototype.la=function(a,b,c){md(this.element,this.ca,a,b,i,c)};function qd(a,b,c){pd.call(this,a,b);this.sb=c}A(qd,pd);qd.prototype.la=function(a,b,c,d){var g=md(this.element,this.ca,a,b,o,c,10,d);if(g&496){var f=this.ca,h=b;g&48&&(f^=2,h^=2);g&192&&(f^=1,h^=1);g=md(this.element,f,a,h,o,c,10,d);g&496&&(this.sb?md(this.element,this.ca,a,b,o,c,5,d):md(this.element,this.ca,a,b,o,c,0,d))}};function rd(a,b){this.pa=a instanceof F?a:new F(a,b)}A(rd,od);rd.prototype.la=function(a,b,c,d){var g=Fb(a);md(g,0,a,b,new F(this.pa.x+g.scrollLeft,this.pa.y+g.scrollTop),c,o,d)};function sd(a,b){rd.call(this,a,b)}A(sd,rd);sd.prototype.la=function(a,b,c,d){var g=Fb(a),g=Ib(g),f;f=I(a);f=ub(f.g);f=new F(this.pa.x+f.scrollLeft,this.pa.y+f.scrollTop);var h=b,j=nd(f,a,h,c,g,10,d);if((j&496)!=0){if(j&16||j&32)h^=2;if(j&64||j&128)h^=1;j=nd(f,a,h,c,g,10,d);(j&496)!=0&&nd(f,a,b,c,g,i,d)}};function td(a){if(typeof a.wa=="function")return a.wa();if(w(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sa(a)};function ud(a){this.w={};this.d=[];var b=arguments.length;if(b>1){b%2&&e(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else if(a){a instanceof ud?(b=a.va(),c=a.wa()):(b=Ta(a),c=Sa(a));for(var d=0;d<b.length;d++)this.set(b[d],c[d])}}s=ud.prototype;s.k=0;s.Va=0;s.wa=function(){vd(this);for(var a=[],b=0;b<this.d.length;b++)a.push(this.w[this.d[b]]);return a};s.va=function(){vd(this);return this.d.concat()};
s.clear=function(){this.w={};this.Va=this.k=this.d.length=0};s.remove=function(a){if(wd(this.w,a))return delete this.w[a],this.k--,this.Va++,this.d.length>2*this.k&&vd(this),!0;return!1};function vd(a){if(a.k!=a.d.length){for(var b=0,c=0;b<a.d.length;){var d=a.d[b];wd(a.w,d)&&(a.d[c++]=d);b++}a.d.length=c}if(a.k!=a.d.length){for(var g={},c=b=0;b<a.d.length;)d=a.d[b],wd(g,d)||(a.d[c++]=d,g[d]=1),b++;a.d.length=c}}s.get=function(a,b){if(wd(this.w,a))return this.w[a];return b};
s.set=function(a,b){wd(this.w,a)||(this.k++,this.d.push(a),this.Va++);this.w[a]=b};s.clone=function(){return new ud(this)};function wd(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function xd(){}A(xd,Uc);ca(xd);xd.prototype.l=function(a){return a.J().l("div",this.n())};xd.prototype.n=q("goog-menuseparator");function yd(a,b){V.call(this,o,a||xd.C(),b);W(this,1);W(this,2);W(this,4);W(this,32);this.p=1}A(yd,V);yd.prototype.u=function(){yd.b.u.call(this);Tc(this.a(),"separator")};Pb("goog-menuseparator",function(){return new yd});function zd(){}ca(zd);s=zd.prototype;s.ea=aa();s.l=function(a){return a.J().l("div",this.ta(a).join(" "))};s.v=function(a){return a};s.ja=function(a){a=a.a();Ob(a,!0,C);if(B)a.hideFocus=!0;var b=this.ea();b&&Tc(a,b)};s.m=function(a){return a.a()};s.n=q("goog-container");s.ta=function(a){var b=this.n(),c=[b,a.Z==Ad?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Bd(){}A(Bd,zd);ca(Bd);Bd.prototype.ea=q("menu");Bd.prototype.ba=function(a,b){return xb(a.a(),b)};Bd.prototype.n=q("goog-menu");Bd.prototype.ja=function(a){Bd.b.ja.call(this,a);a.a().setAttribute("aria-haspopup","true")};function Cd(a){yd.call(this,xd.C(),a)}A(Cd,yd);Pb("goog-menuseparator",function(){return new yd});function Z(a,b,c){T.call(this,c);this.e=b||zd.C();this.Z=a||Dd}A(Z,T);var Ad="horizontal",Dd="vertical";s=Z.prototype;s.ib=o;s.t=o;s.e=o;s.Z=o;s.i=!0;s.ra=!0;s.Ka=!0;s.o=-1;s.j=o;s.ka=!1;s.tb=!1;s.Lb=!0;s.L=o;s.m=function(){return this.ib||this.e.m(this)};s.ua=function(){return this.t||(this.t=new Zc(this.m()))};s.l=function(){this.c=this.e.l(this)};s.v=function(){return this.e.v(this.a())};
s.u=function(){Z.b.u.call(this);Pc(this,function(a){a.f&&Ed(this,a)},this);var a=this.a();this.e.ja(this);this.G(this.i,!0);R(R(R(R(R(R(R(R(Lc(this),this,"enter",this.Ma),this,"highlight",this.Ab),this,"unhighlight",this.Eb),this,"open",this.Db),this,"close",this.yb),a,"mousedown",this.fa),J(a),"mouseup",this.zb),a,["mousedown","mouseup","mouseover","mouseout"],this.xb);this.X()&&Fd(this,!0)};
function Fd(a,b){var c=Lc(a),d=a.m();b?R(R(R(c,d,"focus",a.xa),d,"blur",a.T),a.ua(),"key",a.N):S(S(S(c,d,"focus",a.xa),d,"blur",a.T),a.ua(),"key",a.N)}s.R=function(){Gd(this,-1);this.j&&gd(this.j,!1);this.ka=!1;Z.b.R.call(this)};s.h=function(){Z.b.h.call(this);if(this.t)this.t.I(),this.t=o;this.e=this.j=this.L=o};s.Ma=q(!0);
s.Ab=function(a){var b=Sc(this,a.target);if(b>-1&&b!=this.o){var c=U(this,this.o);c&&c.K(!1);this.o=b;c=U(this,this.o);this.ka&&c.setActive(!0);this.Lb&&this.j&&c!=this.j&&(c.r&64?gd(c,!0):gd(this.j,!1))}this.a().setAttribute("aria-activedescendant",a.target.a().id)};s.Eb=function(a){if(a.target==U(this,this.o))this.o=-1;this.a().setAttribute("aria-activedescendant","")};s.Db=function(a){if((a=a.target)&&a!=this.j&&a.getParent()==this)this.j&&gd(this.j,!1),this.j=a};
s.yb=function(a){if(a.target==this.j)this.j=o};s.fa=function(a){if(this.ra)this.ka=!0;var b=this.m();b&&Ab(b)?b.focus():a.preventDefault()};s.zb=function(){this.ka=!1};s.xb=function(a){var b;a:{b=a.target;if(this.L)for(var c=this.a();b&&b!==c;){var d=b.id;if(d in this.L){b=this.L[d];break a}b=b.parentNode}b=o}if(b)switch(a.type){case "mousedown":b.fa(a);break;case "mouseup":b.ha(a);break;case "mouseover":b.Pa(a);break;case "mouseout":b.Oa(a)}};s.xa=aa();
s.T=function(){Gd(this,-1);this.ka=!1;this.j&&gd(this.j,!1)};s.N=function(a){if(this.isEnabled()&&this.i&&(Qc(this)!=0||this.ib)&&this.Na(a))return a.preventDefault(),a.stopPropagation(),!0;return!1};
s.Na=function(a){var b=U(this,this.o);if(b&&typeof b.N=="function"&&b.N(a))return!0;if(this.j&&this.j!=b&&typeof this.j.N=="function"&&this.j.N(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.X())this.m().blur();else return!1;break;case 36:Hd(this);break;case 35:Id(this);break;case 38:if(this.Z==Dd)Jd(this);else return!1;break;case 37:if(this.Z==Ad)Rc(this)?Kd(this):Jd(this);else return!1;break;case 40:if(this.Z==Dd)Kd(this);else return!1;break;
case 39:if(this.Z==Ad)Rc(this)?Jd(this):Kd(this);else return!1;break;default:return!1}return!0};function Ed(a,b){var c=b.a(),c=c.id||(c.id=Kc(b));if(!a.L)a.L={};a.L[c]=b}s.Ea=function(a,b){Z.b.Ea.call(this,a,b)};s.Fa=function(a,b,c){a.Ua|=2;a.Ua|=64;(this.X()||!this.tb)&&W(a,32);a.f&&!1!=a.ga&&ed(a,!1);a.ga=!1;Z.b.Fa.call(this,a,b,c);c&&this.f&&Ed(this,a);b<=this.o&&this.o++};
s.removeChild=function(a,b){if(a=w(a)?Nc(this,a):a){var c=Sc(this,a);c!=-1&&(c==this.o?a.K(!1):c<this.o&&this.o--);var d=a.a();if(d&&d.id)c=this.L,d=d.id,d in c&&delete c[d]}c=a=Z.b.removeChild.call(this,a,b);c.f&&!0!=c.ga&&ed(c,!0);c.ga=!0;return a};s.G=function(a,b){if(b||this.i!=a&&this.dispatchEvent(a?"show":"hide")){this.i=a;var c=this.a();if(c){c.style.display=a?"":"none";if(this.X()&&(c=this.m()))c.tabIndex=this.ra&&this.i?0:-1;b||this.dispatchEvent(this.i?"aftershow":"afterhide")}return!0}return!1};
s.isEnabled=p("ra");s.X=p("Ka");s.aa=function(a){a!=this.Ka&&this.f&&Fd(this,a);this.Ka=a;if(this.ra&&this.i){var b=this.m();if(b)b.tabIndex=a?0:-1}};function Gd(a,b){var c=U(a,b);c?c.K(!0):a.o>-1&&U(a,a.o).K(!1)}s.K=function(a){Gd(this,Sc(this,a))};function Hd(a){Ld(a,function(a,c){return(a+1)%c},Qc(a)-1)}function Id(a){Ld(a,function(a,c){a--;return a<0?c-1:a},0)}function Kd(a){Ld(a,function(a,c){return(a+1)%c},a.o)}function Jd(a){Ld(a,function(a,c){a--;return a<0?c-1:a},a.o)}
function Ld(a,b,c){for(var c=c<0?Sc(a,a.j):c,d=Qc(a),c=b.call(a,c,d),g=0;g<=d;){var f=U(a,c);if(f&&a.Ya(f)){Gd(a,c);break}g++;c=b.call(a,c,d)}}s.Ya=function(a){return a.i&&a.isEnabled()&&!!(a.r&2)};function Md(){}A(Md,Uc);ca(Md);Md.prototype.n=q("goog-menuheader");function Nd(a,b,c){V.call(this,a,c||Md.C(),b);W(this,1);W(this,2);W(this,4);W(this,32);this.p=1}A(Nd,V);Pb("goog-menuheader",function(){return new Nd(o)});function Od(a,b){Z.call(this,Dd,b||Bd.C(),a);this.aa(!1)}A(Od,Z);s=Od.prototype;s.Ga=!0;s.ub=!1;s.n=function(){return this.e.n()};s.ba=function(a){if(this.e.ba(this,a))return!0;for(var b=0,c=Qc(this);b<c;b++){var d=U(this,b);if(typeof d.ba=="function"&&d.ba(a))return!0}return!1};s.G=function(a,b,c){(b=Od.b.G.call(this,a,b))&&a&&this.f&&this.Ga&&this.m().focus();this.ob=a&&c&&typeof c.clientX=="number"?new F(c.clientX,c.clientY):o;return b};
s.Ma=function(a){this.Ga&&this.m().focus();return Od.b.Ma.call(this,a)};s.Ya=function(a){return(this.ub||a.isEnabled())&&a.i&&!!(a.r&2)};function Pd(a,b){Od.call(this,a,b);this.Ga=!0;this.aa(!0);this.G(!1,!0);this.A=new ud}A(Pd,Od);s=Pd.prototype;s.rb=!1;s.jb=0;s.ab=o;
s.u=function(){Pd.b.u.call(this);var a=this.A,b=this.Wa;if(typeof a.forEach=="function")a.forEach(b,this);else if(fa(a)||w(a))$a(a,b,this);else{var c;if(typeof a.va=="function")c=a.va();else if(typeof a.wa!="function")if(fa(a)||w(a)){c=[];for(var d=a.length,g=0;g<d;g++)c.push(g)}else c=Ta(a);else c=i;for(var d=td(a),g=d.length,f=0;f<g;f++)b.call(this,d[f],c&&c[f],a)}a=Lc(this);R(a,this,"action",this.Kb);b=this.J();R(a,b.g,"mousedown",this.mb,!0);D&&(b=this.J(),R(a,b.g,"contextmenu",this.mb,!0))};
s.Ia=function(a,b,c,d,g){var f;if(!(f=!a))f=z(a),f=!wd(this.A.w,f);f&&(a?(b={c:a,qb:b,Ib:c,eb:d?"contextmenu":"mousedown",Hb:g},this.A.set(z(a),b),a=b):a=o,this.f&&this.Wa(a))};s.Wa=function(a){R(Lc(this),a.c,a.eb,this.nb)};s.detach=function(a){var b;if(!(b=!a))b=z(a),b=!wd(this.A.w,b);b&&e(Error("Menu not attached to provided element, unable to detach."));a=z(a);this.f&&(b=this.A.get(a),S(Lc(this),b.c,b.eb,this.nb));this.A.remove(a)};
function Qd(a,b,c,d,g){var f=a.i;if((f||ka()-a.jb<150)&&a.rb)a.hide();else if(a.ab=g||o,a.dispatchEvent("beforeshow")){if(!f)a.a().style.visibility="hidden";a.a().style.display="";b.la(a.a(),typeof c!="undefined"?c:4,d);if(!f)a.a().style.visibility="visible";Gd(a,-1);a.G(!0)}}s.hide=function(){if(this.i&&(this.G(!1),!this.i))this.jb=ka(),this.ab=o};s.Kb=function(){this.hide()};
s.nb=function(a){for(var b=this.A.va(),c=0;c<b.length;c++){var d=this.A.get(b[c]);if(d.c==a.currentTarget){Qd(this,d.qb!==i?new qd(d.c,d.qb,!0):new sd(a.clientX,a.clientY),d.Ib,d.Hb,d.c);a.preventDefault();a.stopPropagation();break}}};s.mb=function(a){this.i&&!this.ba(a.target)&&this.hide()};s.T=function(a){Pd.b.T.call(this,a);this.hide()};s.h=function(){Pd.b.h.call(this);this.A&&(this.A.clear(),delete this.A)};window.main=function(){var a=[new Y("MapRank Search","http://www.klokantech.com/mapranksearch/"),new Y("Georeferencer","http://www.klokantech.com/georeferencer/"),new Y("Geoparser","http://www.klokantech.com/geoparser/"),new Cd,new Y("MapTiler Cluster","http://www.klokantech.com/maptiler/"),new Y("Coverage Maps","http://www.klokantech.com/coveragemaps/"),new Y("File Uploader","http://www.klokantech.com/fileuploader/")],b=new Pd;$a(a,function(a){b.Ea(a,!0)});Oc(b,i);b.rb=!0;uc(b,"action",function(a){var b=
window,a=a.target,g=a.Ra,a=g!=o?g:a.La();b.location=a});uc(w("link-products")?document.getElementById("link-products"):"link-products","click",function(a){var d=Jb(w("li-products")?document.getElementById("li-products"):"li-products");Qd(b,new sd(d.x-10,80),i);a.preventDefault()})};

