// For legal notices concerning this file, see:
// http://www.pleft.com/legal-notices

function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function ca(a){return function(){return this[a]}}function g(a){return function(){return a}}var n,da=da||{},o=this;function ea(a,b,c){a=a.split(".");c=c||o;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})}function fa(a,b){a=a.split(".");b=b||o;for(var c;c=a.shift();)if(b[c])b=b[c];else return null;return b}
function p(){}function ga(a){a.P=function(){return a.Nd||(a.Nd=new a)}}
function ha(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[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 q(a){return ha(a)=="array"}function ia(a){var b=ha(a);return b=="array"||b=="object"&&typeof a.length=="number"}function r(a){return typeof a=="string"}function ja(a){return ha(a)=="function"}function ka(a){a=ha(a);return a=="object"||a=="array"||a=="function"}function t(a){if(a.hasOwnProperty&&a.hasOwnProperty(la))return a[la];a[la]||(a[la]=++ma);return a[la]}
var la="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),ma=0;function na(a){var b=ha(a);if(b=="object"||b=="array"){if(a.aa)return a.aa.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=na(a[c]);return b}return a}function pa(a,b){var c=b||o;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}}
function qa(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 ra=Date.now||function(){return+new Date};function u(a,b){function c(){}c.prototype=b.prototype;a.a=b.prototype;a.prototype=new c;a.prototype.constructor=a};var v=Array.prototype,sa=v.indexOf?function(a,b,c){return v.indexOf.call(a,b,c)}:function(a,b,c){c=c==null?0:c<0?Math.max(0,a.length+c):c;if(r(a)){if(!r(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=v.forEach?function(a,b,c){v.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ua=v.map?function(a,b,c){return v.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],
f=0,h=r(a)?a.split(""):a,i=0;i<d;i++)if(i in h)e[f++]=b.call(c,h[i],i,a);return e},va=v.every?function(a,b,c){return v.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return false;return true};function wa(a,b){return sa(a,b)>=0}function xa(a,b){b=sa(a,b);var c;if(c=b>=0)v.splice.call(a,b,1);return c}function ya(a){if(q(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}
function za(a){return v.splice.apply(a,Aa(arguments,1))}function Aa(a,b,c){return arguments.length<=2?v.slice.call(a,b):v.slice.call(a,b,c)};var Ba;function Ca(a){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]}function w(a){var b=Ca(a),c;c=Aa(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!wa(b,c[e])){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c}function Da(a){var b=Ca(a),c;c=Aa(arguments,1);for(var d=0,e=0;e<b.length;e++)if(wa(c,b[e])){za(b,e--,1);d++}c=d==c.length;a.className=b.join(" ");return c};function x(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0}x.prototype.aa=function(){return new x(this.x,this.y)};x.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function Ea(a,b){return new x(a.x-b.x,a.y-b.y)};function y(a,b){this.width=a;this.height=b}y.prototype.aa=function(){return new y(this.width,this.height)};y.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};y.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};y.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Fa(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ga(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b}function Ha(a){var b=[],c=0;for(var d in a)b[c++]=d;return b}function Ia(a){for(var b in a)return false;return true}function Ja(a,b){var c;if(c=b in a)delete a[b];return c}function Ka(a,b,c){if(b in a)return a[b];return c}var La=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
function Ma(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<La.length;e++){b=La[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}}function Na(){var a=arguments.length;if(a==1&&q(arguments[0]))return Na.apply(null,arguments[0]);if(a%2)throw Error("Uneven number of arguments");for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};function Oa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Pa(a,b){if(b)return a.replace(Qa,"&amp;").replace(Ra,"&lt;").replace(Sa,"&gt;").replace(Ta,"&quot;");else{if(!Ua.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Qa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Ra,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Sa,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Ta,"&quot;");return a}}var Qa=/&/g,Ra=/</g,Sa=/>/g,Ta=/\"/g,Ua=/[&<>\"]/;function Va(a,b){return a.indexOf(b)!=-1}
function Wa(a,b){var c=0;a=Oa(String(a)).split(".");b=Oa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"",i=new RegExp("(\\d*)(\\D*)","g"),j=new RegExp("(\\d*)(\\D*)","g");do{var k=i.exec(f)||["","",""],m=j.exec(h)||["","",""];if(k[0].length==0&&m[0].length==0)break;c=k[1].length==0?0:parseInt(k[1],10);var s=m[1].length==0?0:parseInt(m[1],10);c=Xa(c,s)||Xa(k[2].length==0,m[2].length==0)||Xa(k[2],m[2])}while(c==0)}return c}
function Xa(a,b){if(a<b)return-1;else if(a>b)return 1;return 0}ra();var Ya,Za,$a,ab,bb,cb,db,eb,fb;function gb(){return o.navigator?o.navigator.userAgent:null}function hb(){return o.navigator}(function(){bb=ab=$a=Za=Ya=false;var a;if(a=gb()){var b=hb();Ya=a.indexOf("Opera")==0;Za=!Ya&&a.indexOf("MSIE")!=-1;ab=($a=!Ya&&a.indexOf("WebKit")!=-1)&&a.indexOf("Mobile")!=-1;bb=!Ya&&!$a&&b.product=="Gecko"}})();var z=Ya,B=Za,C=bb,D=$a,ib=ab,jb=function(){var a=hb();return a&&a.platform||""}();
(function(){cb=Va(jb,"Mac");db=Va(jb,"Win");eb=Va(jb,"Linux");fb=!!hb()&&Va(hb().appVersion||"","X11")})();var kb=cb,lb=fb,mb=function(){var a="",b;if(z&&o.opera){a=o.opera.version;a=typeof a=="function"?a():a}else{if(C)b=/rv\:([^\);]+)(\)|;)/;else if(B)b=/MSIE\s+([^\);]+)(\)|;)/;else if(D)b=/WebKit\/(\S+)/;if(b)a=(a=b.exec(gb()))?a[1]:""}return a}(),nb={};function E(a){return nb[a]||(nb[a]=Wa(mb,a)>=0)};function ob(a){return a?new pb(qb(a)):Ba||(Ba=new pb)}
function rb(a,b,c){var d=document;c=c||d;a=a&&a!="*"?a.toLowerCase():"";if(c.querySelectorAll&&(a||b)&&(!D||sb(d)||E("528")))b=c.querySelectorAll(a+(b?"."+b:""));else if(b&&c.getElementsByClassName){d=c.getElementsByClassName(b);if(a){c={};for(var e=0,f=0,h;h=d[f];f++)if(a==h.nodeName.toLowerCase())c[e++]=h;c.length=e;b=c}else b=d}else{d=c.getElementsByTagName(a||"*");if(b){c={};for(f=e=0;h=d[f];f++){a=h.className;if(typeof a.split=="function"&&wa(a.split(" "),b))c[e++]=h}c.length=e;b=c}else b=d}return b}
var G=rb;function tb(a,b){Fa(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in ub)a.setAttribute(ub[d],c);else a[d]=c})}var ub={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};function vb(a){return!D&&sb(a)?a.documentElement:a.body}function H(){return wb(document,arguments)}
function wb(a,b){var c=b[0],d=b[1];if(B&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Pa(d.name),'"');if(d.type){c.push(' type="',Pa(d.type),'"');d=na(d);delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(r(d))e.className=d;else tb(e,d);if(b.length>2){d=function(h){if(h)e.appendChild(r(h)?a.createTextNode(h):h)};for(c=2;c<b.length;c++){var f=b[c];ia(f)&&!(ka(f)&&f.nodeType>0)?ta(xb(f)?ya(f):f,d):d(f)}}return e}function sb(a){return a.compatMode=="CSS1Compat"}
function yb(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function zb(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 qb(a){return a.nodeType==9?a:a.ownerDocument||a.document}var Ab={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Bb={IMG:" ",BR:"\n"};
function Cb(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return typeof a=="number"&&a>=0}return false}function Db(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")}function Eb(a){if(B&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Fb(a,b,true);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a}
function Fb(a,b,c){if(!(a.nodeName in Ab))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 Bb)b.push(Bb[a.nodeName]);else for(a=a.firstChild;a;){Fb(a,b,c);a=a.nextSibling}}function xb(a){if(a&&typeof a.length=="number")if(ka(a))return typeof a.item=="function"||typeof a.item=="string";else if(ja(a))return typeof a.item=="function";return false}
function Gb(a,b,c){return Hb(a,function(d){return(!b||d.nodeName==b)&&(!c||wa(Ca(d),c))},true)}function Hb(a,b,c,d){if(!c)a=a.parentNode;c=d==null;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function pb(a){this.t=a||o.document||document}pb.prototype.K=ob;function Ib(a){return a.t}pb.prototype.c=function(a){return r(a)?this.t.getElementById(a):a};pb.prototype.l=function(){return wb(this.t,arguments)};pb.prototype.createElement=function(a){return this.t.createElement(a)};
pb.prototype.createTextNode=function(a){return this.t.createTextNode(a)};function Jb(a){return sb(a.t)}function Kb(a){a=vb(a.t);return a=new x(a.scrollLeft,a.scrollTop)}pb.prototype.appendChild=function(a,b){a.appendChild(b)};pb.prototype.contains=zb;function Lb(){}Lb.prototype.Zb=false;Lb.prototype.F=function(){if(!this.Zb){this.Zb=true;this.f()}};Lb.prototype.f=aa();function Mb(a,b){this.type=a;this.currentTarget=this.target=b}u(Mb,Lb);n=Mb.prototype;n.f=function(){delete this.type;delete this.target;delete this.currentTarget};n.ka=false;n.Oa=true;n.stopPropagation=function(){this.ka=true};n.preventDefault=function(){this.Oa=false};function I(a,b){a&&this.$a(a,b)}u(I,Mb);var Nb=[1,4,2];n=I.prototype;n.target=null;n.relatedTarget=null;n.offsetX=0;n.offsetY=0;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.button=0;n.keyCode=0;n.charCode=0;n.ctrlKey=false;n.altKey=false;n.shiftKey=false;n.metaKey=false;n.O=null;
n.$a=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(C)try{b=b.nodeName&&b}catch(d){b=null}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?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.O=a;delete this.Oa;delete this.ka};function Ob(a,b){return B?a.type=="click"?b==0:!!(a.O.button&Nb[b]):a.O.button==b}I.prototype.stopPropagation=function(){this.ka=true;if(this.O.stopPropagation)this.O.stopPropagation();else this.O.cancelBubble=true};var Pb=B&&!E("8");
I.prototype.preventDefault=function(){this.Oa=false;var a=this.O;if(a.preventDefault)a.preventDefault();else{a.returnValue=false;if(Pb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};I.prototype.f=function(){I.a.f.call(this);this.relatedTarget=this.currentTarget=this.target=this.O=null};function Qb(){}var Rb=0;n=Qb.prototype;n.W=0;n.Na=false;n.Yb=false;n.$a=function(a,b,c,d,e,f){if(ja(a))this.Rc=true;else if(a&&a.handleEvent&&ja(a.handleEvent))this.Rc=false;else throw Error("Invalid listener argument");this.La=a;this.fd=b;this.src=c;this.type=d;this.capture=!!e;this.xb=f;this.Yb=false;this.W=++Rb;this.Na=false};n.handleEvent=function(a){if(this.Rc)return this.La.call(this.xb||this.src,a);return this.La.handleEvent.call(this.La,a)};function J(a,b){this.Xc=b;this.qa=[];if(a>this.Xc)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.qa.push(this.ba?this.ba():{})}u(J,Lb);J.prototype.ba=null;J.prototype.Hc=null;function Sb(a){if(a.qa.length)return a.qa.pop();return a.ba?a.ba():{}}function Tb(a,b){a.qa.length<a.Xc?a.qa.push(b):Ub(a,b)}function Ub(a,b){if(a.Hc)a.Hc(b);else if(ja(b.F))b.F();else for(var c in b)delete b[c]}
J.prototype.f=function(){J.a.f.call(this);for(var a=this.qa;a.length;)Ub(this,a.pop());delete this.qa};var Vb,Wb;(function(){Wb=(Vb="ScriptEngine"in o&&o.ScriptEngine()=="JScript")?o.ScriptEngineMajorVersion()+"."+o.ScriptEngineMinorVersion()+"."+o.ScriptEngineBuildVersion():"0"})();var Xb=Vb,Zb=Wb;var $b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc;
(function(){var a=Xb&&!(Wa(Zb,"5.7")>=0);function b(){return{w:0,R:0}}function c(){return[]}var d;ec=function(l){d=l};function e(){function l(A){return d.call(l.src,l.W,A)}return l}function f(){return new Qb}function h(){return new I}if(a){$b=function(){return Sb(i)};ac=function(l){Tb(i,l)};bc=function(){return Sb(j)};cc=function(l){Tb(j,l)};dc=function(){return Sb(k)};fc=function(){Tb(k,e())};gc=function(){return Sb(m)};hc=function(l){Tb(m,l)};ic=function(){return Sb(s)};jc=function(l){Tb(s,l)};
var i=new J(0,600);i.ba=b;var j=new J(0,600);j.ba=c;var k=new J(0,600);k.ba=e;var m=new J(0,600);m.ba=f;var s=new J(0,600);s.ba=h}else{$b=b;ac=p;bc=c;cc=p;dc=e;fc=p;gc=f;hc=p;ic=h;jc=p}})();var kc={},K={},lc={},mc={};
function M(a,b,c,d,e){if(b)if(q(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return null}else{d=!!d;var h=K;b in h||(h[b]=$b());h=h[b];if(!(d in h)){h[d]=$b();h.w++}h=h[d];var i=t(a),j;h.R++;if(h[i]){j=h[i];for(f=0;f<j.length;f++){h=j[f];if(h.La==c&&h.xb==e){if(h.Na)break;return j[f].W}}}else{j=h[i]=bc();h.w++}f=dc();f.src=a;h=gc();h.$a(c,f,a,b,d,e);c=h.W;f.W=c;j.push(h);kc[c]=h;lc[i]||(lc[i]=bc());lc[i].push(h);if(a.addEventListener){if(a==o||!a.Gc)a.addEventListener(b,f,d)}else a.attachEvent(nc(b),
f);return c}else throw Error("Invalid event type");}function oc(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)oc(a,b[f],c,d,e);return null}a=M(a,b,c,d,e);kc[a].Yb=true;return a}function pc(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return null}d=!!d;a=qc(a,b,d);if(!a)return false;for(f=0;f<a.length;f++)if(a[f].La==c&&a[f].capture==d&&a[f].xb==e)return N(a[f].W);return false}
function N(a){if(!kc[a])return false;var b=kc[a];if(b.Na)return false;var c=b.src,d=b.type,e=b.fd,f=b.capture;if(c.removeEventListener){if(c==o||!c.Gc)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(nc(d),e);c=t(c);e=K[d][f][c];if(lc[c]){var h=lc[c];xa(h,b);h.length==0&&delete lc[c]}b.Na=true;e.ad=true;rc(d,f,c,e);delete kc[a];return true}
function rc(a,b,c,d){if(!d.Eb)if(d.ad){for(var e=0,f=0;e<d.length;e++)if(d[e].Na){var h=d[e].fd;h.src=null;fc(h);hc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.ad=false;if(f==0){cc(d);delete K[a][b][c];K[a][b].w--;if(K[a][b].w==0){ac(K[a][b]);delete K[a][b];K[a].w--}if(K[a].w==0){ac(K[a]);delete K[a]}}}}
function sc(a,b,c){var d=0,e=a==null,f=b==null,h=c==null;c=!!c;if(e)Fa(lc,function(j){for(var k=j.length-1;k>=0;k--){var m=j[k];if((f||b==m.type)&&(h||c==m.capture)){N(m.W);d++}}});else{a=t(a);if(lc[a]){a=lc[a];for(e=a.length-1;e>=0;e--){var i=a[e];if((f||b==i.type)&&(h||c==i.capture)){N(i.W);d++}}}}return d}function qc(a,b,c){var d=K;if(b in d){d=d[b];if(c in d){d=d[c];a=t(a);if(d[a])return d[a]}}return null}function nc(a){if(a in mc)return mc[a];return mc[a]="on"+a}
function tc(a,b,c,d,e){var f=1;b=t(b);if(a[b]){a.R--;a=a[b];if(a.Eb)a.Eb++;else a.Eb=1;try{for(var h=a.length,i=0;i<h;i++){var j=a[i];if(j&&!j.Na)f&=uc(j,e)!==false}}finally{a.Eb--;rc(c,d,b,a)}}return Boolean(f)}function uc(a,b){b=a.handleEvent(b);a.Yb&&N(a.W);return b}
ec(function(a,b){if(!kc[a])return true;a=kc[a];var c=a.type,d=K;if(!(c in d))return true;d=d[c];var e,f;if(B){e=b||fa("window.event");b=true in d;var h=false in d;if(b){if(e.keyCode<0||e.returnValue!=undefined)return true;a:{var i=false;if(e.keyCode==0)try{e.keyCode=-1;break a}catch(j){i=true}if(i||e.returnValue==undefined)e.returnValue=true}}i=ic();i.$a(e,this);e=true;try{if(b){for(var k=bc(),m=i.currentTarget;m;m=m.parentNode)k.push(m);f=d[true];f.R=f.w;for(var s=k.length-1;!i.ka&&s>=0&&f.R;s--){i.currentTarget=
k[s];e&=tc(f,k[s],c,true,i)}if(h){f=d[false];f.R=f.w;for(s=0;!i.ka&&s<k.length&&f.R;s++){i.currentTarget=k[s];e&=tc(f,k[s],c,false,i)}}}else e=uc(a,i)}finally{if(k){k.length=0;cc(k)}i.F();jc(i)}return e}f=new I(b,this);try{e=uc(a,f)}finally{f.F()}return e});function O(){}u(O,Lb);n=O.prototype;n.Gc=true;n.Ib=null;n.uc=ba("Ib");n.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};n.removeEventListener=function(a,b,c,d){pc(this,a,b,c,d)};
n.dispatchEvent=function(a){a=a;if(r(a))a=new Mb(a,this);else if(a instanceof Mb)a.target=a.target||this;else{var b=a;a=new Mb(a.type,this);Ma(a,b)}b=1;var c,d=a.type,e=K;if(d in e){e=e[d];d=true in e;var f;if(d){c=[];for(f=this;f;f=f.Ib)c.push(f);f=e[true];f.R=f.w;for(var h=c.length-1;!a.ka&&h>=0&&f.R;h--){a.currentTarget=c[h];b&=tc(f,c[h],a.type,true,a)&&a.Oa!=false}}if(false in e){f=e[false];f.R=f.w;if(d)for(h=0;!a.ka&&h<c.length&&f.R;h++){a.currentTarget=c[h];b&=tc(f,c[h],a.type,false,a)&&a.Oa!=
false}else for(c=this;!a.ka&&c&&f.R;c=c.Ib){a.currentTarget=c;b&=tc(f,c,a.type,false,a)&&a.Oa!=false}}a=Boolean(b)}else a=true;return a};n.f=function(){O.a.f.call(this);sc(this);this.Ib=null};var vc=o.window;function wc(a){if(typeof a.vb=="function")return a.vb();if(r(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ga(a)}function xc(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ia(a)||r(a))ta(a,b,c);else{var d;if(typeof a.tb=="function")d=a.tb();else if(typeof a.vb!="function")if(ia(a)||r(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f);d=d}else d=Ha(a);else d=void 0;e=wc(a);f=e.length;for(var h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};var yc="StopIteration"in o?o.StopIteration:Error("StopIteration");function zc(){}zc.prototype.next=function(){throw yc;};zc.prototype.od=function(){return this};function P(a){this.Q={};this.g=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.Pa(arguments[c],arguments[c+1])}else a&&this.pd(a)}P.prototype.w=0;P.prototype.lb=0;P.prototype.vb=function(){Ac(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.Q[this.g[b]]);return a};P.prototype.tb=function(){Ac(this);return this.g.concat()};function Bc(a,b){return Cc(a.Q,b)}P.prototype.clear=function(){this.Q={};this.lb=this.w=this.g.length=0};
P.prototype.remove=function(a){if(Cc(this.Q,a)){delete this.Q[a];this.w--;this.lb++;this.g.length>2*this.w&&Ac(this);return true}return false};function Ac(a){if(a.w!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];if(Cc(a.Q,d))a.g[c++]=d;b++}a.g.length=c}if(a.w!=a.g.length){var e={};for(c=b=0;b<a.g.length;){d=a.g[b];if(!Cc(e,d)){a.g[c++]=d;e[d]=1}b++}a.g.length=c}}function Dc(a,b,c){if(Cc(a.Q,b))return a.Q[b];return c}
P.prototype.Pa=function(a,b){if(!Cc(this.Q,a)){this.w++;this.g.push(a);this.lb++}this.Q[a]=b};P.prototype.pd=function(a){var b;if(a instanceof P){b=a.tb();a=a.vb()}else{b=Ha(a);a=Ga(a)}for(var c=0;c<b.length;c++)this.Pa(b[c],a[c])};P.prototype.aa=function(){return new P(this)};
P.prototype.od=function(a){Ac(this);var b=0,c=this.g,d=this.Q,e=this.lb,f=this,h=new zc;h.next=function(){for(;1;){if(e!=f.lb)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw yc;var i=c[b++];return a?i:d[i]}};return h};function Cc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ec(a){return Fc(a||arguments.callee.caller,[])}
function Fc(a,b){var c=[];if(wa(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Gc(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){e>0&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":f=f;break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Gc(f))?f:"[fn]";break;case "undefined":default:f=typeof f;break}if(f.length>40)f=f.substr(0,40)+"...";c.push(f)}b.push(a);c.push(")\n");try{c.push(Fc(a.caller,
b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Gc(a){a=String(a);if(!Hc[a]){var b=/function ([^\(]+)/.exec(a);Hc[a]=b?b[1]:"[Anonymous]"}return Hc[a]}var Hc={};function Ic(a,b,c,d,e){this.ne=typeof e=="number"?e:Jc++;this.re=d||ra();this.Ka=a;this.ke=b;this.ie=c}Ic.prototype.yd=null;Ic.prototype.xd=null;var Jc=0;Ic.prototype.jd=ba("Ka");function Kc(a){this.Td=a;this.z=null;this.p={};this.Oc=[]}Kc.prototype.Ka=null;function R(a,b){this.name=a;this.value=b}R.prototype.toString=ca("name");new R("OFF",Infinity);new R("SHOUT",1200);var Lc=new R("SEVERE",1000),Mc=new R("WARNING",900),Nc=new R("INFO",800),Oc=new R("CONFIG",700),Pc=new R("FINE",500);new R("FINER",400);var Qc=new R("FINEST",300);new R("ALL",0);Kc.prototype.jd=ba("Ka");function Rc(a,b){if(a.Ka)return b.value>=a.Ka.value;if(a.z)return Rc(a.z,b);return false}
Kc.prototype.log=function(a,b,c){Rc(this,a)&&Sc(this,this.Ad(a,b,c))};
Kc.prototype.Ad=function(a,b,c){var d=new Ic(a,String(b),this.Td);if(c){d.yd=c;var e;var f=arguments.callee.caller;try{var h,i=fa("window.location.href");h=typeof c=="string"?{message:c,name:"Unknown error",lineNumber:"Not available",fileName:i,stack:"Not available"}:!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:c.lineNumber||c.he||"Not available",fileName:c.fileName||c.filename||c.sourceURL||i,stack:c.stack||"Not available"}:c;e="Message: "+Pa(h.message)+'\nUrl: <a href="view-source:'+
h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+Pa(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Pa(Ec(f)+"-> ")}catch(j){e="Exception trying to expose exception! You win, we lose. "+j}d.xd=e}return d};function S(a,b,c){a.log(Pc,b,c)}function Sc(a,b){if(Rc(a,b.Ka))for(a=a;a;){for(var c=a,d=0;d<c.Oc.length;d++)c.Oc[d](b);a=a.z}}var Tc={},Uc=null;function Vc(a){if(!Uc){Uc=new Kc("");Tc[""]=Uc;Uc.jd(Oc)}return a in Tc?Tc[a]:Wc(a)}
function Wc(a){var b=new Kc(a),c=a.split("."),d=c[c.length-1];c.length-=1;c=c.join(".");c=Vc(c);c.p[d]=b;b.z=c;return Tc[a]=b};/\uffff/.test("\uffff");function Xc(){return Yc()}var Yc=null,Zc=null,$c=null;(function(a,b){Yc=a;Zc=b;$c=null})(function(){var a=ad();return a?new ActiveXObject(a):new XMLHttpRequest},function(){var a={};if(ad()){a[0]=true;a[1]=true}return a});var bd=null;
function ad(){if(!bd&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);return bd=c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return bd};function cd(){if(C){this.ma={};this.Qb={};this.Mb=[]}}cd.prototype.h=Vc("goog.net.xhrMonitor");cd.prototype.ca=C;function dd(a,b){if(a.ca){var c=r(b)?b:ka(b)?t(b):"";a.h.log(Qc,"Pushing context: "+b+" ("+c+")",undefined);a.Mb.push(c)}}function ed(a){if(a.ca){var b=a.Mb.pop();a.h.log(Qc,"Popping context: "+b,undefined);fd(a,b)}}function gd(a,b){if(a.ca){b=t(b);S(a.h,"Opening XHR : "+b);for(var c=0;c<a.Mb.length;c++){var d=a.Mb[c];hd(a,a.ma,d,b);hd(a,a.Qb,b,d)}}}
function fd(a,b){var c=a.Qb[b],d=a.ma[b];if(c&&d){a.h.log(Qc,"Updating dependent contexts",undefined);ta(c,function(e){ta(d,function(f){hd(this,this.ma,e,f);hd(this,this.Qb,f,e)},this)},a)}}function hd(a,b,c,d){b[c]||(b[c]=[]);wa(b[c],d)||b[c].push(d)}var T=new cd;function U(){this.headers=new P}u(U,O);U.prototype.h=Vc("goog.net.XhrIo");var id=[];function jd(a,b,c,d,e,f){var h=new U;id.push(h);b&&M(h,"complete",b);M(h,"ready",qa(kd,h));f&&ld(h,f);h.send(a,c,d,e)}function kd(a){a.F();xa(id,a)}n=U.prototype;n.$=false;n.n=null;n.Pb=null;n.Wc="";n.Tc="";n.ab=0;n.bb="";n.bc=false;n.Ab=false;n.kc=false;n.ta=false;n.jb=0;n.Ba=null;function ld(a,b){a.jb=Math.max(0,b)}
U.prototype.send=function(a,b,c,d){if(this.$)throw Error("[goog.net.XhrIo] Object is active with another request");b=b||"GET";this.Wc=a;this.bb="";this.ab=0;this.Tc=b;this.bc=false;this.$=true;this.n=new Xc;this.Pb=$c||($c=Zc());gd(T,this.n);this.n.onreadystatechange=pa(this.dd,this);try{S(this.h,md(this,"Opening Xhr"));this.kc=true;this.n.open(b,a,true);this.kc=false}catch(e){S(this.h,md(this,"Error opening Xhr: "+e.message));nd(this,5,e);return}a=c||"";var f=this.headers.aa();d&&xc(d,function(i,
j){f.Pa(j,i)});b=="POST"&&!Bc(f,"Content-Type")&&f.Pa("Content-Type","application/x-www-form-urlencoded;charset=utf-8");xc(f,function(i,j){this.n.setRequestHeader(j,i)},this);try{if(this.Ba){vc.clearTimeout(this.Ba);this.Ba=null}if(this.jb>0){S(this.h,md(this,"Will abort after "+this.jb+"ms if incomplete"));this.Ba=vc.setTimeout(pa(this.be,this),this.jb)}S(this.h,md(this,"Sending request"));this.Ab=true;this.n.send(a);this.Ab=false}catch(h){S(this.h,md(this,"Send error: "+h.message));nd(this,5,h)}};
U.prototype.dispatchEvent=function(a){if(this.n){dd(T,this.n);try{return U.a.dispatchEvent.call(this,a)}finally{ed(T)}}else return U.a.dispatchEvent.call(this,a)};U.prototype.be=function(){if(typeof da!="undefined")if(this.n){this.bb="Timed out after "+this.jb+"ms, aborting";this.ab=8;S(this.h,md(this,this.bb));this.dispatchEvent("timeout");this.abort(8)}};function nd(a,b,c){a.$=false;if(a.n){a.ta=true;a.n.abort();a.ta=false}a.bb=c;a.ab=b;od(a);pd(a)}
function od(a){if(!a.bc){a.bc=true;a.dispatchEvent("complete");a.dispatchEvent("error")}}U.prototype.abort=function(a){if(this.n){S(this.h,md(this,"Aborting"));this.$=false;this.ta=true;this.n.abort();this.ta=false;this.ab=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");pd(this)}};U.prototype.f=function(){if(this.n){if(this.$){this.$=false;this.ta=true;this.n.abort();this.ta=false}pd(this,true)}U.a.f.call(this)};U.prototype.dd=function(){!this.kc&&!this.Ab&&!this.ta?this.$d():qd(this)};
U.prototype.$d=function(){qd(this)};
function qd(a){if(a.$)if(typeof da!="undefined")if(a.Pb[1]&&rd(a)==4&&sd(a)==2)S(a.h,md(a,"Local request error detected and ignored"));else if(a.Ab&&rd(a)==4)vc.setTimeout(pa(a.dd,a),0);else{a.dispatchEvent("readystatechange");if(rd(a)==4){S(a.h,md(a,"Request complete"));a.$=false;var b;a:switch(sd(a)){case 0:case 200:case 204:case 304:b=true;break a;default:b=false;break a}if(b){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.ab=6;a.bb=td(a)+" ["+sd(a)+"]";od(a)}pd(a)}}}
function pd(a,b){if(a.n){var c=a.n,d=a.Pb[0]?p:null;a.n=null;a.Pb=null;if(a.Ba){vc.clearTimeout(a.Ba);a.Ba=null}if(!b){dd(T,c);a.dispatchEvent("ready");ed(T)}if(T.ca){b=t(c);S(T.h,"Closing XHR : "+b);delete T.Qb[b];for(var e in T.ma){xa(T.ma[e],b);T.ma[e].length==0&&delete T.ma[e]}}try{c.onreadystatechange=d}catch(f){a.h.log(Lc,"Problem encountered resetting onreadystatechange: "+f.message,undefined)}}}U.prototype.Qc=ca("$");function rd(a){return a.n?a.n.readyState:0}
function sd(a){try{return rd(a)>2?a.n.status:-1}catch(b){a.h.log(Mc,"Can not get status: "+b.message,undefined);return-1}}function td(a){try{return rd(a)>2?a.n.statusText:""}catch(b){S(a.h,"Can not get status: "+b.message);return""}}function md(a,b){return b+" ["+a.Tc+" "+a.Wc+" "+sd(a)+"]"};function ud(a){this.b=a;a=B?"propertychange":D&&a.tagName=="TEXTAREA"&&!E("531")?"keypress":"input";this.Qd=M(this.b,a,this)}u(ud,O);ud.prototype.handleEvent=function(a){a=a.O;if(a.type=="propertychange"&&a.propertyName=="value"||a.type=="input"||a.type=="keypress"){if(B||z){var b=a.srcElement;if(b!=qb(b).activeElement)return}a=new I(a);a.type="input";try{this.dispatchEvent(a)}finally{a.F()}}};ud.prototype.f=function(){ud.a.f.call(this);N(this.Qd);delete this.b};function vd(a,b,c){this.oa=a;this.td=b;this.qc=c;a.maxLength=c;this.lc=new ud(a);M(this.lc,"input",this.Wd,false,this);wd(this)}u(vd,O);vd.prototype.Wd=function(){wd(this)};
function wd(a){var b;b=a.oa.value;if(b.length>a.qc){var c=a.oa.scrollTop,d=a.oa.scrollLeft;a.oa.value=b.substring(0,a.qc);b=0;a.oa.scrollTop=c;a.oa.scrollLeft=d}else b=a.qc-b.length;a=a.td;b=b;if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{for(;c=a.firstChild;)a.removeChild(c);c=qb(a);a.appendChild(c.createTextNode(b))}}
vd.prototype.f=function(){vd.a.f.call(this);delete this.oa;this.lc.F();this.lc=null};function xd(a){this.Nc=a}u(xd,Lb);var yd=new J(0,100);n=xd.prototype;n.j=function(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)this.j(a,b[f],c,d,e);else{a=M(a,b,c||this,d||false,e||this.Nc||this);if(this.g)this.g[a]=true;else if(this.ia){this.g=Sb(yd);this.g[this.ia]=true;this.ia=null;this.g[a]=true}else this.ia=a}return this};
n.Z=function(a,b,c,d,e){if(this.ia||this.g)if(q(b))for(var f=0;f<b.length;f++)this.Z(a,b[f],c,d,e);else{a:{c=c||this;e=e||this.Nc||this;d=!!(d||false);if(a=qc(a,b,d))for(b=0;b<a.length;b++)if(a[b].La==c&&a[b].capture==d&&a[b].xb==e){a=a[b];break a}a=null}if(a){a=a.W;N(a);if(this.g)Ja(this.g,a);else if(this.ia==a)this.ia=null}}return this};n.hd=function(){if(this.g){for(var a in this.g){N(a);delete this.g[a]}Tb(yd,this.g);this.g=null}else this.ia&&N(this.ia)};n.f=function(){xd.a.f.call(this);this.hd()};
n.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function zd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}zd.prototype.aa=function(){return new zd(this.top,this.right,this.bottom,this.left)};zd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};zd.prototype.contains=function(a){a=!this||!a?false:a instanceof zd?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};function Ad(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Ad.prototype.aa=function(){return new Ad(this.left,this.top,this.width,this.height)};Ad.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
Ad.prototype.Od=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return true}}return false};
Ad.prototype.contains=function(a){return a instanceof Ad?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};function Bd(a,b){var c=qb(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return null}function Cd(a,b){return Bd(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]}function Dd(a){a=a?a.nodeType==9?a:qb(a):document;if(B&&!Jb(ob(a)))return a.body;return a.documentElement}
function Ed(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 Fd(a){if(B)return a.offsetParent;var b=qb(a),c=Cd(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=Cd(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return null}
function Gd(a){var b=new zd(0,Infinity,Infinity,0),c=ob(a),d=vb(c.t),e;for(a=a;a=Fd(a);)if((!B||a.clientWidth!=0)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&Cd(a,"overflow")!="visible"){var f=Hd(a),h;h=a;if(C&&!E("1.9")){var i=parseFloat(Bd(h,"borderLeftWidth"));if(Id(h)){var j=h.offsetWidth-h.clientWidth-i-parseFloat(Bd(h,"borderRightWidth"));i+=j}h=new x(i,parseFloat(Bd(h,"borderTopWidth")))}else h=new x(h.clientLeft,h.clientTop);f.x+=h.x;f.y+=h.y;b.top=Math.max(b.top,f.y);
b.right=Math.min(b.right,f.x+a.clientWidth);b.bottom=Math.min(b.bottom,f.y+a.clientHeight);b.left=Math.max(b.left,f.x);e=e||a!=d}a=d.scrollLeft;d=d.scrollTop;if(D){b.left+=a;b.top+=d}else{b.left=Math.max(b.left,a);b.top=Math.max(b.top,d)}if(!e||D){b.right+=a;b.bottom+=d}c=c.t.parentWindow||c.t.defaultView||window;e=c.document;if(D&&!E("500")&&!ib){if(typeof c.innerHeight=="undefined")c=window;e=c.innerHeight;f=c.document.documentElement.scrollHeight;if(c==c.top)if(f<e)e-=15;c=new y(c.innerWidth,e)}else{c=
sb(e)&&(!z||z&&E("9.50"))?e.documentElement:e.body;c=new y(c.clientWidth,c.clientHeight)}b.right=Math.min(b.right,a+c.width);b.bottom=Math.min(b.bottom,d+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null}
function Hd(a){var b,c=qb(a),d=Cd(a,"position"),e=C&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new x(0,0),h=Dd(c);if(a==h)return f;if(a.getBoundingClientRect){b=Ed(a);a=Kb(ob(c));f.x=b.left+a.x;f.y=b.top+a.y}else if(c.getBoxObjectFor&&!e){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;if(b!=a){f.x+=b.clientLeft||0;f.y+=b.clientTop||
0}if(D&&Cd(b,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(z||D&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=Fd(b))&&b!=c.body&&b!=h;){f.x-=b.scrollLeft;if(!z||b.tagName!="TR")f.y-=b.scrollTop}}return f}function Jd(a){var b=new x;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Ed(a);b.x=c.left;b.y=c.top}else{c=Kb(ob(a));a=Hd(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b}
function Kd(a,b,c){if(b instanceof y){c=b.height;b=b.width}else{if(c==undefined)throw Error("missing height argument");c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c}
function Ld(a){var b=z&&!E("10");if(Cd(a,"display")!="none")return b?new y(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new y(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new y(b,a)}
function Id(a){return"rtl"==Cd(a,"direction")}var Md=C?"MozUserSelect":D?"WebkitUserSelect":null;function Nd(a,b,c){c=!c?a.getElementsByTagName("*"):null;if(Md){b=b?"none":"";a.style[Md]=b;if(c){a=0;for(var d;d=c[a];a++)d.style[Md]=b}}else if(B||z){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}};function Od(){}ga(Od);Od.prototype.Ud=0;Od.P();function V(a){this.Ua=a||ob();this.hb=Pd}u(V,O);V.prototype.Md=Od.P();var Pd=null;function Qd(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";default:}throw Error("Invalid component state");}n=V.prototype;n.zb=null;n.Ua=null;n.o=false;n.b=null;n.hb=null;n.Fb=null;n.z=null;n.p=null;
n.ga=null;n.de=false;function Rd(a){return a.zb||(a.zb=":"+(a.Md.Ud++).toString(36))}V.prototype.c=ca("b");function Sd(a){return a.Ha||(a.Ha=new xd(a))}function Td(a,b){if(a==b)throw Error("Unable to set parent component");if(b&&a.z&&a.zb&&a.z.Lc(a.zb)&&a.z!=b)throw Error("Unable to set parent component");a.z=b;V.a.uc.call(a,b)}V.prototype.uc=function(a){if(this.z&&this.z!=a)throw Error("Method not supported");V.a.uc.call(this,a)};V.prototype.K=ca("Ua");V.prototype.l=function(){this.b=this.Ua.createElement("div")};
function Ud(a,b){Vd(a,b)}function Vd(a,b,c){if(a.o)throw Error("Component already rendered");a.b||a.l();b?b.insertBefore(a.b,c||null):a.Ua.t.body.appendChild(a.b);if(!a.z||a.z.o)a.H()}n=V.prototype;n.H=function(){this.o=true;this.p&&ta(this.p,function(a){!a.o&&a.c()&&a.H()},undefined)};n.pa=function(){this.p&&ta(this.p,function(a){a.o&&a.pa()},undefined);this.Ha&&this.Ha.hd();this.o=false};
n.f=function(){V.a.f.call(this);this.o&&this.pa();if(this.Ha){this.Ha.F();delete this.Ha}this.p&&ta(this.p,function(a){a.F()},undefined);!this.de&&this.b&&yb(this.b);this.z=this.Fb=this.b=this.ga=this.p=null};n.Tb=function(a,b){this.Ub(a,Wd(this),b)};
n.Ub=function(a,b,c){if(a.o&&(c||!this.o))throw Error("Component already rendered");if(b<0||b>Wd(this))throw Error("Child component index out of bounds");if(!this.ga||!this.p){this.ga={};this.p=[]}if(a.z==this){this.ga[Rd(a)]=a;xa(this.p,a)}else{var d=this.ga,e=Rd(a);if(e in d)throw Error('The object already contains the key "'+e+'"');d[e]=a}Td(a,this);za(this.p,b,0,a);if(a.o&&this.o&&a.z==this){c=this.J();c.insertBefore(a.c(),c.childNodes[b+1]||null)}else if(c){this.b||this.l();b=this.da(b+1);Vd(a,
this.J(),b?b.b:null)}else this.o&&!a.o&&a.b&&a.H()};n.J=ca("b");function Xd(a){if(a.hb==null)a.hb=Id(a.o?a.b:a.Ua.t.body);return a.hb}V.prototype.Qa=function(a){if(this.o)throw Error("Component already rendered");this.hb=a};function Wd(a){return a.p?a.p.length:0}V.prototype.Lc=function(a){return this.ga&&a?Ka(this.ga,a)||null:null};V.prototype.da=function(a){return this.p?this.p[a]||null:null};function Yd(a,b){return a.p&&b?sa(a.p,b):-1}
V.prototype.removeChild=function(a,b){if(a){var c=r(a)?a:Rd(a);a=this.Lc(c);if(c&&a){Ja(this.ga,c);xa(this.p,a);if(b){a.pa();a.b&&yb(a.b)}Td(a,null)}}if(!a)throw Error("Child is not in parent component");return a};function Zd(a,b,c,d,e){if(!B&&!(D&&E("525")))return true;if(kb&&e)return $d(a);if(e&&!d)return false;if(B&&!c&&(b==17||b==18))return false;if(B&&d&&b==a)return false;switch(a){case 13:return true;case 27:return!D}return $d(a)}
function $d(a){if(a>=48&&a<=57)return true;if(a>=96&&a<=106)return true;if(a>=65&&a<=90)return true;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 true;default:return false}};var ae;function be(a,b){if(C||ae){a.setAttribute("role",b);a.me=b}}function ce(a,b,c){if(C||ae)a.setAttribute("aria-"+b,c)};function de(){}var ee;ga(de);n=de.prototype;n.ra=aa();n.l=function(a){return a.K().l("div",this.Ga(a).join(" "),a.Da)};n.J=function(a){return a};n.Wa=function(a,b,c){if(a=a.c?a.c():a)if(B&&!E("7")){var d=fe(this,Ca(a),b);d.push(b);qa(c?w:Da,a).apply(null,d)}else c?w(a,b):Da(a,b)};n.Ia=function(a){Xd(a)&&this.Qa(a.c(),true);a.C()&&this.ya(a,a.v)};n.Jb=function(a,b){Nd(a,!b,!B&&!z)};n.Qa=function(a,b){this.Wa(a,this.r()+"-rtl",b)};n.ua=function(a){var b;if(a.A&32&&(b=a.u()))return Cb(b);return false};
n.ya=function(a,b){var c;if(a.A&32&&(c=a.u())){if(!b&&a.d&32){try{c.blur()}catch(d){}a.d&32&&a.sa(null)}Cb(c)!=b&&Db(c,b)}};n.Y=function(a,b){a.style.display=b?"":"none"};n.S=function(a,b,c){var d=a.c();if(d){var e=this.rb(b);e&&this.Wa(a,e,c);this.kb(d,b,c)}};n.kb=function(a,b,c){if(C){ee||(ee=Na(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(b=ee[b])&&ce(a,b,c)}};n.u=function(a){return a.c()};n.r=g("goog-control");
n.Ga=function(a){var b=this.r(),c=[b],d=this.r();d!=b&&c.push(d);if(b=a.d){d=[];for(var e=1;b;e<<=1)if(b&e){d.push(this.rb(e));b&=~e}b=d}else b=null;b&&c.push.apply(c,b);(a=a.V)&&c.push.apply(c,a);B&&!E("7")&&c.push.apply(c,fe(this,c));return c};function fe(a,b,c){var d=[];if(c)b=b.concat([c]);ta([],function(e){if(va(e,qa(wa,b))&&(!c||wa(e,c)))d.push(e.join("_"))});return d}de.prototype.rb=function(a){this.Dc||ge(this);return this.Dc[a]};
function ge(a){var b=a.r();a.Dc=Na(1,b+"-disabled",2,b+"-hover",4,b+"-active",8,b+"-selected",16,b+"-checked",32,b+"-focused",64,b+"-open")};function he(){}u(he,de);ga(he);n=he.prototype;n.ra=g("button");n.kb=function(a,b,c){if(C)b==16?ce(a,"pressed",c):he.a.kb.call(this,a,b,c)};n.l=function(a){var b=he.a.l.call(this,a),c=a.ub();c&&this.vc(b,c);(c=a.Xa())&&this.X(b,c);a.A&16&&this.kb(b,16,false);return b};n.Xa=p;n.X=p;n.ub=function(a){return a.title};n.vc=function(a,b){if(a)a.title=b||""};n.r=g("goog-button");function ie(a){a&&this.mb(a)}u(ie,O);n=ie.prototype;n.b=null;n.Bb=null;n.nc=null;n.Cb=null;n.cb=-1;n.Ja=-1;
var je={"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},ke={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},le={61:187,
59:186},me=B||D&&E("525");n=ie.prototype;n.Gd=function(a){if(me&&!Zd(a.keyCode,this.cb,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.Ja=C&&a.keyCode in le?le[a.keyCode]:a.keyCode};n.Hd=function(){this.Ja=this.cb=-1};
n.handleEvent=function(a){var b=a.O,c,d;if(B&&a.type=="keypress"){c=this.Ja;d=c!=13&&c!=27?b.keyCode:0}else if(D&&a.type=="keypress"){c=this.Ja;d=b.charCode>=0&&b.charCode<63232&&$d(c)?b.charCode:0}else if(z){c=this.Ja;d=$d(c)?b.keyCode:0}else{c=b.keyCode||this.Ja;d=b.charCode||0;if(kb&&d==63&&!c)c=191}var e=c,f=b.keyIdentifier;if(c)if(c>=63232&&c in je)e=je[c];else{if(c==25&&a.shiftKey)e=9}else if(f&&f in ke)e=ke[f];a=e==this.cb;this.cb=e;b=new ne(e,d,a,b);try{this.dispatchEvent(b)}finally{b.F()}};
n.mb=function(a){this.Cb&&this.detach();this.b=a;this.Bb=M(this.b,"keypress",this);this.nc=M(this.b,"keydown",this.Gd,false,this);this.Cb=M(this.b,"keyup",this.Hd,false,this)};n.detach=function(){if(this.Bb){N(this.Bb);N(this.nc);N(this.Cb);this.Cb=this.nc=this.Bb=null}this.b=null;this.cb=-1};n.f=function(){ie.a.f.call(this);this.detach()};function ne(a,b,c,d){d&&this.$a(d,undefined);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}u(ne,I);function oe(a){for(var b;a;){b=t(a);if(b=pe[b])break;a=a.a?a.a.constructor:null}if(b)return ja(b.P)?b.P():new b;return null}function qe(a,b){if(!a)throw Error("Invalid class name "+a);if(!ja(b))throw Error("Invalid decorator function "+b);re[a]=b}var pe={},re={};function W(a,b,c){V.call(this,c);this.i=b||oe(this.constructor);this.Da=a}u(W,V);n=W.prototype;n.Da=null;n.d=0;n.A=39;n.Bc=255;n.Nb=0;n.v=true;n.V=null;n.fc=true;n.Wb=false;function se(a,b){a.o&&b!=a.fc&&te(a,b);a.fc=b}W.prototype.u=function(){return this.i.u(this)};W.prototype.sb=function(){return this.L||(this.L=new ie)};function ue(a,b){if(b){if(a.V)wa(a.V,b)||a.V.push(b);else a.V=[b];a.i.Wa(a,b,true)}}function ve(a,b){if(b&&a.V){xa(a.V,b);if(a.V.length==0)a.V=null;a.i.Wa(a,b,false)}}
W.prototype.Wa=function(a,b){b?ue(this,a):ve(this,a)};W.prototype.l=function(){var a=this.i.l(this);this.b=a;if(C){var b=this.i.ra();b&&be(a,b)}this.Wb||this.i.Jb(a,false);this.v||this.i.Y(a,false)};W.prototype.J=function(){return this.i.J(this.c())};W.prototype.H=function(){W.a.H.call(this);this.i.Ia(this);if(this.A&-2){this.fc&&te(this,true);if(this.A&32){var a=this.u();if(a){var b=this.sb();b.mb(a);Sd(this).j(b,"key",this.ha).j(a,"focus",this.wb).j(a,"blur",this.sa)}}}};
function te(a,b){var c=Sd(a),d=a.c();if(b){c.j(d,"mouseover",a.hc).j(d,"mousedown",a.Za).j(d,"mouseup",a.ic).j(d,"mouseout",a.gc);B&&c.j(d,"dblclick",a.Mc)}else{c.Z(d,"mouseover",a.hc).Z(d,"mousedown",a.Za).Z(d,"mouseup",a.ic).Z(d,"mouseout",a.gc);B&&c.Z(d,"dblclick",a.Mc)}}W.prototype.pa=function(){W.a.pa.call(this);this.L&&this.L.detach();this.v&&this.C()&&this.i.ya(this,false)};W.prototype.f=function(){W.a.f.call(this);if(this.L){this.L.F();delete this.L}delete this.i;this.V=this.Da=null};
function we(a){a=a.Da;if(!a||r(a))return a;return(a=q(a)?ua(a,Eb).join(""):Eb(a))&&Oa(a)}n=W.prototype;n.Qa=function(a){W.a.Qa.call(this,a);var b=this.c();b&&this.i.Qa(b,a)};n.Jb=function(a){this.Wb=a;var b=this.c();b&&this.i.Jb(b,a)};n.Y=function(a,b){if(b||this.v!=a&&this.dispatchEvent(a?"show":"hide")){(b=this.c())&&this.i.Y(b,a);this.C()&&this.i.ya(this,a);this.v=a;return true}return false};n.C=function(){return!!!(this.d&1)};n.ea=function(a){xe(this,2,a)&&this.S(2,a)};
n.Qc=function(){return!!(this.d&4)};n.setActive=function(a){xe(this,4,a)&&this.S(4,a)};function ye(a,b){xe(a,8,b)&&a.S(8,b)}function ze(a,b){xe(a,16,b)&&a.S(16,b)}function Ae(a,b){xe(a,32,b)&&a.S(32,b)}function Be(a,b){xe(a,64,b)&&a.S(64,b)}W.prototype.S=function(a,b){if(this.A&a&&b!=!!(this.d&a)){this.i.S(this,a,b);this.d=b?this.d|a:this.d&~a}};function Ce(a,b,c){if(a.o&&a.d&b&&!c)throw Error("Component already rendered");!c&&a.d&b&&a.S(b,false);a.A=c?a.A|b:a.A&~b}
function X(a,b){return!!(a.Bc&b)&&!!(a.A&b)}function xe(a,b,c){return!!(a.A&b)&&!!(a.d&b)!=c&&(!(a.Nb&b)||a.dispatchEvent(Qd(b,c)))&&!a.Zb}n=W.prototype;n.hc=function(a){a.relatedTarget&&!zb(this.c(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.C()&&X(this,2)&&this.ea(true)};n.gc=function(a){if(a.relatedTarget&&!zb(this.c(),a.relatedTarget)&&this.dispatchEvent("leave")){X(this,4)&&this.setActive(false);X(this,2)&&this.ea(false)}};
n.Za=function(a){if(this.C()){X(this,2)&&this.ea(true);if(Ob(a,0)){X(this,4)&&this.setActive(true);this.i.ua(this)&&this.u().focus()}}!this.Wb&&Ob(a,0)&&a.preventDefault()};n.ic=function(a){if(this.C()){X(this,2)&&this.ea(true);this.Qc()&&this.fb(a)&&X(this,4)&&this.setActive(false)}};n.Mc=function(a){this.C()&&this.fb(a)};
n.fb=function(a){X(this,16)&&ze(this,!!!(this.d&16));X(this,8)&&ye(this,true);X(this,64)&&Be(this,!!!(this.d&64));var b=new Mb("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey"],d,e=0;d=c[e];e++)b[d]=a[d];return this.dispatchEvent(b)};n.wb=function(){X(this,32)&&Ae(this,true)};n.sa=function(){X(this,4)&&this.setActive(false);X(this,32)&&Ae(this,false)};n.ha=function(a){if(this.v&&this.C()&&this.Ya(a)){a.preventDefault();a.stopPropagation();return true}return false};
n.Ya=function(a){return a.keyCode==13&&this.fb(a)};(function(a,b){if(!ja(a))throw Error("Invalid component class "+a);if(!ja(b))throw Error("Invalid renderer class "+b);a=t(a);pe[a]=b})(W,de);qe("goog-control",function(){return new W(null)});function De(){}u(De,he);ga(De);n=De.prototype;n.ra=aa();n.l=function(a){se(a,false);a.Bc&=-256;Ce(a,32,false);return a.K().l("button",{"class":this.Ga(a).join(" "),disabled:!a.C(),title:a.ub()||"",value:a.Xa()||""},we(a)||"")};n.Ia=function(a){Sd(a).j(a.c(),"click",a.fb)};n.Jb=p;n.Qa=p;n.ua=function(a){return a.C()};n.ya=p;n.S=function(a,b,c){De.a.S.call(this,a,b,c);if((a=a.c())&&b==1)a.disabled=c};n.Xa=function(a){return a.value};n.X=function(a,b){if(a)a.value=b};n.kb=p;function Ee(a,b,c){W.call(this,a,b||De.P(),c)}u(Ee,W);n=Ee.prototype;n.Xa=ca("nd");n.X=function(a){this.nd=a;this.i.X(this.c(),a)};n.ub=ca("ld");n.vc=function(a){this.ld=a;this.i.vc(this.c(),a)};n.f=function(){Ee.a.f.call(this);delete this.nd;delete this.ld};n.H=function(){Ee.a.H.call(this);if(this.A&32){var a=this.u();a&&Sd(this).j(a,"keyup",this.Ya)}};n.Ya=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.fb(a);return a.keyCode==32};qe("goog-button",function(){return new Ee(null)});function Fe(){}u(Fe,he);ga(Fe);Fe.prototype.l=function(a){var b={"class":"goog-inline-block "+this.Ga(a).join(" "),title:a.ub()||""};return a.K().l("div",b,Ge(this,a.Da,a.K()))};Fe.prototype.J=function(a){return a&&a.firstChild.firstChild};function Ge(a,b,c){return c.l("div","goog-inline-block "+(a.r()+"-outer-box"),c.l("div","goog-inline-block "+(a.r()+"-inner-box"),b))}Fe.prototype.r=g("goog-custom-button");function He(a,b,c){Ee.call(this,a,b||Fe.P(),c)}u(He,Ee);qe("goog-custom-button",function(){return new He(null)});function Ie(a){a.style.le="none";a.style.overflow="hidden";var b=a.clientHeight,c=document.createElement("div");c.innerHTML="a";c.style.position="absolute";c.style.left="-99999px";c.style.top="0px";document.body.appendChild(c);var d=c.clientHeight;document.body.removeChild(c);a.style.lineHeight=d+"px";a.style.height=2*d+"px";var e=a.scrollHeight==2*d;if(!e)var f=8;M(a,"keyup",function(){if(this.scrollHeight>b){this.style.height=b+"px";var h=this.scrollHeight;e||(h-=f);this.style.height=h+"px"}})}
;function Je(a){return 3*a*a-2*a*a*a}function Y(a,b,c,d){if(!q(a)||!q(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.ib=a;this.ud=b;this.pb=c;this.zc=d;this.coords=[]}u(Y,O);var Ke={},Le=null;function Me(){vc.clearTimeout(Le);var a=ra();for(var b in Ke)Ne(Ke[b],a);Le=Ia(Ke)?null:vc.setTimeout(Me,20)}function Oe(a){a=t(a);delete Ke[a];if(Le&&Ia(Ke)){vc.clearTimeout(Le);Le=null}}n=Y.prototype;n.d=0;
n.Kc=0;n.I=0;n.Aa=null;n.Ic=null;n.pc=null;function Pe(a,b){if(b||a.d==0){a.I=0;a.coords=a.ib}else if(a.d==1)return false;Oe(a);a.Aa=ra();if(a.d==-1)a.Aa-=a.pb*a.I;a.Ic=a.Aa+a.pb;a.pc=a.Aa;a.I||a.sc();Qe(a,"play");a.d==-1&&Re(a);a.d=1;b=t(a);b in Ke||(Ke[b]=a);Le||(Le=vc.setTimeout(Me,20));Ne(a,a.Aa);return true}Y.prototype.stop=function(a){Oe(this);this.d=0;if(a)this.I=1;Se(this,this.I);Qe(this,"stop");this.Hb()};Y.prototype.f=function(){this.d!=0&&this.stop(false);Qe(this,"destroy");Y.a.f.call(this)};
function Ne(a,b){a.I=(b-a.Aa)/(a.Ic-a.Aa);if(a.I>=1)a.I=1;a.Kc=1000/(b-a.pc);a.pc=b;ja(a.zc)?Se(a,a.zc(a.I)):Se(a,a.I);if(a.I==1){a.d=0;Oe(a);Qe(a,"finish");a.Hb()}else a.d==1&&a.rc()}function Se(a,b){a.coords=new Array(a.ib.length);for(var c=0;c<a.ib.length;c++)a.coords[c]=(a.ud[c]-a.ib[c])*b+a.ib[c]}Y.prototype.rc=function(){Qe(this,"animate")};Y.prototype.sc=function(){Qe(this,"begin")};Y.prototype.Hb=function(){Qe(this,"end")};function Re(a){Qe(a,"resume")}
function Qe(a,b){a.dispatchEvent(new Te(b,a))}function Te(a,b){Mb.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.se=b.coords[2];this.pb=b.pb;this.I=b.I;this.ge=b.Kc;this.oe=b.d;this.ee=b}u(Te,Mb);function Ue(a,b,c,d,e){Y.call(this,b,c,d,e);this.element=a}u(Ue,Y);Ue.prototype.Ob=p;Ue.prototype.rc=function(){this.Ob();Ue.a.rc.call(this)};Ue.prototype.Hb=function(){this.Ob();Ue.a.Hb.call(this)};Ue.prototype.sc=function(){this.Ob();Ue.a.sc.call(this)};function Ve(a,b,c){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");Ue.apply(this,arguments)}u(Ve,Ue);Ve.prototype.Ob=function(){this.element.style.marginLeft=Math.round(this.coords[0])+"px";this.element.style.marginTop=Math.round(this.coords[1])+"px"};function We(a){this.b=a;this.Gb=this.b.value;this.qb=new xd(this);this.Vc=ra();D||B||C&&E("1.9")?this.qb.j(a,"paste",this.Fa):this.qb.j(a,["keydown","blur","focus","mouseover","input"],this.Ed)}u(We,O);n=We.prototype;n.d="init";n.h=Vc("goog.events.PasteHandler");n.f=function(){We.a.f.call(this);this.qb.F();this.qb=null};n.Fa=function(a){a=new I(a.O);a.type="paste";try{this.dispatchEvent(a)}finally{a.F()}};
n.Ed=function(a){switch(this.d){case "init":switch(a.type){case "blur":this.d="init";break;case "focus":this.d="focused";break;case "mouseover":this.d="init";if(this.b.value!=this.Gb){this.h.log(Nc,"paste by dragdrop while on init!",undefined);this.Fa(a)}break;default:this.h.log(Lc,"unexpected event "+a.type+"during init",undefined)}break;case "focused":switch(a.type){case "input":var b=this.Vc+400;if(ra()>b||this.ae=="focus"){this.h.log(Nc,"paste by textchange while focused!",undefined);this.Fa(a)}break;
case "blur":this.d="init";break;case "keydown":this.h.log(Nc,"key down ... looking for ctrl+v",undefined);if(kb&&z&&a.keyCode==0||kb&&z&&a.keyCode==17)break;this.d="typing";break;case "mouseover":if(this.b.value!=this.Gb){this.h.log(Nc,"paste by dragdrop while focused!",undefined);this.Fa(a)}break;default:this.h.log(Lc,"unexpected event "+a.type+" during focused",undefined)}break;case "typing":switch(a.type){case "input":this.d="focused";break;case "blur":this.d="init";break;case "keydown":if(a.ctrlKey&&
a.keyCode==86||a.shiftKey&&a.keyCode==45||a.metaKey&&a.keyCode==86){this.h.log(Nc,"paste by ctrl+v while keypressed!",undefined);this.Fa(a)}break;case "mouseover":if(this.b.value!=this.Gb){this.h.log(Nc,"paste by dragdrop while keypressed!",undefined);this.Fa(a)}break;default:this.h.log(Lc,"unexpected event "+a.type+" during keypressed",undefined)}break;default:this.h.log(Lc,"invalid "+this.d+" state",undefined)}this.Vc=ra();this.Gb=this.b.value;this.h.log(Nc,a.type+" -> "+this.d,undefined);this.ae=
a.type};function Xe(a){a=a||{};this.e={za:a.za||false,separator:a.separator||":",Ra:a.Ra||" ",la:a.la||["AM","PM"],Lb:a.Lb||false,yc:a.yc||[1,1,1],Pc:a.Pc||0,$c:a.$c||null,Yc:a.Yc||null,wc:a.wc||[500,250],ob:a.ob||new Date(0,0,1,12)}}n=Xe.prototype;
n.create=function(a){this.Va=a;w(this.Va,"te-entry");this.field=this.xa=this.wa=this.G=0;this.input=H("input");this.Va.appendChild(this.input);this.setTime(this.e.ob);a=H("span","te-up");this.Va.appendChild(a);var b=H("span","te-down");this.Va.appendChild(b);M(this.input,"focus",this.cd,false,this);M(this.input,"click",this.Xd,false,this);M(this.input,"keydown",this.Yd,false,this);M(this.input,"keypress",this.Zd,false,this);(new We(this.input)).addEventListener("paste",this.tc,false,this);M(a,"mousedown",
this.Kd,false,this);M(b,"mousedown",this.Jd,false,this);M(a,"mouseup",this.wd,false,this);M(b,"mouseup",this.vd,false,this);this.tc();this.cd()};n.getTime=function(){var a=Ye(this);return!a?null:new Date(0,0,0,a[0],a[1],a[2])};n.cd=function(){this.zd=true;Ze(this)};
n.Xd=function(a){var b=this.e.separator.length+2;this.field=0;if(this.input.selectionStart!=null)for(a=0;a<=Math.max(1,this.va,this.D);a++){var c=a!=this.D?a*b+2:this.D*b+this.e.Ra.length+this.e.la[0].length;this.field=a;if(this.input.selectionStart<c)break}else if(this.input.createTextRange){var d=this.input.createTextRange(),e=a.clientX+window.document.documentElement.scrollLeft-(this.input.offsetLeft+parseInt(function(f){return{qe:2,je:4,pe:6}[f]||f||0}(this.input.style.borderLeftWidth),10))-d.offsetLeft;
for(a=0;a<=Math.max(1,this.va,this.D);a++){c=a!=this.D?a*b+2:this.D*b+this.e.Ra.length+this.e.la[0].length;d.collapse();d.moveEnd("character",c);this.field=a;if(e<d.boundingWidth)break}}Ze(this);this.zd=false};
n.Yd=function(a){if(a.keyCode>=48)return true;switch(a.keyCode){case 9:return a.shiftKey?$e(this,-1,true):$e(this,+1,true);case 35:if(a.ctrlKey)this.X("");else{this.field=Math.max(1,this.va,this.D);af(this,0)}break;case 36:if(a.ctrlKey)this.setTime();else{this.field=0;af(this,0)}break;case 37:$e(this,-1,false);break;case 38:af(this,+1);break;case 39:$e(this,+1,false);break;case 40:af(this,-1);break;case 46:this.X("");break}a.preventDefault();return false};
n.Zd=function(a){a.preventDefault();a=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);if(a<" ")return true;if(a==this.e.separator)$e(this,+1,false);else if(a>="0"&&a<="9"){var b=parseInt(a,10),c=parseInt(this.oc+a,10),d=this.e.za;b=bf(this,[this.field!=0?this.G:d?c<24?c:b:(c>=1&&c<=12?c:b>0?b:this.G)%12+(this.G>=12?12:0),this.field!=1?this.wa:c<60?c:b,this.field!=this.va?this.xa:c<60?c:b]);this.setTime(new Date(0,0,0,b[0],b[1],b[2]));this.oc=a}else if(!this.e.za){b=this.e.la;if(a==
b[0].substring(0,1).toLowerCase()&&this.G>=12||a==b[1].substring(0,1).toLowerCase()&&this.G<12){a=this.field;this.field=this.D;af(this,+1);this.field=a;Ze(this)}}return false};n.Kd=function(a){a.preventDefault();cf(this,true,a.target)};n.Jd=function(a){a.preventDefault();cf(this,false,a.target)};n.wd=function(a){a.preventDefault();df(this,true,a.target)};n.vd=function(a){a.preventDefault();df(this,false,a.target)};
function cf(a,b,c){if(!a.jc){a.jc=true;var d=b?+1:-1;ef(a,d);a.Ca=null;b=a.e.wc;if(b[0]){a.Ca=window.setTimeout(function(){ff(a,d)},b[0]);oc(c,"mouseout",a.gd,false,a);oc(c,"mouseup",a.gd,false,a)}}}function ef(a,b){a.input.value||a.tc();af(a,b)}function ff(a,b){if(a.Ca){ef(a,b);a.Ca=window.setTimeout(function(){ff(a,b)},a.e.wc[1])}}Xe.prototype.gd=function(){window.clearTimeout(this.Ca);this.Ca=null};function df(a){window.clearTimeout(a.Ca);a.Ca=null;a.jc&&Ze(a);a.jc=false}
Xe.prototype.tc=function(){if(!this.fe){var a=Ye(this),b=this.e.Lb;if(a){this.G=a[0];this.wa=a[1];this.xa=a[2]}else{a=bf(this);this.G=a[0];this.wa=a[1];this.xa=b?a[2]:0}this.va=b?2:-1;this.D=this.e.za?-1:b?3:2;this.oc="";this.field=Math.max(0,Math.min(Math.max(1,this.va,this.D),this.e.Pc));this.input.value!=""&&gf(this)}};
function Ye(a){var b=a.input.value,c=a.e.separator,d=b.split(c);if(c==""&&b!=""){d[0]=b.substring(0,2);d[1]=b.substring(2,4);d[2]=b.substring(4,6)}var e=a.e.la,f=a.e.za;if(d.length>=2){c=!f&&b.indexOf(e[0])>-1;e=!f&&b.indexOf(e[1])>-1;b=parseInt(d[0],10);b=isNaN(b)?0:b;b=((c||e)&&b==12?0:b)+(e?12:0);c=parseInt(d[1],10);c=isNaN(c)?0:c;d=d.length>=3?parseInt(d[2],10):0;d=isNaN(d)||!a.e.Lb?0:d;return bf(a,[b,c,d])}return null}
function bf(a,b){if(b==null){b=hf(a,a.e.ob)||new Date;b=[b.getHours(),b.getMinutes(),b.getSeconds()]}var c=false;a=a.e.yc;for(var d=0;d<a.length;d++)if(c)b[d]=0;else if(a[d]>1){b[d]=Math.round(b[d]/a[d])*a[d];c=true}return b}function gf(a){var b=a.e.za,c=a.e.separator;a.X(((b?a.G:(a.G+11)%12+1)<10?"0":"")+(b?a.G:(a.G+11)%12+1)+c+((a.wa<10?"0":"")+a.wa)+(a.e.Lb?c+((a.xa<10?"0":"")+a.xa):"")+(b?"":a.e.Ra+a.e.la[a.G<12?0:1]));Ze(a)}
function Ze(a){var b=a.e.separator.length+2;b=a.field!=a.D?a.field*b:a.D*b-a.e.separator.length+a.e.Ra.length;var c=b+(a.field!=a.D?2:a.e.la[0].length);if(a.input.setSelectionRange)a.input.setSelectionRange(b,c);else if(a.input.createTextRange){var d=a.input.createTextRange();d.moveStart("character",b);d.moveEnd("character",c-a.input.value.length);d.select()}a.input.focus()}Xe.prototype.X=function(a){if(a!=this.input.value)this.input.value=a};
function $e(a,b,c){var d=a.input.value==""||a.field==(b==-1?0:Math.max(1,a.va,a.D));d||(a.field+=b);Ze(a);a.oc="";return d&&c}function af(a,b){if(a.input.value=="")b=0;var c=a.e.yc;a.setTime(new Date(0,0,0,a.G+(a.field==0?b*c[0]:0)+(a.field==a.D?b*12:0),a.wa+(a.field==1?b*c[1]:0),a.xa+(a.field==a.va?b*c[2]:0)))}
Xe.prototype.setTime=function(a){a=hf(this,a);a=bf(this,a?[a.getHours(),a.getMinutes(),a.getSeconds()]:null);a=new Date(0,0,0,a[0],a[1],a[2]);a=jf(this,a);var b=jf(this,hf(this,this.e.$c)),c=jf(this,hf(this,this.e.Yc));a=b&&a<b?b:c&&a>c?c:a;this.G=a.getHours();this.wa=a.getMinutes();this.xa=a.getSeconds();gf(this)};
function hf(a,b){function c(e){var f=new Date;f.setTime(f.getTime()+e*1000);return f}function d(e){var f=new Date,h=f.getHours(),i=f.getMinutes();f=f.getSeconds();for(var j=/([+-]?[0-9]+)\s*(s|S|m|M|h|H)?/g,k=j.exec(e);k;){switch(k[2]||"s"){case "s":case "S":f+=parseInt(k[1],10);break;case "m":case "M":i+=parseInt(k[1],10);break;case "h":case "H":h+=parseInt(k[1],10);break}k=j.exec(e)}f=new Date(0,0,10,h,i,f,0);if(/^!/.test(e))if(f.getDate()>10)f=new Date(0,0,10,23,59,59);else if(f.getDate()<10)f=
new Date(0,0,10,0,0,0);return f}return b?typeof b=="string"?d(b):typeof b=="number"?c(b):b:null}function jf(a,b){if(!b)return null;b.setFullYear(1900);b.setMonth(0);b.setDate(0);return b};function kf(){this.Sb=gettext("Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec").split("|");this.Rb=gettext("Mon|Tue|Wed|Thu|Fri|Sat|Sun").split("|");this.ja={};this.k=[];this.m=null;this.db=this.Db=this.N=this.M=-1;this.Uc=new Date(0,0,1,12)}
function lf(a){for(var b="",c=0;c<a.k.length;c++){var d=new Date(a.k[c]),e=d.getMonth()+1;if(e<10)e="0"+e;var f=d.getDate();if(f<10)f="0"+f;var h=d.getHours();if(h<10)h="0"+h;var i=d.getMinutes();if(i<10)i="0"+i;b+=d.getFullYear()+"-"+e+"-"+f+"T"+h+":"+i+":00\n"}return b.slice(0,-1)}
kf.prototype.create=function(a){this.Va=a;w(a,"dp-picker");a.innerHTML='<div class="dp-week-days"></div><div class="dp-container"><div class="dp-label"><a class="dp-choose .dp-up" style="visibility: hidden">\u25b2</a><span class="dp-month-label"></span><a class="dp-choose .dp-down">\u25bc</a></div><div class="dp-days"></div></div><div class="dp-selected-container"><p class="dp-selected-header">'+gettext("Selected times:")+'</p><div class="dp-selected-times"></div></div>';this.selected=G("div","dp-selected-times",
a)[0];for(var b=G("div","dp-week-days",a)[0],c=0;c<this.Rb.length;c++)b.appendChild(H("span",null,this.Rb[c]));this.md=G("a","dp-choose",a)[0];M(this.md,"click",function(){this.Kb(this.N,this.M-1)},false,this);b=G("a","dp-choose",a)[1];M(b,"click",function(){this.Kb(this.N,this.M+1)},false,this);this.Sd=G("span","dp-month-label",a)[0];this.na=G("div","dp-days",a)[0];b=new Date;a=b.getFullYear();b=b.getMonth();mf(this,a,b);this.cc=true;this.Kb(a,b);nf(this)};
function of(a,b,c){for(;a.db<b||a.db==b&&a.Db<=c;){var d=a.db,e=a.Db+1;e=new Date(d,e);d=e.getFullYear();e=e.getMonth();var f=(new Date(d,e+1,0)).getDate();(new Date(d,e,1)).getDay();var h=H("div","dp-month");a.na.appendChild(h);h.appendChild(H("span","dp-which-year",d+""));h.appendChild(H("span","dp-which-month",e+""));for(var i=0;i<f;i++){var j=pf(a,d,e,i+1);w(j,a.cc?"dp-even":"dp-odd");h.appendChild(j)}a.ja[d]||(a.ja[d]={});a.ja[d][e]=h;a.db=d;a.Db=e;a.cc=!a.cc}}
kf.prototype.Kb=function(a,b){var c=new Date(a,b);a=c.getFullYear();b=c.getMonth();this.m&&this.m.close();of(this,a,b);var d=G("div","dp-day",this.ja[c.getFullYear()][c.getMonth()])[0];Gb(this.na,"DIV","dp-picker");var e=parseInt(this.na.style.marginTop.replace("px",""));e||(e=0);function f(h){var i=0;if(h.offsetParent){do i+=h.offsetTop;while(h=h.offsetParent)}return i}d=f(d)-f(this.na);e=new Ve(this.na,[0,e],[0,-d],300,Je);Pe(e);this.Sd.innerHTML=this.Sb[c.getMonth()]+" "+c.getFullYear();w(this.ja[a][b],
"dp-selected");this.N!=-1&&Da(this.ja[this.N][this.M],"dp-selected");this.N=a;this.M=b;this.md.style.visibility=a==(new Date).getFullYear()&&b==(new Date).getMonth()?"hidden":"visible"};function mf(a,b,c){var d=new Date(b,c,0),e=((new Date(b,c,1)).getDay()+6)%7;b=d.getDate();c=H("div","dp-month");a.na.appendChild(c);for(e=e-1;e>=0;e--){var f=pf(a,d.getFullYear(),d.getMonth(),b-e);w(f,"dp-odd");c.appendChild(f)}a.db=d.getFullYear();a.Db=d.getMonth()}
function pf(a,b,c,d){var e=H("div","dp-day");function f(){var m=e;this.m&&this.m.close();this.m=new qf(this,m)}var h=false,i=H("div","dp-box");e.appendChild(i);var j=H("div","dp-c");i.appendChild(j);var k=new Date;if(k.getFullYear()==b&&k.getMonth()==c&&k.getDate()==d){w(e,"dp-today");j.appendChild(H("div","dp-today-indicator",gettext("today")))}else if(k.getTime()>(new Date(b,c,d)).getTime())h=true;b=H("div","dp-day-label",d+"");j.appendChild(b);b=H("div","dp-times");j.appendChild(b);h?w(e,"dp-past"):
M(i,"click",f,false,a);return e}function rf(a,b){for(var c=0;c<a.k.length;c++)if(a.k[c]==b){a.k.splice(c,1);break}nf(a)}function sf(a,b,c,d){var e=G("div","dp-times",a.ja[b][c].childNodes.item(d+1))[0];e.innerHTML="";var f=(new Date(b,c,d)).getTime();b=(new Date(b,c,d+1)).getTime();for(d=c=0;d<a.k.length;d++)if(!(a.k[d]<f||a.k[d]>b)){c++;if(c>2)break;e.innerHTML+=tf(a,new Date(a.k[d]))+"<br>"}if(c>2)e.innerHTML+="\u2026"}
function nf(a){a.selected.innerHTML="";if(a.k.length==0)a.selected.innerHTML=gettext("No times are selected yet.");for(var b=0;b<a.k.length;b++){var c=H("div","dp-date");a.selected.appendChild(c);c.appendChild(H("span","dp-which-time",a.k[b]+""));var d=H("span",null,uf(a,a.k[b]));c.appendChild(d);M(d,"click",function(e){e=G("span","dp-which-time",e.target.parentNode)[0].innerHTML;e=new Date(parseInt(e));var f=0;if(!(this.N==e.getFullYear()&&this.M==e.getMonth())){f=300;this.Kb(e.getFullYear(),e.getMonth())}window.setTimeout(function(h,
i){return function(){var j=G("div","dp-box",h.ja[i.getFullYear()][i.getMonth()])[i.getDate()-1].parentNode;h.m&&h.m.close();h.m=new qf(h,j)}}(this,e),f)},false,a);d=H("a","dp-date-delete","\u00d7");c.appendChild(d);M(d,"click",function(e){e=G("span","dp-which-time",e.target.parentNode)[0].innerHTML;rf(this,e);e=new Date(parseInt(e));sf(this,e.getFullYear(),e.getMonth(),e.getDate());this.m&&vf(this.m)},false,a)}}
function qf(a,b){this.q=a;function c(e){var f=0;if(e.offsetParent){do f+=e.offsetTop;while(e=e.offsetParent)}return f}a={left:b.offsetLeft,top:c(b)+b.clientHeight};var d=b.parentNode;this.Ea=parseInt(G("div","dp-day-label",b)[0].innerHTML);this.M=parseInt(G("span","dp-which-month",d)[0].innerHTML);this.N=parseInt(G("span","dp-which-year",d)[0].innerHTML);this.m=H("div","dp-popup");this.m.style.position="absolute";this.m.style.top=a.top+"px";this.m.style.overflow="hidden";b.appendChild(this.m);this.m.style.width=
this.m.style.height="128px";this.m.style.overflow="visible";this.m.style.marginLeft="-32px";this.m.style.marginTop="-96px";b=H("div","dp-content");this.m.appendChild(b);a=H("div","dp-title");a.innerHTML="<b>"+this.Ea+"</b> "+this.q.Sb[this.M];b.appendChild(a);this.k=H("div","dp-popup-times");b.appendChild(this.k);b.appendChild(H("div","dp-entry-label",gettext("Add a time:")));a=H("div","dp-entry");b.appendChild(a);this.xc=new Xe({ob:this.q.Uc,za:true});this.xc.create(a);this.ac=a.getElementsByTagName("input").item(0);
this.ac.focus();M(this.ac,"keydown",function(e){if(e.keyCode==13)this.add();else e.keyCode==27&&this.close()},false,this);a=H("a","dp-enter");b.appendChild(a);M(a,"click",function(e){e.preventDefault();this.add();return false},false,this);b=H("span","dp-close");this.m.appendChild(b);M(b,"click",function(){this.close()},false,this);vf(this)}
function uf(a,b){b=new Date(b);var c=a.Rb[(b.getDay()+6)%7]+" "+b.getDate()+" "+a.Sb[b.getMonth()];if(b.getFullYear()>(new Date).getFullYear())c+=" "+b.getFullYear();c+=", "+tf(a,b);return c}function tf(a,b){return b.getHours()+":"+(b.getMinutes()<10?"0":"")+b.getMinutes()}
qf.prototype.add=function(){this.ac.focus();this.q.na.parentNode.scrollTop=0;var a=this.xc.getTime();if(a){a=(new Date(this.N,this.M,this.Ea,a.getHours(),a.getMinutes())).getTime();for(var b=0;b<this.q.k.length;b++)if(this.q.k[b]==a)return;this.q.k.push(a);this.q.k.sort();vf(this);sf(this.q,this.N,this.M,this.Ea);nf(this.q)}};
function vf(a){a.k.innerHTML="";for(var b=(new Date(a.N,a.M,a.Ea)).getTime(),c=(new Date(a.N,a.M,a.Ea+1)).getTime(),d=0;d<a.q.k.length;d++)if(!(a.q.k[d]<b||a.q.k[d]>c)){var e=H("span","dp-time-box",tf(a.q,new Date(a.q.k[d])));a.k.appendChild(e);e.appendChild(H("span","dp-which-time",(new Date(a.q.k[d])).getTime()+""));var f=H("a","dp-time-delete","\u00d7");e.appendChild(f);M(f,"click",function(){rf(this.q,G("span","dp-which-time",f.parentNode)[0].innerHTML);vf(this);sf(this.q,this.N,this.M,this.Ea)},
false,a)}}qf.prototype.close=function(){yb(this.m);this.q.m=null;this.q.Uc=this.xc.getTime()};function wf(a,b,c,d,e,f,h,i){var j,k=c.offsetParent;if(k){var m=k.tagName=="HTML"||k.tagName=="BODY";if(!m||Cd(k,"position")!="static"){j=Hd(k);m||(j=Ea(j,new x(k.scrollLeft,k.scrollTop)))}}k=Hd(a);m=Ld(a);k=new Ad(k.x,k.y,m.width,m.height);(m=Gd(a))&&k.Od(new Ad(m.left,m.top,m.right-m.left,m.bottom-m.top));m=k=k;var s=ob(a),l=ob(c);if(s.t!=l.t){var A=s.t.body;l=l.t.parentWindow||l.t.defaultView;var Q=new x(0,0),L;L=(L=qb(A))?L.parentWindow||L.defaultView:window;var oa=A;do{var Yb=L==l?Hd(oa):Jd(oa);
Q.x+=Yb.x;Q.y+=Yb.y}while(L&&L!=l&&(oa=L.frameElement)&&(L=L.parent));l=Q;l=Ea(l,Hd(A));if(B&&!Jb(s))l=Ea(l,Kb(s));m.left+=l.x;m.top+=l.y}a=(b&4&&Id(a)?b^2:b)&-5;b=new x(a&2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);if(j)b=Ea(b,j);if(e){b.x+=(a&2?-1:1)*e.x;b.y+=(a&1?-1:1)*e.y}var F;if(h)if((F=Gd(c))&&j){F.top=Math.max(0,F.top-j.y);F.right-=j.x;F.bottom-=j.y;F.left=Math.max(0,F.left-j.x)}return xf(b,c,d,f,F,h,i)}
function xf(a,b,c,d,e,f,h){a=a.aa();var i=0,j=(c&4&&Id(b)?c^2:c)&-5;c=Ld(b);h=h?h.aa():c;if(d||j!=0){if(j&2)a.x-=h.width+(d?d.right:0);else if(d)a.x+=d.left;if(j&1)a.y-=h.height+(d?d.bottom:0);else if(d)a.y+=d.top}if(f){i=e?yf(a,h,e,f):256;if(i&496)return i}e=a;d=C&&(kb||lb)&&E("1.9");if(e instanceof x){a=e.x;e=e.y}else{a=e;e=undefined}b.style.left=typeof a=="number"?(d?Math.round(a):a)+"px":a;b.style.top=typeof e=="number"?(d?Math.round(e):e)+"px":e;c=c==h?true:!c||!h?false:c.width==h.width&&c.height==
h.height;c||Kd(b,h);return i}
function yf(a,b,c,d){var e=0;if(a.x<c.left&&d&1){a.x=c.left;e|=1}if(a.x<c.left&&a.x+b.width>c.right&&d&16){b.width-=a.x+b.width-c.right;e|=4}if(a.x+b.width>c.right&&d&1){a.x=Math.max(c.right-b.width,c.left);e|=1}if(d&2)e|=(a.x<c.left?16:0)|(a.x+b.width>c.right?32:0);if(a.y<c.top&&d&4){a.y=c.top;e|=2}if(a.y>=c.top&&a.y+b.height>c.bottom&&d&32){b.height-=a.y+b.height-c.bottom;e|=8}if(a.y+b.height>c.bottom&&d&4){a.y=Math.max(c.bottom-b.height,c.top);e|=2}if(d&8)e|=(a.y<c.top?64:0)|(a.y+b.height>c.bottom?
128:0);return e};function zf(a){this.U=Xb?[]:"";a!=null&&this.append.apply(this,arguments)}zf.prototype.Pa=function(a){this.clear();this.append(a)};if(Xb){zf.prototype.Xb=0;zf.prototype.append=function(a,b){if(b==null)this.U[this.Xb++]=a;else{this.U.push.apply(this.U,arguments);this.Xb=this.U.length}return this}}else zf.prototype.append=function(a,b){this.U+=a;if(b!=null)for(var c=1;c<arguments.length;c++)this.U+=arguments[c];return this};zf.prototype.clear=function(){if(Xb)this.Xb=this.U.length=0;else this.U=""};
zf.prototype.toString=function(){if(Xb){var a=this.U.join("");this.clear();a&&this.append(a);return a}else return this.U};function Af(){this.Ec=[]}u(Af,de);ga(Af);function Bf(a,b){var c=a.Ec[b];if(!c){switch(b){case 0:c=a.r()+"-highlight";break;case 1:c=a.r()+"-checkbox";break;case 2:c=a.r()+"-content";break}a.Ec[b]=c}return c}Af.prototype.ra=g("menuitem");Af.prototype.l=function(a){var b=a.K().l("div",this.Ga(a).join(" "),Cf(this,a.Da,a.K())),c=!!(a.A&8)||!!(a.A&16);if(c!=Df(this,b)){c?w(b,"goog-option"):Da(b,"goog-option");var d=this.J(b);if(c){c=Bf(this,1);d.insertBefore(a.K().l("div",c),d.firstChild||null)}else d.removeChild(d.firstChild)}return b};
Af.prototype.J=function(a){return a&&a.firstChild};function Cf(a,b,c){a=Bf(a,2);return c.l("div",a,b)}function Df(a,b){if(b=a.J(b)){b=b.firstChild;a=Bf(a,1);return!!b&&!!b.className&&b.className.indexOf(a)!=-1}return false}Af.prototype.rb=function(a){switch(a){case 2:return Bf(this,0);case 16:case 8:return"goog-option-selected";default:return Af.a.rb.call(this,a)}};Af.prototype.r=g("goog-menuitem");function Ef(a,b,c,d){W.call(this,a,d||Af.P(),c);this.X(b)}u(Ef,W);Ef.prototype.Xa=function(){var a=this.Fb;return a!=null?a:we(this)};Ef.prototype.X=ba("Fb");qe("goog-menuitem",function(){return new Ef(null)});function Ff(){}u(Ff,de);ga(Ff);Ff.prototype.l=function(a){return a.K().l("div",this.r())};Ff.prototype.r=g("goog-menuseparator");function Gf(a,b){W.call(this,null,a||Ff.P(),b);Ce(this,1,false);Ce(this,2,false);Ce(this,4,false);Ce(this,32,false);this.d=1}u(Gf,W);Gf.prototype.H=function(){Gf.a.H.call(this);be(this.c(),"separator")};qe("goog-menuseparator",function(){return new Gf});function Hf(a){Gf.call(this,Ff.P(),a)}u(Hf,Gf);qe("goog-menuseparator",function(){return new Gf});function If(){}If.prototype.gb=aa();function Jf(a,b){this.element=a;this.Ta=b}u(Jf,If);Jf.prototype.gb=function(a,b,c){wf(this.element,this.Ta,a,b,undefined,c)};function Kf(a,b,c){Jf.call(this,a,b);this.qd=c}u(Kf,Jf);Kf.prototype.gb=function(a,b,c,d){var e=wf(this.element,this.Ta,a,b,null,c,10,d);if(e&496){var f=this.Ta,h=b;if(e&48){f^=2;h^=2}if(e&192){f^=1;h^=1}e=wf(this.element,f,a,h,null,c,10,d);if(e&496)this.qd?wf(this.element,this.Ta,a,b,null,c,5,d):wf(this.element,this.Ta,a,b,null,c,0,d)}};function Lf(a,b){this.nb=a instanceof x?a:new x(a,b)}u(Lf,If);Lf.prototype.gb=function(a,b,c,d){var e=Dd(a),f=new x(this.nb.x+e.scrollLeft,this.nb.y+e.scrollTop);wf(e,0,a,b,f,c,null,d)};function Mf(a,b){Lf.call(this,a,b)}u(Mf,Lf);Mf.prototype.gb=function(a,b,c,d){var e=Dd(a);e=Gd(e);var f;f=ob(a);f=vb(f.t);f=new x(this.nb.x+f.scrollLeft,this.nb.y+f.scrollTop);var h=b,i=xf(f,a,h,c,e,10,d);if((i&496)!=0){if(i&16||i&32)h^=2;if(i&64||i&128)h^=1;i=xf(f,a,h,c,e,10,d);(i&496)!=0&&xf(f,a,b,c,e,undefined,d)}};function Nf(){}ga(Nf);Nf.prototype.ra=aa();function Of(a,b,c){if(b)b.tabIndex=c?0:-1}n=Nf.prototype;n.l=function(a){return a.K().l("div",this.Ga(a).join(" "))};n.J=function(a){return a};n.Ia=function(a){a=a.c();Nd(a,true,C);if(B)a.hideFocus=true;var b=this.ra();b&&be(a,b)};n.u=function(a){return a.c()};n.r=g("goog-container");n.Ga=function(a){var b=this.r(),c=[b,a.Ma=="horizontal"?b+"-horizontal":b+"-vertical"];a.C()||c.push(b+"-disabled");return c};function Z(a,b,c){V.call(this,c);this.i=b||Nf.P();this.Ma=a||"vertical"}u(Z,V);n=Z.prototype;n.Pd=null;n.L=null;n.i=null;n.Ma=null;n.v=true;n.ca=true;n.dc=true;n.B=-1;n.s=null;n.eb=false;n.rd=false;n.fa=null;n.u=function(){return this.Pd||this.i.u(this)};n.sb=function(){return this.L||(this.L=new ie(this.u()))};n.l=function(){this.b=this.i.l(this)};n.J=function(){return this.i.J(this.c())};
n.H=function(){Z.a.H.call(this);this.p&&ta(this.p,function(b){b.o&&Pf(this,b)},this);var a=this.c();this.i.Ia(this);this.Y(this.v,true);Sd(this).j(this,"enter",this.ec).j(this,"highlight",this.Fd).j(this,"unhighlight",this.Ld).j(this,"open",this.Id).j(this,"close",this.Cd).j(a,"mousedown",this.Za).j(qb(a),"mouseup",this.Dd).j(a,["mousedown","mouseup","mouseover","mouseout"],this.Bd);this.ua()&&Qf(this,true)};
function Qf(a,b){var c=Sd(a),d=a.u();b?c.j(d,"focus",a.wb).j(d,"blur",a.sa).j(a.sb(),"key",a.ha):c.Z(d,"focus",a.wb).Z(d,"blur",a.sa).Z(a.sb(),"key",a.ha)}n=Z.prototype;n.pa=function(){Rf(this,-1);this.s&&Be(this.s,false);this.eb=false;Z.a.pa.call(this)};n.f=function(){Z.a.f.call(this);if(this.L){this.L.F();this.L=null}this.i=this.s=this.fa=null};n.ec=g(true);
n.Fd=function(a){var b=Yd(this,a.target);if(b>-1&&b!=this.B){var c=this.da(this.B);c&&c.ea(false);this.B=b;c=this.da(this.B);this.eb&&c.setActive(true);if(this.s&&c!=this.s)c.A&64?Be(c,true):Be(this.s,false)}ce(this.c(),"activedescendant",a.target.c().id)};n.Ld=function(a){if(a.target==this.da(this.B))this.B=-1;ce(this.c(),"activedescendant","")};n.Id=function(a){if((a=a.target)&&a!=this.s&&a.z==this){this.s&&Be(this.s,false);this.s=a}};n.Cd=function(a){if(a.target==this.s)this.s=null};
n.Za=function(a){this.ca&&Sf(this,true);var b=this.u(),c;a:{if(b)if((c=b.getAttributeNode("tabindex"))&&c.specified){c=b.tabIndex;c=typeof c=="number"&&c>=0;break a}c=false}c?b.focus():a.preventDefault()};n.Dd=function(){this.eb=false};
n.Bd=function(a){var b;a:{b=a.target;if(this.fa)for(var c=this.c();b&&b.parentNode&&b!=c;){var d=b.id;if(d in this.fa){b=this.fa[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.Za(a);break;case "mouseup":b.ic(a);break;case "mouseover":b.hc(a);break;case "mouseout":b.gc(a);break}};n.wb=aa();n.sa=function(){Rf(this,-1);this.eb=false;this.s&&Be(this.s,false)};n.ha=function(a){if(this.C()&&Wd(this)!=0&&this.Ya(a)){a.preventDefault();a.stopPropagation();return true}return false};
n.Ya=function(a){var b=this.da(this.B);if(b&&typeof b.ha=="function"&&b.ha(a))return true;if(this.s&&this.s!=b&&typeof this.s.ha=="function"&&this.s.ha(a))return true;switch(a.keyCode){case 27:if(this.ua())this.u().blur();else return false;break;case 36:Tf(this);break;case 35:Uf(this);break;case 38:if(this.Ma=="vertical")Vf(this);else return false;break;case 37:if(this.Ma=="horizontal")Xd(this)?Wf(this):Vf(this);else return false;break;case 40:if(this.Ma=="vertical")Wf(this);else return false;break;
case 39:if(this.Ma=="horizontal")Xd(this)?Vf(this):Wf(this);else return false;break;default:return false}return true};function Pf(a,b){var c=b.c();c=c.id||(c.id=Rd(b));if(!a.fa)a.fa={};a.fa[c]=b}n=Z.prototype;n.Tb=function(a,b){Z.a.Tb.call(this,a,b)};n.Ub=function(a,b,c){a.Nb|=2;a.Nb|=64;if(this.ua()||!this.rd)Ce(a,32,false);se(a,false);Z.a.Ub.call(this,a,b,c);c&&this.o&&Pf(this,a);b<=this.B&&this.B++};
n.removeChild=function(a,b){var c=Yd(this,a);if(c!=-1)if(c==this.B)a.ea(false);else c<this.B&&this.B--;(c=a.c())&&c.id&&Ja(this.fa,c.id);a=Z.a.removeChild.call(this,a,b);se(a,true);return a};n.Y=function(a,b){if(b||this.v!=a&&this.dispatchEvent(a?"show":"hide")){this.v=a;var c=this.c();if(c){c.style.display=a?"":"none";this.ua()&&Of(this.i,this.u(),this.ca&&this.v);this.v&&!b&&this.dispatchEvent("aftershow")}return true}return false};n.C=ca("ca");n.ua=ca("dc");
n.ya=function(a){a!=this.dc&&this.o&&Qf(this,a);this.dc=a;this.ca&&this.v&&Of(this.i,this.u(),a)};function Rf(a,b){if(b=a.da(b))b.ea(true);else a.B>-1&&a.da(a.B).ea(false)}Z.prototype.ea=function(a){Rf(this,Yd(this,a))};function Tf(a){Xf(a,function(b,c){return(b+1)%c},Wd(a)-1)}function Uf(a){Xf(a,function(b,c){b--;return b<0?c-1:b},0)}function Wf(a){Xf(a,function(b,c){return(b+1)%c},a.B)}function Vf(a){Xf(a,function(b,c){b--;return b<0?c-1:b},a.B)}
function Xf(a,b,c){c=c<0?Yd(a,a.s):c;var d=Wd(a);c=b(c,d);for(var e=0;e<=d;){var f=a.da(c);if(f&&a.Cc(f)){Rf(a,c);return true}e++;c=b(c,d)}return false}Z.prototype.Cc=function(a){return a.v&&a.C()&&!!(a.A&2)};function Sf(a,b){a.eb=b};function Yf(){}u(Yf,Nf);ga(Yf);Yf.prototype.ra=g("menu");Yf.prototype.Sa=function(a,b){return zb(a.c(),b)};Yf.prototype.r=g("goog-menu");Yf.prototype.Ia=function(a){Yf.a.Ia.call(this,a);a=a.c();ce(a,"haspopup","true")};function $(a,b){Z.call(this,"vertical",b||Yf.P(),a);this.ya(false)}u($,Z);$.prototype.Vb=true;$.prototype.sd=false;$.prototype.r=function(){return this.i.r()};$.prototype.Sa=function(a){if(this.i.Sa(this,a))return true;for(var b=0,c=Wd(this);b<c;b++){var d=this.da(b);if(typeof d.Sa=="function"&&d.Sa(a))return true}return false};function Zf(a,b){a.Tb(b,true)}$.prototype.Y=function(a,b){(b=$.a.Y.call(this,a,b))&&a&&this.o&&this.Vb&&this.u().focus();return b};
$.prototype.ec=function(a){this.Vb&&this.u().focus();return $.a.ec.call(this,a)};$.prototype.Cc=function(a){return(this.sd||a.C())&&a.v&&!!(a.A&2)};function $f(a){$.call(this,a);this.Vb=true;this.ya(true);this.Y(false,true);this.T=new P}u($f,$);n=$f.prototype;n.ce=false;n.Sc=0;n.Fc=null;n.H=function(){$f.a.H.call(this);xc(this.T,this.Ac,this);var a=Sd(this);a.j(this,"action",this.Vd);a.j(Ib(this.K()),"mousedown",this.bd,true);D&&a.j(Ib(this.K()),"contextmenu",this.bd,true)};n.mb=function(a,b,c,d,e){if(!(a?Bc(this.T,t(a)):false)){if(a){b={b:a,kd:b,Zc:c,Jc:d?"contextmenu":"mousedown",Rd:e};this.T.Pa(t(a),b);a=b}else a=null;this.o&&this.Ac(a)}};
n.Ac=function(a){Sd(this).j(a.b,a.Jc,this.ed)};n.detach=function(a){if(!(a?Bc(this.T,t(a)):false))throw Error("Menu not attached to provided element, unable to detach.");a=t(a);this.o&&ag(this,Dc(this.T,a));this.T.remove(a)};function ag(a,b){Sd(a).Z(b.b,b.Jc,a.ed)}n=$f.prototype;n.yb=function(){this.Y(false);if(!this.v){this.Sc=ra();this.Fc=null}};n.Vd=function(){this.yb()};
n.ed=function(a){for(var b=this.T.tb(),c=0;c<b.length;c++){var d=Dc(this.T,b[c]);if(d.b==a.currentTarget){c=a.clientX;var e=a.clientY;if(((b=this.v)||ra()-this.Sc<150)&&this.ce)this.yb();else if(this.dispatchEvent("beforeshow")){c=d.kd!==undefined?new Kf(d.b,d.kd):new Mf(c,e);e=d.Zc!==undefined?d.Zc:4;if(!b)this.c().style.visibility="hidden";this.c().style.display="";c.gb(this.c(),e,d.Rd);if(!b)this.c().style.visibility="visible";this.Fc=d.b;Rf(this,-1);this.Y(true)}a.preventDefault();a.stopPropagation();
return}}};n.bd=function(a){this.v&&!this.Sa(a.target)&&this.yb()};n.sa=function(a){$f.a.sa.call(this,a);this.yb()};n.f=function(){$f.a.f.call(this);if(this.T){this.T.clear();delete this.T}};function bg(){var a=document.body,b=cg(window.signedIn===true?window.email:null);a.insertBefore(b,a.firstChild);if(window.signedIn===true){a=document.getElementById("ab-menu");b=new $f;for(var c=window.menuData,d=0;d<c.length;d++){var e=new Ef(c[d][1],"/a#id="+c[d][0]);Zf(b,e)}Zf(b,new Hf);Zf(b,new Ef(gettext("All appointments"),"/appointments"));Zf(b,new Ef(gettext("New appointment"),"/"));Vd(b,document.body);b.mb(a,3,2);M(b,"action",function(f){window.location=f.target.Fb})}}
function cg(a){var b=new zf;b.append("<div id=ab-bar>");a&&b.append("<span id=ab-email>",Pa(a),"</span><a id=ab-menu href='javascript:void(0)'>",gettext("My appointments"),"</a>");b.append("<a id=ab-help href='//help.pleft.com/' target='_blank'>",gettext("Help"),"</a>");a&&b.append("<a id=ab-signout href='/signout'>",gettext("Sign out"),"</a>");b.append("</div>");var c=document;a=c.createElement("div");a.innerHTML=b;if(a.childNodes.length==1)b=a.firstChild;else{for(b=c.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);
b=b}return b};function dg(){M(document.body,"dragstart",function(a){a.preventDefault()});bg()}ea("pleft.main.init",dg,undefined);ea("pleft.form.init",function(){dg();var a=new He(gettext("Send invitations"));ue(a,"default-button");Ud(a,document.getElementById("button"));var b=new kf;b.create(document.getElementById("dates"));Ie(document.getElementById("desc"));Ie(document.getElementById("invitees"));var c=document.createElement("span");new vd(document.getElementById("desc"),c,1000);new vd(document.getElementById("invitees"),c,2000);document.getElementById("status").style.display="none";var d={mc:false,$b:false};M(document.getElementById("create"),
"submit",function(l){l.preventDefault()});var e=document.getElementById("field-email"),f=e.parentNode.parentNode.parentNode;function h(){var l=null;if(e.value)/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(e.value)||(l=gettext("This email address doesn\u2018t seem to be valid."));else l=gettext("Please enter your email address.");if(l){d.$b=true;w(f,"with-error");G("div","error",f)[0].innerHTML=l}}M(e,"blur",h,false,this);M(e,"focus",function(){d.$b=false;Da(f,"with-error");G("div","error",
f)[0].innerHTML=""},false,this);var i=document.getElementById("invitees"),j=i.parentNode.parentNode.parentNode;M(i,"blur",function(){if(i.value)for(var l=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,
A=i.value.split(",").join("\n").split("\n"),Q=0;Q<A.length;Q++)if(!/^\s*$/.test(A[Q])&&!l.test(A[Q])){d.mc=true;w(j,"with-error");G("div","error",j)[0].innerHTML=gettext("There seems to be an invalid email address in this list:")+" \u2018"+A[Q].replace(/^\s+/,"").replace(/\s+$/,"")+"\u2019";return}},false,this);M(i,"focus",function(){d.mc=false;Da(j,"with-error");G("div","error",j)[0].innerHTML=""},false,this);var k=document.getElementById("button-block"),m=G("div","error",k)[0];a.Nb|=255;a.addEventListener("action",
function(){h();if(d.$b||d.mc){w(k,"with-error");m.innerHTML=gettext("Sorry, I do not fully understand your input yet. Please check the form for any warnings.")}else s()},false,this);a.addEventListener("blur",function(){Da(k,"with-error");m.innerHTML=""},false,this);function s(){var l="",A=encodeURIComponent;l+="description="+A(document.getElementById("desc").value);l+="&name="+A(document.getElementById("field-name").value);l+="&email="+A(document.getElementById("field-email").value);l+="&invitees="+
A(document.getElementById("invitees").value);l+="&dates="+A(lf(b));l+="&propose_more=";l+=document.getElementById("inviteespropose").value=="on"?"1":"0";var Q=rb("div","appointment")[0],L=rb("div","side-help")[0],oa=document.getElementById("status");oa.innerHTML="<p>"+gettext("Creating an appointment\u2026")+"</p>";oa.style.display="block";Q.style.display=L.style.display="none";function Yb(F){F=F.target.n?F.target.n.responseText:"";if(F!="0"){window._gaq&&_gaq.push(["_trackEvent","Appointments","Create"]);
if(signedIn)location.href=F;else oa.innerHTML="<p>"+gettext("Created! Please check your email.")+"</p>"}else{oa.innerHTML="<p>"+gettext("Sorry, something went wrong. This should not happen.")+' <a href="#" id="again">'+gettext("Click here to go back to the form.")+"</a></p>";document.getElementById("again").onclick=function(){Q.style.display=L.style.display="block";oa.style.display="none"}}}jd("/create",Yb,"POST",l)}},undefined);
