/* Copyright 2008-10 Google Inc. All Rights Reserved. */ (function(){var f,l=this,aa=function(){},ba=function(a){a.ea=function(){return a.Ab?a.Ab:a.Ab=new a}},ca=function(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},da=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},m=function(a){return"string"==typeof a},n=function(a){return"function"==ca(a)},fa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ia=function(a){return a[ga]||
(a[ga]=++ha)},ga="closure_uid_"+(1E9*Math.random()>>>0),ha=0,ja=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ka=function(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},p=function(a,b){function c(){}c.prototype=b.prototype;a.g=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ke=
function(a,c,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}};var la=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,la);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};p(la,Error);la.prototype.name="CustomError";var ma;var na=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},oa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},wa=function(a){if(!pa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(qa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ra,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(sa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ta,"&quot;"));-1!=a.indexOf("'")&&
(a=a.replace(ua,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(va,"&#0;"));return a},qa=/&/g,ra=/</g,sa=/>/g,ta=/"/g,ua=/'/g,va=/\x00/g,pa=/[\x00&<>"']/,q=function(a,b){return-1!=a.indexOf(b)},xa=function(a,b){return a<b?-1:a>b?1:0};var ya=function(a,b){b.unshift(a);la.call(this,na.apply(null,b));b.shift()};p(ya,la);ya.prototype.name="AssertionError";
var za=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),g=d;else a&&(e+=": "+a,g=b);throw new ya(""+e,g||[]);},r=function(a,b,c){a||za("",null,b,Array.prototype.slice.call(arguments,2))},Aa=function(a,b,c){fa(a)&&1==a.nodeType||za("Expected Element but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))},Ca=function(a,b,c,d){a instanceof b||za("Expected instanceof %s but got %s.",[Ba(b),Ba(a)],c,Array.prototype.slice.call(arguments,3))},Ba=function(a){return a instanceof
Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};var t=Array.prototype,Da=t.indexOf?function(a,b,c){r(null!=a.length);return t.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(m(a))return m(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},u=t.forEach?function(a,b,c){r(null!=a.length);t.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=m(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Ea=t.filter?function(a,b,c){r(null!=a.length);return t.filter.call(a,b,
c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=m(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var w=h[k];b.call(c,w,k,a)&&(e[g++]=w)}return e},Fa=t.every?function(a,b,c){r(null!=a.length);return t.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=m(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;return!0},v=function(a,b){return 0<=Da(a,b)},Ga=function(a,b){var c=Da(a,b),d;if(d=0<=c)r(null!=a.length),t.splice.call(a,c,1);return d},Ha=function(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[]},Ja=function(a,b,c,d){r(null!=a.length);t.splice.apply(a,Ia(arguments,1))},Ia=function(a,b,c){r(null!=a.length);return 2>=arguments.length?t.slice.call(a,b):t.slice.call(a,b,c)};var Ka=function(a){a=a.className;return m(a)&&a.match(/\S+/g)||[]},La=function(a,b){for(var c=Ka(a),d=Ia(arguments,1),e=c,g=0;g<d.length;g++)v(e,d[g])||e.push(d[g]);a.className=c.join(" ")},Na=function(a,b){var c=Ka(a),d=Ia(arguments,1),c=Ma(c,d);a.className=c.join(" ")},Ma=function(a,b){return Ea(a,function(a){return!v(b,a)})};var Oa=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Pa=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Qa=function(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c},Ra=function(a){var b={},c;for(c in a)b[a[c]]=c;return b},Sa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ta=function(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<Sa.length;g++)c=
Sa[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var x;t:{var Ua=l.navigator;if(Ua){var Va=Ua.userAgent;if(Va){x=Va;break t}}x=""};var Wa=q(x,"Opera")||q(x,"OPR"),y=q(x,"Trident")||q(x,"MSIE"),z=q(x,"Gecko")&&!q(x.toLowerCase(),"webkit")&&!(q(x,"Trident")||q(x,"MSIE")),A=q(x.toLowerCase(),"webkit"),B=q(x,"Macintosh"),Xa=function(){var a=l.document;return a?a.documentMode:void 0},Ya=function(){var a="",b;if(Wa&&l.opera)return a=l.opera.version,n(a)?a():a;z?b=/rv\:([^\);]+)(\)|;)/:y?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:A&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(x))?a[1]:"");return y&&(b=Xa(),b>parseFloat(a))?String(b):a}(),Za={},C=
function(a){var b;if(!(b=Za[a])){b=0;for(var c=oa(String(Ya)).split("."),d=oa(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var h=c[g]||"",k=d[g]||"",w=RegExp("(\\d*)(\\D*)","g"),D=RegExp("(\\d*)(\\D*)","g");do{var M=w.exec(h)||["","",""],R=D.exec(k)||["","",""];if(0==M[0].length&&0==R[0].length)break;b=xa(0==M[1].length?0:parseInt(M[1],10),0==R[1].length?0:parseInt(R[1],10))||xa(0==M[2].length,0==R[2].length)||xa(M[2],R[2])}while(0==b)}b=Za[a]=0<=b}return b},$a=l.document,
ab=$a&&y?Xa()||("CSS1Compat"==$a.compatMode?parseInt(Ya,10):5):void 0;var bb=!y||y&&9<=ab;!z&&!y||y&&y&&9<=ab||z&&C("1.9.1");var cb=y&&!C("9");var fb=function(a){return a?new db(eb(a)):ma||(ma=new db)},gb=function(a,b){return m(b)?a.getElementById(b):b},hb=function(a,b,c){var d=document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,g=0,h;h=c[g];g++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(g=e=0;h=c[g];g++)a=h.className,
"function"==typeof a.split&&v(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c},jb=function(a,b){Oa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ib?a.setAttribute(ib[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},ib={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",
valign:"vAlign",width:"width"},lb=function(a,b,c){return kb(document,arguments)},kb=function(a,b){var c=b[0],d=b[1];if(!bb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',wa(d.name),'"');if(d.type){c.push(' type="',wa(d.type),'"');var e={};Ta(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(m(d)?c.className=d:da(d)?c.className=d.join(" "):jb(c,d));2<b.length&&mb(a,c,b);return c},mb=function(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var e=
2;e<c.length;e++){var g=c[e];if(!ea(g)||fa(g)&&0<g.nodeType)d(g);else{var h;t:{if(g&&"number"==typeof g.length){if(fa(g)){h="function"==typeof g.item||"string"==typeof g.item;break t}if(n(g)){h="function"==typeof g.item;break t}}h=!1}u(h?Ha(g):g,d)}}},nb=function(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},eb=function(a){r(a,"Node cannot be null or undefined.");
return 9==a.nodeType?a:a.ownerDocument||a.document},ob=function(a,b){r(null!=a,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{for(var c;c=a.firstChild;)a.removeChild(c);c=eb(a);a.appendChild(c.createTextNode(String(b)))}},pb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},qb={IMG:" ",BR:"\n"},
tb=function(a){return rb(a)&&sb(a)},ub=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))},rb=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified},sb=function(a){a=a.tabIndex;return"number"==typeof a&&0<=a&&32768>a},vb=function(a,b,c){if(!(a.nodeName in pb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in qb)b.push(qb[a.nodeName]);else for(a=a.firstChild;a;)vb(a,b,c),a=a.nextSibling},db=
function(a){this.S=a||l.document||document};f=db.prototype;f.Xa=fb;f.a=function(a){return gb(this.S,a)};f.q=function(a,b,c){return kb(this.S,arguments)};f.createElement=function(a){return this.S.createElement(a)};f.createTextNode=function(a){return this.S.createTextNode(String(a))};f.appendChild=function(a,b){a.appendChild(b)};f.contains=nb;
f.O=function(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!rb(a)||sb(a)):tb(a))&&y?(a=n(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a};var wb=function(a){wb[" "](a);return a};wb[" "]=aa;var xb=!y||y&&9<=ab,yb=!y||y&&9<=ab,zb=y&&!C("9");!A||C("528");z&&C("1.9b")||y&&C("8")||Wa&&C("9.5")||A&&C("528");z&&!C("8")||y&&C("9");var Ab=function(){this.Ua=this.Ua;this.lc=this.lc};Ab.prototype.Ua=!1;var E=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.X=!1;this.Hb=!0};E.prototype.stopPropagation=function(){this.X=!0};E.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Hb=!1};var F=function(a,b){E.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.ib=!1;this.n=null;if(a){this.n=a;var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(z){var e;t:{try{wb(d.nodeName);e=!0;break t}catch(g){}e=!1}e||(d=
null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;Object.defineProperties?Object.defineProperties(this,{offsetX:{configurable:!0,enumerable:!0,get:this.ub,set:this.pc},offsetY:{configurable:!0,enumerable:!0,get:this.vb,set:this.qc}}):(this.offsetX=this.ub(),this.offsetY=this.vb());this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ib=B?a.metaKey:a.ctrlKey;this.state=a.state;a.defaultPrevented&&this.preventDefault()}};p(F,E);var Bb=[1,4,2],Cb=function(a){return xb?0==a.n.button:"click"==a.type?!0:!!(a.n.button&Bb[0])};f=F.prototype;f.stopPropagation=function(){F.g.stopPropagation.call(this);this.n.stopPropagation?this.n.stopPropagation():this.n.cancelBubble=!0};
f.preventDefault=function(){F.g.preventDefault.call(this);var a=this.n;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.ub=function(){return A||void 0!==this.n.offsetX?this.n.offsetX:this.n.layerX};f.pc=function(a){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:a}})};f.vb=function(){return A||void 0!==this.n.offsetY?this.n.offsetY:this.n.layerY};
f.qc=function(a){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var Db="closure_listenable_"+(1E6*Math.random()|0),Eb=0;var Fb=function(a,b,c,d,e){this.W=a;this.Ma=null;this.src=b;this.type=c;this.Ba=!!d;this.Ga=e;this.key=++Eb;this.ja=this.Aa=!1},Gb=function(a){a.ja=!0;a.W=null;a.Ma=null;a.src=null;a.Ga=null};var G=function(a){this.src=a;this.l={};this.wa=0};G.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.l[g];a||(a=this.l[g]=[],this.wa++);var h=Hb(a,b,d,e);-1<h?(b=a[h],c||(b.Aa=!1)):(b=new Fb(b,this.src,g,!!d,e),b.Aa=c,a.push(b));return b};G.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.l))return!1;var e=this.l[a];b=Hb(e,b,c,d);return-1<b?(Gb(e[b]),r(null!=e.length),t.splice.call(e,b,1),0==e.length&&(delete this.l[a],this.wa--),!0):!1};
var Ib=function(a,b){var c=b.type;if(!(c in a.l))return!1;var d=Ga(a.l[c],b);d&&(Gb(b),0==a.l[c].length&&(delete a.l[c],a.wa--));return d};G.prototype.jb=function(a){a=a&&a.toString();var b=0,c;for(c in this.l)if(!a||c==a){for(var d=this.l[c],e=0;e<d.length;e++)++b,Gb(d[e]);delete this.l[c];this.wa--}return b};G.prototype.na=function(a,b,c,d){a=this.l[a.toString()];var e=-1;a&&(e=Hb(a,b,c,d));return-1<e?a[e]:null};
var Hb=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.ja&&g.W==b&&g.Ba==!!c&&g.Ga==d)return e}return-1};var Jb="closure_lm_"+(1E6*Math.random()|0),Kb={},Lb=0,H=function(a,b,c,d,e){if(da(b)){for(var g=0;g<b.length;g++)H(a,b[g],c,d,e);return null}c=Mb(c);if(a&&a[Db])a=a.d(b,c,d,e);else{if(!b)throw Error("Invalid event type");var g=!!d,h=Nb(a);h||(a[Jb]=h=new G(a));c=h.add(b,c,!1,d,e);c.Ma||(d=Ob(),c.Ma=d,d.src=a,d.W=c,a.addEventListener?a.addEventListener(b.toString(),d,g):a.attachEvent(Pb(b.toString()),d),Lb++);a=c}return a},Ob=function(){var a=Qb,b=yb?function(c){return a.call(b.src,b.W,c)}:function(c){c=
a.call(b.src,b.W,c);if(!c)return c};return b},Rb=function(a,b,c,d,e){if(da(b))for(var g=0;g<b.length;g++)Rb(a,b[g],c,d,e);else c=Mb(c),a&&a[Db]?a.A(b,c,d,e):a&&(a=Nb(a))&&(b=a.na(b,c,!!d,e))&&Sb(b)},Sb=function(a){if("number"==typeof a||!a||a.ja)return!1;var b=a.src;if(b&&b[Db])return Ib(b.U,a);var c=a.type,d=a.Ma;b.removeEventListener?b.removeEventListener(c,d,a.Ba):b.detachEvent&&b.detachEvent(Pb(c),d);Lb--;(c=Nb(b))?(Ib(c,a),0==c.wa&&(c.src=null,b[Jb]=null)):Gb(a);return!0},Pb=function(a){return a in
Kb?Kb[a]:Kb[a]="on"+a},Ub=function(a,b,c,d){var e=!0;if(a=Nb(a))if(b=a.l[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Ba==c&&!g.ja&&(g=Tb(g,d),e=e&&!1!==g)}return e},Tb=function(a,b){var c=a.W,d=a.Ga||a.src;a.Aa&&Sb(a);return c.call(d,b)},Qb=function(a,b){if(a.ja)return!0;if(!yb){var c;if(!(c=b))t:{c=["window","event"];for(var d=l,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break t}c=d}e=c;c=new F(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){t:{var g=!1;if(0==e.keyCode)try{e.keyCode=
-1;break t}catch(h){g=!0}if(g||void 0==e.returnValue)e.returnValue=!0}e=[];for(g=c.currentTarget;g;g=g.parentNode)e.push(g);for(var g=a.type,k=e.length-1;!c.X&&0<=k;k--){c.currentTarget=e[k];var w=Ub(e[k],g,!0,c),d=d&&w}for(k=0;!c.X&&k<e.length;k++)c.currentTarget=e[k],w=Ub(e[k],g,!1,c),d=d&&w}return d}return Tb(a,new F(b,this))},Nb=function(a){a=a[Jb];return a instanceof G?a:null},Vb="__closure_events_fn_"+(1E9*Math.random()>>>0),Mb=function(a){r(a,"Listener can not be null.");if(n(a))return a;r(a.handleEvent,
"An object listener must have handleEvent method.");a[Vb]||(a[Vb]=function(b){return a.handleEvent(b)});return a[Vb]};var I=function(a){Ab.call(this);this.yb=a;this.Ja={}};p(I,Ab);var Wb=[];I.prototype.d=function(a,b,c,d){da(b)||(b&&(Wb[0]=b.toString()),b=Wb);for(var e=0;e<b.length;e++){var g=H(a,b[e],c||this.handleEvent,d||!1,this.yb||this);if(!g)break;this.Ja[g.key]=g}return this};
I.prototype.A=function(a,b,c,d,e){if(da(b))for(var g=0;g<b.length;g++)this.A(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.yb||this,c=Mb(c),d=!!d,b=a&&a[Db]?a.na(b,c,d,e):a?(a=Nb(a))?a.na(b,c,d,e):null:null,b&&(Sb(b),delete this.Ja[b.key]);return this};I.prototype.jb=function(){Oa(this.Ja,Sb);this.Ja={}};I.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var J=function(){Ab.call(this);this.U=new G(this);this.Mb=this;this.hb=null};p(J,Ab);J.prototype[Db]=!0;f=J.prototype;f.nb=function(a){this.hb=a};f.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Rb(this,a,b,c,d)};
f.dispatchEvent=function(a){Xb(this);var b,c=this.hb;if(c){b=[];for(var d=1;c;c=c.hb)b.push(c),r(1E3>++d,"infinite loop")}c=this.Mb;d=a.type||a;if(m(a))a=new E(a,c);else if(a instanceof E)a.target=a.target||c;else{var e=a;a=new E(d,c);Ta(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.X&&0<=h;h--)g=a.currentTarget=b[h],e=Yb(g,d,!0,a)&&e;a.X||(g=a.currentTarget=c,e=Yb(g,d,!0,a)&&e,a.X||(e=Yb(g,d,!1,a)&&e));if(b)for(h=0;!a.X&&h<b.length;h++)g=a.currentTarget=b[h],e=Yb(g,d,!1,a)&&e;return e};
f.d=function(a,b,c,d){Xb(this);return this.U.add(String(a),b,!1,c,d)};f.A=function(a,b,c,d){return this.U.remove(String(a),b,c,d)};var Yb=function(a,b,c,d){b=a.U.l[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.ja&&h.Ba==c){var k=h.W,w=h.Ga||h.src;h.Aa&&Ib(a.U,h);e=!1!==k.call(w,d)&&e}}return e&&0!=d.Hb};J.prototype.na=function(a,b,c,d){return this.U.na(String(a),b,c,d)};var Xb=function(a){r(a.U,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Zb=function(a,b){a.style.display=b?"":"none"},$b=z?"MozUserSelect":A?"WebkitUserSelect":null,ac=function(a,b,c){c=c?null:a.getElementsByTagName("*");if($b){if(b=b?"none":"",a.style[$b]=b,c){a=0;for(var d;d=c[a];a++)d.style[$b]=b}}else if(y||Wa)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)};var bc=function(){};ba(bc);bc.prototype.kc=0;var K=function(a){J.call(this);this.B=a||fb();this.Na=cc;this.fa=null;this.f=!1;this.c=null;this.oa=void 0;this.F=this.p=this.s=null};p(K,J);K.prototype.ic=bc.ea();
var cc=null,dc=function(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"}throw Error("Invalid component state");},ec=function(a){return a.fa||(a.fa=":"+(a.ic.kc++).toString(36))},fc=function(a,b){if(a.s&&a.s.F){var c=a.s.F,d=a.fa;d in c&&delete c[d];Qa(a.s.F,b,a)}a.fa=b};
K.prototype.a=function(){return this.c};var gc=function(a){a.oa||(a.oa=new I(a));return a.oa},ic=function(a,b){if(a==b)throw Error("Unable to set parent component");if(b&&a.s&&a.fa&&hc(a.s,a.fa)&&a.s!=b)throw Error("Unable to set parent component");a.s=b;K.g.nb.call(a,b)};f=K.prototype;f.getParent=function(){return this.s};f.nb=function(a){if(this.s&&this.s!=a)throw Error("Method not supported");K.g.nb.call(this,a)};f.Xa=function(){return this.B};f.q=function(){this.c=this.B.createElement("div")};
f.L=function(a){if(this.f)throw Error("Component already rendered");if(a&&this.R(a)){var b=eb(a);this.B&&this.B.S==b||(this.B=fb(a));this.Ta(a);this.G()}else throw Error("Invalid element to decorate");};f.R=function(){return!0};f.Ta=function(a){this.c=a};f.G=function(){this.f=!0;jc(this,function(a){!a.f&&a.a()&&a.G()})};f.ca=function(){jc(this,function(a){a.f&&a.ca()});this.oa&&this.oa.jb();this.f=!1};f.ya=function(a,b){this.Qa(a,kc(this),b)};
f.Qa=function(a,b,c){r(!!a,"Provided element must not be null.");if(a.f&&(c||!this.f))throw Error("Component already rendered");if(0>b||b>kc(this))throw Error("Child component index out of bounds");this.F&&this.p||(this.F={},this.p=[]);if(a.getParent()==this){var d=ec(a);this.F[d]=a;Ga(this.p,a)}else Qa(this.F,ec(a),a);ic(a,this);Ja(this.p,b,0,a);if(a.f&&this.f&&a.getParent()==this)c=this.C(),b=c.childNodes[b]||null,b!=a.a()&&c.insertBefore(a.a(),b);else if(c){this.c||this.q();c=L(this,b+1);b=this.C();
c=c?c.c:null;if(a.f)throw Error("Component already rendered");a.c||a.q();b?b.insertBefore(a.c,c||null):a.B.S.body.appendChild(a.c);a.s&&!a.s.f||a.G()}else this.f&&!a.f&&a.c&&a.c.parentNode&&1==a.c.parentNode.nodeType&&a.G()};f.C=function(){return this.c};
var lc=function(a){if(null==a.Na){var b=a.f?a.c:a.B.S.body,c;t:{c=eb(b);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(b,null))){c=c.direction||c.getPropertyValue("direction")||"";break t}c=""}a.Na="rtl"==(c||(b.currentStyle?b.currentStyle.direction:null)||b.style&&b.style.direction)}return a.Na};K.prototype.ua=function(a){if(this.f)throw Error("Component already rendered");this.Na=a};
var kc=function(a){return a.p?a.p.length:0},hc=function(a,b){var c;a.F&&b?(c=a.F,c=(b in c?c[b]:void 0)||null):c=null;return c},L=function(a,b){return a.p?a.p[b]||null:null},jc=function(a,b,c){a.p&&u(a.p,b,c)},mc=function(a,b){return a.p&&b?Da(a.p,b):-1};
K.prototype.removeChild=function(a,b){if(a){var c=m(a)?a:ec(a);a=hc(this,c);if(c&&a){var d=this.F;c in d&&delete d[c];Ga(this.p,a);b&&(a.ca(),a.c&&(c=a.c)&&c.parentNode&&c.parentNode.removeChild(c));ic(a,null)}}if(!a)throw Error("Child is not in parent component");return a};var nc,oc={tc:"activedescendant",yc:"atomic",zc:"autocomplete",Bc:"busy",Ec:"checked",Jc:"controls",Lc:"describedby",Oc:"disabled",Qc:"dropeffect",Rc:"expanded",Sc:"flowto",Uc:"grabbed",Yc:"haspopup",$c:"hidden",bd:"invalid",cd:"label",dd:"labelledby",ed:"level",kd:"live",ud:"multiline",vd:"multiselectable",zd:"orientation",Ad:"owns",Bd:"posinset",Dd:"pressed",Hd:"readonly",Jd:"relevant",Kd:"required",Qd:"selected",Sd:"setsize",Ud:"sort",ge:"valuemax",he:"valuemin",ie:"valuenow",je:"valuetext"};var pc={uc:"alert",vc:"alertdialog",wc:"application",xc:"article",Ac:"banner",Cc:"button",Dc:"checkbox",Fc:"columnheader",Gc:"combobox",Hc:"complementary",Ic:"contentinfo",Kc:"definition",Mc:"dialog",Nc:"directory",Pc:"document",Tc:"form",Vc:"grid",Wc:"gridcell",Xc:"group",Zc:"heading",ad:"img",fd:"link",gd:"list",hd:"listbox",jd:"listitem",ld:"log",md:"main",nd:"marquee",od:"math",pd:"menu",qd:"menubar",rd:"menuitem",sd:"menuitemcheckbox",td:"menuitemradio",wd:"navigation",xd:"note",yd:"option",
Cd:"presentation",Ed:"progressbar",Fd:"radio",Gd:"radiogroup",Id:"region",Ld:"row",Md:"rowgroup",Nd:"rowheader",Od:"scrollbar",Pd:"search",Rd:"separator",Td:"slider",Vd:"spinbutton",Wd:"status",Xd:"tab",Yd:"tablist",Zd:"tabpanel",$d:"textbox",ae:"timer",be:"toolbar",ce:"tooltip",de:"tree",ee:"treegrid",fe:"treeitem"};var qc=function(a,b){b?(r(Pa(pc,b),"No such ARIA role "+b),a.setAttribute("role",b)):a.removeAttribute("role")},sc=function(a,b,c){da(c)&&(c=c.join(" "));var d=rc(b);""===c||void 0==c?(nc||(nc={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=nc,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,
c)},rc=function(a){r(a,"ARIA attribute cannot be empty.");r(Pa(oc,a),"No such ARIA attribute "+a);return"aria-"+a};var vc=function(a,b,c,d,e){if(!(y||A&&C("525")))return!0;if(B&&e)return tc(a);if(e&&!d)return!1;"number"==typeof b&&(b=uc(b));if(!c&&(17==b||18==b||B&&91==b))return!1;if(A&&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(y&&d&&b==a)return!1;switch(a){case 13:return!0;case 27:return!A}return tc(a)},tc=function(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||A&&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}},uc=function(a){if(z)a=wc(a);else if(B&&A)t:switch(a){case 93:a=91;break t}return a},wc=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};var N=function(a,b){J.call(this);a&&xc(this,a,b)};p(N,J);f=N.prototype;f.c=null;f.Ha=null;f.fb=null;f.Ia=null;f.r=-1;f.P=-1;f.Ra=!1;
var yc={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},zc={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},Ac=y||A&&C("525"),Bc=B&&z;
N.prototype.ac=function(a){A&&(17==this.r&&!a.ctrlKey||18==this.r&&!a.altKey||B&&91==this.r&&!a.metaKey)&&(this.P=this.r=-1);-1==this.r&&(a.ctrlKey&&17!=a.keyCode?this.r=17:a.altKey&&18!=a.keyCode?this.r=18:a.metaKey&&91!=a.keyCode&&(this.r=91));Ac&&!vc(a.keyCode,this.r,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.P=uc(a.keyCode),Bc&&(this.Ra=a.altKey))};N.prototype.bc=function(a){this.P=this.r=-1;this.Ra=a.altKey};
N.prototype.handleEvent=function(a){var b=a.n,c,d,e=b.altKey;y&&"keypress"==a.type?(c=this.P,d=13!=c&&27!=c?b.keyCode:0):A&&"keypress"==a.type?(c=this.P,d=0<=b.charCode&&63232>b.charCode&&tc(c)?b.charCode:0):Wa?(c=this.P,d=tc(c)?b.keyCode:0):(c=b.keyCode||this.P,d=b.charCode||0,Bc&&(e=this.Ra),B&&63==d&&224==c&&(c=191));var g=c=uc(c),h=b.keyIdentifier;c?63232<=c&&c in yc?g=yc[c]:25==c&&a.shiftKey&&(g=9):h&&h in zc&&(g=zc[h]);a=g==this.r;this.r=g;b=new Cc(g,d,a,b);b.altKey=e;this.dispatchEvent(b)};
N.prototype.a=function(){return this.c};var xc=function(a,b,c){a.Ia&&a.detach();a.c=b;a.Ha=H(a.c,"keypress",a,c);a.fb=H(a.c,"keydown",a.ac,c,a);a.Ia=H(a.c,"keyup",a.bc,c,a)};N.prototype.detach=function(){this.Ha&&(Sb(this.Ha),Sb(this.fb),Sb(this.Ia),this.Ia=this.fb=this.Ha=null);this.c=null;this.P=this.r=-1};var Cc=function(a,b,c,d){F.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};p(Cc,F);var O=function(a){if(a.classList)return a.classList;a=a.className;return m(a)&&a.match(/\S+/g)||[]},Dc=function(a,b){return a.classList?a.classList.contains(b):v(O(a),b)},Ec=function(a,b){a.classList?a.classList.add(b):Dc(a,b)||(a.className+=0<a.className.length?" "+b:b)},Fc=function(a,b){if(a.classList)u(b,function(b){Ec(a,b)});else{var c={};u(O(a),function(a){c[a]=!0});u(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}},Gc=function(a,b){a.classList?
a.classList.remove(b):Dc(a,b)&&(a.className=Ea(O(a),function(a){return a!=b}).join(" "))},Hc=function(a,b){a.classList?u(b,function(b){Gc(a,b)}):a.className=Ea(O(a),function(a){return!v(b,a)}).join(" ")};var Jc=function(a,b){if(!a)throw Error("Invalid class name "+a);if(!n(b))throw Error("Invalid decorator function "+b);Ic[a]=b},Kc={},Ic={};var P=function(a){this.sb=a};ba(P);P.prototype.da=function(){return this.sb};var Lc=function(a,b){a&&(a.tabIndex=b?0:-1)};f=P.prototype;f.q=function(a){return a.Xa().q("div",this.ma(a).join(" "))};f.C=function(a){return a};f.R=function(a){return"DIV"==a.tagName};f.L=function(a,b){b.id&&fc(a,b.id);var c=this.u(),d=!1,e=O(b);e&&u(e,function(b){b==c?d=!0:b&&this.ob(a,b,c)},this);d||Ec(b,c);Mc(a,this.C(b));return b};
f.ob=function(a,b,c){b==c+"-disabled"?a.ka(!1):b==c+"-horizontal"?Nc(a,"horizontal"):b==c+"-vertical"&&Nc(a,"vertical")};var Mc=function(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(1==c.nodeType){var e;t:{var g=c;e=void 0;r(g);for(var g=O(g),h=0,k=g.length;h<k;h++)if(e=g[h],e=e in Ic?Ic[e]():null)break t;e=null}e&&(e.c=c,a.isEnabled()||e.ka(!1),a.ya(e),e.L(c))}else c.nodeValue&&""!=oa(c.nodeValue)||b.removeChild(c);c=d}};
P.prototype.eb=function(a){a=a.a();r(a,"The container DOM element cannot be null.");ac(a,!0,z);y&&(a.hideFocus=!0);var b=this.da();b&&qc(a,b)};P.prototype.k=function(a){return a.a()};P.prototype.u=function(){return"goog-container"};P.prototype.ma=function(a){var b=this.u(),c=[b,"horizontal"==a.Q?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};var Q=function(){},Oc;ba(Q);var Pc={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};f=Q.prototype;f.da=function(){};f.q=function(a){return a.Xa().q("div",this.ma(a).join(" "),a.Ea)};f.C=function(a){return a};f.la=function(a,b,c){if(a=a.a?a.a():a){var d=[b];y&&!C("7")&&(d=Qc(O(a),b),d.push(b));(c?Fc:Hc)(a,d)}};f.R=function(){return!0};
f.L=function(a,b){b.id&&fc(a,b.id);var c=this.C(b);c&&c.firstChild?Rc(a,c.firstChild.nextSibling?Ha(c.childNodes):c.firstChild):a.Ea=null;var d=0,e=this.u(),g=this.u(),h=!1,k=!1,w=!1,D=Ha(O(b));u(D,function(a){h||a!=e?k||a!=g?d|=Sc(this,a):k=!0:(h=!0,g==e&&(k=!0));1==Sc(this,a)&&(Aa(c),tb(c)&&ub(c,!1))},this);a.h=d;h||(D.push(e),g==e&&(k=!0));k||D.push(g);var M=a.H;M&&D.push.apply(D,M);if(y&&!C("7")){var R=Qc(D);0<R.length&&(D.push.apply(D,R),w=!0)}if(!h||!k||M||w)b.className=D.join(" ");return b};
f.eb=function(a){lc(a)&&this.ua(a.a(),!0);a.isEnabled()&&this.ta(a,a.v())};var Tc=function(a,b,c){if(a=c||a.da())r(b,"The element passed as a first parameter cannot be null."),c=b.getAttribute("role")||null,a!=c&&qc(b,a)};f=Q.prototype;f.kb=function(a,b){sc(a,"label",b)};f.Oa=function(a,b){ac(a,!b,!y&&!Wa)};f.ua=function(a,b){this.la(a,this.u()+"-rtl",b)};f.O=function(a){var b;return a.m&32&&(b=a.k())?tb(b):!1};
f.ta=function(a,b){var c;if(a.m&32&&(c=a.k())){if(!b&&a.h&32){try{c.blur()}catch(d){}a.h&32&&a.pa(null)}tb(c)!=b&&ub(c,b)}};f.va=function(a,b){Zb(a,b);a&&sc(a,"hidden",!b)};f.w=function(a,b,c){var d=a.a();if(d){var e=Uc(this,b);e&&this.la(a,e,c);Vc(d,b,c)}};
var Vc=function(a,b,c){Oc||(Oc={1:"disabled",8:"selected",16:"checked",64:"expanded"});r(a,"The element passed as a first parameter cannot be null.");b=Oc[b];var d=a.getAttribute("role")||null;d&&(d=Pc[d]||b,b="checked"==b||"selected"==b?d:b);b&&sc(a,b,c)};Q.prototype.k=function(a){return a.a()};Q.prototype.u=function(){return"goog-control"};
Q.prototype.ma=function(a){var b=this.u(),c=[b],d=this.u();d!=b&&c.push(d);b=a.h;for(d=[];b;){var e=b&-b;d.push(Uc(this,e));b&=~e}c.push.apply(c,d);(a=a.H)&&c.push.apply(c,a);y&&!C("7")&&c.push.apply(c,Qc(c));return c};
var Qc=function(a,b){var c=[];b&&(a=a.concat([b]));u([],function(d){!Fa(d,ja(v,a))||b&&!v(d,b)||c.push(d.join("_"))});return c},Uc=function(a,b){a.Da||Wc(a);return a.Da[b]},Sc=function(a,b){a.Ib||(a.Da||Wc(a),a.Ib=Ra(a.Da));var c=parseInt(a.Ib[b],10);return isNaN(c)?0:c},Wc=function(a){var b=a.u(),c=!q(b.replace(/\xa0|\s/g," ")," ");r(c,"ControlRenderer has an invalid css class: '"+b+"'");a.Da={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};var S=function(a,b,c){K.call(this,c);if(!b){b=this.constructor;for(var d;b;){d=ia(b);if(d=Kc[d])break;b=b.g?b.g.constructor:null}b=d?n(d.ea)?d.ea():new d:null}this.b=b;this.Ea=void 0!==a?a:null;this.rb=null};p(S,K);f=S.prototype;f.Ea=null;f.h=0;f.m=39;f.Qb=255;f.$=0;f.o=!0;f.H=null;f.V=!0;f.za=!1;f.Gb=null;f.Bb=function(){return this.V};f.lb=function(a){this.f&&a!=this.V&&Xc(this,a);this.V=a};f.k=function(){return this.b.k(this)};f.Fa=function(){return this.ga||(this.ga=new N)};f.wb=function(){return this.b};
f.la=function(a,b){b?a&&(this.H?v(this.H,a)||this.H.push(a):this.H=[a],this.b.la(this,a,!0)):a&&this.H&&Ga(this.H,a)&&(0==this.H.length&&(this.H=null),this.b.la(this,a,!1))};f.q=function(){var a=this.b.q(this);this.c=a;Tc(this.b,a,this.Gb);this.za||this.b.Oa(a,!1);this.v()||this.b.va(a,!1)};f.kb=function(a){this.rb=a;var b=this.a();b&&this.b.kb(b,a)};f.C=function(){return this.b.C(this.a())};f.R=function(a){return this.b.R(a)};
f.Ta=function(a){this.c=a=this.b.L(this,a);Tc(this.b,a,this.Gb);this.za||this.b.Oa(a,!1);this.o="none"!=a.style.display};
f.G=function(){S.g.G.call(this);var a=this.b,b=this.c;r(b,"Can not call getElementStrict before rendering/decorating.");r(this);r(b);var c=this.rb;null!=c&&a.kb(b,c);this.v()||sc(b,"hidden",!this.v());this.isEnabled()||Vc(b,1,!this.isEnabled());this.m&8&&Vc(b,8,!!(this.h&8));this.m&16&&Vc(b,16,!!(this.h&16));this.m&64&&Vc(b,64,!!(this.h&64));this.b.eb(this);this.m&-2&&(this.Bb()&&Xc(this,!0),this.m&32&&(a=this.k()))&&(b=this.Fa(),xc(b,a),gc(this).d(b,"key",this.N).d(a,"focus",this.ra).d(a,"blur",
this.pa))};var Xc=function(a,b){var c=gc(a),d=a.a();b?(c.d(d,"mouseover",a.ab).d(d,"mousedown",a.sa).d(d,"mouseup",a.bb).d(d,"mouseout",a.$a),a.qa!=aa&&c.d(d,"contextmenu",a.qa),y&&c.d(d,"dblclick",a.xb)):(c.A(d,"mouseover",a.ab).A(d,"mousedown",a.sa).A(d,"mouseup",a.bb).A(d,"mouseout",a.$a),a.qa!=aa&&c.A(d,"contextmenu",a.qa),y&&c.A(d,"dblclick",a.xb))};S.prototype.ca=function(){S.g.ca.call(this);this.ga&&this.ga.detach();this.v()&&this.isEnabled()&&this.b.ta(this,!1)};
var Rc=function(a,b){a.Ea=b};f=S.prototype;f.ua=function(a){S.g.ua.call(this,a);var b=this.a();b&&this.b.ua(b,a)};f.Oa=function(a){this.za=a;var b=this.a();b&&this.b.Oa(b,a)};f.v=function(){return this.o};f.va=function(a,b){if(b||this.o!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.b.va(c,a);this.isEnabled()&&this.b.ta(this,a);this.o=a;return!0}return!1};f.isEnabled=function(){return!(this.h&1)};
f.ka=function(a){var b=this.getParent();b&&"function"==typeof b.isEnabled&&!b.isEnabled()||!T(this,1,!a)||(a||(this.setActive(!1),this.D(!1)),this.v()&&this.b.ta(this,a),this.w(1,!a,!0))};f.D=function(a){T(this,2,a)&&this.w(2,a)};f.setActive=function(a){T(this,4,a)&&this.w(4,a)};var Yc=function(a,b){T(a,8,b)&&a.w(8,b)},Zc=function(a,b){T(a,64,b)&&a.w(64,b)};S.prototype.w=function(a,b,c){c||1!=a?this.m&a&&b!=!!(this.h&a)&&(this.b.w(this,a,b),this.h=b?this.h|a:this.h&~a):this.ka(!b)};
var $c=function(a,b,c){if(a.f&&a.h&b&&!c)throw Error("Component already rendered");!c&&a.h&b&&a.w(b,!1);a.m=c?a.m|b:a.m&~b},U=function(a,b){return!!(a.Qb&b)&&!!(a.m&b)},T=function(a,b,c){return!!(a.m&b)&&!!(a.h&b)!=c&&(!(a.$&b)||a.dispatchEvent(dc(b,c)))&&!a.Ua};f=S.prototype;f.ab=function(a){(!a.relatedTarget||!nb(this.a(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&U(this,2)&&this.D(!0)};
f.$a=function(a){a.relatedTarget&&nb(this.a(),a.relatedTarget)||!this.dispatchEvent("leave")||(U(this,4)&&this.setActive(!1),U(this,2)&&this.D(!1))};f.qa=aa;f.sa=function(a){this.isEnabled()&&(U(this,2)&&this.D(!0),!Cb(a)||A&&B&&a.ctrlKey||(U(this,4)&&this.setActive(!0),this.b.O(this)&&this.k().focus()));this.za||!Cb(a)||A&&B&&a.ctrlKey||a.preventDefault()};f.bb=function(a){this.isEnabled()&&(U(this,2)&&this.D(!0),this.h&4&&ad(this,a)&&U(this,4)&&this.setActive(!1))};
f.xb=function(a){this.isEnabled()&&ad(this,a)};var ad=function(a,b){if(U(a,16)){var c=!(a.h&16);T(a,16,c)&&a.w(16,c)}U(a,8)&&Yc(a,!0);U(a,64)&&Zc(a,!(a.h&64));c=new E("action",a);b&&(c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.ib=b.ib);return a.dispatchEvent(c)};S.prototype.ra=function(){U(this,32)&&T(this,32,!0)&&this.w(32,!0)};S.prototype.pa=function(){U(this,4)&&this.setActive(!1);U(this,32)&&T(this,32,!1)&&this.w(32,!1)};
S.prototype.N=function(a){return this.v()&&this.isEnabled()&&this.Za(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};S.prototype.Za=function(a){return 13==a.keyCode&&ad(this,a)};if(!n(S))throw Error("Invalid component class "+S);if(!n(Q))throw Error("Invalid renderer class "+Q);var bd=ia(S);Kc[bd]=Q;Jc("goog-control",function(){return new S(null)});var V=function(a,b,c){K.call(this,c);this.b=b||P.ea();this.Q=a||"vertical"};p(V,K);f=V.prototype;f.Cb=null;f.ga=null;f.b=null;f.Q=null;f.o=!0;f.T=!0;f.Wa=!0;f.e=-1;f.j=null;f.ia=!1;f.Ob=!1;f.oc=!0;f.K=null;f.k=function(){return this.Cb||this.b.k(this)};f.Fa=function(){return this.ga||(this.ga=new N(this.k()))};f.wb=function(){return this.b};f.q=function(){this.c=this.b.q(this)};f.C=function(){return this.b.C(this.a())};f.R=function(a){return this.b.R(a)};
f.Ta=function(a){this.c=this.b.L(this,a);"none"==a.style.display&&(this.o=!1)};f.G=function(){V.g.G.call(this);jc(this,function(a){a.f&&cd(this,a)},this);var a=this.a();this.b.eb(this);this.va(this.o,!0);gc(this).d(this,"enter",this.Zb).d(this,"highlight",this.$b).d(this,"unhighlight",this.hc).d(this,"open",this.cc).d(this,"close",this.Xb).d(a,"mousedown",this.sa).d(eb(a),"mouseup",this.Yb).d(a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.Wb);this.O()&&dd(this,!0)};
var dd=function(a,b){var c=gc(a),d=a.k();b?c.d(d,"focus",a.ra).d(d,"blur",a.pa).d(a.Fa(),"key",a.N):c.A(d,"focus",a.ra).A(d,"blur",a.pa).A(a.Fa(),"key",a.N)};f=V.prototype;f.ca=function(){ed(this,-1);this.j&&Zc(this.j,!1);this.ia=!1;V.g.ca.call(this)};f.Zb=function(){return!0};
f.$b=function(a){var b=mc(this,a.target);if(-1<b&&b!=this.e){var c=L(this,this.e);c&&c.D(!1);this.e=b;c=L(this,this.e);this.ia&&c.setActive(!0);this.oc&&this.j&&c!=this.j&&(c.m&64?Zc(c,!0):Zc(this.j,!1))}b=this.a();r(b,"The DOM element for the container cannot be null.");null!=a.target.a()&&sc(b,"activedescendant",a.target.a().id)};f.hc=function(a){a.target==L(this,this.e)&&(this.e=-1);a=this.a();r(a,"The DOM element for the container cannot be null.");a.removeAttribute(rc("activedescendant"))};
f.cc=function(a){(a=a.target)&&a!=this.j&&a.getParent()==this&&(this.j&&Zc(this.j,!1),this.j=a)};f.Xb=function(a){a.target==this.j&&(this.j=null)};f.sa=function(a){this.T&&(this.ia=!0);var b=this.k();b&&tb(b)?b.focus():a.preventDefault()};f.Yb=function(){this.ia=!1};
f.Wb=function(a){var b;t:{b=a.target;if(this.K)for(var c=this.a();b&&b!==c;){var d=b.id;if(d in this.K){b=this.K[d];break t}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.sa(a);break;case "mouseup":b.bb(a);break;case "mouseover":b.ab(a);break;case "mouseout":b.$a(a);break;case "contextmenu":b.qa(a)}};f.ra=function(){};f.pa=function(){ed(this,-1);this.ia=!1;this.j&&Zc(this.j,!1)};
f.N=function(a){return this.isEnabled()&&this.v()&&(0!=kc(this)||this.Cb)&&this.Za(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
f.Za=function(a){var b=L(this,this.e);if(b&&"function"==typeof b.N&&b.N(a)||this.j&&this.j!=b&&"function"==typeof this.j.N&&this.j.N(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.O())this.k().blur();else return!1;break;case 36:fd(this);break;case 35:gd(this);break;case 38:if("vertical"==this.Q)hd(this);else return!1;break;case 37:if("horizontal"==this.Q)lc(this)?id(this):hd(this);else return!1;break;case 40:if("vertical"==this.Q)id(this);else return!1;
break;case 39:if("horizontal"==this.Q)lc(this)?hd(this):id(this);else return!1;break;default:return!1}return!0};var cd=function(a,b){var c=b.a(),c=c.id||(c.id=ec(b));a.K||(a.K={});a.K[c]=b};V.prototype.ya=function(a,b){Ca(a,S,"The child of a container must be a control");V.g.ya.call(this,a,b)};
V.prototype.Qa=function(a,b,c){Ca(a,S);a.$|=2;a.$|=64;!this.O()&&this.Ob||$c(a,32,!1);a.lb(!1);var d=a.getParent()==this?mc(this,a):-1;V.g.Qa.call(this,a,b,c);a.f&&this.f&&cd(this,a);a=d;-1==a&&(a=kc(this));a==this.e?this.e=Math.min(kc(this)-1,b):a>this.e&&b<=this.e?this.e++:a<this.e&&b>this.e&&this.e--};
V.prototype.removeChild=function(a,b){a=m(a)?hc(this,a):a;Ca(a,S);if(a){var c=mc(this,a);-1!=c&&(c==this.e?(a.D(!1),this.e=-1):c<this.e&&this.e--);var d=a.a();d&&d.id&&this.K&&(c=this.K,d=d.id,d in c&&delete c[d])}a=V.g.removeChild.call(this,a,b);a.lb(!0);return a};var Nc=function(a,b){if(a.a())throw Error("Component already rendered");a.Q=b};f=V.prototype;f.v=function(){return this.o};
f.va=function(a,b){if(b||this.o!=a&&this.dispatchEvent(a?"show":"hide")){this.o=a;var c=this.a();c&&(Zb(c,a),this.O()&&Lc(this.k(),this.T&&this.o),b||this.dispatchEvent(this.o?"aftershow":"afterhide"));return!0}return!1};f.isEnabled=function(){return this.T};f.ka=function(a){this.T!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.T=!0,jc(this,function(a){a.Lb?delete a.Lb:a.ka(!0)})):(jc(this,function(a){a.isEnabled()?a.ka(!1):a.Lb=!0}),this.ia=this.T=!1),this.O()&&Lc(this.k(),a&&this.o))};
f.O=function(){return this.Wa};f.ta=function(a){a!=this.Wa&&this.f&&dd(this,a);this.Wa=a;this.T&&this.o&&Lc(this.k(),a)};var ed=function(a,b){var c=L(a,b);c?c.D(!0):-1<a.e&&L(a,a.e).D(!1)};V.prototype.D=function(a){ed(this,mc(this,a))};
var fd=function(a){jd(a,function(a,c){return(a+1)%c},kc(a)-1)},gd=function(a){jd(a,function(a,c){a--;return 0>a?c-1:a},0)},id=function(a){jd(a,function(a,c){return(a+1)%c},a.e)},hd=function(a){jd(a,function(a,c){a--;return 0>a?c-1:a},a.e)},jd=function(a,b,c){c=0>c?mc(a,a.j):c;var d=kc(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=L(a,c);if(g&&g.v()&&g.isEnabled()&&g.m&2){a.mb(c);break}e++;c=b.call(a,c,d)}};V.prototype.mb=function(a){ed(this,a)};var kd=function(){};p(kd,Q);ba(kd);f=kd.prototype;f.u=function(){return"goog-tab"};f.da=function(){return"tab"};f.q=function(a){var b=kd.g.q.call(this,a);(a=a.Ya())&&this.pb(b,a);return b};f.L=function(a,b){b=kd.g.L.call(this,a,b);var c=this.Ya(b);c&&(a.Kb=c);a.h&8&&(c=a.getParent())&&n(c.Z)&&(a.w(8,!1),c.Z(a));return b};f.Ya=function(a){return a.title||""};f.pb=function(a,b){a&&(a.title=b||"")};var ld=function(a,b,c){S.call(this,a,b||kd.ea(),c);$c(this,8,!0);this.$|=9};p(ld,S);ld.prototype.Ya=function(){return this.Kb};ld.prototype.pb=function(a){this.wb().pb(this.a(),a);this.Kb=a};Jc("goog-tab",function(){return new ld(null)});var W=function(){this.sb="tablist"};p(W,P);ba(W);W.prototype.u=function(){return"goog-tab-bar"};W.prototype.ob=function(a,b,c){this.Db||(this.Ca||md(this),this.Db=Ra(this.Ca));var d=this.Db[b];d?(Nc(a,nd(d)),a.Eb=d):W.g.ob.call(this,a,b,c)};W.prototype.ma=function(a){var b=W.g.ma.call(this,a);this.Ca||md(this);b.push(this.Ca[a.Eb]);return b};var md=function(a){var b=a.u();a.Ca={top:b+"-top",bottom:b+"-bottom",start:b+"-start",end:b+"-end"}};var X=function(a,b,c){a=a||"top";Nc(this,nd(a));this.Eb=a;V.call(this,this.Q,b||W.ea(),c);od(this)};p(X,V);f=X.prototype;f.Pb=!0;f.I=null;f.G=function(){X.g.G.call(this);od(this)};f.removeChild=function(a,b){pd(this,a);return X.g.removeChild.call(this,a,b)};f.mb=function(a){X.g.mb.call(this,a);this.Pb&&this.Z(L(this,a))};f.Z=function(a){a?Yc(a,!0):this.I&&Yc(this.I,!1)};
var pd=function(a,b){if(b&&b==a.I){for(var c=mc(a,b),d=c-1;b=L(a,d);d--)if(b.v()&&b.isEnabled()){a.Z(b);return}for(c+=1;b=L(a,c);c++)if(b.v()&&b.isEnabled()){a.Z(b);return}a.Z(null)}};f=X.prototype;f.fc=function(a){this.I&&this.I!=a.target&&Yc(this.I,!1);this.I=a.target};f.gc=function(a){a.target==this.I&&(this.I=null)};f.dc=function(a){pd(this,a.target)};f.ec=function(a){pd(this,a.target)};f.ra=function(){L(this,this.e)||this.D(this.I||L(this,0))};
var od=function(a){gc(a).d(a,"select",a.fc).d(a,"unselect",a.gc).d(a,"disable",a.dc).d(a,"hide",a.ec)},nd=function(a){return"start"==a||"end"==a?"vertical":"horizontal"};Jc("goog-tab-bar",function(){return new X});var Y=function(a,b,c,d,e){function g(a){a&&(a.tabIndex=0,qc(a,h.da()),Ec(a,"goog-zippy-header"),qd(h,a),a&&h.jc.d(a,"keydown",h.nc))}J.call(this);this.B=e||fb();this.J=this.B.a(a)||null;this.ba=this.B.a(d||null);this.aa=(this.Ka=n(b)?b:null)||!b?null:this.B.a(b);this.i=1==c;void 0!==c||this.Ka||(this.ba?this.i="none"!=this.ba.style.display:this.J&&(this.i=Dc(this.J,"goog-zippy-expanded")));this.jc=new I(this);this.Fb=new I(this);var h=this;g(this.J);g(this.ba);this.Y(this.i)};p(Y,J);f=Y.prototype;
f.V=!0;f.da=function(){return"tab"};f.C=function(){return this.aa};f.toggle=function(){this.Y(!this.i)};f.Y=function(a){this.aa?Zb(this.aa,a):a&&this.Ka&&(this.aa=this.Ka());this.aa&&Ec(this.aa,"goog-zippy-content");if(this.ba)Zb(this.J,!a),Zb(this.ba,a);else if(this.J){var b=this.J;a?Ec(b,"goog-zippy-expanded"):Gc(b,"goog-zippy-expanded");b=this.J;a?Gc(b,"goog-zippy-collapsed"):Ec(b,"goog-zippy-collapsed");sc(this.J,"expanded",a)}this.i=a;this.dispatchEvent(new rd("toggle",this))};f.Bb=function(){return this.V};
f.lb=function(a){this.V!=a&&((this.V=a)?(qd(this,this.J),qd(this,this.ba)):this.Fb.jb())};var qd=function(a,b){b&&a.Fb.d(b,"click",a.mc)};Y.prototype.nc=function(a){if(13==a.keyCode||32==a.keyCode)this.toggle(),this.dispatchEvent(new E("action",this)),a.preventDefault(),a.stopPropagation()};Y.prototype.mc=function(){this.toggle();this.dispatchEvent(new E("action",this))};var rd=function(a,b){E.call(this,a,b)};p(rd,E);var td=function(a,b){this.qb=[];for(var c=hb("span","ae-zippy",gb(document,a)),d=0,e;e=c[d];d++){var g=e.parentNode.parentNode.parentNode;if(void 0!=g.nextElementSibling)g=g.nextElementSibling;else for(g=g.nextSibling;g&&1!=g.nodeType;)g=g.nextSibling;e=new Y(e,g,!1);this.qb.push(e)}this.Tb=new sd(this.qb,gb(document,b))};td.prototype.Ub=function(){return this.Tb};td.prototype.Vb=function(){return this.qb};
var sd=function(a,b){this.xa=a;if(this.xa.length)for(var c=0,d;d=this.xa[c];c++)H(d,"toggle",this.sc,!1,this);this.La=0;this.i=!1;c="ae-toggle ae-plus ae-action";this.xa.length||(c+=" ae-disabled");this.M=lb("span",{className:c},"Expand All");H(this.M,"click",this.Rb,!1,this);b&&b.appendChild(this.M)};sd.prototype.Rb=function(){this.xa.length&&this.Y(!this.i)};
sd.prototype.sc=function(a){a=a.currentTarget;a.i?this.La+=1:--this.La;a.i!=this.i&&(a.i?(this.i=!0,ud(this,!0)):0==this.La&&(this.i=!1,ud(this,!1)))};sd.prototype.Y=function(a){this.i=a;a=0;for(var b;b=this.xa[a];a++)b.i!=this.i&&b.Y(this.i);ud(this)};
var ud=function(a,b){(void 0!==b?b:a.i)?(Na(a.M,"ae-plus"),La(a.M,"ae-minus"),ob(a.M,"Collapse All")):(Na(a.M,"ae-minus"),La(a.M,"ae-plus"),ob(a.M,"Expand All"))},vd=function(a){this.rc=a;this.Jb={};var b,c=lb("div",{},b=lb("div",{id:"ae-stats-details-tabs",className:"goog-tab-bar goog-tab-bar-top"}),lb("div",{className:"goog-tab-bar-clear"}),a=lb("div",{id:"ae-stats-details-tabs-content",className:"goog-tab-content"})),d=new X;d.L(b);H(d,"select",this.tb,!1,this);H(d,"unselect",this.tb,!1,this);
b=0;for(var e;e=this.rc[b];b++)if(e=gb(document,"ae-stats-details-"+e)){var g=hb("h2",null,e)[0],h;h=g;var k=void 0;cb&&"innerText"in h?k=h.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(k=[],vb(h,k,!0),k=k.join(""));k=k.replace(/ \xAD /g," ").replace(/\xAD/g,"");k=k.replace(/\u200B/g,"");cb||(k=k.replace(/ +/g," "));" "!=k&&(k=k.replace(/^\s*/,""));h=k;g&&g.parentNode&&g.parentNode.removeChild(g);g=new ld(h);this.Jb[ia(g)]=e;d.ya(g,!0);a.appendChild(e);0==b?d.Z(g):Zb(e,!1)}gb(document,"bd").appendChild(c)};
vd.prototype.tb=function(a){var b=this.Jb[ia(a.target)];Zb(b,"select"==a.type)};ka("ae.Stats.Details.Tabs",vd);ka("goog.ui.Zippy",Y);Y.prototype.setExpanded=Y.prototype.Y;ka("ae.Stats.MakeZippys",td);td.prototype.getExpandCollapse=td.prototype.Ub;td.prototype.getZippys=td.prototype.Vb;sd.prototype.setExpanded=sd.prototype.Y;var Z=function(){this.Sa=[];this.gb=[]},wd=[[5,.2,1],[6,.2,1.2],[5,.25,1.25],[6,.25,1.5],[4,.5,2],[5,.5,2.5],[6,.5,3],[4,1,4],[5,1,5],[6,1,6],[4,2,8],[5,2,10]],xd=function(a){if(0>=a)return[2,.5,1];for(var b=1;1>a;)a*=10,b/=10;for(;10<=a;)a/=10,b*=10;for(var c=0;c<wd.length;c++)if(a<=wd[c][2])return[wd[c][0],wd[c][1]*b,wd[c][2]*b];return[5,2*b,10*b]};Z.prototype.Pa="stats/static/pix.gif";Z.prototype.t="ae-stats-gantt-";Z.prototype.cb=0;Z.prototype.write=function(a){this.gb.push(a)};
var yd=function(a,b,c,d){a.write('<tr class="'+a.t+'axisrow"><td width="20%"></td><td>');a.write('<div class="'+a.t+'axis">');for(var e=0;e<=b;e++)a.write('<img class="'+a.t+'tick" src="'+a.Pa+'" alt="" '),a.write('style="left:'+e*c*d+'%"\n>'),a.write('<span class="'+a.t+'scale" style="left:'+e*c*d+'%">'),a.write("&nbsp;"+e*c+"</span>");a.write("</div></td></tr>\n")};
Z.prototype.Sb=function(){this.gb=[];var a=xd(this.cb),b=a[0],c=a[1],a=100/a[2];this.write('<table class="'+this.t+'table">\n');yd(this,b,c,a);for(var d=0;d<this.Sa.length;d++){var e=this.Sa[d];this.write('<tr class="'+this.t+'datarow"><td width="20%">');0<e.label.length&&(0<e.ha.length&&this.write('<a class="'+this.t+'link" href="'+e.ha+'">'),this.write(e.label),0<e.ha.length&&this.write("</a>"));this.write("</td>\n<td>");this.write('<div class="'+this.t+'container">');0<e.ha.length&&this.write('<a class="'+
this.t+'link" href="'+e.ha+'"\n>');this.write('<img class="'+this.t+'bar" src="'+this.Pa+'" alt="" ');this.write('style="left:'+e.start*a+"%;width:"+e.duration*a+'%;min-width:1px"\n>');0<e.Va&&(this.write('<img class="'+this.t+'extra" src="'+this.Pa+'" alt="" '),this.write('style="left:'+e.start*a+"%;width:"+e.Va*a+'%"\n>'));0<e.zb.length&&(this.write('<span class="'+this.t+'inline" style="left:'+(e.start+Math.max(e.duration,e.Va))*a+'%">&nbsp;'),this.write(e.zb),this.write("</span>"));0<e.ha.length&&
this.write("</a>");this.write("</div></td></tr>\n")}yd(this,b,c,a);this.write("</table>\n");return this.gb.join("")};Z.prototype.Nb=function(a,b,c,d,e,g){this.cb=Math.max(this.cb,Math.max(b+c,b+d));this.Sa.push({label:a,start:b,duration:c,Va:d,zb:e,ha:g})};ka("Gantt",Z);Z.prototype.add_bar=Z.prototype.Nb;Z.prototype.draw=Z.prototype.Sb;})();
